@a-ui/react 7.13.0-beta.6 → 7.13.0-beta.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 (453) hide show
  1. package/cjs/index10.js +1 -1
  2. package/cjs/index100.js +1 -1
  3. package/cjs/index101.js +1 -1
  4. package/cjs/index102.js +1 -1
  5. package/cjs/index103.js +1 -1
  6. package/cjs/index104.js +1 -1
  7. package/cjs/index105.js +1 -1
  8. package/cjs/index106.js +1 -1
  9. package/cjs/index107.js +1 -1
  10. package/cjs/index108.js +1 -1
  11. package/cjs/index109.js +1 -1
  12. package/cjs/index11.js +1 -1
  13. package/cjs/index110.js +1 -1
  14. package/cjs/index111.js +1 -1
  15. package/cjs/index112.js +1 -1
  16. package/cjs/index113.js +1 -1
  17. package/cjs/index114.js +1 -2
  18. package/cjs/index115.js +1 -1
  19. package/cjs/index116.js +1 -1
  20. package/cjs/index117.js +1 -1
  21. package/cjs/index118.js +1 -1
  22. package/cjs/index119.js +1 -10
  23. package/cjs/index12.js +1 -1
  24. package/cjs/index120.js +1 -1
  25. package/cjs/index121.js +1 -1
  26. package/cjs/index122.js +1 -1
  27. package/cjs/index123.js +1 -1
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +1 -5
  31. package/cjs/index127.js +1 -9
  32. package/cjs/index128.js +1 -1
  33. package/cjs/index129.js +1 -1
  34. package/cjs/index13.js +1 -1
  35. package/cjs/index130.js +1 -1
  36. package/cjs/index131.js +1 -1
  37. package/cjs/index132.js +1 -1
  38. package/cjs/index133.js +1 -1
  39. package/cjs/index134.js +1 -1
  40. package/cjs/index135.js +1 -1
  41. package/cjs/index136.js +1 -1
  42. package/cjs/index137.js +1 -1
  43. package/cjs/index138.js +5 -8
  44. package/cjs/index139.js +1 -8
  45. package/cjs/index14.js +1 -1
  46. package/cjs/index140.js +1 -5
  47. package/cjs/index141.js +1 -1
  48. package/cjs/index142.js +1 -1
  49. package/cjs/index143.js +1 -1
  50. package/cjs/index144.js +1 -1
  51. package/cjs/index145.js +1 -11
  52. package/cjs/index146.js +1 -1
  53. package/cjs/index147.js +1 -1
  54. package/cjs/index148.js +1 -1
  55. package/cjs/index149.js +1 -1
  56. package/cjs/index150.js +1 -1
  57. package/cjs/index151.js +1 -1
  58. package/cjs/index152.js +1 -1
  59. package/cjs/index153.js +1 -1
  60. package/cjs/index154.js +1 -1
  61. package/cjs/index155.js +1 -1
  62. package/cjs/index156.js +1 -1
  63. package/cjs/index157.js +1 -1
  64. package/cjs/index158.js +1 -1
  65. package/cjs/index159.js +1 -1
  66. package/cjs/index16.js +1 -1
  67. package/cjs/index160.js +1 -1
  68. package/cjs/index161.js +1 -1
  69. package/cjs/index162.js +1 -1
  70. package/cjs/index163.js +1 -1
  71. package/cjs/index164.js +1 -1
  72. package/cjs/index165.js +1 -1
  73. package/cjs/index166.js +1 -1
  74. package/cjs/index167.js +1 -1
  75. package/cjs/index168.js +1 -1
  76. package/cjs/index169.js +1 -1
  77. package/cjs/index17.js +1 -1
  78. package/cjs/index170.js +1 -1
  79. package/cjs/index171.js +1 -1
  80. package/cjs/index172.js +1 -1
  81. package/cjs/index173.js +1 -1
  82. package/cjs/index174.js +1 -1
  83. package/cjs/index175.js +1 -1
  84. package/cjs/index176.js +1 -1
  85. package/cjs/index177.js +1 -1
  86. package/cjs/index178.js +1 -1
  87. package/cjs/index179.js +1 -1
  88. package/cjs/index18.js +1 -1
  89. package/cjs/index180.js +1 -1
  90. package/cjs/index181.js +1 -1
  91. package/cjs/index182.js +1 -1
  92. package/cjs/index183.js +1 -1
  93. package/cjs/index184.js +1 -1
  94. package/cjs/index185.js +1 -1
  95. package/cjs/index186.js +1 -1
  96. package/cjs/index187.js +1 -1
  97. package/cjs/index188.js +1 -1
  98. package/cjs/index189.js +1 -1
  99. package/cjs/index190.js +1 -1
  100. package/cjs/index191.js +1 -1
  101. package/cjs/index192.js +1 -1
  102. package/cjs/index193.js +1 -1
  103. package/cjs/index194.js +1 -1
  104. package/cjs/index195.js +1 -1
  105. package/cjs/index196.js +1 -1
  106. package/cjs/index197.js +1 -1
  107. package/cjs/index198.js +1 -1
  108. package/cjs/index199.js +1 -1
  109. package/cjs/index2.js +1 -1
  110. package/cjs/index20.js +1 -1
  111. package/cjs/index200.js +1 -1
  112. package/cjs/index201.js +1 -1
  113. package/cjs/index202.js +1 -1
  114. package/cjs/index203.js +1 -1
  115. package/cjs/index204.js +1 -1
  116. package/cjs/index205.js +1 -1
  117. package/cjs/index206.js +1 -1
  118. package/cjs/index207.js +1 -1
  119. package/cjs/index208.js +2 -1
  120. package/cjs/index209.js +1 -1
  121. package/cjs/index21.js +1 -1
  122. package/cjs/index210.js +1 -1
  123. package/cjs/index211.js +1 -1
  124. package/cjs/index212.js +1 -1
  125. package/cjs/index213.js +10 -1
  126. package/cjs/index214.js +1 -1
  127. package/cjs/index215.js +1 -1
  128. package/cjs/index216.js +1 -1
  129. package/cjs/index217.js +1 -1
  130. package/cjs/index218.js +1 -1
  131. package/cjs/index219.js +1 -1
  132. package/cjs/index22.js +1 -1
  133. package/cjs/index220.js +5 -1
  134. package/cjs/index221.js +9 -1
  135. package/cjs/index222.js +1 -1
  136. package/cjs/index223.js +8 -1
  137. package/cjs/index224.js +8 -1
  138. package/cjs/index225.js +5 -1
  139. package/cjs/index226.js +1 -1
  140. package/cjs/index227.js +1 -1
  141. package/cjs/index228.js +1 -1
  142. package/cjs/index229.js +11 -1
  143. package/cjs/index230.js +1 -1
  144. package/cjs/index231.js +1 -1
  145. package/cjs/index232.js +1 -1
  146. package/cjs/index233.js +1 -1
  147. package/cjs/index234.js +1 -1
  148. package/cjs/index235.js +1 -1
  149. package/cjs/index24.js +1 -1
  150. package/cjs/index25.js +1 -1
  151. package/cjs/index26.js +1 -1
  152. package/cjs/index27.js +1 -1
  153. package/cjs/index28.js +1 -1
  154. package/cjs/index3.js +1 -1
  155. package/cjs/index30.js +1 -1
  156. package/cjs/index31.js +1 -1
  157. package/cjs/index32.js +1 -1
  158. package/cjs/index33.js +1 -1
  159. package/cjs/index34.js +1 -1
  160. package/cjs/index36.js +1 -1
  161. package/cjs/index37.js +1 -1
  162. package/cjs/index38.js +1 -1
  163. package/cjs/index39.js +1 -1
  164. package/cjs/index4.js +1 -1
  165. package/cjs/index40.js +1 -1
  166. package/cjs/index41.js +1 -1
  167. package/cjs/index42.js +1 -1
  168. package/cjs/index43.js +1 -1
  169. package/cjs/index44.js +1 -1
  170. package/cjs/index45.js +1 -1
  171. package/cjs/index46.js +1 -1
  172. package/cjs/index47.js +1 -1
  173. package/cjs/index48.js +1 -1
  174. package/cjs/index49.js +1 -1
  175. package/cjs/index50.js +1 -1
  176. package/cjs/index51.js +1 -1
  177. package/cjs/index52.js +1 -1
  178. package/cjs/index53.js +1 -1
  179. package/cjs/index55.js +1 -1
  180. package/cjs/index57.js +1 -1
  181. package/cjs/index58.js +1 -1
  182. package/cjs/index59.js +1 -1
  183. package/cjs/index6.js +1 -1
  184. package/cjs/index60.js +1 -1
  185. package/cjs/index61.js +1 -7
  186. package/cjs/index62.js +1 -1
  187. package/cjs/index63.js +1 -1
  188. package/cjs/index64.js +1 -1
  189. package/cjs/index65.js +1 -1
  190. package/cjs/index66.js +1 -1
  191. package/cjs/index67.js +1 -1
  192. package/cjs/index68.js +1 -1
  193. package/cjs/index69.js +1 -1
  194. package/cjs/index70.js +1 -1
  195. package/cjs/index71.js +1 -1
  196. package/cjs/index72.js +1 -1
  197. package/cjs/index73.js +1 -1
  198. package/cjs/index74.js +1 -1
  199. package/cjs/index76.js +1 -1
  200. package/cjs/index77.js +1 -1
  201. package/cjs/index78.js +1 -1
  202. package/cjs/index79.js +7 -1
  203. package/cjs/index8.js +1 -1
  204. package/cjs/index82.js +1 -1
  205. package/cjs/index83.js +1 -1
  206. package/cjs/index84.js +1 -1
  207. package/cjs/index85.js +1 -1
  208. package/cjs/index87.js +1 -1
  209. package/cjs/index88.js +1 -1
  210. package/cjs/index89.js +1 -1
  211. package/cjs/index9.js +1 -1
  212. package/cjs/index90.js +1 -1
  213. package/cjs/index91.js +1 -5
  214. package/cjs/index92.js +1 -1
  215. package/cjs/index93.js +1 -1
  216. package/cjs/index94.js +1 -1
  217. package/cjs/index95.js +1 -1
  218. package/cjs/index96.js +1 -1
  219. package/cjs/index97.js +1 -1
  220. package/cjs/index98.js +1 -1
  221. package/cjs/index99.js +1 -1
  222. package/es/index10.mjs +3 -3
  223. package/es/index100.mjs +5 -4
  224. package/es/index101.mjs +5 -11
  225. package/es/index102.mjs +7 -247
  226. package/es/index103.mjs +4 -88
  227. package/es/index104.mjs +6 -14
  228. package/es/index105.mjs +5 -4
  229. package/es/index106.mjs +7 -2
  230. package/es/index107.mjs +13 -2
  231. package/es/index108.mjs +16 -2
  232. package/es/index109.mjs +8 -390
  233. package/es/index11.mjs +1 -1
  234. package/es/index110.mjs +5 -124
  235. package/es/index111.mjs +5 -133
  236. package/es/index112.mjs +5 -2
  237. package/es/index113.mjs +512 -7
  238. package/es/index114.mjs +49 -326
  239. package/es/index115.mjs +17 -49
  240. package/es/index116.mjs +18 -2
  241. package/es/index117.mjs +4 -64
  242. package/es/index118.mjs +8 -43
  243. package/es/index119.mjs +5 -59
  244. package/es/index12.mjs +14 -14
  245. package/es/index120.mjs +6 -45
  246. package/es/index121.mjs +5 -39
  247. package/es/index122.mjs +9 -2
  248. package/es/index123.mjs +5 -2
  249. package/es/index124.mjs +8 -2
  250. package/es/index125.mjs +11 -30
  251. package/es/index126.mjs +9 -19
  252. package/es/index127.mjs +8 -60
  253. package/es/index128.mjs +12 -62
  254. package/es/index129.mjs +3 -13
  255. package/es/index13.mjs +2 -2
  256. package/es/index130.mjs +32 -6
  257. package/es/index131.mjs +65 -7
  258. package/es/index132.mjs +7 -5
  259. package/es/index133.mjs +7 -5
  260. package/es/index134.mjs +6 -4
  261. package/es/index135.mjs +6 -6
  262. package/es/index136.mjs +13 -4
  263. package/es/index137.mjs +398 -2
  264. package/es/index138.mjs +38 -74
  265. package/es/index139.mjs +57 -93
  266. package/es/index14.mjs +3 -3
  267. package/es/index140.mjs +19 -49
  268. package/es/index141.mjs +40 -7
  269. package/es/index142.mjs +60 -4
  270. package/es/index143.mjs +29 -49
  271. package/es/index144.mjs +13 -2
  272. package/es/index145.mjs +58 -54
  273. package/es/index146.mjs +62 -2
  274. package/es/index147.mjs +63 -2
  275. package/es/index148.mjs +62 -4
  276. package/es/index149.mjs +39 -4
  277. package/es/index150.mjs +41 -7
  278. package/es/index151.mjs +52 -12
  279. package/es/index152.mjs +42 -15
  280. package/es/index153.mjs +36 -8
  281. package/es/index154.mjs +65 -5
  282. package/es/index155.mjs +65 -5
  283. package/es/index156.mjs +90 -4
  284. package/es/index157.mjs +19 -491
  285. package/es/index158.mjs +39 -48
  286. package/es/index159.mjs +40 -17
  287. package/es/index16.mjs +1 -1
  288. package/es/index160.mjs +24 -17
  289. package/es/index161.mjs +23 -4
  290. package/es/index162.mjs +23 -7
  291. package/es/index163.mjs +24 -5
  292. package/es/index164.mjs +23 -4
  293. package/es/index165.mjs +23 -5
  294. package/es/index166.mjs +13 -8
  295. package/es/index167.mjs +39 -4
  296. package/es/index168.mjs +39 -7
  297. package/es/index169.mjs +13 -11
  298. package/es/index17.mjs +4 -4
  299. package/es/index170.mjs +13 -8
  300. package/es/index171.mjs +23 -8
  301. package/es/index172.mjs +2 -13
  302. package/es/index173.mjs +235 -4
  303. package/es/index174.mjs +2 -33
  304. package/es/index175.mjs +2 -65
  305. package/es/index176.mjs +390 -7
  306. package/es/index177.mjs +124 -7
  307. package/es/index178.mjs +133 -6
  308. package/es/index179.mjs +68 -7
  309. package/es/index18.mjs +8 -8
  310. package/es/index180.mjs +31 -14
  311. package/es/index181.mjs +9 -2
  312. package/es/index182.mjs +153 -2
  313. package/es/index183.mjs +108 -2
  314. package/es/index184.mjs +19 -56
  315. package/es/index185.mjs +98 -19
  316. package/es/index186.mjs +47 -41
  317. package/es/index187.mjs +11 -61
  318. package/es/index188.mjs +245 -30
  319. package/es/index189.mjs +86 -10
  320. package/es/index190.mjs +14 -63
  321. package/es/index191.mjs +4 -62
  322. package/es/index192.mjs +2 -63
  323. package/es/index193.mjs +2 -63
  324. package/es/index194.mjs +58 -39
  325. package/es/index195.mjs +8 -40
  326. package/es/index196.mjs +18 -51
  327. package/es/index197.mjs +67 -42
  328. package/es/index198.mjs +31 -37
  329. package/es/index199.mjs +9 -66
  330. package/es/index2.mjs +1 -1
  331. package/es/index20.mjs +2 -2
  332. package/es/index200.mjs +107 -65
  333. package/es/index201.mjs +106 -90
  334. package/es/index202.mjs +6 -40
  335. package/es/index203.mjs +14 -39
  336. package/es/index204.mjs +28 -40
  337. package/es/index205.mjs +12 -24
  338. package/es/index206.mjs +2 -24
  339. package/es/index207.mjs +7 -23
  340. package/es/index208.mjs +324 -22
  341. package/es/index209.mjs +47 -21
  342. package/es/index21.mjs +1 -1
  343. package/es/index210.mjs +2 -24
  344. package/es/index211.mjs +62 -11
  345. package/es/index212.mjs +41 -38
  346. package/es/index213.mjs +58 -38
  347. package/es/index214.mjs +45 -15
  348. package/es/index215.mjs +37 -11
  349. package/es/index216.mjs +2 -68
  350. package/es/index217.mjs +2 -31
  351. package/es/index218.mjs +2 -9
  352. package/es/index219.mjs +30 -152
  353. package/es/index22.mjs +1 -1
  354. package/es/index220.mjs +19 -108
  355. package/es/index221.mjs +58 -17
  356. package/es/index222.mjs +2 -101
  357. package/es/index223.mjs +76 -47
  358. package/es/index224.mjs +93 -68
  359. package/es/index225.mjs +52 -31
  360. package/es/index226.mjs +8 -9
  361. package/es/index227.mjs +5 -108
  362. package/es/index228.mjs +51 -106
  363. package/es/index229.mjs +58 -59
  364. package/es/index230.mjs +2 -9
  365. package/es/index231.mjs +2 -20
  366. package/es/index232.mjs +2 -7
  367. package/es/index233.mjs +2 -16
  368. package/es/index234.mjs +2 -29
  369. package/es/index235.mjs +2 -13
  370. package/es/index24.mjs +3 -3
  371. package/es/index25.mjs +1 -1
  372. package/es/index26.mjs +1 -1
  373. package/es/index27.mjs +1 -1
  374. package/es/index28.mjs +1 -1
  375. package/es/index3.mjs +1 -1
  376. package/es/index30.mjs +42 -40
  377. package/es/index31.mjs +2 -2
  378. package/es/index32.mjs +2 -2
  379. package/es/index33.mjs +3 -3
  380. package/es/index34.mjs +1 -1
  381. package/es/index36.mjs +3 -3
  382. package/es/index37.mjs +3 -3
  383. package/es/index38.mjs +3 -3
  384. package/es/index39.mjs +3 -3
  385. package/es/index4.mjs +2 -2
  386. package/es/index40.mjs +2 -2
  387. package/es/index41.mjs +1 -1
  388. package/es/index42.mjs +4 -4
  389. package/es/index43.mjs +1 -1
  390. package/es/index44.mjs +2 -2
  391. package/es/index45.mjs +3 -3
  392. package/es/index46.mjs +3 -3
  393. package/es/index47.mjs +2 -2
  394. package/es/index48.mjs +1 -1
  395. package/es/index49.mjs +2 -2
  396. package/es/index50.mjs +1 -1
  397. package/es/index51.mjs +8 -11
  398. package/es/index52.mjs +47 -6
  399. package/es/index53.mjs +28 -21
  400. package/es/index55.mjs +46 -27
  401. package/es/index57.mjs +2 -49
  402. package/es/index58.mjs +74 -30
  403. package/es/index59.mjs +11 -17
  404. package/es/index6.mjs +3 -3
  405. package/es/index60.mjs +27 -27
  406. package/es/index61.mjs +34 -407
  407. package/es/index62.mjs +3 -28
  408. package/es/index63.mjs +33 -34
  409. package/es/index64.mjs +5 -17
  410. package/es/index65.mjs +4 -34
  411. package/es/index66.mjs +5 -2
  412. package/es/index67.mjs +4 -73
  413. package/es/index68.mjs +4 -28
  414. package/es/index69.mjs +16 -35
  415. package/es/index70.mjs +28 -3
  416. package/es/index71.mjs +80 -30
  417. package/es/index72.mjs +5 -4
  418. package/es/index73.mjs +24 -4
  419. package/es/index74.mjs +54 -4
  420. package/es/index76.mjs +4 -4
  421. package/es/index77.mjs +118 -16
  422. package/es/index78.mjs +19 -83
  423. package/es/index79.mjs +408 -5
  424. package/es/index8.mjs +2 -2
  425. package/es/index82.mjs +16 -84
  426. package/es/index83.mjs +30 -5
  427. package/es/index84.mjs +13 -118
  428. package/es/index85.mjs +57 -60
  429. package/es/index87.mjs +60 -12
  430. package/es/index88.mjs +57 -56
  431. package/es/index89.mjs +5 -5
  432. package/es/index9.mjs +1 -1
  433. package/es/index90.mjs +59 -390
  434. package/es/index91.mjs +3 -40
  435. package/es/index92.mjs +4 -23
  436. package/es/index93.mjs +11 -2
  437. package/es/index94.mjs +5 -235
  438. package/es/index95.mjs +63 -2
  439. package/es/index96.mjs +13 -66
  440. package/es/index97.mjs +7 -3
  441. package/es/index98.mjs +6 -4
  442. package/es/index99.mjs +5 -10
  443. package/package.json +1 -1
  444. package/cjs/index56.js +0 -1
  445. package/cjs/index75.js +0 -1
  446. package/cjs/index80.js +0 -1
  447. package/cjs/index81.js +0 -1
  448. package/cjs/index86.js +0 -1
  449. package/es/index56.mjs +0 -49
  450. package/es/index75.mjs +0 -7
  451. package/es/index80.mjs +0 -27
  452. package/es/index81.mjs +0 -57
  453. package/es/index86.mjs +0 -62
