@windstream/react-shared-components 0.0.44 → 0.0.45

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/core.d.ts CHANGED
@@ -331,7 +331,7 @@ type ButtonCustomProps = {
331
331
  };
332
332
  type ButtonProps = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
333
333
 
334
- declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & React$1.RefAttributes<HTMLButtonElement>>;
334
+ declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> & React$1.RefAttributes<HTMLButtonElement>>;
335
335
 
336
336
  declare const Checklist: React__default.FC<ChecklistProps>;
337
337
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -22,7 +22,7 @@ export const Footer: React.FC<FooterProps> = ({
22
22
  return (
23
23
  <div className="component-container bg-bg-inverse text-white">
24
24
  <div className={` ${maxWidth ? "mx-auto max-w-120" : ""} px-5 py-8`}>
25
- <div>{body}</div>
25
+ <aside aria-label="Promotions and disclaimers">{body}</aside>
26
26
  <div
27
27
  className={
28
28
  "my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"
@@ -32,7 +32,11 @@ export const Footer: React.FC<FooterProps> = ({
32
32
  {links?.map((link: any, index: number) => (
33
33
  <React.Fragment key={`footer-link-group-${index}`}>
34
34
  <div key={`footer-link-group-${index}`}>
35
- <div className="site-links-group" key={`link-group-${index}`}>
35
+ <nav
36
+ aria-labelledby={`footer-${link?.title}`}
37
+ className="site-links-group"
38
+ key={`link-group-${index}`}
39
+ >
36
40
  <Text as="div" className="label3">
37
41
  {link?.title}
38
42
  </Text>
@@ -48,7 +52,7 @@ export const Footer: React.FC<FooterProps> = ({
48
52
  </li>
49
53
  ))}
50
54
  </ul>
51
- </div>
55
+ </nav>
52
56
  </div>
53
57
  <div
54
58
  className={
@@ -64,21 +68,23 @@ export const Footer: React.FC<FooterProps> = ({
64
68
  <p className="terms-text footnote text-white">
65
69
  &copy; {new Date().getFullYear()} {terms}
66
70
  </p>
67
- <ul className="bottom-links list-none">
68
- {bottomLinks?.map((link: any, index: number) => (
69
- <li
70
- key={`links-${index}`}
71
- className="relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']"
72
- >
73
- <Button
74
- {...link}
75
- linkClassName="footnote text-white"
76
- linkVariant="unstyled"
77
- onClick={footerClick}
78
- />
79
- </li>
80
- ))}
81
- </ul>
71
+ <nav aria-label="Footer legal">
72
+ <ul className="bottom-links list-none">
73
+ {bottomLinks?.map((link: any, index: number) => (
74
+ <li
75
+ key={`links-${index}`}
76
+ className="relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']"
77
+ >
78
+ <Button
79
+ {...link}
80
+ linkClassName="footnote text-white"
81
+ linkVariant="unstyled"
82
+ onClick={footerClick}
83
+ />
84
+ </li>
85
+ ))}
86
+ </ul>
87
+ </nav>
82
88
  </div>
83
89
  </div>
84
90
  </div>