mada-design-system 0.2.6 → 0.2.7

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 (452) hide show
  1. package/index.cjs10.js +1 -1
  2. package/index.cjs100.js +5 -1
  3. package/index.cjs101.js +1 -5
  4. package/index.cjs102.js +1 -1
  5. package/index.cjs103.js +1 -1
  6. package/index.cjs104.js +1 -1
  7. package/index.cjs105.js +1 -1
  8. package/index.cjs106.js +1 -1
  9. package/index.cjs107.js +1 -1
  10. package/index.cjs108.js +1 -1
  11. package/index.cjs109.js +1 -1
  12. package/index.cjs110.js +1 -1
  13. package/index.cjs111.js +1 -1
  14. package/index.cjs112.js +1 -1
  15. package/index.cjs113.js +4 -1
  16. package/index.cjs114.js +1 -4
  17. package/index.cjs115.js +2 -1
  18. package/index.cjs116.js +1 -2
  19. package/index.cjs117.js +2 -1
  20. package/index.cjs118.js +1 -2
  21. package/index.cjs119.js +1 -1
  22. package/index.cjs12.js +1 -1
  23. package/index.cjs120.js +1 -1
  24. package/index.cjs121.js +1 -1
  25. package/index.cjs122.js +1 -1
  26. package/index.cjs123.js +1 -1
  27. package/index.cjs124.js +1 -1
  28. package/index.cjs125.js +20 -1
  29. package/index.cjs126.js +1 -20
  30. package/index.cjs127.js +1 -1
  31. package/index.cjs128.js +1 -1
  32. package/index.cjs129.js +1 -1
  33. package/index.cjs13.js +1 -1
  34. package/index.cjs130.js +1 -1
  35. package/index.cjs131.js +1 -1
  36. package/index.cjs132.js +1 -1
  37. package/index.cjs133.js +1 -1
  38. package/index.cjs134.js +1 -1
  39. package/index.cjs135.js +1 -1
  40. package/index.cjs136.js +1 -1
  41. package/index.cjs137.js +1 -1
  42. package/index.cjs138.js +1 -1
  43. package/index.cjs139.js +1 -1
  44. package/index.cjs140.js +1 -1
  45. package/index.cjs141.js +1 -1
  46. package/index.cjs142.js +1 -1
  47. package/index.cjs143.js +1 -1
  48. package/index.cjs144.js +1 -1
  49. package/index.cjs145.js +1 -1
  50. package/index.cjs146.js +1 -1
  51. package/index.cjs147.js +1 -1
  52. package/index.cjs148.js +1 -1
  53. package/index.cjs149.js +1 -1
  54. package/index.cjs15.js +1 -1
  55. package/index.cjs150.js +1 -1
  56. package/index.cjs151.js +1 -1
  57. package/index.cjs152.js +1 -1
  58. package/index.cjs153.js +1 -1
  59. package/index.cjs154.js +1 -1
  60. package/index.cjs155.js +1 -1
  61. package/index.cjs156.js +1 -1
  62. package/index.cjs157.js +1 -1
  63. package/index.cjs158.js +1 -1
  64. package/index.cjs159.js +1 -1
  65. package/index.cjs160.js +1 -1
  66. package/index.cjs161.js +1 -1
  67. package/index.cjs162.js +1 -1
  68. package/index.cjs163.js +1 -1
  69. package/index.cjs164.js +1 -1
  70. package/index.cjs165.js +1 -1
  71. package/index.cjs166.js +1 -1
  72. package/index.cjs167.js +1 -1
  73. package/index.cjs168.js +1 -1
  74. package/index.cjs169.js +1 -1
  75. package/index.cjs17.js +1 -1
  76. package/index.cjs170.js +1 -1
  77. package/index.cjs171.js +1 -1
  78. package/index.cjs172.js +1 -1
  79. package/index.cjs173.js +1 -1
  80. package/index.cjs174.js +1 -1
  81. package/index.cjs175.js +1 -1
  82. package/index.cjs176.js +1 -1
  83. package/index.cjs177.js +1 -1
  84. package/index.cjs178.js +1 -1
  85. package/index.cjs179.js +1 -1
  86. package/index.cjs180.js +1 -1
  87. package/index.cjs181.js +1 -1
  88. package/index.cjs182.js +1 -1
  89. package/index.cjs184.js +1 -1
  90. package/index.cjs185.js +1 -1
  91. package/index.cjs188.js +1 -1
  92. package/index.cjs190.js +1 -1
  93. package/index.cjs191.js +1 -1
  94. package/index.cjs192.js +1 -1
  95. package/index.cjs20.js +1 -1
  96. package/index.cjs200.js +1 -1
  97. package/index.cjs203.js +1 -1
  98. package/index.cjs205.js +1 -1
  99. package/index.cjs206.js +1 -1
  100. package/index.cjs207.js +1 -1
  101. package/index.cjs209.js +1 -1
  102. package/index.cjs21.js +1 -1
  103. package/index.cjs22.js +1 -1
  104. package/index.cjs23.js +1 -1
  105. package/index.cjs234.js +1 -1
  106. package/index.cjs235.js +1 -1
  107. package/index.cjs236.js +1 -1
  108. package/index.cjs237.js +1 -1
  109. package/index.cjs238.js +1 -1
  110. package/index.cjs239.js +1 -1
  111. package/index.cjs240.js +1 -1
  112. package/index.cjs242.js +1 -1
  113. package/index.cjs246.js +1 -1
  114. package/index.cjs247.js +1 -1
  115. package/index.cjs25.js +1 -1
  116. package/index.cjs26.js +1 -1
  117. package/index.cjs261.js +1 -1
  118. package/index.cjs262.js +1 -1
  119. package/index.cjs263.js +1 -1
  120. package/index.cjs264.js +15 -1
  121. package/index.cjs265.js +1 -15
  122. package/index.cjs266.js +1 -1
  123. package/index.cjs267.js +1 -1
  124. package/index.cjs268.js +1 -1
  125. package/index.cjs269.js +1 -1
  126. package/index.cjs27.js +1 -1
  127. package/index.cjs270.js +1 -1
  128. package/index.cjs271.js +1 -1
  129. package/index.cjs272.js +1 -1
  130. package/index.cjs273.js +1 -1
  131. package/index.cjs274.js +1 -1
  132. package/index.cjs275.js +1 -1
  133. package/index.cjs276.js +1 -1
  134. package/index.cjs277.js +1 -1
  135. package/index.cjs278.js +1 -1
  136. package/index.cjs28.js +1 -1
  137. package/index.cjs281.js +1 -1
  138. package/index.cjs282.js +1 -1
  139. package/index.cjs283.js +1 -3
  140. package/index.cjs284.js +1 -1
  141. package/index.cjs285.js +1 -1
  142. package/index.cjs286.js +3 -1
  143. package/index.cjs287.js +1 -1
  144. package/index.cjs288.js +1 -1
  145. package/index.cjs289.js +1 -1
  146. package/index.cjs29.js +1 -1
  147. package/index.cjs290.js +1 -1
  148. package/index.cjs298.js +1 -1
  149. package/index.cjs299.js +1 -1
  150. package/index.cjs30.js +1 -1
  151. package/index.cjs303.js +1 -1
  152. package/index.cjs31.js +1 -1
  153. package/index.cjs32.js +1 -1
  154. package/index.cjs320.js +1 -1
  155. package/index.cjs338.js +1 -1
  156. package/index.cjs339.js +1 -1
  157. package/index.cjs340.js +1 -1
  158. package/index.cjs341.js +1 -1
  159. package/index.cjs342.js +1 -1
  160. package/index.cjs343.js +1 -1
  161. package/index.cjs344.js +1 -1
  162. package/index.cjs345.js +1 -1
  163. package/index.cjs346.js +1 -1
  164. package/index.cjs347.js +1 -1
  165. package/index.cjs348.js +1 -1
  166. package/index.cjs349.js +1 -1
  167. package/index.cjs35.js +1 -1
  168. package/index.cjs350.js +1 -1
  169. package/index.cjs36.js +1 -1
  170. package/index.cjs37.js +1 -1
  171. package/index.cjs370.js +1 -1
  172. package/index.cjs372.js +1 -1
  173. package/index.cjs373.js +1 -74
  174. package/index.cjs374.js +1 -1
  175. package/index.cjs375.js +1 -1
  176. package/index.cjs376.js +74 -1
  177. package/index.cjs377.js +1 -1
  178. package/index.cjs378.js +1 -1
  179. package/index.cjs379.js +1 -1
  180. package/index.cjs38.js +1 -1
  181. package/index.cjs380.js +1 -1
  182. package/index.cjs39.js +1 -1
  183. package/index.cjs397.js +1 -1
  184. package/index.cjs4.js +1 -1
  185. package/index.cjs40.js +1 -1
  186. package/index.cjs41.js +1 -1
  187. package/index.cjs43.js +1 -1
  188. package/index.cjs44.js +1 -1
  189. package/index.cjs45.js +1 -1
  190. package/index.cjs46.js +1 -1
  191. package/index.cjs47.js +1 -1
  192. package/index.cjs49.js +1 -1
  193. package/index.cjs50.js +1 -1
  194. package/index.cjs51.js +1 -1
  195. package/index.cjs54.js +2 -2
  196. package/index.cjs56.js +1 -1
  197. package/index.cjs57.js +1 -1
  198. package/index.cjs59.js +1 -1
  199. package/index.cjs60.js +1 -1
  200. package/index.cjs65.js +1 -1
  201. package/index.cjs66.js +1 -1
  202. package/index.cjs67.js +1 -1
  203. package/index.cjs68.js +1 -1
  204. package/index.cjs69.js +1 -1
  205. package/index.cjs7.js +1 -1
  206. package/index.cjs73.js +1 -1
  207. package/index.cjs75.js +1 -1
  208. package/index.cjs76.js +1 -1
  209. package/index.cjs79.js +1 -1
  210. package/index.cjs8.js +1 -1
  211. package/index.cjs80.js +1 -1
  212. package/index.cjs81.js +1 -1
  213. package/index.cjs82.js +1 -1
  214. package/index.cjs83.js +1 -1
  215. package/index.cjs86.js +1 -1
  216. package/index.cjs9.js +1 -1
  217. package/index.cjs90.js +1 -1
  218. package/index.cjs92.js +1 -1
  219. package/index.cjs93.js +1 -1
  220. package/index.cjs94.js +1 -1
  221. package/index.cjs95.js +1 -1
  222. package/index.cjs96.js +1 -1
  223. package/index.cjs97.js +1 -1
  224. package/index.cjs98.js +1 -1
  225. package/index.cjs99.js +1 -1
  226. package/index.es.d.ts +33 -12
  227. package/index.es10.js +81 -74
  228. package/index.es100.js +2594 -33
  229. package/index.es101.js +287 -2561
  230. package/index.es102.js +10 -321
  231. package/index.es103.js +5 -5
  232. package/index.es104.js +5 -5
  233. package/index.es105.js +7 -10
  234. package/index.es106.js +33 -8
  235. package/index.es107.js +37 -32
  236. package/index.es108.js +11 -38
  237. package/index.es109.js +5 -5
  238. package/index.es110.js +5 -5
  239. package/index.es111.js +5 -5
  240. package/index.es112.js +5 -5
  241. package/index.es113.js +2567 -9
  242. package/index.es114.js +139 -2567
  243. package/index.es115.js +118 -142
  244. package/index.es116.js +136 -116
  245. package/index.es117.js +162 -76
  246. package/index.es118.js +515 -222
  247. package/index.es119.js +309 -515
  248. package/index.es12.js +3 -3
  249. package/index.es120.js +11 -310
  250. package/index.es121.js +5 -5
  251. package/index.es122.js +5 -5
  252. package/index.es123.js +5 -5
  253. package/index.es124.js +5 -5
  254. package/index.es125.js +205 -11
  255. package/index.es126.js +11 -205
  256. package/index.es127.js +4 -10
  257. package/index.es128.js +10 -4
  258. package/index.es129.js +5 -5
  259. package/index.es13.js +2 -2
  260. package/index.es130.js +5 -5
  261. package/index.es131.js +5 -5
  262. package/index.es132.js +5 -5
  263. package/index.es133.js +1 -1
  264. package/index.es134.js +5 -5
  265. package/index.es135.js +2 -11
  266. package/index.es136.js +1 -1
  267. package/index.es137.js +1 -1
  268. package/index.es138.js +1 -1
  269. package/index.es139.js +1 -1
  270. package/index.es140.js +1 -1
  271. package/index.es141.js +11 -2
  272. package/index.es142.js +4 -4
  273. package/index.es143.js +5 -5
  274. package/index.es144.js +5 -5
  275. package/index.es145.js +3 -11
  276. package/index.es146.js +11 -3
  277. package/index.es147.js +5 -5
  278. package/index.es148.js +5 -5
  279. package/index.es149.js +5 -5
  280. package/index.es15.js +5 -5
  281. package/index.es150.js +5 -5
  282. package/index.es151.js +5 -5
  283. package/index.es152.js +22 -11
  284. package/index.es153.js +11 -22
  285. package/index.es154.js +22 -11
  286. package/index.es155.js +11 -22
  287. package/index.es156.js +5 -5
  288. package/index.es157.js +12 -11
  289. package/index.es158.js +11 -12
  290. package/index.es159.js +4 -4
  291. package/index.es160.js +5 -5
  292. package/index.es161.js +5 -5
  293. package/index.es162.js +5 -5
  294. package/index.es163.js +5 -5
  295. package/index.es164.js +470 -10
  296. package/index.es165.js +2324 -125
  297. package/index.es166.js +2152 -6
  298. package/index.es167.js +11 -2338
  299. package/index.es168.js +136 -2149
  300. package/index.es169.js +6 -11
  301. package/index.es17.js +1 -1
  302. package/index.es170.js +235 -3
  303. package/index.es171.js +52 -231
  304. package/index.es172.js +477 -51
  305. package/index.es173.js +3 -8
  306. package/index.es174.js +6 -31
  307. package/index.es175.js +38 -11
  308. package/index.es176.js +28 -477
  309. package/index.es177.js +12 -18
  310. package/index.es178.js +15 -32
  311. package/index.es179.js +34 -1223
  312. package/index.es180.js +1223 -13
  313. package/index.es181.js +14 -8
  314. package/index.es182.js +8 -50
  315. package/index.es184.js +1 -1
  316. package/index.es185.js +47 -36
  317. package/index.es188.js +1 -1
  318. package/index.es190.js +1 -1
  319. package/index.es191.js +1 -1
  320. package/index.es192.js +1 -1
  321. package/index.es20.js +1 -1
  322. package/index.es200.js +3 -3
  323. package/index.es203.js +1 -1
  324. package/index.es205.js +1 -1
  325. package/index.es206.js +3 -3
  326. package/index.es207.js +4 -4
  327. package/index.es209.js +3 -3
  328. package/index.es21.js +3 -3
  329. package/index.es22.js +1 -1
  330. package/index.es23.js +6 -6
  331. package/index.es234.js +1 -1
  332. package/index.es235.js +4 -4
  333. package/index.es236.js +3 -3
  334. package/index.es237.js +3 -3
  335. package/index.es238.js +6 -6
  336. package/index.es239.js +2 -2
  337. package/index.es240.js +3 -3
  338. package/index.es242.js +1 -1
  339. package/index.es246.js +3 -3
  340. package/index.es247.js +1 -1
  341. package/index.es25.js +1 -1
  342. package/index.es26.js +20 -9
  343. package/index.es261.js +2 -11
  344. package/index.es262.js +60 -2
  345. package/index.es263.js +14 -57
  346. package/index.es264.js +243 -16
  347. package/index.es265.js +71 -241
  348. package/index.es266.js +4 -73
  349. package/index.es267.js +57 -4
  350. package/index.es268.js +11 -58
  351. package/index.es269.js +7 -11
  352. package/index.es27.js +41 -41
  353. package/index.es270.js +35 -6
  354. package/index.es271.js +26 -35
  355. package/index.es272.js +291 -27
  356. package/index.es273.js +90 -290
  357. package/index.es274.js +3 -91
  358. package/index.es275.js +8 -3
  359. package/index.es276.js +15 -7
  360. package/index.es277.js +145 -14
  361. package/index.es278.js +10 -146
  362. package/index.es28.js +2 -2
  363. package/index.es281.js +120 -8
  364. package/index.es282.js +7 -351
  365. package/index.es283.js +7 -94
  366. package/index.es284.js +7 -9
  367. package/index.es285.js +351 -3
  368. package/index.es286.js +94 -205
  369. package/index.es287.js +10 -120
  370. package/index.es288.js +3 -7
  371. package/index.es289.js +206 -8
  372. package/index.es29.js +2 -2
  373. package/index.es290.js +2 -2
  374. package/index.es298.js +14 -11
  375. package/index.es299.js +11 -14
  376. package/index.es30.js +3 -3
  377. package/index.es303.js +1 -1
  378. package/index.es31.js +1 -1
  379. package/index.es32.js +1 -1
  380. package/index.es320.js +1 -1
  381. package/index.es338.js +4 -6
  382. package/index.es339.js +4 -29
  383. package/index.es340.js +6 -15
  384. package/index.es341.js +5 -5
  385. package/index.es342.js +19 -5
  386. package/index.es343.js +4 -5
  387. package/index.es344.js +5 -6
  388. package/index.es345.js +3 -19
  389. package/index.es346.js +72 -4
  390. package/index.es347.js +4 -6
  391. package/index.es348.js +16 -3
  392. package/index.es349.js +6 -71
  393. package/index.es35.js +1 -1
  394. package/index.es350.js +29 -3
  395. package/index.es36.js +1 -1
  396. package/index.es37.js +16 -6
  397. package/index.es370.js +1 -1
  398. package/index.es372.js +6 -2
  399. package/index.es373.js +4 -251
  400. package/index.es374.js +2 -8
  401. package/index.es375.js +2 -3
  402. package/index.es376.js +251 -2
  403. package/index.es377.js +7 -5
  404. package/index.es378.js +3 -4
  405. package/index.es379.js +1 -1
  406. package/index.es38.js +2 -2
  407. package/index.es380.js +1 -1
  408. package/index.es39.js +1 -1
  409. package/index.es397.js +1 -1
  410. package/index.es4.js +4 -4
  411. package/index.es40.js +2 -2
  412. package/index.es41.js +7 -7
  413. package/index.es43.js +76 -73
  414. package/index.es44.js +189 -154
  415. package/index.es45.js +10 -10
  416. package/index.es46.js +2 -2
  417. package/index.es47.js +12 -12
  418. package/index.es49.js +1 -1
  419. package/index.es50.js +2 -2
  420. package/index.es51.js +195 -168
  421. package/index.es54.js +31 -17
  422. package/index.es56.js +42 -39
  423. package/index.es57.js +5 -5
  424. package/index.es59.js +73 -81
  425. package/index.es60.js +3 -3
  426. package/index.es65.js +1 -1
  427. package/index.es66.js +1 -1
  428. package/index.es67.js +3 -3
  429. package/index.es68.js +4 -4
  430. package/index.es69.js +1 -1
  431. package/index.es7.js +1 -1
  432. package/index.es73.js +2 -2
  433. package/index.es75.js +1 -1
  434. package/index.es76.js +1 -1
  435. package/index.es79.js +5 -5
  436. package/index.es8.js +1 -1
  437. package/index.es80.js +1 -1
  438. package/index.es81.js +1 -1
  439. package/index.es82.js +2 -2
  440. package/index.es83.js +1 -1
  441. package/index.es86.js +1 -1
  442. package/index.es9.js +6 -6
  443. package/index.es90.js +2 -2
  444. package/index.es92.js +5 -1
  445. package/index.es93.js +5 -1
  446. package/index.es94.js +10 -470
  447. package/index.es95.js +87 -10
  448. package/index.es96.js +19 -86
  449. package/index.es97.js +22 -19
  450. package/index.es98.js +1712 -23
  451. package/index.es99.js +34 -1708
  452. package/package.json +4 -3
