mada-design-system 1.0.2 → 1.0.3

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 (826) hide show
  1. package/index.cjs.js +1 -1
  2. package/index.cjs10.js +1 -1
  3. package/index.cjs100.js +1 -1
  4. package/index.cjs101.js +1 -1
  5. package/index.cjs102.js +1 -1
  6. package/index.cjs103.js +1 -1
  7. package/index.cjs104.js +1 -1
  8. package/index.cjs105.js +1 -1
  9. package/index.cjs106.js +1 -1
  10. package/index.cjs107.js +1 -1
  11. package/index.cjs108.js +1 -1
  12. package/index.cjs109.js +1 -1
  13. package/index.cjs11.js +1 -1
  14. package/index.cjs110.js +1 -1
  15. package/index.cjs111.js +1 -1
  16. package/index.cjs112.js +1 -1
  17. package/index.cjs113.js +1 -1
  18. package/index.cjs114.js +1 -5
  19. package/index.cjs115.js +1 -1
  20. package/index.cjs116.js +5 -1
  21. package/index.cjs117.js +1 -1
  22. package/index.cjs118.js +1 -1
  23. package/index.cjs119.js +1 -1
  24. package/index.cjs12.js +1 -1
  25. package/index.cjs120.js +1 -1
  26. package/index.cjs121.js +1 -1
  27. package/index.cjs122.js +1 -1
  28. package/index.cjs123.js +1 -1
  29. package/index.cjs124.js +1 -1
  30. package/index.cjs125.js +1 -1
  31. package/index.cjs126.js +1 -1
  32. package/index.cjs127.js +1 -1
  33. package/index.cjs128.js +1 -1
  34. package/index.cjs129.js +1 -1
  35. package/index.cjs13.js +1 -1
  36. package/index.cjs130.js +1 -1
  37. package/index.cjs131.js +1 -1
  38. package/index.cjs132.js +1 -1
  39. package/index.cjs133.js +1 -1
  40. package/index.cjs134.js +1 -1
  41. package/index.cjs135.js +1 -1
  42. package/index.cjs136.js +1 -1
  43. package/index.cjs137.js +1 -1
  44. package/index.cjs138.js +1 -1
  45. package/index.cjs139.js +1 -1
  46. package/index.cjs14.js +1 -1
  47. package/index.cjs140.js +1 -1
  48. package/index.cjs141.js +1 -20
  49. package/index.cjs142.js +20 -1
  50. package/index.cjs143.js +1 -1
  51. package/index.cjs144.js +1 -1
  52. package/index.cjs145.js +1 -1
  53. package/index.cjs146.js +1 -1
  54. package/index.cjs147.js +1 -1
  55. package/index.cjs148.js +1 -1
  56. package/index.cjs149.js +1 -1
  57. package/index.cjs15.js +1 -1
  58. package/index.cjs150.js +1 -1
  59. package/index.cjs151.js +1 -1
  60. package/index.cjs152.js +1 -1
  61. package/index.cjs153.js +1 -1
  62. package/index.cjs154.js +1 -1
  63. package/index.cjs155.js +1 -1
  64. package/index.cjs156.js +1 -1
  65. package/index.cjs157.js +1 -1
  66. package/index.cjs158.js +1 -1
  67. package/index.cjs159.js +1 -1
  68. package/index.cjs16.js +1 -1
  69. package/index.cjs160.js +1 -1
  70. package/index.cjs161.js +1 -1
  71. package/index.cjs162.js +1 -1
  72. package/index.cjs163.js +1 -1
  73. package/index.cjs164.js +1 -1
  74. package/index.cjs165.js +1 -1
  75. package/index.cjs166.js +1 -1
  76. package/index.cjs167.js +1 -1
  77. package/index.cjs168.js +1 -1
  78. package/index.cjs169.js +1 -1
  79. package/index.cjs17.js +1 -1
  80. package/index.cjs170.js +1 -1
  81. package/index.cjs171.js +1 -1
  82. package/index.cjs172.js +1 -1
  83. package/index.cjs173.js +1 -1
  84. package/index.cjs174.js +1 -1
  85. package/index.cjs175.js +1 -1
  86. package/index.cjs176.js +1 -1
  87. package/index.cjs177.js +1 -1
  88. package/index.cjs178.js +1 -1
  89. package/index.cjs179.js +1 -1
  90. package/index.cjs18.js +1 -1
  91. package/index.cjs180.js +1 -1
  92. package/index.cjs181.js +1 -1
  93. package/index.cjs182.js +1 -1
  94. package/index.cjs183.js +1 -1
  95. package/index.cjs184.js +1 -1
  96. package/index.cjs185.js +1 -1
  97. package/index.cjs186.js +1 -1
  98. package/index.cjs187.js +1 -1
  99. package/index.cjs188.js +1 -1
  100. package/index.cjs189.js +1 -1
  101. package/index.cjs191.js +1 -1
  102. package/index.cjs192.js +1 -1
  103. package/index.cjs193.js +1 -1
  104. package/index.cjs194.js +1 -1
  105. package/index.cjs195.js +1 -1
  106. package/index.cjs196.js +1 -1
  107. package/index.cjs197.js +1 -1
  108. package/index.cjs198.js +1 -1
  109. package/index.cjs199.js +1 -1
  110. package/index.cjs20.js +1 -1
  111. package/index.cjs200.js +1 -1
  112. package/index.cjs201.js +1 -1
  113. package/index.cjs202.js +1 -1
  114. package/index.cjs203.js +1 -1
  115. package/index.cjs204.js +1 -1
  116. package/index.cjs205.js +1 -1
  117. package/index.cjs206.js +1 -1
  118. package/index.cjs207.js +1 -1
  119. package/index.cjs208.js +1 -1
  120. package/index.cjs209.js +1 -1
  121. package/index.cjs21.js +1 -1
  122. package/index.cjs210.js +1 -1
  123. package/index.cjs211.js +1 -1
  124. package/index.cjs212.js +1 -1
  125. package/index.cjs213.js +1 -1
  126. package/index.cjs214.js +1 -1
  127. package/index.cjs215.js +1 -1
  128. package/index.cjs216.js +1 -1
  129. package/index.cjs217.js +1 -1
  130. package/index.cjs218.js +1 -1
  131. package/index.cjs219.js +1 -1
  132. package/index.cjs22.js +1 -1
  133. package/index.cjs220.js +1 -1
  134. package/index.cjs221.js +1 -1
  135. package/index.cjs222.js +1 -1
  136. package/index.cjs223.js +1 -1
  137. package/index.cjs224.js +1 -1
  138. package/index.cjs225.js +1 -1
  139. package/index.cjs226.js +1 -1
  140. package/index.cjs227.js +1 -1
  141. package/index.cjs228.js +1 -1
  142. package/index.cjs229.js +1 -1
  143. package/index.cjs23.js +1 -1
  144. package/index.cjs230.js +1 -1
  145. package/index.cjs231.js +1 -1
  146. package/index.cjs232.js +1 -1
  147. package/index.cjs233.js +1 -1
  148. package/index.cjs234.js +1 -1
  149. package/index.cjs235.js +1 -1
  150. package/index.cjs236.js +1 -1
  151. package/index.cjs237.js +1 -1
  152. package/index.cjs238.js +1 -1
  153. package/index.cjs239.js +1 -1
  154. package/index.cjs24.js +1 -1
  155. package/index.cjs240.js +1 -1
  156. package/index.cjs241.js +1 -1
  157. package/index.cjs242.js +1 -1
  158. package/index.cjs243.js +1 -1
  159. package/index.cjs244.js +1 -1
  160. package/index.cjs245.js +1 -1
  161. package/index.cjs246.js +1 -1
  162. package/index.cjs247.js +1 -1
  163. package/index.cjs248.js +1 -1
  164. package/index.cjs249.js +1 -1
  165. package/index.cjs25.js +1 -1
  166. package/index.cjs250.js +1 -1
  167. package/index.cjs251.js +1 -1
  168. package/index.cjs252.js +1 -1
  169. package/index.cjs253.js +1 -1
  170. package/index.cjs254.js +1 -1
  171. package/index.cjs255.js +1 -1
  172. package/index.cjs256.js +1 -1
  173. package/index.cjs257.js +1 -1
  174. package/index.cjs258.js +1 -1
  175. package/index.cjs259.js +1 -1
  176. package/index.cjs26.js +1 -1
  177. package/index.cjs260.js +1 -1
  178. package/index.cjs261.js +1 -1
  179. package/index.cjs262.js +1 -1
  180. package/index.cjs263.js +1 -1
  181. package/index.cjs264.js +1 -1
  182. package/index.cjs265.js +1 -1
  183. package/index.cjs266.js +1 -1
  184. package/index.cjs267.js +1 -1
  185. package/index.cjs268.js +1 -1
  186. package/index.cjs269.js +1 -1
  187. package/index.cjs27.js +1 -1
  188. package/index.cjs270.js +1 -1
  189. package/index.cjs271.js +1 -1
  190. package/index.cjs272.js +1 -1
  191. package/index.cjs273.js +1 -1
  192. package/index.cjs274.js +1 -1
  193. package/index.cjs275.js +1 -1
  194. package/index.cjs276.js +1 -1
  195. package/index.cjs277.js +1 -1
  196. package/index.cjs278.js +1 -1
  197. package/index.cjs279.js +1 -1
  198. package/index.cjs28.js +1 -1
  199. package/index.cjs280.js +1 -1
  200. package/index.cjs281.js +1 -1
  201. package/index.cjs282.js +1 -1
  202. package/index.cjs283.js +1 -1
  203. package/index.cjs284.js +1 -1
  204. package/index.cjs285.js +1 -1
  205. package/index.cjs286.js +1 -1
  206. package/index.cjs287.js +1 -1
  207. package/index.cjs288.js +1 -1
  208. package/index.cjs289.js +1 -1
  209. package/index.cjs29.js +1 -1
  210. package/index.cjs290.js +1 -1
  211. package/index.cjs291.js +1 -1
  212. package/index.cjs292.js +1 -1
  213. package/index.cjs293.js +1 -1
  214. package/index.cjs294.js +1 -1
  215. package/index.cjs295.js +1 -1
  216. package/index.cjs296.js +1 -1
  217. package/index.cjs297.js +1 -1
  218. package/index.cjs298.js +1 -1
  219. package/index.cjs299.js +1 -1
  220. package/index.cjs3.js +1 -1
  221. package/index.cjs30.js +1 -1
  222. package/index.cjs300.js +1 -1
  223. package/index.cjs301.js +1 -1
  224. package/index.cjs302.js +1 -1
  225. package/index.cjs303.js +1 -1
  226. package/index.cjs304.js +1 -1
  227. package/index.cjs305.js +1 -1
  228. package/index.cjs306.js +1 -1
  229. package/index.cjs307.js +1 -1
  230. package/index.cjs308.js +1 -1
  231. package/index.cjs309.js +1 -1
  232. package/index.cjs31.js +1 -1
  233. package/index.cjs310.js +1 -1
  234. package/index.cjs311.js +1 -1
  235. package/index.cjs312.js +1 -1
  236. package/index.cjs313.js +1 -1
  237. package/index.cjs314.js +1 -1
  238. package/index.cjs315.js +1 -1
  239. package/index.cjs316.js +1 -1
  240. package/index.cjs317.js +1 -1
  241. package/index.cjs318.js +1 -1
  242. package/index.cjs319.js +1 -1
  243. package/index.cjs32.js +1 -1
  244. package/index.cjs320.js +1 -1
  245. package/index.cjs321.js +1 -1
  246. package/index.cjs322.js +1 -1
  247. package/index.cjs323.js +1 -1
  248. package/index.cjs324.js +1 -1
  249. package/index.cjs325.js +1 -1
  250. package/index.cjs326.js +1 -1
  251. package/index.cjs327.js +1 -1
  252. package/index.cjs328.js +1 -1
  253. package/index.cjs329.js +1 -1
  254. package/index.cjs33.js +1 -1
  255. package/index.cjs330.js +1 -1
  256. package/index.cjs331.js +1 -1
  257. package/index.cjs332.js +1 -1
  258. package/index.cjs333.js +1 -1
  259. package/index.cjs334.js +1 -1
  260. package/index.cjs335.js +1 -1
  261. package/index.cjs336.js +1 -1
  262. package/index.cjs337.js +1 -1
  263. package/index.cjs338.js +1 -1
  264. package/index.cjs339.js +1 -1
  265. package/index.cjs34.js +1 -1
  266. package/index.cjs340.js +1 -1
  267. package/index.cjs341.js +1 -1
  268. package/index.cjs342.js +1 -1
  269. package/index.cjs343.js +1 -1
  270. package/index.cjs344.js +1 -1
  271. package/index.cjs345.js +1 -1
  272. package/index.cjs346.js +1 -1
  273. package/index.cjs347.js +1 -1
  274. package/index.cjs348.js +1 -1
  275. package/index.cjs349.js +1 -1
  276. package/index.cjs35.js +1 -1
  277. package/index.cjs350.js +1 -1
  278. package/index.cjs351.js +1 -1
  279. package/index.cjs352.js +1 -1
  280. package/index.cjs353.js +1 -1
  281. package/index.cjs354.js +1 -1
  282. package/index.cjs355.js +1 -1
  283. package/index.cjs356.js +1 -1
  284. package/index.cjs357.js +1 -1
  285. package/index.cjs358.js +1 -1
  286. package/index.cjs359.js +1 -1
  287. package/index.cjs36.js +1 -1
  288. package/index.cjs360.js +1 -1
  289. package/index.cjs361.js +1 -1
  290. package/index.cjs362.js +1 -1
  291. package/index.cjs363.js +1 -1
  292. package/index.cjs364.js +1 -1
  293. package/index.cjs365.js +1 -1
  294. package/index.cjs366.js +1 -1
  295. package/index.cjs367.js +1 -1
  296. package/index.cjs368.js +1 -1
  297. package/index.cjs369.js +1 -1
  298. package/index.cjs37.js +1 -1
  299. package/index.cjs370.js +1 -1
  300. package/index.cjs371.js +1 -1
  301. package/index.cjs372.js +1 -1
  302. package/index.cjs373.js +1 -1
  303. package/index.cjs374.js +1 -1
  304. package/index.cjs375.js +1 -1
  305. package/index.cjs376.js +1 -1
  306. package/index.cjs377.js +1 -1
  307. package/index.cjs378.js +1 -1
  308. package/index.cjs379.js +1 -1
  309. package/index.cjs38.js +1 -1
  310. package/index.cjs380.js +1 -1
  311. package/index.cjs381.js +1 -1
  312. package/index.cjs382.js +1 -1
  313. package/index.cjs383.js +1 -1
  314. package/index.cjs384.js +1 -1
  315. package/index.cjs385.js +1 -1
  316. package/index.cjs386.js +1 -1
  317. package/index.cjs387.js +1 -1
  318. package/index.cjs388.js +1 -1
  319. package/index.cjs389.js +1 -1
  320. package/index.cjs39.js +1 -1
  321. package/index.cjs390.js +1 -1
  322. package/index.cjs391.js +1 -1
  323. package/index.cjs392.js +1 -1
  324. package/index.cjs393.js +1 -1
  325. package/index.cjs394.js +1 -1
  326. package/index.cjs395.js +1 -1
  327. package/index.cjs396.js +1 -1
  328. package/index.cjs397.js +1 -1
  329. package/index.cjs398.js +1 -1
  330. package/index.cjs399.js +1 -1
  331. package/index.cjs400.js +1 -1
  332. package/index.cjs401.js +1 -1
  333. package/index.cjs402.js +1 -1
  334. package/index.cjs403.js +1 -1
  335. package/index.cjs404.js +1 -1
  336. package/index.cjs405.js +1 -1
  337. package/index.cjs406.js +1 -1
  338. package/index.cjs407.js +1 -1
  339. package/index.cjs408.js +1 -1
  340. package/index.cjs409.js +1 -1
  341. package/index.cjs41.js +1 -1
  342. package/index.cjs410.js +1 -1
  343. package/index.cjs411.js +1 -1
  344. package/index.cjs412.js +1 -1
  345. package/index.cjs413.js +1 -1
  346. package/index.cjs414.js +1 -1
  347. package/index.cjs415.js +1 -1
  348. package/index.cjs416.js +1 -1
  349. package/index.cjs417.js +1 -1
  350. package/index.cjs418.js +1 -1
  351. package/index.cjs419.js +1 -1
  352. package/index.cjs42.js +1 -1
  353. package/index.cjs420.js +1 -1
  354. package/index.cjs421.js +1 -1
  355. package/index.cjs422.js +1 -1
  356. package/index.cjs43.js +1 -1
  357. package/index.cjs44.js +1 -1
  358. package/index.cjs45.js +1 -1
  359. package/index.cjs46.js +1 -1
  360. package/index.cjs47.js +1 -1
  361. package/index.cjs48.js +1 -1
  362. package/index.cjs49.js +1 -1
  363. package/index.cjs50.js +1 -1
  364. package/index.cjs51.js +1 -1
  365. package/index.cjs52.js +1 -1
  366. package/index.cjs53.js +1 -1
  367. package/index.cjs54.js +1 -1
  368. package/index.cjs55.js +1 -1
  369. package/index.cjs56.js +1 -1
  370. package/index.cjs57.js +1 -1
  371. package/index.cjs58.js +1 -1
  372. package/index.cjs59.js +1 -1
  373. package/index.cjs6.js +1 -1
  374. package/index.cjs60.js +1 -1
  375. package/index.cjs61.js +1 -1
  376. package/index.cjs62.js +1 -1
  377. package/index.cjs63.js +1 -1
  378. package/index.cjs64.js +1 -1
  379. package/index.cjs65.js +1 -1
  380. package/index.cjs66.js +1 -1
  381. package/index.cjs67.js +1 -1
  382. package/index.cjs68.js +1 -1
  383. package/index.cjs69.js +1 -1
  384. package/index.cjs7.js +1 -1
  385. package/index.cjs70.js +1 -1
  386. package/index.cjs71.js +1 -1
  387. package/index.cjs72.js +1 -1
  388. package/index.cjs73.js +1 -1
  389. package/index.cjs74.js +1 -1
  390. package/index.cjs75.js +1 -1
  391. package/index.cjs76.js +1 -1
  392. package/index.cjs77.js +1 -1
  393. package/index.cjs78.js +1 -1
  394. package/index.cjs79.js +1 -1
  395. package/index.cjs80.js +1 -1
  396. package/index.cjs81.js +1 -1
  397. package/index.cjs82.js +1 -1
  398. package/index.cjs83.js +1 -1
  399. package/index.cjs84.js +1 -1
  400. package/index.cjs85.js +1 -1
  401. package/index.cjs87.js +1 -1
  402. package/index.cjs9.js +1 -1
  403. package/index.cjs90.js +1 -1
  404. package/index.cjs91.js +1 -1
  405. package/index.cjs92.js +1 -1
  406. package/index.cjs93.js +1 -1
  407. package/index.cjs94.js +1 -1
  408. package/index.cjs95.js +1 -1
  409. package/index.cjs96.js +1 -1
  410. package/index.cjs97.js +1 -1
  411. package/index.cjs98.js +1 -1
  412. package/index.cjs99.js +1 -1
  413. package/index.es.d.ts +1655 -1578
  414. package/index.es.js +272 -257
  415. package/index.es10.js +5 -5
  416. package/index.es100.js +107 -4
  417. package/index.es101.js +5 -7
  418. package/index.es102.js +7 -29
  419. package/index.es103.js +29 -28
  420. package/index.es104.js +28 -128
  421. package/index.es105.js +112 -112
  422. package/index.es106.js +128 -11
  423. package/index.es107.js +504 -86
  424. package/index.es108.js +11 -27
  425. package/index.es109.js +87 -17
  426. package/index.es11.js +3 -3
  427. package/index.es110.js +27 -18
  428. package/index.es111.js +6 -13
  429. package/index.es112.js +16 -1703
  430. package/index.es113.js +25 -33
  431. package/index.es114.js +1624 -2515
  432. package/index.es115.js +32 -321
  433. package/index.es116.js +2596 -11
  434. package/index.es117.js +321 -10
  435. package/index.es118.js +5 -5
  436. package/index.es119.js +10 -7
  437. package/index.es12.js +7 -7
  438. package/index.es120.js +10 -32
  439. package/index.es121.js +8 -2
  440. package/index.es122.js +32 -10
  441. package/index.es123.js +2 -11
  442. package/index.es124.js +5 -5
  443. package/index.es125.js +5 -5
  444. package/index.es126.js +5 -5
  445. package/index.es127.js +11 -14
  446. package/index.es128.js +10 -228
  447. package/index.es129.js +14 -19
  448. package/index.es13.js +2 -2
  449. package/index.es130.js +228 -18
  450. package/index.es131.js +19 -11
  451. package/index.es132.js +17 -1987
  452. package/index.es133.js +5 -5
  453. package/index.es134.js +11 -6
  454. package/index.es135.js +5 -56
  455. package/index.es136.js +56 -5
  456. package/index.es137.js +5 -14
  457. package/index.es138.js +15 -11
  458. package/index.es139.js +5 -5
  459. package/index.es14.js +8 -8
  460. package/index.es140.js +5 -5
  461. package/index.es141.js +11 -191
  462. package/index.es142.js +191 -5
  463. package/index.es143.js +4 -10
  464. package/index.es144.js +5 -5
  465. package/index.es145.js +5 -5
  466. package/index.es146.js +4 -4
  467. package/index.es147.js +11 -19
  468. package/index.es148.js +19 -7
  469. package/index.es149.js +6 -86
  470. package/index.es15.js +5 -5
  471. package/index.es150.js +86 -10
  472. package/index.es151.js +5 -5
  473. package/index.es152.js +5 -5
  474. package/index.es153.js +5 -5
  475. package/index.es154.js +5 -5
  476. package/index.es155.js +5 -5
  477. package/index.es156.js +11 -2
  478. package/index.es157.js +1 -1
  479. package/index.es158.js +2 -2
  480. package/index.es159.js +2 -2
  481. package/index.es16.js +2 -2
  482. package/index.es160.js +1 -1
  483. package/index.es161.js +2 -2
  484. package/index.es162.js +2 -11
  485. package/index.es163.js +4 -4
  486. package/index.es164.js +5 -5
  487. package/index.es165.js +5 -5
  488. package/index.es166.js +5 -5
  489. package/index.es167.js +5 -5
  490. package/index.es168.js +5 -5
  491. package/index.es169.js +5 -5
  492. package/index.es17.js +4 -4
  493. package/index.es170.js +11 -2
  494. package/index.es171.js +2 -2
  495. package/index.es172.js +2 -11
  496. package/index.es173.js +4 -4
  497. package/index.es174.js +5 -5
  498. package/index.es175.js +5 -5
  499. package/index.es176.js +11 -22
  500. package/index.es177.js +22 -11
  501. package/index.es178.js +4 -4
  502. package/index.es179.js +5 -5
  503. package/index.es18.js +3 -3
  504. package/index.es180.js +11 -17
  505. package/index.es181.js +16 -11
  506. package/index.es182.js +12 -11
  507. package/index.es183.js +4 -4
  508. package/index.es184.js +5 -5
  509. package/index.es185.js +5 -5
  510. package/index.es186.js +11 -506
  511. package/index.es187.js +1 -1
  512. package/index.es188.js +3 -3
  513. package/index.es189.js +2 -2
  514. package/index.es191.js +1 -1
  515. package/index.es192.js +1 -1
  516. package/index.es193.js +30 -232
  517. package/index.es194.js +11 -53
  518. package/index.es195.js +476 -28
  519. package/index.es196.js +233 -12
  520. package/index.es197.js +51 -476
  521. package/index.es198.js +14 -82
  522. package/index.es199.js +50 -2
  523. package/index.es20.js +7 -7
  524. package/index.es200.js +30 -12
  525. package/index.es201.js +1194 -31
  526. package/index.es202.js +83 -52
  527. package/index.es203.js +2 -5
  528. package/index.es204.js +38 -4
  529. package/index.es205.js +52 -16
  530. package/index.es206.js +4 -5
  531. package/index.es207.js +4 -8
  532. package/index.es208.js +13 -14
  533. package/index.es209.js +5 -4
  534. package/index.es21.js +1 -1
  535. package/index.es210.js +8 -4
  536. package/index.es211.js +16 -5
  537. package/index.es212.js +4 -5
  538. package/index.es213.js +4 -4
  539. package/index.es214.js +5 -4
  540. package/index.es215.js +5 -6
  541. package/index.es216.js +4 -24
  542. package/index.es217.js +4 -6
  543. package/index.es218.js +5 -3
  544. package/index.es219.js +24 -6
  545. package/index.es22.js +2 -2
  546. package/index.es220.js +6 -5
  547. package/index.es221.js +4 -4
  548. package/index.es222.js +6 -5
  549. package/index.es223.js +5 -4
  550. package/index.es224.js +4 -8
  551. package/index.es225.js +2 -2
  552. package/index.es226.js +1 -1
  553. package/index.es227.js +8 -4
  554. package/index.es228.js +4 -5
  555. package/index.es229.js +4 -39
  556. package/index.es23.js +1 -1
  557. package/index.es230.js +4 -4
  558. package/index.es231.js +6 -7
  559. package/index.es232.js +38 -12
  560. package/index.es233.js +4 -7
  561. package/index.es234.js +7 -10
  562. package/index.es235.js +12 -9
  563. package/index.es236.js +7 -8
  564. package/index.es237.js +9 -12
  565. package/index.es238.js +11 -24
  566. package/index.es239.js +9 -20
  567. package/index.es24.js +1 -1
  568. package/index.es240.js +12 -52
  569. package/index.es241.js +24 -74
  570. package/index.es242.js +20 -10
  571. package/index.es243.js +51 -18
  572. package/index.es244.js +72 -15
  573. package/index.es245.js +9 -19
  574. package/index.es246.js +20 -6
  575. package/index.es247.js +16 -5
  576. package/index.es248.js +18 -22
  577. package/index.es249.js +7 -16
  578. package/index.es25.js +2 -2
  579. package/index.es250.js +5 -6
  580. package/index.es251.js +23 -4
  581. package/index.es252.js +16 -5
  582. package/index.es253.js +6 -4
  583. package/index.es254.js +4 -4
  584. package/index.es255.js +4 -3
  585. package/index.es256.js +4 -6
  586. package/index.es257.js +4 -7
  587. package/index.es258.js +3 -6
  588. package/index.es259.js +6 -5
  589. package/index.es26.js +4 -4
  590. package/index.es260.js +7 -3
  591. package/index.es261.js +6 -3
  592. package/index.es262.js +5 -3
  593. package/index.es263.js +3 -3
  594. package/index.es264.js +3 -4
  595. package/index.es265.js +3 -3
  596. package/index.es266.js +3 -3
  597. package/index.es267.js +4 -3
  598. package/index.es268.js +3 -32
  599. package/index.es269.js +3 -1201
  600. package/index.es27.js +2 -2
  601. package/index.es270.js +3 -49
  602. package/index.es271.js +7 -58
  603. package/index.es272.js +5 -66
  604. package/index.es273.js +5 -6
  605. package/index.es274.js +17 -4
  606. package/index.es275.js +5 -7
  607. package/index.es276.js +5 -17
  608. package/index.es277.js +7 -6
  609. package/index.es278.js +13 -5
  610. package/index.es279.js +15 -13
  611. package/index.es28.js +37 -37
  612. package/index.es280.js +8 -10
  613. package/index.es281.js +6 -14
  614. package/index.es282.js +10 -14
  615. package/index.es283.js +13 -4
  616. package/index.es284.js +5 -6
  617. package/index.es285.js +14 -8
  618. package/index.es286.js +4 -5
  619. package/index.es287.js +8 -9
  620. package/index.es288.js +6 -5
  621. package/index.es289.js +4 -5
  622. package/index.es29.js +8 -8
  623. package/index.es290.js +6 -9
  624. package/index.es291.js +580 -5
  625. package/index.es292.js +50 -5
  626. package/index.es293.js +17 -11
  627. package/index.es294.js +8 -10
  628. package/index.es295.js +6 -10
  629. package/index.es296.js +7 -11
  630. package/index.es297.js +4 -10
  631. package/index.es298.js +6 -10
  632. package/index.es299.js +9 -7
  633. package/index.es3.js +1 -1
  634. package/index.es30.js +1 -1
  635. package/index.es300.js +5 -6
  636. package/index.es301.js +8 -5
  637. package/index.es302.js +12 -6
  638. package/index.es303.js +5 -8
  639. package/index.es304.js +8 -5
  640. package/index.es305.js +8 -23
  641. package/index.es306.js +10 -16
  642. package/index.es307.js +14 -7
  643. package/index.es308.js +5 -10
  644. package/index.es309.js +5 -10
  645. package/index.es31.js +2 -2
  646. package/index.es310.js +4 -21
  647. package/index.es311.js +11 -10
  648. package/index.es312.js +10 -9
  649. package/index.es313.js +10 -9
  650. package/index.es314.js +11 -4
  651. package/index.es315.js +11 -5
  652. package/index.es316.js +36 -14
  653. package/index.es317.js +65 -10
  654. package/index.es318.js +9 -18
  655. package/index.es319.js +8 -15
  656. package/index.es32.js +1 -1
  657. package/index.es320.js +7 -12
  658. package/index.es321.js +10 -8
  659. package/index.es322.js +7 -19
  660. package/index.es323.js +7 -5
  661. package/index.es324.js +6 -5
  662. package/index.es325.js +16 -7
  663. package/index.es326.js +98 -16
  664. package/index.es327.js +31 -9
  665. package/index.es328.js +9 -6
  666. package/index.es329.js +141 -5
  667. package/index.es33.js +2 -2
  668. package/index.es330.js +115 -579
  669. package/index.es331.js +96 -48
  670. package/index.es332.js +31 -18
  671. package/index.es333.js +9 -9
  672. package/index.es334.js +141 -8
  673. package/index.es335.js +117 -6
  674. package/index.es336.js +68 -7
  675. package/index.es337.js +31 -9
  676. package/index.es338.js +9 -13
  677. package/index.es339.js +153 -11
  678. package/index.es34.js +1 -1
  679. package/index.es340.js +108 -15
  680. package/index.es341.js +11 -37
  681. package/index.es342.js +25 -65
  682. package/index.es343.js +10 -9
  683. package/index.es344.js +38 -8
  684. package/index.es345.js +1999 -7
  685. package/index.es346.js +6 -7
  686. package/index.es347.js +71 -15
  687. package/index.es348.js +22 -14
  688. package/index.es349.js +12 -6
  689. package/index.es35.js +7 -7
  690. package/index.es350.js +57 -4
  691. package/index.es351.js +65 -28
  692. package/index.es352.js +6 -12
  693. package/index.es353.js +4 -25
  694. package/index.es354.js +23 -5
  695. package/index.es355.js +16 -97
  696. package/index.es356.js +8 -31
  697. package/index.es357.js +11 -9
  698. package/index.es358.js +10 -140
  699. package/index.es359.js +22 -117
  700. package/index.es36.js +3 -3
  701. package/index.es360.js +11 -98
  702. package/index.es361.js +10 -31
  703. package/index.es362.js +10 -9
  704. package/index.es363.js +5 -141
  705. package/index.es364.js +6 -117
  706. package/index.es365.js +16 -67
  707. package/index.es366.js +10 -31
  708. package/index.es367.js +19 -9
  709. package/index.es368.js +16 -153
  710. package/index.es369.js +13 -108
  711. package/index.es37.js +4 -4
  712. package/index.es370.js +9 -12
  713. package/index.es371.js +18 -11
  714. package/index.es372.js +14 -22
  715. package/index.es373.js +5 -10
  716. package/index.es374.js +5 -38
  717. package/index.es375.js +29 -1999
  718. package/index.es376.js +12 -6
  719. package/index.es377.js +24 -70
  720. package/index.es378.js +5 -24
  721. package/index.es379.js +4 -4
  722. package/index.es38.js +2 -2
  723. package/index.es380.js +57 -13
  724. package/index.es381.js +30 -4
  725. package/index.es382.js +44 -54
  726. package/index.es383.js +59 -23
  727. package/index.es384.js +32 -41
  728. package/index.es385.js +13 -61
  729. package/index.es386.js +54 -19
  730. package/index.es387.js +67 -13
  731. package/index.es388.js +45 -43
  732. package/index.es389.js +46 -44
  733. package/index.es39.js +2 -2
  734. package/index.es390.js +25 -54
  735. package/index.es391.js +27 -55
  736. package/index.es392.js +41 -28
  737. package/index.es393.js +25 -23
  738. package/index.es394.js +38 -50
  739. package/index.es395.js +56 -27
  740. package/index.es396.js +61 -30
  741. package/index.es397.js +74 -49
  742. package/index.es398.js +35 -66
  743. package/index.es399.js +39 -95
  744. package/index.es400.js +22 -22
  745. package/index.es401.js +23 -39
  746. package/index.es402.js +22 -39
  747. package/index.es403.js +15 -16
  748. package/index.es404.js +17 -16
  749. package/index.es405.js +20 -20
  750. package/index.es406.js +21 -22
  751. package/index.es407.js +14 -24
  752. package/index.es408.js +38 -22
  753. package/index.es409.js +40 -14
  754. package/index.es41.js +1 -1
  755. package/index.es410.js +14 -40
  756. package/index.es411.js +14 -40
  757. package/index.es412.js +6 -19
  758. package/index.es413.js +15 -19
  759. package/index.es414.js +11 -5
  760. package/index.es415.js +27 -14
  761. package/index.es416.js +95 -10
  762. package/index.es417.js +24 -27
  763. package/index.es418.js +35 -94
  764. package/index.es419.js +12 -25
  765. package/index.es42.js +2 -2
  766. package/index.es420.js +4 -38
  767. package/index.es421.js +1 -1
  768. package/index.es422.js +1 -1
  769. package/index.es43.js +2 -2
  770. package/index.es44.js +2 -2
  771. package/index.es45.js +2 -2
  772. package/index.es46.js +1 -1
  773. package/index.es47.js +2 -2
  774. package/index.es48.js +9 -9
  775. package/index.es49.js +8 -8
  776. package/index.es50.js +1 -1
  777. package/index.es51.js +6 -6
  778. package/index.es52.js +6 -6
  779. package/index.es53.js +12 -12
  780. package/index.es54.js +3 -3
  781. package/index.es55.js +15 -15
  782. package/index.es56.js +1 -1
  783. package/index.es57.js +2 -2
  784. package/index.es58.js +6 -6
  785. package/index.es59.js +2 -2
  786. package/index.es6.js +1 -1
  787. package/index.es60.js +2 -2
  788. package/index.es61.js +3 -3
  789. package/index.es62.js +3 -3
  790. package/index.es63.js +4 -4
  791. package/index.es64.js +1 -1
  792. package/index.es65.js +1 -1
  793. package/index.es66.js +1 -1
  794. package/index.es67.js +3 -3
  795. package/index.es68.js +3 -3
  796. package/index.es69.js +1 -1
  797. package/index.es7.js +1 -1
  798. package/index.es70.js +4 -4
  799. package/index.es71.js +6 -6
  800. package/index.es72.js +1 -1
  801. package/index.es73.js +8 -8
  802. package/index.es74.js +4 -4
  803. package/index.es75.js +1 -1
  804. package/index.es76.js +1 -1
  805. package/index.es77.js +1 -1
  806. package/index.es78.js +2 -2
  807. package/index.es79.js +2 -2
  808. package/index.es80.js +2 -2
  809. package/index.es81.js +4 -4
  810. package/index.es82.js +4 -4
  811. package/index.es83.js +2 -2
  812. package/index.es84.js +1 -1
  813. package/index.es85.js +1 -1
  814. package/index.es87.js +2 -2
  815. package/index.es9.js +1 -1
  816. package/index.es90.js +1 -1
  817. package/index.es91.js +1 -1
  818. package/index.es92.js +2014 -6
  819. package/index.es93.js +7 -4
  820. package/index.es94.js +4 -82
  821. package/index.es95.js +82 -11
  822. package/index.es96.js +11 -12
  823. package/index.es97.js +12 -45
  824. package/index.es98.js +45 -4
  825. package/index.es99.js +4 -108
  826. package/package.json +1 -1
