@windstream/react-shared-components 0.1.23 → 0.1.24

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
@@ -345,7 +345,7 @@ type ButtonAsAnchor = ButtonCustomProps & Omit<AnchorHTMLAttributes<HTMLAnchorEl
345
345
  };
346
346
  type ButtonProps = ButtonAsButton | ButtonAsAnchor;
347
347
 
348
- declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
348
+ declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
349
349
 
350
350
  declare const Checklist: React__default.FC<ChecklistProps>;
351
351
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,7 @@ import { MaterialIcon } from "@shared/components/material-icon";
14
14
  import { Text } from "@shared/components/text";
15
15
  import { Button } from "@shared/contentful/blocks/button";
16
16
  import { cx } from "@shared/utils";
17
+
17
18
  type ExtendedModalProps = ModalProps & {
18
19
  containerAttributes?: React.HTMLAttributes<HTMLDivElement>;
19
20
  };
@@ -27,7 +28,7 @@ export const Modal: React.FC<ExtendedModalProps> = props => {
27
28
  description,
28
29
  children,
29
30
  bodyClassName,
30
- containerAttributes
31
+ containerAttributes,
31
32
  } = props;
32
33
 
33
34
  return (
@@ -53,39 +54,40 @@ export const Modal: React.FC<ExtendedModalProps> = props => {
53
54
  className="fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none"
54
55
  >
55
56
  <Dialog.Content
56
- {...containerAttributes}
57
57
  className={cx(
58
58
  "fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",
59
59
  bodyClassName
60
60
  )}
61
61
  style={{ maxWidth: sizeToPixel[size || "lg"] }}
62
62
  >
63
- <Dialog.Close asChild={true}>
64
- <Button
65
- showButtonAs="unstyled"
66
- buttonClassName="absolute right-0 top-0 mr-2 mt-2 bg-bg"
67
- >
68
- <MaterialIcon name="close" />
69
- </Button>
70
- </Dialog.Close>
71
- <div className="custom-modal-body max-h-[85vh] overflow-visible">
72
- {title ? (
73
- <Text
74
- className={cx(
75
- "mx-auto mb-3 mt-5 text-center",
76
- "heading5 md:max-w-[80%] md:pt-0",
77
- "mb-5 md:mb-[60px]"
78
- )}
79
- as="h2"
63
+ <div {...containerAttributes}>
64
+ <Dialog.Close asChild={true}>
65
+ <Button
66
+ showButtonAs="unstyled"
67
+ buttonClassName="absolute right-0 top-0 mr-2 mt-2 bg-bg"
80
68
  >
81
- {title}
82
- </Text>
83
- ) : null}
69
+ <MaterialIcon name="close" />
70
+ </Button>
71
+ </Dialog.Close>
72
+ <div className="custom-modal-body max-h-[85vh] overflow-visible">
73
+ {title ? (
74
+ <Text
75
+ className={cx(
76
+ "mx-auto mb-3 mt-5 text-center",
77
+ "heading5 md:max-w-[80%] md:pt-0",
78
+ "mb-5 md:mb-[60px]"
79
+ )}
80
+ as="h2"
81
+ >
82
+ {title}
83
+ </Text>
84
+ ) : null}
84
85
 
85
- {description ? <Text as="div">{description}</Text> : null}
86
+ {description ? <Text as="div">{description}</Text> : null}
86
87
 
87
- {content}
88
- {children ? children : null}
88
+ {content}
89
+ {children ? children : null}
90
+ </div>
89
91
  </div>
90
92
  </Dialog.Content>
91
93
  </motion.div>