@kadoui/react 2.1.2 → 2.1.3
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/react-components/Modal/ModalBody.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalBody.js +1 -1
- package/dist/react-components/Otp/OtpRoot.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpRoot.js +2 -2
- package/dist/react-components/Otp/otpTypes.d.ts +1 -1
- package/dist/react-components/Otp/otpTypes.d.ts.map +1 -1
- package/dist/react-exports.d.ts +0 -1
- package/dist/react-exports.d.ts.map +1 -1
- package/dist/react-exports.js +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalBody.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,wBAAgB,SAAS,CAAC,CAAC,EAAE,eAAe,2CA4B3C"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use, useEffect, useRef } from "react";
|
|
4
4
|
import { AnimatePresence, motion } from "framer-motion";
|
|
5
|
-
import { FRAMER_MOTION_DURATION } from "../../configs";
|
|
6
5
|
import { ModalContext } from "./ModalContext";
|
|
6
|
+
import { FRAMER_MOTION_DURATION } from "../../configs";
|
|
7
7
|
export function ModalBody(p) {
|
|
8
8
|
const { isOpen } = use(ModalContext);
|
|
9
9
|
const bodyRef = useRef(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpRoot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OtpRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpRoot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,aAAa,2CAsBzD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
|
-
import { AccessNavigation } from "../AccessNavigation/AccessNavigation";
|
|
5
4
|
import { OtpContext } from "./OtpContext";
|
|
5
|
+
import { AccessNavigation } from "../AccessNavigation/AccessNavigation";
|
|
6
6
|
export function OtpRoot({ autoFocus, ...p }) {
|
|
7
7
|
const inputs = useRef([]);
|
|
8
8
|
useEffect(() => {
|
|
@@ -13,5 +13,5 @@ export function OtpRoot({ autoFocus, ...p }) {
|
|
|
13
13
|
const getInputsValue = () => {
|
|
14
14
|
return inputs?.current.map((input) => input?.value || "").join("") || "";
|
|
15
15
|
};
|
|
16
|
-
return (_jsx(OtpContext, { value: { inputs, getInputsValue }, children: _jsx(AccessNavigation, { direction: "x", ...p }) }));
|
|
16
|
+
return (_jsx(OtpContext, { value: { inputs, getInputsValue }, children: _jsx(AccessNavigation, { dir: "ltr", direction: "x", ...p }) }));
|
|
17
17
|
}
|
|
@@ -4,7 +4,7 @@ export type OtpContextT = {
|
|
|
4
4
|
inputs?: RefObject<(HTMLInputElement | null)[]>;
|
|
5
5
|
getInputsValue: () => string;
|
|
6
6
|
};
|
|
7
|
-
export type OtpRootPropsT = Omit<AccessNavigationPropsT, "direction"> & {
|
|
7
|
+
export type OtpRootPropsT = Omit<AccessNavigationPropsT, "direction" | "dir"> & {
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export type OtpInputsPropsT = ComponentProps<"input"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otpTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/otpTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC,gBAAgB,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,MAAM,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"otpTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/otpTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC,gBAAgB,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,MAAM,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
package/dist/react-exports.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from "./react-components/ClientOnly/ClientOnly";
|
|
|
7
7
|
export * from "./react-components/Clipboard/Clipboard";
|
|
8
8
|
export * from "./react-components/ContextMenu/ContextMenu";
|
|
9
9
|
export * from "./react-components/Drawer/Drawer";
|
|
10
|
-
export { DrawerSheet } from "./react-components/DrawerSheet/index";
|
|
11
10
|
export * from "./react-components/Modal/Modal";
|
|
12
11
|
export * from "./react-components/Otp/Otp";
|
|
13
12
|
export * from "./react-components/Pagination/Pagination";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-exports.d.ts","sourceRoot":"","sources":["../src/react-exports.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,
|
|
1
|
+
{"version":3,"file":"react-exports.d.ts","sourceRoot":"","sources":["../src/react-exports.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
package/dist/react-exports.js
CHANGED
|
@@ -7,7 +7,6 @@ export * from "./react-components/ClientOnly/ClientOnly";
|
|
|
7
7
|
export * from "./react-components/Clipboard/Clipboard";
|
|
8
8
|
export * from "./react-components/ContextMenu/ContextMenu";
|
|
9
9
|
export * from "./react-components/Drawer/Drawer";
|
|
10
|
-
export { DrawerSheet } from "./react-components/DrawerSheet/index";
|
|
11
10
|
export * from "./react-components/Modal/Modal";
|
|
12
11
|
export * from "./react-components/Otp/Otp";
|
|
13
12
|
export * from "./react-components/Pagination/Pagination";
|