mada-design-system 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (857) 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 -5
  13. package/index.cjs11.js +1 -1
  14. package/index.cjs110.js +5 -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 -1
  19. package/index.cjs115.js +1 -1
  20. package/index.cjs116.js +1 -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 -4
  28. package/index.cjs123.js +4 -1
  29. package/index.cjs124.js +1 -2
  30. package/index.cjs125.js +2 -1
  31. package/index.cjs126.js +1 -2
  32. package/index.cjs127.js +2 -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 -20
  41. package/index.cjs135.js +20 -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 -1
  49. package/index.cjs142.js +1 -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.cjs150.js +1 -1
  58. package/index.cjs151.js +1 -1
  59. package/index.cjs152.js +1 -1
  60. package/index.cjs153.js +1 -1
  61. package/index.cjs154.js +1 -1
  62. package/index.cjs155.js +1 -1
  63. package/index.cjs156.js +1 -1
  64. package/index.cjs157.js +1 -1
  65. package/index.cjs158.js +1 -1
  66. package/index.cjs159.js +1 -1
  67. package/index.cjs16.js +1 -1
  68. package/index.cjs160.js +1 -1
  69. package/index.cjs161.js +1 -1
  70. package/index.cjs162.js +1 -1
  71. package/index.cjs163.js +1 -1
  72. package/index.cjs164.js +1 -1
  73. package/index.cjs165.js +1 -1
  74. package/index.cjs166.js +1 -1
  75. package/index.cjs167.js +1 -1
  76. package/index.cjs168.js +1 -1
  77. package/index.cjs169.js +1 -1
  78. package/index.cjs17.js +1 -1
  79. package/index.cjs170.js +1 -1
  80. package/index.cjs171.js +1 -1
  81. package/index.cjs172.js +1 -1
  82. package/index.cjs173.js +1 -1
  83. package/index.cjs174.js +1 -1
  84. package/index.cjs175.js +1 -1
  85. package/index.cjs176.js +1 -1
  86. package/index.cjs177.js +1 -1
  87. package/index.cjs178.js +1 -1
  88. package/index.cjs179.js +1 -1
  89. package/index.cjs18.js +1 -1
  90. package/index.cjs180.js +1 -1
  91. package/index.cjs181.js +1 -1
  92. package/index.cjs182.js +1 -1
  93. package/index.cjs183.js +1 -1
  94. package/index.cjs184.js +1 -1
  95. package/index.cjs185.js +1 -1
  96. package/index.cjs186.js +1 -1
  97. package/index.cjs187.js +1 -1
  98. package/index.cjs188.js +1 -1
  99. package/index.cjs189.js +1 -1
  100. package/index.cjs19.js +1 -1
  101. package/index.cjs190.js +1 -1
  102. package/index.cjs191.js +1 -1
  103. package/index.cjs192.js +1 -1
  104. package/index.cjs193.js +1 -1
  105. package/index.cjs194.js +1 -1
  106. package/index.cjs195.js +1 -1
  107. package/index.cjs196.js +1 -1
  108. package/index.cjs197.js +1 -4
  109. package/index.cjs198.js +1 -1
  110. package/index.cjs199.js +1 -1
  111. package/index.cjs20.js +1 -1
  112. package/index.cjs200.js +4 -1
  113. package/index.cjs201.js +1 -1
  114. package/index.cjs202.js +1 -1
  115. package/index.cjs203.js +1 -3
  116. package/index.cjs204.js +1 -1
  117. package/index.cjs205.js +3 -1
  118. package/index.cjs206.js +1 -1
  119. package/index.cjs207.js +1 -1
  120. package/index.cjs208.js +1 -1
  121. package/index.cjs209.js +1 -1
  122. package/index.cjs21.js +1 -1
  123. package/index.cjs210.js +1 -1
  124. package/index.cjs211.js +1 -1
  125. package/index.cjs212.js +1 -1
  126. package/index.cjs213.js +1 -1
  127. package/index.cjs214.js +1 -1
  128. package/index.cjs215.js +1 -1
  129. package/index.cjs216.js +1 -1
  130. package/index.cjs217.js +1 -1
  131. package/index.cjs218.js +1 -1
  132. package/index.cjs219.js +1 -1
  133. package/index.cjs22.js +1 -1
  134. package/index.cjs220.js +1 -1
  135. package/index.cjs221.js +1 -1
  136. package/index.cjs222.js +1 -1
  137. package/index.cjs223.js +1 -1
  138. package/index.cjs224.js +1 -1
  139. package/index.cjs225.js +1 -1
  140. package/index.cjs226.js +1 -1
  141. package/index.cjs227.js +1 -1
  142. package/index.cjs228.js +1 -1
  143. package/index.cjs229.js +1 -1
  144. package/index.cjs23.js +1 -1
  145. package/index.cjs230.js +1 -1
  146. package/index.cjs231.js +1 -1
  147. package/index.cjs232.js +1 -1
  148. package/index.cjs233.js +1 -1
  149. package/index.cjs234.js +1 -3
  150. package/index.cjs235.js +1 -1
  151. package/index.cjs236.js +3 -1
  152. package/index.cjs237.js +1 -1
  153. package/index.cjs238.js +1 -1
  154. package/index.cjs239.js +1 -1
  155. package/index.cjs24.js +1 -1
  156. package/index.cjs240.js +1 -1
  157. package/index.cjs241.js +1 -1
  158. package/index.cjs242.js +1 -1
  159. package/index.cjs243.js +1 -1
  160. package/index.cjs244.js +1 -1
  161. package/index.cjs245.js +1 -1
  162. package/index.cjs246.js +1 -1
  163. package/index.cjs247.js +1 -1
  164. package/index.cjs248.js +1 -1
  165. package/index.cjs249.js +1 -1
  166. package/index.cjs25.js +1 -1
  167. package/index.cjs250.js +1 -2
  168. package/index.cjs251.js +1 -1
  169. package/index.cjs252.js +2 -1
  170. package/index.cjs253.js +1 -1
  171. package/index.cjs254.js +1 -1
  172. package/index.cjs255.js +1 -1
  173. package/index.cjs256.js +1 -1
  174. package/index.cjs257.js +1 -1
  175. package/index.cjs258.js +1 -1
  176. package/index.cjs259.js +1 -1
  177. package/index.cjs26.js +1 -1
  178. package/index.cjs260.js +1 -1
  179. package/index.cjs261.js +1 -1
  180. package/index.cjs262.js +1 -1
  181. package/index.cjs263.js +1 -1
  182. package/index.cjs264.js +1 -1
  183. package/index.cjs265.js +1 -1
  184. package/index.cjs266.js +1 -2
  185. package/index.cjs267.js +1 -1
  186. package/index.cjs268.js +2 -1
  187. package/index.cjs269.js +1 -1
  188. package/index.cjs27.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 -15
  204. package/index.cjs285.js +1 -1
  205. package/index.cjs286.js +15 -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.cjs360.js +1 -1
  288. package/index.cjs361.js +1 -1
  289. package/index.cjs362.js +1 -1
  290. package/index.cjs363.js +1 -1
  291. package/index.cjs364.js +1 -1
  292. package/index.cjs365.js +1 -1
  293. package/index.cjs366.js +1 -1
  294. package/index.cjs367.js +1 -1
  295. package/index.cjs369.js +1 -1
  296. package/index.cjs37.js +1 -1
  297. package/index.cjs370.js +1 -1
  298. package/index.cjs371.js +1 -1
  299. package/index.cjs372.js +1 -1
  300. package/index.cjs373.js +1 -1
  301. package/index.cjs374.js +1 -1
  302. package/index.cjs375.js +1 -1
  303. package/index.cjs376.js +1 -1
  304. package/index.cjs377.js +1 -1
  305. package/index.cjs378.js +1 -1
  306. package/index.cjs379.js +1 -1
  307. package/index.cjs38.js +1 -1
  308. package/index.cjs380.js +1 -1
  309. package/index.cjs381.js +1 -1
  310. package/index.cjs382.js +1 -1
  311. package/index.cjs383.js +1 -1
  312. package/index.cjs384.js +1 -1
  313. package/index.cjs385.js +1 -1
  314. package/index.cjs386.js +1 -1
  315. package/index.cjs387.js +1 -1
  316. package/index.cjs388.js +1 -1
  317. package/index.cjs389.js +1 -1
  318. package/index.cjs39.js +1 -1
  319. package/index.cjs390.js +1 -1
  320. package/index.cjs391.js +1 -1
  321. package/index.cjs392.js +1 -1
  322. package/index.cjs393.js +1 -1
  323. package/index.cjs394.js +1 -1
  324. package/index.cjs395.js +1 -2
  325. package/index.cjs396.js +1 -1
  326. package/index.cjs397.js +2 -1
  327. package/index.cjs398.js +1 -1
  328. package/index.cjs399.js +1 -1
  329. package/index.cjs40.js +1 -1
  330. package/index.cjs400.js +1 -1
  331. package/index.cjs401.js +1 -1
  332. package/index.cjs402.js +1 -1
  333. package/index.cjs403.js +1 -1
  334. package/index.cjs404.js +1 -1
  335. package/index.cjs405.js +1 -1
  336. package/index.cjs406.js +1 -1
  337. package/index.cjs407.js +1 -1
  338. package/index.cjs408.js +1 -74
  339. package/index.cjs409.js +1 -1
  340. package/index.cjs41.js +1 -1
  341. package/index.cjs410.js +74 -1
  342. package/index.cjs411.js +1 -1
  343. package/index.cjs412.js +1 -1
  344. package/index.cjs413.js +1 -1
  345. package/index.cjs414.js +1 -1
  346. package/index.cjs415.js +1 -1
  347. package/index.cjs416.js +1 -1
  348. package/index.cjs417.js +1 -1
  349. package/index.cjs418.js +1 -1
  350. package/index.cjs419.js +1 -1
  351. package/index.cjs42.js +1 -1
  352. package/index.cjs420.js +1 -1
  353. package/index.cjs421.js +1 -1
  354. package/index.cjs422.js +1 -1
  355. package/index.cjs423.js +1 -1
  356. package/index.cjs424.js +1 -1
  357. package/index.cjs425.js +1 -1
  358. package/index.cjs426.js +1 -1
  359. package/index.cjs427.js +1 -1
  360. package/index.cjs428.js +1 -1
  361. package/index.cjs429.js +1 -1
  362. package/index.cjs43.js +1 -1
  363. package/index.cjs430.js +1 -1
  364. package/index.cjs431.js +1 -1
  365. package/index.cjs432.js +1 -1
  366. package/index.cjs433.js +1 -1
  367. package/index.cjs434.js +1 -0
  368. package/index.cjs435.js +1 -0
  369. package/index.cjs44.js +1 -1
  370. package/index.cjs45.js +1 -1
  371. package/index.cjs46.js +1 -1
  372. package/index.cjs47.js +1 -1
  373. package/index.cjs48.js +1 -1
  374. package/index.cjs49.js +1 -1
  375. package/index.cjs50.js +1 -1
  376. package/index.cjs51.js +1 -1
  377. package/index.cjs52.js +1 -1
  378. package/index.cjs53.js +1 -1
  379. package/index.cjs54.js +1 -1
  380. package/index.cjs55.js +1 -1
  381. package/index.cjs56.js +1 -1
  382. package/index.cjs57.js +1 -1
  383. package/index.cjs58.js +1 -1
  384. package/index.cjs59.js +1 -1
  385. package/index.cjs6.js +1 -1
  386. package/index.cjs60.js +1 -1
  387. package/index.cjs61.js +1 -1
  388. package/index.cjs62.js +1 -1
  389. package/index.cjs63.js +1 -1
  390. package/index.cjs64.js +1 -1
  391. package/index.cjs65.js +1 -1
  392. package/index.cjs66.js +1 -1
  393. package/index.cjs67.js +1 -1
  394. package/index.cjs68.js +1 -1
  395. package/index.cjs69.js +1 -1
  396. package/index.cjs7.js +1 -1
  397. package/index.cjs70.js +1 -1
  398. package/index.cjs71.js +1 -1
  399. package/index.cjs72.js +1 -1
  400. package/index.cjs73.js +1 -1
  401. package/index.cjs74.js +1 -1
  402. package/index.cjs75.js +1 -1
  403. package/index.cjs76.js +1 -1
  404. package/index.cjs77.js +1 -1
  405. package/index.cjs78.js +1 -1
  406. package/index.cjs79.js +1 -1
  407. package/index.cjs8.js +1 -1
  408. package/index.cjs81.js +1 -1
  409. package/index.cjs82.js +1 -1
  410. package/index.cjs83.js +1 -1
  411. package/index.cjs84.js +1 -1
  412. package/index.cjs85.js +1 -1
  413. package/index.cjs86.js +1 -1
  414. package/index.cjs87.js +1 -1
  415. package/index.cjs88.js +1 -1
  416. package/index.cjs89.js +1 -1
  417. package/index.cjs9.js +1 -1
  418. package/index.cjs90.js +1 -1
  419. package/index.cjs91.js +1 -1
  420. package/index.cjs92.js +1 -1
  421. package/index.cjs93.js +1 -1
  422. package/index.cjs94.js +1 -1
  423. package/index.cjs95.js +1 -1
  424. package/index.cjs96.js +1 -1
  425. package/index.cjs97.js +1 -1
  426. package/index.cjs98.js +1 -1
  427. package/index.cjs99.js +1 -1
  428. package/index.es.d.ts +40 -7
  429. package/index.es.js +73 -69
  430. package/index.es10.js +8 -8
  431. package/index.es100.js +11 -126
  432. package/index.es101.js +119 -463
  433. package/index.es102.js +127 -11
  434. package/index.es103.js +10 -87
  435. package/index.es104.js +86 -22
  436. package/index.es105.js +24 -18
  437. package/index.es106.js +6 -13
  438. package/index.es107.js +22 -1706
  439. package/index.es108.js +1708 -34
  440. package/index.es109.js +33 -2594
  441. package/index.es11.js +5 -5
  442. package/index.es110.js +2561 -287
  443. package/index.es111.js +321 -10
  444. package/index.es112.js +5 -5
  445. package/index.es113.js +5 -5
  446. package/index.es114.js +10 -7
  447. package/index.es115.js +8 -33
  448. package/index.es116.js +33 -2
  449. package/index.es117.js +2 -11
  450. package/index.es118.js +5 -5
  451. package/index.es119.js +5 -5
  452. package/index.es12.js +3 -3
  453. package/index.es120.js +5 -5
  454. package/index.es121.js +5 -5
  455. package/index.es122.js +9 -2567
  456. package/index.es123.js +2567 -139
  457. package/index.es124.js +142 -118
  458. package/index.es125.js +116 -136
  459. package/index.es126.js +77 -163
  460. package/index.es127.js +222 -515
  461. package/index.es128.js +516 -11
  462. package/index.es129.js +5 -5
  463. package/index.es13.js +5 -5
  464. package/index.es130.js +11 -21
  465. package/index.es131.js +21 -11
  466. package/index.es132.js +5 -5
  467. package/index.es133.js +5 -5
  468. package/index.es134.js +11 -205
  469. package/index.es135.js +205 -11
  470. package/index.es136.js +10 -4
  471. package/index.es137.js +4 -10
  472. package/index.es138.js +5 -5
  473. package/index.es139.js +10 -378
  474. package/index.es14.js +3 -3
  475. package/index.es140.js +378 -10
  476. package/index.es141.js +5 -5
  477. package/index.es142.js +5 -5
  478. package/index.es143.js +5 -5
  479. package/index.es144.js +5 -5
  480. package/index.es145.js +5 -5
  481. package/index.es146.js +11 -2
  482. package/index.es147.js +1 -1
  483. package/index.es148.js +1 -1
  484. package/index.es149.js +1 -1
  485. package/index.es150.js +1 -1
  486. package/index.es151.js +1 -1
  487. package/index.es152.js +2 -11
  488. package/index.es153.js +4 -4
  489. package/index.es154.js +5 -5
  490. package/index.es155.js +5 -5
  491. package/index.es156.js +11 -3
  492. package/index.es157.js +3 -11
  493. package/index.es158.js +5 -5
  494. package/index.es159.js +5 -5
  495. package/index.es16.js +7 -7
  496. package/index.es160.js +5 -5
  497. package/index.es161.js +11 -2
  498. package/index.es162.js +1 -1
  499. package/index.es163.js +2 -11
  500. package/index.es164.js +4 -4
  501. package/index.es165.js +5 -5
  502. package/index.es166.js +5 -5
  503. package/index.es167.js +5 -5
  504. package/index.es168.js +11 -22
  505. package/index.es169.js +22 -11
  506. package/index.es17.js +1 -1
  507. package/index.es170.js +11 -22
  508. package/index.es171.js +22 -11
  509. package/index.es172.js +5 -5
  510. package/index.es173.js +11 -12
  511. package/index.es174.js +12 -11
  512. package/index.es175.js +4 -4
  513. package/index.es176.js +5 -5
  514. package/index.es177.js +5 -5
  515. package/index.es178.js +11 -2338
  516. package/index.es179.js +464 -2145
  517. package/index.es18.js +2 -2
  518. package/index.es180.js +2338 -11
  519. package/index.es181.js +2149 -136
  520. package/index.es182.js +11 -6
  521. package/index.es183.js +141 -3
  522. package/index.es184.js +6 -233
  523. package/index.es185.js +3 -56
  524. package/index.es186.js +477 -28
  525. package/index.es187.js +30 -11
  526. package/index.es188.js +12 -6
  527. package/index.es189.js +5 -479
  528. package/index.es19.js +1 -1
  529. package/index.es190.js +37 -16
  530. package/index.es191.js +225 -27
  531. package/index.es192.js +51 -1221
  532. package/index.es193.js +18 -14
  533. package/index.es194.js +35 -8
  534. package/index.es195.js +1222 -48
  535. package/index.es196.js +14 -2
  536. package/index.es197.js +8 -2261
  537. package/index.es198.js +47 -36
  538. package/index.es199.js +2 -11
  539. package/index.es20.js +1 -1
  540. package/index.es200.js +2260 -12
  541. package/index.es201.js +11 -13
  542. package/index.es202.js +12 -105
  543. package/index.es203.js +13 -25
  544. package/index.es204.js +104 -49
  545. package/index.es205.js +25 -371
  546. package/index.es206.js +49 -60
  547. package/index.es207.js +369 -46
  548. package/index.es208.js +62 -6
  549. package/index.es209.js +48 -5
  550. package/index.es21.js +2 -2
  551. package/index.es210.js +6 -47
  552. package/index.es211.js +5 -22
  553. package/index.es212.js +47 -7
  554. package/index.es213.js +22 -10
  555. package/index.es214.js +7 -11
  556. package/index.es215.js +10 -17
  557. package/index.es216.js +9 -228
  558. package/index.es217.js +16 -24
  559. package/index.es218.js +230 -12
  560. package/index.es219.js +23 -277
  561. package/index.es22.js +4 -4
  562. package/index.es220.js +11 -261
  563. package/index.es221.js +278 -16
  564. package/index.es222.js +260 -13
  565. package/index.es223.js +16 -20
  566. package/index.es224.js +14 -7
  567. package/index.es225.js +21 -5
  568. package/index.es226.js +8 -5
  569. package/index.es227.js +5 -5
  570. package/index.es228.js +5 -3
  571. package/index.es229.js +5 -7
  572. package/index.es23.js +2 -2
  573. package/index.es230.js +3 -28
  574. package/index.es231.js +6 -160
  575. package/index.es232.js +28 -238
  576. package/index.es233.js +160 -9
  577. package/index.es234.js +234 -91
  578. package/index.es235.js +10 -2
  579. package/index.es236.js +94 -57
  580. package/index.es237.js +2 -57
  581. package/index.es238.js +57 -3
  582. package/index.es239.js +57 -2
  583. package/index.es24.js +6 -6
  584. package/index.es240.js +3 -12
  585. package/index.es241.js +2 -25
  586. package/index.es242.js +12 -10
  587. package/index.es243.js +24 -38
  588. package/index.es244.js +8 -1997
  589. package/index.es245.js +38 -6
  590. package/index.es246.js +1999 -71
  591. package/index.es247.js +6 -24
  592. package/index.es248.js +72 -2
  593. package/index.es249.js +24 -7
  594. package/index.es25.js +1 -1
  595. package/index.es250.js +2 -327
  596. package/index.es251.js +7 -50
  597. package/index.es252.js +327 -30
  598. package/index.es253.js +51 -34
  599. package/index.es254.js +30 -53
  600. package/index.es255.js +34 -119
  601. package/index.es256.js +53 -9
  602. package/index.es257.js +105 -149
  603. package/index.es258.js +9 -310
  604. package/index.es259.js +160 -124
  605. package/index.es26.js +2 -2
  606. package/index.es260.js +274 -144
  607. package/index.es261.js +125 -24
  608. package/index.es262.js +180 -62
  609. package/index.es263.js +26 -5
  610. package/index.es264.js +62 -36
  611. package/index.es265.js +5 -26
  612. package/index.es266.js +36 -186
  613. package/index.es267.js +26 -138
  614. package/index.es268.js +186 -2
  615. package/index.es269.js +138 -8
  616. package/index.es27.js +1 -1
  617. package/index.es270.js +2 -2
  618. package/index.es271.js +7 -97
  619. package/index.es272.js +2 -26
  620. package/index.es273.js +94 -35
  621. package/index.es274.js +26 -2
  622. package/index.es275.js +36 -66
  623. package/index.es276.js +2 -85
  624. package/index.es277.js +66 -45
  625. package/index.es278.js +84 -8
  626. package/index.es279.js +47 -4
  627. package/index.es28.js +3 -3
  628. package/index.es280.js +8 -51
  629. package/index.es281.js +5 -2
  630. package/index.es282.js +48 -56
  631. package/index.es283.js +1 -16
  632. package/index.es284.js +57 -241
  633. package/index.es285.js +15 -72
  634. package/index.es286.js +243 -4
  635. package/index.es287.js +70 -54
  636. package/index.es288.js +5 -11
  637. package/index.es289.js +57 -6
  638. package/index.es29.js +1 -1
  639. package/index.es290.js +11 -36
  640. package/index.es291.js +6 -26
  641. package/index.es292.js +36 -291
  642. package/index.es293.js +24 -88
  643. package/index.es294.js +291 -3
  644. package/index.es295.js +90 -7
  645. package/index.es296.js +3 -16
  646. package/index.es297.js +7 -146
  647. package/index.es298.js +16 -38
  648. package/index.es299.js +146 -10
  649. package/index.es3.js +1 -1
  650. package/index.es30.js +4 -4
  651. package/index.es300.js +36 -114
  652. package/index.es301.js +11 -7
  653. package/index.es302.js +120 -8
  654. package/index.es303.js +7 -120
  655. package/index.es304.js +7 -6
  656. package/index.es305.js +7 -7
  657. package/index.es306.js +351 -8
  658. package/index.es307.js +3 -351
  659. package/index.es308.js +206 -3
  660. package/index.es309.js +115 -205
  661. package/index.es31.js +4 -4
  662. package/index.es310.js +6 -15
  663. package/index.es311.js +8 -5
  664. package/index.es312.js +15 -7
  665. package/index.es313.js +5 -3
  666. package/index.es314.js +8 -3
  667. package/index.es315.js +3 -3
  668. package/index.es316.js +3 -6
  669. package/index.es317.js +3 -5
  670. package/index.es318.js +6 -4
  671. package/index.es319.js +5 -117
  672. package/index.es32.js +4 -4
  673. package/index.es320.js +3 -3
  674. package/index.es321.js +117 -15
  675. package/index.es322.js +4 -2
  676. package/index.es323.js +14 -44
  677. package/index.es324.js +2 -52
  678. package/index.es325.js +45 -2
  679. package/index.es326.js +52 -2
  680. package/index.es327.js +2 -13
  681. package/index.es328.js +2 -143
  682. package/index.es329.js +11 -41
  683. package/index.es33.js +2 -2
  684. package/index.es330.js +143 -3
  685. package/index.es331.js +40 -38
  686. package/index.es332.js +3 -8
  687. package/index.es333.js +39 -74
  688. package/index.es334.js +7 -54
  689. package/index.es335.js +75 -7
  690. package/index.es336.js +52 -73
  691. package/index.es337.js +7 -23
  692. package/index.es338.js +71 -57
  693. package/index.es339.js +23 -4
  694. package/index.es34.js +2 -2
  695. package/index.es340.js +61 -6
  696. package/index.es341.js +4 -31
  697. package/index.es342.js +6 -58
  698. package/index.es343.js +31 -12
  699. package/index.es344.js +59 -4
  700. package/index.es345.js +12 -9
  701. package/index.es346.js +4 -55
  702. package/index.es347.js +9 -3
  703. package/index.es348.js +55 -5
  704. package/index.es349.js +4 -17
  705. package/index.es35.js +1 -1
  706. package/index.es350.js +5 -17
  707. package/index.es351.js +17 -17
  708. package/index.es352.js +16 -16
  709. package/index.es353.js +14 -14
  710. package/index.es354.js +14 -14
  711. package/index.es355.js +17 -17
  712. package/index.es356.js +17 -6
  713. package/index.es357.js +17 -24
  714. package/index.es358.js +5 -20
  715. package/index.es359.js +24 -6
  716. package/index.es360.js +21 -3
  717. package/index.es361.js +6 -19
  718. package/index.es362.js +3 -67
  719. package/index.es363.js +18 -15
  720. package/index.es364.js +63 -12
  721. package/index.es365.js +15 -335
  722. package/index.es366.js +1 -1
  723. package/index.es367.js +1 -1
  724. package/index.es369.js +336 -19
  725. package/index.es37.js +2 -2
  726. package/index.es370.js +19 -4
  727. package/index.es371.js +4 -6
  728. package/index.es372.js +6 -3
  729. package/index.es373.js +3 -72
  730. package/index.es374.js +72 -4
  731. package/index.es375.js +4 -7
  732. package/index.es376.js +14 -28
  733. package/index.es377.js +6 -9
  734. package/index.es378.js +29 -7
  735. package/index.es379.js +9 -6
  736. package/index.es38.js +2 -2
  737. package/index.es380.js +8 -2
  738. package/index.es381.js +7 -2
  739. package/index.es382.js +2 -2
  740. package/index.es383.js +2 -71
  741. package/index.es384.js +2 -92
  742. package/index.es385.js +71 -2
  743. package/index.es386.js +92 -2
  744. package/index.es387.js +2 -2
  745. package/index.es388.js +2 -2
  746. package/index.es389.js +2 -11
  747. package/index.es39.js +2 -2
  748. package/index.es390.js +2 -4
  749. package/index.es391.js +8 -3
  750. package/index.es392.js +9 -44
  751. package/index.es393.js +3 -24
  752. package/index.es394.js +3 -8
  753. package/index.es395.js +44 -76
  754. package/index.es396.js +22 -256
  755. package/index.es397.js +76 -30
  756. package/index.es398.js +259 -6
  757. package/index.es399.js +30 -130
  758. package/index.es40.js +2 -2
  759. package/index.es400.js +8 -17
  760. package/index.es401.js +131 -6
  761. package/index.es402.js +17 -4
  762. package/index.es403.js +6 -66
  763. package/index.es404.js +2 -66
  764. package/index.es405.js +66 -5
  765. package/index.es406.js +65 -3
  766. package/index.es407.js +6 -2
  767. package/index.es408.js +4 -251
  768. package/index.es409.js +2 -8
  769. package/index.es41.js +1 -1
  770. package/index.es410.js +251 -3
  771. package/index.es411.js +8 -174
  772. package/index.es412.js +3 -2
  773. package/index.es413.js +174 -2
  774. package/index.es414.js +2 -2
  775. package/index.es415.js +2 -2
  776. package/index.es416.js +2 -7
  777. package/index.es417.js +2 -8
  778. package/index.es418.js +6 -6
  779. package/index.es419.js +7 -19
  780. package/index.es42.js +2 -2
  781. package/index.es420.js +7 -51
  782. package/index.es421.js +18 -247
  783. package/index.es422.js +51 -43
  784. package/index.es423.js +247 -14
  785. package/index.es424.js +43 -10
  786. package/index.es425.js +15 -47
  787. package/index.es426.js +10 -26
  788. package/index.es427.js +37 -118
  789. package/index.es428.js +23 -109
  790. package/index.es429.js +129 -2
  791. package/index.es43.js +10 -10
  792. package/index.es430.js +112 -2
  793. package/index.es431.js +2 -73
  794. package/index.es432.js +2 -9
  795. package/index.es433.js +72 -6
  796. package/index.es434.js +11 -0
  797. package/index.es435.js +9 -0
  798. package/index.es44.js +7 -7
  799. package/index.es45.js +2 -2
  800. package/index.es46.js +6 -6
  801. package/index.es47.js +7 -7
  802. package/index.es48.js +13 -13
  803. package/index.es49.js +3 -3
  804. package/index.es50.js +17 -17
  805. package/index.es51.js +1 -1
  806. package/index.es52.js +2 -2
  807. package/index.es53.js +6 -6
  808. package/index.es54.js +2 -2
  809. package/index.es55.js +2 -2
  810. package/index.es56.js +3 -3
  811. package/index.es57.js +3 -3
  812. package/index.es58.js +4 -4
  813. package/index.es59.js +1 -1
  814. package/index.es6.js +5 -5
  815. package/index.es60.js +33 -21
  816. package/index.es61.js +1 -1
  817. package/index.es62.js +3 -3
  818. package/index.es63.js +1 -1
  819. package/index.es64.js +4 -4
  820. package/index.es65.js +6 -6
  821. package/index.es66.js +1 -1
  822. package/index.es67.js +9 -9
  823. package/index.es68.js +4 -4
  824. package/index.es69.js +1 -1
  825. package/index.es7.js +4 -4
  826. package/index.es70.js +1 -1
  827. package/index.es71.js +1 -1
  828. package/index.es72.js +1 -1
  829. package/index.es73.js +2 -2
  830. package/index.es74.js +2 -2
  831. package/index.es75.js +4 -4
  832. package/index.es76.js +5 -5
  833. package/index.es77.js +2 -2
  834. package/index.es78.js +1 -1
  835. package/index.es79.js +1 -1
  836. package/index.es8.js +6 -6
  837. package/index.es81.js +52 -22
  838. package/index.es82.js +15 -8
  839. package/index.es83.js +22 -80
  840. package/index.es84.js +7 -6
  841. package/index.es85.js +80 -4
  842. package/index.es86.js +6 -78
  843. package/index.es87.js +4 -32
  844. package/index.es88.js +79 -48
  845. package/index.es89.js +32 -8
  846. package/index.es9.js +2 -2
  847. package/index.es90.js +45 -13
  848. package/index.es91.js +8 -45
  849. package/index.es92.js +16 -4
  850. package/index.es93.js +44 -114
  851. package/index.es94.js +4 -5
  852. package/index.es95.js +115 -7
  853. package/index.es96.js +5 -29
  854. package/index.es97.js +7 -28
  855. package/index.es98.js +29 -11
  856. package/index.es99.js +28 -126
  857. package/package.json +2 -1
