@windstream/react-shared-components 0.2.21 → 0.2.22

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/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" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
66
- size?: "medium" | "large" | "slim" | undefined;
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?: "search" | "location_on" | undefined;
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" | "lock" | "visibility_off" | undefined;
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;
@@ -356,7 +356,7 @@ type ButtonAsAnchor = ButtonCustomProps & Omit<AnchorHTMLAttributes<HTMLAnchorEl
356
356
  };
357
357
  type ButtonProps = ButtonAsButton | ButtonAsAnchor;
358
358
 
359
- declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
359
+ declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
360
360
 
361
361
  declare const Checklist: React__default.FC<ChecklistProps>;
362
362
 
@@ -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
@@ -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" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
66
- size?: "slim" | "medium" | "large" | undefined;
65
+ state?: "error" | "default" | "filled" | "active" | "focus" | "hover" | undefined;
66
+ size?: "medium" | "large" | "slim" | undefined;
67
67
  label?: string | undefined;
68
68
  errorText?: string | undefined;
69
69
  prefixIconName?: "search" | "location_on" | undefined;
70
70
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
71
71
  prefixIconFill?: boolean | undefined;
72
72
  suffixIconFill?: boolean | undefined;
73
- suffixIconName?: "visibility" | "visibility_off" | "lock" | undefined;
73
+ suffixIconName?: "visibility" | "lock" | "visibility_off" | 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 };