@a-ui/react 7.13.0-beta.4 → 7.13.0-beta.6

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 (269) 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 +2 -1
  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 +10 -1
  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 -2
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +5 -1
  31. package/cjs/index127.js +9 -1
  32. package/cjs/index128.js +1 -10
  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 -5
  41. package/cjs/index136.js +1 -9
  42. package/cjs/index14.js +1 -1
  43. package/cjs/index144.js +1 -11
  44. package/cjs/index145.js +11 -1
  45. package/cjs/index146.js +1 -1
  46. package/cjs/index147.js +1 -1
  47. package/cjs/index16.js +1 -1
  48. package/cjs/index167.js +1 -1
  49. package/cjs/index17.js +1 -1
  50. package/cjs/index170.js +1 -1
  51. package/cjs/index171.js +1 -1
  52. package/cjs/index172.js +1 -1
  53. package/cjs/index176.js +1 -1
  54. package/cjs/index177.js +1 -1
  55. package/cjs/index18.js +1 -1
  56. package/cjs/index187.js +1 -1
  57. package/cjs/index194.js +1 -1
  58. package/cjs/index2.js +1 -1
  59. package/cjs/index20.js +1 -1
  60. package/cjs/index21.js +1 -1
  61. package/cjs/index22.js +1 -1
  62. package/cjs/index224.js +1 -1
  63. package/cjs/index225.js +1 -1
  64. package/cjs/index226.js +1 -1
  65. package/cjs/index227.js +1 -1
  66. package/cjs/index228.js +1 -1
  67. package/cjs/index229.js +1 -1
  68. package/cjs/index230.js +1 -1
  69. package/cjs/index231.js +1 -1
  70. package/cjs/index24.js +1 -1
  71. package/cjs/index25.js +1 -1
  72. package/cjs/index26.js +1 -1
  73. package/cjs/index27.js +1 -1
  74. package/cjs/index28.js +1 -1
  75. package/cjs/index3.js +1 -1
  76. package/cjs/index30.js +1 -1
  77. package/cjs/index31.js +1 -1
  78. package/cjs/index32.js +1 -1
  79. package/cjs/index33.js +1 -1
  80. package/cjs/index34.js +1 -1
  81. package/cjs/index36.js +1 -1
  82. package/cjs/index37.js +1 -1
  83. package/cjs/index38.js +1 -1
  84. package/cjs/index39.js +1 -1
  85. package/cjs/index4.js +1 -1
  86. package/cjs/index40.js +1 -1
  87. package/cjs/index41.js +1 -1
  88. package/cjs/index42.js +1 -1
  89. package/cjs/index43.js +1 -1
  90. package/cjs/index44.js +1 -1
  91. package/cjs/index45.js +1 -1
  92. package/cjs/index46.js +1 -1
  93. package/cjs/index47.js +1 -1
  94. package/cjs/index48.js +1 -1
  95. package/cjs/index49.js +1 -1
  96. package/cjs/index5.js +1 -1
  97. package/cjs/index50.js +1 -1
  98. package/cjs/index51.js +1 -1
  99. package/cjs/index52.js +1 -1
  100. package/cjs/index53.js +1 -1
  101. package/cjs/index54.js +1 -1
  102. package/cjs/index55.js +1 -7
  103. package/cjs/index56.js +1 -1
  104. package/cjs/index57.js +1 -1
  105. package/cjs/index58.js +1 -1
  106. package/cjs/index59.js +1 -1
  107. package/cjs/index6.js +1 -1
  108. package/cjs/index60.js +1 -1
  109. package/cjs/index61.js +7 -1
  110. package/cjs/index62.js +1 -1
  111. package/cjs/index63.js +1 -1
  112. package/cjs/index64.js +1 -1
  113. package/cjs/index65.js +1 -1
  114. package/cjs/index67.js +1 -1
  115. package/cjs/index68.js +1 -1
  116. package/cjs/index69.js +1 -1
  117. package/cjs/index71.js +1 -1
  118. package/cjs/index8.js +1 -1
  119. package/cjs/index82.js +1 -1
  120. package/cjs/index83.js +1 -1
  121. package/cjs/index85.js +1 -1
  122. package/cjs/index86.js +1 -1
  123. package/cjs/index87.js +1 -0
  124. package/cjs/index88.js +1 -0
  125. package/cjs/index89.js +1 -1
  126. package/cjs/index9.js +1 -1
  127. package/cjs/index90.js +1 -1
  128. package/cjs/index91.js +1 -1
  129. package/cjs/index94.js +1 -1
  130. package/cjs/index95.js +1 -1
  131. package/cjs/index96.js +1 -1
  132. package/cjs/index97.js +1 -1
  133. package/cjs/index98.js +1 -1
  134. package/cjs/index99.js +1 -1
  135. package/es/index10.mjs +4 -4
  136. package/es/index100.mjs +4 -66
  137. package/es/index101.mjs +11 -3
  138. package/es/index102.mjs +247 -5
  139. package/es/index103.mjs +88 -10
  140. package/es/index104.mjs +14 -6
  141. package/es/index105.mjs +4 -11
  142. package/es/index106.mjs +2 -247
  143. package/es/index107.mjs +2 -89
  144. package/es/index108.mjs +4 -15
  145. package/es/index109.mjs +391 -4
  146. package/es/index11.mjs +1 -1
  147. package/es/index110.mjs +125 -2
  148. package/es/index111.mjs +134 -2
  149. package/es/index112.mjs +2 -63
  150. package/es/index113.mjs +7 -13
  151. package/es/index114.mjs +326 -6
  152. package/es/index115.mjs +49 -6
  153. package/es/index116.mjs +2 -6
  154. package/es/index117.mjs +64 -5
  155. package/es/index118.mjs +43 -5
  156. package/es/index119.mjs +59 -6
  157. package/es/index12.mjs +2 -2
  158. package/es/index120.mjs +45 -6
  159. package/es/index121.mjs +40 -2
  160. package/es/index122.mjs +2 -8
  161. package/es/index123.mjs +2 -327
  162. package/es/index124.mjs +2 -50
  163. package/es/index125.mjs +31 -2
  164. package/es/index126.mjs +19 -65
  165. package/es/index127.mjs +58 -40
  166. package/es/index128.mjs +62 -59
  167. package/es/index129.mjs +15 -45
  168. package/es/index13.mjs +2 -2
  169. package/es/index130.mjs +6 -39
  170. package/es/index131.mjs +7 -2
  171. package/es/index132.mjs +6 -2
  172. package/es/index133.mjs +6 -2
  173. package/es/index134.mjs +4 -30
  174. package/es/index135.mjs +7 -19
  175. package/es/index136.mjs +4 -60
  176. package/es/index14.mjs +3 -3
  177. package/es/index144.mjs +2 -58
  178. package/es/index145.mjs +58 -2
  179. package/es/index146.mjs +2 -2
  180. package/es/index147.mjs +2 -2
  181. package/es/index16.mjs +1 -1
  182. package/es/index167.mjs +1 -1
  183. package/es/index17.mjs +2 -2
  184. package/es/index170.mjs +1 -1
  185. package/es/index171.mjs +1 -1
  186. package/es/index172.mjs +1 -1
  187. package/es/index176.mjs +1 -1
  188. package/es/index177.mjs +1 -1
  189. package/es/index18.mjs +3 -3
  190. package/es/index187.mjs +1 -1
  191. package/es/index194.mjs +1 -1
  192. package/es/index2.mjs +1 -1
  193. package/es/index20.mjs +2 -2
  194. package/es/index21.mjs +1 -1
  195. package/es/index22.mjs +1 -1
  196. package/es/index224.mjs +67 -58
  197. package/es/index225.mjs +31 -9
  198. package/es/index226.mjs +9 -20
  199. package/es/index227.mjs +104 -64
  200. package/es/index228.mjs +102 -26
  201. package/es/index229.mjs +59 -9
  202. package/es/index230.mjs +9 -108
  203. package/es/index231.mjs +19 -106
  204. package/es/index24.mjs +4 -4
  205. package/es/index25.mjs +2 -2
  206. package/es/index26.mjs +1 -1
  207. package/es/index27.mjs +1 -1
  208. package/es/index28.mjs +1 -1
  209. package/es/index3.mjs +1 -1
  210. package/es/index30.mjs +2 -2
  211. package/es/index31.mjs +2 -2
  212. package/es/index32.mjs +2 -2
  213. package/es/index33.mjs +3 -3
  214. package/es/index34.mjs +1 -1
  215. package/es/index36.mjs +3 -3
  216. package/es/index37.mjs +3 -3
  217. package/es/index38.mjs +3 -3
  218. package/es/index39.mjs +3 -3
  219. package/es/index4.mjs +2 -2
  220. package/es/index40.mjs +2 -2
  221. package/es/index41.mjs +1 -1
  222. package/es/index42.mjs +4 -4
  223. package/es/index43.mjs +1 -1
  224. package/es/index44.mjs +2 -2
  225. package/es/index45.mjs +3 -3
  226. package/es/index46.mjs +3 -3
  227. package/es/index47.mjs +2 -2
  228. package/es/index48.mjs +1 -1
  229. package/es/index49.mjs +2 -2
  230. package/es/index50.mjs +1 -1
  231. package/es/index51.mjs +11 -8
  232. package/es/index52.mjs +8 -11
  233. package/es/index53.mjs +21 -28
  234. package/es/index54.mjs +8 -47
  235. package/es/index55.mjs +28 -409
  236. package/es/index56.mjs +47 -21
  237. package/es/index57.mjs +47 -45
  238. package/es/index58.mjs +30 -8
  239. package/es/index59.mjs +17 -49
  240. package/es/index6.mjs +3 -3
  241. package/es/index60.mjs +28 -61
  242. package/es/index61.mjs +407 -58
  243. package/es/index62.mjs +27 -27
  244. package/es/index63.mjs +35 -20
  245. package/es/index64.mjs +3 -3
  246. package/es/index65.mjs +35 -30
  247. package/es/index67.mjs +9 -9
  248. package/es/index68.mjs +2 -2
  249. package/es/index69.mjs +2 -2
  250. package/es/index71.mjs +6 -6
  251. package/es/index8.mjs +3 -3
  252. package/es/index82.mjs +83 -60
  253. package/es/index83.mjs +1 -1
  254. package/es/index85.mjs +60 -12
  255. package/es/index86.mjs +57 -56
  256. package/es/index87.mjs +16 -0
  257. package/es/index88.mjs +61 -0
  258. package/es/index89.mjs +5 -5
  259. package/es/index9.mjs +1 -1
  260. package/es/index90.mjs +3 -3
  261. package/es/index91.mjs +1 -1
  262. package/es/index93.mjs +2 -2
  263. package/es/index94.mjs +224 -380
  264. package/es/index95.mjs +2 -125
  265. package/es/index96.mjs +63 -130
  266. package/es/index97.mjs +3 -2
  267. package/es/index98.mjs +5 -235
  268. package/es/index99.mjs +11 -2
  269. package/package.json +1 -1
