@apolitical/component-library 7.0.0 → 7.0.1-beta.0
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/discussion/shared/interfaces/discussion.interface.d.ts +1 -1
- package/form/types/invite-form/invite-form.d.ts +10 -1
- package/index.js +42 -42
- package/index.mjs +3309 -3296
- package/modals/components/modal/index.d.ts +1 -1
- package/modals/components/modal/modal.d.ts +5 -2
- package/navigation/action-bar/action-bar.d.ts +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_modals.scss +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Modal } from './modal';
|
|
1
|
+
export { type IModalProps, default as Modal } from './modal';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface IModalProps {
|
|
3
3
|
/** The element that will render around the content */
|
|
4
4
|
element?: 'section' | 'div' | 'ul';
|
|
5
5
|
/** The content to display */
|
|
@@ -12,8 +12,11 @@ interface Props {
|
|
|
12
12
|
hidden?: boolean | string;
|
|
13
13
|
/** Optional styling */
|
|
14
14
|
style?: React.CSSProperties;
|
|
15
|
+
/** Optional variant */
|
|
16
|
+
variant?: 'success' | 'error';
|
|
17
|
+
additionalContent?: React.ReactNode | JSX.Element | string;
|
|
15
18
|
}
|
|
16
|
-
declare const Modal: ({ element, children, className, ...props }:
|
|
19
|
+
declare const Modal: ({ element, children, className, variant, additionalContent, ...props }: IModalProps) => React.DOMElement<{
|
|
17
20
|
/** The ID of the element */
|
|
18
21
|
id?: string | undefined;
|
|
19
22
|
/** If the element should be hidden */
|