abrplus-ui-kit 1.0.7 → 1.0.8

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 (55) hide show
  1. package/dist/antOverrides.cjs.js +1 -127
  2. package/dist/antOverrides.es.js +70 -98
  3. package/dist/atoms.cjs.js +1 -391
  4. package/dist/atoms.es.js +252 -306
  5. package/dist/colors-BDQwGpaB.cjs +5 -0
  6. package/dist/{colors-CztsZ6e_.js → colors-BW-NR0oP.js} +30 -34
  7. package/dist/deepMerge-2zqLIrFM.cjs +1 -0
  8. package/dist/deepMerge-Dm_AZi0Z.js +14 -0
  9. package/dist/index-B1HRk2-g.cjs +1 -0
  10. package/dist/index-BCH1vT85.js +8 -0
  11. package/dist/index-BJmt8SSx.cjs +1 -0
  12. package/dist/index-BPqX2Hsu.js +75 -0
  13. package/dist/{index-B02Mlfa4.js → index-BRLLsEKX.js} +19905 -19821
  14. package/dist/index-BeP9-mrf.js +200 -0
  15. package/dist/index-Bpx-uyOR.cjs +1 -0
  16. package/dist/index-CpGdrWps.js +19 -0
  17. package/dist/index-CwKyw6uN.cjs +1 -0
  18. package/dist/index-CzPs2mPX.js +478 -0
  19. package/dist/index-QraJKad8.cjs +1 -0
  20. package/dist/index-R9oQ5kp6.js +1569 -0
  21. package/dist/index-bNh4-ggT.cjs +1 -0
  22. package/dist/index-lDQ4dr86.cjs +1 -0
  23. package/dist/index.cjs.js +1 -109
  24. package/dist/index.css +1 -1519
  25. package/dist/index.es.js +5 -5
  26. package/dist/index2.css +1 -3
  27. package/dist/molecules.cjs.js +8 -7826
  28. package/dist/molecules.es.js +4270 -6306
  29. package/dist/organisms.cjs.js +1 -940
  30. package/dist/organisms.es.js +651 -758
  31. package/dist/provider.cjs.js +1 -48
  32. package/dist/provider.es.js +29 -34
  33. package/dist/sortable.esm-BSCvBWLi.js +2943 -0
  34. package/dist/sortable.esm-CA8VbUF-.cjs +5 -0
  35. package/dist/theme.css +1 -102
  36. package/dist/types/components/atoms/icon/constants/iconNames.d.ts +1 -1
  37. package/package.json +4 -4
  38. package/dist/colors-TPZkyKI4.cjs +0 -2212
  39. package/dist/deepMerge-CG1he8ZD.js +0 -20
  40. package/dist/deepMerge-Cn27K7-s.cjs +0 -19
  41. package/dist/index-B1Z0XlNV.cjs +0 -542
  42. package/dist/index-CCvWoynu.cjs +0 -12
  43. package/dist/index-CVNEow23.js +0 -543
  44. package/dist/index-Cbtrrxcv.js +0 -90
  45. package/dist/index-CiSH4Pqy.js +0 -266
  46. package/dist/index-Crz4ws0L.js +0 -1630
  47. package/dist/index-D-q_-bu0.cjs +0 -1629
  48. package/dist/index-DLUd_0LP.js +0 -13
  49. package/dist/index-DM-zAoQS.cjs +0 -89
  50. package/dist/index-DPvG_H_Y.cjs +0 -27
  51. package/dist/index-DdzyIn4u.js +0 -28
  52. package/dist/index-DsPAgC23.cjs +0 -37937
  53. package/dist/index-PyheoujP.cjs +0 -265
  54. package/dist/sortable.esm-BPjdpL-J.cjs +0 -3872
  55. package/dist/sortable.esm-C7oRJuPU.js +0 -3873
