@ensi-platform/admin-ui 0.13.2 → 0.14.0

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 (221) hide show
  1. package/dist/Component--pn4mDeS.js +870 -0
  2. package/dist/Component--pn4mDeS.js.map +1 -0
  3. package/dist/{Component-BhZC1r4b.js → Component-BJz78zCJ.js} +2 -2
  4. package/dist/{Component-BhZC1r4b.js.map → Component-BJz78zCJ.js.map} +1 -1
  5. package/dist/{Component-DV6H96-0.js → Component-BbslNbTq.js} +2 -2
  6. package/dist/{Component-DV6H96-0.js.map → Component-BbslNbTq.js.map} +1 -1
  7. package/dist/{Component-B6OSgrmp.js → Component-COgt_U9z.js} +3 -3
  8. package/dist/{Component-B6OSgrmp.js.map → Component-COgt_U9z.js.map} +1 -1
  9. package/dist/{Component-kqMyROjC.js → Component-DHBQ3LMI.js} +2 -2
  10. package/dist/{Component-kqMyROjC.js.map → Component-DHBQ3LMI.js.map} +1 -1
  11. package/dist/{Component-BoAQ166N.js → Component-DrdEP1wD.js} +3 -3
  12. package/dist/{Component-BoAQ166N.js.map → Component-DrdEP1wD.js.map} +1 -1
  13. package/dist/{Component-CMdJyqc-.js → Component-Qhj0uSjq.js} +2 -2
  14. package/dist/{Component-CMdJyqc-.js.map → Component-Qhj0uSjq.js.map} +1 -1
  15. package/dist/{Component-CiwX3wP8.js → Component-Zja2mwzK.js} +2 -2
  16. package/dist/{Component-CiwX3wP8.js.map → Component-Zja2mwzK.js.map} +1 -1
  17. package/dist/{Component-CS-9-L8S.js → Component-_PP1i9V1.js} +3 -3
  18. package/dist/{Component-CS-9-L8S.js.map → Component-_PP1i9V1.js.map} +1 -1
  19. package/dist/{Component-BBzbDcdq.js → Component-yeVZUFid.js} +2 -2
  20. package/dist/{Component-BBzbDcdq.js.map → Component-yeVZUFid.js.map} +1 -1
  21. package/dist/{Search-CS1rsu-f.js → Search-dQa9wT3n.js} +3 -3
  22. package/dist/{Search-CS1rsu-f.js.map → Search-dQa9wT3n.js.map} +1 -1
  23. package/dist/Star-JBCU7DBD.js +28 -0
  24. package/dist/Star-JBCU7DBD.js.map +1 -0
  25. package/dist/action-popup/index.js +2 -2
  26. package/dist/active-filters/index.js +1 -1
  27. package/dist/arrangement-settings/index.js +2 -2
  28. package/dist/assets/Component16.css +1 -1
  29. package/dist/assets/index.css +1 -1
  30. package/dist/assets/index27.css +1 -1
  31. package/dist/assets/index28.css +1 -1
  32. package/dist/assets/index29.css +1 -1
  33. package/dist/assets/index30.css +1 -1
  34. package/dist/assets/index31.css +1 -1
  35. package/dist/assets/index32.css +1 -1
  36. package/dist/assets/index33.css +1 -1
  37. package/dist/assets/index34.css +1 -1
  38. package/dist/assets/index35.css +1 -0
  39. package/dist/autocomplete/index.js +1 -1
  40. package/dist/autocomplete-async/Component.d.ts.map +1 -1
  41. package/dist/autocomplete-async/index.js +98 -92
  42. package/dist/autocomplete-async/index.js.map +1 -1
  43. package/dist/bottom-sheet/index.js +2 -2
  44. package/dist/cascade-menu/index.js +4 -4
  45. package/dist/color-field/index.js +2 -2
  46. package/dist/color-picker/index.js +1 -1
  47. package/dist/combobox/components/Trigger/index.d.ts +1 -0
  48. package/dist/combobox/components/Trigger/index.d.ts.map +1 -1
  49. package/dist/combobox/index.d.ts +1 -1
  50. package/dist/combobox/index.d.ts.map +1 -1
  51. package/dist/combobox/index.js +15 -14
  52. package/dist/copy-button/index.js +1 -1
  53. package/dist/data-table/Component.d.ts +1 -1
  54. package/dist/data-table/index.js +2 -2
  55. package/dist/date-picker/index.js +2 -2
  56. package/dist/date-range-picker/index.js +2 -2
  57. package/dist/drawer/index.js +1 -1
  58. package/dist/dropzone/index.js +2 -2
  59. package/dist/{hooks-Di5rgHTG.js → hooks-BSSTu-2y.js} +3 -2
  60. package/dist/{hooks-Di5rgHTG.js.map → hooks-BSSTu-2y.js.map} +1 -1
  61. package/dist/icons/AlignCenter.d.ts +7 -0
  62. package/dist/icons/AlignCenter.d.ts.map +1 -0
  63. package/dist/icons/AlignJustify.d.ts +7 -0
  64. package/dist/icons/AlignJustify.d.ts.map +1 -0
  65. package/dist/icons/AlignLeft.d.ts +7 -0
  66. package/dist/icons/AlignLeft.d.ts.map +1 -0
  67. package/dist/icons/AlignRight.d.ts +7 -0
  68. package/dist/icons/AlignRight.d.ts.map +1 -0
  69. package/dist/icons/Anchor.d.ts +7 -0
  70. package/dist/icons/Anchor.d.ts.map +1 -0
  71. package/dist/icons/Bold.d.ts +7 -0
  72. package/dist/icons/Bold.d.ts.map +1 -0
  73. package/dist/icons/Code.d.ts +7 -0
  74. package/dist/icons/Code.d.ts.map +1 -0
  75. package/dist/icons/HorizontalRule.d.ts +7 -0
  76. package/dist/icons/HorizontalRule.d.ts.map +1 -0
  77. package/dist/icons/Indent.d.ts +7 -0
  78. package/dist/icons/Indent.d.ts.map +1 -0
  79. package/dist/icons/Italic.d.ts +7 -0
  80. package/dist/icons/Italic.d.ts.map +1 -0
  81. package/dist/icons/Link.d.ts +7 -0
  82. package/dist/icons/Link.d.ts.map +1 -0
  83. package/dist/icons/List.d.ts +7 -0
  84. package/dist/icons/List.d.ts.map +1 -0
  85. package/dist/icons/ListOrdered.d.ts +7 -0
  86. package/dist/icons/ListOrdered.d.ts.map +1 -0
  87. package/dist/icons/Maximize.d.ts +7 -0
  88. package/dist/icons/Maximize.d.ts.map +1 -0
  89. package/dist/icons/Outdent.d.ts +7 -0
  90. package/dist/icons/Outdent.d.ts.map +1 -0
  91. package/dist/icons/Palette.d.ts +7 -0
  92. package/dist/icons/Palette.d.ts.map +1 -0
  93. package/dist/icons/Quote.d.ts +7 -0
  94. package/dist/icons/Quote.d.ts.map +1 -0
  95. package/dist/icons/Redo.d.ts +7 -0
  96. package/dist/icons/Redo.d.ts.map +1 -0
  97. package/dist/icons/Smile.d.ts +7 -0
  98. package/dist/icons/Smile.d.ts.map +1 -0
  99. package/dist/icons/Star.d.ts +7 -0
  100. package/dist/icons/Star.d.ts.map +1 -0
  101. package/dist/icons/Strike.d.ts +7 -0
  102. package/dist/icons/Strike.d.ts.map +1 -0
  103. package/dist/icons/Subscript.d.ts +7 -0
  104. package/dist/icons/Subscript.d.ts.map +1 -0
  105. package/dist/icons/Superscript.d.ts +7 -0
  106. package/dist/icons/Superscript.d.ts.map +1 -0
  107. package/dist/icons/Table.d.ts +7 -0
  108. package/dist/icons/Table.d.ts.map +1 -0
  109. package/dist/icons/Underline.d.ts +7 -0
  110. package/dist/icons/Underline.d.ts.map +1 -0
  111. package/dist/icons/Undo.d.ts +7 -0
  112. package/dist/icons/Undo.d.ts.map +1 -0
  113. package/dist/icons/Video.d.ts +7 -0
  114. package/dist/icons/Video.d.ts.map +1 -0
  115. package/dist/icons/index.d.ts +27 -0
  116. package/dist/icons/index.d.ts.map +1 -1
  117. package/dist/icons/index.js +709 -177
  118. package/dist/icons/index.js.map +1 -1
  119. package/dist/{index-Co6mzXrw.js → index-CYUeRS10.js} +3 -3
  120. package/dist/{index-Co6mzXrw.js.map → index-CYUeRS10.js.map} +1 -1
  121. package/dist/index-Rx06m88a.js +101 -0
  122. package/dist/index-Rx06m88a.js.map +1 -0
  123. package/dist/{index-BAFoUNz-.js → index-o14ps46j.js} +2 -2
  124. package/dist/{index-BAFoUNz-.js.map → index-o14ps46j.js.map} +1 -1
  125. package/dist/input/index.js +1 -1
  126. package/dist/loader/index.js +1 -1
  127. package/dist/mask/index.js +1 -1
  128. package/dist/menu-list/index.js +1 -1
  129. package/dist/{metrics-CaN_sENu.js → metrics-D4vChkd-.js} +2 -2
  130. package/dist/{metrics-CaN_sENu.js.map → metrics-D4vChkd-.js.map} +1 -1
  131. package/dist/modal/index.js +1 -1
  132. package/dist/multi-autocomplete/index.js +1 -1
  133. package/dist/multi-autocomplete-async/index.js +1 -1
  134. package/dist/multi-select/index.js +2 -2
  135. package/dist/number-input/index.js +1 -1
  136. package/dist/number-range/index.js +1 -1
  137. package/dist/password/index.js +2 -2
  138. package/dist/provider/context.d.ts.map +1 -1
  139. package/dist/provider/index.js +2 -2
  140. package/dist/provider/types.d.ts +2 -0
  141. package/dist/provider/types.d.ts.map +1 -1
  142. package/dist/rating/Component.d.ts +5 -0
  143. package/dist/rating/Component.d.ts.map +1 -0
  144. package/dist/rating/FormRating.d.ts +6 -0
  145. package/dist/rating/FormRating.d.ts.map +1 -0
  146. package/dist/rating/components/Star/index.d.ts +14 -0
  147. package/dist/rating/components/Star/index.d.ts.map +1 -0
  148. package/dist/rating/components/Star/theme.d.ts +5 -0
  149. package/dist/rating/components/Star/theme.d.ts.map +1 -0
  150. package/dist/rating/components/Track/index.d.ts +41 -0
  151. package/dist/rating/components/Track/index.d.ts.map +1 -0
  152. package/dist/rating/index.d.ts +4 -0
  153. package/dist/rating/index.d.ts.map +1 -0
  154. package/dist/rating/index.js +361 -0
  155. package/dist/rating/index.js.map +1 -0
  156. package/dist/rating/theme.d.ts +5 -0
  157. package/dist/rating/theme.d.ts.map +1 -0
  158. package/dist/rating/types.d.ts +56 -0
  159. package/dist/rating/types.d.ts.map +1 -0
  160. package/dist/rating/utils.d.ts +11 -0
  161. package/dist/rating/utils.d.ts.map +1 -0
  162. package/dist/select/index.js +1 -1
  163. package/dist/suggest-checklist/index.js +3 -3
  164. package/dist/table/Component.d.ts +3 -3
  165. package/dist/table/components/Cell/index.d.ts +1 -1
  166. package/dist/table/components/Cell/index.d.ts.map +1 -1
  167. package/dist/table/components/Cell/theme.d.ts +1 -0
  168. package/dist/table/components/Cell/theme.d.ts.map +1 -1
  169. package/dist/table/components/CheckboxCell/index.d.ts.map +1 -1
  170. package/dist/table/components/HeaderCell/index.d.ts +1 -1
  171. package/dist/table/components/HeaderCell/index.d.ts.map +1 -1
  172. package/dist/table/components/HeaderCell/theme.d.ts +1 -0
  173. package/dist/table/components/HeaderCell/theme.d.ts.map +1 -1
  174. package/dist/table/components/HeaderCheckboxCell/index.d.ts.map +1 -1
  175. package/dist/table/components/Row/index.d.ts +1 -1
  176. package/dist/table/components/Row/index.d.ts.map +1 -1
  177. package/dist/table/components/Row/types.d.ts +6 -0
  178. package/dist/table/components/Row/types.d.ts.map +1 -1
  179. package/dist/table/components/TableElement/index.d.ts.map +1 -1
  180. package/dist/table/hooks/useTablePin.d.ts +6 -0
  181. package/dist/table/hooks/useTablePin.d.ts.map +1 -0
  182. package/dist/table/index.js +1 -1
  183. package/dist/table/types.d.ts +5 -1
  184. package/dist/table/types.d.ts.map +1 -1
  185. package/dist/table/utils.d.ts +45 -1
  186. package/dist/table/utils.d.ts.map +1 -1
  187. package/dist/tabs/index.js +1 -1
  188. package/dist/tag/index.js +1 -1
  189. package/dist/textarea/index.js +1 -1
  190. package/dist/time-field/index.js +1 -1
  191. package/dist/toast/index.js +2 -2
  192. package/dist/typography/index.js +1 -1
  193. package/dist/{utils-qHAuIhao.js → utils-Dfp1NDWx.js} +3 -3
  194. package/dist/{utils-qHAuIhao.js.map → utils-Dfp1NDWx.js.map} +1 -1
  195. package/dist/vertical-tabs/index.js +1 -1
  196. package/docs/design-language.md +14 -13
  197. package/package.json +5 -1
  198. package/src/autocomplete/docs/Description.md +2 -0
  199. package/src/autocomplete-async/docs/Description.md +1 -1
  200. package/src/badge/docs/cssVariables.ts +3 -3
  201. package/src/bottom-sheet/docs/cssVariables.ts +1 -1
  202. package/src/cascade-menu/docs/cssVariables.ts +7 -7
  203. package/src/data-table/docs/Description.md +2 -1
  204. package/src/ds/tokens/docs/Description.md +2 -1
  205. package/src/link/docs/cssVariables.ts +1 -1
  206. package/src/provider/docs/cssVariables.ts +1 -1
  207. package/src/provider/types.ts +2 -0
  208. package/src/rating/docs/Description.md +47 -0
  209. package/src/rating/docs/Example.md +9 -0
  210. package/src/rating/docs/cssVariables.ts +14 -0
  211. package/src/rating/types.ts +69 -0
  212. package/src/table/docs/Description.md +10 -8
  213. package/src/table/docs/Example.md +22 -5
  214. package/src/table/docs/cssVariables.ts +8 -3
  215. package/src/table/types.ts +6 -1
  216. package/src/toast/docs/cssVariables.ts +4 -4
  217. package/src/tooltip/docs/cssVariables.ts +2 -2
  218. package/dist/Component-DmKmX7so.js +0 -712
  219. package/dist/Component-DmKmX7so.js.map +0 -1
  220. package/dist/index-BHUJOcwj.js +0 -85
  221. package/dist/index-BHUJOcwj.js.map +0 -1
