@anoki/fse-ui 1.0.0-beta1.48.1 → 1.0.0-beta1.48.10

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 (827) hide show
  1. package/dist/components/ui/CommunicationSeach/CommunicationSearch.css +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs100.js.map +1 -1
  5. package/dist/index.cjs101.js.map +1 -1
  6. package/dist/index.cjs102.js.map +1 -1
  7. package/dist/index.cjs105.js.map +1 -1
  8. package/dist/index.cjs106.js.map +1 -1
  9. package/dist/index.cjs107.js.map +1 -1
  10. package/dist/index.cjs11.js.map +1 -1
  11. package/dist/index.cjs110.js.map +1 -1
  12. package/dist/index.cjs111.js.map +1 -1
  13. package/dist/index.cjs112.js.map +1 -1
  14. package/dist/index.cjs113.js.map +1 -1
  15. package/dist/index.cjs114.js.map +1 -1
  16. package/dist/index.cjs115.js.map +1 -1
  17. package/dist/index.cjs116.js.map +1 -1
  18. package/dist/index.cjs117.js.map +1 -1
  19. package/dist/index.cjs119.js.map +1 -1
  20. package/dist/index.cjs12.js.map +1 -1
  21. package/dist/index.cjs120.js.map +1 -1
  22. package/dist/index.cjs121.js.map +1 -1
  23. package/dist/index.cjs122.js.map +1 -1
  24. package/dist/index.cjs123.js.map +1 -1
  25. package/dist/index.cjs124.js.map +1 -1
  26. package/dist/index.cjs125.js.map +1 -1
  27. package/dist/index.cjs126.js.map +1 -1
  28. package/dist/index.cjs127.js.map +1 -1
  29. package/dist/index.cjs128.js.map +1 -1
  30. package/dist/index.cjs129.js.map +1 -1
  31. package/dist/index.cjs13.js.map +1 -1
  32. package/dist/index.cjs130.js.map +1 -1
  33. package/dist/index.cjs131.js.map +1 -1
  34. package/dist/index.cjs132.js.map +1 -1
  35. package/dist/index.cjs133.js.map +1 -1
  36. package/dist/index.cjs134.js.map +1 -1
  37. package/dist/index.cjs135.js +1 -1
  38. package/dist/index.cjs135.js.map +1 -1
  39. package/dist/index.cjs136.js.map +1 -1
  40. package/dist/index.cjs137.js.map +1 -1
  41. package/dist/index.cjs138.js.map +1 -1
  42. package/dist/index.cjs139.js.map +1 -1
  43. package/dist/index.cjs14.js.map +1 -1
  44. package/dist/index.cjs140.js.map +1 -1
  45. package/dist/index.cjs142.js.map +1 -1
  46. package/dist/index.cjs143.js.map +1 -1
  47. package/dist/index.cjs144.js.map +1 -1
  48. package/dist/index.cjs145.js.map +1 -1
  49. package/dist/index.cjs146.js.map +1 -1
  50. package/dist/index.cjs147.js.map +1 -1
  51. package/dist/index.cjs148.js.map +1 -1
  52. package/dist/index.cjs149.js.map +1 -1
  53. package/dist/index.cjs15.js.map +1 -1
  54. package/dist/index.cjs150.js.map +1 -1
  55. package/dist/index.cjs151.js.map +1 -1
  56. package/dist/index.cjs152.js.map +1 -1
  57. package/dist/index.cjs153.js.map +1 -1
  58. package/dist/index.cjs18.js.map +1 -1
  59. package/dist/index.cjs19.js.map +1 -1
  60. package/dist/index.cjs193.js +1 -1
  61. package/dist/index.cjs193.js.map +1 -1
  62. package/dist/index.cjs195.js +1 -1
  63. package/dist/index.cjs195.js.map +1 -1
  64. package/dist/index.cjs199.js +1 -1
  65. package/dist/index.cjs199.js.map +1 -1
  66. package/dist/index.cjs204.js.map +1 -1
  67. package/dist/index.cjs21.js.map +1 -1
  68. package/dist/index.cjs23.js.map +1 -1
  69. package/dist/index.cjs24.js.map +1 -1
  70. package/dist/index.cjs245.js.map +1 -1
  71. package/dist/index.cjs247.js.map +1 -1
  72. package/dist/index.cjs248.js.map +1 -1
  73. package/dist/index.cjs25.js.map +1 -1
  74. package/dist/index.cjs251.js.map +1 -1
  75. package/dist/index.cjs255.js.map +1 -1
  76. package/dist/index.cjs259.js.map +1 -1
  77. package/dist/index.cjs264.js +1 -1
  78. package/dist/index.cjs269.js.map +1 -1
  79. package/dist/index.cjs277.js +1 -1
  80. package/dist/index.cjs278.js.map +1 -1
  81. package/dist/index.cjs28.js.map +1 -1
  82. package/dist/index.cjs284.js.map +1 -1
  83. package/dist/index.cjs287.js.map +1 -1
  84. package/dist/index.cjs288.js.map +1 -1
  85. package/dist/index.cjs295.js +1 -1
  86. package/dist/index.cjs296.js.map +1 -1
  87. package/dist/index.cjs299.js.map +1 -1
  88. package/dist/index.cjs30.js.map +1 -1
  89. package/dist/index.cjs301.js.map +1 -1
  90. package/dist/index.cjs302.js.map +1 -1
  91. package/dist/index.cjs303.js.map +1 -1
  92. package/dist/index.cjs306.js.map +1 -1
  93. package/dist/index.cjs307.js.map +1 -1
  94. package/dist/index.cjs31.js.map +1 -1
  95. package/dist/index.cjs311.js.map +1 -1
  96. package/dist/index.cjs314.js.map +1 -1
  97. package/dist/index.cjs316.js.map +1 -1
  98. package/dist/index.cjs317.js.map +1 -1
  99. package/dist/index.cjs318.js.map +1 -1
  100. package/dist/index.cjs32.js +1 -1
  101. package/dist/index.cjs321.js.map +1 -1
  102. package/dist/index.cjs322.js.map +1 -1
  103. package/dist/index.cjs325.js.map +1 -1
  104. package/dist/index.cjs326.js +1 -1
  105. package/dist/index.cjs33.js +1 -1
  106. package/dist/index.cjs33.js.map +1 -1
  107. package/dist/index.cjs345.js +1 -1
  108. package/dist/index.cjs346.js +1 -1
  109. package/dist/index.cjs36.js.map +1 -1
  110. package/dist/index.cjs368.js +1 -1
  111. package/dist/index.cjs37.js.map +1 -1
  112. package/dist/index.cjs374.js +1 -1
  113. package/dist/index.cjs377.js.map +1 -1
  114. package/dist/index.cjs386.js +1 -1
  115. package/dist/index.cjs39.js.map +1 -1
  116. package/dist/index.cjs392.js.map +1 -1
  117. package/dist/index.cjs394.js.map +1 -1
  118. package/dist/index.cjs395.js.map +1 -1
  119. package/dist/index.cjs40.js.map +1 -1
  120. package/dist/index.cjs402.js +1 -1
  121. package/dist/index.cjs403.js +1 -1
  122. package/dist/index.cjs404.js +1 -1
  123. package/dist/index.cjs41.js.map +1 -1
  124. package/dist/index.cjs414.js.map +1 -1
  125. package/dist/index.cjs415.js.map +1 -1
  126. package/dist/index.cjs42.js.map +1 -1
  127. package/dist/index.cjs420.js.map +1 -1
  128. package/dist/index.cjs421.js.map +1 -1
  129. package/dist/index.cjs422.js +1 -1
  130. package/dist/index.cjs422.js.map +1 -1
  131. package/dist/index.cjs43.js.map +1 -1
  132. package/dist/index.cjs431.js +1 -1
  133. package/dist/index.cjs438.js +1 -1
  134. package/dist/index.cjs44.js.map +1 -1
  135. package/dist/index.cjs442.js.map +1 -1
  136. package/dist/index.cjs443.js +1 -1
  137. package/dist/index.cjs45.js.map +1 -1
  138. package/dist/index.cjs453.js +1 -1
  139. package/dist/index.cjs454.js +1 -1
  140. package/dist/index.cjs455.js +2 -0
  141. package/dist/index.cjs455.js.map +1 -0
  142. package/dist/index.cjs456.js +1 -1
  143. package/dist/index.cjs456.js.map +1 -1
  144. package/dist/index.cjs457.js +1 -1
  145. package/dist/index.cjs457.js.map +1 -1
  146. package/dist/index.cjs458.js +1 -1
  147. package/dist/index.cjs458.js.map +1 -1
  148. package/dist/index.cjs459.js +1 -1
  149. package/dist/index.cjs459.js.map +1 -1
  150. package/dist/index.cjs460.js +1 -1
  151. package/dist/index.cjs460.js.map +1 -1
  152. package/dist/index.cjs461.js +1 -1
  153. package/dist/index.cjs461.js.map +1 -1
  154. package/dist/index.cjs463.js.map +1 -1
  155. package/dist/index.cjs467.js +1 -1
  156. package/dist/index.cjs468.js +1 -1
  157. package/dist/index.cjs469.js +1 -1
  158. package/dist/index.cjs47.js.map +1 -1
  159. package/dist/index.cjs470.js +1 -1
  160. package/dist/index.cjs471.js +1 -1
  161. package/dist/index.cjs472.js +1 -1
  162. package/dist/index.cjs474.js +1 -1
  163. package/dist/index.cjs476.js +1 -1
  164. package/dist/index.cjs48.js +1 -1
  165. package/dist/index.cjs48.js.map +1 -1
  166. package/dist/index.cjs487.js +2 -0
  167. package/dist/index.cjs487.js.map +1 -0
  168. package/dist/index.cjs488.js +2 -0
  169. package/dist/index.cjs488.js.map +1 -0
  170. package/dist/index.cjs49.js.map +1 -1
  171. package/dist/index.cjs497.js +2 -0
  172. package/dist/index.cjs497.js.map +1 -0
  173. package/dist/index.cjs498.js +2 -0
  174. package/dist/index.cjs498.js.map +1 -0
  175. package/dist/index.cjs499.js +2 -0
  176. package/dist/index.cjs499.js.map +1 -0
  177. package/dist/index.cjs500.js +1 -1
  178. package/dist/index.cjs500.js.map +1 -1
  179. package/dist/index.cjs501.js +1 -1
  180. package/dist/index.cjs501.js.map +1 -1
  181. package/dist/index.cjs502.js +1 -1
  182. package/dist/index.cjs502.js.map +1 -1
  183. package/dist/index.cjs503.js +1 -1
  184. package/dist/index.cjs503.js.map +1 -1
  185. package/dist/index.cjs504.js +1 -1
  186. package/dist/index.cjs504.js.map +1 -1
  187. package/dist/index.cjs505.js +1 -1
  188. package/dist/index.cjs505.js.map +1 -1
  189. package/dist/index.cjs506.js +2 -0
  190. package/dist/index.cjs506.js.map +1 -0
  191. package/dist/index.cjs507.js +2 -0
  192. package/dist/index.cjs507.js.map +1 -0
  193. package/dist/index.cjs508.js +2 -0
  194. package/dist/index.cjs508.js.map +1 -0
  195. package/dist/index.cjs509.js +2 -0
  196. package/dist/index.cjs509.js.map +1 -0
  197. package/dist/index.cjs51.js.map +1 -1
  198. package/dist/index.cjs510.js +1 -1
  199. package/dist/index.cjs510.js.map +1 -1
  200. package/dist/index.cjs511.js +1 -27
  201. package/dist/index.cjs511.js.map +1 -1
  202. package/dist/index.cjs512.js +1 -1
  203. package/dist/index.cjs512.js.map +1 -1
  204. package/dist/index.cjs513.js +1 -1
  205. package/dist/index.cjs513.js.map +1 -1
  206. package/dist/index.cjs514.js +4 -1
  207. package/dist/index.cjs514.js.map +1 -1
  208. package/dist/index.cjs515.js +1 -1
  209. package/dist/index.cjs515.js.map +1 -1
  210. package/dist/index.cjs516.js +1 -2
  211. package/dist/index.cjs516.js.map +1 -1
  212. package/dist/index.cjs517.js +1 -1
  213. package/dist/index.cjs517.js.map +1 -1
  214. package/dist/index.cjs518.js +1 -1
  215. package/dist/index.cjs518.js.map +1 -1
  216. package/dist/index.cjs519.js +1 -1
  217. package/dist/index.cjs519.js.map +1 -1
  218. package/dist/index.cjs52.js.map +1 -1
  219. package/dist/index.cjs520.js +38 -1
  220. package/dist/index.cjs520.js.map +1 -1
  221. package/dist/index.cjs521.js +1 -1
  222. package/dist/index.cjs521.js.map +1 -1
  223. package/dist/index.cjs522.js +1 -1
  224. package/dist/index.cjs522.js.map +1 -1
  225. package/dist/index.cjs523.js +1 -1
  226. package/dist/index.cjs523.js.map +1 -1
  227. package/dist/index.cjs524.js +1 -1
  228. package/dist/index.cjs525.js +1 -1
  229. package/dist/index.cjs525.js.map +1 -1
  230. package/dist/index.cjs526.js +1 -1
  231. package/dist/index.cjs526.js.map +1 -1
  232. package/dist/index.cjs527.js +1 -1
  233. package/dist/index.cjs527.js.map +1 -1
  234. package/dist/index.cjs528.js +1 -1
  235. package/dist/index.cjs528.js.map +1 -1
  236. package/dist/index.cjs529.js +1 -1
  237. package/dist/index.cjs529.js.map +1 -1
  238. package/dist/index.cjs53.js.map +1 -1
  239. package/dist/index.cjs530.js +1 -1
  240. package/dist/index.cjs530.js.map +1 -1
  241. package/dist/index.cjs531.js +1 -1
  242. package/dist/index.cjs531.js.map +1 -1
  243. package/dist/index.cjs532.js +1 -1
  244. package/dist/index.cjs532.js.map +1 -1
  245. package/dist/index.cjs533.js +1 -1
  246. package/dist/index.cjs533.js.map +1 -1
  247. package/dist/index.cjs534.js +1 -1
  248. package/dist/index.cjs534.js.map +1 -1
  249. package/dist/index.cjs535.js +1 -1
  250. package/dist/index.cjs535.js.map +1 -1
  251. package/dist/index.cjs536.js +1 -1
  252. package/dist/index.cjs536.js.map +1 -1
  253. package/dist/index.cjs537.js +1 -1
  254. package/dist/index.cjs537.js.map +1 -1
  255. package/dist/index.cjs538.js +1 -1
  256. package/dist/index.cjs538.js.map +1 -1
  257. package/dist/index.cjs539.js +1 -1
  258. package/dist/index.cjs539.js.map +1 -1
  259. package/dist/index.cjs54.js.map +1 -1
  260. package/dist/index.cjs540.js +1 -1
  261. package/dist/index.cjs540.js.map +1 -1
  262. package/dist/index.cjs541.js +1 -1
  263. package/dist/index.cjs541.js.map +1 -1
  264. package/dist/index.cjs542.js +1 -1
  265. package/dist/index.cjs542.js.map +1 -1
  266. package/dist/index.cjs543.js +1 -1
  267. package/dist/index.cjs543.js.map +1 -1
  268. package/dist/index.cjs544.js +1 -1
  269. package/dist/index.cjs544.js.map +1 -1
  270. package/dist/index.cjs545.js +1 -1
  271. package/dist/index.cjs545.js.map +1 -1
  272. package/dist/index.cjs546.js +1 -1
  273. package/dist/index.cjs546.js.map +1 -1
  274. package/dist/index.cjs547.js +1 -1
  275. package/dist/index.cjs547.js.map +1 -1
  276. package/dist/index.cjs548.js +1 -1
  277. package/dist/index.cjs548.js.map +1 -1
  278. package/dist/index.cjs549.js +1 -1
  279. package/dist/index.cjs549.js.map +1 -1
  280. package/dist/index.cjs550.js +1 -1
  281. package/dist/index.cjs550.js.map +1 -1
  282. package/dist/index.cjs551.js +1 -1
  283. package/dist/index.cjs551.js.map +1 -1
  284. package/dist/index.cjs552.js +5 -1
  285. package/dist/index.cjs552.js.map +1 -1
  286. package/dist/index.cjs553.js +1 -1
  287. package/dist/index.cjs553.js.map +1 -1
  288. package/dist/index.cjs554.js +1 -1
  289. package/dist/index.cjs554.js.map +1 -1
  290. package/dist/index.cjs555.js +1 -1
  291. package/dist/index.cjs555.js.map +1 -1
  292. package/dist/index.cjs556.js +1 -1
  293. package/dist/index.cjs556.js.map +1 -1
  294. package/dist/index.cjs557.js +1 -1
  295. package/dist/index.cjs557.js.map +1 -1
  296. package/dist/index.cjs558.js +1 -1
  297. package/dist/index.cjs558.js.map +1 -1
  298. package/dist/index.cjs559.js +1 -1
  299. package/dist/index.cjs559.js.map +1 -1
  300. package/dist/index.cjs56.js.map +1 -1
  301. package/dist/index.cjs560.js +1 -1
  302. package/dist/index.cjs560.js.map +1 -1
  303. package/dist/index.cjs561.js +1 -1
  304. package/dist/index.cjs561.js.map +1 -1
  305. package/dist/index.cjs562.js +1 -1
  306. package/dist/index.cjs562.js.map +1 -1
  307. package/dist/index.cjs563.js +1 -1
  308. package/dist/index.cjs563.js.map +1 -1
  309. package/dist/index.cjs564.js +1 -1
  310. package/dist/index.cjs564.js.map +1 -1
  311. package/dist/index.cjs565.js +1 -4
  312. package/dist/index.cjs565.js.map +1 -1
  313. package/dist/index.cjs566.js +1 -1
  314. package/dist/index.cjs566.js.map +1 -1
  315. package/dist/index.cjs57.js.map +1 -1
  316. package/dist/index.cjs572.js +1 -1
  317. package/dist/index.cjs572.js.map +1 -1
  318. package/dist/index.cjs573.js +1 -1
  319. package/dist/index.cjs573.js.map +1 -1
  320. package/dist/index.cjs574.js +1 -1
  321. package/dist/index.cjs574.js.map +1 -1
  322. package/dist/index.cjs575.js +1 -1
  323. package/dist/index.cjs575.js.map +1 -1
  324. package/dist/index.cjs576.js +1 -1
  325. package/dist/index.cjs576.js.map +1 -1
  326. package/dist/index.cjs577.js +1 -1
  327. package/dist/index.cjs577.js.map +1 -1
  328. package/dist/index.cjs578.js +1 -1
  329. package/dist/index.cjs578.js.map +1 -1
  330. package/dist/index.cjs579.js +1 -1
  331. package/dist/index.cjs579.js.map +1 -1
  332. package/dist/index.cjs580.js +1 -1
  333. package/dist/index.cjs580.js.map +1 -1
  334. package/dist/index.cjs581.js +1 -38
  335. package/dist/index.cjs581.js.map +1 -1
  336. package/dist/index.cjs586.js +1 -1
  337. package/dist/index.cjs586.js.map +1 -1
  338. package/dist/index.cjs587.js +27 -1
  339. package/dist/index.cjs587.js.map +1 -1
  340. package/dist/index.cjs588.js +1 -1
  341. package/dist/index.cjs588.js.map +1 -1
  342. package/dist/index.cjs589.js +1 -1
  343. package/dist/index.cjs589.js.map +1 -1
  344. package/dist/index.cjs59.js.map +1 -1
  345. package/dist/index.cjs590.js +2 -1
  346. package/dist/index.cjs590.js.map +1 -1
  347. package/dist/index.cjs591.js +1 -1
  348. package/dist/index.cjs591.js.map +1 -1
  349. package/dist/index.cjs592.js +1 -1
  350. package/dist/index.cjs592.js.map +1 -1
  351. package/dist/index.cjs593.js +1 -1
  352. package/dist/index.cjs593.js.map +1 -1
  353. package/dist/index.cjs594.js +1 -1
  354. package/dist/index.cjs594.js.map +1 -1
  355. package/dist/index.cjs595.js +1 -1
  356. package/dist/index.cjs595.js.map +1 -1
  357. package/dist/index.cjs596.js +1 -1
  358. package/dist/index.cjs596.js.map +1 -1
  359. package/dist/index.cjs60.js.map +1 -1
  360. package/dist/index.cjs61.js.map +1 -1
  361. package/dist/index.cjs62.js.map +1 -1
  362. package/dist/index.cjs65.js.map +1 -1
  363. package/dist/index.cjs67.js.map +1 -1
  364. package/dist/index.cjs70.js.map +1 -1
  365. package/dist/index.cjs72.js.map +1 -1
  366. package/dist/index.cjs74.js.map +1 -1
  367. package/dist/index.cjs75.js.map +1 -1
  368. package/dist/index.cjs76.js.map +1 -1
  369. package/dist/index.cjs77.js.map +1 -1
  370. package/dist/index.cjs78.js.map +1 -1
  371. package/dist/index.cjs79.js.map +1 -1
  372. package/dist/index.cjs8.js.map +1 -1
  373. package/dist/index.cjs80.js.map +1 -1
  374. package/dist/index.cjs81.js.map +1 -1
  375. package/dist/index.cjs82.js.map +1 -1
  376. package/dist/index.cjs83.js.map +1 -1
  377. package/dist/index.cjs84.js.map +1 -1
  378. package/dist/index.cjs85.js.map +1 -1
  379. package/dist/index.cjs86.js.map +1 -1
  380. package/dist/index.cjs87.js.map +1 -1
  381. package/dist/index.cjs88.js.map +1 -1
  382. package/dist/index.cjs89.js.map +1 -1
  383. package/dist/index.cjs90.js.map +1 -1
  384. package/dist/index.cjs91.js.map +1 -1
  385. package/dist/index.cjs92.js.map +1 -1
  386. package/dist/index.cjs93.js.map +1 -1
  387. package/dist/index.cjs94.js.map +1 -1
  388. package/dist/index.cjs95.js.map +1 -1
  389. package/dist/index.cjs96.js.map +1 -1
  390. package/dist/index.cjs97.js.map +1 -1
  391. package/dist/index.cjs98.js.map +1 -1
  392. package/dist/index.cjs99.js.map +1 -1
  393. package/dist/index.es.js.map +1 -1
  394. package/dist/index.es10.js.map +1 -1
  395. package/dist/index.es100.js.map +1 -1
  396. package/dist/index.es101.js.map +1 -1
  397. package/dist/index.es102.js.map +1 -1
  398. package/dist/index.es105.js.map +1 -1
  399. package/dist/index.es106.js.map +1 -1
  400. package/dist/index.es107.js.map +1 -1
  401. package/dist/index.es11.js.map +1 -1
  402. package/dist/index.es110.js.map +1 -1
  403. package/dist/index.es111.js.map +1 -1
  404. package/dist/index.es112.js.map +1 -1
  405. package/dist/index.es113.js.map +1 -1
  406. package/dist/index.es114.js.map +1 -1
  407. package/dist/index.es115.js.map +1 -1
  408. package/dist/index.es116.js.map +1 -1
  409. package/dist/index.es117.js.map +1 -1
  410. package/dist/index.es119.js.map +1 -1
  411. package/dist/index.es12.js.map +1 -1
  412. package/dist/index.es120.js.map +1 -1
  413. package/dist/index.es121.js.map +1 -1
  414. package/dist/index.es122.js.map +1 -1
  415. package/dist/index.es123.js.map +1 -1
  416. package/dist/index.es124.js.map +1 -1
  417. package/dist/index.es125.js.map +1 -1
  418. package/dist/index.es126.js.map +1 -1
  419. package/dist/index.es127.js.map +1 -1
  420. package/dist/index.es128.js.map +1 -1
  421. package/dist/index.es129.js.map +1 -1
  422. package/dist/index.es13.js.map +1 -1
  423. package/dist/index.es130.js.map +1 -1
  424. package/dist/index.es131.js.map +1 -1
  425. package/dist/index.es132.js.map +1 -1
  426. package/dist/index.es133.js.map +1 -1
  427. package/dist/index.es134.js.map +1 -1
  428. package/dist/index.es135.js +36 -39
  429. package/dist/index.es135.js.map +1 -1
  430. package/dist/index.es136.js.map +1 -1
  431. package/dist/index.es137.js.map +1 -1
  432. package/dist/index.es138.js.map +1 -1
  433. package/dist/index.es139.js.map +1 -1
  434. package/dist/index.es14.js.map +1 -1
  435. package/dist/index.es140.js.map +1 -1
  436. package/dist/index.es142.js.map +1 -1
  437. package/dist/index.es143.js.map +1 -1
  438. package/dist/index.es144.js.map +1 -1
  439. package/dist/index.es145.js.map +1 -1
  440. package/dist/index.es146.js.map +1 -1
  441. package/dist/index.es147.js.map +1 -1
  442. package/dist/index.es148.js.map +1 -1
  443. package/dist/index.es149.js.map +1 -1
  444. package/dist/index.es15.js.map +1 -1
  445. package/dist/index.es150.js.map +1 -1
  446. package/dist/index.es151.js.map +1 -1
  447. package/dist/index.es152.js.map +1 -1
  448. package/dist/index.es153.js.map +1 -1
  449. package/dist/index.es18.js.map +1 -1
  450. package/dist/index.es19.js.map +1 -1
  451. package/dist/index.es193.js +13 -13
  452. package/dist/index.es193.js.map +1 -1
  453. package/dist/index.es195.js +12 -12
  454. package/dist/index.es195.js.map +1 -1
  455. package/dist/index.es199.js +12 -12
  456. package/dist/index.es199.js.map +1 -1
  457. package/dist/index.es204.js.map +1 -1
  458. package/dist/index.es21.js.map +1 -1
  459. package/dist/index.es23.js.map +1 -1
  460. package/dist/index.es24.js.map +1 -1
  461. package/dist/index.es245.js.map +1 -1
  462. package/dist/index.es247.js.map +1 -1
  463. package/dist/index.es248.js.map +1 -1
  464. package/dist/index.es25.js.map +1 -1
  465. package/dist/index.es251.js.map +1 -1
  466. package/dist/index.es255.js.map +1 -1
  467. package/dist/index.es259.js.map +1 -1
  468. package/dist/index.es264.js +7 -7
  469. package/dist/index.es269.js.map +1 -1
  470. package/dist/index.es277.js +5 -5
  471. package/dist/index.es278.js.map +1 -1
  472. package/dist/index.es28.js.map +1 -1
  473. package/dist/index.es284.js.map +1 -1
  474. package/dist/index.es287.js.map +1 -1
  475. package/dist/index.es288.js.map +1 -1
  476. package/dist/index.es295.js +6 -6
  477. package/dist/index.es296.js.map +1 -1
  478. package/dist/index.es299.js.map +1 -1
  479. package/dist/index.es30.js.map +1 -1
  480. package/dist/index.es301.js.map +1 -1
  481. package/dist/index.es302.js.map +1 -1
  482. package/dist/index.es303.js.map +1 -1
  483. package/dist/index.es306.js.map +1 -1
  484. package/dist/index.es307.js.map +1 -1
  485. package/dist/index.es31.js.map +1 -1
  486. package/dist/index.es311.js.map +1 -1
  487. package/dist/index.es314.js.map +1 -1
  488. package/dist/index.es316.js.map +1 -1
  489. package/dist/index.es317.js.map +1 -1
  490. package/dist/index.es318.js.map +1 -1
  491. package/dist/index.es32.js +1 -1
  492. package/dist/index.es321.js.map +1 -1
  493. package/dist/index.es322.js.map +1 -1
  494. package/dist/index.es325.js.map +1 -1
  495. package/dist/index.es326.js +5 -5
  496. package/dist/index.es33.js +32 -30
  497. package/dist/index.es33.js.map +1 -1
  498. package/dist/index.es345.js +6 -6
  499. package/dist/index.es346.js +2 -2
  500. package/dist/index.es36.js.map +1 -1
  501. package/dist/index.es368.js +3 -3
  502. package/dist/index.es37.js.map +1 -1
  503. package/dist/index.es374.js +1 -1
  504. package/dist/index.es377.js.map +1 -1
  505. package/dist/index.es386.js +8 -8
  506. package/dist/index.es39.js.map +1 -1
  507. package/dist/index.es392.js.map +1 -1
  508. package/dist/index.es394.js.map +1 -1
  509. package/dist/index.es395.js.map +1 -1
  510. package/dist/index.es40.js.map +1 -1
  511. package/dist/index.es402.js +3 -3
  512. package/dist/index.es403.js +2 -2
  513. package/dist/index.es404.js +3 -3
  514. package/dist/index.es41.js.map +1 -1
  515. package/dist/index.es414.js.map +1 -1
  516. package/dist/index.es415.js.map +1 -1
  517. package/dist/index.es42.js.map +1 -1
  518. package/dist/index.es420.js.map +1 -1
  519. package/dist/index.es421.js.map +1 -1
  520. package/dist/index.es422.js +1 -1
  521. package/dist/index.es422.js.map +1 -1
  522. package/dist/index.es43.js.map +1 -1
  523. package/dist/index.es431.js +1 -1
  524. package/dist/index.es438.js +2 -2
  525. package/dist/index.es44.js.map +1 -1
  526. package/dist/index.es442.js.map +1 -1
  527. package/dist/index.es443.js +3 -3
  528. package/dist/index.es45.js.map +1 -1
  529. package/dist/index.es453.js +1 -1
  530. package/dist/index.es454.js +1 -1
  531. package/dist/index.es455.js +10 -0
  532. package/dist/index.es455.js.map +1 -0
  533. package/dist/index.es456.js +25 -5
  534. package/dist/index.es456.js.map +1 -1
  535. package/dist/index.es457.js +64 -23
  536. package/dist/index.es457.js.map +1 -1
  537. package/dist/index.es458.js +27 -65
  538. package/dist/index.es458.js.map +1 -1
  539. package/dist/index.es459.js +32 -29
  540. package/dist/index.es459.js.map +1 -1
  541. package/dist/index.es460.js +620 -31
  542. package/dist/index.es460.js.map +1 -1
  543. package/dist/index.es461.js +10 -621
  544. package/dist/index.es461.js.map +1 -1
  545. package/dist/index.es463.js.map +1 -1
  546. package/dist/index.es467.js +1 -1
  547. package/dist/index.es468.js +2 -2
  548. package/dist/index.es469.js +1 -1
  549. package/dist/index.es47.js.map +1 -1
  550. package/dist/index.es470.js +5 -5
  551. package/dist/index.es471.js +3 -3
  552. package/dist/index.es472.js +2 -2
  553. package/dist/index.es474.js +3 -3
  554. package/dist/index.es476.js +1 -1
  555. package/dist/index.es48.js +25 -23
  556. package/dist/index.es48.js.map +1 -1
  557. package/dist/index.es487.js +5 -0
  558. package/dist/index.es487.js.map +1 -0
  559. package/dist/index.es488.js +5 -0
  560. package/dist/index.es488.js.map +1 -0
  561. package/dist/index.es49.js.map +1 -1
  562. package/dist/index.es497.js +14 -0
  563. package/dist/index.es497.js.map +1 -0
  564. package/dist/index.es498.js +49 -0
  565. package/dist/index.es498.js.map +1 -0
  566. package/dist/index.es499.js +17 -0
  567. package/dist/index.es499.js.map +1 -0
  568. package/dist/index.es500.js +215 -71
  569. package/dist/index.es500.js.map +1 -1
  570. package/dist/index.es501.js +177 -5
  571. package/dist/index.es501.js.map +1 -1
  572. package/dist/index.es502.js +4 -2
  573. package/dist/index.es502.js.map +1 -1
  574. package/dist/index.es503.js +10 -2030
  575. package/dist/index.es503.js.map +1 -1
  576. package/dist/index.es504.js +202 -57
  577. package/dist/index.es504.js.map +1 -1
  578. package/dist/index.es505.js +21 -188
  579. package/dist/index.es505.js.map +1 -1
  580. package/dist/index.es506.js +396 -0
  581. package/dist/index.es506.js.map +1 -0
  582. package/dist/index.es507.js +9 -0
  583. package/dist/index.es507.js.map +1 -0
  584. package/dist/index.es508.js +28 -0
  585. package/dist/index.es508.js.map +1 -0
  586. package/dist/index.es509.js +32 -0
  587. package/dist/index.es509.js.map +1 -0
  588. package/dist/index.es51.js.map +1 -1
  589. package/dist/index.es510.js +5 -5
  590. package/dist/index.es510.js.map +1 -1
  591. package/dist/index.es511.js +5 -3675
  592. package/dist/index.es511.js.map +1 -1
  593. package/dist/index.es512.js +3 -2
  594. package/dist/index.es512.js.map +1 -1
  595. package/dist/index.es513.js +24 -2
  596. package/dist/index.es513.js.map +1 -1
  597. package/dist/index.es514.js +110 -2
  598. package/dist/index.es514.js.map +1 -1
  599. package/dist/index.es515.js +15 -5
  600. package/dist/index.es515.js.map +1 -1
  601. package/dist/index.es516.js +497 -495
  602. package/dist/index.es516.js.map +1 -1
  603. package/dist/index.es517.js +126 -10
  604. package/dist/index.es517.js.map +1 -1
  605. package/dist/index.es518.js +125 -42
  606. package/dist/index.es518.js.map +1 -1
  607. package/dist/index.es519.js +64 -13
  608. package/dist/index.es519.js.map +1 -1
  609. package/dist/index.es52.js.map +1 -1
  610. package/dist/index.es520.js +66 -215
  611. package/dist/index.es520.js.map +1 -1
  612. package/dist/index.es521.js +8 -177
  613. package/dist/index.es521.js.map +1 -1
  614. package/dist/index.es522.js +14 -4
  615. package/dist/index.es522.js.map +1 -1
  616. package/dist/index.es523.js +62 -12
  617. package/dist/index.es523.js.map +1 -1
  618. package/dist/index.es524.js +7 -2
  619. package/dist/index.es524.js.map +1 -1
  620. package/dist/index.es525.js +16 -10
  621. package/dist/index.es525.js.map +1 -1
  622. package/dist/index.es526.js +13 -178
  623. package/dist/index.es526.js.map +1 -1
  624. package/dist/index.es527.js +35 -3
  625. package/dist/index.es527.js.map +1 -1
  626. package/dist/index.es528.js +5 -133
  627. package/dist/index.es528.js.map +1 -1
  628. package/dist/index.es529.js +2 -205
  629. package/dist/index.es529.js.map +1 -1
  630. package/dist/index.es53.js.map +1 -1
  631. package/dist/index.es530.js +3 -22
  632. package/dist/index.es530.js.map +1 -1
  633. package/dist/index.es531.js +6 -392
  634. package/dist/index.es531.js.map +1 -1
  635. package/dist/index.es532.js +5 -24
  636. package/dist/index.es532.js.map +1 -1
  637. package/dist/index.es533.js +5 -29
  638. package/dist/index.es533.js.map +1 -1
  639. package/dist/index.es534.js +32 -5
  640. package/dist/index.es534.js.map +1 -1
  641. package/dist/index.es535.js +234 -75
  642. package/dist/index.es535.js.map +1 -1
  643. package/dist/index.es536.js +4 -5
  644. package/dist/index.es536.js.map +1 -1
  645. package/dist/index.es537.js +5 -16
  646. package/dist/index.es537.js.map +1 -1
  647. package/dist/index.es538.js +10 -13
  648. package/dist/index.es538.js.map +1 -1
  649. package/dist/index.es539.js +50 -30
  650. package/dist/index.es539.js.map +1 -1
  651. package/dist/index.es54.js.map +1 -1
  652. package/dist/index.es540.js +8 -5
  653. package/dist/index.es540.js.map +1 -1
  654. package/dist/index.es541.js +6 -2
  655. package/dist/index.es541.js.map +1 -1
  656. package/dist/index.es542.js +533 -3
  657. package/dist/index.es542.js.map +1 -1
  658. package/dist/index.es543.js +14 -7
  659. package/dist/index.es543.js.map +1 -1
  660. package/dist/index.es544.js +2 -6
  661. package/dist/index.es544.js.map +1 -1
  662. package/dist/index.es545.js +37 -5
  663. package/dist/index.es545.js.map +1 -1
  664. package/dist/index.es546.js +2 -32
  665. package/dist/index.es546.js.map +1 -1
  666. package/dist/index.es547.js +249 -218
  667. package/dist/index.es547.js.map +1 -1
  668. package/dist/index.es548.js +3 -4
  669. package/dist/index.es548.js.map +1 -1
  670. package/dist/index.es549.js +30 -5
  671. package/dist/index.es549.js.map +1 -1
  672. package/dist/index.es550.js +3 -9
  673. package/dist/index.es550.js.map +1 -1
  674. package/dist/index.es551.js +20 -53
  675. package/dist/index.es551.js.map +1 -1
  676. package/dist/index.es552.js +39 -7
  677. package/dist/index.es552.js.map +1 -1
  678. package/dist/index.es553.js +2 -6
  679. package/dist/index.es553.js.map +1 -1
  680. package/dist/index.es554.js +4 -532
  681. package/dist/index.es554.js.map +1 -1
  682. package/dist/index.es555.js +2 -14
  683. package/dist/index.es555.js.map +1 -1
  684. package/dist/index.es556.js +2 -2
  685. package/dist/index.es556.js.map +1 -1
  686. package/dist/index.es557.js +2 -37
  687. package/dist/index.es557.js.map +1 -1
  688. package/dist/index.es558.js +6 -2
  689. package/dist/index.es558.js.map +1 -1
  690. package/dist/index.es559.js +13 -270
  691. package/dist/index.es559.js.map +1 -1
  692. package/dist/index.es56.js.map +1 -1
  693. package/dist/index.es560.js +2 -3
  694. package/dist/index.es560.js.map +1 -1
  695. package/dist/index.es561.js +2 -30
  696. package/dist/index.es561.js.map +1 -1
  697. package/dist/index.es562.js +3 -5
  698. package/dist/index.es562.js.map +1 -1
  699. package/dist/index.es563.js +2 -3
  700. package/dist/index.es563.js.map +1 -1
  701. package/dist/index.es564.js +3 -23
  702. package/dist/index.es564.js.map +1 -1
  703. package/dist/index.es565.js +70 -106
  704. package/dist/index.es565.js.map +1 -1
  705. package/dist/index.es566.js +2 -16
  706. package/dist/index.es566.js.map +1 -1
  707. package/dist/index.es57.js.map +1 -1
  708. package/dist/index.es572.js +23 -2
  709. package/dist/index.es572.js.map +1 -1
  710. package/dist/index.es573.js +4 -2
  711. package/dist/index.es573.js.map +1 -1
  712. package/dist/index.es574.js +13 -2
  713. package/dist/index.es574.js.map +1 -1
  714. package/dist/index.es575.js +28 -2
  715. package/dist/index.es575.js.map +1 -1
  716. package/dist/index.es576.js +5 -2
  717. package/dist/index.es576.js.map +1 -1
  718. package/dist/index.es577.js +3 -3
  719. package/dist/index.es577.js.map +1 -1
  720. package/dist/index.es578.js +2 -2
  721. package/dist/index.es578.js.map +1 -1
  722. package/dist/index.es579.js +2031 -3
  723. package/dist/index.es579.js.map +1 -1
  724. package/dist/index.es580.js +57 -62
  725. package/dist/index.es580.js.map +1 -1
  726. package/dist/index.es581.js +189 -69
  727. package/dist/index.es581.js.map +1 -1
  728. package/dist/index.es586.js +4 -126
  729. package/dist/index.es586.js.map +1 -1
  730. package/dist/index.es587.js +3673 -127
  731. package/dist/index.es587.js.map +1 -1
  732. package/dist/index.es588.js +2 -4
  733. package/dist/index.es588.js.map +1 -1
  734. package/dist/index.es589.js +6 -3
  735. package/dist/index.es589.js.map +1 -1
  736. package/dist/index.es59.js.map +1 -1
  737. package/dist/index.es590.js +521 -2
  738. package/dist/index.es590.js.map +1 -1
  739. package/dist/index.es591.js +9 -3
  740. package/dist/index.es591.js.map +1 -1
  741. package/dist/index.es592.js +176 -21
  742. package/dist/index.es592.js.map +1 -1
  743. package/dist/index.es593.js +4 -23
  744. package/dist/index.es593.js.map +1 -1
  745. package/dist/index.es594.js +132 -12
  746. package/dist/index.es594.js.map +1 -1
  747. package/dist/index.es595.js +2 -30
  748. package/dist/index.es595.js.map +1 -1
  749. package/dist/index.es596.js +83 -5
  750. package/dist/index.es596.js.map +1 -1
  751. package/dist/index.es60.js.map +1 -1
  752. package/dist/index.es61.js.map +1 -1
  753. package/dist/index.es62.js.map +1 -1
  754. package/dist/index.es65.js.map +1 -1
  755. package/dist/index.es67.js.map +1 -1
  756. package/dist/index.es70.js.map +1 -1
  757. package/dist/index.es72.js.map +1 -1
  758. package/dist/index.es74.js.map +1 -1
  759. package/dist/index.es75.js.map +1 -1
  760. package/dist/index.es76.js.map +1 -1
  761. package/dist/index.es77.js.map +1 -1
  762. package/dist/index.es78.js.map +1 -1
  763. package/dist/index.es79.js.map +1 -1
  764. package/dist/index.es8.js.map +1 -1
  765. package/dist/index.es80.js.map +1 -1
  766. package/dist/index.es81.js.map +1 -1
  767. package/dist/index.es82.js.map +1 -1
  768. package/dist/index.es83.js.map +1 -1
  769. package/dist/index.es84.js.map +1 -1
  770. package/dist/index.es85.js.map +1 -1
  771. package/dist/index.es86.js.map +1 -1
  772. package/dist/index.es87.js.map +1 -1
  773. package/dist/index.es88.js.map +1 -1
  774. package/dist/index.es89.js.map +1 -1
  775. package/dist/index.es90.js.map +1 -1
  776. package/dist/index.es91.js.map +1 -1
  777. package/dist/index.es92.js.map +1 -1
  778. package/dist/index.es93.js.map +1 -1
  779. package/dist/index.es94.js.map +1 -1
  780. package/dist/index.es95.js.map +1 -1
  781. package/dist/index.es96.js.map +1 -1
  782. package/dist/index.es97.js.map +1 -1
  783. package/dist/index.es98.js.map +1 -1
  784. package/dist/index.es99.js.map +1 -1
  785. package/package.json +115 -115
  786. package/readme.md +42 -42
  787. package/dist/index.cjs462.js +0 -2
  788. package/dist/index.cjs462.js.map +0 -1
  789. package/dist/index.cjs567.js +0 -6
  790. package/dist/index.cjs567.js.map +0 -1
  791. package/dist/index.cjs568.js +0 -2
  792. package/dist/index.cjs568.js.map +0 -1
  793. package/dist/index.cjs569.js +0 -2
  794. package/dist/index.cjs569.js.map +0 -1
  795. package/dist/index.cjs570.js +0 -2
  796. package/dist/index.cjs570.js.map +0 -1
  797. package/dist/index.cjs571.js +0 -2
  798. package/dist/index.cjs571.js.map +0 -1
  799. package/dist/index.cjs582.js +0 -2
  800. package/dist/index.cjs582.js.map +0 -1
  801. package/dist/index.cjs583.js +0 -2
  802. package/dist/index.cjs583.js.map +0 -1
  803. package/dist/index.cjs584.js +0 -2
  804. package/dist/index.cjs584.js.map +0 -1
  805. package/dist/index.cjs585.js +0 -2
  806. package/dist/index.cjs585.js.map +0 -1
  807. package/dist/index.es462.js +0 -14
  808. package/dist/index.es462.js.map +0 -1
  809. package/dist/index.es567.js +0 -43
  810. package/dist/index.es567.js.map +0 -1
  811. package/dist/index.es568.js +0 -5
  812. package/dist/index.es568.js.map +0 -1
  813. package/dist/index.es569.js +0 -8
  814. package/dist/index.es569.js.map +0 -1
  815. package/dist/index.es570.js +0 -9
  816. package/dist/index.es570.js.map +0 -1
  817. package/dist/index.es571.js +0 -19
  818. package/dist/index.es571.js.map +0 -1
  819. package/dist/index.es582.js +0 -12
  820. package/dist/index.es582.js.map +0 -1
  821. package/dist/index.es583.js +0 -17
  822. package/dist/index.es583.js.map +0 -1
  823. package/dist/index.es584.js +0 -65
  824. package/dist/index.es584.js.map +0 -1
  825. package/dist/index.es585.js +0 -526
  826. package/dist/index.es585.js.map +0 -1
  827. /package/dist/components/ui/{CardMapDoctorV2/CardMapDoctorV2.css → CardMapDoctor/CardMapDoctor.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs143.js","sources":["../src/sections/Documents/index.tsx"],"sourcesContent":["import { CardFile, CardFileProps, Section } from \"@/components\";\r\nimport \"./Documents.scss\";\r\nimport { TypographyKeys } from \"@theme/typography.ts\";\r\nimport { ColorKeys } from \"@theme/colors.ts\";\r\nimport { ReactNode } from \"react\";\r\n\r\ntype Props = {\r\n title?: string;\r\n description?: string | ReactNode;\r\n items: CardFileProps[];\r\n colorTitle?: ColorKeys;\r\n fontSizeTitle?: TypographyKeys;\r\n};\r\n\r\nexport const Documents = ({\r\n title,\r\n description,\r\n items = [],\r\n colorTitle = \"primary\",\r\n fontSizeTitle = \"2\",\r\n}: Props) => {\r\n return (\r\n <Section className=\"ui-document-section\">\r\n <div className=\"ui-document-items-section-title\">\r\n <Section.Title\r\n fs={fontSizeTitle}\r\n mdFs={\"2\"}\r\n as={\"h3\"}\r\n color={colorTitle}\r\n >\r\n {title}\r\n </Section.Title>\r\n </div>\r\n {description && (\r\n <Section.Description className=\"ui-document-section-description mb-x40\">\r\n {description}\r\n </Section.Description>\r\n )}\r\n <ul\r\n role=\"list\"\r\n aria-label={`Lista di ${title}`}\r\n className={`list-style-none ui-document-items-layout`}\r\n >\r\n {items?.map((item, index) => {\r\n return (\r\n <li key={index}>\r\n <CardFile\r\n action={item?.action}\r\n issued_at={item.issued_at}\r\n title={item.title}\r\n file={item.file}\r\n description={item.description}\r\n asLink={item.asLink}\r\n />\r\n </li>\r\n );\r\n })}\r\n </ul>\r\n </Section>\r\n );\r\n};\r\n"],"names":["Documents","title","description","items","colorTitle","fontSizeTitle","jsxs","Section","jsx","item","index","CardFile"],"mappings":"qNAcaA,EAAY,CAAC,CACxB,MAAAC,EACA,YAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,WAAAC,EAAa,UACb,cAAAC,EAAgB,GAClB,IAEIC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,sBACjB,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,kCACb,SAAAA,EAAA,kBAAA,IAACD,EAAAA,QAAQ,MAAR,CACC,GAAIF,EACJ,KAAM,IACN,GAAI,KACJ,MAAOD,EAEN,SAAAH,CAAA,CAAA,EAEL,EACCC,GACEM,EAAAA,kBAAAA,IAAAD,EAAAA,QAAQ,YAAR,CAAoB,UAAU,yCAC5B,SACHL,EAAA,EAEFM,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYP,CAAK,GAC7B,UAAW,2CAEV,SAAOE,GAAA,YAAAA,EAAA,IAAI,CAACM,EAAMC,4BAEd,KACC,CAAA,SAAAF,EAAA,kBAAA,IAACG,EAAA,SAAA,CACC,OAAQF,GAAA,YAAAA,EAAM,OACd,UAAWA,EAAK,UAChB,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,YAAaA,EAAK,YAClB,OAAQA,EAAK,MAAA,IAPRC,CAST,EAEH,CAAA,CACH,EACF"}