package/es/index65.mjs CHANGED
@@ -1,32 +1,37 @@
1
- const f = (t, n) => Array(n - t + 1).fill(0).map((e, o) => o + t), d = (t, n) => {
2
- const e = n <= 7 ? 7 : t > 4 && t < n - 3 ? 2 : 4;
3
- let o = Math.round(t - e / 2), a = Math.round(t + e / 2);
4
- (o - 1 === 1 || a + 1 === n) && (o += 1, a += 1);
5
- let s = t > e ? f(Math.min(o, n - e), Math.min(a, n)) : f(1, Math.min(n, e + 1));
6
- return s[0] !== 1 && (s = [1, 0].concat(s)), s[s.length - 1] < n && (s = s.concat([0, n])), s;
7
- }, p = (t, n, e, o) => {
8
- const a = e - n, c = (t - n) / a;
9
- return Math.round(c * o);
10
- }, h = (t, n, e) => Math.min(Math.max(t, n), e), l = (t, n) => n ? t - n : t, M = (t, n, e, o, a, s, c) => {
11
- const i = h(t, 0, n) / (n || 1);
12
- let r = e * Math.round(i * (c - s)) / e + s;
13
- return r >= a && (r = a), r <= o && (r = o), r;
14
- }, V = (t, n, e, o, a, s, c, i) => {
15
- const u = "clientX", r = t.type !== "touchmove" ? t[u] : t.touches[0][u], g = l(r, i);
16
- return M(g, n, e, o, a, s, c);
17
- }, y = (t, n, e) => {
18
- const o = [];
19
- if (e <= 0)
20
- return [n];
21
- for (let a = t; a < n; a += e)
22
- o.push(a);
23
- return [...o, n];
24
- };
1
+ import "./index104.mjs";
2
+ import { tz as f } from "./index105.mjs";
3
+ import { TIMEZONE as m } from "./index58.mjs";
4
+ import { format as s } from "./index75.mjs";
5
+ import { isBefore as a } from "./index106.mjs";
6
+ import { isSameDay as o } from "./index107.mjs";
7
+ import { isAfter as u } from "./index100.mjs";
8
+ function S(t, e, r, n) {
9
+ return r && (a(t, new Date(r)) || o(t, new Date(r))) || e && (u(t, new Date(e)) || o(t, new Date(e))) || !!n?.find((i) => o(t, new Date(i)));
10
+ }
11
+ function h(t, e, r) {
12
+ return u(t, new Date(e)) && a(t, new Date(r));
13
+ }
14
+ function O(t, e) {
15
+ try {
16
+ return s(new Date(t), e);
17
+ } catch {
18
+ return t;
19
+ }
20
+ }
21
+ function g(t, e, r, n = "") {
22
+ try {
23
+ return s(t, e, { locale: r });
24
+ } catch {
25
+ return n;
26
+ }
27
+ }
28
+ function y(t, e, r) {
29
+ return f(m)(new Date(Date.UTC(t, e, r, 0, 0, 0))).toISOString();
30
+ }
25
31
  export {
26
- l as getPosition,
27
- V as getPositionValue,
28
- y as getSteps,
29
- M as getValueFromPosition,
30
- p as lineValuesToPosition,
31
- d as pagesArray
32
+ O as formatIfValid,
33
+ g as formatWithFallback,
34
+ h as isBetween,
35
+ S as isInRange,
36
+ y as toUtcMidnightInBrussels
32
37
  };
