@trackunit/react-components 0.0.113 → 0.0.115
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/components/Modal/Modal.d.ts +5 -1
- package/components/buttons/Button/Button.d.ts +6 -0
- package/index.css +2 -2
- package/index.js +12 -1
- package/package.json +1 -1
|
@@ -23,6 +23,10 @@ export interface ModalProps extends CommonProps {
|
|
|
23
23
|
*/
|
|
24
24
|
maxWidth?: ModalWidth;
|
|
25
25
|
}
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* - Modals are used to present critical information or request user input needed to complete a user's workflow.
|
|
28
|
+
* - Modals interrupt a user's workflow by design.
|
|
29
|
+
* - The modal component provides a foundation for creating dialogs, lightboxes, etc.
|
|
30
|
+
*/
|
|
27
31
|
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
32
|
export {};
|
|
@@ -38,4 +38,10 @@ export interface ButtonProps extends ButtonCommonProps {
|
|
|
38
38
|
*/
|
|
39
39
|
form?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Buttons allow users to perform an action when triggered.
|
|
43
|
+
*
|
|
44
|
+
* @param {ButtonProps} props - The props for the Button component
|
|
45
|
+
* @returns {JSX.Element} Button component
|
|
46
|
+
*/
|
|
41
47
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
package/index.css
CHANGED
package/index.js
CHANGED
|
@@ -194,6 +194,13 @@ const getPadding = () => ({
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Buttons allow users to perform an action when triggered.
|
|
199
|
+
*
|
|
200
|
+
* @param {ButtonProps} props - The props for the Button component
|
|
201
|
+
* @returns {JSX.Element} Button component
|
|
202
|
+
*/
|
|
203
|
+
|
|
197
204
|
const Button = React.forwardRef((_a, ref) => {
|
|
198
205
|
var {
|
|
199
206
|
onClick,
|
|
@@ -2906,7 +2913,11 @@ const Backdrop = tw(animated.div)`
|
|
|
2906
2913
|
tu-modal-backdrop
|
|
2907
2914
|
`;
|
|
2908
2915
|
|
|
2909
|
-
/**
|
|
2916
|
+
/**
|
|
2917
|
+
* - Modals are used to present critical information or request user input needed to complete a user's workflow.
|
|
2918
|
+
* - Modals interrupt a user's workflow by design.
|
|
2919
|
+
* - The modal component provides a foundation for creating dialogs, lightboxes, etc.
|
|
2920
|
+
*/
|
|
2910
2921
|
|
|
2911
2922
|
const Modal = React.forwardRef(({
|
|
2912
2923
|
isOpen,
|