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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/package.json +3 -3
  2. package/index.js +0 -1
  3. package/index.mjs +0 -100
  4. package/index10.js +0 -1
  5. package/index10.mjs +0 -60
  6. package/index100.js +0 -1
  7. package/index100.mjs +0 -4
  8. package/index101.js +0 -1
  9. package/index101.mjs +0 -400
  10. package/index102.js +0 -5
  11. package/index102.mjs +0 -42
  12. package/index103.js +0 -1
  13. package/index103.mjs +0 -4
  14. package/index104.js +0 -1
  15. package/index104.mjs +0 -10
  16. package/index105.js +0 -2
  17. package/index105.mjs +0 -329
  18. package/index106.js +0 -1
  19. package/index106.mjs +0 -52
  20. package/index107.js +0 -1
  21. package/index107.mjs +0 -4
  22. package/index108.js +0 -1
  23. package/index108.mjs +0 -67
  24. package/index109.js +0 -1
  25. package/index109.mjs +0 -45
  26. package/index11.js +0 -1
  27. package/index11.mjs +0 -12
  28. package/index110.js +0 -10
  29. package/index110.mjs +0 -62
  30. package/index111.js +0 -1
  31. package/index111.mjs +0 -46
  32. package/index112.js +0 -1
  33. package/index112.mjs +0 -42
  34. package/index113.js +0 -1
  35. package/index113.mjs +0 -4
  36. package/index114.js +0 -1
  37. package/index114.mjs +0 -4
  38. package/index115.js +0 -1
  39. package/index115.mjs +0 -4
  40. package/index116.js +0 -1
  41. package/index116.mjs +0 -33
  42. package/index117.js +0 -5
  43. package/index117.mjs +0 -21
  44. package/index118.js +0 -9
  45. package/index118.mjs +0 -63
  46. package/index119.js +0 -1
  47. package/index119.mjs +0 -65
  48. package/index12.js +0 -1
  49. package/index12.mjs +0 -215
  50. package/index120.js +0 -1
  51. package/index120.mjs +0 -16
  52. package/index121.js +0 -1
  53. package/index121.mjs +0 -9
  54. package/index122.js +0 -1
  55. package/index122.mjs +0 -9
  56. package/index123.js +0 -1
  57. package/index123.mjs +0 -8
  58. package/index124.js +0 -1
  59. package/index124.mjs +0 -8
  60. package/index125.js +0 -1
  61. package/index125.mjs +0 -7
  62. package/index126.js +0 -1
  63. package/index126.mjs +0 -7
  64. package/index127.js +0 -1
  65. package/index127.mjs +0 -9
  66. package/index128.js +0 -1
  67. package/index128.mjs +0 -7
  68. package/index129.js +0 -1
  69. package/index129.mjs +0 -69
  70. package/index13.js +0 -1
  71. package/index13.mjs +0 -29
  72. package/index130.js +0 -1
  73. package/index130.mjs +0 -5
  74. package/index131.js +0 -1
  75. package/index131.mjs +0 -7
  76. package/index132.js +0 -1
  77. package/index132.mjs +0 -13
  78. package/index133.js +0 -1
  79. package/index133.mjs +0 -4
  80. package/index134.js +0 -1
  81. package/index134.mjs +0 -393
  82. package/index135.js +0 -1
  83. package/index135.mjs +0 -127
  84. package/index136.js +0 -1
  85. package/index136.mjs +0 -136
  86. package/index137.js +0 -1
  87. package/index137.mjs +0 -4
  88. package/index138.js +0 -1
  89. package/index138.mjs +0 -4
  90. package/index139.js +0 -8
  91. package/index139.mjs +0 -78
  92. package/index14.js +0 -1
  93. package/index14.mjs +0 -44
  94. package/index140.js +0 -8
  95. package/index140.mjs +0 -95
  96. package/index141.js +0 -5
  97. package/index141.mjs +0 -54
  98. package/index142.js +0 -1
  99. package/index142.mjs +0 -10
  100. package/index143.js +0 -1
  101. package/index143.mjs +0 -7
  102. package/index144.js +0 -1
  103. package/index144.mjs +0 -54
  104. package/index145.js +0 -11
  105. package/index145.mjs +0 -60
  106. package/index146.js +0 -1
  107. package/index146.mjs +0 -4
  108. package/index147.js +0 -1
  109. package/index147.mjs +0 -4
  110. package/index148.js +0 -1
  111. package/index148.mjs +0 -7
  112. package/index149.js +0 -1
  113. package/index149.mjs +0 -7
  114. package/index15.js +0 -1
  115. package/index15.mjs +0 -8
  116. package/index150.js +0 -1
  117. package/index150.mjs +0 -9
  118. package/index151.js +0 -1
  119. package/index151.mjs +0 -15
  120. package/index152.js +0 -1
  121. package/index152.mjs +0 -18
  122. package/index153.js +0 -1
  123. package/index153.mjs +0 -11
  124. package/index154.js +0 -1
  125. package/index154.mjs +0 -8
  126. package/index155.js +0 -1
  127. package/index155.mjs +0 -8
  128. package/index156.js +0 -1
  129. package/index156.mjs +0 -7
  130. package/index157.js +0 -1
  131. package/index157.mjs +0 -515
  132. package/index158.js +0 -1
  133. package/index158.mjs +0 -52
  134. package/index159.js +0 -1
  135. package/index159.mjs +0 -20
  136. package/index16.js +0 -1
  137. package/index16.mjs +0 -15
  138. package/index160.js +0 -1
  139. package/index160.mjs +0 -20
  140. package/index161.js +0 -1
  141. package/index161.mjs +0 -7
  142. package/index162.js +0 -1
  143. package/index162.mjs +0 -10
  144. package/index163.js +0 -1
  145. package/index163.mjs +0 -8
  146. package/index164.js +0 -1
  147. package/index164.mjs +0 -7
  148. package/index165.js +0 -1
  149. package/index165.mjs +0 -8
  150. package/index166.js +0 -1
  151. package/index166.mjs +0 -11
  152. package/index167.js +0 -1
  153. package/index167.mjs +0 -7
  154. package/index168.js +0 -1
  155. package/index168.mjs +0 -10
  156. package/index169.js +0 -1
  157. package/index169.mjs +0 -14
  158. package/index17.js +0 -1
  159. package/index17.mjs +0 -108
  160. package/index170.js +0 -1
  161. package/index170.mjs +0 -11
  162. package/index171.js +0 -1
  163. package/index171.mjs +0 -11
  164. package/index172.js +0 -1
  165. package/index172.mjs +0 -15
  166. package/index173.js +0 -1
  167. package/index173.mjs +0 -6
  168. package/index174.js +0 -1
  169. package/index174.mjs +0 -35
  170. package/index175.js +0 -1
  171. package/index175.mjs +0 -67
  172. package/index176.js +0 -1
  173. package/index176.mjs +0 -10
  174. package/index177.js +0 -1
  175. package/index177.mjs +0 -10
  176. package/index178.js +0 -1
  177. package/index178.mjs +0 -9
  178. package/index179.js +0 -1
  179. package/index179.mjs +0 -9
  180. package/index18.js +0 -1
  181. package/index18.mjs +0 -136
  182. package/index180.js +0 -1
  183. package/index180.mjs +0 -16
  184. package/index181.js +0 -1
  185. package/index181.mjs +0 -4
  186. package/index182.js +0 -1
  187. package/index182.mjs +0 -4
  188. package/index183.js +0 -1
  189. package/index183.mjs +0 -4
  190. package/index184.js +0 -1
  191. package/index184.mjs +0 -59
  192. package/index185.js +0 -1
  193. package/index185.mjs +0 -24
  194. package/index186.js +0 -1
  195. package/index186.mjs +0 -43
  196. package/index187.js +0 -1
  197. package/index187.mjs +0 -63
  198. package/index188.js +0 -1
  199. package/index188.mjs +0 -34
  200. package/index189.js +0 -1
  201. package/index189.mjs +0 -15
  202. package/index19.js +0 -1
  203. package/index19.mjs +0 -11
  204. package/index190.js +0 -1
  205. package/index190.mjs +0 -64
  206. package/index191.js +0 -1
  207. package/index191.mjs +0 -64
  208. package/index192.js +0 -1
  209. package/index192.mjs +0 -65
  210. package/index193.js +0 -1
  211. package/index193.mjs +0 -65
  212. package/index194.js +0 -1
  213. package/index194.mjs +0 -42
  214. package/index195.js +0 -1
  215. package/index195.mjs +0 -43
  216. package/index196.js +0 -1
  217. package/index196.mjs +0 -55
  218. package/index197.js +0 -1
  219. package/index197.mjs +0 -45
  220. package/index198.js +0 -1
  221. package/index198.mjs +0 -39
  222. package/index199.js +0 -1
  223. package/index199.mjs +0 -68
  224. package/index2.js +0 -1
  225. package/index2.mjs +0 -12
  226. package/index20.js +0 -1
  227. package/index20.mjs +0 -54
  228. package/index200.js +0 -1
  229. package/index200.mjs +0 -68
  230. package/index201.js +0 -1
  231. package/index201.mjs +0 -93
  232. package/index202.js +0 -1
  233. package/index202.mjs +0 -43
  234. package/index203.js +0 -1
  235. package/index203.mjs +0 -43
  236. package/index204.js +0 -1
  237. package/index204.mjs +0 -43
  238. package/index205.js +0 -1
  239. package/index205.mjs +0 -27
  240. package/index206.js +0 -1
  241. package/index206.mjs +0 -26
  242. package/index207.js +0 -1
  243. package/index207.mjs +0 -26
  244. package/index208.js +0 -1
  245. package/index208.mjs +0 -27
  246. package/index209.js +0 -1
  247. package/index209.mjs +0 -26
  248. package/index21.js +0 -1
  249. package/index21.mjs +0 -33
  250. package/index210.js +0 -1
  251. package/index210.mjs +0 -26
  252. package/index211.js +0 -1
  253. package/index211.mjs +0 -16
  254. package/index212.js +0 -1
  255. package/index212.mjs +0 -42
  256. package/index213.js +0 -1
  257. package/index213.mjs +0 -42
  258. package/index214.js +0 -1
  259. package/index214.mjs +0 -16
  260. package/index215.js +0 -1
  261. package/index215.mjs +0 -16
  262. package/index216.js +0 -1
  263. package/index216.mjs +0 -70
  264. package/index217.js +0 -1
  265. package/index217.mjs +0 -33
  266. package/index218.js +0 -1
  267. package/index218.mjs +0 -11
  268. package/index219.js +0 -1
  269. package/index219.mjs +0 -155
  270. package/index22.js +0 -1
  271. package/index22.mjs +0 -22
  272. package/index220.js +0 -1
  273. package/index220.mjs +0 -110
  274. package/index221.js +0 -1
  275. package/index221.mjs +0 -22
  276. package/index222.js +0 -1
  277. package/index222.mjs +0 -103
  278. package/index223.js +0 -1
  279. package/index223.mjs +0 -49
  280. package/index224.js +0 -1
  281. package/index224.mjs +0 -70
  282. package/index225.js +0 -1
  283. package/index225.mjs +0 -33
  284. package/index226.js +0 -1
  285. package/index226.mjs +0 -11
  286. package/index227.js +0 -1
  287. package/index227.mjs +0 -110
  288. package/index228.js +0 -1
  289. package/index228.mjs +0 -109
  290. package/index229.js +0 -1
  291. package/index229.mjs +0 -9
  292. package/index23.js +0 -1
  293. package/index23.mjs +0 -32
  294. package/index230.js +0 -1
  295. package/index230.mjs +0 -18
  296. package/index231.js +0 -1
  297. package/index231.mjs +0 -31
  298. package/index232.js +0 -1
  299. package/index232.mjs +0 -15
  300. package/index233.js +0 -1
  301. package/index233.mjs +0 -61
  302. package/index234.js +0 -1
  303. package/index234.mjs +0 -11
  304. package/index235.js +0 -1
  305. package/index235.mjs +0 -22
  306. package/index24.js +0 -2
  307. package/index24.mjs +0 -62
  308. package/index25.js +0 -1
  309. package/index25.mjs +0 -15
  310. package/index26.js +0 -1
  311. package/index26.mjs +0 -12
  312. package/index27.js +0 -1
  313. package/index27.mjs +0 -43
  314. package/index28.js +0 -1
  315. package/index28.mjs +0 -34
  316. package/index29.js +0 -1
  317. package/index29.mjs +0 -10
  318. package/index3.js +0 -1
  319. package/index3.mjs +0 -15
  320. package/index30.js +0 -1
  321. package/index30.mjs +0 -72
  322. package/index31.js +0 -1
  323. package/index31.mjs +0 -40
  324. package/index32.js +0 -1
  325. package/index32.mjs +0 -48
  326. package/index33.js +0 -1
  327. package/index33.mjs +0 -90
  328. package/index34.js +0 -1
  329. package/index34.mjs +0 -36
  330. package/index35.js +0 -1
  331. package/index35.mjs +0 -25
  332. package/index36.js +0 -1
  333. package/index36.mjs +0 -27
  334. package/index37.js +0 -1
  335. package/index37.mjs +0 -110
  336. package/index38.js +0 -1
  337. package/index38.mjs +0 -57
  338. package/index39.js +0 -1
  339. package/index39.mjs +0 -21
  340. package/index4.js +0 -1
  341. package/index4.mjs +0 -58
  342. package/index40.js +0 -1
  343. package/index40.mjs +0 -40
  344. package/index41.js +0 -1
  345. package/index41.mjs +0 -54
  346. package/index42.js +0 -1
  347. package/index42.mjs +0 -73
  348. package/index43.js +0 -1
  349. package/index43.mjs +0 -49
  350. package/index44.js +0 -1
  351. package/index44.mjs +0 -13
  352. package/index45.js +0 -1
  353. package/index45.mjs +0 -73
  354. package/index46.js +0 -1
  355. package/index46.mjs +0 -99
  356. package/index47.js +0 -1
  357. package/index47.mjs +0 -45
  358. package/index48.js +0 -1
  359. package/index48.mjs +0 -26
  360. package/index49.js +0 -1
  361. package/index49.mjs +0 -83
  362. package/index5.js +0 -1
  363. package/index5.mjs +0 -136
  364. package/index50.js +0 -1
  365. package/index50.mjs +0 -35
  366. package/index51.js +0 -1
  367. package/index51.mjs +0 -10
  368. package/index52.js +0 -1
  369. package/index52.mjs +0 -13
  370. package/index53.js +0 -1
  371. package/index53.mjs +0 -30
  372. package/index54.js +0 -1
  373. package/index54.mjs +0 -51
  374. package/index55.js +0 -1
  375. package/index55.mjs +0 -10
  376. package/index56.js +0 -1
  377. package/index56.mjs +0 -49
  378. package/index58.js +0 -1
  379. package/index58.mjs +0 -64
  380. package/index59.js +0 -1
  381. package/index59.mjs +0 -62
  382. package/index6.js +0 -1
  383. package/index6.mjs +0 -29
  384. package/index60.js +0 -1
  385. package/index60.mjs +0 -31
  386. package/index61.js +0 -1
  387. package/index61.mjs +0 -23
  388. package/index62.js +0 -1
  389. package/index62.mjs +0 -32
  390. package/index63.js +0 -1
  391. package/index63.mjs +0 -16
  392. package/index64.js +0 -1
  393. package/index64.mjs +0 -61
  394. package/index65.js +0 -1
  395. package/index65.mjs +0 -19
  396. package/index66.js +0 -7
  397. package/index66.mjs +0 -411
  398. package/index7.js +0 -1
  399. package/index7.mjs +0 -8
  400. package/index70.js +0 -1
  401. package/index70.mjs +0 -4
  402. package/index71.js +0 -1
  403. package/index71.mjs +0 -76
  404. package/index72.js +0 -1
  405. package/index72.mjs +0 -31
  406. package/index73.js +0 -1
  407. package/index73.mjs +0 -38
  408. package/index74.js +0 -1
  409. package/index74.mjs +0 -6
  410. package/index75.js +0 -1
  411. package/index75.mjs +0 -37
  412. package/index76.js +0 -1
  413. package/index76.mjs +0 -7
  414. package/index77.js +0 -1
  415. package/index77.mjs +0 -7
  416. package/index78.js +0 -1
  417. package/index78.mjs +0 -7
  418. package/index79.js +0 -1
  419. package/index79.mjs +0 -7
  420. package/index8.js +0 -1
  421. package/index8.mjs +0 -18
  422. package/index80.js +0 -1
  423. package/index80.mjs +0 -7
  424. package/index81.js +0 -1
  425. package/index81.mjs +0 -19
  426. package/index82.js +0 -1
  427. package/index82.mjs +0 -87
  428. package/index83.js +0 -1
  429. package/index83.mjs +0 -8
  430. package/index84.js +0 -1
  431. package/index84.mjs +0 -27
  432. package/index85.js +0 -1
  433. package/index85.mjs +0 -57
  434. package/index87.js +0 -1
  435. package/index87.mjs +0 -7
  436. package/index88.js +0 -1
  437. package/index88.mjs +0 -121
  438. package/index89.js +0 -1
  439. package/index89.mjs +0 -20
  440. package/index9.js +0 -1
  441. package/index9.mjs +0 -18
  442. package/index90.js +0 -1
  443. package/index90.mjs +0 -26
  444. package/index91.js +0 -1
  445. package/index91.mjs +0 -4
  446. package/index92.js +0 -1
  447. package/index92.mjs +0 -237
  448. package/index93.js +0 -1
  449. package/index93.mjs +0 -4
  450. package/index94.js +0 -1
  451. package/index94.mjs +0 -13
  452. package/index95.js +0 -1
  453. package/index95.mjs +0 -249
  454. package/index96.js +0 -1
  455. package/index96.mjs +0 -91
  456. package/index97.js +0 -1
  457. package/index97.mjs +0 -15
  458. package/index98.js +0 -1
  459. package/index98.mjs +0 -6
  460. package/index99.js +0 -1
  461. package/index99.mjs +0 -4
  462. package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +0 -1
  463. package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +0 -1
  464. package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +0 -1
  465. package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +0 -1