package/index.es.d.ts CHANGED
@@ -525,7 +525,7 @@ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLA
525
525
 
526
526
  export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
527
527
 
528
- export declare function Carousel({ children, className, itemClassName, showDots, showArrows, loop, autoplay, autoplayInterval, containerClassName, maxDots, itemWidth, slidesToShow, showPartial, dir, }: Readonly<CustomCarouselProps>): JSX_2.Element;
528
+ export declare function Carousel({ children, className, itemClassName, showDots, showArrows, loop, autoplay, autoplayInterval, containerClassName, maxDots, itemWidth, slidesToShow, showPartial, dir, type, }: Readonly<CustomCarouselProps>): JSX_2.Element;
529
529
 
530
530
  export declare type CarouselApi = UseEmblaCarouselType[1];
531
531
 
@@ -763,6 +763,7 @@ declare interface CustomCarouselProps {
763
763
  slidesToShow?: number;
764
764
  showPartial?: boolean;
765
765
  dir?: 'ltr' | 'rtl';
766
+ type?: 'single' | 'multiple';
766
767
  }
767
768
 
768
769
  export declare function DataTable<TData, TValue>({ columns, data, loading, NoDataComponent, itemsPerPage, hasPagination, onClickRow, isFirstRowSelected, ...rest }: DataTableProps<TData, TValue>): JSX_2.Element | null;