package/es/index67.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import { jsx as r, jsxs as M } from "react/jsx-runtime";
2
- import { DayButton as b } from "./index112.mjs";
2
+ import { DayButton as b } from "./index128.mjs";
3
3
  import { titleize as l } from "./index70.mjs";
4
4
  import { useState as B } from "react";
5
5
  import { isBetween as N } from "./index71.mjs";
6
- import { eachDayOfInterval as $ } from "./index113.mjs";
7
- import { endOfWeek as u } from "./index114.mjs";
8
- import { startOfWeek as d } from "./index115.mjs";
6
+ import { eachDayOfInterval as $ } from "./index129.mjs";
7
+ import { endOfWeek as u } from "./index130.mjs";
8
+ import { startOfWeek as d } from "./index131.mjs";
9
9
  import { format as k } from "./index81.mjs";
10
- import { startOfMonth as j } from "./index116.mjs";
11
- import { endOfMonth as V } from "./index117.mjs";
10
+ import { startOfMonth as j } from "./index132.mjs";
11
+ import { endOfMonth as V } from "./index133.mjs";
12
12
  import { isValid as s } from "./index79.mjs";
13
- import { isAfter as E } from "./index104.mjs";
14
- import { addWeeks as z } from "./index118.mjs";
15
- import { addDays as A } from "./index119.mjs";
13
+ import { isAfter as E } from "./index100.mjs";
14
+ import { addWeeks as z } from "./index134.mjs";
15
+ import { addDays as A } from "./index135.mjs";
16
16
  function Z({
17
17
  value: w,
18
18
  onChange: y,
package/es/index68.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { classNames as h } from "./index51.mjs";
2
+ import { classNames as h } from "./index52.mjs";
3
3
  import { titleize as f } from "./index70.mjs";
4
- import { DEFAULT_LOCALE as u } from "./index52.mjs";
4
+ import { DEFAULT_LOCALE as u } from "./index51.mjs";
5
5
  import { getMonth as c } from "./index73.mjs";
6
6
  import { getYear as m } from "./index72.mjs";
7
7
  import { format as M } from "./index81.mjs";
package/es/index69.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { classNames as l } from "./index51.mjs";
2
+ import { classNames as l } from "./index52.mjs";
3
3
  import { getYear as c } from "./index72.mjs";
4
4
  import { format as a } from "./index81.mjs";
5
- import { getDate as p } from "./index120.mjs";
5
+ import { getDate as p } from "./index136.mjs";
6
6
  function D({ yearsRowsStart: s, value: t, activeMonth: o, onChange: d }) {
7
7
  const i = (e) => {
8
8
  const n = l({
package/es/index71.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import "./index100.mjs";
2
- import { tz as f } from "./index101.mjs";
3
- import { TIMEZONE as m } from "./index52.mjs";
1
+ import "./index96.mjs";
2
+ import { tz as f } from "./index97.mjs";
3
+ import { TIMEZONE as m } from "./index51.mjs";
4
4
  import { format as s } from "./index81.mjs";
5
- import { isBefore as a } from "./index102.mjs";
6
- import { isSameDay as o } from "./index103.mjs";
7
- import { isAfter as u } from "./index104.mjs";
5
+ import { isBefore as a } from "./index98.mjs";
6
+ import { isSameDay as o } from "./index99.mjs";
7
+ import { isAfter as u } from "./index100.mjs";
8
8
  function S(t, e, r, n) {
9
9
  return r && (a(t, new Date(r)) || o(t, new Date(r))) || e && (u(t, new Date(e)) || o(t, new Date(e))) || !!n?.find((i) => o(t, new Date(i)));
10
10
  }
package/es/index8.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { classNames as c } from "./index51.mjs";
2
+ import { classNames as c } from "./index52.mjs";
3
3
  import { useEffect as g } from "react";
4
- import { EMPHASIS_MAP as n, DEFAULT_EMPHASIS as t } from "./index53.mjs";
5
- import { logWarning as l } from "./index58.mjs";
4
+ import { EMPHASIS_MAP as n, DEFAULT_EMPHASIS as t } from "./index55.mjs";
5
+ import { logWarning as l } from "./index54.mjs";
6
6
  function A({ ariaLabel: s, theme: r, emphasis: o, children: e, qa: i }) {
7
7
  const a = parseInt(e), m = c({
8
8
  "a-badge": !0,
package/es/index82.mjs CHANGED
@@ -1,64 +1,87 @@
1
- import { jsx as t, jsxs as v } from "react/jsx-runtime";
2
- import { SORT_ASCENDING as u, SORT_DESCENDING as d } from "./index52.mjs";
3
- import { classNames as m } from "./index51.mjs";
4
- import { wrapWithIf as C } from "./index55.mjs";
5
- import { Checkbox as S } from "./index14.mjs";
6
- function w({
7
- columns: c,
8
- selectable: p,
9
- selected: a = [],
10
- rows: _ = [],
11
- onSelectAll: g,
12
- sort: s,
13
- small: f,
14
- sortDirection: n,
15
- tableId: r,
16
- onSortClick: o,
17
- actions: i
18
- }) {
19
- const b = a.length && a.sort().join(",") === _.map((e) => e.id).sort().join(",");
20
- return /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ v("tr", { children: [
21
- p ? /* @__PURE__ */ t("th", { children: /* @__PURE__ */ t(
22
- S,
23
- {
24
- name: `aui-table-checkbox-${r}-all`,
25
- id: `aui-table-checkbox-${r}-all`,
26
- checked: !!b,
27
- indeterminate: !!a.length && !b,
28
- onChange: g,
29
- label: "selecteren",
30
- showLabel: !1
31
- }
32
- ) }) : null,
33
- c.map((e) => {
34
- const x = m({
35
- "u-text-right": !!e.alignRight,
36
- "is-collapsed": !!e.sortable,
37
- "is-condensed": !!f
38
- }), l = s === e?.value && n === u, h = s === e?.value && n === d, N = m({
39
- "a-table__sort-button": !0,
40
- "a-table__sort-button--unsorted": s !== e?.value,
41
- "a-table__sort-button--sorted-asc": l,
42
- "a-table__sort-button--sorted-desc": h
43
- });
44
- return /* @__PURE__ */ t(
45
- "th",
46
- {
47
- className: x,
48
- ...e.sortable && (l || h) && { "aria-sort": l ? u : d },
49
- ...e.sortable && { "aria-live": "polite" },
50
- children: C(
51
- e?.label,
52
- /* @__PURE__ */ t("button", { onClick: (j) => o && o(e.value), className: N }),
53
- !!e?.sortable
54
- )
55
- },
56
- e?.value
1
+ import { longFormatters as y } from "./index161.mjs";
2
+ import { isProtectedWeekYearToken as b, warnOrThrowProtectedError as E, isProtectedDayOfYearToken as C } from "./index162.mjs";
3
+ import { constructFrom as D } from "./index151.mjs";
4
+ import { getDefaultOptions as F } from "./index167.mjs";
5
+ import { toDate as O } from "./index152.mjs";
6
+ import { DateTimezoneSetter as $ } from "./index177.mjs";
7
+ import { parsers as A } from "./index178.mjs";
8
+ import { enUS as W } from "./index163.mjs";
9
+ const N = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, L = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Y = /^'([^]*?)'?$/, j = /''/g, q = /\S/, v = /[a-zA-Z]/;
10
+ function G(n, a, c, f) {
11
+ const r = () => D(c, NaN), i = F(), l = i.locale ?? W, d = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, R = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0;
12
+ if (!a)
13
+ return n ? r() : O(c, f?.in);
14
+ const m = {
15
+ firstWeekContainsDate: d,
16
+ weekStartsOn: R,
17
+ locale: l
18
+ }, p = [new $(f?.in, c)], x = a.match(L).map((t) => {
19
+ const e = t[0];
20
+ if (e in y) {
21
+ const o = y[e];
22
+ return o(t, l.formatLong);
23
+ }
24
+ return t;
25
+ }).join("").match(N), u = [];
26
+ for (let t of x) {
27
+ b(t) && E(t, a, n), C(t) && E(t, a, n);
28
+ const e = t[0], o = A[e];
29
+ if (o) {
30
+ const { incompatibleTokens: k } = o;
31
+ if (Array.isArray(k)) {
32
+ const w = u.find(
33
+ (T) => k.includes(T.token) || T.token === e
34
+ );
35
+ if (w)
36
+ throw new RangeError(
37
+ `The format string mustn't contain \`${w.fullToken}\` and \`${t}\` at the same time`
38
+ );
39
+ } else if (o.incompatibleTokens === "*" && u.length > 0)
40
+ throw new RangeError(
41
+ `The format string mustn't contain \`${t}\` and any other token at the same time`
42
+ );
43
+ u.push({ token: e, fullToken: t });
44
+ const g = o.run(
45
+ n,
46
+ t,
47
+ l.match,
48
+ m
57
49
  );
58
- }),
59
- i?.buttons?.length ? /* @__PURE__ */ t("th", { children: i?.label }) : null
60
- ] }) });
50
+ if (!g)
51
+ return r();
52
+ p.push(g.setter), n = g.rest;
53
+ } else {
54
+ if (e.match(v))
55
+ throw new RangeError(
56
+ "Format string contains an unescaped latin alphabet character `" + e + "`"
57
+ );
58
+ if (t === "''" ? t = "'" : e === "'" && (t = z(t)), n.indexOf(t) === 0)
59
+ n = n.slice(t.length);
60
+ else
61
+ return r();
62
+ }
63
+ }
64
+ if (n.length > 0 && q.test(n))
65
+ return r();
66
+ const P = p.map((t) => t.priority).sort((t, e) => e - t).filter((t, e, o) => o.indexOf(t) === e).map(
67
+ (t) => p.filter((e) => e.priority === t).sort((e, o) => o.subPriority - e.subPriority)
68
+ ).map((t) => t[0]);
69
+ let s = O(c, f?.in);
70
+ if (isNaN(+s)) return r();
71
+ const h = {};
72
+ for (const t of P) {
73
+ if (!t.validate(s, m))
74
+ return r();
75
+ const e = t.set(s, h, m);
76
+ Array.isArray(e) ? (s = e[0], Object.assign(h, e[1])) : s = e;
77
+ }
78
+ return s;
79
+ }
80
+ function z(n) {
81
+ return n.match(Y)[1].replace(j, "'");
61
82
  }
62
83
  export {
63
- w as TableHeader
84
+ y as longFormatters,
85
+ G as parse,
86
+ A as parsers
64
87
  };
package/es/index83.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { addDays as t } from "./index119.mjs";
1
+ import { addDays as t } from "./index135.mjs";
2
2
  function u(o, a, r) {
3
3
  return t(o, -1, r);
4
4
  }
package/es/index85.mjs CHANGED
@@ -1,16 +1,64 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- function a({ start: p, end: x, range: d, min: e, getPositionFromValue: r }) {
3
- return /* @__PURE__ */ f(
4
- "div",
5
- {
6
- className: "a-range-slider__bar",
7
- style: {
8
- left: d ? r(p) + "px" : "",
9
- width: d && x ? r(x + e - p) + "px" : r(p) + "px"
1
+ import { jsx as t, jsxs as v } from "react/jsx-runtime";
2
+ import { SORT_ASCENDING as u, SORT_DESCENDING as d } from "./index51.mjs";
3
+ import { classNames as m } from "./index52.mjs";
4
+ import { wrapWithIf as C } from "./index57.mjs";
5
+ import { Checkbox as S } from "./index14.mjs";
6
+ function w({
7
+ columns: c,
8
+ selectable: p,
9
+ selected: a = [],
10
+ rows: _ = [],
11
+ onSelectAll: g,
12
+ sort: s,
13
+ small: f,
14
+ sortDirection: n,
15
+ tableId: r,
16
+ onSortClick: o,
17
+ actions: i
18
+ }) {
19
+ const b = a.length && a.sort().join(",") === _.map((e) => e.id).sort().join(",");
20
+ return /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ v("tr", { children: [
21
+ p ? /* @__PURE__ */ t("th", { children: /* @__PURE__ */ t(
22
+ S,
23
+ {
24
+ name: `aui-table-checkbox-${r}-all`,
25
+ id: `aui-table-checkbox-${r}-all`,
26
+ checked: !!b,
27
+ indeterminate: !!a.length && !b,
28
+ onChange: g,
29
+ label: "selecteren",
30
+ showLabel: !1
10
31
  }
11
- }
12
- );
32
+ ) }) : null,
33
+ c.map((e) => {
34
+ const x = m({
35
+ "u-text-right": !!e.alignRight,
36
+ "is-collapsed": !!e.sortable,
37
+ "is-condensed": !!f
38
+ }), l = s === e?.value && n === u, h = s === e?.value && n === d, N = m({
39
+ "a-table__sort-button": !0,
40
+ "a-table__sort-button--unsorted": s !== e?.value,
41
+ "a-table__sort-button--sorted-asc": l,
42
+ "a-table__sort-button--sorted-desc": h
43
+ });
44
+ return /* @__PURE__ */ t(
45
+ "th",
46
+ {
47
+ className: x,
48
+ ...e.sortable && (l || h) && { "aria-sort": l ? u : d },
49
+ ...e.sortable && { "aria-live": "polite" },
50
+ children: C(
51
+ e?.label,
52
+ /* @__PURE__ */ t("button", { onClick: (j) => o && o(e.value), className: N }),
53
+ !!e?.sortable
54
+ )
55
+ },
56
+ e?.value
57
+ );
58
+ }),
59
+ i?.buttons?.length ? /* @__PURE__ */ t("th", { children: i?.label }) : null
60
+ ] }) });
13
61
  }
14
62
  export {
15
- a as RangeSliderBar
63
+ w as TableHeader
16
64
  };
package/es/index86.mjs CHANGED
@@ -1,61 +1,62 @@
1
- import { jsx as L } from "react/jsx-runtime";
2
- import { getPositionValue as R } from "./index65.mjs";
3
- import i from "react";
4
- function x({
5
- value: a,
6
- min: n,
7
- max: r,
8
- sliderMin: d,
9
- sliderMax: p,
10
- step: l,
11
- direction: f,
12
- sliderPos: s,
13
- onUpdate: o,
14
- getPositionFromValue: h,
15
- ariaLabel: y
1
+ import { jsx as a, jsxs as b } from "react/jsx-runtime";
2
+ import { classNames as o } from "./index52.mjs";
3
+ import { wrapWithIf as f } from "./index57.mjs";
4
+ import { Checkbox as g } from "./index14.mjs";
5
+ import { Button as k } from "./index10.mjs";
6
+ function N({
7
+ actions: s,
8
+ columns: m,
9
+ small: d,
10
+ tableId: i,
11
+ selectable: l,
12
+ onSelect: r,
13
+ selected: u = [],
14
+ rows: p
16
15
  }) {
17
- const [w, D] = i.useState(0), E = i.useRef(null);
18
- i.useEffect(() => {
19
- s && D(s);
20
- }, [f, s]);
21
- const m = (e) => {
22
- e.stopPropagation(), e.preventDefault();
23
- }, g = () => {
24
- document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
25
- }, u = (e) => {
26
- e.type === "mousemove" ? m(e) : e.stopPropagation();
27
- const t = v(e);
28
- return o && o(t);
29
- }, c = (e) => {
30
- document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
31
- const t = v(e);
32
- return o && o(t);
33
- }, v = (e) => R(e, w, l, n, r, d, p, f), k = (e) => {
34
- let t = a;
35
- e.key === "ArrowUp" || e.key === "ArrowRight" ? (e.preventDefault(), t += l) : e.key === "ArrowDown" || e.key === "ArrowLeft" ? (e.preventDefault(), t -= l) : e.key === "End" ? (e.preventDefault(), t = r) : e.key === "Home" && (e.preventDefault(), t = n), t >= n && t <= r && o(t);
16
+ const h = o({
17
+ "is-clickable": !!l
18
+ }), c = (e, t) => {
19
+ const n = e.target;
20
+ 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 : (e.preventDefault(), e.stopPropagation(), l && r && r(t.id));
36
21
  };
37
- return /* @__PURE__ */ L(
38
- "div",
39
- {
40
- className: "a-range-slider__handle",
41
- tabIndex: 0,
42
- style: {
43
- left: h(a) + "px"
44
- },
45
- onMouseDown: g,
46
- onTouchEnd: m,
47
- onTouchMove: u,
48
- onKeyDown: k,
49
- role: "slider",
50
- "aria-orientation": "horizontal",
51
- "aria-valuemax": r,
52
- "aria-valuemin": n,
53
- "aria-valuenow": a,
54
- "aria-label": y,
55
- ref: E
56
- }
57
- );
22
+ return /* @__PURE__ */ a("tbody", { children: p.map((e) => /* @__PURE__ */ b("tr", { onClick: (t) => c(t, e), className: h, children: [
23
+ l ? /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(
24
+ g,
25
+ {
26
+ name: `aui-table-checkbox-${i}-${e.id}`,
27
+ id: `aui-table-checkbox-row-${i}-${e.id}`,
28
+ checked: (u || []).includes(e.id),
29
+ onChange: (t) => c(t, e),
30
+ label: e.checkboxLabel,
31
+ showLabel: !1
32
+ }
33
+ ) }) : null,
34
+ m.map((t) => {
35
+ const n = o({
36
+ "u-text-right": !!t.alignRight,
37
+ "u-text-bold": t.dataType === "primary",
38
+ small: t.dataType === "secondary",
39
+ "is-condensed": !!d
40
+ });
41
+ return /* @__PURE__ */ a("td", { className: n, children: t.transformFunction ? t.transformFunction(e[t?.value] || null) : e[t?.value] || null }, t?.value);
42
+ }),
43
+ f(
44
+ s?.buttons?.map((t) => /* @__PURE__ */ a(
45
+ k,
46
+ {
47
+ onClick: (n) => t?.onActionClick && t?.onActionClick(n, e.id),
48
+ ...t,
49
+ id: `aui-table-action-${i}-${t?.id}-${e.id}`,
50
+ size: t?.size || "small",
51
+ children: t?.label || t?.children
52
+ },
53
+ `aui-table-action-${i}-${t?.id}-${e.id}`
54
+ )) || null,
55
+ /* @__PURE__ */ a("td", {}),
56
+ !!s?.buttons?.length
57
+ )
58
+ ] }, e?.id)) });
58
59
  }
59
60
  export {
60
- x as RangeSliderHandle
61
+ N as TableBody
61
62
  };
package/es/index87.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ function a({ start: p, end: x, range: d, min: e, getPositionFromValue: r }) {
3
+ return /* @__PURE__ */ f(
4
+ "div",
5
+ {
6
+ className: "a-range-slider__bar",
7
+ style: {
8
+ left: d ? r(p) + "px" : "",
9
+ width: d && x ? r(x + e - p) + "px" : r(p) + "px"
10
+ }
11
+ }
12
+ );
13
+ }
14
+ export {
15
+ a as RangeSliderBar
16
+ };
package/es/index88.mjs ADDED
@@ -0,0 +1,61 @@
1
+ import { jsx as L } from "react/jsx-runtime";
2
+ import { getPositionValue as R } from "./index58.mjs";
3
+ import i from "react";
4
+ function x({
5
+ value: a,
6
+ min: n,
7
+ max: r,
8
+ sliderMin: d,
9
+ sliderMax: p,
10
+ step: l,
11
+ direction: f,
12
+ sliderPos: s,
13
+ onUpdate: o,
14
+ getPositionFromValue: h,
15
+ ariaLabel: y
16
+ }) {
17
+ const [w, D] = i.useState(0), E = i.useRef(null);
18
+ i.useEffect(() => {
19
+ s && D(s);
20
+ }, [f, s]);
21
+ const m = (e) => {
22
+ e.stopPropagation(), e.preventDefault();
23
+ }, g = () => {
24
+ document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
25
+ }, u = (e) => {
26
+ e.type === "mousemove" ? m(e) : e.stopPropagation();
27
+ const t = v(e);
28
+ return o && o(t);
29
+ }, c = (e) => {
30
+ document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
31
+ const t = v(e);
32
+ return o && o(t);
33
+ }, v = (e) => R(e, w, l, n, r, d, p, f), k = (e) => {
34
+ let t = a;
35
+ e.key === "ArrowUp" || e.key === "ArrowRight" ? (e.preventDefault(), t += l) : e.key === "ArrowDown" || e.key === "ArrowLeft" ? (e.preventDefault(), t -= l) : e.key === "End" ? (e.preventDefault(), t = r) : e.key === "Home" && (e.preventDefault(), t = n), t >= n && t <= r && o(t);
36
+ };
37
+ return /* @__PURE__ */ L(
38
+ "div",
39
+ {
40
+ className: "a-range-slider__handle",
41
+ tabIndex: 0,
42
+ style: {
43
+ left: h(a) + "px"
44
+ },
45
+ onMouseDown: g,
46
+ onTouchEnd: m,
47
+ onTouchMove: u,
48
+ onKeyDown: k,
49
+ role: "slider",
50
+ "aria-orientation": "horizontal",
51
+ "aria-valuemax": r,
52
+ "aria-valuemin": n,
53
+ "aria-valuenow": a,
54
+ "aria-label": y,
55
+ ref: E
56
+ }
57
+ );
58
+ }
59
+ export {
60
+ x as RangeSliderHandle
61
+ };
package/es/index89.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { formatDistance as o } from "./index227.mjs";
2
- import { formatLong as t } from "./index228.mjs";
3
- import { formatRelative as r } from "./index229.mjs";
4
- import { localize as m } from "./index230.mjs";
5
- import { match as a } from "./index231.mjs";
1
+ import { formatDistance as o } from "./index224.mjs";
2
+ import { formatLong as t } from "./index225.mjs";
3
+ import { formatRelative as r } from "./index226.mjs";
4
+ import { localize as m } from "./index227.mjs";
5
+ import { match as a } from "./index228.mjs";
6
6
  const l = {
7
7
  code: "nl-BE",
8
8
  formatDistance: o,
package/es/index9.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, Fragment as u, jsx as e } from "react/jsx-runtime";
2
- import { renderHTMLLink as o } from "./index59.mjs";
2
+ import { renderHTMLLink as o } from "./index57.mjs";
3
3
  function b({ title: r, items: n = [], renderLinkFunction: l, qa: s }) {
4
4
  const c = () => Array.isArray(n) ? n.map((a) => /* @__PURE__ */ e("li", { children: l ? l(a) : o(a) }, `${a.id}`)) : null, d = () => {
5
5
  if (r && r.label) {
package/es/index90.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { arrow as st, computePosition as rt, offset as ct, flip as lt, shift as ft } from "./index94.mjs";
2
- import { createCoords as m, rectToClientRect as J, round as A, max as E, min as V, floor as D } from "./index95.mjs";
3
- import { getOverflowAncestors as z, isElement as v, getDocumentElement as b, getWindow as O, getFrameElement as U, getComputedStyle as R, isHTMLElement as T, isTopLayer as $, getParentNode as W, isLastTraversableNode as H, isTableElement as ut, isContainingBlock as Q, getContainingBlock as at, getNodeName as _, isOverflowElement as q, getNodeScroll as I, isWebKit as Y } from "./index96.mjs";
1
+ import { arrow as st, computePosition as rt, offset as ct, flip as lt, shift as ft } from "./index109.mjs";
2
+ import { createCoords as m, rectToClientRect as J, round as A, max as E, min as V, floor as D } from "./index110.mjs";
3
+ import { getOverflowAncestors as z, isElement as v, getDocumentElement as b, getWindow as O, getFrameElement as U, getComputedStyle as R, isHTMLElement as T, isTopLayer as $, getParentNode as W, isLastTraversableNode as H, isTableElement as ut, isContainingBlock as Q, getContainingBlock as at, getNodeName as _, isOverflowElement as q, getNodeScroll as I, isWebKit as Y } from "./index111.mjs";
4
4
  function Z(t) {
5
5
  const e = R(t);
6
6
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
package/es/index91.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as p } from "./index92.mjs";
2
- import { __module as i } from "./index93.mjs";
2
+ import { __module as i } from "./index108.mjs";
3
3
  /*!
4
4
  Copyright (c) 2018 Jed Watson.
5
5
  Licensed under the MIT License (MIT), see
package/es/index93.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var s = { exports: {} };
1
+ var e = { exports: {} };
2
2
  export {
3
- s as __module
3
+ e as __module
4
4
  };