mada-design-system 0.7.1 → 0.7.2

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 (855) hide show
  1. package/index.cjs.js +1 -1
  2. package/index.cjs10.js +1 -1
  3. package/index.cjs100.js +1 -1
  4. package/index.cjs101.js +1 -1
  5. package/index.cjs102.js +1 -1
  6. package/index.cjs103.js +1 -1
  7. package/index.cjs104.js +1 -1
  8. package/index.cjs105.js +1 -1
  9. package/index.cjs106.js +1 -1
  10. package/index.cjs107.js +1 -1
  11. package/index.cjs108.js +1 -1
  12. package/index.cjs109.js +1 -1
  13. package/index.cjs11.js +1 -1
  14. package/index.cjs110.js +1 -5
  15. package/index.cjs111.js +5 -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 -1
  28. package/index.cjs123.js +1 -4
  29. package/index.cjs124.js +4 -1
  30. package/index.cjs125.js +1 -2
  31. package/index.cjs126.js +2 -1
  32. package/index.cjs127.js +1 -2
  33. package/index.cjs128.js +2 -1
  34. package/index.cjs129.js +1 -1
  35. package/index.cjs13.js +1 -1
  36. package/index.cjs130.js +1 -1
  37. package/index.cjs131.js +1 -1
  38. package/index.cjs132.js +1 -1
  39. package/index.cjs133.js +1 -1
  40. package/index.cjs134.js +1 -1
  41. package/index.cjs135.js +1 -20
  42. package/index.cjs136.js +20 -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 -1
  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 +1 -4
  113. package/index.cjs201.js +4 -1
  114. package/index.cjs202.js +1 -1
  115. package/index.cjs203.js +1 -1
  116. package/index.cjs204.js +1 -1
  117. package/index.cjs205.js +1 -3
  118. package/index.cjs206.js +3 -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 -1
  150. package/index.cjs235.js +1 -1
  151. package/index.cjs236.js +1 -3
  152. package/index.cjs237.js +3 -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.cjs251.js +1 -1
  168. package/index.cjs252.js +1 -2
  169. package/index.cjs253.js +2 -1
  170. package/index.cjs254.js +1 -1
  171. package/index.cjs255.js +1 -1
  172. package/index.cjs256.js +1 -1
  173. package/index.cjs257.js +1 -1
  174. package/index.cjs258.js +1 -1
  175. package/index.cjs259.js +1 -1
  176. package/index.cjs26.js +1 -1
  177. package/index.cjs260.js +1 -1
  178. package/index.cjs261.js +1 -1
  179. package/index.cjs262.js +1 -1
  180. package/index.cjs263.js +1 -1
  181. package/index.cjs264.js +1 -1
  182. package/index.cjs265.js +1 -1
  183. package/index.cjs266.js +1 -1
  184. package/index.cjs267.js +1 -1
  185. package/index.cjs268.js +1 -2
  186. package/index.cjs269.js +2 -1
  187. package/index.cjs27.js +1 -1
  188. package/index.cjs270.js +1 -1
  189. package/index.cjs271.js +1 -1
  190. package/index.cjs272.js +1 -1
  191. package/index.cjs273.js +1 -1
  192. package/index.cjs274.js +1 -1
  193. package/index.cjs275.js +1 -1
  194. package/index.cjs276.js +1 -1
  195. package/index.cjs277.js +1 -1
  196. package/index.cjs278.js +1 -1
  197. package/index.cjs279.js +1 -1
  198. package/index.cjs28.js +1 -1
  199. package/index.cjs280.js +1 -1
  200. package/index.cjs281.js +1 -1
  201. package/index.cjs282.js +1 -1
  202. package/index.cjs283.js +1 -1
  203. package/index.cjs284.js +1 -1
  204. package/index.cjs285.js +1 -1
  205. package/index.cjs286.js +1 -15
  206. package/index.cjs287.js +15 -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.cjs329.js +1 -1
  253. package/index.cjs33.js +1 -1
  254. package/index.cjs330.js +1 -1
  255. package/index.cjs331.js +1 -1
  256. package/index.cjs332.js +1 -1
  257. package/index.cjs333.js +1 -1
  258. package/index.cjs334.js +1 -1
  259. package/index.cjs335.js +1 -1
  260. package/index.cjs336.js +1 -1
  261. package/index.cjs337.js +1 -1
  262. package/index.cjs338.js +1 -1
  263. package/index.cjs339.js +1 -1
  264. package/index.cjs34.js +1 -1
  265. package/index.cjs340.js +1 -1
  266. package/index.cjs341.js +1 -1
  267. package/index.cjs342.js +1 -1
  268. package/index.cjs343.js +1 -1
  269. package/index.cjs344.js +1 -1
  270. package/index.cjs345.js +1 -1
  271. package/index.cjs346.js +1 -1
  272. package/index.cjs347.js +1 -1
  273. package/index.cjs348.js +1 -1
  274. package/index.cjs349.js +1 -1
  275. package/index.cjs35.js +1 -1
  276. package/index.cjs350.js +1 -1
  277. package/index.cjs351.js +1 -1
  278. package/index.cjs352.js +1 -1
  279. package/index.cjs353.js +1 -1
  280. package/index.cjs354.js +1 -1
  281. package/index.cjs355.js +1 -1
  282. package/index.cjs356.js +1 -1
  283. package/index.cjs357.js +1 -1
  284. package/index.cjs358.js +1 -1
  285. package/index.cjs359.js +1 -1
  286. package/index.cjs360.js +1 -1
  287. package/index.cjs361.js +1 -1
  288. package/index.cjs362.js +1 -1
  289. package/index.cjs363.js +1 -1
  290. package/index.cjs364.js +1 -1
  291. package/index.cjs365.js +1 -1
  292. package/index.cjs366.js +1 -1
  293. package/index.cjs367.js +1 -1
  294. package/index.cjs368.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.cjs391.js +1 -1
  320. package/index.cjs394.js +1 -1
  321. package/index.cjs395.js +1 -1
  322. package/index.cjs396.js +1 -1
  323. package/index.cjs397.js +1 -2
  324. package/index.cjs398.js +2 -1
  325. package/index.cjs399.js +1 -1
  326. package/index.cjs40.js +1 -1
  327. package/index.cjs400.js +1 -1
  328. package/index.cjs401.js +1 -1
  329. package/index.cjs402.js +1 -1
  330. package/index.cjs403.js +1 -1
  331. package/index.cjs404.js +1 -1
  332. package/index.cjs405.js +1 -1
  333. package/index.cjs406.js +1 -1
  334. package/index.cjs407.js +1 -1
  335. package/index.cjs408.js +1 -1
  336. package/index.cjs409.js +1 -1
  337. package/index.cjs41.js +1 -1
  338. package/index.cjs410.js +1 -1
  339. package/index.cjs411.js +1 -1
  340. package/index.cjs412.js +1 -1
  341. package/index.cjs413.js +1 -1
  342. package/index.cjs414.js +1 -1
  343. package/index.cjs415.js +1 -1
  344. package/index.cjs416.js +1 -1
  345. package/index.cjs418.js +1 -1
  346. package/index.cjs419.js +1 -1
  347. package/index.cjs42.js +1 -1
  348. package/index.cjs420.js +1 -1
  349. package/index.cjs421.js +1 -1
  350. package/index.cjs422.js +1 -1
  351. package/index.cjs423.js +1 -1
  352. package/index.cjs424.js +1 -1
  353. package/index.cjs425.js +1 -1
  354. package/index.cjs426.js +1 -1
  355. package/index.cjs427.js +1 -1
  356. package/index.cjs428.js +1 -1
  357. package/index.cjs429.js +1 -1
  358. package/index.cjs43.js +1 -1
  359. package/index.cjs430.js +1 -1
  360. package/index.cjs431.js +1 -1
  361. package/index.cjs433.js +1 -1
  362. package/index.cjs434.js +1 -1
  363. package/index.cjs435.js +1 -1
  364. package/index.cjs436.js +1 -0
  365. package/index.cjs44.js +1 -1
  366. package/index.cjs45.js +1 -1
  367. package/index.cjs46.js +1 -1
  368. package/index.cjs47.js +1 -1
  369. package/index.cjs48.js +1 -1
  370. package/index.cjs49.js +1 -1
  371. package/index.cjs50.js +1 -1
  372. package/index.cjs51.js +1 -1
  373. package/index.cjs52.js +1 -1
  374. package/index.cjs53.js +1 -1
  375. package/index.cjs54.js +1 -1
  376. package/index.cjs55.js +1 -1
  377. package/index.cjs56.js +1 -1
  378. package/index.cjs57.js +1 -1
  379. package/index.cjs58.js +1 -1
  380. package/index.cjs59.js +1 -1
  381. package/index.cjs6.js +1 -1
  382. package/index.cjs60.js +1 -1
  383. package/index.cjs61.js +1 -1
  384. package/index.cjs62.js +1 -7
  385. package/index.cjs63.js +7 -1
  386. package/index.cjs64.js +1 -1
  387. package/index.cjs65.js +1 -6
  388. package/index.cjs66.js +6 -1
  389. package/index.cjs67.js +1 -1
  390. package/index.cjs68.js +1 -1
  391. package/index.cjs69.js +1 -1
  392. package/index.cjs7.js +1 -1
  393. package/index.cjs70.js +1 -1
  394. package/index.cjs71.js +1 -11
  395. package/index.cjs72.js +11 -1
  396. package/index.cjs73.js +1 -1
  397. package/index.cjs74.js +1 -5
  398. package/index.cjs75.js +5 -11
  399. package/index.cjs76.js +11 -1
  400. package/index.cjs77.js +1 -33
  401. package/index.cjs78.js +33 -1
  402. package/index.cjs79.js +1 -1
  403. package/index.cjs8.js +1 -1
  404. package/index.cjs80.js +1 -1
  405. package/index.cjs81.js +1 -1
  406. package/index.cjs82.js +1 -1
  407. package/index.cjs83.js +1 -1
  408. package/index.cjs84.js +1 -1
  409. package/index.cjs85.js +1 -1
  410. package/index.cjs86.js +1 -1
  411. package/index.cjs87.js +1 -1
  412. package/index.cjs88.js +1 -1
  413. package/index.cjs89.js +1 -1
  414. package/index.cjs9.js +1 -1
  415. package/index.cjs90.js +1 -1
  416. package/index.cjs91.js +1 -1
  417. package/index.cjs92.js +1 -1
  418. package/index.cjs93.js +1 -1
  419. package/index.cjs94.js +1 -1
  420. package/index.cjs95.js +1 -1
  421. package/index.cjs96.js +1 -1
  422. package/index.cjs97.js +1 -1
  423. package/index.cjs98.js +1 -1
  424. package/index.cjs99.js +1 -1
  425. package/index.es.d.ts +20 -0
  426. package/index.es.js +189 -187
  427. package/index.es10.js +9 -9
  428. package/index.es100.js +28 -11
  429. package/index.es101.js +11 -127
  430. package/index.es102.js +111 -111
  431. package/index.es103.js +127 -11
  432. package/index.es104.js +10 -87
  433. package/index.es105.js +86 -22
  434. package/index.es106.js +24 -18
  435. package/index.es107.js +6 -13
  436. package/index.es108.js +22 -1706
  437. package/index.es109.js +1708 -34
  438. package/index.es11.js +6 -6
  439. package/index.es110.js +33 -2594
  440. package/index.es111.js +2561 -287
  441. package/index.es112.js +321 -10
  442. package/index.es113.js +5 -5
  443. package/index.es114.js +5 -5
  444. package/index.es115.js +10 -7
  445. package/index.es116.js +8 -33
  446. package/index.es117.js +33 -2
  447. package/index.es118.js +2 -11
  448. package/index.es119.js +5 -5
  449. package/index.es12.js +3 -3
  450. package/index.es120.js +5 -5
  451. package/index.es121.js +5 -5
  452. package/index.es122.js +5 -5
  453. package/index.es123.js +9 -2567
  454. package/index.es124.js +2567 -139
  455. package/index.es125.js +142 -118
  456. package/index.es126.js +116 -136
  457. package/index.es127.js +77 -163
  458. package/index.es128.js +222 -515
  459. package/index.es129.js +516 -11
  460. package/index.es13.js +6 -6
  461. package/index.es130.js +5 -5
  462. package/index.es131.js +11 -21
  463. package/index.es132.js +21 -11
  464. package/index.es133.js +5 -5
  465. package/index.es134.js +5 -5
  466. package/index.es135.js +11 -205
  467. package/index.es136.js +205 -11
  468. package/index.es137.js +10 -4
  469. package/index.es138.js +4 -10
  470. package/index.es139.js +5 -5
  471. package/index.es14.js +4 -4
  472. package/index.es140.js +10 -378
  473. package/index.es141.js +378 -10
  474. package/index.es142.js +5 -5
  475. package/index.es143.js +5 -5
  476. package/index.es144.js +5 -5
  477. package/index.es145.js +5 -5
  478. package/index.es146.js +5 -5
  479. package/index.es147.js +11 -2
  480. package/index.es148.js +1 -1
  481. package/index.es149.js +1 -1
  482. package/index.es150.js +1 -1
  483. package/index.es151.js +1 -1
  484. package/index.es152.js +1 -1
  485. package/index.es153.js +2 -11
  486. package/index.es154.js +4 -4
  487. package/index.es155.js +5 -5
  488. package/index.es156.js +5 -5
  489. package/index.es157.js +11 -3
  490. package/index.es158.js +3 -11
  491. package/index.es159.js +5 -5
  492. package/index.es16.js +7 -7
  493. package/index.es160.js +5 -5
  494. package/index.es161.js +5 -5
  495. package/index.es162.js +11 -2
  496. package/index.es163.js +1 -1
  497. package/index.es164.js +2 -11
  498. package/index.es165.js +4 -4
  499. package/index.es166.js +5 -5
  500. package/index.es167.js +5 -5
  501. package/index.es168.js +5 -5
  502. package/index.es169.js +11 -22
  503. package/index.es17.js +1 -1
  504. package/index.es170.js +22 -11
  505. package/index.es171.js +11 -22
  506. package/index.es172.js +22 -11
  507. package/index.es173.js +5 -5
  508. package/index.es174.js +11 -12
  509. package/index.es175.js +12 -11
  510. package/index.es176.js +4 -4
  511. package/index.es177.js +5 -5
  512. package/index.es178.js +5 -5
  513. package/index.es179.js +10 -470
  514. package/index.es18.js +2 -2
  515. package/index.es180.js +1 -1
  516. package/index.es181.js +3 -3
  517. package/index.es182.js +3 -3
  518. package/index.es183.js +462 -130
  519. package/index.es184.js +139 -6
  520. package/index.es185.js +8 -3
  521. package/index.es186.js +3 -482
  522. package/index.es187.js +232 -30
  523. package/index.es188.js +53 -11
  524. package/index.es189.js +479 -5
  525. package/index.es19.js +1 -1
  526. package/index.es190.js +5 -38
  527. package/index.es191.js +30 -232
  528. package/index.es192.js +11 -53
  529. package/index.es193.js +37 -16
  530. package/index.es194.js +15 -32
  531. package/index.es195.js +34 -1223
  532. package/index.es196.js +1223 -13
  533. package/index.es197.js +14 -8
  534. package/index.es198.js +8 -50
  535. package/index.es199.js +50 -2
  536. package/index.es20.js +1 -1
  537. package/index.es200.js +2 -2261
  538. package/index.es201.js +2260 -10
  539. package/index.es202.js +9 -11
  540. package/index.es203.js +13 -13
  541. package/index.es204.js +13 -106
  542. package/index.es205.js +105 -24
  543. package/index.es206.js +25 -51
  544. package/index.es207.js +43 -363
  545. package/index.es208.js +369 -60
  546. package/index.es209.js +62 -48
  547. package/index.es21.js +2 -2
  548. package/index.es210.js +48 -6
  549. package/index.es211.js +6 -5
  550. package/index.es212.js +5 -47
  551. package/index.es213.js +46 -21
  552. package/index.es214.js +22 -7
  553. package/index.es215.js +7 -10
  554. package/index.es216.js +10 -11
  555. package/index.es217.js +11 -17
  556. package/index.es218.js +16 -229
  557. package/index.es219.js +229 -24
  558. package/index.es22.js +4 -4
  559. package/index.es220.js +24 -11
  560. package/index.es221.js +11 -278
  561. package/index.es222.js +179 -162
  562. package/index.es223.js +261 -16
  563. package/index.es224.js +16 -14
  564. package/index.es225.js +14 -20
  565. package/index.es226.js +20 -7
  566. package/index.es227.js +8 -5
  567. package/index.es228.js +5 -5
  568. package/index.es229.js +5 -5
  569. package/index.es23.js +3 -3
  570. package/index.es230.js +5 -3
  571. package/index.es231.js +3 -7
  572. package/index.es232.js +7 -28
  573. package/index.es233.js +27 -160
  574. package/index.es234.js +129 -206
  575. package/index.es235.js +238 -10
  576. package/index.es236.js +9 -94
  577. package/index.es237.js +95 -2
  578. package/index.es238.js +2 -58
  579. package/index.es239.js +55 -54
  580. package/index.es24.js +6 -6
  581. package/index.es240.js +56 -3
  582. package/index.es241.js +13 -2
  583. package/index.es242.js +24 -12
  584. package/index.es243.js +9 -23
  585. package/index.es244.js +38 -10
  586. package/index.es245.js +1998 -37
  587. package/index.es246.js +5 -1998
  588. package/index.es247.js +71 -6
  589. package/index.es248.js +24 -71
  590. package/index.es249.js +3 -24
  591. package/index.es25.js +1 -1
  592. package/index.es250.js +2 -2
  593. package/index.es251.js +2 -8
  594. package/index.es252.js +7 -326
  595. package/index.es253.js +324 -48
  596. package/index.es254.js +50 -29
  597. package/index.es255.js +28 -32
  598. package/index.es256.js +34 -53
  599. package/index.es257.js +53 -119
  600. package/index.es258.js +119 -9
  601. package/index.es259.js +9 -163
  602. package/index.es26.js +2 -2
  603. package/index.es260.js +128 -275
  604. package/index.es261.js +305 -122
  605. package/index.es262.js +122 -175
  606. package/index.es263.js +177 -23
  607. package/index.es264.js +25 -61
  608. package/index.es265.js +62 -5
  609. package/index.es266.js +5 -36
  610. package/index.es267.js +36 -26
  611. package/index.es268.js +26 -186
  612. package/index.es269.js +180 -132
  613. package/index.es27.js +1 -1
  614. package/index.es270.js +138 -2
  615. package/index.es271.js +2 -8
  616. package/index.es272.js +8 -2
  617. package/index.es273.js +2 -98
  618. package/index.es274.js +94 -22
  619. package/index.es275.js +22 -35
  620. package/index.es276.js +39 -2
  621. package/index.es277.js +2 -69
  622. package/index.es278.js +65 -81
  623. package/index.es279.js +82 -45
  624. package/index.es28.js +4 -4
  625. package/index.es280.js +47 -8
  626. package/index.es281.js +8 -4
  627. package/index.es282.js +4 -51
  628. package/index.es283.js +52 -2
  629. package/index.es284.js +2 -60
  630. package/index.es285.js +57 -14
  631. package/index.es286.js +16 -243
  632. package/index.es287.js +241 -71
  633. package/index.es288.js +73 -4
  634. package/index.es289.js +4 -57
  635. package/index.es29.js +1 -1
  636. package/index.es290.js +58 -11
  637. package/index.es291.js +11 -7
  638. package/index.es292.js +6 -35
  639. package/index.es293.js +35 -26
  640. package/index.es294.js +27 -291
  641. package/index.es295.js +290 -90
  642. package/index.es296.js +91 -3
  643. package/index.es297.js +3 -8
  644. package/index.es298.js +7 -15
  645. package/index.es299.js +14 -145
  646. package/index.es3.js +1 -1
  647. package/index.es30.js +5 -5
  648. package/index.es300.js +146 -37
  649. package/index.es301.js +37 -10
  650. package/index.es302.js +8 -117
  651. package/index.es303.js +120 -7
  652. package/index.es304.js +5 -6
  653. package/index.es305.js +7 -7
  654. package/index.es306.js +104 -339
  655. package/index.es307.js +7 -3
  656. package/index.es308.js +8 -206
  657. package/index.es309.js +8 -116
  658. package/index.es31.js +5 -5
  659. package/index.es310.js +351 -7
  660. package/index.es311.js +3 -8
  661. package/index.es312.js +205 -15
  662. package/index.es313.js +15 -4
  663. package/index.es314.js +15 -8
  664. package/index.es315.js +5 -3
  665. package/index.es316.js +8 -3
  666. package/index.es317.js +3 -3
  667. package/index.es318.js +3 -6
  668. package/index.es319.js +3 -5
  669. package/index.es32.js +4 -4
  670. package/index.es320.js +3 -3
  671. package/index.es321.js +6 -117
  672. package/index.es322.js +4 -3
  673. package/index.es323.js +4 -15
  674. package/index.es324.js +117 -2
  675. package/index.es325.js +2 -45
  676. package/index.es326.js +42 -49
  677. package/index.es327.js +52 -2
  678. package/index.es328.js +2 -2
  679. package/index.es329.js +2 -13
  680. package/index.es33.js +2 -2
  681. package/index.es330.js +5 -143
  682. package/index.es331.js +17 -43
  683. package/index.es332.js +17 -3
  684. package/index.es333.js +17 -41
  685. package/index.es334.js +17 -8
  686. package/index.es335.js +17 -76
  687. package/index.es336.js +17 -55
  688. package/index.es337.js +17 -8
  689. package/index.es338.js +12 -75
  690. package/index.es339.js +142 -23
  691. package/index.es34.js +2 -2
  692. package/index.es340.js +39 -58
  693. package/index.es341.js +3 -5
  694. package/index.es342.js +40 -6
  695. package/index.es343.js +7 -31
  696. package/index.es344.js +75 -58
  697. package/index.es345.js +54 -12
  698. package/index.es346.js +8 -4
  699. package/index.es347.js +76 -10
  700. package/index.es348.js +23 -54
  701. package/index.es349.js +61 -3
  702. package/index.es35.js +1 -1
  703. package/index.es350.js +5 -5
  704. package/index.es351.js +7 -17
  705. package/index.es352.js +32 -17
  706. package/index.es353.js +59 -17
  707. package/index.es354.js +13 -17
  708. package/index.es355.js +4 -17
  709. package/index.es356.js +10 -17
  710. package/index.es357.js +55 -17
  711. package/index.es358.js +3 -5
  712. package/index.es359.js +5 -23
  713. package/index.es360.js +14 -11
  714. package/index.es361.js +21 -6
  715. package/index.es362.js +6 -3
  716. package/index.es363.js +3 -19
  717. package/index.es364.js +15 -63
  718. package/index.es365.js +66 -15
  719. package/index.es366.js +15 -4
  720. package/index.es367.js +4 -4
  721. package/index.es368.js +3 -5
  722. package/index.es369.js +6 -335
  723. package/index.es37.js +2 -2
  724. package/index.es370.js +336 -19
  725. package/index.es371.js +19 -4
  726. package/index.es372.js +4 -6
  727. package/index.es373.js +6 -3
  728. package/index.es374.js +3 -72
  729. package/index.es375.js +72 -4
  730. package/index.es376.js +4 -16
  731. package/index.es377.js +15 -6
  732. package/index.es378.js +6 -29
  733. package/index.es379.js +28 -8
  734. package/index.es38.js +2 -2
  735. package/index.es380.js +9 -7
  736. package/index.es381.js +7 -6
  737. package/index.es382.js +7 -2
  738. package/index.es383.js +2 -2
  739. package/index.es384.js +2 -2
  740. package/index.es385.js +2 -71
  741. package/index.es386.js +67 -88
  742. package/index.es387.js +92 -2
  743. package/index.es388.js +1 -1
  744. package/index.es389.js +2 -2
  745. package/index.es39.js +2 -2
  746. package/index.es390.js +2 -2
  747. package/index.es391.js +2 -9
  748. package/index.es394.js +8 -3
  749. package/index.es395.js +3 -45
  750. package/index.es396.js +44 -23
  751. package/index.es397.js +23 -76
  752. package/index.es398.js +74 -255
  753. package/index.es399.js +256 -29
  754. package/index.es40.js +2 -2
  755. package/index.es400.js +32 -6
  756. package/index.es401.js +6 -132
  757. package/index.es402.js +134 -17
  758. package/index.es403.js +17 -9
  759. package/index.es404.js +7 -2
  760. package/index.es405.js +2 -67
  761. package/index.es406.js +62 -61
  762. package/index.es407.js +65 -5
  763. package/index.es408.js +5 -3
  764. package/index.es409.js +4 -2
  765. package/index.es41.js +1 -1
  766. package/index.es410.js +9 -9
  767. package/index.es411.js +2 -2
  768. package/index.es412.js +1 -1
  769. package/index.es413.js +2 -174
  770. package/index.es414.js +174 -2
  771. package/index.es415.js +1 -1
  772. package/index.es416.js +2 -2
  773. package/index.es417.js +2 -2
  774. package/index.es418.js +2 -7
  775. package/index.es419.js +7 -8
  776. package/index.es42.js +2 -2
  777. package/index.es420.js +8 -7
  778. package/index.es421.js +6 -19
  779. package/index.es422.js +20 -51
  780. package/index.es423.js +50 -248
  781. package/index.es424.js +247 -41
  782. package/index.es425.js +41 -14
  783. package/index.es426.js +16 -10
  784. package/index.es427.js +10 -48
  785. package/index.es428.js +47 -25
  786. package/index.es429.js +24 -127
  787. package/index.es43.js +12 -12
  788. package/index.es430.js +119 -102
  789. package/index.es431.js +112 -2
  790. package/index.es432.js +2 -2
  791. package/index.es433.js +2 -73
  792. package/index.es434.js +72 -8
  793. package/index.es435.js +8 -6
  794. package/index.es436.js +9 -0
  795. package/index.es44.js +8 -8
  796. package/index.es45.js +2 -2
  797. package/index.es46.js +6 -6
  798. package/index.es47.js +9 -9
  799. package/index.es48.js +13 -13
  800. package/index.es49.js +3 -3
  801. package/index.es50.js +17 -17
  802. package/index.es51.js +1 -1
  803. package/index.es52.js +2 -2
  804. package/index.es53.js +6 -6
  805. package/index.es54.js +2 -2
  806. package/index.es55.js +2 -2
  807. package/index.es56.js +3 -3
  808. package/index.es57.js +3 -3
  809. package/index.es58.js +4 -4
  810. package/index.es59.js +1 -1
  811. package/index.es6.js +5 -5
  812. package/index.es60.js +1 -1
  813. package/index.es61.js +1 -1
  814. package/index.es62.js +126 -49
  815. package/index.es63.js +51 -26
  816. package/index.es64.js +27 -71
  817. package/index.es65.js +67 -137
  818. package/index.es66.js +138 -14
  819. package/index.es67.js +14 -130
  820. package/index.es68.js +108 -397
  821. package/index.es69.js +422 -5
  822. package/index.es7.js +6 -6
  823. package/index.es70.js +6 -12
  824. package/index.es71.js +11 -37
  825. package/index.es72.js +33 -45
  826. package/index.es73.js +42 -124
  827. package/index.es74.js +122 -65
  828. package/index.es75.js +63 -89
  829. package/index.es76.js +101 -35
  830. package/index.es77.js +35 -75
  831. package/index.es78.js +74 -36
  832. package/index.es79.js +36 -20
  833. package/index.es8.js +8 -8
  834. package/index.es80.js +20 -92
  835. package/index.es81.js +92 -51
  836. package/index.es82.js +52 -15
  837. package/index.es83.js +14 -21
  838. package/index.es84.js +22 -8
  839. package/index.es85.js +7 -79
  840. package/index.es86.js +79 -6
  841. package/index.es87.js +7 -4
  842. package/index.es88.js +4 -79
  843. package/index.es89.js +79 -32
  844. package/index.es9.js +2 -2
  845. package/index.es90.js +28 -44
  846. package/index.es91.js +48 -8
  847. package/index.es92.js +8 -16
  848. package/index.es93.js +16 -45
  849. package/index.es94.js +45 -4
  850. package/index.es95.js +4 -115
  851. package/index.es96.js +114 -4
  852. package/index.es97.js +5 -7
  853. package/index.es98.js +7 -29
  854. package/index.es99.js +29 -28
  855. package/package.json +1 -1
