@windstream/react-shared-components 0.1.26 → 0.1.28
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/README.md +635 -635
- package/dist/contentful/index.d.ts +1 -0
- package/dist/contentful/index.esm.js +3 -3
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +3 -3
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +95 -2
- package/dist/index.d.ts +98 -5
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +182 -182
- package/src/components/accordion/Accordion.stories.tsx +230 -230
- package/src/components/accordion/index.tsx +4 -2
- package/src/components/accordion/types.ts +12 -11
- package/src/components/alert-card/AlertCard.stories.tsx +171 -171
- package/src/components/alert-card/index.tsx +41 -41
- package/src/components/alert-card/types.ts +13 -13
- package/src/components/brand-button/BrandButton.stories.tsx +223 -223
- package/src/components/brand-button/helpers.ts +35 -35
- package/src/components/brand-button/index.tsx +115 -115
- package/src/components/brand-button/types.ts +37 -37
- package/src/components/button/Button.stories.tsx +108 -108
- package/src/components/button/index.tsx +27 -27
- package/src/components/button/types.ts +14 -14
- package/src/components/call-button/CallButton.stories.tsx +324 -324
- package/src/components/call-button/index.tsx +86 -86
- package/src/components/call-button/types.ts +11 -11
- package/src/components/checkbox/Checkbox.stories.tsx +247 -247
- package/src/components/checkbox/index.tsx +197 -197
- package/src/components/checkbox/types.ts +27 -27
- package/src/components/checklist/Checklist.stories.tsx +150 -150
- package/src/components/checklist/index.tsx +59 -59
- package/src/components/checklist/types.ts +16 -16
- package/src/components/collapse/Collapse.stories.tsx +255 -255
- package/src/components/collapse/index.tsx +46 -46
- package/src/components/collapse/types.ts +6 -6
- package/src/components/divider/Divider.stories.tsx +205 -205
- package/src/components/divider/index.tsx +22 -22
- package/src/components/divider/type.ts +3 -3
- package/src/components/image/Image.stories.tsx +113 -113
- package/src/components/image/index.tsx +25 -25
- package/src/components/image/types.ts +40 -40
- package/src/components/input/Input.stories.tsx +325 -325
- package/src/components/input/index.tsx +177 -177
- package/src/components/input/types.ts +37 -37
- package/src/components/link/Link.stories.tsx +163 -163
- package/src/components/link/types.ts +25 -25
- package/src/components/list/List.stories.tsx +272 -272
- package/src/components/list/index.tsx +88 -88
- package/src/components/list/list-item/index.tsx +38 -38
- package/src/components/list/list-item/types.ts +13 -13
- package/src/components/list/types.ts +29 -29
- package/src/components/material-icon/MaterialIcon.stories.tsx +322 -322
- package/src/components/material-icon/constants.ts +98 -98
- package/src/components/material-icon/index.tsx +47 -47
- package/src/components/material-icon/types.ts +31 -31
- package/src/components/modal/Modal.stories.tsx +171 -171
- package/src/components/modal/index.tsx +164 -164
- package/src/components/modal/types.ts +24 -24
- package/src/components/next-image/index.tsx +54 -54
- package/src/components/next-image/types.ts +1 -1
- package/src/components/pagination/index.tsx +100 -100
- package/src/components/pagination/types.ts +6 -6
- package/src/components/radio-button/RadioButton.stories.tsx +307 -307
- package/src/components/radio-button/index.tsx +75 -75
- package/src/components/radio-button/types.ts +21 -21
- package/src/components/see-more/SeeMore.stories.tsx +181 -181
- package/src/components/see-more/index.tsx +44 -44
- package/src/components/see-more/types.ts +4 -4
- package/src/components/select/Select.stories.tsx +411 -411
- package/src/components/select/index.tsx +155 -155
- package/src/components/select/types.ts +36 -36
- package/src/components/select-plan-button/SelectPlanButton.stories.tsx +184 -184
- package/src/components/select-plan-button/index.tsx +57 -57
- package/src/components/select-plan-button/types.ts +14 -14
- package/src/components/skeleton/Skeleton.stories.tsx +179 -179
- package/src/components/skeleton/index.tsx +61 -61
- package/src/components/skeleton/types.ts +4 -4
- package/src/components/spinner/Spinner.stories.tsx +335 -335
- package/src/components/spinner/index.tsx +44 -44
- package/src/components/spinner/types.ts +5 -5
- package/src/components/text/Text.stories.tsx +321 -321
- package/src/components/text/index.tsx +25 -25
- package/src/components/text/types.ts +45 -45
- package/src/components/tooltip/Tooltip.stories.tsx +219 -219
- package/src/components/tooltip/index.tsx +74 -74
- package/src/components/tooltip/types.ts +7 -7
- package/src/components/view-cart-button/ViewCartButton.stories.tsx +252 -252
- package/src/components/view-cart-button/index.tsx +42 -42
- package/src/components/view-cart-button/types.ts +5 -5
- package/src/contentful/blocks/accordion/index.tsx +11 -5
- package/src/contentful/blocks/address-input-banner/index.tsx +52 -52
- package/src/contentful/blocks/address-input-banner/types.ts +14 -14
- package/src/contentful/blocks/blogs-grid/index.tsx +134 -134
- package/src/contentful/blocks/blogs-grid/types.ts +26 -26
- package/src/contentful/blocks/button/Button.stories.tsx +40 -40
- package/src/contentful/blocks/button/index.tsx +121 -121
- package/src/contentful/blocks/button/types.ts +36 -36
- package/src/contentful/blocks/callout/Callout.stories.tsx +23 -23
- package/src/contentful/blocks/callout/index.tsx +86 -86
- package/src/contentful/blocks/callout/types.ts +15 -15
- package/src/contentful/blocks/cards/Cards.stories.tsx +23 -23
- package/src/contentful/blocks/cards/blog-card/index.tsx +109 -109
- package/src/contentful/blocks/cards/blog-card/types.ts +16 -16
- package/src/contentful/blocks/cards/index.tsx +13 -13
- package/src/contentful/blocks/cards/product-card/index.tsx +208 -208
- package/src/contentful/blocks/cards/product-card/types.ts +28 -28
- package/src/contentful/blocks/cards/simple-card/index.tsx +1 -1
- package/src/contentful/blocks/cards/testimonial-card/index.tsx +88 -88
- package/src/contentful/blocks/cards/testimonial-card/types.tsx +12 -12
- package/src/contentful/blocks/cards/types.ts +1 -1
- package/src/contentful/blocks/carousel/Carousel.stories.tsx +23 -23
- package/src/contentful/blocks/carousel/helper.tsx +440 -356
- package/src/contentful/blocks/carousel/index.tsx +79 -73
- package/src/contentful/blocks/carousel/types.ts +144 -143
- package/src/contentful/blocks/cta-callout/CtaCallout.stories.tsx +46 -46
- package/src/contentful/blocks/cta-callout/index.tsx +60 -60
- package/src/contentful/blocks/cta-callout/types.ts +26 -26
- package/src/contentful/blocks/dynamic-tabs/index.tsx +204 -204
- package/src/contentful/blocks/dynamic-tabs/types.ts +21 -21
- package/src/contentful/blocks/find-kinetic/index.tsx +130 -130
- package/src/contentful/blocks/floating-banner/FloatingBanner.stories.tsx +34 -34
- package/src/contentful/blocks/floating-banner/index.tsx +93 -97
- package/src/contentful/blocks/floating-banner/types.ts +22 -22
- package/src/contentful/blocks/footer/Footer.stories.tsx +30 -30
- package/src/contentful/blocks/footer/index.tsx +6 -12
- package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +23 -23
- package/src/contentful/blocks/image-promo-bar/helper.tsx +28 -28
- package/src/contentful/blocks/image-promo-bar/types.ts +44 -44
- package/src/contentful/blocks/image-promo-bar/vimeo-embed.tsx +93 -93
- package/src/contentful/blocks/image-promo-bar/youtube-embed.tsx +46 -46
- package/src/contentful/blocks/modal/constants.ts +53 -53
- package/src/contentful/blocks/modal/types.ts +12 -12
- package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +113 -113
- package/src/contentful/blocks/navigation/index.tsx +394 -394
- package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +82 -82
- package/src/contentful/blocks/navigation/types.ts +41 -41
- package/src/contentful/blocks/primary-hero/PrimaryHero.stories.tsx +23 -23
- package/src/contentful/blocks/primary-hero/index.tsx +234 -234
- package/src/contentful/blocks/primary-hero/types.ts +35 -35
- package/src/contentful/blocks/search-block/index.tsx +90 -90
- package/src/contentful/blocks/shape-background-wrapper/ShapeBackgroundWrapper.stories.tsx +26 -26
- package/src/contentful/blocks/shape-background-wrapper/index.tsx +124 -124
- package/src/contentful/blocks/shape-background-wrapper/types.ts +36 -36
- package/src/contentful/blocks/text/Text.stories.tsx +23 -23
- package/src/contentful/blocks/text/index.tsx +12 -12
- package/src/contentful/blocks/text/types.ts +1 -1
- package/src/contentful/index.ts +75 -75
- package/src/hooks/use-body-scroll-lock.ts +34 -34
- package/src/hooks/use-carousel-swipe.ts +264 -0
- package/src/hooks/use-outside-click.ts +17 -17
- package/src/index.ts +101 -96
- package/src/next/index.ts +5 -5
- package/src/setupTests.ts +46 -46
- package/src/stories/DocsTemplate.tsx +24 -24
- package/src/styles/globals.css +343 -343
- package/src/types/global.d.ts +9 -9
- package/src/types/micro-components.ts +99 -99
- package/src/types/utm.ts +49 -49
- package/src/utils/cookie.ts +58 -58
- package/src/utils/index.ts +65 -65
- package/src/utils/utm.ts +221 -221
- package/tailwind.config.cjs +1 -0
package/dist/core.d.ts
CHANGED
|
@@ -433,6 +433,99 @@ declare const ViewCartButton: React.FC<ViewCartButtonProps>;
|
|
|
433
433
|
*/
|
|
434
434
|
declare function useBodyScrollLock(isOpen: boolean, hideScrollOnIsOpenFalse: boolean): void;
|
|
435
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Configuration options for the carousel swipe behavior
|
|
438
|
+
*/
|
|
439
|
+
interface CarouselSwipeConfig {
|
|
440
|
+
/** Total number of items in the carousel */
|
|
441
|
+
itemCount: number;
|
|
442
|
+
/** Percentage of card width to offset each slide (default: 105) */
|
|
443
|
+
cardOffsetPercentage?: number;
|
|
444
|
+
/** Percentage of container width needed to trigger slide change (default: 0.15) */
|
|
445
|
+
swipeThreshold?: number;
|
|
446
|
+
/** Mobile breakpoint in pixels (default: 768) */
|
|
447
|
+
mobileBreakpoint?: number;
|
|
448
|
+
/** Auto-scroll interval in milliseconds (default: 8000). Set to 0 to disable. */
|
|
449
|
+
autoScrollInterval?: number;
|
|
450
|
+
/** Enable auto-scroll (default: true) */
|
|
451
|
+
enableAutoScroll?: boolean;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Return value from the useCarouselSwipe hook
|
|
455
|
+
*/
|
|
456
|
+
interface CarouselSwipeReturn {
|
|
457
|
+
/** Current active slide index */
|
|
458
|
+
currentIndex: number;
|
|
459
|
+
/** Current swipe offset in pixels */
|
|
460
|
+
swipeOffset: number;
|
|
461
|
+
/** Whether user is currently swiping */
|
|
462
|
+
isSwiping: boolean;
|
|
463
|
+
/** Whether viewport is mobile size */
|
|
464
|
+
isMobile: boolean;
|
|
465
|
+
/** Memoized container width */
|
|
466
|
+
containerWidth: number;
|
|
467
|
+
/** Ref to attach to the carousel container element */
|
|
468
|
+
containerRef: React__default.RefObject<HTMLDivElement>;
|
|
469
|
+
/** Navigate to next slide */
|
|
470
|
+
nextSlide: () => void;
|
|
471
|
+
/** Navigate to previous slide */
|
|
472
|
+
prevSlide: () => void;
|
|
473
|
+
/** Navigate to specific slide index */
|
|
474
|
+
goToSlide: (index: number) => void;
|
|
475
|
+
/** Touch start handler */
|
|
476
|
+
handleTouchStart: (e: React__default.TouchEvent) => void;
|
|
477
|
+
/** Touch move handler */
|
|
478
|
+
handleTouchMove: (e: React__default.TouchEvent) => void;
|
|
479
|
+
/** Touch end handler */
|
|
480
|
+
handleTouchEnd: () => void;
|
|
481
|
+
/** Constants used for calculations */
|
|
482
|
+
constants: {
|
|
483
|
+
CARD_OFFSET_PERCENTAGE: number;
|
|
484
|
+
SWIPE_THRESHOLD: number;
|
|
485
|
+
MOBILE_BREAKPOINT: number;
|
|
486
|
+
AUTO_SCROLL_INTERVAL: number;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Custom hook for implementing swipe/touch gestures in carousels
|
|
491
|
+
*
|
|
492
|
+
* Features:
|
|
493
|
+
* - Touch/swipe support with smooth finger-following
|
|
494
|
+
* - Auto-scroll with pause on interaction
|
|
495
|
+
* - Responsive mobile detection with resize listener
|
|
496
|
+
* - Performance optimized with memoization
|
|
497
|
+
* - Configurable thresholds and behavior
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* ```tsx
|
|
501
|
+
* const carousel = useCarouselSwipe({
|
|
502
|
+
* itemCount: items.length,
|
|
503
|
+
* autoScrollInterval: 5000,
|
|
504
|
+
* });
|
|
505
|
+
*
|
|
506
|
+
* return (
|
|
507
|
+
* <div
|
|
508
|
+
* ref={carousel.containerRef}
|
|
509
|
+
* onTouchStart={carousel.handleTouchStart}
|
|
510
|
+
* onTouchMove={carousel.handleTouchMove}
|
|
511
|
+
* onTouchEnd={carousel.handleTouchEnd}
|
|
512
|
+
* >
|
|
513
|
+
* {items.map((item, index) => (
|
|
514
|
+
* <div
|
|
515
|
+
* key={index}
|
|
516
|
+
* style={{
|
|
517
|
+
* transform: `translateX(${calculateTransform(index, carousel)})`,
|
|
518
|
+
* }}
|
|
519
|
+
* >
|
|
520
|
+
* {item}
|
|
521
|
+
* </div>
|
|
522
|
+
* ))}
|
|
523
|
+
* </div>
|
|
524
|
+
* );
|
|
525
|
+
* ```
|
|
526
|
+
*/
|
|
527
|
+
declare function useCarouselSwipe(config: CarouselSwipeConfig): CarouselSwipeReturn;
|
|
528
|
+
|
|
436
529
|
/**
|
|
437
530
|
* Utility function to combine class names using clsx
|
|
438
531
|
* @param inputs - Class values to combine
|
|
@@ -440,5 +533,5 @@ declare function useBodyScrollLock(isOpen: boolean, hideScrollOnIsOpenFalse: boo
|
|
|
440
533
|
*/
|
|
441
534
|
declare const cx: (...val: ClassValue[]) => string;
|
|
442
535
|
|
|
443
|
-
export { Accordion, AlertCard, BrandButton, Button, CallButton, Checkbox, Checklist, Collapse, Divider, Image, Input, InputField, Link, List, ListItem, MaterialIcon, Modal, NextImage, PageSkeleton, RadioButton, SeeMore, Select, SelectPlanButton, Skeleton, Spinner, Text, Input as TextInput, Tooltip, ViewCartButton, cx, useBodyScrollLock };
|
|
444
|
-
export type { AlertCardProps, Animation, ButtonProps as BrandButtonProps, ButtonSizeT, ButtonVariantsT, CheckboxProps, CollapsibleProps, DividerProps, FilterOptions, IconName, IconProps, ImageComponentProps, ImageProps, InputFieldProps, InputProps, LinkProps, ListItemProps, ListProps, ModalProps, NextImageComponentProps, RadioButtonProps, ResponsiveSize, SelectOption, SelectPlanButtonProps, SelectProps, Shape, Size, SkeletonProps, SpinnerProps, TextProps, TextVariant, ToolTipProps, ViewCartButtonProps };
|
|
536
|
+
export { Accordion, AlertCard, BrandButton, Button, CallButton, Checkbox, Checklist, Collapse, Divider, Image, Input, InputField, Link, List, ListItem, MaterialIcon, Modal, NextImage, PageSkeleton, RadioButton, SeeMore, Select, SelectPlanButton, Skeleton, Spinner, Text, Input as TextInput, Tooltip, ViewCartButton, cx, useBodyScrollLock, useCarouselSwipe };
|
|
537
|
+
export type { AlertCardProps, Animation, ButtonProps as BrandButtonProps, ButtonSizeT, ButtonVariantsT, CarouselSwipeConfig, CarouselSwipeReturn, CheckboxProps, CollapsibleProps, DividerProps, FilterOptions, IconName, IconProps, ImageComponentProps, ImageProps, InputFieldProps, InputProps, LinkProps, ListItemProps, ListProps, ModalProps, NextImageComponentProps, RadioButtonProps, ResponsiveSize, SelectOption, SelectPlanButtonProps, SelectProps, Shape, Size, SkeletonProps, SpinnerProps, TextProps, TextVariant, ToolTipProps, ViewCartButtonProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -59,15 +59,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
59
59
|
|
|
60
60
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
61
61
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
62
|
-
state?: "default" | "
|
|
63
|
-
size?: "
|
|
62
|
+
state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
|
|
63
|
+
size?: "medium" | "large" | "slim" | undefined;
|
|
64
64
|
label?: string | undefined;
|
|
65
65
|
errorText?: string | undefined;
|
|
66
66
|
prefixIconName?: "search" | "location_on" | undefined;
|
|
67
67
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
68
68
|
prefixIconFill?: boolean | undefined;
|
|
69
69
|
suffixIconFill?: boolean | undefined;
|
|
70
|
-
suffixIconName?: "visibility" | "
|
|
70
|
+
suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
|
|
71
71
|
suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
72
72
|
containerClassName?: string | undefined;
|
|
73
73
|
prefixIconClassName?: string | undefined;
|
|
@@ -433,6 +433,99 @@ declare const ViewCartButton: React.FC<ViewCartButtonProps>;
|
|
|
433
433
|
*/
|
|
434
434
|
declare function useBodyScrollLock(isOpen: boolean, hideScrollOnIsOpenFalse: boolean): void;
|
|
435
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Configuration options for the carousel swipe behavior
|
|
438
|
+
*/
|
|
439
|
+
interface CarouselSwipeConfig {
|
|
440
|
+
/** Total number of items in the carousel */
|
|
441
|
+
itemCount: number;
|
|
442
|
+
/** Percentage of card width to offset each slide (default: 105) */
|
|
443
|
+
cardOffsetPercentage?: number;
|
|
444
|
+
/** Percentage of container width needed to trigger slide change (default: 0.15) */
|
|
445
|
+
swipeThreshold?: number;
|
|
446
|
+
/** Mobile breakpoint in pixels (default: 768) */
|
|
447
|
+
mobileBreakpoint?: number;
|
|
448
|
+
/** Auto-scroll interval in milliseconds (default: 8000). Set to 0 to disable. */
|
|
449
|
+
autoScrollInterval?: number;
|
|
450
|
+
/** Enable auto-scroll (default: true) */
|
|
451
|
+
enableAutoScroll?: boolean;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Return value from the useCarouselSwipe hook
|
|
455
|
+
*/
|
|
456
|
+
interface CarouselSwipeReturn {
|
|
457
|
+
/** Current active slide index */
|
|
458
|
+
currentIndex: number;
|
|
459
|
+
/** Current swipe offset in pixels */
|
|
460
|
+
swipeOffset: number;
|
|
461
|
+
/** Whether user is currently swiping */
|
|
462
|
+
isSwiping: boolean;
|
|
463
|
+
/** Whether viewport is mobile size */
|
|
464
|
+
isMobile: boolean;
|
|
465
|
+
/** Memoized container width */
|
|
466
|
+
containerWidth: number;
|
|
467
|
+
/** Ref to attach to the carousel container element */
|
|
468
|
+
containerRef: React__default.RefObject<HTMLDivElement>;
|
|
469
|
+
/** Navigate to next slide */
|
|
470
|
+
nextSlide: () => void;
|
|
471
|
+
/** Navigate to previous slide */
|
|
472
|
+
prevSlide: () => void;
|
|
473
|
+
/** Navigate to specific slide index */
|
|
474
|
+
goToSlide: (index: number) => void;
|
|
475
|
+
/** Touch start handler */
|
|
476
|
+
handleTouchStart: (e: React__default.TouchEvent) => void;
|
|
477
|
+
/** Touch move handler */
|
|
478
|
+
handleTouchMove: (e: React__default.TouchEvent) => void;
|
|
479
|
+
/** Touch end handler */
|
|
480
|
+
handleTouchEnd: () => void;
|
|
481
|
+
/** Constants used for calculations */
|
|
482
|
+
constants: {
|
|
483
|
+
CARD_OFFSET_PERCENTAGE: number;
|
|
484
|
+
SWIPE_THRESHOLD: number;
|
|
485
|
+
MOBILE_BREAKPOINT: number;
|
|
486
|
+
AUTO_SCROLL_INTERVAL: number;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Custom hook for implementing swipe/touch gestures in carousels
|
|
491
|
+
*
|
|
492
|
+
* Features:
|
|
493
|
+
* - Touch/swipe support with smooth finger-following
|
|
494
|
+
* - Auto-scroll with pause on interaction
|
|
495
|
+
* - Responsive mobile detection with resize listener
|
|
496
|
+
* - Performance optimized with memoization
|
|
497
|
+
* - Configurable thresholds and behavior
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* ```tsx
|
|
501
|
+
* const carousel = useCarouselSwipe({
|
|
502
|
+
* itemCount: items.length,
|
|
503
|
+
* autoScrollInterval: 5000,
|
|
504
|
+
* });
|
|
505
|
+
*
|
|
506
|
+
* return (
|
|
507
|
+
* <div
|
|
508
|
+
* ref={carousel.containerRef}
|
|
509
|
+
* onTouchStart={carousel.handleTouchStart}
|
|
510
|
+
* onTouchMove={carousel.handleTouchMove}
|
|
511
|
+
* onTouchEnd={carousel.handleTouchEnd}
|
|
512
|
+
* >
|
|
513
|
+
* {items.map((item, index) => (
|
|
514
|
+
* <div
|
|
515
|
+
* key={index}
|
|
516
|
+
* style={{
|
|
517
|
+
* transform: `translateX(${calculateTransform(index, carousel)})`,
|
|
518
|
+
* }}
|
|
519
|
+
* >
|
|
520
|
+
* {item}
|
|
521
|
+
* </div>
|
|
522
|
+
* ))}
|
|
523
|
+
* </div>
|
|
524
|
+
* );
|
|
525
|
+
* ```
|
|
526
|
+
*/
|
|
527
|
+
declare function useCarouselSwipe(config: CarouselSwipeConfig): CarouselSwipeReturn;
|
|
528
|
+
|
|
436
529
|
/**
|
|
437
530
|
* Utility function to combine class names using clsx
|
|
438
531
|
* @param inputs - Class values to combine
|
|
@@ -440,5 +533,5 @@ declare function useBodyScrollLock(isOpen: boolean, hideScrollOnIsOpenFalse: boo
|
|
|
440
533
|
*/
|
|
441
534
|
declare const cx: (...val: ClassValue[]) => string;
|
|
442
535
|
|
|
443
|
-
export { Accordion, AlertCard, BrandButton, Button, CallButton, Checkbox, Checklist, Collapse, Divider, Image, Input, InputField, Link, List, ListItem, MaterialIcon, Modal, NextImage, PageSkeleton, RadioButton, SeeMore, Select, SelectPlanButton, Skeleton, Spinner, Text, Input as TextInput, Tooltip, ViewCartButton, cx, useBodyScrollLock };
|
|
444
|
-
export type { AlertCardProps, Animation, ButtonProps as BrandButtonProps, ButtonSizeT, ButtonVariantsT, CheckboxProps, CollapsibleProps, DividerProps, FilterOptions, IconName, IconProps, ImageComponentProps, ImageProps, InputFieldProps, InputProps, LinkProps, ListItemProps, ListProps, ModalProps, NextImageComponentProps, RadioButtonProps, ResponsiveSize, SelectOption, SelectPlanButtonProps, SelectProps, Shape, Size, SkeletonProps, SpinnerProps, TextProps, TextVariant, ToolTipProps, ViewCartButtonProps };
|
|
536
|
+
export { Accordion, AlertCard, BrandButton, Button, CallButton, Checkbox, Checklist, Collapse, Divider, Image, Input, InputField, Link, List, ListItem, MaterialIcon, Modal, NextImage, PageSkeleton, RadioButton, SeeMore, Select, SelectPlanButton, Skeleton, Spinner, Text, Input as TextInput, Tooltip, ViewCartButton, cx, useBodyScrollLock, useCarouselSwipe };
|
|
537
|
+
export type { AlertCardProps, Animation, ButtonProps as BrandButtonProps, ButtonSizeT, ButtonVariantsT, CarouselSwipeConfig, CarouselSwipeReturn, CheckboxProps, CollapsibleProps, DividerProps, FilterOptions, IconName, IconProps, ImageComponentProps, ImageProps, InputFieldProps, InputProps, LinkProps, ListItemProps, ListProps, ModalProps, NextImageComponentProps, RadioButtonProps, ResponsiveSize, SelectOption, SelectPlanButtonProps, SelectProps, Shape, Size, SkeletonProps, SpinnerProps, TextProps, TextVariant, ToolTipProps, ViewCartButtonProps };
|