package/index40.mjs DELETED
@@ -1,40 +0,0 @@
1
- import { jsx as a, jsxs as r, Fragment as h } from "react/jsx-runtime";
2
- import { classNames as u } from "./index51.mjs";
3
- import { wrapWithIf as f } from "./index54.mjs";
4
- function _({
5
- steps: s = [],
6
- onStepClick: c,
7
- screenReaderStepLabel: o = "Stap ",
8
- screenReaderCompleteLabel: m = " (voltooid)",
9
- qa: t
10
- }) {
11
- const d = (e, l, n) => {
12
- c && (e.preventDefault(), c(n, l));
13
- };
14
- return /* @__PURE__ */ a("ol", { className: "m-step-indicator", "data-qa": t, children: s?.map((e, l) => {
15
- const n = u({
16
- "is-completed": !!e.complete,
17
- "is-incompleted": !e.complete,
18
- "is-active": !!e.active
19
- }), i = e.link?.href;
20
- return /* @__PURE__ */ a("li", { className: n, children: f(
21
- /* @__PURE__ */ r(h, { children: [
22
- e.label ? null : /* @__PURE__ */ r("span", { className: "u-screen-reader-only", children: [
23
- o,
24
- " ",
25
- l + 1
26
- ] }),
27
- /* @__PURE__ */ a("span", { className: "m-step-indicator__number" }),
28
- /* @__PURE__ */ r("span", { className: "m-step-indicator__label", children: [
29
- e.label || null,
30
- e.complete ? /* @__PURE__ */ a("span", { className: "u-screen-reader-only", children: m }) : null
31
- ] })
32
- ] }),
33
- /* @__PURE__ */ a("a", { onClick: (p) => d(p, l, e?.id), href: i }),
34
- !!i
35
- ) }, e.id);
36
- }) });
37
- }
38
- export {
39
- _ as StepIndicator
40
- };
package/index41.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),x=require("./index54.js");function v({ariaLabel:h,checked:a,disabled:d=!1,id:s,internalIOLabels:o=!1,label:i,labelId:l="aui-switch-label",onClick:t,qa:u,statusLabelOff:_="Uit",statusLabelOn:g="Aan",statusLabelSide:c=""}){const[r,w]=m.useState(!!a),b=a===!0||a===!1?!!a:r,f=j=>{w(!r),t&&typeof t=="function"&&t(j)},n=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"a-switch__label a-switch__label--on","aria-hidden":"true",children:g}),e.jsx("div",{className:"a-switch__label a-switch__label--off","aria-hidden":"true",children:_})]});return x.labelWrapper(e.jsxs("button",{id:s,"data-qa":u,className:"a-switch",role:"switch","aria-checked":b,"aria-label":i?void 0:h,"aria-labelledby":i?l:void 0,disabled:d,onClick:f,children:[c==="left"&&n,e.jsx("div",{className:"a-switch__toggle","aria-hidden":"true",children:o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"a-switch__toggle-label a-switch__toggle-label--on","aria-hidden":"true",children:"i"}),e.jsx("div",{className:"a-switch__toggle-label a-switch__toggle-label--off","aria-hidden":"true",children:"o"})]})}),c==="right"&&n]}),i,s,l)}exports.Switch=v;
package/index41.mjs DELETED
@@ -1,54 +0,0 @@
1
- import { jsxs as l, jsx as a, Fragment as n } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { labelWrapper as x } from "./index54.mjs";
4
- function C({
5
- ariaLabel: o,
6
- checked: e,
7
- disabled: _ = !1,
8
- id: s,
9
- internalIOLabels: f = !1,
10
- label: i,
11
- labelId: c = "aui-switch-label",
12
- onClick: t,
13
- qa: m,
14
- statusLabelOff: w = "Uit",
15
- statusLabelOn: g = "Aan",
16
- statusLabelSide: r = ""
17
- }) {
18
- const [h, u] = p(!!e), b = e === !0 || e === !1 ? !!e : h, v = (N) => {
19
- u(!h), t && typeof t == "function" && t(N);
20
- }, d = /* @__PURE__ */ l(n, { children: [
21
- /* @__PURE__ */ a("div", { className: "a-switch__label a-switch__label--on", "aria-hidden": "true", children: g }),
22
- /* @__PURE__ */ a("div", { className: "a-switch__label a-switch__label--off", "aria-hidden": "true", children: w })
23
- ] });
24
- return x(
25
- /* @__PURE__ */ l(
26
- "button",
27
- {
28
- id: s,
29
- "data-qa": m,
30
- className: "a-switch",
31
- role: "switch",
32
- "aria-checked": b,
33
- "aria-label": i ? void 0 : o,
34
- "aria-labelledby": i ? c : void 0,
35
- disabled: _,
36
- onClick: v,
37
- children: [
38
- r === "left" && d,
39
- /* @__PURE__ */ a("div", { className: "a-switch__toggle", "aria-hidden": "true", children: f && /* @__PURE__ */ l(n, { children: [
40
- /* @__PURE__ */ a("div", { className: "a-switch__toggle-label a-switch__toggle-label--on", "aria-hidden": "true", children: "i" }),
41
- /* @__PURE__ */ a("div", { className: "a-switch__toggle-label a-switch__toggle-label--off", "aria-hidden": "true", children: "o" })
42
- ] }) }),
43
- r === "right" && d
44
- ]
45
- }
46
- ),
47
- i,
48
- s,
49
- c
50
- );
51
- }
52
- export {
53
- C as Switch
54
- };
package/index42.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("./index51.js"),B=require("./index58.js"),C=require("./index59.js"),I=require("./index60.js");function R({id:l="aui-table",caption:s,sort:h,sortDirection:m,rows:r=[],columns:t=[],qa:o,striped:x,small:c,open:f,selectable:i,selected:n,onSelect:j,onSelectAll:p,onSortClick:S,actions:d,responsive:a=!0,fixedColumnRight:T,fixedColumnLeft:q}){const[N,y,g,v]=I.useHorizontalScroll(),w=u.classNames({"a-table":!0,"a-table--striped":!!x,"a-table--open":!!f}),H=u.classNames({"a-table-responsive-wrapper":!!a,"has-shadow-left":!!a&&!g,"has-shadow-right":!!a&&!v,"has-first-column-fixed":!!q,"has-last-column-fixed":!!T}),b=e.jsxs("table",{id:l,className:w,"data-qa":o,children:[!!s&&e.jsx("caption",{children:s}),e.jsx(B.TableHeader,{tableId:l,small:c,selectable:i,selected:n,columns:t,sort:h,rows:r,onSortClick:S,sortDirection:m,onSelectAll:p,actions:d}),e.jsx(C.TableBody,{tableId:l,small:c,selectable:i,selected:n,columns:t,rows:r,onSelect:j,actions:d})]});return a?e.jsx("div",{className:H,"data-qa":o,children:e.jsx("div",{ref:N,onScroll:y,className:"a-table-scrollable-wrapper",children:b})}):b}exports.Table=R;
package/index42.mjs DELETED
@@ -1,73 +0,0 @@
1
- import { jsx as a, jsxs as q } from "react/jsx-runtime";
2
- import { classNames as m } from "./index51.mjs";
3
- import { TableHeader as y } from "./index58.mjs";
4
- import { TableBody as z } from "./index59.mjs";
5
- import { useHorizontalScroll as B } from "./index60.mjs";
6
- function A({
7
- id: r = "aui-table",
8
- caption: e,
9
- sort: p,
10
- sortDirection: f,
11
- rows: t = [],
12
- columns: o = [],
13
- qa: s,
14
- striped: h,
15
- small: c,
16
- open: u,
17
- selectable: i,
18
- selected: d,
19
- onSelect: S,
20
- onSelectAll: x,
21
- onSortClick: N,
22
- actions: n,
23
- responsive: l = !0,
24
- fixedColumnRight: w,
25
- fixedColumnLeft: T
26
- }) {
27
- const [j, v, C, H] = B(), I = m({
28
- "a-table": !0,
29
- "a-table--striped": !!h,
30
- "a-table--open": !!u
31
- }), g = m({
32
- "a-table-responsive-wrapper": !!l,
33
- "has-shadow-left": !!l && !C,
34
- "has-shadow-right": !!l && !H,
35
- "has-first-column-fixed": !!T,
36
- "has-last-column-fixed": !!w
37
- }), b = /* @__PURE__ */ q("table", { id: r, className: I, "data-qa": s, children: [
38
- !!e && /* @__PURE__ */ a("caption", { children: e }),
39
- /* @__PURE__ */ a(
40
- y,
41
- {
42
- tableId: r,
43
- small: c,
44
- selectable: i,
45
- selected: d,
46
- columns: o,
47
- sort: p,
48
- rows: t,
49
- onSortClick: N,
50
- sortDirection: f,
51
- onSelectAll: x,
52
- actions: n
53
- }
54
- ),
55
- /* @__PURE__ */ a(
56
- z,
57
- {
58
- tableId: r,
59
- small: c,
60
- selectable: i,
61
- selected: d,
62
- columns: o,
63
- rows: t,
64
- onSelect: S,
65
- actions: n
66
- }
67
- )
68
- ] });
69
- return l ? /* @__PURE__ */ a("div", { className: g, "data-qa": s, children: /* @__PURE__ */ a("div", { ref: j, onScroll: v, className: "a-table-scrollable-wrapper", children: b }) }) : b;
70
- }
71
- export {
72
- A as Table
73
- };
package/index43.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),p=require("./index51.js"),i=require("./index24.js");function P({label:u,isToggle:s,active:t,iconLeft:r,removable:m,name:n,qa:b,onClick:c,ariaLabelDelete:j="Verwijderen"}){const[l,x]=d.useState(t),a=m&&!s,_=t===!0||t===!1?t:l,o=g=>(s&&x(!l),(s||a)&&c&&c(g)),h=s?"button":"div",q=p.classNames({"m-tag":!0,"is-clickable":!!a}),N={name:n,onClick:()=>o(n),"aria-pressed":_};return d.createElement(h,{className:q,"data-qa":b,...s?N:{}},e.jsxs(e.Fragment,{children:[r&&e.jsx("div",{className:"m-tag__icon",children:e.jsx(i.Icon,{name:r})}),e.jsx("div",{className:"m-tag__label",children:u}),a?e.jsx("button",{className:"m-tag__button",name:`${n}-delete`,onClick:()=>o(`${n}-delete`),"aria-label":j,children:e.jsx(i.Icon,{name:"remove"})}):null]}))}exports.Tag=P;
package/index43.mjs DELETED
@@ -1,49 +0,0 @@
1
- import { jsxs as P, Fragment as g, jsx as s } from "react/jsx-runtime";
2
- import j, { createElement as k } from "react";
3
- import { classNames as x } from "./index51.mjs";
4
- import { Icon as m } from "./index24.mjs";
5
- function q({
6
- label: d,
7
- isToggle: e,
8
- active: t,
9
- iconLeft: n,
10
- removable: i,
11
- name: r,
12
- qa: u,
13
- onClick: l,
14
- ariaLabelDelete: p = "Verwijderen"
15
- }) {
16
- const [o, b] = j.useState(t), a = i && !e, _ = t === !0 || t === !1 ? t : o, c = (N) => (e && b(!o), (e || a) && l && l(N)), f = e ? "button" : "div", h = x({
17
- "m-tag": !0,
18
- "is-clickable": !!a
19
- });
20
- return k(
21
- f,
22
- {
23
- className: h,
24
- "data-qa": u,
25
- ...e ? {
26
- name: r,
27
- onClick: () => c(r),
28
- "aria-pressed": _
29
- } : {}
30
- },
31
- /* @__PURE__ */ P(g, { children: [
32
- n && /* @__PURE__ */ s("div", { className: "m-tag__icon", children: /* @__PURE__ */ s(m, { name: n }) }),
33
- /* @__PURE__ */ s("div", { className: "m-tag__label", children: d }),
34
- a ? /* @__PURE__ */ s(
35
- "button",
36
- {
37
- className: "m-tag__button",
38
- name: `${r}-delete`,
39
- onClick: () => c(`${r}-delete`),
40
- "aria-label": p,
41
- children: /* @__PURE__ */ s(m, { name: "remove" })
42
- }
43
- ) : null
44
- ] })
45
- );
46
- }
47
- export {
48
- q as Tag
49
- };
package/index44.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),u=require("./index51.js"),l=require("./index54.js");function n({children:t=[],qa:s}){const r=u.classNames({"o-tag-list":!0});return e.jsx("ul",{className:r,"data-qa":s,children:a.Children.map(t,i=>l.wrapWithIf(i,e.jsx("li",{className:"o-tag-list__item"}),!0))})}exports.TagList=n;
package/index44.mjs DELETED
@@ -1,13 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { Children as m } from "react";
3
- import { classNames as o } from "./index51.mjs";
4
- import { wrapWithIf as e } from "./index54.mjs";
5
- function f({ children: r = [], qa: a }) {
6
- const s = o({
7
- "o-tag-list": !0
8
- });
9
- return /* @__PURE__ */ t("ul", { className: s, "data-qa": a, children: m.map(r, (i) => e(i, /* @__PURE__ */ t("li", { className: "o-tag-list__item" }), !0)) });
10
- }
11
- export {
12
- f as TagList
13
- };
package/index45.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),b=require("./index51.js"),s=require("./index53.js"),M=require("react"),c=require("./index56.js");function O({charCounter:o,charCountText:u,description:i,disabled:g,id:e="aui-text-area",inline:a,label:x,maxLength:t,maxLengthBlocksInput:S,name:j,onChange:l,qa:m,readOnly:q,required:p,size:d,state:C,value:r,onBlur:y,onClick:R,onFocus:T,onKeyDown:A,onKeyUp:E}){const[N,f]=M.useState(r?r.length:0),h=o!==void 0?o:!!t,w=u||(t?"%count% / %max%":"%count%"),$=b.classNames({"a-input":!0,"a-input--inline":!!a,[`a-input--${s.SIZE_MAP[d||s.DEFAULT_SIZE]}`]:!!d,"has-error":C===s.State.ERROR}),D=b.classNames({"a-input__wrapper":!0,"a-input__wrapper--inline":!!a}),I=_=>(f(_.target.value.length),l&&l(_));return n.jsxs("div",{className:$,"data-qa":m,children:[c.renderLabel({label:x,id:e,required:p,inline:a}),c.renderDescription({id:e,description:i,state:C}),n.jsx("div",{className:D,children:n.jsx("textarea",{value:r,name:j,id:e,disabled:g,readOnly:q,required:p,...h?{"aria-describedby":`${e}--counter`}:{},...i?{"aria-describedby":`${e}--description`}:{},maxLength:t&&S?t:void 0,onChange:I,onBlur:y,onClick:R,onFocus:T,onKeyDown:A,onKeyUp:E})}),c.renderCharacterCounter({id:e,charCountText:w,charCounter:h,characterCount:r?r.length:N,maxLength:t})]})}exports.TextArea=O;
package/index45.mjs DELETED
@@ -1,73 +0,0 @@
1
- import { jsxs as I, jsx as l } from "react/jsx-runtime";
2
- import { classNames as m } from "./index51.mjs";
3
- import { State as Z, SIZE_MAP as F, DEFAULT_SIZE as M } from "./index53.mjs";
4
- import { useState as O } from "react";
5
- import { renderLabel as P, renderDescription as U, renderCharacterCounter as k } from "./index56.mjs";
6
- function J({
7
- charCounter: n,
8
- charCountText: o,
9
- description: s,
10
- disabled: d,
11
- id: r = "aui-text-area",
12
- inline: a,
13
- label: f,
14
- maxLength: t,
15
- maxLengthBlocksInput: _,
16
- name: b,
17
- onChange: c,
18
- qa: x,
19
- readOnly: g,
20
- required: p,
21
- size: u,
22
- state: i,
23
- value: e,
24
- onBlur: E,
25
- onClick: S,
26
- onFocus: w,
27
- onKeyDown: A,
28
- onKeyUp: N
29
- }) {
30
- const [R, T] = O(e ? e.length : 0), C = n !== void 0 ? n : !!t, $ = o || (t ? "%count% / %max%" : "%count%"), j = m({
31
- "a-input": !0,
32
- "a-input--inline": !!a,
33
- [`a-input--${F[u || M]}`]: !!u,
34
- "has-error": i === Z.ERROR
35
- }), y = m({
36
- "a-input__wrapper": !0,
37
- "a-input__wrapper--inline": !!a
38
- }), D = (h) => (T(h.target.value.length), c && c(h));
39
- return /* @__PURE__ */ I("div", { className: j, "data-qa": x, children: [
40
- P({ label: f, id: r, required: p, inline: a }),
41
- U({ id: r, description: s, state: i }),
42
- /* @__PURE__ */ l("div", { className: y, children: /* @__PURE__ */ l(
43
- "textarea",
44
- {
45
- value: e,
46
- name: b,
47
- id: r,
48
- disabled: d,
49
- readOnly: g,
50
- required: p,
51
- ...C ? { "aria-describedby": `${r}--counter` } : {},
52
- ...s ? { "aria-describedby": `${r}--description` } : {},
53
- maxLength: t && _ ? t : void 0,
54
- onChange: D,
55
- onBlur: E,
56
- onClick: S,
57
- onFocus: w,
58
- onKeyDown: A,
59
- onKeyUp: N
60
- }
61
- ) }),
62
- k({
63
- id: r,
64
- charCountText: $,
65
- charCounter: C,
66
- characterCount: e ? e.length : R,
67
- maxLength: t
68
- })
69
- ] });
70
- }
71
- export {
72
- J as TextArea
73
- };
package/index46.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),C=require("./index51.js"),q=require("./index53.js"),u=require("./index56.js"),S=require("react");;/* empty css */const Q=require("./index39.js"),b=require("./index24.js"),V=S.forwardRef(function({addOn:e,autoComplete:N,ariaDescribedBy:T="",charCounter:p,charCountText:h,description:m,disabled:I,id:n="aui-text-field",role:R,inline:o,label:v,maxLength:r,maxLengthBlocksInput:w,name:F,onChange:f,qa:$,readOnly:E,required:x,size:_,state:g,type:A="text",value:s,onBlur:B,onClick:D,onFocus:M,onKeyDown:P,onKeyUp:Z,...d},L){const[U,k]=S.useState(s?s.length:0),i=e?.type==="text"&&e.placement==="left"?e.content:null,l=e?.type==="text"&&e.placement==="right"?e.content:null,c=e?.type==="icon"&&e.placement==="left"?e.content:null,a=e?.type==="icon"&&e.placement==="right"?e.content:null,y=p!==void 0?p:!!r,z=h||(r?"%count% / %max%":"%count%"),G=[T,y?`${n}--counter`:null,m?`${n}--description`:null].filter(Boolean).join(" ")||void 0,H=C.classNames({"a-input":!0,"a-input--inline":!!o,[`a-input--${q.SIZE_MAP[_||q.DEFAULT_SIZE]}`]:!!_,"has-icon-left":!!c||e?.type==="spinner"&&e?.placement==="left","has-icon-right":!c&&!!a,"has-addon-left":!!i,"has-addon-right":!!l,"has-error":g==="error","has-spinner":e?.type==="spinner",[`has-spinner-${e?.placement}`]:!!e}),J=C.classNames({"a-input__wrapper":!0,"a-input__wrapper--inline":!!o}),K=j=>(k(j.target.value.length),f&&f(j));return t.jsxs("div",{className:H,"data-qa":$,children:[u.renderLabel({label:v,id:n,required:x,inline:o}),u.renderDescription({id:n,description:m,state:g}),t.jsxs("div",{className:J,children:[e?.type==="spinner"&&t.jsx(Q.Spinner,{size:"small"}),!!c&&t.jsx(b.Icon,{name:c}),!!i&&t.jsx("div",{className:"a-input__addon",children:i}),t.jsx("input",{ref:L,type:A,value:s,name:F,id:n,autoComplete:N,disabled:I,readOnly:E,required:x,maxLength:r&&w?r:void 0,onChange:K,onBlur:B,onClick:D,onFocus:M,onKeyDown:P,onKeyUp:Z,role:R,"aria-describedby":G,...d}),!!a&&!c&&t.jsx(b.Icon,{name:a}),!!l&&t.jsx("div",{className:"a-input__addon",children:l})]}),u.renderCharacterCounter({id:n,charCountText:z,charCounter:y,characterCount:s?s.length:U,maxLength:r})]})});exports.TextField=V;
package/index46.mjs DELETED
@@ -1,99 +0,0 @@
1
- import { jsxs as x, jsx as r } from "react/jsx-runtime";
2
- import { classNames as N } from "./index51.mjs";
3
- import { SIZE_MAP as K, DEFAULT_SIZE as Q } from "./index53.mjs";
4
- import { renderLabel as V, renderDescription as W, renderCharacterCounter as X } from "./index56.mjs";
5
- import { forwardRef as Y, useState as d } from "react";
6
- /* empty css */
7
- import { Spinner as O } from "./index39.mjs";
8
- import { Icon as b } from "./index24.mjs";
9
- const lt = Y(function({
10
- addOn: t,
11
- autoComplete: w,
12
- ariaDescribedBy: S = "",
13
- charCounter: p,
14
- charCountText: m,
15
- description: u,
16
- disabled: T,
17
- id: e = "aui-text-field",
18
- role: $,
19
- inline: i,
20
- label: j,
21
- maxLength: n,
22
- maxLengthBlocksInput: v,
23
- name: E,
24
- onChange: h,
25
- qa: F,
26
- readOnly: I,
27
- required: f,
28
- size: C,
29
- state: _,
30
- type: R = "text",
31
- value: o,
32
- onBlur: A,
33
- onClick: B,
34
- onFocus: D,
35
- onKeyDown: Z,
36
- onKeyUp: L,
37
- ...M
38
- }, P) {
39
- const [U, k] = d(o ? o.length : 0), s = t?.type === "text" && t.placement === "left" ? t.content : null, a = t?.type === "text" && t.placement === "right" ? t.content : null, c = t?.type === "icon" && t.placement === "left" ? t.content : null, l = t?.type === "icon" && t.placement === "right" ? t.content : null, g = p !== void 0 ? p : !!n, q = m || (n ? "%count% / %max%" : "%count%"), z = [S, g ? `${e}--counter` : null, u ? `${e}--description` : null].filter(Boolean).join(" ") || void 0, G = N({
40
- "a-input": !0,
41
- "a-input--inline": !!i,
42
- [`a-input--${K[C || Q]}`]: !!C,
43
- "has-icon-left": !!c || t?.type === "spinner" && t?.placement === "left",
44
- "has-icon-right": !c && !!l,
45
- "has-addon-left": !!s,
46
- "has-addon-right": !!a,
47
- "has-error": _ === "error",
48
- "has-spinner": t?.type === "spinner",
49
- [`has-spinner-${t?.placement}`]: !!t
50
- }), H = N({
51
- "a-input__wrapper": !0,
52
- "a-input__wrapper--inline": !!i
53
- }), J = (y) => (k(y.target.value.length), h && h(y));
54
- return /* @__PURE__ */ x("div", { className: G, "data-qa": F, children: [
55
- V({ label: j, id: e, required: f, inline: i }),
56
- W({ id: e, description: u, state: _ }),
57
- /* @__PURE__ */ x("div", { className: H, children: [
58
- t?.type === "spinner" && /* @__PURE__ */ r(O, { size: "small" }),
59
- !!c && /* @__PURE__ */ r(b, { name: c }),
60
- !!s && /* @__PURE__ */ r("div", { className: "a-input__addon", children: s }),
61
- /* @__PURE__ */ r(
62
- "input",
63
- {
64
- ref: P,
65
- type: R,
66
- value: o,
67
- name: E,
68
- id: e,
69
- autoComplete: w,
70
- disabled: T,
71
- readOnly: I,
72
- required: f,
73
- maxLength: n && v ? n : void 0,
74
- onChange: J,
75
- onBlur: A,
76
- onClick: B,
77
- onFocus: D,
78
- onKeyDown: Z,
79
- onKeyUp: L,
80
- role: $,
81
- "aria-describedby": z,
82
- ...M
83
- }
84
- ),
85
- !!l && !c && /* @__PURE__ */ r(b, { name: l }),
86
- !!a && /* @__PURE__ */ r("div", { className: "a-input__addon", children: a })
87
- ] }),
88
- X({
89
- id: e,
90
- charCountText: q,
91
- charCounter: g,
92
- characterCount: o ? o.length : U,
93
- maxLength: n
94
- })
95
- ] });
96
- });
97
- export {
98
- lt as TextField
99
- };
package/index47.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index53.js"),m=require("./index51.js"),x=require("./index24.js");function C({checked:r=!1,checkedTheme:j="",checkedIcon:n,checkedLabel:o="",id:N,onClick:g,qa:T,showLabels:a=!1,size:t,uncheckedTheme:p="danger",uncheckedIcon:l,uncheckedLabel:u=""}){const E=()=>{g&&g(!r)},S=m.classNames({"a-toggle":!0,[`a-toggle--${e.SIZE_MAP[t||e.DEFAULT_SIZE]}`]:!!t}),c=(i,_,d)=>m.classNames({"a-button":!0,[`a-button--${e.SIZE_MAP[t||e.DEFAULT_SIZE]}`]:!!t,[`a-button--${i}`]:!!i,"has-icon-left":!!a&&!!_,"has-icon":!a&&!!_,[`a-toggle__${d}`]:!!d}),f=c(j,n,"on"),q=c(p,l,"off");return s.jsx("div",{className:S,"data-qa":T,children:s.jsxs("button",{className:"a-toggle__button",id:N,"aria-expanded":r,onClick:E,children:[s.jsxs("span",{className:f,children:[n?s.jsx(x.Icon,{name:n,screenReaderText:a?"":o}):null,a&&s.jsx("span",{className:"a-toggle__label",children:o})]}),s.jsxs("span",{className:q,children:[l?s.jsx(x.Icon,{name:l,screenReaderText:a?"":u}):null,a&&s.jsx("span",{className:"a-toggle__label",children:u})]})]})})}exports.Toggle=C;
package/index47.mjs DELETED
@@ -1,45 +0,0 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { SIZE_MAP as _, DEFAULT_SIZE as d } from "./index53.mjs";
3
- import { classNames as f } from "./index51.mjs";
4
- import { Icon as N } from "./index24.mjs";
5
- function v({
6
- checked: r = !1,
7
- checkedTheme: x = "",
8
- checkedIcon: s,
9
- checkedLabel: o = "",
10
- id: C,
11
- onClick: g,
12
- qa: T,
13
- showLabels: a = !1,
14
- size: l,
15
- uncheckedTheme: $ = "danger",
16
- uncheckedIcon: n,
17
- uncheckedLabel: m = ""
18
- }) {
19
- const E = () => {
20
- g && g(!r);
21
- }, j = f({
22
- "a-toggle": !0,
23
- [`a-toggle--${_[l || d]}`]: !!l
24
- }), i = (u, c, p) => f({
25
- "a-button": !0,
26
- [`a-button--${_[l || d]}`]: !!l,
27
- [`a-button--${u}`]: !!u,
28
- "has-icon-left": !!a && !!c,
29
- "has-icon": !a && !!c,
30
- [`a-toggle__${p}`]: !!p
31
- }), A = i(x, s, "on"), R = i($, n, "off");
32
- return /* @__PURE__ */ t("div", { className: j, "data-qa": T, children: /* @__PURE__ */ e("button", { className: "a-toggle__button", id: C, "aria-expanded": r, onClick: E, children: [
33
- /* @__PURE__ */ e("span", { className: A, children: [
34
- s ? /* @__PURE__ */ t(N, { name: s, screenReaderText: a ? "" : o }) : null,
35
- a && /* @__PURE__ */ t("span", { className: "a-toggle__label", children: o })
36
- ] }),
37
- /* @__PURE__ */ e("span", { className: R, children: [
38
- n ? /* @__PURE__ */ t(N, { name: n, screenReaderText: a ? "" : m }) : null,
39
- a && /* @__PURE__ */ t("span", { className: "a-toggle__label", children: m })
40
- ] })
41
- ] }) });
42
- }
43
- export {
44
- v as Toggle
45
- };
package/index48.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),s=require("./index66.js");;/* empty css */;/* empty css */function n({anchor:i,anchorId:e="aui-tooltip",location:o="bottom",text:r="",qa:l}){return t.jsxs(t.Fragment,{children:[a.cloneElement(i,{id:e,"aria-describedby":`tooltip-${e}`,tabIndex:0}),t.jsx(s.Tooltip,{id:`tooltip-${e}`,anchorSelect:e?`#${e}`:void 0,className:"a-tooltip__base",noArrow:!0,positionStrategy:"fixed",place:o,style:{padding:"0"},children:t.jsx("div",{className:"a-tooltip","data-qa":l,children:r})})]})}exports.Tooltip=n;
package/index48.mjs DELETED
@@ -1,26 +0,0 @@
1
- import { jsxs as a, Fragment as p, jsx as o } from "react/jsx-runtime";
2
- import { cloneElement as m } from "react";
3
- import { Tooltip as s } from "./index66.mjs";
4
- /* empty css */
5
- /* empty css */
6
- function x({ anchor: i, anchorId: t = "aui-tooltip", location: e = "bottom", text: r = "", qa: l }) {
7
- return /* @__PURE__ */ a(p, { children: [
8
- m(i, { id: t, "aria-describedby": `tooltip-${t}`, tabIndex: 0 }),
9
- /* @__PURE__ */ o(
10
- s,
11
- {
12
- id: `tooltip-${t}`,
13
- anchorSelect: t ? `#${t}` : void 0,
14
- className: "a-tooltip__base",
15
- noArrow: !0,
16
- positionStrategy: "fixed",
17
- place: e,
18
- style: { padding: "0" },
19
- children: /* @__PURE__ */ o("div", { className: "a-tooltip", "data-qa": l, children: r })
20
- }
21
- )
22
- ] });
23
- }
24
- export {
25
- x as Tooltip
26
- };
package/index49.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),R=require("react"),U=require("./index51.js"),p=require("./index61.js"),w=require("./index50.js");function V({acceptedFormat:t="*",deleteAriaLabel:f="Verwijder bestand",disabled:c=!1,files:n=[],formatErrorLabel:_="Dit bestandsformaat is niet toegestaan.",id:i,label:h="Sleep een bestand hier of klik om te bladeren",maxSize:l=10,maxSizeLabel:j="Maximale bestandsgrootte:",hideMaxSizeLabel:b=!1,multiple:u=!0,required:m=!1,onChange:r,onDelete:d,sizeErrorLabel:g="Maximale bestandsgrootte overschreden.",qa:x}){const o=R.useRef(null),N=s=>{d&&d(n?.filter(a=>a?.name!==s.name)),o.current&&(o.current.value="")},v=s=>{if(u){const a=s.target?.files?[...n,...Array.from(s.target.files)].filter((q,y,F)=>F.findIndex(M=>M.name===q.name)===y):[];r&&r(a,p.areFilesValid(a,t,l))}else{const a=s.target?.files?.[0]?[s.target?.files?.[0]]:[];r&&r(a,p.areFilesValid(a,t,l))}};return e.jsxs("div",{className:U.classNames({"m-upload":!0,"is-disabled":!!c}),"data-qa":x,children:[e.jsx("div",{className:"m-upload__inner",children:e.jsxs("div",{className:"m-upload__dropzone",children:[e.jsx("input",{ref:o,id:i,type:"file",multiple:u,required:m,onChange:v,accept:t,className:"m-upload__input",disabled:c,"aria-describedby":`${i}-description`}),e.jsx("div",{className:"m-upload__content",children:e.jsxs("label",{htmlFor:i,className:"m-upload__message u-margin-bottom",children:[h," ",m&&e.jsx("span",{className:"u-text-danger",children:"*"})]})})]})}),!b&&l&&e.jsxs("small",{id:`${i}-description`,className:"m-upload__description",children:[j," ",l,"MB"]}),n?.length?e.jsx("ul",{className:"m-upload__files",children:n?.map(s=>e.jsx(w.UploadFile,{file:s,deleteAriaLabel:f,formatErrorLabel:_,sizeErrorLabel:g,onDelete:d&&N,maxSize:l,acceptedFormat:t},s?.name))}):null]})}exports.Upload=V;
package/index49.mjs DELETED
@@ -1,83 +0,0 @@
1
- import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
- import F from "react";
3
- import { classNames as U } from "./index51.mjs";
4
- import { areFilesValid as u } from "./index61.mjs";
5
- import { UploadFile as V } from "./index50.mjs";
6
- function q({
7
- acceptedFormat: t = "*",
8
- deleteAriaLabel: _ = "Verwijder bestand",
9
- disabled: c = !1,
10
- files: n = [],
11
- formatErrorLabel: h = "Dit bestandsformaat is niet toegestaan.",
12
- id: r,
13
- label: b = "Sleep een bestand hier of klik om te bladeren",
14
- maxSize: s = 10,
15
- maxSizeLabel: g = "Maximale bestandsgrootte:",
16
- hideMaxSizeLabel: N = !1,
17
- multiple: p = !0,
18
- required: f = !1,
19
- onChange: i,
20
- onDelete: d,
21
- sizeErrorLabel: v = "Maximale bestandsgrootte overschreden.",
22
- qa: j
23
- }) {
24
- const m = F.useRef(null), w = (e) => {
25
- d && d(n?.filter((a) => a?.name !== e.name)), m.current && (m.current.value = "");
26
- }, x = (e) => {
27
- if (p) {
28
- const a = e.target?.files ? [...n, ...Array.from(e.target.files)].filter(
29
- (y, M, R) => R.findIndex((k) => k.name === y.name) === M
30
- ) : [];
31
- i && i(a, u(a, t, s));
32
- } else {
33
- const a = e.target?.files?.[0] ? [e.target?.files?.[0]] : [];
34
- i && i(a, u(a, t, s));
35
- }
36
- };
37
- return /* @__PURE__ */ o("div", { className: U({ "m-upload": !0, "is-disabled": !!c }), "data-qa": j, children: [
38
- /* @__PURE__ */ l("div", { className: "m-upload__inner", children: /* @__PURE__ */ o("div", { className: "m-upload__dropzone", children: [
39
- /* @__PURE__ */ l(
40
- "input",
41
- {
42
- ref: m,
43
- id: r,
44
- type: "file",
45
- multiple: p,
46
- required: f,
47
- onChange: x,
48
- accept: t,
49
- className: "m-upload__input",
50
- disabled: c,
51
- "aria-describedby": `${r}-description`
52
- }
53
- ),
54
- /* @__PURE__ */ l("div", { className: "m-upload__content", children: /* @__PURE__ */ o("label", { htmlFor: r, className: "m-upload__message u-margin-bottom", children: [
55
- b,
56
- " ",
57
- f && /* @__PURE__ */ l("span", { className: "u-text-danger", children: "*" })
58
- ] }) })
59
- ] }) }),
60
- !N && s && /* @__PURE__ */ o("small", { id: `${r}-description`, className: "m-upload__description", children: [
61
- g,
62
- " ",
63
- s,
64
- "MB"
65
- ] }),
66
- n?.length ? /* @__PURE__ */ l("ul", { className: "m-upload__files", children: n?.map((e) => /* @__PURE__ */ l(
67
- V,
68
- {
69
- file: e,
70
- deleteAriaLabel: _,
71
- formatErrorLabel: h,
72
- sizeErrorLabel: v,
73
- onDelete: d && w,
74
- maxSize: s,
75
- acceptedFormat: t
76
- },
77
- e?.name
78
- )) }) : null
79
- ] });
80
- }
81
- export {
82
- q as Upload
83
- };
package/index5.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react");;/* empty css */const J=require("./index20.js"),M=require("./index22.js"),R=require("./index27.js"),Q=require("./index46.js");function W({id:V="aui-autocomplete",label:m,items:a,name:h,multiple:l,required:A,inputValue:b,value:t,onInputChange:I,onChange:i,noResultsText:T="Geen resultaten",qa:B,description:C,state:K,addOn:x,disabled:N=!1}){const[S,p]=n.useState(!1),[d,O]=n.useState(a),[P,_]=n.useState(b||""),[G,y]=n.useState(!l&&t||""),[c,w]=n.useState(-1),[g,k]=n.useState(l&&t||[]),f=b||b===""?b:P,j=t||t===""?t:G,L=n.useRef(null);n.useEffect(()=>{t&&!l&&F(t,!0),t&&l&&k(t)},[t]),n.useEffect(()=>{O((a||[]).filter(e=>f?e.label?.toLowerCase().includes(f.toLowerCase()):!0))},[f,a]),n.useEffect(()=>{L.current&&L.current.querySelector(`.a-list__item:nth-child(${c+1})`)?.scrollIntoView({block:"nearest",inline:"nearest"})},[c]);const U=e=>{p(e)},q=()=>{p(!1),w(-1)},D=e=>{_(e),p(!0),j&&!e&&(y(""),!l&&i&&i("",h)),I&&I(e,h)},F=(e,s=!1)=>{if(!l&&t!==""&&(!t||t===e)){const r=a?.find(u=>u.value===e);D(r?.label||""),y(r?.value||""),q()}!s&&i&&i(e,h)},E=e=>{const s=a?.find(u=>u.value===e);s&&y(s.value);const r=g.includes(e)?g.filter(u=>u!==e):[...g,e].filter(u=>u!=="");k(r),i&&i(r,h)},$=()=>{const e=a?.find(s=>s.value===j);e&&f?.length&&e.label!==f&&D(e.label),q()},v=()=>{const e=d&&d[c];e&&(l?E(e.value):F(e.value))},z=e=>{if(!S)return;const s=d?.length||0;switch(e.key){case"ArrowDown":return e.preventDefault(),w(c===-1?0:(c+1)%s),p(!0);case"ArrowUp":return e.preventDefault(),w(c===-1||c-1<0?s-1:c-1),p(!0);case"Enter":return e.preventDefault(),v();case"Escape":return q()}},H=e=>l?g.includes(e):e===j;return o.jsx(J.Flyout,{scrollable:!0,hasPadding:!1,qa:B,className:"m-autocomplete",trigger:o.jsx(Q.TextField,{id:V,name:h,label:m,onBlur:$,value:f,onChange:e=>D(e.target.value),role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":S,onKeyDown:z,description:C,required:A,state:K,addOn:x?{...x,content:x.content}:void 0,disabled:N}),ref:L,open:S,onStateChange:U,children:d&&d.length?o.jsx(M.FunctionalList,{lined:!0,onItemClick:e=>{l?E(e):F(e)},children:d.map((e,s)=>o.jsxs(R.ListItem,{id:e.key||e.value,tabIndex:-1,highlighted:s===c,onMouseDown:r=>r.preventDefault(),active:H(e.value),name:e.value,link:{href:""},children:[e.label,e.subLabel?o.jsx("p",{className:"small",children:e.subLabel}):null]},e.key||e.value))}):o.jsx(M.FunctionalList,{lined:!0,children:o.jsx(R.ListItem,{id:"aui-autocomplete-no-results",children:o.jsx("small",{children:T})})})})}exports.Autocomplete=W;