package/index.cjs75.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("@radix-ui/react-toast"),l=require("./index.cjs108.js"),w=require("react"),n=require("./index.cjs86.js"),y=require("./index.cjs23.js"),T=require("./index.cjs111.js"),h=require("./index.cjs175.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const a=c(v),i=c(w),N=a.Provider,j=l.cva("fixed z-[10000000000000] flex max-h-screen w-full flex-col p-4 lg:max-w-[500px] ",{variants:{position:{top:"ltr:sm:right-1/2 ltr:sm:translate-x-1/2 rtl:sm:left-1/2 rtl:sm:-translate-x-1/2 sm:top-10 sm:bottom-auto top-space-05",bottom:"ltr:sm:right-1/2 ltr:sm:translate-x-1/2 rtl:sm:left-1/2 rtl:sm:-translate-x-1/2 sm:bottom-10 sm:top-auto bottom-space-05","top-right":"end-0 sm:top-10 sm:bottom-auto top-space-05","top-left":"start-0 sm:top-10 sm:bottom-auto top-space-05","bottom-right":"end-0 sm:bottom-10 sm:top-auto bottom-space-05","bottom-left":"start-0 sm:bottom-10 sm:top-auto bottom-space-05"}},defaultVariants:{position:"bottom"}}),d=i.forwardRef(({className:t,position:e,...o},r)=>s.jsx(a.Viewport,{ref:r,className:n.cn(j({position:e}),t),...o}));d.displayName=a.Viewport.displayName;const k=l.cva(`group pointer-events-auto gap-space-03 relative bg-background-notification-white flex sm:flex-row w-full items-center space-x-4 overflow-hidden
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("@radix-ui/react-toast"),l=require("./index.cjs109.js"),w=require("react"),n=require("./index.cjs88.js"),y=require("./index.cjs23.js"),T=require("./index.cjs112.js"),h=require("./index.cjs176.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const a=c(v),i=c(w),N=a.Provider,j=l.cva("fixed z-[10000000000000] flex max-h-screen w-full flex-col p-4 lg:max-w-[500px] ",{variants:{position:{top:"ltr:sm:right-1/2 ltr:sm:translate-x-1/2 rtl:sm:left-1/2 rtl:sm:-translate-x-1/2 sm:top-10 sm:bottom-auto top-space-05",bottom:"ltr:sm:right-1/2 ltr:sm:translate-x-1/2 rtl:sm:left-1/2 rtl:sm:-translate-x-1/2 sm:bottom-10 sm:top-auto bottom-space-05","top-right":"end-0 sm:top-10 sm:bottom-auto top-space-05","top-left":"start-0 sm:top-10 sm:bottom-auto top-space-05","bottom-right":"end-0 sm:bottom-10 sm:top-auto bottom-space-05","bottom-left":"start-0 sm:bottom-10 sm:top-auto bottom-space-05"}},defaultVariants:{position:"bottom"}}),d=i.forwardRef(({className:t,position:e,...o},r)=>s.jsx(a.Viewport,{ref:r,className:n.cn(j({position:e}),t),...o}));d.displayName=a.Viewport.displayName;const k=l.cva(`group pointer-events-auto gap-space-03 relative bg-background-notification-white flex sm:flex-row w-full items-center space-x-4 overflow-hidden
2
2
  rounded-1 border border-border-primary px-space-05 py-space-04 shadow-3xl transition-all data-[swipe=cancel]:translate-y-0 data-[swipe=end]:translate-y-[var(--radix-toast-swipe-end-x)]
3
3
  data-[swipe=move]:translate-y-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out
4
4
  data-[swipe=end]:animate-out data-[state=closed]:fade-out-80
package/index.cjs76.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("./index.cjs75.js"),j=require("./index.cjs80.js"),m=require("./index.cjs87.js"),T=require("./index.cjs176.js"),g=require("./index.cjs177.js"),l=require("./index.cjs175.js"),p=require("./index.cjs160.js"),v={destructive:s.jsx(T.default,{}),success:s.jsx(g.default,{}),default:s.jsx(l.default,{}),info:s.jsx(l.default,{}),warning:s.jsx(p.default,{})};function h({position:a="bottom"}){const{toasts:o}=j.useToast(),u=m.default(e=>e.isActive),d=Array.from(new Set(o.map(e=>e.position||a)));return s.jsxs(t.ToastProvider,{children:[o.map(function({id:e,title:r,description:c,action:n,position:x,...i}){const f=x||a;return s.jsx(t.Toast,{...i,className:`${u?"grayscale":"grayscale-0"}`,position:f,children:s.jsxs("div",{className:"flex grow flex-col justify-between gap-space-04",children:[s.jsxs("div",{className:"flex w-full gap-space-03",children:[s.jsx(t.ToastIcon,{icon:i.variant&&v[i.variant]}),s.jsxs("div",{className:"grid flex-1 items-center gap-space-01",children:[r&&s.jsx(t.ToastTitle,{children:r}),c&&s.jsx(t.ToastDescription,{children:c})]}),s.jsx(t.ToastClose,{})]}),n&&s.jsx("div",{className:"mx-space-07",children:n})]})},e)}),d.map(e=>s.jsx(t.ToastViewport,{position:e},e))]})}exports.Toaster=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("./index.cjs75.js"),j=require("./index.cjs80.js"),m=require("./index.cjs89.js"),T=require("./index.cjs177.js"),g=require("./index.cjs178.js"),l=require("./index.cjs176.js"),p=require("./index.cjs161.js"),v={destructive:s.jsx(T.default,{}),success:s.jsx(g.default,{}),default:s.jsx(l.default,{}),info:s.jsx(l.default,{}),warning:s.jsx(p.default,{})};function h({position:a="bottom"}){const{toasts:o}=j.useToast(),u=m.default(e=>e.isActive),d=Array.from(new Set(o.map(e=>e.position||a)));return s.jsxs(t.ToastProvider,{children:[o.map(function({id:e,title:r,description:c,action:n,position:x,...i}){const f=x||a;return s.jsx(t.Toast,{...i,className:`${u?"grayscale":"grayscale-0"}`,position:f,children:s.jsxs("div",{className:"flex grow flex-col justify-between gap-space-04",children:[s.jsxs("div",{className:"flex w-full gap-space-03",children:[s.jsx(t.ToastIcon,{icon:i.variant&&v[i.variant]}),s.jsxs("div",{className:"grid flex-1 items-center gap-space-01",children:[r&&s.jsx(t.ToastTitle,{children:r}),c&&s.jsx(t.ToastDescription,{children:c})]}),s.jsx(t.ToastClose,{})]}),n&&s.jsx("div",{className:"mx-space-07",children:n})]})},e)}),d.map(e=>s.jsx(t.ToastViewport,{position:e},e))]})}exports.Toaster=h;
package/index.cjs77.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("@radix-ui/react-toggle"),u=require("./index.cjs108.js"),l=require("react"),p=require("./index.cjs86.js");function r(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=r(b),g=r(l),d=u.cva(`group inline-flex items-center justify-center gap-space-01 transition-colors text-text-default data-[state=on]:font-semibold
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("@radix-ui/react-toggle"),u=require("./index.cjs109.js"),l=require("react"),p=require("./index.cjs88.js");function r(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=r(b),g=r(l),d=u.cva(`group inline-flex items-center justify-center gap-space-01 transition-colors text-text-default data-[state=on]:font-semibold
2
2
  disabled:text-disabled-text-default-disabled disabled:pointer-events-none disabled:cursor-not-allowed focus:outline focus:outline-2 focus:outline-offset-1 focus:outline-black
3
3
  `,{variants:{variant:{default:"",outline:"border border-border-neutral-primary disabled:border-disabled disabled:data-[state=on]:bg-disabled-background-disabled disabled:data-[state=on]:border-none"},size:{default:"px-space-04 py-space-02 h-[40px] text-body-02 font-medium [&>svg]:size-space-05",sm:"px-space-03 py-space-01 h-[32px] text-body-01 [&>svg]:size-[20px]",xs:"px-space-03 py-space-01 h-[24px] text-caption-01 [&>svg]:size-space-04",icon:"p-space-02 size-[40px] [&>svg]:size-space-05","icon-sm":"p-space-02 size-[32px] [&>svg]:size-[20px]","icon-xs":"p-space-01 size-[24px] [&>svg]:size-space-04",fit:""},rounded:{default:"rounded",full:"rounded-full"},colors:{default:`hover:bg-button-background-primary-light-hovered
4
4
  hover:border-button-background-primary-light-hovered
package/index.cjs78.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("@radix-ui/react-toggle-group"),v=require("react"),x=require("./index.cjs77.js"),d=require("./index.cjs86.js"),y=require("./index.cjs49.js");function p(e){const o=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(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const c=p(j),a=p(v),m=a.createContext({size:"default",variant:"default",colors:"default",rounded:"default"}),f=a.forwardRef(({className:e,variant:o,size:t,colors:r,rounded:i,children:l,...u},g)=>s.jsx(y.ResponsiveScroll,{buttonClassName:"bg-background",children:s.jsx(c.Root,{ref:g,className:d.cn("flex items-center justify-center gap-space-01",e),...u,children:s.jsx(m.Provider,{value:{variant:o,size:t,colors:r,rounded:i},children:l})})}));f.displayName=c.Root.displayName;const b=a.forwardRef(({className:e,children:o,variant:t,size:r,colors:i,rounded:l,...u},g)=>{const n=a.useContext(m);return s.jsx(c.Item,{ref:g,className:d.cn(x.toggleVariants({variant:n.variant||t,size:n.size||r,colors:n.colors||i,rounded:n.rounded||l}),"shrink-0",e),...u,children:o})});b.displayName=c.Item.displayName;exports.ToggleGroup=f;exports.ToggleGroupItem=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("@radix-ui/react-toggle-group"),v=require("react"),x=require("./index.cjs77.js"),d=require("./index.cjs88.js"),y=require("./index.cjs49.js");function p(e){const o=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(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const c=p(j),a=p(v),m=a.createContext({size:"default",variant:"default",colors:"default",rounded:"default"}),f=a.forwardRef(({className:e,variant:o,size:t,colors:r,rounded:i,children:l,...u},g)=>s.jsx(y.ResponsiveScroll,{buttonClassName:"bg-background",children:s.jsx(c.Root,{ref:g,className:d.cn("flex items-center justify-center gap-space-01",e),...u,children:s.jsx(m.Provider,{value:{variant:o,size:t,colors:r,rounded:i},children:l})})}));f.displayName=c.Root.displayName;const b=a.forwardRef(({className:e,children:o,variant:t,size:r,colors:i,rounded:l,...u},g)=>{const n=a.useContext(m);return s.jsx(c.Item,{ref:g,className:d.cn(x.toggleVariants({variant:n.variant||t,size:n.size||r,colors:n.colors||i,rounded:n.rounded||l}),"shrink-0",e),...u,children:o})});b.displayName=c.Item.displayName;exports.ToggleGroup=f;exports.ToggleGroupItem=b;
package/index.cjs79.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),s=require("@radix-ui/react-tooltip"),l=require("react"),c=require("./index.cjs86.js");function n(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=n(s),p=n(l),m=i.Provider,u=i.Root,f=i.Trigger,a=p.forwardRef(({className:t,sideOffset:o=4,...e},r)=>d.jsx(i.Content,{ref:r,sideOffset:o,className:c.cn("z-[10000] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-body-01 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",t),...e}));a.displayName=i.Content.displayName;exports.Tooltip=u;exports.TooltipContent=a;exports.TooltipProvider=m;exports.TooltipTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),s=require("@radix-ui/react-tooltip"),l=require("react"),c=require("./index.cjs88.js");function n(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=n(s),p=n(l),m=i.Provider,u=i.Root,f=i.Trigger,a=p.forwardRef(({className:t,sideOffset:o=4,...e},r)=>d.jsx(i.Content,{ref:r,sideOffset:o,className:c.cn("z-[10000] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-body-01 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",t),...e}));a.displayName=i.Content.displayName;exports.Tooltip=u;exports.TooltipContent=a;exports.TooltipProvider=m;exports.TooltipTrigger=f;
package/index.cjs8.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),w=require("./index.cjs103.js"),A=require("./index.cjs26.js"),B=require("./index.cjs69.js"),i=require("./index.cjs72.js"),r=require("react"),Y=require("./index.cjs104.js"),u=require("./index.cjs86.js");require("./index.cjs2.js");const P=require("./index.cjs13.js"),Z=require("./index.cjs23.js"),F=require("./index.cjs15.js"),h=require("./index.cjs105.js"),ee=require("./index.cjs106.js"),E=require("./index.cjs107.js");function _({columns:p,data:m,loading:g,NoDataComponent:O,itemsPerPage:R,hasPagination:Q=!0,onClickRow:x,isFirstRowSelected:I=!1,enableRowSelection:N,enableMultiRowSelection:j,rowSelection:V,onRowSelectionChange:$,onSortingChange:C,theme:a,...e}){var y,M,D,k,v;const G=r.useMemo(()=>g?Array(R||10).fill({}):m,[g,R,m]),[f,J]=r.useState(R||10),[q,K]=r.useState([]),U=r.useMemo(()=>{let l=g?p.map(t=>({...t,cell:()=>n.jsx(B.Skeleton,{className:"h-8 w-full"})})):p;return N&&!g&&(l=[{id:"select",header:j?({table:s})=>{var o;return n.jsx(A.Checkbox,{checked:s.getIsAllPageRowsSelected(),onCheckedChange:d=>s.toggleAllPageRowsSelected(!!d),"aria-label":"Select all",className:u.cn((o=a==null?void 0:a.headerSelect)==null?void 0:o.className),size:"sm",colors:"primary"})}:()=>n.jsx("div",{role:"checkbox",className:"w-[48px]","aria-hidden":"true"}),cell:({row:s})=>{var o;return n.jsx(A.Checkbox,{checked:s.getIsSelected(),onCheckedChange:d=>s.toggleSelected(!!d),"aria-label":"Select row",className:u.cn((o=a==null?void 0:a.bodySelect)==null?void 0:o.className),size:"sm",colors:"primary"})},enableSorting:!1,enableHiding:!1},...l]),l},[g,p,N,j]),c=w.useReactTable({data:G,columns:U,getCoreRowModel:E.getCoreRowModel(),getPaginationRowModel:E.getPaginationRowModel(),onRowSelectionChange:$,onSortingChange:l=>{const t=typeof l=="function"?l(q):l;K(t),C==null||C(t)},state:{rowSelection:V||{},sorting:q},enableRowSelection:N,enableMultiRowSelection:j,getRowId:l=>l.id}),W=Y.useMediaQuery("(min-width: 801px)"),T=c.getState().pagination.pageIndex+1,X=l=>{x&&(N?j?l.toggleSelected(!l.getIsSelected()):(c.resetRowSelection(),l.toggleSelected(!0)):(c.resetRowSelection(),l.toggleSelected(!l.getIsSelected())),x(l))};return r.useEffect(()=>{const l=c.getRowModel().rows;if(!I||!l.length||!m.length)return;const t=l[0];c.resetRowSelection(),t.toggleSelected(!0),x&&x(t)},[I,c,m]),r.useEffect(()=>{c.setPageSize(f)},[c,f]),W?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"overflow-hidden rounded-t-3",children:n.jsxs(i.Table,{className:u.cn("w-full table-fixed",(y=a==null?void 0:a.table)==null?void 0:y.className),children:[n.jsx(i.TableHeader,{className:u.cn((M=a==null?void 0:a.tableHeader)==null?void 0:M.className),children:c.getHeaderGroups().map(l=>{var t;return n.jsx(i.TableRow,{className:u.cn("hover:bg-transparent",(t=a==null?void 0:a.tableRow)==null?void 0:t.className),children:l.headers.map(s=>{var o,d,S,b;return n.jsx(i.TableHead,{colSpan:((o=s.column.columnDef.meta)==null?void 0:o.headerColSpan)??1,className:u.cn((d=a==null?void 0:a.tableHead)==null?void 0:d.className),children:s.isPlaceholder?null:(b=(S=s==null?void 0:s.column)==null?void 0:S.columnDef)!=null&&b.enableSorting?n.jsxs("div",{className:"flex w-full items-center justify-center gap-space-02",children:[w.flexRender(s.column.columnDef.header,s.getContext()),n.jsxs(Z.Button,{variant:s.column.getIsSorted()?"default":"ghost",colors:"neutral",size:"icon-xs",rounded:"default",className:"!size-[20px] !p-space-00",onClick:()=>s.column.toggleSorting(),children:[n.jsx(F.ShouldRender,{shouldRender:!!s.column.getIsSorted(),children:n.jsx(h.default,{className:u.cn("transition duration-200",{"rotate-180":s.column.getIsSorted()==="asc"})})}),n.jsx(F.ShouldRender,{shouldRender:!s.column.getIsSorted(),children:n.jsx(ee.default,{})})]})]}):w.flexRender(s.column.columnDef.header,s.getContext())},s.id)})},l.id)})}),n.jsx(i.TableBody,{className:u.cn((D=a==null?void 0:a.tableBody)==null?void 0:D.className),children:(k=c.getRowModel().rows)!=null&&k.length?c.getRowModel().rows.map((l,t)=>{var s;return n.jsx(i.TableRow,{"data-state":l.getIsSelected()&&"selected",onClick:()=>X(l),className:u.cn(x&&"cursor-pointer",(s=a==null?void 0:a.tableRow)==null?void 0:s.className),children:l.getVisibleCells().map(o=>{var S,b,z,H,L;const d=w.flexRender(o.column.columnDef.cell,o.getContext());return n.jsx(i.TableCell,{colSpan:((S=o.column.columnDef.meta)==null?void 0:S.cellColSpan)??1,className:(b=a==null?void 0:a.tableCell)==null?void 0:b.className,"data-title":(z=o.column.columnDef.header)==null?void 0:z.toString(),isLast:((L=(H=c==null?void 0:c.getRowModel())==null?void 0:H.rows)==null?void 0:L.length)-1===t,children:d},o.id)})},l.id)}):n.jsx(i.TableRow,{className:(v=a==null?void 0:a.tableRow)==null?void 0:v.className,children:n.jsx(i.TableCell,{colSpan:p.length,className:"h-24 text-center",children:O})})})]})}),!!c.getFilteredRowModel().rows.length&&Q&&n.jsxs("div",{className:"flex items-center justify-end px-space-04 py-space-02",children:[g?n.jsx(B.Skeleton,{className:"me-auto h-[20px] w-space-12"}):n.jsx(P.PaginationDescription,{currentPage:(e==null?void 0:e.pageNumber)??T,limit:f,totalCount:(e==null?void 0:e.totalItems)??c.getFilteredRowModel().rows.length}),n.jsxs("div",{className:"flex items-center gap-x-space-03",children:[n.jsx(P.LinesPerPage,{value:f,onChange:l=>{e!=null&&e.onPageChange&&(e==null||e.onPageChange(1)),J(+l),e!=null&&e.setLimit&&(e==null||e.setLimit(+l))}}),n.jsx(P.Pagination,{withoutText:!0,className:"justify-center",totalItems:e!=null&&e.totalItems?e==null?void 0:e.totalItems:c.getFilteredRowModel().rows.length??0,selectedPage:(e==null?void 0:e.pageNumber)??T,itemsPerPage:Number(f),onPageChange:l=>{if(e!=null&&e.onPageChange)return e==null?void 0:e.onPageChange(l);c.setPageIndex(l-1)}})]})]})]}):null}exports.DataTable=_;exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),w=require("./index.cjs104.js"),A=require("./index.cjs26.js"),B=require("./index.cjs69.js"),i=require("./index.cjs72.js"),r=require("react"),Y=require("./index.cjs105.js"),u=require("./index.cjs88.js");require("./index.cjs2.js");const P=require("./index.cjs13.js"),Z=require("./index.cjs23.js"),F=require("./index.cjs15.js"),h=require("./index.cjs106.js"),ee=require("./index.cjs107.js"),E=require("./index.cjs108.js");function _({columns:p,data:m,loading:g,NoDataComponent:O,itemsPerPage:R,hasPagination:Q=!0,onClickRow:x,isFirstRowSelected:I=!1,enableRowSelection:N,enableMultiRowSelection:j,rowSelection:V,onRowSelectionChange:$,onSortingChange:C,theme:a,...e}){var y,M,D,k,v;const G=r.useMemo(()=>g?Array(R||10).fill({}):m,[g,R,m]),[f,J]=r.useState(R||10),[q,K]=r.useState([]),U=r.useMemo(()=>{let l=g?p.map(t=>({...t,cell:()=>n.jsx(B.Skeleton,{className:"h-8 w-full"})})):p;return N&&!g&&(l=[{id:"select",header:j?({table:s})=>{var o;return n.jsx(A.Checkbox,{checked:s.getIsAllPageRowsSelected(),onCheckedChange:d=>s.toggleAllPageRowsSelected(!!d),"aria-label":"Select all",className:u.cn((o=a==null?void 0:a.headerSelect)==null?void 0:o.className),size:"sm",colors:"primary"})}:()=>n.jsx("div",{role:"checkbox",className:"w-[48px]","aria-hidden":"true"}),cell:({row:s})=>{var o;return n.jsx(A.Checkbox,{checked:s.getIsSelected(),onCheckedChange:d=>s.toggleSelected(!!d),"aria-label":"Select row",className:u.cn((o=a==null?void 0:a.bodySelect)==null?void 0:o.className),size:"sm",colors:"primary"})},enableSorting:!1,enableHiding:!1},...l]),l},[g,p,N,j]),c=w.useReactTable({data:G,columns:U,getCoreRowModel:E.getCoreRowModel(),getPaginationRowModel:E.getPaginationRowModel(),onRowSelectionChange:$,onSortingChange:l=>{const t=typeof l=="function"?l(q):l;K(t),C==null||C(t)},state:{rowSelection:V||{},sorting:q},enableRowSelection:N,enableMultiRowSelection:j,getRowId:l=>l.id}),W=Y.useMediaQuery("(min-width: 801px)"),T=c.getState().pagination.pageIndex+1,X=l=>{x&&(N?j?l.toggleSelected(!l.getIsSelected()):(c.resetRowSelection(),l.toggleSelected(!0)):(c.resetRowSelection(),l.toggleSelected(!l.getIsSelected())),x(l))};return r.useEffect(()=>{const l=c.getRowModel().rows;if(!I||!l.length||!m.length)return;const t=l[0];c.resetRowSelection(),t.toggleSelected(!0),x&&x(t)},[I,c,m]),r.useEffect(()=>{c.setPageSize(f)},[c,f]),W?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"overflow-hidden rounded-t-3",children:n.jsxs(i.Table,{className:u.cn("w-full table-fixed",(y=a==null?void 0:a.table)==null?void 0:y.className),children:[n.jsx(i.TableHeader,{className:u.cn((M=a==null?void 0:a.tableHeader)==null?void 0:M.className),children:c.getHeaderGroups().map(l=>{var t;return n.jsx(i.TableRow,{className:u.cn("hover:bg-transparent",(t=a==null?void 0:a.tableRow)==null?void 0:t.className),children:l.headers.map(s=>{var o,d,S,b;return n.jsx(i.TableHead,{colSpan:((o=s.column.columnDef.meta)==null?void 0:o.headerColSpan)??1,className:u.cn((d=a==null?void 0:a.tableHead)==null?void 0:d.className),children:s.isPlaceholder?null:(b=(S=s==null?void 0:s.column)==null?void 0:S.columnDef)!=null&&b.enableSorting?n.jsxs("div",{className:"flex w-full items-center justify-center gap-space-02",children:[w.flexRender(s.column.columnDef.header,s.getContext()),n.jsxs(Z.Button,{variant:s.column.getIsSorted()?"default":"ghost",colors:"neutral",size:"icon-xs",rounded:"default",className:"!size-[20px] !p-space-00",onClick:()=>s.column.toggleSorting(),children:[n.jsx(F.ShouldRender,{shouldRender:!!s.column.getIsSorted(),children:n.jsx(h.default,{className:u.cn("transition duration-200",{"rotate-180":s.column.getIsSorted()==="asc"})})}),n.jsx(F.ShouldRender,{shouldRender:!s.column.getIsSorted(),children:n.jsx(ee.default,{})})]})]}):w.flexRender(s.column.columnDef.header,s.getContext())},s.id)})},l.id)})}),n.jsx(i.TableBody,{className:u.cn((D=a==null?void 0:a.tableBody)==null?void 0:D.className),children:(k=c.getRowModel().rows)!=null&&k.length?c.getRowModel().rows.map((l,t)=>{var s;return n.jsx(i.TableRow,{"data-state":l.getIsSelected()&&"selected",onClick:()=>X(l),className:u.cn(x&&"cursor-pointer",(s=a==null?void 0:a.tableRow)==null?void 0:s.className),children:l.getVisibleCells().map(o=>{var S,b,z,H,L;const d=w.flexRender(o.column.columnDef.cell,o.getContext());return n.jsx(i.TableCell,{colSpan:((S=o.column.columnDef.meta)==null?void 0:S.cellColSpan)??1,className:(b=a==null?void 0:a.tableCell)==null?void 0:b.className,"data-title":(z=o.column.columnDef.header)==null?void 0:z.toString(),isLast:((L=(H=c==null?void 0:c.getRowModel())==null?void 0:H.rows)==null?void 0:L.length)-1===t,children:d},o.id)})},l.id)}):n.jsx(i.TableRow,{className:(v=a==null?void 0:a.tableRow)==null?void 0:v.className,children:n.jsx(i.TableCell,{colSpan:p.length,className:"h-24 text-center",children:O})})})]})}),!!c.getFilteredRowModel().rows.length&&Q&&n.jsxs("div",{className:"flex items-center justify-end px-space-04 py-space-02",children:[g?n.jsx(B.Skeleton,{className:"me-auto h-[20px] w-space-12"}):n.jsx(P.PaginationDescription,{currentPage:(e==null?void 0:e.pageNumber)??T,limit:f,totalCount:(e==null?void 0:e.totalItems)??c.getFilteredRowModel().rows.length}),n.jsxs("div",{className:"flex items-center gap-x-space-03",children:[n.jsx(P.LinesPerPage,{value:f,onChange:l=>{e!=null&&e.onPageChange&&(e==null||e.onPageChange(1)),J(+l),e!=null&&e.setLimit&&(e==null||e.setLimit(+l))}}),n.jsx(P.Pagination,{withoutText:!0,className:"justify-center",totalItems:e!=null&&e.totalItems?e==null?void 0:e.totalItems:c.getFilteredRowModel().rows.length??0,selectedPage:(e==null?void 0:e.pageNumber)??T,itemsPerPage:Number(f),onPageChange:l=>{if(e!=null&&e.onPageChange)return e==null?void 0:e.onPageChange(l);c.setPageIndex(l-1)}})]})]})]}):null}exports.DataTable=_;exports.default=_;
package/index.cjs81.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query");function r(c,t,a){const n=t.getQueryData(c),s=t.getQueryState(c),o=i.useIsFetching({queryKey:c},t);return{data:a?a(n):n,status:(s==null?void 0:s.status)??"idle",isError:!!(s!=null&&s.error),error:s==null?void 0:s.error,isFetching:!!o,isPending:(s==null?void 0:s.status)==="pending",isSuccess:(s==null?void 0:s.status)==="success",refetch:()=>{t.resetQueries({queryKey:c})}}}exports.useCachedData=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),p=require("./index.cjs116.js"),x=require("react");require("./index.cjs2.js");const q=require("./index.cjs69.js"),w=require("./index.cjs88.js"),d=require("./index.cjs15.js"),N=({items:s,renderItem:f,options:S,className:a,async:o,onAsyncLoad:r,isLoading:c,renderLoader:n,...g})=>{var h;const u=x.useRef(null),i=p.useVirtualizer({count:s.length,getScrollElement:()=>u.current,estimateSize:()=>35,overscan:5,...S}),t=i.getVirtualItems();return x.useEffect(()=>{if(!o)return;const[e]=[...t].reverse();e&&e.index>=s.length-1&&(r==null||r())},[s.length,t,o,r]),l.jsxs("div",{ref:u,className:w.cn("overflow-y-auto contain-strict",a),...g,children:[l.jsx("div",{className:"relative w-full",style:{height:`${i.getTotalSize()}px`},children:l.jsx("div",{className:"absolute start-0 top-0 w-full",style:{transform:`translateY(${((h=t[0])==null?void 0:h.start)??0}px)`},children:t==null?void 0:t.map(e=>{const j=s[e.index],R=e.index>s.length-1;return l.jsx("div",{ref:i.measureElement,"data-index":e==null?void 0:e.index,children:R?l.jsx(q.Skeleton,{className:"h-[35px] w-full"}):f(j,e)},e==null?void 0:e.index)})})}),l.jsx(d.ShouldRender,{shouldRender:!!n,children:n==null?void 0:n(c)}),l.jsx(d.ShouldRender,{shouldRender:c&&!n,children:l.jsx("p",{children:c?"Loading more...":"Nothing more to load"})})]})};exports.VirtualScroller=N;
package/index.cjs82.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs101.js"),t=a=>(u,e)=>{a.setQueryData(u,r=>typeof e!="function"?e:d.produce(r,c=>{e(c)}))};exports.default=t;exports.useUpdateCachedData=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function a({timeout:e=2e3,onCopy:o}={}){const[i,r]=n.useState(!1);return{isCopied:i,copyToClipboard:t=>{typeof window>"u"||!navigator.clipboard.writeText||t&&navigator.clipboard.writeText(t).then(()=>{r(!0),o&&o(),e!==0&&setTimeout(()=>{r(!1)},e)},console.error)}}}exports.useCopyToClipboard=a;
package/index.cjs83.js CHANGED
@@ -1 +1 @@
1
- "use strict";var d=Object.defineProperty;var g=(n,e,t)=>e in n?d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>(g(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs178.js"),h=require("./index.cjs96.js");require("./index.cjs2.js");const l=require("./index.cjs88.js"),s=class s{constructor(e){i(this,"userManager");i(this,"config");i(this,"user");i(this,"isLoading");i(this,"isAuthenticated");i(this,"error");i(this,"signout",async(e="")=>{var t;this.isLoading=!1,window.location.href=`${(t=this.config)==null?void 0:t.oauth20LogoutUrl}${e}`});this.config=e,this.userManager=new r.UserManager({...h.createIdentityConfig(e),metadata:h.createMetadataConfig(e.authUrl,(e==null?void 0:e.jwks)??"UP_Definition")}),this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0,r.Log.setLogger(console),r.Log.setLevel(r.Log.DEBUG),this.setupEventListeners()}static getInstance(e){return s.instance||(s.instance=new s(e)),s.instance}setupEventListeners(){this.userManager.events.addUserLoaded(e=>{this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.error=void 0,this.isLoading=!1}),this.userManager.events.addUserUnloaded(()=>{this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0}),this.userManager.events.addSilentRenewError(e=>{this.error=e,this.user=null,this.isAuthenticated=!1,this.isLoading=!1}),this.userManager.events.addAccessTokenExpired(()=>{this.refreshToken().then(e=>{if(!e){const{setExpireSession:t}=l.default.getState();t()}})}),this.userManager.events.addUserSignedIn(()=>{this.isLoading=!1,this.error=void 0})}hasAuthParams(e=window.location){let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))}signin(e={}){return this.isLoading=!0,this.error=void 0,this.user=null,this.userManager.signinRedirect({state:e})}completeSignIn(){return this.userManager.signinRedirectCallback().then(async e=>(this.isLoading=!1,e?(this.user=e,this.isAuthenticated=!(e!=null&&e.expired)):this.user=await this.userManager.getUser(),e)).catch(e=>{throw this.isLoading=!1,this.error=e,Error(e)})}getUser(){return this.isLoading=!0,this.userManager.getUser().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.isLoading=!1),e)).catch(e=>{throw this.error=e,this.isLoading=!1,e})}async refreshToken(){return this.userManager.signinSilent().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),localStorage.setItem("accessToken",(e==null?void 0:e.id_token)??"")),e)).catch(e=>(this.error=e,null))}async clearSession(){return new Promise((e,t)=>{const o=window.open("https://iam-dev.moe.gov.sa/pkmslogout","_blank","width=800,height=600,noopener");o?setTimeout(()=>{o.close(),e()},1e3):t(new Error("Unable to open new popup window"))})}};i(s,"instance",null);let a=s;exports.AuthService=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query");function r(c,t,a){const n=t.getQueryData(c),s=t.getQueryState(c),o=i.useIsFetching({queryKey:c},t);return{data:a?a(n):n,status:(s==null?void 0:s.status)??"idle",isError:!!(s!=null&&s.error),error:s==null?void 0:s.error,isFetching:!!o,isPending:(s==null?void 0:s.status)==="pending",isSuccess:(s==null?void 0:s.status)==="success",refetch:()=>{t.resetQueries({queryKey:c})}}}exports.useCachedData=r;
package/index.cjs84.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs88.js"),e=()=>{const{isAuthenticated:t,user:u,nationalId:s}=a.default(r=>r);return{isAuthenticated:t,user:u,nationalId:s}};exports.default=e;exports.useAuth=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs179.js"),t=a=>(u,e)=>{a.setQueryData(u,r=>typeof e!="function"?e:d.produce(r,c=>{e(c)}))};exports.default=t;exports.useUpdateCachedData=t;
package/index.cjs85.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index.cjs92.js"),o=()=>t.useContext(e.AuthContext);exports.useOIDCAuth=o;
1
+ "use strict";var d=Object.defineProperty;var g=(n,e,t)=>e in n?d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>(g(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs180.js"),h=require("./index.cjs98.js");require("./index.cjs2.js");const l=require("./index.cjs90.js"),s=class s{constructor(e){i(this,"userManager");i(this,"config");i(this,"user");i(this,"isLoading");i(this,"isAuthenticated");i(this,"error");i(this,"signout",async(e="")=>{var t;this.isLoading=!1,window.location.href=`${(t=this.config)==null?void 0:t.oauth20LogoutUrl}${e}`});this.config=e,this.userManager=new r.UserManager({...h.createIdentityConfig(e),metadata:h.createMetadataConfig(e.authUrl,(e==null?void 0:e.jwks)??"UP_Definition")}),this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0,r.Log.setLogger(console),r.Log.setLevel(r.Log.DEBUG),this.setupEventListeners()}static getInstance(e){return s.instance||(s.instance=new s(e)),s.instance}setupEventListeners(){this.userManager.events.addUserLoaded(e=>{this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.error=void 0,this.isLoading=!1}),this.userManager.events.addUserUnloaded(()=>{this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0}),this.userManager.events.addSilentRenewError(e=>{this.error=e,this.user=null,this.isAuthenticated=!1,this.isLoading=!1}),this.userManager.events.addAccessTokenExpired(()=>{this.refreshToken().then(e=>{if(!e){const{setExpireSession:t}=l.default.getState();t()}})}),this.userManager.events.addUserSignedIn(()=>{this.isLoading=!1,this.error=void 0})}hasAuthParams(e=window.location){let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))}signin(e={}){return this.isLoading=!0,this.error=void 0,this.user=null,this.userManager.signinRedirect({state:e})}completeSignIn(){return this.userManager.signinRedirectCallback().then(async e=>(this.isLoading=!1,e?(this.user=e,this.isAuthenticated=!(e!=null&&e.expired)):this.user=await this.userManager.getUser(),e)).catch(e=>{throw this.isLoading=!1,this.error=e,Error(e)})}getUser(){return this.isLoading=!0,this.userManager.getUser().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.isLoading=!1),e)).catch(e=>{throw this.error=e,this.isLoading=!1,e})}async refreshToken(){return this.userManager.signinSilent().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),localStorage.setItem("accessToken",(e==null?void 0:e.id_token)??"")),e)).catch(e=>(this.error=e,null))}async clearSession(){return new Promise((e,t)=>{const o=window.open("https://iam-dev.moe.gov.sa/pkmslogout","_blank","width=800,height=600,noopener");o?setTimeout(()=>{o.close(),e()},1e3):t(new Error("Unable to open new popup window"))})}};i(s,"instance",null);let a=s;exports.AuthService=a;
package/index.cjs86.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs130.js"),o=require("./index.cjs122.js"),c=require("./index.cjs179.js"),l=require("./index.cjs98.js"),i=require("./index.cjs156.js"),d=require("./index.cjs90.js"),m=require("./index.cjs180.js"),g=require("./index.cjs80.js"),u=m.extendTailwindMerge({classGroups:{"font-size":["text-caption-01","text-caption-02","text-subtitle-01","text-subtitle-02","text-body-01","text-body-02"]}});function f(...e){return u(s.clsx(e))}const Y={enRegex:/^[a-zA-Z- ]+$/,arRegex:/^[\u0621-\u064A- ]+$/,bothArAndEnRegexonlyLetters:/^[a-zA-Z-\u0621-\u064A ]+$/,bothArAndEnRegexonlyLettersAndNumbers:/^[a-zA-Z0-9-\u0621-\u064A ]+$/,enletterAndNumbersRegex:/^[a-zA-Z0-9]*$/,mobileNumber:/^(5)(\d){8}$/,TelPhone:/^(0096611)(\d){7}$/,nationalId:/^1(\d){9}$/,nationalOrResidentId:/^[12](\d){9}$/,nonSaudianNationalId:/^2(\d){9}$/,tags:/<[^>]*>?/gm,specialCharcter:/[!@#$%^&*()_+\-'~<>/\\?|÷×]/,arSpaceRegex:/^[\u0621-\u064A\s]+$/},h=(e,t)=>(!/^[0-9\u0660-\u0669]+$/.test(e.target.value)&&e.target.value!==""&&(e.target.value=t),e.target.value=e.target.value.replace(/[٠١٢٣٤٥٦٧٨٩]/g,n=>String(n.charCodeAt(0)-1632)).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,n=>String(n.charCodeAt(0)-1776)),e),b=(...e)=>e.map(t=>t.split(" ").map(r=>process.env.NODE_ENV==="production"?`er-${r}`:r).join(" ")).join(" "),x=()=>{const{lang:e}=d.default(t=>t);return(t="",r="")=>String(e).toLocaleLowerCase()==="ar"?t:r||t};function A(e,t){let r=null;return function(...n){const a=()=>{r=null,e.apply(this,n)};r!==null&&clearTimeout(r),r=setTimeout(a,t)}}const p=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{day:"2-digit",month:"short",year:"numeric"}),D=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{timeStyle:"short"}),S=({date:e,format:t,isHijri:r=!1,hasHijriFormat:n})=>{const a=document.dir==="rtl";switch(o.default.updateLocale(a?"ar-sa":"en",{}),t){case"short":return o.default(e).format(a?i.DateFormat.ArShort:i.DateFormat.EnShort);case"mid":return o.default(e).format("dddd");case"long":return r?c.default(e,n?"iDD/iMM/iYYYY":void 0).format(a?"iYYYY/iM/iD":"iD/iM/iYYYY"):o.default(new Date(e??""),"DD-MM-YYYY").format(a?"YYYY/M/D":"D/M/YYYY")}},w=e=>{const{toast:t}=g.useToast();navigator.clipboard.writeText(e).then(()=>{t({description:l.strings.Shared.CopiedSuccessfully})})};exports.cn=f;exports.dateFormatter=S;exports.debounce=A;exports.formatter=p;exports.formatterTime=D;exports.handleArabicNumbers=h;exports.langRegex=Y;exports.tw=b;exports.twMerge=u;exports.useShareLink=w;exports.useSwitchData=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs90.js"),e=()=>{const{isAuthenticated:t,user:u,nationalId:s}=a.default(r=>r);return{isAuthenticated:t,user:u,nationalId:s}};exports.default=e;exports.useAuth=e;
package/index.cjs87.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs170.js"),u=require("./index.cjs89.js"),c=({state:e})=>{var o,i,n,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=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMax=Number((n=e.fontSize)==null?void 0:n.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)},f=({state:e})=>{var o,i,n,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=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMin=Number((n=e.fontSize)==null?void 0:n.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=s.create()(u.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=>{c({state:o})}),decreaseSize:()=>e(o=>{f({state:o})}),defaultSize:()=>e(o=>{var i;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"})),d=m;exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index.cjs94.js"),o=()=>t.useContext(e.AuthContext);exports.useOIDCAuth=o;
package/index.cjs88.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs170.js"),i=require("./index.cjs89.js"),m=r.create()(i.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"})),n=m;exports.default=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs131.js"),o=require("./index.cjs123.js"),c=require("./index.cjs181.js"),l=require("./index.cjs100.js"),i=require("./index.cjs157.js"),d=require("./index.cjs92.js"),m=require("./index.cjs182.js"),g=require("./index.cjs80.js"),u=m.extendTailwindMerge({classGroups:{"font-size":["text-caption-01","text-caption-02","text-subtitle-01","text-subtitle-02","text-body-01","text-body-02"]}});function f(...e){return u(s.clsx(e))}const Y={enRegex:/^[a-zA-Z- ]+$/,arRegex:/^[\u0621-\u064A- ]+$/,bothArAndEnRegexonlyLetters:/^[a-zA-Z-\u0621-\u064A ]+$/,bothArAndEnRegexonlyLettersAndNumbers:/^[a-zA-Z0-9-\u0621-\u064A ]+$/,enletterAndNumbersRegex:/^[a-zA-Z0-9]*$/,mobileNumber:/^(5)(\d){8}$/,TelPhone:/^(0096611)(\d){7}$/,nationalId:/^1(\d){9}$/,nationalOrResidentId:/^[12](\d){9}$/,nonSaudianNationalId:/^2(\d){9}$/,tags:/<[^>]*>?/gm,specialCharcter:/[!@#$%^&*()_+\-'~<>/\\?|÷×]/,arSpaceRegex:/^[\u0621-\u064A\s]+$/},h=(e,t)=>(!/^[0-9\u0660-\u0669]+$/.test(e.target.value)&&e.target.value!==""&&(e.target.value=t),e.target.value=e.target.value.replace(/[٠١٢٣٤٥٦٧٨٩]/g,n=>String(n.charCodeAt(0)-1632)).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,n=>String(n.charCodeAt(0)-1776)),e),b=(...e)=>e.map(t=>t.split(" ").map(r=>process.env.NODE_ENV==="production"?`er-${r}`:r).join(" ")).join(" "),x=()=>{const{lang:e}=d.default(t=>t);return(t="",r="")=>String(e).toLocaleLowerCase()==="ar"?t:r||t};function A(e,t){let r=null;return function(...n){const a=()=>{r=null,e.apply(this,n)};r!==null&&clearTimeout(r),r=setTimeout(a,t)}}const p=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{day:"2-digit",month:"short",year:"numeric"}),D=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{timeStyle:"short"}),S=({date:e,format:t,isHijri:r=!1,hasHijriFormat:n})=>{const a=document.dir==="rtl";switch(o.default.updateLocale(a?"ar-sa":"en",{}),t){case"short":return o.default(e).format(a?i.DateFormat.ArShort:i.DateFormat.EnShort);case"mid":return o.default(e).format("dddd");case"long":return r?c.default(e,n?"iDD/iMM/iYYYY":void 0).format(a?"iYYYY/iM/iD":"iD/iM/iYYYY"):o.default(new Date(e??""),"DD-MM-YYYY").format(a?"YYYY/M/D":"D/M/YYYY")}},w=e=>{const{toast:t}=g.useToast();navigator.clipboard.writeText(e).then(()=>{t({description:l.strings.Shared.CopiedSuccessfully})})};exports.cn=f;exports.dateFormatter=S;exports.debounce=A;exports.formatter=p;exports.formatterTime=D;exports.handleArabicNumbers=h;exports.langRegex=Y;exports.tw=b;exports.twMerge=u;exports.useShareLink=w;exports.useSwitchData=x;
package/index.cjs89.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs181.js"),s=require("./index.cjs182.js"),l={name:"Store",enabled:!0,serialize:{options:!1}},r=(e,t=l)=>o.devtools(s.immer(e),t),i=r;exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs171.js"),u=require("./index.cjs91.js"),c=({state:e})=>{var o,i,n,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=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMax=Number((n=e.fontSize)==null?void 0:n.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)},f=({state:e})=>{var o,i,n,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=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMin=Number((n=e.fontSize)==null?void 0:n.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=s.create()(u.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=>{c({state:o})}),decreaseSize:()=>e(o=>{f({state:o})}),defaultSize:()=>e(o=>{var i;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"})),d=m;exports.default=d;
package/index.cjs9.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("./index.cjs108.js"),n=require("react"),i=require("./index.cjs86.js"),N=h.cva("grid border-b border-border-secondary",{variants:{variant:{default:"[&>dt]:text-foreground-secondary",list:"[&>dd]:text-card-foreground"},size:{default:"text-body-01",sm:"text-caption-01"},orientation:{vertical:"grid-cols-1 gap-space-01",horizental:"grid-cols-1 gap-space-02 sm:grid-cols-[min(50%,theme(spacing.80))_auto]"},lastItem:{true:"border-none"},stretch:{true:""},padding:{default:"p-space-04",none:"p-space-00"}},compoundVariants:[{orientation:"horizental",stretch:!0,className:"sm:grid-cols-2 sm:[&>dd]:text-end"}],defaultVariants:{orientation:"horizental",variant:"default",padding:"default",size:"default"}}),o=n.forwardRef(({children:t,className:r,...a},s)=>e.jsx("div",{ref:s,className:i.cn("rounded-2 bg-background",r),...a,children:t}));o.displayName="Description";const d=n.forwardRef(({icon:t,isSingleLine:r=!0,variant:a,title:s,children:c,orientation:l,stretch:u,lastItem:p,size:m,padding:g,className:f,...x},b)=>e.jsxs("dl",{ref:b,className:i.cn(N({variant:a,orientation:l,size:m,stretch:u,lastItem:p,padding:g}),f),...x,children:[e.jsxs("dt",{className:"col-start-1 inline-flex items-center gap-space-01",children:[t&&e.jsx(t,{className:"h-8 w-8 shrink-0"}),s,":"]}),e.jsx("dd",{className:i.cn({"line-clamp-1":r}),children:c})]}));d.displayName="DescriptionItem";exports.Description=o;exports.DescriptionItem=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("./index.cjs109.js"),n=require("react"),i=require("./index.cjs88.js"),N=h.cva("grid border-b border-border-secondary",{variants:{variant:{default:"[&>dt]:text-foreground-secondary",list:"[&>dd]:text-card-foreground"},size:{default:"text-body-01",sm:"text-caption-01"},orientation:{vertical:"grid-cols-1 gap-space-01",horizental:"grid-cols-1 gap-space-02 sm:grid-cols-[min(50%,theme(spacing.80))_auto]"},lastItem:{true:"border-none"},stretch:{true:""},padding:{default:"p-space-04",none:"p-space-00"}},compoundVariants:[{orientation:"horizental",stretch:!0,className:"sm:grid-cols-2 sm:[&>dd]:text-end"}],defaultVariants:{orientation:"horizental",variant:"default",padding:"default",size:"default"}}),o=n.forwardRef(({children:t,className:r,...a},s)=>e.jsx("div",{ref:s,className:i.cn("rounded-2 bg-background",r),...a,children:t}));o.displayName="Description";const d=n.forwardRef(({icon:t,isSingleLine:r=!0,variant:a,title:s,children:c,orientation:l,stretch:u,lastItem:p,size:m,padding:g,className:f,...x},b)=>e.jsxs("dl",{ref:b,className:i.cn(N({variant:a,orientation:l,size:m,stretch:u,lastItem:p,padding:g}),f),...x,children:[e.jsxs("dt",{className:"col-start-1 inline-flex items-center gap-space-01",children:[t&&e.jsx(t,{className:"h-8 w-8 shrink-0"}),s,":"]}),e.jsx("dd",{className:i.cn({"line-clamp-1":r}),children:c})]}));d.displayName="DescriptionItem";exports.Description=o;exports.DescriptionItem=d;
package/index.cjs90.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs170.js"),o=require("./index.cjs89.js"),a=l.create()(o.default(n=>({lang:localStorage.getItem("lang")??"ar",dir:localStorage.getItem("lang")==="en"?"ltr":"rtl",changeLang:e=>n(t=>{e!==t.lang&&(localStorage.setItem("lang",e),window.location.pathname==="/login/verification"?window.location.replace("/login"):window.location.reload())})}),{name:"lanugage"})),g=a;exports.default=g;exports.useLanguage=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs171.js"),i=require("./index.cjs91.js"),m=r.create()(i.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"})),n=m;exports.default=n;
package/index.cjs91.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,e)=>{switch(e.type){case"INITIALISED":case"USER_LOADED":return{...r,user:e.user,isLoading:!1,isAuthenticated:e.user?!e.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...r,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...r,isLoading:!0,activeNavigator:e.method};case"NAVIGATOR_CLOSE":return{...r,isLoading:!1,activeNavigator:void 0};case"ERROR":return{...r,isLoading:!1,error:e.error};default:return{...r,isLoading:!1,error:new Error(`unknown type ${e.type}`)}}};exports.reducer=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs183.js"),s=require("./index.cjs184.js"),l={name:"Store",enabled:!0,serialize:{options:!1}},r=(e,t=l)=>o.devtools(s.immer(e),t),i=r;exports.default=i;
package/index.cjs92.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(void 0);t.displayName="AuthContext";exports.AuthContext=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs171.js"),o=require("./index.cjs91.js"),a=l.create()(o.default(n=>({lang:localStorage.getItem("lang")??"ar",dir:localStorage.getItem("lang")==="en"?"ltr":"rtl",changeLang:e=>n(t=>{e!==t.lang&&(localStorage.setItem("lang",e),window.location.pathname==="/login/verification"?window.location.replace("/login"):window.location.reload())})}),{name:"lanugage"})),g=a;exports.default=g;exports.useLanguage=a;
package/index.cjs93.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),s=require("react"),A=require("./index.cjs178.js"),C=require("./index.cjs92.js"),b=require("./index.cjs94.js"),I=require("./index.cjs91.js"),d=require("./index.cjs95.js"),M=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],q=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],g=i=>()=>{throw new Error(`UserManager#${i} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},h=typeof window>"u"?null:A.UserManager,P=i=>{const{children:m,onSigninCallback:o,skipSigninCallback:p,matchSignoutCallback:u,onSignoutCallback:c,onRemoveUser:R,userManager:E=null,...S}=i,[e]=s.useState(()=>E??(h?new h(S):{settings:S})),[f,n]=s.useReducer(I.reducer,b.initialAuthState),w=s.useMemo(()=>Object.assign({settings:e.settings,events:e.events},Object.fromEntries(M.map(t=>{var r;return[t,((r=e[t])==null?void 0:r.bind(e))??g(t)]})),Object.fromEntries(q.map(t=>[t,e[t]?async r=>{n({type:"NAVIGATOR_INIT",method:t});try{return await e[t](r)}catch(a){return n({type:"ERROR",error:a}),null}finally{n({type:"NAVIGATOR_CLOSE"})}}:g(t)]))),[e]),v=s.useRef(!1);s.useEffect(()=>{!e||v.current||(v.current=!0,(async()=>{let t=null;try{d.hasAuthParams()&&!p&&(t=await e.signinCallback(),o&&await o(t)),t=t||await e.getUser(),n({type:"INITIALISED",user:t})}catch(r){n({type:"ERROR",error:d.signinError(r)})}try{u&&u(e.settings)&&(await e.signoutCallback(),c&&await c())}catch(r){n({type:"ERROR",error:d.signoutError(r)})}})())},[e,p,o,c,u]),s.useEffect(()=>{if(!e)return;const t=l=>{n({type:"USER_LOADED",user:l})};e.events.addUserLoaded(t);const r=()=>{n({type:"USER_UNLOADED"})};e.events.addUserUnloaded(r);const a=()=>{n({type:"USER_SIGNED_OUT"})};e.events.addUserSignedOut(a);const U=l=>{n({type:"ERROR",error:l})};return e.events.addSilentRenewError(U),()=>{e.events.removeUserLoaded(t),e.events.removeUserUnloaded(r),e.events.removeUserSignedOut(a),e.events.removeSilentRenewError(U)}},[e]);const O=s.useCallback(e?()=>e.removeUser().then(R):g("removeUser"),[e,R]);return y.jsx(C.AuthContext.Provider,{value:{...f,...w,removeUser:O},children:m})};exports.AuthProvider=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,e)=>{switch(e.type){case"INITIALISED":case"USER_LOADED":return{...r,user:e.user,isLoading:!1,isAuthenticated:e.user?!e.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...r,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...r,isLoading:!0,activeNavigator:e.method};case"NAVIGATOR_CLOSE":return{...r,isLoading:!1,activeNavigator:void 0};case"ERROR":return{...r,isLoading:!1,error:e.error};default:return{...r,isLoading:!1,error:new Error(`unknown type ${e.type}`)}}};exports.reducer=s;
package/index.cjs94.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={isLoading:!0,isAuthenticated:!1};exports.initialAuthState=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(void 0);t.displayName="AuthContext";exports.AuthContext=t;
package/index.cjs95.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e=window.location)=>{let r=new URLSearchParams(e.search);return!!((r.get("code")||r.get("error"))&&r.get("state")||(r=new URLSearchParams(e.hash.replace("#","?")),(r.get("code")||r.get("error"))&&r.get("state")))},t=e=>r=>r instanceof Error?r:new Error(e),a=t("Sign-in failed"),o=t("Sign-out failed");exports.hasAuthParams=n;exports.signinError=a;exports.signoutError=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),s=require("react"),A=require("./index.cjs180.js"),C=require("./index.cjs94.js"),b=require("./index.cjs96.js"),I=require("./index.cjs93.js"),d=require("./index.cjs97.js"),M=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],q=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],g=i=>()=>{throw new Error(`UserManager#${i} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},h=typeof window>"u"?null:A.UserManager,P=i=>{const{children:m,onSigninCallback:o,skipSigninCallback:p,matchSignoutCallback:u,onSignoutCallback:c,onRemoveUser:R,userManager:E=null,...S}=i,[e]=s.useState(()=>E??(h?new h(S):{settings:S})),[f,n]=s.useReducer(I.reducer,b.initialAuthState),w=s.useMemo(()=>Object.assign({settings:e.settings,events:e.events},Object.fromEntries(M.map(t=>{var r;return[t,((r=e[t])==null?void 0:r.bind(e))??g(t)]})),Object.fromEntries(q.map(t=>[t,e[t]?async r=>{n({type:"NAVIGATOR_INIT",method:t});try{return await e[t](r)}catch(a){return n({type:"ERROR",error:a}),null}finally{n({type:"NAVIGATOR_CLOSE"})}}:g(t)]))),[e]),v=s.useRef(!1);s.useEffect(()=>{!e||v.current||(v.current=!0,(async()=>{let t=null;try{d.hasAuthParams()&&!p&&(t=await e.signinCallback(),o&&await o(t)),t=t||await e.getUser(),n({type:"INITIALISED",user:t})}catch(r){n({type:"ERROR",error:d.signinError(r)})}try{u&&u(e.settings)&&(await e.signoutCallback(),c&&await c())}catch(r){n({type:"ERROR",error:d.signoutError(r)})}})())},[e,p,o,c,u]),s.useEffect(()=>{if(!e)return;const t=l=>{n({type:"USER_LOADED",user:l})};e.events.addUserLoaded(t);const r=()=>{n({type:"USER_UNLOADED"})};e.events.addUserUnloaded(r);const a=()=>{n({type:"USER_SIGNED_OUT"})};e.events.addUserSignedOut(a);const U=l=>{n({type:"ERROR",error:l})};return e.events.addSilentRenewError(U),()=>{e.events.removeUserLoaded(t),e.events.removeUserUnloaded(r),e.events.removeUserSignedOut(a),e.events.removeSilentRenewError(U)}},[e]);const O=s.useCallback(e?()=>e.removeUser().then(R):g("removeUser"),[e,R]);return y.jsx(C.AuthContext.Provider,{value:{...f,...w,removeUser:O},children:m})};exports.AuthProvider=P;
package/index.cjs96.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>({authority:e.authUrl,client_id:e.clientId,client_secret:e.clientSecret,redirect_uri:`${e.baseUrl}/login/sso/callback`,login:e.authUrl,automaticSilentRenew:!1,loadUserInfo:!1,silent_redirect_uri:`${e.baseUrl}/login/sso/callback`,post_logout_redirect_uri:`${e.baseUrl}/logout/sso`,audience:e.baseUrl,responseType:"code",grantType:"authorization_code",scope:"openid NationalID offline_access",webAuthResponseType:"code",disablePKCE:e.disablePKCE??!1}),i=(e,t)=>({issuer:"https://iam-dev.moe.gov.sa",jwks_uri:`${e}/jwks/${t}`,authorization_endpoint:`${e}/authorize`,token_endpoint:`${e}/token`,userinfo_endpoint:`${e}/userinfo`,end_session_endpoint:`${e}/revoke`,check_session_iframe:`${e}/checksession`,revocation_endpoint:`${e}/revoke`,introspection_endpoint:`${e}/introspect`});exports.createIdentityConfig=o;exports.createMetadataConfig=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={isLoading:!0,isAuthenticated:!1};exports.initialAuthState=t;
package/index.cjs97.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs170.js"),e=require("./index.cjs156.js"),d=require("./index.cjs89.js"),r=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):document.body.classList.remove("dark")},o=a.create()(d.default(s=>({theme:e.THEME.SYSTEM,setTheme:t=>{switch(localStorage.setItem("defaultTheme",String(t)),+t){case e.THEME.LIGHT:document.body.classList.remove("dark");break;case e.THEME.DARK:document.body.classList.add("dark");break;case e.THEME.SYSTEM:r(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",r),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",r);break}return s({theme:t})}}),{name:"theme"}));exports.useThemeStore=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e=window.location)=>{let r=new URLSearchParams(e.search);return!!((r.get("code")||r.get("error"))&&r.get("state")||(r=new URLSearchParams(e.hash.replace("#","?")),(r.get("code")||r.get("error"))&&r.get("state")))},t=e=>r=>r instanceof Error?r:new Error(e),a=t("Sign-in failed"),o=t("Sign-out failed");exports.hasAuthParams=n;exports.signinError=a;exports.signoutError=o;
package/index.cjs98.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react-localization"),r=require("./index.cjs99.js"),s=require("./index.cjs100.js"),t=new e({ar:r.ar,en:s.en}),a=n=>t.setLanguage(n);exports.default=e;exports.setLanguage=a;exports.strings=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>({authority:e.authUrl,client_id:e.clientId,client_secret:e.clientSecret,redirect_uri:`${e.baseUrl}/login/sso/callback`,login:e.authUrl,automaticSilentRenew:!1,loadUserInfo:!1,silent_redirect_uri:`${e.baseUrl}/login/sso/callback`,post_logout_redirect_uri:`${e.baseUrl}/logout/sso`,audience:e.baseUrl,responseType:"code",grantType:"authorization_code",scope:"openid NationalID offline_access",webAuthResponseType:"code",disablePKCE:e.disablePKCE??!1}),i=(e,t)=>({issuer:"https://iam-dev.moe.gov.sa",jwks_uri:`${e}/jwks/${t}`,authorization_endpoint:`${e}/authorize`,token_endpoint:`${e}/token`,userinfo_endpoint:`${e}/userinfo`,end_session_endpoint:`${e}/revoke`,check_session_iframe:`${e}/checksession`,revocation_endpoint:`${e}/revoke`,introspection_endpoint:`${e}/introspect`});exports.createIdentityConfig=o;exports.createMetadataConfig=i;
package/index.cjs99.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} يجب ان لا يتجاوز {1} حرف",required:"{0} اجباري"},Shared:{trialVersion:"نسخة تجريبية",soon:"قريبًا",NationalId:"الهوية الوطنية",ResidentID:"الإقامة",Welcome:"أهلًا ",Login:"تسجيل الدخول",Logout:"تسجيل الخروج",InformationPanel:"لوحة المعلومات",AccountSettings:"إعدادات الحساب",Chat:"تواصل معنا",TechnicalSupport:"الدعم الفني",FullName:"الاسم الكامل",PersonalInformation:"المعلومات الشخصية",TicketInformation:"معلومات التذكرة",TicketDetails:"تفاصيل التذكرة",Title:"العنوان",Description:"الوصف",Enter:"ادخل",AddSupportingFiles:"أرفق ملفات داعمة",Send:"إرسال",Submit:"إرسال الطلب",Cancel:"إلغاء",Main:"الرئيسية",Select:"اختر",NotRobot:"الرجاء التحقق",Search:"بحث",Number:"الرقم",Date:"التاريخ",hijriCalendar:"التاريخ الهجري",male:"ذكر",female:"أنثى",submit:"ارسال",next:"التالي",previous:"السابق",morePages:"المزيد",Total:"الإجمالي",YearTitle:"السنة",MonthTitle:"الشهر",PaginationDesc:"الصفحة {0} من {1}",LinesPerPage:"عدد السطور بالصفحة: ",Actions:"الإجراءات",ViewDetails:"عرض التفاصيل",Language:"اللغة",Specify:"حدد",ServerError:"عفوًا، حدث خطأ ما",BackToHome:"العودة للصفحة الرئيسية",NoDataFound:"لا توجد بيانات",showResults:"عرض النتائج",reset:"إعادة التعيين",CopiedSuccessfully:"تم النسخ بنجاح",comma:"،",accessibilityTools:"أداة سهولة الوصول",sortBy:"تصنيف حسب",siteLanguageText:"English",lightMode:"الوضع الفاتح",darkMode:"الوضع الداكن",showLess:"أظهر أقل",showMore:"أظهر أكثر",noResultsFound:"لا توجد نتائج",Clear:"مسح"},Footer:{KSA:"وزارة التعليم - المملكة العربية السعودية",TermsAndConditions:"الشروط والأحكام",PolicyAndPrivacy:"سياسة الخصوصية",RegulationsPolicies:"اللوائح والسياسات",Rights:" جميع الحقوق محفوظة لوزارة التعليم © {0}",Version:"نسخة رقم ",DevelopedByTetco:"تطوير وتشغيل شركة تطوير لتقنيات التعليم"},DragAndDrop:{SaveCustomization:"حفظ",Delete:"إزالة",Half:"تصغير",Full:"توسيع",Width:"العرض",Show:"اظهار",AddToDashboard:"خصص تجربتك"},Attachments:{error:"عفوًا، صيغة أو حجم المرفق غير مسموح بها",Attachments:"المرفقات",AddAttachment:"أرفق الملفات",dragFiles:"اسحب و أفلت الملفات هنا للرفع",browseFile:"تصفح الملفات",uploadFiles:"رفع المرفقات",allowedFormats:"وتشمل الصيغ المدعومة {0}",maxSize:"الحد الأقصى لحجم الملف المسموح به هو {0} ميجابايت",ApplyFile:"تقديم الملف",maxAcceptedFilesCount:"أقصى عدد من الملفات التي يمكنك إرفاقها هنا هو {0} ملفات",attachedFile:"مرفق ملف"},Accessibility:{Accessibility:"تمكين الوصول",FontSize:"حجم الخط",IncreaseFontSize:"تكبير حجم الخط",DecreaseFontSize:"تصغير حجم الخط",ColorContrast:"تباين الألوان",SignLanguage:"دعم لغة الإشارة",VoiceCommands:"الأوامر الصوتية"},DigitalSignatureContent:{secureTitle:"المواقع الالكترونية الحكومية تستخدم بروتوكول {0} للتشفير و الأمان.",secureDesc:"المواقع الالكترونية الآمنة في المملكة العربية السعودية تستخدم بروتوكول HTTPS للتشفير.",registered:"مسجل لدى هيئة الحكومة الرقمية برقم :",howCheck:"كيف تتحقق؟",officialSite:"موقع حكومي رسمي تابع لحكومة المملكة العربية السعودية",govSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",govSaDesc:"جميع روابط المواقع الرسمية التابعة للجهات الحكومية في المملكة العربية السعودية تنتهي بـ .gov.sa",eduSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",eduSaDesc:"جميع روابط المواقع الرسمية التعليمية في المملكة العربية السعودية تنتهي بـ sch.sa أو edu.sa",orgSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",orgSaDesc:"جميع روابط المواقع الرسمية للمؤسسات الغير ربحية في المملكة العربية السعودية تنتهي بـ org.sa",saTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",saDesc:"جميع روابط المواقع الرسمية للأنشطة والمبادرات في المملكة العربية السعودية تنتهي بـ sa.",schSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",schSaDesc:"جميع روابط المواقع الرسمية التعليمية في المملكة العربية السعودية تنتهي بـ sch.sa أو edu.sa"}};exports.ar=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs171.js"),e=require("./index.cjs157.js"),d=require("./index.cjs91.js"),r=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):document.body.classList.remove("dark")},o=a.create()(d.default(s=>({theme:e.THEME.SYSTEM,setTheme:t=>{switch(localStorage.setItem("defaultTheme",String(t)),+t){case e.THEME.LIGHT:document.body.classList.remove("dark");break;case e.THEME.DARK:document.body.classList.add("dark");break;case e.THEME.SYSTEM:r(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",r),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",r);break}return s({theme:t})}}),{name:"theme"}));exports.useThemeStore=o;
package/index.es.d.ts CHANGED
@@ -46,7 +46,6 @@ import { NameType } from 'recharts/types/component/DefaultTooltipContent';
46
46
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
47
47
  import { Payload } from 'recharts/types/component/DefaultTooltipContent';
