@a-ui/react 7.13.0-beta.0 → 7.13.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/constants/settings.d.ts +1 -1
  2. package/constants/stories.settings.d.ts +11 -0
  3. package/index.js +1 -62
  4. package/index.mjs +98 -9098
  5. package/index10.js +1 -0
  6. package/index10.mjs +60 -0
  7. package/index100.js +1 -0
  8. package/index100.mjs +4 -0
  9. package/index101.js +1 -0
  10. package/index101.mjs +400 -0
  11. package/index102.js +5 -0
  12. package/index102.mjs +42 -0
  13. package/index103.js +1 -0
  14. package/index103.mjs +4 -0
  15. package/index104.js +1 -0
  16. package/index104.mjs +10 -0
  17. package/index105.js +2 -0
  18. package/index105.mjs +329 -0
  19. package/index106.js +1 -0
  20. package/index106.mjs +52 -0
  21. package/index107.js +1 -0
  22. package/index107.mjs +4 -0
  23. package/index108.js +1 -0
  24. package/index108.mjs +67 -0
  25. package/index109.js +1 -0
  26. package/index109.mjs +45 -0
  27. package/index11.js +1 -0
  28. package/index11.mjs +12 -0
  29. package/index110.js +10 -0
  30. package/index110.mjs +62 -0
  31. package/index111.js +1 -0
  32. package/index111.mjs +46 -0
  33. package/index112.js +1 -0
  34. package/index112.mjs +42 -0
  35. package/index113.js +1 -0
  36. package/index113.mjs +4 -0
  37. package/index114.js +1 -0
  38. package/index114.mjs +4 -0
  39. package/index115.js +1 -0
  40. package/index115.mjs +4 -0
  41. package/index116.js +1 -0
  42. package/index116.mjs +33 -0
  43. package/index117.js +5 -0
  44. package/index117.mjs +21 -0
  45. package/index118.js +9 -0
  46. package/index118.mjs +63 -0
  47. package/index119.js +1 -0
  48. package/index119.mjs +65 -0
  49. package/index12.js +1 -0
  50. package/index12.mjs +215 -0
  51. package/index120.js +1 -0
  52. package/index120.mjs +16 -0
  53. package/index121.js +1 -0
  54. package/index121.mjs +9 -0
  55. package/index122.js +1 -0
  56. package/index122.mjs +9 -0
  57. package/index123.js +1 -0
  58. package/index123.mjs +8 -0
  59. package/index124.js +1 -0
  60. package/index124.mjs +8 -0
  61. package/index125.js +1 -0
  62. package/index125.mjs +7 -0
  63. package/index126.js +1 -0
  64. package/index126.mjs +7 -0
  65. package/index127.js +1 -0
  66. package/index127.mjs +9 -0
  67. package/index128.js +1 -0
  68. package/index128.mjs +7 -0
  69. package/index129.js +1 -0
  70. package/index129.mjs +69 -0
  71. package/index13.js +1 -0
  72. package/index13.mjs +29 -0
  73. package/index130.js +1 -0
  74. package/index130.mjs +5 -0
  75. package/index131.js +1 -0
  76. package/index131.mjs +7 -0
  77. package/index132.js +1 -0
  78. package/index132.mjs +13 -0
  79. package/index133.js +1 -0
  80. package/index133.mjs +4 -0
  81. package/index134.js +1 -0
  82. package/index134.mjs +393 -0
  83. package/index135.js +1 -0
  84. package/index135.mjs +127 -0
  85. package/index136.js +1 -0
  86. package/index136.mjs +136 -0
  87. package/index137.js +1 -0
  88. package/index137.mjs +4 -0
  89. package/index138.js +1 -0
  90. package/index138.mjs +4 -0
  91. package/index139.js +8 -0
  92. package/index139.mjs +78 -0
  93. package/index14.js +1 -0
  94. package/index14.mjs +44 -0
  95. package/index140.js +8 -0
  96. package/index140.mjs +95 -0
  97. package/index141.js +5 -0
  98. package/index141.mjs +54 -0
  99. package/index142.js +1 -0
  100. package/index142.mjs +10 -0
  101. package/index143.js +1 -0
  102. package/index143.mjs +7 -0
  103. package/index144.js +1 -0
  104. package/index144.mjs +54 -0
  105. package/index145.js +11 -0
  106. package/index145.mjs +60 -0
  107. package/index146.js +1 -0
  108. package/index146.mjs +4 -0
  109. package/index147.js +1 -0
  110. package/index147.mjs +4 -0
  111. package/index148.js +1 -0
  112. package/index148.mjs +7 -0
  113. package/index149.js +1 -0
  114. package/index149.mjs +7 -0
  115. package/index15.js +1 -0
  116. package/index15.mjs +8 -0
  117. package/index150.js +1 -0
  118. package/index150.mjs +9 -0
  119. package/index151.js +1 -0
  120. package/index151.mjs +15 -0
  121. package/index152.js +1 -0
  122. package/index152.mjs +18 -0
  123. package/index153.js +1 -0
  124. package/index153.mjs +11 -0
  125. package/index154.js +1 -0
  126. package/index154.mjs +8 -0
  127. package/index155.js +1 -0
  128. package/index155.mjs +8 -0
  129. package/index156.js +1 -0
  130. package/index156.mjs +7 -0
  131. package/index157.js +1 -0
  132. package/index157.mjs +515 -0
  133. package/index158.js +1 -0
  134. package/index158.mjs +52 -0
  135. package/index159.js +1 -0
  136. package/index159.mjs +20 -0
  137. package/index16.js +1 -0
  138. package/index16.mjs +15 -0
  139. package/index160.js +1 -0
  140. package/index160.mjs +20 -0
  141. package/index161.js +1 -0
  142. package/index161.mjs +7 -0
  143. package/index162.js +1 -0
  144. package/index162.mjs +10 -0
  145. package/index163.js +1 -0
  146. package/index163.mjs +8 -0
  147. package/index164.js +1 -0
  148. package/index164.mjs +7 -0
  149. package/index165.js +1 -0
  150. package/index165.mjs +8 -0
  151. package/index166.js +1 -0
  152. package/index166.mjs +11 -0
  153. package/index167.js +1 -0
  154. package/index167.mjs +7 -0
  155. package/index168.js +1 -0
  156. package/index168.mjs +10 -0
  157. package/index169.js +1 -0
  158. package/index169.mjs +14 -0
  159. package/index17.js +1 -0
  160. package/index17.mjs +108 -0
  161. package/index170.js +1 -0
  162. package/index170.mjs +11 -0
  163. package/index171.js +1 -0
  164. package/index171.mjs +11 -0
  165. package/index172.js +1 -0
  166. package/index172.mjs +15 -0
  167. package/index173.js +1 -0
  168. package/index173.mjs +6 -0
  169. package/index174.js +1 -0
  170. package/index174.mjs +35 -0
  171. package/index175.js +1 -0
  172. package/index175.mjs +67 -0
  173. package/index176.js +1 -0
  174. package/index176.mjs +10 -0
  175. package/index177.js +1 -0
  176. package/index177.mjs +10 -0
  177. package/index178.js +1 -0
  178. package/index178.mjs +9 -0
  179. package/index179.js +1 -0
  180. package/index179.mjs +9 -0
  181. package/index18.js +1 -0
  182. package/index18.mjs +136 -0
  183. package/index180.js +1 -0
  184. package/index180.mjs +16 -0
  185. package/index181.js +1 -0
  186. package/index181.mjs +4 -0
  187. package/index182.js +1 -0
  188. package/index182.mjs +4 -0
  189. package/index183.js +1 -0
  190. package/index183.mjs +4 -0
  191. package/index184.js +1 -0
  192. package/index184.mjs +59 -0
  193. package/index185.js +1 -0
  194. package/index185.mjs +24 -0
  195. package/index186.js +1 -0
  196. package/index186.mjs +43 -0
  197. package/index187.js +1 -0
  198. package/index187.mjs +63 -0
  199. package/index188.js +1 -0
  200. package/index188.mjs +34 -0
  201. package/index189.js +1 -0
  202. package/index189.mjs +15 -0
  203. package/index19.js +1 -0
  204. package/index19.mjs +11 -0
  205. package/index190.js +1 -0
  206. package/index190.mjs +64 -0
  207. package/index191.js +1 -0
  208. package/index191.mjs +64 -0
  209. package/index192.js +1 -0
  210. package/index192.mjs +65 -0
  211. package/index193.js +1 -0
  212. package/index193.mjs +65 -0
  213. package/index194.js +1 -0
  214. package/index194.mjs +42 -0
  215. package/index195.js +1 -0
  216. package/index195.mjs +43 -0
  217. package/index196.js +1 -0
  218. package/index196.mjs +55 -0
  219. package/index197.js +1 -0
  220. package/index197.mjs +45 -0
  221. package/index198.js +1 -0
  222. package/index198.mjs +39 -0
  223. package/index199.js +1 -0
  224. package/index199.mjs +68 -0
  225. package/index2.js +1 -0
  226. package/index2.mjs +12 -0
  227. package/index20.js +1 -0
  228. package/index20.mjs +54 -0
  229. package/index200.js +1 -0
  230. package/index200.mjs +68 -0
  231. package/index201.js +1 -0
  232. package/index201.mjs +93 -0
  233. package/index202.js +1 -0
  234. package/index202.mjs +43 -0
  235. package/index203.js +1 -0
  236. package/index203.mjs +43 -0
  237. package/index204.js +1 -0
  238. package/index204.mjs +43 -0
  239. package/index205.js +1 -0
  240. package/index205.mjs +27 -0
  241. package/index206.js +1 -0
  242. package/index206.mjs +26 -0
  243. package/index207.js +1 -0
  244. package/index207.mjs +26 -0
  245. package/index208.js +1 -0
  246. package/index208.mjs +27 -0
  247. package/index209.js +1 -0
  248. package/index209.mjs +26 -0
  249. package/index21.js +1 -0
  250. package/index21.mjs +33 -0
  251. package/index210.js +1 -0
  252. package/index210.mjs +26 -0
  253. package/index211.js +1 -0
  254. package/index211.mjs +16 -0
  255. package/index212.js +1 -0
  256. package/index212.mjs +42 -0
  257. package/index213.js +1 -0
  258. package/index213.mjs +42 -0
  259. package/index214.js +1 -0
  260. package/index214.mjs +16 -0
  261. package/index215.js +1 -0
  262. package/index215.mjs +16 -0
  263. package/index216.js +1 -0
  264. package/index216.mjs +70 -0
  265. package/index217.js +1 -0
  266. package/index217.mjs +33 -0
  267. package/index218.js +1 -0
  268. package/index218.mjs +11 -0
  269. package/index219.js +1 -0
  270. package/index219.mjs +155 -0
  271. package/index22.js +1 -0
  272. package/index22.mjs +22 -0
  273. package/index220.js +1 -0
  274. package/index220.mjs +110 -0
  275. package/index221.js +1 -0
  276. package/index221.mjs +22 -0
  277. package/index222.js +1 -0
  278. package/index222.mjs +103 -0
  279. package/index223.js +1 -0
  280. package/index223.mjs +49 -0
  281. package/index224.js +1 -0
  282. package/index224.mjs +70 -0
  283. package/index225.js +1 -0
  284. package/index225.mjs +33 -0
  285. package/index226.js +1 -0
  286. package/index226.mjs +11 -0
  287. package/index227.js +1 -0
  288. package/index227.mjs +110 -0
  289. package/index228.js +1 -0
  290. package/index228.mjs +109 -0
  291. package/index229.js +1 -0
  292. package/index229.mjs +9 -0
  293. package/index23.js +1 -0
  294. package/index23.mjs +32 -0
  295. package/index230.js +1 -0
  296. package/index230.mjs +18 -0
  297. package/index231.js +1 -0
  298. package/index231.mjs +31 -0
  299. package/index232.js +1 -0
  300. package/index232.mjs +15 -0
  301. package/index233.js +1 -0
  302. package/index233.mjs +61 -0
  303. package/index234.js +1 -0
  304. package/index234.mjs +11 -0
  305. package/index235.js +1 -0
  306. package/index235.mjs +22 -0
  307. package/index24.js +2 -0
  308. package/index24.mjs +62 -0
  309. package/index25.js +1 -0
  310. package/index25.mjs +15 -0
  311. package/index26.js +1 -0
  312. package/index26.mjs +12 -0
  313. package/index27.js +1 -0
  314. package/index27.mjs +43 -0
  315. package/index28.js +1 -0
  316. package/index28.mjs +34 -0
  317. package/index29.js +1 -0
  318. package/index29.mjs +10 -0
  319. package/index3.js +1 -0
  320. package/index3.mjs +15 -0
  321. package/index30.js +1 -0
  322. package/index30.mjs +72 -0
  323. package/index31.js +1 -0
  324. package/index31.mjs +40 -0
  325. package/index32.js +1 -0
  326. package/index32.mjs +48 -0
  327. package/index33.js +1 -0
  328. package/index33.mjs +90 -0
  329. package/index34.js +1 -0
  330. package/index34.mjs +36 -0
  331. package/index35.js +1 -0
  332. package/index35.mjs +25 -0
  333. package/index36.js +1 -0
  334. package/index36.mjs +27 -0
  335. package/index37.js +1 -0
  336. package/index37.mjs +110 -0
  337. package/index38.js +1 -0
  338. package/index38.mjs +57 -0
  339. package/index39.js +1 -0
  340. package/index39.mjs +21 -0
  341. package/index4.js +1 -0
  342. package/index4.mjs +58 -0
  343. package/index40.js +1 -0
  344. package/index40.mjs +40 -0
  345. package/index41.js +1 -0
  346. package/index41.mjs +54 -0
  347. package/index42.js +1 -0
  348. package/index42.mjs +73 -0
  349. package/index43.js +1 -0
  350. package/index43.mjs +49 -0
  351. package/index44.js +1 -0
  352. package/index44.mjs +13 -0
  353. package/index45.js +1 -0
  354. package/index45.mjs +73 -0
  355. package/index46.js +1 -0
  356. package/index46.mjs +99 -0
  357. package/index47.js +1 -0
  358. package/index47.mjs +45 -0
  359. package/index48.js +1 -0
  360. package/index48.mjs +26 -0
  361. package/index49.js +1 -0
  362. package/index49.mjs +83 -0
  363. package/index5.js +1 -0
  364. package/index5.mjs +136 -0
  365. package/index50.js +1 -0
  366. package/index50.mjs +35 -0
  367. package/index51.js +1 -0
  368. package/index51.mjs +10 -0
  369. package/index52.js +1 -0
  370. package/index52.mjs +13 -0
  371. package/index53.js +1 -0
  372. package/index53.mjs +30 -0
  373. package/index54.js +1 -0
  374. package/index54.mjs +51 -0
  375. package/index55.js +1 -0
  376. package/index55.mjs +10 -0
  377. package/index56.js +1 -0
  378. package/index56.mjs +49 -0
  379. package/index58.js +1 -0
  380. package/index58.mjs +64 -0
  381. package/index59.js +1 -0
  382. package/index59.mjs +62 -0
  383. package/index6.js +1 -0
  384. package/index6.mjs +29 -0
  385. package/index60.js +1 -0
  386. package/index60.mjs +31 -0
  387. package/index61.js +1 -0
  388. package/index61.mjs +23 -0
  389. package/index62.js +1 -0
  390. package/index62.mjs +32 -0
  391. package/index63.js +1 -0
  392. package/index63.mjs +16 -0
  393. package/index64.js +1 -0
  394. package/index64.mjs +61 -0
  395. package/index65.js +1 -0
  396. package/index65.mjs +19 -0
  397. package/index66.js +7 -0
  398. package/index66.mjs +411 -0
  399. package/index7.js +1 -0
  400. package/index7.mjs +8 -0
  401. package/index70.js +1 -0
  402. package/index70.mjs +4 -0
  403. package/index71.js +1 -0
  404. package/index71.mjs +76 -0
  405. package/index72.js +1 -0
  406. package/index72.mjs +31 -0
  407. package/index73.js +1 -0
  408. package/index73.mjs +38 -0
  409. package/index74.js +1 -0
  410. package/index74.mjs +6 -0
  411. package/index75.js +1 -0
  412. package/index75.mjs +37 -0
  413. package/index76.js +1 -0
  414. package/index76.mjs +7 -0
  415. package/index77.js +1 -0
  416. package/index77.mjs +7 -0
  417. package/index78.js +1 -0
  418. package/index78.mjs +7 -0
  419. package/index79.js +1 -0
  420. package/index79.mjs +7 -0
  421. package/index8.js +1 -0
  422. package/index8.mjs +18 -0
  423. package/index80.js +1 -0
  424. package/index80.mjs +7 -0
  425. package/index81.js +1 -0
  426. package/index81.mjs +19 -0
  427. package/index82.js +1 -0
  428. package/index82.mjs +87 -0
  429. package/index83.js +1 -0
  430. package/index83.mjs +8 -0
  431. package/index84.js +1 -0
  432. package/index84.mjs +27 -0
  433. package/index85.js +1 -0
  434. package/index85.mjs +57 -0
  435. package/index87.js +1 -0
  436. package/index87.mjs +7 -0
  437. package/index88.js +1 -0
  438. package/index88.mjs +121 -0
  439. package/index89.js +1 -0
  440. package/index89.mjs +20 -0
  441. package/index9.js +1 -0
  442. package/index9.mjs +18 -0
  443. package/index90.js +1 -0
  444. package/index90.mjs +26 -0
  445. package/index91.js +1 -0
  446. package/index91.mjs +4 -0
  447. package/index92.js +1 -0
  448. package/index92.mjs +237 -0
  449. package/index93.js +1 -0
  450. package/index93.mjs +4 -0
  451. package/index94.js +1 -0
  452. package/index94.mjs +13 -0
  453. package/index95.js +1 -0
  454. package/index95.mjs +249 -0
  455. package/index96.js +1 -0
  456. package/index96.mjs +91 -0
  457. package/index97.js +1 -0
  458. package/index97.mjs +15 -0
  459. package/index98.js +1 -0
  460. package/index98.mjs +6 -0
  461. package/index99.js +1 -0
  462. package/index99.mjs +4 -0
  463. package/lib/atoms/input/text-field/TextField.d.ts +1 -1
  464. package/lib/atoms/select/Select.types.d.ts +1 -1
  465. package/lib/base/icon/Icon.d.ts +1 -1
  466. package/lib/molecules/datepicker/Calendar.d.ts +1 -1
  467. package/lib/molecules/flyout/Flyout.d.ts +1 -1
  468. package/lib/molecules/tag/Tag.d.ts +1 -1
  469. package/package.json +4 -1
  470. package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +1 -0
  471. package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +1 -0
  472. package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +1 -0
  473. package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +1 -0
  474. package/utils/math.utils.d.ts +1 -1
  475. package/index.css +0 -1
