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