@aveonline/ui-react 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ export declare type ITooltipProps = {
10
10
  initialOpen?: boolean;
11
11
  fullWidthContainer?: boolean;
12
12
  classNameContainer?: string;
13
+ className?: string;
13
14
  /**
14
15
  * Content children portal custom
15
16
  */
@@ -3,5 +3,5 @@ import { ITooltipProps } from './ITooltip';
3
3
  /**
4
4
  * Floating labels that briefly explain the function of a user interface element. They can be triggered when merchants hover.
5
5
  */
6
- declare function Tooltip({ placement, title, description, initialOpen, fullWidthContainer, classNameContainer, asChild, withClick, content, children }: ITooltipProps): JSX.Element;
6
+ declare function Tooltip({ placement, title, description, initialOpen, fullWidthContainer, classNameContainer, asChild, withClick, content, children, className }: ITooltipProps): JSX.Element;
7
7
  export default Tooltip;
@@ -1,6 +1,5 @@
1
1
  export { default as InputSearch } from './InputSearch';
2
- export { default as Pagination } from './Pagination';
3
2
  export { default as SortTable } from './SortTable';
4
3
  export * from './ISortTable';
5
- export * from './IPagination';
6
4
  export * from './Table';
5
+ export * from './pagination';
@@ -2,7 +2,8 @@ import { MouseEventHandler } from 'react';
2
2
  import { Table } from '@tanstack/react-table';
3
3
  interface IOptionPagination {
4
4
  optionsPages: number[];
5
- currentPage: (value: number) => void;
5
+ currentPage: number;
6
+ changeCurrentPage: (value: number) => void;
6
7
  totalPages: number;
7
8
  pageSize?: (value: number) => void;
8
9
  hasCanPreviousPage: boolean;
@@ -0,0 +1,2 @@
1
+ export * from './IPagination';
2
+ export { default as Pagination } from './Pagination';
@@ -0,0 +1,9 @@
1
+ import { IOptionPagination } from './IPagination';
2
+ export declare function usePagination(optionPagination: IOptionPagination): {
3
+ isMobile: boolean;
4
+ currentPage: number;
5
+ positionPages: number[];
6
+ onChangePage: (item: number) => void;
7
+ onPreviousPage: () => void;
8
+ onNextPage: () => void;
9
+ };
package/dist/ui-react.mjs CHANGED
@@ -1037,7 +1037,7 @@ const Oa = Xe((e, t) => {
1037
1037
  const { attributes: n, getClass: r } = Dm(e), { children: i, as: a = "p" } = e;
1038
1038
  return /* @__PURE__ */ b.jsx(a, { className: r, ...n, ref: t, children: i });
1039
1039
  });
1040
- function wae({
1040
+ function Sae({
1041
1041
  kind: e = "default",
1042
1042
  variant: t,
1043
1043
  className: n,
@@ -2618,7 +2618,7 @@ let Mx = "div", l7 = qr.RenderStrategy, u7 = Lt(function(e, t) {
2618
2618
  let n = $t(Q1) !== null, r = Kl() !== null;
2619
2619
  return z.createElement(z.Fragment, null, !n && r ? z.createElement(w2, { ref: t, ...e }) : z.createElement(u7, { ref: t, ...e }));
2620
2620
  }), nu = Object.assign(w2, { Child: kx, Root: w2 });
2621
- function Sae({
2621
+ function Oae({
2622
2622
  onChange: e,
2623
2623
  isSelected: t = !1,
2624
2624
  isDisabled: n,
@@ -5634,9 +5634,10 @@ function L7({
5634
5634
  asChild: o = !1,
5635
5635
  withClick: s = !1,
5636
5636
  content: l,
5637
- children: u
5637
+ children: u,
5638
+ className: c
5638
5639
  }) {
5639
- const c = hw({ initialOpen: r, placement: e, withClick: s }), f = () => l ? /* @__PURE__ */ b.jsx(b.Fragment, { children: l }) : /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
5640
+ const f = hw({ initialOpen: r, placement: e, withClick: s }), g = () => l ? /* @__PURE__ */ b.jsx(b.Fragment, { children: l }) : /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
5640
5641
  /* @__PURE__ */ b.jsx(Re, { variant: "highlight", color: "default", className: "mb-1", children: t }),
5641
5642
  /* @__PURE__ */ b.jsx(Re, { variant: "body", color: "subdued", children: n })
5642
5643
  ] });
@@ -5644,7 +5645,7 @@ function L7({
5644
5645
  /* @__PURE__ */ b.jsx(
5645
5646
  pw,
5646
5647
  {
5647
- state: c,
5648
+ state: f,
5648
5649
  asChild: o,
5649
5650
  fullWidthContainer: i,
5650
5651
  classNameContainer: a,
@@ -5654,9 +5655,12 @@ function L7({
5654
5655
  /* @__PURE__ */ b.jsx(
5655
5656
  gw,
5656
5657
  {
5657
- state: c,
5658
- className: "w-max max-w-[368px] rounded-[5px] bg-surface-default py-[12px] px-[16px] drop-shadow-[0px_2px_10px_rgba(0,0,0,0.1)]",
5659
- children: f()
5658
+ state: f,
5659
+ className: K(
5660
+ "w-max max-w-[368px] rounded-[5px] bg-surface-default py-[12px] px-[16px] drop-shadow-[0px_2px_10px_rgba(0,0,0,0.1)]",
5661
+ c
5662
+ ),
5663
+ children: g()
5660
5664
  }
5661
5665
  )
5662
5666
  ] });
@@ -5724,7 +5728,7 @@ const vw = Xe((e, t) => {
5724
5728
  ] })
5725
5729
  ] }) });
5726
5730
  });
5727
- function Oae({
5731
+ function Bae({
5728
5732
  track: e,
5729
5733
  isDisabled: t = !1,
5730
5734
  isSelected: n = !1,
@@ -10251,7 +10255,7 @@ const uu = (e) => /* @__PURE__ */ b.jsx(ni.DropdownIndicator, { ...e, children:
10251
10255
  ) })
10252
10256
  ] });
10253
10257
  };
10254
- function Bae({
10258
+ function Rae({
10255
10259
  options: e,
10256
10260
  placeholder: t = "",
10257
10261
  defaultValue: n,
@@ -10375,7 +10379,7 @@ var JB = /* @__PURE__ */ Xe(function(e, t) {
10375
10379
  }, r));
10376
10380
  });
10377
10381
  const qB = JB;
10378
- function Rae({
10382
+ function Pae({
10379
10383
  placeholder: e = "",
10380
10384
  id: t = "default-async",
10381
10385
  name: n = "default-async",
@@ -10488,7 +10492,7 @@ const KB = ({
10488
10492
  }
10489
10493
  ) });
10490
10494
  };
10491
- function Pae({
10495
+ function Mae({
10492
10496
  options: e,
10493
10497
  placeholder: t = "",
10494
10498
  defaultValue: n,
@@ -10646,7 +10650,7 @@ const T6 = ({ isDisabled: e }) => /* @__PURE__ */ b.jsx(
10646
10650
  }
10647
10651
  )
10648
10652
  ] }) });
10649
- function Mae({
10653
+ function kae({
10650
10654
  id: e = "default-country",
10651
10655
  name: t = "default-country",
10652
10656
  placeholder: n = "",
@@ -10775,7 +10779,7 @@ var lR = /* @__PURE__ */ Xe(function(e, t) {
10775
10779
  }, i));
10776
10780
  });
10777
10781
  const uR = lR;
10778
- function kae({
10782
+ function Tae({
10779
10783
  placeholder: e = "",
10780
10784
  id: t = "default-async-creatable",
10781
10785
  name: n = "default-async-creatable",
@@ -10872,7 +10876,7 @@ function kae({
10872
10876
  }
10873
10877
  );
10874
10878
  }
10875
- function Tae({
10879
+ function Nae({
10876
10880
  tabs: e,
10877
10881
  variant: t = "default",
10878
10882
  defaultIndex: n,
@@ -11003,7 +11007,7 @@ function Bp({
11003
11007
  )
11004
11008
  ] });
11005
11009
  }
11006
- function Nae({
11010
+ function jae({
11007
11011
  title: e,
11008
11012
  iconTitle: t,
11009
11013
  subtitle: n,
@@ -11039,7 +11043,7 @@ function Nae({
11039
11043
  {
11040
11044
  open: i,
11041
11045
  onClose: (g) => s == null ? void 0 : s(g),
11042
- className: "relative z-50",
11046
+ className: K("relative z-50", l),
11043
11047
  children: [
11044
11048
  /* @__PURE__ */ b.jsx("div", { className: "fixed inset-0 bg-background-modal", "aria-hidden": "true" }),
11045
11049
  /* @__PURE__ */ b.jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ b.jsx("div", { className: "flex min-h-full items-center justify-center", children: /* @__PURE__ */ b.jsxs(
@@ -11296,7 +11300,7 @@ function dR(e, { locales: t = "es-CO", currency: n = "COP", fractionDigits: r =
11296
11300
  minimumFractionDigits: r
11297
11301
  }).format(e ?? 0);
11298
11302
  }
11299
- function jae({
11303
+ function Dae({
11300
11304
  icon: e,
11301
11305
  isSelected: t = !1,
11302
11306
  title: n,
@@ -11382,7 +11386,7 @@ function jae({
11382
11386
  }
11383
11387
  );
11384
11388
  }
11385
- function Dae({
11389
+ function Fae({
11386
11390
  hasLogo: e = !1,
11387
11391
  className: t = "",
11388
11392
  menuMovil: n,
@@ -11433,7 +11437,7 @@ function Dae({
11433
11437
  }
11434
11438
  );
11435
11439
  }
11436
- function Fae({
11440
+ function Lae({
11437
11441
  children: e,
11438
11442
  onClose: t,
11439
11443
  isOpen: n
@@ -13233,7 +13237,7 @@ cl.Delete = function(t) {
13233
13237
  const { children: n, inputValue: r } = t;
13234
13238
  return (typeof r == "number" ? r > 0 : r) ? /* @__PURE__ */ b.jsx("span", { children: n }) : /* @__PURE__ */ b.jsx(b.Fragment, {});
13235
13239
  };
13236
- const Lae = Xe((e, t) => {
13240
+ const Vae = Xe((e, t) => {
13237
13241
  const {
13238
13242
  id: n,
13239
13243
  name: r,
@@ -13414,7 +13418,7 @@ const Lae = Xe((e, t) => {
13414
13418
  )
13415
13419
  ] });
13416
13420
  });
13417
- function Vae({
13421
+ function Qae({
13418
13422
  kind: e = "default",
13419
13423
  icon: t,
13420
13424
  description: n,
@@ -15448,7 +15452,7 @@ function zR({
15448
15452
  }
15449
15453
  );
15450
15454
  }
15451
- function Qae({
15455
+ function Hae({
15452
15456
  type: e,
15453
15457
  valueInput: t,
15454
15458
  textInsideInput: n,
@@ -15463,7 +15467,7 @@ function Qae({
15463
15467
  }) {
15464
15468
  const [f, g] = he(s), p = !Fa("(min-width: 768px)"), [v, d] = he(o), [h, A] = he(
15465
15469
  l
15466
- ), [C, m] = he(0), [y, E] = he(!1);
15470
+ ), [C, m] = he(o ? 2 : 0), [y, E] = he(!1);
15467
15471
  function x(O, M) {
15468
15472
  A(O === null ? null : O), g(M), M != null ? t([
15469
15473
  new Dt.DateObject({
@@ -15572,7 +15576,7 @@ function Qae({
15572
15576
  )
15573
15577
  ] });
15574
15578
  }
15575
- function Hae({
15579
+ function Gae({
15576
15580
  children: e,
15577
15581
  isSmall: t = !1,
15578
15582
  onClick: n,
@@ -15628,7 +15632,7 @@ function WR({ helpText: e, error: t, showErrorText: n }) {
15628
15632
  (t || n) && !e && /* @__PURE__ */ b.jsx(Bp, { icon: "error", children: t })
15629
15633
  ] }) : /* @__PURE__ */ b.jsx(b.Fragment, {});
15630
15634
  }
15631
- const Gae = Xe(
15635
+ const Zae = Xe(
15632
15636
  (e, t) => {
15633
15637
  const {
15634
15638
  error: n,
@@ -33227,7 +33231,7 @@ var Qy = function(t, n, r, i) {
33227
33231
  }],
33228
33232
  formatAxisMap: Ry
33229
33233
  });
33230
- function Zae({
33234
+ function zae({
33231
33235
  variant: e,
33232
33236
  width: t = 600,
33233
33237
  height: n = 600,
@@ -33302,7 +33306,7 @@ const $d = {
33302
33306
  violet: "#9D2FAE",
33303
33307
  pink: "#F56270"
33304
33308
  }, qu = (e) => Object.keys($d).includes(e) ? $d[e] : $d.cyan;
33305
- function zae({
33309
+ function Wae({
33306
33310
  className: e,
33307
33311
  data: t,
33308
33312
  cells: n,
@@ -33352,7 +33356,7 @@ function zae({
33352
33356
  ))
33353
33357
  ] }) });
33354
33358
  }
33355
- function Wae({
33359
+ function Xae({
33356
33360
  title: e,
33357
33361
  subtitle: t,
33358
33362
  defaultOpen: n = !1,
@@ -33414,7 +33418,7 @@ function Wae({
33414
33418
  )
33415
33419
  ] }) });
33416
33420
  }
33417
- function Xae({
33421
+ function Yae({
33418
33422
  name: e,
33419
33423
  email: t,
33420
33424
  items: n,
@@ -33479,7 +33483,7 @@ function Xae({
33479
33483
  )
33480
33484
  ] }) });
33481
33485
  }
33482
- function Yae({
33486
+ function _ae({
33483
33487
  icon: e,
33484
33488
  options: t,
33485
33489
  onSelected: n,
@@ -34218,7 +34222,7 @@ const Xy = "Popper", [Yy, _y] = Zy(Xy), [Wte, $y] = Yy(Xy), Xte = (e) => {
34218
34222
  }), r ? null : /* @__PURE__ */ Ge(Rs.div, ye({}, i, {
34219
34223
  ref: s
34220
34224
  }));
34221
- }), Uy = "PopperContent", [$te, _ae] = Yy(Uy), Ute = /* @__PURE__ */ Xe((e, t) => {
34225
+ }), Uy = "PopperContent", [$te, $ae] = Yy(Uy), Ute = /* @__PURE__ */ Xe((e, t) => {
34222
34226
  var n, r, i, a, o, s, l, u;
34223
34227
  const { __scopePopper: c, side: f = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: v = 0, arrowPadding: d = 0, collisionBoundary: h = [], collisionPadding: A = 0, sticky: C = "partial", hideWhenDetached: m = !1, avoidCollisions: y = !0, onPlaced: E, ...x } = e, I = $y(Uy, c), [w, B] = he(null), N = $a(
34224
34228
  t,
@@ -34911,7 +34915,7 @@ var lb = S.forwardRef(function(e, t) {
34911
34915
  return S.createElement(Bf, Gn({}, e, { ref: t, sideCar: jne }));
34912
34916
  });
34913
34917
  lb.classNames = Bf.classNames;
34914
- const Dne = lb, ub = "Popover", [cb, $ae] = Zy(ub, [
34918
+ const Dne = lb, ub = "Popover", [cb, Uae] = Zy(ub, [
34915
34919
  _y
34916
34920
  ]), Qh = _y(), [Fne, Ps] = cb(ub), Lne = (e) => {
34917
34921
  const { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Qh(t), l = de(null), [u, c] = he(!1), [f = !1, g] = ane({
@@ -35906,7 +35910,7 @@ var Eb = S.forwardRef(function(e, t) {
35906
35910
  return S.createElement(Mf, Gn({}, e, { ref: t, sideCar: Lre }));
35907
35911
  });
35908
35912
  Eb.classNames = Mf.classNames;
35909
- const Vre = Eb, xb = "Dialog", [Ib, Uae] = Kne(xb), [Qre, Ua] = Ib(xb), Hre = (e) => {
35913
+ const Vre = Eb, xb = "Dialog", [Ib, Jae] = Kne(xb), [Qre, Ua] = Ib(xb), Hre = (e) => {
35910
35914
  const { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = de(null), l = de(null), [u = !1, c] = rre({
35911
35915
  prop: r,
35912
35916
  defaultProp: i,
@@ -36422,7 +36426,7 @@ const Bg = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
36422
36426
  }
36423
36427
  ));
36424
36428
  Bg.displayName = dr.Item.displayName;
36425
- function Jae({
36429
+ function qae({
36426
36430
  title: e = "",
36427
36431
  titleNotFound: t = "No hay coincidencias",
36428
36432
  placeholderSearch: n = "Buscar",
@@ -39345,6 +39349,126 @@ function vae({
39345
39349
  )
39346
39350
  ] });
39347
39351
  }
39352
+ function mae({
39353
+ table: e,
39354
+ sortItem: t,
39355
+ checkBoxSelect: n,
39356
+ titleSortTable: r
39357
+ }) {
39358
+ return /* @__PURE__ */ b.jsx(
39359
+ hn,
39360
+ {
39361
+ as: "div",
39362
+ className: K(
39363
+ n,
39364
+ "relative inline-block text-left h-14 bg-action-secondary-default"
39365
+ ),
39366
+ children: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
39367
+ /* @__PURE__ */ b.jsx(
39368
+ hn.Button,
39369
+ {
39370
+ className: K(
39371
+ n,
39372
+ "flex flex-row items-center text-center justify-center justify-items-center h-14 px-[18px] pr-8"
39373
+ ),
39374
+ children: /* @__PURE__ */ b.jsxs("div", { className: "flex items-center justify-center gap-x-2", children: [
39375
+ /* @__PURE__ */ b.jsx(vt, { kind: "major-minor", color: "default" }),
39376
+ /* @__PURE__ */ b.jsx(Re, { variant: "button", className: "whitespace-nowrap", children: r })
39377
+ ] })
39378
+ }
39379
+ ),
39380
+ /* @__PURE__ */ b.jsx(
39381
+ nu,
39382
+ {
39383
+ as: _t,
39384
+ enter: "transition ease-out duration-100",
39385
+ enterFrom: "transform opacity-0 scale-95",
39386
+ enterTo: "transform opacity-100 scale-100",
39387
+ leave: "transition ease-in duration-90",
39388
+ leaveFrom: "transform opacity-100 scale-100",
39389
+ leaveTo: "transform opacity-0 scale-95",
39390
+ children: /* @__PURE__ */ b.jsx(hn.Items, { className: "absolute z-10 right-0 mt-2 w-[240px] h-auto origin-top-right divide-y divide-border-subdued rounded-sm bg-action-secondary-default shadow-[0px_2px_10px_0px_#0000001A]", children: /* @__PURE__ */ b.jsx("div", { children: e.getHeaderGroups().map(
39391
+ (i) => i.headers.map(
39392
+ (a) => t.map(
39393
+ (o, s) => o.idHeader === a.id && /* @__PURE__ */ b.jsx(hn.Item, { children: /* @__PURE__ */ b.jsx(
39394
+ Oa,
39395
+ {
39396
+ className: "cursor-pointer h-[36px] pl-4 px-2 flex items-center hover:bg-action-secondary-hovered hover:last:rounded-b-sm hover:first:rounded-t-sm active:bg-action-secondary-pressed",
39397
+ variant: "body",
39398
+ onClick: () => a.column.toggleSorting(
39399
+ o.asc ? !1 : o.desc ?? !1
39400
+ ),
39401
+ children: o.title
39402
+ }
39403
+ ) }, `${a.id}-${s}`)
39404
+ )
39405
+ )
39406
+ ) }) })
39407
+ }
39408
+ )
39409
+ ] })
39410
+ }
39411
+ );
39412
+ }
39413
+ const oC = Xe(
39414
+ ({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
39415
+ "table",
39416
+ {
39417
+ ref: n,
39418
+ className: K("w-full table-auto", e),
39419
+ ...t
39420
+ }
39421
+ )
39422
+ );
39423
+ oC.displayName = "TableContainer";
39424
+ const sC = Xe(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
39425
+ "thead",
39426
+ {
39427
+ ref: n,
39428
+ className: K("bg-surface-neutral-default", e),
39429
+ ...t
39430
+ }
39431
+ ));
39432
+ sC.displayName = "TableHeader";
39433
+ const lC = Xe(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
39434
+ "tbody",
39435
+ {
39436
+ ref: n,
39437
+ className: K(
39438
+ "table--tbody text-center bg-surface-neutral-subdued",
39439
+ e
39440
+ ),
39441
+ ...t
39442
+ }
39443
+ ));
39444
+ lC.displayName = "TableBody";
39445
+ const uC = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("tfoot", { ref: t, ...e }));
39446
+ uC.displayName = "TableFooter";
39447
+ const vo = Xe(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx("tr", { ref: n, className: K(e), ...t }));
39448
+ vo.displayName = "TableRow";
39449
+ const Tg = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("th", { ref: t, ...e }));
39450
+ Tg.displayName = "TableHead";
39451
+ const Ng = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("td", { ref: t, ...e }));
39452
+ Ng.displayName = "TableCell";
39453
+ function Aae(e) {
39454
+ const t = Fa("(min-width: 768px)"), [n, r] = he(
39455
+ e.currentPage - 1
39456
+ ), i = e == null ? void 0 : e.optionsPages.map((l) => l - 1);
39457
+ return {
39458
+ isMobile: t,
39459
+ currentPage: n,
39460
+ positionPages: i,
39461
+ onChangePage: (l) => {
39462
+ e == null || e.changeCurrentPage(l + 1), r(l);
39463
+ },
39464
+ onPreviousPage: () => {
39465
+ n !== 0 && (r(n - 1), e == null || e.changeCurrentPage(n));
39466
+ },
39467
+ onNextPage: () => {
39468
+ r(n + 1), e == null || e.changeCurrentPage(n + 2);
39469
+ }
39470
+ };
39471
+ }
39348
39472
  function h2({
39349
39473
  pageIndex: e,
39350
39474
  currentPage: t,
@@ -39398,18 +39522,19 @@ function h2({
39398
39522
  }
39399
39523
  );
39400
39524
  }
39401
- function mae({
39525
+ function yae({
39402
39526
  table: e,
39403
39527
  options: t,
39404
39528
  optionPagination: n
39405
39529
  }) {
39406
- const r = Fa("(min-width: 768px)"), [i, a] = he(0), o = n == null ? void 0 : n.optionsPages.map((c) => c - 1), s = (c) => {
39407
- n == null || n.currentPage(c + 1), a(c);
39408
- }, l = () => {
39409
- i !== 0 && (a(i - 1), n == null || n.currentPage(i));
39410
- }, u = () => {
39411
- a(i + 1), n == null || n.currentPage(i + 2);
39412
- };
39530
+ const {
39531
+ isMobile: r,
39532
+ currentPage: i,
39533
+ positionPages: a,
39534
+ onChangePage: o,
39535
+ onPreviousPage: s,
39536
+ onNextPage: l
39537
+ } = Aae(n);
39413
39538
  return /* @__PURE__ */ b.jsxs("div", { className: "items-center grid grid-cols-3 mt-4 mb-3", children: [
39414
39539
  /* @__PURE__ */ b.jsx("div", { className: K(r ? "col-start-2" : "col-end-1"), children: /* @__PURE__ */ b.jsxs("div", { className: "flex items-center justify-center gap-2", children: [
39415
39540
  /* @__PURE__ */ b.jsx("span", { className: "flex items-center gap-1 min-w-max", children: /* @__PURE__ */ b.jsxs(Re, { variant: "caption", children: [
@@ -39424,8 +39549,8 @@ function mae({
39424
39549
  {
39425
39550
  className: "focus:ring-none text-letter-default text-xxs p-0 flex justify-center items-center appearance-none bg-none border-transparent ring-transparent focus:shadow-none focus:outline-none focus:border-none",
39426
39551
  value: `${e.getState().pagination.pageSize}`,
39427
- onChange: (c) => (n.pageSize && (n == null || n.pageSize(Number(c.target.value))), e.setPageSize(Number(c.target.value))),
39428
- children: t == null ? void 0 : t.map((c) => /* @__PURE__ */ b.jsx("option", { value: c, children: c }, c))
39552
+ onChange: (u) => (n.pageSize && (n == null || n.pageSize(Number(u.target.value))), e.setPageSize(Number(u.target.value))),
39553
+ children: t == null ? void 0 : t.map((u) => /* @__PURE__ */ b.jsx("option", { value: u, children: u }, u))
39429
39554
  }
39430
39555
  )
39431
39556
  ] }) }),
@@ -39434,7 +39559,7 @@ function mae({
39434
39559
  "button",
39435
39560
  {
39436
39561
  className: "flex justify-center items-center",
39437
- onClick: l,
39562
+ onClick: s,
39438
39563
  disabled: !n.hasCanPreviousPage,
39439
39564
  children: /* @__PURE__ */ b.jsx(
39440
39565
  vt,
@@ -39452,35 +39577,35 @@ function mae({
39452
39577
  "flex flex-row justify-center items-center",
39453
39578
  (n == null ? void 0 : n.totalPages) < 99 ? "gap-2" : (n == null ? void 0 : n.totalPages) > 999 ? "gap-1 mr-1" : "gap-2 mr-2"
39454
39579
  ),
39455
- children: o.map(
39456
- (c) => c === 0 ? /* @__PURE__ */ b.jsx(
39580
+ children: a.map(
39581
+ (u) => u === 0 ? /* @__PURE__ */ b.jsx(
39457
39582
  h2,
39458
39583
  {
39459
39584
  position: "first",
39460
- pageIndex: c,
39585
+ pageIndex: u,
39461
39586
  currentPage: i,
39462
- onClick: () => s(c)
39587
+ onClick: () => o(u)
39463
39588
  },
39464
- c
39465
- ) : c !== 0 && c <= i + 1 && c >= i - 1 && c !== (n == null ? void 0 : n.totalPages) - 1 ? /* @__PURE__ */ b.jsx(
39589
+ u
39590
+ ) : u !== 0 && u <= i + 1 && u >= i - 1 && u !== (n == null ? void 0 : n.totalPages) - 1 ? /* @__PURE__ */ b.jsx(
39466
39591
  h2,
39467
39592
  {
39468
39593
  position: "middle",
39469
- pageIndex: c,
39594
+ pageIndex: u,
39470
39595
  currentPage: i,
39471
- onClick: () => s(c)
39596
+ onClick: () => o(u)
39472
39597
  },
39473
- c
39474
- ) : c === (n == null ? void 0 : n.totalPages) - 1 && /* @__PURE__ */ b.jsx(
39598
+ u
39599
+ ) : u === (n == null ? void 0 : n.totalPages) - 1 && /* @__PURE__ */ b.jsx(
39475
39600
  h2,
39476
39601
  {
39477
39602
  position: "last",
39478
- pageIndex: c,
39603
+ pageIndex: u,
39479
39604
  currentPage: i,
39480
- onClick: () => s(c),
39605
+ onClick: () => o(u),
39481
39606
  lastCount: (n == null ? void 0 : n.totalPages) - 1
39482
39607
  },
39483
- c
39608
+ u
39484
39609
  )
39485
39610
  )
39486
39611
  }
@@ -39489,7 +39614,7 @@ function mae({
39489
39614
  "button",
39490
39615
  {
39491
39616
  className: "flex justify-center items-center",
39492
- onClick: u,
39617
+ onClick: l,
39493
39618
  disabled: !n.hasCanNextPage,
39494
39619
  children: /* @__PURE__ */ b.jsx(
39495
39620
  vt,
@@ -39503,108 +39628,7 @@ function mae({
39503
39628
  ] }) })
39504
39629
  ] });
39505
39630
  }
39506
- function Aae({
39507
- table: e,
39508
- sortItem: t,
39509
- checkBoxSelect: n,
39510
- titleSortTable: r
39511
- }) {
39512
- return /* @__PURE__ */ b.jsx(
39513
- hn,
39514
- {
39515
- as: "div",
39516
- className: K(
39517
- n,
39518
- "relative inline-block text-left h-14 bg-action-secondary-default"
39519
- ),
39520
- children: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
39521
- /* @__PURE__ */ b.jsx(
39522
- hn.Button,
39523
- {
39524
- className: K(
39525
- n,
39526
- "flex flex-row items-center text-center justify-center justify-items-center h-14 px-[18px] pr-8"
39527
- ),
39528
- children: /* @__PURE__ */ b.jsxs("div", { className: "flex items-center justify-center gap-x-2", children: [
39529
- /* @__PURE__ */ b.jsx(vt, { kind: "major-minor", color: "default" }),
39530
- /* @__PURE__ */ b.jsx(Re, { variant: "button", className: "whitespace-nowrap", children: r })
39531
- ] })
39532
- }
39533
- ),
39534
- /* @__PURE__ */ b.jsx(
39535
- nu,
39536
- {
39537
- as: _t,
39538
- enter: "transition ease-out duration-100",
39539
- enterFrom: "transform opacity-0 scale-95",
39540
- enterTo: "transform opacity-100 scale-100",
39541
- leave: "transition ease-in duration-90",
39542
- leaveFrom: "transform opacity-100 scale-100",
39543
- leaveTo: "transform opacity-0 scale-95",
39544
- children: /* @__PURE__ */ b.jsx(hn.Items, { className: "absolute z-10 right-0 mt-2 w-[240px] h-auto origin-top-right divide-y divide-border-subdued rounded-sm bg-action-secondary-default shadow-[0px_2px_10px_0px_#0000001A]", children: /* @__PURE__ */ b.jsx("div", { children: e.getHeaderGroups().map(
39545
- (i) => i.headers.map(
39546
- (a) => t.map(
39547
- (o, s) => o.idHeader === a.id && /* @__PURE__ */ b.jsx(hn.Item, { children: /* @__PURE__ */ b.jsx(
39548
- Oa,
39549
- {
39550
- className: "cursor-pointer h-[36px] pl-4 px-2 flex items-center hover:bg-action-secondary-hovered hover:last:rounded-b-sm hover:first:rounded-t-sm active:bg-action-secondary-pressed",
39551
- variant: "body",
39552
- onClick: () => a.column.toggleSorting(
39553
- o.asc ? !1 : o.desc ?? !1
39554
- ),
39555
- children: o.title
39556
- }
39557
- ) }, `${a.id}-${s}`)
39558
- )
39559
- )
39560
- ) }) })
39561
- }
39562
- )
39563
- ] })
39564
- }
39565
- );
39566
- }
39567
- const oC = Xe(
39568
- ({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
39569
- "table",
39570
- {
39571
- ref: n,
39572
- className: K("w-full table-auto", e),
39573
- ...t
39574
- }
39575
- )
39576
- );
39577
- oC.displayName = "TableContainer";
39578
- const sC = Xe(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
39579
- "thead",
39580
- {
39581
- ref: n,
39582
- className: K("bg-surface-neutral-default", e),
39583
- ...t
39584
- }
39585
- ));
39586
- sC.displayName = "TableHeader";
39587
- const lC = Xe(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx(
39588
- "tbody",
39589
- {
39590
- ref: n,
39591
- className: K(
39592
- "table--tbody text-center bg-surface-neutral-subdued",
39593
- e
39594
- ),
39595
- ...t
39596
- }
39597
- ));
39598
- lC.displayName = "TableBody";
39599
- const uC = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("tfoot", { ref: t, ...e }));
39600
- uC.displayName = "TableFooter";
39601
- const vo = Xe(({ className: e, ...t }, n) => /* @__PURE__ */ b.jsx("tr", { ref: n, className: K(e), ...t }));
39602
- vo.displayName = "TableRow";
39603
- const Tg = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("th", { ref: t, ...e }));
39604
- Tg.displayName = "TableHead";
39605
- const Ng = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("td", { ref: t, ...e }));
39606
- Ng.displayName = "TableCell";
39607
- function qae({
39631
+ function Kae({
39608
39632
  columns: e = [],
39609
39633
  data: t = [],
39610
39634
  searchFilter: n = !1,
@@ -39722,7 +39746,7 @@ function qae({
39722
39746
  }
39723
39747
  ) : null,
39724
39748
  o && n && s && s.length > 0 ? /* @__PURE__ */ b.jsx(
39725
- Aae,
39749
+ mae,
39726
39750
  {
39727
39751
  checkBoxSelect: Object.keys(M).length > 0 ? "" : "rounded-tr-sm",
39728
39752
  sortItem: s,
@@ -39799,7 +39823,7 @@ function qae({
39799
39823
  ) }, P.id)) }, D.id)) })
39800
39824
  ] }) }),
39801
39825
  i && !A && /* @__PURE__ */ b.jsx(
39802
- mae,
39826
+ yae,
39803
39827
  {
39804
39828
  optionPagination: y,
39805
39829
  table: L,
@@ -39811,7 +39835,7 @@ function qae({
39811
39835
  )
39812
39836
  ] });
39813
39837
  }
39814
- function yae({
39838
+ function bae({
39815
39839
  value: e,
39816
39840
  onChange: t,
39817
39841
  debounce: n = 500,
@@ -39893,7 +39917,7 @@ function v2({
39893
39917
  }
39894
39918
  );
39895
39919
  }
39896
- function bae({
39920
+ function Cae({
39897
39921
  table: e,
39898
39922
  options: t
39899
39923
  }) {
@@ -39997,7 +40021,7 @@ function bae({
39997
40021
  ] }) })
39998
40022
  ] });
39999
40023
  }
40000
- function Cae({
40024
+ function Eae({
40001
40025
  table: e,
40002
40026
  sortItem: t,
40003
40027
  checkBoxSelect: n,
@@ -40098,7 +40122,7 @@ const jg = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("th", { ref: t, ...e }));
40098
40122
  jg.displayName = "TableHead";
40099
40123
  const Dg = Xe(({ ...e }, t) => /* @__PURE__ */ b.jsx("td", { ref: t, ...e }));
40100
40124
  Dg.displayName = "TableCell";
40101
- function Eae({
40125
+ function xae({
40102
40126
  indeterminate: e,
40103
40127
  ...t
40104
40128
  }) {
@@ -40115,7 +40139,7 @@ function Eae({
40115
40139
  }
40116
40140
  );
40117
40141
  }
40118
- function Kae({
40142
+ function eoe({
40119
40143
  columns: e = [],
40120
40144
  data: t = [],
40121
40145
  searchFilter: n = !1,
@@ -40221,7 +40245,7 @@ function Kae({
40221
40245
  o ? "rounded-tl-sm" : "rounded-t-sm"
40222
40246
  ),
40223
40247
  children: /* @__PURE__ */ b.jsx(
40224
- yae,
40248
+ bae,
40225
40249
  {
40226
40250
  value: (x == null ? void 0 : x.trim()) ?? "",
40227
40251
  onChange: (P) => I(P == null ? void 0 : P.trim()),
@@ -40231,7 +40255,7 @@ function Kae({
40231
40255
  }
40232
40256
  ) : null,
40233
40257
  o && n && s && s.length > 0 ? /* @__PURE__ */ b.jsx(
40234
- Cae,
40258
+ Eae,
40235
40259
  {
40236
40260
  checkBoxSelect: Object.keys(M).length > 0 ? "" : "rounded-tr-sm",
40237
40261
  sortItem: s,
@@ -40262,7 +40286,7 @@ function Kae({
40262
40286
  "p-4 h-14"
40263
40287
  ),
40264
40288
  children: F.id === "select" ? /* @__PURE__ */ b.jsx(
40265
- Eae,
40289
+ xae,
40266
40290
  {
40267
40291
  checked: G.getIsAllPageRowsSelected(),
40268
40292
  indeterminate: G.getIsSomePageRowsSelected(),
@@ -40326,13 +40350,13 @@ function Kae({
40326
40350
  F.getContext()
40327
40351
  ) }, F.id)) }, P.id)) })
40328
40352
  ] }) }),
40329
- i && !m && /* @__PURE__ */ b.jsx(bae, { table: G, options: a })
40353
+ i && !m && /* @__PURE__ */ b.jsx(Cae, { table: G, options: a })
40330
40354
  ]
40331
40355
  }
40332
40356
  )
40333
40357
  ] });
40334
40358
  }
40335
- function eoe({ items: e = [], checkedItem: t, onChange: n }) {
40359
+ function toe({ items: e = [], checkedItem: t, onChange: n }) {
40336
40360
  const r = Fa("(max-width: 520px)"), i = (s, l) => l != null && l.error ? "border-action-critical-default" : l != null && l.isDisabled || l != null && l.isLoading ? "border-border-disabled" : s ? "shadow-[0px_0px_0px_1px_#3EADFE]" : "border-border-default hover:border-border-hovered", a = (s, l) => {
40337
40361
  var u, c;
40338
40362
  return ((u = s == null ? void 0 : s.id) == null ? void 0 : u.toLowerCase()) === ((c = l == null ? void 0 : l.id) == null ? void 0 : c.toLowerCase());
@@ -40456,7 +40480,7 @@ function eoe({ items: e = [], checkedItem: t, onChange: n }) {
40456
40480
  }
40457
40481
  ) : /* @__PURE__ */ b.jsx(b.Fragment, {});
40458
40482
  }
40459
- function toe({
40483
+ function noe({
40460
40484
  description: e = "",
40461
40485
  date: t = "",
40462
40486
  hour: n = "",
@@ -40588,50 +40612,50 @@ const Ii = Xe((e, t) => {
40588
40612
  );
40589
40613
  });
40590
40614
  export {
40591
- kae as AsyncCreatableSelect,
40592
- Rae as AsyncSelect,
40593
- qae as AsyncTable,
40615
+ Tae as AsyncCreatableSelect,
40616
+ Pae as AsyncSelect,
40617
+ Kae as AsyncTable,
40594
40618
  Jh as Avatar,
40595
40619
  Fm as Badge,
40596
- zae as Bar,
40620
+ Wae as Bar,
40597
40621
  Ii as Button,
40598
- toe as CardHistory,
40599
- eoe as CardSelect,
40600
- Eae as CheckBoxTable,
40622
+ noe as CardHistory,
40623
+ toe as CardSelect,
40624
+ xae as CheckBoxTable,
40601
40625
  Q7 as Checkbox,
40602
- Qae as DateInputPicker,
40626
+ Hae as DateInputPicker,
40603
40627
  Ate as DropdownButton,
40604
- Jae as DropdownFilter,
40605
- Yae as DropdownFilterMultiple,
40606
- Wae as DropdownSummary,
40607
- Xae as DropdownUser,
40628
+ qae as DropdownFilter,
40629
+ _ae as DropdownFilterMultiple,
40630
+ Xae as DropdownSummary,
40631
+ Yae as DropdownUser,
40608
40632
  N6 as EmptyState,
40609
- Lae as Field,
40610
- Vae as Flag,
40611
- Zae as Graphic,
40612
- Dae as Header,
40633
+ Vae as Field,
40634
+ Qae as Flag,
40635
+ zae as Graphic,
40636
+ Fae as Header,
40613
40637
  Jr as Heading,
40614
40638
  vt as Icon,
40615
40639
  Bp as InlineError,
40616
40640
  Yh as LayoutMain,
40617
- wae as Link,
40641
+ Sae as Link,
40618
40642
  fs as Logo,
40619
- Nae as Modal,
40620
- Hae as Navigation,
40621
- Fae as NavigationMovil,
40643
+ jae as Modal,
40644
+ Gae as Navigation,
40645
+ Lae as NavigationMovil,
40622
40646
  vw as Radio,
40623
- Bae as Select,
40624
- Pae as SelectButton,
40625
- Mae as SelectCountry,
40647
+ Rae as Select,
40648
+ Mae as SelectButton,
40649
+ kae as SelectCountry,
40626
40650
  iu as Spinner,
40627
40651
  Rp as Summary,
40628
- Sae as Switch,
40629
- Tae as Tab,
40630
- jae as TabNav,
40631
- Kae as Table,
40652
+ Oae as Switch,
40653
+ Nae as Tab,
40654
+ Dae as TabNav,
40655
+ eoe as Table,
40632
40656
  Re as Text,
40633
- Gae as TextArea,
40657
+ Zae as TextArea,
40634
40658
  Oa as TextRef,
40635
40659
  L7 as Tooltip,
40636
- Oae as Tracker
40660
+ Bae as Tracker
40637
40661
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aveonline/ui-react",
3
3
  "description": "Home base for Aveonline design system - ecosystem react",
4
4
  "private": false,
5
- "version": "2.5.0",
5
+ "version": "2.5.2",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"