@@ -1,486 +1,424 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { L as Logo, c as arrayMove, D as DndContext, S as SortableContext, v as verticalListSortingStrategy, b as useSortable, C as CSS } from "./sortable.esm-C7oRJuPU.js";
3
- import { u as useWindowDimensions, P as Popover, V as View } from "./index-CiSH4Pqy.js";
4
- import { T as Text, F as Flex, R as Render, I as Icon, L as Loading } from "./index-B02Mlfa4.js";
5
- import { c as colors } from "./colors-CztsZ6e_.js";
6
- import { Drawer as Drawer$1, ConfigProvider, Modal as Modal$1, Table as Table$1 } from "antd";
7
- import { twMerge } from "tailwind-merge";
8
- import { useTranslation } from "react-i18next";
9
- import { B as Button, b as batch } from "./index-CVNEow23.js";
10
- import { useState, useEffect, useCallback, createContext, useContext, useMemo, useReducer, useRef, Fragment as Fragment$1 } from "react";
11
- import starkString from "starkstring";
12
- import { d as deepMerge } from "./deepMerge-CG1he8ZD.js";
13
- import { useNavigate, useSearchParams } from "react-router-dom";
14
- function useLocalStorageState(key, initialValue) {
15
- const initialStoredValue = localStorage.getItem(key);
16
- const initial = initialStoredValue ? JSON.parse(initialStoredValue) : initialValue;
17
- const [state, setState] = useState(initial);
18
- useEffect(() => {
19
- localStorage.setItem(key, JSON.stringify(state));
20
- }, [key, state]);
21
- return [state, setState];
1
+ import { jsx as r, jsxs as u, Fragment as F } from "react/jsx-runtime";
2
+ import { L as ae, c as ie, D as le, S as se, v as ce, b as de, C as ge } from "./sortable.esm-BSCvBWLi.js";
3
+ import { u as pe, P as me, V as he } from "./index-BeP9-mrf.js";
4
+ import { T as m, F as s, R as ue, I as v, L as fe } from "./index-BRLLsEKX.js";
5
+ import { c as o } from "./colors-BW-NR0oP.js";
6
+ import { Drawer as ye, ConfigProvider as Q, Modal as be, Table as U } from "antd";
7
+ import { twMerge as S } from "tailwind-merge";
8
+ import { useTranslation as H } from "react-i18next";
9
+ import { B as _, b as we } from "./index-CzPs2mPX.js";
10
+ import { useState as O, useEffect as W, useCallback as L, createContext as Ce, useContext as _e, useMemo as V, useReducer as xe, useRef as Se, Fragment as ve } from "react";
11
+ import Ne from "starkstring";
12
+ import { d as ke } from "./deepMerge-Dm_AZi0Z.js";
13
+ import { useNavigate as ze, useSearchParams as Be } from "react-router-dom";
14
+ function Ee(e, t) {
15
+ const n = localStorage.getItem(e), a = n ? JSON.parse(n) : t, [i, l] = O(a);
16
+ return W(() => {
17
+ localStorage.setItem(e, JSON.stringify(i));
18
+ }, [e, i]), [i, l];
22
19
  }
23
- const SMALL_SCREEN = 640;
24
- const MEDIUM_SCREEN = 768;
25
- const LARGE_SCREEN = 1024;
26
- const EXTRA_LARGE_SCREEN = 1280;
27
- function useObserveWindow() {
28
- const { width } = useWindowDimensions();
29
- const getIsWidthSmallerThan = useCallback(
30
- (query) => {
31
- if (typeof window === "undefined") return;
32
- return width <= query;
20
+ const Ae = 640, Ie = 768, De = 1024, Re = 1280;
21
+ function Te() {
22
+ const { width: e } = pe(), t = L(
23
+ (c) => {
24
+ if (!(typeof window > "u"))
25
+ return e <= c;
33
26
  },
34
- [width]
35
- );
36
- const getIsWidthLargerThan = useCallback(
37
- (query) => {
38
- if (typeof window === "undefined") return;
39
- return width > query;
27
+ [e]
28
+ ), n = L(
29
+ (c) => {
30
+ if (!(typeof window > "u"))
31
+ return e > c;
40
32
  },
41
- [width]
42
- );
43
- const getIsWidthBetween = useCallback(
44
- (queries) => {
45
- if (queries[0] >= queries[1]) {
33
+ [e]
34
+ ), a = L(
35
+ (c) => {
36
+ if (c[0] >= c[1])
46
37
  throw new Error(
47
- `The second query: ${queries[1]}px must be greater than the first query: ${queries[0]}px`
38
+ `The second query: ${c[1]}px must be greater than the first query: ${c[0]}px`
48
39
  );
49
- }
50
- if (typeof window === "undefined") return;
51
- return width > queries[0] && width <= queries[1];
40
+ if (!(typeof window > "u"))
41
+ return e > c[0] && e <= c[1];
52
42
  },
53
- [width]
54
- );
55
- const isSmallerThenLarge = getIsWidthSmallerThan(LARGE_SCREEN);
56
- const isSmallerThanSmall = getIsWidthSmallerThan(SMALL_SCREEN);
57
- const isSmallerThanMedium = getIsWidthSmallerThan(MEDIUM_SCREEN);
58
- const isSmallerThanExtraLarge = getIsWidthLargerThan(EXTRA_LARGE_SCREEN);
43
+ [e]
44
+ ), i = t(De), l = t(Ae), d = t(Ie), g = n(Re);
59
45
  return {
60
- getIsWidthSmallerThan,
61
- getIsWidthLargerThan,
62
- getIsWidthBetween,
63
- isSmallerThanExtraLarge,
64
- isSmallerThanMedium,
65
- isSmallerThanSmall,
66
- isSmallerThenLarge
46
+ getIsWidthSmallerThan: t,
47
+ getIsWidthLargerThan: n,
48
+ getIsWidthBetween: a,
49
+ isSmallerThanExtraLarge: g,
50
+ isSmallerThanMedium: d,
51
+ isSmallerThanSmall: l,
52
+ isSmallerThenLarge: i
67
53
  };
68
54
  }
69
- const PAGINATION_SIZE = "PAGINATION_SIZE";
70
- function AvatarGroup({
71
- items = [],
72
- max = 3,
73
- avatarProps: { size } = {},
74
- onClickAvatar,
75
- hasAnimation = true,
76
- nameExtractor,
77
- renderItem,
78
- itemLogoProps,
79
- containerProps,
80
- popoverProps
55
+ const Z = "PAGINATION_SIZE";
56
+ function br({
57
+ items: e = [],
58
+ max: t = 3,
59
+ avatarProps: { size: n } = {},
60
+ onClickAvatar: a,
61
+ hasAnimation: i = !0,
62
+ nameExtractor: l,
63
+ renderItem: d,
64
+ itemLogoProps: g,
65
+ containerProps: c,
66
+ popoverProps: f
81
67
  }) {
82
- if (items.length === 0) {
83
- return /* @__PURE__ */ jsx(Text, { children: "-" });
84
- }
85
- const getName = (item) => {
86
- return nameExtractor?.(item) ?? (item.name || "--");
87
- };
88
- return /* @__PURE__ */ jsxs(Flex, { ...containerProps, children: [
89
- items.slice(0, max).map((item, index) => /* @__PURE__ */ jsx(
90
- Render,
68
+ if (e.length === 0)
69
+ return /* @__PURE__ */ r(m, { children: "-" });
70
+ const w = (p) => l?.(p) ?? (p.name || "--");
71
+ return /* @__PURE__ */ u(s, { ...c, children: [
72
+ e.slice(0, t).map((p, x) => /* @__PURE__ */ r(
73
+ ue,
91
74
  {
92
- when: !!renderItem,
93
- fallback: /* @__PURE__ */ jsx(
94
- Logo,
75
+ when: !!d,
76
+ fallback: /* @__PURE__ */ r(
77
+ ae,
95
78
  {
96
- style: { marginInlineStart: index - 12, width: size, height: size },
97
- imageSrc: item?.imageSrc,
98
- hasToolTip: true,
99
- toolTipTitle: getName(item),
100
- hasAnimation,
101
- onClick: () => onClickAvatar?.(item),
102
- ...itemLogoProps
79
+ style: { marginInlineStart: x - 12, width: n, height: n },
80
+ imageSrc: p?.imageSrc,
81
+ hasToolTip: !0,
82
+ toolTipTitle: w(p),
83
+ hasAnimation: i,
84
+ onClick: () => a?.(p),
85
+ ...g
103
86
  },
104
- item.id
87
+ p.id
105
88
  ),
106
- children: renderItem?.(item)
89
+ children: d?.(p)
107
90
  }
108
91
  )),
109
- items.length > max && /* @__PURE__ */ jsx(
110
- Popover,
92
+ e.length > t && /* @__PURE__ */ r(
93
+ me,
111
94
  {
112
- arrow: true,
113
- color: colors.primary_dark_1,
95
+ arrow: !0,
96
+ color: o.primary_dark_1,
114
97
  placement: "left",
115
98
  overlayInnerStyle: {
116
- backgroundColor: colors.primary_dark_1,
99
+ backgroundColor: o.primary_dark_1,
117
100
  borderRadius: 4
118
101
  },
119
102
  trigger: ["hover"],
120
- content: /* @__PURE__ */ jsx(View, { vertical: true, children: items.slice(max).map((item) => /* @__PURE__ */ jsx(Text, { color: colors.white_ff, children: getName(item) }, item.id)) }),
121
- ...popoverProps,
122
- children: /* @__PURE__ */ jsx(
123
- Flex,
103
+ content: /* @__PURE__ */ r(he, { vertical: !0, children: e.slice(t).map((p) => /* @__PURE__ */ r(m, { color: o.white_ff, children: w(p) }, p.id)) }),
104
+ ...f,
105
+ children: /* @__PURE__ */ r(
106
+ s,
124
107
  {
125
108
  align: "center",
126
109
  justify: "center",
127
110
  className: "z-50 -ms-3 h-6 w-6 rounded-full border-2 border-primary-light-3 bg-light-7",
128
- style: { width: size, height: size },
129
- ...popoverProps?.containerProps,
130
- children: `${items.length - max}+`
111
+ style: { width: n, height: n },
112
+ ...f?.containerProps,
113
+ children: `${e.length - t}+`
131
114
  }
132
115
  )
133
116
  }
134
117
  )
135
118
  ] });
136
119
  }
137
- const DrawerFooter = ({
138
- discardTitle,
139
- onDiscard,
140
- onSubmit,
141
- submitTitle,
142
- isLoading,
143
- isSubmitDisabled
120
+ const Pe = ({
121
+ discardTitle: e,
122
+ onDiscard: t,
123
+ onSubmit: n,
124
+ submitTitle: a,
125
+ isLoading: i,
126
+ isSubmitDisabled: l
144
127
  }) => {
145
- const { t } = useTranslation();
146
- return /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 16, justify: "flex-end", children: [
147
- discardTitle && /* @__PURE__ */ jsx(Button.Secondary, { disabled: isLoading, onClick: onDiscard, children: discardTitle }),
148
- /* @__PURE__ */ jsx(Button.Primary, { disabled: isSubmitDisabled, isLoading, onClick: onSubmit, children: submitTitle || t("common.literal.apply") })
128
+ const { t: d } = H();
129
+ return /* @__PURE__ */ u(s, { align: "center", gap: 16, justify: "flex-end", children: [
130
+ e && /* @__PURE__ */ r(_.Secondary, { disabled: i, onClick: t, children: e }),
131
+ /* @__PURE__ */ r(_.Primary, { disabled: l, isLoading: i, onClick: n, children: a || d("common.literal.apply") })
149
132
  ] });
150
- };
151
- const DrawerHeaderTitle = ({ title, closable, onClose }) => {
152
- const getTitle = () => {
153
- if (typeof title !== "string") {
154
- return title;
155
- }
156
- return /* @__PURE__ */ jsx(Text, { size: 18, weight: "medium", color: colors.primary, children: title });
157
- };
158
- return /* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", children: [
159
- getTitle(),
160
- closable && /* @__PURE__ */ jsx("div", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx(Icon, { name: "Close", size: 20, color: colors.primary }) })
161
- ] });
162
- };
163
- const Drawer = ({
164
- title,
165
- closable = true,
166
- transparent,
167
- submitTitle,
168
- discardTitle,
169
- onClose,
170
- onSubmit,
171
- onDiscard,
172
- classNames,
173
- styles,
174
- children,
175
- isLoading,
176
- headerHeight = 60,
177
- wrapperClassName,
178
- contentClassName,
179
- noPadding,
180
- isSubmitDisabled,
181
- footer,
182
- ...rest
183
- }) => {
184
- return /* @__PURE__ */ jsx(
185
- Drawer$1,
186
- {
187
- onClose,
188
- styles: {
189
- ...styles,
190
- header: {
191
- minHeight: headerHeight,
192
- backgroundColor: colors.light_2,
193
- borderColor: colors.light_7,
194
- paddingBlock: 12,
195
- paddingInline: 24
196
- },
197
- body: {
198
- backgroundColor: transparent ? "transparent" : colors.white_ff,
199
- // margin: transparent ? 0 : 24,
200
- // borderRadius: 10,
201
- padding: 0
202
- },
203
- content: {
204
- backgroundColor: colors.light_2,
205
- padding: 0
206
- },
207
- footer: {
208
- minHeight: 60,
209
- paddingBlock: 12,
210
- borderColor: colors.light_7,
211
- paddingInline: 24,
212
- margin: 0
213
- }
133
+ }, je = ({ title: e, closable: t, onClose: n }) => /* @__PURE__ */ u(s, { justify: "space-between", align: "center", children: [
134
+ typeof e != "string" ? e : /* @__PURE__ */ r(m, { size: 18, weight: "medium", color: o.primary, children: e }),
135
+ t && /* @__PURE__ */ r("div", { className: "cursor-pointer", onClick: n, children: /* @__PURE__ */ r(v, { name: "Close", size: 20, color: o.primary }) })
136
+ ] }), wr = ({
137
+ title: e,
138
+ closable: t = !0,
139
+ transparent: n,
140
+ submitTitle: a,
141
+ discardTitle: i,
142
+ onClose: l,
143
+ onSubmit: d,
144
+ onDiscard: g,
145
+ classNames: c,
146
+ styles: f,
147
+ children: w,
148
+ isLoading: p,
149
+ headerHeight: x = 60,
150
+ wrapperClassName: R,
151
+ contentClassName: C,
152
+ noPadding: T,
153
+ isSubmitDisabled: P,
154
+ footer: N,
155
+ ...A
156
+ }) => /* @__PURE__ */ r(
157
+ ye,
158
+ {
159
+ onClose: l,
160
+ styles: {
161
+ ...f,
162
+ header: {
163
+ minHeight: x,
164
+ backgroundColor: o.light_2,
165
+ borderColor: o.light_7,
166
+ paddingBlock: 12,
167
+ paddingInline: 24
214
168
  },
215
- classNames: {
216
- ...classNames,
217
- body: "small-custom-scrollbar"
169
+ body: {
170
+ backgroundColor: n ? "transparent" : o.white_ff,
171
+ // margin: transparent ? 0 : 24,
172
+ // borderRadius: 10,
173
+ padding: 0
218
174
  },
219
- footer: footer || /* @__PURE__ */ jsx(
220
- DrawerFooter,
221
- {
222
- ...{ onSubmit, onDiscard, submitTitle, discardTitle, isLoading, isSubmitDisabled }
223
- }
224
- ),
225
- closable: false,
226
- title: /* @__PURE__ */ jsx(DrawerHeaderTitle, { title, closable, onClose }),
227
- ...rest,
228
- children: /* @__PURE__ */ jsx(
229
- Flex,
230
- {
231
- className: twMerge(
232
- "small-custom-scrollbar h-full flex-1 overflow-y-auto bg-light-2 p-6",
233
- wrapperClassName
234
- ),
235
- vertical: true,
236
- gap: 16,
237
- children: /* @__PURE__ */ jsx(
238
- Flex,
239
- {
240
- className: twMerge(
241
- "bg-white-ff",
242
- noPadding ? "rounded-lg" : "rounded p-6",
243
- !transparent ? "" : "bg-transparent",
244
- contentClassName
245
- ),
246
- vertical: true,
247
- children
248
- }
249
- )
250
- }
251
- )
252
- }
253
- );
254
- };
255
- const BaseModal = ({
256
- children,
257
- submitTitle,
258
- discardTitle,
259
- onSubmit,
260
- onDiscard,
261
- title,
262
- onClose,
263
- isLoadingSubmit,
264
- renderFooter,
265
- ...rest
266
- }) => {
267
- return /* @__PURE__ */ jsx(
268
- ConfigProvider,
269
- {
270
- theme: {
271
- components: {
272
- Modal: {
273
- borderRadius: 4,
274
- borderRadiusOuter: 4,
275
- borderRadiusLG: 4,
276
- paddingMD: 0,
277
- paddingContentHorizontalLG: 0,
278
- margin: 0
279
- }
280
- }
175
+ content: {
176
+ backgroundColor: o.light_2,
177
+ padding: 0
281
178
  },
282
- children: /* @__PURE__ */ jsx(
283
- Modal$1,
284
- {
285
- closeIcon: false,
286
- classNames: { body: "!px-6 !py-4" },
287
- footer: renderFooter !== void 0 ? renderFooter : submitTitle || discardTitle ? /* @__PURE__ */ jsxs(
288
- Flex,
289
- {
290
- justify: "end",
291
- align: "center",
292
- className: "h-[58px] rounded-b border-t border-solid border-light-7 bg-light-2 px-6",
293
- gap: 16,
294
- children: [
295
- discardTitle && /* @__PURE__ */ jsx(Button.Secondary, { onClick: onDiscard, children: discardTitle }),
296
- submitTitle && /* @__PURE__ */ jsx(Button.Primary, { isLoading: isLoadingSubmit, onClick: onSubmit, children: submitTitle })
297
- ]
298
- }
299
- ) : null,
300
- title: typeof title === "string" ? /* @__PURE__ */ jsxs(
301
- Flex,
302
- {
303
- className: "h-12 rounded-t border-b border-solid border-light-7 bg-light-2 px-6",
304
- align: "center",
305
- justify: "space-between",
306
- children: [
307
- /* @__PURE__ */ jsx(Text, { size: 18, weight: "medium", color: colors.primary_dark_1, children: title }),
308
- /* @__PURE__ */ jsx(
309
- Icon,
310
- {
311
- name: "Close",
312
- color: colors.primary,
313
- onClick: onClose,
314
- className: "cursor-pointer"
315
- }
316
- )
317
- ]
318
- }
319
- ) : title,
320
- ...rest,
321
- children
179
+ footer: {
180
+ minHeight: 60,
181
+ paddingBlock: 12,
182
+ borderColor: o.light_7,
183
+ paddingInline: 24,
184
+ margin: 0
185
+ }
186
+ },
187
+ classNames: {
188
+ ...c,
189
+ body: "small-custom-scrollbar"
190
+ },
191
+ footer: N || /* @__PURE__ */ r(
192
+ Pe,
193
+ {
194
+ onSubmit: d,
195
+ onDiscard: g,
196
+ submitTitle: a,
197
+ discardTitle: i,
198
+ isLoading: p,
199
+ isSubmitDisabled: P
200
+ }
201
+ ),
202
+ closable: !1,
203
+ title: /* @__PURE__ */ r(je, { title: e, closable: t, onClose: l }),
204
+ ...A,
205
+ children: /* @__PURE__ */ r(
206
+ s,
207
+ {
208
+ className: S(
209
+ "small-custom-scrollbar h-full flex-1 overflow-y-auto bg-light-2 p-6",
210
+ R
211
+ ),
212
+ vertical: !0,
213
+ gap: 16,
214
+ children: /* @__PURE__ */ r(
215
+ s,
216
+ {
217
+ className: S(
218
+ "bg-white-ff",
219
+ T ? "rounded-lg" : "rounded p-6",
220
+ n ? "bg-transparent" : "",
221
+ C
222
+ ),
223
+ vertical: !0,
224
+ children: w
225
+ }
226
+ )
227
+ }
228
+ )
229
+ }
230
+ ), G = ({
231
+ children: e,
232
+ submitTitle: t,
233
+ discardTitle: n,
234
+ onSubmit: a,
235
+ onDiscard: i,
236
+ title: l,
237
+ onClose: d,
238
+ isLoadingSubmit: g,
239
+ renderFooter: c,
240
+ ...f
241
+ }) => /* @__PURE__ */ r(
242
+ Q,
243
+ {
244
+ theme: {
245
+ components: {
246
+ Modal: {
247
+ borderRadius: 4,
248
+ borderRadiusOuter: 4,
249
+ borderRadiusLG: 4,
250
+ paddingMD: 0,
251
+ paddingContentHorizontalLG: 0,
252
+ margin: 0
322
253
  }
323
- )
324
- }
325
- );
326
- };
327
- const ConfirmModal = ({
328
- children,
329
- title,
330
- onSubmit,
331
- onDiscard,
332
- submitTitle,
333
- discardTitle,
334
- isLoadingSubmit,
335
- renderFooter,
336
- ...rest
254
+ }
255
+ },
256
+ children: /* @__PURE__ */ r(
257
+ be,
258
+ {
259
+ closeIcon: !1,
260
+ classNames: { body: "!px-6 !py-4" },
261
+ footer: c !== void 0 ? c : t || n ? /* @__PURE__ */ u(
262
+ s,
263
+ {
264
+ justify: "end",
265
+ align: "center",
266
+ className: "h-[58px] rounded-b border-t border-solid border-light-7 bg-light-2 px-6",
267
+ gap: 16,
268
+ children: [
269
+ n && /* @__PURE__ */ r(_.Secondary, { onClick: i, children: n }),
270
+ t && /* @__PURE__ */ r(_.Primary, { isLoading: g, onClick: a, children: t })
271
+ ]
272
+ }
273
+ ) : null,
274
+ title: typeof l == "string" ? /* @__PURE__ */ u(
275
+ s,
276
+ {
277
+ className: "h-12 rounded-t border-b border-solid border-light-7 bg-light-2 px-6",
278
+ align: "center",
279
+ justify: "space-between",
280
+ children: [
281
+ /* @__PURE__ */ r(m, { size: 18, weight: "medium", color: o.primary_dark_1, children: l }),
282
+ /* @__PURE__ */ r(
283
+ v,
284
+ {
285
+ name: "Close",
286
+ color: o.primary,
287
+ onClick: d,
288
+ className: "cursor-pointer"
289
+ }
290
+ )
291
+ ]
292
+ }
293
+ ) : l,
294
+ ...f,
295
+ children: e
296
+ }
297
+ )
298
+ }
299
+ ), Me = ({
300
+ children: e,
301
+ title: t,
302
+ onSubmit: n,
303
+ onDiscard: a,
304
+ submitTitle: i,
305
+ discardTitle: l,
306
+ isLoadingSubmit: d,
307
+ renderFooter: g,
308
+ ...c
337
309
  }) => {
338
- const footerContent = renderFooter !== void 0 ? renderFooter : (submitTitle || discardTitle) && /* @__PURE__ */ jsxs(Flex, { gap: 16, align: "center", justify: "flex-end", className: "px-6 py-4", children: [
339
- discardTitle && /* @__PURE__ */ jsx(Button.Secondary, { onClick: onDiscard, children: discardTitle }),
340
- submitTitle && /* @__PURE__ */ jsx(Button.Primary, { isLoading: isLoadingSubmit, onClick: onSubmit, children: submitTitle })
310
+ const f = g !== void 0 ? g : (i || l) && /* @__PURE__ */ u(s, { gap: 16, align: "center", justify: "flex-end", className: "px-6 py-4", children: [
311
+ l && /* @__PURE__ */ r(_.Secondary, { onClick: a, children: l }),
312
+ i && /* @__PURE__ */ r(_.Primary, { isLoading: d, onClick: n, children: i })
341
313
  ] });
342
- return /* @__PURE__ */ jsx(BaseModal, { ...rest, renderFooter: footerContent, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, children: [
343
- /* @__PURE__ */ jsx(Flex, { vertical: true, className: "mb-2 border-b-[2px] border-light-7 pb-3", children: typeof title === "string" ? /* @__PURE__ */ jsx(Text, { size: 20, weight: "bold", color: colors.primary_dark_1, children: title }) : title }),
344
- /* @__PURE__ */ jsx(Flex, { className: "pb-10 pt-4", children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { size: 16, weight: "normal", color: colors.primary, children }) : children })
314
+ return /* @__PURE__ */ r(G, { ...c, renderFooter: f, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
315
+ /* @__PURE__ */ r(s, { vertical: !0, className: "mb-2 border-b-[2px] border-light-7 pb-3", children: typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t }),
316
+ /* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e })
345
317
  ] }) });
346
- };
347
- const DeleteModal = ({
348
- children,
349
- title,
350
- onSubmit,
351
- onDiscard,
352
- submitTitle,
353
- discardTitle,
354
- isLoadingSubmit,
355
- ...rest
356
- }) => {
357
- return /* @__PURE__ */ jsx(BaseModal, { ...rest, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, children: [
358
- /* @__PURE__ */ jsx(Flex, { vertical: true, className: "border-b-[2px] border-light-7 pb-3", children: typeof title === "string" ? /* @__PURE__ */ jsx(Text, { size: 20, weight: "bold", color: colors.primary_dark_1, children: title }) : title }),
359
- /* @__PURE__ */ jsx(Flex, { className: "pb-10 pt-4", children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { size: 16, weight: "normal", color: colors.primary, children }) : children }),
360
- /* @__PURE__ */ jsxs(Flex, { gap: 16, align: "center", justify: "flex-end", children: [
361
- /* @__PURE__ */ jsx(Button.Secondary, { onClick: onDiscard, children: discardTitle }),
362
- /* @__PURE__ */ jsx(Button.Negative, { iconName: "Delete", isLoading: isLoadingSubmit, onClick: onSubmit, children: submitTitle })
363
- ] })
364
- ] }) });
365
- };
366
- const ErrorModal = ({
367
- children,
368
- title,
369
- onSubmit,
370
- submitTitle,
371
- isLoadingSubmit,
372
- ...rest
373
- }) => {
374
- return /* @__PURE__ */ jsx(BaseModal, { ...rest, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, children: [
375
- /* @__PURE__ */ jsxs(Flex, { className: "border-b-[2px] border-light-7 pb-3", align: "center", justify: "space-between", children: [
376
- typeof title === "string" ? /* @__PURE__ */ jsx(Text, { size: 20, weight: "bold", color: colors.primary_dark_1, children: title }) : title,
377
- /* @__PURE__ */ jsx(Icon, { name: "Alert", color: colors.negative, size: 18 })
378
- ] }),
379
- /* @__PURE__ */ jsx(Flex, { className: "pb-10 pt-4", children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { size: 16, weight: "normal", color: colors.primary, children }) : children }),
380
- /* @__PURE__ */ jsx(Flex, { justify: "flex-end", children: /* @__PURE__ */ jsx(Button.Primary, { isLoading: isLoadingSubmit, onClick: onSubmit, children: submitTitle }) })
381
- ] }) });
382
- };
383
- const InfoModal = ({
384
- children,
385
- title,
386
- onSubmit,
387
- onDiscard,
388
- submitTitle,
389
- discardTitle,
390
- isLoadingSubmit,
391
- error,
392
- ...rest
393
- }) => {
394
- return /* @__PURE__ */ jsx(BaseModal, { ...rest, children: /* @__PURE__ */ jsxs(Flex, { vertical: true, children: [
395
- /* @__PURE__ */ jsx(Flex, { vertical: true, className: "border-b-[2px] border-light-7 pb-3", children: typeof title === "string" ? /* @__PURE__ */ jsx(Text, { size: 20, weight: "bold", color: colors.primary_dark_1, children: title }) : title }),
396
- /* @__PURE__ */ jsx(Flex, { className: "pb-10 pt-4", children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { size: 16, weight: "normal", color: colors.primary, children }) : children }),
397
- /* @__PURE__ */ jsx(Text, { size: 20, weight: "bold", color: colors.negative, children: error }),
398
- /* @__PURE__ */ jsxs(Flex, { gap: 16, align: "center", justify: "flex-end", children: [
399
- /* @__PURE__ */ jsx(Button.SecondaryQuiet, { onClick: onDiscard, children: discardTitle }),
400
- /* @__PURE__ */ jsx(Button.Primary, { isLoading: isLoadingSubmit, onClick: onSubmit, children: submitTitle })
401
- ] })
402
- ] }) });
403
- };
404
- const Modal = batch({
405
- Base: BaseModal,
406
- Confirm: ConfirmModal,
407
- Error: ErrorModal,
408
- Delete: DeleteModal,
409
- Info: InfoModal
410
- });
411
- const Column = (_props) => {
412
- return /* @__PURE__ */ jsx(Fragment, {});
413
- };
414
- const CurrencyCell = ({ value, includeCurrency, ...rest }) => {
415
- const { t } = useTranslation();
416
- return /* @__PURE__ */ jsxs(Text, { className: "w-full", size: 14, weight: "normal", color: colors.primary, ...rest, children: [
417
- value ? starkString(value).scientificNotationToDecimal().toCurrency().toString() : "",
418
- includeCurrency && ` ${t("common.literal.rial")}`
318
+ }, Le = ({
319
+ children: e,
320
+ title: t,
321
+ onSubmit: n,
322
+ onDiscard: a,
323
+ submitTitle: i,
324
+ discardTitle: l,
325
+ isLoadingSubmit: d,
326
+ ...g
327
+ }) => /* @__PURE__ */ r(G, { ...g, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
328
+ /* @__PURE__ */ r(s, { vertical: !0, className: "border-b-[2px] border-light-7 pb-3", children: typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t }),
329
+ /* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e }),
330
+ /* @__PURE__ */ u(s, { gap: 16, align: "center", justify: "flex-end", children: [
331
+ /* @__PURE__ */ r(_.Secondary, { onClick: a, children: l }),
332
+ /* @__PURE__ */ r(_.Negative, { iconName: "Delete", isLoading: d, onClick: n, children: i })
333
+ ] })
334
+ ] }) }), He = ({
335
+ children: e,
336
+ title: t,
337
+ onSubmit: n,
338
+ submitTitle: a,
339
+ isLoadingSubmit: i,
340
+ ...l
341
+ }) => /* @__PURE__ */ r(G, { ...l, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
342
+ /* @__PURE__ */ u(s, { className: "border-b-[2px] border-light-7 pb-3", align: "center", justify: "space-between", children: [
343
+ typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t,
344
+ /* @__PURE__ */ r(v, { name: "Alert", color: o.negative, size: 18 })
345
+ ] }),
346
+ /* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e }),
347
+ /* @__PURE__ */ r(s, { justify: "flex-end", children: /* @__PURE__ */ r(_.Primary, { isLoading: i, onClick: n, children: a }) })
348
+ ] }) }), Ge = ({
349
+ children: e,
350
+ title: t,
351
+ onSubmit: n,
352
+ onDiscard: a,
353
+ submitTitle: i,
354
+ discardTitle: l,
355
+ isLoadingSubmit: d,
356
+ error: g,
357
+ ...c
358
+ }) => /* @__PURE__ */ r(G, { ...c, children: /* @__PURE__ */ u(s, { vertical: !0, children: [
359
+ /* @__PURE__ */ r(s, { vertical: !0, className: "border-b-[2px] border-light-7 pb-3", children: typeof t == "string" ? /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.primary_dark_1, children: t }) : t }),
360
+ /* @__PURE__ */ r(s, { className: "pb-10 pt-4", children: typeof e == "string" ? /* @__PURE__ */ r(m, { size: 16, weight: "normal", color: o.primary, children: e }) : e }),
361
+ /* @__PURE__ */ r(m, { size: 20, weight: "bold", color: o.negative, children: g }),
362
+ /* @__PURE__ */ u(s, { gap: 16, align: "center", justify: "flex-end", children: [
363
+ /* @__PURE__ */ r(_.SecondaryQuiet, { onClick: a, children: l }),
364
+ /* @__PURE__ */ r(_.Primary, { isLoading: d, onClick: n, children: i })
365
+ ] })
366
+ ] }) }), Cr = we({
367
+ Base: G,
368
+ Confirm: Me,
369
+ Error: He,
370
+ Delete: Le,
371
+ Info: Ge
372
+ }), K = (e) => /* @__PURE__ */ r(F, {}), $e = ({ value: e, includeCurrency: t, ...n }) => {
373
+ const { t: a } = H();
374
+ return /* @__PURE__ */ u(m, { className: "w-full", size: 14, weight: "normal", color: o.primary, ...n, children: [
375
+ e ? Ne(e).scientificNotationToDecimal().toCurrency().toString() : "",
376
+ t && ` ${a("common.literal.rial")}`
419
377
  ] });
420
- };
421
- const DateCell = ({ value, ...rest }) => {
422
- return /* @__PURE__ */ jsx(Text, { className: "w-full", size: 14, weight: "normal", color: colors.primary, ...rest, children: value });
423
- };
424
- const StatusCell = ({ value, activeTitle, disableTitle, ...rest }) => {
425
- const { t } = useTranslation();
426
- return /* @__PURE__ */ jsx(
427
- Flex,
378
+ }, Fe = ({ value: e, ...t }) => /* @__PURE__ */ r(m, { className: "w-full", size: 14, weight: "normal", color: o.primary, ...t, children: e }), Oe = ({ value: e, activeTitle: t, disableTitle: n, ...a }) => {
379
+ const { t: i } = H();
380
+ return /* @__PURE__ */ r(
381
+ s,
428
382
  {
429
- className: twMerge(
383
+ className: S(
430
384
  "h-[26px] items-center justify-center rounded px-4",
431
- value ? "bg-positive-light-2 bg-opacity-10" : "bg-light-6"
385
+ e ? "bg-positive-light-2 bg-opacity-10" : "bg-light-6"
432
386
  ),
433
- ...rest,
434
- children: value ? /* @__PURE__ */ jsx(Text, { size: 12, weight: "medium", color: colors.positive, children: activeTitle || t("common.literal.active") }) : /* @__PURE__ */ jsx(Text, { size: 12, weight: "medium", color: colors.primary_light_2, children: disableTitle || t("common.literal.disable") })
387
+ ...a,
388
+ children: e ? /* @__PURE__ */ r(m, { size: 12, weight: "medium", color: o.positive, children: t || i("common.literal.active") }) : /* @__PURE__ */ r(m, { size: 12, weight: "medium", color: o.primary_light_2, children: n || i("common.literal.disable") })
435
389
  }
436
390
  );
437
- };
438
- const TableCell = ({ children }) => {
439
- if (typeof children === "string" || typeof children === "number") {
440
- return /* @__PURE__ */ jsx(Text, { className: "w-full", size: 14, weight: "normal", color: colors.primary, children });
441
- }
442
- return children;
443
- };
444
- TableCell.Currency = CurrencyCell;
445
- TableCell.Date = DateCell;
446
- TableCell.StatusCell = StatusCell;
447
- const ExpandIcon = ({ expandable, expanded, onExpand }) => {
448
- const { i18n } = useTranslation();
449
- if (!expandable) {
450
- return null;
451
- }
452
- return /* @__PURE__ */ jsx("button", { className: "float-start h-full items-center justify-center", children: /* @__PURE__ */ jsx(
453
- Icon,
391
+ }, z = ({ children: e }) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ r(m, { className: "w-full", size: 14, weight: "normal", color: o.primary, children: e }) : e;
392
+ z.Currency = $e;
393
+ z.Date = Fe;
394
+ z.StatusCell = Oe;
395
+ const We = ({ expandable: e, expanded: t, onExpand: n }) => {
396
+ const { i18n: a } = H();
397
+ return e ? /* @__PURE__ */ r("button", { className: "float-start h-full items-center justify-center", children: /* @__PURE__ */ r(
398
+ v,
454
399
  {
455
- onClick: onExpand,
456
- name: expanded ? "Chevron_Down" : i18n.language === "fa" ? "Chevron_Left" : "Chevron_Right"
400
+ onClick: n,
401
+ name: t ? "Chevron_Down" : a.language === "fa" ? "Chevron_Left" : "Chevron_Right"
457
402
  }
458
- ) });
459
- };
460
- const TableHeaderTitle = ({ title, align, style, className }) => {
461
- if (typeof title !== "string") {
462
- return title;
403
+ ) }) : null;
404
+ }, Ve = ({ title: e, align: t, style: n, className: a }) => typeof e != "string" ? e : /* @__PURE__ */ r(
405
+ s,
406
+ {
407
+ style: n,
408
+ className: S(
409
+ "w-full",
410
+ t === "start" && "justify-start",
411
+ t === "center" && "justify-center",
412
+ t === "end" && "justify-end",
413
+ a
414
+ ),
415
+ children: /* @__PURE__ */ r(m, { size: 14, weight: "normal", className: "whitespace-nowrap", color: o.primary, children: e })
463
416
  }
464
- return /* @__PURE__ */ jsx(
465
- Flex,
466
- {
467
- style,
468
- className: twMerge(
469
- "w-full",
470
- align === "start" && "justify-start",
471
- align === "center" && "justify-center",
472
- align === "end" && "justify-end",
473
- className
474
- ),
475
- children: /* @__PURE__ */ jsx(Text, { size: 14, weight: "normal", className: "whitespace-nowrap", color: colors.primary, children: title })
476
- }
477
- );
478
- };
479
- const CustomizedAntTableConfig = (theme) => deepMerge(
417
+ ), Je = (e) => ke(
480
418
  {
481
419
  components: {
482
420
  Table: {
483
- borderColor: colors.light_7,
421
+ borderColor: o.light_7,
484
422
  cellPaddingBlock: 0,
485
423
  cellPaddingBlockMD: 0,
486
424
  cellPaddingBlockSM: 0,
@@ -488,453 +426,408 @@ const CustomizedAntTableConfig = (theme) => deepMerge(
488
426
  cellPaddingInlineMD: 8,
489
427
  cellPaddingInlineSM: 8,
490
428
  fixedHeaderSortActiveBg: "transparent",
491
- footerBg: colors.light_2,
492
- headerBg: colors.light_2,
429
+ footerBg: o.light_2,
430
+ headerBg: o.light_2,
493
431
  headerBorderRadius: 0,
494
- headerColor: colors.primary,
495
- bodySortBg: colors.white_ff,
496
- headerSortHoverBg: colors.light_1,
497
- headerSortActiveBg: colors.light_1,
432
+ headerColor: o.primary,
433
+ bodySortBg: o.white_ff,
434
+ headerSortHoverBg: o.light_1,
435
+ headerSortActiveBg: o.light_1,
498
436
  headerSplitColor: "transparent",
499
- rowExpandedBg: colors.light_3,
500
- rowHoverBg: colors.light_4,
501
- rowSelectedBg: colors.light_7,
502
- rowSelectedHoverBg: colors.light_7,
437
+ rowExpandedBg: o.light_3,
438
+ rowHoverBg: o.light_4,
439
+ rowSelectedBg: o.light_7,
440
+ rowSelectedHoverBg: o.light_7,
503
441
  selectionColumnWidth: 56
504
442
  /* here is your component tokens */
505
443
  },
506
444
  Pagination: {
507
- itemActiveBg: colors.white_ff,
508
- itemActiveBgDisabled: colors.negative,
509
- itemActiveColorDisabled: colors.negative,
445
+ itemActiveBg: o.white_ff,
446
+ itemActiveBgDisabled: o.negative,
447
+ itemActiveColorDisabled: o.negative,
510
448
  colorPrimaryBorderHover: "red",
511
449
  colorInfoBorderHover: "yellow",
512
450
  colorWarningBorderHover: "green",
513
- itemBg: colors.white_ff,
514
- itemInputBg: colors.negative,
515
- itemLinkBg: colors.negative,
451
+ itemBg: o.white_ff,
452
+ itemInputBg: o.negative,
453
+ itemLinkBg: o.negative,
516
454
  itemSize: 30,
517
455
  itemSizeSM: 30,
518
456
  miniOptionsSizeChangerTop: 40,
519
- colorPrimary: colors.primary,
457
+ colorPrimary: o.primary,
520
458
  fontFamily: "YekanBakhFaRegular"
521
459
  }
522
460
  }
523
461
  },
524
- theme ?? {}
525
- );
526
- const tailwindTableClasses = twMerge(
462
+ e ?? {}
463
+ ), Ye = S(
527
464
  "[&_th]:!border-t h-full [&_.ant-spin-nested-loading]:h-full [&_.ant-spin-container]:h-full [&_.ant-table]:h-full [&_.ant-spin-container]:flex [&_.ant-spin-container]:flex-col [&_.ant-spin-container]:justify-between [&_.ant-table-column-title]:flex-[0] [&_th]:!border-t-light-7 [&_th]:!pt-4 [&_th]:!pb-1 [&_.ant-table-selection-column]:!ps-4 [&_.ant-table-wrapper]:!p-0 [&_.ant-table-measure-row]:!h-[1px] [&_.ant-table-body]:h-full [&_.ant-table-container]:h-full"
528
- );
529
- const tableTransparentHeaderClasses = twMerge(
465
+ ), Ue = S(
530
466
  "[&_th]:!bg-transparent h-full [&_th]:!border-t-0 [&_td]:!bg-transparent "
531
- );
532
- const rowHeightClassName = {
467
+ ), Ze = {
533
468
  small: "h-[40px] max-h-[40px] min-h-[40px]",
534
469
  middle: "h-[48px] max-h-[48px] min-h-[48px]",
535
470
  large: "h-[56px] max-h-[56px] min-h-[56px]"
536
- };
537
- const RowContext = createContext({});
538
- const DragHandle = () => {
539
- const { setActivatorNodeRef, listeners } = useContext(RowContext);
540
- return /* @__PURE__ */ jsx("button", { style: { cursor: "move" }, ref: setActivatorNodeRef, ...listeners, children: /* @__PURE__ */ jsx(Icon, { name: "drag_and_drop", color: colors.primary_light_2 }) });
541
- };
542
- const restrictToVerticalAxis = (_ref) => {
471
+ }, q = Ce({}), Xe = () => {
472
+ const { setActivatorNodeRef: e, listeners: t } = _e(q);
473
+ return /* @__PURE__ */ r("button", { style: { cursor: "move" }, ref: e, ...t, children: /* @__PURE__ */ r(v, { name: "drag_and_drop", color: o.primary_light_2 }) });
474
+ }, Qe = (e) => {
543
475
  let {
544
- transform
545
- } = _ref;
476
+ transform: t
477
+ } = e;
546
478
  return {
547
- ...transform,
479
+ ...t,
548
480
  x: 0
549
481
  };
550
- };
551
- const DndSortProvider = ({
552
- children,
553
- onDragEnd,
554
- dataSource = [],
555
- rowKey
482
+ }, Ke = ({
483
+ children: e,
484
+ onDragEnd: t,
485
+ dataSource: n = [],
486
+ rowKey: a
556
487
  }) => {
557
- const items = useMemo(
558
- () => dataSource.map((item) => item[rowKey]),
559
- [dataSource, rowKey]
560
- );
561
- const handleDragEnd = useCallback(
562
- ({ active, over }) => {
563
- if (active.id !== over?.id) {
564
- const activeIndex = dataSource.findIndex((record) => record[rowKey] === active?.id);
565
- const overIndex = dataSource.findIndex((record) => record[rowKey] === over?.id);
566
- const newSort = arrayMove(dataSource, activeIndex, overIndex);
567
- onDragEnd(newSort);
488
+ const i = V(
489
+ () => n.map((d) => d[a]),
490
+ [n, a]
491
+ ), l = L(
492
+ ({ active: d, over: g }) => {
493
+ if (d.id !== g?.id) {
494
+ const c = n.findIndex((p) => p[a] === d?.id), f = n.findIndex((p) => p[a] === g?.id), w = ie(n, c, f);
495
+ t(w);
568
496
  }
569
497
  },
570
- [dataSource, rowKey, onDragEnd]
498
+ [n, a, t]
571
499
  );
572
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(DndContext, { modifiers: [restrictToVerticalAxis], onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsx(SortableContext, { items, strategy: verticalListSortingStrategy, children }) }) });
573
- };
574
- const DndRow = (props) => {
500
+ return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(le, { modifiers: [Qe], onDragEnd: l, children: /* @__PURE__ */ r(se, { items: i, strategy: ce, children: e }) }) });
501
+ }, qe = (e) => {
575
502
  const {
576
- attributes,
577
- listeners,
578
- setNodeRef,
579
- setActivatorNodeRef,
580
- transform,
581
- transition,
582
- isDragging
583
- } = useSortable({ id: props["data-row-key"] });
584
- const style = {
585
- ...props.style,
586
- transform: CSS.Translate.toString(transform),
587
- transition,
503
+ attributes: t,
504
+ listeners: n,
505
+ setNodeRef: a,
506
+ setActivatorNodeRef: i,
507
+ transform: l,
508
+ transition: d,
509
+ isDragging: g
510
+ } = de({ id: e["data-row-key"] }), c = {
511
+ ...e.style,
512
+ transform: ge.Translate.toString(l),
513
+ transition: d,
588
514
  cursor: "default",
589
- ...isDragging ? { position: "relative", zIndex: 10 } : {}
590
- };
591
- const contextValue = useMemo(
592
- () => ({ setActivatorNodeRef, listeners }),
593
- [setActivatorNodeRef, listeners]
515
+ ...g ? { position: "relative", zIndex: 10 } : {}
516
+ }, f = V(
517
+ () => ({ setActivatorNodeRef: i, listeners: n }),
518
+ [i, n]
594
519
  );
595
- return /* @__PURE__ */ jsx(RowContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx("tr", { ...props, ref: setNodeRef, style, ...attributes }) });
596
- };
597
- const ItemRender = ({ page, type, current, isFa }) => {
598
- const isCurrentPage = Number(page) === current;
599
- return /* @__PURE__ */ jsx(Flex, { className: "h-[30px] items-center justify-center", children: type === "page" ? /* @__PURE__ */ jsx(
600
- Text,
520
+ return /* @__PURE__ */ r(q.Provider, { value: f, children: /* @__PURE__ */ r("tr", { ...e, ref: a, style: c, ...t }) });
521
+ }, er = ({ page: e, type: t, current: n, isFa: a }) => {
522
+ const i = Number(e) === n;
523
+ return /* @__PURE__ */ r(s, { className: "h-[30px] items-center justify-center", children: t === "page" ? /* @__PURE__ */ r(
524
+ m,
601
525
  {
602
- weight: isCurrentPage ? "bold" : "normal",
603
- size: isCurrentPage ? 20 : 18,
604
- color: isCurrentPage ? colors.primary : colors.primary_dark_1,
605
- children: page
526
+ weight: i ? "bold" : "normal",
527
+ size: i ? 20 : 18,
528
+ color: i ? o.primary : o.primary_dark_1,
529
+ children: e
606
530
  }
607
- ) : type === "next" ? /* @__PURE__ */ jsx(Flex, { className: "me-4 h-[30px] w-[30px] items-center justify-center rounded border border-light-7", children: /* @__PURE__ */ jsx(Icon, { name: isFa ? "Chevron_Right" : "Chevron_Left", color: colors.primary }) }) : type === "prev" ? /* @__PURE__ */ jsx(Flex, { className: "h-[30px] w-[30px] items-center justify-center rounded border border-light-7", children: /* @__PURE__ */ jsx(Icon, { name: isFa ? "Chevron_Left" : "Chevron_Right", color: colors.primary }) }) : /* @__PURE__ */ jsx(Text, { size: 18, children: "..." }) });
608
- };
609
- const CHANGE_ORDER = "CHANGE_ORDER";
610
- const CHANGE_PAGE = "CHANGE_PAGE";
611
- const CHANGE = "CHANGE";
612
- const PAGE_SEARCH_PARAM = "page";
613
- const initialState = {
531
+ ) : t === "next" ? /* @__PURE__ */ r(s, { className: "me-4 h-[30px] w-[30px] items-center justify-center rounded border border-light-7", children: /* @__PURE__ */ r(v, { name: a ? "Chevron_Right" : "Chevron_Left", color: o.primary }) }) : t === "prev" ? /* @__PURE__ */ r(s, { className: "h-[30px] w-[30px] items-center justify-center rounded border border-light-7", children: /* @__PURE__ */ r(v, { name: a ? "Chevron_Left" : "Chevron_Right", color: o.primary }) }) : /* @__PURE__ */ r(m, { size: 18, children: "..." }) });
532
+ }, rr = "CHANGE_ORDER", ee = "CHANGE_PAGE", re = "CHANGE", X = "page", tr = {
614
533
  order: void 0,
615
534
  orderBy: "",
616
535
  pageSize: 10,
617
536
  current: 1,
618
537
  filters: {}
619
538
  };
620
- function reducer(state, action) {
621
- switch (action.type) {
622
- case CHANGE_ORDER:
539
+ function nr(e, t) {
540
+ switch (t.type) {
541
+ case rr:
623
542
  return {
624
- ...state,
625
- orderBy: action.payload.orderBy,
626
- order: action.payload.order
543
+ ...e,
544
+ orderBy: t.payload.orderBy,
545
+ order: t.payload.order
627
546
  };
628
- case CHANGE_PAGE:
547
+ case ee:
629
548
  return {
630
- ...state,
631
- current: action.payload.current,
632
- pageSize: action.payload.pageSize === void 0 ? state.pageSize : action.payload.pageSize
549
+ ...e,
550
+ current: t.payload.current,
551
+ pageSize: t.payload.pageSize === void 0 ? e.pageSize : t.payload.pageSize
633
552
  };
634
- case CHANGE:
553
+ case re:
635
554
  return {
636
- ...state,
637
- current: action.payload.current,
638
- pageSize: action.payload.pageSize ?? state.pageSize,
639
- order: action.payload.order,
640
- orderBy: action.payload.orderBy,
641
- filters: action.payload.filters
555
+ ...e,
556
+ current: t.payload.current,
557
+ pageSize: t.payload.pageSize ?? e.pageSize,
558
+ order: t.payload.order,
559
+ orderBy: t.payload.orderBy,
560
+ filters: t.payload.filters
642
561
  };
643
562
  default:
644
- return state;
563
+ return e;
645
564
  }
646
565
  }
647
- function usePagination({
648
- defaultCurrent = 1,
649
- defaultPageSize = 10,
650
- hasQueryParams = false,
651
- hideOnSinglePage,
652
- style,
653
- ...rest
566
+ function or({
567
+ defaultCurrent: e = 1,
568
+ defaultPageSize: t = 10,
569
+ hasQueryParams: n = !1,
570
+ hideOnSinglePage: a,
571
+ style: i,
572
+ ...l
654
573
  }) {
655
- const { isSmallerThanMedium } = useObserveWindow();
656
- const navigate = useNavigate();
657
- const [searchParams] = useSearchParams();
658
- const [localPageSize, setLocalPageSize] = useLocalStorageState(
659
- PAGINATION_SIZE,
660
- defaultPageSize
661
- );
662
- const [total, setTotal] = useState(0);
663
- const { i18n } = useTranslation();
664
- const [{ current, order, orderBy, pageSize, filters }, dispatch] = useReducer(
665
- reducer,
574
+ const { isSmallerThanMedium: d } = Te(), g = ze(), [c] = Be(), [f, w] = Ee(
575
+ Z,
576
+ t
577
+ ), [p, x] = O(0), { i18n: R } = H(), [{ current: C, order: T, orderBy: P, pageSize: N, filters: A }, $] = xe(
578
+ nr,
666
579
  {
667
- ...initialState,
668
- pageSize: localPageSize,
669
- current: hasQueryParams ? Number(searchParams.get(PAGE_SEARCH_PARAM) || String(defaultCurrent)) : defaultCurrent
580
+ ...tr,
581
+ pageSize: f,
582
+ current: n ? Number(c.get(X) || String(e)) : e
670
583
  }
671
584
  );
672
- localStorage.removeItem(PAGINATION_SIZE);
673
- const onChange = useCallback(
674
- (pagination2, filters2, sorter) => {
675
- const sort = Array.isArray(sorter) ? sorter[0] : sorter;
676
- setLocalPageSize(pagination2.pageSize || defaultPageSize);
677
- dispatch({
678
- type: CHANGE,
585
+ localStorage.removeItem(Z);
586
+ const y = L(
587
+ (b, B, j) => {
588
+ const D = Array.isArray(j) ? j[0] : j;
589
+ w(b.pageSize || t), $({
590
+ type: re,
679
591
  payload: {
680
- filters: filters2,
681
- current: pagination2.current,
682
- pageSize: pagination2.pageSize,
683
- orderBy: Array.isArray(sort?.field) ? sort?.field[0] : sort?.field,
684
- order: sort?.order
592
+ filters: B,
593
+ current: b.current,
594
+ pageSize: b.pageSize,
595
+ orderBy: Array.isArray(D?.field) ? D?.field[0] : D?.field,
596
+ order: D?.order
685
597
  }
686
598
  });
687
599
  },
688
- [defaultPageSize, setLocalPageSize]
689
- );
690
- const handleInternalPagination = (page, pageSize2) => {
691
- dispatch({ type: CHANGE_PAGE, payload: { current: page, pageSize: pageSize2 } });
692
- };
693
- const getTotal = (total2) => setTotal(total2 || defaultPageSize);
694
- useEffect(() => {
695
- if (hasQueryParams) {
696
- navigate({ search: `?${PAGE_SEARCH_PARAM}=${current}` }, { replace: true });
697
- }
698
- }, [current, hasQueryParams]);
699
- const pagination = {
700
- total,
701
- current,
702
- pageSize,
703
- defaultCurrent,
704
- defaultPageSize,
705
- onChange: handleInternalPagination,
600
+ [t, w]
601
+ ), I = (b, B) => {
602
+ $({ type: ee, payload: { current: b, pageSize: B } });
603
+ }, h = (b) => x(b || t);
604
+ W(() => {
605
+ n && g({ search: `?${X}=${C}` }, { replace: !0 });
606
+ }, [C, n]);
607
+ const k = {
608
+ total: p,
609
+ current: C,
610
+ pageSize: N,
611
+ defaultCurrent: e,
612
+ defaultPageSize: t,
613
+ onChange: I,
706
614
  pageSizeOptions: ["10", "20", "30"],
707
- showSizeChanger: true,
708
- hideOnSinglePage,
615
+ showSizeChanger: !0,
616
+ hideOnSinglePage: a,
709
617
  className: "border border-negative",
710
618
  style: {
711
- backgroundColor: colors.white_ff,
712
- paddingInline: isSmallerThanMedium ? 4 : 24,
619
+ backgroundColor: o.white_ff,
620
+ paddingInline: d ? 4 : 24,
713
621
  paddingBlock: 16,
714
622
  margin: 0,
715
- borderTop: `1px solid ${colors.light_7}`,
623
+ borderTop: `1px solid ${o.light_7}`,
716
624
  flexDirection: "row-reverse",
717
625
  justifyContent: "flex-start",
718
626
  border: "none",
719
- ...style
627
+ ...i
720
628
  },
721
- showPrevNextJumpers: true,
722
- showQuickJumper: true,
629
+ showPrevNextJumpers: !0,
630
+ showQuickJumper: !0,
723
631
  rootClassName: "flex items-center [&_.ant-select-dropdown]:!p-0 [&_.ant-pagination-options]:flex [&_.ant-pagination-options]:items-center [&_.ant-pagination-options]:justify-between [&_.ant-pagination-options]:flex-1",
724
632
  // selectComponentClass: () => SelectComponentClass({ filters, onChange, pageSize, pagination }),
725
- itemRender: (page, type) => ItemRender({ current, page, type, isFa: i18n.language === "fa" }),
726
- ...rest
633
+ itemRender: (b, B) => er({ current: C, page: b, type: B, isFa: R.language === "fa" }),
634
+ ...l
727
635
  };
728
636
  return {
729
- filters,
730
- current,
731
- pageSize,
732
- pagination,
733
- order,
734
- orderBy,
735
- onChange,
736
- getTotal
637
+ filters: A,
638
+ current: C,
639
+ pageSize: N,
640
+ pagination: k,
641
+ order: T,
642
+ orderBy: P,
643
+ onChange: y,
644
+ getTotal: h
737
645
  };
738
646
  }
739
- const Table = ({
740
- className,
741
- children,
742
- expandable,
743
- rowSelection,
744
- size,
745
- pagination,
746
- loading,
747
- transparentHeader,
748
- internalScroll = true,
749
- extraHeight = 100,
750
- footer,
751
- theme,
752
- dndSort,
753
- components,
754
- ...rest
647
+ const E = ({
648
+ className: e,
649
+ children: t,
650
+ expandable: n,
651
+ rowSelection: a,
652
+ size: i,
653
+ pagination: l,
654
+ loading: d,
655
+ transparentHeader: g,
656
+ internalScroll: c = !0,
657
+ extraHeight: f = 100,
658
+ footer: w,
659
+ theme: p,
660
+ dndSort: x,
661
+ components: R,
662
+ ...C
755
663
  }) => {
756
- const [scrollY, setScrollY] = useState();
757
- const ref = useRef(null);
758
- useEffect(() => {
759
- if (!ref.current) {
760
- return;
761
- }
762
- setScrollY(
763
- window.innerHeight - ref.current.offsetTop - 46 - (pagination ? 65 : 0) - extraHeight
664
+ const [T, P] = O(), N = Se(null);
665
+ W(() => {
666
+ N.current && P(
667
+ window.innerHeight - N.current.offsetTop - 46 - (l ? 65 : 0) - f
764
668
  );
765
- }, [pagination, theme?.components?.Table?.headerBg]);
766
- const columns = useMemo(() => {
767
- function getChildren(_children) {
768
- if (!_children) {
669
+ }, [l, p?.components?.Table?.headerBg]);
670
+ const A = V(() => {
671
+ function y(h) {
672
+ if (!h)
769
673
  return [];
770
- }
771
- if (typeof _children === "boolean" || typeof _children === "undefined" || _children === null) {
674
+ if (typeof h == "boolean" || typeof h > "u" || h === null)
772
675
  return [];
773
- }
774
- if (typeof _children !== "object") {
676
+ if (typeof h != "object")
775
677
  throw new Error("Table children must be Column");
678
+ if (!Array.isArray(h)) {
679
+ if (h.type === K)
680
+ return [{
681
+ ...h.props,
682
+ child: h
683
+ }];
684
+ if (h.type === ve)
685
+ return y(h.props?.children);
776
686
  }
777
- if (!Array.isArray(_children)) {
778
- if (_children.type === Column) {
779
- const result = {
780
- ..._children.props,
781
- child: _children
782
- };
783
- return [result];
784
- }
785
- if (_children.type === Fragment$1) {
786
- return getChildren(_children.props?.children);
787
- }
788
- }
789
- return (_children || [])?.flatMap((child) => {
790
- return getChildren(child);
791
- });
687
+ return (h || [])?.flatMap((k) => y(k));
792
688
  }
793
- const mappedChildren = getChildren(children);
794
- return mappedChildren;
795
- }, [children]);
796
- const Provider = ({ children: children2 }) => dndSort === void 0 ? /* @__PURE__ */ jsx(Fragment, { children: children2 }) : /* @__PURE__ */ jsx(
797
- DndSortProvider,
689
+ return y(t);
690
+ }, [t]), $ = ({ children: y }) => x === void 0 ? /* @__PURE__ */ r(F, { children: y }) : /* @__PURE__ */ r(
691
+ Ke,
798
692
  {
799
- children: children2,
800
- onDragEnd: dndSort.onDragEnd,
801
- dataSource: rest.dataSource,
802
- rowKey: rest.rowKey
693
+ children: y,
694
+ onDragEnd: x.onDragEnd,
695
+ dataSource: C.dataSource,
696
+ rowKey: C.rowKey
803
697
  }
804
698
  );
805
- return /* @__PURE__ */ jsx(ConfigProvider, { theme: CustomizedAntTableConfig(theme), children: /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsxs(
806
- Table$1,
699
+ return /* @__PURE__ */ r(Q, { theme: Je(p), children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ u(
700
+ U,
807
701
  {
808
- ref,
702
+ ref: N,
809
703
  loading: {
810
- indicator: /* @__PURE__ */ jsx(Flex, { className: "items-center justify-center", children: /* @__PURE__ */ jsx(Loading, { isLoading: true, size: 32, thickness: 3 }) }),
811
- spinning: !!loading
704
+ indicator: /* @__PURE__ */ r(s, { className: "items-center justify-center", children: /* @__PURE__ */ r(fe, { isLoading: !0, size: 32, thickness: 3 }) }),
705
+ spinning: !!d
812
706
  },
813
- scroll: internalScroll ? { y: scrollY } : void 0,
814
- className: twMerge(
815
- tailwindTableClasses,
707
+ scroll: c ? { y: T } : void 0,
708
+ className: S(
709
+ Ye,
816
710
  "abrplus-table-custom-scroll-bar w-full !animate-none [&_.ant-table-thead_th]:!pt-2",
817
- !!expandable && !!rowSelection && "[&_.ant-table-selection-column]:!ps-0",
818
- transparentHeader && tableTransparentHeaderClasses,
819
- className
711
+ !!n && !!a && "[&_.ant-table-selection-column]:!ps-0",
712
+ g && Ue,
713
+ e
820
714
  ),
821
- rowSelection,
822
- expandable: expandable ? {
823
- ...expandable,
715
+ rowSelection: a,
716
+ expandable: n ? {
717
+ ...n,
824
718
  expandedRowClassName: () => "[&_.ant-table-cell]:!p-0 [&_.ant-table-row-expand-icon-cell]:!p-0 ",
825
- expandIcon: ({ expandable: expandable2, expanded, onExpand, record }) => /* @__PURE__ */ jsx(
826
- ExpandIcon,
719
+ expandIcon: ({ expandable: y, expanded: I, onExpand: h, record: k }) => /* @__PURE__ */ r(
720
+ We,
827
721
  {
828
- ...{ expandable: expandable2, expanded },
829
- onExpand: (e) => onExpand?.(record, e)
722
+ expandable: y,
723
+ expanded: I,
724
+ onExpand: (b) => h?.(k, b)
830
725
  }
831
726
  )
832
727
  } : void 0,
833
- pagination,
834
- footer,
835
- components: dndSort ? { body: { row: DndRow } } : components,
836
- ...rest,
728
+ pagination: l,
729
+ footer: w,
730
+ components: x ? { body: { row: qe } } : R,
731
+ ...C,
837
732
  children: [
838
- dndSort && /* @__PURE__ */ jsx(Table.Column, { align: "center", width: 80, render: () => /* @__PURE__ */ jsx(DragHandle, {}) }, "sort"),
839
- columns.map(
733
+ x && /* @__PURE__ */ r(E.Column, { align: "center", width: 80, render: () => /* @__PURE__ */ r(Xe, {}) }, "sort"),
734
+ A.map(
840
735
  ({
841
- render,
842
- children: children2,
843
- dataIndex,
844
- align,
845
- headerStyle,
846
- headerClassName,
847
- className: className2,
848
- filtersOptions,
849
- sortIconOptions,
850
- ...rest2
851
- }, colIndex) => /* @__PURE__ */ jsx(
852
- Table$1.Column,
736
+ render: y,
737
+ children: I,
738
+ dataIndex: h,
739
+ align: k,
740
+ headerStyle: b,
741
+ headerClassName: B,
742
+ className: j,
743
+ filtersOptions: D,
744
+ sortIconOptions: J,
745
+ ...te
746
+ }, Y) => /* @__PURE__ */ r(
747
+ U.Column,
853
748
  {
854
- ...rest2,
855
- dataIndex: dataIndex?.toString(),
856
- className: twMerge("h-[56px] [&_.ant-table-column-title]:!flex-1", className2),
857
- title: /* @__PURE__ */ jsxs(
858
- Flex,
749
+ ...te,
750
+ dataIndex: h?.toString(),
751
+ className: S("h-[56px] [&_.ant-table-column-title]:!flex-1", j),
752
+ title: /* @__PURE__ */ u(
753
+ s,
859
754
  {
860
755
  className: "ant-table-column-title-content items-center justify-between",
861
756
  flex: 1,
862
757
  children: [
863
- /* @__PURE__ */ jsx(
864
- TableHeaderTitle,
758
+ /* @__PURE__ */ r(
759
+ Ve,
865
760
  {
866
- title: children2,
867
- align,
868
- style: headerStyle,
869
- className: headerClassName
761
+ title: I,
762
+ align: k,
763
+ style: b,
764
+ className: B
870
765
  }
871
766
  ),
872
- filtersOptions?.renderFilter?.()
767
+ D?.renderFilter?.()
873
768
  ]
874
769
  }
875
770
  ),
876
- render: (value, row, index) => /* @__PURE__ */ jsx(
877
- Flex,
771
+ render: (M, ne, oe) => /* @__PURE__ */ r(
772
+ s,
878
773
  {
879
- className: twMerge("items-center", rowHeightClassName[size || "large"]),
774
+ className: S("items-center", Ze[i || "large"]),
880
775
  style: {
881
776
  wordWrap: "break-word",
882
777
  wordBreak: "break-word",
883
- paddingInlineEnd: colIndex === columns.length - 1 ? 24 : void 0
778
+ paddingInlineEnd: Y === A.length - 1 ? 24 : void 0
884
779
  },
885
- children: render ? render({ index, row, value }) : /* @__PURE__ */ jsx(TableCell, { children: value })
780
+ children: y ? y({ index: oe, row: ne, value: M }) : /* @__PURE__ */ r(z, { children: M })
886
781
  }
887
782
  ),
888
- showSorterTooltip: false,
889
- sortIcon: ({ sortOrder }) => {
890
- return /* @__PURE__ */ jsxs(
891
- Flex,
892
- {
893
- vertical: true,
894
- ...sortIconOptions,
895
- className: twMerge(
896
- "table-filters-sort flex-[4] ps-2",
897
- sortIconOptions?.className
783
+ showSorterTooltip: !1,
784
+ sortIcon: ({ sortOrder: M }) => /* @__PURE__ */ u(
785
+ s,
786
+ {
787
+ vertical: !0,
788
+ ...J,
789
+ className: S(
790
+ "table-filters-sort flex-[4] ps-2",
791
+ J?.className
792
+ ),
793
+ children: [
794
+ /* @__PURE__ */ r(
795
+ v,
796
+ {
797
+ size: 12,
798
+ color: M === "ascend" ? o.primary : o.primary_light_3,
799
+ name: "Chevron_Up",
800
+ style: { marginBottom: -4 }
801
+ }
898
802
  ),
899
- children: [
900
- /* @__PURE__ */ jsx(
901
- Icon,
902
- {
903
- size: 12,
904
- color: sortOrder === "ascend" ? colors.primary : colors.primary_light_3,
905
- name: "Chevron_Up",
906
- style: { marginBottom: -4 }
907
- }
908
- ),
909
- /* @__PURE__ */ jsx(
910
- Icon,
911
- {
912
- size: 12,
913
- color: sortOrder === "descend" ? colors.primary : colors.primary_light_3,
914
- name: "Chevron_Down"
915
- }
916
- )
917
- ]
918
- }
919
- );
920
- }
803
+ /* @__PURE__ */ r(
804
+ v,
805
+ {
806
+ size: 12,
807
+ color: M === "descend" ? o.primary : o.primary_light_3,
808
+ name: "Chevron_Down"
809
+ }
810
+ )
811
+ ]
812
+ }
813
+ )
921
814
  },
922
- colIndex
815
+ Y
923
816
  )
924
817
  )
925
818
  ]
926
819
  }
927
820
  ) }) });
928
821
  };
929
- Table.Cell = TableCell;
930
- Table.Column = Column;
931
- Table.Currency = TableCell.Currency;
932
- Table.Date = TableCell.Date;
933
- Table.Status = TableCell.StatusCell;
934
- Table.usePagination = usePagination;
822
+ E.Cell = z;
823
+ E.Column = K;
824
+ E.Currency = z.Currency;
825
+ E.Date = z.Date;
826
+ E.Status = z.StatusCell;
827
+ E.usePagination = or;
935
828
  export {
936
- AvatarGroup,
937
- Drawer,
938
- Modal,
939
- Table
829
+ br as AvatarGroup,
830
+ wr as Drawer,
831
+ Cr as Modal,
832
+ E as Table
940
833
  };