@@ -0,0 +1,870 @@
1
+ import { jsxs as k, jsx as r, Fragment as Ie } from "react/jsx-runtime";
2
+ import { useContext as te, createContext as se, useMemo as O, useState as Ee, useId as $e, useLayoutEffect as G, useRef as Pe } from "react";
3
+ import p from "classnames";
4
+ import { s as v } from "./index-h8z54aFR.js";
5
+ import { B as ae } from "./Component-DlBYWjUa.js";
6
+ import { M as Le, F as He, S as oe, a as le, C as Oe } from "./SortDescending-DziKhSYN.js";
7
+ import { P as E } from "./Component-CQyBQxAb.js";
8
+ import { u as w } from "./hooks-BSSTu-2y.js";
9
+ import { cva as V } from "class-variance-authority";
10
+ import { C as ne } from "./Component-uzbYiLD9.js";
11
+ import { C as re } from "./ChevronDown-Dzp7mD66.js";
12
+ import { typographyStyles as j } from "./typography/index.js";
13
+ import { S as we } from "./Component-_PP1i9V1.js";
14
+ import { C as Ae } from "./ChevronRight-BsaiJImC.js";
15
+ import './assets/Component16.css';const ie = se(void 0), U = () => {
16
+ const e = te(ie);
17
+ if (!e)
18
+ throw new Error("This component must be used within a <Table> component");
19
+ return e;
20
+ }, We = "aub_styles-module_root_3dc5f", Re = "aub_styles-module_menu_6e4e6", Me = "aub_styles-module_menuItem_f71c0", ze = "aub_styles-module_overflowTrigger_7c588", Be = "aub_styles-module_visuallyHidden_0e593", $ = {
21
+ root: We,
22
+ menu: Re,
23
+ menuItem: Me,
24
+ overflowTrigger: ze,
25
+ visuallyHidden: Be
26
+ }, K = ({
27
+ item: e,
28
+ size: t,
29
+ className: s
30
+ }) => /* @__PURE__ */ r(
31
+ ae,
32
+ {
33
+ type: "button",
34
+ size: t === "lg" ? "md" : "sm",
35
+ variant: e.danger ? "danger" : "secondary",
36
+ disabled: e.disabled,
37
+ icon: e.icon,
38
+ className: s,
39
+ onClick: (a) => {
40
+ a.stopPropagation(), e.onClick?.();
41
+ },
42
+ children: e.text
43
+ }
44
+ ), ce = ({
45
+ items: e,
46
+ visibleCount: t = 1,
47
+ overflowLabel: s,
48
+ dataTestId: a,
49
+ className: l
50
+ }) => {
51
+ const { moreActions: n } = w(), i = s ?? n, { size: u } = U(), m = e.slice(0, Math.max(0, t)), b = e.slice(Math.max(0, t));
52
+ return /* @__PURE__ */ k("div", { className: p($.root, l), "data-test-id": a, children: [
53
+ m.map((c) => /* @__PURE__ */ r(K, { item: c, size: u }, c.key ?? String(c.text))),
54
+ b.length > 0 ? /* @__PURE__ */ k(E, { children: [
55
+ /* @__PURE__ */ r(E.Trigger, { children: /* @__PURE__ */ r(
56
+ ae,
57
+ {
58
+ type: "button",
59
+ size: u === "lg" ? "md" : "sm",
60
+ variant: "secondary",
61
+ "aria-label": i,
62
+ icon: { Component: Le },
63
+ className: $.overflowTrigger,
64
+ onClick: (c) => c.stopPropagation(),
65
+ children: /* @__PURE__ */ r("span", { className: $.visuallyHidden, children: i })
66
+ }
67
+ ) }),
68
+ /* @__PURE__ */ r(E.Content, { placement: "bottom end", children: /* @__PURE__ */ r("div", { className: $.menu, role: "menu", children: b.map((c) => /* @__PURE__ */ r(
69
+ K,
70
+ {
71
+ item: c,
72
+ size: u,
73
+ className: $.menuItem
74
+ },
75
+ c.key ?? String(c.text)
76
+ )) }) })
77
+ ] }) : null
78
+ ] });
79
+ };
80
+ ce.displayName = "Table.ActionBar";
81
+ const Fe = "aub_styles-module_root_dd92c", Ve = {
82
+ root: Fe
83
+ }, de = v(({ ref: e, children: t, className: s, dataTestId: a, ...l }) => /* @__PURE__ */ r("tbody", { ...l, ref: e, className: p(Ve.root, s), "data-test-id": a, children: t }));
84
+ de.displayName = "Table.Body";
85
+ const je = "aub_styles-module_root_9238b", Ue = "aub_styles-module_numeric_cb295", Ye = "aub_styles-module_alignStart_1287f", qe = "aub_styles-module_alignEnd_8f2d8", De = "aub_styles-module_alignCenter_c83e7", Xe = "aub_styles-module_noWrap_80a17", Ge = "aub_styles-module_utility_f2ad7", Ke = "aub_styles-module_pin_fa1ec", S = {
86
+ root: je,
87
+ numeric: Ue,
88
+ alignStart: Ye,
89
+ alignEnd: qe,
90
+ alignCenter: De,
91
+ noWrap: Xe,
92
+ utility: Ge,
93
+ pin: Ke
94
+ }, Je = V(S.root, {
95
+ variants: {
96
+ numeric: {
97
+ true: S.numeric,
98
+ false: null
99
+ },
100
+ align: {
101
+ start: S.alignStart,
102
+ end: S.alignEnd,
103
+ center: S.alignCenter
104
+ },
105
+ noWrap: {
106
+ true: S.noWrap,
107
+ false: null
108
+ },
109
+ utility: {
110
+ true: S.utility,
111
+ false: null
112
+ },
113
+ pin: {
114
+ true: S.pin,
115
+ false: null
116
+ }
117
+ }
118
+ }), Y = v(
119
+ ({
120
+ ref: e,
121
+ children: t,
122
+ numeric: s = !1,
123
+ align: a,
124
+ noWrap: l = !1,
125
+ utility: n = !1,
126
+ pin: i,
127
+ width: u,
128
+ colSpan: m,
129
+ className: b,
130
+ dataTestId: c,
131
+ style: d,
132
+ ...o
133
+ }) => /* @__PURE__ */ r(
134
+ "td",
135
+ {
136
+ ...o,
137
+ ref: e,
138
+ colSpan: m,
139
+ className: p(Je({ numeric: s, align: a, noWrap: l, utility: n, pin: i != null }), b),
140
+ style: { width: u, minWidth: u, ...d },
141
+ "data-numeric": s || void 0,
142
+ "data-utility": n || void 0,
143
+ "data-pin": i,
144
+ "data-test-id": c,
145
+ children: t
146
+ }
147
+ )
148
+ );
149
+ Y.displayName = "Table.Cell";
150
+ const Qe = "aub_styles-module_root_e0d29", Ze = {
151
+ root: Qe
152
+ }, ue = ({
153
+ checked: e,
154
+ indeterminate: t = !1,
155
+ onChange: s,
156
+ "aria-label": a,
157
+ className: l,
158
+ dataTestId: n,
159
+ onClick: i,
160
+ children: u,
161
+ ...m
162
+ }) => {
163
+ const { size: b } = U(), c = (d) => {
164
+ d.stopPropagation(), i?.(d);
165
+ };
166
+ return /* @__PURE__ */ r(
167
+ Y,
168
+ {
169
+ ...m,
170
+ utility: !0,
171
+ pin: "start",
172
+ className: p(Ze.root, l),
173
+ dataTestId: n,
174
+ onClick: c,
175
+ children: /* @__PURE__ */ r(
176
+ ne,
177
+ {
178
+ size: b,
179
+ checked: e,
180
+ indeterminate: t,
181
+ onChange: s,
182
+ "aria-label": a,
183
+ children: u
184
+ }
185
+ )
186
+ }
187
+ );
188
+ };
189
+ ue.displayName = "Table.CheckboxCell";
190
+ const et = "aub_styles-module_root_0f9dc", tt = {
191
+ root: et
192
+ }, me = v(
193
+ ({ ref: e, children: t, sticky: s = !0, className: a, dataTestId: l, ...n }) => /* @__PURE__ */ r(
194
+ "div",
195
+ {
196
+ ...n,
197
+ ref: e,
198
+ className: p(tt.root, a),
199
+ "data-sticky": s || void 0,
200
+ "data-test-id": l,
201
+ children: t
202
+ }
203
+ )
204
+ );
205
+ me.displayName = "Table.Footer";
206
+ const be = se({ sticky: !1 }), st = be.Provider, at = () => te(be).sticky, ot = "aub_styles-module_root_d320c", lt = "aub_styles-module_sticky_3efca", J = {
207
+ root: ot,
208
+ sticky: lt
209
+ }, fe = v(
210
+ ({ ref: e, children: t, sticky: s = !1, className: a, dataTestId: l, ...n }) => {
211
+ const i = O(() => ({ sticky: s }), [s]);
212
+ return /* @__PURE__ */ r(st, { value: i, children: /* @__PURE__ */ r(
213
+ "thead",
214
+ {
215
+ ...n,
216
+ ref: e,
217
+ className: p(J.root, s && J.sticky, a),
218
+ "data-sticky": s || void 0,
219
+ "data-test-id": l,
220
+ children: t
221
+ }
222
+ ) });
223
+ }
224
+ );
225
+ fe.displayName = "Table.Header";
226
+ const nt = '[role="listbox"], [role="dialog"]', rt = (e) => !!e.closest(nt), it = (e) => {
227
+ if (e === void 0) return "asc";
228
+ if (e === "asc") return "desc";
229
+ }, ct = 7, dt = (e, t, s) => e === "any" ? t : e === "center" ? s : s - 1, ut = (e, t, s = ct) => {
230
+ if (t < 1) return [];
231
+ const a = Math.ceil(s / 2), n = t > s ? e < a ? "start" : e > t - a + 1 ? "end" : "center" : "any", i = dt(n, t, s), u = (m) => n === "any" ? m : m === 1 ? 1 : m === i ? t : m === 2 && n !== "start" || m === i - 1 && n !== "end" ? null : n === "center" ? e + m - a : n === "end" ? t + m - i : m;
232
+ return Array.from({ length: i }, (m, b) => {
233
+ const c = u(b + 1);
234
+ return c === null ? "ellipsis" : c;
235
+ });
236
+ }, P = (e, t, s) => {
237
+ const a = e.filter((n) => n.edge === t), l = s === "last" ? a.at(-1) : a[0];
238
+ l && (l.seam = !0);
239
+ }, mt = ({
240
+ columns: e,
241
+ rows: t,
242
+ stickyHeaderHeight: s
243
+ }) => {
244
+ const a = [...e].sort((d, o) => d.cellIndex - o.cellIndex), l = [];
245
+ let n = 0;
246
+ a.forEach((d) => {
247
+ d.pin === "start" && (l.push({ index: d.cellIndex, edge: "start", offset: n, seam: !1 }), n += d.width);
248
+ });
249
+ let i = 0;
250
+ [...a].reverse().forEach((d) => {
251
+ d.pin === "end" && (l.push({ index: d.cellIndex, edge: "end", offset: i, seam: !1 }), i += d.width);
252
+ }), l.sort((d, o) => d.index - o.index), P(l, "start", "last"), P(l, "end", "first");
253
+ const u = [], m = s > 0 ? 1 : 0;
254
+ let b = s - m;
255
+ t.forEach((d, o) => {
256
+ d.pin === "top" && (u.push({ index: o, edge: "top", offset: b, seam: !1 }), b += d.height - m);
257
+ });
258
+ let c = 0;
259
+ return [...t].reverse().forEach((d, o) => {
260
+ if (d.pin !== "bottom") return;
261
+ const _ = t.length - 1 - o;
262
+ u.push({ index: _, edge: "bottom", offset: c, seam: !1 }), c += d.height;
263
+ }), u.sort((d, o) => d.index - o.index), P(u, "top", "last"), P(u, "bottom", "first"), { columns: l, rows: u };
264
+ }, L = 1, bt = (e, t, s) => s === "negative" ? t + e : s === "positive-descending" ? t - e : e, ft = ({
265
+ scrollLeft: e,
266
+ scrollTop: t,
267
+ scrollWidth: s,
268
+ scrollHeight: a,
269
+ clientWidth: l,
270
+ clientHeight: n,
271
+ rtlScroll: i = "ltr"
272
+ }) => {
273
+ const u = Math.max(0, s - l), m = Math.max(0, a - n), b = bt(e, u, i), c = [];
274
+ return b > L && c.push("start"), u - b > L && c.push("end"), t > L && c.push("top"), m - t > L && c.push("bottom"), c;
275
+ }, _t = "aub_styles-module_trigger_e351e", pt = "aub_styles-module_triggerLabel_e57b8", yt = "aub_styles-module_sortIcon_0a409", ht = "aub_styles-module_filterIcon_ad45e", gt = "aub_styles-module_sortMark_e22c1", vt = "aub_styles-module_chevron_8c778", Nt = "aub_styles-module_panel_b14cb", kt = "aub_styles-module_sortList_f8a4a", Ct = "aub_styles-module_sortItem_60ebf", Tt = "aub_styles-module_divider_a4798", h = {
276
+ trigger: _t,
277
+ triggerLabel: pt,
278
+ sortIcon: yt,
279
+ filterIcon: ht,
280
+ sortMark: gt,
281
+ chevron: vt,
282
+ panel: Nt,
283
+ sortList: kt,
284
+ sortItem: Ct,
285
+ divider: Tt
286
+ }, St = (e) => !rt(e), xt = [
287
+ { direction: "asc", Icon: oe },
288
+ { direction: "desc", Icon: le }
289
+ ], _e = ({
290
+ children: e,
291
+ sortable: t,
292
+ sortDirection: s,
293
+ onSort: a,
294
+ filter: l,
295
+ filterActive: n
296
+ }) => {
297
+ const { sortAscending: i, sortDescending: u } = w(), [m, b] = Ee(!1), c = { asc: i, desc: u };
298
+ return /* @__PURE__ */ k(E, { isOpen: m, onOpenChange: b, children: [
299
+ /* @__PURE__ */ r(E.Trigger, { children: /* @__PURE__ */ k("button", { type: "button", className: h.trigger, "aria-haspopup": "dialog", "data-open": m || void 0, children: [
300
+ /* @__PURE__ */ r("span", { className: h.triggerLabel, children: e }),
301
+ n ? /* @__PURE__ */ r(He, { className: h.filterIcon, "data-active": !0, "aria-hidden": !0 }) : null,
302
+ s === "asc" ? /* @__PURE__ */ r(oe, { className: h.sortMark, "data-sort-mark": "asc", "aria-hidden": !0 }) : null,
303
+ s === "desc" ? /* @__PURE__ */ r(le, { className: h.sortMark, "data-sort-mark": "desc", "aria-hidden": !0 }) : null,
304
+ !n && s == null ? /* @__PURE__ */ r(re, { className: h.chevron, "data-trigger-chevron": !0, "aria-hidden": !0 }) : null
305
+ ] }) }),
306
+ /* @__PURE__ */ k(
307
+ E.Content,
308
+ {
309
+ className: h.panel,
310
+ placement: "bottom start",
311
+ shouldCloseOnInteractOutside: St,
312
+ children: [
313
+ l,
314
+ t ? /* @__PURE__ */ k(Ie, { children: [
315
+ /* @__PURE__ */ r("div", { className: h.divider }),
316
+ /* @__PURE__ */ r("div", { className: h.sortList, children: xt.map(({ direction: d, Icon: o }) => /* @__PURE__ */ k(
317
+ "button",
318
+ {
319
+ type: "button",
320
+ className: h.sortItem,
321
+ onClick: () => a?.(d),
322
+ children: [
323
+ /* @__PURE__ */ r("span", { children: c[d] }),
324
+ /* @__PURE__ */ r(o, { className: h.sortIcon, "aria-hidden": !0 })
325
+ ]
326
+ },
327
+ d
328
+ )) })
329
+ ] }) : null
330
+ ]
331
+ }
332
+ )
333
+ ] });
334
+ };
335
+ _e.displayName = "Table.HeaderFilter";
336
+ const It = "aub_styles-module_root_25792", Et = "aub_styles-module_label_d7503", $t = "aub_styles-module_icon_a73d0", Pt = "aub_styles-module_asc_29781", H = {
337
+ root: It,
338
+ label: Et,
339
+ icon: $t,
340
+ asc: Pt
341
+ }, q = ({
342
+ sortDirection: e,
343
+ onClick: t,
344
+ dataTestId: s,
345
+ className: a,
346
+ children: l
347
+ }) => /* @__PURE__ */ k(
348
+ "button",
349
+ {
350
+ type: "button",
351
+ className: p(H.root, a),
352
+ onClick: t,
353
+ "data-sorted": e != null || void 0,
354
+ "data-sort-direction": e,
355
+ "data-test-id": s,
356
+ children: [
357
+ /* @__PURE__ */ r("span", { className: H.label, children: l }),
358
+ /* @__PURE__ */ r(re, { className: p(H.icon, e === "asc" && H.asc), "aria-hidden": !0 })
359
+ ]
360
+ }
361
+ );
362
+ q.displayName = "Table.SortIndicator";
363
+ const Lt = "aub_styles-module_root_ab198", Ht = "aub_styles-module_sticky_5f518", Ot = "aub_styles-module_pin_613e5", wt = "aub_styles-module_numeric_c623f", At = "aub_styles-module_alignStart_874f7", Wt = "aub_styles-module_alignEnd_b80f1", Rt = "aub_styles-module_alignCenter_0eb45", Mt = "aub_styles-module_noWrap_b3b77", zt = "aub_styles-module_utility_d7a98", Bt = "aub_styles-module_content_cfe0e", g = {
364
+ root: Lt,
365
+ sticky: Ht,
366
+ pin: Ot,
367
+ numeric: wt,
368
+ alignStart: At,
369
+ alignEnd: Wt,
370
+ alignCenter: Rt,
371
+ noWrap: Mt,
372
+ utility: zt,
373
+ content: Bt
374
+ }, Ft = V(g.root, {
375
+ variants: {
376
+ numeric: {
377
+ true: g.numeric,
378
+ false: null
379
+ },
380
+ align: {
381
+ start: g.alignStart,
382
+ end: g.alignEnd,
383
+ center: g.alignCenter
384
+ },
385
+ noWrap: {
386
+ true: g.noWrap,
387
+ false: null
388
+ },
389
+ utility: {
390
+ true: g.utility,
391
+ false: null
392
+ },
393
+ sticky: {
394
+ true: g.sticky,
395
+ false: null
396
+ },
397
+ pin: {
398
+ true: g.pin,
399
+ false: null
400
+ }
401
+ }
402
+ }), Vt = (e, t) => {
403
+ if (e)
404
+ return t === "asc" ? "ascending" : t === "desc" ? "descending" : "none";
405
+ }, D = v(
406
+ ({
407
+ ref: e,
408
+ children: t,
409
+ numeric: s = !1,
410
+ align: a,
411
+ noWrap: l = !1,
412
+ utility: n = !1,
413
+ pin: i,
414
+ width: u,
415
+ colSpan: m,
416
+ sortable: b = !1,
417
+ sortDirection: c,
418
+ onSort: d,
419
+ filter: o,
420
+ filterActive: _ = !1,
421
+ sticky: f,
422
+ className: y,
423
+ dataTestId: T,
424
+ style: A,
425
+ scope: W = "col",
426
+ ...R
427
+ }) => {
428
+ const M = at(), z = f ?? M;
429
+ let x = t;
430
+ return b && o == null && (x = /* @__PURE__ */ r("span", { className: g.content, children: /* @__PURE__ */ r(
431
+ q,
432
+ {
433
+ sortDirection: c,
434
+ onClick: () => d?.(it(c)),
435
+ children: t
436
+ }
437
+ ) })), o != null && (x = /* @__PURE__ */ r("span", { className: g.content, children: /* @__PURE__ */ r(
438
+ _e,
439
+ {
440
+ sortable: b,
441
+ sortDirection: c,
442
+ onSort: d,
443
+ filter: o,
444
+ filterActive: _,
445
+ children: t
446
+ }
447
+ ) })), /* @__PURE__ */ r(
448
+ "th",
449
+ {
450
+ ...R,
451
+ ref: e,
452
+ scope: W,
453
+ colSpan: m,
454
+ className: p(
455
+ Ft({ numeric: s, align: a, noWrap: l, utility: n, sticky: z, pin: i != null }),
456
+ y
457
+ ),
458
+ style: { width: u, minWidth: u, ...A },
459
+ "aria-sort": Vt(b, c),
460
+ "data-numeric": s || void 0,
461
+ "data-utility": n || void 0,
462
+ "data-pin": i,
463
+ "data-sortable": b || void 0,
464
+ "data-filter": o != null || void 0,
465
+ "data-test-id": T,
466
+ children: x
467
+ }
468
+ );
469
+ }
470
+ );
471
+ D.displayName = "Table.HeaderCell";
472
+ const jt = "aub_styles-module_root_78429", Ut = {
473
+ root: jt
474
+ }, pe = ({
475
+ checked: e,
476
+ indeterminate: t = !1,
477
+ onChange: s,
478
+ "aria-label": a,
479
+ className: l,
480
+ dataTestId: n,
481
+ onClick: i,
482
+ children: u,
483
+ ...m
484
+ }) => {
485
+ const { size: b } = U(), c = (d) => {
486
+ d.stopPropagation(), i?.(d);
487
+ };
488
+ return /* @__PURE__ */ r(
489
+ D,
490
+ {
491
+ ...m,
492
+ utility: !0,
493
+ pin: "start",
494
+ className: p(Ut.root, l),
495
+ dataTestId: n,
496
+ onClick: c,
497
+ children: /* @__PURE__ */ r(
498
+ ne,
499
+ {
500
+ size: b,
501
+ checked: e,
502
+ indeterminate: t,
503
+ onChange: s,
504
+ "aria-label": a,
505
+ children: u
506
+ }
507
+ )
508
+ }
509
+ );
510
+ };
511
+ pe.displayName = "Table.HeaderCheckboxCell";
512
+ const Yt = "aub_styles-module_root_6aae8", qt = "aub_styles-module_label_2bcb7", Dt = "aub_styles-module_select_a3d31", B = {
513
+ root: Yt,
514
+ label: qt,
515
+ select: Dt
516
+ }, Xt = [5, 10, 25, 50, 100], ye = v(
517
+ ({
518
+ ref: e,
519
+ value: t,
520
+ onChange: s,
521
+ options: a = Xt,
522
+ label: l,
523
+ disabled: n = !1,
524
+ className: i,
525
+ dataTestId: u,
526
+ ...m
527
+ }) => {
528
+ const { pageSize: b } = w(), c = l ?? b, d = $e(), o = O(
529
+ () => a.map((f) => ({ value: f, label: String(f) })),
530
+ [a]
531
+ ), _ = (f) => {
532
+ f != null && s(typeof f == "number" ? f : Number(f));
533
+ };
534
+ return /* @__PURE__ */ k(
535
+ "div",
536
+ {
537
+ ...m,
538
+ ref: e,
539
+ className: p(B.root, j.bodyS, i),
540
+ "data-test-id": u,
541
+ children: [
542
+ /* @__PURE__ */ r("span", { id: d, className: B.label, children: c }),
543
+ /* @__PURE__ */ r(
544
+ we,
545
+ {
546
+ className: B.select,
547
+ size: "sm",
548
+ block: !1,
549
+ clear: !1,
550
+ disabled: n,
551
+ value: t,
552
+ options: o,
553
+ onChange: _,
554
+ "aria-labelledby": d
555
+ }
556
+ )
557
+ ]
558
+ }
559
+ );
560
+ }
561
+ );
562
+ ye.displayName = "Table.PageSize";
563
+ const Gt = "aub_styles-module_root_b4bb7", Kt = "aub_styles-module_range_def38", Jt = "aub_styles-module_list_dd1ba", Qt = "aub_styles-module_item_817c3", Zt = "aub_styles-module_ellipsis_45def", es = "aub_styles-module_control_216a4", ts = "aub_styles-module_chevron_903a0", N = {
564
+ root: Gt,
565
+ range: Kt,
566
+ list: Jt,
567
+ item: Qt,
568
+ ellipsis: Zt,
569
+ control: es,
570
+ chevron: ts
571
+ }, ss = (e, t, s, a) => e.replaceAll("{from}", String(t)).replaceAll("{to}", String(s)).replaceAll("{total}", String(a)), as = (e, t) => e.replaceAll("{page}", String(t)), os = (e, t, s, a, l, n) => e === "ellipsis" ? /* @__PURE__ */ r("li", { className: N.ellipsis, "aria-hidden": !0, children: "…" }, n) : e === t ? /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r("span", { className: N.item, "aria-current": "page", children: e }) }, e) : /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
572
+ "button",
573
+ {
574
+ type: "button",
575
+ className: N.item,
576
+ "aria-label": as(l, e),
577
+ disabled: s,
578
+ onClick: () => a(e),
579
+ children: e
580
+ }
581
+ ) }, e), he = v(
582
+ ({
583
+ ref: e,
584
+ page: t,
585
+ pageCount: s,
586
+ onPageChange: a,
587
+ from: l,
588
+ to: n,
589
+ total: i,
590
+ rangeLabel: u,
591
+ prevLabel: m,
592
+ nextLabel: b,
593
+ disabled: c = !1,
594
+ className: d,
595
+ dataTestId: o,
596
+ "aria-label": _ = "Pagination",
597
+ ...f
598
+ }) => {
599
+ const { paginationPrev: y, paginationNext: T, paginationPage: A, paginationRange: W } = w(), R = m ?? y, M = b ?? T, z = u ?? ss(W, l, n, i), x = O(() => s >= 2 ? ut(t, s) : [], [t, s]), Ce = c || t <= 1 || s < 1, Te = c || t >= s || s < 1;
600
+ return /* @__PURE__ */ k(
601
+ "nav",
602
+ {
603
+ ...f,
604
+ ref: e,
605
+ className: p(N.root, j.bodyS, d),
606
+ "aria-label": _,
607
+ "data-test-id": o,
608
+ children: [
609
+ /* @__PURE__ */ r("span", { className: N.range, children: z }),
610
+ /* @__PURE__ */ r(
611
+ "button",
612
+ {
613
+ type: "button",
614
+ className: N.control,
615
+ "aria-label": R,
616
+ disabled: Ce,
617
+ onClick: () => a(t - 1),
618
+ children: /* @__PURE__ */ r(Oe, { className: N.chevron })
619
+ }
620
+ ),
621
+ x.length > 0 ? /* @__PURE__ */ r("ul", { className: N.list, children: x.map(
622
+ (Se, xe) => os(Se, t, c, a, A, `ellipsis-${xe}`)
623
+ ) }) : null,
624
+ /* @__PURE__ */ r(
625
+ "button",
626
+ {
627
+ type: "button",
628
+ className: N.control,
629
+ "aria-label": M,
630
+ disabled: Te,
631
+ onClick: () => a(t + 1),
632
+ children: /* @__PURE__ */ r(Ae, { className: N.chevron })
633
+ }
634
+ )
635
+ ]
636
+ }
637
+ );
638
+ }
639
+ );
640
+ he.displayName = "Table.Pagination";
641
+ const ls = "aub_styles-module_root_880a9", ns = {
642
+ root: ls
643
+ }, rs = 'button, a, input, textarea, select, label, [role="button"]', ge = v(
644
+ ({
645
+ ref: e,
646
+ children: t,
647
+ checked: s = !1,
648
+ active: a = !1,
649
+ disabled: l = !1,
650
+ bottomBorder: n = !0,
651
+ pin: i,
652
+ onClick: u,
653
+ className: m,
654
+ dataTestId: b,
655
+ tabIndex: c,
656
+ ...d
657
+ }) => {
658
+ const o = u != null && !l;
659
+ return /* @__PURE__ */ r(
660
+ "tr",
661
+ {
662
+ ...d,
663
+ ref: e,
664
+ onClick: l ? void 0 : (f) => {
665
+ if (u?.(f), f.defaultPrevented || f.currentTarget.closest("tbody") == null) return;
666
+ const { target: y } = f;
667
+ !(y instanceof Element) || y.closest(rs) || f.currentTarget.querySelector('input[type="checkbox"]:not(:disabled)')?.click();
668
+ },
669
+ tabIndex: o ? c ?? 0 : c,
670
+ className: p(ns.root, m),
671
+ "data-checked": s || void 0,
672
+ "data-active": a || void 0,
673
+ "data-disabled": l || void 0,
674
+ "data-pin": i,
675
+ "data-bottom-border": n ? void 0 : "false",
676
+ "data-clickable": o || void 0,
677
+ "aria-disabled": l || void 0,
678
+ "data-test-id": b,
679
+ children: t
680
+ }
681
+ );
682
+ }
683
+ );
684
+ ge.displayName = "Table.Row";
685
+ const is = "aub_styles-module_root_4a623", cs = "aub_styles-module_scroll_fd039", ds = "aub_styles-module_block_5507d", us = "aub_styles-module_table_4f242", ms = "aub_styles-module_hasChecked_5267f", bs = "aub_styles-module_zebra_6672f", fs = "aub_styles-module_sm_8a2a2", _s = "aub_styles-module_md_72133", ps = "aub_styles-module_lg_df04a", C = {
686
+ root: is,
687
+ scroll: cs,
688
+ block: ds,
689
+ table: us,
690
+ hasChecked: ms,
691
+ zebra: bs,
692
+ sm: fs,
693
+ md: _s,
694
+ lg: ps
695
+ }, ys = V(C.root, {
696
+ variants: {
697
+ size: {
698
+ sm: C.sm,
699
+ md: C.md,
700
+ lg: C.lg
701
+ },
702
+ block: {
703
+ true: C.block,
704
+ false: null
705
+ },
706
+ hasChecked: {
707
+ true: C.hasChecked,
708
+ false: null
709
+ },
710
+ zebra: {
711
+ true: C.zebra,
712
+ false: null
713
+ }
714
+ },
715
+ defaultVariants: {
716
+ size: "md",
717
+ block: !0,
718
+ hasChecked: !1,
719
+ zebra: !1
720
+ }
721
+ }), hs = C.scroll, gs = p(C.table, j.bodyS), ve = v(({ ref: e, children: t, className: s, dataTestId: a, ...l }) => /* @__PURE__ */ r("div", { ...l, ref: e, className: p(hs, s), "data-test-id": a, children: t }));
722
+ ve.displayName = "Table.Scroll";
723
+ const Q = (e) => e === "start" || e === "end", vs = (e) => e === "top" || e === "bottom", Z = (e) => e === "auto" || e === "scroll" || e === "overlay";
724
+ let I;
725
+ const Ns = () => {
726
+ if (I) return I;
727
+ const e = document.createElement("div"), t = document.createElement("div");
728
+ return e.dir = "rtl", e.style.width = "100px", e.style.height = "1px", e.style.overflow = "scroll", e.style.position = "absolute", e.style.top = "-1000px", t.style.width = "200px", t.style.height = "1px", e.append(t), document.body.append(e), e.scrollLeft > 0 ? (I = "positive-descending", e.remove(), I) : (e.scrollLeft = 1, I = e.scrollLeft === 0 ? "negative" : "positive-ascending", e.remove(), I);
729
+ }, X = (e) => {
730
+ if (!e) return null;
731
+ const t = getComputedStyle(e);
732
+ return Z(t.overflowX) || Z(t.overflowY) ? e : X(e.parentElement);
733
+ }, F = (e) => {
734
+ const t = X(e.parentElement);
735
+ if (!t) return;
736
+ const s = getComputedStyle(t).direction === "rtl" ? Ns() : "ltr", a = ft({
737
+ scrollLeft: t.scrollLeft,
738
+ scrollTop: t.scrollTop,
739
+ scrollWidth: t.scrollWidth,
740
+ scrollHeight: t.scrollHeight,
741
+ clientWidth: t.clientWidth,
742
+ clientHeight: t.clientHeight,
743
+ rtlScroll: s
744
+ });
745
+ if (a.length === 0) {
746
+ t.removeAttribute("data-pin-stuck");
747
+ return;
748
+ }
749
+ t.dataset.pinStuck = a.join(" ");
750
+ }, ks = (e) => {
751
+ e.querySelectorAll("th, td").forEach((t) => {
752
+ t.style.left = "", t.style.right = "", t.style.top = "", t.style.bottom = "", t.removeAttribute("data-pin-seam");
753
+ });
754
+ }, ee = (e) => {
755
+ ks(e);
756
+ const t = e.tHead ? [...e.tHead.rows].flatMap((o) => [...o.cells]) : [], s = [...e.tBodies].flatMap((o) => [...o.rows]), a = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
757
+ t.forEach((o) => {
758
+ a.set(o.cellIndex, o.offsetWidth), Q(o.dataset.pin) && l.set(o.cellIndex, o.dataset.pin);
759
+ }), s.forEach((o) => {
760
+ [...o.cells].forEach((_) => {
761
+ a.has(_.cellIndex) || a.set(_.cellIndex, _.offsetWidth), Q(_.dataset.pin) && !l.has(_.cellIndex) && l.set(_.cellIndex, _.dataset.pin);
762
+ });
763
+ });
764
+ const n = [...l.entries()].map(([o, _]) => ({
765
+ cellIndex: o,
766
+ pin: _,
767
+ width: a.get(o) ?? 0
768
+ })), i = s.map((o) => ({
769
+ pin: vs(o.dataset.pin) ? o.dataset.pin : void 0,
770
+ height: o.offsetHeight
771
+ })), u = e.tHead?.hasAttribute("data-sticky") ? e.tHead.offsetHeight : 0, m = mt({ columns: n, rows: i, stickyHeaderHeight: u }), b = new Map(m.columns.map((o) => [o.index, o])), c = new Map(m.rows.map((o) => [o.index, o])), d = (o, _) => {
772
+ const f = b.get(o.cellIndex), y = f != null && o.dataset.pin === f.edge;
773
+ y && f.edge === "start" && (o.style.left = `${f.offset}px`), y && f.edge === "end" && (o.style.right = `${f.offset}px`), _?.edge === "top" && (o.style.top = `${_.offset}px`), _?.edge === "bottom" && (o.style.bottom = `${_.offset}px`);
774
+ const T = [];
775
+ y && f.seam && T.push(f.edge), _?.seam && T.push(_.edge), T.length > 0 && (o.dataset.pinSeam = T.join(" "));
776
+ };
777
+ t.forEach((o) => d(o, void 0)), s.forEach((o, _) => {
778
+ const f = c.get(_);
779
+ [...o.cells].forEach((y) => d(y, f));
780
+ });
781
+ }, Cs = (e) => {
782
+ G(() => {
783
+ const t = e.current;
784
+ t && (ee(t), F(t));
785
+ }), G(() => {
786
+ const t = e.current;
787
+ if (!t || typeof ResizeObserver > "u") return;
788
+ const s = X(t.parentElement), a = () => {
789
+ const i = e.current;
790
+ i && (ee(i), F(i));
791
+ }, l = () => {
792
+ const i = e.current;
793
+ i && F(i);
794
+ }, n = new ResizeObserver(a);
795
+ return n.observe(t), s && (n.observe(s), s.addEventListener("scroll", l, { passive: !0 })), () => {
796
+ n.disconnect(), s?.removeEventListener("scroll", l);
797
+ };
798
+ }, [e]);
799
+ }, Ts = (e, t) => {
800
+ if (typeof e == "function") {
801
+ e(t);
802
+ return;
803
+ }
804
+ e && (e.current = t);
805
+ }, Ne = v(({ ref: e, children: t, className: s, dataTestId: a, ...l }) => {
806
+ const n = Pe(null);
807
+ return Cs(n), /* @__PURE__ */ r(
808
+ "table",
809
+ {
810
+ ...l,
811
+ ref: (i) => {
812
+ n.current = i, Ts(e, i);
813
+ },
814
+ className: p(gs, s),
815
+ "data-test-id": a,
816
+ children: t
817
+ }
818
+ );
819
+ });
820
+ Ne.displayName = "Table.Table";
821
+ const ke = v(
822
+ ({
823
+ ref: e,
824
+ children: t,
825
+ size: s = "md",
826
+ block: a = !0,
827
+ hasChecked: l = !1,
828
+ zebra: n = !1,
829
+ className: i,
830
+ dataTestId: u,
831
+ ...m
832
+ }) => {
833
+ const b = O(() => ({ size: s, hasChecked: l }), [s, l]);
834
+ return /* @__PURE__ */ r(ie.Provider, { value: b, children: /* @__PURE__ */ r(
835
+ "div",
836
+ {
837
+ ...m,
838
+ ref: e,
839
+ className: p(ys({ size: s, block: a, hasChecked: l, zebra: n }), i),
840
+ "data-size": s,
841
+ "data-has-checked": l || void 0,
842
+ "data-zebra": n || void 0,
843
+ "data-test-id": u,
844
+ children: t
845
+ }
846
+ ) });
847
+ }
848
+ );
849
+ ke.displayName = "Table";
850
+ const zs = Object.assign(ke, {
851
+ Scroll: ve,
852
+ Table: Ne,
853
+ Header: fe,
854
+ Body: de,
855
+ Footer: me,
856
+ Row: ge,
857
+ Cell: Y,
858
+ HeaderCell: D,
859
+ CheckboxCell: ue,
860
+ HeaderCheckboxCell: pe,
861
+ ActionBar: ce,
862
+ SortIndicator: q,
863
+ Pagination: he,
864
+ PageSize: ye
865
+ });
866
+ export {
867
+ zs as T,
868
+ U as u
869
+ };
870
+ //# sourceMappingURL=Component--pn4mDeS.js.map