@kadoui/react 2.1.6 → 2.1.7
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/Accordion/AccordionBody.d.ts +1 -1
- package/dist/react-components/Accordion/AccordionBody.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionBody.js +2 -2
- package/dist/react-components/Accordion/AccordionToggle.d.ts +1 -1
- package/dist/react-components/Accordion/AccordionToggle.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionToggle.js +3 -3
- package/dist/react-components/Accordion/accordionTypes.d.ts +1 -1
- package/dist/react-components/Accordion/accordionTypes.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.d.ts +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.js +2 -2
- package/dist/react-components/Carousel/CarouselPrevBtn.d.ts +1 -1
- package/dist/react-components/Carousel/CarouselPrevBtn.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselPrevBtn.js +2 -2
- package/dist/react-components/Choice/ChoiceToggle.d.ts.map +1 -1
- package/dist/react-components/Choice/ChoiceToggle.js +1 -1
- package/dist/react-components/Choice/choiceTypes.d.ts +1 -1
- package/dist/react-components/Choice/choiceTypes.d.ts.map +1 -1
- package/dist/react-components/Clipboard/Clipboard.d.ts +1 -1
- package/dist/react-components/Clipboard/Clipboard.d.ts.map +1 -1
- package/dist/react-components/Clipboard/Clipboard.js +2 -2
- package/dist/react-components/Drawer/DrawerToggle.d.ts +1 -1
- package/dist/react-components/Drawer/DrawerToggle.d.ts.map +1 -1
- package/dist/react-components/Drawer/DrawerToggle.js +3 -3
- package/dist/react-components/Drawer/drawerTypes.d.ts +1 -1
- package/dist/react-components/Drawer/drawerTypes.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalToggle.d.ts +1 -1
- package/dist/react-components/Modal/ModalToggle.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalToggle.js +3 -3
- package/dist/react-components/Modal/modalTypes.d.ts +1 -1
- package/dist/react-components/Modal/modalTypes.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpInputs.d.ts +1 -1
- package/dist/react-components/Otp/OtpInputs.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpInputs.js +2 -2
- package/dist/react-components/PasswordInput/PasswordInputField.d.ts +1 -1
- package/dist/react-components/PasswordInput/PasswordInputField.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputField.js +2 -2
- package/dist/react-components/PasswordInput/PasswordInputRoot.d.ts +1 -1
- package/dist/react-components/PasswordInput/PasswordInputRoot.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputRoot.js +2 -2
- package/dist/react-components/PasswordInput/PasswordInputToggle.d.ts +1 -1
- package/dist/react-components/PasswordInput/PasswordInputToggle.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputToggle.js +2 -2
- package/dist/react-components/PasswordInput/passwordInputTypes.d.ts +1 -1
- package/dist/react-components/PasswordInput/passwordInputTypes.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverToggle.d.ts +1 -1
- package/dist/react-components/Popover/PopoverToggle.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverToggle.js +3 -3
- package/dist/react-components/Popover/popoverTypes.d.ts +1 -1
- package/dist/react-components/Popover/popoverTypes.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetToggle.d.ts +1 -1
- package/dist/react-components/Sheet/SheetToggle.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetToggle.js +3 -3
- package/dist/react-components/Sheet/sheetTypes.d.ts +1 -1
- package/dist/react-components/Sheet/sheetTypes.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreContent.d.ts +1 -1
- package/dist/react-components/ShowMore/ShowMoreContent.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreContent.js +2 -2
- package/dist/react-components/ShowMore/ShowMoreToggle.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreToggle.js +1 -1
- package/dist/react-components/ShowMore/showMoreTypes.d.ts +1 -1
- package/dist/react-components/ShowMore/showMoreTypes.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AccordionBodyPropsT } from "./accordionTypes";
|
|
2
|
-
export declare function AccordionBody({ children, ...
|
|
2
|
+
export declare function AccordionBody({ children, ...p }: AccordionBodyPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AccordionBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionBody.d.ts","sourceRoot":"","sources":["../../../src/react-components/Accordion/AccordionBody.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"AccordionBody.d.ts","sourceRoot":"","sources":["../../../src/react-components/Accordion/AccordionBody.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,mBAAmB,2CAiBpE"}
|
|
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { AnimatePresence, motion } from "framer-motion";
|
|
5
5
|
import { AccordionContext } from "./AccordionContext";
|
|
6
|
-
export function AccordionBody({ children, ...
|
|
6
|
+
export function AccordionBody({ children, ...p }) {
|
|
7
7
|
const { isOpen } = use(AccordionContext);
|
|
8
8
|
return (_jsx(AnimatePresence, { children: isOpen ?
|
|
9
|
-
_jsx(motion.div, { initial: { height: 0, opacity: 0 }, animate: { height: "auto", opacity: 1 }, exit: { height: 0, opacity: 0 }, ...
|
|
9
|
+
_jsx(motion.div, { initial: { height: 0, opacity: 0 }, animate: { height: "auto", opacity: 1 }, exit: { height: 0, opacity: 0 }, ...p, children: children })
|
|
10
10
|
: null }));
|
|
11
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AccordionTogglePropsT } from "./accordionTypes";
|
|
2
|
-
export declare function AccordionToggle({ onClick, ...
|
|
2
|
+
export declare function AccordionToggle({ onClick, ...p }: AccordionTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AccordionToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Accordion/AccordionToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE9D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"AccordionToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Accordion/AccordionToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE9D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,qBAAqB,2CAcvE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { AccordionContext } from "./AccordionContext";
|
|
5
|
-
export function AccordionToggle({ onClick, ...
|
|
5
|
+
export function AccordionToggle({ onClick, ...p }) {
|
|
6
6
|
const { isOpen, setOpen } = use(AccordionContext);
|
|
7
|
-
return (_jsx("button", { "data-state": isOpen, onClick: (ev) => {
|
|
7
|
+
return (_jsx("button", { type: "button", "data-state": isOpen, onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
setOpen((prev) => !prev);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p }));
|
|
11
11
|
}
|
|
@@ -6,7 +6,7 @@ export type AccordionContextT = {
|
|
|
6
6
|
};
|
|
7
7
|
export type AccordionRootPropsT = PropsWithChildren;
|
|
8
8
|
export type AccordionBodyPropsT = HTMLMotionProps<"div">;
|
|
9
|
-
export type AccordionTogglePropsT = ComponentProps<"button"> & {
|
|
9
|
+
export type AccordionTogglePropsT = Omit<ComponentProps<"button">, "type"> & {
|
|
10
10
|
icon?: ReactNode;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=accordionTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordionTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Accordion/accordionTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEpG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"accordionTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Accordion/accordionTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEpG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IAC3E,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CarouselNextBtnPropsT } from "./carouselTypes";
|
|
2
|
-
export declare function CarouselNextBtn({ onClick, ...
|
|
2
|
+
export declare function CarouselNextBtn({ onClick, ...p }: CarouselNextBtnPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CarouselNextBtn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselNextBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Carousel/CarouselNextBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"CarouselNextBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Carousel/CarouselNextBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,qBAAqB,2CAYvE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselNextBtn({ onClick, ...
|
|
5
|
+
export function CarouselNextBtn({ onClick, ...p }) {
|
|
6
6
|
const { scrollRef, childrenWidth } = use(CarouselContext);
|
|
7
7
|
return (_jsx("button", { onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
scrollRef.current?.scrollTo(scrollRef.current.scrollLeft + childrenWidth, 0);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p }));
|
|
11
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CarouselPrevBtnPropsT } from "./carouselTypes";
|
|
2
|
-
export declare function CarouselPrevBtn({ onClick, ...
|
|
2
|
+
export declare function CarouselPrevBtn({ onClick, ...p }: CarouselPrevBtnPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CarouselPrevBtn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Carousel/CarouselPrevBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"CarouselPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Carousel/CarouselPrevBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,qBAAqB,2CAYvE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselPrevBtn({ onClick, ...
|
|
5
|
+
export function CarouselPrevBtn({ onClick, ...p }) {
|
|
6
6
|
const { scrollRef, childrenWidth } = use(CarouselContext);
|
|
7
7
|
return (_jsx("button", { onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
scrollRef.current?.scrollTo(scrollRef.current.scrollLeft - childrenWidth, 0);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p }));
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Choice/ChoiceToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,OAAO,EACP,GAAG,CAAC,EACL,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ChoiceToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Choice/ChoiceToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,OAAO,EACP,GAAG,CAAC,EACL,EAAE,kBAAkB,2CAkCpB"}
|
|
@@ -7,7 +7,7 @@ export function ChoiceToggle({ choiceName, onClick, ...p }) {
|
|
|
7
7
|
const isActive = multiple
|
|
8
8
|
? activeChoice.includes(choiceName)
|
|
9
9
|
: activeChoice === choiceName;
|
|
10
|
-
return (_jsx("button", { "data-state": isActive, onClick: (ev) => {
|
|
10
|
+
return (_jsx("button", { type: "button", "data-state": isActive, onClick: (ev) => {
|
|
11
11
|
onClick?.(ev);
|
|
12
12
|
if (isActive) {
|
|
13
13
|
if (multiple) {
|
|
@@ -15,7 +15,7 @@ export type ChoiceContextT = MergedModeT & {
|
|
|
15
15
|
requiredOne?: boolean;
|
|
16
16
|
};
|
|
17
17
|
export type ChoiceRootPropsT = ComponentProps<"div"> & ChoiceContextT;
|
|
18
|
-
export type ChoiceTogglePropsT = ComponentProps<"button"> & {
|
|
18
|
+
export type ChoiceTogglePropsT = Omit<ComponentProps<"button">, "type"> & {
|
|
19
19
|
choiceName: string;
|
|
20
20
|
};
|
|
21
21
|
export type ChoiceNavigationPropsT = AccessNavigationPropsT;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choiceTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Choice/choiceTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,IAAI,CAAC;IACf,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CACrD,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,KAAK,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"choiceTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Choice/choiceTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,IAAI,CAAC;IACf,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CACrD,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,KAAK,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IACxE,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ClipboardPropsT } from "./clipboardTypes";
|
|
2
|
-
export declare function Clipboard({ copiedChildren, onClick, children, text, title, "aria-label": ariaLabel, timeout, ...
|
|
2
|
+
export declare function Clipboard({ copiedChildren, onClick, children, text, title, "aria-label": ariaLabel, timeout, ...p }: ClipboardPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Clipboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clipboard.d.ts","sourceRoot":"","sources":["../../../src/react-components/Clipboard/Clipboard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,wBAAgB,SAAS,CAAC,EACxB,cAAc,EACd,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,OAAe,EACf,GAAG,
|
|
1
|
+
{"version":3,"file":"Clipboard.d.ts","sourceRoot":"","sources":["../../../src/react-components/Clipboard/Clipboard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,wBAAgB,SAAS,CAAC,EACxB,cAAc,EACd,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,OAAe,EACf,GAAG,CAAC,EACL,EAAE,eAAe,2CAiBjB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useClipboard } from "@mantine/hooks";
|
|
4
|
-
export function Clipboard({ copiedChildren, onClick, children, text, title, "aria-label": ariaLabel, timeout = 3_000, ...
|
|
4
|
+
export function Clipboard({ copiedChildren, onClick, children, text, title, "aria-label": ariaLabel, timeout = 3_000, ...p }) {
|
|
5
5
|
const { copy, copied } = useClipboard({ timeout });
|
|
6
6
|
const handleClick = (ev) => {
|
|
7
7
|
onClick?.(ev);
|
|
8
8
|
copy(text.trim());
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("button", { "aria-label": ariaLabel || text, title: title || text, onClick: handleClick, ...
|
|
10
|
+
return (_jsx("button", { "aria-label": ariaLabel || text, title: title || text, onClick: handleClick, ...p, children: copiedChildren && copied ? copiedChildren : children }));
|
|
11
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DrawerTogglePropsT } from "./drawerTypes";
|
|
2
|
-
export declare function DrawerToggle({ onClick, ...
|
|
2
|
+
export declare function DrawerToggle({ onClick, ...p }: DrawerTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DrawerToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Drawer/DrawerToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"DrawerToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Drawer/DrawerToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,kBAAkB,2CAajE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { DrawerContext } from "./DrawerContext";
|
|
5
|
-
export function DrawerToggle({ onClick, ...
|
|
5
|
+
export function DrawerToggle({ onClick, ...p }) {
|
|
6
6
|
const { setOpen } = use(DrawerContext);
|
|
7
|
-
return (_jsx("button", { onClick: (ev) => {
|
|
7
|
+
return (_jsx("button", { type: "button", onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
setOpen(prev => !prev);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p }));
|
|
11
11
|
}
|
|
@@ -8,6 +8,6 @@ export type DrawerRootPropsT = PropsWithChildren;
|
|
|
8
8
|
export type DrawerBodyPropsT = HTMLMotionProps<"div"> & {
|
|
9
9
|
position?: "top" | "right" | "bottom" | "left";
|
|
10
10
|
};
|
|
11
|
-
export type DrawerTogglePropsT = ComponentProps<"button">;
|
|
11
|
+
export type DrawerTogglePropsT = Omit<ComponentProps<"button">, "type">;
|
|
12
12
|
export type DrawerPortalPropsT = HTMLMotionProps<"div">;
|
|
13
13
|
//# sourceMappingURL=drawerTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawerTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Drawer/drawerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"drawerTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Drawer/drawerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ModalTogglePropsT } from "./modalTypes";
|
|
2
|
-
export declare function ModalToggle({ onClick, ...
|
|
2
|
+
export declare function ModalToggle({ onClick, ...p }: ModalTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ModalToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"ModalToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,2CAa/D"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { ModalContext } from "./ModalContext";
|
|
5
|
-
export function ModalToggle({ onClick, ...
|
|
5
|
+
export function ModalToggle({ onClick, ...p }) {
|
|
6
6
|
const { setOpen } = use(ModalContext);
|
|
7
|
-
return (_jsx("button", { onClick: (ev) => {
|
|
7
|
+
return (_jsx("button", { type: "button", onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
setOpen((prev) => !prev);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p }));
|
|
11
11
|
}
|
|
@@ -9,7 +9,7 @@ export type ModalRootPropsT = PropsWithChildren & {
|
|
|
9
9
|
};
|
|
10
10
|
export type ModalContentPropsT = ComponentProps<"div">;
|
|
11
11
|
export type ModalHeaderPropsT = ComponentProps<"div">;
|
|
12
|
-
export type ModalTogglePropsT = ComponentProps<"button">;
|
|
12
|
+
export type ModalTogglePropsT = Omit<ComponentProps<"button">, "type">;
|
|
13
13
|
export type ModalBodyPropsT = HTMLMotionProps<"div">;
|
|
14
14
|
export type ModalPortalPropsT = HTMLMotionProps<"div">;
|
|
15
15
|
//# sourceMappingURL=modalTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modalTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/modalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"modalTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/modalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { OtpInputsPropsT } from "./otpTypes";
|
|
2
|
-
export declare function OtpInputs({ name, length, onLastChange, ...
|
|
2
|
+
export declare function OtpInputs({ name, length, onLastChange, ...p }: OtpInputsPropsT): import("react/jsx-runtime").JSX.Element[];
|
|
3
3
|
//# sourceMappingURL=OtpInputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpInputs.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpInputs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"OtpInputs.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpInputs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,EAAE,EAAE,eAAe,6CAwE9E"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { OtpContext } from "./OtpContext";
|
|
5
|
-
export function OtpInputs({ name, length, onLastChange, ...
|
|
5
|
+
export function OtpInputs({ name, length, onLastChange, ...p }) {
|
|
6
6
|
const { inputs, getInputsValue } = use(OtpContext);
|
|
7
7
|
const handlePaste = (ev, startIndex) => {
|
|
8
8
|
ev.preventDefault();
|
|
@@ -51,5 +51,5 @@ export function OtpInputs({ name, length, onLastChange, ...props }) {
|
|
|
51
51
|
if (inputs) {
|
|
52
52
|
inputs.current[index] = el;
|
|
53
53
|
}
|
|
54
|
-
}, ...
|
|
54
|
+
}, ...p }, index)));
|
|
55
55
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PasswordInputFieldPropsT } from "./passwordInputTypes";
|
|
2
|
-
export declare function PasswordInputField(
|
|
2
|
+
export declare function PasswordInputField(p: PasswordInputFieldPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=PasswordInputField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInputField.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/PasswordInputField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"PasswordInputField.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/PasswordInputField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,wBAAwB,2CAM7D"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { PasswordInputContext } from "./PasswordInputContext";
|
|
5
|
-
export function PasswordInputField(
|
|
5
|
+
export function PasswordInputField(p) {
|
|
6
6
|
const { isVisible } = use(PasswordInputContext);
|
|
7
|
-
return (_jsx("input", { type: isVisible ? "text" : "password", ...
|
|
7
|
+
return (_jsx("input", { type: isVisible ? "text" : "password", ...p }));
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PasswordInputRootPropsT } from "./passwordInputTypes";
|
|
2
|
-
export declare function PasswordInputRoot(
|
|
2
|
+
export declare function PasswordInputRoot(p: PasswordInputRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=PasswordInputRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInputRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/PasswordInputRoot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,wBAAgB,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"PasswordInputRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/PasswordInputRoot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,uBAAuB,2CAQ3D"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { PasswordInputContext } from "./PasswordInputContext";
|
|
5
|
-
export function PasswordInputRoot(
|
|
5
|
+
export function PasswordInputRoot(p) {
|
|
6
6
|
const [isVisible, setIsVisible] = useState(false);
|
|
7
|
-
return (_jsx(PasswordInputContext, { value: { isVisible, setIsVisible }, children: _jsx("label", { ...
|
|
7
|
+
return (_jsx(PasswordInputContext, { value: { isVisible, setIsVisible }, children: _jsx("label", { ...p }) }));
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PasswordInputTogglePropsT } from "./passwordInputTypes";
|
|
2
|
-
export declare function PasswordInputToggle({ visibleChildren, onClick, children, ...
|
|
2
|
+
export declare function PasswordInputToggle({ visibleChildren, onClick, children, ...p }: PasswordInputTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=PasswordInputToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInputToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/PasswordInputToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"PasswordInputToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/PasswordInputToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,yBAAyB,2CAe1G"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { PasswordInputContext } from "./PasswordInputContext";
|
|
5
|
-
export function PasswordInputToggle({ visibleChildren, onClick, children, ...
|
|
5
|
+
export function PasswordInputToggle({ visibleChildren, onClick, children, ...p }) {
|
|
6
6
|
const { isVisible, setIsVisible } = use(PasswordInputContext);
|
|
7
7
|
return (_jsx("button", { type: "button", onClick: ev => {
|
|
8
8
|
setIsVisible(prev => !prev);
|
|
9
9
|
onClick?.(ev);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p, children: isVisible ? visibleChildren : children }));
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export type PasswordInputContextT = {
|
|
|
5
5
|
};
|
|
6
6
|
export type PasswordInputRootPropsT = ComponentProps<"label">;
|
|
7
7
|
export type PasswordInputFieldPropsT = ComponentProps<"input">;
|
|
8
|
-
export type PasswordInputTogglePropsT = ComponentProps<"button"> & {
|
|
8
|
+
export type PasswordInputTogglePropsT = Omit<ComponentProps<"button">, "type"> & {
|
|
9
9
|
visibleChildren: ReactNode;
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=passwordInputTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordInputTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/passwordInputTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAE/D,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"passwordInputTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/PasswordInput/passwordInputTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAE/D,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IAC/E,eAAe,EAAE,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PopoverTogglePropsT } from "./popoverTypes";
|
|
2
|
-
export declare function PopoverToggle({ onClick, ...
|
|
2
|
+
export declare function PopoverToggle({ onClick, ...p }: PopoverTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=PopoverToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Popover/PopoverToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"PopoverToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Popover/PopoverToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,mBAAmB,2CAkBnE"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { PopoverContext } from "./PopoverContext";
|
|
5
|
-
export function PopoverToggle({ onClick, ...
|
|
5
|
+
export function PopoverToggle({ onClick, ...p }) {
|
|
6
6
|
const { mode, toggleRef, isOpen, setOpen } = use(PopoverContext);
|
|
7
|
-
return (_jsx("button", { ref: toggleRef, "data-state": isOpen, onClick: (ev) => {
|
|
7
|
+
return (_jsx("button", { type: "button", ref: toggleRef, "data-state": isOpen, onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
ev.stopPropagation();
|
|
10
10
|
if (["click", "both"].includes(mode)) {
|
|
11
11
|
setOpen((prev) => !prev);
|
|
12
12
|
}
|
|
13
|
-
}, ...
|
|
13
|
+
}, ...p }));
|
|
14
14
|
}
|
|
@@ -13,6 +13,6 @@ export type PopoverRootPropsT = ComponentProps<"div"> & {
|
|
|
13
13
|
export type PopoverBodyPropsT = ComponentProps<"div"> & {
|
|
14
14
|
preventClose?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export type PopoverTogglePropsT = ComponentProps<"button">;
|
|
16
|
+
export type PopoverTogglePropsT = Omit<ComponentProps<"button">, "type">;
|
|
17
17
|
export type PopoverNavigationPropsT = AccessNavigationPropsT;
|
|
18
18
|
//# sourceMappingURL=popoverTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popoverTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Popover/popoverTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"popoverTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Popover/popoverTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SheetTogglePropsT } from "./sheetTypes";
|
|
2
|
-
export declare function SheetToggle({ onClick, ...
|
|
2
|
+
export declare function SheetToggle({ onClick, ...p }: SheetTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=SheetToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Sheet/SheetToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"SheetToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/Sheet/SheetToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,2CAa/D"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { SheetContext } from "./SheetContext";
|
|
5
|
-
export function SheetToggle({ onClick, ...
|
|
5
|
+
export function SheetToggle({ onClick, ...p }) {
|
|
6
6
|
const { setOpen } = use(SheetContext);
|
|
7
|
-
return (_jsx("button", { onClick: ev => {
|
|
7
|
+
return (_jsx("button", { type: "button", onClick: ev => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
setOpen(prev => !prev);
|
|
10
|
-
}, ...
|
|
10
|
+
}, ...p }));
|
|
11
11
|
}
|
|
@@ -12,6 +12,6 @@ export type SheetBodyPropsT = HTMLMotionProps<"div">;
|
|
|
12
12
|
export type SheetContentPropsT = ComponentProps<"div">;
|
|
13
13
|
export type SheetHeaderPropsT = ComponentProps<"div">;
|
|
14
14
|
export type SheetHandlebarPropsT = ComponentProps<"div">;
|
|
15
|
-
export type SheetTogglePropsT = ComponentProps<"button">;
|
|
15
|
+
export type SheetTogglePropsT = Omit<ComponentProps<"button">, "type">;
|
|
16
16
|
export type SheetPortalPropsT = HTMLMotionProps<"div">;
|
|
17
17
|
//# sourceMappingURL=sheetTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Sheet/sheetTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sheetTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Sheet/sheetTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ShowMoreContentPropsT } from "./showMoreTypes";
|
|
2
|
-
export declare function ShowMoreContent({ children, style, ...
|
|
2
|
+
export declare function ShowMoreContent({ children, style, ...p }: ShowMoreContentPropsT): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ShowMoreContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreContent.d.ts","sourceRoot":"","sources":["../../../src/react-components/ShowMore/ShowMoreContent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"ShowMoreContent.d.ts","sourceRoot":"","sources":["../../../src/react-components/ShowMore/ShowMoreContent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,qBAAqB,2CAuB/E"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { ShowMoreContext } from "./ShowMoreContext";
|
|
5
|
-
export function ShowMoreContent({ children, style, ...
|
|
5
|
+
export function ShowMoreContent({ children, style, ...p }) {
|
|
6
6
|
const { contentRef, shouldShowMore, isShowMore, maxHeight } = use(ShowMoreContext);
|
|
7
7
|
return (_jsx("div", { ref: contentRef, style: {
|
|
8
8
|
overflow: "hidden",
|
|
@@ -15,5 +15,5 @@ export function ShowMoreContent({ children, style, ...props }) {
|
|
|
15
15
|
: maxHeight
|
|
16
16
|
: "auto",
|
|
17
17
|
...style
|
|
18
|
-
}, ...
|
|
18
|
+
}, ...p, children: children }));
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/ShowMore/ShowMoreToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ShowMoreToggle.d.ts","sourceRoot":"","sources":["../../../src/react-components/ShowMore/ShowMoreToggle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,oBAAoB,2CAiB5E"}
|
|
@@ -4,7 +4,7 @@ import { use } from "react";
|
|
|
4
4
|
import { ShowMoreContext } from "./ShowMoreContext";
|
|
5
5
|
export function ShowMoreToggle({ onClick, style, ...p }) {
|
|
6
6
|
const { setIsShowMore } = use(ShowMoreContext);
|
|
7
|
-
return (_jsx("button", { style: {
|
|
7
|
+
return (_jsx("button", { type: "button", style: {
|
|
8
8
|
position: "relative",
|
|
9
9
|
...style
|
|
10
10
|
}, onClick: ev => {
|
|
@@ -12,5 +12,5 @@ export type ShowMoreRootPropsT = ComponentProps<"div"> & {
|
|
|
12
12
|
};
|
|
13
13
|
export type ShowMoreContentPropsT = ComponentProps<"div">;
|
|
14
14
|
export type ShowMoreFadePropsT = ComponentProps<"div">;
|
|
15
|
-
export type ShowMoreTogglePropsT = ComponentProps<"button">;
|
|
15
|
+
export type ShowMoreTogglePropsT = Omit<ComponentProps<"button">, "type">;
|
|
16
16
|
//# sourceMappingURL=showMoreTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showMoreTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/ShowMore/showMoreTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"showMoreTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/ShowMore/showMoreTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC"}
|