package/index95.mjs ADDED
@@ -0,0 +1,249 @@
1
+ import { __module as T } from "./index107.mjs";
2
+ import $ from "react";
3
+ import { p as V } from "./index94.mjs";
4
+ import "./index108.mjs";
5
+ import { s as z } from "./index109.mjs";
6
+ import "./index96.mjs";
7
+ import "./index110.mjs";
8
+ import "./index97.mjs";
9
+ import "./index111.mjs";
10
+ import "./index112.mjs";
11
+ import { __exports as G } from "./index99.mjs";
12
+ import { __exports as J } from "./index113.mjs";
13
+ import { __exports as Q } from "./index100.mjs";
14
+ import { __exports as X } from "./index114.mjs";
15
+ import { __exports as Y } from "./index115.mjs";
16
+ (function(E, O) {
17
+ Object.defineProperty(O, "__esModule", {
18
+ value: !0
19
+ });
20
+ var c = Object.assign || function(a) {
21
+ for (var n = 1; n < arguments.length; n++) {
22
+ var s = arguments[n];
23
+ for (var e in s)
24
+ Object.prototype.hasOwnProperty.call(s, e) && (a[e] = s[e]);
25
+ }
26
+ return a;
27
+ }, A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
28
+ return typeof a;
29
+ } : function(a) {
30
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
31
+ }, R = /* @__PURE__ */ function() {
32
+ function a(n, s) {
33
+ for (var e = 0; e < s.length; e++) {
34
+ var t = s[e];
35
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n, t.key, t);
36
+ }
37
+ }
38
+ return function(n, s, e) {
39
+ return s && a(n.prototype, s), e && a(n, e), n;
40
+ };
41
+ }(), w = $, g = V, o = m(g), D = Y, p = C(D), F = z, H = m(F), k = Q, N = C(k), x = J, d = C(x), v = G, S = m(v), L = X, M = m(L);
42
+ function C(a) {
43
+ if (a && a.__esModule)
44
+ return a;
45
+ var n = {};
46
+ if (a != null)
47
+ for (var s in a)
48
+ Object.prototype.hasOwnProperty.call(a, s) && (n[s] = a[s]);
49
+ return n.default = a, n;
50
+ }
51
+ function m(a) {
52
+ return a && a.__esModule ? a : { default: a };
53
+ }
54
+ function P(a, n) {
55
+ if (!(a instanceof n))
56
+ throw new TypeError("Cannot call a class as a function");
57
+ }
58
+ function q(a, n) {
59
+ if (!a)
60
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
61
+ return n && (typeof n == "object" || typeof n == "function") ? n : a;
62
+ }
63
+ function W(a, n) {
64
+ if (typeof n != "function" && n !== null)
65
+ throw new TypeError("Super expression must either be null or a function, not " + typeof n);
66
+ a.prototype = Object.create(n && n.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), n && (Object.setPrototypeOf ? Object.setPrototypeOf(a, n) : a.__proto__ = n);
67
+ }
68
+ var b = {
69
+ overlay: "ReactModal__Overlay",
70
+ content: "ReactModal__Content"
71
+ }, j = function(n) {
72
+ return n.code === "Tab" || n.keyCode === 9;
73
+ }, I = function(n) {
74
+ return n.code === "Escape" || n.keyCode === 27;
75
+ }, h = 0, _ = function(a) {
76
+ W(n, a);
77
+ function n(s) {
78
+ P(this, n);
79
+ var e = q(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, s));
80
+ return e.setOverlayRef = function(t) {
81
+ e.overlay = t, e.props.overlayRef && e.props.overlayRef(t);
82
+ }, e.setContentRef = function(t) {
83
+ e.content = t, e.props.contentRef && e.props.contentRef(t);
84
+ }, e.afterClose = function() {
85
+ var t = e.props, l = t.appElement, i = t.ariaHideApp, r = t.htmlOpenClassName, u = t.bodyOpenClassName, f = t.parentSelector, y = f && f().ownerDocument || document;
86
+ u && d.remove(y.body, u), r && d.remove(y.getElementsByTagName("html")[0], r), i && h > 0 && (h -= 1, h === 0 && N.show(l)), e.props.shouldFocusAfterRender && (e.props.shouldReturnFocusAfterClose ? (p.returnFocus(e.props.preventScroll), p.teardownScopedFocus()) : p.popWithoutFocus()), e.props.onAfterClose && e.props.onAfterClose(), M.default.deregister(e);
87
+ }, e.open = function() {
88
+ e.beforeOpen(), e.state.afterOpen && e.state.beforeClose ? (clearTimeout(e.closeTimer), e.setState({ beforeClose: !1 })) : (e.props.shouldFocusAfterRender && (p.setupScopedFocus(e.node), p.markForFocusLater()), e.setState({ isOpen: !0 }, function() {
89
+ e.openAnimationFrame = requestAnimationFrame(function() {
90
+ e.setState({ afterOpen: !0 }), e.props.isOpen && e.props.onAfterOpen && e.props.onAfterOpen({
91
+ overlayEl: e.overlay,
92
+ contentEl: e.content
93
+ });
94
+ });
95
+ }));
96
+ }, e.close = function() {
97
+ e.props.closeTimeoutMS > 0 ? e.closeWithTimeout() : e.closeWithoutTimeout();
98
+ }, e.focusContent = function() {
99
+ return e.content && !e.contentHasFocus() && e.content.focus({ preventScroll: !0 });
100
+ }, e.closeWithTimeout = function() {
101
+ var t = Date.now() + e.props.closeTimeoutMS;
102
+ e.setState({ beforeClose: !0, closesAt: t }, function() {
103
+ e.closeTimer = setTimeout(e.closeWithoutTimeout, e.state.closesAt - Date.now());
104
+ });
105
+ }, e.closeWithoutTimeout = function() {
106
+ e.setState({
107
+ beforeClose: !1,
108
+ isOpen: !1,
109
+ afterOpen: !1,
110
+ closesAt: null
111
+ }, e.afterClose);
112
+ }, e.handleKeyDown = function(t) {
113
+ j(t) && (0, H.default)(e.content, t), e.props.shouldCloseOnEsc && I(t) && (t.stopPropagation(), e.requestClose(t));
114
+ }, e.handleOverlayOnClick = function(t) {
115
+ e.shouldClose === null && (e.shouldClose = !0), e.shouldClose && e.props.shouldCloseOnOverlayClick && (e.ownerHandlesClose() ? e.requestClose(t) : e.focusContent()), e.shouldClose = null;
116
+ }, e.handleContentOnMouseUp = function() {
117
+ e.shouldClose = !1;
118
+ }, e.handleOverlayOnMouseDown = function(t) {
119
+ !e.props.shouldCloseOnOverlayClick && t.target == e.overlay && t.preventDefault();
120
+ }, e.handleContentOnClick = function() {
121
+ e.shouldClose = !1;
122
+ }, e.handleContentOnMouseDown = function() {
123
+ e.shouldClose = !1;
124
+ }, e.requestClose = function(t) {
125
+ return e.ownerHandlesClose() && e.props.onRequestClose(t);
126
+ }, e.ownerHandlesClose = function() {
127
+ return e.props.onRequestClose;
128
+ }, e.shouldBeClosed = function() {
129
+ return !e.state.isOpen && !e.state.beforeClose;
130
+ }, e.contentHasFocus = function() {
131
+ return document.activeElement === e.content || e.content.contains(document.activeElement);
132
+ }, e.buildClassName = function(t, l) {
133
+ var i = (typeof l > "u" ? "undefined" : A(l)) === "object" ? l : {
134
+ base: b[t],
135
+ afterOpen: b[t] + "--after-open",
136
+ beforeClose: b[t] + "--before-close"
137
+ }, r = i.base;
138
+ return e.state.afterOpen && (r = r + " " + i.afterOpen), e.state.beforeClose && (r = r + " " + i.beforeClose), typeof l == "string" && l ? r + " " + l : r;
139
+ }, e.attributesFromObject = function(t, l) {
140
+ return Object.keys(l).reduce(function(i, r) {
141
+ return i[t + "-" + r] = l[r], i;
142
+ }, {});
143
+ }, e.state = {
144
+ afterOpen: !1,
145
+ beforeClose: !1
146
+ }, e.shouldClose = null, e.moveFromContentToOverlay = null, e;
147
+ }
148
+ return R(n, [{
149
+ key: "componentDidMount",
150
+ value: function() {
151
+ this.props.isOpen && this.open();
152
+ }
153
+ }, {
154
+ key: "componentDidUpdate",
155
+ value: function(e, t) {
156
+ process.env.NODE_ENV !== "production" && (e.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), e.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !e.isOpen ? this.open() : !this.props.isOpen && e.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !t.isOpen && this.focusContent();
157
+ }
158
+ }, {
159
+ key: "componentWillUnmount",
160
+ value: function() {
161
+ this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame);
162
+ }
163
+ }, {
164
+ key: "beforeOpen",
165
+ value: function() {
166
+ var e = this.props, t = e.appElement, l = e.ariaHideApp, i = e.htmlOpenClassName, r = e.bodyOpenClassName, u = e.parentSelector, f = u && u().ownerDocument || document;
167
+ r && d.add(f.body, r), i && d.add(f.getElementsByTagName("html")[0], i), l && (h += 1, N.hide(t)), M.default.register(this);
168
+ }
169
+ // Don't steal focus from inner elements
170
+ }, {
171
+ key: "render",
172
+ value: function() {
173
+ var e = this.props, t = e.id, l = e.className, i = e.overlayClassName, r = e.defaultStyles, u = e.children, f = l ? {} : r.content, y = i ? {} : r.overlay;
174
+ if (this.shouldBeClosed())
175
+ return null;
176
+ var K = {
177
+ ref: this.setOverlayRef,
178
+ className: this.buildClassName("overlay", i),
179
+ style: c({}, y, this.props.style.overlay),
180
+ onClick: this.handleOverlayOnClick,
181
+ onMouseDown: this.handleOverlayOnMouseDown
182
+ }, U = c({
183
+ id: t,
184
+ ref: this.setContentRef,
185
+ style: c({}, f, this.props.style.content),
186
+ className: this.buildClassName("content", l),
187
+ tabIndex: "-1",
188
+ onKeyDown: this.handleKeyDown,
189
+ onMouseDown: this.handleContentOnMouseDown,
190
+ onMouseUp: this.handleContentOnMouseUp,
191
+ onClick: this.handleContentOnClick,
192
+ role: this.props.role,
193
+ "aria-label": this.props.contentLabel
194
+ }, this.attributesFromObject("aria", c({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
195
+ "data-testid": this.props.testId
196
+ }), B = this.props.contentElement(U, u);
197
+ return this.props.overlayElement(K, B);
198
+ }
199
+ }]), n;
200
+ }(w.Component);
201
+ _.defaultProps = {
202
+ style: {
203
+ overlay: {},
204
+ content: {}
205
+ },
206
+ defaultStyles: {}
207
+ }, _.propTypes = {
208
+ isOpen: o.default.bool.isRequired,
209
+ defaultStyles: o.default.shape({
210
+ content: o.default.object,
211
+ overlay: o.default.object
212
+ }),
213
+ style: o.default.shape({
214
+ content: o.default.object,
215
+ overlay: o.default.object
216
+ }),
217
+ className: o.default.oneOfType([o.default.string, o.default.object]),
218
+ overlayClassName: o.default.oneOfType([o.default.string, o.default.object]),
219
+ parentSelector: o.default.func,
220
+ bodyOpenClassName: o.default.string,
221
+ htmlOpenClassName: o.default.string,
222
+ ariaHideApp: o.default.bool,
223
+ appElement: o.default.oneOfType([o.default.instanceOf(S.default), o.default.instanceOf(v.SafeHTMLCollection), o.default.instanceOf(v.SafeNodeList), o.default.arrayOf(o.default.instanceOf(S.default))]),
224
+ onAfterOpen: o.default.func,
225
+ onAfterClose: o.default.func,
226
+ onRequestClose: o.default.func,
227
+ closeTimeoutMS: o.default.number,
228
+ shouldFocusAfterRender: o.default.bool,
229
+ shouldCloseOnOverlayClick: o.default.bool,
230
+ shouldReturnFocusAfterClose: o.default.bool,
231
+ preventScroll: o.default.bool,
232
+ role: o.default.string,
233
+ contentLabel: o.default.string,
234
+ aria: o.default.object,
235
+ data: o.default.object,
236
+ children: o.default.node,
237
+ shouldCloseOnEsc: o.default.bool,
238
+ overlayRef: o.default.func,
239
+ contentRef: o.default.func,
240
+ id: o.default.string,
241
+ overlayElement: o.default.func,
242
+ contentElement: o.default.func,
243
+ testId: o.default.string
244
+ }, O.default = _, E.exports = O.default;
245
+ })(T, T.exports);
246
+ var me = T.exports;
247
+ export {
248
+ me as M
249
+ };
package/index96.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./index100.js"),c=require("./index116.js");require("./index97.js");const m=require("./index99.js");Object.defineProperty(n.__exports,"__esModule",{value:!0});n.__exports.resetState=E;n.__exports.log=h;n.__exports.assertNodeList=f;n.__exports.setElement=g;n.__exports.validateElement=d;n.__exports.hide=A;n.__exports.show=x;n.__exports.documentNotReadyOrSSRTesting=w;var p=c.warning_1,_=y(p),v=m.__exports;function y(e){return e&&e.__esModule?e:{default:e}}var t=null;function E(){t&&(t.removeAttribute?t.removeAttribute("aria-hidden"):t.length!=null?t.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(t).forEach(function(e){return e.removeAttribute("aria-hidden")})),t=null}function h(){if(process.env.NODE_ENV!=="production"){var e=t||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}}function f(e,r){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+r+".")}function g(e){var r=e;if(typeof r=="string"&&v.canUseDOM){var o=document.querySelectorAll(r);f(o,r),r=o}return t=r||t,t}function d(e){var r=e||t;return r?Array.isArray(r)||r instanceof HTMLCollection||r instanceof NodeList?r:[r]:((0,_.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function A(e){var r=!0,o=!1,i=void 0;try{for(var a=d(e)[Symbol.iterator](),l;!(r=(l=a.next()).done);r=!0){var s=l.value;s.setAttribute("aria-hidden","true")}}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}}function x(e){var r=!0,o=!1,i=void 0;try{for(var a=d(e)[Symbol.iterator](),l;!(r=(l=a.next()).done);r=!0){var s=l.value;s.removeAttribute("aria-hidden")}}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}}function w(){t=null}module.exports=n.__exports;
package/index96.mjs ADDED
@@ -0,0 +1,91 @@
1
+ import { __exports as n } from "./index100.mjs";
2
+ import { w as m } from "./index116.mjs";
3
+ import "./index97.mjs";
4
+ import { __exports as c } from "./index99.mjs";
5
+ Object.defineProperty(n, "__esModule", {
6
+ value: !0
7
+ });
8
+ n.resetState = h;
9
+ n.log = A;
10
+ n.assertNodeList = f;
11
+ n.setElement = g;
12
+ n.validateElement = s;
13
+ n.hide = _;
14
+ n.show = w;
15
+ n.documentNotReadyOrSSRTesting = N;
16
+ var v = m, p = E(v), y = c;
17
+ function E(e) {
18
+ return e && e.__esModule ? e : { default: e };
19
+ }
20
+ var t = null;
21
+ function h() {
22
+ t && (t.removeAttribute ? t.removeAttribute("aria-hidden") : t.length != null ? t.forEach(function(e) {
23
+ return e.removeAttribute("aria-hidden");
24
+ }) : document.querySelectorAll(t).forEach(function(e) {
25
+ return e.removeAttribute("aria-hidden");
26
+ })), t = null;
27
+ }
28
+ function A() {
29
+ if (process.env.NODE_ENV !== "production") {
30
+ var e = t || {};
31
+ console.log("ariaAppHider ----------"), console.log(e.nodeName, e.className, e.id), console.log("end ariaAppHider ----------");
32
+ }
33
+ }
34
+ function f(e, r) {
35
+ if (!e || !e.length)
36
+ throw new Error("react-modal: No elements were found for selector " + r + ".");
37
+ }
38
+ function g(e) {
39
+ var r = e;
40
+ if (typeof r == "string" && y.canUseDOM) {
41
+ var o = document.querySelectorAll(r);
42
+ f(o, r), r = o;
43
+ }
44
+ return t = r || t, t;
45
+ }
46
+ function s(e) {
47
+ var r = e || t;
48
+ return r ? Array.isArray(r) || r instanceof HTMLCollection || r instanceof NodeList ? r : [r] : ((0, p.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
49
+ }
50
+ function _(e) {
51
+ var r = !0, o = !1, i = void 0;
52
+ try {
53
+ for (var a = s(e)[Symbol.iterator](), l; !(r = (l = a.next()).done); r = !0) {
54
+ var u = l.value;
55
+ u.setAttribute("aria-hidden", "true");
56
+ }
57
+ } catch (d) {
58
+ o = !0, i = d;
59
+ } finally {
60
+ try {
61
+ !r && a.return && a.return();
62
+ } finally {
63
+ if (o)
64
+ throw i;
65
+ }
66
+ }
67
+ }
68
+ function w(e) {
69
+ var r = !0, o = !1, i = void 0;
70
+ try {
71
+ for (var a = s(e)[Symbol.iterator](), l; !(r = (l = a.next()).done); r = !0) {
72
+ var u = l.value;
73
+ u.removeAttribute("aria-hidden");
74
+ }
75
+ } catch (d) {
76
+ o = !0, i = d;
77
+ } finally {
78
+ try {
79
+ !r && a.return && a.return();
80
+ } finally {
81
+ if (o)
82
+ throw i;
83
+ }
84
+ }
85
+ }
86
+ function N() {
87
+ t = null;
88
+ }
89
+ export {
90
+ n as default
91
+ };
package/index97.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index99.js"),o=require("./index117.js");Object.defineProperty(e.__exports,"__esModule",{value:!0});e.__exports.canUseDOM=e.__exports.SafeNodeList=e.__exports.SafeHTMLCollection=void 0;var r=o.exenvExports,s=_(r);function _(t){return t&&t.__esModule?t:{default:t}}var n=s.default,a=n.canUseDOM?window.HTMLElement:{};e.__exports.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{};e.__exports.SafeNodeList=n.canUseDOM?window.NodeList:{};e.__exports.canUseDOM=n.canUseDOM;e.__exports.default=a;
package/index97.mjs ADDED
@@ -0,0 +1,15 @@
1
+ import { __exports as e } from "./index99.mjs";
2
+ import { e as t } from "./index117.mjs";
3
+ Object.defineProperty(e, "__esModule", {
4
+ value: !0
5
+ });
6
+ e.canUseDOM = e.SafeNodeList = e.SafeHTMLCollection = void 0;
7
+ var o = t, r = i(o);
8
+ function i(n) {
9
+ return n && n.__esModule ? n : { default: n };
10
+ }
11
+ var a = r.default, l = a.canUseDOM ? window.HTMLElement : {};
12
+ e.SafeHTMLCollection = a.canUseDOM ? window.HTMLCollection : {};
13
+ e.SafeNodeList = a.canUseDOM ? window.NodeList : {};
14
+ e.canUseDOM = a.canUseDOM;
15
+ e.default = l;
package/index98.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index90.js"),s=require("./index118.js"),r=e.getAugmentedNamespace(s);module.exports=r;
package/index98.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import { getAugmentedNamespace as e } from "./index90.mjs";
2
+ import * as t from "./index118.mjs";
3
+ const a = /* @__PURE__ */ e(t);
4
+ export {
5
+ a as default
6
+ };
package/index99.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index99.mjs ADDED
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -1,3 +1,3 @@
1
1
  import { TextFieldProps } from '../Input.types';
2
- export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
2
+ export declare const TextField: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default TextField;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface SelectProps {
3
3
  description?: string;
4
4
  disabled?: boolean;
@@ -1,3 +1,3 @@
1
1
  import { IconProps } from './Icon.types';
2
2
  export declare const ensureSvgLoaded: () => Promise<void>;
3
- export declare const Icon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<HTMLSpanElement>>;
3
+ export declare const Icon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<HTMLSpanElement>>;
@@ -1,3 +1,3 @@
1
1
  import { CalendarProps } from './Datepicker.types';
2
- export declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ export declare const Calendar: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  export default Calendar;
@@ -1,3 +1,3 @@
1
1
  import { FlyoutProps } from './Flyout.types';
2
- export declare const Flyout: import("react").ForwardRefExoticComponent<FlyoutProps & import("react").RefAttributes<HTMLDivElement | null>>;
2
+ export declare const Flyout: import('react').ForwardRefExoticComponent<FlyoutProps & import('react').RefAttributes<HTMLDivElement | null>>;
3
3
  export default Flyout;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { TagProps } from './Tag.types';
3
3
  export declare function Tag({ label, isToggle, active, iconLeft, removable, name, qa, onClick, ariaLabelDelete }: TagProps): React.DetailedReactHTMLElement<{
4
4
  name?: string | undefined;
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@a-ui/react",
3
- "version": "7.13.0-beta.0",
3
+ "version": "7.13.0-beta.1",
4
4
  "license": "MIT",
5
5
  "main": "./index.js",
6
+ "sideEffects": [
7
+ "*.css"
8
+ ],
6
9
  "types": "./index.d.ts",
7
10
  "exports": {
8
11
  ".": {
@@ -0,0 +1 @@
1
+ .a-input.has-spinner .a-spinner{position:absolute;top:50%;transform:translateY(-50%)}.a-input.has-spinner-left .a-spinner{left:1rem}.a-input.has-spinner-right .a-spinner{right:1rem}
@@ -0,0 +1 @@
1
+ .a-tooltip__base{--rt-opacity: 1;padding:0;border-radius:0;font-size:100%;transition:opacity .15s ease-out}
@@ -0,0 +1 @@
1
+ .a-list.a-list--lined a.a-list__content.is-highlighted{background-color:var(--list-item-hover-bg-color);color:var(--list-item-hover-color)}.m-autocomplete.m-flyout{width:100%}
@@ -0,0 +1 @@
1
+ .m-daterangepicker__full{width:100%}.m-daterangepicker .m-datepicker{width:200%}.m-datepicker__grid-body button.is-hovered:not(.is-selected):not(.is-unavailable):not(:disabled){background-color:var(--datepicker-highlight-color);color:var(--datepicker-active-color)}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export declare const pagesArray: (current: number, total: number) => number[];
3
3
  export declare const lineValuesToPosition: (value: number, min: number, max: number, limit: number) => number;
4
4
  export declare const getPosition: (coordinate: number, direction?: number) => number;
package/index.css DELETED
@@ -1 +0,0 @@
1
- .a-input.has-spinner .a-spinner{position:absolute;top:50%;transform:translateY(-50%)}.a-input.has-spinner-left .a-spinner{left:1rem}.a-input.has-spinner-right .a-spinner{right:1rem}:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:.9;--rt-transition-show-delay:.15s;--rt-transition-closing-delay:.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{left:0;opacity:0;pointer-events:none;position:absolute;top:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{background:inherit;position:absolute;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay) ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay) ease-in}.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;padding:8px 16px;width:max-content}.styles-module_arrow__K0L3T{height:var(--rt-arrow-size);width:var(--rt-arrow-size)}[class*=react-tooltip__place-top]>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*=react-tooltip__place-right]>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*=react-tooltip__place-bottom]>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*=react-tooltip__place-left]>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}.a-tooltip__base{--rt-opacity: 1;padding:0;border-radius:0;font-size:100%;transition:opacity .15s ease-out}.a-list.a-list--lined a.a-list__content.is-highlighted{background-color:var(--list-item-hover-bg-color);color:var(--list-item-hover-color)}.m-autocomplete.m-flyout,.m-daterangepicker__full{width:100%}.m-daterangepicker .m-datepicker{width:200%}.m-datepicker__grid-body button.is-hovered:not(.is-selected):not(.is-unavailable):not(:disabled){background-color:var(--datepicker-highlight-color);color:var(--datepicker-active-color)}