@@ -972,13 +973,22 @@ declare interface FileUploadProps {
972
973
  maxFiles?: number;
973
974
  }
974
975
 
975
- export declare const FilterGroup: default_2.ForwardRefExoticComponent<default_2.HtmlHTMLAttributes<HTMLDivElement> & {
976
+ export declare const FilterGroup: default_2.ForwardRefExoticComponent<FilterGroupProps & default_2.RefAttributes<HTMLDivElement>>;
977
+
978
+ declare interface FilterGroupProps extends default_2.HTMLAttributes<HTMLDivElement> {
979
+ /** Optional label for the filter group */
976
980
  label?: string;
977
- onValueChange?: (value?: Value) => void;
981
+ /** Callback when filter values change */
982
+ onValueChange?: (value?: FilterValue) => void;
983
+ /** Callback when filters are reset */
978
984
  onValueReset?: () => void;
979
- } & default_2.RefAttributes<HTMLDivElement>>;
985
+ /** Custom label for the reset button */
986
+ resetButtonLabel?: string;
987
+ /** Additional props for the reset button */
988
+ resetButtonProps?: ButtonProps;
989
+ }
980
990
 
981
- export declare const FilterSelect: ({ multi, data, placeholder, disabled, isLoading, rounded, size, name, defaultOpen }: FilterSelectProps) => JSX_2.Element;
991
+ export declare const FilterSelect: default_2.MemoExoticComponent<({ multi, data, placeholder, disabled, isLoading, rounded, size, name, defaultOpen }: FilterSelectProps) => JSX_2.Element>;
982
992
 