package/es/index94.mjs CHANGED
@@ -1,237 +1,7 @@
1
- import { __exports as p } from "./index95.mjs";
2
- import N from "react";
3
- import T from "react-dom";
4
- import { p as x } from "./index101.mjs";
5
- import { M as A } from "./index102.mjs";
6
- import "./index103.mjs";
7
- import "./index104.mjs";
8
- import D from "./index105.mjs";
9
- import { __exports as w } from "./index106.mjs";
10
- import { __exports as q } from "./index107.mjs";
11
- Object.defineProperty(p, "__esModule", {
12
- value: !0
13
- });
14
- p.bodyOpenClassName = p.portalClassName = void 0;
15
- var g = Object.assign || function(r) {
16
- for (var e = 1; e < arguments.length; e++) {
17
- var o = arguments[e];
18
- for (var a in o)
19
- Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
20
- }
21
- return r;
22
- }, H = /* @__PURE__ */ function() {
23
- function r(e, o) {
24
- for (var a = 0; a < o.length; a++) {
25
- var n = o[a];
26
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
27
- }
28
- }
29
- return function(e, o, a) {
30
- return o && r(e.prototype, o), a && r(e, a), e;
31
- };
32
- }(), R = N, O = m(R), U = T, _ = m(U), L = x, t = m(L), k = A, C = m(k), $ = q, W = B($), u = w, M = m(u), F = D;
33
- function B(r) {
34
- if (r && r.__esModule)
35
- return r;
36
- var e = {};
37
- if (r != null)
38
- for (var o in r)
39
- Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
40
- return e.default = r, e;
1
+ import { toDate as t } from "./index105.mjs";
2
+ function f(r, o) {
3
+ return +t(r) > +t(o);
41
4
  }
42
- function m(r) {
43
- return r && r.__esModule ? r : { default: r };
44
- }
45
- function j(r, e) {
46
- if (!(r instanceof e))
47
- throw new TypeError("Cannot call a class as a function");
48
- }
49
- function E(r, e) {
50
- if (!r)
51
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
52
- return e && (typeof e == "object" || typeof e == "function") ? e : r;
53
- }
54
- function I(r, e) {
55
- if (typeof e != "function" && e !== null)
56
- throw new TypeError("Super expression must either be null or a function, not " + typeof e);
57
- r.prototype = Object.create(e && e.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(r, e) : r.__proto__ = e);
58
- }
59
- var V = p.portalClassName = "ReactModalPortal", z = p.bodyOpenClassName = "ReactModal__Body--open", s = u.canUseDOM && _.default.createPortal !== void 0, b = function(e) {
60
- return document.createElement(e);
61
- }, P = function() {
62
- return s ? _.default.createPortal : _.default.unstable_renderSubtreeIntoContainer;
63
- };
64
- function y(r) {
65
- return r();
66
- }
67
- var d = function(r) {
68
- I(e, r);
69
- function e() {
70
- var o, a, n, l;
71
- j(this, e);
72
- for (var c = arguments.length, v = Array(c), f = 0; f < c; f++)
73
- v[f] = arguments[f];
74
- return l = (a = (n = E(this, (o = e.__proto__ || Object.getPrototypeOf(e)).call.apply(o, [this].concat(v))), n), n.removePortal = function() {
75
- !s && _.default.unmountComponentAtNode(n.node);
76
- var i = y(n.props.parentSelector);
77
- i && i.contains(n.node) ? i.removeChild(n.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
78
- }, n.portalRef = function(i) {
79
- n.portal = i;
80
- }, n.renderPortal = function(i) {
81
- var h = P(), S = h(n, O.default.createElement(C.default, g({ defaultStyles: e.defaultStyles }, i)), n.node);
82
- n.portalRef(S);
83
- }, a), E(n, l);
84
- }
85
- return H(e, [{
86
- key: "componentDidMount",
87
- value: function() {
88
- if (u.canUseDOM) {
89
- s || (this.node = b("div")), this.node.className = this.props.portalClassName;
90
- var a = y(this.props.parentSelector);
91
- a.appendChild(this.node), !s && this.renderPortal(this.props);
92
- }
93
- }
94
- }, {
95
- key: "getSnapshotBeforeUpdate",
96
- value: function(a) {
97
- var n = y(a.parentSelector), l = y(this.props.parentSelector);
98
- return { prevParent: n, nextParent: l };
99
- }
100
- }, {
101
- key: "componentDidUpdate",
102
- value: function(a, n, l) {
103
- if (u.canUseDOM) {
104
- var c = this.props, v = c.isOpen, f = c.portalClassName;
105
- a.portalClassName !== f && (this.node.className = f);
106
- var i = l.prevParent, h = l.nextParent;
107
- h !== i && (i.removeChild(this.node), h.appendChild(this.node)), !(!a.isOpen && !v) && !s && this.renderPortal(this.props);
108
- }
109
- }
110
- }, {
111
- key: "componentWillUnmount",
112
- value: function() {
113
- if (!(!u.canUseDOM || !this.node || !this.portal)) {
114
- var a = this.portal.state, n = Date.now(), l = a.isOpen && this.props.closeTimeoutMS && (a.closesAt || n + this.props.closeTimeoutMS);
115
- l ? (a.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, l - n)) : this.removePortal();
116
- }
117
- }
118
- }, {
119
- key: "render",
120
- value: function() {
121
- if (!u.canUseDOM || !s)
122
- return null;
123
- !this.node && s && (this.node = b("div"));
124
- var a = P();
125
- return a(O.default.createElement(C.default, g({
126
- ref: this.portalRef,
127
- defaultStyles: e.defaultStyles
128
- }, this.props)), this.node);
129
- }
130
- }], [{
131
- key: "setAppElement",
132
- value: function(a) {
133
- W.setElement(a);
134
- }
135
- /* eslint-disable react/no-unused-prop-types */
136
- /* eslint-enable react/no-unused-prop-types */
137
- }]), e;
138
- }(R.Component);
139
- d.propTypes = {
140
- isOpen: t.default.bool.isRequired,
141
- style: t.default.shape({
142
- content: t.default.object,
143
- overlay: t.default.object
144
- }),
145
- portalClassName: t.default.string,
146
- bodyOpenClassName: t.default.string,
147
- htmlOpenClassName: t.default.string,
148
- className: t.default.oneOfType([t.default.string, t.default.shape({
149
- base: t.default.string.isRequired,
150
- afterOpen: t.default.string.isRequired,
151
- beforeClose: t.default.string.isRequired
152
- })]),
153
- overlayClassName: t.default.oneOfType([t.default.string, t.default.shape({
154
- base: t.default.string.isRequired,
155
- afterOpen: t.default.string.isRequired,
156
- beforeClose: t.default.string.isRequired
157
- })]),
158
- appElement: t.default.oneOfType([t.default.instanceOf(M.default), t.default.instanceOf(u.SafeHTMLCollection), t.default.instanceOf(u.SafeNodeList), t.default.arrayOf(t.default.instanceOf(M.default))]),
159
- onAfterOpen: t.default.func,
160
- onRequestClose: t.default.func,
161
- closeTimeoutMS: t.default.number,
162
- ariaHideApp: t.default.bool,
163
- shouldFocusAfterRender: t.default.bool,
164
- shouldCloseOnOverlayClick: t.default.bool,
165
- shouldReturnFocusAfterClose: t.default.bool,
166
- preventScroll: t.default.bool,
167
- parentSelector: t.default.func,
168
- aria: t.default.object,
169
- data: t.default.object,
170
- role: t.default.string,
171
- contentLabel: t.default.string,
172
- shouldCloseOnEsc: t.default.bool,
173
- overlayRef: t.default.func,
174
- contentRef: t.default.func,
175
- id: t.default.string,
176
- overlayElement: t.default.func,
177
- contentElement: t.default.func
178
- };
179
- d.defaultProps = {
180
- isOpen: !1,
181
- portalClassName: V,
182
- bodyOpenClassName: z,
183
- role: "dialog",
184
- ariaHideApp: !0,
185
- closeTimeoutMS: 0,
186
- shouldFocusAfterRender: !0,
187
- shouldCloseOnEsc: !0,
188
- shouldCloseOnOverlayClick: !0,
189
- shouldReturnFocusAfterClose: !0,
190
- preventScroll: !1,
191
- parentSelector: function() {
192
- return document.body;
193
- },
194
- overlayElement: function(e, o) {
195
- return O.default.createElement(
196
- "div",
197
- e,
198
- o
199
- );
200
- },
201
- contentElement: function(e, o) {
202
- return O.default.createElement(
203
- "div",
204
- e,
205
- o
206
- );
207
- }
208
- };
209
- d.defaultStyles = {
210
- overlay: {
211
- position: "fixed",
212
- top: 0,
213
- left: 0,
214
- right: 0,
215
- bottom: 0,
216
- backgroundColor: "rgba(255, 255, 255, 0.75)"
217
- },
218
- content: {
219
- position: "absolute",
220
- top: "40px",
221
- left: "40px",
222
- right: "40px",
223
- bottom: "40px",
224
- border: "1px solid #ccc",
225
- background: "#fff",
226
- overflow: "auto",
227
- WebkitOverflowScrolling: "touch",
228
- borderRadius: "4px",
229
- outline: "none",
230
- padding: "20px"
231
- }
5
+ export {
6
+ f as isAfter
232
7
  };
233
- (0, F.polyfill)(d);
234
- process.env.NODE_ENV !== "production" && (d.setCreateHTMLElement = function(r) {
235
- return b = r;
236
- });
237
- p.default = d;
package/es/index95.mjs CHANGED
@@ -1,4 +1,65 @@
1
- var a = {};
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { classNames as $ } from "./index51.mjs";
3
+ import { useMemo as f } from "react";
4
+ import { isInRange as a, isBetween as C } from "./index63.mjs";
5
+ import { isSameDay as s } from "./index93.mjs";
6
+ import { isBefore as I } from "./index92.mjs";
7
+ import { startOfMonth as N } from "./index99.mjs";
8
+ import { isAfter as O } from "./index94.mjs";
9
+ import { endOfMonth as S } from "./index100.mjs";
10
+ import { format as u } from "./index74.mjs";
11
+ function K({
12
+ date: r,
13
+ monthYear: c,
14
+ unavailable: p,
15
+ unavailableFrom: t,
16
+ unavailableTo: i,
17
+ value: n,
18
+ onChange: w,
19
+ highlight: o,
20
+ ariaLabelCurrentDay: E,
21
+ onMouseEnter: y,
22
+ onMouseLeave: M,
23
+ hoverStyle: d
24
+ }) {
25
+ const e = f(
26
+ () => a(r, t, i, p),
27
+ [p, t, i, r]
28
+ ), D = f(
29
+ () => !!n && s(n, r) && !(o && (o[0] || o[1])),
30
+ [n, r, o]
31
+ ), x = f(
32
+ () => !!o && (o[0] && s(new Date(o[0]), r) || o[1] && s(new Date(o[1]), r) || o[0] && o[1] && C(r, o[0], o[1])),
33
+ [o, r]
34
+ ), b = s(r, /* @__PURE__ */ new Date()), B = $({
35
+ "is-current": b,
36
+ "is-faded": I(r, N(c)) || O(r, S(c)),
37
+ "is-unavailable": e,
38
+ "is-selected": D || !!x,
39
+ "is-hovered": !!d
40
+ });
41
+ return /* @__PURE__ */ m("td", { children: /* @__PURE__ */ m(
42
+ "button",
43
+ {
44
+ className: B,
45
+ tabIndex: e ? -1 : void 0,
46
+ disabled: e,
47
+ type: "button",
48
+ "aria-pressed": D,
49
+ "aria-label": `${u(r, "EEEE d MMMM yyyy")}${b ? `, ${E}` : ""}`,
50
+ onClick: () => {
51
+ w(r);
52
+ },
53
+ onMouseEnter: () => {
54
+ y && y(r);
55
+ },
56
+ onMouseLeave: () => {
57
+ M && M(r);
58
+ },
59
+ children: /* @__PURE__ */ m("span", { children: u(r, "d") })
60
+ }
61
+ ) });
62
+ }
2
63
  export {
3
- a as __exports
64
+ K as DayButton
4
65
  };
package/es/index96.mjs CHANGED
@@ -1,69 +1,16 @@
1
- import { tzOffset as s } from "./index231.mjs";
2
- class n extends Date {
3
- //#region static
4
- constructor(...e) {
5
- super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), U(this), a(this)) : this.setTime(Date.now());
6
- }
7
- static tz(e, ...o) {
8
- return o.length ? new n(...o, e) : new n(Date.now(), e);
9
- }
10
- //#endregion
11
- //#region time zone
12
- withTimeZone(e) {
13
- return new n(+this, e);
14
- }
15
- getTimezoneOffset() {
16
- const e = -s(this.timeZone, this);
17
- return e > 0 ? Math.floor(e) : Math.ceil(e);
18
- }
19
- //#endregion
20
- //#region time
21
- setTime(e) {
22
- return Date.prototype.setTime.apply(this, arguments), a(this), +this;
23
- }
24
- //#endregion
25
- //#region date-fns integration
26
- [Symbol.for("constructDateFrom")](e) {
27
- return new n(+new Date(e), this.timeZone);
28
- }
29
- //#endregion
30
- }
31
- const D = /^(get|set)(?!UTC)/;
32
- Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
33
- if (!D.test(t)) return;
34
- const e = t.replace(D, "$1UTC");
35
- n.prototype[e] && (t.startsWith("get") ? n.prototype[t] = function() {
36
- return this.internal[e]();
37
- } : (n.prototype[t] = function() {
38
- return Date.prototype[e].apply(this.internal, arguments), H(this), +this;
39
- }, n.prototype[e] = function() {
40
- return Date.prototype[e].apply(this, arguments), a(this), +this;
41
- }));
42
- });
43
- function a(t) {
44
- t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-s(t.timeZone, t) * 60));
45
- }
46
- function H(t) {
47
- Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), U(t);
48
- }
49
- function U(t) {
50
- const e = s(t.timeZone, t), o = e > 0 ? Math.floor(e) : Math.ceil(e), i = /* @__PURE__ */ new Date(+t);
51
- i.setUTCHours(i.getUTCHours() - 1);
52
- const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), g = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), m = r - g, M = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
53
- m && M && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + m);
54
- const f = r - o;
55
- f && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
56
- const l = /* @__PURE__ */ new Date(+t);
57
- l.setUTCSeconds(0);
58
- const y = r > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(s(t.timeZone, t) * 60)) % 60;
59
- (c || y) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + c + y));
60
- const p = s(t.timeZone, t), u = p > 0 ? Math.floor(p) : Math.ceil(p), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - u, O = u !== o, C = w - f;
61
- if (O && C) {
62
- Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + C);
63
- const h = s(t.timeZone, t), S = h > 0 ? Math.floor(h) : Math.ceil(h), T = u - S;
64
- T && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + T), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + T));
65
- }
1
+ import { normalizeInterval as m } from "./index111.mjs";
2
+ import { constructFrom as l } from "./index104.mjs";
3
+ function p(n, a) {
4
+ const { start: t, end: r } = m(a?.in, n);
5
+ let s = +t > +r;
6
+ const c = s ? +t : +r, e = s ? r : t;
7
+ e.setHours(0, 0, 0, 0);
8
+ let i = 1;
9
+ const o = [];
10
+ for (; +e <= c; )
11
+ o.push(l(t, e)), e.setDate(e.getDate() + i), e.setHours(0, 0, 0, 0);
12
+ return s ? o.reverse() : o;
66
13
  }
