@windstream/react-shared-components 0.0.73 → 0.0.76
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 +1 -0
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +11 -3
- package/dist/index.d.ts +14 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/brand-button/BrandButton.stories.tsx +6 -2
- package/src/components/brand-button/index.tsx +31 -9
- package/src/components/brand-button/types.ts +15 -3
- package/src/contentful/blocks/button/index.tsx +12 -11
- package/src/contentful/blocks/find-kinetic/index.tsx +4 -1
- package/src/contentful/blocks/find-kinetic/types.ts +1 -0
- package/src/contentful/blocks/floating-banner/index.tsx +1 -1
- package/src/contentful/blocks/primary-hero/index.tsx +92 -40
package/dist/core.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { AccordionProps } from '@shared/components/accordion/types';
|
|
|
13
13
|
export { AccordionProps } from '@shared/components/accordion/types';
|
|
14
14
|
import { Props as Props$1 } from 'react-select';
|
|
15
15
|
import { TextVariant as TextVariant$1 } from '@shared/components/text';
|
|
16
|
-
import
|
|
16
|
+
import { ButtonProps as ButtonProps$2 } from '@shared/components/brand-button/types';
|
|
17
17
|
import { ChecklistProps } from '@shared/components/checklist/types';
|
|
18
18
|
export { ChecklistProps } from '@shared/components/checklist/types';
|
|
19
19
|
import { SeeMoreProps } from '@shared/components/see-more/types';
|
|
@@ -326,12 +326,20 @@ type ButtonCustomProps = {
|
|
|
326
326
|
isLoading?: boolean;
|
|
327
327
|
label?: string;
|
|
328
328
|
text?: string;
|
|
329
|
+
disabled?: boolean;
|
|
329
330
|
fullWidth?: boolean;
|
|
330
331
|
size?: ResponsiveSize;
|
|
331
332
|
};
|
|
332
|
-
type
|
|
333
|
+
type ButtonAsButton = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & {
|
|
334
|
+
as?: "button";
|
|
335
|
+
};
|
|
336
|
+
type ButtonAsAnchor = ButtonCustomProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className"> & {
|
|
337
|
+
as: "a";
|
|
338
|
+
href: string;
|
|
339
|
+
};
|
|
340
|
+
type ButtonProps = ButtonAsButton | ButtonAsAnchor;
|
|
333
341
|
|
|
334
|
-
declare const BrandButton:
|
|
342
|
+
declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
335
343
|
|
|
336
344
|
declare const Checklist: React__default.FC<ChecklistProps>;
|
|
337
345
|
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { AccordionProps } from '@shared/components/accordion/types';
|
|
|
13
13
|
export { AccordionProps } from '@shared/components/accordion/types';
|
|
14
14
|
import { Props as Props$1 } from 'react-select';
|
|
15
15
|
import { TextVariant as TextVariant$1 } from '@shared/components/text';
|
|
16
|
-
import
|
|
16
|
+
import { ButtonProps as ButtonProps$2 } from '@shared/components/brand-button/types';
|
|
17
17
|
import { ChecklistProps } from '@shared/components/checklist/types';
|
|
18
18
|
export { ChecklistProps } from '@shared/components/checklist/types';
|
|
19
19
|
import { SeeMoreProps } from '@shared/components/see-more/types';
|
|
@@ -57,15 +57,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
57
57
|
|
|
58
58
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
59
59
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
60
|
-
state?: "default" | "
|
|
61
|
-
size?: "
|
|
60
|
+
state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
|
|
61
|
+
size?: "medium" | "large" | "slim" | undefined;
|
|
62
62
|
label?: string | undefined;
|
|
63
63
|
errorText?: string | undefined;
|
|
64
64
|
prefixIconName?: "search" | "location_on" | undefined;
|
|
65
65
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
66
66
|
prefixIconFill?: boolean | undefined;
|
|
67
67
|
suffixIconFill?: boolean | undefined;
|
|
68
|
-
suffixIconName?: "visibility" | "
|
|
68
|
+
suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
|
|
69
69
|
suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
70
70
|
containerClassName?: string | undefined;
|
|
71
71
|
prefixIconClassName?: string | undefined;
|
|
@@ -326,12 +326,20 @@ type ButtonCustomProps = {
|
|
|
326
326
|
isLoading?: boolean;
|
|
327
327
|
label?: string;
|
|
328
328
|
text?: string;
|
|
329
|
+
disabled?: boolean;
|
|
329
330
|
fullWidth?: boolean;
|
|
330
331
|
size?: ResponsiveSize;
|
|
331
332
|
};
|
|
332
|
-
type
|
|
333
|
+
type ButtonAsButton = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & {
|
|
334
|
+
as?: "button";
|
|
335
|
+
};
|
|
336
|
+
type ButtonAsAnchor = ButtonCustomProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className"> & {
|
|
337
|
+
as: "a";
|
|
338
|
+
href: string;
|
|
339
|
+
};
|
|
340
|
+
type ButtonProps = ButtonAsButton | ButtonAsAnchor;
|
|
333
341
|
|
|
334
|
-
declare const BrandButton:
|
|
342
|
+
declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
335
343
|
|
|
336
344
|
declare const Checklist: React__default.FC<ChecklistProps>;
|
|
337
345
|
|