983
993
  declare interface FilterSelectProps {
984
994
  placeholder: string;
@@ -995,6 +1005,10 @@ declare interface FilterSelectProps {
995
1005
  defaultOpen?: boolean;
996
1006
  }
997
1007
 
1008
+ declare type FilterValue = {
1009
+ [name: string]: string | string[];
1010
+ };
1011
+
998
1012
  export declare const Footer: ({ colors, ...props }: FooterProps) => JSX_2.Element;
999
1013
 
1000
1014
  declare function FooterLink({ label, href, render, ...props }: FooterLinkProps): JSX_2.Element;
@@ -1083,7 +1097,7 @@ export declare const Heading: default_2.ForwardRefExoticComponent<{
1083
1097
  as?: AllowedElements | undefined;
1084
1098
  asChild?: boolean;
1085
1099
  children?: ReactNode;
1086
- } & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & default_2.RefAttributes<"symbol" | "object" | "code" | "map" | "filter" | "search" | "big" | "link" | "small" | "sub" | "sup" | "stop" | "label" | "s" | "dd" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "input" | "li" | "nav" | "ol" | "p" | "span" | "svg" | "ul" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "center" | "cite" | "col" | "colgroup" | "data" | "datalist" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "h1" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "ins" | "kbd" | "keygen" | "legend" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "noindex" | "noscript" | "optgroup" | "option" | "output" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "strong" | "style" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "var" | "video" | "wbr" | "webview" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | default_2.ComponentClass<any, any> | default_2.FunctionComponent<any>>>;
1100
+ } & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & default_2.RefAttributes<"symbol" | "object" | "code" | "map" | "filter" | "search" | "big" | "link" | "small" | "sub" | "sup" | "stop" | "label" | "s" | "dd" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "input" | "li" | "nav" | "ol" | "p" | "select" | "span" | "svg" | "ul" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "center" | "cite" | "col" | "colgroup" | "data" | "datalist" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "h1" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "ins" | "kbd" | "keygen" | "legend" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "noindex" | "noscript" | "optgroup" | "option" | "output" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "source" | "strong" | "style" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "var" | "video" | "wbr" | "webview" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | default_2.ComponentClass<any, any> | default_2.FunctionComponent<any>>>;
1087
1101
 
