carconnect-gatherleads-ui-lib 3.7.0-GL-1521-Modulo-Rendimiento.1 → 3.7.0-GL-1700-Modulo-Rendimiento-ROI.1

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.
@@ -673,52 +673,22 @@ export declare const GATHER_CONVERSION_CHIP_DEFAULT_NULL_LABEL = "N/A";
673
673
  export declare const GATHER_CONVERSION_CHIP_DEFAULT_THRESHOLDS: GatherConversionChipThresholds;
674
674
 
675
675
  /**
676
- * GatherBadge — A label/badge component with color variants and full external customization
676
+ * `GatherBadge` — A label/badge component with color variants.
677
677
  *
678
- * Supports predefined semantic intents (success, warning, danger, info) and a fully
679
- * customizable `intent="custom"` mode where colors are controlled via inline style props
680
- * or Tailwind className overrides.
678
+ * Available variants: system, package, custom, identity, catalog, active, default.
681
679
  *
682
680
  * @example
683
681
  * ```tsx
684
- * // Predefined intent
685
- * <GatherBadge label="Active" intent="success" appearance="outline" />
686
- *
687
- * // Fully custom colors via inline styles
688
- * <GatherBadge
689
- * label="Vigente"
690
- * intent="custom"
691
- * appearance="outline"
692
- * customColor="#ecfdf5"
693
- * customTextColor="#047857"
694
- * customBorderColor="#a7f3d0"
695
- * icon={<span className="h-1.5 w-1.5 rounded-full bg-emerald-500" />}
696
- * />
697
- *
698
- * // Custom via className overrides (Tailwind)
699
- * <GatherBadge
700
- * label="Digital"
701
- * intent="custom"
702
- * appearance="outline"
703
- * className="bg-sky-50 text-sky-700 border-sky-200"
704
- * />
682
+ * <GatherBadge label="System" variant="system" />
683
+ * <GatherBadge label="Active" variant="active" size="sm" />
684
+ * <GatherBadge label="Identity" variant="identity" icon={<KeyIcon />} />
705
685
  * ```
706
686
  */
707
687
  export declare const GatherBadge: default_2.ForwardRefExoticComponent<GatherBadgeProps & default_2.RefAttributes<HTMLSpanElement>>;
708
688
 
709
689
  export declare type GatherBadgeAppearance = 'subtle' | 'outline' | 'solid';
710
690
 
711
- /** Granular CSS class overrides for internal badge elements */
712
- export declare interface GatherBadgeClassNames {
713
- /** Override for the root span element */
714
- root?: string;
715
- /** Override for the icon wrapper span */
716
- icon?: string;
717
- /** Override for the label text (when using labelClassName shortcut) */
718
- label?: string;
719
- }
720
-
721
- export declare type GatherBadgeIntent = 'neutral' | 'success' | 'warning' | 'info' | 'danger' | 'brand' | 'muted' | 'accent' | 'identity' | 'custom';
691
+ export declare type GatherBadgeIntent = 'neutral' | 'success' | 'warning' | 'info' | 'danger' | 'brand' | 'muted' | 'accent' | 'identity';
722
692
 
723
693
  export declare interface GatherBadgeProps {
724
694
  /** Badge text label */
@@ -733,16 +703,10 @@ export declare interface GatherBadgeProps {
733
703
  size?: GatherBadgeSize;
734
704
  /** Icon rendered to the left of the label */
735
705
  icon?: React.ReactNode;
736
- /** Prop to define custom badge background color (inline style) */
706
+ /** Prop to define custom badge color */
737
707
  customColor?: string;
738
- /** Custom text color (inline style) — used with customColor or intent="custom" */
739
- customTextColor?: string;
740
- /** Custom border color (inline style) — used with appearance="outline" and intent="custom" */
741
- customBorderColor?: string;
742
- /** Additional CSS classes for the root element */
708
+ /** Additional CSS classes */
743
709
  className?: string;
744
- /** Granular CSS class overrides for internal elements */
745
- classNames?: GatherBadgeClassNames;
746
710
  }
747
711
 
748
712
  export declare type GatherBadgeShape = 'pill' | 'circle';
@@ -1123,13 +1087,13 @@ export declare interface GatherCheckboxGroupFieldConfig extends BaseFieldConfig
1123
1087
  }
1124
1088
 