1
+ {"version":3,"file":"index.cjs143.js","sources":["../src/sections/Documents/index.tsx"],"sourcesContent":["import { CardFile, CardFileProps, Section } from \"@/components\";\nimport \"./Documents.scss\";\nimport { TypographyKeys } from \"@theme/typography.ts\";\nimport { ColorKeys } from \"@theme/colors.ts\";\nimport { ReactNode } from \"react\";\n\ntype Props = {\n title?: string;\n description?: string | ReactNode;\n items: CardFileProps[];\n colorTitle?: ColorKeys;\n fontSizeTitle?: TypographyKeys;\n};\n\nexport const Documents = ({\n title,\n description,\n items = [],\n colorTitle = \"primary\",\n fontSizeTitle = \"2\",\n}: Props) => {\n return (\n <Section className=\"ui-document-section\">\n <div className=\"ui-document-items-section-title\">\n <Section.Title\n fs={fontSizeTitle}\n mdFs={\"2\"}\n as={\"h3\"}\n color={colorTitle}\n >\n {title}\n </Section.Title>\n </div>\n {description && (\n <Section.Description className=\"ui-document-section-description mb-x40\">\n {description}\n </Section.Description>\n )}\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className={`list-style-none ui-document-items-layout`}\n >\n {items?.map((item, index) => {\n return (\n <li key={index}>\n <CardFile\n action={item?.action}\n issued_at={item.issued_at}\n title={item.title}\n file={item.file}\n description={item.description}\n asLink={item.asLink}\n />\n </li>\n );\n })}\n </ul>\n </Section>\n );\n};\n"],"names":["Documents","title","description","items","colorTitle","fontSizeTitle","jsxs","Section","jsx","item","index","CardFile"],"mappings":"qNAcaA,EAAY,CAAC,CACxB,MAAAC,EACA,YAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,WAAAC,EAAa,UACb,cAAAC,EAAgB,GAClB,IAEIC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,sBACjB,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,kCACb,SAAAA,EAAA,kBAAA,IAACD,EAAAA,QAAQ,MAAR,CACC,GAAIF,EACJ,KAAM,IACN,GAAI,KACJ,MAAOD,EAEN,SAAAH,CAAA,CAAA,EAEL,EACCC,GACEM,EAAAA,kBAAAA,IAAAD,EAAAA,QAAQ,YAAR,CAAoB,UAAU,yCAC5B,SACHL,EAAA,EAEFM,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYP,CAAK,GAC7B,UAAW,2CAEV,SAAOE,GAAA,YAAAA,EAAA,IAAI,CAACM,EAAMC,4BAEd,KACC,CAAA,SAAAF,EAAA,kBAAA,IAACG,EAAA,SAAA,CACC,OAAQF,GAAA,YAAAA,EAAM,OACd,UAAWA,EAAK,UAChB,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,YAAaA,EAAK,YAClB,OAAQA,EAAK,MAAA,IAPRC,CAST,EAEH,CAAA,CACH,EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs144.js","sources":["../src/sections/Tags/index.tsx"],"sourcesContent":["import { Section, TagsGroup } from \"@/components\";\r\nimport \"./Tags.scss\";\r\n\r\ntype Props = {\r\n title: string;\r\n items: any[];\r\n};\r\n\r\nexport const Tags = ({ title, items = [] }: Props) => {\r\n return (\r\n <Section className=\"ui-tags-section\">\r\n <Section.Title\r\n fs={\"6\"}\r\n mdFs={\"6\"}\r\n as={\"h3\"}\r\n color={\"slate-28\"}\r\n className=\"ui-tags-items-section-title\"\r\n >\r\n {title}\r\n </Section.Title>\r\n <TagsGroup topics={items} />\r\n </Section>\r\n );\r\n};\r\n"],"names":["Tags","title","items","jsxs","Section","jsx","TagsGroup"],"mappings":"qNAQaA,EAAO,CAAC,CAAE,MAAAC,EAAO,MAAAC,EAAQ,MAElCC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,kBACjB,SAAA,CAAAC,EAAA,kBAAA,IAACD,EAAAA,QAAQ,MAAR,CACC,GAAI,IACJ,KAAM,IACN,GAAI,KACJ,MAAO,WACP,UAAU,8BAET,SAAAH,CAAA,CACH,EACAI,EAAAA,kBAAAA,IAACC,EAAU,UAAA,CAAA,OAAQJ,CAAO,CAAA,CAAA,EAC5B"}
1
+ {"version":3,"file":"index.cjs144.js","sources":["../src/sections/Tags/index.tsx"],"sourcesContent":["import { Section, TagsGroup } from \"@/components\";\nimport \"./Tags.scss\";\n\ntype Props = {\n title: string;\n items: any[];\n};\n\nexport const Tags = ({ title, items = [] }: Props) => {\n return (\n <Section className=\"ui-tags-section\">\n <Section.Title\n fs={\"6\"}\n mdFs={\"6\"}\n as={\"h3\"}\n color={\"slate-28\"}\n className=\"ui-tags-items-section-title\"\n >\n {title}\n </Section.Title>\n <TagsGroup topics={items} />\n </Section>\n );\n};\n"],"names":["Tags","title","items","jsxs","Section","jsx","TagsGroup"],"mappings":"qNAQaA,EAAO,CAAC,CAAE,MAAAC,EAAO,MAAAC,EAAQ,MAElCC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,kBACjB,SAAA,CAAAC,EAAA,kBAAA,IAACD,EAAAA,QAAQ,MAAR,CACC,GAAI,IACJ,KAAM,IACN,GAAI,KACJ,MAAO,WACP,UAAU,8BAET,SAAAH,CAAA,CACH,EACAI,EAAAA,kBAAAA,IAACC,EAAU,UAAA,CAAA,OAAQJ,CAAO,CAAA,CAAA,EAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs145.js","sources":["../src/sections/HTMLBalancer/index.tsx"],"sourcesContent":["import DOMPurify from \"isomorphic-dompurify\";\r\nimport Balancer from \"react-wrap-balancer\";\r\n\r\nexport const HTMLBalancer = (\r\n html: string,\r\n as: string | undefined = undefined,\r\n) => {\r\n const sanitized = DOMPurify.sanitize(html);\r\n const innerContent = sanitized.replace(\r\n /^<([a-z][a-z0-9]*)([^>]*)>(.*)<\\/\\1>$/i,\r\n \"$3\",\r\n );\r\n return (\r\n <Balancer dangerouslySetInnerHTML={{ __html: innerContent }} as={as} />\r\n );\r\n};\r\n\r\nexport const HTML = (html: string, as: \"div\" | \"p\" = \"p\") => {\r\n const sanitized = DOMPurify.sanitize(html, {\r\n ADD_ATTR: [\"target\"],\r\n });\r\n const Component = as;\r\n const innerContent = sanitized.replace(\r\n /^<([a-z][a-z0-9]*)([^>]*)>(.*)<\\/\\1>$/i,\r\n \"$3\",\r\n );\r\n return <Component dangerouslySetInnerHTML={{ __html: innerContent }} />;\r\n};\r\n"],"names":["HTMLBalancer","html","as","innerContent","DOMPurify","Balancer","HTML","sanitized","Component"],"mappings":"mLAGaA,EAAe,CAC1BC,EACAC,EAAyB,SACtB,CAEH,MAAMC,EADYC,EAAU,SAASH,CAAI,EACV,QAC7B,yCACA,IACF,EACA,+BACGI,EAAS,QAAA,CAAA,wBAAyB,CAAE,OAAQF,CAAA,EAAgB,GAAAD,EAAQ,CAEzE,EAEaI,EAAO,CAACL,EAAcC,EAAkB,MAAQ,CACrD,MAAAK,EAAYH,EAAU,SAASH,EAAM,CACzC,SAAU,CAAC,QAAQ,CAAA,CACpB,EACKO,EAAYN,EACZC,EAAeI,EAAU,QAC7B,yCACA,IACF,EACA,+BAAQC,EAAU,CAAA,wBAAyB,CAAE,OAAQL,GAAgB,CACvE"}
1
+ {"version":3,"file":"index.cjs145.js","sources":["../src/sections/HTMLBalancer/index.tsx"],"sourcesContent":["import DOMPurify from \"isomorphic-dompurify\";\nimport Balancer from \"react-wrap-balancer\";\n\nexport const HTMLBalancer = (\n html: string,\n as: string | undefined = undefined,\n) => {\n const sanitized = DOMPurify.sanitize(html);\n const innerContent = sanitized.replace(\n /^<([a-z][a-z0-9]*)([^>]*)>(.*)<\\/\\1>$/i,\n \"$3\",\n );\n return (\n <Balancer dangerouslySetInnerHTML={{ __html: innerContent }} as={as} />\n );\n};\n\nexport const HTML = (html: string, as: \"div\" | \"p\" = \"p\") => {\n const sanitized = DOMPurify.sanitize(html, {\n ADD_ATTR: [\"target\"],\n });\n const Component = as;\n const innerContent = sanitized.replace(\n /^<([a-z][a-z0-9]*)([^>]*)>(.*)<\\/\\1>$/i,\n \"$3\",\n );\n return <Component dangerouslySetInnerHTML={{ __html: innerContent }} />;\n};\n"],"names":["HTMLBalancer","html","as","innerContent","DOMPurify","Balancer","HTML","sanitized","Component"],"mappings":"mLAGaA,EAAe,CAC1BC,EACAC,EAAyB,SACtB,CAEH,MAAMC,EADYC,EAAU,SAASH,CAAI,EACV,QAC7B,yCACA,IACF,EACA,+BACGI,EAAS,QAAA,CAAA,wBAAyB,CAAE,OAAQF,CAAA,EAAgB,GAAAD,EAAQ,CAEzE,EAEaI,EAAO,CAACL,EAAcC,EAAkB,MAAQ,CACrD,MAAAK,EAAYH,EAAU,SAASH,EAAM,CACzC,SAAU,CAAC,QAAQ,CAAA,CACpB,EACKO,EAAYN,EACZC,EAAeI,EAAU,QAC7B,yCACA,IACF,EACA,+BAAQC,EAAU,CAAA,wBAAyB,CAAE,OAAQL,GAAgB,CACvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs146.js","sources":["../src/sections/Insights/index.tsx"],"sourcesContent":["import { CardPreviewProps, CardPreview, Section } from \"@/components\";\r\nimport { ColorKeys } from \"@/theme/colors\";\r\nimport \"./Insights.scss\";\r\n\r\ntype Props = {\r\n title: string;\r\n items: CardPreviewProps[];\r\n colorTitle?: ColorKeys;\r\n showBackgroundRectangle?: boolean;\r\n};\r\n\r\nexport const Insights = ({\r\n title,\r\n items = [],\r\n colorTitle = \"slate-20\",\r\n showBackgroundRectangle = true,\r\n}: Props) => {\r\n return (\r\n <Section className=\"ui-insights-section\">\r\n {showBackgroundRectangle && (\r\n <div className=\"ui-insights-background-rectangle\"></div>\r\n )}\r\n <div className=\"ui-insights-items-section-title\">\r\n <Section.Title\r\n className=\"ui-insights-items-section-title\"\r\n as={\"h3\"}\r\n color={colorTitle}\r\n >\r\n {title}\r\n </Section.Title>\r\n </div>\r\n <ul\r\n role=\"list\"\r\n aria-label={`Lista di ${title}`}\r\n className={`list-style-none ui-insights-items-layout`}\r\n >\r\n {items?.map((item, index) => {\r\n return (\r\n <li key={index}>\r\n <CardPreview {...item} />\r\n </li>\r\n );\r\n })}\r\n </ul>\r\n </Section>\r\n );\r\n};\r\n"],"names":["Insights","title","items","colorTitle","showBackgroundRectangle","jsxs","Section","jsx","item","index","CardPreview"],"mappings":"qNAWaA,EAAW,CAAC,CACvB,MAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,WAAAC,EAAa,WACb,wBAAAC,EAA0B,EAC5B,IAEIC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,sBAChB,SAAA,CACCF,GAAAG,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCAAmC,CAAA,EAEpDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCACb,SAAAA,EAAA,kBAAA,IAACD,EAAAA,QAAQ,MAAR,CACC,UAAU,kCACV,GAAI,KACJ,MAAOH,EAEN,SAAAF,CAAA,CAAA,EAEL,EACAM,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYN,CAAK,GAC7B,UAAW,2CAEV,SAAOC,GAAA,YAAAA,EAAA,IAAI,CAACM,EAAMC,4BAEd,KACC,CAAA,SAAAF,EAAA,kBAAA,IAACG,eAAa,GAAGF,CAAA,CAAM,GADhBC,CAET,EAEH,CAAA,CACH,EACF"}
1
+ {"version":3,"file":"index.cjs146.js","sources":["../src/sections/Insights/index.tsx"],"sourcesContent":["import { CardPreviewProps, CardPreview, Section } from \"@/components\";\nimport { ColorKeys } from \"@/theme/colors\";\nimport \"./Insights.scss\";\n\ntype Props = {\n title: string;\n items: CardPreviewProps[];\n colorTitle?: ColorKeys;\n showBackgroundRectangle?: boolean;\n};\n\nexport const Insights = ({\n title,\n items = [],\n colorTitle = \"slate-20\",\n showBackgroundRectangle = true,\n}: Props) => {\n return (\n <Section className=\"ui-insights-section\">\n {showBackgroundRectangle && (\n <div className=\"ui-insights-background-rectangle\"></div>\n )}\n <div className=\"ui-insights-items-section-title\">\n <Section.Title\n className=\"ui-insights-items-section-title\"\n as={\"h3\"}\n color={colorTitle}\n >\n {title}\n </Section.Title>\n </div>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className={`list-style-none ui-insights-items-layout`}\n >\n {items?.map((item, index) => {\n return (\n <li key={index}>\n <CardPreview {...item} />\n </li>\n );\n })}\n </ul>\n </Section>\n );\n};\n"],"names":["Insights","title","items","colorTitle","showBackgroundRectangle","jsxs","Section","jsx","item","index","CardPreview"],"mappings":"qNAWaA,EAAW,CAAC,CACvB,MAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,WAAAC,EAAa,WACb,wBAAAC,EAA0B,EAC5B,IAEIC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,sBAChB,SAAA,CACCF,GAAAG,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCAAmC,CAAA,EAEpDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCACb,SAAAA,EAAA,kBAAA,IAACD,EAAAA,QAAQ,MAAR,CACC,UAAU,kCACV,GAAI,KACJ,MAAOH,EAEN,SAAAF,CAAA,CAAA,EAEL,EACAM,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYN,CAAK,GAC7B,UAAW,2CAEV,SAAOC,GAAA,YAAAA,EAAA,IAAI,CAACM,EAAMC,4BAEd,KACC,CAAA,SAAAF,EAAA,kBAAA,IAACG,eAAa,GAAGF,CAAA,CAAM,GADhBC,CAET,EAEH,CAAA,CACH,EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs147.js","sources":["../src/sections/ImagesDescription/index.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Section } from \"../../components\";\r\nimport \"./ImagesDescription.scss\";\r\n\r\nexport const IMAGES_DESCRIPTION_LAYOUTS = {\r\n // Layout FULL (1 colonna)\r\n FULL_1_1: \"FULL_1_1\",\r\n FULL_4_3: \"FULL_4_3\",\r\n FULL_16_9: \"FULL_16_9\",\r\n FULL_21_9: \"FULL_21_9\",\r\n FULL_32_9: \"FULL_32_9\",\r\n // Layout TWO_COL (2 colonne)\r\n TWO_COL_1_1: \"TWO_COL_1_1\",\r\n TWO_COL_4_3: \"TWO_COL_4_3\",\r\n TWO_COL_16_9: \"TWO_COL_16_9\",\r\n TWO_COL_21_9: \"TWO_COL_21_9\",\r\n TWO_COL_32_9: \"TWO_COL_32_9\",\r\n // Layout THREE_COL (3 colonne)\r\n THREE_COL_1_1: \"THREE_COL_1_1\",\r\n THREE_COL_4_3: \"THREE_COL_4_3\",\r\n THREE_COL_16_9: \"THREE_COL_16_9\",\r\n THREE_COL_21_9: \"THREE_COL_21_9\",\r\n THREE_COL_32_9: \"THREE_COL_32_9\",\r\n} as const;\r\n\r\nexport type ImagesDescriptionLayout =\r\n (typeof IMAGES_DESCRIPTION_LAYOUTS)[keyof typeof IMAGES_DESCRIPTION_LAYOUTS];\r\n\r\nexport interface ImageDescriptionItem {\r\n _id: string;\r\n image: {\r\n src: string;\r\n alt: string;\r\n title?: string;\r\n };\r\n description: string;\r\n}\r\n\r\nexport interface ImagesDescriptionProps {\r\n title: ReactNode;\r\n items: ImageDescriptionItem[];\r\n layout?: ImagesDescriptionLayout;\r\n className?: string;\r\n}\r\n\r\nexport const ImagesDescription = ({\r\n title,\r\n items = [],\r\n layout = IMAGES_DESCRIPTION_LAYOUTS.FULL_1_1,\r\n className,\r\n}: ImagesDescriptionProps) => {\r\n const getLayoutClassName = (l: ImagesDescriptionLayout) => {\r\n switch (l) {\r\n // Layout FULL (1 colonna)\r\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_1_1:\r\n return \"images-description-layout-full-1-1\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_4_3:\r\n return \"images-description-layout-full-4-3\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_16_9:\r\n return \"images-description-layout-full-16-9\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_21_9:\r\n return \"images-description-layout-full-21-9\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_32_9:\r\n return \"images-description-layout-full-32-9\";\r\n\r\n // Layout TWO_COL (2 colonne)\r\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_1_1:\r\n return \"images-description-layout-two-col-1-1\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_4_3:\r\n return \"images-description-layout-two-col-4-3\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_16_9:\r\n return \"images-description-layout-two-col-16-9\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_21_9:\r\n return \"images-description-layout-two-col-21-9\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_32_9:\r\n return \"images-description-layout-two-col-32-9\";\r\n\r\n // Layout THREE_COL (3 colonne)\r\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_1_1:\r\n return \"images-description-layout-three-col-1-1\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_4_3:\r\n return \"images-description-layout-three-col-4-3\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_16_9:\r\n return \"images-description-layout-three-col-16-9\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_21_9:\r\n return \"images-description-layout-three-col-21-9\";\r\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_32_9:\r\n return \"images-description-layout-three-col-32-9\";\r\n\r\n default:\r\n return \"\";\r\n }\r\n };\r\n\r\n /* const isFullLayout = layout.startsWith(\"FULL_\");\r\n const isThreeColLayout = layout.startsWith(\"THREE_COL_\");\r\n\r\n const limitedItems = isFullLayout\r\n ? items.slice(0, 1)\r\n : isThreeColLayout\r\n ? items.slice(0, 3)\r\n : items.slice(0, 2); */\r\n\r\n const layoutClassName = getLayoutClassName(layout);\r\n\r\n return (\r\n <Section className={clsx(\"base-col images-description-section\", className)}>\r\n <ul\r\n role=\"list\"\r\n aria-label={`Raccolta di ${title}`}\r\n className={`list-style-none ${layoutClassName}`}\r\n >\r\n {items?.map((item) => (\r\n <li key={item._id} className=\"images-description-item\">\r\n <div className=\"images-description-item-image-container\">\r\n <img\r\n src={item.image.src}\r\n alt={item.image.alt}\r\n title={item.image.title}\r\n className=\"images-description-item-image\"\r\n />\r\n </div>\r\n <div className=\"images-description-item-content\">\r\n <p className=\"images-description-item-description text-slate-28 fs-9\">\r\n {item.description}\r\n </p>\r\n </div>\r\n </li>\r\n ))}\r\n </ul>\r\n </Section>\r\n );\r\n};\r\n"],"names":["IMAGES_DESCRIPTION_LAYOUTS","ImagesDescription","title","items","layout","className","layoutClassName","l","Section","clsx","jsx","item","jsxs"],"mappings":"qNAKaA,EAA6B,CAExC,SAAU,WACV,SAAU,WACV,UAAW,YACX,UAAW,YACX,UAAW,YAEX,YAAa,cACb,YAAa,cACb,aAAc,eACd,aAAc,eACd,aAAc,eAEd,cAAe,gBACf,cAAe,gBACf,eAAgB,iBAChB,eAAgB,iBAChB,eAAgB,gBAClB,EAsBaC,EAAoB,CAAC,CAChC,MAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,OAAAC,EAASJ,EAA2B,SACpC,UAAAK,CACF,IAA8B,CAqDtB,MAAAC,GApDsBC,GAA+B,CACzD,OAAQA,EAAG,CAET,KAAKP,EAA2B,SACvB,MAAA,qCACT,KAAKA,EAA2B,SACvB,MAAA,qCACT,KAAKA,EAA2B,UACvB,MAAA,sCACT,KAAKA,EAA2B,UACvB,MAAA,sCACT,KAAKA,EAA2B,UACvB,MAAA,sCAGT,KAAKA,EAA2B,YACvB,MAAA,wCACT,KAAKA,EAA2B,YACvB,MAAA,wCACT,KAAKA,EAA2B,aACvB,MAAA,yCACT,KAAKA,EAA2B,aACvB,MAAA,yCACT,KAAKA,EAA2B,aACvB,MAAA,yCAGT,KAAKA,EAA2B,cACvB,MAAA,0CACT,KAAKA,EAA2B,cACvB,MAAA,0CACT,KAAKA,EAA2B,eACvB,MAAA,2CACT,KAAKA,EAA2B,eACvB,MAAA,2CACT,KAAKA,EAA2B,eACvB,MAAA,2CAET,QACS,MAAA,EAAA,CAEb,GAW2CI,CAAM,EAEjD,+BACGI,EAAQ,QAAA,CAAA,UAAWC,EAAK,KAAA,sCAAuCJ,CAAS,EACvE,SAAAK,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,eAAeR,CAAK,GAChC,UAAW,mBAAmBI,CAAe,GAE5C,0BAAO,IAAKK,GACVC,yBAAA,KAAA,CAAkB,UAAU,0BAC3B,SAAA,CAACF,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,0CACb,SAAAA,EAAA,kBAAA,IAAC,MAAA,CACC,IAAKC,EAAK,MAAM,IAChB,IAAKA,EAAK,MAAM,IAChB,MAAOA,EAAK,MAAM,MAClB,UAAU,+BAAA,CAAA,EAEd,EACAD,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCACb,SAAAA,EAAA,kBAAA,IAAC,KAAE,UAAU,yDACV,SAAKC,EAAA,WACR,CAAA,CACF,CAAA,CAAA,CAbO,EAAAA,EAAK,GAcd,EACD,CAAA,EAEL,CAEJ"}
1
+ {"version":3,"file":"index.cjs147.js","sources":["../src/sections/ImagesDescription/index.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\nimport clsx from \"clsx\";\nimport { Section } from \"../../components\";\nimport \"./ImagesDescription.scss\";\n\nexport const IMAGES_DESCRIPTION_LAYOUTS = {\n // Layout FULL (1 colonna)\n FULL_1_1: \"FULL_1_1\",\n FULL_4_3: \"FULL_4_3\",\n FULL_16_9: \"FULL_16_9\",\n FULL_21_9: \"FULL_21_9\",\n FULL_32_9: \"FULL_32_9\",\n // Layout TWO_COL (2 colonne)\n TWO_COL_1_1: \"TWO_COL_1_1\",\n TWO_COL_4_3: \"TWO_COL_4_3\",\n TWO_COL_16_9: \"TWO_COL_16_9\",\n TWO_COL_21_9: \"TWO_COL_21_9\",\n TWO_COL_32_9: \"TWO_COL_32_9\",\n // Layout THREE_COL (3 colonne)\n THREE_COL_1_1: \"THREE_COL_1_1\",\n THREE_COL_4_3: \"THREE_COL_4_3\",\n THREE_COL_16_9: \"THREE_COL_16_9\",\n THREE_COL_21_9: \"THREE_COL_21_9\",\n THREE_COL_32_9: \"THREE_COL_32_9\",\n} as const;\n\nexport type ImagesDescriptionLayout =\n (typeof IMAGES_DESCRIPTION_LAYOUTS)[keyof typeof IMAGES_DESCRIPTION_LAYOUTS];\n\nexport interface ImageDescriptionItem {\n _id: string;\n image: {\n src: string;\n alt: string;\n title?: string;\n };\n description: string;\n}\n\nexport interface ImagesDescriptionProps {\n title: ReactNode;\n items: ImageDescriptionItem[];\n layout?: ImagesDescriptionLayout;\n className?: string;\n}\n\nexport const ImagesDescription = ({\n title,\n items = [],\n layout = IMAGES_DESCRIPTION_LAYOUTS.FULL_1_1,\n className,\n}: ImagesDescriptionProps) => {\n const getLayoutClassName = (l: ImagesDescriptionLayout) => {\n switch (l) {\n // Layout FULL (1 colonna)\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_1_1:\n return \"images-description-layout-full-1-1\";\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_4_3:\n return \"images-description-layout-full-4-3\";\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_16_9:\n return \"images-description-layout-full-16-9\";\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_21_9:\n return \"images-description-layout-full-21-9\";\n case IMAGES_DESCRIPTION_LAYOUTS.FULL_32_9:\n return \"images-description-layout-full-32-9\";\n\n // Layout TWO_COL (2 colonne)\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_1_1:\n return \"images-description-layout-two-col-1-1\";\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_4_3:\n return \"images-description-layout-two-col-4-3\";\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_16_9:\n return \"images-description-layout-two-col-16-9\";\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_21_9:\n return \"images-description-layout-two-col-21-9\";\n case IMAGES_DESCRIPTION_LAYOUTS.TWO_COL_32_9:\n return \"images-description-layout-two-col-32-9\";\n\n // Layout THREE_COL (3 colonne)\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_1_1:\n return \"images-description-layout-three-col-1-1\";\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_4_3:\n return \"images-description-layout-three-col-4-3\";\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_16_9:\n return \"images-description-layout-three-col-16-9\";\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_21_9:\n return \"images-description-layout-three-col-21-9\";\n case IMAGES_DESCRIPTION_LAYOUTS.THREE_COL_32_9:\n return \"images-description-layout-three-col-32-9\";\n\n default:\n return \"\";\n }\n };\n\n /* const isFullLayout = layout.startsWith(\"FULL_\");\n const isThreeColLayout = layout.startsWith(\"THREE_COL_\");\n\n const limitedItems = isFullLayout\n ? items.slice(0, 1)\n : isThreeColLayout\n ? items.slice(0, 3)\n : items.slice(0, 2); */\n\n const layoutClassName = getLayoutClassName(layout);\n\n return (\n <Section className={clsx(\"base-col images-description-section\", className)}>\n <ul\n role=\"list\"\n aria-label={`Raccolta di ${title}`}\n className={`list-style-none ${layoutClassName}`}\n >\n {items?.map((item) => (\n <li key={item._id} className=\"images-description-item\">\n <div className=\"images-description-item-image-container\">\n <img\n src={item.image.src}\n alt={item.image.alt}\n title={item.image.title}\n className=\"images-description-item-image\"\n />\n </div>\n <div className=\"images-description-item-content\">\n <p className=\"images-description-item-description text-slate-28 fs-9\">\n {item.description}\n </p>\n </div>\n </li>\n ))}\n </ul>\n </Section>\n );\n};\n"],"names":["IMAGES_DESCRIPTION_LAYOUTS","ImagesDescription","title","items","layout","className","layoutClassName","l","Section","clsx","jsx","item","jsxs"],"mappings":"qNAKaA,EAA6B,CAExC,SAAU,WACV,SAAU,WACV,UAAW,YACX,UAAW,YACX,UAAW,YAEX,YAAa,cACb,YAAa,cACb,aAAc,eACd,aAAc,eACd,aAAc,eAEd,cAAe,gBACf,cAAe,gBACf,eAAgB,iBAChB,eAAgB,iBAChB,eAAgB,gBAClB,EAsBaC,EAAoB,CAAC,CAChC,MAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,OAAAC,EAASJ,EAA2B,SACpC,UAAAK,CACF,IAA8B,CAqDtB,MAAAC,GApDsBC,GAA+B,CACzD,OAAQA,EAAG,CAET,KAAKP,EAA2B,SACvB,MAAA,qCACT,KAAKA,EAA2B,SACvB,MAAA,qCACT,KAAKA,EAA2B,UACvB,MAAA,sCACT,KAAKA,EAA2B,UACvB,MAAA,sCACT,KAAKA,EAA2B,UACvB,MAAA,sCAGT,KAAKA,EAA2B,YACvB,MAAA,wCACT,KAAKA,EAA2B,YACvB,MAAA,wCACT,KAAKA,EAA2B,aACvB,MAAA,yCACT,KAAKA,EAA2B,aACvB,MAAA,yCACT,KAAKA,EAA2B,aACvB,MAAA,yCAGT,KAAKA,EAA2B,cACvB,MAAA,0CACT,KAAKA,EAA2B,cACvB,MAAA,0CACT,KAAKA,EAA2B,eACvB,MAAA,2CACT,KAAKA,EAA2B,eACvB,MAAA,2CACT,KAAKA,EAA2B,eACvB,MAAA,2CAET,QACS,MAAA,EAAA,CAEb,GAW2CI,CAAM,EAEjD,+BACGI,EAAQ,QAAA,CAAA,UAAWC,EAAK,KAAA,sCAAuCJ,CAAS,EACvE,SAAAK,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,eAAeR,CAAK,GAChC,UAAW,mBAAmBI,CAAe,GAE5C,0BAAO,IAAKK,GACVC,yBAAA,KAAA,CAAkB,UAAU,0BAC3B,SAAA,CAACF,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,0CACb,SAAAA,EAAA,kBAAA,IAAC,MAAA,CACC,IAAKC,EAAK,MAAM,IAChB,IAAKA,EAAK,MAAM,IAChB,MAAOA,EAAK,MAAM,MAClB,UAAU,+BAAA,CAAA,EAEd,EACAD,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCACb,SAAAA,EAAA,kBAAA,IAAC,KAAE,UAAU,yDACV,SAAKC,EAAA,WACR,CAAA,CACF,CAAA,CAAA,CAbO,EAAAA,EAAK,GAcd,EACD,CAAA,EAEL,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs148.js","sources":["../src/sections/VerticalCardStepperSection/index.tsx"],"sourcesContent":["import { Section, Step, StepVariantEnum, VerticalCardStepper } from \"@/components\";\r\n\r\ntype Props = {\r\n title: string;\r\n description: string;\r\n steps: Step[];\r\n type: StepVariantEnum;\r\n};\r\n\r\nexport const VerticalCardStepperSection = ({\r\n title,\r\n description,\r\n steps,\r\n type,\r\n}: Props) => {\r\n return (\r\n <Section>\r\n <Section.Title color=\"blue-48\" fs=\"2\" mdFs=\"1\" className=\"mb-x16\">\r\n {title}\r\n </Section.Title>\r\n <Section.Description color=\"slate-14\" fs=\"6\" className=\"mb-x36\">\r\n {description}\r\n </Section.Description>\r\n\r\n <VerticalCardStepper steps={steps} type={type} />\r\n </Section>\r\n );\r\n};\r\n"],"names":["VerticalCardStepperSection","title","description","steps","type","Section","jsx","VerticalCardStepper"],"mappings":"kLASaA,EAA6B,CAAC,CACzC,MAAAC,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,CACF,6BAEKC,UACC,CAAA,SAAA,CAACC,EAAAA,kBAAAA,IAAAD,EAAAA,QAAQ,MAAR,CAAc,MAAM,UAAU,GAAG,IAAI,KAAK,IAAI,UAAU,SACtD,SACHJ,CAAA,CAAA,EACAK,EAAAA,kBAAAA,IAACD,EAAQ,QAAA,YAAR,CAAoB,MAAM,WAAW,GAAG,IAAI,UAAU,SACpD,SACHH,CAAA,CAAA,EAEAI,EAAAA,kBAAAA,IAACC,EAAoB,oBAAA,CAAA,MAAAJ,EAAc,KAAAC,CAAY,CAAA,CAAA,EACjD"}
1
+ {"version":3,"file":"index.cjs148.js","sources":["../src/sections/VerticalCardStepperSection/index.tsx"],"sourcesContent":["import { Section, Step, StepVariantEnum, VerticalCardStepper } from \"@/components\";\n\ntype Props = {\n title: string;\n description: string;\n steps: Step[];\n type: StepVariantEnum;\n};\n\nexport const VerticalCardStepperSection = ({\n title,\n description,\n steps,\n type,\n}: Props) => {\n return (\n <Section>\n <Section.Title color=\"blue-48\" fs=\"2\" mdFs=\"1\" className=\"mb-x16\">\n {title}\n </Section.Title>\n <Section.Description color=\"slate-14\" fs=\"6\" className=\"mb-x36\">\n {description}\n </Section.Description>\n\n <VerticalCardStepper steps={steps} type={type} />\n </Section>\n );\n};\n"],"names":["VerticalCardStepperSection","title","description","steps","type","Section","jsx","VerticalCardStepper"],"mappings":"kLASaA,EAA6B,CAAC,CACzC,MAAAC,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,CACF,6BAEKC,UACC,CAAA,SAAA,CAACC,EAAAA,kBAAAA,IAAAD,EAAAA,QAAQ,MAAR,CAAc,MAAM,UAAU,GAAG,IAAI,KAAK,IAAI,UAAU,SACtD,SACHJ,CAAA,CAAA,EACAK,EAAAA,kBAAAA,IAACD,EAAQ,QAAA,YAAR,CAAoB,MAAM,WAAW,GAAG,IAAI,UAAU,SACpD,SACHH,CAAA,CAAA,EAEAI,EAAAA,kBAAAA,IAACC,EAAoB,oBAAA,CAAA,MAAAJ,EAAc,KAAAC,CAAY,CAAA,CAAA,EACjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs149.js","sources":["../src/sections/TableCard/index.tsx"],"sourcesContent":["import {\r\n CardFile,\r\n Col,\r\n GridContainer,\r\n GridItem,\r\n Row,\r\n Search,\r\n Section,\r\n} from \"@/components\";\r\nimport \"./TableCard.scss\";\r\nimport { useMemo, useState } from \"react\";\r\nimport { useDebouncedValue } from \"@/utils/useDebouncedValue\";\r\nimport { CardFileProps } from \"@/components/ui/CardFile\";\r\n\r\ntype Props = {\r\n title: string;\r\n headerTitle: string;\r\n data?: CardFileProps[];\r\n};\r\n\r\nexport const TableCard = ({ title, headerTitle, data = [] }: Props) => {\r\n const [query, setQuery] = useState(\"\");\r\n const debouncedQuery = useDebouncedValue(query.trim().toLowerCase(), 300);\r\n\r\n const filtered = useMemo(() => {\r\n if (!debouncedQuery) return data;\r\n return data.filter((u) =>\r\n [\r\n u.title,\r\n u.description,\r\n ].some((field) => \r\n field?.toLowerCase().includes(debouncedQuery)\r\n ),\r\n );\r\n }, [debouncedQuery, data]);\r\n\r\n return (\r\n <Section className=\"table-card\">\r\n <Section.Title mdFs=\"2\" fs=\"3\" color=\"blue-48\" as=\"h2\" className=\"table-card-section-title\">\r\n {title}\r\n </Section.Title>\r\n <Col>\r\n <Row\r\n alignItems=\"flex-start\"\r\n className=\"header-row\"\r\n justifyContent=\"space-between\"\r\n flexWrap=\"wrap\"\r\n >\r\n <h3 className=\"update-title\">\r\n {headerTitle} <span>({filtered.length})</span>\r\n </h3>\r\n <Search\r\n variant=\"outlined\"\r\n btnText=\"\"\r\n helperText=\"\"\r\n value={query}\r\n onChangeValue={setQuery}\r\n />\r\n </Row>\r\n <GridContainer gap=\"x24\" mt=\"x32\" px=\"x12\">\r\n {filtered.map((el, index) => (\r\n <GridItem key={`table-card-${index}`} sm={6} md={4}>\r\n <CardFile {...el} />\r\n </GridItem>\r\n ))}\r\n </GridContainer>\r\n </Col>\r\n </Section>\r\n );\r\n};\r\n"],"names":["TableCard","title","headerTitle","data","query","setQuery","useState","debouncedQuery","useDebouncedValue","filtered","useMemo","u","field","jsxs","Section","jsx","Col","Row","Search","GridContainer","el","index","GridItem","CardFile"],"mappings":"0ZAoBaA,EAAY,CAAC,CAAE,MAAAC,EAAO,YAAAC,EAAa,KAAAC,EAAO,MAAgB,CACrE,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAE,EAC/BC,EAAiBC,EAAAA,kBAAkBJ,EAAM,OAAO,cAAe,GAAG,EAElEK,EAAWC,EAAAA,QAAQ,IAClBH,EACEJ,EAAK,OAAQQ,GAClB,CACEA,EAAE,MACFA,EAAE,WAAA,EACF,KAAMC,GACNA,GAAA,YAAAA,EAAO,cAAc,SAASL,EAAc,CAEhD,EAR4BJ,EAS3B,CAACI,EAAgBJ,CAAI,CAAC,EAGvB,OAAAU,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,aACjB,SAAA,CAAAC,EAAA,kBAAA,IAACD,EAAQ,QAAA,MAAR,CAAc,KAAK,IAAI,GAAG,IAAI,MAAM,UAAU,GAAG,KAAK,UAAU,2BAC9D,SACHb,EAAA,2BACCe,EAAAA,IACC,CAAA,SAAA,CAAAH,EAAA,kBAAA,KAACI,EAAA,IAAA,CACC,WAAW,aACX,UAAU,aACV,eAAe,gBACf,SAAS,OAET,SAAA,CAACJ,EAAAA,kBAAAA,KAAA,KAAA,CAAG,UAAU,eACX,SAAA,CAAAX,EAAY,6BAAE,OAAK,CAAA,SAAA,CAAA,IAAEO,EAAS,OAAO,GAAA,CAAC,CAAA,CAAA,EACzC,EACAM,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,QAAQ,WACR,QAAQ,GACR,WAAW,GACX,MAAOd,EACP,cAAeC,CAAA,CAAA,CACjB,CAAA,CACF,EACCU,EAAA,kBAAA,IAAAI,EAAA,cAAA,CAAc,IAAI,MAAM,GAAG,MAAM,GAAG,MAClC,SAASV,EAAA,IAAI,CAACW,EAAIC,IACjBN,wBAACO,EAAAA,SAAqC,CAAA,GAAI,EAAG,GAAI,EAC/C,SAAAP,EAAA,kBAAA,IAACQ,EAAU,SAAA,CAAA,GAAGH,CAAI,CAAA,CAAA,EADL,cAAcC,CAAK,EAElC,CACD,CACH,CAAA,CAAA,CACF,CAAA,CAAA,EACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs149.js","sources":["../src/sections/TableCard/index.tsx"],"sourcesContent":["import {\n CardFile,\n Col,\n GridContainer,\n GridItem,\n Row,\n Search,\n Section,\n} from \"@/components\";\nimport \"./TableCard.scss\";\nimport { useMemo, useState } from \"react\";\nimport { useDebouncedValue } from \"@/utils/useDebouncedValue\";\nimport { CardFileProps } from \"@/components/ui/CardFile\";\n\ntype Props = {\n title: string;\n headerTitle: string;\n data?: CardFileProps[];\n};\n\nexport const TableCard = ({ title, headerTitle, data = [] }: Props) => {\n const [query, setQuery] = useState(\"\");\n const debouncedQuery = useDebouncedValue(query.trim().toLowerCase(), 300);\n\n const filtered = useMemo(() => {\n if (!debouncedQuery) return data;\n return data.filter((u) =>\n [\n u.title,\n u.description,\n ].some((field) => \n field?.toLowerCase().includes(debouncedQuery)\n ),\n );\n }, [debouncedQuery, data]);\n\n return (\n <Section className=\"table-card\">\n <Section.Title mdFs=\"2\" fs=\"3\" color=\"blue-48\" as=\"h2\" className=\"table-card-section-title\">\n {title}\n </Section.Title>\n <Col>\n <Row\n alignItems=\"flex-start\"\n className=\"header-row\"\n justifyContent=\"space-between\"\n flexWrap=\"wrap\"\n >\n <h3 className=\"update-title\">\n {headerTitle} <span>({filtered.length})</span>\n </h3>\n <Search\n variant=\"outlined\"\n btnText=\"\"\n helperText=\"\"\n value={query}\n onChangeValue={setQuery}\n />\n </Row>\n <GridContainer gap=\"x24\" mt=\"x32\" px=\"x12\">\n {filtered.map((el, index) => (\n <GridItem key={`table-card-${index}`} sm={6} md={4}>\n <CardFile {...el} />\n </GridItem>\n ))}\n </GridContainer>\n </Col>\n </Section>\n );\n};\n"],"names":["TableCard","title","headerTitle","data","query","setQuery","useState","debouncedQuery","useDebouncedValue","filtered","useMemo","u","field","jsxs","Section","jsx","Col","Row","Search","GridContainer","el","index","GridItem","CardFile"],"mappings":"0ZAoBaA,EAAY,CAAC,CAAE,MAAAC,EAAO,YAAAC,EAAa,KAAAC,EAAO,MAAgB,CACrE,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAE,EAC/BC,EAAiBC,EAAAA,kBAAkBJ,EAAM,OAAO,cAAe,GAAG,EAElEK,EAAWC,EAAAA,QAAQ,IAClBH,EACEJ,EAAK,OAAQQ,GAClB,CACEA,EAAE,MACFA,EAAE,WAAA,EACF,KAAMC,GACNA,GAAA,YAAAA,EAAO,cAAc,SAASL,EAAc,CAEhD,EAR4BJ,EAS3B,CAACI,EAAgBJ,CAAI,CAAC,EAGvB,OAAAU,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,aACjB,SAAA,CAAAC,EAAA,kBAAA,IAACD,EAAQ,QAAA,MAAR,CAAc,KAAK,IAAI,GAAG,IAAI,MAAM,UAAU,GAAG,KAAK,UAAU,2BAC9D,SACHb,EAAA,2BACCe,EAAAA,IACC,CAAA,SAAA,CAAAH,EAAA,kBAAA,KAACI,EAAA,IAAA,CACC,WAAW,aACX,UAAU,aACV,eAAe,gBACf,SAAS,OAET,SAAA,CAACJ,EAAAA,kBAAAA,KAAA,KAAA,CAAG,UAAU,eACX,SAAA,CAAAX,EAAY,6BAAE,OAAK,CAAA,SAAA,CAAA,IAAEO,EAAS,OAAO,GAAA,CAAC,CAAA,CAAA,EACzC,EACAM,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,QAAQ,WACR,QAAQ,GACR,WAAW,GACX,MAAOd,EACP,cAAeC,CAAA,CAAA,CACjB,CAAA,CACF,EACCU,EAAA,kBAAA,IAAAI,EAAA,cAAA,CAAc,IAAI,MAAM,GAAG,MAAM,GAAG,MAClC,SAASV,EAAA,IAAI,CAACW,EAAIC,IACjBN,wBAACO,EAAAA,SAAqC,CAAA,GAAI,EAAG,GAAI,EAC/C,SAAAP,EAAA,kBAAA,IAACQ,EAAU,SAAA,CAAA,GAAGH,CAAI,CAAA,CAAA,EADL,cAAcC,CAAK,EAElC,CACD,CACH,CAAA,CAAA,CACF,CAAA,CAAA,EACF,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs15.js","sources":["../src/components/ui/SearchGeneric/index.tsx"],"sourcesContent":["import { ChangeEvent, useState, useId } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Button, Col } from \"@/components\";\r\nimport { Close } from \"@/icons\";\r\nimport \"./SearchGeneric.scss\";\r\nimport { useMediaQuery } from \"@/hooks/useMediaQuery.ts\";\r\n\r\nexport type SearchGenericProps<T extends object> = {\r\n btnText: string;\r\n helperText: string;\r\n instructionsText?: string;\r\n mobileHelperText?: string;\r\n value: string;\r\n items: T[];\r\n setValue: (value: string) => void;\r\n setTypedValue?: (value: string) => void;\r\n getSearchField: (item: T) => string;\r\n getDisplayField?: (item: T) => string;\r\n onItemSelect?: (item: T) => void;\r\n minCharsToSearch?: number;\r\n className?: string;\r\n dimensionStrategy?: \"fixed\" | \"auto\";\r\n};\r\n\r\nexport function SearchGeneric<T extends object>({\r\n btnText,\r\n helperText,\r\n instructionsText = \"Inserisci almeno $minCharsToSearch caratteri per iniziare la ricerca.\",\r\n mobileHelperText = helperText,\r\n value,\r\n items,\r\n setValue,\r\n setTypedValue,\r\n getSearchField,\r\n getDisplayField = getSearchField,\r\n onItemSelect,\r\n minCharsToSearch = 3,\r\n className,\r\n dimensionStrategy = \"fixed\",\r\n}: SearchGenericProps<T>) {\r\n const [valueInput, setValueInput] = useState<string>(value || \"\");\r\n const [filteredItems, setFilteredItems] = useState<T[]>([]);\r\n const isDesktop = useMediaQuery(\"(min-width: 768px)\");\r\n \r\n // Generate unique IDs for accessibility\r\n const searchId = useId();\r\n const listboxId = `${searchId}-listbox`;\r\n const instructionsId = `${searchId}-instructions`;\r\n const labelId = `${searchId}-label`;\r\n\r\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\r\n const inputValue = e.target.value;\r\n setValueInput(inputValue);\r\n if (setTypedValue) {\r\n setTypedValue(inputValue);\r\n }\r\n if (inputValue.length >= minCharsToSearch) {\r\n const results = items.filter((item) => {\r\n const searchField = getSearchField(item);\r\n return searchField?.toLowerCase().includes(inputValue.toLowerCase());\r\n });\r\n setFilteredItems(results);\r\n } else {\r\n setFilteredItems([]);\r\n }\r\n };\r\n\r\n const handleSelectItem = (item: T) => {\r\n const displayValue = getDisplayField(item);\r\n setValueInput(displayValue);\r\n setValue(displayValue);\r\n setFilteredItems([]);\r\n\r\n if (onItemSelect) {\r\n onItemSelect(item);\r\n }\r\n };\r\n\r\n const highlightMatch = (text: string, query: string) => {\r\n if (!query) return text;\r\n\r\n const parts = text.split(new RegExp(`(${query})`, \"gi\"));\r\n\r\n return (\r\n <>\r\n {parts.map((part, i) =>\r\n part.toLowerCase() === query.toLowerCase() ? (\r\n <span key={i} className=\"text-primary fw-bold\">\r\n {part}\r\n </span>\r\n ) : (\r\n part\r\n ),\r\n )}\r\n </>\r\n );\r\n };\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n \"ui-search\",\r\n \"br-x4 bg-border-secondary w-full\",\r\n className,\r\n {\r\n \"ui-search-generic-auto\": dimensionStrategy === \"auto\",\r\n },\r\n )}\r\n >\r\n {/* Screen reader only label */}\r\n <label id={labelId} htmlFor={searchId} className=\"sr-only\">\r\n {helperText}\r\n </label>\r\n \r\n {/* Instructions for screen readers */}\r\n {instructionsText && <div id={instructionsId} className=\"sr-only\">\r\n {instructionsText?.replace(\"$minCharsToSearch\", String(minCharsToSearch))}\r\n </div>}\r\n\r\n <div className=\"position-relative\">\r\n <input\r\n id={searchId}\r\n type=\"text\"\r\n role=\"combobox\"\r\n aria-expanded={filteredItems.length > 0}\r\n aria-haspopup=\"listbox\"\r\n aria-owns={filteredItems.length > 0 ? listboxId : undefined}\r\n aria-describedby={instructionsId}\r\n className={clsx(\r\n \"ui-search-input\",\r\n \"fs-6 md-fs-custom text-slate-20 br-x4 w-full pl-x24\",\r\n valueInput && valueInput.length >= 3 && \"has-clear-icon\",\r\n )}\r\n placeholder={isDesktop ? helperText : mobileHelperText}\r\n value={valueInput}\r\n onChange={handleInputChange}\r\n maxLength={30}\r\n autoComplete=\"off\"\r\n />\r\n {valueInput && (\r\n <Close\r\n className=\"ui-clean-button\"\r\n ariaLabel=\"Cancella ricerca\"\r\n onClick={() => {\r\n setValueInput(\"\");\r\n setFilteredItems([]);\r\n setValue(\"\");\r\n handleInputChange({ target: { value: \"\" } } as any);\r\n }}\r\n />\r\n )}\r\n </div>\r\n {filteredItems.length > 0 && (\r\n <div \r\n className=\"ui-wrap-list-item-search shadow position-absolute p-x24\"\r\n role=\"listbox\"\r\n id={listboxId}\r\n aria-label={`${filteredItems.length} risultati disponibili`}\r\n >\r\n <Col\r\n gap={\"x24\"}\r\n fw={\"regular\"}\r\n text={\"secondary\"}\r\n fs={\"6\"}\r\n className=\"ui-list-item-search overflow-y-auto \"\r\n >\r\n {filteredItems.map((item, index) => (\r\n <div\r\n key={index}\r\n id={`${searchId}-option-${index}`}\r\n role=\"option\"\r\n onClick={() => handleSelectItem(item)}\r\n className=\"hover:bg-primary\"\r\n >\r\n {highlightMatch(getDisplayField(item), valueInput)}\r\n </div>\r\n ))}\r\n </Col>\r\n </div>\r\n )}\r\n \r\n {/* Live region for announcing search results */}\r\n <div aria-live=\"polite\" aria-atomic=\"true\" className=\"sr-only\">\r\n {filteredItems.length > 0 && valueInput.length >= minCharsToSearch && \r\n `${filteredItems.length} risultati trovati`}\r\n {valueInput.length >= minCharsToSearch && filteredItems.length === 0 && \r\n \"Nessun risultato trovato\"}\r\n </div>\r\n <div className={clsx(\"ui-div-btn\")}>\r\n <Button\r\n className={clsx(\r\n \"ui-btn-search\",\r\n \"bg-primary text-white fs-7 md-fs-6 fw-semibold br-x4\",\r\n )}\r\n onClick={() => {\r\n setFilteredItems([]);\r\n setValue(valueInput);\r\n }}\r\n >\r\n {btnText}\r\n </Button>\r\n </div>\r\n </div>\r\n );\r\n}\r\n"],"names":["SearchGeneric","btnText","helperText","instructionsText","mobileHelperText","value","items","setValue","setTypedValue","getSearchField","getDisplayField","onItemSelect","minCharsToSearch","className","dimensionStrategy","valueInput","setValueInput","useState","filteredItems","setFilteredItems","isDesktop","useMediaQuery","searchId","useId","listboxId","instructionsId","labelId","handleInputChange","e","inputValue","results","item","searchField","handleSelectItem","displayValue","highlightMatch","text","query","parts","part","i","jsxs","clsx","jsx","Close","Col","index","Button"],"mappings":"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"}
1
+ {"version":3,"file":"index.cjs15.js","sources":["../src/components/ui/SearchGeneric/index.tsx"],"sourcesContent":["import { ChangeEvent, useState, useId } from \"react\";\nimport clsx from \"clsx\";\nimport { Button, Col } from \"@/components\";\nimport { Close } from \"@/icons\";\nimport \"./SearchGeneric.scss\";\nimport { useMediaQuery } from \"@/hooks/useMediaQuery.ts\";\n\nexport type SearchGenericProps<T extends object> = {\n btnText: string;\n helperText: string;\n instructionsText?: string;\n mobileHelperText?: string;\n value: string;\n items: T[];\n setValue: (value: string) => void;\n setTypedValue?: (value: string) => void;\n getSearchField: (item: T) => string;\n getDisplayField?: (item: T) => string;\n onItemSelect?: (item: T) => void;\n minCharsToSearch?: number;\n className?: string;\n dimensionStrategy?: \"fixed\" | \"auto\";\n};\n\nexport function SearchGeneric<T extends object>({\n btnText,\n helperText,\n instructionsText = \"Inserisci almeno $minCharsToSearch caratteri per iniziare la ricerca.\",\n mobileHelperText = helperText,\n value,\n items,\n setValue,\n setTypedValue,\n getSearchField,\n getDisplayField = getSearchField,\n onItemSelect,\n minCharsToSearch = 3,\n className,\n dimensionStrategy = \"fixed\",\n}: SearchGenericProps<T>) {\n const [valueInput, setValueInput] = useState<string>(value || \"\");\n const [filteredItems, setFilteredItems] = useState<T[]>([]);\n const isDesktop = useMediaQuery(\"(min-width: 768px)\");\n \n // Generate unique IDs for accessibility\n const searchId = useId();\n const listboxId = `${searchId}-listbox`;\n const instructionsId = `${searchId}-instructions`;\n const labelId = `${searchId}-label`;\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n const inputValue = e.target.value;\n setValueInput(inputValue);\n if (setTypedValue) {\n setTypedValue(inputValue);\n }\n if (inputValue.length >= minCharsToSearch) {\n const results = items.filter((item) => {\n const searchField = getSearchField(item);\n return searchField?.toLowerCase().includes(inputValue.toLowerCase());\n });\n setFilteredItems(results);\n } else {\n setFilteredItems([]);\n }\n };\n\n const handleSelectItem = (item: T) => {\n const displayValue = getDisplayField(item);\n setValueInput(displayValue);\n setValue(displayValue);\n setFilteredItems([]);\n\n if (onItemSelect) {\n onItemSelect(item);\n }\n };\n\n const highlightMatch = (text: string, query: string) => {\n if (!query) return text;\n\n const parts = text.split(new RegExp(`(${query})`, \"gi\"));\n\n return (\n <>\n {parts.map((part, i) =>\n part.toLowerCase() === query.toLowerCase() ? (\n <span key={i} className=\"text-primary fw-bold\">\n {part}\n </span>\n ) : (\n part\n ),\n )}\n </>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-search\",\n \"br-x4 bg-border-secondary w-full\",\n className,\n {\n \"ui-search-generic-auto\": dimensionStrategy === \"auto\",\n },\n )}\n >\n {/* Screen reader only label */}\n <label id={labelId} htmlFor={searchId} className=\"sr-only\">\n {helperText}\n </label>\n \n {/* Instructions for screen readers */}\n {instructionsText && <div id={instructionsId} className=\"sr-only\">\n {instructionsText?.replace(\"$minCharsToSearch\", String(minCharsToSearch))}\n </div>}\n\n <div className=\"position-relative\">\n <input\n id={searchId}\n type=\"text\"\n role=\"combobox\"\n aria-expanded={filteredItems.length > 0}\n aria-haspopup=\"listbox\"\n aria-owns={filteredItems.length > 0 ? listboxId : undefined}\n aria-describedby={instructionsId}\n className={clsx(\n \"ui-search-input\",\n \"fs-6 md-fs-custom text-slate-20 br-x4 w-full pl-x24\",\n valueInput && valueInput.length >= 3 && \"has-clear-icon\",\n )}\n placeholder={isDesktop ? helperText : mobileHelperText}\n value={valueInput}\n onChange={handleInputChange}\n maxLength={30}\n autoComplete=\"off\"\n />\n {valueInput && (\n <Close\n className=\"ui-clean-button\"\n ariaLabel=\"Cancella ricerca\"\n onClick={() => {\n setValueInput(\"\");\n setFilteredItems([]);\n setValue(\"\");\n handleInputChange({ target: { value: \"\" } } as any);\n }}\n />\n )}\n </div>\n {filteredItems.length > 0 && (\n <div \n className=\"ui-wrap-list-item-search shadow position-absolute p-x24\"\n role=\"listbox\"\n id={listboxId}\n aria-label={`${filteredItems.length} risultati disponibili`}\n >\n <Col\n gap={\"x24\"}\n fw={\"regular\"}\n text={\"secondary\"}\n fs={\"6\"}\n className=\"ui-list-item-search overflow-y-auto \"\n >\n {filteredItems.map((item, index) => (\n <div\n key={index}\n id={`${searchId}-option-${index}`}\n role=\"option\"\n onClick={() => handleSelectItem(item)}\n className=\"hover:bg-primary\"\n >\n {highlightMatch(getDisplayField(item), valueInput)}\n </div>\n ))}\n </Col>\n </div>\n )}\n \n {/* Live region for announcing search results */}\n <div aria-live=\"polite\" aria-atomic=\"true\" className=\"sr-only\">\n {filteredItems.length > 0 && valueInput.length >= minCharsToSearch && \n `${filteredItems.length} risultati trovati`}\n {valueInput.length >= minCharsToSearch && filteredItems.length === 0 && \n \"Nessun risultato trovato\"}\n </div>\n <div className={clsx(\"ui-div-btn\")}>\n <Button\n className={clsx(\n \"ui-btn-search\",\n \"bg-primary text-white fs-7 md-fs-6 fw-semibold br-x4\",\n )}\n onClick={() => {\n setFilteredItems([]);\n setValue(valueInput);\n }}\n >\n {btnText}\n </Button>\n </div>\n </div>\n );\n}\n"],"names":["SearchGeneric","btnText","helperText","instructionsText","mobileHelperText","value","items","setValue","setTypedValue","getSearchField","getDisplayField","onItemSelect","minCharsToSearch","className","dimensionStrategy","valueInput","setValueInput","useState","filteredItems","setFilteredItems","isDesktop","useMediaQuery","searchId","useId","listboxId","instructionsId","labelId","handleInputChange","e","inputValue","results","item","searchField","handleSelectItem","displayValue","highlightMatch","text","query","parts","part","i","jsxs","clsx","jsx","Close","Col","index","Button"],"mappings":"oUAwBO,SAASA,EAAgC,CAC9C,QAAAC,EACA,WAAAC,EACA,iBAAAC,EAAmB,wEACnB,iBAAAC,EAAmBF,EACnB,MAAAG,EACA,MAAAC,EACA,SAAAC,EACA,cAAAC,EACA,eAAAC,EACA,gBAAAC,EAAkBD,EAClB,aAAAE,EACA,iBAAAC,EAAmB,EACnB,UAAAC,EACA,kBAAAC,EAAoB,OACtB,EAA0B,CACxB,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAiBZ,GAAS,EAAE,EAC1D,CAACa,EAAeC,CAAgB,EAAIF,EAAAA,SAAc,CAAA,CAAE,EACpDG,EAAYC,gBAAc,oBAAoB,EAG9CC,EAAWC,EAAAA,MAAM,EACjBC,EAAY,GAAGF,CAAQ,WACvBG,EAAiB,GAAGH,CAAQ,gBAC5BI,EAAU,GAAGJ,CAAQ,SAErBK,EAAqBC,GAAqC,CACxD,MAAAC,EAAaD,EAAE,OAAO,MAKxB,GAJJZ,EAAca,CAAU,EACpBrB,GACFA,EAAcqB,CAAU,EAEtBA,EAAW,QAAUjB,EAAkB,CACzC,MAAMkB,EAAUxB,EAAM,OAAQyB,GAAS,CAC/B,MAAAC,EAAcvB,EAAesB,CAAI,EACvC,OAAOC,GAAA,YAAAA,EAAa,cAAc,SAASH,EAAW,cAAa,CACpE,EACDV,EAAiBW,CAAO,CAAA,MAExBX,EAAiB,CAAA,CAAE,CAEvB,EAEMc,EAAoBF,GAAY,CAC9B,MAAAG,EAAexB,EAAgBqB,CAAI,EACzCf,EAAckB,CAAY,EAC1B3B,EAAS2B,CAAY,EACrBf,EAAiB,CAAA,CAAE,EAEfR,GACFA,EAAaoB,CAAI,CAErB,EAEMI,EAAiB,CAACC,EAAcC,IAAkB,CAClD,GAAA,CAACA,EAAc,OAAAD,EAEb,MAAAE,EAAQF,EAAK,MAAM,IAAI,OAAO,IAAIC,CAAK,IAAK,IAAI,CAAC,EAEvD,6DAEK,SAAMC,EAAA,IAAI,CAACC,EAAMC,IAChBD,EAAK,YAAkB,IAAAF,EAAM,YAAY,0BACtC,OAAa,CAAA,UAAU,uBACrB,SAAAE,CAAA,EADQC,CAEX,EAEAD,CAAA,EAGN,CAEJ,EAGE,OAAAE,EAAA,kBAAA,KAAC,MAAA,CACC,UAAWC,EAAA,KACT,YACA,mCACA7B,EACA,CACE,yBAA0BC,IAAsB,MAAA,CAEpD,EAGA,SAAA,CAAA6B,EAAAA,kBAAAA,IAAC,SAAM,GAAIjB,EAAS,QAASJ,EAAU,UAAU,UAC9C,SACHpB,CAAA,CAAA,EAGCC,GAAoBwC,EAAA,kBAAA,IAAC,MAAI,CAAA,GAAIlB,EAAgB,UAAU,UACrD,SAAAtB,GAAA,YAAAA,EAAkB,QAAQ,oBAAqB,OAAOS,CAAgB,GACzE,EAEA6B,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,oBACb,SAAA,CAAAE,EAAA,kBAAA,IAAC,QAAA,CACC,GAAIrB,EACJ,KAAK,OACL,KAAK,WACL,gBAAeJ,EAAc,OAAS,EACtC,gBAAc,UACd,YAAWA,EAAc,OAAS,EAAIM,EAAY,OAClD,mBAAkBC,EAClB,UAAWiB,EAAA,KACT,kBACA,sDACA3B,GAAcA,EAAW,QAAU,GAAK,gBAC1C,EACA,YAAaK,EAAYlB,EAAaE,EACtC,MAAOW,EACP,SAAUY,EACV,UAAW,GACX,aAAa,KAAA,CACf,EACCZ,GACC4B,EAAA,kBAAA,IAACC,EAAA,MAAA,CACC,UAAU,kBACV,UAAU,mBACV,QAAS,IAAM,CACb5B,EAAc,EAAE,EAChBG,EAAiB,CAAA,CAAE,EACnBZ,EAAS,EAAE,EACXoB,EAAkB,CAAE,OAAQ,CAAE,MAAO,IAAa,CAAA,CACpD,CAAA,CACF,EAEJ,EACCT,EAAc,OAAS,GACtByB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,0DACV,KAAK,UACL,GAAInB,EACJ,aAAY,GAAGN,EAAc,MAAM,yBAEnC,SAAAyB,EAAA,kBAAA,IAACE,EAAA,IAAA,CACC,IAAK,MACL,GAAI,UACJ,KAAM,YACN,GAAI,IACJ,UAAU,uCAET,SAAc3B,EAAA,IAAI,CAACa,EAAMe,IACxBH,EAAA,kBAAA,IAAC,MAAA,CAEC,GAAI,GAAGrB,CAAQ,WAAWwB,CAAK,GAC/B,KAAK,SACL,QAAS,IAAMb,EAAiBF,CAAI,EACpC,UAAU,mBAET,SAAeI,EAAAzB,EAAgBqB,CAAI,EAAGhB,CAAU,CAAA,EAN5C+B,CAQR,CAAA,CAAA,CAAA,CACH,CACF,2BAID,MAAI,CAAA,YAAU,SAAS,cAAY,OAAO,UAAU,UAClD,SAAA,CAAA5B,EAAc,OAAS,GAAKH,EAAW,QAAUH,GAChD,GAAGM,EAAc,MAAM,qBACxBH,EAAW,QAAUH,GAAoBM,EAAc,SAAW,GACjE,0BAAA,EACJ,EACCyB,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAWD,EAAA,KAAK,YAAY,EAC/B,SAAAC,EAAA,kBAAA,IAACI,EAAA,OAAA,CACC,UAAWL,EAAA,KACT,gBACA,sDACF,EACA,QAAS,IAAM,CACbvB,EAAiB,CAAA,CAAE,EACnBZ,EAASQ,CAAU,CACrB,EAEC,SAAAd,CAAA,CAAA,CAEL,CAAA,CAAA,CAAA,CACF,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs150.js","sources":["../src/sections/Slider/index.tsx"],"sourcesContent":["import {\r\n CSSProperties,\r\n ElementType,\r\n useCallback,\r\n useEffect,\r\n useRef,\r\n useState,\r\n} from \"react\";\r\nimport { Swiper, SwiperSlide } from \"swiper/react\";\r\nimport { Navigation, Pagination, A11y } from \"swiper/modules\";\r\nimport \"swiper/css\";\r\nimport \"swiper/css/navigation\";\r\nimport \"swiper/css/pagination\";\r\nimport \"./Slider.scss\";\r\nimport { ArrowLeft, File, PlayVideo } from \"@/icons\";\r\nimport clsx from \"clsx\";\r\nimport { Pause } from \"@/icons/Pause\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\nexport type Slide = {\r\n category?: {\r\n type: string;\r\n published_at: string;\r\n };\r\n src: string;\r\n alt: string;\r\n title: string;\r\n href?: string;\r\n};\r\nexport type SliderType = \"full-image\";\r\nexport type SliderProps = {\r\n slides: Slide[];\r\n asImage: ElementType;\r\n asLink?: ElementType;\r\n timeout?: number;\r\n openInNewTab?: boolean;\r\n paginationLabel?: string;\r\n withShadow?: boolean;\r\n gradientColor?: string;\r\n type?: SliderType;\r\n swiperHeight?: number;\r\n};\r\n\r\nexport const Slider: React.FC<SliderProps> = ({\r\n slides = [],\r\n asLink = \"a\",\r\n asImage = \"img\",\r\n timeout = 3000,\r\n openInNewTab = false,\r\n paginationLabel = \"di\",\r\n withShadow = true,\r\n gradientColor = \"#3d6289\",\r\n swiperHeight = 574,\r\n /* type = \"full-image\" */\r\n}) => {\r\n const LinkTag = asLink || \"a\";\r\n const ImageComponent = asImage;\r\n const swiperRef = useRef<any>(null);\r\n const [currentIndex, setCurrentIndex] = useState(0);\r\n\r\n const [autoplay, setAutoplay] = useState(true);\r\n const toggleAutoPlay = () => {\r\n setAutoplay(!autoplay);\r\n };\r\n\r\n const goNext = useCallback(() => {\r\n if (!swiperRef.current) return;\r\n const swiper = swiperRef.current;\r\n if (swiper.isEnd && !swiper.params.loop) {\r\n swiper.slideTo(0);\r\n } else {\r\n swiper.slideNext();\r\n }\r\n }, []);\r\n\r\n const goPrev = useCallback(() => {\r\n if (!swiperRef.current) return;\r\n const swiper = swiperRef.current;\r\n if (swiper.isBeginning && !swiper.params.loop) {\r\n swiper.slideTo(swiper.slides.length - 1);\r\n } else {\r\n swiper.slidePrev();\r\n }\r\n }, []);\r\n\r\n useEffect(() => {\r\n const intervalId = autoplay\r\n ? setInterval(() => {\r\n goNext();\r\n }, timeout)\r\n : null;\r\n\r\n return () => {\r\n if (intervalId) clearInterval(intervalId);\r\n };\r\n }, [autoplay, goNext, timeout]);\r\n\r\n const gradientColorStyle = {\r\n \"--gradient\": gradientColor,\r\n } as CSSProperties;\r\n\r\n const swiperStyle = {\r\n \"--swiper-height\": `${swiperHeight}px`,\r\n } as CSSProperties;\r\n\r\n return (\r\n <Col className=\"ui-slider-section-wrapper-container\" style={swiperStyle}>\r\n <div className=\"ui-slider\">\r\n <Swiper\r\n modules={[Navigation, Pagination, A11y]}\r\n slidesPerView={1}\r\n autoplay={autoplay}\r\n observer={true}\r\n observeParents={true}\r\n loop={true}\r\n onSwiper={(swiper) => (swiperRef.current = swiper)}\r\n onSlideChange={(swiper) => setCurrentIndex(swiper.realIndex)}\r\n style={swiperStyle}\r\n >\r\n {slides.map((slide, index) => (\r\n <SwiperSlide key={index}>\r\n <ImageComponent\r\n src={slide.src}\r\n alt={slide.alt}\r\n className=\"slider-image\"\r\n onLoad={() => swiperRef.current?.update?.()}\r\n />\r\n <div\r\n className={clsx(\"slider-content\", {\r\n \"with-shadow\": withShadow,\r\n })}\r\n style={gradientColorStyle}\r\n >\r\n <div className=\"container\">\r\n <div className=\"slider-content-grid\">\r\n <div className=\"category\">\r\n {slide.category && (\r\n <File fillColor=\"#fff\" width={30} height={30} />\r\n )}\r\n {slide.category?.type ?? \" \"}\r\n <p className=\"date\">\r\n {slide.category?.published_at ?? \" \"}\r\n </p>\r\n </div>\r\n <LinkTag\r\n href={slides[currentIndex]?.href || \"\"}\r\n target={openInNewTab ? \"_blank\" : \"_self\"}\r\n >\r\n <h4 className=\"title\">{slide.title}</h4>\r\n </LinkTag>\r\n </div>\r\n </div>\r\n </div>\r\n </SwiperSlide>\r\n ))}\r\n <Row className=\"pagination\" gap=\"x20\">\r\n {slides.length > 1 && (\r\n <Row alignItems=\"center\">\r\n <ArrowLeft\r\n width={40}\r\n height={40}\r\n onClick={goPrev}\r\n color=\"white\"\r\n className=\"cursor-pointer\"\r\n />\r\n {autoplay ? (\r\n <Pause\r\n width={20}\r\n height={20}\r\n onClick={toggleAutoPlay}\r\n className=\"cursor-pointer\"\r\n />\r\n ) : (\r\n <PlayVideo\r\n width={20}\r\n height={20}\r\n onClick={toggleAutoPlay}\r\n color=\"white\"\r\n className=\"cursor-pointer\"\r\n />\r\n )}\r\n </Row>\r\n )}\r\n\r\n <span>{`${currentIndex + 1} ${paginationLabel} ${slides.length}`}</span>\r\n {slides.length > 1 && (\r\n <ArrowLeft\r\n width={40}\r\n height={40}\r\n className=\"next cursor-pointer\"\r\n onClick={goNext}\r\n color=\"white\"\r\n />\r\n )}\r\n </Row>\r\n </Swiper>\r\n </div>\r\n </Col>\r\n );\r\n};\r\n"],"names":["Slider","slides","asLink","asImage","timeout","openInNewTab","paginationLabel","withShadow","gradientColor","swiperHeight","LinkTag","ImageComponent","swiperRef","useRef","currentIndex","setCurrentIndex","useState","autoplay","setAutoplay","toggleAutoPlay","goNext","useCallback","swiper","goPrev","useEffect","intervalId","gradientColorStyle","swiperStyle","jsx","Col","jsxs","Swiper","Navigation","Pagination","A11y","slide","index","SwiperSlide","_b","_a","clsx","File","_c","Row","ArrowLeft","Pause","PlayVideo"],"mappings":"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"}
1
+ {"version":3,"file":"index.cjs150.js","sources":["../src/sections/Slider/index.tsx"],"sourcesContent":["import {\n CSSProperties,\n ElementType,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Navigation, Pagination, A11y } from \"swiper/modules\";\nimport \"swiper/css\";\nimport \"swiper/css/navigation\";\nimport \"swiper/css/pagination\";\nimport \"./Slider.scss\";\nimport { ArrowLeft, File, PlayVideo } from \"@/icons\";\nimport clsx from \"clsx\";\nimport { Pause } from \"@/icons/Pause\";\nimport { Col, Row } from \"@/components\";\n\nexport type Slide = {\n category?: {\n type: string;\n published_at: string;\n };\n src: string;\n alt: string;\n title: string;\n href?: string;\n};\nexport type SliderType = \"full-image\";\nexport type SliderProps = {\n slides: Slide[];\n asImage: ElementType;\n asLink?: ElementType;\n timeout?: number;\n openInNewTab?: boolean;\n paginationLabel?: string;\n withShadow?: boolean;\n gradientColor?: string;\n type?: SliderType;\n swiperHeight?: number;\n};\n\nexport const Slider: React.FC<SliderProps> = ({\n slides = [],\n asLink = \"a\",\n asImage = \"img\",\n timeout = 3000,\n openInNewTab = false,\n paginationLabel = \"di\",\n withShadow = true,\n gradientColor = \"#3d6289\",\n swiperHeight = 574,\n /* type = \"full-image\" */\n}) => {\n const LinkTag = asLink || \"a\";\n const ImageComponent = asImage;\n const swiperRef = useRef<any>(null);\n const [currentIndex, setCurrentIndex] = useState(0);\n\n const [autoplay, setAutoplay] = useState(true);\n const toggleAutoPlay = () => {\n setAutoplay(!autoplay);\n };\n\n const goNext = useCallback(() => {\n if (!swiperRef.current) return;\n const swiper = swiperRef.current;\n if (swiper.isEnd && !swiper.params.loop) {\n swiper.slideTo(0);\n } else {\n swiper.slideNext();\n }\n }, []);\n\n const goPrev = useCallback(() => {\n if (!swiperRef.current) return;\n const swiper = swiperRef.current;\n if (swiper.isBeginning && !swiper.params.loop) {\n swiper.slideTo(swiper.slides.length - 1);\n } else {\n swiper.slidePrev();\n }\n }, []);\n\n useEffect(() => {\n const intervalId = autoplay\n ? setInterval(() => {\n goNext();\n }, timeout)\n : null;\n\n return () => {\n if (intervalId) clearInterval(intervalId);\n };\n }, [autoplay, goNext, timeout]);\n\n const gradientColorStyle = {\n \"--gradient\": gradientColor,\n } as CSSProperties;\n\n const swiperStyle = {\n \"--swiper-height\": `${swiperHeight}px`,\n } as CSSProperties;\n\n return (\n <Col className=\"ui-slider-section-wrapper-container\" style={swiperStyle}>\n <div className=\"ui-slider\">\n <Swiper\n modules={[Navigation, Pagination, A11y]}\n slidesPerView={1}\n autoplay={autoplay}\n observer={true}\n observeParents={true}\n loop={true}\n onSwiper={(swiper) => (swiperRef.current = swiper)}\n onSlideChange={(swiper) => setCurrentIndex(swiper.realIndex)}\n style={swiperStyle}\n >\n {slides.map((slide, index) => (\n <SwiperSlide key={index}>\n <ImageComponent\n src={slide.src}\n alt={slide.alt}\n className=\"slider-image\"\n onLoad={() => swiperRef.current?.update?.()}\n />\n <div\n className={clsx(\"slider-content\", {\n \"with-shadow\": withShadow,\n })}\n style={gradientColorStyle}\n >\n <div className=\"container\">\n <div className=\"slider-content-grid\">\n <div className=\"category\">\n {slide.category && (\n <File fillColor=\"#fff\" width={30} height={30} />\n )}\n {slide.category?.type ?? \" \"}\n <p className=\"date\">\n {slide.category?.published_at ?? \" \"}\n </p>\n </div>\n <LinkTag\n href={slides[currentIndex]?.href || \"\"}\n target={openInNewTab ? \"_blank\" : \"_self\"}\n >\n <h4 className=\"title\">{slide.title}</h4>\n </LinkTag>\n </div>\n </div>\n </div>\n </SwiperSlide>\n ))}\n <Row className=\"pagination\" gap=\"x20\">\n {slides.length > 1 && (\n <Row alignItems=\"center\">\n <ArrowLeft\n width={40}\n height={40}\n onClick={goPrev}\n color=\"white\"\n className=\"cursor-pointer\"\n />\n {autoplay ? (\n <Pause\n width={20}\n height={20}\n onClick={toggleAutoPlay}\n className=\"cursor-pointer\"\n />\n ) : (\n <PlayVideo\n width={20}\n height={20}\n onClick={toggleAutoPlay}\n color=\"white\"\n className=\"cursor-pointer\"\n />\n )}\n </Row>\n )}\n\n <span>{`${currentIndex + 1} ${paginationLabel} ${slides.length}`}</span>\n {slides.length > 1 && (\n <ArrowLeft\n width={40}\n height={40}\n className=\"next cursor-pointer\"\n onClick={goNext}\n color=\"white\"\n />\n )}\n </Row>\n </Swiper>\n </div>\n </Col>\n );\n};\n"],"names":["Slider","slides","asLink","asImage","timeout","openInNewTab","paginationLabel","withShadow","gradientColor","swiperHeight","LinkTag","ImageComponent","swiperRef","useRef","currentIndex","setCurrentIndex","useState","autoplay","setAutoplay","toggleAutoPlay","goNext","useCallback","swiper","goPrev","useEffect","intervalId","gradientColorStyle","swiperStyle","jsx","Col","jsxs","Swiper","Navigation","Pagination","A11y","slide","index","SwiperSlide","_b","_a","clsx","File","_c","Row","ArrowLeft","Pause","PlayVideo"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs151.js","sources":["../src/sections/CommunicationContents/index.tsx"],"sourcesContent":["import { Spinner } from \"@/icons\";\r\nimport { AggregationItemCard, Button, Row } from \"../../components\";\r\nimport \"./CommunicationContents.scss\";\r\nimport Masonry from \"react-layout-masonry\";\r\n\r\nexport type CommunicationContentsProps = {\r\n sectionId?: string;\r\n title: string;\r\n elements: any[];\r\n total: number;\r\n totalLabels?: {\r\n first: string;\r\n middle: string;\r\n end: string;\r\n };\r\n loading?: boolean;\r\n handleLoadMore: () => void;\r\n showMoreTitle?: string;\r\n noResultsLabel?: string;\r\n};\r\n\r\nexport function CommunicationContents({\r\n title,\r\n elements = [],\r\n total,\r\n totalLabels = { first: \"Stai visualizzando\", middle: \"di\", end: \"elementi\" },\r\n handleLoadMore,\r\n loading = false,\r\n showMoreTitle = \"Visualizza altro \",\r\n noResultsLabel = \"Nessun risultato trovato\",\r\n}: CommunicationContentsProps) {\r\n const showMoreButtonVisible = total > elements?.length;\r\n\r\n return (\r\n <section className=\"communication-contents d-flex section-gap flex-column\">\r\n <h2 className=\"title\">{title}</h2>\r\n <Masonry\r\n columns={{ 0: 1, 768: 2, 992: 3 }}\r\n gap={24}\r\n className=\"masonry-component\"\r\n >\r\n {elements?.map((element) => (\r\n <AggregationItemCard {...element} key={element._id} />\r\n ))}\r\n </Masonry>\r\n <Row className=\"w-full-adpt\" justifyContent=\"center\" m=\"x12\">\r\n {loading && <Spinner height={30} width={30} />}\r\n </Row>\r\n <span className=\"total-elements-label\">\r\n {elements?.length === 0 ? (\r\n <span>{noResultsLabel}</span>\r\n ) : (\r\n <>\r\n <span>{totalLabels.first}</span>\r\n <Row justifyContent=\"center\" gap=\"x4\">\r\n <b>{elements?.length}</b>\r\n <span>{totalLabels.middle}</span>\r\n <span>{total}</span>\r\n <span>{totalLabels.end}</span>\r\n </Row>\r\n </>\r\n )}\r\n </span>\r\n {showMoreButtonVisible && !loading && elements?.length > 0 && (\r\n <Row justifyContent=\"center\" alignItems=\"center\" mt=\"x16\">\r\n <Button onClick={handleLoadMore}>{showMoreTitle}</Button>\r\n </Row>\r\n )}\r\n </section>\r\n );\r\n}\r\n"],"names":["CommunicationContents","title","elements","total","totalLabels","handleLoadMore","loading","showMoreTitle","noResultsLabel","showMoreButtonVisible","jsxs","jsx","Masonry","element","createElement","AggregationItemCard","Row","Spinner","Fragment","Button"],"mappings":"mUAqBO,SAASA,EAAsB,CACpC,MAAAC,EACA,SAAAC,EAAW,CAAC,EACZ,MAAAC,EACA,YAAAC,EAAc,CAAE,MAAO,qBAAsB,OAAQ,KAAM,IAAK,UAAW,EAC3E,eAAAC,EACA,QAAAC,EAAU,GACV,cAAAC,EAAgB,oBAChB,eAAAC,EAAiB,0BACnB,EAA+B,CACvB,MAAAC,EAAwBN,GAAQD,GAAA,YAAAA,EAAU,QAG9C,OAAAQ,EAAA,kBAAA,KAAC,UAAQ,CAAA,UAAU,wDACjB,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,QAAS,SAAMV,EAAA,EAC7BU,EAAA,kBAAA,IAACC,EAAA,QAAA,CACC,QAAS,CAAE,EAAG,EAAG,IAAK,EAAG,IAAK,CAAE,EAChC,IAAK,GACL,UAAU,oBAET,SAAAV,GAAA,YAAAA,EAAU,IAAKW,GACdC,EAAA,cAACC,sBAAqB,CAAA,GAAGF,EAAS,IAAKA,EAAQ,GAAA,CAAK,EACrD,CACH,EACCF,wBAAAK,EAAAA,IAAA,CAAI,UAAU,cAAc,eAAe,SAAS,EAAE,MACpD,SAAAV,2BAAYW,EAAQ,QAAA,CAAA,OAAQ,GAAI,MAAO,EAAI,CAAA,EAC9C,EACAN,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,uBACb,UAAAT,GAAA,YAAAA,EAAU,UAAW,EACnBS,EAAA,kBAAA,IAAA,OAAA,CAAM,SAAeH,CAAA,CAAA,EAGpBE,yBAAAQ,EAAAA,kBAAAA,SAAA,CAAA,SAAA,CAACP,EAAAA,kBAAAA,IAAA,OAAA,CAAM,WAAY,KAAM,CAAA,EACxBD,EAAA,kBAAA,KAAAM,EAAA,IAAA,CAAI,eAAe,SAAS,IAAI,KAC/B,SAAA,CAACL,EAAAA,kBAAAA,IAAA,IAAA,CAAG,0BAAU,MAAO,CAAA,EACrBA,EAAAA,kBAAAA,IAAC,OAAM,CAAA,SAAAP,EAAY,MAAO,CAAA,EAC1BO,EAAAA,kBAAAA,IAAC,QAAM,SAAMR,CAAA,CAAA,EACbQ,EAAAA,kBAAAA,IAAC,OAAM,CAAA,SAAAP,EAAY,GAAI,CAAA,CAAA,CACzB,CAAA,CAAA,CAAA,CACF,CAEJ,CAAA,EACCK,GAAyB,CAACH,IAAWJ,GAAA,YAAAA,EAAU,QAAS,2BACtDc,MAAI,CAAA,eAAe,SAAS,WAAW,SAAS,GAAG,MAClD,SAAAL,EAAAA,kBAAAA,IAACQ,UAAO,QAASd,EAAiB,WAAc,CAClD,CAAA,CAAA,EAEJ,CAEJ"}
1
+ {"version":3,"file":"index.cjs151.js","sources":["../src/sections/CommunicationContents/index.tsx"],"sourcesContent":["import { Spinner } from \"@/icons\";\nimport { AggregationItemCard, Button, Row } from \"../../components\";\nimport \"./CommunicationContents.scss\";\nimport Masonry from \"react-layout-masonry\";\n\nexport type CommunicationContentsProps = {\n sectionId?: string;\n title: string;\n elements: any[];\n total: number;\n totalLabels?: {\n first: string;\n middle: string;\n end: string;\n };\n loading?: boolean;\n handleLoadMore: () => void;\n showMoreTitle?: string;\n noResultsLabel?: string;\n};\n\nexport function CommunicationContents({\n title,\n elements = [],\n total,\n totalLabels = { first: \"Stai visualizzando\", middle: \"di\", end: \"elementi\" },\n handleLoadMore,\n loading = false,\n showMoreTitle = \"Visualizza altro \",\n noResultsLabel = \"Nessun risultato trovato\",\n}: CommunicationContentsProps) {\n const showMoreButtonVisible = total > elements?.length;\n\n return (\n <section className=\"communication-contents d-flex section-gap flex-column\">\n <h2 className=\"title\">{title}</h2>\n <Masonry\n columns={{ 0: 1, 768: 2, 992: 3 }}\n gap={24}\n className=\"masonry-component\"\n >\n {elements?.map((element) => (\n <AggregationItemCard {...element} key={element._id} />\n ))}\n </Masonry>\n <Row className=\"w-full-adpt\" justifyContent=\"center\" m=\"x12\">\n {loading && <Spinner height={30} width={30} />}\n </Row>\n <span className=\"total-elements-label\">\n {elements?.length === 0 ? (\n <span>{noResultsLabel}</span>\n ) : (\n <>\n <span>{totalLabels.first}</span>\n <Row justifyContent=\"center\" gap=\"x4\">\n <b>{elements?.length}</b>\n <span>{totalLabels.middle}</span>\n <span>{total}</span>\n <span>{totalLabels.end}</span>\n </Row>\n </>\n )}\n </span>\n {showMoreButtonVisible && !loading && elements?.length > 0 && (\n <Row justifyContent=\"center\" alignItems=\"center\" mt=\"x16\">\n <Button onClick={handleLoadMore}>{showMoreTitle}</Button>\n </Row>\n )}\n </section>\n );\n}\n"],"names":["CommunicationContents","title","elements","total","totalLabels","handleLoadMore","loading","showMoreTitle","noResultsLabel","showMoreButtonVisible","jsxs","jsx","Masonry","element","createElement","AggregationItemCard","Row","Spinner","Fragment","Button"],"mappings":"mUAqBO,SAASA,EAAsB,CACpC,MAAAC,EACA,SAAAC,EAAW,CAAC,EACZ,MAAAC,EACA,YAAAC,EAAc,CAAE,MAAO,qBAAsB,OAAQ,KAAM,IAAK,UAAW,EAC3E,eAAAC,EACA,QAAAC,EAAU,GACV,cAAAC,EAAgB,oBAChB,eAAAC,EAAiB,0BACnB,EAA+B,CACvB,MAAAC,EAAwBN,GAAQD,GAAA,YAAAA,EAAU,QAG9C,OAAAQ,EAAA,kBAAA,KAAC,UAAQ,CAAA,UAAU,wDACjB,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,QAAS,SAAMV,EAAA,EAC7BU,EAAA,kBAAA,IAACC,EAAA,QAAA,CACC,QAAS,CAAE,EAAG,EAAG,IAAK,EAAG,IAAK,CAAE,EAChC,IAAK,GACL,UAAU,oBAET,SAAAV,GAAA,YAAAA,EAAU,IAAKW,GACdC,EAAA,cAACC,sBAAqB,CAAA,GAAGF,EAAS,IAAKA,EAAQ,GAAA,CAAK,EACrD,CACH,EACCF,wBAAAK,EAAAA,IAAA,CAAI,UAAU,cAAc,eAAe,SAAS,EAAE,MACpD,SAAAV,2BAAYW,EAAQ,QAAA,CAAA,OAAQ,GAAI,MAAO,EAAI,CAAA,EAC9C,EACAN,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,uBACb,UAAAT,GAAA,YAAAA,EAAU,UAAW,EACnBS,EAAA,kBAAA,IAAA,OAAA,CAAM,SAAeH,CAAA,CAAA,EAGpBE,yBAAAQ,EAAAA,kBAAAA,SAAA,CAAA,SAAA,CAACP,EAAAA,kBAAAA,IAAA,OAAA,CAAM,WAAY,KAAM,CAAA,EACxBD,EAAA,kBAAA,KAAAM,EAAA,IAAA,CAAI,eAAe,SAAS,IAAI,KAC/B,SAAA,CAACL,EAAAA,kBAAAA,IAAA,IAAA,CAAG,0BAAU,MAAO,CAAA,EACrBA,EAAAA,kBAAAA,IAAC,OAAM,CAAA,SAAAP,EAAY,MAAO,CAAA,EAC1BO,EAAAA,kBAAAA,IAAC,QAAM,SAAMR,CAAA,CAAA,EACbQ,EAAAA,kBAAAA,IAAC,OAAM,CAAA,SAAAP,EAAY,GAAI,CAAA,CAAA,CACzB,CAAA,CAAA,CAAA,CACF,CAEJ,CAAA,EACCK,GAAyB,CAACH,IAAWJ,GAAA,YAAAA,EAAU,QAAS,2BACtDc,MAAI,CAAA,eAAe,SAAS,WAAW,SAAS,GAAG,MAClD,SAAAL,EAAAA,kBAAAA,IAACQ,UAAO,QAASd,EAAiB,WAAc,CAClD,CAAA,CAAA,EAEJ,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs152.js","sources":["../src/sections/TagsSection/index.tsx"],"sourcesContent":["import { Col, Link, Row, Tag } from \"@/components\";\r\nimport { ArrowRight } from \"@/icons\";\r\nimport { AggregationPage } from \"@anoki/fse-common/dist\";\r\n\r\nexport type FilterTag = {\r\n selected: boolean;\r\n onClick?: () => void;\r\n} & Partial<AggregationPage>;\r\n\r\ntype Props = {\r\n title: string;\r\n showAllLabel?: string;\r\n showAllHref?: string;\r\n mainTag: {\r\n label?: string;\r\n onClick?: () => void;\r\n selected?: boolean;\r\n };\r\n tags: Array<FilterTag>;\r\n onTagClick: () => void;\r\n};\r\n\r\nexport const TagsSection = ({\r\n title,\r\n mainTag = {\r\n label: \"Tutto\",\r\n onClick: () => {},\r\n selected: true,\r\n },\r\n tags,\r\n showAllHref,\r\n showAllLabel = \"Scopri tutti tags\",\r\n onTagClick,\r\n}: Props) => {\r\n return (\r\n <Col gap=\"x28\">\r\n <Row alignItems=\"center\" justifyContent=\"space-between\">\r\n <h2 className=\"title text-slate-20 fs-custom fw-bold\">{title}</h2>\r\n <Link\r\n transform=\"uppercase\"\r\n decoration=\"fw-semibold text-primary fs-8 mr-x8 text-decoration-none\"\r\n title={showAllLabel}\r\n src={showAllHref ?? \"\"}\r\n icon={ArrowRight}\r\n />\r\n </Row>\r\n\r\n <Row\r\n alignItems=\"center\"\r\n className=\"overflow-auto w-auto\"\r\n gap=\"x16\"\r\n flexWrap=\"wrap\"\r\n >\r\n {[\r\n {\r\n name: mainTag.label,\r\n selected: mainTag.selected,\r\n onClick: mainTag.onClick,\r\n },\r\n ...tags,\r\n ].map((tag, index) => (\r\n <Tag\r\n key={index}\r\n mode=\"filter\"\r\n label={tag.name ?? \"\"}\r\n onClick={tag?.onClick ?? onTagClick}\r\n selected={tag.selected}\r\n />\r\n ))}\r\n </Row>\r\n </Col>\r\n );\r\n};\r\n"],"names":["TagsSection","title","mainTag","tags","showAllHref","showAllLabel","onTagClick","jsxs","Col","Row","jsx","Link","ArrowRight","tag","index","Tag"],"mappings":"4QAsBaA,EAAc,CAAC,CAC1B,MAAAC,EACA,QAAAC,EAAU,CACR,MAAO,QACP,QAAS,IAAM,CAAC,EAChB,SAAU,EACZ,EACA,KAAAC,EACA,YAAAC,EACA,aAAAC,EAAe,oBACf,WAAAC,CACF,IAEIC,EAAA,kBAAA,KAACC,EAAI,IAAA,CAAA,IAAI,MACP,SAAA,CAAAD,EAAA,kBAAA,KAACE,EAAI,IAAA,CAAA,WAAW,SAAS,eAAe,gBACtC,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,wCAAyC,SAAMT,EAAA,EAC7DS,EAAA,kBAAA,IAACC,EAAA,KAAA,CACC,UAAU,YACV,WAAW,2DACX,MAAON,EACP,IAAKD,GAAe,GACpB,KAAMQ,EAAAA,UAAA,CAAA,CACR,EACF,EAEAF,EAAA,kBAAA,IAACD,EAAA,IAAA,CACC,WAAW,SACX,UAAU,uBACV,IAAI,MACJ,SAAS,OAER,SAAA,CACC,CACE,KAAMP,EAAQ,MACd,SAAUA,EAAQ,SAClB,QAASA,EAAQ,OACnB,EACA,GAAGC,CACH,EAAA,IAAI,CAACU,EAAKC,IACVJ,EAAA,kBAAA,IAACK,EAAA,IAAA,CAEC,KAAK,SACL,MAAOF,EAAI,MAAQ,GACnB,SAASA,GAAA,YAAAA,EAAK,UAAWP,EACzB,SAAUO,EAAI,QAAA,EAJTC,CAMR,CAAA,CAAA,CAAA,CACH,EACF"}
1
+ {"version":3,"file":"index.cjs152.js","sources":["../src/sections/TagsSection/index.tsx"],"sourcesContent":["import { Col, Link, Row, Tag } from \"@/components\";\nimport { ArrowRight } from \"@/icons\";\nimport { AggregationPage } from \"@anoki/fse-common/dist\";\n\nexport type FilterTag = {\n selected: boolean;\n onClick?: () => void;\n} & Partial<AggregationPage>;\n\ntype Props = {\n title: string;\n showAllLabel?: string;\n showAllHref?: string;\n mainTag: {\n label?: string;\n onClick?: () => void;\n selected?: boolean;\n };\n tags: Array<FilterTag>;\n onTagClick: () => void;\n};\n\nexport const TagsSection = ({\n title,\n mainTag = {\n label: \"Tutto\",\n onClick: () => {},\n selected: true,\n },\n tags,\n showAllHref,\n showAllLabel = \"Scopri tutti tags\",\n onTagClick,\n}: Props) => {\n return (\n <Col gap=\"x28\">\n <Row alignItems=\"center\" justifyContent=\"space-between\">\n <h2 className=\"title text-slate-20 fs-custom fw-bold\">{title}</h2>\n <Link\n transform=\"uppercase\"\n decoration=\"fw-semibold text-primary fs-8 mr-x8 text-decoration-none\"\n title={showAllLabel}\n src={showAllHref ?? \"\"}\n icon={ArrowRight}\n />\n </Row>\n\n <Row\n alignItems=\"center\"\n className=\"overflow-auto w-auto\"\n gap=\"x16\"\n flexWrap=\"wrap\"\n >\n {[\n {\n name: mainTag.label,\n selected: mainTag.selected,\n onClick: mainTag.onClick,\n },\n ...tags,\n ].map((tag, index) => (\n <Tag\n key={index}\n mode=\"filter\"\n label={tag.name ?? \"\"}\n onClick={tag?.onClick ?? onTagClick}\n selected={tag.selected}\n />\n ))}\n </Row>\n </Col>\n );\n};\n"],"names":["TagsSection","title","mainTag","tags","showAllHref","showAllLabel","onTagClick","jsxs","Col","Row","jsx","Link","ArrowRight","tag","index","Tag"],"mappings":"4QAsBaA,EAAc,CAAC,CAC1B,MAAAC,EACA,QAAAC,EAAU,CACR,MAAO,QACP,QAAS,IAAM,CAAC,EAChB,SAAU,EACZ,EACA,KAAAC,EACA,YAAAC,EACA,aAAAC,EAAe,oBACf,WAAAC,CACF,IAEIC,EAAA,kBAAA,KAACC,EAAI,IAAA,CAAA,IAAI,MACP,SAAA,CAAAD,EAAA,kBAAA,KAACE,EAAI,IAAA,CAAA,WAAW,SAAS,eAAe,gBACtC,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,wCAAyC,SAAMT,EAAA,EAC7DS,EAAA,kBAAA,IAACC,EAAA,KAAA,CACC,UAAU,YACV,WAAW,2DACX,MAAON,EACP,IAAKD,GAAe,GACpB,KAAMQ,EAAAA,UAAA,CAAA,CACR,EACF,EAEAF,EAAA,kBAAA,IAACD,EAAA,IAAA,CACC,WAAW,SACX,UAAU,uBACV,IAAI,MACJ,SAAS,OAER,SAAA,CACC,CACE,KAAMP,EAAQ,MACd,SAAUA,EAAQ,SAClB,QAASA,EAAQ,OACnB,EACA,GAAGC,CACH,EAAA,IAAI,CAACU,EAAKC,IACVJ,EAAA,kBAAA,IAACK,EAAA,IAAA,CAEC,KAAK,SACL,MAAOF,EAAI,MAAQ,GACnB,SAASA,GAAA,YAAAA,EAAK,UAAWP,EACzB,SAAUO,EAAI,QAAA,EAJTC,CAMR,CAAA,CAAA,CAAA,CACH,EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs153.js","sources":["../src/sections/CommunicationSearchSection/index.tsx"],"sourcesContent":["import { CommunicationSearch, CommunicationSearchProps } from \"@/components\";\r\n\r\ntype Props = {\r\n title: string;\r\n tags?: Array<{ title: string; href: string }>;\r\n searchProps: CommunicationSearchProps;\r\n};\r\n\r\nexport const CommunicationSearchSection = ({\r\n title,\r\n /* tags, */\r\n searchProps,\r\n}: Props) => {\r\n return (\r\n <section className=\"d-flex flex-column gap-x28\">\r\n <h2 className=\"title text-slate-20 fw-bold fs-2\">{title}</h2>\r\n <CommunicationSearch {...searchProps} />\r\n {/* tags && <TagsSection /> */}\r\n </section>\r\n );\r\n};\r\n"],"names":["CommunicationSearchSection","title","searchProps","jsxs","jsx","CommunicationSearch"],"mappings":"oJAQaA,EAA6B,CAAC,CACzC,MAAAC,EAEA,YAAAC,CACF,IAEIC,EAAA,kBAAA,KAAC,UAAQ,CAAA,UAAU,6BACjB,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,mCAAoC,SAAMH,EAAA,EACxDG,wBAACC,EAAAA,oBAAqB,CAAA,GAAGH,CAAa,CAAA,CAAA,EAExC"}
1
+ {"version":3,"file":"index.cjs153.js","sources":["../src/sections/CommunicationSearchSection/index.tsx"],"sourcesContent":["import { CommunicationSearch, CommunicationSearchProps } from \"@/components\";\n\ntype Props = {\n title: string;\n tags?: Array<{ title: string; href: string }>;\n searchProps: CommunicationSearchProps;\n};\n\nexport const CommunicationSearchSection = ({\n title,\n /* tags, */\n searchProps,\n}: Props) => {\n return (\n <section className=\"d-flex flex-column gap-x28\">\n <h2 className=\"title text-slate-20 fw-bold fs-2\">{title}</h2>\n <CommunicationSearch {...searchProps} />\n {/* tags && <TagsSection /> */}\n </section>\n );\n};\n"],"names":["CommunicationSearchSection","title","searchProps","jsxs","jsx","CommunicationSearch"],"mappings":"oJAQaA,EAA6B,CAAC,CACzC,MAAAC,EAEA,YAAAC,CACF,IAEIC,EAAA,kBAAA,KAAC,UAAQ,CAAA,UAAU,6BACjB,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,mCAAoC,SAAMH,EAAA,EACxDG,wBAACC,EAAAA,oBAAqB,CAAA,GAAGH,CAAa,CAAA,CAAA,EAExC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs18.js","sources":["../src/components/navigations/HeaderPostLogin/index.tsx"],"sourcesContent":["import { LOGOS, Region } from \"../Header\";\r\nimport clsx from \"clsx\";\r\nimport { Divider } from \"@/components/ui/Divider\";\r\nimport \"./HeaderPostLogin.scss\";\r\nimport { ComponentType, ReactNode } from \"react\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype NavigationItem = {\r\n label: string;\r\n href: string;\r\n icon?: ComponentType<any>;\r\n active?: boolean;\r\n isNewTab?: boolean;\r\n};\r\n\r\nexport type HeaderPostLoginProps = {\r\n shortTitle: ReactNode;\r\n region: Region;\r\n navigationItems: NavigationItem[];\r\n loginLink?: string;\r\n asLink?: \"a\" | ComponentType<any>;\r\n generalClassName?: string;\r\n navItemsClassName?: string;\r\n};\r\n\r\nexport const HeaderPostLogin = ({\r\n shortTitle,\r\n region,\r\n asLink = \"a\",\r\n navigationItems,\r\n generalClassName,\r\n navItemsClassName,\r\n}: HeaderPostLoginProps) => {\r\n const LinkComponent = asLink;\r\n const NationalIcon = LOGOS[\"nazionale\"];\r\n const RegionIcon = LOGOS[region];\r\n\r\n return (\r\n <nav\r\n role=\"navigation\"\r\n className={clsx(\"ui-hpl-menu\", generalClassName)}\r\n style={\r\n {\r\n \"--navbar-elements\": navigationItems.length ?? 0,\r\n } as React.CSSProperties\r\n }\r\n >\r\n <Col\r\n pt={\"x80\"}\r\n px={\"x40\"}\r\n gap={\"x16\"}\r\n justifyContent={\"center\"}\r\n className=\"position-relative\"\r\n >\r\n <Row gap={\"x24\"} alignItems={\"center\"} justifyContent={\"center\"}>\r\n <NationalIcon width={27} height={44} />\r\n <Divider bg=\"border-divider\" direction=\"vertical\" />\r\n <RegionIcon width={44} height={44} />\r\n </Row>\r\n <h1 className=\"fs-custom fw-normal text-slate-20 text-align-center\">\r\n {shortTitle}\r\n </h1>\r\n </Col>\r\n <div className=\"p-x40\">\r\n <Divider bg=\"border-divider\" />\r\n </div>\r\n <Col\r\n as={\"ul\"}\r\n gap={\"x12\"}\r\n className={clsx(\"list-style-none ui-hpl-list\", navItemsClassName)}\r\n role=\"list\"\r\n >\r\n {navigationItems.map((item, index) => {\r\n const IconComponent = item?.icon;\r\n return (\r\n <li\r\n key={index}\r\n className={clsx(\"ui-hpl-list-item\", item.active && \"active\")}\r\n >\r\n <LinkComponent\r\n href={item.href}\r\n className={clsx(\r\n \"text-decoration-none text-primary fs-custom base-row gap-x16 align-items-center pr-x8\",\r\n item.active ? \"fw-bold\" : \"fw-normal\",\r\n )}\r\n target={item.isNewTab ? \"_blank\" : undefined}\r\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\r\n >\r\n {IconComponent && (\r\n <IconComponent color=\"primary\" filled={item.active} />\r\n )}\r\n <span className=\"ui-hpl-text\">{item.label}</span>\r\n {item.active && <span className=\"visually-hidden\">Attivo</span>}\r\n </LinkComponent>\r\n </li>\r\n );\r\n })}\r\n </Col>\r\n </nav>\r\n );\r\n};\r\n"],"names":["HeaderPostLogin","shortTitle","region","asLink","navigationItems","generalClassName","navItemsClassName","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsxs","clsx","Col","Row","jsx","Divider","item","index","IconComponent"],"mappings":"+SAyBaA,EAAkB,CAAC,CAC9B,WAAAC,EACA,OAAAC,EACA,OAAAC,EAAS,IACT,gBAAAC,EACA,iBAAAC,EACA,kBAAAC,CACF,IAA4B,CAC1B,MAAMC,EAAgBJ,EAChBK,EAAeC,QAAM,UACrBC,EAAaD,QAAMP,CAAM,EAG7B,OAAAS,EAAA,kBAAA,KAAC,MAAA,CACC,KAAK,aACL,UAAWC,EAAAA,KAAK,cAAeP,CAAgB,EAC/C,MACE,CACE,oBAAqBD,EAAgB,QAAU,CACjD,EAGF,SAAA,CAAAO,EAAA,kBAAA,KAACE,EAAA,IAAA,CACC,GAAI,MACJ,GAAI,MACJ,IAAK,MACL,eAAgB,SAChB,UAAU,oBAEV,SAAA,CAAAF,yBAACG,EAAAA,KAAI,IAAK,MAAO,WAAY,SAAU,eAAgB,SACrD,SAAA,CAAAC,EAAA,kBAAA,IAACP,EAAa,CAAA,MAAO,GAAI,OAAQ,GAAI,EACpCO,EAAA,kBAAA,IAAAC,EAAA,QAAA,CAAQ,GAAG,iBAAiB,UAAU,WAAW,EACjDD,EAAA,kBAAA,IAAAL,EAAA,CAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,EACrC,EACCK,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,sDACX,SACHd,CAAA,CAAA,CAAA,CAAA,CACF,EACAc,EAAAA,kBAAAA,IAAC,OAAI,UAAU,QACb,iCAACC,EAAAA,QAAQ,CAAA,GAAG,iBAAiB,CAC/B,CAAA,EACAD,EAAA,kBAAA,IAACF,EAAA,IAAA,CACC,GAAI,KACJ,IAAK,MACL,UAAWD,EAAAA,KAAK,8BAA+BN,CAAiB,EAChE,KAAK,OAEJ,SAAgBF,EAAA,IAAI,CAACa,EAAMC,IAAU,CACpC,MAAMC,EAAgBF,GAAA,YAAAA,EAAM,KAE1B,OAAAF,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWH,EAAAA,KAAK,mBAAoBK,EAAK,QAAU,QAAQ,EAE3D,SAAAN,EAAA,kBAAA,KAACJ,EAAA,CACC,KAAMU,EAAK,KACX,UAAWL,EAAA,KACT,wFACAK,EAAK,OAAS,UAAY,WAC5B,EACA,OAAQA,EAAK,SAAW,SAAW,OACnC,IAAKA,EAAK,SAAW,sBAAwB,OAE5C,SAAA,CAAAE,2BACEA,EAAc,CAAA,MAAM,UAAU,OAAQF,EAAK,OAAQ,EAErDF,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,cAAe,WAAK,MAAM,EACzCE,EAAK,QAAUF,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,CAC1D,EAjBKG,CAkBP,CAEH,CAAA,CAAA,CAAA,CACH,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs18.js","sources":["../src/components/navigations/HeaderPostLogin/index.tsx"],"sourcesContent":["import { LOGOS, Region } from \"../Header\";\nimport clsx from \"clsx\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport \"./HeaderPostLogin.scss\";\nimport { ComponentType, ReactNode } from \"react\";\nimport { Col, Row } from \"@/components\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n icon?: ComponentType<any>;\n active?: boolean;\n isNewTab?: boolean;\n};\n\nexport type HeaderPostLoginProps = {\n shortTitle: ReactNode;\n region: Region;\n navigationItems: NavigationItem[];\n loginLink?: string;\n asLink?: \"a\" | ComponentType<any>;\n generalClassName?: string;\n navItemsClassName?: string;\n};\n\nexport const HeaderPostLogin = ({\n shortTitle,\n region,\n asLink = \"a\",\n navigationItems,\n generalClassName,\n navItemsClassName,\n}: HeaderPostLoginProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n return (\n <nav\n role=\"navigation\"\n className={clsx(\"ui-hpl-menu\", generalClassName)}\n style={\n {\n \"--navbar-elements\": navigationItems.length ?? 0,\n } as React.CSSProperties\n }\n >\n <Col\n pt={\"x80\"}\n px={\"x40\"}\n gap={\"x16\"}\n justifyContent={\"center\"}\n className=\"position-relative\"\n >\n <Row gap={\"x24\"} alignItems={\"center\"} justifyContent={\"center\"}>\n <NationalIcon width={27} height={44} />\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n <RegionIcon width={44} height={44} />\n </Row>\n <h1 className=\"fs-custom fw-normal text-slate-20 text-align-center\">\n {shortTitle}\n </h1>\n </Col>\n <div className=\"p-x40\">\n <Divider bg=\"border-divider\" />\n </div>\n <Col\n as={\"ul\"}\n gap={\"x12\"}\n className={clsx(\"list-style-none ui-hpl-list\", navItemsClassName)}\n role=\"list\"\n >\n {navigationItems.map((item, index) => {\n const IconComponent = item?.icon;\n return (\n <li\n key={index}\n className={clsx(\"ui-hpl-list-item\", item.active && \"active\")}\n >\n <LinkComponent\n href={item.href}\n className={clsx(\n \"text-decoration-none text-primary fs-custom base-row gap-x16 align-items-center pr-x8\",\n item.active ? \"fw-bold\" : \"fw-normal\",\n )}\n target={item.isNewTab ? \"_blank\" : undefined}\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {IconComponent && (\n <IconComponent color=\"primary\" filled={item.active} />\n )}\n <span className=\"ui-hpl-text\">{item.label}</span>\n {item.active && <span className=\"visually-hidden\">Attivo</span>}\n </LinkComponent>\n </li>\n );\n })}\n </Col>\n </nav>\n );\n};\n"],"names":["HeaderPostLogin","shortTitle","region","asLink","navigationItems","generalClassName","navItemsClassName","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsxs","clsx","Col","Row","jsx","Divider","item","index","IconComponent"],"mappings":"+SAyBaA,EAAkB,CAAC,CAC9B,WAAAC,EACA,OAAAC,EACA,OAAAC,EAAS,IACT,gBAAAC,EACA,iBAAAC,EACA,kBAAAC,CACF,IAA4B,CAC1B,MAAMC,EAAgBJ,EAChBK,EAAeC,QAAM,UACrBC,EAAaD,QAAMP,CAAM,EAG7B,OAAAS,EAAA,kBAAA,KAAC,MAAA,CACC,KAAK,aACL,UAAWC,EAAAA,KAAK,cAAeP,CAAgB,EAC/C,MACE,CACE,oBAAqBD,EAAgB,QAAU,CACjD,EAGF,SAAA,CAAAO,EAAA,kBAAA,KAACE,EAAA,IAAA,CACC,GAAI,MACJ,GAAI,MACJ,IAAK,MACL,eAAgB,SAChB,UAAU,oBAEV,SAAA,CAAAF,yBAACG,EAAAA,KAAI,IAAK,MAAO,WAAY,SAAU,eAAgB,SACrD,SAAA,CAAAC,EAAA,kBAAA,IAACP,EAAa,CAAA,MAAO,GAAI,OAAQ,GAAI,EACpCO,EAAA,kBAAA,IAAAC,EAAA,QAAA,CAAQ,GAAG,iBAAiB,UAAU,WAAW,EACjDD,EAAA,kBAAA,IAAAL,EAAA,CAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,EACrC,EACCK,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,sDACX,SACHd,CAAA,CAAA,CAAA,CAAA,CACF,EACAc,EAAAA,kBAAAA,IAAC,OAAI,UAAU,QACb,iCAACC,EAAAA,QAAQ,CAAA,GAAG,iBAAiB,CAC/B,CAAA,EACAD,EAAA,kBAAA,IAACF,EAAA,IAAA,CACC,GAAI,KACJ,IAAK,MACL,UAAWD,EAAAA,KAAK,8BAA+BN,CAAiB,EAChE,KAAK,OAEJ,SAAgBF,EAAA,IAAI,CAACa,EAAMC,IAAU,CACpC,MAAMC,EAAgBF,GAAA,YAAAA,EAAM,KAE1B,OAAAF,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWH,EAAAA,KAAK,mBAAoBK,EAAK,QAAU,QAAQ,EAE3D,SAAAN,EAAA,kBAAA,KAACJ,EAAA,CACC,KAAMU,EAAK,KACX,UAAWL,EAAA,KACT,wFACAK,EAAK,OAAS,UAAY,WAC5B,EACA,OAAQA,EAAK,SAAW,SAAW,OACnC,IAAKA,EAAK,SAAW,sBAAwB,OAE5C,SAAA,CAAAE,2BACEA,EAAc,CAAA,MAAM,UAAU,OAAQF,EAAK,OAAQ,EAErDF,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,cAAe,WAAK,MAAM,EACzCE,EAAK,QAAUF,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,CAC1D,EAjBKG,CAkBP,CAEH,CAAA,CAAA,CAAA,CACH,CAAA,CACF,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs19.js","sources":["../src/components/navigations/Breadcrumb/index.tsx"],"sourcesContent":["import {\r\n BreadcrumbItem,\r\n BreadcrumbItemProps,\r\n} from \"@/components/navigations/Breadcrumb/BreadcrumbItem.tsx\";\r\nimport clsx from \"clsx\";\r\nimport \"./Breadcrumb.scss\";\r\n\r\nexport type BreadcrumbProps = {\r\n items: BreadcrumbItemProps[];\r\n};\r\n\r\nexport const Breadcrumb = ({\r\n items = [{ label: \"Home\", href: \"#\" }],\r\n}: BreadcrumbProps) => {\r\n return (\r\n <nav aria-label=\"Percorso di navigazione\">\r\n <ol className={clsx(\"ui-breadcrumb\", \"fs-6 md-fs-custom\")}>\r\n {items.map((item, index) => (\r\n <li key={index} className=\"ui-breadcrumb-wrapper\">\r\n <BreadcrumbItem\r\n label={item.label}\r\n href={item.href}\r\n asLink={item.asLink}\r\n isClickable={item.isClickable ?? true}\r\n />\r\n {index < items.length - 1 && (\r\n <span\r\n className={clsx(\r\n \"ui-breadcrumb-separator\",\r\n \"fw-bold text-slate-28\",\r\n )}\r\n aria-hidden=\"true\"\r\n >\r\n /\r\n </span>\r\n )}\r\n </li>\r\n ))}\r\n </ol>\r\n </nav>\r\n );\r\n};\r\n"],"names":["Breadcrumb","items","jsx","clsx","item","index","jsxs","BreadcrumbItem"],"mappings":"gNAWO,MAAMA,EAAa,CAAC,CACzB,MAAAC,EAAQ,CAAC,CAAE,MAAO,OAAQ,KAAM,GAAK,CAAA,CACvC,4BAEK,MAAI,CAAA,aAAW,0BACd,SAACC,EAAAA,kBAAAA,IAAA,KAAA,CAAG,UAAWC,EAAK,KAAA,gBAAiB,mBAAmB,EACrD,SAAAF,EAAM,IAAI,CAACG,EAAMC,IACfC,EAAA,kBAAA,KAAA,KAAA,CAAe,UAAU,wBACxB,SAAA,CAAAJ,EAAA,kBAAA,IAACK,EAAA,eAAA,CACC,MAAOH,EAAK,MACZ,KAAMA,EAAK,KACX,OAAQA,EAAK,OACb,YAAaA,EAAK,aAAe,EAAA,CACnC,EACCC,EAAQJ,EAAM,OAAS,GACtBC,EAAA,kBAAA,IAAC,OAAA,CACC,UAAWC,EAAA,KACT,0BACA,uBACF,EACA,cAAY,OACb,SAAA,GAAA,CAAA,CAdI,CAAA,EAAAE,CAkBT,CACD,CACH,CAAA,EACF"}
1
+ {"version":3,"file":"index.cjs19.js","sources":["../src/components/navigations/Breadcrumb/index.tsx"],"sourcesContent":["import {\n BreadcrumbItem,\n BreadcrumbItemProps,\n} from \"@/components/navigations/Breadcrumb/BreadcrumbItem.tsx\";\nimport clsx from \"clsx\";\nimport \"./Breadcrumb.scss\";\n\nexport type BreadcrumbProps = {\n items: BreadcrumbItemProps[];\n};\n\nexport const Breadcrumb = ({\n items = [{ label: \"Home\", href: \"#\" }],\n}: BreadcrumbProps) => {\n return (\n <nav aria-label=\"Percorso di navigazione\">\n <ol className={clsx(\"ui-breadcrumb\", \"fs-6 md-fs-custom\")}>\n {items.map((item, index) => (\n <li key={index} className=\"ui-breadcrumb-wrapper\">\n <BreadcrumbItem\n label={item.label}\n href={item.href}\n asLink={item.asLink}\n isClickable={item.isClickable ?? true}\n />\n {index < items.length - 1 && (\n <span\n className={clsx(\n \"ui-breadcrumb-separator\",\n \"fw-bold text-slate-28\",\n )}\n aria-hidden=\"true\"\n >\n /\n </span>\n )}\n </li>\n ))}\n </ol>\n </nav>\n );\n};\n"],"names":["Breadcrumb","items","jsx","clsx","item","index","jsxs","BreadcrumbItem"],"mappings":"gNAWO,MAAMA,EAAa,CAAC,CACzB,MAAAC,EAAQ,CAAC,CAAE,MAAO,OAAQ,KAAM,GAAK,CAAA,CACvC,4BAEK,MAAI,CAAA,aAAW,0BACd,SAACC,EAAAA,kBAAAA,IAAA,KAAA,CAAG,UAAWC,EAAK,KAAA,gBAAiB,mBAAmB,EACrD,SAAAF,EAAM,IAAI,CAACG,EAAMC,IACfC,EAAA,kBAAA,KAAA,KAAA,CAAe,UAAU,wBACxB,SAAA,CAAAJ,EAAA,kBAAA,IAACK,EAAA,eAAA,CACC,MAAOH,EAAK,MACZ,KAAMA,EAAK,KACX,OAAQA,EAAK,OACb,YAAaA,EAAK,aAAe,EAAA,CACnC,EACCC,EAAQJ,EAAM,OAAS,GACtBC,EAAA,kBAAA,IAAC,OAAA,CACC,UAAWC,EAAA,KACT,0BACA,uBACF,EACA,cAAY,OACb,SAAA,GAAA,CAAA,CAdI,CAAA,EAAAE,CAkBT,CACD,CACH,CAAA,EACF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs243.js"),n=require("./index.cjs244.js"),u=require("./index.cjs247.js"),a=({width:r=40,height:l=40,className:o,color:t,decorative:e=!0,ariaLabel:c="Icona"})=>{const i=u.createColorClasses({color:t});return s.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:l,fill:"currentColor",viewBox:"0 0 40 40",className:n.clsx(o,i),"aria-hidden":e,"aria-label":e?void 0:c,children:s.jsxRuntimeExports.jsx("path",{fill:"#008055",fillRule:"evenodd",d:"M20.695 36.665c-9.588 0-17.361-7.462-17.361-16.666S11.107 3.332 20.695 3.332c4.605 0 9.02 1.756 12.276 4.882s5.085 7.364 5.085 11.785c0 9.204-7.773 16.666-17.36 16.666m8.854-23.5 1.216 1.167-13.542 12.667-8.16-7.667 1.215-1.167 6.945 6.5zM20.695 5c8.63 0 15.625 6.715 15.625 15s-6.995 15-15.625 15-15.625-6.716-15.625-15c0-8.285 6.996-15 15.625-15",clipRule:"evenodd"})})};exports.Confirm=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs243.js"),n=require("./index.cjs244.js"),a=require("./index.cjs247.js"),u=({width:l=40,height:r=40,className:o,color:c,decorative:e=!1,ariaLabel:t="Icona"})=>{const i=a.createColorClasses({color:c});return s.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:r,fill:"currentColor",viewBox:"0 0 40 40",className:n.clsx(o,i),"aria-hidden":e,"aria-label":e?void 0:t,children:s.jsxRuntimeExports.jsx("path",{fill:"#008055",fillRule:"evenodd",d:"M20.695 36.665c-9.588 0-17.361-7.462-17.361-16.666S11.107 3.332 20.695 3.332c4.605 0 9.02 1.756 12.276 4.882s5.085 7.364 5.085 11.785c0 9.204-7.773 16.666-17.36 16.666m8.854-23.5 1.216 1.167-13.542 12.667-8.16-7.667 1.215-1.167 6.945 6.5zM20.695 5c8.63 0 15.625 6.715 15.625 15s-6.995 15-15.625 15-15.625-6.716-15.625-15c0-8.285 6.996-15 15.625-15",clipRule:"evenodd"})})};exports.Confirm=u;
2
2
  //# sourceMappingURL=index.cjs193.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs193.js","sources":["../src/icons/Confirm/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { IconProps } from \"@/types/icons.ts\";\nimport { createColorClasses } from \"@/theme/colors\";\n\nexport const Confirm = ({\n width = 40,\n height = 40,\n className,\n color,\n decorative = true,\n ariaLabel = \"Icona\",\n}: IconProps) => {\n const classes = createColorClasses({ color });\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={width}\n height={height}\n fill=\"currentColor\"\n viewBox=\"0 0 40 40\"\n className={clsx(className, classes)}\n aria-hidden={decorative}\n aria-label={!decorative ? ariaLabel : undefined}\n >\n <path\n fill=\"#008055\"\n fillRule=\"evenodd\"\n d=\"M20.695 36.665c-9.588 0-17.361-7.462-17.361-16.666S11.107 3.332 20.695 3.332c4.605 0 9.02 1.756 12.276 4.882s5.085 7.364 5.085 11.785c0 9.204-7.773 16.666-17.36 16.666m8.854-23.5 1.216 1.167-13.542 12.667-8.16-7.667 1.215-1.167 6.945 6.5zM20.695 5c8.63 0 15.625 6.715 15.625 15s-6.995 15-15.625 15-15.625-6.716-15.625-15c0-8.285 6.996-15 15.625-15\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n );\n};\n"],"names":["Confirm","width","height","className","color","decorative","ariaLabel","classes","createColorClasses","jsx","clsx"],"mappings":"mLAIaA,EAAU,CAAC,CACtB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,GACb,UAAAC,EAAY,OACd,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAJ,EAAO,EAG1C,OAAAK,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,6BACN,MAAAR,EACA,OAAAC,EACA,KAAK,eACL,QAAQ,YACR,UAAWQ,EAAAA,KAAKP,EAAWI,CAAO,EAClC,cAAaF,EACb,aAAaA,EAAyB,OAAZC,EAE1B,SAAAG,EAAA,kBAAA,IAAC,OAAA,CACC,KAAK,UACL,SAAS,UACT,EAAE,8VACF,SAAS,SAAA,CAAA,CACV,CACH,CAEJ"}
