anteriority-ui 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.verify-bundle.js CHANGED
@@ -191746,6 +191746,9 @@ function ScrollBar({
191746
191746
  horizontal = true,
191747
191747
  autoHide = true,
191748
191748
  maxHeight,
191749
+ hideHorizontalTrack = false,
191750
+ hideVerticalTrack = false,
191751
+ scrollAreaRef,
191749
191752
  className = "",
191750
191753
  contentClassName = "",
191751
191754
  style: style3
@@ -191766,7 +191769,11 @@ function ScrollBar({
191766
191769
  /* @__PURE__ */ jsx48(
191767
191770
  "div",
191768
191771
  {
191769
- ref: scrollRef,
191772
+ ref: (node2) => {
191773
+ scrollRef.current = node2;
191774
+ if (typeof scrollAreaRef === "function") scrollAreaRef(node2);
191775
+ else if (scrollAreaRef) scrollAreaRef.current = node2;
191776
+ },
191770
191777
  className: `${ScrollBar_default.scrollArea} ${contentClassName}`,
191771
191778
  style: {
191772
191779
  overflowY: vertical ? "auto" : "hidden",
@@ -191777,7 +191784,7 @@ function ScrollBar({
191777
191784
  children: children2
191778
191785
  }
191779
191786
  ),
191780
- vertical && thumb.v.size > 0 && /* @__PURE__ */ jsx48("div", { className: `${ScrollBar_default.trackVertical} ${visible ? ScrollBar_default.trackVisible : ""}`, children: /* @__PURE__ */ jsx48(
191787
+ vertical && !hideVerticalTrack && thumb.v.size > 0 && /* @__PURE__ */ jsx48("div", { className: `${ScrollBar_default.trackVertical} ${visible ? ScrollBar_default.trackVisible : ""}`, children: /* @__PURE__ */ jsx48(
191781
191788
  "div",
191782
191789
  {
191783
191790
  className: ScrollBar_default.thumbVertical,
@@ -191785,7 +191792,7 @@ function ScrollBar({
191785
191792
  onMouseDown: (e3) => startDrag("v", e3)
191786
191793
  }
191787
191794
  ) }),
191788
- horizontal && thumb.h.size > 0 && /* @__PURE__ */ jsx48("div", { className: `${ScrollBar_default.trackHorizontal} ${visible ? ScrollBar_default.trackVisible : ""}`, children: /* @__PURE__ */ jsx48(
191795
+ horizontal && !hideHorizontalTrack && thumb.h.size > 0 && /* @__PURE__ */ jsx48("div", { className: `${ScrollBar_default.trackHorizontal} ${visible ? ScrollBar_default.trackVisible : ""}`, children: /* @__PURE__ */ jsx48(
191789
191796
  "div",
191790
191797
  {
191791
191798
  className: ScrollBar_default.thumbHorizontal,
@@ -192252,9 +192259,67 @@ var ProSidebar = ({
192252
192259
  };
192253
192260
  var Sidebar_default2 = ProSidebar;
192254
192261
 
192255
- // dist/screens/components/SubSidebarLayout/index.js
192256
- import { jsx as jsx51, jsxs as jsxs43 } from "react/jsx-runtime";
192262
+ // dist/screens/components/Slider/index.js
192263
+ import { jsx as jsx51 } from "react/jsx-runtime";
192257
192264
  import React46 from "react";
192265
+ import MuiSlider from "@mui/material/Slider";
192266
+
192267
+ // dist/screens/components/Slider/index.module.css
192268
+ var Slider_default = {
192269
+ slider: "Slider_slider"
192270
+ };
192271
+
192272
+ // dist/screens/components/Slider/constants.js
192273
+ var DEFAULT_ACCENT = "#7c9cff";
192274
+ var DEFAULT_THICKNESS = 8;
192275
+
192276
+ // dist/screens/components/Slider/index.js
192277
+ function Slider({
192278
+ value: value2 = 0,
192279
+ min: min10 = 0,
192280
+ max: max10 = 100,
192281
+ step: step3 = 1,
192282
+ onChange,
192283
+ disabled = false,
192284
+ showPercentage = false,
192285
+ accentColor,
192286
+ thickness = DEFAULT_THICKNESS,
192287
+ className = "",
192288
+ style: style3,
192289
+ "aria-label": ariaLabel
192290
+ }) {
192291
+ const formatPercentage = (current) => {
192292
+ const range3 = max10 - min10;
192293
+ return `${range3 > 0 ? Math.round((current - min10) / range3 * 100) : 0}%`;
192294
+ };
192295
+ return /* @__PURE__ */ jsx51(
192296
+ MuiSlider,
192297
+ {
192298
+ className: `${Slider_default.slider} ${className}`,
192299
+ style: style3,
192300
+ size: "small",
192301
+ min: min10,
192302
+ max: max10,
192303
+ step: step3,
192304
+ value: value2,
192305
+ disabled,
192306
+ "aria-label": ariaLabel,
192307
+ valueLabelDisplay: showPercentage ? "auto" : "off",
192308
+ valueLabelFormat: formatPercentage,
192309
+ onChange: (_event, next3) => onChange?.(next3),
192310
+ sx: {
192311
+ color: accentColor ?? DEFAULT_ACCENT,
192312
+ height: thickness,
192313
+ "& .MuiSlider-rail, & .MuiSlider-track": { height: thickness, borderRadius: thickness / 2 },
192314
+ "& .MuiSlider-thumb": { width: thickness + 8, height: thickness + 8 }
192315
+ }
192316
+ }
192317
+ );
192318
+ }
192319
+
192320
+ // dist/screens/components/SubSidebarLayout/index.js
192321
+ import { jsx as jsx52, jsxs as jsxs43 } from "react/jsx-runtime";
192322
+ import React47 from "react";
192258
192323
 
192259
192324
  // dist/screens/components/SubSidebarLayout/index.module.css
192260
192325
  var SubSidebarLayout_default = {
@@ -192276,14 +192341,14 @@ function SubSidebarLayout({
192276
192341
  bgColor
192277
192342
  }) {
192278
192343
  return /* @__PURE__ */ jsxs43("div", { className: SubSidebarLayout_default.layoutWrapper, children: [
192279
- /* @__PURE__ */ jsx51(
192344
+ /* @__PURE__ */ jsx52(
192280
192345
  "aside",
192281
192346
  {
192282
192347
  className: SubSidebarLayout_default.subSidebar,
192283
192348
  style: {
192284
192349
  ...bgColor ? { "--subsidebarlayout-bg": bgColor } : {}
192285
192350
  },
192286
- children: /* @__PURE__ */ jsx51("div", { className: SubSidebarLayout_default.menuList, children: menuItems.map((item) => {
192351
+ children: /* @__PURE__ */ jsx52("div", { className: SubSidebarLayout_default.menuList, children: menuItems.map((item) => {
192287
192352
  const isActive = activeItemId === item.id;
192288
192353
  return /* @__PURE__ */ jsxs43(
192289
192354
  Button_default2,
@@ -192293,8 +192358,8 @@ function SubSidebarLayout({
192293
192358
  active: isActive,
192294
192359
  onClick: () => onItemClick(item.id, item),
192295
192360
  children: [
192296
- item.icon && /* @__PURE__ */ jsx51("span", { className: SubSidebarLayout_default.iconWrapper, children: item.icon }),
192297
- /* @__PURE__ */ jsx51("span", { className: SubSidebarLayout_default.label, children: item.label })
192361
+ item.icon && /* @__PURE__ */ jsx52("span", { className: SubSidebarLayout_default.iconWrapper, children: item.icon }),
192362
+ /* @__PURE__ */ jsx52("span", { className: SubSidebarLayout_default.label, children: item.label })
192298
192363
  ]
192299
192364
  },
192300
192365
  item.id
@@ -192302,13 +192367,13 @@ function SubSidebarLayout({
192302
192367
  }) })
192303
192368
  }
192304
192369
  ),
192305
- /* @__PURE__ */ jsx51("div", { className: SubSidebarLayout_default.contentArea, children: children2 })
192370
+ /* @__PURE__ */ jsx52("div", { className: SubSidebarLayout_default.contentArea, children: children2 })
192306
192371
  ] });
192307
192372
  }
192308
192373
 
192309
192374
  // dist/screens/components/SummaryCard/index.js
192310
- import { jsx as jsx52, jsxs as jsxs44 } from "react/jsx-runtime";
192311
- import React47, { useState as useState25 } from "react";
192375
+ import { jsx as jsx53, jsxs as jsxs44 } from "react/jsx-runtime";
192376
+ import React48, { useState as useState25 } from "react";
192312
192377
  import { Sparkles, Copy as Copy4, Check as Check3 } from "lucide-react";
192313
192378
 
192314
192379
  // dist/screens/components/SummaryCard/index.module.css
@@ -192342,9 +192407,9 @@ var SummaryCard = ({ title: title2, text: text4, enableCopy = false, gradientSta
192342
192407
  },
192343
192408
  children: [
192344
192409
  /* @__PURE__ */ jsxs44("div", { className: SummaryCard_default.iaSummaryHeader, children: [
192345
- /* @__PURE__ */ jsx52(Sparkles, { size: 24 }),
192346
- /* @__PURE__ */ jsx52("h3", { children: title2 }),
192347
- enableCopy && /* @__PURE__ */ jsx52(
192410
+ /* @__PURE__ */ jsx53(Sparkles, { size: 24 }),
192411
+ /* @__PURE__ */ jsx53("h3", { children: title2 }),
192412
+ enableCopy && /* @__PURE__ */ jsx53(
192348
192413
  Button_default2,
192349
192414
  {
192350
192415
  onClick: handleCopy,
@@ -192358,7 +192423,7 @@ var SummaryCard = ({ title: title2, text: text4, enableCopy = false, gradientSta
192358
192423
  }
192359
192424
  )
192360
192425
  ] }),
192361
- /* @__PURE__ */ jsx52("p", { className: SummaryCard_default.iaSummaryText, children: text4 })
192426
+ /* @__PURE__ */ jsx53("p", { className: SummaryCard_default.iaSummaryText, children: text4 })
192362
192427
  ]
192363
192428
  }
192364
192429
  );
@@ -192366,8 +192431,8 @@ var SummaryCard = ({ title: title2, text: text4, enableCopy = false, gradientSta
192366
192431
  var SummaryCard_default2 = SummaryCard;
192367
192432
 
192368
192433
  // dist/screens/components/Swich/index.js
192369
- import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
192370
- import React48, { useState as useState26, useEffect as useEffect19 } from "react";
192434
+ import { jsx as jsx54, jsxs as jsxs45 } from "react/jsx-runtime";
192435
+ import React49, { useState as useState26, useEffect as useEffect19 } from "react";
192371
192436
 
192372
192437
  // dist/screens/components/Swich/index.module.css
192373
192438
  var Swich_default = {
@@ -192424,7 +192489,7 @@ var Switch = ({
192424
192489
  backgroundColor: active ? activeColor : inactiveColor
192425
192490
  };
192426
192491
  const tooltipText = active ? SWITCH_TEXTS.enabled : SWITCH_TEXTS.disabled;
192427
- return /* @__PURE__ */ jsx53(ModalTooltip_default2, { text: tooltipText, children: /* @__PURE__ */ jsxs45(
192492
+ return /* @__PURE__ */ jsx54(ModalTooltip_default2, { text: tooltipText, children: /* @__PURE__ */ jsxs45(
192428
192493
  "button",
192429
192494
  {
192430
192495
  type: "button",
@@ -192435,8 +192500,8 @@ var Switch = ({
192435
192500
  style: dynamicStyle,
192436
192501
  onClick: handleClick,
192437
192502
  children: [
192438
- /* @__PURE__ */ jsx53("div", { className: Swich_default.thumb, style: { backgroundColor: thumbColor } }),
192439
- ripples.map((ripple) => /* @__PURE__ */ jsx53(
192503
+ /* @__PURE__ */ jsx54("div", { className: Swich_default.thumb, style: { backgroundColor: thumbColor } }),
192504
+ ripples.map((ripple) => /* @__PURE__ */ jsx54(
192440
192505
  "span",
192441
192506
  {
192442
192507
  className: Swich_default.ripple,
@@ -192456,8 +192521,8 @@ var Switch = ({
192456
192521
  var Swich_default2 = Switch;
192457
192522
 
192458
192523
  // dist/screens/components/TableA/index.js
192459
- import { jsx as jsx54, jsxs as jsxs46 } from "react/jsx-runtime";
192460
- import React49 from "react";
192524
+ import { jsx as jsx56, jsxs as jsxs47 } from "react/jsx-runtime";
192525
+ import React51, { useRef as useRef16 } from "react";
192461
192526
 
192462
192527
  // dist/screens/components/TableA/index.module.css
192463
192528
  var TableA_default = {
@@ -192470,12 +192535,94 @@ var TableA_default = {
192470
192535
  emptyIcon: "TableA_emptyIcon",
192471
192536
  tableLoadingContainer: "TableA_tableLoadingContainer",
192472
192537
  centerSection: "TableA_centerSection",
192473
- errorMessage: "TableA_errorMessage"
192538
+ errorMessage: "TableA_errorMessage",
192539
+ root: "TableA_root",
192540
+ stickyHeader: "TableA_stickyHeader",
192541
+ stickyFirstColumn: "TableA_stickyFirstColumn",
192542
+ withFooter: "TableA_withFooter"
192474
192543
  };
192475
192544
 
192476
192545
  // dist/screens/components/TableA/index.js
192477
192546
  import { AlertCircle as AlertCircle2, Inbox, Filter as FilterIcon2 } from "lucide-react";
192478
192547
 
192548
+ // dist/common/table/TableScrollFooter/index.js
192549
+ import { jsx as jsx55, jsxs as jsxs46 } from "react/jsx-runtime";
192550
+ import React50, { useEffect as useEffect20, useState as useState27 } from "react";
192551
+ import { ChevronLeft as ChevronLeft4, ChevronRight as ChevronRight8 } from "lucide-react";
192552
+
192553
+ // dist/common/table/TableScrollFooter/index.module.css
192554
+ var TableScrollFooter_default = {
192555
+ footer: "TableScrollFooter_footer",
192556
+ sliderWrap: "TableScrollFooter_sliderWrap"
192557
+ };
192558
+
192559
+ // dist/common/table/TableScrollFooter/index.js
192560
+ var SCROLL_STEP = 0.6;
192561
+ function TableScrollFooter({ scrollAreaRef, controlsColor, leftLabel, rightLabel, sliderLabel }) {
192562
+ const [metrics, setMetrics] = useState27({ max: 0, left: 0 });
192563
+ useEffect20(() => {
192564
+ const area = scrollAreaRef.current;
192565
+ if (!area) return void 0;
192566
+ const measure = () => {
192567
+ setMetrics({ max: Math.max(0, area.scrollWidth - area.clientWidth), left: area.scrollLeft });
192568
+ };
192569
+ measure();
192570
+ const observer = new ResizeObserver(measure);
192571
+ observer.observe(area);
192572
+ if (area.firstElementChild) observer.observe(area.firstElementChild);
192573
+ area.addEventListener("scroll", measure);
192574
+ return () => {
192575
+ observer.disconnect();
192576
+ area.removeEventListener("scroll", measure);
192577
+ };
192578
+ }, [scrollAreaRef]);
192579
+ if (metrics.max <= 1) return null;
192580
+ const scrollBy = (direction2) => {
192581
+ const area = scrollAreaRef.current;
192582
+ area?.scrollBy({ left: direction2 * area.clientWidth * SCROLL_STEP, behavior: "smooth" });
192583
+ };
192584
+ return /* @__PURE__ */ jsxs46("div", { className: TableScrollFooter_default.footer, children: [
192585
+ /* @__PURE__ */ jsx55(
192586
+ Button_default2,
192587
+ {
192588
+ size: "small",
192589
+ variant: Button_default2.VARIANTS.GHOST,
192590
+ icon: ChevronLeft4,
192591
+ color: controlsColor,
192592
+ ToolTip: leftLabel,
192593
+ disabled: metrics.left <= 1,
192594
+ onClick: () => scrollBy(-1)
192595
+ }
192596
+ ),
192597
+ /* @__PURE__ */ jsx55("div", { className: TableScrollFooter_default.sliderWrap, children: /* @__PURE__ */ jsx55(
192598
+ Slider,
192599
+ {
192600
+ min: 0,
192601
+ max: metrics.max,
192602
+ value: Math.min(metrics.left, metrics.max),
192603
+ showPercentage: true,
192604
+ accentColor: "var(--tableFooter-accent, #7c9cff)",
192605
+ "aria-label": sliderLabel,
192606
+ onChange: (value2) => {
192607
+ scrollAreaRef.current.scrollLeft = value2;
192608
+ }
192609
+ }
192610
+ ) }),
192611
+ /* @__PURE__ */ jsx55(
192612
+ Button_default2,
192613
+ {
192614
+ size: "small",
192615
+ variant: Button_default2.VARIANTS.GHOST,
192616
+ icon: ChevronRight8,
192617
+ color: controlsColor,
192618
+ ToolTip: rightLabel,
192619
+ disabled: metrics.left >= metrics.max - 1,
192620
+ onClick: () => scrollBy(1)
192621
+ }
192622
+ )
192623
+ ] });
192624
+ }
192625
+
192479
192626
  // dist/screens/components/TableA/utils.js
192480
192627
  function getNextFilterValue(options2, currentValue) {
192481
192628
  if (!Array.isArray(options2) || options2.length === 0) return currentValue;
@@ -192511,7 +192658,17 @@ var TableA = (props) => {
192511
192658
  rowBorderColor,
192512
192659
  onRowClick,
192513
192660
  filterIconColor,
192514
- filterActiveColor = "#10b981"
192661
+ filterActiveColor = "#10b981",
192662
+ stickyFirstColumn = false,
192663
+ stickyHeader = false,
192664
+ maxHeight = "70vh",
192665
+ scrollFooter = false,
192666
+ scrollFooterBgColor,
192667
+ scrollFooterBorderColor,
192668
+ scrollControlsColor,
192669
+ scrollLeftLabel = "Desplazar tabla a la izquierda",
192670
+ scrollRightLabel = "Desplazar tabla a la derecha",
192671
+ scrollSliderLabel = "Posici\xF3n horizontal de la tabla"
192515
192672
  } = props;
192516
192673
  const themeVars = {
192517
192674
  "--tableA-surface": surfaceColor,
@@ -192521,75 +192678,31 @@ var TableA = (props) => {
192521
192678
  "--tableA-muted-text": mutedTextColor,
192522
192679
  "--tableA-border": borderColor,
192523
192680
  "--tableA-hover": hoverColor,
192524
- "--tableA-row-border": rowBorderColor
192681
+ "--tableA-row-border": rowBorderColor,
192682
+ "--tableFooter-bg": scrollFooterBgColor ?? surfaceColor,
192683
+ "--tableFooter-border": scrollFooterBorderColor ?? borderColor,
192684
+ "--tableFooter-accent": scrollControlsColor
192525
192685
  };
192686
+ const scrollAreaRef = useRef16(null);
192526
192687
  const handleCycleFilter = (filter8) => {
192527
192688
  if (!filter8 || !Array.isArray(filter8.options) || filter8.options.length === 0) return;
192528
192689
  filter8.onChange?.(getNextFilterValue(filter8.options, filter8.value));
192529
192690
  };
192530
- return /* @__PURE__ */ jsx54(ScrollBar, { horizontal: true, vertical: false, className: TableA_default.tableWrapper, style: themeVars, children: /* @__PURE__ */ jsxs46("table", { className: TableA_default.table, children: [
192531
- /* @__PURE__ */ jsx54("thead", { children: /* @__PURE__ */ jsx54("tr", { children: columns.map((col, idx) => /* @__PURE__ */ jsx54(
192532
- "th",
192533
- {
192534
- style: {
192535
- textAlign: col.align || "left",
192536
- width: col.width,
192537
- minWidth: col.width,
192538
- maxWidth: col.width
192539
- },
192540
- children: col.filter ? /* @__PURE__ */ jsxs46(
192541
- "div",
192542
- {
192543
- className: TableA_default.headerFilterWrap,
192544
- style: { justifyContent: col.align === "right" ? "flex-end" : col.align === "center" ? "center" : "flex-start" },
192545
- children: [
192546
- /* @__PURE__ */ jsx54("span", { children: col.header }),
192547
- /* @__PURE__ */ jsx54(
192548
- Button_default2,
192549
- {
192550
- circle: true,
192551
- size: "small",
192552
- variant: Button_default2.VARIANTS.GHOST,
192553
- icon: FilterIcon2,
192554
- color: col.filter.value ? filterActiveColor : filterIconColor,
192555
- className: TableA_default.headerFilterBtn,
192556
- ToolTip: col.filter.tooltip || getFilterOptionLabel(col.filter.options, col.filter.value),
192557
- onClick: () => handleCycleFilter(col.filter)
192558
- }
192559
- )
192560
- ]
192561
- }
192562
- ) : col.header
192563
- },
192564
- idx
192565
- )) }) }),
192566
- /* @__PURE__ */ jsx54("tbody", { children: loading ? Array.from({ length: skeletonRows }).map((_3, rowIdx) => /* @__PURE__ */ jsx54("tr", { className: TableA_default.row, children: columns.map((col, colIdx) => /* @__PURE__ */ jsx54("td", { style: { textAlign: col.align || "left", width: col.width, minWidth: col.width, maxWidth: col.width }, children: /* @__PURE__ */ jsx54(Skeleton_default2, { height: "14px", width: col.align === "right" || col.align === "center" ? "60%" : "85%" }) }, colIdx)) }, `skeleton-${rowIdx}`)) : error3 ? /* @__PURE__ */ jsx54("tr", { children: /* @__PURE__ */ jsx54("td", { colSpan: columns.length, style: { padding: 0 }, children: /* @__PURE__ */ jsxs46("div", { className: TableA_default.centerSection, children: [
192567
- /* @__PURE__ */ jsxs46("div", { className: TableA_default.errorMessage, children: [
192568
- /* @__PURE__ */ jsx54(AlertCircle2, { size: 32 }),
192569
- /* @__PURE__ */ jsx54("span", { children: error3 })
192570
- ] }),
192571
- onRetry && /* @__PURE__ */ jsx54(
192572
- Button_default2,
192573
- {
192574
- type: "button",
192575
- variant: Button_default2.VARIANTS.PRIMARY,
192576
- size: Button_default2.SIZES.LARGE,
192577
- color: Button_default2.COLORS.GREEN,
192578
- onClick: onRetry,
192579
- children: "Reintentar"
192580
- }
192581
- )
192582
- ] }) }) }) : !data6 || data6.length === 0 ? /* @__PURE__ */ jsx54("tr", { children: /* @__PURE__ */ jsx54("td", { colSpan: columns.length, style: { padding: "1.5rem" }, children: /* @__PURE__ */ jsxs46("div", { className: TableA_default.emptyState, children: [
192583
- /* @__PURE__ */ jsx54(EmptyIcon, { size: 48, className: TableA_default.emptyIcon }),
192584
- /* @__PURE__ */ jsx54("p", { style: { margin: 0 }, children: emptyMessage })
192585
- ] }) }) }) : data6.map((row) => /* @__PURE__ */ jsx54(
192586
- "tr",
192587
- {
192588
- className: `${TableA_default.row} ${rowClassName ? rowClassName(row) : ""}`,
192589
- onClick: onRowClick ? () => onRowClick(row) : void 0,
192590
- style: onRowClick ? { cursor: "pointer" } : void 0,
192591
- children: columns.map((col, colIndex) => /* @__PURE__ */ jsx54(
192592
- "td",
192691
+ const wrapperClassName = `${TableA_default.tableWrapper} ${stickyFirstColumn ? TableA_default.stickyFirstColumn : ""} ${stickyHeader ? TableA_default.stickyHeader : ""} ${scrollFooter ? TableA_default.withFooter : ""}`;
192692
+ const table = /* @__PURE__ */ jsx56(
192693
+ ScrollBar,
192694
+ {
192695
+ horizontal: true,
192696
+ vertical: stickyHeader,
192697
+ hideVerticalTrack: true,
192698
+ maxHeight: stickyHeader ? maxHeight : void 0,
192699
+ scrollAreaRef,
192700
+ hideHorizontalTrack: scrollFooter,
192701
+ className: wrapperClassName,
192702
+ style: themeVars,
192703
+ children: /* @__PURE__ */ jsxs47("table", { className: TableA_default.table, children: [
192704
+ /* @__PURE__ */ jsx56("thead", { children: /* @__PURE__ */ jsx56("tr", { children: columns.map((col, idx) => /* @__PURE__ */ jsx56(
192705
+ "th",
192593
192706
  {
192594
192707
  style: {
192595
192708
  textAlign: col.align || "left",
@@ -192597,20 +192710,96 @@ var TableA = (props) => {
192597
192710
  minWidth: col.width,
192598
192711
  maxWidth: col.width
192599
192712
  },
192600
- children: col.render ? col.render(row) : row[col.accessor]
192713
+ children: col.filter ? /* @__PURE__ */ jsxs47(
192714
+ "div",
192715
+ {
192716
+ className: TableA_default.headerFilterWrap,
192717
+ style: { justifyContent: col.align === "right" ? "flex-end" : col.align === "center" ? "center" : "flex-start" },
192718
+ children: [
192719
+ /* @__PURE__ */ jsx56("span", { children: col.header }),
192720
+ /* @__PURE__ */ jsx56(
192721
+ Button_default2,
192722
+ {
192723
+ circle: true,
192724
+ size: "small",
192725
+ variant: Button_default2.VARIANTS.GHOST,
192726
+ icon: FilterIcon2,
192727
+ color: col.filter.value ? filterActiveColor : filterIconColor,
192728
+ className: TableA_default.headerFilterBtn,
192729
+ ToolTip: col.filter.tooltip || getFilterOptionLabel(col.filter.options, col.filter.value),
192730
+ onClick: () => handleCycleFilter(col.filter)
192731
+ }
192732
+ )
192733
+ ]
192734
+ }
192735
+ ) : col.header
192601
192736
  },
192602
- colIndex
192603
- ))
192604
- },
192605
- keyExtractor(row)
192606
- )) })
192607
- ] }) });
192737
+ idx
192738
+ )) }) }),
192739
+ /* @__PURE__ */ jsx56("tbody", { children: loading ? Array.from({ length: skeletonRows }).map((_3, rowIdx) => /* @__PURE__ */ jsx56("tr", { className: TableA_default.row, children: columns.map((col, colIdx) => /* @__PURE__ */ jsx56("td", { style: { textAlign: col.align || "left", width: col.width, minWidth: col.width, maxWidth: col.width }, children: /* @__PURE__ */ jsx56(Skeleton_default2, { height: "14px", width: col.align === "right" || col.align === "center" ? "60%" : "85%" }) }, colIdx)) }, `skeleton-${rowIdx}`)) : error3 ? /* @__PURE__ */ jsx56("tr", { children: /* @__PURE__ */ jsx56("td", { colSpan: columns.length, style: { padding: 0 }, children: /* @__PURE__ */ jsxs47("div", { className: TableA_default.centerSection, children: [
192740
+ /* @__PURE__ */ jsxs47("div", { className: TableA_default.errorMessage, children: [
192741
+ /* @__PURE__ */ jsx56(AlertCircle2, { size: 32 }),
192742
+ /* @__PURE__ */ jsx56("span", { children: error3 })
192743
+ ] }),
192744
+ onRetry && /* @__PURE__ */ jsx56(
192745
+ Button_default2,
192746
+ {
192747
+ type: "button",
192748
+ variant: Button_default2.VARIANTS.PRIMARY,
192749
+ size: Button_default2.SIZES.LARGE,
192750
+ color: Button_default2.COLORS.GREEN,
192751
+ onClick: onRetry,
192752
+ children: "Reintentar"
192753
+ }
192754
+ )
192755
+ ] }) }) }) : !data6 || data6.length === 0 ? /* @__PURE__ */ jsx56("tr", { children: /* @__PURE__ */ jsx56("td", { colSpan: columns.length, style: { padding: "1.5rem" }, children: /* @__PURE__ */ jsxs47("div", { className: TableA_default.emptyState, children: [
192756
+ /* @__PURE__ */ jsx56(EmptyIcon, { size: 48, className: TableA_default.emptyIcon }),
192757
+ /* @__PURE__ */ jsx56("p", { style: { margin: 0 }, children: emptyMessage })
192758
+ ] }) }) }) : data6.map((row) => /* @__PURE__ */ jsx56(
192759
+ "tr",
192760
+ {
192761
+ className: `${TableA_default.row} ${rowClassName ? rowClassName(row) : ""}`,
192762
+ onClick: onRowClick ? () => onRowClick(row) : void 0,
192763
+ style: onRowClick ? { cursor: "pointer" } : void 0,
192764
+ children: columns.map((col, colIndex) => /* @__PURE__ */ jsx56(
192765
+ "td",
192766
+ {
192767
+ style: {
192768
+ textAlign: col.align || "left",
192769
+ width: col.width,
192770
+ minWidth: col.width,
192771
+ maxWidth: col.width
192772
+ },
192773
+ children: col.render ? col.render(row) : row[col.accessor]
192774
+ },
192775
+ colIndex
192776
+ ))
192777
+ },
192778
+ keyExtractor(row)
192779
+ )) })
192780
+ ] })
192781
+ }
192782
+ );
192783
+ if (!scrollFooter) return table;
192784
+ return /* @__PURE__ */ jsxs47("div", { className: TableA_default.root, style: themeVars, children: [
192785
+ table,
192786
+ /* @__PURE__ */ jsx56(
192787
+ TableScrollFooter,
192788
+ {
192789
+ scrollAreaRef,
192790
+ controlsColor: scrollControlsColor,
192791
+ leftLabel: scrollLeftLabel,
192792
+ rightLabel: scrollRightLabel,
192793
+ sliderLabel: scrollSliderLabel
192794
+ }
192795
+ )
192796
+ ] });
192608
192797
  };
192609
192798
  var TableA_default2 = TableA;
192610
192799
 
192611
192800
  // dist/screens/components/TableB/index.js
192612
- import { jsx as jsx55, jsxs as jsxs47 } from "react/jsx-runtime";
192613
- import React50, { useState as useState27 } from "react";
192801
+ import { jsx as jsx57, jsxs as jsxs48 } from "react/jsx-runtime";
192802
+ import React52, { useRef as useRef17, useState as useState28 } from "react";
192614
192803
 
192615
192804
  // dist/screens/components/TableB/index.module.css
192616
192805
  var TableB_default = {
@@ -192645,7 +192834,11 @@ var TableB_default = {
192645
192834
  badge: "TableB_badge",
192646
192835
  badgeSuccess: "TableB_badgeSuccess",
192647
192836
  badgeWarning: "TableB_badgeWarning",
192648
- badgeDanger: "TableB_badgeDanger"
192837
+ badgeDanger: "TableB_badgeDanger",
192838
+ root: "TableB_root",
192839
+ stickyHeader: "TableB_stickyHeader",
192840
+ stickyFirstColumn: "TableB_stickyFirstColumn",
192841
+ withFooter: "TableB_withFooter"
192649
192842
  };
192650
192843
 
192651
192844
  // dist/screens/components/TableB/index.js
@@ -192687,9 +192880,20 @@ var TableB = (props) => {
192687
192880
  rowBorderColor,
192688
192881
  badgeColors,
192689
192882
  filterIconColor,
192690
- filterActiveColor = "#10b981"
192883
+ filterActiveColor = "#10b981",
192884
+ stickyFirstColumn = false,
192885
+ stickyHeader = false,
192886
+ maxHeight = "70vh",
192887
+ scrollFooter = false,
192888
+ scrollFooterBgColor,
192889
+ scrollFooterBorderColor,
192890
+ scrollControlsColor,
192891
+ scrollLeftLabel = "Desplazar tabla a la izquierda",
192892
+ scrollRightLabel = "Desplazar tabla a la derecha",
192893
+ scrollSliderLabel = "Posici\xF3n horizontal de la tabla"
192691
192894
  } = props;
192692
- const [expandedKeys, setExpandedKeys] = useState27({});
192895
+ const [expandedKeys, setExpandedKeys] = useState28({});
192896
+ const scrollAreaRef = useRef17(null);
192693
192897
  const handleCycleFilter = (filter8) => {
192694
192898
  if (!filter8 || !Array.isArray(filter8.options) || filter8.options.length === 0) return;
192695
192899
  filter8.onChange?.(getNextFilterValue2(filter8.options, filter8.value));
@@ -192714,7 +192918,10 @@ var TableB = (props) => {
192714
192918
  "--tableB-badge-warning-bg": badgeColors?.warning?.bg,
192715
192919
  "--tableB-badge-warning-color": badgeColors?.warning?.color,
192716
192920
  "--tableB-badge-danger-bg": badgeColors?.danger?.bg,
192717
- "--tableB-badge-danger-color": badgeColors?.danger?.color
192921
+ "--tableB-badge-danger-color": badgeColors?.danger?.color,
192922
+ "--tableFooter-bg": scrollFooterBgColor ?? surfaceColor,
192923
+ "--tableFooter-border": scrollFooterBorderColor ?? borderColor,
192924
+ "--tableFooter-accent": scrollControlsColor
192718
192925
  };
192719
192926
  const getBadgeOverrideClass = (badgeTypeValue) => {
192720
192927
  if (badgeTypeValue === "success") return TableB_default.badgeSuccess;
@@ -192722,104 +192929,132 @@ var TableB = (props) => {
192722
192929
  if (badgeTypeValue === "danger") return TableB_default.badgeDanger;
192723
192930
  return "";
192724
192931
  };
192725
- return /* @__PURE__ */ jsx55(ScrollBar, { horizontal: true, vertical: false, className: TableB_default.tableContainer, style: themeVars, children: /* @__PURE__ */ jsxs47("table", { className: TableB_default.modernTable, children: [
192726
- /* @__PURE__ */ jsx55("thead", { children: /* @__PURE__ */ jsxs47("tr", { children: [
192727
- columns.map((col, idx) => /* @__PURE__ */ jsx55(
192728
- "th",
192729
- {
192730
- style: { textAlign: col.align || "left" },
192731
- children: col.filter ? /* @__PURE__ */ jsxs47(
192732
- "div",
192932
+ const containerClassName = `${TableB_default.tableContainer} ${stickyFirstColumn ? TableB_default.stickyFirstColumn : ""} ${stickyHeader ? TableB_default.stickyHeader : ""} ${scrollFooter ? TableB_default.withFooter : ""}`;
192933
+ const table = /* @__PURE__ */ jsx57(
192934
+ ScrollBar,
192935
+ {
192936
+ horizontal: true,
192937
+ vertical: stickyHeader,
192938
+ hideVerticalTrack: true,
192939
+ maxHeight: stickyHeader ? maxHeight : void 0,
192940
+ scrollAreaRef,
192941
+ hideHorizontalTrack: scrollFooter,
192942
+ className: containerClassName,
192943
+ style: themeVars,
192944
+ children: /* @__PURE__ */ jsxs48("table", { className: TableB_default.modernTable, children: [
192945
+ /* @__PURE__ */ jsx57("thead", { children: /* @__PURE__ */ jsxs48("tr", { children: [
192946
+ columns.map((col, idx) => /* @__PURE__ */ jsx57(
192947
+ "th",
192733
192948
  {
192734
- className: TableB_default.headerFilterWrap,
192735
- style: { justifyContent: col.align === "right" ? "flex-end" : col.align === "center" ? "center" : "flex-start" },
192736
- children: [
192737
- /* @__PURE__ */ jsx55("span", { children: col.label }),
192738
- /* @__PURE__ */ jsx55(
192739
- Button_default2,
192740
- {
192741
- circle: true,
192742
- size: "small",
192743
- variant: Button_default2.VARIANTS.GHOST,
192744
- icon: FilterIcon3,
192745
- color: col.filter.value ? filterActiveColor : filterIconColor,
192746
- className: TableB_default.headerFilterBtn,
192747
- ToolTip: col.filter.tooltip || getFilterOptionLabel2(col.filter.options, col.filter.value),
192748
- onClick: () => handleCycleFilter(col.filter)
192749
- }
192750
- )
192751
- ]
192752
- }
192753
- ) : col.label
192754
- },
192755
- col.key || idx
192756
- )),
192757
- expandable && /* @__PURE__ */ jsx55("th", { className: TableB_default.expandHeader })
192758
- ] }) }),
192759
- /* @__PURE__ */ jsx55("tbody", { children: loading ? Array.from({ length: skeletonRows }).map((_3, rowIdx) => /* @__PURE__ */ jsxs47("tr", { children: [
192760
- columns.map((col, colIdx) => /* @__PURE__ */ jsx55("td", { style: { textAlign: col.align || "left", width: col.width }, children: /* @__PURE__ */ jsx55(Skeleton_default2, { height: "14px", width: col.align === "right" || col.align === "center" ? "60%" : "85%" }) }, col.key || colIdx)),
192761
- expandable && /* @__PURE__ */ jsx55("td", { className: TableB_default.expandCell })
192762
- ] }, `skeleton-${rowIdx}`)) : error3 ? /* @__PURE__ */ jsx55("tr", { children: /* @__PURE__ */ jsx55("td", { colSpan: columns.length + (expandable ? 1 : 0), style: { padding: 0 }, children: /* @__PURE__ */ jsx55("div", { className: TableB_default.centerSection, children: /* @__PURE__ */ jsx55("div", { style: { marginBottom: "16px" }, children: /* @__PURE__ */ jsx55(Loading_default2, { size: "large", phrases: [error3, "Revisando conexi\xF3n", "Por favor, intenta de nuevo"] }) }) }) }) }) : !data6 || data6.length === 0 ? /* @__PURE__ */ jsx55("tr", { children: /* @__PURE__ */ jsx55("td", { colSpan: columns.length + (expandable ? 1 : 0), style: { padding: "1.5rem" }, children: /* @__PURE__ */ jsxs47("div", { className: TableB_default.emptyState, children: [
192763
- /* @__PURE__ */ jsx55(EmptyIcon, { size: 48, className: TableB_default.emptyIcon }),
192764
- /* @__PURE__ */ jsx55("p", { style: { margin: 0 }, children: emptyMessage })
192765
- ] }) }) }) : data6.map((row, rowIndex) => {
192766
- const key = row[rowKey] || rowIndex;
192767
- const isExpanded = !!expandedKeys[key];
192768
- const canExpand = expandable?.rowExpandable ? expandable.rowExpandable(row) : true;
192769
- return /* @__PURE__ */ jsxs47(React50.Fragment, { children: [
192770
- /* @__PURE__ */ jsxs47(
192771
- "tr",
192772
- {
192773
- className: `${TableB_default.tableRow} ${isExpanded ? TableB_default.rowExpanded : ""} ${rowClassName ? rowClassName(row, rowIndex) : ""}`,
192774
- onClick: () => canExpand && toggleExpand(key),
192775
- style: { cursor: canExpand ? "pointer" : "default" },
192776
- children: [
192777
- columns.map((col, colIndex) => /* @__PURE__ */ jsx55(
192778
- "td",
192949
+ style: { textAlign: col.align || "left" },
192950
+ children: col.filter ? /* @__PURE__ */ jsxs48(
192951
+ "div",
192779
192952
  {
192780
- style: { textAlign: col.align || "left", width: col.width },
192781
- children: col.type === "actions" && col.actions ? /* @__PURE__ */ jsx55("div", { className: TableB_default.actionButtons, style: { justifyContent: col.align || "flex-start" }, children: col.actions.map((act, actIdx) => /* @__PURE__ */ jsxs47(
192782
- Button_default2,
192953
+ className: TableB_default.headerFilterWrap,
192954
+ style: { justifyContent: col.align === "right" ? "flex-end" : col.align === "center" ? "center" : "flex-start" },
192955
+ children: [
192956
+ /* @__PURE__ */ jsx57("span", { children: col.label }),
192957
+ /* @__PURE__ */ jsx57(
192958
+ Button_default2,
192959
+ {
192960
+ circle: true,
192961
+ size: "small",
192962
+ variant: Button_default2.VARIANTS.GHOST,
192963
+ icon: FilterIcon3,
192964
+ color: col.filter.value ? filterActiveColor : filterIconColor,
192965
+ className: TableB_default.headerFilterBtn,
192966
+ ToolTip: col.filter.tooltip || getFilterOptionLabel2(col.filter.options, col.filter.value),
192967
+ onClick: () => handleCycleFilter(col.filter)
192968
+ }
192969
+ )
192970
+ ]
192971
+ }
192972
+ ) : col.label
192973
+ },
192974
+ col.key || idx
192975
+ )),
192976
+ expandable && /* @__PURE__ */ jsx57("th", { className: TableB_default.expandHeader })
192977
+ ] }) }),
192978
+ /* @__PURE__ */ jsx57("tbody", { children: loading ? Array.from({ length: skeletonRows }).map((_3, rowIdx) => /* @__PURE__ */ jsxs48("tr", { children: [
192979
+ columns.map((col, colIdx) => /* @__PURE__ */ jsx57("td", { style: { textAlign: col.align || "left", width: col.width }, children: /* @__PURE__ */ jsx57(Skeleton_default2, { height: "14px", width: col.align === "right" || col.align === "center" ? "60%" : "85%" }) }, col.key || colIdx)),
192980
+ expandable && /* @__PURE__ */ jsx57("td", { className: TableB_default.expandCell })
192981
+ ] }, `skeleton-${rowIdx}`)) : error3 ? /* @__PURE__ */ jsx57("tr", { children: /* @__PURE__ */ jsx57("td", { colSpan: columns.length + (expandable ? 1 : 0), style: { padding: 0 }, children: /* @__PURE__ */ jsx57("div", { className: TableB_default.centerSection, children: /* @__PURE__ */ jsx57("div", { style: { marginBottom: "16px" }, children: /* @__PURE__ */ jsx57(Loading_default2, { size: "large", phrases: [error3, "Revisando conexi\xF3n", "Por favor, intenta de nuevo"] }) }) }) }) }) : !data6 || data6.length === 0 ? /* @__PURE__ */ jsx57("tr", { children: /* @__PURE__ */ jsx57("td", { colSpan: columns.length + (expandable ? 1 : 0), style: { padding: "1.5rem" }, children: /* @__PURE__ */ jsxs48("div", { className: TableB_default.emptyState, children: [
192982
+ /* @__PURE__ */ jsx57(EmptyIcon, { size: 48, className: TableB_default.emptyIcon }),
192983
+ /* @__PURE__ */ jsx57("p", { style: { margin: 0 }, children: emptyMessage })
192984
+ ] }) }) }) : data6.map((row, rowIndex) => {
192985
+ const key = row[rowKey] || rowIndex;
192986
+ const isExpanded = !!expandedKeys[key];
192987
+ const canExpand = expandable?.rowExpandable ? expandable.rowExpandable(row) : true;
192988
+ return /* @__PURE__ */ jsxs48(React52.Fragment, { children: [
192989
+ /* @__PURE__ */ jsxs48(
192990
+ "tr",
192991
+ {
192992
+ className: `${TableB_default.tableRow} ${isExpanded ? TableB_default.rowExpanded : ""} ${rowClassName ? rowClassName(row, rowIndex) : ""}`,
192993
+ onClick: () => canExpand && toggleExpand(key),
192994
+ style: { cursor: canExpand ? "pointer" : "default" },
192995
+ children: [
192996
+ columns.map((col, colIndex) => /* @__PURE__ */ jsx57(
192997
+ "td",
192783
192998
  {
192784
- variant: Button_default2.VARIANTS.PRIMARY,
192785
- size: Button_default2.SIZES.LARGE,
192786
- color: Button_default2.COLORS.GREEN,
192787
- onClick: (e3) => {
192788
- e3.stopPropagation();
192789
- act.onClick(row);
192790
- },
192791
- disabled: act.disabled ? act.disabled(row) : false,
192792
- children: [
192793
- act.label,
192794
- act.icon && /* @__PURE__ */ jsx55("img", { src: act.icon, alt: act.label, className: `${TableB_default.actionIcon} ${act.invertIcon ? TableB_default.actionIconInvert : ""}` })
192795
- ]
192999
+ style: { textAlign: col.align || "left", width: col.width },
193000
+ children: col.type === "actions" && col.actions ? /* @__PURE__ */ jsx57("div", { className: TableB_default.actionButtons, style: { justifyContent: col.align || "flex-start" }, children: col.actions.map((act, actIdx) => /* @__PURE__ */ jsxs48(
193001
+ Button_default2,
193002
+ {
193003
+ variant: Button_default2.VARIANTS.PRIMARY,
193004
+ size: Button_default2.SIZES.LARGE,
193005
+ color: Button_default2.COLORS.GREEN,
193006
+ onClick: (e3) => {
193007
+ e3.stopPropagation();
193008
+ act.onClick(row);
193009
+ },
193010
+ disabled: act.disabled ? act.disabled(row) : false,
193011
+ children: [
193012
+ act.label,
193013
+ act.icon && /* @__PURE__ */ jsx57("img", { src: act.icon, alt: act.label, className: `${TableB_default.actionIcon} ${act.invertIcon ? TableB_default.actionIconInvert : ""}` })
193014
+ ]
193015
+ },
193016
+ actIdx
193017
+ )) }) : col.type === "badge" ? /* @__PURE__ */ jsx57(
193018
+ Barnner_default2,
193019
+ {
193020
+ type: col.badgeType ? col.badgeType(row) : void 0,
193021
+ className: `${getBadgeOverrideClass(col.badgeType ? col.badgeType(row) : void 0)} ${col.badgeClass ? col.badgeClass(row) : ""}`,
193022
+ children: col.render ? col.render(row, rowIndex) : row[col.key]
193023
+ }
193024
+ ) : col.render ? col.render(row, rowIndex) : row[col.key]
192796
193025
  },
192797
- actIdx
192798
- )) }) : col.type === "badge" ? /* @__PURE__ */ jsx55(
192799
- Barnner_default2,
192800
- {
192801
- type: col.badgeType ? col.badgeType(row) : void 0,
192802
- className: `${getBadgeOverrideClass(col.badgeType ? col.badgeType(row) : void 0)} ${col.badgeClass ? col.badgeClass(row) : ""}`,
192803
- children: col.render ? col.render(row, rowIndex) : row[col.key]
192804
- }
192805
- ) : col.render ? col.render(row, rowIndex) : row[col.key]
192806
- },
192807
- col.key || colIndex
192808
- )),
192809
- expandable && /* @__PURE__ */ jsx55("td", { className: TableB_default.expandCell, children: canExpand ? /* @__PURE__ */ jsx55("div", { className: TableB_default.expandIconWrapper, children: isExpanded ? /* @__PURE__ */ jsx55(ChevronUp4, { size: 18 }) : /* @__PURE__ */ jsx55(ChevronDown6, { size: 18 }) }) : null })
192810
- ]
192811
- }
192812
- ),
192813
- expandable && isExpanded && /* @__PURE__ */ jsx55("tr", { className: TableB_default.expandedContentRow, children: /* @__PURE__ */ jsx55("td", { colSpan: columns.length + 1, className: TableB_default.expandedContentCell, children: /* @__PURE__ */ jsx55("div", { className: TableB_default.expandedWrapper, children: expandable.expandedRowRender(row, rowIndex) }) }) })
192814
- ] }, key);
192815
- }) })
192816
- ] }) });
193026
+ col.key || colIndex
193027
+ )),
193028
+ expandable && /* @__PURE__ */ jsx57("td", { className: TableB_default.expandCell, children: canExpand ? /* @__PURE__ */ jsx57("div", { className: TableB_default.expandIconWrapper, children: isExpanded ? /* @__PURE__ */ jsx57(ChevronUp4, { size: 18 }) : /* @__PURE__ */ jsx57(ChevronDown6, { size: 18 }) }) : null })
193029
+ ]
193030
+ }
193031
+ ),
193032
+ expandable && isExpanded && /* @__PURE__ */ jsx57("tr", { className: TableB_default.expandedContentRow, children: /* @__PURE__ */ jsx57("td", { colSpan: columns.length + 1, className: TableB_default.expandedContentCell, children: /* @__PURE__ */ jsx57("div", { className: TableB_default.expandedWrapper, children: expandable.expandedRowRender(row, rowIndex) }) }) })
193033
+ ] }, key);
193034
+ }) })
193035
+ ] })
193036
+ }
193037
+ );
193038
+ if (!scrollFooter) return table;
193039
+ return /* @__PURE__ */ jsxs48("div", { className: TableB_default.root, style: themeVars, children: [
193040
+ table,
193041
+ /* @__PURE__ */ jsx57(
193042
+ TableScrollFooter,
193043
+ {
193044
+ scrollAreaRef,
193045
+ controlsColor: scrollControlsColor,
193046
+ leftLabel: scrollLeftLabel,
193047
+ rightLabel: scrollRightLabel,
193048
+ sliderLabel: scrollSliderLabel
193049
+ }
193050
+ )
193051
+ ] });
192817
193052
  };
192818
193053
  var TableB_default2 = TableB;
192819
193054
 
192820
193055
  // dist/screens/components/UserEditPopover/index.js
192821
- import { jsx as jsx56, jsxs as jsxs48 } from "react/jsx-runtime";
192822
- import React51, { useState as useState28, useEffect as useEffect20 } from "react";
193056
+ import { jsx as jsx58, jsxs as jsxs49 } from "react/jsx-runtime";
193057
+ import React53, { useState as useState29, useEffect as useEffect21 } from "react";
192823
193058
  import Popover2 from "@mui/material/Popover";
192824
193059
  import { CircleUser, Check as Check4, X as X7 } from "lucide-react";
192825
193060
 
@@ -192846,9 +193081,9 @@ function getUserId() {
192846
193081
 
192847
193082
  // dist/screens/components/UserEditPopover/index.js
192848
193083
  var UserEditPopover = ({ open: open2, anchorEl, onClose, currentName, onSuccess, bgColor, saveColor, cancelColor }) => {
192849
- const [tempUserName, setTempUserName] = useState28("");
192850
- const [loading, setLoading] = useState28(false);
192851
- useEffect20(() => {
193084
+ const [tempUserName, setTempUserName] = useState29("");
193085
+ const [loading, setLoading] = useState29(false);
193086
+ useEffect21(() => {
192852
193087
  if (open2) {
192853
193088
  setTempUserName(currentName || "");
192854
193089
  }
@@ -192871,7 +193106,7 @@ var UserEditPopover = ({ open: open2, anchorEl, onClose, currentName, onSuccess,
192871
193106
  onClose();
192872
193107
  }
192873
193108
  };
192874
- return /* @__PURE__ */ jsx56(
193109
+ return /* @__PURE__ */ jsx58(
192875
193110
  Popover2,
192876
193111
  {
192877
193112
  open: open2,
@@ -192895,9 +193130,9 @@ var UserEditPopover = ({ open: open2, anchorEl, onClose, currentName, onSuccess,
192895
193130
  }
192896
193131
  }
192897
193132
  },
192898
- children: /* @__PURE__ */ jsxs48("div", { className: UserEditPopover_default.container, children: [
192899
- /* @__PURE__ */ jsx56("h4", { className: UserEditPopover_default.header, children: "Editar Nombre" }),
192900
- /* @__PURE__ */ jsx56("div", { className: UserEditPopover_default.inputWrapper, children: /* @__PURE__ */ jsx56(
193133
+ children: /* @__PURE__ */ jsxs49("div", { className: UserEditPopover_default.container, children: [
193134
+ /* @__PURE__ */ jsx58("h4", { className: UserEditPopover_default.header, children: "Editar Nombre" }),
193135
+ /* @__PURE__ */ jsx58("div", { className: UserEditPopover_default.inputWrapper, children: /* @__PURE__ */ jsx58(
192901
193136
  InputWithIcon,
192902
193137
  {
192903
193138
  value: tempUserName,
@@ -192909,8 +193144,8 @@ var UserEditPopover = ({ open: open2, anchorEl, onClose, currentName, onSuccess,
192909
193144
  fullWidth: true
192910
193145
  }
192911
193146
  ) }),
192912
- /* @__PURE__ */ jsxs48("div", { className: UserEditPopover_default.actions, children: [
192913
- /* @__PURE__ */ jsxs48(
193147
+ /* @__PURE__ */ jsxs49("div", { className: UserEditPopover_default.actions, children: [
193148
+ /* @__PURE__ */ jsxs49(
192914
193149
  Button_default2,
192915
193150
  {
192916
193151
  className: UserEditPopover_default.btnCancel,
@@ -192918,19 +193153,19 @@ var UserEditPopover = ({ open: open2, anchorEl, onClose, currentName, onSuccess,
192918
193153
  disabled: loading,
192919
193154
  borderColor: "var(--border-gray-low)",
192920
193155
  children: [
192921
- /* @__PURE__ */ jsx56(X7, { size: 14, style: { marginRight: "4px", verticalAlign: "middle" } }),
193156
+ /* @__PURE__ */ jsx58(X7, { size: 14, style: { marginRight: "4px", verticalAlign: "middle" } }),
192922
193157
  "Cancelar"
192923
193158
  ]
192924
193159
  }
192925
193160
  ),
192926
- /* @__PURE__ */ jsxs48(
193161
+ /* @__PURE__ */ jsxs49(
192927
193162
  Button_default2,
192928
193163
  {
192929
193164
  className: UserEditPopover_default.btnSave,
192930
193165
  onClick: handleSave,
192931
193166
  disabled: loading,
192932
193167
  children: [
192933
- /* @__PURE__ */ jsx56(Check4, { size: 14, style: { marginRight: "4px", verticalAlign: "middle" } }),
193168
+ /* @__PURE__ */ jsx58(Check4, { size: 14, style: { marginRight: "4px", verticalAlign: "middle" } }),
192934
193169
  loading ? "Guardar" : "Guardar"
192935
193170
  ]
192936
193171
  }
@@ -192987,6 +193222,7 @@ export {
192987
193222
  Selector,
192988
193223
  Sidebar_default2 as Sidebar,
192989
193224
  Skeleton_default2 as Skeleton,
193225
+ Slider,
192990
193226
  SubSidebarLayout,
192991
193227
  SummaryCard_default2 as SummaryCard,
192992
193228
  Swich_default2 as Swich,