1125
1089
  /**
1126
- * GatherCheckboxList — A scrollable checkbox list with support for
1127
- * labels, sublabels, badges, startContent, and disabled states.
1128
- * Includes optional select-all/deselect-all header and full style customization.
1090
+ * `GatherCheckboxList` — A scrollable checkbox list with support for
1091
+ * labels, sublabels, badges and disabled states.
1092
+ *
1093
+ * Uses the primitive `Checkbox` component internally for consistent styling.
1129
1094
  *
1130
1095
  * @example
1131
1096
  * ```tsx
1132
- * // Basic usage
1133
1097
  * <GatherCheckboxList
1134
1098
  * items={[
1135
1099
  * { id: '1', label: 'Name', sublabel: 'name', checked: true },
@@ -1138,38 +1102,10 @@ export declare interface GatherCheckboxGroupFieldConfig extends BaseFieldConfig
1138
1102
  * onChange={(id, checked) => console.log(id, checked)}
1139
1103
  * maxHeight="300px"
1140
1104
  * />
1141
- *
1142
- * // With colored dots and select-all header
1143
- * <GatherCheckboxList
1144
- * items={[
1145
- * { id: 'digital', label: 'Digital', checked: true, startContent: <span className="h-2.5 w-2.5 rounded-full bg-sky-500" /> },
1146
- * { id: 'showroom', label: 'Showroom', checked: false, startContent: <span className="h-2.5 w-2.5 rounded-full bg-emerald-500" /> },
1147
- * ]}
1148
- * onChange={handleChange}
1149
- * showSelectAll
1150
- * onSelectAll={handleSelectAll}
1151
- * onDeselectAll={handleDeselectAll}
1152
- * />
1153
1105
  * ```
1154
1106
  */
1155
1107
  export declare const GatherCheckboxList: default_2.ForwardRefExoticComponent<GatherCheckboxListProps & default_2.RefAttributes<HTMLDivElement>>;
1156
1108
 
