carconnect-gatherleads-ui-lib 3.4.0 → 3.5.0-GL-1521-Modulo-Rendimiento.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.
|
@@ -1027,6 +1027,8 @@ export declare interface GatherCatalogSelectorProps extends Omit<React_2.ButtonH
|
|
|
1027
1027
|
loadingText?: string;
|
|
1028
1028
|
/** Additional CSS classes for the root container */
|
|
1029
1029
|
className?: string;
|
|
1030
|
+
/** Whether group headers are selectable. Defaults to true. When false, only children can be selected. */
|
|
1031
|
+
groupSelectable?: boolean;
|
|
1030
1032
|
}
|
|
1031
1033
|
|
|
1032
1034
|
/**
|
|
@@ -1334,6 +1336,59 @@ export declare interface GatherComboboxProps extends Omit<React_2.InputHTMLAttri
|
|
|
1334
1336
|
loadingText?: string;
|
|
1335
1337
|
}
|
|
1336
1338
|
|
|
1339
|
+
/** Available color accents for the coming soon page theming */
|
|
1340
|
+
export declare type GatherComingSoonAccent = 'emerald' | 'amber' | 'sky';
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Full-page template for sections under development. Displays a frosted
|
|
1344
|
+
* shimmer background (customizable via `background` prop) with a centered
|
|
1345
|
+
* card containing an icon, "MUY PRONTO" badge, title, description, and
|
|
1346
|
+
* a benefits checklist. No CTA or data collection.
|
|
1347
|
+
*
|
|
1348
|
+
* @param {GatherComingSoonPageProps} props - Component props
|
|
1349
|
+
* @param {React.ReactNode} props.icon - Section icon (consumer controls size)
|
|
1350
|
+
* @param {GatherComingSoonAccent} props.colorAccent - Color accent: 'emerald' | 'amber' | 'sky'
|
|
1351
|
+
* @param {string} props.title - Section title
|
|
1352
|
+
* @param {string} props.description - Value-oriented description (no dates or technical features)
|
|
1353
|
+
* @param {string[]} props.benefits - List of 3-4 generic benefits
|
|
1354
|
+
* @param {React.ReactNode} [props.background] - Custom background. Defaults to generic shimmer layout
|
|
1355
|
+
* @param {string} [props.className] - Additional classes for root container
|
|
1356
|
+
* @param {string} [props.data-testid] - Test identifier
|
|
1357
|
+
*
|
|
1358
|
+
* @returns {React.ReactElement} Full-page coming soon template
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
* ```tsx
|
|
1362
|
+
* <GatherComingSoonPage
|
|
1363
|
+
* icon={<TrendingUp className="h-6 w-6" />}
|
|
1364
|
+
* colorAccent="amber"
|
|
1365
|
+
* title="Rendimiento"
|
|
1366
|
+
* description="Visualiza el desempeño de tu operación."
|
|
1367
|
+
* benefits={["Métricas en tiempo real", "Comparativas entre períodos"]}
|
|
1368
|
+
* />
|
|
1369
|
+
* ```
|
|
1370
|
+
*/
|
|
1371
|
+
export declare const GatherComingSoonPage: default_2.FC<GatherComingSoonPageProps>;
|
|
1372
|
+
|
|
1373
|
+
export declare interface GatherComingSoonPageProps {
|
|
1374
|
+
/** Section icon as ReactNode — consumer controls size and styling */
|
|
1375
|
+
icon: React.ReactNode;
|
|
1376
|
+
/** Color accent applied to icon, badge, and benefit checkmarks */
|
|
1377
|
+
colorAccent: GatherComingSoonAccent;
|
|
1378
|
+
/** Section title displayed in the central card */
|
|
1379
|
+
title: string;
|
|
1380
|
+
/** Value-oriented description — no dates or technical feature names */
|
|
1381
|
+
description: string;
|
|
1382
|
+
/** List of 3-4 generic benefits shown with checkmarks */
|
|
1383
|
+
benefits: string[];
|
|
1384
|
+
/** Custom background. If omitted, uses default generic shimmer layout */
|
|
1385
|
+
background?: React.ReactNode;
|
|
1386
|
+
/** Additional CSS classes for the root container */
|
|
1387
|
+
className?: string;
|
|
1388
|
+
/** data-testid for testing */
|
|
1389
|
+
'data-testid'?: string;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1337
1392
|
/**
|
|
1338
1393
|
* Generic conversion percentage chip with traffic-light color coding.
|
|
1339
1394
|
* Displays a percentage with green (good), yellow (warning), or red (danger) styling
|
|
@@ -2946,6 +3001,53 @@ export declare interface GatherMultiSelectProps {
|
|
|
2946
3001
|
loadingText?: string;
|
|
2947
3002
|
}
|
|
2948
3003
|
|
|
3004
|
+
/**
|
|
3005
|
+
* Conditional wrapper that displays a skeleton structure while loading
|
|
3006
|
+
* and reveals real content when data is ready. Applies a smooth 200ms
|
|
3007
|
+
* opacity fade transition between states.
|
|
3008
|
+
*
|
|
3009
|
+
* Includes WCAG A accessibility: aria-busy and aria-live="polite" to
|
|
3010
|
+
* communicate loading state to screen readers.
|
|
3011
|
+
*
|
|
3012
|
+
* @param {GatherPageSkeletonProps} props - Component props
|
|
3013
|
+
* @param {boolean} props.loading - Controls whether skeleton or content is shown
|
|
3014
|
+
* @param {React.ReactNode} props.skeleton - Skeleton structure (built with GatherShimmer)
|
|
3015
|
+
* @param {React.ReactNode} props.children - Real page content
|
|
3016
|
+
* @param {string} [props.className] - Additional classes for the root container
|
|
3017
|
+
* @param {string} [props.data-testid] - Test identifier
|
|
3018
|
+
*
|
|
3019
|
+
* @returns {React.ReactElement} Container with skeleton or content based on loading state
|
|
3020
|
+
*
|
|
3021
|
+
* @example
|
|
3022
|
+
* ```tsx
|
|
3023
|
+
* <GatherPageSkeleton
|
|
3024
|
+
* loading={isLoading}
|
|
3025
|
+
* skeleton={
|
|
3026
|
+
* <div className="space-y-4 p-6">
|
|
3027
|
+
* <GatherShimmer className="h-8 w-1/3" />
|
|
3028
|
+
* <GatherShimmer className="h-64 w-full" />
|
|
3029
|
+
* </div>
|
|
3030
|
+
* }
|
|
3031
|
+
* >
|
|
3032
|
+
* <ActualPageContent />
|
|
3033
|
+
* </GatherPageSkeleton>
|
|
3034
|
+
* ```
|
|
3035
|
+
*/
|
|
3036
|
+
export declare const GatherPageSkeleton: default_2.FC<GatherPageSkeletonProps>;
|
|
3037
|
+
|
|
3038
|
+
export declare interface GatherPageSkeletonProps {
|
|
3039
|
+
/** Controls whether the skeleton or the real content is displayed */
|
|
3040
|
+
loading: boolean;
|
|
3041
|
+
/** Skeleton structure defined inline by the consumer (using GatherShimmer) */
|
|
3042
|
+
skeleton: React.ReactNode;
|
|
3043
|
+
/** Real page content revealed when loading is false */
|
|
3044
|
+
children: React.ReactNode;
|
|
3045
|
+
/** Additional CSS classes for the root container */
|
|
3046
|
+
className?: string;
|
|
3047
|
+
/** data-testid for testing */
|
|
3048
|
+
'data-testid'?: string;
|
|
3049
|
+
}
|
|
3050
|
+
|
|
2949
3051
|
/**
|
|
2950
3052
|
* Componente GatherRadioButton - Renderiza un grupo de radio buttons con opciones configurables
|
|
2951
3053
|
*
|
|
@@ -3299,6 +3401,41 @@ declare const gatherSelectVariants: (props?: ({
|
|
|
3299
3401
|
state?: "default" | "success" | "warning" | null | undefined;
|
|
3300
3402
|
} & ClassProp) | undefined) => string;
|
|
3301
3403
|
|
|
3404
|
+
/**
|
|
3405
|
+
* Atomic animated primitive for building skeleton loading structures.
|
|
3406
|
+
* Renders a rectangle with configurable animation (pulse or wave).
|
|
3407
|
+
* Consumer controls size and position via `className` prop.
|
|
3408
|
+
*
|
|
3409
|
+
* @param {GatherShimmerProps} props - Component props
|
|
3410
|
+
* @param {string} [props.className] - Tailwind classes for width, height, rounded, margins
|
|
3411
|
+
* @param {React.CSSProperties} [props.style] - Fallback for dynamic sizes
|
|
3412
|
+
* @param {GatherShimmerVariant} [props.variant='pulse'] - Animation variant: 'pulse' or 'wave'
|
|
3413
|
+
* @param {string} [props.data-testid] - Test identifier
|
|
3414
|
+
*
|
|
3415
|
+
* @returns {React.ReactElement} A decorative shimmer block with aria-hidden
|
|
3416
|
+
*
|
|
3417
|
+
* @example
|
|
3418
|
+
* ```tsx
|
|
3419
|
+
* <GatherShimmer className="h-8 w-1/3" />
|
|
3420
|
+
* <GatherShimmer className="h-64 w-full" variant="wave" />
|
|
3421
|
+
* ```
|
|
3422
|
+
*/
|
|
3423
|
+
export declare const GatherShimmer: default_2.FC<GatherShimmerProps>;
|
|
3424
|
+
|
|
3425
|
+
export declare interface GatherShimmerProps {
|
|
3426
|
+
/** Tailwind classes for width, height, rounded, margins */
|
|
3427
|
+
className?: string;
|
|
3428
|
+
/** Fallback for dynamic sizes when Tailwind classes are insufficient */
|
|
3429
|
+
style?: React.CSSProperties;
|
|
3430
|
+
/** Animation variant. Default: 'pulse' */
|
|
3431
|
+
variant?: GatherShimmerVariant;
|
|
3432
|
+
/** data-testid for testing */
|
|
3433
|
+
'data-testid'?: string;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
/** Animation variant for the shimmer effect */
|
|
3437
|
+
export declare type GatherShimmerVariant = 'pulse' | 'wave';
|
|
3438
|
+
|
|
3302
3439
|
/**
|
|
3303
3440
|
* GatherStackedBarChart — Stacked bar chart with vertical and horizontal orientations.
|
|
3304
3441
|
* Vertical mode: bars grow upward, categories on X-axis.
|