@windstream/react-shared-components 0.2.19 → 0.2.21
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.esm.js +1 -1
- 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 +6 -3
- package/dist/index.d.ts +3 -0
- 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/package.json +1 -1
- package/src/components/animation-wrapper/index.tsx +1 -0
- package/src/components/brand-button/index.tsx +30 -17
- package/src/components/brand-button/types.ts +3 -0
- package/src/contentful/blocks/button/index.tsx +8 -0
- package/src/contentful/blocks/cart-retention-banner/CartRetentionBanner.stories.tsx +168 -0
- package/src/contentful/blocks/cta-callout/index.tsx +2 -2
- package/src/contentful/blocks/email-input-block/EmailInputBlock.stories.tsx +182 -0
- package/src/contentful/blocks/find-kinetic/FindKinetic.stories.mocks.ts +11 -0
- package/src/contentful/blocks/find-kinetic/FindKinetic.stories.tsx +121 -4
- package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +245 -4
package/dist/core.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { HTMLMotionProps } from 'framer-motion';
|
|
|
24
24
|
import { ClassValue } from 'clsx';
|
|
25
25
|
export { ClassValue, clsx } from 'clsx';
|
|
26
26
|
import { IconName as IconName$1, Size as Size$2, Fill as Fill$1 } from '@shared/components/material-icon/types';
|
|
27
|
+
import { AnimationType as AnimationType$1 } from '@shared/components/animation-wrapper';
|
|
27
28
|
|
|
28
29
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
29
30
|
|
|
@@ -61,15 +62,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
61
62
|
|
|
62
63
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
63
64
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
64
|
-
state?: "default" | "
|
|
65
|
-
size?: "
|
|
65
|
+
state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
|
|
66
|
+
size?: "medium" | "large" | "slim" | undefined;
|
|
66
67
|
label?: string | undefined;
|
|
67
68
|
errorText?: string | undefined;
|
|
68
69
|
prefixIconName?: "search" | "location_on" | undefined;
|
|
69
70
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
70
71
|
prefixIconFill?: boolean | undefined;
|
|
71
72
|
suffixIconFill?: boolean | undefined;
|
|
72
|
-
suffixIconName?: "visibility" | "
|
|
73
|
+
suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
|
|
73
74
|
suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
74
75
|
containerClassName?: string | undefined;
|
|
75
76
|
prefixIconClassName?: string | undefined;
|
|
@@ -343,6 +344,8 @@ type ButtonCustomProps = {
|
|
|
343
344
|
iconName?: IconName$1;
|
|
344
345
|
iconSize?: Size$2;
|
|
345
346
|
iconFill?: Fill$1;
|
|
347
|
+
disableAnimation?: boolean;
|
|
348
|
+
animationType?: AnimationType$1 | AnimationType$1[];
|
|
346
349
|
};
|
|
347
350
|
type ButtonAsButton = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & {
|
|
348
351
|
as?: "button";
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { HTMLMotionProps } from 'framer-motion';
|
|
|
24
24
|
import { ClassValue } from 'clsx';
|
|
25
25
|
export { ClassValue, clsx } from 'clsx';
|
|
26
26
|
import { IconName as IconName$1, Size as Size$2, Fill as Fill$1 } from '@shared/components/material-icon/types';
|
|
27
|
+
import { AnimationType as AnimationType$1 } from '@shared/components/animation-wrapper';
|
|
27
28
|
|
|
28
29
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
29
30
|
|
|
@@ -343,6 +344,8 @@ type ButtonCustomProps = {
|
|
|
343
344
|
iconName?: IconName$1;
|
|
344
345
|
iconSize?: Size$2;
|
|
345
346
|
iconFill?: Fill$1;
|
|
347
|
+
disableAnimation?: boolean;
|
|
348
|
+
animationType?: AnimationType$1 | AnimationType$1[];
|
|
346
349
|
};
|
|
347
350
|
type ButtonAsButton = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & {
|
|
348
351
|
as?: "button";
|