67
14
  export {
68
- n as TZDateMini
15
+ p as eachDayOfInterval
69
16
  };
package/es/index97.mjs CHANGED
@@ -1,5 +1,9 @@
1
- import { TZDate as o } from "./index229.mjs";
2
- const a = (t) => (e) => o.tz(t, +new Date(e));
1
+ import { getDefaultOptions as c } from "./index112.mjs";
2
+ import { toDate as f } from "./index105.mjs";
3
+ function k(s, e) {
4
+ const n = c(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), a = t.getDay(), r = (a < o ? -7 : 0) + 6 - (a - o);
5
+ return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
6
+ }
3
7
  export {
4
- a as tz
8
+ k as endOfWeek
5
9
  };
package/es/index98.mjs CHANGED
@@ -1,7 +1,9 @@
1
- import { toDate as o } from "./index149.mjs";
2
- function f(r, t) {
3
- return +o(r) < +o(t);
1
+ import { getDefaultOptions as c } from "./index112.mjs";
2
+ import { toDate as f } from "./index105.mjs";
3
+ function k(s, e) {
4
+ const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
+ return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
4
6
  }
5
7
  export {
6
- f as isBefore
8
+ k as startOfWeek
7
9
  };
package/es/index99.mjs CHANGED
@@ -1,13 +1,8 @@
1
- import { normalizeDates as m } from "./index153.mjs";
2
- import { startOfDay as t } from "./index154.mjs";
3
- function s(r, a, e) {
4
- const [o, i] = m(
5
- e?.in,
6
- r,
7
- a
8
- );
9
- return +t(o) == +t(i);
1
+ import { toDate as r } from "./index105.mjs";
2
+ function s(o, e) {
3
+ const t = r(o, e?.in);
4
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
10
5
  }
11
6
  export {
12
- s as isSameDay
7
+ s as startOfMonth
13
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-ui/react",
3
- "version": "7.13.0-beta.6",
3
+ "version": "7.13.0-beta.7",
4
4
  "license": "MIT",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./es/index.mjs",
package/cjs/index56.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("./index55.js"),u=require("./index52.js"),S=require("./index57.js"),a=require("./index24.js"),p=({label:l,id:t,required:e,inline:n,className:r="",noMargin:c=!1})=>{const o=u.classNames({"a-input__label":!c,"a-input__label--inline":!!n,[r]:!!r});return l?i.jsxs("label",{className:o,htmlFor:t,children:[l,e&&S.renderRequiredAsterisk()]}):null},_=({id:l,description:t,state:e})=>{const n=u.classNames({"a-input__description":!0,"is-error":e===s.State.ERROR,"is-success":e===s.State.SUCCESS});return t?i.jsxs("small",{id:`${l}--description`,className:n,children:[e===s.State.SUCCESS&&i.jsx(a.Icon,{name:s.THEME_ICON_MAP[s.Theme.SUCCESS]}),e===s.State.ERROR&&i.jsx(a.Icon,{name:s.THEME_ICON_MAP[s.Theme.DANGER]}),t]}):null},C=({id:l,charCountText:t,charCounter:e,characterCount:n,maxLength:r})=>{const c=r?r-n:0,o=r&&c<=0,d=r?t?.replace("%max%",r.toString()).replace("%count%",n.toString()).replace("%left%",c.toString()):t?.replace("%count%",n.toString());return e?i.jsx("small",{"aria-live":"polite",id:`${l}--counter`,className:`a-input__description u-text-left${o?" u-text-danger":""}`,children:d}):null};exports.renderCharacterCounter=C;exports.renderDescription=_;exports.renderLabel=p;
package/cjs/index75.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index77.js");function a(e,t,d){return r.addMonths(e,t*12,d)}exports.addYears=a;
package/cjs/index80.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index161.js"),L=require("./index149.js");function O(c,g){const e=L.toDate(c,g?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let o="",s="";const r="-",f=":";{const n=t.addLeadingZeros(e.getDate(),2),a=t.addLeadingZeros(e.getMonth()+1,2);o=`${t.addLeadingZeros(e.getFullYear(),4)}${r}${a}${r}${n}`}{const n=e.getTimezoneOffset();if(n!==0){const i=Math.abs(n),$=t.addLeadingZeros(Math.trunc(i/60),2),Z=t.addLeadingZeros(i%60,2);s=`${n<0?"+":"-"}${$}:${Z}`}else s="Z";const a=t.addLeadingZeros(e.getHours(),2),d=t.addLeadingZeros(e.getMinutes(),2),u=t.addLeadingZeros(e.getSeconds(),2),l=o===""?"":"T",m=[a,d,u].join(f);o=`${o}${l}${m}${s}`}return o}exports.formatISO=O;
package/cjs/index81.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index156.js"),u=require("./index157.js"),m=require("./index158.js"),f=require("./index159.js"),T=require("./index79.js"),w=require("./index149.js"),D=require("./index160.js"),O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,E=/''/g,q=/[a-zA-Z]/;function k(o,a,r){const n=h.getDefaultOptions(),s=r?.locale??n.locale??D.enUS,p=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,d=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=w.toDate(o,r?.in);if(!T.isValid(i))throw new RangeError("Invalid time value");let c=a.match(S).map(t=>{const e=t[0];if(e==="p"||e==="P"){const l=m.longFormatters[e];return l(t,s.formatLong)}return t}).join("").match(O).map(t=>{if(t==="''")return{isToken:!1,value:"'"};const e=t[0];if(e==="'")return{isToken:!1,value:C(t)};if(u.formatters[e])return{isToken:!0,value:t};if(e.match(q))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});s.localize.preprocessor&&(c=s.localize.preprocessor(i,c));const g={firstWeekContainsDate:p,weekStartsOn:d,locale:s};return c.map(t=>{if(!t.isToken)return t.value;const e=t.value;(!r?.useAdditionalWeekYearTokens&&f.isProtectedWeekYearToken(e)||!r?.useAdditionalDayOfYearTokens&&f.isProtectedDayOfYearToken(e))&&f.warnOrThrowProtectedError(e,a,String(o));const l=u.formatters[e[0]];return l(i,e,s.localize,g)}).join("")}function C(o){const a=o.match(v);return a?a[1].replace(E,"'"):o}exports.formatters=u.formatters;exports.longFormatters=m.longFormatters;exports.format=k;exports.formatDate=k;
package/cjs/index86.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),u=require("./index52.js"),p=require("./index57.js"),g=require("./index14.js"),f=require("./index10.js");function k({actions:l,columns:d,small:o,tableId:i,selectable:s,onSelect:r,selected:m=[],rows:b}){const h=u.classNames({"is-clickable":!!s}),c=(t,e)=>{const n=t.target;return n?.classList.contains("a-button")||n.parentElement?.parentElement?.classList.contains("a-button")||n?.tagName==="A"&&n?.getAttribute("href")||n.parentElement?.parentElement?.tagName==="A"&&n.parentElement?.parentElement?.getAttribute("href")?!1:(t.preventDefault(),t.stopPropagation(),s&&r&&r(e.id))};return a.jsx("tbody",{children:b.map(t=>a.jsxs("tr",{onClick:e=>c(e,t),className:h,children:[s?a.jsx("td",{children:a.jsx(g.Checkbox,{name:`aui-table-checkbox-${i}-${t.id}`,id:`aui-table-checkbox-row-${i}-${t.id}`,checked:(m||[]).includes(t.id),onChange:e=>c(e,t),label:t.checkboxLabel,showLabel:!1})}):null,d.map(e=>{const n=u.classNames({"u-text-right":!!e.alignRight,"u-text-bold":e.dataType==="primary",small:e.dataType==="secondary","is-condensed":!!o});return a.jsx("td",{className:n,children:e.transformFunction?e.transformFunction(t[e?.value]||null):t[e?.value]||null},e?.value)}),p.wrapWithIf(l?.buttons?.map(e=>a.jsx(f.Button,{onClick:n=>e?.onActionClick&&e?.onActionClick(n,t.id),...e,id:`aui-table-action-${i}-${e?.id}-${t.id}`,size:e?.size||"small",children:e?.label||e?.children},`aui-table-action-${i}-${e?.id}-${t.id}`))||null,a.jsx("td",{}),!!l?.buttons?.length)]},t?.id))})}exports.TableBody=k;
package/es/index56.mjs DELETED
@@ -1,49 +0,0 @@
1
- import { jsxs as m, jsx as c } from "react/jsx-runtime";
2
- import { State as i, THEME_ICON_MAP as a, Theme as p } from "./index55.mjs";
3
- import { classNames as d } from "./index52.mjs";
4
- import { renderRequiredAsterisk as f } from "./index57.mjs";
5
- import { Icon as u } from "./index24.mjs";
6
- const b = ({ label: s, id: l, required: e, inline: n, className: r = "", noMargin: t = !1 }) => {
7
- const o = d({
8
- "a-input__label": !t,
9
- "a-input__label--inline": !!n,
10
- [r]: !!r
11
- });
12
- return s ? /* @__PURE__ */ m("label", { className: o, htmlFor: l, children: [
13
- s,
14
- e && f()
15
- ] }) : null;
16
- }, O = ({ id: s, description: l, state: e }) => {
17
- const n = d({
18
- "a-input__description": !0,
19
- "is-error": e === i.ERROR,
20
- "is-success": e === i.SUCCESS
21
- });
22
- return l ? /* @__PURE__ */ m("small", { id: `${s}--description`, className: n, children: [
23
- e === i.SUCCESS && /* @__PURE__ */ c(u, { name: a[p.SUCCESS] }),
24
- e === i.ERROR && /* @__PURE__ */ c(u, { name: a[p.DANGER] }),
25
- l
26
- ] }) : null;
27
- }, A = ({
28
- id: s,
29
- charCountText: l,
30
- charCounter: e,
31
- characterCount: n,
32
- maxLength: r
33
- }) => {
34
- const t = r ? r - n : 0, o = r && t <= 0, S = r ? l?.replace("%max%", r.toString()).replace("%count%", n.toString()).replace("%left%", t.toString()) : l?.replace("%count%", n.toString());
35
- return e ? /* @__PURE__ */ c(
36
- "small",
37
- {
38
- "aria-live": "polite",
39
- id: `${s}--counter`,
40
- className: `a-input__description u-text-left${o ? " u-text-danger" : ""}`,
41
- children: S
42
- }
43
- ) : null;
44
- };
45
- export {
46
- A as renderCharacterCounter,
47
- O as renderDescription,
48
- b as renderLabel
49
- };
package/es/index75.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { addMonths as d } from "./index77.mjs";
2
- function a(r, o, t) {
3
- return d(r, o * 12, t);
4
- }
5
- export {
6
- a as addYears
7
- };
package/es/index80.mjs DELETED
@@ -1,27 +0,0 @@
1
- import { addLeadingZeros as e } from "./index161.mjs";
2
- import { toDate as O } from "./index149.mjs";
3
- function y(f, m) {
4
- const t = O(f, m?.in);
5
- if (isNaN(+t))
6
- throw new RangeError("Invalid time value");
7
- let o = "", s = "";
8
- const i = "-", u = ":";
9
- {
10
- const n = e(t.getDate(), 2), r = e(t.getMonth() + 1, 2);
11
- o = `${e(t.getFullYear(), 4)}${i}${r}${i}${n}`;
12
- }
13
- {
14
- const n = t.getTimezoneOffset();
15
- if (n !== 0) {
16
- const c = Math.abs(n), d = e(Math.trunc(c / 60), 2), h = e(c % 60, 2);
17
- s = `${n < 0 ? "+" : "-"}${d}:${h}`;
18
- } else
19
- s = "Z";
20
- const r = e(t.getHours(), 2), a = e(t.getMinutes(), 2), $ = e(t.getSeconds(), 2), g = o === "" ? "" : "T", l = [r, a, $].join(u);
21
- o = `${o}${g}${l}${s}`;
22
- }
23
- return o;
24
- }
25
- export {
26
- y as formatISO
27
- };
package/es/index81.mjs DELETED
@@ -1,57 +0,0 @@
1
- import { getDefaultOptions as u } from "./index156.mjs";
2
- import { formatters as f } from "./index157.mjs";
3
- import { longFormatters as d } from "./index158.mjs";
4
- import { isProtectedWeekYearToken as g, isProtectedDayOfYearToken as h, warnOrThrowProtectedError as w } from "./index159.mjs";
5
- import { isValid as D } from "./index79.mjs";
6
- import { toDate as T } from "./index149.mjs";
7
- import { enUS as O } from "./index160.mjs";
8
- const E = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, C = /^'([^]*?)'?$/, S = /''/g, R = /[a-zA-Z]/;
9
- function L(o, a, r) {
10
- const n = u(), i = r?.locale ?? n.locale ?? O, m = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, p = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, s = T(o, r?.in);
11
- if (!D(s))
12
- throw new RangeError("Invalid time value");
13
- let c = a.match(v).map((t) => {
14
- const e = t[0];
15
- if (e === "p" || e === "P") {
16
- const l = d[e];
17
- return l(t, i.formatLong);
18
- }
19
- return t;
20
- }).join("").match(E).map((t) => {
21
- if (t === "''")
22
- return { isToken: !1, value: "'" };
23
- const e = t[0];
24
- if (e === "'")
25
- return { isToken: !1, value: W(t) };
26
- if (f[e])
27
- return { isToken: !0, value: t };
28
- if (e.match(R))
29
- throw new RangeError(
30
- "Format string contains an unescaped latin alphabet character `" + e + "`"
31
- );
32
- return { isToken: !1, value: t };
33
- });
34
- i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
35
- const k = {
36
- firstWeekContainsDate: m,
37
- weekStartsOn: p,
38
- locale: i
39
- };
40
- return c.map((t) => {
41
- if (!t.isToken) return t.value;
42
- const e = t.value;
43
- (!r?.useAdditionalWeekYearTokens && g(e) || !r?.useAdditionalDayOfYearTokens && h(e)) && w(e, a, String(o));
44
- const l = f[e[0]];
45
- return l(s, e, i.localize, k);
46
- }).join("");
47
- }
48
- function W(o) {
49
- const a = o.match(C);
50
- return a ? a[1].replace(S, "'") : o;
51
- }
52
- export {
53
- L as format,
54
- L as formatDate,
55
- f as formatters,
56
- d as longFormatters
57
- };