componenteszw-package 1.0.75 → 1.0.77
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/Modal.d.ts +3 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/Modal.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
type ModalVariant = "success" | "error" | "question" | "content";
|
|
3
|
+
type ButtonVariant = "primary" | "secondary" | "tertiary" | "success" | "warning" | "destructive";
|
|
3
4
|
type ModalProps = {
|
|
4
5
|
open: boolean;
|
|
5
6
|
onClose: () => void;
|
|
@@ -10,10 +11,12 @@ type ModalProps = {
|
|
|
10
11
|
primaryAction?: {
|
|
11
12
|
text: string;
|
|
12
13
|
onClick: () => void;
|
|
14
|
+
variant?: ButtonVariant;
|
|
13
15
|
};
|
|
14
16
|
secondaryAction?: {
|
|
15
17
|
text: string;
|
|
16
18
|
onClick: () => void;
|
|
19
|
+
variant?: ButtonVariant;
|
|
17
20
|
};
|
|
18
21
|
size?: "small" | "medium" | "large";
|
|
19
22
|
closeOnOverlayClick?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1712,11 +1712,11 @@ var Oe = ({ title: e, subtitle: n, iconFile: r, loading: i = !1, state: a = "def
|
|
|
1712
1712
|
className: Y("flex justify-end gap-3 px-6 py-4 bg-gray-50 border-t border-gray-100", b),
|
|
1713
1713
|
children: [c && /* @__PURE__ */ l(X, {
|
|
1714
1714
|
text: c.text,
|
|
1715
|
-
variant: "secondary",
|
|
1715
|
+
variant: c.variant ?? "secondary",
|
|
1716
1716
|
onClick: c.onClick
|
|
1717
1717
|
}), s && /* @__PURE__ */ l(X, {
|
|
1718
1718
|
text: s.text,
|
|
1719
|
-
variant: "primary",
|
|
1719
|
+
variant: s.variant ?? "primary",
|
|
1720
1720
|
onClick: s.onClick
|
|
1721
1721
|
})]
|
|
1722
1722
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "componenteszw-package",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.77",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"import": "./dist/index.js",
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
12
|
},
|
|
13
|
-
"./style.css": "./dist/
|
|
13
|
+
"./style.css": "./dist/index.css"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|