@windstream/react-shared-components 0.2.21 → 0.2.23
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/dist/contentful/index.d.ts +6 -3
- package/dist/contentful/index.esm.js +3 -3
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +10 -5
- package/dist/index.d.ts +6 -1
- package/dist/index.esm.js +1 -1
- 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/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/animation-wrapper/index.tsx +8 -2
- package/src/components/animation-wrapper/types.ts +6 -0
- package/src/components/brand-button/index.tsx +12 -3
- package/src/contentful/blocks/anchored-bottom-banner/AnchoredBottomBanner.stories.tsx +155 -0
- package/src/contentful/blocks/button/index.tsx +12 -3
- package/src/contentful/blocks/callout/Callout.stories.mocks.ts +327 -0
- package/src/contentful/blocks/callout/Callout.stories.tsx +315 -2
- package/src/contentful/blocks/callout/types.ts +1 -2
- package/src/contentful/blocks/email-input-block/index.tsx +41 -17
- package/src/contentful/blocks/email-input-block/types.ts +2 -1
- package/src/contentful/blocks/image-promo-bar/index.test.tsx +45 -4
- package/src/contentful/blocks/image-promo-bar/index.tsx +4 -1
- package/src/contentful/blocks/image-promo-bar/types.ts +1 -0
- package/src/contentful/blocks/primary-hero/index.test.tsx +63 -0
- package/src/contentful/blocks/primary-hero/index.tsx +66 -9
- package/src/hooks/contentful/use-contentful-rich-text.test.tsx +29 -0
- package/src/hooks/contentful/use-contentful-rich-text.tsx +20 -9
- package/src/index.ts +1 -0
- package/src/types/global.d.ts +5 -0
package/dist/core.d.ts
CHANGED
|
@@ -62,15 +62,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
62
62
|
|
|
63
63
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
64
64
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
65
|
-
state?: "default" | "
|
|
66
|
-
size?: "
|
|
65
|
+
state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
|
|
66
|
+
size?: "slim" | "medium" | "large" | undefined;
|
|
67
67
|
label?: string | undefined;
|
|
68
68
|
errorText?: string | undefined;
|
|
69
|
-
prefixIconName?: "
|
|
69
|
+
prefixIconName?: "location_on" | "search" | undefined;
|
|
70
70
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
71
71
|
prefixIconFill?: boolean | undefined;
|
|
72
72
|
suffixIconFill?: boolean | undefined;
|
|
73
|
-
suffixIconName?: "visibility" | "
|
|
73
|
+
suffixIconName?: "visibility" | "visibility_off" | "lock" | undefined;
|
|
74
74
|
suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
75
75
|
containerClassName?: string | undefined;
|
|
76
76
|
prefixIconClassName?: string | undefined;
|
|
@@ -431,6 +431,11 @@ declare namespace Tooltip {
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
type AnimationType = "scale" | "shadow" | "lift" | "opacity" | "grow" | "pop";
|
|
434
|
+
/**
|
|
435
|
+
* Single source of truth for the default button animation type.
|
|
436
|
+
* Change this value to update the default button animation across the app.
|
|
437
|
+
*/
|
|
438
|
+
declare const DEFAULT_BUTTON_ANIMATION_TYPE: AnimationType;
|
|
434
439
|
interface AnimationWrapperProps extends Omit<HTMLMotionProps<"div">, "children"> {
|
|
435
440
|
children: ReactElement;
|
|
436
441
|
animationType?: AnimationType | AnimationType[];
|
|
@@ -558,5 +563,5 @@ declare function useCarouselSwipe(config: CarouselSwipeConfig): CarouselSwipeRet
|
|
|
558
563
|
*/
|
|
559
564
|
declare const cx: (...val: ClassValue[]) => string;
|
|
560
565
|
|
|
561
|
-
export { Accordion, AlertCard, AnimationWrapper, 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 };
|
|
566
|
+
export { Accordion, AlertCard, AnimationWrapper, BrandButton, Button, CallButton, Checkbox, Checklist, Collapse, DEFAULT_BUTTON_ANIMATION_TYPE, 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 };
|
|
562
567
|
export type { AlertCardProps, Animation, AnimationType, AnimationWrapperProps, 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
|
@@ -431,6 +431,11 @@ declare namespace Tooltip {
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
type AnimationType = "scale" | "shadow" | "lift" | "opacity" | "grow" | "pop";
|
|
434
|
+
/**
|
|
435
|
+
* Single source of truth for the default button animation type.
|
|
436
|
+
* Change this value to update the default button animation across the app.
|
|
437
|
+
*/
|
|
438
|
+
declare const DEFAULT_BUTTON_ANIMATION_TYPE: AnimationType;
|
|
434
439
|
interface AnimationWrapperProps extends Omit<HTMLMotionProps<"div">, "children"> {
|
|
435
440
|
children: ReactElement;
|
|
436
441
|
animationType?: AnimationType | AnimationType[];
|
|
@@ -558,5 +563,5 @@ declare function useCarouselSwipe(config: CarouselSwipeConfig): CarouselSwipeRet
|
|
|
558
563
|
*/
|
|
559
564
|
declare const cx: (...val: ClassValue[]) => string;
|
|
560
565
|
|
|
561
|
-
export { Accordion, AlertCard, AnimationWrapper, 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 };
|
|
566
|
+
export { Accordion, AlertCard, AnimationWrapper, BrandButton, Button, CallButton, Checkbox, Checklist, Collapse, DEFAULT_BUTTON_ANIMATION_TYPE, 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 };
|
|
562
567
|
export type { AlertCardProps, Animation, AnimationType, AnimationWrapperProps, 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 };
|