pmg-ui-kit 0.0.33 → 0.0.35
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.
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const RefreshIcon = ({ onClick, width = 24, height = 24, color = "currentColor" }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", onClick: onClick, className: "icon icon-tabler icons-tabler-outline icon-tabler-refresh", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" }), _jsx("path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" })] }));
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './icons/LanguageIcon';
|
|
|
52
52
|
export * from './icons/NotAllowIcon';
|
|
53
53
|
export * from './icons/PercentageIcon';
|
|
54
54
|
export * from './icons/PlusIcon';
|
|
55
|
+
export * from './icons/RefreshIcon';
|
|
55
56
|
export * from './icons/SaveDiscIcon';
|
|
56
57
|
export * from './icons/TrashIcon';
|
|
57
58
|
export * from './icons/UserPlusIcon';
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ export * from './icons/LanguageIcon';
|
|
|
52
52
|
export * from './icons/NotAllowIcon';
|
|
53
53
|
export * from './icons/PercentageIcon';
|
|
54
54
|
export * from './icons/PlusIcon';
|
|
55
|
+
export * from './icons/RefreshIcon';
|
|
55
56
|
export * from './icons/SaveDiscIcon';
|
|
56
57
|
export * from './icons/TrashIcon';
|
|
57
58
|
export * from './icons/UserPlusIcon';
|
package/dist/ui/atoms/Modal.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ type ModalProps = {
|
|
|
10
10
|
cancelBtnLabel?: string;
|
|
11
11
|
cancelBtnClassname?: string;
|
|
12
12
|
hideButtons?: boolean;
|
|
13
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
13
14
|
};
|
|
14
|
-
export declare const Modal: ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel, okBtnClassname, cancelBtnLabel, cancelBtnClassname, hideButtons }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Modal: ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel, okBtnClassname, cancelBtnLabel, cancelBtnClassname, hideButtons, size }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
package/dist/ui/atoms/Modal.js
CHANGED
|
@@ -1,7 +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, hideButtons = false }) => {
|
|
5
|
-
return (_jsxs(FlowbiteModal, { show: show, onClose: () => handleOnClose(), children: [_jsx(FlowbiteModal.Header, { children: header }), _jsx(FlowbiteModal.Body, { children: content }), !hideButtons &&
|
|
4
|
+
export const Modal = ({ show, handleOnClose, handleOnAccept, header, content, okBtnLabel = "Ok", okBtnClassname, cancelBtnLabel = "Cancel", cancelBtnClassname, hideButtons = false, size = "md" }) => {
|
|
5
|
+
return (_jsxs(FlowbiteModal, { show: show, onClose: () => handleOnClose(), size: size, children: [_jsx(FlowbiteModal.Header, { children: header }), _jsx(FlowbiteModal.Body, { children: content }), !hideButtons &&
|
|
6
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 })] })] }));
|
|
7
7
|
};
|