48
48
  import * as PopoverPrimitive from '@radix-ui/react-popover';
49
- import { PopoverProps } from '@radix-ui/react-popover';
50
49
  import * as ProgressPrimitive from '@radix-ui/react-progress';
51
50
  import { PropsWithChildren } from 'react';
52
51
  import { QueryClient } from '@tanstack/react-query';
@@ -104,6 +103,8 @@ import { UserManagerSettings } from 'oidc-client-ts';
104
103
  import { useWatch } from 'react-hook-form';
105
104
  import { ValueType as ValueType_2 } from 'recharts/types/component/DefaultTooltipContent';
106
105
  import { VariantProps } from 'class-variance-authority';
106
+ import { VirtualItem } from '@tanstack/react-virtual';
107
+ import { VirtualizerOptions } from '@tanstack/react-virtual';
107
108
  import { WritableDraft } from 'immer';
108
109
 
109
110
  declare type AcceptedFormatsType = Record<string, string[]>;
@@ -631,7 +632,7 @@ declare type Colors = 'default' | 'neutral';
631
632
 
632
633
  export { ColumnDef }
633
634
 
634
- export declare const Combobox: default_2.FC<PopoverProps>;
635
+ export declare const Combobox: typeof Popover;
635
636
 
636
637
  export declare const ComboboxContent: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLDivElement> & default_2.RefAttributes<HTMLDivElement>>;