package/index.cjs80.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function O(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const T=O(p),l=3,A=1e6;let a=0;function m(){return a=(a+1)%Number.MAX_VALUE,a.toString()}const i=new Map,d=t=>{if(i.has(t))return;const e=setTimeout(()=>{i.delete(t),n({type:"REMOVE_TOAST",toastId:t})},A);i.set(t,e)},S=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,l)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=e;return s?d(s):t.toasts.forEach(o=>{d(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)}}},r=[];let u={toasts:[]};function n(t){u=S(u,t),r.forEach(e=>{e(u)})}function f({...t}){const e=m(),s=c=>n({type:"UPDATE_TOAST",toast:{...c,id:e}}),o=()=>n({type:"DISMISS_TOAST",toastId:e});return n({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:c=>{c||o()}}}),{id:e,dismiss:o,update:s}}function _(){const[t,e]=T.useState(u);return T.useEffect(()=>(r.push(e),()=>{const s=r.indexOf(e);s>-1&&r.splice(s,1)}),[t]),{...t,toast:f,dismiss:s=>n({type:"DISMISS_TOAST",toastId:s})}}exports.reducer=S;exports.toast=f;exports.useToast=_;
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.cjs89.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.cjs81.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function O(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const T=O(p),l=3,A=1e6;let a=0;function m(){return a=(a+1)%Number.MAX_VALUE,a.toString()}const i=new Map,d=t=>{if(i.has(t))return;const e=setTimeout(()=>{i.delete(t),n({type:"REMOVE_TOAST",toastId:t})},A);i.set(t,e)},S=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,l)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=e;return s?d(s):t.toasts.forEach(o=>{d(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)}}},r=[];let u={toasts:[]};function n(t){u=S(u,t),r.forEach(e=>{e(u)})}function f({...t}){const e=m(),s=c=>n({type:"UPDATE_TOAST",toast:{...c,id:e}}),o=()=>n({type:"DISMISS_TOAST",toastId:e});return n({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:c=>{c||o()}}}),{id:e,dismiss:o,update:s}}function _(){const[t,e]=T.useState(u);return T.useEffect(()=>(r.push(e),()=>{const s=r.indexOf(e);s>-1&&r.splice(s,1)}),[t]),{...t,toast:f,dismiss:s=>n({type:"DISMISS_TOAST",toastId:s})}}exports.reducer=S;exports.toast=f;exports.useToast=_;
package/index.cjs82.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),p=require("./index.cjs117.js"),x=require("react");require("./index.cjs2.js");const q=require("./index.cjs70.js"),w=require("./index.cjs89.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.cjs83.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 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.cjs84.js CHANGED
@@ -1 +1 @@
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;
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.cjs85.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.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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs183.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.cjs86.js CHANGED
@@ -1 +1 @@
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;
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.cjs99.js");require("./index.cjs2.js");const l=require("./index.cjs91.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.cjs87.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs91.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.cjs88.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index.cjs95.js"),o=()=>t.useContext(e.AuthContext);exports.useOIDCAuth=o;
package/index.cjs89.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs132.js"),o=require("./index.cjs124.js"),c=require("./index.cjs181.js"),l=require("./index.cjs101.js"),i=require("./index.cjs158.js"),d=require("./index.cjs93.js"),m=require("./index.cjs182.js"),g=require("./index.cjs81.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.cjs9.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("./index.cjs110.js"),n=require("react"),i=require("./index.cjs89.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 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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs172.js"),u=require("./index.cjs92.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.cjs91.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs172.js"),i=require("./index.cjs92.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.cjs92.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs184.js"),s=require("./index.cjs185.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.cjs93.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 l=require("./index.cjs172.js"),o=require("./index.cjs92.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.cjs94.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.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.cjs95.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.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;
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.cjs96.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 y=require("react/jsx-runtime"),s=require("react"),A=require("./index.cjs180.js"),C=require("./index.cjs95.js"),b=require("./index.cjs97.js"),I=require("./index.cjs94.js"),d=require("./index.cjs98.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.cjs97.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 t={isLoading:!0,isAuthenticated:!1};exports.initialAuthState=t;
package/index.cjs98.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 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.cjs99.js CHANGED
@@ -1 +1 @@
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;
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.es.d.ts CHANGED
@@ -1706,6 +1706,26 @@ declare type QueryState<T> = {
1706
1706
  refetch: () => void;
1707
1707
  };
1708
1708
 
1709
+ export declare interface RadialStep {
1710
+ id: number;
1711
+ title?: string;
1712
+ description?: string;
1713
+ }
1714
+
1715
+ export declare const RadialStepper: default_2.ForwardRefExoticComponent<RadialStepperProps & default_2.RefAttributes<HTMLDivElement>>;
1716
+
1717
+ export declare interface RadialStepperProps extends default_2.ComponentPropsWithoutRef<'div'>, VariantProps<typeof radialStepperVariants> {
1718
+ steps: RadialStep[];
1719
+ activeStep: number;
1720
+ size?: 120 | 80 | 64 | 48 | 40;
1721
+ showDetails?: boolean;
1722
+ }
1723
+
1724
+ declare const radialStepperVariants: (props?: ({
1725
+ colors?: "primary" | "neutral" | null | undefined;
1726
+ onColor?: boolean | null | undefined;
1727
+ } & ClassProp) | undefined) => string;
1728
+
1709
1729
  export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
1710
1730
  colors?: "primary" | "neutral" | null | undefined;
1711
1731
  size?: "default" | "sm" | "xs" | null | undefined;