next-recomponents 2.0.22 → 2.0.23
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/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/modal/index.tsx +2 -0
package/dist/index.d.mts
CHANGED
|
@@ -154,12 +154,13 @@ interface CustomSelectProps extends React$1.DetailedHTMLProps<React$1.InputHTMLA
|
|
|
154
154
|
declare function Select({ label, placeholder, children, strictMode, ...props }: CustomSelectProps): react_jsx_runtime.JSX.Element;
|
|
155
155
|
|
|
156
156
|
type PopupColor$1 = "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
157
|
-
declare function Modal({ button, children, color, }: {
|
|
157
|
+
declare function Modal({ button, children, color, title, }: {
|
|
158
158
|
button: ReactElement<React$1.ComponentPropsWithRef<"button">>;
|
|
159
159
|
children: ReactElement<React$1.ComponentPropsWithRef<"div"> & {
|
|
160
160
|
hide: () => void;
|
|
161
161
|
}>;
|
|
162
162
|
color?: PopupColor$1;
|
|
163
|
+
title?: string;
|
|
163
164
|
}): react_jsx_runtime.JSX.Element;
|
|
164
165
|
|
|
165
166
|
type PreProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -154,12 +154,13 @@ interface CustomSelectProps extends React$1.DetailedHTMLProps<React$1.InputHTMLA
|
|
|
154
154
|
declare function Select({ label, placeholder, children, strictMode, ...props }: CustomSelectProps): react_jsx_runtime.JSX.Element;
|
|
155
155
|
|
|
156
156
|
type PopupColor$1 = "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
157
|
-
declare function Modal({ button, children, color, }: {
|
|
157
|
+
declare function Modal({ button, children, color, title, }: {
|
|
158
158
|
button: ReactElement<React$1.ComponentPropsWithRef<"button">>;
|
|
159
159
|
children: ReactElement<React$1.ComponentPropsWithRef<"div"> & {
|
|
160
160
|
hide: () => void;
|
|
161
161
|
}>;
|
|
162
162
|
color?: PopupColor$1;
|
|
163
|
+
title?: string;
|
|
163
164
|
}): react_jsx_runtime.JSX.Element;
|
|
164
165
|
|
|
165
166
|
type PreProps = {
|
package/dist/index.js
CHANGED
|
@@ -37169,7 +37169,8 @@ var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
|
37169
37169
|
function Modal({
|
|
37170
37170
|
button,
|
|
37171
37171
|
children,
|
|
37172
|
-
color = "primary"
|
|
37172
|
+
color = "primary",
|
|
37173
|
+
title
|
|
37173
37174
|
}) {
|
|
37174
37175
|
const pop = usePopup();
|
|
37175
37176
|
const hide = () => pop.close(false);
|
package/dist/index.mjs
CHANGED
|
@@ -37155,7 +37155,8 @@ import { Fragment as Fragment2, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
|
37155
37155
|
function Modal({
|
|
37156
37156
|
button,
|
|
37157
37157
|
children,
|
|
37158
|
-
color = "primary"
|
|
37158
|
+
color = "primary",
|
|
37159
|
+
title
|
|
37159
37160
|
}) {
|
|
37160
37161
|
const pop = usePopup();
|
|
37161
37162
|
const hide = () => pop.close(false);
|
package/package.json
CHANGED
package/src/modal/index.tsx
CHANGED
|
@@ -15,12 +15,14 @@ export default function Modal({
|
|
|
15
15
|
button,
|
|
16
16
|
children,
|
|
17
17
|
color = "primary",
|
|
18
|
+
title,
|
|
18
19
|
}: {
|
|
19
20
|
button: ReactElement<React.ComponentPropsWithRef<"button">>;
|
|
20
21
|
children: ReactElement<
|
|
21
22
|
React.ComponentPropsWithRef<"div"> & { hide: () => void }
|
|
22
23
|
>;
|
|
23
24
|
color?: PopupColor;
|
|
25
|
+
title?: string;
|
|
24
26
|
}) {
|
|
25
27
|
const pop = usePopup();
|
|
26
28
|
const hide = () => pop.close(false);
|