@windstream/react-shared-components 0.2.85 → 0.2.86
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 +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/blogs-grid/{BlogGrid.stories.tsx → blog-grid.stories.tsx} +1 -1
- package/src/contentful/blocks/callout/{Callout.stories.tsx → callout.stories.tsx} +1 -1
- package/src/contentful/blocks/cta-callout/index.test.tsx +6 -6
- package/src/contentful/blocks/cta-callout/index.tsx +6 -6
- package/src/contentful/blocks/find-kinetic/{FindKinetic.stories.tsx → find-kinetic.stories.tsx} +1 -1
- package/src/contentful/blocks/navigation/{Navigation.stories.tsx → navigation.stories.tsx} +1 -1
- /package/src/contentful/blocks/address-input-banner/{AddressInputBanner.stories.tsx → address-input-banner.stories.tsx} +0 -0
- /package/src/contentful/blocks/anchored-bottom-banner/{AnchoredBottomBanner.stories.tsx → anchored-bottom-banner.stories.tsx} +0 -0
- /package/src/contentful/blocks/award-marquee/{AwardMarquee.stories.tsx → award-marquee.stories.tsx} +0 -0
- /package/src/contentful/blocks/blogs-grid/{BlogGrid.stories.mocks.tsx → blog-grid.stories.mocks.tsx} +0 -0
- /package/src/contentful/blocks/breadcrumbs/{BreadcrumbNavigation.stories.tsx → breadcrumb-navigation.stories.tsx} +0 -0
- /package/src/contentful/blocks/button/{Button.stories.tsx → button.stories.tsx} +0 -0
- /package/src/contentful/blocks/callout/{Callout.stories.mocks.ts → callout.stories.mocks.ts} +0 -0
- /package/src/contentful/blocks/cards/{Cards.stories.tsx → cards.stories.tsx} +0 -0
- /package/src/contentful/blocks/carousel/{Carousel.stories.tsx → carousel.stories.tsx} +0 -0
- /package/src/contentful/blocks/cart-retention-banner/{CartRetentionBanner.stories.tsx → cart-retention-banner.stories.tsx} +0 -0
- /package/src/contentful/blocks/cta-callout/{CtaCallout.stories.tsx → cta-callout.stories.tsx} +0 -0
- /package/src/contentful/blocks/dynamic-form/{DynamicForm.stories.tsx → dynamic-form.stories.tsx} +0 -0
- /package/src/contentful/blocks/email-input-block/{EmailInputBlock.stories.tsx → email-input-block.stories.tsx} +0 -0
- /package/src/contentful/blocks/find-kinetic/{FindKinetic.stories.mocks.ts → find-kinetic.stories.mocks.ts} +0 -0
- /package/src/contentful/blocks/floating-banner/{FloatingBanner.stories.tsx → floating-banner.stories.tsx} +0 -0
- /package/src/contentful/blocks/footer/{Footer.stories.tsx → footer.stories.tsx} +0 -0
- /package/src/contentful/blocks/image-promo-bar/{ImagePromoBar.stories.tsx → image-promo-bar.stories.tsx} +0 -0
- /package/src/contentful/blocks/navigation/{Navigation.stories.mocks.tsx → navigation.stories.mocks.tsx} +0 -0
- /package/src/contentful/blocks/primary-hero/{PrimaryHero.stories.tsx → primary-hero.stories.tsx} +0 -0
- /package/src/contentful/blocks/shape-background-wrapper/{ShapeBackgroundWrapper.stories.tsx → shape-background-wrapper.stories.tsx} +0 -0
- /package/src/contentful/blocks/text/{Text.stories.tsx → text.stories.tsx} +0 -0
package/dist/core.d.ts
CHANGED
|
@@ -67,11 +67,11 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
67
67
|
|
|
68
68
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
69
69
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
70
|
-
state?: "default" | "focus" | "active" | "hover" | "filled" |
|
|
71
|
-
size?: "
|
|
70
|
+
state?: "error" | "default" | "focus" | "active" | "hover" | "filled" | undefined;
|
|
71
|
+
size?: "medium" | "slim" | "large" | undefined;
|
|
72
72
|
label?: string | undefined;
|
|
73
73
|
errorText?: string | undefined;
|
|
74
|
-
prefixIconName?: "
|
|
74
|
+
prefixIconName?: "search" | "location_on" | undefined;
|
|
75
75
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
76
76
|
prefixIconFill?: boolean | undefined;
|
|
77
77
|
suffixIconFill?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
|
|
|
71
71
|
size?: "slim" | "medium" | "large" | undefined;
|
|
72
72
|
label?: string | undefined;
|
|
73
73
|
errorText?: string | undefined;
|
|
74
|
-
prefixIconName?: "
|
|
74
|
+
prefixIconName?: "search" | "location_on" | undefined;
|
|
75
75
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
76
76
|
prefixIconFill?: boolean | undefined;
|
|
77
77
|
suffixIconFill?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
fourColumnItems,
|
|
9
9
|
fullImageItems,
|
|
10
10
|
withFloatingImageArgs,
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./callout.stories.mocks";
|
|
12
12
|
|
|
13
13
|
import { DocsPage } from "@shared/stories/DocsTemplate";
|
|
14
14
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
@@ -94,42 +94,42 @@ describe("CtaCallout", () => {
|
|
|
94
94
|
const { container } = render(
|
|
95
95
|
<CtaCallout {...defaultProps} background="white" />
|
|
96
96
|
);
|
|
97
|
-
expect(container.firstChild).toHaveClass("bg-
|
|
97
|
+
expect(container.firstChild).toHaveClass("bg-white");
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
it("applies navy background class", () => {
|
|
101
101
|
const { container } = render(
|
|
102
102
|
<CtaCallout {...defaultProps} background="navy" />
|
|
103
103
|
);
|
|
104
|
-
expect(container.firstChild).toHaveClass("bg-
|
|
104
|
+
expect(container.firstChild).toHaveClass("bg-[#00002D]");
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
it("applies blue background class", () => {
|
|
108
108
|
const { container } = render(
|
|
109
109
|
<CtaCallout {...defaultProps} background="blue" />
|
|
110
110
|
);
|
|
111
|
-
expect(container.firstChild).toHaveClass("bg-
|
|
111
|
+
expect(container.firstChild).toHaveClass("bg-[#07B2E2]");
|
|
112
112
|
});
|
|
113
113
|
|
|
114
114
|
it("applies green background class", () => {
|
|
115
115
|
const { container } = render(
|
|
116
116
|
<CtaCallout {...defaultProps} background="green" />
|
|
117
117
|
);
|
|
118
|
-
expect(container.firstChild).toHaveClass("bg-
|
|
118
|
+
expect(container.firstChild).toHaveClass("bg-[#26B170]");
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
it("applies purple background class", () => {
|
|
122
122
|
const { container } = render(
|
|
123
123
|
<CtaCallout {...defaultProps} background="purple" />
|
|
124
124
|
);
|
|
125
|
-
expect(container.firstChild).toHaveClass("bg-
|
|
125
|
+
expect(container.firstChild).toHaveClass("bg-[#931D69]");
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
it("applies yellow background class", () => {
|
|
129
129
|
const { container } = render(
|
|
130
130
|
<CtaCallout {...defaultProps} background="yellow" />
|
|
131
131
|
);
|
|
132
|
-
expect(container.firstChild).toHaveClass("bg-
|
|
132
|
+
expect(container.firstChild).toHaveClass("bg-[#F5FF1E]");
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
|
|
@@ -19,12 +19,12 @@ export const CtaCallout: React.FC<CtaCalloutProps> = ({
|
|
|
19
19
|
renderCheckPlans,
|
|
20
20
|
}) => {
|
|
21
21
|
const bgColorClasses: Record<ThemeKey, string> = {
|
|
22
|
-
navy: "bg-
|
|
23
|
-
green: "bg-
|
|
24
|
-
blue: "bg-
|
|
25
|
-
purple: "bg-
|
|
26
|
-
yellow: "bg-
|
|
27
|
-
white: "bg-
|
|
22
|
+
navy: "bg-[#00002D]",
|
|
23
|
+
green: "bg-[#26B170]",
|
|
24
|
+
blue: "bg-[#07B2E2]",
|
|
25
|
+
purple: "bg-[#931D69]",
|
|
26
|
+
yellow: "bg-[#F5FF1E]",
|
|
27
|
+
white: "bg-white",
|
|
28
28
|
};
|
|
29
29
|
return (
|
|
30
30
|
<div
|
|
File without changes
|
|
File without changes
|
/package/src/contentful/blocks/award-marquee/{AwardMarquee.stories.tsx → award-marquee.stories.tsx}
RENAMED
|
File without changes
|
/package/src/contentful/blocks/blogs-grid/{BlogGrid.stories.mocks.tsx → blog-grid.stories.mocks.tsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/contentful/blocks/callout/{Callout.stories.mocks.ts → callout.stories.mocks.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/contentful/blocks/cta-callout/{CtaCallout.stories.tsx → cta-callout.stories.tsx}
RENAMED
|
File without changes
|
/package/src/contentful/blocks/dynamic-form/{DynamicForm.stories.tsx → dynamic-form.stories.tsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/contentful/blocks/primary-hero/{PrimaryHero.stories.tsx → primary-hero.stories.tsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|