1
+ {"version":3,"file":"index.cjs193.js","sources":["../src/icons/Confirm/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { IconProps } from \"@/types/icons.ts\";\nimport { createColorClasses } from \"@/theme/colors\";\n\nexport const Confirm = ({\n width = 40,\n height = 40,\n className,\n color,\n decorative = false,\n ariaLabel = \"Icona\",\n}: IconProps) => {\n const classes = createColorClasses({ color });\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={width}\n height={height}\n fill=\"currentColor\"\n viewBox=\"0 0 40 40\"\n className={clsx(className, classes)}\n aria-hidden={decorative}\n aria-label={!decorative ? ariaLabel : undefined}\n >\n <path\n fill=\"#008055\"\n fillRule=\"evenodd\"\n d=\"M20.695 36.665c-9.588 0-17.361-7.462-17.361-16.666S11.107 3.332 20.695 3.332c4.605 0 9.02 1.756 12.276 4.882s5.085 7.364 5.085 11.785c0 9.204-7.773 16.666-17.36 16.666m8.854-23.5 1.216 1.167-13.542 12.667-8.16-7.667 1.215-1.167 6.945 6.5zM20.695 5c8.63 0 15.625 6.715 15.625 15s-6.995 15-15.625 15-15.625-6.716-15.625-15c0-8.285 6.996-15 15.625-15\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n );\n};\n"],"names":["Confirm","width","height","className","color","decorative","ariaLabel","classes","createColorClasses","jsx","clsx"],"mappings":"mLAIaA,EAAU,CAAC,CACtB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,GACb,UAAAC,EAAY,OACd,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAJ,EAAO,EAG1C,OAAAK,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,6BACN,MAAAR,EACA,OAAAC,EACA,KAAK,eACL,QAAQ,YACR,UAAWQ,EAAAA,KAAKP,EAAWI,CAAO,EAClC,cAAaF,EACb,aAAaA,EAAyB,OAAZC,EAE1B,SAAAG,EAAA,kBAAA,IAAC,OAAA,CACC,KAAK,UACL,SAAS,UACT,EAAE,8VACF,SAAS,SAAA,CAAA,CACV,CACH,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs243.js"),o=require("./index.cjs244.js"),c=({width:r=24,height:i=24,className:n,decorative:e=!0,ariaLabel:t="Caricamento in corso"})=>s.jsxRuntimeExports.jsx("svg",{width:r,height:i,className:o.clsx("spinner",n),viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg","aria-hidden":e,"aria-label":e?void 0:t,children:s.jsxRuntimeExports.jsx("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})});exports.Spinner=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs243.js"),o=require("./index.cjs244.js"),c=({width:i=24,height:n=24,className:r,decorative:e=!1,ariaLabel:t="Caricamento in corso"})=>s.jsxRuntimeExports.jsx("svg",{width:i,height:n,className:o.clsx("spinner",r),viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg","aria-hidden":e,"aria-label":e?void 0:t,children:s.jsxRuntimeExports.jsx("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})});exports.Spinner=c;
2
2
  //# sourceMappingURL=index.cjs195.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs195.js","sources":["../src/icons/Spinner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\n\ntype SpinnerProps = {\n width?: number;\n height?: number;\n className?: string;\n decorative?: boolean;\n ariaLabel?: string;\n};\n\nexport const Spinner = ({\n width = 24,\n height = 24,\n className,\n decorative = true,\n ariaLabel = \"Caricamento in corso\",\n}: SpinnerProps) => (\n <svg\n width={width}\n height={height}\n className={clsx(\"spinner\", className)}\n viewBox=\"0 0 50 50\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden={decorative}\n aria-label={!decorative ? ariaLabel : undefined}\n // style={{ width: \"24px\", height: \"24px\" }}\n >\n <circle\n className=\"path\"\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n fill=\"none\"\n strokeWidth=\"5\"\n ></circle>\n </svg>\n);\n"],"names":["Spinner","width","height","className","decorative","ariaLabel","jsx","clsx"],"mappings":"oJAUaA,EAAU,CAAC,CACtB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,WAAAC,EAAa,GACb,UAAAC,EAAY,sBACd,IACEC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAAL,EACA,OAAAC,EACA,UAAWK,EAAAA,KAAK,UAAWJ,CAAS,EACpC,QAAQ,YACR,MAAM,6BACN,cAAaC,EACb,aAAaA,EAAyB,OAAZC,EAG1B,SAAAC,EAAA,kBAAA,IAAC,SAAA,CACC,UAAU,OACV,GAAG,KACH,GAAG,KACH,EAAE,KACF,KAAK,OACL,YAAY,GAAA,CAAA,CACb,CACH"}
1
+ {"version":3,"file":"index.cjs195.js","sources":["../src/icons/Spinner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\n\ntype SpinnerProps = {\n width?: number;\n height?: number;\n className?: string;\n decorative?: boolean;\n ariaLabel?: string;\n};\n\nexport const Spinner = ({\n width = 24,\n height = 24,\n className,\n decorative = false,\n ariaLabel = \"Caricamento in corso\",\n}: SpinnerProps) => (\n <svg\n width={width}\n height={height}\n className={clsx(\"spinner\", className)}\n viewBox=\"0 0 50 50\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden={decorative}\n aria-label={!decorative ? ariaLabel : undefined}\n // style={{ width: \"24px\", height: \"24px\" }}\n >\n <circle\n className=\"path\"\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n fill=\"none\"\n strokeWidth=\"5\"\n ></circle>\n </svg>\n);\n"],"names":["Spinner","width","height","className","decorative","ariaLabel","jsx","clsx"],"mappings":"oJAUaA,EAAU,CAAC,CACtB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,WAAAC,EAAa,GACb,UAAAC,EAAY,sBACd,IACEC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAAL,EACA,OAAAC,EACA,UAAWK,EAAAA,KAAK,UAAWJ,CAAS,EACpC,QAAQ,YACR,MAAM,6BACN,cAAaC,EACb,aAAaA,EAAyB,OAAZC,EAG1B,SAAAC,EAAA,kBAAA,IAAC,SAAA,CACC,UAAU,OACV,GAAG,KACH,GAAG,KACH,EAAE,KACF,KAAK,OACL,YAAY,GAAA,CAAA,CACb,CACH"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs243.js"),u=require("./index.cjs244.js"),a=require("./index.cjs247.js"),C=({width:r=20,height:l=20,className:o,filled:t=!1,color:n,decorative:e=!0,ariaLabel:i="Icona"})=>{const c=a.createColorClasses({color:n});return s.jsxRuntimeExports.jsx("svg",{width:r,height:l,viewBox:"0 0 20 20",fill:t?"currentColor":"none",className:u.clsx(o,c),"aria-hidden":e?"true":"false",xmlns:"http://www.w3.org/2000/svg","aria-label":e?void 0:i,children:s.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM1 10C1 14.9706 5.02944 19 10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10ZM9.3 4H10.8V6H9.3V4ZM10.8 7H9.3V16H10.8V7Z"})})};exports.Info=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs243.js"),a=require("./index.cjs244.js"),u=require("./index.cjs247.js"),C=({width:l=20,height:o=20,className:r,filled:n=!1,color:t,decorative:e=!1,ariaLabel:i="Icona"})=>{const c=u.createColorClasses({color:t});return s.jsxRuntimeExports.jsx("svg",{width:l,height:o,viewBox:"0 0 20 20",fill:n?"currentColor":"none",className:a.clsx(r,c),"aria-hidden":e?"true":"false",xmlns:"http://www.w3.org/2000/svg","aria-label":e?void 0:i,children:s.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM1 10C1 14.9706 5.02944 19 10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10ZM9.3 4H10.8V6H9.3V4ZM10.8 7H9.3V16H10.8V7Z"})})};exports.Info=C;
2
2
  //# sourceMappingURL=index.cjs199.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs199.js","sources":["../src/icons/Info/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { IconProps } from \"@/types/icons\";\nimport { createColorClasses } from \"@/theme/colors\";\n\nexport const Info = ({\n width = 20,\n height = 20,\n className,\n filled = false,\n color,\n decorative = true,\n ariaLabel = \"Icona\",\n}: IconProps) => {\n const classes = createColorClasses({ color });\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 20 20\"\n fill={filled ? \"currentColor\" : \"none\"}\n className={clsx(className, classes)}\n aria-hidden={decorative ? \"true\" : \"false\"}\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-label={!decorative ? ariaLabel : undefined}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n fill=\"currentColor\"\n d=\"M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM1 10C1 14.9706 5.02944 19 10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10ZM9.3 4H10.8V6H9.3V4ZM10.8 7H9.3V16H10.8V7Z\"\n />\n </svg>\n );\n};\n"],"names":["Info","width","height","className","filled","color","decorative","ariaLabel","classes","createColorClasses","jsx","clsx"],"mappings":"mLAIaA,EAAO,CAAC,CACnB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,OAAAC,EAAS,GACT,MAAAC,EACA,WAAAC,EAAa,GACb,UAAAC,EAAY,OACd,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAJ,EAAO,EAE1C,OAAAK,EAAA,kBAAA,IAAC,MAAA,CACC,MAAAT,EACA,OAAAC,EACA,QAAQ,YACR,KAAME,EAAS,eAAiB,OAChC,UAAWO,EAAAA,KAAKR,EAAWK,CAAO,EAClC,cAAaF,EAAa,OAAS,QACnC,MAAM,6BACN,aAAaA,EAAyB,OAAZC,EAE1B,SAAAG,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,KAAK,eACL,EAAE,2TAAA,CAAA,CACJ,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs199.js","sources":["../src/icons/Info/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { IconProps } from \"@/types/icons\";\nimport { createColorClasses } from \"@/theme/colors\";\n\nexport const Info = ({\n width = 20,\n height = 20,\n className,\n filled = false,\n color,\n decorative = false,\n ariaLabel = \"Icona\",\n}: IconProps) => {\n const classes = createColorClasses({ color });\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 20 20\"\n fill={filled ? \"currentColor\" : \"none\"}\n className={clsx(className, classes)}\n aria-hidden={decorative ? \"true\" : \"false\"}\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-label={!decorative ? ariaLabel : undefined}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n fill=\"currentColor\"\n d=\"M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM1 10C1 14.9706 5.02944 19 10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10ZM9.3 4H10.8V6H9.3V4ZM10.8 7H9.3V16H10.8V7Z\"\n />\n </svg>\n );\n};\n"],"names":["Info","width","height","className","filled","color","decorative","ariaLabel","classes","createColorClasses","jsx","clsx"],"mappings":"mLAIaA,EAAO,CAAC,CACnB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,OAAAC,EAAS,GACT,MAAAC,EACA,WAAAC,EAAa,GACb,UAAAC,EAAY,OACd,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAJ,EAAO,EAE1C,OAAAK,EAAA,kBAAA,IAAC,MAAA,CACC,MAAAT,EACA,OAAAC,EACA,QAAQ,YACR,KAAME,EAAS,eAAiB,OAChC,UAAWO,EAAAA,KAAKR,EAAWK,CAAO,EAClC,cAAaF,EAAa,OAAS,QACnC,MAAM,6BACN,aAAaA,EAAyB,OAAZC,EAE1B,SAAAG,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,KAAK,eACL,EAAE,2TAAA,CAAA,CACJ,CACF,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs204.js","sources":["../src/icons/DeleteTrash/index.tsx"],"sourcesContent":["import { IconProps } from \"@/types/icons\";\r\nimport clsx from \"clsx\";\r\n\r\ninterface DeleteTrashProps extends IconProps {\r\n className?: string;\r\n}\r\n\r\nexport const DeleteTrash = ({\r\n width = 20,\r\n height = 20,\r\n className,\r\n fillColor = \"#B3261E\",\r\n decorative = true,\r\n ariaLabel = \"Icona\",\r\n}: DeleteTrashProps) => {\r\n return (\r\n <svg\r\n width={width}\r\n height={height}\r\n viewBox={`0 0 ${width + 2} ${height + 2}`}\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n className={clsx(className)}\r\n aria-hidden={decorative}\r\n aria-label={!decorative ? ariaLabel : undefined}\r\n >\r\n <path\r\n fill={fillColor}\r\n fillRule=\"evenodd\"\r\n d=\"M15.5 3.5V4H21v1h-2v15.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 20.5V5H3V4h5.5v-.5A1.5 1.5 0 0 1 10 2h4a1.5 1.5 0 0 1 1.5 1.5M10 3a.5.5 0 0 0-.5.5V4h5v-.5A.5.5 0 0 0 14 3zm8 17.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V5h12zM12.5 8h-1v10h1zM9 8v10H8V8zm7 10V8h-1v10z\"\r\n clipRule=\"evenodd\"\r\n ></path>\r\n </svg>\r\n );\r\n};\r\n"],"names":["DeleteTrash","width","height","className","fillColor","decorative","ariaLabel","jsx","clsx"],"mappings":"oJAOaA,EAAc,CAAC,CAC1B,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,UAAAC,EAAY,UACZ,WAAAC,EAAa,GACb,UAAAC,EAAY,OACd,IAEIC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAAN,EACA,OAAAC,EACA,QAAS,OAAOD,EAAQ,CAAC,IAAIC,EAAS,CAAC,GACvC,KAAK,OACL,MAAM,6BACN,UAAWM,OAAKL,CAAS,EACzB,cAAaE,EACb,aAAaA,EAAyB,OAAZC,EAE1B,SAAAC,EAAA,kBAAA,IAAC,OAAA,CACC,KAAMH,EACN,SAAS,UACT,EAAE,6QACF,SAAS,SAAA,CAAA,CACV,CACH"}
1
+ {"version":3,"file":"index.cjs204.js","sources":["../src/icons/DeleteTrash/index.tsx"],"sourcesContent":["import { IconProps } from \"@/types/icons\";\nimport clsx from \"clsx\";\n\ninterface DeleteTrashProps extends IconProps {\n className?: string;\n}\n\nexport const DeleteTrash = ({\n width = 20,\n height = 20,\n className,\n fillColor = \"#B3261E\",\n decorative = true,\n ariaLabel = \"Icona\",\n}: DeleteTrashProps) => {\n return (\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width + 2} ${height + 2}`}\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={clsx(className)}\n aria-hidden={decorative}\n aria-label={!decorative ? ariaLabel : undefined}\n >\n <path\n fill={fillColor}\n fillRule=\"evenodd\"\n d=\"M15.5 3.5V4H21v1h-2v15.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 20.5V5H3V4h5.5v-.5A1.5 1.5 0 0 1 10 2h4a1.5 1.5 0 0 1 1.5 1.5M10 3a.5.5 0 0 0-.5.5V4h5v-.5A.5.5 0 0 0 14 3zm8 17.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V5h12zM12.5 8h-1v10h1zM9 8v10H8V8zm7 10V8h-1v10z\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n );\n};\n"],"names":["DeleteTrash","width","height","className","fillColor","decorative","ariaLabel","jsx","clsx"],"mappings":"oJAOaA,EAAc,CAAC,CAC1B,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,UAAAC,EAAY,UACZ,WAAAC,EAAa,GACb,UAAAC,EAAY,OACd,IAEIC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAAN,EACA,OAAAC,EACA,QAAS,OAAOD,EAAQ,CAAC,IAAIC,EAAS,CAAC,GACvC,KAAK,OACL,MAAM,6BACN,UAAWM,OAAKL,CAAS,EACzB,cAAaE,EACb,aAAaA,EAAyB,OAAZC,EAE1B,SAAAC,EAAA,kBAAA,IAAC,OAAA,CACC,KAAMH,EACN,SAAS,UACT,EAAE,6QACF,SAAS,SAAA,CAAA,CACV,CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs21.js","sources":["../src/components/navigations/HeaderTopBanner/index.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport { Container } from \"@/components/ui/Container\";\r\nimport { Region, LOGOS } from \"../Header\";\r\nimport { Divider } from \"@/components/ui/Divider\";\r\nimport clsx from \"clsx\";\r\nimport { Row } from \"@/components\";\r\n\r\nexport type HeaderTopBannerProps = {\r\n asLink?: \"a\" | React.ComponentType<any>;\r\n shortTitle: React.ReactNode;\r\n region?: Region;\r\n className?: string;\r\n};\r\n\r\nexport const HeaderTopBanner = ({\r\n asLink = \"a\",\r\n shortTitle,\r\n region = \"marche\",\r\n className,\r\n}: HeaderTopBannerProps) => {\r\n const LinkComponent = asLink;\r\n\r\n const NationalIcon = LOGOS[\"nazionale\"];\r\n const RegionIcon = LOGOS[region];\r\n\r\n return (\r\n <div className=\"bg-white\">\r\n <Container\r\n className={clsx(\"min-h-x48 base-row align-items-center\", className)}\r\n display=\"flex\"\r\n alignItems=\"center\"\r\n gap=\"x16\"\r\n py=\"x8\"\r\n >\r\n <Row alignItems={\"center\"} gap={\"x8\"}>\r\n <NationalIcon width={28} height={28} />\r\n\r\n {region !== \"nazionale\" && (\r\n <>\r\n <Divider direction=\"vertical\" bg=\"border-divider\" />\r\n <RegionIcon width={28} height={28} />\r\n </>\r\n )}\r\n </Row>\r\n\r\n <LinkComponent\r\n href=\"/\"\r\n className={\r\n \"fs-7 text-decoration-none text-slate-20 fw-regular d-block hover-underline\"\r\n }\r\n >\r\n {shortTitle}\r\n </LinkComponent>\r\n </Container>\r\n </div>\r\n );\r\n};\r\n"],"names":["HeaderTopBanner","asLink","shortTitle","region","className","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsx","jsxs","Container","clsx","Row","Fragment","Divider"],"mappings":"2QAeaA,EAAkB,CAAC,CAC9B,OAAAC,EAAS,IACT,WAAAC,EACA,OAAAC,EAAS,SACT,UAAAC,CACF,IAA4B,CAC1B,MAAMC,EAAgBJ,EAEhBK,EAAeC,QAAM,UACrBC,EAAaD,QAAMJ,CAAM,EAG7B,OAAAM,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,WACb,SAAAC,EAAA,kBAAA,KAACC,EAAA,UAAA,CACC,UAAWC,EAAAA,KAAK,wCAAyCR,CAAS,EAClE,QAAQ,OACR,WAAW,SACX,IAAI,MACJ,GAAG,KAEH,SAAA,CAAAM,EAAA,kBAAA,KAACG,EAAI,IAAA,CAAA,WAAY,SAAU,IAAK,KAC9B,SAAA,CAAAJ,EAAA,kBAAA,IAACH,EAAa,CAAA,MAAO,GAAI,OAAQ,GAAI,EAEpCH,IAAW,aAERO,EAAAA,kBAAAA,KAAAI,EAAA,kBAAA,SAAA,CAAA,SAAA,CAAAL,EAAA,kBAAA,IAACM,EAAQ,QAAA,CAAA,UAAU,WAAW,GAAG,iBAAiB,EACjDN,EAAA,kBAAA,IAAAD,EAAA,CAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CACrC,CAAA,CAAA,EAEJ,EAEAC,EAAA,kBAAA,IAACJ,EAAA,CACC,KAAK,IACL,UACE,6EAGD,SAAAH,CAAA,CAAA,CACH,CAAA,CAAA,EAEJ,CAEJ"}
1
+ {"version":3,"file":"index.cjs21.js","sources":["../src/components/navigations/HeaderTopBanner/index.tsx"],"sourcesContent":["\"use client\";\n\nimport { Container } from \"@/components/ui/Container\";\nimport { Region, LOGOS } from \"../Header\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport clsx from \"clsx\";\nimport { Row } from \"@/components\";\n\nexport type HeaderTopBannerProps = {\n asLink?: \"a\" | React.ComponentType<any>;\n shortTitle: React.ReactNode;\n region?: Region;\n className?: string;\n};\n\nexport const HeaderTopBanner = ({\n asLink = \"a\",\n shortTitle,\n region = \"marche\",\n className,\n}: HeaderTopBannerProps) => {\n const LinkComponent = asLink;\n\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n return (\n <div className=\"bg-white\">\n <Container\n className={clsx(\"min-h-x48 base-row align-items-center\", className)}\n display=\"flex\"\n alignItems=\"center\"\n gap=\"x16\"\n py=\"x8\"\n >\n <Row alignItems={\"center\"} gap={\"x8\"}>\n <NationalIcon width={28} height={28} />\n\n {region !== \"nazionale\" && (\n <>\n <Divider direction=\"vertical\" bg=\"border-divider\" />\n <RegionIcon width={28} height={28} />\n </>\n )}\n </Row>\n\n <LinkComponent\n href=\"/\"\n className={\n \"fs-7 text-decoration-none text-slate-20 fw-regular d-block hover-underline\"\n }\n >\n {shortTitle}\n </LinkComponent>\n </Container>\n </div>\n );\n};\n"],"names":["HeaderTopBanner","asLink","shortTitle","region","className","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsx","jsxs","Container","clsx","Row","Fragment","Divider"],"mappings":"2QAeaA,EAAkB,CAAC,CAC9B,OAAAC,EAAS,IACT,WAAAC,EACA,OAAAC,EAAS,SACT,UAAAC,CACF,IAA4B,CAC1B,MAAMC,EAAgBJ,EAEhBK,EAAeC,QAAM,UACrBC,EAAaD,QAAMJ,CAAM,EAG7B,OAAAM,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,WACb,SAAAC,EAAA,kBAAA,KAACC,EAAA,UAAA,CACC,UAAWC,EAAAA,KAAK,wCAAyCR,CAAS,EAClE,QAAQ,OACR,WAAW,SACX,IAAI,MACJ,GAAG,KAEH,SAAA,CAAAM,EAAA,kBAAA,KAACG,EAAI,IAAA,CAAA,WAAY,SAAU,IAAK,KAC9B,SAAA,CAAAJ,EAAA,kBAAA,IAACH,EAAa,CAAA,MAAO,GAAI,OAAQ,GAAI,EAEpCH,IAAW,aAERO,EAAAA,kBAAAA,KAAAI,EAAA,kBAAA,SAAA,CAAA,SAAA,CAAAL,EAAA,kBAAA,IAACM,EAAQ,QAAA,CAAA,UAAU,WAAW,GAAG,iBAAiB,EACjDN,EAAA,kBAAA,IAAAD,EAAA,CAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CACrC,CAAA,CAAA,EAEJ,EAEAC,EAAA,kBAAA,IAACJ,EAAA,CACC,KAAK,IACL,UACE,6EAGD,SAAAH,CAAA,CAAA,CACH,CAAA,CAAA,EAEJ,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs23.js","sources":["../src/components/navigations/CookieBanner/index.tsx"],"sourcesContent":["import \"./CookieBanner.scss\";\r\nimport { Button, Row } from \"@/components\";\r\n\r\nexport type CookieBannerProps = {\r\n hasThirdPartyCookies?: boolean;\r\n hasTechnicalCookies?: boolean;\r\n onPressAcceptThirdPartCookie: () => void;\r\n onPressAcceptTechnicalCookie: () => void;\r\n onCloseBanner: () => void;\r\n onPressCookieLink: () => void;\r\n onlyTechniciansLabel: string;\r\n acceptLabel: string;\r\n text: string;\r\n textSecond: string;\r\n};\r\n\r\nexport const CookieBanner = ({\r\n onlyTechniciansLabel,\r\n text,\r\n textSecond,\r\n acceptLabel,\r\n onPressCookieLink,\r\n hasThirdPartyCookies = false,\r\n hasTechnicalCookies = true,\r\n onPressAcceptThirdPartCookie,\r\n onPressAcceptTechnicalCookie,\r\n onCloseBanner,\r\n}: CookieBannerProps) => {\r\n return (\r\n <div className={\"ui-cookie-banner-container-fixed\"}>\r\n <Row\r\n gap={\"x20\"}\r\n alignItems={\"center\"}\r\n justifyContent={\"space-between\"}\r\n className={\"ui-cookie-banner-container bg-slate-20\"}\r\n >\r\n <Row>\r\n <div className={\"ui-cookie-banner-text-container\"}>\r\n <span className={\"text-white fs-7\"}>{text}</span>{\" \"}\r\n <div>\r\n <span className={\"text-white fs-7\"}>{textSecond}</span>{\" \"}\r\n <span\r\n className={\"text-white fs-7 ui-cookie-banner-text-link\"}\r\n onClick={onPressCookieLink}\r\n >\r\n cookie policy\r\n </span>\r\n </div>\r\n </div>\r\n </Row>\r\n {hasTechnicalCookies && hasThirdPartyCookies && (\r\n <Row gap={\"x16\"} className={\"cookie-banner-buttons-container\"}>\r\n <Button\r\n className={\"ui-cookie-banner-first-button\"}\r\n onClick={() => {\r\n onPressAcceptTechnicalCookie();\r\n onCloseBanner();\r\n }}\r\n >\r\n {onlyTechniciansLabel}\r\n </Button>\r\n <Button\r\n className={\"ui-cookie-banner-second-button\"}\r\n variant={\"secondary\"}\r\n onClick={() => {\r\n onPressAcceptThirdPartCookie();\r\n onPressAcceptTechnicalCookie();\r\n onCloseBanner();\r\n }}\r\n >\r\n {acceptLabel}\r\n </Button>\r\n </Row>\r\n )}\r\n {hasTechnicalCookies && !hasThirdPartyCookies && (\r\n <Row gap={\"x16\"} className={\"cookie-banner-buttons-container\"}>\r\n <Button\r\n className={\"ui-cookie-banner-second-button\"}\r\n variant={\"secondary\"}\r\n onClick={() => {\r\n onPressAcceptTechnicalCookie();\r\n onCloseBanner();\r\n }}\r\n >\r\n {acceptLabel}\r\n </Button>\r\n </Row>\r\n )}\r\n </Row>\r\n </div>\r\n );\r\n};\r\n"],"names":["CookieBanner","onlyTechniciansLabel","text","textSecond","acceptLabel","onPressCookieLink","hasThirdPartyCookies","hasTechnicalCookies","onPressAcceptThirdPartCookie","onPressAcceptTechnicalCookie","onCloseBanner","jsx","jsxs","Row","Button"],"mappings":"mNAgBaA,EAAe,CAAC,CAC3B,qBAAAC,EACA,KAAAC,EACA,WAAAC,EACA,YAAAC,EACA,kBAAAC,EACA,qBAAAC,EAAuB,GACvB,oBAAAC,EAAsB,GACtB,6BAAAC,EACA,6BAAAC,EACA,cAAAC,CACF,IAEIC,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,mCACd,SAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,IAAK,MACL,WAAY,SACZ,eAAgB,gBAChB,UAAW,yCAEX,SAAA,CAAAF,wBAACE,EAAAA,IACC,CAAA,SAAAD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAW,kCACd,SAAA,CAACD,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAW,kBAAoB,SAAKT,EAAA,EAAQ,6BACjD,MACC,CAAA,SAAA,CAACS,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAW,kBAAoB,SAAWR,EAAA,EAAQ,IACxDQ,EAAA,kBAAA,IAAC,OAAA,CACC,UAAW,6CACX,QAASN,EACV,SAAA,eAAA,CAAA,CAED,CACF,CAAA,CAAA,CAAA,CACF,CACF,CAAA,EACCE,GAAuBD,GACtBM,EAAA,kBAAA,KAACC,OAAI,IAAK,MAAO,UAAW,kCAC1B,SAAA,CAAAF,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAW,gCACX,QAAS,IAAM,CACgBL,EAAA,EACfC,EAAA,CAChB,EAEC,SAAAT,CAAA,CACH,EACAU,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAW,iCACX,QAAS,YACT,QAAS,IAAM,CACgBN,EAAA,EACAC,EAAA,EACfC,EAAA,CAChB,EAEC,SAAAN,CAAA,CAAA,CACH,EACF,EAEDG,GAAuB,CAACD,GACvBK,EAAA,kBAAA,IAACE,OAAI,IAAK,MAAO,UAAW,kCAC1B,SAAAF,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAW,iCACX,QAAS,YACT,QAAS,IAAM,CACgBL,EAAA,EACfC,EAAA,CAChB,EAEC,SAAAN,CAAA,CAAA,CAEL,CAAA,CAAA,CAAA,CAAA,EAGN"}
1
+ {"version":3,"file":"index.cjs23.js","sources":["../src/components/navigations/CookieBanner/index.tsx"],"sourcesContent":["import \"./CookieBanner.scss\";\nimport { Button, Row } from \"@/components\";\n\nexport type CookieBannerProps = {\n hasThirdPartyCookies?: boolean;\n hasTechnicalCookies?: boolean;\n onPressAcceptThirdPartCookie: () => void;\n onPressAcceptTechnicalCookie: () => void;\n onCloseBanner: () => void;\n onPressCookieLink: () => void;\n onlyTechniciansLabel: string;\n acceptLabel: string;\n text: string;\n textSecond: string;\n};\n\nexport const CookieBanner = ({\n onlyTechniciansLabel,\n text,\n textSecond,\n acceptLabel,\n onPressCookieLink,\n hasThirdPartyCookies = false,\n hasTechnicalCookies = true,\n onPressAcceptThirdPartCookie,\n onPressAcceptTechnicalCookie,\n onCloseBanner,\n}: CookieBannerProps) => {\n return (\n <div className={\"ui-cookie-banner-container-fixed\"}>\n <Row\n gap={\"x20\"}\n alignItems={\"center\"}\n justifyContent={\"space-between\"}\n className={\"ui-cookie-banner-container bg-slate-20\"}\n >\n <Row>\n <div className={\"ui-cookie-banner-text-container\"}>\n <span className={\"text-white fs-7\"}>{text}</span>{\" \"}\n <div>\n <span className={\"text-white fs-7\"}>{textSecond}</span>{\" \"}\n <span\n className={\"text-white fs-7 ui-cookie-banner-text-link\"}\n onClick={onPressCookieLink}\n >\n cookie policy\n </span>\n </div>\n </div>\n </Row>\n {hasTechnicalCookies && hasThirdPartyCookies && (\n <Row gap={\"x16\"} className={\"cookie-banner-buttons-container\"}>\n <Button\n className={\"ui-cookie-banner-first-button\"}\n onClick={() => {\n onPressAcceptTechnicalCookie();\n onCloseBanner();\n }}\n >\n {onlyTechniciansLabel}\n </Button>\n <Button\n className={\"ui-cookie-banner-second-button\"}\n variant={\"secondary\"}\n onClick={() => {\n onPressAcceptThirdPartCookie();\n onPressAcceptTechnicalCookie();\n onCloseBanner();\n }}\n >\n {acceptLabel}\n </Button>\n </Row>\n )}\n {hasTechnicalCookies && !hasThirdPartyCookies && (\n <Row gap={\"x16\"} className={\"cookie-banner-buttons-container\"}>\n <Button\n className={\"ui-cookie-banner-second-button\"}\n variant={\"secondary\"}\n onClick={() => {\n onPressAcceptTechnicalCookie();\n onCloseBanner();\n }}\n >\n {acceptLabel}\n </Button>\n </Row>\n )}\n </Row>\n </div>\n );\n};\n"],"names":["CookieBanner","onlyTechniciansLabel","text","textSecond","acceptLabel","onPressCookieLink","hasThirdPartyCookies","hasTechnicalCookies","onPressAcceptThirdPartCookie","onPressAcceptTechnicalCookie","onCloseBanner","jsx","jsxs","Row","Button"],"mappings":"mNAgBaA,EAAe,CAAC,CAC3B,qBAAAC,EACA,KAAAC,EACA,WAAAC,EACA,YAAAC,EACA,kBAAAC,EACA,qBAAAC,EAAuB,GACvB,oBAAAC,EAAsB,GACtB,6BAAAC,EACA,6BAAAC,EACA,cAAAC,CACF,IAEIC,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,mCACd,SAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,IAAK,MACL,WAAY,SACZ,eAAgB,gBAChB,UAAW,yCAEX,SAAA,CAAAF,wBAACE,EAAAA,IACC,CAAA,SAAAD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAW,kCACd,SAAA,CAACD,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAW,kBAAoB,SAAKT,EAAA,EAAQ,6BACjD,MACC,CAAA,SAAA,CAACS,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAW,kBAAoB,SAAWR,EAAA,EAAQ,IACxDQ,EAAA,kBAAA,IAAC,OAAA,CACC,UAAW,6CACX,QAASN,EACV,SAAA,eAAA,CAAA,CAED,CACF,CAAA,CAAA,CAAA,CACF,CACF,CAAA,EACCE,GAAuBD,GACtBM,EAAA,kBAAA,KAACC,OAAI,IAAK,MAAO,UAAW,kCAC1B,SAAA,CAAAF,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAW,gCACX,QAAS,IAAM,CACgBL,EAAA,EACfC,EAAA,CAChB,EAEC,SAAAT,CAAA,CACH,EACAU,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAW,iCACX,QAAS,YACT,QAAS,IAAM,CACgBN,EAAA,EACAC,EAAA,EACfC,EAAA,CAChB,EAEC,SAAAN,CAAA,CAAA,CACH,EACF,EAEDG,GAAuB,CAACD,GACvBK,EAAA,kBAAA,IAACE,OAAI,IAAK,MAAO,UAAW,kCAC1B,SAAAF,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAW,iCACX,QAAS,YACT,QAAS,IAAM,CACgBL,EAAA,EACfC,EAAA,CAChB,EAEC,SAAAN,CAAA,CAAA,CAEL,CAAA,CAAA,CAAA,CAAA,EAGN"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs24.js","sources":["../src/components/ui/Dropdown/index.tsx"],"sourcesContent":["import { ArrowDown } from \"@/icons\";\r\nimport * as DropdownMenu from \"@radix-ui/react-dropdown-menu\";\r\nimport clsx from \"clsx\";\r\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\r\nimport \"./Dropdown.scss\";\r\nimport { Row } from \"@/components\";\r\n\r\ntype DropdownOption = {\r\n label: string;\r\n href?: string;\r\n onClick?: () => void;\r\n active?: boolean;\r\n};\r\n\r\ntype DropdownProps = {\r\n text: string;\r\n leftIcon?: React.ReactNode;\r\n options: DropdownOption[];\r\n asLinkItem?: \"a\" | React.ComponentType<any>;\r\n textColor?: ColorKeys;\r\n};\r\n\r\ntype DropdownMenuContentProps = {\r\n options: DropdownOption[];\r\n asLinkItem?: \"a\" | React.ComponentType<any>;\r\n};\r\n\r\nexport const Dropdown = ({\r\n text,\r\n leftIcon,\r\n options,\r\n asLinkItem,\r\n textColor = \"white\",\r\n}: DropdownProps) => {\r\n const textColorClass = createColorClasses({ text: textColor });\r\n\r\n return (\r\n <DropdownMenu.Root>\r\n <DropdownMenu.Trigger asChild>\r\n <button\r\n className={clsx(\r\n \"border-none bg-transparent base-row gap-x8 fw-regular fs-6 align-items-center\",\r\n textColorClass,\r\n \"ui-dropdown-trigger\",\r\n )}\r\n >\r\n {leftIcon && leftIcon}\r\n <Row as={\"span\"} gap={\"x4\"}>\r\n {text}\r\n <ArrowDown color={textColor} className={\"ui-arrow\"} />\r\n </Row>\r\n </button>\r\n </DropdownMenu.Trigger>\r\n <DropdownMenuContent options={options} asLinkItem={asLinkItem} />\r\n </DropdownMenu.Root>\r\n );\r\n};\r\n\r\nconst DropdownMenuContent = ({\r\n options,\r\n asLinkItem,\r\n}: DropdownMenuContentProps) => {\r\n if (options.length === 0) return null;\r\n\r\n const LinkComponent = asLinkItem ?? \"a\";\r\n\r\n return (\r\n <DropdownMenu.Portal>\r\n <DropdownMenu.Content\r\n className={\"bg-white shadow ui-dropdown-menu-content\"}\r\n >\r\n <DropdownMenu.Group className={\"ui-dropdown-menu-group\"}>\r\n {options.map((option, index) => (\r\n <DropdownMenu.Item\r\n key={index}\r\n asChild\r\n className={\"ui-dropdown-menu-item\"}\r\n >\r\n {option.href ? (\r\n <LinkComponent\r\n href={option.href}\r\n className={clsx(\r\n \"fs-6 text-decoration-none\",\r\n option.active\r\n ? `text-primary fw-semibold`\r\n : `text-slate-28 fw-regular`,\r\n )}\r\n >\r\n {option.label}\r\n {option.active && (\r\n <span className=\"visually-hidden\">Attivo</span>\r\n )}\r\n </LinkComponent>\r\n ) : (\r\n <button\r\n onClick={option.onClick}\r\n className={clsx(\r\n \"fs-6 text-decoration-none bg-white outline-none border-none text-left\",\r\n option.active\r\n ? `text-primary fw-semibold`\r\n : `text-slate-28 fw-regular`,\r\n )}\r\n >\r\n {option.label}\r\n {option.active && (\r\n <span className=\"visually-hidden\">Attivo</span>\r\n )}\r\n </button>\r\n )}\r\n </DropdownMenu.Item>\r\n ))}\r\n </DropdownMenu.Group>\r\n </DropdownMenu.Content>\r\n </DropdownMenu.Portal>\r\n );\r\n};\r\n"],"names":["Dropdown","text","leftIcon","options","asLinkItem","textColor","textColorClass","createColorClasses","jsxs","DropdownMenu.Root","jsx","DropdownMenu.Trigger","clsx","Row","ArrowDown","DropdownMenuContent","LinkComponent","DropdownMenu.Portal","DropdownMenu.Content","DropdownMenu.Group","option","index","DropdownMenu.Item"],"mappings":"iTA2BaA,EAAW,CAAC,CACvB,KAAAC,EACA,SAAAC,EACA,QAAAC,EACA,WAAAC,EACA,UAAAC,EAAY,OACd,IAAqB,CACnB,MAAMC,EAAiBC,EAAA,mBAAmB,CAAE,KAAMF,EAAW,EAG3D,OAAAG,EAAA,kBAAA,KAACC,OAAA,CACC,SAAA,CAAAC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CAAqB,QAAO,GAC3B,SAAAH,EAAA,kBAAA,KAAC,SAAA,CACC,UAAWI,EAAA,KACT,gFACAN,EACA,qBACF,EAEC,SAAA,CAAYJ,GAAAA,EACZM,EAAA,kBAAA,KAAAK,EAAA,IAAA,CAAI,GAAI,OAAQ,IAAK,KACnB,SAAA,CAAAZ,EACAS,EAAA,kBAAA,IAAAI,EAAA,UAAA,CAAU,MAAOT,EAAW,UAAW,UAAY,CAAA,CAAA,CACtD,CAAA,CAAA,CAAA,CAAA,EAEJ,EACAK,EAAAA,kBAAAA,IAACK,EAAoB,CAAA,QAAAZ,EAAkB,WAAAC,CAAwB,CAAA,CAAA,EACjE,CAEJ,EAEMW,EAAsB,CAAC,CAC3B,QAAAZ,EACA,WAAAC,CACF,IAAgC,CAC1B,GAAAD,EAAQ,SAAW,EAAU,OAAA,KAEjC,MAAMa,EAAgBZ,GAAc,IAGlC,OAAAM,wBAACO,EAAAA,OAAA,CACC,SAAAP,EAAA,kBAAA,IAACQ,EAAa,QAAb,CACC,UAAW,2CAEX,SAAAR,EAAA,kBAAA,IAACS,QAAA,CAAmB,UAAW,yBAC5B,SAAQhB,EAAA,IAAI,CAACiB,EAAQC,IACpBX,EAAA,kBAAA,IAACY,EAAa,KAAb,CAEC,QAAO,GACP,UAAW,wBAEV,WAAO,KACNd,EAAA,kBAAA,KAACQ,EAAA,CACC,KAAMI,EAAO,KACb,UAAWR,EAAA,KACT,4BACAQ,EAAO,OACH,2BACA,0BACN,EAEC,SAAA,CAAOA,EAAA,MACPA,EAAO,QACNV,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,EAI5CF,EAAA,kBAAA,KAAC,SAAA,CACC,QAASY,EAAO,QAChB,UAAWR,EAAA,KACT,wEACAQ,EAAO,OACH,2BACA,0BACN,EAEC,SAAA,CAAOA,EAAA,MACPA,EAAO,QACNV,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,CAE5C,EAjCGW,CAAA,CAoCR,CACH,CAAA,CAAA,CAAA,EAEJ,CAEJ"}
1
+ {"version":3,"file":"index.cjs24.js","sources":["../src/components/ui/Dropdown/index.tsx"],"sourcesContent":["import { ArrowDown } from \"@/icons\";\nimport * as DropdownMenu from \"@radix-ui/react-dropdown-menu\";\nimport clsx from \"clsx\";\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\nimport \"./Dropdown.scss\";\nimport { Row } from \"@/components\";\n\ntype DropdownOption = {\n label: string;\n href?: string;\n onClick?: () => void;\n active?: boolean;\n};\n\ntype DropdownProps = {\n text: string;\n leftIcon?: React.ReactNode;\n options: DropdownOption[];\n asLinkItem?: \"a\" | React.ComponentType<any>;\n textColor?: ColorKeys;\n};\n\ntype DropdownMenuContentProps = {\n options: DropdownOption[];\n asLinkItem?: \"a\" | React.ComponentType<any>;\n};\n\nexport const Dropdown = ({\n text,\n leftIcon,\n options,\n asLinkItem,\n textColor = \"white\",\n}: DropdownProps) => {\n const textColorClass = createColorClasses({ text: textColor });\n\n return (\n <DropdownMenu.Root>\n <DropdownMenu.Trigger asChild>\n <button\n className={clsx(\n \"border-none bg-transparent base-row gap-x8 fw-regular fs-6 align-items-center\",\n textColorClass,\n \"ui-dropdown-trigger\",\n )}\n >\n {leftIcon && leftIcon}\n <Row as={\"span\"} gap={\"x4\"}>\n {text}\n <ArrowDown color={textColor} className={\"ui-arrow\"} />\n </Row>\n </button>\n </DropdownMenu.Trigger>\n <DropdownMenuContent options={options} asLinkItem={asLinkItem} />\n </DropdownMenu.Root>\n );\n};\n\nconst DropdownMenuContent = ({\n options,\n asLinkItem,\n}: DropdownMenuContentProps) => {\n if (options.length === 0) return null;\n\n const LinkComponent = asLinkItem ?? \"a\";\n\n return (\n <DropdownMenu.Portal>\n <DropdownMenu.Content\n className={\"bg-white shadow ui-dropdown-menu-content\"}\n >\n <DropdownMenu.Group className={\"ui-dropdown-menu-group\"}>\n {options.map((option, index) => (\n <DropdownMenu.Item\n key={index}\n asChild\n className={\"ui-dropdown-menu-item\"}\n >\n {option.href ? (\n <LinkComponent\n href={option.href}\n className={clsx(\n \"fs-6 text-decoration-none\",\n option.active\n ? `text-primary fw-semibold`\n : `text-slate-28 fw-regular`,\n )}\n >\n {option.label}\n {option.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n ) : (\n <button\n onClick={option.onClick}\n className={clsx(\n \"fs-6 text-decoration-none bg-white outline-none border-none text-left\",\n option.active\n ? `text-primary fw-semibold`\n : `text-slate-28 fw-regular`,\n )}\n >\n {option.label}\n {option.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </button>\n )}\n </DropdownMenu.Item>\n ))}\n </DropdownMenu.Group>\n </DropdownMenu.Content>\n </DropdownMenu.Portal>\n );\n};\n"],"names":["Dropdown","text","leftIcon","options","asLinkItem","textColor","textColorClass","createColorClasses","jsxs","DropdownMenu.Root","jsx","DropdownMenu.Trigger","clsx","Row","ArrowDown","DropdownMenuContent","LinkComponent","DropdownMenu.Portal","DropdownMenu.Content","DropdownMenu.Group","option","index","DropdownMenu.Item"],"mappings":"iTA2BaA,EAAW,CAAC,CACvB,KAAAC,EACA,SAAAC,EACA,QAAAC,EACA,WAAAC,EACA,UAAAC,EAAY,OACd,IAAqB,CACnB,MAAMC,EAAiBC,EAAA,mBAAmB,CAAE,KAAMF,EAAW,EAG3D,OAAAG,EAAA,kBAAA,KAACC,OAAA,CACC,SAAA,CAAAC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CAAqB,QAAO,GAC3B,SAAAH,EAAA,kBAAA,KAAC,SAAA,CACC,UAAWI,EAAA,KACT,gFACAN,EACA,qBACF,EAEC,SAAA,CAAYJ,GAAAA,EACZM,EAAA,kBAAA,KAAAK,EAAA,IAAA,CAAI,GAAI,OAAQ,IAAK,KACnB,SAAA,CAAAZ,EACAS,EAAA,kBAAA,IAAAI,EAAA,UAAA,CAAU,MAAOT,EAAW,UAAW,UAAY,CAAA,CAAA,CACtD,CAAA,CAAA,CAAA,CAAA,EAEJ,EACAK,EAAAA,kBAAAA,IAACK,EAAoB,CAAA,QAAAZ,EAAkB,WAAAC,CAAwB,CAAA,CAAA,EACjE,CAEJ,EAEMW,EAAsB,CAAC,CAC3B,QAAAZ,EACA,WAAAC,CACF,IAAgC,CAC1B,GAAAD,EAAQ,SAAW,EAAU,OAAA,KAEjC,MAAMa,EAAgBZ,GAAc,IAGlC,OAAAM,wBAACO,EAAAA,OAAA,CACC,SAAAP,EAAA,kBAAA,IAACQ,EAAa,QAAb,CACC,UAAW,2CAEX,SAAAR,EAAA,kBAAA,IAACS,QAAA,CAAmB,UAAW,yBAC5B,SAAQhB,EAAA,IAAI,CAACiB,EAAQC,IACpBX,EAAA,kBAAA,IAACY,EAAa,KAAb,CAEC,QAAO,GACP,UAAW,wBAEV,WAAO,KACNd,EAAA,kBAAA,KAACQ,EAAA,CACC,KAAMI,EAAO,KACb,UAAWR,EAAA,KACT,4BACAQ,EAAO,OACH,2BACA,0BACN,EAEC,SAAA,CAAOA,EAAA,MACPA,EAAO,QACNV,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,EAI5CF,EAAA,kBAAA,KAAC,SAAA,CACC,QAASY,EAAO,QAChB,UAAWR,EAAA,KACT,wEACAQ,EAAO,OACH,2BACA,0BACN,EAEC,SAAA,CAAOA,EAAA,MACPA,EAAO,QACNV,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,CAE5C,EAjCGW,CAAA,CAoCR,CACH,CAAA,CAAA,CAAA,EAEJ,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs245.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\r\n | \"x4\"\r\n | \"x8\"\r\n | \"x12\"\r\n | \"x16\"\r\n | \"x20\"\r\n | \"x24\"\r\n | \"x28\"\r\n | \"x32\"\r\n | \"x36\"\r\n | \"x40\"\r\n | \"x44\"\r\n | \"x48\"\r\n | \"x52\"\r\n | \"x56\"\r\n | \"x60\"\r\n | \"x64\"\r\n | \"x68\"\r\n | \"x72\"\r\n | \"x76\"\r\n | \"x80\"\r\n | \"x84\"\r\n | \"x88\"\r\n | \"x92\"\r\n | \"x96\"\r\n | \"x100\"\r\n | \"x104\";\r\n\r\nexport type SpacingProps = {\r\n gap?: SpacingKey;\r\n m?: SpacingKey; // margin\r\n mx?: SpacingKey; // margin x\r\n my?: SpacingKey; // margin y\r\n mt?: SpacingKey; // margin top\r\n mr?: SpacingKey; // margin bottom\r\n mb?: SpacingKey; // margin right\r\n ml?: SpacingKey; // margin left\r\n p?: SpacingKey; // padding\r\n px?: SpacingKey; // padding x\r\n py?: SpacingKey; // padding y\r\n pt?: SpacingKey; // padding top\r\n pr?: SpacingKey; // padding bottom\r\n pb?: SpacingKey; // padding right\r\n pl?: SpacingKey; // padding left\r\n br?: SpacingKey; // border-radius\r\n \"br-t\"?: SpacingKey; // border-radius top\r\n \"br-r\"?: SpacingKey; // border-radius right\r\n \"br-b\"?: SpacingKey; // border-radius bottom\r\n \"br-l\"?: SpacingKey; // border-radius left\r\n \"min-h\"?: SpacingKey; // min-height\r\n \"min-w\"?: SpacingKey; // min-width\r\n \"max-h\"?: SpacingKey; // max-height\r\n \"max-w\"?: SpacingKey; // max-width\r\n};\r\n\r\nexport type SpacingPropsKeys = keyof SpacingProps;\r\nconst spacingPropsKeys: SpacingPropsKeys[] = [\r\n \"gap\",\r\n \"m\",\r\n \"mx\",\r\n \"my\",\r\n \"mt\",\r\n \"mr\",\r\n \"mb\",\r\n \"ml\",\r\n \"p\",\r\n \"px\",\r\n \"py\",\r\n \"pt\",\r\n \"pr\",\r\n \"pb\",\r\n \"pl\",\r\n \"br\",\r\n \"br-t\",\r\n \"br-r\",\r\n \"br-b\",\r\n \"br-l\",\r\n \"min-h\",\r\n \"min-w\",\r\n \"max-h\",\r\n \"max-w\",\r\n];\r\n\r\nexport const createSpacingClasses = <TProps extends SpacingProps>(\r\n props: TProps,\r\n) => {\r\n return spacingPropsKeys\r\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\r\n .filter(Boolean);\r\n};\r\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"gFAwDA,MAAMA,EAAuC,CAC3C,MACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,OACA,OACA,OACA,QACA,QACA,QACA,OACF,EAEaC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
1
+ {"version":3,"file":"index.cjs245.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\n | \"x4\"\n | \"x8\"\n | \"x12\"\n | \"x16\"\n | \"x20\"\n | \"x24\"\n | \"x28\"\n | \"x32\"\n | \"x36\"\n | \"x40\"\n | \"x44\"\n | \"x48\"\n | \"x52\"\n | \"x56\"\n | \"x60\"\n | \"x64\"\n | \"x68\"\n | \"x72\"\n | \"x76\"\n | \"x80\"\n | \"x84\"\n | \"x88\"\n | \"x92\"\n | \"x96\"\n | \"x100\"\n | \"x104\";\n\nexport type SpacingProps = {\n gap?: SpacingKey;\n m?: SpacingKey; // margin\n mx?: SpacingKey; // margin x\n my?: SpacingKey; // margin y\n mt?: SpacingKey; // margin top\n mr?: SpacingKey; // margin bottom\n mb?: SpacingKey; // margin right\n ml?: SpacingKey; // margin left\n p?: SpacingKey; // padding\n px?: SpacingKey; // padding x\n py?: SpacingKey; // padding y\n pt?: SpacingKey; // padding top\n pr?: SpacingKey; // padding bottom\n pb?: SpacingKey; // padding right\n pl?: SpacingKey; // padding left\n br?: SpacingKey; // border-radius\n \"br-t\"?: SpacingKey; // border-radius top\n \"br-r\"?: SpacingKey; // border-radius right\n \"br-b\"?: SpacingKey; // border-radius bottom\n \"br-l\"?: SpacingKey; // border-radius left\n \"min-h\"?: SpacingKey; // min-height\n \"min-w\"?: SpacingKey; // min-width\n \"max-h\"?: SpacingKey; // max-height\n \"max-w\"?: SpacingKey; // max-width\n};\n\nexport type SpacingPropsKeys = keyof SpacingProps;\nconst spacingPropsKeys: SpacingPropsKeys[] = [\n \"gap\",\n \"m\",\n \"mx\",\n \"my\",\n \"mt\",\n \"mr\",\n \"mb\",\n \"ml\",\n \"p\",\n \"px\",\n \"py\",\n \"pt\",\n \"pr\",\n \"pb\",\n \"pl\",\n \"br\",\n \"br-t\",\n \"br-r\",\n \"br-b\",\n \"br-l\",\n \"min-h\",\n \"min-w\",\n \"max-h\",\n \"max-w\",\n];\n\nexport const createSpacingClasses = <TProps extends SpacingProps>(\n props: TProps,\n) => {\n return spacingPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"gFAwDA,MAAMA,EAAuC,CAC3C,MACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,OACA,OACA,OACA,QACA,QACA,QACA,OACF,EAEaC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs247.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\r\n | \"primary\"\r\n | \"white\"\r\n | \"status-success\"\r\n | \"warning\"\r\n | \"error\"\r\n | \"muted\"\r\n | \"emphasis\"\r\n | \"slate-20\"\r\n | \"slate-14\"\r\n | \"slate-28\"\r\n | \"border-divider\"\r\n | \"transparent\"\r\n | \"blue-30\"\r\n | \"blue-15\"\r\n | \"disabled\"\r\n | \"lightblue-a01\"\r\n | \"lightblue-a02\"\r\n | \"lightblue-a03\"\r\n | \"secondary\"\r\n | \"blue-48\";\r\n\r\nexport type ColorProps = {\r\n bg?: ColorKeys;\r\n text?: ColorKeys;\r\n color?: ColorKeys;\r\n border?: ColorKeys;\r\n};\r\n\r\nexport type ColorPropsKeys = keyof ColorProps;\r\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\r\n\r\nexport const createColorClasses = <TProps extends ColorProps>(\r\n props: TProps,\r\n) => {\r\n return colorPropsKeys\r\n .map((key) => {\r\n if (!props[key]) return \"\";\r\n\r\n if (key === \"color\") return `text-${props[key]}`;\r\n return `${key}-${props[key]}`;\r\n })\r\n .filter(Boolean);\r\n};\r\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"gFA8BA,MAAMA,EAAmC,CAAC,KAAM,OAAQ,QAAS,QAAQ,EAE5DC,EACXC,GAEOF,EACJ,IAAKG,GACCD,EAAMC,CAAG,EAEVA,IAAQ,QAAgB,QAAQD,EAAMC,CAAG,CAAC,GACvC,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAHH,EAIzB,EACA,OAAO,OAAO"}
1
+ {"version":3,"file":"index.cjs247.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\n | \"primary\"\n | \"white\"\n | \"status-success\"\n | \"warning\"\n | \"error\"\n | \"muted\"\n | \"emphasis\"\n | \"slate-20\"\n | \"slate-14\"\n | \"slate-28\"\n | \"border-divider\"\n | \"transparent\"\n | \"blue-30\"\n | \"blue-15\"\n | \"disabled\"\n | \"lightblue-a01\"\n | \"lightblue-a02\"\n | \"lightblue-a03\"\n | \"secondary\"\n | \"blue-48\";\n\nexport type ColorProps = {\n bg?: ColorKeys;\n text?: ColorKeys;\n color?: ColorKeys;\n border?: ColorKeys;\n};\n\nexport type ColorPropsKeys = keyof ColorProps;\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\n\nexport const createColorClasses = <TProps extends ColorProps>(\n props: TProps,\n) => {\n return colorPropsKeys\n .map((key) => {\n if (!props[key]) return \"\";\n\n if (key === \"color\") return `text-${props[key]}`;\n return `${key}-${props[key]}`;\n })\n .filter(Boolean);\n};\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"gFA8BA,MAAMA,EAAmC,CAAC,KAAM,OAAQ,QAAS,QAAQ,EAE5DC,EACXC,GAEOF,EACJ,IAAKG,GACCD,EAAMC,CAAG,EAEVA,IAAQ,QAAgB,QAAQD,EAAMC,CAAG,CAAC,GACvC,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAHH,EAIzB,EACA,OAAO,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs248.js","sources":["../src/theme/typography.ts"],"sourcesContent":["export type TypographyKeys =\r\n | \"0\"\r\n | \"1\"\r\n | \"2\"\r\n | \"3\"\r\n | \"4\"\r\n | \"5\"\r\n | \"6\"\r\n | \"7\"\r\n | \"8\"\r\n | \"custom\";\r\n\r\nexport type TypographyProps = {\r\n fs?: TypographyKeys;\r\n fw?: \"regular\" | \"medium\" | \"semibold\" | \"bold\";\r\n};\r\n\r\nexport type TypographyPropsKeys = keyof TypographyProps;\r\nconst typographyPropsKeys: TypographyPropsKeys[] = [\"fs\", \"fw\"];\r\n\r\nexport const createTypographyClasses = <TProps extends TypographyProps>(\r\n props: TProps,\r\n) => {\r\n return typographyPropsKeys\r\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\r\n .filter(Boolean);\r\n};\r\n"],"names":["typographyPropsKeys","createTypographyClasses","props","key"],"mappings":"gFAkBA,MAAMA,EAA6C,CAAC,KAAM,IAAI,EAEjDC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
1
+ {"version":3,"file":"index.cjs248.js","sources":["../src/theme/typography.ts"],"sourcesContent":["export type TypographyKeys =\n | \"0\"\n | \"1\"\n | \"2\"\n | \"3\"\n | \"4\"\n | \"5\"\n | \"6\"\n | \"7\"\n | \"8\"\n | \"custom\";\n\nexport type TypographyProps = {\n fs?: TypographyKeys;\n fw?: \"regular\" | \"medium\" | \"semibold\" | \"bold\";\n};\n\nexport type TypographyPropsKeys = keyof TypographyProps;\nconst typographyPropsKeys: TypographyPropsKeys[] = [\"fs\", \"fw\"];\n\nexport const createTypographyClasses = <TProps extends TypographyProps>(\n props: TProps,\n) => {\n return typographyPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\n"],"names":["typographyPropsKeys","createTypographyClasses","props","key"],"mappings":"gFAkBA,MAAMA,EAA6C,CAAC,KAAM,IAAI,EAEjDC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}