@windstream/react-shared-components 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,7 @@ export const Checklist: React.FC<ChecklistProps> = props => {
14
14
  iconSize = 20,
15
15
  iconPosition = "center",
16
16
  iconColor = "green",
17
+ iconClassName,
17
18
  } = props;
18
19
  const showIcons = listIconName !== "disc";
19
20
  if (!items?.length) return null;
@@ -39,7 +40,10 @@ export const Checklist: React.FC<ChecklistProps> = props => {
39
40
  size={iconSize}
40
41
  color={iconColors[iconColor]}
41
42
  weight="600"
42
- className={iconPosition === "top" ? "mt-1" : ""}
43
+ className={cx(
44
+ iconPosition === "top" ? "mt-1" : "",
45
+ iconClassName
46
+ )}
43
47
  />
44
48
  </div>
45
49
  )}
@@ -3,12 +3,14 @@ export type ChecklistProps = {
3
3
  // TODO: add icon names as needed
4
4
  listIconName?: "check" | "disc";
5
5
  listItemClassName?: string;
6
+ iconClassName?: string;
6
7
  iconSize?: 20 | 24 | 32 | 40 | 48 | 52 | undefined;
7
8
  iconPosition?: "top" | "center";
8
- iconColor?: "green" | "yellow";
9
+ iconColor?: "green" | "yellow" | "blue";
9
10
  };
10
11
 
11
12
  export const iconColors = {
12
13
  green: "#209A61",
13
14
  yellow: "#F5FF36",
15
+ blue: "#0393BA",
14
16
  };
@@ -52,4 +52,4 @@ export const BreadcrumbNavigation: React.FC<
52
52
  );
53
53
  };
54
54
 
55
- export default BreadcrumbNavigation;
55
+ export default BreadcrumbNavigation;
@@ -87,5 +87,4 @@ export const SearchBlock: React.FC<SearchBlockProps> = props => {
87
87
  );
88
88
  };
89
89
 
90
-
91
- export default SearchBlock;
90
+ export default SearchBlock;
@@ -65,5 +65,5 @@ export type { BlogGridProps } from "./blocks/blogs-grid/types";
65
65
  export { BreadcrumbNavigation } from "./blocks/breadcrumbs";
66
66
  export type { BreadcrumbNavigationProps } from "./blocks/breadcrumbs/types";
67
67
 
68
- export {SearchBlock} from "./blocks/search-block";
69
- export type {SearchBlockProps} from "./blocks/search-block/types";
68
+ export { SearchBlock } from "./blocks/search-block";
69
+ export type { SearchBlockProps } from "./blocks/search-block/types";