1157
- /** Granular CSS class overrides for internal checkbox list elements */
1158
- export declare interface GatherCheckboxListClassNames {
1159
- /** Override for the root container */
1160
- root?: string;
1161
- /** Override for the <ul> list element */
1162
- list?: string;
1163
- /** Override for each list item <li> */
1164
- item?: string;
1165
- /** Override for the label text */
1166
- label?: string;
1167
- /** Override for the sublabel text */
1168
- sublabel?: string;
1169
- /** Override for the select-all header container */
1170
- header?: string;
1171
- }
1172
-
1173
1109
  export declare interface GatherCheckboxListItem {
1174
1110
  /** Unique identifier */
1175
1111
  id: string;
@@ -1181,8 +1117,6 @@ export declare interface GatherCheckboxListItem {
1181
1117
  checked: boolean;
1182
1118
  /** Whether the checkbox is disabled */
1183
1119
  disabled?: boolean;
1184
- /** Additional content rendered on the left before the label (dots, icons) */
1185
- startContent?: React.ReactNode;
1186
1120
  /** Additional content rendered on the right (badges, icons) */
1187
1121
  endContent?: React.ReactNode;
1188
1122
  }
@@ -1196,20 +1130,8 @@ export declare interface GatherCheckboxListProps {
1196
1130
  maxHeight?: string;
1197
1131
  /** Whether to show dividers between items. Defaults to true. */
1198
1132
  showDividers?: boolean;
1199
- /** Whether to show a "Select all / Deselect all" header. Defaults to false. */
1200
- showSelectAll?: boolean;
1201
- /** Label for "Select all" action (default: "Seleccionar todo") */
1202
- selectAllLabel?: string;
1203
- /** Label for "Deselect all" action (default: "Deseleccionar todo") */
1204
- deselectAllLabel?: string;
1205
- /** Callback when "Select all" is clicked */
1206
- onSelectAll?: () => void;
1207
- /** Callback when "Deselect all" is clicked */
1208
- onDeselectAll?: () => void;
1209
- /** Additional CSS classes for the root container */
1133
+ /** Additional CSS classes */
1210
1134
  className?: string;
1211
- /** Granular CSS class overrides for internal elements */
1212
- classNames?: GatherCheckboxListClassNames;
1213
1135
  /** data-testid for testing */
1214
1136
  'data-testid'?: string;
1215
1137
  }
@@ -1469,117 +1391,6 @@ export declare interface GatherComingSoonPageProps {
1469
1391
  'data-testid'?: string;
1470
1392
  }
1471
1393
 
1472
- /**
1473
- * Reusable confirmation dialog with multiple visual intents (error, warning, success, info)
1474
- * Self-contained portal-based dialog with overlay, keyboard handling, and focus trap.
1475
- *
1476
- * @param {GatherConfirmDialogProps} props - Component configuration
1477
- *
1478
- * @returns {JSX.Element | null} Rendered dialog or null when closed
1479
- *
1480
- * @example
1481
- * ```tsx
1482
- * // Destructive confirmation (delete)
1483
- * <GatherConfirmDialog
1484
- * open={isOpen}
1485
- * onOpenChange={setIsOpen}
1486
- * variant="error"
1487
- * title="¿Estás seguro?"
1488
- * description="Esta acción no se puede deshacer."
1489
- * confirmLabel="Eliminar"
1490
- * onConfirm={handleDelete}
1491
- * />
1492
- *
1493
- * // Success confirmation
1494
- * <GatherConfirmDialog
1495
- * open={isOpen}
1496
- * onOpenChange={setIsOpen}
1497
- * variant="success"
1498
- * title="Período activado"
1499
- * description="El período fue activado correctamente."
1500
- * onConfirm={() => setIsOpen(false)}
1501
- * hideCancelButton
1502
- * />
1503
- *
1504
- * // Custom icon override
1505
- * <GatherConfirmDialog
1506
- * open={isOpen}
1507
- * onOpenChange={setIsOpen}
1508
- * variant="warning"
1509
- * icon={<Trash2 className="h-6 w-6" />}
1510
- * title="Eliminar período"
1511
- * description="Se perderá todo el historial de métricas."
1512
- * onConfirm={handleDelete}
1513
- * />
1514
- * ```
1515
- */
1516
- export declare const GatherConfirmDialog: default_2.FC<GatherConfirmDialogProps>;
1517
-
1518
- export declare interface GatherConfirmDialogProps {
1519
- /** Whether the dialog is currently open */
1520
- open: boolean;
1521
- /** Callback fired when the dialog requests to close (overlay click, Escape, cancel button) */
1522
- onOpenChange: (open: boolean) => void;
1523
- /** Dialog title — if omitted, the title section is not rendered */
1524
- title?: string;
1525
- /** Dialog description/body text — rendered below the title */
1526
- description?: string;
1527
- /** Custom content rendered below description (for advanced use cases) */
1528
- children?: default_2.ReactNode;
1529
- /** Visual intent variant — controls icon, colors, and default confirm button style */
1530
- variant?: GatherConfirmDialogVariant;
1531
- /** Override the default icon for the variant — pass `null` to hide the icon entirely */
1532
- icon?: default_2.ReactNode | null;
1533
- /** Additional CSS classes for the icon container circle */
1534
- iconContainerClassName?: string;
1535
- /** Whether to show the icon section (default: true) */
1536
- showIcon?: boolean;
1537
- /** Dialog size preset */
1538
- size?: GatherConfirmDialogSize;
1539
- /** Text for the confirm/accept button */
1540
- confirmLabel?: string;
1541
- /** Text for the cancel button */
1542
- cancelLabel?: string;
1543
- /** Callback fired when the confirm button is clicked */
1544
- onConfirm: () => void;
1545
- /** Callback fired when the cancel button is clicked (defaults to onOpenChange(false)) */
1546
- onCancel?: () => void;
1547
- /** Variant style for the confirm button — overrides the variant-based default */
1548
- confirmVariant?: GatherModalVariantType;
1549
- /** Whether the confirm button is disabled */
1550
- disableConfirm?: boolean;
1551
- /** Whether to hide the cancel button */
1552
- hideCancelButton?: boolean;
1553
- /** Whether to hide the confirm button */
1554
- hideConfirmButton?: boolean;
1555
- /** Whether the dialog is in a loading state */
1556
- isLoading?: boolean;
1557
- /** Text displayed on the confirm button while loading (defaults to confirmLabel) */
1558
- loadingText?: string;
1559
- /** Whether clicking the overlay closes the dialog (default: true) */
1560
- closeOnOverlayClick?: boolean;
1561
- /** Whether pressing Escape closes the dialog (default: true) */
1562
- closeOnEsc?: boolean;
1563
- /** Additional CSS classes for the dialog container */
1564
- className?: string;
1565
- /** Inline styles for the dialog container */
1566
- style?: default_2.CSSProperties;
1567
- /** Additional CSS classes for the overlay/backdrop */
1568
- overlayClassName?: string;
1569
- /** Additional CSS classes for the body/content area */
1570
- bodyClassName?: string;
1571
- /** Additional CSS classes for the buttons wrapper */
1572
- buttonsClassName?: string;
1573
- /** Z-index for the dialog (default: 50) */
1574
- zIndex?: number;
1575
- }
1576
-
1577
- /** Size presets for the confirm dialog */
1578
- export declare type GatherConfirmDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'fullscreen';
1579
-
1580
- /** Visual intent/variant of the confirm dialog */
1581
- export declare type GatherConfirmDialogVariant = 'default' | 'error' | 'warning' | 'success' | 'info';
1582
-
1583
1394
  /**
1584
1395
  * Generic conversion percentage chip with traffic-light color coding.
1585
1396
  * Displays a percentage with green (good), yellow (warning), or red (danger) styling
@@ -1999,49 +1810,21 @@ export declare const GatherDonutChartSkeleton: default_2.FC<{
1999
1810
  }>;
2000
1811
 
2001
1812
  /**
2002
- * GatherEmptyState — A generic empty state component with full style customization
2003
- *
1813
+ * `GatherEmptyState` — A generic empty state component.
2004
1814
  * Displays an icon, primary message, description and optional action.
2005
- * Every internal element can be customized via the `classNames` prop.
2006
1815
  *
2007
1816
  * @example
2008
1817
  * ```tsx
2009
- * // Basic usage
2010
1818
  * <GatherEmptyState
2011
1819
  * icon={<InboxIcon className="h-10 w-10" />}
2012
1820
  * title="No custom properties"
2013
1821
  * description="Create your first custom property"
2014
1822
  * action={<button>Create property</button>}
2015
1823
  * />
2016
- *
2017
- * // Fully customized (e.g., icon with colored circle background)
2018
- * <GatherEmptyState
2019
- * icon={<Target className="h-5 w-5" />}
2020
- * title="No periods configured"
2021
- * description="Set up your first budget period to start tracking CPL."
2022
- * action={<GatherButton variant="gather-primary">Configure period</GatherButton>}
2023
- * classNames={{
2024
- * icon: 'h-10 w-10 rounded-full bg-emerald-50 text-emerald-600 flex items-center justify-center',
2025
- * title: 'text-sm font-bold text-slate-900',
2026
- * description: 'text-xs text-slate-500 max-w-md',
2027
- * }}
2028
- * />
2029
1824
  * ```
2030
1825
  */
2031
1826
  export declare const GatherEmptyState: default_2.ForwardRefExoticComponent<GatherEmptyStateProps & default_2.RefAttributes<HTMLDivElement>>;
2032
1827
 
2033
- /** Granular CSS class overrides for internal empty state elements */
2034
- export declare interface GatherEmptyStateClassNames {
2035
- /** Override for the icon wrapper div */
2036
- icon?: string;
2037
- /** Override for the title paragraph */
2038
- title?: string;
2039
- /** Override for the description paragraph */
2040
- description?: string;
2041
- /** Override for the action wrapper div */
2042
- action?: string;
2043
- }
2044
-
2045
1828
  export declare interface GatherEmptyStateProps {
2046
1829
  /** Main icon */
2047
1830
  icon?: React.ReactNode;
@@ -2051,10 +1834,8 @@ export declare interface GatherEmptyStateProps {
2051
1834
  description?: string;
2052
1835
  /** Optional action (button, link, etc.) */
2053
1836
  action?: React.ReactNode;
2054
- /** Additional CSS classes for the root container */
1837
+ /** Additional CSS classes */
2055
1838
  className?: string;
2056
- /** Granular CSS class overrides for internal elements */
2057
- classNames?: GatherEmptyStateClassNames;
2058
1839
  /** data-testid for testing */
2059
1840
  'data-testid'?: string;
2060
1841
  }
@@ -2368,6 +2149,21 @@ export declare interface GatherInputFieldConfig extends BaseFieldConfig {
2368
2149
  * @default 'default'
2369
2150
  */
2370
2151
  state?: 'default' | 'success' | 'warning';
2152
+ /**
2153
+ * Optional visual wrapper that wraps the field (label + input + description)
2154
+ * in a styled container. Useful for highlighting important fields with
2155
+ * distinct borders, backgrounds, and contextual descriptions.
2156
+ *
2157
+ * Only applies to input-type fields (text, number, email, etc.)
2158
+ */
2159
+ wrapper?: {
2160
+ /** CSS classes for the wrapper div (e.g., border, background, padding) */
2161
+ className?: string;
2162
+ /** Descriptive text rendered below the input, inside the wrapper */
2163
+ description?: string;
2164
+ /** CSS classes for the description text */
2165
+ descriptionClassName?: string;
2166
+ };
2371
2167
  }
2372
2168
 
2373
2169
  /**
@@ -4057,37 +3853,6 @@ export declare interface GatherTableBodyProps<T = any> extends Omit<React.HTMLAt
4057
3853
  * Contenido personalizado para mostrar cuando no hay columnas definidas.
4058
3854
  */
4059
3855
  children?: React.ReactNode;
4060
- /**
4061
- * Set of row indices or data IDs that are currently expanded.
4062
- * When provided, rows can render expanded content below them.
4063
- */
4064
- expandedRowIds?: Set<string | number>;
4065
- /**
4066
- * Callback when a row's expand/collapse state is toggled.
4067
- *
4068
- * @param rowId - The ID or index of the toggled row
4069
- */
4070
- onRowExpand?: (rowId: string | number) => void;
4071
- /**
4072
- * Function to render expanded content below a row.
4073
- * Only called for rows present in `expandedRowIds`.
4074
- *
4075
- * @param row - The data item of the expanded row
4076
- * @param rowIndex - Index of the row
4077
- *
4078
- * @returns Content to render in a full-width colspan cell below the row
4079
- */
4080
- renderExpandedContent?: (row: T, rowIndex: number) => React.ReactNode;
4081
- /**
4082
- * Function to determine the unique ID for a row (used with expandedRowIds).
4083
- * If not provided, the row index is used.
4084
- *
4085
- * @param row - The data item
4086
- * @param rowIndex - Index of the row
4087
- *
4088
- * @returns Unique identifier for the row
4089
- */
4090
- getRowId?: (row: T, rowIndex: number) => string | number;
4091
3856
  }
4092
3857
 
4093
3858
  /**
@@ -4113,16 +3878,6 @@ export declare const GatherTableCaption: default_2.ForwardRefExoticComponent<Gat
4113
3878
  export declare interface GatherTableCaptionProps extends default_2.HTMLAttributes<HTMLTableCaptionElement> {
4114
3879
  }
4115
3880
 
4116
- /** CSS class overrides for internal table elements */
4117
- export declare interface GatherTableClassNames {
4118
- /** Override for the outer container div */
4119
- container?: string;
4120
- /** Override for the <table> element */
4121
- table?: string;
4122
- /** Override for the header banner wrapper */
4123
- headerBanner?: string;
4124
- }
4125
-
4126
3881
  /**
4127
3882
  * Interfaz principal para columnas con type safety completo.
4128
3883
  *
@@ -4256,12 +4011,6 @@ export declare interface GatherTableProps extends React.HTMLAttributes<HTMLTable
4256
4011
  maxHeight?: string;
4257
4012
  /** It leads to indicate if the table is embedded with his parent or not */
4258
4013
  embedded?: boolean;
4259
- /**
4260
- * Content rendered between the table header and body.
4261
- * Useful for informational banners, warnings, or filter summaries.
4262
- * Rendered outside the table element (above the scrollable area) to avoid layout issues.
4263
- */
4264
- headerBanner?: React.ReactNode;
4265
4014
  }
4266
4015
 
4267
4016
  /**
@@ -5230,12 +4979,4 @@ export declare interface ValidationRule<T = unknown> {
5230
4979
  */
5231
4980
  export declare const VARIANT_BORDER_COLORS: Record<MetricCardVariant, string>;
5232
4981
 
5233
- export declare const VARIANT_CONFIRM_BUTTON: Record<GatherConfirmDialogVariant, GatherModalVariantType>;
5234
-
5235
- export declare const VARIANT_DEFAULT_CONFIRM_LABEL: Record<GatherConfirmDialogVariant, string>;
5236
-
5237
- export declare const VARIANT_ICON_BG: Record<GatherConfirmDialogVariant, string>;
5238
-
5239
- export declare const VARIANT_ICON_FG: Record<GatherConfirmDialogVariant, string>;
5240
-
5241
4982
  export { }