@windstream/react-shared-components 0.0.86 → 0.0.88
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/README.md +7 -1
- package/dist/contentful/index.d.ts +9 -5
- 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 +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
- package/src/components/material-icon/constants.ts +1 -0
- package/src/contentful/blocks/button/index.tsx +16 -2
- package/src/contentful/blocks/button/types.ts +6 -1
- package/src/contentful/blocks/image-promo-bar/index.tsx +11 -2
- package/src/contentful/blocks/image-promo-bar/types.ts +4 -0
- package/src/contentful/blocks/primary-hero/index.tsx +23 -7
- package/src/contentful/blocks/primary-hero/types.ts +6 -1
- package/src/types/micro-components.ts +9 -0
package/README.md
CHANGED
|
@@ -627,4 +627,10 @@ This package is part of the Kinetic ecosystem and works seamlessly with:
|
|
|
627
627
|
- Commit -> Git commit
|
|
628
628
|
- version -> npm version patch
|
|
629
629
|
- build -> npm run build
|
|
630
|
-
- publish -> npm publish --access public
|
|
630
|
+
- publish -> npm publish --access public
|
|
631
|
+
|
|
632
|
+
## npm pack usage in local
|
|
633
|
+
- build -> npm run build
|
|
634
|
+
- pack -> npm pack
|
|
635
|
+
- reference in app -> relatiev path to teh zip
|
|
636
|
+
- eg: "@windstream/react-shared-components": "../kinetic-react-shared-components/windstream-react-shared-components-0.0.86.tgz",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { Asset, Button as Button$1, ButtonGroup } from '@shared/types/micro-components';
|
|
2
|
+
import { CheckPlansProps, Asset, Button as Button$1, ButtonGroup } from '@shared/types/micro-components';
|
|
3
3
|
|
|
4
4
|
type AccordionProps = {
|
|
5
5
|
title: string;
|
|
@@ -220,6 +220,8 @@ type ImagePromoBarProps = {
|
|
|
220
220
|
};
|
|
221
221
|
maxWidth?: boolean;
|
|
222
222
|
color: "light" | "dark";
|
|
223
|
+
onModalButtonClick?: (id?: string) => void;
|
|
224
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
223
225
|
};
|
|
224
226
|
|
|
225
227
|
declare const ImagePromoBar: React$1.FC<ImagePromoBarProps>;
|
|
@@ -283,7 +285,8 @@ type PrimaryHeroProps = {
|
|
|
283
285
|
badgeImage?: string;
|
|
284
286
|
textColor?: string;
|
|
285
287
|
maxWidth?: boolean;
|
|
286
|
-
|
|
288
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
289
|
+
onModalButtonClick?: (id?: string) => void;
|
|
287
290
|
};
|
|
288
291
|
|
|
289
292
|
declare const PrimaryHero: React$1.FC<PrimaryHeroProps>;
|
|
@@ -310,13 +313,14 @@ type ButtonProps = {
|
|
|
310
313
|
clickToOpen?: string;
|
|
311
314
|
tabmodalNameToOpen?: string;
|
|
312
315
|
preDefinedFunctionExecution?: string;
|
|
313
|
-
|
|
316
|
+
renderCheckPlans?: (overrides?: CheckPlansProps) => React$1.ReactNode;
|
|
314
317
|
linkClassName?: string;
|
|
315
318
|
buttonClassName?: string;
|
|
316
319
|
linkVariant?: "unstyled" | "default";
|
|
317
320
|
fullWidth?: boolean;
|
|
318
|
-
onClick?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
319
|
-
children?: React.ReactNode;
|
|
321
|
+
onClick?: (event: React$1.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
322
|
+
children?: React$1.ReactNode;
|
|
323
|
+
onModalButtonClick?: (id?: string) => void;
|
|
320
324
|
};
|
|
321
325
|
|
|
322
326
|
declare const Button: React$1.FC<ButtonProps>;
|