pmg-ui-kit 0.0.29 → 0.0.31
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/ui/atoms/Modal.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ type ModalProps = {
|
|
|
9
9
|
okBtnClassname?: string;
|
|
10
10
|
cancelBtnLabel?: string;
|
|
11
11
|
cancelBtnClassname?: string;
|
|
12
|
+
hideButtons?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const Modal: ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel, okBtnClassname, cancelBtnLabel, cancelBtnClassname }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Modal: ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel, okBtnClassname, cancelBtnLabel, cancelBtnClassname, hideButtons }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
package/dist/ui/atoms/Modal.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Modal as FlowbiteModal } from "flowbite-react";
|
|
3
3
|
import { Button } from "./Button";
|
|
4
|
-
export const Modal = ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel = "Ok", okBtnClassname, cancelBtnLabel = "Cancel", cancelBtnClassname }) => {
|
|
5
|
-
return (_jsxs(FlowbiteModal, { show: show, onClose: () => handleOnClose(), children: [_jsx(FlowbiteModal.Header, { children: header }), _jsx(FlowbiteModal.Body, { children: content }),
|
|
4
|
+
export const Modal = ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel = "Ok", okBtnClassname, cancelBtnLabel = "Cancel", cancelBtnClassname, hideButtons = false }) => {
|
|
5
|
+
return (_jsxs(FlowbiteModal, { show: show, onClose: () => handleOnClose(), children: [_jsx(FlowbiteModal.Header, { children: header }), _jsx(FlowbiteModal.Body, { children: content }), !hideButtons &&
|
|
6
|
+
_jsxs(FlowbiteModal.Footer, { className: "flex justify-between", children: [_jsx(Button, { type: "b-primary", className: okBtnClassname, onClick: () => handleOnAccept(), text: okBtnLabel }), _jsx(Button, { type: "b-default", className: cancelBtnClassname, onClick: () => handleOnClose(), text: cancelBtnLabel })] })] }));
|
|
6
7
|
};
|
package/dist/ui/atoms/Step.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ type StepProps = {
|
|
|
3
3
|
stepNumber: number;
|
|
4
4
|
withoutUnderline?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const Step: ({ children, stepNumber, withoutUnderline, }: StepProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export
|
|
6
|
+
export declare const Step: ({ children, stepNumber, withoutUnderline, }: StepProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/ui/atoms/Step.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { TabsWithUnderline } from "../components/TabsWithUnderline";
|
|
3
3
|
import { Text } from "./Text";
|
|
4
|
-
const Step = ({ children, stepNumber, withoutUnderline = false, }) => {
|
|
4
|
+
export const Step = ({ children, stepNumber, withoutUnderline = false, }) => {
|
|
5
5
|
return (_jsxs(_Fragment, { children: [!withoutUnderline && (_jsx(TabsWithUnderline, { className: "mt-4 mb-4 border-gray-400" })), _jsxs("div", { className: "flex flex-row", children: [_jsx(Text, { className: "mt-1 !text-4xl", children: `${stepNumber})` }), _jsx("div", { className: "ml-4 first-line:flex flex-col w-full", children: children })] })] }));
|
|
6
6
|
};
|
|
7
|
-
export default Step;
|