@windstream/react-shared-components 0.1.23 → 0.1.25

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
@@ -63,7 +63,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
63
63
  size?: "slim" | "medium" | "large" | undefined;
64
64
  label?: string | undefined;
65
65
  errorText?: string | undefined;
66
- prefixIconName?: "location_on" | "search" | undefined;
66
+ prefixIconName?: "search" | "location_on" | undefined;
67
67
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
68
68
  prefixIconFill?: boolean | undefined;
69
69
  suffixIconFill?: boolean | undefined;
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.25",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -14,10 +14,8 @@ 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
- type ExtendedModalProps = ModalProps & {
18
- containerAttributes?: React.HTMLAttributes<HTMLDivElement>;
19
- };
20
- export const Modal: React.FC<ExtendedModalProps> = props => {
17
+
18
+ export const Modal: React.FC<ModalProps> = props => {
21
19
  const {
22
20
  isOpen,
23
21
  onRequestClose,
@@ -27,7 +25,7 @@ export const Modal: React.FC<ExtendedModalProps> = props => {
27
25
  description,
28
26
  children,
29
27
  bodyClassName,
30
- containerAttributes
28
+ ...rest
31
29
  } = props;
32
30
 
33
31
  return (
@@ -53,39 +51,40 @@ export const Modal: React.FC<ExtendedModalProps> = props => {
53
51
  className="fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none"
54
52
  >
55
53
  <Dialog.Content
56
- {...containerAttributes}
57
54
  className={cx(
58
55
  "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
56
  bodyClassName
60
57
  )}
61
58
  style={{ maxWidth: sizeToPixel[size || "lg"] }}
62
59
  >
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"
60
+ <div {...rest}>
61
+ <Dialog.Close asChild={true}>
62
+ <Button
63
+ showButtonAs="unstyled"
64
+ buttonClassName="absolute right-0 top-0 mr-2 mt-2 bg-bg"
80
65
  >
81
- {title}
82
- </Text>
83
- ) : null}
66
+ <MaterialIcon name="close" />
67
+ </Button>
68
+ </Dialog.Close>
69
+ <div className="custom-modal-body max-h-[85vh] overflow-visible">
70
+ {title ? (
71
+ <Text
72
+ className={cx(
73
+ "mx-auto mb-3 mt-5 text-center",
74
+ "heading5 md:max-w-[80%] md:pt-0",
75
+ "mb-5 md:mb-[60px]"
76
+ )}
77
+ as="h2"
78
+ >
79
+ {title}
80
+ </Text>
81
+ ) : null}
84
82
 
85
- {description ? <Text as="div">{description}</Text> : null}
83
+ {description ? <Text as="div">{description}</Text> : null}
86
84
 
87
- {content}
88
- {children ? children : null}
85
+ {content}
86
+ {children ? children : null}
87
+ </div>
89
88
  </div>
90
89
  </Dialog.Content>
91
90
  </motion.div>