637
638
 
@@ -1595,15 +1596,15 @@ declare const PaginationPrevious: {
1595
1596
  displayName: string;
1596
1597
  };
1597
1598
 
1598
- export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
1599
+ export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX_2.Element;
1599
1600
 
1600
- export declare const PopoverArrow: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverArrowProps & React_2.RefAttributes<SVGSVGElement>>;
1601
+ export declare function PopoverAnchor({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Anchor>): JSX_2.Element;
1601
1602
 
1602
- export declare const PopoverClose: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
1603
+ export declare function PopoverClose({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Close>): JSX_2.Element;
1603
1604
 
1604
- export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1605
+ export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>): JSX_2.Element;
1605
1606
 
1606
- export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
1607
+ export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX_2.Element;
1607
1608
 
1608
1609
  export declare const Progress: React_2.ForwardRefExoticComponent<ProgressProps & React_2.RefAttributes<HTMLDivElement>>;
1609
1610
 
@@ -2133,6 +2134,7 @@ showLess: string;
2133
2134
  showMore: string;
2134
2135
  noResultsFound: string;
2135
2136
  Clear: string;
2137
+ Of: string;
2136
2138
  };
2137
2139
  Footer: {
2138
2140
  KSA: string;
@@ -2257,6 +2259,7 @@ showLess: string;
2257
2259
  showMore: string;
2258
2260
  noResultsFound: string;
2259
2261
  Clear: string;
2262
+ Of: string;
2260
2263
  };