package/index.cjs44.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),c=require("@radix-ui/react-label"),l=require("./index.cjs113.js"),u=require("react"),d=require("./index.cjs94.js");function o(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=o(c),b=o(u),f=l.cva("peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{default:"text-body-02",sm:"text-body-01"}},defaultVariants:{size:"sm"}}),s=b.forwardRef(({className:e,size:a,...t},r)=>n.jsx(i.Root,{ref:r,className:d.cn(f({size:a}),e),...t}));s.displayName=i.Root.displayName;exports.Label=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),c=require("@radix-ui/react-label"),l=require("./index.cjs115.js"),u=require("react"),d=require("./index.cjs95.js");function o(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=o(c),b=o(u),f=l.cva("peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{default:"text-body-02",sm:"text-body-01"}},defaultVariants:{size:"sm"}}),s=b.forwardRef(({className:e,size:a,...t},r)=>n.jsx(i.Root,{ref:r,className:d.cn(f({size:a}),e),...t}));s.displayName=i.Root.displayName;exports.Label=s;
package/index.cjs45.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("./index.cjs113.js"),m=require("./index.cjs137.js"),y=l.cva("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},gap:{none:"",1:"gap-space-01",2:"gap-space-02",3:"gap-space-03",4:"gap-space-04",5:"gap-space-05",6:"gap-space-06",7:"gap-space-07",8:"gap-space-08",9:"gap-space-09",10:"gap-space-10",11:"gap-space-11",12:"gap-space-12"},gapX:{none:"",1:"gap-x-space-01",2:"gap-x-space-02",3:"gap-x-space-03",4:"gap-x-space-04",5:"gap-x-space-05",6:"gap-x-space-06",7:"gap-x-space-07",8:"gap-x-space-08",9:"gap-x-space-09",10:"gap-x-space-10",11:"gap-x-space-11",12:"gap-x-space-12"},gapY:{none:"",1:"gap-y-space-01",2:"gap-y-space-02",3:"gap-y-space-03",4:"gap-y-space-04",5:"gap-y-space-05",6:"gap-y-space-06",7:"gap-y-space-07",8:"gap-y-space-08",9:"gap-y-space-09",10:"gap-y-space-10",11:"gap-y-space-11",12:"gap-y-space-12"},autoFlow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense",rowDense:"grid-flow-row-dense",colDense:"grid-flow-col-dense"},alignItems:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justifyItems:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},alignContent:{start:"content-start",center:"content-center",end:"content-end",between:"content-between",around:"content-around",evenly:"content-evenly"},justifyContent:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{cols:12,gap:1,gapX:"none",gapY:"none",autoFlow:"row",alignItems:"stretch",justifyItems:"stretch",alignContent:"start",justifyContent:"start"}}),u=({cols:s,gap:a,gapX:c,gapY:e,autoFlow:p,alignItems:o,justifyItems:t,alignContent:g,justifyContent:r,className:i,children:d,...x})=>n.jsx("div",{className:y({cols:s,gap:a,gapX:c,gapY:e,autoFlow:p,alignItems:o,justifyItems:t,alignContent:g,justifyContent:r,className:i}),...x,children:d}),f=l.cva("",{variants:{base:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12"},"2xl":{1:"2xl:col-span-1",2:"2xl:col-span-2",3:"2xl:col-span-3",4:"2xl:col-span-4",5:"2xl:col-span-5",6:"2xl:col-span-6",7:"2xl:col-span-7",8:"2xl:col-span-8",9:"2xl:col-span-9",10:"2xl:col-span-10",11:"2xl:col-span-11",12:"2xl:col-span-12"}},defaultVariants:{base:1}}),j=({columns:s,children:a,className:c,...e})=>n.jsx("div",{className:m.clsx(f(typeof s=="number"?{base:s}:typeof s=="object"&&s!==null?s:{}),c),...e,children:a});exports.Grid=u;exports.GridItem=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("./index.cjs115.js"),m=require("./index.cjs138.js"),y=l.cva("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},gap:{none:"",1:"gap-space-01",2:"gap-space-02",3:"gap-space-03",4:"gap-space-04",5:"gap-space-05",6:"gap-space-06",7:"gap-space-07",8:"gap-space-08",9:"gap-space-09",10:"gap-space-10",11:"gap-space-11",12:"gap-space-12"},gapX:{none:"",1:"gap-x-space-01",2:"gap-x-space-02",3:"gap-x-space-03",4:"gap-x-space-04",5:"gap-x-space-05",6:"gap-x-space-06",7:"gap-x-space-07",8:"gap-x-space-08",9:"gap-x-space-09",10:"gap-x-space-10",11:"gap-x-space-11",12:"gap-x-space-12"},gapY:{none:"",1:"gap-y-space-01",2:"gap-y-space-02",3:"gap-y-space-03",4:"gap-y-space-04",5:"gap-y-space-05",6:"gap-y-space-06",7:"gap-y-space-07",8:"gap-y-space-08",9:"gap-y-space-09",10:"gap-y-space-10",11:"gap-y-space-11",12:"gap-y-space-12"},autoFlow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense",rowDense:"grid-flow-row-dense",colDense:"grid-flow-col-dense"},alignItems:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justifyItems:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},alignContent:{start:"content-start",center:"content-center",end:"content-end",between:"content-between",around:"content-around",evenly:"content-evenly"},justifyContent:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{cols:12,gap:1,gapX:"none",gapY:"none",autoFlow:"row",alignItems:"stretch",justifyItems:"stretch",alignContent:"start",justifyContent:"start"}}),u=({cols:s,gap:a,gapX:c,gapY:e,autoFlow:p,alignItems:o,justifyItems:t,alignContent:g,justifyContent:r,className:i,children:d,...x})=>n.jsx("div",{className:y({cols:s,gap:a,gapX:c,gapY:e,autoFlow:p,alignItems:o,justifyItems:t,alignContent:g,justifyContent:r,className:i}),...x,children:d}),f=l.cva("",{variants:{base:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12"},"2xl":{1:"2xl:col-span-1",2:"2xl:col-span-2",3:"2xl:col-span-3",4:"2xl:col-span-4",5:"2xl:col-span-5",6:"2xl:col-span-6",7:"2xl:col-span-7",8:"2xl:col-span-8",9:"2xl:col-span-9",10:"2xl:col-span-10",11:"2xl:col-span-11",12:"2xl:col-span-12"}},defaultVariants:{base:1}}),j=({columns:s,children:a,className:c,...e})=>n.jsx("div",{className:m.clsx(f(typeof s=="number"?{base:s}:typeof s=="object"&&s!==null?s:{}),c),...e,children:a});exports.Grid=u;exports.GridItem=j;
package/index.cjs46.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),m=require("./index.cjs137.js"),n=({minChildWidth:e,cols:r=12,gap:s="gap-space-05",gapX:t="",gapY:a="",className:o,children:c,...l})=>{const p=e?`repeat(auto-fill, minmax(${typeof e=="number"?`${e}px`:e}, 1fr))`:`repeat(${r}, minmax(0, 1fr))`;return u.jsx("div",{className:m.clsx("grid",s,t,a,o),style:{gridTemplateColumns:p},...l,children:c})};exports.SimpleGrid=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),m=require("./index.cjs138.js"),n=({minChildWidth:e,cols:r=12,gap:s="gap-space-05",gapX:t="",gapY:a="",className:o,children:c,...l})=>{const p=e?`repeat(auto-fill, minmax(${typeof e=="number"?`${e}px`:e}, 1fr))`:`repeat(${r}, minmax(0, 1fr))`;return u.jsx("div",{className:m.clsx("grid",s,t,a,o),style:{gridTemplateColumns:p},...l,children:c})};exports.SimpleGrid=n;
package/index.cjs47.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),l=require("./index.cjs113.js"),u=require("./index.cjs137.js"),m=l.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},gap:{none:"",small:"gap-space-04",medium:"gap-space-05",1:"gap-space-01",2:"gap-space-02",3:"gap-space-03",4:"gap-space-04",5:"gap-space-05",6:"gap-space-06",7:"gap-space-07",8:"gap-space-08",9:"gap-space-09",10:"gap-space-10",11:"gap-space-11",12:"gap-space-12"},gapX:{none:"",small:"gap-x-space-04",medium:"gap-x-space-05",1:"gap-x-space-01",2:"gap-x-space-02",3:"gap-x-space-03",4:"gap-x-space-04",5:"gap-x-space-05",6:"gap-x-space-06",7:"gap-x-space-07",8:"gap-x-space-08",9:"gap-x-space-09",10:"gap-x-space-10",11:"gap-x-space-11",12:"gap-x-space-12"},gapY:{none:"",small:"gap-y-space-04",medium:"gap-y-space-05",1:"gap-y-space-01",2:"gap-y-space-02",3:"gap-y-space-03",4:"gap-y-space-04",5:"gap-y-space-05",6:"gap-y-space-06",7:"gap-y-space-07",8:"gap-y-space-08",9:"gap-y-space-09",10:"gap-y-space-10",11:"gap-y-space-11",12:"gap-y-space-12"},alignItems:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justifyItems:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},alignContent:{start:"content-start",center:"content-center",end:"content-end",between:"content-between",around:"content-around",evenly:"content-evenly"},justifyContent:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{direction:"row",gap:"medium"}}),x=({direction:e,gap:a,gapX:s,gapY:t,justifyContent:p,justifyItems:c,alignContent:n,alignItems:r,className:g,children:i,...o})=>y.jsx("div",{className:u.clsx(m({direction:e,gap:a,gapX:s,gapY:t,justifyContent:p,justifyItems:c,alignContent:n,alignItems:r}),g),...o,children:i});exports.Stack=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),l=require("./index.cjs115.js"),u=require("./index.cjs138.js"),m=l.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},gap:{none:"",small:"gap-space-04",medium:"gap-space-05",1:"gap-space-01",2:"gap-space-02",3:"gap-space-03",4:"gap-space-04",5:"gap-space-05",6:"gap-space-06",7:"gap-space-07",8:"gap-space-08",9:"gap-space-09",10:"gap-space-10",11:"gap-space-11",12:"gap-space-12"},gapX:{none:"",small:"gap-x-space-04",medium:"gap-x-space-05",1:"gap-x-space-01",2:"gap-x-space-02",3:"gap-x-space-03",4:"gap-x-space-04",5:"gap-x-space-05",6:"gap-x-space-06",7:"gap-x-space-07",8:"gap-x-space-08",9:"gap-x-space-09",10:"gap-x-space-10",11:"gap-x-space-11",12:"gap-x-space-12"},gapY:{none:"",small:"gap-y-space-04",medium:"gap-y-space-05",1:"gap-y-space-01",2:"gap-y-space-02",3:"gap-y-space-03",4:"gap-y-space-04",5:"gap-y-space-05",6:"gap-y-space-06",7:"gap-y-space-07",8:"gap-y-space-08",9:"gap-y-space-09",10:"gap-y-space-10",11:"gap-y-space-11",12:"gap-y-space-12"},alignItems:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justifyItems:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},alignContent:{start:"content-start",center:"content-center",end:"content-end",between:"content-between",around:"content-around",evenly:"content-evenly"},justifyContent:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{direction:"row",gap:"medium"}}),x=({direction:e,gap:a,gapX:s,gapY:t,justifyContent:p,justifyItems:c,alignContent:n,alignItems:r,className:g,children:i,...o})=>y.jsx("div",{className:u.clsx(m({direction:e,gap:a,gapX:s,gapY:t,justifyContent:p,justifyItems:c,alignContent:n,alignItems:r}),g),...o,children:i});exports.Stack=x;
package/index.cjs48.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),Q=require("@radix-ui/react-navigation-menu"),$=require("./index.cjs113.js"),J=require("react"),U=require("@radix-ui/react-dialog"),v=require("@radix-ui/react-slot"),N=require("./index.cjs108.js"),o=require("./index.cjs94.js"),f=require("./index.cjs95.js");;/* empty css */const p=require("./index.cjs27.js"),W=require("./index.cjs42.js"),d=require("./index.cjs73.js"),y=require("./index.cjs116.js"),X=require("./index.cjs142.js"),j=require("./index.cjs9.js"),Y=require("./index.cjs143.js"),Z=require("./index.cjs47.js"),V=require("./index.cjs5.js"),b=require("./index.cjs84.js"),h=require("./index.cjs131.js"),ee=require("./index.cjs144.js"),m=require("./index.cjs19.js");function M(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const s=M(Q),l=M(J),L=l.forwardRef(({className:t,children:a,viewport:n=!0,...r},i)=>{const{dir:c}=j.useLanguage();return e.jsxs(s.Root,{dir:c,ref:i,className:o.cn("relative z-10 hidden flex-1 items-center lg:flex",t),...r,children:[a,n&&e.jsx(w,{})]})});L.displayName=s.Root.displayName;const R=l.forwardRef(({className:t,...a},n)=>e.jsx(s.List,{ref:n,className:o.cn("group flex flex-1 list-none items-center justify-center",t),...a}));R.displayName=s.List.displayName;const te=s.Item,x=$.cva(`group relative inline-flex h-[72px] items-center justify-center gap-space-01 px-space-05 py-space-02 after:absolute after:bottom-0 after:start-1/2 after:h-space-02 after:w-[calc(100%_-_16px)] after:rounded-full
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),Q=require("@radix-ui/react-navigation-menu"),$=require("./index.cjs115.js"),J=require("react"),U=require("@radix-ui/react-dialog"),v=require("@radix-ui/react-slot"),N=require("./index.cjs110.js"),o=require("./index.cjs95.js"),f=require("./index.cjs96.js");;/* empty css */const p=require("./index.cjs27.js"),W=require("./index.cjs42.js"),d=require("./index.cjs73.js"),y=require("./index.cjs118.js"),X=require("./index.cjs143.js"),j=require("./index.cjs9.js"),Y=require("./index.cjs144.js"),Z=require("./index.cjs47.js"),V=require("./index.cjs5.js"),b=require("./index.cjs84.js"),h=require("./index.cjs133.js"),ee=require("./index.cjs145.js"),m=require("./index.cjs19.js");function M(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const s=M(Q),l=M(J),L=l.forwardRef(({className:t,children:a,viewport:n=!0,...r},i)=>{const{dir:c}=j.useLanguage();return e.jsxs(s.Root,{dir:c,ref:i,className:o.cn("relative z-10 hidden flex-1 items-center lg:flex",t),...r,children:[a,n&&e.jsx(w,{})]})});L.displayName=s.Root.displayName;const R=l.forwardRef(({className:t,...a},n)=>e.jsx(s.List,{ref:n,className:o.cn("group flex flex-1 list-none items-center justify-center",t),...a}));R.displayName=s.List.displayName;const te=s.Item,x=$.cva(`group relative inline-flex h-[72px] items-center justify-center gap-space-01 px-space-05 py-space-02 after:absolute after:bottom-0 after:start-1/2 after:h-space-02 after:w-[calc(100%_-_16px)] after:rounded-full
2
2
  hover:bg-button-background-neutral-hovered hover:after:bg-background-neutral-400 focus:bg-transparent
3
3
  focus:outline focus:outline-2 focus:outline-black active:bg-button-background-neutral-pressed active:after:bg-background-neutral-800
4
4
  ltr:after:-translate-x-1/2 rtl:after:translate-x-1/2
package/index.cjs49.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),p=require("react");;/* empty css */const T=require("./index.cjs27.js"),q=require("./index.cjs65.js"),g=require("./index.cjs71.js"),M=require("./index.cjs145.js"),O=require("./index.cjs146.js"),P=require("./index.cjs147.js"),U=require("./index.cjs148.js"),k=require("./index.cjs149.js"),i=require("./index.cjs135.js"),y=require("./index.cjs94.js"),h=require("./index.cjs130.js"),x={en:h.enUS,ar:P.arSA},C=(c,n="en",r=15)=>{const o=[],t=x[n];if(c)for(let s=0;s<24;s++)for(let a=0;a<60;a+=r){const l=new Date(2e3,0,1,s,a),f=i.formatDate(l,"hh:mm a",{locale:h.enUS}),u=i.formatDate(l,"hh:mm a",{locale:t});o.push({label:u,value:f})}else for(let s=0;s<24;s++)for(let a=0;a<60;a+=r){const l=new Date(2e3,0,1,s,a),f=i.formatDate(l,"HH:mm",{locale:h.enUS}),u=i.formatDate(l,"HH:mm",{locale:t});o.push({label:u,value:f})}return o};function _(c,n){if(!c)return new Date(2e3,0,1,0,0);let r=null;const o=n?"hh:mm a":"HH:mm";return U.isMatch(c,o,{locale:h.enUS})&&(r=k.parse(c,o,new Date(2e3,0,1),{locale:h.enUS})),!r||isNaN(r.getTime())?new Date(2e3,0,1,0,0):r}const b=({placeholder:c,value:n,onChange:r,rounded:o,lang:t="en",variant:s,className:a,colors:l,size:f,timeStep:u=15,ampm:m,disabled:w})=>{const[H,j]=p.useState(!1),v=p.useMemo(()=>C(m,t,u),[m,t,u]),N=d=>{j(!1),r(d)},D=p.useMemo(()=>_(n,!!m),[n,m]),S=n?m?i.formatDate(D,"hh:mm a",{locale:x[t]}):i.formatDate(D,"HH:mm",{locale:x[t]}):null;return e.jsxs(q.Popover,{open:H,onOpenChange:j,children:[e.jsx(q.PopoverTrigger,{asChild:!0,children:e.jsxs("button",{id:"date",className:y.cn(g.selectVariants({variant:s,colors:l,size:f,rounded:o}),a),disabled:w,children:[S?e.jsx(e.Fragment,{children:S}):e.jsx("span",{className:"text-body-01 text-foreground-secondary",children:c??i.formatDate(new Date(2e3,0,1,12,0),m?"hh:mm a":"HH:mm",{locale:x[t]})}),e.jsx(M.default,{className:"size-[20px] shrink-0"})]})}),e.jsx(q.PopoverContent,{className:"max-h-[230px] min-w-[300px] overflow-auto rounded border p-space-04 shadow-2xl",align:t==="ar"?"end":"start",children:e.jsx("div",{dir:t==="ar"?"rtl":"ltr",className:"flex flex-col gap-space-02",children:v.map(d=>e.jsxs(T.Button,{colors:"neutral",variant:"text",rounded:"default",className:"flex justify-between font-normal",onClick:()=>N(d.value),children:[d.label,d.value===n&&e.jsx(O.default,{})]},d.value))})})]})};exports.TimePicker=b;exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),p=require("react");;/* empty css */const T=require("./index.cjs27.js"),q=require("./index.cjs65.js"),g=require("./index.cjs71.js"),M=require("./index.cjs146.js"),O=require("./index.cjs147.js"),P=require("./index.cjs148.js"),U=require("./index.cjs149.js"),k=require("./index.cjs150.js"),i=require("./index.cjs136.js"),y=require("./index.cjs95.js"),h=require("./index.cjs132.js"),x={en:h.enUS,ar:P.arSA},C=(c,n="en",r=15)=>{const o=[],t=x[n];if(c)for(let s=0;s<24;s++)for(let a=0;a<60;a+=r){const l=new Date(2e3,0,1,s,a),f=i.formatDate(l,"hh:mm a",{locale:h.enUS}),u=i.formatDate(l,"hh:mm a",{locale:t});o.push({label:u,value:f})}else for(let s=0;s<24;s++)for(let a=0;a<60;a+=r){const l=new Date(2e3,0,1,s,a),f=i.formatDate(l,"HH:mm",{locale:h.enUS}),u=i.formatDate(l,"HH:mm",{locale:t});o.push({label:u,value:f})}return o};function _(c,n){if(!c)return new Date(2e3,0,1,0,0);let r=null;const o=n?"hh:mm a":"HH:mm";return U.isMatch(c,o,{locale:h.enUS})&&(r=k.parse(c,o,new Date(2e3,0,1),{locale:h.enUS})),!r||isNaN(r.getTime())?new Date(2e3,0,1,0,0):r}const b=({placeholder:c,value:n,onChange:r,rounded:o,lang:t="en",variant:s,className:a,colors:l,size:f,timeStep:u=15,ampm:m,disabled:w})=>{const[H,j]=p.useState(!1),v=p.useMemo(()=>C(m,t,u),[m,t,u]),N=d=>{j(!1),r(d)},D=p.useMemo(()=>_(n,!!m),[n,m]),S=n?m?i.formatDate(D,"hh:mm a",{locale:x[t]}):i.formatDate(D,"HH:mm",{locale:x[t]}):null;return e.jsxs(q.Popover,{open:H,onOpenChange:j,children:[e.jsx(q.PopoverTrigger,{asChild:!0,children:e.jsxs("button",{id:"date",className:y.cn(g.selectVariants({variant:s,colors:l,size:f,rounded:o}),a),disabled:w,children:[S?e.jsx(e.Fragment,{children:S}):e.jsx("span",{className:"text-body-01 text-foreground-secondary",children:c??i.formatDate(new Date(2e3,0,1,12,0),m?"hh:mm a":"HH:mm",{locale:x[t]})}),e.jsx(M.default,{className:"size-[20px] shrink-0"})]})}),e.jsx(q.PopoverContent,{className:"max-h-[230px] min-w-[300px] overflow-auto rounded border p-space-04 shadow-2xl",align:t==="ar"?"end":"start",children:e.jsx("div",{dir:t==="ar"?"rtl":"ltr",className:"flex flex-col gap-space-02",children:v.map(d=>e.jsxs(T.Button,{colors:"neutral",variant:"text",rounded:"default",className:"flex justify-between font-normal",onClick:()=>N(d.value),children:[d.label,d.value===n&&e.jsx(O.default,{})]},d.value))})})]})};exports.TimePicker=b;exports.default=b;
package/index.cjs50.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),d=require("./index.cjs95.js");;/* empty css */const o=require("./index.cjs9.js"),f=({children:c,onLanguageChange:t,onDirChange:e})=>{const{lang:r,dir:i}=o.useLanguage();return u.useLayoutEffect(()=>{var s;document.dir=i,navigator.userAgent.indexOf("iPhone")>-1&&((s=document==null?void 0:document.querySelector("[name=viewport]"))==null||s.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")),e==null||e()},[i,e]),u.useEffect(()=>{r&&(d.setLanguage(r),t==null||t())},[r,t]),c};exports.Bootstrap=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),d=require("./index.cjs96.js");;/* empty css */const o=require("./index.cjs9.js"),f=({children:c,onLanguageChange:t,onDirChange:e})=>{const{lang:r,dir:i}=o.useLanguage();return u.useLayoutEffect(()=>{var s;document.dir=i,navigator.userAgent.indexOf("iPhone")>-1&&((s=document==null?void 0:document.querySelector("[name=viewport]"))==null||s.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")),e==null||e()},[i,e]),u.useEffect(()=>{r&&(d.setLanguage(r),t==null||t())},[r,t]),c};exports.Bootstrap=f;
package/index.cjs51.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),K=require("./index.cjs3.js"),C=require("./index.cjs27.js"),l=require("react"),a=require("./index.cjs95.js"),S=require("./index.cjs19.js"),Q=require("./index.cjs150.js"),W=require("./index.cjs151.js"),X=require("./index.cjs152.js"),Y=require("./index.cjs116.js"),x=require("./index.cjs94.js"),ee={"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"application/pdf":[".pdf"]};function se({file:t,onRemove:r}){return e.jsxs("li",{className:x.cn("flex flex-col rounded border border-border-neutral-primary bg-background-neutral-100",{"border-border-error":t.status==="error"}),children:[e.jsxs("div",{className:"flex items-center justify-between truncate p-space-02",children:[e.jsxs("div",{className:"flex gap-space-02",children:[t.status==="uploading"&&e.jsx(K.default,{}),t.status==="success"&&e.jsx(W.default,{className:"text-icon-success"}),t.status==="error"&&e.jsx(X.default,{className:"text-icon-error"}),e.jsx("span",{className:"text-body-01 font-medium text-text-default",children:t.file.name})]}),e.jsx(C.Button,{variant:"text",size:"icon-xs",rounded:"default",colors:"neutral",onClick:()=>r(t.id),"aria-label":`remove file ${t.file.name}`,className:"mix-blend-multiply dark:mix-blend-normal",children:e.jsx(Y.default,{})})]}),t.status==="error"&&e.jsx("div",{className:"border-t border-border-primary p-space-02",children:e.jsx("span",{className:"text-caption-01 text-text-error",children:t.error})})]})}function te({files:t,onRemove:r}){return e.jsx("ul",{className:"space-y-space-01",children:t.map(o=>e.jsx(se,{file:o,onRemove:r},o.id))})}function re({isDragging:t,disabled:r,acceptedExtensions:o,maxSize:m,onDragEnter:u,onDragLeave:f,onDragOver:h,onDrop:b,onSelectFiles:v,browseLabel:q,description:k}){return e.jsx("div",{role:"button",className:x.cn("group rounded border border-dashed bg-background-neutral-100 p-space-05 text-center hover:border-border-success hover:bg-background-success-25",{"border-border-success bg-background-success-25":t,"pointer-events-none cursor-not-allowed border-border-disabled":r}),onDragEnter:u,onDragLeave:f,onDragOver:h,onDrop:b,children:e.jsxs("label",{htmlFor:"fileInput",className:"flex cursor-pointer flex-col items-center gap-space-05",children:[e.jsx(Q.default,{className:x.cn("size-space-05 text-icon-default group-hover:text-icon-success",{"text-disabled":r})}),e.jsx("span",{id:"dragDropLabel",className:x.cn("text-body-02 font-medium text-text-display group-hover:text-text-success",{"text-disabled-text-default-disabled":r}),children:a.strings.Attachments.dragFiles}),e.jsx("span",{className:x.cn("text-caption-01 text-text-paragraph-primary group-hover:text-text-success",{"text-disabled-text-default-disabled":r}),children:k||`${a.strings.formatString(a.strings.Attachments.maxSize,m||0)}${a.strings.Shared.comma} ${a.strings.formatString(a.strings.Attachments.allowedFormats,o.join(", "))}`}),e.jsx(C.Button,{variant:"text",colors:"neutral",size:"sm",rounded:"default",disabled:t||r,onClick:v,"aria-label":"browse files",children:q??a.strings.Attachments.browseFile})]})})}function ae({acceptedFormats:t=ee,onFileSelect:r,multiple:o,disabled:m,maxSize:u=1,maxFiles:f=1/0,customError:h,isInvalid:b,isRequired:v,label:q,browseLabel:k,description:z,value:g=[],onChange:F}){const[i,j]=l.useState({validFiles:g,invalidFiles:[]}),M=l.useId(),[O,w]=l.useState(!1),y=l.useRef(null),N=i.validFiles.length>=f,I=Object.values(t).flat(),V=I.join(",");l.useEffect(()=>{g.length&&j(s=>({validFiles:g,invalidFiles:s.invalidFiles}))},[g]);const P=l.useCallback(s=>s.size>u*1024*1024||!t[s.type]?{isValid:!1,error:a.strings.Attachments.error}:{isValid:!0},[t,u]),A=l.useCallback(s=>{const p=[],n=[];s.forEach(d=>{const R=d.name.replaceAll(/[^a-zA-Z0-9\u0600-\u06FF ._-]/g,"_"),$=P(d);if(!$.isValid){n.push({id:`${d.name}-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,file:new File([d],R,{type:d.type}),progress:0,status:"error",error:$.error});return}p.push({id:`${d.name}-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,file:new File([d],R,{type:d.type}),progress:0,status:r?"uploading":"success"})});const c=[...i.validFiles,...p];j({validFiles:c,invalidFiles:[...i.invalidFiles,...n]}),F(c),r&&p.length&&r(p,(d,R,$="uploading",J)=>{const L=c.map(D=>D.id===d?{...D,progress:R,status:$,error:J}:D);j(D=>({validFiles:L,invalidFiles:D.invalidFiles})),F(L)}),y.current&&(y.current.value="")},[i.validFiles,i.invalidFiles,F,P,r]),_=l.useCallback(s=>{s.preventDefault(),s.stopPropagation(),w(!0)},[]),B=l.useCallback(s=>{s.preventDefault(),s.stopPropagation(),w(!1)},[]),T=l.useCallback(s=>{s.preventDefault(),s.stopPropagation()},[]),U=l.useCallback(s=>{s.preventDefault(),s.stopPropagation(),w(!1),A(Array.from(s.dataTransfer.files))},[A]),Z=l.useCallback(s=>{s.target.files&&A(Array.from(s.target.files))},[A]),E=l.useCallback(()=>{var s,p;N||((s=y.current)==null||s.click(),(p=y.current)==null||p.focus())},[N]),G=l.useCallback(s=>{if(i.invalidFiles.some(n=>n.id===s))j(n=>({validFiles:n.validFiles,invalidFiles:n.invalidFiles.filter(c=>c.id!==s)}));else{const n=i.validFiles.filter(c=>c.id!==s);j(c=>({validFiles:n,invalidFiles:c.invalidFiles})),F(n)}},[i.validFiles,i.invalidFiles,F]),H=[...i.validFiles,...i.invalidFiles];return e.jsxs("div",{className:x.cn("mx-auto flex w-full flex-col gap-space-02",{"rounded-1 border border-error p-space-02":b}),children:[e.jsx(S.ShouldRender,{shouldRender:o,children:e.jsx(re,{isDragging:O,disabled:m||N,acceptedExtensions:I,onDragEnter:_,onDragLeave:B,onDragOver:T,onDrop:U,onSelectFiles:E,maxSize:u,browseLabel:k,description:z})}),e.jsx(S.ShouldRender,{shouldRender:!o,children:e.jsx(le,{disabled:m||N,acceptedExtensions:I,onSelectFiles:E,isSelectedFile:!!g.length||!!i.invalidFiles.length,maxSize:u,isRequired:v,label:q,browseLabel:k,description:z})}),e.jsx("input",{type:"file",accept:V,ref:y,onChange:Z,className:"hidden",id:`fileInput-${M}`,disabled:m||N,"aria-describedby":"fileInputDescription"}),e.jsx(te,{files:H,onRemove:G}),e.jsx(S.ShouldRender,{shouldRender:!g.length&&!!h,children:e.jsx("div",{className:"text-caption-01 text-text-error",children:h})})]})}const le=({disabled:t,acceptedExtensions:r,isSelectedFile:o,onSelectFiles:m,maxSize:u,isRequired:f,label:h,browseLabel:b,description:v})=>e.jsxs("div",{className:"space-y-space-04",children:[e.jsxs("div",{className:"space-y-space-02",children:[e.jsxs("div",{className:x.cn("text-body-02 text-form-field-text-label",{"text-disabled-text-default-disabled":t}),children:[h??a.strings.Attachments.uploadFiles,e.jsx(S.ShouldRender,{shouldRender:f,children:e.jsx("span",{className:"ms-space-01 text-error",children:"*"})})]}),e.jsx("p",{className:x.cn("text-caption-01 text-text-paragraph-primary group-hover:text-text-success",{"text-disabled-text-default-disabled":t}),children:v||`${a.strings.formatString(a.strings.Attachments.maxSize,u||0)}${a.strings.Shared.comma} ${a.strings.formatString(a.strings.Attachments.allowedFormats,r.join(", "))}`})]}),e.jsx(S.ShouldRender,{shouldRender:!o,children:e.jsx(C.Button,{onClick:m,colors:"neutral",rounded:"default",type:"button",size:"sm",disabled:t,children:b??a.strings.Attachments.browseFile})})]});exports.FileUpload=ae;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),K=require("./index.cjs3.js"),C=require("./index.cjs27.js"),l=require("react"),a=require("./index.cjs96.js"),S=require("./index.cjs19.js"),Q=require("./index.cjs151.js"),W=require("./index.cjs152.js"),X=require("./index.cjs153.js"),Y=require("./index.cjs118.js"),x=require("./index.cjs95.js"),ee={"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"application/pdf":[".pdf"]};function se({file:t,onRemove:r}){return e.jsxs("li",{className:x.cn("flex flex-col rounded border border-border-neutral-primary bg-background-neutral-100",{"border-border-error":t.status==="error"}),children:[e.jsxs("div",{className:"flex items-center justify-between truncate p-space-02",children:[e.jsxs("div",{className:"flex gap-space-02",children:[t.status==="uploading"&&e.jsx(K.default,{}),t.status==="success"&&e.jsx(W.default,{className:"text-icon-success"}),t.status==="error"&&e.jsx(X.default,{className:"text-icon-error"}),e.jsx("span",{className:"text-body-01 font-medium text-text-default",children:t.file.name})]}),e.jsx(C.Button,{variant:"text",size:"icon-xs",rounded:"default",colors:"neutral",onClick:()=>r(t.id),"aria-label":`remove file ${t.file.name}`,className:"mix-blend-multiply dark:mix-blend-normal",children:e.jsx(Y.default,{})})]}),t.status==="error"&&e.jsx("div",{className:"border-t border-border-primary p-space-02",children:e.jsx("span",{className:"text-caption-01 text-text-error",children:t.error})})]})}function te({files:t,onRemove:r}){return e.jsx("ul",{className:"space-y-space-01",children:t.map(o=>e.jsx(se,{file:o,onRemove:r},o.id))})}function re({isDragging:t,disabled:r,acceptedExtensions:o,maxSize:m,onDragEnter:u,onDragLeave:f,onDragOver:h,onDrop:b,onSelectFiles:v,browseLabel:q,description:k}){return e.jsx("div",{role:"button",className:x.cn("group rounded border border-dashed bg-background-neutral-100 p-space-05 text-center hover:border-border-success hover:bg-background-success-25",{"border-border-success bg-background-success-25":t,"pointer-events-none cursor-not-allowed border-border-disabled":r}),onDragEnter:u,onDragLeave:f,onDragOver:h,onDrop:b,children:e.jsxs("label",{htmlFor:"fileInput",className:"flex cursor-pointer flex-col items-center gap-space-05",children:[e.jsx(Q.default,{className:x.cn("size-space-05 text-icon-default group-hover:text-icon-success",{"text-disabled":r})}),e.jsx("span",{id:"dragDropLabel",className:x.cn("text-body-02 font-medium text-text-display group-hover:text-text-success",{"text-disabled-text-default-disabled":r}),children:a.strings.Attachments.dragFiles}),e.jsx("span",{className:x.cn("text-caption-01 text-text-paragraph-primary group-hover:text-text-success",{"text-disabled-text-default-disabled":r}),children:k||`${a.strings.formatString(a.strings.Attachments.maxSize,m||0)}${a.strings.Shared.comma} ${a.strings.formatString(a.strings.Attachments.allowedFormats,o.join(", "))}`}),e.jsx(C.Button,{variant:"text",colors:"neutral",size:"sm",rounded:"default",disabled:t||r,onClick:v,"aria-label":"browse files",children:q??a.strings.Attachments.browseFile})]})})}function ae({acceptedFormats:t=ee,onFileSelect:r,multiple:o,disabled:m,maxSize:u=1,maxFiles:f=1/0,customError:h,isInvalid:b,isRequired:v,label:q,browseLabel:k,description:z,value:g=[],onChange:F}){const[i,j]=l.useState({validFiles:g,invalidFiles:[]}),M=l.useId(),[O,w]=l.useState(!1),y=l.useRef(null),N=i.validFiles.length>=f,I=Object.values(t).flat(),V=I.join(",");l.useEffect(()=>{g.length&&j(s=>({validFiles:g,invalidFiles:s.invalidFiles}))},[g]);const P=l.useCallback(s=>s.size>u*1024*1024||!t[s.type]?{isValid:!1,error:a.strings.Attachments.error}:{isValid:!0},[t,u]),A=l.useCallback(s=>{const p=[],n=[];s.forEach(d=>{const R=d.name.replaceAll(/[^a-zA-Z0-9\u0600-\u06FF ._-]/g,"_"),$=P(d);if(!$.isValid){n.push({id:`${d.name}-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,file:new File([d],R,{type:d.type}),progress:0,status:"error",error:$.error});return}p.push({id:`${d.name}-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,file:new File([d],R,{type:d.type}),progress:0,status:r?"uploading":"success"})});const c=[...i.validFiles,...p];j({validFiles:c,invalidFiles:[...i.invalidFiles,...n]}),F(c),r&&p.length&&r(p,(d,R,$="uploading",J)=>{const L=c.map(D=>D.id===d?{...D,progress:R,status:$,error:J}:D);j(D=>({validFiles:L,invalidFiles:D.invalidFiles})),F(L)}),y.current&&(y.current.value="")},[i.validFiles,i.invalidFiles,F,P,r]),_=l.useCallback(s=>{s.preventDefault(),s.stopPropagation(),w(!0)},[]),B=l.useCallback(s=>{s.preventDefault(),s.stopPropagation(),w(!1)},[]),T=l.useCallback(s=>{s.preventDefault(),s.stopPropagation()},[]),U=l.useCallback(s=>{s.preventDefault(),s.stopPropagation(),w(!1),A(Array.from(s.dataTransfer.files))},[A]),Z=l.useCallback(s=>{s.target.files&&A(Array.from(s.target.files))},[A]),E=l.useCallback(()=>{var s,p;N||((s=y.current)==null||s.click(),(p=y.current)==null||p.focus())},[N]),G=l.useCallback(s=>{if(i.invalidFiles.some(n=>n.id===s))j(n=>({validFiles:n.validFiles,invalidFiles:n.invalidFiles.filter(c=>c.id!==s)}));else{const n=i.validFiles.filter(c=>c.id!==s);j(c=>({validFiles:n,invalidFiles:c.invalidFiles})),F(n)}},[i.validFiles,i.invalidFiles,F]),H=[...i.validFiles,...i.invalidFiles];return e.jsxs("div",{className:x.cn("mx-auto flex w-full flex-col gap-space-02",{"rounded-1 border border-error p-space-02":b}),children:[e.jsx(S.ShouldRender,{shouldRender:o,children:e.jsx(re,{isDragging:O,disabled:m||N,acceptedExtensions:I,onDragEnter:_,onDragLeave:B,onDragOver:T,onDrop:U,onSelectFiles:E,maxSize:u,browseLabel:k,description:z})}),e.jsx(S.ShouldRender,{shouldRender:!o,children:e.jsx(le,{disabled:m||N,acceptedExtensions:I,onSelectFiles:E,isSelectedFile:!!g.length||!!i.invalidFiles.length,maxSize:u,isRequired:v,label:q,browseLabel:k,description:z})}),e.jsx("input",{type:"file",accept:V,ref:y,onChange:Z,className:"hidden",id:`fileInput-${M}`,disabled:m||N,"aria-describedby":"fileInputDescription"}),e.jsx(te,{files:H,onRemove:G}),e.jsx(S.ShouldRender,{shouldRender:!g.length&&!!h,children:e.jsx("div",{className:"text-caption-01 text-text-error",children:h})})]})}const le=({disabled:t,acceptedExtensions:r,isSelectedFile:o,onSelectFiles:m,maxSize:u,isRequired:f,label:h,browseLabel:b,description:v})=>e.jsxs("div",{className:"space-y-space-04",children:[e.jsxs("div",{className:"space-y-space-02",children:[e.jsxs("div",{className:x.cn("text-body-02 text-form-field-text-label",{"text-disabled-text-default-disabled":t}),children:[h??a.strings.Attachments.uploadFiles,e.jsx(S.ShouldRender,{shouldRender:f,children:e.jsx("span",{className:"ms-space-01 text-error",children:"*"})})]}),e.jsx("p",{className:x.cn("text-caption-01 text-text-paragraph-primary group-hover:text-text-success",{"text-disabled-text-default-disabled":t}),children:v||`${a.strings.formatString(a.strings.Attachments.maxSize,u||0)}${a.strings.Shared.comma} ${a.strings.formatString(a.strings.Attachments.allowedFormats,r.join(", "))}`})]}),e.jsx(S.ShouldRender,{shouldRender:!o,children:e.jsx(C.Button,{onClick:m,colors:"neutral",rounded:"default",type:"button",size:"sm",disabled:t,children:b??a.strings.Attachments.browseFile})})]});exports.FileUpload=ae;
package/index.cjs52.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),k=require("./index.cjs108.js");;/* empty css */const y=require("./index.cjs95.js"),R=require("./index.cjs153.js"),v=require("./index.cjs9.js"),b=require("./index.cjs32.js"),q=require("./index.cjs154.js"),B=require("./index.cjs68.js"),E=require("./index.cjs15.js"),O=require("./index.cjs11.js"),g=require("./index.cjs73.js"),_=require("./index.cjs155.js"),w=require("./index.cjs33.js"),P=require("./index.cjs31.js"),Q=require("./index.cjs44.js"),L=require("./index.cjs94.js"),N=require("./index.cjs27.js"),$=h.createContext(null),T=()=>{const s=h.useContext($);if(!s)throw new Error("useFilterContext must be used within a FilterGroup");return s},D=s=>s<10?"0"+(s==null?void 0:s.toString()):s==null?void 0:s.toString(),H=({label:s,value:t,isCkecked:i,onChange:l,name:o,multi:j})=>e.jsxs("div",{className:"flex w-full items-center gap-space-02",children:[j?e.jsx(P.Checkbox,{id:`${o}${t}`,value:t,size:"sm",onCheckedChange:x=>l==null?void 0:l(typeof x=="boolean"?x:!1,t),checked:i}):e.jsx(B.RadioGroupItem,{id:`${o}${t}`,value:t.toString()}),e.jsx(Q.Label,{htmlFor:`${o}${t}`,className:"text-Body-01 flex grow gap-space-02",children:s})]});function J(s=[],t,i){const l=new Set(s);return i?l.add(t):l.delete(t),Array.from(l)}const M=({data:s,name:t,multi:i,renderItem:l})=>{var f,d;const{value:o,upsert:j}=T(),[x,r]=h.useState(""),p=5,n=i&&Array.isArray(o==null?void 0:o[t])?o==null?void 0:o[t]:[],a=(c,S)=>{i&&j({name:t,selectedValue:J(n,c,S)})},m=c=>{const S=i?n.includes(c.value):(o==null?void 0:o[t])===c.value,C=l?l(c):c.label;return e.jsx(w.CommandItem,{className:"py-space-01",children:e.jsx(H,{multi:i,name:t,label:C,value:c.value,isCkecked:S,onChange:F=>a(c.value,F)})},c.value)},u=h.useMemo(()=>s.filter(c=>c.label.toLowerCase().includes(x.toLowerCase())),[s,x]);return e.jsxs(w.Command,{shouldFilter:!1,className:"pt-space-03",children:[s.length>9&&e.jsx(w.CommandInput,{placeholder:y.strings.Shared.Search,value:x,onValueChange:r}),e.jsxs(w.CommandList,{className:"h-full max-h-max",children:[e.jsx(w.CommandEmpty,{children:y.strings.Shared.noResultsFound}),(f=u==null?void 0:u.slice(0,p))==null?void 0:f.map(m),(u==null?void 0:u.length)>p&&e.jsxs(b.Collapsible,{children:[e.jsx(b.CollapsibleContent,{children:(d=u==null?void 0:u.slice(p))==null?void 0:d.map(m)}),e.jsxs(b.CollapsibleTrigger,{className:"flex w-full items-center gap-space-01 py-space-01 pe-space-02 ps-space-03 text-body-01 text-primary",children:[e.jsx("span",{className:"group-data-[state=closed]:hidden",children:y.strings.Shared.showLess}),e.jsx("span",{className:"group-data-[state=open]:hidden",children:y.strings.Shared.showMore}),e.jsx(q.default,{size:16,className:"transition-transform duration-300 group-data-[state=closed]:rotate-180"})]})]})]})]})},K=({resetFilters:s,children:t,onClickFilter:i,label:l,filterButtonProps:o,filterIcon:j})=>{const{dir:x}=v.useLanguage(),r=h.Children.map(t,p=>{var n;return h.isValidElement(p)?p.type&&typeof p.type=="object"&&"displayName"in p.type&&p.type.displayName==="FilterSelect"?p:e.jsxs(b.Collapsible,{dir:x,defaultOpen:!1,className:"flex flex-col gap-space-01 border-b border-border-primary px-space-03 py-space-02",children:[e.jsxs(b.CollapsibleTrigger,{className:"flex w-full items-center justify-between py-space-01 ps-space-02",children:[e.jsx("span",{className:"text-body-01 font-semibold",children:((n=p.props)==null?void 0:n.placeholder)||"Filter"}),e.jsx(N.Button,{variant:"text",type:"button",size:"icon-sm",colors:"gray","aria-label":"Toggle filter options",children:e.jsx(q.default,{className:"transition-transform duration-300 group-data-[state=closed]:rotate-180"})})]}),e.jsx(b.CollapsibleContent,{children:p})]}):p});return e.jsxs(g.Sheet,{children:[e.jsx(g.SheetTrigger,{asChild:!0,children:e.jsxs(N.Button,{id:"mobileFilter",colors:"neutral",className:L.cn({"!px-space-02":!l}),...o,children:[j||e.jsx(_.default,{}),l&&e.jsx("span",{children:l})]})}),e.jsxs(g.SheetContent,{side:"bottom",children:[e.jsx(g.SheetHeader,{children:e.jsx(g.SheetTitle,{children:y.strings.Shared.sortBy})}),e.jsx(g.SheetBody,{className:"px-space-00 py-space-02",children:r}),e.jsxs(g.SheetFooter,{className:"flex-row gap-space-02 p-space-04",children:[e.jsx(N.Button,{id:"servicesRest",size:"sm",variant:"text",colors:"neutral",onClick:s,className:"grow",children:y.strings.Shared.reset}),e.jsx(g.SheetClose,{asChild:!0,children:e.jsx(N.Button,{id:"servicesShowResults",size:"sm",colors:"primary",onClick:i,className:"grow",children:y.strings.Shared.showResults})})]})]})]})},A=h.memo(({multi:s,data:t,placeholder:i,disabled:l,isLoading:o,rounded:j,size:x,name:r,defaultOpen:p,renderItem:n})=>{const{value:a,upsert:m}=T(),u=k.useMediaQuery("(max-width: 768px)"),{dir:f}=v.useLanguage();let d;return s?d=Array.isArray(a==null?void 0:a[r])?a==null?void 0:a[r]:[]:d=typeof(a==null?void 0:a[r])=="string"?a==null?void 0:a[r]:void 0,u?e.jsxs(b.Collapsible,{dir:f,defaultOpen:p,className:"border-b border-border-primary px-space-03 py-space-02",children:[e.jsxs(b.CollapsibleTrigger,{id:"subcategoriesCollapsible",className:"flex w-full items-center justify-between py-space-01 ps-space-02",children:[e.jsx("span",{className:"text-body-01 font-semibold",children:i}),e.jsxs("div",{className:"flex items-center gap-space-01",children:[s&&!!(d!=null&&d.length)&&e.jsx("span",{className:"flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground",children:D(d.length)}),!s&&!!d&&e.jsx("span",{className:"flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground",children:"01"}),e.jsx(N.Button,{variant:"text",type:"button",size:"icon-sm",colors:"gray","aria-label":"Toggle filter options",children:e.jsx(q.default,{className:"transition-transform duration-300 group-data-[state=closed]:rotate-180"})})]})]}),e.jsx(b.CollapsibleContent,{children:s?e.jsx(M,{data:t,name:r,multi:s,renderItem:n}):e.jsx(B.RadioGroup,{name:r,size:"sm",dir:f,value:d,onValueChange:c=>m({name:r,selectedValue:c}),children:e.jsx(M,{data:t,name:r,multi:s,renderItem:n})})})]}):s?e.jsx(E.MultiSelect,{options:t||[],onChange:c=>m({name:r,selectedValue:c}),selectedValues:d||[],dataTestId:`multiSelect-${r}`,placeholder:i,disabled:l,rounded:j,size:x,className:"!w-max"},r):e.jsx(O.ComboboxControlNoForm,{className:"!w-max",rounded:j,options:t||[],optionLabel:"label",optionValue:"value",renderItem:n,placeholder:i,onChange:c=>m({name:r,selectedValue:c}),value:(a==null?void 0:a[r])||"",size:x,disabled:l,isLoading:o},`${r}-${d||"empty"}`)});A.displayName="FilterSelect";const z=h.forwardRef(({children:s,onValueChange:t,onValueReset:i,label:l,resetButtonProps:o,filterButtonProps:j,filterIcon:x,resetButtonLabel:r,className:p,value:n,...a},m)=>{const u=k.useMediaQuery("(max-width: 768px)"),f=h.useCallback(({name:C,selectedValue:F})=>{const G={...n||{},[C]:F};t==null||t(G)},[n,t]),d=h.useCallback(()=>{i==null||i()},[i]),c=h.useMemo(()=>({value:n,upsert:f,reset:d}),[n,f,d]),S=h.useMemo(()=>n&&Object.values(n).some(C=>Array.isArray(C)?C.length>0:!!C),[n]);return e.jsx("div",{ref:m,className:L.cn("flex",p),...a,children:e.jsx($.Provider,{value:c,children:u?e.jsx(K,{filterButtonProps:j,resetFilters:d,onClickFilter:()=>t==null?void 0:t(n),label:l,filterIcon:x,children:s}):e.jsxs(e.Fragment,{children:[s,S&&e.jsxs(N.Button,{colors:"neutral",rounded:"default",variant:"text",size:"sm",onClick:d,className:"ms-auto",...o,children:[r||y.strings.Shared.reset,e.jsx(R.default,{className:"ms-space-01"})]})]})})})});z.displayName="FilterGroup";exports.FilterGroup=z;exports.FilterSelect=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),k=require("./index.cjs110.js");;/* empty css */const y=require("./index.cjs96.js"),R=require("./index.cjs154.js"),v=require("./index.cjs9.js"),b=require("./index.cjs32.js"),q=require("./index.cjs155.js"),B=require("./index.cjs68.js"),E=require("./index.cjs15.js"),O=require("./index.cjs11.js"),g=require("./index.cjs73.js"),_=require("./index.cjs156.js"),w=require("./index.cjs33.js"),P=require("./index.cjs31.js"),Q=require("./index.cjs44.js"),L=require("./index.cjs95.js"),N=require("./index.cjs27.js"),$=h.createContext(null),T=()=>{const s=h.useContext($);if(!s)throw new Error("useFilterContext must be used within a FilterGroup");return s},D=s=>s<10?"0"+(s==null?void 0:s.toString()):s==null?void 0:s.toString(),H=({label:s,value:t,isCkecked:i,onChange:l,name:o,multi:j})=>e.jsxs("div",{className:"flex w-full items-center gap-space-02",children:[j?e.jsx(P.Checkbox,{id:`${o}${t}`,value:t,size:"sm",onCheckedChange:x=>l==null?void 0:l(typeof x=="boolean"?x:!1,t),checked:i}):e.jsx(B.RadioGroupItem,{id:`${o}${t}`,value:t.toString()}),e.jsx(Q.Label,{htmlFor:`${o}${t}`,className:"text-Body-01 flex grow gap-space-02",children:s})]});function J(s=[],t,i){const l=new Set(s);return i?l.add(t):l.delete(t),Array.from(l)}const M=({data:s,name:t,multi:i,renderItem:l})=>{var f,d;const{value:o,upsert:j}=T(),[x,r]=h.useState(""),p=5,n=i&&Array.isArray(o==null?void 0:o[t])?o==null?void 0:o[t]:[],a=(c,S)=>{i&&j({name:t,selectedValue:J(n,c,S)})},m=c=>{const S=i?n.includes(c.value):(o==null?void 0:o[t])===c.value,C=l?l(c):c.label;return e.jsx(w.CommandItem,{className:"py-space-01",children:e.jsx(H,{multi:i,name:t,label:C,value:c.value,isCkecked:S,onChange:F=>a(c.value,F)})},c.value)},u=h.useMemo(()=>s.filter(c=>c.label.toLowerCase().includes(x.toLowerCase())),[s,x]);return e.jsxs(w.Command,{shouldFilter:!1,className:"pt-space-03",children:[s.length>9&&e.jsx(w.CommandInput,{placeholder:y.strings.Shared.Search,value:x,onValueChange:r}),e.jsxs(w.CommandList,{className:"h-full max-h-max",children:[e.jsx(w.CommandEmpty,{children:y.strings.Shared.noResultsFound}),(f=u==null?void 0:u.slice(0,p))==null?void 0:f.map(m),(u==null?void 0:u.length)>p&&e.jsxs(b.Collapsible,{children:[e.jsx(b.CollapsibleContent,{children:(d=u==null?void 0:u.slice(p))==null?void 0:d.map(m)}),e.jsxs(b.CollapsibleTrigger,{className:"flex w-full items-center gap-space-01 py-space-01 pe-space-02 ps-space-03 text-body-01 text-primary",children:[e.jsx("span",{className:"group-data-[state=closed]:hidden",children:y.strings.Shared.showLess}),e.jsx("span",{className:"group-data-[state=open]:hidden",children:y.strings.Shared.showMore}),e.jsx(q.default,{size:16,className:"transition-transform duration-300 group-data-[state=closed]:rotate-180"})]})]})]})]})},K=({resetFilters:s,children:t,onClickFilter:i,label:l,filterButtonProps:o,filterIcon:j})=>{const{dir:x}=v.useLanguage(),r=h.Children.map(t,p=>{var n;return h.isValidElement(p)?p.type&&typeof p.type=="object"&&"displayName"in p.type&&p.type.displayName==="FilterSelect"?p:e.jsxs(b.Collapsible,{dir:x,defaultOpen:!1,className:"flex flex-col gap-space-01 border-b border-border-primary px-space-03 py-space-02",children:[e.jsxs(b.CollapsibleTrigger,{className:"flex w-full items-center justify-between py-space-01 ps-space-02",children:[e.jsx("span",{className:"text-body-01 font-semibold",children:((n=p.props)==null?void 0:n.placeholder)||"Filter"}),e.jsx(N.Button,{variant:"text",type:"button",size:"icon-sm",colors:"gray","aria-label":"Toggle filter options",children:e.jsx(q.default,{className:"transition-transform duration-300 group-data-[state=closed]:rotate-180"})})]}),e.jsx(b.CollapsibleContent,{children:p})]}):p});return e.jsxs(g.Sheet,{children:[e.jsx(g.SheetTrigger,{asChild:!0,children:e.jsxs(N.Button,{id:"mobileFilter",colors:"neutral",className:L.cn({"!px-space-02":!l}),...o,children:[j||e.jsx(_.default,{}),l&&e.jsx("span",{children:l})]})}),e.jsxs(g.SheetContent,{side:"bottom",children:[e.jsx(g.SheetHeader,{children:e.jsx(g.SheetTitle,{children:y.strings.Shared.sortBy})}),e.jsx(g.SheetBody,{className:"px-space-00 py-space-02",children:r}),e.jsxs(g.SheetFooter,{className:"flex-row gap-space-02 p-space-04",children:[e.jsx(N.Button,{id:"servicesRest",size:"sm",variant:"text",colors:"neutral",onClick:s,className:"grow",children:y.strings.Shared.reset}),e.jsx(g.SheetClose,{asChild:!0,children:e.jsx(N.Button,{id:"servicesShowResults",size:"sm",colors:"primary",onClick:i,className:"grow",children:y.strings.Shared.showResults})})]})]})]})},A=h.memo(({multi:s,data:t,placeholder:i,disabled:l,isLoading:o,rounded:j,size:x,name:r,defaultOpen:p,renderItem:n})=>{const{value:a,upsert:m}=T(),u=k.useMediaQuery("(max-width: 768px)"),{dir:f}=v.useLanguage();let d;return s?d=Array.isArray(a==null?void 0:a[r])?a==null?void 0:a[r]:[]:d=typeof(a==null?void 0:a[r])=="string"?a==null?void 0:a[r]:void 0,u?e.jsxs(b.Collapsible,{dir:f,defaultOpen:p,className:"border-b border-border-primary px-space-03 py-space-02",children:[e.jsxs(b.CollapsibleTrigger,{id:"subcategoriesCollapsible",className:"flex w-full items-center justify-between py-space-01 ps-space-02",children:[e.jsx("span",{className:"text-body-01 font-semibold",children:i}),e.jsxs("div",{className:"flex items-center gap-space-01",children:[s&&!!(d!=null&&d.length)&&e.jsx("span",{className:"flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground",children:D(d.length)}),!s&&!!d&&e.jsx("span",{className:"flex h-[24px] w-[24px] items-center justify-center rounded-full bg-inverted text-caption-01 text-inverted-foreground",children:"01"}),e.jsx(N.Button,{variant:"text",type:"button",size:"icon-sm",colors:"gray","aria-label":"Toggle filter options",children:e.jsx(q.default,{className:"transition-transform duration-300 group-data-[state=closed]:rotate-180"})})]})]}),e.jsx(b.CollapsibleContent,{children:s?e.jsx(M,{data:t,name:r,multi:s,renderItem:n}):e.jsx(B.RadioGroup,{name:r,size:"sm",dir:f,value:d,onValueChange:c=>m({name:r,selectedValue:c}),children:e.jsx(M,{data:t,name:r,multi:s,renderItem:n})})})]}):s?e.jsx(E.MultiSelect,{options:t||[],onChange:c=>m({name:r,selectedValue:c}),selectedValues:d||[],dataTestId:`multiSelect-${r}`,placeholder:i,disabled:l,rounded:j,size:x,className:"!w-max"},r):e.jsx(O.ComboboxControlNoForm,{className:"!w-max",rounded:j,options:t||[],optionLabel:"label",optionValue:"value",renderItem:n,placeholder:i,onChange:c=>m({name:r,selectedValue:c}),value:(a==null?void 0:a[r])||"",size:x,disabled:l,isLoading:o},`${r}-${d||"empty"}`)});A.displayName="FilterSelect";const z=h.forwardRef(({children:s,onValueChange:t,onValueReset:i,label:l,resetButtonProps:o,filterButtonProps:j,filterIcon:x,resetButtonLabel:r,className:p,value:n,...a},m)=>{const u=k.useMediaQuery("(max-width: 768px)"),f=h.useCallback(({name:C,selectedValue:F})=>{const G={...n||{},[C]:F};t==null||t(G)},[n,t]),d=h.useCallback(()=>{i==null||i()},[i]),c=h.useMemo(()=>({value:n,upsert:f,reset:d}),[n,f,d]),S=h.useMemo(()=>n&&Object.values(n).some(C=>Array.isArray(C)?C.length>0:!!C),[n]);return e.jsx("div",{ref:m,className:L.cn("flex",p),...a,children:e.jsx($.Provider,{value:c,children:u?e.jsx(K,{filterButtonProps:j,resetFilters:d,onClickFilter:()=>t==null?void 0:t(n),label:l,filterIcon:x,children:s}):e.jsxs(e.Fragment,{children:[s,S&&e.jsxs(N.Button,{colors:"neutral",rounded:"default",variant:"text",size:"sm",onClick:d,className:"ms-auto",...o,children:[r||y.strings.Shared.reset,e.jsx(R.default,{className:"ms-space-01"})]})]})})})});z.displayName="FilterGroup";exports.FilterGroup=z;exports.FilterSelect=A;
package/index.cjs53.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("./index.cjs156.js"),j=require("./index.cjs157.js"),g=require("./index.cjs158.js"),b=require("./index.cjs159.js"),v=require("./index.cjs160.js"),w=require("./index.cjs161.js");;/* empty css */const y=require("./index.cjs6.js"),N=require("./index.cjs162.js"),q=require("./index.cjs163.js"),k=require("./index.cjs164.js"),S=require("./index.cjs165.js"),x=require("./index.cjs57.js"),p=require("./index.cjs94.js"),c=require("./index.cjs19.js"),o=require("./index.cjs27.js"),n=require("./index.cjs95.js"),F=({colors:s="default",...l})=>{var t;return e.jsx("footer",{className:p.cn(" px-space-04 md:px-space-06 ",{"bg-background-SA-Flag text-text-oncolor-primary":s==="default","bg-background-neutral-100 text-text-default":s==="neutral"}),children:e.jsxs("div",{className:"mx-auto flex max-w-container flex-col items-start py-space-05",children:[e.jsx(c.ShouldRender,{shouldRender:l.showGroupLinks,children:e.jsxs("div",{className:"mb-space-08 grid w-full grid-cols-12 items-stretch gap-space-05 pb-space-07 pt-space-04",children:[(t=l.groupLinks)==null?void 0:t.map(r=>e.jsx(z,{colors:s,title:r.title,links:r.links},r.title)),e.jsx("div",{className:"col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3",children:e.jsxs("div",{className:"flex w-full flex-col items-start gap-space-06",children:[e.jsx(_,{title:l.socialMediaTitle,colors:s,links:l.socialMediaLinks}),l.accessibilityTools??e.jsx(R,{colors:s})]})})]})}),e.jsx(C,{colors:s,basicLinks:l.basicLinks,bottomImages:l.bottomImages,extraLinks:l.extraLinks,showBasicLinks:l.showBasicLinks})]})})},u=({title:s,colors:l})=>e.jsx("label",{className:p.cn("w-full border-b pb-space-02 text-body-02 font-medium",{"border-border-neutral-primary":l==="neutral","border-border-oncolor-transparent-30":l==="default"}),children:s}),z=({title:s,links:l,colors:t})=>e.jsx("div",{className:"col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3",children:e.jsxs("div",{className:"flex flex-col items-start gap-space-02",children:[e.jsx(u,{title:s,colors:t}),e.jsx("ul",{className:"flex flex-col gap-space-02",children:l.map(r=>e.jsx("li",{children:e.jsx(d,{...r,colors:t==="neutral"?"neutral":"oncolor"})},r.label))})]})}),_=({title:s,links:l,colors:t})=>e.jsxs("div",{className:"flex w-full flex-col items-start gap-space-02",children:[e.jsx(u,{title:s,colors:t}),e.jsx("div",{className:"flex flex-wrap items-center gap-space-02",children:l.map(r=>e.jsx(o.Button,{variant:"outline",tooltip:r.title,colors:t==="neutral"?"neutral":"oncolor",size:"icon-sm",onClick:()=>window.open(r.target,"_blank","noopener,noreferrer"),rounded:"default",children:r.icon},r.title))})]}),R=({colors:s})=>{const{toggleColors:l,increaseSize:t,decreaseSize:r}=y.default(a=>a);return e.jsxs("div",{className:"flex w-full flex-col items-start gap-space-02",children:[e.jsx(u,{title:n.strings.Shared.accessibilityTools,colors:s}),e.jsxs("div",{className:"flex flex-wrap items-center gap-space-02",children:[e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.ColorContrast,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:l,children:e.jsx(N.default,{})}),e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.DecreaseFontSize,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:r,children:e.jsx(q.default,{})}),e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.IncreaseFontSize,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:t,children:e.jsx(k.default,{})}),e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.VoiceCommands,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:()=>{window.open("https://deaf.dga.gov.sa","_blank","noopener,noreferrer")},children:e.jsx(S.default,{size:20})})]})]})},C=({basicLinks:s,extraLinks:l,bottomImages:t,showBasicLinks:r,colors:a,copyrightText:f,developedByText:h})=>e.jsxs("div",{className:"grid w-full grid-cols-12 gap-space-05 py-space-04",children:[e.jsxs("div",{className:"col-span-12 space-y-space-02 md:col-span-8",children:[e.jsx(c.ShouldRender,{shouldRender:r,children:e.jsx("div",{className:"mb-spacing-05 flex items-center gap-space-04 ",children:s==null?void 0:s.map(i=>e.jsx(d,{...i,underline:"always",colors:a==="neutral"?"neutral":"oncolor"},i.label))})}),e.jsx("p",{className:"text-body-01 font-semibold ",children:f??n.strings.formatString(n.strings.Footer.Rights,new Date().getFullYear())}),e.jsx("p",{className:"text-body-01 ",children:h??n.strings.Footer.DevelopedByTetco}),e.jsx("div",{className:"flex items-center gap-space-04 ",children:l==null?void 0:l.map(i=>e.jsx(d,{...i,colors:a==="neutral"?"neutral":"oncolor"},i.label))})]}),e.jsxs("div",{className:"col-span-12 flex flex-wrap items-center gap-space-04 md:col-span-4 md:ms-auto",children:[e.jsxs(c.ShouldRender,{shouldRender:!(t!=null&&t.length),children:[e.jsx("a",{href:"https://moe.gov.sa/ar/Pages/default.aspx",rel:"noopener noreferrer",target:"_blank",children:e.jsx("img",{src:a==="default"?m.default:b.default,alt:"moe"})}),e.jsx("a",{href:"https://tetco.sa/",rel:"noopener noreferrer",target:"_blank",children:e.jsx("img",{src:a==="default"?j.default:v.default,alt:"tetco"})}),e.jsx("a",{href:"https://www.vision2030.gov.sa/",rel:"noopener noreferrer",target:"_blank",children:e.jsx("img",{src:a==="default"?g.default:w.default,alt:"vision 2030"})})]}),e.jsx(c.ShouldRender,{shouldRender:!!(t!=null&&t.length),children:t})]})]});function d({label:s,href:l,render:t,...r}){return t?e.jsx(x.Link,{size:"sm",...r,asChild:!0,children:t}):e.jsx(x.Link,{size:"sm",...r,target:"_blank",href:l,children:s})}exports.Footer=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("./index.cjs157.js"),j=require("./index.cjs158.js"),g=require("./index.cjs159.js"),b=require("./index.cjs160.js"),v=require("./index.cjs161.js"),w=require("./index.cjs162.js");;/* empty css */const y=require("./index.cjs6.js"),N=require("./index.cjs163.js"),q=require("./index.cjs164.js"),k=require("./index.cjs165.js"),S=require("./index.cjs166.js"),x=require("./index.cjs57.js"),p=require("./index.cjs95.js"),c=require("./index.cjs19.js"),o=require("./index.cjs27.js"),n=require("./index.cjs96.js"),F=({colors:s="default",...l})=>{var t;return e.jsx("footer",{className:p.cn(" px-space-04 md:px-space-06 ",{"bg-background-SA-Flag text-text-oncolor-primary":s==="default","bg-background-neutral-100 text-text-default":s==="neutral"}),children:e.jsxs("div",{className:"mx-auto flex max-w-container flex-col items-start py-space-05",children:[e.jsx(c.ShouldRender,{shouldRender:l.showGroupLinks,children:e.jsxs("div",{className:"mb-space-08 grid w-full grid-cols-12 items-stretch gap-space-05 pb-space-07 pt-space-04",children:[(t=l.groupLinks)==null?void 0:t.map(r=>e.jsx(z,{colors:s,title:r.title,links:r.links},r.title)),e.jsx("div",{className:"col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3",children:e.jsxs("div",{className:"flex w-full flex-col items-start gap-space-06",children:[e.jsx(_,{title:l.socialMediaTitle,colors:s,links:l.socialMediaLinks}),l.accessibilityTools??e.jsx(R,{colors:s})]})})]})}),e.jsx(C,{colors:s,basicLinks:l.basicLinks,bottomImages:l.bottomImages,extraLinks:l.extraLinks,showBasicLinks:l.showBasicLinks})]})})},u=({title:s,colors:l})=>e.jsx("label",{className:p.cn("w-full border-b pb-space-02 text-body-02 font-medium",{"border-border-neutral-primary":l==="neutral","border-border-oncolor-transparent-30":l==="default"}),children:s}),z=({title:s,links:l,colors:t})=>e.jsx("div",{className:"col-span-12 sm:col-span-6 lg:col-span-4 xl:col-span-3",children:e.jsxs("div",{className:"flex flex-col items-start gap-space-02",children:[e.jsx(u,{title:s,colors:t}),e.jsx("ul",{className:"flex flex-col gap-space-02",children:l.map(r=>e.jsx("li",{children:e.jsx(d,{...r,colors:t==="neutral"?"neutral":"oncolor"})},r.label))})]})}),_=({title:s,links:l,colors:t})=>e.jsxs("div",{className:"flex w-full flex-col items-start gap-space-02",children:[e.jsx(u,{title:s,colors:t}),e.jsx("div",{className:"flex flex-wrap items-center gap-space-02",children:l.map(r=>e.jsx(o.Button,{variant:"outline",tooltip:r.title,colors:t==="neutral"?"neutral":"oncolor",size:"icon-sm",onClick:()=>window.open(r.target,"_blank","noopener,noreferrer"),rounded:"default",children:r.icon},r.title))})]}),R=({colors:s})=>{const{toggleColors:l,increaseSize:t,decreaseSize:r}=y.default(a=>a);return e.jsxs("div",{className:"flex w-full flex-col items-start gap-space-02",children:[e.jsx(u,{title:n.strings.Shared.accessibilityTools,colors:s}),e.jsxs("div",{className:"flex flex-wrap items-center gap-space-02",children:[e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.ColorContrast,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:l,children:e.jsx(N.default,{})}),e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.DecreaseFontSize,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:r,children:e.jsx(q.default,{})}),e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.IncreaseFontSize,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:t,children:e.jsx(k.default,{})}),e.jsx(o.Button,{variant:"outline",tooltip:n.strings.Accessibility.VoiceCommands,colors:s==="neutral"?"neutral":"oncolor",size:"icon-sm",rounded:"default",onClick:()=>{window.open("https://deaf.dga.gov.sa","_blank","noopener,noreferrer")},children:e.jsx(S.default,{size:20})})]})]})},C=({basicLinks:s,extraLinks:l,bottomImages:t,showBasicLinks:r,colors:a,copyrightText:f,developedByText:h})=>e.jsxs("div",{className:"grid w-full grid-cols-12 gap-space-05 py-space-04",children:[e.jsxs("div",{className:"col-span-12 space-y-space-02 md:col-span-8",children:[e.jsx(c.ShouldRender,{shouldRender:r,children:e.jsx("div",{className:"mb-spacing-05 flex items-center gap-space-04 ",children:s==null?void 0:s.map(i=>e.jsx(d,{...i,underline:"always",colors:a==="neutral"?"neutral":"oncolor"},i.label))})}),e.jsx("p",{className:"text-body-01 font-semibold ",children:f??n.strings.formatString(n.strings.Footer.Rights,new Date().getFullYear())}),e.jsx("p",{className:"text-body-01 ",children:h??n.strings.Footer.DevelopedByTetco}),e.jsx("div",{className:"flex items-center gap-space-04 ",children:l==null?void 0:l.map(i=>e.jsx(d,{...i,colors:a==="neutral"?"neutral":"oncolor"},i.label))})]}),e.jsxs("div",{className:"col-span-12 flex flex-wrap items-center gap-space-04 md:col-span-4 md:ms-auto",children:[e.jsxs(c.ShouldRender,{shouldRender:!(t!=null&&t.length),children:[e.jsx("a",{href:"https://moe.gov.sa/ar/Pages/default.aspx",rel:"noopener noreferrer",target:"_blank",children:e.jsx("img",{src:a==="default"?m.default:b.default,alt:"moe"})}),e.jsx("a",{href:"https://tetco.sa/",rel:"noopener noreferrer",target:"_blank",children:e.jsx("img",{src:a==="default"?j.default:v.default,alt:"tetco"})}),e.jsx("a",{href:"https://www.vision2030.gov.sa/",rel:"noopener noreferrer",target:"_blank",children:e.jsx("img",{src:a==="default"?g.default:w.default,alt:"vision 2030"})})]}),e.jsx(c.ShouldRender,{shouldRender:!!(t!=null&&t.length),children:t})]})]});function d({label:s,href:l,render:t,...r}){return t?e.jsx(x.Link,{size:"sm",...r,asChild:!0,children:t}):e.jsx(x.Link,{size:"sm",...r,target:"_blank",href:l,children:s})}exports.Footer=F;
package/index.cjs54.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),j=require("./index.cjs123.js"),w=require("./index.cjs122.js"),b=require("./index.cjs27.js"),k=require("./index.cjs94.js");function y(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(s,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}return s.default=r,Object.freeze(s)}const o=y(g);function z({children:r,scrollAmount:s=200,margin:n=0,className:a="",buttonClassName:d=""}){const[f,h]=o.useState(!1),[m,x]=o.useState(!1),c=o.useRef(null),l=o.useCallback(()=>{const e=c.current,i=document.dir;if(e){const u=(i==="ltr"?1:-1)*e.scrollLeft,p=u>0,S=u<e.scrollWidth-e.clientWidth-n;h(p),x(S)}},[n]),v=e=>{if(c.current){const i=document.dir,u=i==="ltr"&&e==="start"||i==="rtl"&&e==="end"?-1:1;c.current.scrollBy({left:s*u,behavior:"smooth"})}};return o.useEffect(()=>{const e=c.current;if(e)return l(),e.addEventListener("scroll",l),window.addEventListener("resize",l),()=>{e.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l]),o.useEffect(()=>{const e=document.createElement("style");return e.textContent=E,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),t.jsxs("div",{className:"relative flex items-center",children:[f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pointer-events-none absolute start-0 top-0 z-[5] h-full w-[120px] bg-gradient-to-r from-transparent via-background-white via-60% to-background-white"}),t.jsx(b.Button,{variant:"text",size:"icon",colors:"neutral",onClick:()=>v("start"),"aria-label":"Scroll left",className:`absolute start-0 z-10 flex-shrink-0 ${d}`,children:t.jsx(j.default,{className:"size-space-04 rtl:rotate-180"})})]}),t.jsx("div",{ref:c,className:k.cn("no-scrollbar flex-1 ",{"overflow-x-auto ":m||f},a),children:t.jsx("div",{className:"flex",children:r})}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pointer-events-none absolute end-0 top-0 z-[5] h-full w-[120px] bg-gradient-to-l from-transparent via-background-white via-60% to-background-white"}),t.jsx(b.Button,{variant:"text",size:"icon",colors:"neutral",onClick:()=>v("end"),"aria-label":"Scroll right",className:`absolute end-0 z-10 flex-shrink-0 ${d}`,children:t.jsx(w.default,{className:"size-space-04 rtl:rotate-180"})})]})]})}const E=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),j=require("./index.cjs125.js"),w=require("./index.cjs124.js"),b=require("./index.cjs27.js"),k=require("./index.cjs95.js");function y(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(s,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}return s.default=r,Object.freeze(s)}const o=y(g);function z({children:r,scrollAmount:s=200,margin:n=0,className:a="",buttonClassName:d=""}){const[f,h]=o.useState(!1),[m,x]=o.useState(!1),c=o.useRef(null),l=o.useCallback(()=>{const e=c.current,i=document.dir;if(e){const u=(i==="ltr"?1:-1)*e.scrollLeft,p=u>0,S=u<e.scrollWidth-e.clientWidth-n;h(p),x(S)}},[n]),v=e=>{if(c.current){const i=document.dir,u=i==="ltr"&&e==="start"||i==="rtl"&&e==="end"?-1:1;c.current.scrollBy({left:s*u,behavior:"smooth"})}};return o.useEffect(()=>{const e=c.current;if(e)return l(),e.addEventListener("scroll",l),window.addEventListener("resize",l),()=>{e.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l]),o.useEffect(()=>{const e=document.createElement("style");return e.textContent=E,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),t.jsxs("div",{className:"relative flex items-center",children:[f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pointer-events-none absolute start-0 top-0 z-[5] h-full w-[120px] bg-gradient-to-r from-transparent via-background-white via-60% to-background-white"}),t.jsx(b.Button,{variant:"text",size:"icon",colors:"neutral",onClick:()=>v("start"),"aria-label":"Scroll left",className:`absolute start-0 z-10 flex-shrink-0 ${d}`,children:t.jsx(j.default,{className:"size-space-04 rtl:rotate-180"})})]}),t.jsx("div",{ref:c,className:k.cn("no-scrollbar flex-1 ",{"overflow-x-auto ":m||f},a),children:t.jsx("div",{className:"flex",children:r})}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pointer-events-none absolute end-0 top-0 z-[5] h-full w-[120px] bg-gradient-to-l from-transparent via-background-white via-60% to-background-white"}),t.jsx(b.Button,{variant:"text",size:"icon",colors:"neutral",onClick:()=>v("end"),"aria-label":"Scroll right",className:`absolute end-0 z-10 flex-shrink-0 ${d}`,children:t.jsx(w.default,{className:"size-space-04 rtl:rotate-180"})})]})]})}const E=`
2
2
  .no-scrollbar::-webkit-scrollbar {
3
3
  display: none;
4
4
  }
package/index.cjs55.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("./index.cjs113.js"),d=require("react"),T=require("./index.cjs108.js"),l=require("./index.cjs96.js");;/* empty css */const N=require("./index.cjs103.js"),q=require("./index.cjs166.js"),C=require("./index.cjs167.js"),H=require("./index.cjs6.js"),z=require("./index.cjs162.js"),E=require("./index.cjs163.js"),k=require("./index.cjs164.js"),M=require("./index.cjs165.js"),D=require("./index.cjs9.js"),c=require("./index.cjs94.js"),I=require("./index.cjs168.js"),R=require("./index.cjs145.js"),w=require("./index.cjs25.js"),A=require("./index.cjs169.js"),m=require("./index.cjs27.js"),o=require("./index.cjs95.js"),g=require("./index.cjs19.js"),_=j.cva("md:h-space-07 md:px-space-06 px-space-04 md:py-space-01 gap-space-02 py-space-02 [&>svg]:size-[20px] ",{variants:{colors:{primary:"bg-background-primary text-text-oncolor-primary",gray:"bg-background-neutral-100 text-text-paragraph-primary"},hideDivider:{true:"",false:"border-b"}},compoundVariants:[{colors:"primary",hideDivider:!1,className:"border-b-border-white-40"},{colors:"gray",hideDivider:!1,className:"border-b-border-neutral-primary"}],defaultVariants:{colors:"primary",hideDivider:!1}}),p=d.createContext({colors:"primary",hideDivider:!1}),B=({colors:s,hideDivider:a,className:t,children:r,...i})=>{const n=d.useMemo(()=>({colors:s,hideDivider:a}),[s,a]);return e.jsx(p.Provider,{value:n,children:e.jsx("header",{className:c.cn(_({colors:s,hideDivider:a}),t),...i,"aria-label":"a secondary navigation navbar ",children:e.jsx("div",{className:"mx-auto flex max-w-container flex-col md:flex-row md:items-center md:justify-between ",children:r})})})},V=({className:s,...a})=>{const{dir:t}=D.useLanguage(),[r,i]=d.useState(c.formatterTime(t).format());return d.useEffect(()=>{const n=setInterval(()=>i(c.formatterTime(t).format()),1e3);return()=>{clearInterval(n)}},[t]),e.jsxs("div",{className:c.cn("flex items-center gap-space-04 text-body-02",s),...a,children:[e.jsxs("label",{className:"flex items-center gap-space-01","aria-label":`Current date: ${Intl.DateTimeFormat("en-GB").format()}`,children:[e.jsx(I.default,{size:20}),e.jsx("span",{children:Intl.DateTimeFormat("en-GB").format()})]}),e.jsxs("label",{className:"flex items-center gap-space-01","aria-label":`Current time: ${r}`,children:[e.jsx(R.default,{size:20}),e.jsx("span",{children:r})]}),a.children]})},G=({className:s,hideTrail:a,hideSwitchTheme:t,...r})=>{const{toggleColors:i,increaseSize:n,decreaseSize:y}=H.default(S=>S),h=d.useContext(p),u=h.colors==="gray"?"neutral":"oncolor",x=c.cn({"mix-blend-multiply dark:mix-blend-normal":h.colors==="gray"}),v=T.useMediaQuery("max-width:768px");return e.jsxs("div",{className:c.cn("flex items-center gap-space-02 text-body-02",s),...r,children:[e.jsx(g.ShouldRender,{shouldRender:!t,children:e.jsx(b,{colors:u})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.ColorContrast,variant:"text",colors:u,onClick:i,type:"button",className:x,children:e.jsx(z.default,{})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.DecreaseFontSize,variant:"text",colors:u,type:"button",onClick:y,className:x,children:e.jsx(E.default,{})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.IncreaseFontSize,variant:"text",type:"button",colors:u,onClick:n,className:x,children:e.jsx(k.default,{})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.VoiceCommands,variant:"text",colors:u,type:"button",className:x,onClick:()=>{window.open("https://deaf.dga.gov.sa","_blank","noopener,noreferrer")},children:e.jsx(M.default,{size:20})}),r.children,e.jsx(g.ShouldRender,{shouldRender:!a,children:e.jsx(f,{size:v?"sm":"default"})})]})},b=({colors:s,size:a="icon-sm"})=>{const{theme:t,setTheme:r}=N.useThemeStore(),i=()=>{const n=t===String(l.THEME.LIGHT)?String(l.THEME.DARK):String(l.THEME.LIGHT);r(n)};return d.useEffect(()=>{const n=localStorage.getItem("defaultTheme");if(n){r(n);return}localStorage.setItem("defaultTheme",String(l.THEME.LIGHT))},[r]),e.jsx(m.Button,{size:a,tooltip:t===String(l.THEME.DARK)?o.strings.Shared.lightMode:o.strings.Shared.darkMode,variant:"text",colors:s,className:c.cn({"mix-blend-multiply dark:mix-blend-normal":s==="gray"}),onClick:i,children:t===String(l.THEME.DARK)?e.jsx(q.default,{}):e.jsx(C.default,{})})},f=({variant:s="ghost",colors:a="gray",size:t="default",...r})=>e.jsxs(w.Badge,{variant:s,colors:a,size:t,...r,children:[e.jsx(A.default,{}),o.strings.Shared.trialVersion]});exports.NavigationSwitchTheme=b;exports.SecondNavHeader=B;exports.SecondNavHeaderAction=G;exports.SecondNavHeaderContent=V;exports.TrialVersion=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("./index.cjs115.js"),d=require("react"),T=require("./index.cjs110.js"),l=require("./index.cjs97.js");;/* empty css */const N=require("./index.cjs104.js"),q=require("./index.cjs167.js"),C=require("./index.cjs168.js"),H=require("./index.cjs6.js"),z=require("./index.cjs163.js"),E=require("./index.cjs164.js"),k=require("./index.cjs165.js"),M=require("./index.cjs166.js"),D=require("./index.cjs9.js"),c=require("./index.cjs95.js"),I=require("./index.cjs169.js"),R=require("./index.cjs146.js"),w=require("./index.cjs25.js"),A=require("./index.cjs170.js"),m=require("./index.cjs27.js"),o=require("./index.cjs96.js"),g=require("./index.cjs19.js"),_=j.cva("md:h-space-07 md:px-space-06 px-space-04 md:py-space-01 gap-space-02 py-space-02 [&>svg]:size-[20px] ",{variants:{colors:{primary:"bg-background-primary text-text-oncolor-primary",gray:"bg-background-neutral-100 text-text-paragraph-primary"},hideDivider:{true:"",false:"border-b"}},compoundVariants:[{colors:"primary",hideDivider:!1,className:"border-b-border-white-40"},{colors:"gray",hideDivider:!1,className:"border-b-border-neutral-primary"}],defaultVariants:{colors:"primary",hideDivider:!1}}),p=d.createContext({colors:"primary",hideDivider:!1}),B=({colors:s,hideDivider:a,className:t,children:r,...i})=>{const n=d.useMemo(()=>({colors:s,hideDivider:a}),[s,a]);return e.jsx(p.Provider,{value:n,children:e.jsx("header",{className:c.cn(_({colors:s,hideDivider:a}),t),...i,"aria-label":"a secondary navigation navbar ",children:e.jsx("div",{className:"mx-auto flex max-w-container flex-col md:flex-row md:items-center md:justify-between ",children:r})})})},V=({className:s,...a})=>{const{dir:t}=D.useLanguage(),[r,i]=d.useState(c.formatterTime(t).format());return d.useEffect(()=>{const n=setInterval(()=>i(c.formatterTime(t).format()),1e3);return()=>{clearInterval(n)}},[t]),e.jsxs("div",{className:c.cn("flex items-center gap-space-04 text-body-02",s),...a,children:[e.jsxs("label",{className:"flex items-center gap-space-01","aria-label":`Current date: ${Intl.DateTimeFormat("en-GB").format()}`,children:[e.jsx(I.default,{size:20}),e.jsx("span",{children:Intl.DateTimeFormat("en-GB").format()})]}),e.jsxs("label",{className:"flex items-center gap-space-01","aria-label":`Current time: ${r}`,children:[e.jsx(R.default,{size:20}),e.jsx("span",{children:r})]}),a.children]})},G=({className:s,hideTrail:a,hideSwitchTheme:t,...r})=>{const{toggleColors:i,increaseSize:n,decreaseSize:y}=H.default(S=>S),h=d.useContext(p),u=h.colors==="gray"?"neutral":"oncolor",x=c.cn({"mix-blend-multiply dark:mix-blend-normal":h.colors==="gray"}),v=T.useMediaQuery("max-width:768px");return e.jsxs("div",{className:c.cn("flex items-center gap-space-02 text-body-02",s),...r,children:[e.jsx(g.ShouldRender,{shouldRender:!t,children:e.jsx(b,{colors:u})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.ColorContrast,variant:"text",colors:u,onClick:i,type:"button",className:x,children:e.jsx(z.default,{})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.DecreaseFontSize,variant:"text",colors:u,type:"button",onClick:y,className:x,children:e.jsx(E.default,{})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.IncreaseFontSize,variant:"text",type:"button",colors:u,onClick:n,className:x,children:e.jsx(k.default,{})}),e.jsx(m.Button,{size:"icon-sm",tooltip:o.strings.Accessibility.VoiceCommands,variant:"text",colors:u,type:"button",className:x,onClick:()=>{window.open("https://deaf.dga.gov.sa","_blank","noopener,noreferrer")},children:e.jsx(M.default,{size:20})}),r.children,e.jsx(g.ShouldRender,{shouldRender:!a,children:e.jsx(f,{size:v?"sm":"default"})})]})},b=({colors:s,size:a="icon-sm"})=>{const{theme:t,setTheme:r}=N.useThemeStore(),i=()=>{const n=t===String(l.THEME.LIGHT)?String(l.THEME.DARK):String(l.THEME.LIGHT);r(n)};return d.useEffect(()=>{const n=localStorage.getItem("defaultTheme");if(n){r(n);return}localStorage.setItem("defaultTheme",String(l.THEME.LIGHT))},[r]),e.jsx(m.Button,{size:a,tooltip:t===String(l.THEME.DARK)?o.strings.Shared.lightMode:o.strings.Shared.darkMode,variant:"text",colors:s,className:c.cn({"mix-blend-multiply dark:mix-blend-normal":s==="gray"}),onClick:i,children:t===String(l.THEME.DARK)?e.jsx(q.default,{}):e.jsx(C.default,{})})},f=({variant:s="ghost",colors:a="gray",size:t="default",...r})=>e.jsxs(w.Badge,{variant:s,colors:a,size:t,...r,children:[e.jsx(A.default,{}),o.strings.Shared.trialVersion]});exports.NavigationSwitchTheme=b;exports.SecondNavHeader=B;exports.SecondNavHeaderAction=G;exports.SecondNavHeaderContent=V;exports.TrialVersion=f;
package/index.cjs56.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),M=require("react"),q=require("recharts"),h=require("./index.cjs94.js");function k(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return e.default=o,Object.freeze(e)}const f=k(M),_=k(q),I={light:"",dark:".dark"},N=f.createContext(null);function L(){const o=f.useContext(N);if(!o)throw new Error("useChart must be used within a <ChartContainer />");return o}const T=f.forwardRef(({id:o,className:e,children:r,config:t,...a},g)=>{const l=f.useId(),c=`chart-${o||l.replaceAll(/:/g,"")}`,d=f.useMemo(()=>({config:t}),[t]);return s.jsx(N.Provider,{value:d,children:s.jsxs("div",{"data-chart":c,ref:g,className:h.cn("[&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...a,children:[s.jsx(P,{id:c,config:t}),s.jsx(_.ResponsiveContainer,{children:r})]})})});T.displayName="Chart";const P=({id:o,config:e})=>{const r=Object.entries(e).filter(([,t])=>t.theme||t.color);return r.length?s.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(I).map(([t,a])=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),M=require("react"),q=require("recharts"),h=require("./index.cjs95.js");function k(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return e.default=o,Object.freeze(e)}const f=k(M),_=k(q),I={light:"",dark:".dark"},N=f.createContext(null);function L(){const o=f.useContext(N);if(!o)throw new Error("useChart must be used within a <ChartContainer />");return o}const T=f.forwardRef(({id:o,className:e,children:r,config:t,...a},g)=>{const l=f.useId(),c=`chart-${o||l.replaceAll(/:/g,"")}`,d=f.useMemo(()=>({config:t}),[t]);return s.jsx(N.Provider,{value:d,children:s.jsxs("div",{"data-chart":c,ref:g,className:h.cn("[&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...a,children:[s.jsx(P,{id:c,config:t}),s.jsx(_.ResponsiveContainer,{children:r})]})})});T.displayName="Chart";const P=({id:o,config:e})=>{const r=Object.entries(e).filter(([,t])=>t.theme||t.color);return r.length?s.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(I).map(([t,a])=>`
2
2
  ${a} [data-chart=${o}] {
3
3
  ${r.map(([g,l])=>{var d;const c=((d=l.theme)==null?void 0:d[t])||l.color;return c?` --color-${g}: ${c};`:null}).join(`
4
4
  `)}
package/index.cjs57.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),k=require("@radix-ui/react-slot"),v=require("./index.cjs113.js"),x=require("react"),m=require("./index.cjs94.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const y=b(x),o=v.cva("inline-flex items-center gap-space-02 justify-center transition-colors focus:outline focus:outline-2 focus:outline-offset-1",{variants:{size:{default:"text-body-02 [&>svg]:size-[20px]",sm:"text-body-01 [&>svg]:size-space-04"},colors:{primary:"text-link-primary hover:text-link-primary-hovered focus:text-link-primary-focused active:text-link-primary-pressed visited:text-link-primary-visited focus:outline-border-black",neutral:"text-link-neutral hover:text-link-neutral-hovered focus:text-link-neutral-focused active:text-link-neutral-pressed visited:text-link-neutral-visited focus:outline-border-black",oncolor:"text-link-oncolor hover:text-link-oncolor-hovered focus:text-link-oncolor-focused active:text-link-oncolor-pressed visited:text-link-oncolor-visited focus:outline-border-white"},underline:{hover:"underline-offset-2 hover:underline",always:"underline-offset-2 underline"},disabled:{true:"pointer-events-none cursor-not-allowed !text-disabled-text-default-disabled"}},compoundVariants:[],defaultVariants:{size:"default",colors:"primary",underline:"hover"}}),i=y.forwardRef(({className:e,size:r,underline:t,target:n,colors:l,disabled:s=!1,asChild:a=!1,...c},u)=>{const d=a?k.Slot:"a",f=n==="_blank"?"noopener noreferrer":"";return p.jsx(d,{className:m.cn("text-link-primary",o({size:r,underline:t,disabled:s,colors:l,className:e})),ref:u,rel:f,target:n,...c})});i.displayName="Link";exports.Link=i;exports.linkVariants=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),k=require("@radix-ui/react-slot"),v=require("./index.cjs115.js"),x=require("react"),m=require("./index.cjs95.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const y=b(x),o=v.cva("inline-flex items-center gap-space-02 justify-center transition-colors focus:outline focus:outline-2 focus:outline-offset-1",{variants:{size:{default:"text-body-02 [&>svg]:size-[20px]",sm:"text-body-01 [&>svg]:size-space-04"},colors:{primary:"text-link-primary hover:text-link-primary-hovered focus:text-link-primary-focused active:text-link-primary-pressed visited:text-link-primary-visited focus:outline-border-black",neutral:"text-link-neutral hover:text-link-neutral-hovered focus:text-link-neutral-focused active:text-link-neutral-pressed visited:text-link-neutral-visited focus:outline-border-black",oncolor:"text-link-oncolor hover:text-link-oncolor-hovered focus:text-link-oncolor-focused active:text-link-oncolor-pressed visited:text-link-oncolor-visited focus:outline-border-white"},underline:{hover:"underline-offset-2 hover:underline",always:"underline-offset-2 underline"},disabled:{true:"pointer-events-none cursor-not-allowed !text-disabled-text-default-disabled"}},compoundVariants:[],defaultVariants:{size:"default",colors:"primary",underline:"hover"}}),i=y.forwardRef(({className:e,size:r,underline:t,target:n,colors:l,disabled:s=!1,asChild:a=!1,...c},u)=>{const d=a?k.Slot:"a",f=n==="_blank"?"noopener noreferrer":"";return p.jsx(d,{className:m.cn("text-link-primary",o({size:r,underline:t,disabled:s,colors:l,className:e})),ref:u,rel:f,target:n,...c})});i.displayName="Link";exports.Link=i;exports.linkVariants=o;
package/index.cjs58.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),d=require("./index.cjs170.js"),u=require("./index.cjs171.js");;/* empty css */const x=require("./index.cjs143.js"),m=require("./index.cjs172.js"),p=require("./index.cjs173.js"),e=require("./index.cjs95.js"),r=require("./index.cjs32.js"),a=require("./index.cjs47.js"),S=require("./index.cjs57.js"),j=({extension:s=".gov.sa",linkProps:i,children:g,...o})=>{const n={".gov.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.govSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.govSaDesc},".edu.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.eduSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.eduSaDesc},".org.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.orgSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.orgSaDesc},".sch.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.schSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.schSaDesc},".sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.saTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.saDesc}};return t.jsx("div",{...o,className:"bg-background-neutral-100 px-space-04 py-space-02 md:px-space-06",children:t.jsxs(r.Collapsible,{className:"mx-auto max-w-container",children:[t.jsxs(a.Stack,{gap:2,alignItems:"center",className:"flex-col text-body-01 font-medium md:flex-row",children:[t.jsxs(a.Stack,{gap:2,children:[t.jsx("img",{src:u.default,alt:"Saudi flag",width:20,height:14}),t.jsx("span",{children:e.strings.DigitalSignatureContent.officialSite})]}),t.jsxs(r.CollapsibleTrigger,{className:"flex items-center text-link-primary focus:border-none focus:bg-transparent active:bg-transparent",children:[e.strings.DigitalSignatureContent.howCheck," ",t.jsx(x.default,{className:"transition-transform group-data-[state=open]:rotate-180 "})]}),t.jsx("div",{className:"ms-auto",children:g})]}),t.jsx(r.CollapsibleContent,{className:"mb-space-05 mt-space-07",children:t.jsxs(a.Stack,{direction:"col",gap:7,children:[t.jsxs(a.Stack,{gap:4,className:"flex-col md:flex-row",children:[t.jsxs(a.Stack,{gap:4,children:[t.jsx(c,{children:t.jsx(m.default,{className:"text-icon-primary"})}),t.jsx(l,{title:n[s].title,desc:n[s].desc})]}),t.jsxs(a.Stack,{gap:4,children:[t.jsx(c,{children:t.jsx(p.default,{className:"text-icon-primary"})}),t.jsx(l,{title:e.strings.formatString(e.strings.DigitalSignatureContent.secureTitle,t.jsx("span",{className:"text-primary",children:"HTTPS"})),desc:e.strings.DigitalSignatureContent.secureDesc})]})]}),t.jsxs(a.Stack,{gap:3,className:"flex-col bg-white px-space-05 py-space-02 md:flex-row",alignItems:"center",children:[t.jsxs(a.Stack,{gap:3,alignItems:"center",children:[t.jsx("img",{src:d.default,alt:"DGA logo"}),e.strings.DigitalSignatureContent.registered]}),t.jsx(S.Link,{...i})]})]})})]})})},c=({children:s})=>t.jsx("div",{className:"flex size-space-08 items-center justify-center rounded-full border border-border-success p-space-03 shadow-xs",children:s}),l=({title:s,desc:i})=>t.jsxs("div",{children:[t.jsx("h2",{className:"text-subtitle-01 font-semibold text-text-default",children:s}),t.jsx("p",{className:"text-text-paragraph-primary",children:i})]});exports.DigitalSignature=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),d=require("./index.cjs171.js"),u=require("./index.cjs172.js");;/* empty css */const x=require("./index.cjs144.js"),m=require("./index.cjs173.js"),p=require("./index.cjs174.js"),e=require("./index.cjs96.js"),r=require("./index.cjs32.js"),a=require("./index.cjs47.js"),S=require("./index.cjs57.js"),j=({extension:s=".gov.sa",linkProps:i,children:g,...o})=>{const n={".gov.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.govSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.govSaDesc},".edu.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.eduSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.eduSaDesc},".org.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.orgSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.orgSaDesc},".sch.sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.schSaTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.schSaDesc},".sa":{title:e.strings.formatString(e.strings.DigitalSignatureContent.saTitle,t.jsx("span",{className:"text-primary",children:s})),desc:e.strings.DigitalSignatureContent.saDesc}};return t.jsx("div",{...o,className:"bg-background-neutral-100 px-space-04 py-space-02 md:px-space-06",children:t.jsxs(r.Collapsible,{className:"mx-auto max-w-container",children:[t.jsxs(a.Stack,{gap:2,alignItems:"center",className:"flex-col text-body-01 font-medium md:flex-row",children:[t.jsxs(a.Stack,{gap:2,children:[t.jsx("img",{src:u.default,alt:"Saudi flag",width:20,height:14}),t.jsx("span",{children:e.strings.DigitalSignatureContent.officialSite})]}),t.jsxs(r.CollapsibleTrigger,{className:"flex items-center text-link-primary focus:border-none focus:bg-transparent active:bg-transparent",children:[e.strings.DigitalSignatureContent.howCheck," ",t.jsx(x.default,{className:"transition-transform group-data-[state=open]:rotate-180 "})]}),t.jsx("div",{className:"ms-auto",children:g})]}),t.jsx(r.CollapsibleContent,{className:"mb-space-05 mt-space-07",children:t.jsxs(a.Stack,{direction:"col",gap:7,children:[t.jsxs(a.Stack,{gap:4,className:"flex-col md:flex-row",children:[t.jsxs(a.Stack,{gap:4,children:[t.jsx(c,{children:t.jsx(m.default,{className:"text-icon-primary"})}),t.jsx(l,{title:n[s].title,desc:n[s].desc})]}),t.jsxs(a.Stack,{gap:4,children:[t.jsx(c,{children:t.jsx(p.default,{className:"text-icon-primary"})}),t.jsx(l,{title:e.strings.formatString(e.strings.DigitalSignatureContent.secureTitle,t.jsx("span",{className:"text-primary",children:"HTTPS"})),desc:e.strings.DigitalSignatureContent.secureDesc})]})]}),t.jsxs(a.Stack,{gap:3,className:"flex-col bg-white px-space-05 py-space-02 md:flex-row",alignItems:"center",children:[t.jsxs(a.Stack,{gap:3,alignItems:"center",children:[t.jsx("img",{src:d.default,alt:"DGA logo"}),e.strings.DigitalSignatureContent.registered]}),t.jsx(S.Link,{...i})]})]})})]})})},c=({children:s})=>t.jsx("div",{className:"flex size-space-08 items-center justify-center rounded-full border border-border-success p-space-03 shadow-xs",children:s}),l=({title:s,desc:i})=>t.jsxs("div",{children:[t.jsx("h2",{className:"text-subtitle-01 font-semibold text-text-default",children:s}),t.jsx("p",{className:"text-text-paragraph-primary",children:i})]});exports.DigitalSignature=j;
package/index.cjs59.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),g=require("@radix-ui/react-slot"),f=require("./index.cjs113.js"),p=require("react"),r=require("./index.cjs94.js");function m(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const k=m(p),c=f.cva("inline-flex items-center rounded-full gap-space-02 [&>svg]:size-space-05 font-medium text-body-02 justify-center focus:outline-border-black focus:outline focus:outline-2 focus:outline-offset-1 transition-colors disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-disabled-text-default-disabled disabled:bg-disabled-background-disabled",{variants:{size:{default:"p-[20px] ",sm:"p-space-04"},colors:{primary:"bg-button-background-primary text-icon-oncolor hover:bg-button-background-primary-hovered active:bg-button-background-primary-pressed focus:bg-button-background-primary-focused ",neutral:"bg-button-background-black text-icon-oncolor hover:bg-button-background-black-hovered active:bg-button-background-black-pressed focus:bg-button-background-black-focused",oncolor:"bg-button-background-oncolor text-icon-default hover:bg-button-background-oncolor-hovered active:bg-button-background-oncolor-pressed focus:bg-button-background-oncolor-focused disabled:text-disabled-icon-default-oncolor-disabled disabled:bg-button-background-disabled-oncolor","Secondary-Solid":"bg-button-background-neutral text-icon-default hover:bg-button-background-neutral-pressed active:bg-button-background-neutral-selected focus:bg-button-background-neutral-focused"}},defaultVariants:{size:"default",colors:"primary"}}),u=k.forwardRef(({className:t,size:e,colors:o,children:n,asChild:b=!1,position:d,...s},i)=>{const l=b?g.Slot:"button";return a.jsx("div",{className:r.cn("fixed m-space-03 duration-300 animate-in slide-in-from-bottom-10",d==="bottomRight"?"bottom-0 end-0":"bottom-0 start-0"),children:a.jsx(l,{className:r.cn(c({size:e,colors:o,className:t})),ref:i,"aria-label":"floating-button",...s,children:n})})});u.displayName="FloatingButton";exports.FloatingButton=u;exports.floatingButtonVariants=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),g=require("@radix-ui/react-slot"),f=require("./index.cjs115.js"),p=require("react"),r=require("./index.cjs95.js");function m(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const k=m(p),c=f.cva("inline-flex items-center rounded-full gap-space-02 [&>svg]:size-space-05 font-medium text-body-02 justify-center focus:outline-border-black focus:outline focus:outline-2 focus:outline-offset-1 transition-colors disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-disabled-text-default-disabled disabled:bg-disabled-background-disabled",{variants:{size:{default:"p-[20px] ",sm:"p-space-04"},colors:{primary:"bg-button-background-primary text-icon-oncolor hover:bg-button-background-primary-hovered active:bg-button-background-primary-pressed focus:bg-button-background-primary-focused ",neutral:"bg-button-background-black text-icon-oncolor hover:bg-button-background-black-hovered active:bg-button-background-black-pressed focus:bg-button-background-black-focused",oncolor:"bg-button-background-oncolor text-icon-default hover:bg-button-background-oncolor-hovered active:bg-button-background-oncolor-pressed focus:bg-button-background-oncolor-focused disabled:text-disabled-icon-default-oncolor-disabled disabled:bg-button-background-disabled-oncolor","Secondary-Solid":"bg-button-background-neutral text-icon-default hover:bg-button-background-neutral-pressed active:bg-button-background-neutral-selected focus:bg-button-background-neutral-focused"}},defaultVariants:{size:"default",colors:"primary"}}),u=k.forwardRef(({className:t,size:e,colors:o,children:n,asChild:b=!1,position:d,...s},i)=>{const l=b?g.Slot:"button";return a.jsx("div",{className:r.cn("fixed m-space-03 duration-300 animate-in slide-in-from-bottom-10",d==="bottomRight"?"bottom-0 end-0":"bottom-0 start-0"),children:a.jsx(l,{className:r.cn(c({size:e,colors:o,className:t})),ref:i,"aria-label":"floating-button",...s,children:n})})});u.displayName="FloatingButton";exports.FloatingButton=u;exports.floatingButtonVariants=c;
package/index.cjs6.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs8.js"),u=require("./index.cjs180.js"),f=({state:e})=>{var o,n,i,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))<12&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 1px)`),e.fontSize=(n=getComputedStyle(document.documentElement))==null?void 0:n.getPropertyValue("font-size"),e.isMax=Number((i=e.fontSize)==null?void 0:i.substring(0,e.fontSize.length-2))>=12,e.isMin=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))<10.2&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMax=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))>=10.2,e.isMin=!1)},c=({state:e})=>{var o,n,i,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))>8&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 1px)`),e.fontSize=(n=getComputedStyle(document.documentElement))==null?void 0:n.getPropertyValue("font-size"),e.isMin=Number((i=e.fontSize)==null?void 0:i.substring(0,e.fontSize.length-2))<=8,e.isMax=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))>7.4&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMin=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))<=7.4,e.isMax=!1)},m=u.create()(s.default(e=>({isActive:!!localStorage.getItem("Colors"),toggleColors:()=>e(o=>(o.isActive?localStorage.removeItem("Colors"):localStorage.setItem("Colors","true"),{isActive:!o.isActive})),isDesktop:window.innerWidth>=640||!1,fontSize:window.innerWidth>=640?"10px":"8.8px",isMax:!1,isMin:!1,increaseSize:()=>e(o=>{f({state:o})}),decreaseSize:()=>e(o=>{c({state:o})}),defaultSize:()=>e(o=>{var n;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(n=getComputedStyle(document.documentElement))==null?void 0:n.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"}));exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs8.js"),u=require("./index.cjs181.js"),f=({state:e})=>{var o,n,i,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))<12&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 1px)`),e.fontSize=(n=getComputedStyle(document.documentElement))==null?void 0:n.getPropertyValue("font-size"),e.isMax=Number((i=e.fontSize)==null?void 0:i.substring(0,e.fontSize.length-2))>=12,e.isMin=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))<10.2&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMax=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))>=10.2,e.isMin=!1)},c=({state:e})=>{var o,n,i,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))>8&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 1px)`),e.fontSize=(n=getComputedStyle(document.documentElement))==null?void 0:n.getPropertyValue("font-size"),e.isMin=Number((i=e.fontSize)==null?void 0:i.substring(0,e.fontSize.length-2))<=8,e.isMax=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))>7.4&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMin=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))<=7.4,e.isMax=!1)},m=u.create()(s.default(e=>({isActive:!!localStorage.getItem("Colors"),toggleColors:()=>e(o=>(o.isActive?localStorage.removeItem("Colors"):localStorage.setItem("Colors","true"),{isActive:!o.isActive})),isDesktop:window.innerWidth>=640||!1,fontSize:window.innerWidth>=640?"10px":"8.8px",isMax:!1,isMin:!1,increaseSize:()=>e(o=>{f({state:o})}),decreaseSize:()=>e(o=>{c({state:o})}),defaultSize:()=>e(o=>{var n;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(n=getComputedStyle(document.documentElement))==null?void 0:n.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"}));exports.default=m;
package/index.cjs60.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),y=require("./index.cjs113.js"),R=require("react"),c=require("./index.cjs94.js");;/* empty css */const u=require("./index.cjs19.js"),x=y.cva("text-body-02",{variants:{variant:{ordered:"list-decimal rtl:[&>ol]:list-[arabic-letters] [&>ol]:list-[lower-alpha] [&>ol]:list-inside ",unordered:"list-disc [&>ul]:list-[circle] [&>ul]:list-inside ","with-icon":"list-none [&>li>svg]:size-space-04 [&>li]:gap-space-02 [&>ul]:list-inside [&>li]:flex [&>li]:items-center"},colors:{primary:"text-text-primary",neutral:"text-text-default",onColor:"text-text-oncolor-primary"}},compoundVariants:[],defaultVariants:{variant:"ordered",colors:"primary"}}),h=({children:i,variant:t,colors:l,items:e,icon:s,className:o,...d})=>{const a=t==="ordered"?"ol":"ul";return r.jsxs(r.Fragment,{children:[r.jsx(u.ShouldRender,{shouldRender:!!(e!=null&&e.length),children:r.jsx(a,{className:c.cn(x({variant:t,colors:l,className:o})),...d,children:e==null?void 0:e.map((p,j)=>r.jsxs(n,{children:[!!s&&t==="with-icon"&&s,p]},j))})}),r.jsx(u.ShouldRender,{shouldRender:!(e!=null&&e.length),children:r.jsx(a,{className:c.cn(x({variant:t,colors:l,className:o})),...d,children:i})})]})};h.displayName="List";const n=R.forwardRef(({children:i,...t},l)=>r.jsx("li",{ref:l,...t,className:"",children:i}));n.displayName="ListItem";exports.List=h;exports.ListItem=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),y=require("./index.cjs115.js"),R=require("react"),c=require("./index.cjs95.js");;/* empty css */const u=require("./index.cjs19.js"),x=y.cva("text-body-02",{variants:{variant:{ordered:"list-decimal rtl:[&>ol]:list-[arabic-letters] [&>ol]:list-[lower-alpha] [&>ol]:list-inside ",unordered:"list-disc [&>ul]:list-[circle] [&>ul]:list-inside ","with-icon":"list-none [&>li>svg]:size-space-04 [&>li]:gap-space-02 [&>ul]:list-inside [&>li]:flex [&>li]:items-center"},colors:{primary:"text-text-primary",neutral:"text-text-default",onColor:"text-text-oncolor-primary"}},compoundVariants:[],defaultVariants:{variant:"ordered",colors:"primary"}}),h=({children:i,variant:t,colors:l,items:e,icon:s,className:o,...d})=>{const a=t==="ordered"?"ol":"ul";return r.jsxs(r.Fragment,{children:[r.jsx(u.ShouldRender,{shouldRender:!!(e!=null&&e.length),children:r.jsx(a,{className:c.cn(x({variant:t,colors:l,className:o})),...d,children:e==null?void 0:e.map((p,j)=>r.jsxs(n,{children:[!!s&&t==="with-icon"&&s,p]},j))})}),r.jsx(u.ShouldRender,{shouldRender:!(e!=null&&e.length),children:r.jsx(a,{className:c.cn(x({variant:t,colors:l,className:o})),...d,children:i})})]})};h.displayName="List";const n=R.forwardRef(({children:i,...t},l)=>r.jsx("li",{ref:l,...t,className:"",children:i}));n.displayName="ListItem";exports.List=h;exports.ListItem=n;
package/index.cjs61.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),o=require("react");;/* empty css */const m=require("./index.cjs174.js"),x=require("./index.cjs175.js"),y=require("./index.cjs47.js"),l=require("./index.cjs94.js");function p({max:s=5,onChange:r,value:n=0,className:t,...e}){const[a,c]=o.useState(0);return u.jsx(y.Stack,{gap:"none",className:l.cn(t),children:Array.from({length:s},(i,d)=>u.jsx(g,{star:d+1,rating:n,hoverRating:a,onHover:f=>!e.readOnly&&c(f),onClick:f=>!e.readOnly&&(r==null?void 0:r(f)),...e},d))})}function g({star:s,rating:r,hoverRating:n,onHover:t,onClick:e,readOnly:a,variant:c="default",size:i="default"}){return u.jsxs("button",{onMouseEnter:()=>t==null?void 0:t(s),onMouseLeave:()=>t==null?void 0:t(0),onClick:()=>e==null?void 0:e(s),className:l.cn("group relative flex items-center justify-center",{"size-space-08":i==="default","size-space-06":i==="sm","size-space-05":i==="xs","cursor-default":a}),children:[u.jsx(m.default,{className:l.cn("absolute size-full shrink-0 ",{"group-hover:opacity-0":!a})}),u.jsx(x.default,{className:l.cn("absolute size-full shrink-0 opacity-0 transition-all",{"opacity-100":s<=(n||r),"group-hover:opacity-100":!a,"text-secondary":c==="default","text-primary":c==="brand"})})]})}exports.Rating=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),o=require("react");;/* empty css */const m=require("./index.cjs175.js"),x=require("./index.cjs176.js"),y=require("./index.cjs47.js"),l=require("./index.cjs95.js");function p({max:s=5,onChange:r,value:n=0,className:t,...e}){const[a,c]=o.useState(0);return u.jsx(y.Stack,{gap:"none",className:l.cn(t),children:Array.from({length:s},(i,d)=>u.jsx(g,{star:d+1,rating:n,hoverRating:a,onHover:f=>!e.readOnly&&c(f),onClick:f=>!e.readOnly&&(r==null?void 0:r(f)),...e},d))})}function g({star:s,rating:r,hoverRating:n,onHover:t,onClick:e,readOnly:a,variant:c="default",size:i="default"}){return u.jsxs("button",{onMouseEnter:()=>t==null?void 0:t(s),onMouseLeave:()=>t==null?void 0:t(0),onClick:()=>e==null?void 0:e(s),className:l.cn("group relative flex items-center justify-center",{"size-space-08":i==="default","size-space-06":i==="sm","size-space-05":i==="xs","cursor-default":a}),children:[u.jsx(m.default,{className:l.cn("absolute size-full shrink-0 ",{"group-hover:opacity-0":!a})}),u.jsx(x.default,{className:l.cn("absolute size-full shrink-0 opacity-0 transition-all",{"opacity-100":s<=(n||r),"group-hover:opacity-100":!a,"text-secondary":c==="default","text-primary":c==="brand"})})]})}exports.Rating=p;
package/index.cjs62.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("react"),s=require("./index.cjs94.js"),w=require("./index.cjs113.js"),m=require("./index.cjs19.js"),N=require("./index.cjs146.js");function R(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=R(h),x=w.cva("group relative flex shrink-0 items-start justify-start ",{variants:{variant:{circle:"peer border border-border-primary-default text-text-primary items-center justify-center rounded-full w-space-06 h-space-06 text-body-02 font-medium data-[state=upcoming]:border-border-neutral-primary data-[state=upcoming]:text-border-neutral-primary data-[state=complete]:bg-background-primary data-[state=complete]:text-icon-oncolor",dot:"peer items-center justify-center rounded-full w-space-06 h-space-06 "},orientation:{vertical:"flex-col ",horizontal:"flex-row "}}}),f=o.createContext({variant:"circle",orientation:"horizontal",activeStep:0}),C=({activeStep:e,variant:t,orientation:a,children:r})=>{const c=o.useMemo(()=>({activeStep:e,variant:t,orientation:a}),[e,t,a]);return n.jsx(f.Provider,{value:c,children:r})},g=o.forwardRef(({activeStep:e=0,orientation:t="horizontal",variant:a="circle",className:r,children:c,...l},p)=>{const i=o.useMemo(()=>{let d=0;const j=o.Children.count(c);return o.Children.map(c,u=>o.isValidElement(u)&&u.type.displayName==="Step"?o.cloneElement(u,{"data-index":++d,lastStep:j===d}):u)},[c]);return n.jsx("div",{ref:p,className:s.cn(x({orientation:t}),r),...l,"data-orientation":t,children:n.jsx(C,{activeStep:e,variant:a,orientation:t,children:i})})});g.displayName="Stepper";const b=o.forwardRef(({className:e,children:t,progressClassName:a,...r},c)=>{const{activeStep:l,variant:p}=o.useContext(f),i=(r==null?void 0:r["data-index"])??0,d=s.cn({upcoming:l<i,current:l===i,complete:l>i});return n.jsxs("div",{className:s.cn("relative flex min-w-space-08 max-w-space-12 flex-col gap-space-02 group-data-[orientation=vertical]:min-h-space-08 group-data-[orientation=vertical]:flex-row",e),children:[n.jsxs("div",{ref:c,"data-state":d,className:s.cn(x({variant:p}),a),...r,children:[n.jsxs(m.ShouldRender,{shouldRender:p==="circle",children:[d!=="complete"&&n.jsx("span",{children:i}),d==="complete"&&n.jsx(N.default,{size:20})]}),n.jsx(m.ShouldRender,{shouldRender:p==="dot",children:n.jsx("div",{className:"size-space-02 rounded-full bg-border-neutral-primary group-data-[state=current]:border-2 group-data-[state=current]:border-primary group-data-[state=complete]:bg-background-primary"})})]}),n.jsx("div",{className:"me-space-04 hidden flex-col gap-space-01 md:flex ",children:t}),!r.lastStep&&n.jsx(v,{})]})});b.displayName="Step";const y=o.forwardRef(({className:e,children:t,...a},r)=>n.jsx("span",{ref:r,className:s.cn("text-body-02 font-medium text-text-display",e),...a,children:t}));y.displayName="StepTitle";const S=o.forwardRef(({className:e,children:t,...a},r)=>n.jsx("p",{ref:r,className:s.cn("text-wrap text-body-01 text-text-paragraph-primary",e),...a,children:t}));S.displayName="StepDescription";const v=o.forwardRef(({className:e,children:t,...a},r)=>n.jsx("div",{ref:r,className:s.cn("absolute start-space-06 top-space-04 h-[2px] w-[calc(100%_-_32px)] bg-border-background-neutral group-data-[orientation=vertical]:start-space-04 group-data-[orientation=vertical]:top-space-06 group-data-[orientation=vertical]:h-[calc(100%_-_32px)] group-data-[orientation=vertical]:w-[2px] peer-data-[state=complete]:bg-background-primary",e),...a,children:t}));v.displayName="StepConnector";exports.Step=b;exports.StepDescription=S;exports.StepTitle=y;exports.Stepper=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("react"),s=require("./index.cjs95.js"),w=require("./index.cjs115.js"),m=require("./index.cjs19.js"),N=require("./index.cjs147.js");function R(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=R(h),x=w.cva("group relative flex shrink-0 items-start justify-start ",{variants:{variant:{circle:"peer border border-border-primary-default text-text-primary items-center justify-center rounded-full w-space-06 h-space-06 text-body-02 font-medium data-[state=upcoming]:border-border-neutral-primary data-[state=upcoming]:text-border-neutral-primary data-[state=complete]:bg-background-primary data-[state=complete]:text-icon-oncolor",dot:"peer items-center justify-center rounded-full w-space-06 h-space-06 "},orientation:{vertical:"flex-col ",horizontal:"flex-row "}}}),f=o.createContext({variant:"circle",orientation:"horizontal",activeStep:0}),C=({activeStep:e,variant:t,orientation:a,children:r})=>{const c=o.useMemo(()=>({activeStep:e,variant:t,orientation:a}),[e,t,a]);return n.jsx(f.Provider,{value:c,children:r})},g=o.forwardRef(({activeStep:e=0,orientation:t="horizontal",variant:a="circle",className:r,children:c,...l},p)=>{const i=o.useMemo(()=>{let d=0;const j=o.Children.count(c);return o.Children.map(c,u=>o.isValidElement(u)&&u.type.displayName==="Step"?o.cloneElement(u,{"data-index":++d,lastStep:j===d}):u)},[c]);return n.jsx("div",{ref:p,className:s.cn(x({orientation:t}),r),...l,"data-orientation":t,children:n.jsx(C,{activeStep:e,variant:a,orientation:t,children:i})})});g.displayName="Stepper";const b=o.forwardRef(({className:e,children:t,progressClassName:a,...r},c)=>{const{activeStep:l,variant:p}=o.useContext(f),i=(r==null?void 0:r["data-index"])??0,d=s.cn({upcoming:l<i,current:l===i,complete:l>i});return n.jsxs("div",{className:s.cn("relative flex min-w-space-08 max-w-space-12 flex-col gap-space-02 group-data-[orientation=vertical]:min-h-space-08 group-data-[orientation=vertical]:flex-row",e),children:[n.jsxs("div",{ref:c,"data-state":d,className:s.cn(x({variant:p}),a),...r,children:[n.jsxs(m.ShouldRender,{shouldRender:p==="circle",children:[d!=="complete"&&n.jsx("span",{children:i}),d==="complete"&&n.jsx(N.default,{size:20})]}),n.jsx(m.ShouldRender,{shouldRender:p==="dot",children:n.jsx("div",{className:"size-space-02 rounded-full bg-border-neutral-primary group-data-[state=current]:border-2 group-data-[state=current]:border-primary group-data-[state=complete]:bg-background-primary"})})]}),n.jsx("div",{className:"me-space-04 hidden flex-col gap-space-01 md:flex ",children:t}),!r.lastStep&&n.jsx(v,{})]})});b.displayName="Step";const y=o.forwardRef(({className:e,children:t,...a},r)=>n.jsx("span",{ref:r,className:s.cn("text-body-02 font-medium text-text-display",e),...a,children:t}));y.displayName="StepTitle";const S=o.forwardRef(({className:e,children:t,...a},r)=>n.jsx("p",{ref:r,className:s.cn("text-wrap text-body-01 text-text-paragraph-primary",e),...a,children:t}));S.displayName="StepDescription";const v=o.forwardRef(({className:e,children:t,...a},r)=>n.jsx("div",{ref:r,className:s.cn("absolute start-space-06 top-space-04 h-[2px] w-[calc(100%_-_32px)] bg-border-background-neutral group-data-[orientation=vertical]:start-space-04 group-data-[orientation=vertical]:top-space-06 group-data-[orientation=vertical]:h-[calc(100%_-_32px)] group-data-[orientation=vertical]:w-[2px] peer-data-[state=complete]:bg-background-primary",e),...a,children:t}));v.displayName="StepConnector";exports.Step=b;exports.StepDescription=S;exports.StepTitle=y;exports.Stepper=g;
package/index.cjs63.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),H=require("./index.cjs176.js"),J=require("react"),D=require("./index.cjs27.js"),Q=require("./index.cjs122.js"),U=require("./index.cjs123.js"),m=require("./index.cjs94.js");function X(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const c in s)if(c!=="default"){const S=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(a,c,S.get?S:{enumerable:!0,get:()=>s[c]})}}return a.default=s,Object.freeze(a)}const t=X(J),L=t.createContext(null);function Y(){const s=t.useContext(L);if(!s)throw new Error("useCarousel must be used within a <Carousel />");return s}const A=t.forwardRef(({orientation:s="horizontal",opts:a,setApi:c,plugins:S,className:k,children:x,...$},z)=>{const[I,r]=H.default({...a,axis:s==="horizontal"?"x":"y"},S),[h,y]=t.useState(!1),[w,R]=t.useState(!1),i=t.useCallback(f=>{f&&(y(f.canScrollPrev()),R(f.canScrollNext()))},[]),g=t.useCallback(()=>{r==null||r.scrollPrev()},[r]),e=t.useCallback(()=>{r==null||r.scrollNext()},[r]),q=t.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),g()):f.key==="ArrowRight"&&(f.preventDefault(),e())},[g,e]);t.useEffect(()=>{!r||!c||c(r)},[r,c]),t.useEffect(()=>{if(r)return i(r),r.on("reInit",i),r.on("select",i),()=>{r==null||r.off("select",i)}},[r,i]);const o=t.useMemo(()=>({carouselRef:I,api:r,opts:a,orientation:s||((a==null?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:e,canScrollPrev:h,canScrollNext:w}),[I,r,a,s,g,e,h,w]);return n.jsx(L.Provider,{value:o,children:n.jsx("section",{ref:z,onKeyDownCapture:q,className:m.cn("relative",k),"aria-label":"carousel","aria-roledescription":"carousel",...$,children:x})})});A.displayName="CarouselPrimitive";const E=t.forwardRef(({className:s,...a},c)=>{const{carouselRef:S,orientation:k}=Y();return n.jsx("div",{ref:S,className:"overflow-hidden",children:n.jsx("div",{ref:c,className:m.cn("flex",k==="horizontal"?"mx-4":"-mt-4 flex-col",s),...a})})});E.displayName="CarouselContent";const O=t.forwardRef(({className:s,...a},c)=>n.jsx("section",{ref:c,"aria-roledescription":"slide",className:m.cn("min-w-0 shrink-0 grow-0 basis-full",s),...a}));O.displayName="CarouselItem";function Z({children:s,className:a,itemClassName:c,showDots:S=!0,showArrows:k=!0,loop:x=!0,autoplay:$=!1,autoplayInterval:z=5e3,containerClassName:I,maxDots:r=null,itemWidth:h=230,slidesToShow:y,showPartial:w=!0,dir:R="rtl",type:i="multiple",slidesToScroll:g=1}){const[e,q]=t.useState(),[o,f]=t.useState(0),[u,B]=t.useState(0),[b,N]=t.useState(!1),[G,K]=t.useState(!0),M=t.useId(),T=t.useMemo(()=>i==="single"?"100%":y?`calc(${100/y}% - ${w?"1rem":"0px"})`:typeof h=="number"?`${h}px`:h,[i,y,h,w]),j=t.useCallback(l=>{if(!e||b)return;N(!0);const v=e.selectedScrollSnap();if(v===l){N(!1);return}const p=v<l?1:-1;if(Math.abs(v-l)===1){p>0?e.scrollNext():e.scrollPrev(),setTimeout(()=>N(!1),300);return}let C=0;const d=Math.abs(v-l),P=()=>{C<d?(p>0?e.scrollNext():e.scrollPrev(),C++,setTimeout(P,150)):N(!1)};P()},[e,b]),_=t.useCallback(()=>{!e||b||(x&&o===u-1?j(0):(N(!0),e.scrollNext(),setTimeout(()=>N(!1),300)))},[e,b,x,o,u,j]),F=t.useCallback(()=>{!e||b||(N(!0),x&&o===0?j(u-1):(e.scrollPrev(),setTimeout(()=>N(!1),300)))},[e,b,x,o,u,j]);t.useEffect(()=>{if(!e)return;B(e.scrollSnapList().length);const l=()=>{f(e.selectedScrollSnap())};return f(e.selectedScrollSnap()),e.on("select",l),e.on("reInit",l),()=>{e.off("select",l),e.off("reInit",l)}},[e]),t.useEffect(()=>{if(!e)return;const l=e.scrollSnapList().length,v=e.canScrollNext(),p=e.canScrollPrev();K(v||p||l>1)},[e,u,o]),t.useEffect(()=>{if(!e||!$)return;const l=setInterval(()=>{b||_()},z);return()=>clearInterval(l)},[e,$,z,b,_]);const V=()=>{if(!r||u<=r)return Array.from({length:u}).map((C,d)=>n.jsx("button",{className:`size-space-04 rounded-full transition-colors focus:outline-none ${o===d?"bg-primary":"bg-background-neutral-200"}`,onClick:()=>j(d),disabled:b,"aria-label":`Go to slide ${d+1}`},`${M}-dot-${d}`));const l=[],v=u-(r-1),p=Math.max(1,v);for(let C=0;C<r;C++){let d,P;C===r-1?(d=u-1,P=o>=u-p):(d=C,P=o===C),l.push(n.jsx("button",{className:`size-space-04 rounded-full transition-colors focus:outline-none ${P?"bg-primary":"bg-background-neutral-200"}`,onClick:()=>j(d),disabled:b,"aria-label":`Go to slide ${d+1}`},`${M}-dot-${C}`))}return l};return n.jsx("div",{className:m.cn("w-full ",I),children:n.jsxs(A,{dir:R,setApi:q,opts:{align:"start",loop:!1,skipSnaps:!1,containScroll:"trimSnaps",dragFree:!1,direction:R,slidesToScroll:g},className:m.cn("relative w-full",a),children:[n.jsx(E,{className:" gap-space-04",children:t.Children.map(s,(l,v)=>n.jsx(O,{className:m.cn("transition-transform duration-300 ",c),style:{flex:`0 0 ${T}`,maxWidth:T},children:l},`${M}-item-${v}`))}),G&&n.jsxs("div",{className:m.cn({"container mt-space-05 flex items-center justify-between":i==="multiple"}),children:[k&&n.jsxs("div",{className:m.cn({"flex items-center gap-2":i==="multiple","absolute inset-x-space-04 top-1/2 z-0 mx-auto flex max-w-container -translate-y-1/2 items-center justify-between":i==="single"}),children:[n.jsx(D.Button,{onClick:F,colors:"primary",variant:!x&&o===0?"outline":"default",size:"icon","aria-label":"Previous slide",className:m.cn(!x&&o===0&&"!pointer-events-none"),children:n.jsx(Q.default,{className:"ltr:rotate-180"})}),n.jsx(D.Button,{onClick:_,colors:"primary",variant:!x&&o===u-1?"outline":"default",size:"icon","aria-label":"Next slide",className:m.cn(!x&&o===u-1&&"!pointer-events-none"),children:n.jsx(U.default,{className:"ltr:rotate-180"})})]}),S&&u>0&&n.jsx("div",{className:m.cn("flex gap-space-02",{" items-center":i==="multiple","absolute inset-x-0 bottom-space-08 justify-center":i==="single"}),children:V()})]})]})})}exports.Carousel=Z;exports.CarouselContent=E;exports.CarouselItem=O;exports.CarouselPrimitive=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),H=require("./index.cjs177.js"),J=require("react"),D=require("./index.cjs27.js"),Q=require("./index.cjs124.js"),U=require("./index.cjs125.js"),m=require("./index.cjs95.js");function X(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const c in s)if(c!=="default"){const S=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(a,c,S.get?S:{enumerable:!0,get:()=>s[c]})}}return a.default=s,Object.freeze(a)}const t=X(J),L=t.createContext(null);function Y(){const s=t.useContext(L);if(!s)throw new Error("useCarousel must be used within a <Carousel />");return s}const A=t.forwardRef(({orientation:s="horizontal",opts:a,setApi:c,plugins:S,className:k,children:x,...$},z)=>{const[I,r]=H.default({...a,axis:s==="horizontal"?"x":"y"},S),[h,y]=t.useState(!1),[w,R]=t.useState(!1),i=t.useCallback(f=>{f&&(y(f.canScrollPrev()),R(f.canScrollNext()))},[]),g=t.useCallback(()=>{r==null||r.scrollPrev()},[r]),e=t.useCallback(()=>{r==null||r.scrollNext()},[r]),q=t.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),g()):f.key==="ArrowRight"&&(f.preventDefault(),e())},[g,e]);t.useEffect(()=>{!r||!c||c(r)},[r,c]),t.useEffect(()=>{if(r)return i(r),r.on("reInit",i),r.on("select",i),()=>{r==null||r.off("select",i)}},[r,i]);const o=t.useMemo(()=>({carouselRef:I,api:r,opts:a,orientation:s||((a==null?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:e,canScrollPrev:h,canScrollNext:w}),[I,r,a,s,g,e,h,w]);return n.jsx(L.Provider,{value:o,children:n.jsx("section",{ref:z,onKeyDownCapture:q,className:m.cn("relative",k),"aria-label":"carousel","aria-roledescription":"carousel",...$,children:x})})});A.displayName="CarouselPrimitive";const E=t.forwardRef(({className:s,...a},c)=>{const{carouselRef:S,orientation:k}=Y();return n.jsx("div",{ref:S,className:"overflow-hidden",children:n.jsx("div",{ref:c,className:m.cn("flex",k==="horizontal"?"mx-4":"-mt-4 flex-col",s),...a})})});E.displayName="CarouselContent";const O=t.forwardRef(({className:s,...a},c)=>n.jsx("section",{ref:c,"aria-roledescription":"slide",className:m.cn("min-w-0 shrink-0 grow-0 basis-full",s),...a}));O.displayName="CarouselItem";function Z({children:s,className:a,itemClassName:c,showDots:S=!0,showArrows:k=!0,loop:x=!0,autoplay:$=!1,autoplayInterval:z=5e3,containerClassName:I,maxDots:r=null,itemWidth:h=230,slidesToShow:y,showPartial:w=!0,dir:R="rtl",type:i="multiple",slidesToScroll:g=1}){const[e,q]=t.useState(),[o,f]=t.useState(0),[u,B]=t.useState(0),[b,N]=t.useState(!1),[G,K]=t.useState(!0),M=t.useId(),T=t.useMemo(()=>i==="single"?"100%":y?`calc(${100/y}% - ${w?"1rem":"0px"})`:typeof h=="number"?`${h}px`:h,[i,y,h,w]),j=t.useCallback(l=>{if(!e||b)return;N(!0);const v=e.selectedScrollSnap();if(v===l){N(!1);return}const p=v<l?1:-1;if(Math.abs(v-l)===1){p>0?e.scrollNext():e.scrollPrev(),setTimeout(()=>N(!1),300);return}let C=0;const d=Math.abs(v-l),P=()=>{C<d?(p>0?e.scrollNext():e.scrollPrev(),C++,setTimeout(P,150)):N(!1)};P()},[e,b]),_=t.useCallback(()=>{!e||b||(x&&o===u-1?j(0):(N(!0),e.scrollNext(),setTimeout(()=>N(!1),300)))},[e,b,x,o,u,j]),F=t.useCallback(()=>{!e||b||(N(!0),x&&o===0?j(u-1):(e.scrollPrev(),setTimeout(()=>N(!1),300)))},[e,b,x,o,u,j]);t.useEffect(()=>{if(!e)return;B(e.scrollSnapList().length);const l=()=>{f(e.selectedScrollSnap())};return f(e.selectedScrollSnap()),e.on("select",l),e.on("reInit",l),()=>{e.off("select",l),e.off("reInit",l)}},[e]),t.useEffect(()=>{if(!e)return;const l=e.scrollSnapList().length,v=e.canScrollNext(),p=e.canScrollPrev();K(v||p||l>1)},[e,u,o]),t.useEffect(()=>{if(!e||!$)return;const l=setInterval(()=>{b||_()},z);return()=>clearInterval(l)},[e,$,z,b,_]);const V=()=>{if(!r||u<=r)return Array.from({length:u}).map((C,d)=>n.jsx("button",{className:`size-space-04 rounded-full transition-colors focus:outline-none ${o===d?"bg-primary":"bg-background-neutral-200"}`,onClick:()=>j(d),disabled:b,"aria-label":`Go to slide ${d+1}`},`${M}-dot-${d}`));const l=[],v=u-(r-1),p=Math.max(1,v);for(let C=0;C<r;C++){let d,P;C===r-1?(d=u-1,P=o>=u-p):(d=C,P=o===C),l.push(n.jsx("button",{className:`size-space-04 rounded-full transition-colors focus:outline-none ${P?"bg-primary":"bg-background-neutral-200"}`,onClick:()=>j(d),disabled:b,"aria-label":`Go to slide ${d+1}`},`${M}-dot-${C}`))}return l};return n.jsx("div",{className:m.cn("w-full ",I),children:n.jsxs(A,{dir:R,setApi:q,opts:{align:"start",loop:!1,skipSnaps:!1,containScroll:"trimSnaps",dragFree:!1,direction:R,slidesToScroll:g},className:m.cn("relative w-full",a),children:[n.jsx(E,{className:" gap-space-04",children:t.Children.map(s,(l,v)=>n.jsx(O,{className:m.cn("transition-transform duration-300 ",c),style:{flex:`0 0 ${T}`,maxWidth:T},children:l},`${M}-item-${v}`))}),G&&n.jsxs("div",{className:m.cn({"container mt-space-05 flex items-center justify-between":i==="multiple"}),children:[k&&n.jsxs("div",{className:m.cn({"flex items-center gap-2":i==="multiple","absolute inset-x-space-04 top-1/2 z-0 mx-auto flex max-w-container -translate-y-1/2 items-center justify-between":i==="single"}),children:[n.jsx(D.Button,{onClick:F,colors:"primary",variant:!x&&o===0?"outline":"default",size:"icon","aria-label":"Previous slide",className:m.cn(!x&&o===0&&"!pointer-events-none"),children:n.jsx(Q.default,{className:"ltr:rotate-180"})}),n.jsx(D.Button,{onClick:_,colors:"primary",variant:!x&&o===u-1?"outline":"default",size:"icon","aria-label":"Next slide",className:m.cn(!x&&o===u-1&&"!pointer-events-none"),children:n.jsx(U.default,{className:"ltr:rotate-180"})})]}),S&&u>0&&n.jsx("div",{className:m.cn("flex gap-space-02",{" items-center":i==="multiple","absolute inset-x-0 bottom-space-08 justify-center":i==="single"}),children:V()})]})]})})}exports.Carousel=Z;exports.CarouselContent=E;exports.CarouselItem=O;exports.CarouselPrimitive=A;
package/index.cjs64.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),v=require("@radix-ui/react-hover-card"),f=require("react"),s=require("./index.cjs94.js");function d(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=d(v),i=d(f),m=r.Root,C=r.Trigger,c=i.forwardRef(({className:e,align:o="center",variant:t,sideOffset:a=4,...g},u)=>n.jsx(r.Content,{ref:u,align:o,sideOffset:a,className:s.cn(`z-50 flex max-w-96 origin-[--radix-hover-card-content-transform-origin] flex-col gap-space-02 text-wrap rounded p-space-02 text-caption-01 shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),v=require("@radix-ui/react-hover-card"),f=require("react"),s=require("./index.cjs95.js");function d(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=d(v),i=d(f),m=r.Root,C=r.Trigger,c=i.forwardRef(({className:e,align:o="center",variant:t,sideOffset:a=4,...g},u)=>n.jsx(r.Content,{ref:u,align:o,sideOffset:a,className:s.cn(`z-50 flex max-w-96 origin-[--radix-hover-card-content-transform-origin] flex-col gap-space-02 text-wrap rounded p-space-02 text-caption-01 shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
2
2
  [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:start-space-02 [&>svg]:top-space-02 [&>svg]:size-[24px] [&>svg]:rounded-full [&>svg]:bg-icon-neutral [&>svg]:p-space-01 [&>svg]:text-icon-oncolor [&>svg~*]:ps-[32px]
3
3
  `,{"bg-popover text-popover-foreground ":t==="default","bg-background-neutral-800 text-neutral-100":t==="inverted"},e),...g}));c.displayName=r.Content.displayName;const l=i.forwardRef(({className:e,...o},t)=>n.jsx("h5",{ref:t,className:s.cn("font-semibold",e),...o}));l.displayName="HoverCardTitle";const p=i.forwardRef(({className:e,...o},t)=>n.jsx("div",{ref:t,className:s.cn(e),...o}));p.displayName="HoverCardDescription";exports.HoverCard=m;exports.HoverCardContent=c;exports.HoverCardDescription=p;exports.HoverCardTitle=l;exports.HoverCardTrigger=C;
package/index.cjs65.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("@radix-ui/react-popover"),s=require("./index.cjs94.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const r=d(i);function p({...e}){return t.jsx(r.Root,{"data-slot":"popover",...e})}function c({...e}){return t.jsx(r.Trigger,{"data-slot":"popover-trigger",...e})}function l({className:e,align:n="center",sideOffset:o=4,...a}){return t.jsx(r.Portal,{children:t.jsx(r.Content,{"data-slot":"popover-content",align:n,sideOffset:o,className:s.cn("z-50 rounded-2 border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})})}function u({...e}){return t.jsx(r.Close,{"data-slot":"popover-close",...e})}function f({...e}){return t.jsx(r.Anchor,{"data-slot":"popover-anchor",...e})}exports.Popover=p;exports.PopoverAnchor=f;exports.PopoverClose=u;exports.PopoverContent=l;exports.PopoverTrigger=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("@radix-ui/react-popover"),s=require("./index.cjs95.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const r=d(i);function p({...e}){return t.jsx(r.Root,{"data-slot":"popover",...e})}function c({...e}){return t.jsx(r.Trigger,{"data-slot":"popover-trigger",...e})}function l({className:e,align:n="center",sideOffset:o=4,...a}){return t.jsx(r.Portal,{children:t.jsx(r.Content,{"data-slot":"popover-content",align:n,sideOffset:o,className:s.cn("z-50 rounded-2 border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})})}function u({...e}){return t.jsx(r.Close,{"data-slot":"popover-close",...e})}function f({...e}){return t.jsx(r.Anchor,{"data-slot":"popover-anchor",...e})}exports.Popover=p;exports.PopoverAnchor=f;exports.PopoverClose=u;exports.PopoverContent=l;exports.PopoverTrigger=c;
package/index.cjs66.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("@radix-ui/react-progress"),b=require("react"),u=require("./index.cjs94.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=d(g),y=d(b),m=y.forwardRef(({className:e,value:t,colors:r="bg-primary",rounded:a,icon:o,...n},f)=>{const s=Math.max(0,Math.min(typeof t=="number"?t:0,100)),c=(n==null?void 0:n.dir)==="rtl"?"right":"left";return l.jsxs("div",{className:"relative w-full",children:[l.jsx(i.Root,{ref:f,"aria-label":"progress",value:s,className:u.cn("relative h-space-02 w-full overflow-hidden bg-background-secondary",a&&"rounded-full",e),...n,children:l.jsx(i.Indicator,{className:u.cn("absolute top-0 h-full transition-[width] duration-300 ease-in-out",a&&"rounded-full",r),style:{width:`${s}%`,[c]:0}})}),!!o&&l.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 duration-200",style:{[c]:`calc(${s}% - 12px)`},children:o})]})});m.displayName=i.Root.displayName;exports.Progress=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("@radix-ui/react-progress"),b=require("react"),u=require("./index.cjs95.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=d(g),y=d(b),m=y.forwardRef(({className:e,value:t,colors:r="bg-primary",rounded:a,icon:o,...n},f)=>{const s=Math.max(0,Math.min(typeof t=="number"?t:0,100)),c=(n==null?void 0:n.dir)==="rtl"?"right":"left";return l.jsxs("div",{className:"relative w-full",children:[l.jsx(i.Root,{ref:f,"aria-label":"progress",value:s,className:u.cn("relative h-space-02 w-full overflow-hidden bg-background-secondary",a&&"rounded-full",e),...n,children:l.jsx(i.Indicator,{className:u.cn("absolute top-0 h-full transition-[width] duration-300 ease-in-out",a&&"rounded-full",r),style:{width:`${s}%`,[c]:0}})}),!!o&&l.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 duration-200",style:{[c]:`calc(${s}% - 12px)`},children:o})]})});m.displayName=i.Root.displayName;exports.Progress=m;
package/index.cjs67.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("./index.cjs113.js"),j=require("react"),o=require("./index.cjs94.js"),$=require("./index.cjs95.js"),N=l.cva("relative flex gap-space-02 items-center",{variants:{colors:{primary:"[&_.bg-circle]:stroke-background-neutral-200 [&_.progress-circle]:stroke-background-primary",neutral:"[&_.bg-circle]:stroke-background-neutral-200 [&_.progress-circle]:stroke-background-black"},onColor:{true:"[&_.progress-circle]:stroke-background-surface-oncolor",false:""}},defaultVariants:{colors:"primary",onColor:!1}}),w=l.cva("",{variants:{size:{120:"w-[120px] h-[120px] [&_.bg-circle]:stroke-[10px] [&_.progress-circle]:stroke-[10px]",80:"w-[80px] h-[80px] [&_.bg-circle]:stroke-[8px] [&_.progress-circle]:stroke-[8px]",64:"w-[64px] h-[64px] [&_.bg-circle]:stroke-[6px] [&_.progress-circle]:stroke-[6px]",48:"w-[48px] h-[48px] [&_.bg-circle]:stroke-[5px] [&_.progress-circle]:stroke-[5px]",40:"w-[40px] h-[40px] [&_.bg-circle]:stroke-[4px] [&_.progress-circle]:stroke-[4px]"}}}),R=l.cva("",{variants:{size:{120:"[&>h3]:text-subtitle-02 [&>h3]:font-semibold [&>p]:text-body-01 [&>span]:text-body-01",80:"[&>h3]:text-body-02 [&>h3]:font-semibold [&>p]:text-body-01 [&>span]:text-body-01",64:"[&>h3]:text-body-01 [&>h3]:font-semibold [&>p]:text-caption-01 [&>span]:text-caption-01",48:"[&>h3]:text-body-01 [&>h3]:font-semibold [&>p]:text-caption-01 [&>span]:text-caption-01",40:"[&>h3]:text-caption-01 [&>h3]:font-semibold [&>p]:text-caption-02 [&>span]:text-caption-02"}}}),q=l.cva("",{variants:{size:{120:"title-01",80:"text-subtitle-01",64:"text-body-01",48:"text-[1.05rem]/[15px]",40:"text-[0.875rem]/[12.5px]"}}}),b=j.forwardRef(({className:m,steps:r,activeStep:s,colors:u,size:i=120,onColor:f,dir:x="ltr",showDetails:k=!0,...y},v)=>{const e=i||120,c=r.length>0?s/r.length:0,n=e===120?50:e===80?35:e===64?28:e===48?20:18,p=2*Math.PI*n,_=p,d=p*(1-c),h=e===120?60:e===80?40:e===64?32:e===48?24:20,g=e===120?60:e===80?40:e===64?32:e===48?24:20,t=(r==null?void 0:r[s-1])||r[0];return a.jsxs("div",{dir:x,ref:v,role:"progressbar","aria-label":`Step ${s} of ${r.length}`,"aria-valuenow":s,"aria-valuemin":1,"aria-valuemax":r.length,"aria-valuetext":`Step ${s} of ${r.length}: ${(t==null?void 0:t.title)||""}`,className:o.cn(N({colors:u,onColor:f,className:m})),...y,children:[a.jsxs("div",{className:o.cn("relative flex-shrink-0",w({size:i})),children:[a.jsxs("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,className:"-rotate-90 transform",role:"img","aria-label":`Progress circle showing ${Math.round(c*100)}% completion`,children:[a.jsx("circle",{cx:h,cy:g,r:n,fill:"none",className:"bg-circle opacity-60","aria-hidden":"true"}),a.jsx("circle",{cx:h,cy:g,r:n,fill:"none",strokeLinecap:"round",strokeDasharray:_,strokeDashoffset:x==="rtl"?d:-d,className:"progress-circle transition-all duration-500 ease-in-out","aria-label":`Progress: ${Math.round(c*100)}%`})]}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsxs("span",{className:o.cn("font-bold text-text-paragraph-primary",q({size:i})),"aria-label":`Current step: ${s} of ${r.length}`,children:[s," ",$.strings.Shared.Of," ",r==null?void 0:r.length]})})]}),t&&k&&a.jsxs("div",{className:o.cn("flex flex-1 flex-col gap-space-01",R({size:i})),"aria-live":"polite","aria-label":`Step details for step ${s}`,children:[a.jsx("h3",{className:"text-text-display",children:t==null?void 0:t.title}),(t==null?void 0:t.description)&&a.jsx("p",{className:"text-text-paragraph-primary",children:t==null?void 0:t.description})]})]})});b.displayName="RadialStepper";exports.RadialStepper=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("./index.cjs115.js"),j=require("react"),o=require("./index.cjs95.js"),$=require("./index.cjs96.js"),N=l.cva("relative flex gap-space-02 items-center",{variants:{colors:{primary:"[&_.bg-circle]:stroke-background-neutral-200 [&_.progress-circle]:stroke-background-primary",neutral:"[&_.bg-circle]:stroke-background-neutral-200 [&_.progress-circle]:stroke-background-black"},onColor:{true:"[&_.progress-circle]:stroke-background-surface-oncolor",false:""}},defaultVariants:{colors:"primary",onColor:!1}}),w=l.cva("",{variants:{size:{120:"w-[120px] h-[120px] [&_.bg-circle]:stroke-[10px] [&_.progress-circle]:stroke-[10px]",80:"w-[80px] h-[80px] [&_.bg-circle]:stroke-[8px] [&_.progress-circle]:stroke-[8px]",64:"w-[64px] h-[64px] [&_.bg-circle]:stroke-[6px] [&_.progress-circle]:stroke-[6px]",48:"w-[48px] h-[48px] [&_.bg-circle]:stroke-[5px] [&_.progress-circle]:stroke-[5px]",40:"w-[40px] h-[40px] [&_.bg-circle]:stroke-[4px] [&_.progress-circle]:stroke-[4px]"}}}),R=l.cva("",{variants:{size:{120:"[&>h3]:text-subtitle-02 [&>h3]:font-semibold [&>p]:text-body-01 [&>span]:text-body-01",80:"[&>h3]:text-body-02 [&>h3]:font-semibold [&>p]:text-body-01 [&>span]:text-body-01",64:"[&>h3]:text-body-01 [&>h3]:font-semibold [&>p]:text-caption-01 [&>span]:text-caption-01",48:"[&>h3]:text-body-01 [&>h3]:font-semibold [&>p]:text-caption-01 [&>span]:text-caption-01",40:"[&>h3]:text-caption-01 [&>h3]:font-semibold [&>p]:text-caption-02 [&>span]:text-caption-02"}}}),q=l.cva("",{variants:{size:{120:"title-01",80:"text-subtitle-01",64:"text-body-01",48:"text-[1.05rem]/[15px]",40:"text-[0.875rem]/[12.5px]"}}}),b=j.forwardRef(({className:m,steps:r,activeStep:s,colors:u,size:i=120,onColor:f,dir:x="ltr",showDetails:k=!0,...y},v)=>{const e=i||120,c=r.length>0?s/r.length:0,n=e===120?50:e===80?35:e===64?28:e===48?20:18,p=2*Math.PI*n,_=p,d=p*(1-c),h=e===120?60:e===80?40:e===64?32:e===48?24:20,g=e===120?60:e===80?40:e===64?32:e===48?24:20,t=(r==null?void 0:r[s-1])||r[0];return a.jsxs("div",{dir:x,ref:v,role:"progressbar","aria-label":`Step ${s} of ${r.length}`,"aria-valuenow":s,"aria-valuemin":1,"aria-valuemax":r.length,"aria-valuetext":`Step ${s} of ${r.length}: ${(t==null?void 0:t.title)||""}`,className:o.cn(N({colors:u,onColor:f,className:m})),...y,children:[a.jsxs("div",{className:o.cn("relative flex-shrink-0",w({size:i})),children:[a.jsxs("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,className:"-rotate-90 transform",role:"img","aria-label":`Progress circle showing ${Math.round(c*100)}% completion`,children:[a.jsx("circle",{cx:h,cy:g,r:n,fill:"none",className:"bg-circle opacity-60","aria-hidden":"true"}),a.jsx("circle",{cx:h,cy:g,r:n,fill:"none",strokeLinecap:"round",strokeDasharray:_,strokeDashoffset:x==="rtl"?d:-d,className:"progress-circle transition-all duration-500 ease-in-out","aria-label":`Progress: ${Math.round(c*100)}%`})]}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsxs("span",{className:o.cn("font-bold text-text-paragraph-primary",q({size:i})),"aria-label":`Current step: ${s} of ${r.length}`,children:[s," ",$.strings.Shared.Of," ",r==null?void 0:r.length]})})]}),t&&k&&a.jsxs("div",{className:o.cn("flex flex-1 flex-col gap-space-01",R({size:i})),"aria-live":"polite","aria-label":`Step details for step ${s}`,children:[a.jsx("h3",{className:"text-text-display",children:t==null?void 0:t.title}),(t==null?void 0:t.description)&&a.jsx("p",{className:"text-text-paragraph-primary",children:t==null?void 0:t.description})]})]})});b.displayName="RadialStepper";exports.RadialStepper=b;
package/index.cjs68.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),f=require("@radix-ui/react-radio-group"),m=require("react"),x=require("./index.cjs113.js"),d=require("./index.cjs94.js"),v=require("./index.cjs139.js");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=n(f),s=n(m),k=x.cva("flex aspect-square rounded-full enabled:active:data-[state=unchecked]:bg-control-pressed border border-control-border enabled:hover:bg-control-ripple-effect focus:ring-2 focus:ring-border-black focus:ring-offset-2 disabled:cursor-not-allowed disabled:border-border-disabled disabled:data-[state=checked]:text-control-disabled",{variants:{colors:{primary:`data-[state=checked]:border-control-primary-checked data-[state=checked]:text-control-primary-checked
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),f=require("@radix-ui/react-radio-group"),m=require("react"),x=require("./index.cjs115.js"),d=require("./index.cjs95.js"),v=require("./index.cjs140.js");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=n(f),s=n(m),k=x.cva("flex aspect-square rounded-full enabled:active:data-[state=unchecked]:bg-control-pressed border border-control-border enabled:hover:bg-control-ripple-effect focus:ring-2 focus:ring-border-black focus:ring-offset-2 disabled:cursor-not-allowed disabled:border-border-disabled disabled:data-[state=checked]:text-control-disabled",{variants:{colors:{primary:`data-[state=checked]:border-control-primary-checked data-[state=checked]:text-control-primary-checked
2
2
  enabled:hover:data-[state=checked]:border-control-primary-hovered enabled:hover:data-[state=checked]:text-control-primary-hovered
3
3
  enabled:active:data-[state=checked]:border-control-primary-pressed active:data-[state=checked]:text-control-primary-pressed
4
4
  `,neutral:`data-[state=checked]:border-control-neutral-checked data-[state=checked]:text-control-neutral-checked
package/index.cjs69.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-scroll-area"),f=require("react"),c=require("./index.cjs94.js");function n(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const l in r)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}return e.default=r,Object.freeze(e)}const t=n(d),i=n(f),u=i.forwardRef(({className:r,children:e,...l},o)=>a.jsxs(t.Root,{ref:o,className:c.cn("relative overflow-hidden",r),...l,children:[a.jsx(t.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),a.jsx(s,{}),a.jsx(t.Corner,{})]}));u.displayName=t.Root.displayName;const s=i.forwardRef(({className:r,orientation:e="vertical",...l},o)=>a.jsx(t.ScrollAreaScrollbar,{ref:o,orientation:e,className:c.cn("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:a.jsx(t.ScrollAreaThumb,{className:c.cn("relative rounded-full bg-border",e==="vertical"&&"flex-1")})}));s.displayName=t.ScrollAreaScrollbar.displayName;exports.ScrollArea=u;exports.ScrollBar=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-scroll-area"),f=require("react"),c=require("./index.cjs95.js");function n(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const l in r)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}return e.default=r,Object.freeze(e)}const t=n(d),i=n(f),u=i.forwardRef(({className:r,children:e,...l},o)=>a.jsxs(t.Root,{ref:o,className:c.cn("relative overflow-hidden",r),...l,children:[a.jsx(t.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),a.jsx(s,{}),a.jsx(t.Corner,{})]}));u.displayName=t.Root.displayName;const s=i.forwardRef(({className:r,orientation:e="vertical",...l},o)=>a.jsx(t.ScrollAreaScrollbar,{ref:o,orientation:e,className:c.cn("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:a.jsx(t.ScrollAreaThumb,{className:c.cn("relative rounded-full bg-border",e==="vertical"&&"flex-1")})}));s.displayName=t.ScrollAreaScrollbar.displayName;exports.ScrollArea=u;exports.ScrollBar=s;
package/index.cjs7.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs8.js"),i=require("./index.cjs180.js"),m=i.create()(r.default(a=>({isAuthenticated:!!localStorage.getItem("nationalId")&&!!localStorage.getItem("accessToken"),accessToken:localStorage.getItem("accessToken")||void 0,refreshToken:localStorage.getItem("refreshToken")||void 0,nationalId:localStorage.getItem("nationalId"),sessionExpired:!1,user:{firstName:"",secondName:"",thridName:"",lastName:"",Id:"",roles:[],email:"",ssoEmail:"",defaultRole:localStorage.getItem("defaultRole")},login:e=>a(()=>(localStorage.setItem("nationalId",e),{isAuthenticated:!0,nationalId:e,sessionExpired:!1})),setUser:e=>a(()=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:e})),updateUser:e=>a(o=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),e.firstName&&e.lastName&&localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:{...o==null?void 0:o.user,...e}})),logout:()=>a(e=>{var o,l;return localStorage.removeItem("nationalId"),localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("displayName"),localStorage.removeItem("defaultRole"),localStorage.removeItem("jwt"),localStorage.removeItem("ERAlertHidden"),localStorage.removeItem("registrationStartDate"),localStorage.removeItem("registrationEndDate"),(l=(o=e==null?void 0:e.user)==null?void 0:o.roles)==null||l.map(t=>{localStorage.removeItem(`${t}-evaluationCounter`),localStorage.removeItem(`${t}-evaluationSkipCounter`),localStorage.removeItem(`${t}-onBoardingSkipCounter`)}),localStorage.removeItem("email"),{isAuthenticated:!1,nationalId:void 0,user:{roles:[]},accessToken:void 0,refreshToken:void 0,sessionExpired:!1}}),setExpireSession:()=>a(()=>({sessionExpired:!0})),setDefaultRole:e=>a(o=>{e&&(o!=null&&o.user)&&(localStorage.setItem("defaultRole",e),o.user.defaultRole=e)})}),{name:"auth"}));exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs8.js"),i=require("./index.cjs181.js"),m=i.create()(r.default(a=>({isAuthenticated:!!localStorage.getItem("nationalId")&&!!localStorage.getItem("accessToken"),accessToken:localStorage.getItem("accessToken")||void 0,refreshToken:localStorage.getItem("refreshToken")||void 0,nationalId:localStorage.getItem("nationalId"),sessionExpired:!1,user:{firstName:"",secondName:"",thridName:"",lastName:"",Id:"",roles:[],email:"",ssoEmail:"",defaultRole:localStorage.getItem("defaultRole")},login:e=>a(()=>(localStorage.setItem("nationalId",e),{isAuthenticated:!0,nationalId:e,sessionExpired:!1})),setUser:e=>a(()=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:e})),updateUser:e=>a(o=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),e.firstName&&e.lastName&&localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:{...o==null?void 0:o.user,...e}})),logout:()=>a(e=>{var o,l;return localStorage.removeItem("nationalId"),localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("displayName"),localStorage.removeItem("defaultRole"),localStorage.removeItem("jwt"),localStorage.removeItem("ERAlertHidden"),localStorage.removeItem("registrationStartDate"),localStorage.removeItem("registrationEndDate"),(l=(o=e==null?void 0:e.user)==null?void 0:o.roles)==null||l.map(t=>{localStorage.removeItem(`${t}-evaluationCounter`),localStorage.removeItem(`${t}-evaluationSkipCounter`),localStorage.removeItem(`${t}-onBoardingSkipCounter`)}),localStorage.removeItem("email"),{isAuthenticated:!1,nationalId:void 0,user:{roles:[]},accessToken:void 0,refreshToken:void 0,sessionExpired:!1}}),setExpireSession:()=>a(()=>({sessionExpired:!0})),setDefaultRole:e=>a(o=>{e&&(o!=null&&o.user)&&(localStorage.setItem("defaultRole",e),o.user.defaultRole=e)})}),{name:"auth"}));exports.default=m;
package/index.cjs70.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),p=require("./index.cjs94.js"),h=require("./index.cjs95.js"),k=require("./index.cjs27.js"),C=require("./index.cjs42.js"),v=require("./index.cjs47.js"),B=require("./index.cjs116.js"),f=require("./index.cjs131.js"),x=a.forwardRef(({placeholder:m="Search...",value:c="",type:t,validationMessage:o,onSearch:n,disabled:j=!1,debounceTime:i=600,className:b="",...S},q)=>{const[s,u]=a.useState(c),l=a.useRef(void 0);a.useEffect(()=>{u(c)},[c]),a.useEffect(()=>{l.current=p.debounce(r=>n(r),i)},[n,i]);const N=r=>{r.key==="Enter"&&n(s.trim())},y=r=>{const d=r.target.value;u(d),t==="onType"&&l.current&&l.current(d)},g=()=>{u(""),n("")},I=()=>{t==="onButton"&&n(s)};return e.jsxs("div",{className:"space-y-space-01",children:[e.jsx(C.Input,{type:"text",variant:"outline",placeholder:m,value:s,disabled:j,...S,onKeyDown:N,onChange:y,className:p.cn("w-full ",{"pe-space-04":t==="onType","pe-space-01":t==="onButton"},b),"aria-invalid":!!o,"data-testid":"search-input",startAdornment:t==="onType"&&e.jsx(f.default,{className:"text-icon-default"}),endAdornment:e.jsxs(v.Stack,{gap:1,alignItems:"center",children:[s&&e.jsxs("button",{type:"button",className:"text-text-default",onClick:g,children:[e.jsx(B.default,{size:20}),e.jsx("span",{className:"sr-only",children:h.strings.Shared.Clear})]}),s&&t==="onButton"&&e.jsx("span",{className:"mx-space-01 block h-space-05 border"}),t==="onButton"&&e.jsx(k.Button,{variant:"outline",rounded:"full",size:"icon-sm",type:"button",tooltip:h.strings.Shared.Search,className:"h-auto rounded-full border !p-space-01",onClick:I,children:e.jsx(f.default,{})})]}),ref:q}),o&&e.jsx("p",{className:"text-caption-01 text-error",children:o})]})});x.displayName="SearchInput";exports.SearchInput=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),p=require("./index.cjs95.js"),h=require("./index.cjs96.js"),k=require("./index.cjs27.js"),C=require("./index.cjs42.js"),v=require("./index.cjs47.js"),B=require("./index.cjs118.js"),f=require("./index.cjs133.js"),x=a.forwardRef(({placeholder:m="Search...",value:c="",type:t,validationMessage:o,onSearch:n,disabled:j=!1,debounceTime:i=600,className:b="",...S},q)=>{const[s,u]=a.useState(c),l=a.useRef(void 0);a.useEffect(()=>{u(c)},[c]),a.useEffect(()=>{l.current=p.debounce(r=>n(r),i)},[n,i]);const N=r=>{r.key==="Enter"&&n(s.trim())},y=r=>{const d=r.target.value;u(d),t==="onType"&&l.current&&l.current(d)},g=()=>{u(""),n("")},I=()=>{t==="onButton"&&n(s)};return e.jsxs("div",{className:"space-y-space-01",children:[e.jsx(C.Input,{type:"text",variant:"outline",placeholder:m,value:s,disabled:j,...S,onKeyDown:N,onChange:y,className:p.cn("w-full ",{"pe-space-04":t==="onType","pe-space-01":t==="onButton"},b),"aria-invalid":!!o,"data-testid":"search-input",startAdornment:t==="onType"&&e.jsx(f.default,{className:"text-icon-default"}),endAdornment:e.jsxs(v.Stack,{gap:1,alignItems:"center",children:[s&&e.jsxs("button",{type:"button",className:"text-text-default",onClick:g,children:[e.jsx(B.default,{size:20}),e.jsx("span",{className:"sr-only",children:h.strings.Shared.Clear})]}),s&&t==="onButton"&&e.jsx("span",{className:"mx-space-01 block h-space-05 border"}),t==="onButton"&&e.jsx(k.Button,{variant:"outline",rounded:"full",size:"icon-sm",type:"button",tooltip:h.strings.Shared.Search,className:"h-auto rounded-full border !p-space-01",onClick:I,children:e.jsx(f.default,{})})]}),ref:q}),o&&e.jsx("p",{className:"text-caption-01 text-error",children:o})]})});x.displayName="SearchInput";exports.SearchInput=x;
package/index.cjs71.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),w=require("react"),v=require("@radix-ui/react-select"),j=require("./index.cjs113.js"),d=require("./index.cjs94.js"),N=require("./index.cjs146.js"),_=require("./index.cjs143.js"),R=require("./index.cjs177.js"),k=require("./index.cjs106.js");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,l.get?l:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const s=u(w),a=u(v),p=j.cva(` placeholder:text-form-field-text-placeholder data-[placeholder]:text-form-field-text-placeholder text-form-field-text-filled after:bg-form-field-border-pressed group relative
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),w=require("react"),v=require("@radix-ui/react-select"),j=require("./index.cjs115.js"),d=require("./index.cjs95.js"),N=require("./index.cjs147.js"),_=require("./index.cjs144.js"),R=require("./index.cjs178.js"),k=require("./index.cjs108.js");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,l.get?l:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const s=u(w),a=u(v),p=j.cva(` placeholder:text-form-field-text-placeholder data-[placeholder]:text-form-field-text-placeholder text-form-field-text-filled after:bg-form-field-border-pressed group relative
2
2
  flex w-full items-center justify-between gap-space-01 whitespace-nowrap overflow-hidden
3
3
  aria-[invalid=true]:border-form-field-border-error data-[state=open]:aria-[invalid=true]:after:bg-form-field-border-error
4
4
  ps-space-03 pe-space-02 after:absolute after:bottom-0 after:start-1/2 after:h-[2px] focus-visible:after:w-full focus:outline-none focus:shadow-md