@windstream/react-shared-components 0.1.13 → 0.1.15
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 +2 -2
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/breadcrumbs/index.tsx +51 -55
- package/src/contentful/blocks/carousel/helper.tsx +1 -1
- package/src/contentful/blocks/carousel/index.tsx +1 -2
- package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +8 -6
- package/src/contentful/blocks/navigation/index.tsx +25 -16
- package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +3 -1
|
@@ -36,7 +36,7 @@ export const Navigation: React.FC<NavigationProps> = props => {
|
|
|
36
36
|
<li key={`main-menu-items-${index}`}>
|
|
37
37
|
<ContentfulButton
|
|
38
38
|
linkClassName={cx(
|
|
39
|
-
"footnote flex items-center w-full h-11 text-text
|
|
39
|
+
"footnote flex items-center w-full h-11 text-text",
|
|
40
40
|
index === 1 && "label4"
|
|
41
41
|
)}
|
|
42
42
|
linkVariant="unstyled"
|
|
@@ -50,7 +50,9 @@ export const Navigation: React.FC<NavigationProps> = props => {
|
|
|
50
50
|
</ul>
|
|
51
51
|
<div className="flex items-center gap-10">
|
|
52
52
|
<CallButton className="border-none" href={invocaPhoneNumberLink}>
|
|
53
|
-
<Text className="body3">
|
|
53
|
+
<Text className="body3 text-text">
|
|
54
|
+
{invocaPhoneNumberDisplayText}
|
|
55
|
+
</Text>
|
|
54
56
|
</CallButton>
|
|
55
57
|
{accountNavigationLinks?.map((links, index) => {
|
|
56
58
|
return (
|
|
@@ -103,7 +105,7 @@ export const Navigation: React.FC<NavigationProps> = props => {
|
|
|
103
105
|
alt="Kinetic business logo"
|
|
104
106
|
width={76.5}
|
|
105
107
|
height={24}
|
|
106
|
-
className="mr-
|
|
108
|
+
className="mr-[64px]"
|
|
107
109
|
/>
|
|
108
110
|
</Link>
|
|
109
111
|
|
|
@@ -149,7 +151,12 @@ export const Navigation: React.FC<NavigationProps> = props => {
|
|
|
149
151
|
};
|
|
150
152
|
|
|
151
153
|
const MobileMenu = (props: NavigationProps) => {
|
|
152
|
-
const {
|
|
154
|
+
const {
|
|
155
|
+
primaryNavigationLinks,
|
|
156
|
+
utilityNavigationLinks,
|
|
157
|
+
supportNavigationLinks,
|
|
158
|
+
accountNavigationLinks,
|
|
159
|
+
} = props;
|
|
153
160
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
154
161
|
|
|
155
162
|
React.useEffect(() => {
|
|
@@ -255,21 +262,23 @@ const MobileMenu = (props: NavigationProps) => {
|
|
|
255
262
|
/>
|
|
256
263
|
<div className="flex-grow overflow-y-auto">
|
|
257
264
|
<ul className="mt-2 flex flex-col gap-2">
|
|
258
|
-
{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
+
{[
|
|
266
|
+
...(primaryNavigationLinks || []),
|
|
267
|
+
...(supportNavigationLinks || []),
|
|
268
|
+
...(accountNavigationLinks || []),
|
|
269
|
+
].map((links, index) => (
|
|
270
|
+
<li key={`main-menu-items-${index}`}>
|
|
271
|
+
<MobileLinkGroups link={links} />
|
|
272
|
+
</li>
|
|
273
|
+
))}
|
|
265
274
|
</ul>
|
|
266
275
|
|
|
267
276
|
<ul className="mt-2 flex gap-5 bg-bg-fill-info px-4">
|
|
268
277
|
{utilityNavigationLinks?.map((link, index) => {
|
|
269
278
|
return (
|
|
270
|
-
<li key={`
|
|
279
|
+
<li key={`utility-menu-items-${index}`}>
|
|
271
280
|
<ContentfulButton
|
|
272
|
-
key={`submenu-link-btn-${link.anchorId}`}
|
|
281
|
+
key={`utility-submenu-link-btn-${link.anchorId}`}
|
|
273
282
|
{...(Object.fromEntries(
|
|
274
283
|
Object.entries(link).filter(([_, v]) => v !== null)
|
|
275
284
|
) as any)}
|
|
@@ -330,7 +339,7 @@ const MobileSearchInput = (props: {
|
|
|
330
339
|
<div className="flex-grow">
|
|
331
340
|
<Input
|
|
332
341
|
ref={searchInputRef}
|
|
333
|
-
className={"h-[34px] rounded-none
|
|
342
|
+
className={"body3 h-[34px] rounded-none px-3 text-text"}
|
|
334
343
|
name="search"
|
|
335
344
|
placeholder="Search..."
|
|
336
345
|
value={searchValue}
|
|
@@ -359,7 +368,7 @@ const DesktopSearchInput = (props: {
|
|
|
359
368
|
return (
|
|
360
369
|
<form
|
|
361
370
|
name="searchForm"
|
|
362
|
-
className="flex h-9 w-60 rounded-
|
|
371
|
+
className="flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus"
|
|
363
372
|
onSubmit={redirectToSearchResults}
|
|
364
373
|
>
|
|
365
374
|
<NextImage
|
|
@@ -372,7 +381,7 @@ const DesktopSearchInput = (props: {
|
|
|
372
381
|
/>
|
|
373
382
|
<Input
|
|
374
383
|
ref={searchInputRef}
|
|
375
|
-
className={"rounded-full
|
|
384
|
+
className={"body3 rounded-full px-3 text-text"}
|
|
376
385
|
name="search"
|
|
377
386
|
placeholder="Search..."
|
|
378
387
|
value={searchValue}
|
|
@@ -52,7 +52,9 @@ export const MobileLinkGroups: React.FC<LinkGroupsProps> = ({ link }) => {
|
|
|
52
52
|
>
|
|
53
53
|
{title ?? null}
|
|
54
54
|
<MaterialIcon
|
|
55
|
-
weight="
|
|
55
|
+
weight="200"
|
|
56
|
+
size={24}
|
|
57
|
+
className="text-icon-secondary group-hover:opacity-50"
|
|
56
58
|
name={isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down"}
|
|
57
59
|
/>
|
|
58
60
|
</Button>
|