2261
2264
  Footer: {
2262
2265
  KSA: string;
@@ -2565,6 +2568,14 @@ export { useCommandState }
2565
2568
 
2566
2569
  export { useController }
2567
2570
 
2571
+ export declare function useCopyToClipboard({ timeout, onCopy, }?: {
2572
+ timeout?: number;
2573
+ onCopy?: () => void;
2574
+ }): {
2575
+ isCopied: boolean;
2576
+ copyToClipboard: (value: string) => void;
2577
+ };
2578
+
2568
2579
  export { useFieldArray }
2569
2580
 
2570
2581
  export { useForm }
@@ -2644,6 +2655,28 @@ export { useWatch }
2644
2655
 
2645
2656
  declare type ValueType = string | number;
2646
2657
 
2658
+ /**
2659
+ * The props for the VirtualScroller component.
2660
+ * @param items - The items to display in the virtual scroller.
2661
+ * @param renderItem - The function to render each item.
2662
+ * @param options - The options for the virtual scroller.
2663
+ * @param onAsyncLoad - The function to load more data when the end of the list is reached.
2664
+ * @param isLoading - The flag to indicate if the list is loading.
2665
+ * @param async - The flag to indicate if the list is infinite.
2666
+ * @param renderLoader - The function to render the loader.
2667
+ */
2668
+ export declare const VirtualScroller: <T>({ items, renderItem, options, className, async, onAsyncLoad, isLoading, renderLoader, ...rest }: VirtualScrollerProps<T>) => JSX_2.Element;
2669
+
2670
+ declare interface VirtualScrollerProps<T> extends default_2.HTMLAttributes<HTMLDivElement> {
2671
+ items: T[];
2672
+ renderItem: (item: T, virtualItem?: VirtualItem) => default_2.ReactNode;
2673
+ options?: Partial<VirtualizerOptions<HTMLDivElement, HTMLDivElement>>;
2674
+ onAsyncLoad?: () => void;
2675
+ isLoading?: boolean;
2676
+ async?: boolean;
2677
+ renderLoader?: (isLoading?: boolean) => default_2.ReactNode;
2678
+ }
2679
+
2647
2680
  export declare const Widget: React_2.ForwardRefExoticComponent<WidgetProps & React_2.RefAttributes<HTMLDivElement>>;
2648
2681
 
2649
2682
  export declare interface WidgetActionItem extends Partial<ButtonProps> {