@windstream/react-shared-components 0.0.93 → 0.0.95
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 +39 -31
- 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 +12 -5
- package/dist/index.d.ts +8 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/accordion/index.tsx +9 -2
- package/src/components/accordion/types.ts +1 -0
- package/src/components/alert-card/index.tsx +6 -1
- package/src/components/alert-card/types.ts +1 -0
- package/src/components/select-plan-button/index.tsx +40 -14
- package/src/components/select-plan-button/types.ts +9 -0
- package/src/contentful/blocks/accordion/index.tsx +3 -1
- package/src/contentful/blocks/button/index.tsx +33 -25
- package/src/contentful/blocks/button/types.ts +3 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +10 -3
- package/src/contentful/blocks/cards/product-card/types.ts +8 -1
- package/src/contentful/blocks/cards/simple-card/index.tsx +12 -1
- package/src/contentful/blocks/cards/simple-card/types.ts +2 -5
- package/src/contentful/blocks/carousel/helper.tsx +10 -3
- package/src/contentful/blocks/carousel/index.tsx +8 -2
- package/src/contentful/blocks/carousel/types.ts +5 -1
- package/src/contentful/blocks/cta-callout/index.tsx +7 -1
- package/src/contentful/blocks/cta-callout/types.ts +4 -0
- package/src/contentful/blocks/find-kinetic/index.tsx +2 -2
- package/src/contentful/blocks/image-promo-bar/index.tsx +3 -0
- package/src/types/micro-components.ts +10 -0
- package/tailwind.config.cjs +4 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { CheckPlansProps, Asset, Button as Button$1, ButtonGroup } from '@shared/types/micro-components';
|
|
3
|
+
import { ButtonProps as ButtonProps$1 } from '@shared/contentful/blocks/button/types';
|
|
3
4
|
|
|
4
5
|
type AccordionProps = {
|
|
5
6
|
title: string;
|
|
@@ -37,16 +38,41 @@ declare const Cards: React.FC<{
|
|
|
37
38
|
fields: CardsProps;
|
|
38
39
|
}>;
|
|
39
40
|
|
|
41
|
+
type ButtonProps = {
|
|
42
|
+
showButtonAs?: "solid" | "text" | "unstyled";
|
|
43
|
+
buttonVariant?: "primary_brand" | "secondary" | "primary_inverse";
|
|
44
|
+
buttonLabel?: string;
|
|
45
|
+
buttonPrefix?: string;
|
|
46
|
+
badge?: string;
|
|
47
|
+
badgeIcon?: string;
|
|
48
|
+
buttonIcon?: string;
|
|
49
|
+
buttonIconPosition?: "left" | "right";
|
|
50
|
+
href?: string;
|
|
51
|
+
target?: "_self" | "_blank";
|
|
52
|
+
anchorId?: string;
|
|
53
|
+
preserveQueryParameters?: boolean;
|
|
54
|
+
clickToOpen?: string;
|
|
55
|
+
tabmodalNameToOpen?: string;
|
|
56
|
+
preDefinedFunctionExecution?: string;
|
|
57
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
58
|
+
linkClassName?: string;
|
|
59
|
+
buttonClassName?: string;
|
|
60
|
+
linkVariant?: "unstyled" | "default";
|
|
61
|
+
fullWidth?: boolean;
|
|
62
|
+
onClick?: (event: React$1.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
63
|
+
children?: React$1.ReactNode;
|
|
64
|
+
modalTitle?: string;
|
|
65
|
+
modalSubtitle?: string;
|
|
66
|
+
onModalButtonClick?: (id?: string) => void;
|
|
67
|
+
iconName?: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
40
70
|
type Item = {
|
|
41
71
|
title?: string;
|
|
42
72
|
image?: string;
|
|
43
73
|
imageAlignment?: "left" | "right" | "center";
|
|
44
74
|
imageView?: "standard" | "icon" | "full";
|
|
45
|
-
cta?:
|
|
46
|
-
label?: string;
|
|
47
|
-
url?: string;
|
|
48
|
-
newTab?: boolean;
|
|
49
|
-
};
|
|
75
|
+
cta?: ButtonProps;
|
|
50
76
|
ctaAlignment?: "left" | "right" | "center";
|
|
51
77
|
body?: ReactNode;
|
|
52
78
|
backgroundColor?: string;
|
|
@@ -166,6 +192,8 @@ type CarouselProps = {
|
|
|
166
192
|
setActiveTab: (tab: string) => void;
|
|
167
193
|
tabs: string[];
|
|
168
194
|
showSwitch?: boolean;
|
|
195
|
+
onModalButtonClick?: (id?: string) => void;
|
|
196
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
169
197
|
};
|
|
170
198
|
|
|
171
199
|
declare const Carousel: React$1.FC<CarouselProps>;
|
|
@@ -302,32 +330,6 @@ declare const Text: React.FC<{
|
|
|
302
330
|
fields: TextProps;
|
|
303
331
|
}>;
|
|
304
332
|
|
|
305
|
-
type ButtonProps = {
|
|
306
|
-
showButtonAs?: "solid" | "text" | "unstyled";
|
|
307
|
-
buttonVariant?: "primary_brand" | "secondary" | "primary_inverse";
|
|
308
|
-
buttonLabel?: string;
|
|
309
|
-
buttonPrefix?: string;
|
|
310
|
-
badge?: string;
|
|
311
|
-
badgeIcon?: string;
|
|
312
|
-
buttonIcon?: string;
|
|
313
|
-
buttonIconPosition?: "left" | "right";
|
|
314
|
-
href?: string;
|
|
315
|
-
target?: "_self" | "_blank";
|
|
316
|
-
anchorId?: string;
|
|
317
|
-
preserveQueryParameters?: boolean;
|
|
318
|
-
clickToOpen?: string;
|
|
319
|
-
tabmodalNameToOpen?: string;
|
|
320
|
-
preDefinedFunctionExecution?: string;
|
|
321
|
-
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
322
|
-
linkClassName?: string;
|
|
323
|
-
buttonClassName?: string;
|
|
324
|
-
linkVariant?: "unstyled" | "default";
|
|
325
|
-
fullWidth?: boolean;
|
|
326
|
-
onClick?: (event: React$1.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
327
|
-
children?: React$1.ReactNode;
|
|
328
|
-
onModalButtonClick?: (id?: string) => void;
|
|
329
|
-
};
|
|
330
|
-
|
|
331
333
|
declare const Button: React$1.FC<ButtonProps>;
|
|
332
334
|
|
|
333
335
|
type ModalProps = {
|
|
@@ -369,6 +371,8 @@ type CtaCalloutProps = {
|
|
|
369
371
|
contentAlignment?: "center" | "left" | "right";
|
|
370
372
|
button?: any;
|
|
371
373
|
maxWidth?: boolean;
|
|
374
|
+
onModalButtonClick?: (id?: string) => void;
|
|
375
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
372
376
|
};
|
|
373
377
|
|
|
374
378
|
declare const CtaCallout: React$1.FC<CtaCalloutProps>;
|
|
@@ -416,6 +420,8 @@ interface ProductCardProps {
|
|
|
416
420
|
planName: string;
|
|
417
421
|
planSubtext?: string;
|
|
418
422
|
speed: string;
|
|
423
|
+
techType?: string;
|
|
424
|
+
ismaxSpeed?: boolean;
|
|
419
425
|
price: string;
|
|
420
426
|
description: string;
|
|
421
427
|
bestValue?: boolean;
|
|
@@ -434,8 +440,10 @@ interface ProductCardProps {
|
|
|
434
440
|
isExpanded?: boolean;
|
|
435
441
|
onToggleExpand?: () => void;
|
|
436
442
|
ctaText?: string;
|
|
443
|
+
cta?: ButtonProps$1;
|
|
437
444
|
onCtaClick: () => void;
|
|
438
445
|
hostType: "residential" | "smb";
|
|
446
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
439
447
|
}
|
|
440
448
|
|
|
441
449
|
declare const ProductCard: React$1.FC<ProductCardProps>;
|