1088
1102
  /**
1089
1103
  * @public
@@ -1171,7 +1185,9 @@ declare type Item = {
1171
1185
  render?: React_2.ReactNode;
1172
1186
  };
1173
1187
 
1174
- export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
1188
+ export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ({
1189
+ size?: "default" | "sm" | null | undefined;
1190
+ } & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
1175
1191
 
1176
1192
  export declare const langRegex: {
1177
1193
  enRegex: RegExp;
@@ -1571,6 +1587,7 @@ declare type QueryState<T> = {
1571
1587
 
1572
1588
  export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
1573
1589
  colors?: "primary" | "neutral" | null | undefined;
1590
+ size?: "default" | "sm" | "xs" | null | undefined;
1574
1591
  } & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLDivElement>>;
1575
1592
 
1576
1593
  export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
@@ -1968,6 +1985,10 @@ sortBy: string;
1968
1985
  siteLanguageText: string;
1969
1986
  lightMode: string;
1970
1987
  darkMode: string;
1988
+ showLess: string;
1989
+ showMore: string;
1990
+ noResultsFound: string;
1991
+ Clear: string;
1971
1992
  };
1972
1993
  Footer: {
1973
1994
  KSA: string;
@@ -2071,6 +2092,10 @@ sortBy: string;
2071
2092
  siteLanguageText: string;
2072
2093
  lightMode: string;
2073
2094
  darkMode: string;
2095
+ showLess: string;
2096
+ showMore: string;
2097
+ noResultsFound: string;
2098
+ Clear: string;
2074
2099
  };
2075
2100
  Footer: {
2076
2101
  KSA: string;
@@ -2160,7 +2185,7 @@ export declare const tabVariants: (props?: ({
2160
2185
  orientation?: "horizontal" | "vertical" | null | undefined;
2161
2186
  } & ClassProp) | undefined) => string;
2162
2187
 
2163
- declare const Text_2: default_2.ForwardRefExoticComponent<TextProps<AllowedElements_2> & default_2.RefAttributes<"symbol" | "object" | "code" | "map" | "filter" | "search" | "big" | "link" | "small" | "sub" | "sup" | "stop" | "label" | "s" | "dd" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "input" | "li" | "nav" | "ol" | "p" | "span" | "svg" | "ul" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "center" | "cite" | "col" | "colgroup" | "data" | "datalist" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "h1" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "ins" | "kbd" | "keygen" | "legend" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "noindex" | "noscript" | "optgroup" | "option" | "output" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "strong" | "style" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "var" | "video" | "wbr" | "webview" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | default_2.ComponentClass<any, any> | default_2.FunctionComponent<any>>>;
2188
+ declare const Text_2: default_2.ForwardRefExoticComponent<TextProps<AllowedElements_2> & default_2.RefAttributes<"symbol" | "object" | "code" | "map" | "filter" | "search" | "big" | "link" | "small" | "sub" | "sup" | "stop" | "label" | "s" | "dd" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "input" | "li" | "nav" | "ol" | "p" | "select" | "span" | "svg" | "ul" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "center" | "cite" | "col" | "colgroup" | "data" | "datalist" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "h1" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "ins" | "kbd" | "keygen" | "legend" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "noindex" | "noscript" | "optgroup" | "option" | "output" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "source" | "strong" | "style" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "var" | "video" | "wbr" | "webview" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | default_2.ComponentClass<any, any> | default_2.FunctionComponent<any>>>;
2164
2189
  export { Text_2 as Text }
2165
2190
 
2166
2191
  export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps & React_2.RefAttributes<HTMLTextAreaElement>>;
@@ -2401,10 +2426,6 @@ export declare const useUpdateCachedData: <T>(queryClient: QueryClient) => (key:
2401
2426
 
2402
2427
  export { useWatch }
2403
2428
 
2404
- declare type Value = {
2405
- [name: string]: string | string[];
2406
- };
2407
-
2408
2429
  declare type ValueType = string | number;
2409
2430
 
2410
2431
  export declare const Widget: React_2.ForwardRefExoticComponent<WidgetProps & React_2.RefAttributes<HTMLDivElement>>;
package/index.es10.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsxs as a, jsx as r, Fragment as R } from "react/jsx-runtime";
2
- import { useVirtualizer as I } from "./index.es107.js";
1
+ import { jsxs as o, jsx as r, Fragment as R } from "react/jsx-runtime";
2
+ import { useVirtualizer as I } from "./index.es106.js";
3
3
  import x, { useCallback as L, useMemo as j } from "react";
4
- import { useToggle as B } from "./index.es98.js";
4
+ import { useToggle as B } from "./index.es97.js";
5
5
  import { strings as E } from "./index.es91.js";
6
6
  import M from "./index.es3.js";
7
- import { ShouldRender as k } from "./index.es14.js";
7
+ import { ShouldRender as S } from "./index.es14.js";
8
8
  import { Badge as P } from "./index.es20.js";
9
9
  import { Button as F } from "./index.es22.js";
10
10
  import { Checkbox as O } from "./index.es25.js";
@@ -12,36 +12,36 @@ import { Command as _, CommandInput as $, CommandList as A, CommandEmpty as G, C
12
12
  import { Popover as D, PopoverTrigger as H, PopoverContent as J } from "./index.es52.js";
13
13
  import { selectVariants as K } from "./index.es57.js";
14
14
  import { debounce as Q, cn as U } from "./index.es79.js";
15
- import W from "./index.es95.js";
16
- function hr({
15
+ import W from "./index.es94.js";
16
+ function fr({
17
17
  placeholder: i,
18
- options: t,
19
- selectedValues: n,
18
+ options: e,
19
+ selectedValues: t,
20
20
  onChange: m,
21
- disabled: s,
22
- size: c = "default",
23
- dataTestId: l = "",
21
+ disabled: p,
22
+ size: l = "default",
23
+ dataTestId: c = "",
24
24
  rounded: d = "default",
25
- variant: p = "outline",
25
+ variant: s = "outline",
26
26
  colors: u = "default",
27
- isLoading: o = !1,
28
- className: f,
27
+ isLoading: a = !1,
28
+ className: h,
29
29
  checkboxSize: g = "default"
30
30
  }) {
31
- var S;
32
- const [h, b] = B(!1), [v, C] = x.useState(""), [w, N] = x.useState(""), z = L(() => Q((e) => C(e), 300), []), y = j(() => t.filter((e) => e.label.toLowerCase().includes(v.toLowerCase())), [t, v]);
33
- return /* @__PURE__ */ a(
31
+ var w;
32
+ const [f, v] = B(!1), [b, C] = x.useState(""), [k, N] = x.useState(""), z = L(() => Q((n) => C(n), 300), []), y = j(() => e.filter((n) => n.label.toLowerCase().includes(b.toLowerCase())), [e, b]);
33
+ return /* @__PURE__ */ o(
34
34
  D,
35
35
  {
36
- open: h,
36
+ open: f,
37
37
  onOpenChange: () => {
38
- b(), h || (N(""), C(""));
38
+ v(), f || (N(""), C(""));
39
39
  },
40
40
  children: [
41
- /* @__PURE__ */ r(H, { asChild: !0, disabled: s, "data-testid": l, children: /* @__PURE__ */ a("button", { className: U(K({ variant: p, colors: u, size: c, rounded: d }), f), children: [
41
+ /* @__PURE__ */ r(H, { asChild: !0, disabled: p, "data-testid": c, children: /* @__PURE__ */ o("button", { className: U(K({ variant: s, colors: u, size: l, rounded: d }), h), children: [
42
42
  /* @__PURE__ */ r("span", { className: "shrink-0 text-body-01 text-form-field-text-placeholder ", children: i }),
43
- (n == null ? void 0 : n.length) > 0 && /* @__PURE__ */ r(R, { children: (n == null ? void 0 : n.length) > 1 ? /* @__PURE__ */ r("label", { className: "flex size-space-05 shrink-0 items-center justify-center rounded-full bg-background-secondary text-caption-01", children: n.length }) : (S = t == null ? void 0 : t.filter((e) => n == null ? void 0 : n.includes(e.value))) == null ? void 0 : S.map((e) => /* @__PURE__ */ r(P, { colors: "gray", variant: "ghost", size: "sm", children: e.label }, e.value)) }),
44
- o ? /* @__PURE__ */ r(M, {}) : /* @__PURE__ */ r(
43
+ (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ r(R, { children: (t == null ? void 0 : t.length) > 1 ? /* @__PURE__ */ r("label", { className: "ms-auto flex size-space-05 shrink-0 items-center justify-center rounded-full bg-inverted text-caption-01 text-white", children: t.length }) : (w = e == null ? void 0 : e.filter((n) => t == null ? void 0 : t.includes(n.value))) == null ? void 0 : w.map((n) => /* @__PURE__ */ r(P, { colors: "gray", variant: "ghost", size: "sm", children: n.label }, n.value)) }),
44
+ a ? /* @__PURE__ */ r(M, {}) : /* @__PURE__ */ r(
45
45
  W,
46
46
  {
47
47
  className: "size-[20px] shrink-0 transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180",
@@ -49,87 +49,94 @@ function hr({
49
49
  }
50
50
  )
51
51
  ] }) }),
52
- /* @__PURE__ */ r(J, { className: "min-h-space-07 min-w-[var(--radix-popover-trigger-width)] p-space-00", align: "start", children: /* @__PURE__ */ a(_, { className: "w-full", shouldFilter: !1, children: [
53
- /* @__PURE__ */ a("div", { className: "p-space-02", children: [
54
- /* @__PURE__ */ r(k, { shouldRender: (t == null ? void 0 : t.length) > 7, children: /* @__PURE__ */ r(
55
- $,
56
- {
57
- placeholder: i,
58
- value: w,
59
- onValueChange: (e) => {
60
- N(e), z()(e);
61
- }
62
- }
63
- ) }),
64
- /* @__PURE__ */ a(A, { children: [
65
- /* @__PURE__ */ r(G, { children: "No results found." }),
66
- /* @__PURE__ */ r(
67
- X,
52
+ /* @__PURE__ */ r(
53
+ J,
54
+ {
55
+ className: "min-h-space-07 min-w-[var(--radix-popover-trigger-width)] p-space-00 max-md:max-w-[var(--radix-popper-available-width)]",
56
+ align: "start",
57
+ children: /* @__PURE__ */ o(_, { className: "w-full", shouldFilter: !1, children: [
58
+ /* @__PURE__ */ o("div", { className: "p-space-02", children: [
59
+ /* @__PURE__ */ r(S, { shouldRender: (e == null ? void 0 : e.length) > 7, children: /* @__PURE__ */ r(
60
+ $,
61
+ {
62
+ placeholder: i,
63
+ value: k,
64
+ onValueChange: (n) => {
65
+ N(n), z()(n);
66
+ }
67
+ }
68
+ ) }),
69
+ /* @__PURE__ */ o(A, { children: [
70
+ /* @__PURE__ */ r(G, { children: "No results found." }),
71
+ /* @__PURE__ */ r(
72
+ X,
73
+ {
74
+ options: y,
75
+ dataTestId: c,
76
+ onChange: m,
77
+ selectedValues: t,
78
+ checkboxSize: g
79
+ }
80
+ )
81
+ ] })
82
+ ] }),
83
+ /* @__PURE__ */ r(S, { shouldRender: !!(t != null && t.length), children: /* @__PURE__ */ r("div", { className: "flex items-center gap-space-04 border-t border-t-border bg-background px-space-04 py-space-02", children: /* @__PURE__ */ r(
84
+ F,
68
85
  {
69
- options: y,
70
- dataTestId: l,
71
- onChange: m,
72
- selectedValues: n,
73
- checkboxSize: g
86
+ colors: "neutral",
87
+ variant: "text",
88
+ size: "sm",
89
+ onClick: () => {
90
+ m([]), v();
91
+ },
92
+ className: "flex-1",
93
+ children: E.Shared.reset
74
94
  }
75
- )
95
+ ) }) })
76
96
  ] })
77
- ] }),
78
- /* @__PURE__ */ r(k, { shouldRender: !!(n != null && n.length), children: /* @__PURE__ */ r("div", { className: "flex items-center gap-space-04 border-t border-t-border bg-background px-space-04 py-space-02", children: /* @__PURE__ */ r(
79
- F,
80
- {
81
- colors: "neutral",
82
- variant: "text",
83
- size: "sm",
84
- onClick: () => {
85
- m([]), b();
86
- },
87
- className: "flex-1",
88
- children: E.Shared.reset
89
- }
90
- ) }) })
91
- ] }) })
97
+ }
98
+ )
92
99
  ]
93
100
  }
94
101
  );
95
102
  }
96
103
  function X({
97
104
  options: i,
98
- selectedValues: t,
99
- dataTestId: n,
105
+ selectedValues: e,
106
+ dataTestId: t,
100
107
  onChange: m,
101
- checkboxSize: s
108
+ checkboxSize: p
102
109
  }) {
103
110
  var d;
104
- const c = x.useRef(null), l = I({
111
+ const l = x.useRef(null), c = I({
105
112
  count: i.length,
106
- getScrollElement: () => c.current,
113
+ getScrollElement: () => l.current,
107
114
  estimateSize: () => 36,
108
115
  // Adjust based on your row height
109
116
  overscan: 10
110
117
  // Improves scroll performance
111
118
  });
112
- return /* @__PURE__ */ r(T, { ref: c, className: "overflow-auto", children: (d = l.getVirtualItems()) == null ? void 0 : d.map((p, u) => {
113
- const o = i[p.index], f = t == null ? void 0 : t.includes(o.value);
114
- return /* @__PURE__ */ a(
119
+ return /* @__PURE__ */ r(T, { ref: l, className: "overflow-auto", children: (d = c.getVirtualItems()) == null ? void 0 : d.map((s, u) => {
120
+ const a = i[s.index], h = e == null ? void 0 : e.includes(a.value);
121
+ return /* @__PURE__ */ o(
115
122
  q,
116
123
  {
117
- "data-testid": `${n}-${u}`,
124
+ "data-testid": `${t}-${u}`,
118
125
  className: "flex gap-space-02",
119
126
  onSelect: () => {
120
- const g = f ? t.filter((h) => h !== o.value) : [...t, o.value];
127
+ const g = h ? e.filter((f) => f !== a.value) : [...e, a.value];
121
128
  m(g);
122
129
  },
123
130
  children: [
124
- o.icon && /* @__PURE__ */ r(o.icon, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
125
- /* @__PURE__ */ r("span", { children: o.label }),
126
- /* @__PURE__ */ r(O, { className: "ms-auto", checked: f, size: s })
131
+ a.icon && /* @__PURE__ */ r(a.icon, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
132
+ /* @__PURE__ */ r("span", { children: a.label }),
133
+ /* @__PURE__ */ r(O, { className: "ms-auto", checked: h, size: p })
127
134
  ]
128
135
  },
129
- o.value
136
+ a.value
130
137
  );
131
138
  }) });
132
139
  }
133
140
  export {
134
- hr as MultiSelect
141
+ fr as MultiSelect
135
142
  };