@windstream/react-shared-components 0.2.9 → 0.2.10
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/list/index.tsx +96 -96
- package/src/components/material-icon/index.tsx +48 -48
- package/src/contentful/blocks/find-kinetic/index.tsx +5 -5
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { cx } from "../../utils/cx";
|
|
3
|
-
import type { IconProps } from "./types";
|
|
4
|
-
|
|
5
|
-
const MaterialIcon: React.FC<IconProps> = ({
|
|
6
|
-
name,
|
|
7
|
-
fill = 0,
|
|
8
|
-
opticalSize = "48dp",
|
|
9
|
-
weight = "200",
|
|
10
|
-
emphasis = 145,
|
|
11
|
-
size = 24,
|
|
12
|
-
color = "currentColor",
|
|
13
|
-
style = {},
|
|
14
|
-
className,
|
|
15
|
-
onClick,
|
|
16
|
-
dataTestId,
|
|
17
|
-
}) => {
|
|
18
|
-
const fontVariationSettings = `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${emphasis}, 'opsz' ${opticalSize.substring(0, 2)}`;
|
|
19
|
-
|
|
20
|
-
const combinedStyle: React.CSSProperties = {
|
|
21
|
-
fontVariationSettings,
|
|
22
|
-
fontSize: `${size}px`,
|
|
23
|
-
fontFamily: "'Material Symbols Rounded'",
|
|
24
|
-
color: color || "currentColor",
|
|
25
|
-
...style,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<span
|
|
30
|
-
style={combinedStyle}
|
|
31
|
-
className={cx(
|
|
32
|
-
"material-symbols-rounded inline-block max-w-[52px] overflow-hidden",
|
|
33
|
-
className
|
|
34
|
-
)}
|
|
35
|
-
onClick={onClick}
|
|
36
|
-
data-testid={dataTestId}
|
|
37
|
-
aria-hidden={"true"}
|
|
38
|
-
>
|
|
39
|
-
{name}
|
|
40
|
-
</span>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { MaterialIcon };
|
|
45
|
-
|
|
46
|
-
MaterialIcon.displayName = "MaterialIcon";
|
|
47
|
-
|
|
48
|
-
export type { IconProps, IconName, Size } from "./types";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { cx } from "../../utils/cx";
|
|
3
|
+
import type { IconProps } from "./types";
|
|
4
|
+
|
|
5
|
+
const MaterialIcon: React.FC<IconProps> = ({
|
|
6
|
+
name,
|
|
7
|
+
fill = 0,
|
|
8
|
+
opticalSize = "48dp",
|
|
9
|
+
weight = "200",
|
|
10
|
+
emphasis = 145,
|
|
11
|
+
size = 24,
|
|
12
|
+
color = "currentColor",
|
|
13
|
+
style = {},
|
|
14
|
+
className,
|
|
15
|
+
onClick,
|
|
16
|
+
dataTestId,
|
|
17
|
+
}) => {
|
|
18
|
+
const fontVariationSettings = `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${emphasis}, 'opsz' ${opticalSize.substring(0, 2)}`;
|
|
19
|
+
|
|
20
|
+
const combinedStyle: React.CSSProperties = {
|
|
21
|
+
fontVariationSettings,
|
|
22
|
+
fontSize: `${size}px`,
|
|
23
|
+
fontFamily: "'Material Symbols Rounded'",
|
|
24
|
+
color: color || "currentColor",
|
|
25
|
+
...style,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<span
|
|
30
|
+
style={combinedStyle}
|
|
31
|
+
className={cx(
|
|
32
|
+
"material-symbols-rounded inline-block max-w-[52px] overflow-hidden",
|
|
33
|
+
className
|
|
34
|
+
)}
|
|
35
|
+
onClick={onClick}
|
|
36
|
+
data-testid={dataTestId}
|
|
37
|
+
aria-hidden={"true"}
|
|
38
|
+
>
|
|
39
|
+
{name}
|
|
40
|
+
</span>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { MaterialIcon };
|
|
45
|
+
|
|
46
|
+
MaterialIcon.displayName = "MaterialIcon";
|
|
47
|
+
|
|
48
|
+
export type { IconProps, IconName, Size } from "./types";
|
|
@@ -37,12 +37,12 @@ export const FindKinetic: React.FC<FindKineticProps> = ({
|
|
|
37
37
|
className={`${bgColorClasses[background]} component-container overflow-hidden ${color == "dark" ? "text-text" : "text-white"}`}
|
|
38
38
|
>
|
|
39
39
|
<div
|
|
40
|
-
className={`${maxWidth ? "max-w-120 xl:mx-auto" : ""} mx-5 mb-5 ${image ? "mt-12" : "mt-0 xl:mt-0"} xl:my-20`}
|
|
40
|
+
className={`${maxWidth ? "max-w-120 xl:mx-auto" : ""} mx-5 mb-5 ${image ? "mt-12" : "mt-0 xl:mt-0"} xl:my-20 md:px-5 xl:px-10`}
|
|
41
41
|
>
|
|
42
42
|
{title && (
|
|
43
43
|
<Text
|
|
44
44
|
as={enableHeading ? "h1" : "h2"}
|
|
45
|
-
className="heading2 md:heading1
|
|
45
|
+
className="heading2 md:heading1 text-center"
|
|
46
46
|
>
|
|
47
47
|
{title}
|
|
48
48
|
</Text>
|
|
@@ -50,7 +50,7 @@ export const FindKinetic: React.FC<FindKineticProps> = ({
|
|
|
50
50
|
{subTitle && (
|
|
51
51
|
<Text
|
|
52
52
|
as={enableHeading ? "h2" : "h3"}
|
|
53
|
-
className="subheading1 mt-4
|
|
53
|
+
className="subheading1 mt-4 text-center"
|
|
54
54
|
>
|
|
55
55
|
{subTitle}
|
|
56
56
|
</Text>
|
|
@@ -60,10 +60,10 @@ export const FindKinetic: React.FC<FindKineticProps> = ({
|
|
|
60
60
|
className={`mt-8 flex flex-col items-center xl:flex-row ${image ? "xl:mt-16" : "xl:mt-10"} gap-10`}
|
|
61
61
|
>
|
|
62
62
|
<div
|
|
63
|
-
className={`flex flex-col ${image ? "xl:items-start" : "items-center"}
|
|
63
|
+
className={`flex flex-col gap-10 self-stretch xl:flex-[1_0_0] ${image ? "xl:items-start pl-2 md:px-4 lg:pl-12 xl:pl-16" : "items-center"}`}
|
|
64
64
|
>
|
|
65
65
|
{description && (
|
|
66
|
-
<Text as="p" className=
|
|
66
|
+
<Text as="p" className={`body1 text-center${image ? " lg:text-left" : ""}`}>
|
|
67
67
|
{description}
|
|
68
68
|
</Text>
|
|
69
69
|
)}
|