@modul/mbui 0.0.20-beta-test-ac75fb8e → 0.0.20-beta-pv-53139-48074e41
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/Alert/Alert.js +1 -1
- package/dist/Alert/Alert.js.map +1 -1
- package/dist/Button/Button.js +1 -1
- package/dist/Drawer/Drawer.d.ts +10 -4
- package/dist/Drawer/Drawer.js +29 -5
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +2 -2
- package/dist/Drawer/index.js.map +1 -1
- package/dist/FavoritePyments/FavoritePaymentsList.js +1 -1
- package/dist/FavoritePyments/FavoritePaymentsList.js.map +1 -1
- package/dist/Input-OTP/Input.js +1 -1
- package/dist/Input-OTP/Input.js.map +1 -1
- package/dist/Page/Page.js +1 -1
- package/dist/Page/Page.js.map +1 -1
- package/dist/Toaster/Toaster.d.ts +13 -0
- package/dist/Toaster/Toaster.js +60 -0
- package/dist/Toaster/Toaster.js.map +1 -0
- package/dist/Toaster/index.d.ts +1 -0
- package/dist/Toaster/index.js +7 -0
- package/dist/Toaster/index.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/Alert/Alert.tsx +1 -1
- package/src/Button/Button.tsx +1 -1
- package/src/Drawer/Drawer.tsx +82 -3
- package/src/Drawer/index.ts +1 -1
- package/src/FavoritePyments/FavoritePaymentsList.tsx +1 -1
- package/src/Input-OTP/Input.tsx +1 -1
- package/src/Page/Page.tsx +1 -1
- package/src/Toaster/Toaster.tsx +71 -0
- package/src/Toaster/index.ts +1 -0
- package/src/assets/css/global.css +5 -0
- package/src/assets/images/logo/sbp-logo.svg +1 -0
- package/src/index.ts +6 -7
- package/src/pages/payments/SmsSign/sms-sign.tsx +80 -4
- package/dist/Checkbox/Checkbox.d.ts +0 -4
- package/dist/Checkbox/Checkbox.js +0 -35
- package/dist/Checkbox/Checkbox.js.map +0 -1
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Checkbox/index.js +0 -6
- package/dist/Checkbox/index.js.map +0 -1
- package/src/Checkbox/Checkbox.tsx +0 -44
- package/src/Checkbox/index.ts +0 -1
package/dist/Alert/Alert.js
CHANGED
|
@@ -25,7 +25,7 @@ const getClass = (variant, type) => {
|
|
|
25
25
|
return variants[variant];
|
|
26
26
|
};
|
|
27
27
|
const Alert = ({ className, variant = 'info', type, children, ...props }) => {
|
|
28
|
-
return (React.createElement("div", { className: (0, utils_1.cn)('flex', getClass(variant, type)), role: 'alert', ...props },
|
|
28
|
+
return (React.createElement("div", { className: (0, utils_1.cn)('flex', getClass(variant, type), className), role: 'alert', ...props },
|
|
29
29
|
AlertIcons[variant],
|
|
30
30
|
React.createElement("div", { className: 'pt-[2px]' }, children)));
|
|
31
31
|
};
|
package/dist/Alert/Alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../src/Alert/Alert.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,0CAAmC;AACnC,yCAAqE;AAGrE,MAAM,gBAAgB,GAAG,2BAA2B,CAAA;AACpD,MAAM,UAAU,GAAG;IAClB,IAAI,EAAE,oBAAC,gBAAS,mBAAc,IAAI,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,gBAAgB,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI;IAC9G,OAAO,EAAE,oBAAC,cAAO,mBAAc,IAAI,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,gBAAgB,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI;IAC/G,OAAO,EAAE,oBAAC,uBAAgB,mBAAc,IAAI,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,gBAAgB,EAAE,cAAc,CAA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S,EAAE,OAAO,GAAG,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACrH,OAAO,CACN,6BACC,SAAS,EAAE,IAAA,UAAE,EAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,EACzD,IAAI,EAAC,OAAO,KACR,KAAK;QAER,UAAU,CAAC,OAAO,CAAC;QACpB,6BAAK,SAAS,EAAC,UAAU,IACvB,QAAQ,CACJ,CACD,CACN,CAAA;AACF,CAAC,CAAA;AAUQ,sBAAK;AARd,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,KAAK,CAAC,KAAK,GAAG,KAAK,CAAA;AACnB,KAAK,CAAC,KAAK,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,KAAK,CAAC,WAAW,GAAG,WAAW,CAAA;AAC/B,KAAK,CAAC,WAAW,CAAC,WAAW,GAAG,mBAAmB,CAAA"}
|
package/dist/Button/Button.js
CHANGED
package/dist/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
|
+
declare const Drawer: {
|
|
4
|
+
({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
3
7
|
declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const DrawerPortal: typeof import("vaul").Portal;
|
|
6
8
|
declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
|
|
9
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
onAnimationEnd?: (open: boolean) => void;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Drawer, DrawerTrigger, DrawerContent, DrawerTitle, DrawerClose };
|
package/dist/Drawer/Drawer.js
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrawerClose = exports.
|
|
3
|
+
exports.DrawerClose = exports.DrawerTitle = exports.DrawerContent = exports.DrawerTrigger = exports.Drawer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = (0, tslib_1.__importStar)(require("react"));
|
|
4
6
|
const vaul_1 = require("vaul");
|
|
5
|
-
const
|
|
7
|
+
const utils_1 = require("../@/lib/utils");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const DrawerContext = React.createContext({ direction: 'bottom', modal: false });
|
|
10
|
+
const Drawer = ({ ...props }) => {
|
|
11
|
+
return (React.createElement(DrawerContext.Provider, { value: { direction: props.direction, modal: props.modal } },
|
|
12
|
+
React.createElement(vaul_1.Drawer.Root, { ...props })));
|
|
13
|
+
};
|
|
6
14
|
exports.Drawer = Drawer;
|
|
15
|
+
Drawer.displayName = 'Drawer';
|
|
7
16
|
const DrawerTrigger = vaul_1.Drawer.Trigger;
|
|
8
17
|
exports.DrawerTrigger = DrawerTrigger;
|
|
9
|
-
const DrawerContent = vaul_1.Drawer.Content;
|
|
10
|
-
exports.DrawerContent = DrawerContent;
|
|
11
18
|
const DrawerPortal = vaul_1.Drawer.Portal;
|
|
12
|
-
exports.DrawerPortal = DrawerPortal;
|
|
13
19
|
const DrawerClose = vaul_1.Drawer.Close;
|
|
14
20
|
exports.DrawerClose = DrawerClose;
|
|
21
|
+
const DrawerOverlay = vaul_1.Drawer.Overlay;
|
|
22
|
+
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement(vaul_1.Drawer.Title, { ref: ref, className: (0, utils_1.cn)(className), ...props })));
|
|
23
|
+
exports.DrawerTitle = DrawerTitle;
|
|
24
|
+
DrawerTitle.displayName = vaul_1.Drawer.Title.displayName;
|
|
25
|
+
const DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
26
|
+
const { direction = 'bottom', modal = false } = (0, react_1.useContext)(DrawerContext);
|
|
27
|
+
return (React.createElement(DrawerPortal, null,
|
|
28
|
+
modal && React.createElement(DrawerOverlay, { className: 'z-50 fixed inset-0 bg-[--drawer-overlay-bg]' }),
|
|
29
|
+
React.createElement(vaul_1.Drawer.Content, { ref: ref, className: (0, utils_1.cn)(`z-50 fixed inset-x-0 flex flex-col bg-page shadow-sm max-h-[94%] sm:container`, direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm', className), ...props },
|
|
30
|
+
direction !== 'top' && (React.createElement("div", { className: "pt-[4px] pb-[16px]" },
|
|
31
|
+
React.createElement("span", { className: "block bg-[--cl-graphite-5] mx-auto rounded-full w-[36px] h-[5px]" }))),
|
|
32
|
+
children,
|
|
33
|
+
direction === 'top' && (React.createElement("div", { className: "pt-[24px] pb-[16px]" },
|
|
34
|
+
React.createElement("svg", { className: "mx-auto", width: "38", height: "10", viewBox: "0 0 38 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
35
|
+
React.createElement("path", { d: "M0 7.39774C0 8.68678 1.25226 9.60455 2.48147 9.21638L17.7955 4.38038C18.5794 4.13282 19.4206 4.13282 20.2045 4.38038L35.5185 9.21638C36.7477 9.60455 38 8.68678 38 7.39774C38 6.56568 37.4606 5.82966 36.6671 5.5791L20.2045 0.380377C19.4206 0.132817 18.5794 0.132817 17.7955 0.380377L1.33286 5.5791C0.539422 5.82966 0 6.56568 0 7.39774Z", fill: "var(--cl-graphite-5)" })))))));
|
|
36
|
+
});
|
|
37
|
+
exports.DrawerContent = DrawerContent;
|
|
38
|
+
DrawerContent.displayName = 'DrawerContent';
|
|
15
39
|
//# sourceMappingURL=Drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,+BAAgD;AAChD,0CAAmC;AACnC,iCAAkC;AAElC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAA;AAE9E,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,KAAK,EAAqD,EAAE,EAAE;IAClF,OAAO,CACN,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAC;QAC9E,oBAAC,aAAe,CAAC,IAAI,OAAK,KAAK,GAAI,CACX,CACzB,CAAA;AACF,CAAC,CAAA;AA2EQ,wBAAM;AAzEf,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAE7B,MAAM,aAAa,GAAG,aAAe,CAAC,OAAO,CAAA;AAuE5B,sCAAa;AArE9B,MAAM,YAAY,GAAG,aAAe,CAAC,MAAM,CAAA;AAE3C,MAAM,WAAW,GAAG,aAAe,CAAC,KAAK,CAAA;AAmEmB,kC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B,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;oBAElC,8BACC,CAAC,EAAC,+UAA+U,EACjV,IAAI,EAAC,sBAAsB,GAC1B,CACG,CACD,CACN,CACwB,CACZ,CACf,CAAA;AACF,CAAC,CAAC,CAAA;AAI8B,sCAAa;AAF7C,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Drawer, DrawerTrigger, DrawerClose, DrawerContent,
|
|
1
|
+
export { Drawer, DrawerTrigger, DrawerClose, DrawerContent, DrawerTitle, } from './Drawer';
|
package/dist/Drawer/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DrawerTitle = exports.DrawerContent = exports.DrawerClose = exports.DrawerTrigger = exports.Drawer = void 0;
|
|
4
4
|
var Drawer_1 = require("./Drawer");
|
|
5
5
|
Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return Drawer_1.Drawer; } });
|
|
6
6
|
Object.defineProperty(exports, "DrawerTrigger", { enumerable: true, get: function () { return Drawer_1.DrawerTrigger; } });
|
|
7
7
|
Object.defineProperty(exports, "DrawerClose", { enumerable: true, get: function () { return Drawer_1.DrawerClose; } });
|
|
8
8
|
Object.defineProperty(exports, "DrawerContent", { enumerable: true, get: function () { return Drawer_1.DrawerContent; } });
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "DrawerTitle", { enumerable: true, get: function () { return Drawer_1.DrawerTitle; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/Drawer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Drawer/index.ts"],"names":[],"mappings":";;;AAAA,mCAMmB;AALlB,gGAAA,MAAM,OAAA;AACN,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA;AACX,uGAAA,aAAa,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Drawer/index.ts"],"names":[],"mappings":";;;AAAA,mCAMmB;AALlB,gGAAA,MAAM,OAAA;AACN,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA;AACX,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA"}
|
|
@@ -13,7 +13,7 @@ const farvoriteLinkClasses = `
|
|
|
13
13
|
`;
|
|
14
14
|
exports.farvoriteLinkClasses = farvoriteLinkClasses;
|
|
15
15
|
const FavoritePaymentsList = ({ children }) => {
|
|
16
|
-
return react_1.default.createElement("ul", { className: "
|
|
16
|
+
return react_1.default.createElement("ul", { className: "divide-y" }, children);
|
|
17
17
|
};
|
|
18
18
|
exports.FavoritePaymentsList = FavoritePaymentsList;
|
|
19
19
|
const FavoritePaymentsItem = ({ children }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoritePaymentsList.js","sourceRoot":"","sources":["../../src/FavoritePyments/FavoritePaymentsList.tsx"],"names":[],"mappings":";;;;AAAA,+DAAiC;AAEjC,MAAM,oBAAoB,GAAW;;;;;;;CAOpC,CAAA;AA8BiF,oDAAoB;AA5BtG,MAAM,oBAAoB,GAAoC,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IAC5E,OAAO,sCAAI,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"FavoritePaymentsList.js","sourceRoot":"","sources":["../../src/FavoritePyments/FavoritePaymentsList.tsx"],"names":[],"mappings":";;;;AAAA,+DAAiC;AAEjC,MAAM,oBAAoB,GAAW;;;;;;;CAOpC,CAAA;AA8BiF,oDAAoB;AA5BtG,MAAM,oBAAoB,GAAoC,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IAC5E,OAAO,sCAAI,SAAS,EAAC,UAAU,IAAE,QAAQ,CAAM,CAAA;AAChD,CAAC,CAAA;AA0BQ,oDAAoB;AAxB7B,MAAM,oBAAoB,GAAoC,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IAC5E,OAAO,0CAAK,QAAQ,CAAM,CAAA;AAC3B,CAAC,CAAA;AAsB8B,oDAAoB;AAdnD,MAAM,2BAA2B,GAAe,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAC,EAAE,EAAE;IAC1E,OAAO,CACN;QACC,wCAAM,SAAS,EAAC,MAAM;YACrB,wCAAM,SAAS,EAAC,UAAU,IAAE,IAAI,CAAQ;YACxC,wCAAM,SAAS,EAAC,8BAA8B,IAAE,KAAK,CAAQ,CACvD;QACP,wCAAM,SAAS,EAAC,+DAA+D,IAC7E,OAAO,CACF,CACL,CACH,CAAA;AACF,CAAC,CAAA;AAEoD,kEAA2B"}
|
package/dist/Input-OTP/Input.js
CHANGED
|
@@ -14,7 +14,7 @@ InputOTPGroup.displayName = 'InputOTPGroup';
|
|
|
14
14
|
const InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
15
15
|
const inputOTPContext = React.useContext(input_otp_1.OTPInputContext);
|
|
16
16
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
17
|
-
return (React.createElement("div", { ref: ref, className: (0, utils_1.cn)('relative flex h-[48px] w-[20px] items-center justify-center border-b-[2px] border-input transition-all', isActive && 'border-b-primary
|
|
17
|
+
return (React.createElement("div", { ref: ref, className: (0, utils_1.cn)('relative flex h-[48px] w-[20px] items-center justify-center border-b-[2px] border-input transition-all', isActive && 'border-b-primary', className), ...props },
|
|
18
18
|
char,
|
|
19
19
|
hasFakeCaret && (React.createElement("div", { className: "absolute inset-0 flex justify-center items-center pointer-events-none" }))));
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../src/Input-OTP/Input.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B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B,6BAAK,SAAS,EAAC,uEAAuE,GAEhF,CACN,CACI,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAgBgC,oCAAY;AAf9C,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA;AAEzC,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CACzC,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACtB,6BACC,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,WAAW,KACZ,KAAK,qCAGJ,CACN,CACD,CAAA;AAG+C,8CAAiB;AAFjE,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAA"}
|
package/dist/Page/Page.js
CHANGED
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
6
|
const utils_1 = require("../@/lib/utils");
|
|
7
7
|
const Navbar = ({ children, className }) => {
|
|
8
|
-
return react_1.default.createElement("div", { className: (0, utils_1.cn)('flex items-center h-[
|
|
8
|
+
return react_1.default.createElement("div", { className: (0, utils_1.cn)('flex items-center h-[--page-header-height] px-[20px] shrink-0', className) }, children);
|
|
9
9
|
};
|
|
10
10
|
const Content = ({ children, className }) => {
|
|
11
11
|
return react_1.default.createElement("div", { className: (0, utils_1.cn)('px-[20px] py-[16px] overflow-y-auto grow', className) }, children);
|
package/dist/Page/Page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../src/Page/Page.tsx"],"names":[],"mappings":";;;;AAAA,+DAA4C;AAC5C,0CAAmC;AAMnC,MAAM,MAAM,GAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IACtD,OAAO,uCAAK,SAAS,EAAE,IAAA,UAAE,EAAC,+
|
|
1
|
+
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../src/Page/Page.tsx"],"names":[],"mappings":";;;;AAAA,+DAA4C;AAC5C,0CAAmC;AAMnC,MAAM,MAAM,GAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IACtD,OAAO,uCAAK,SAAS,EAAE,IAAA,UAAE,EAAC,+DAA+D,EAAE,SAAS,CAAC,IAAG,QAAQ,CAAO,CAAA;AACxH,CAAC,CAAA;AAED,MAAM,OAAO,GAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IACvD,OAAO,uCAAK,SAAS,EAAE,IAAA,UAAE,EAAC,0CAA0C,EAAE,SAAS,CAAC,IAAG,QAAQ,CAAO,CAAA;AACnG,CAAC,CAAA;AAOD,MAAM,IAAI,GAAuB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IAC5D,OAAO,CACN,uCACC,SAAS,EAAE,IAAA,UAAE,EACZ,0CAA0C;QAC1C,2GAA2G;QAC3G,SAAS,CACT,IAEA,QAAQ,CACJ,CACN,CAAA;AACF,CAAC,CAAA;AAUQ,oBAAI;AARb,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA;AAEzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;AACpB,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;AACtB,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ToasterProps, ExternalToast } from 'sonner';
|
|
3
|
+
declare const Toaster: {
|
|
4
|
+
({ ...props }: ToasterProps): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
interface IToast {
|
|
8
|
+
success: (title?: string | ReactNode, options?: ExternalToast) => React.ReactNode;
|
|
9
|
+
critical: (title?: string | ReactNode, options?: ExternalToast) => React.ReactNode;
|
|
10
|
+
snackbar: (title?: string | ReactNode, options?: ExternalToast) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const toast: IToast;
|
|
13
|
+
export { Toaster, toast };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toast = exports.Toaster = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const Icon_1 = require("../Icon");
|
|
7
|
+
const sonner_1 = require("sonner");
|
|
8
|
+
const Toaster = ({ ...props }) => {
|
|
9
|
+
return (react_1.default.createElement(sonner_1.Toaster, { visibleToasts: 1, toastOptions: {
|
|
10
|
+
unstyled: true,
|
|
11
|
+
classNames: {
|
|
12
|
+
icon: 'shrink-0 size-[24px]',
|
|
13
|
+
toast: 'px-[12px] py-[8px] text-white border-none rounded-md flex w-full sm:width-[--page-container-width] shadow-md',
|
|
14
|
+
description: 'text-[14px] leading-[1.125] mt-[4px]',
|
|
15
|
+
content: 'grow',
|
|
16
|
+
actionButton: 'shrink-0 py-[12px] px-[24px] font-medium',
|
|
17
|
+
cancelButton: 'shrink-0 py-[12px] px-[24px] font-medium',
|
|
18
|
+
},
|
|
19
|
+
}, expand: true, ...props }));
|
|
20
|
+
};
|
|
21
|
+
exports.Toaster = Toaster;
|
|
22
|
+
Toaster.displayName = 'Toaster';
|
|
23
|
+
const toast = {
|
|
24
|
+
success: (title, options) => {
|
|
25
|
+
return (0, sonner_1.toast)(title, {
|
|
26
|
+
position: 'top-center',
|
|
27
|
+
icon: react_1.default.createElement(Icon_1.CheckCircleSolid, null),
|
|
28
|
+
classNames: {
|
|
29
|
+
content: 'w-[calc(100%-28px)]',
|
|
30
|
+
},
|
|
31
|
+
className: 'bg-success',
|
|
32
|
+
...options,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
critical: (title, options) => {
|
|
36
|
+
return (0, sonner_1.toast)(title, {
|
|
37
|
+
position: 'top-center',
|
|
38
|
+
icon: react_1.default.createElement(Icon_1.InfoSolid, null),
|
|
39
|
+
duration: Infinity,
|
|
40
|
+
classNames: {
|
|
41
|
+
content: 'w-[calc(100%-28px)]',
|
|
42
|
+
},
|
|
43
|
+
className: 'bg-critical',
|
|
44
|
+
...options,
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
snackbar: (title, options) => {
|
|
48
|
+
return (0, sonner_1.toast)(title, {
|
|
49
|
+
position: 'bottom-center',
|
|
50
|
+
classNames: {
|
|
51
|
+
toast: 'items-center',
|
|
52
|
+
content: 'mt-0'
|
|
53
|
+
},
|
|
54
|
+
className: 'bg-[--base]',
|
|
55
|
+
...options,
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
exports.toast = toast;
|
|
60
|
+
//# sourceMappingURL=Toaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../src/Toaster/Toaster.tsx"],"names":[],"mappings":";;;;AAAA,+DAAwC;AACxC,kCAAqD;AACrD,mCAAmG;AAEnG,MAAM,OAAO,GAAG,CAAC,EAAE,GAAG,KAAK,EAAgB,EAAE,EAAE;IAC9C,OAAO,CACN,8BAAC,gBAAc,IACd,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACX,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,8GAA8G;gBACrH,WAAW,EAAE,sCAAsC;gBACnD,OAAO,EAAE,MAAM;gBACf,YAAY,EAAE,0CAA0C;gBACxD,YAAY,EAAE,0CAA0C;aACxD;SACD,EACD,MAAM,EAAE,IAAI,KACR,KAAK,GACR,CACF,CAAA;AACF,CAAC,CAAA;AA+CQ,0BAAO;AA7ChB,OAAO,CAAC,WAAW,GAAG,SAAS,CAAA;AAM/B,MAAM,KAAK,GAAW;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC3B,OAAO,IAAA,cAAS,EAAC,KAAK,EAAE;YACvB,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE,8BAAC,uBAAgB,OAAG;YAC1B,UAAU,EAAE;gBACX,OAAO,EAAE,qBAAqB;aAC9B;YACD,SAAS,EAAE,YAAY;YACvB,GAAG,OAAO;SACV,CAAC,CAAA;IACH,CAAC;IAED,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC5B,OAAO,IAAA,cAAS,EAAC,KAAK,EAAE;YACvB,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE,8BAAC,gBAAS,OAAG;YACnB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACX,OAAO,EAAE,qBAAqB;aAC9B;YACD,SAAS,EAAE,aAAa;YACxB,GAAG,OAAO;SACV,CAAC,CAAA;IACH,CAAC;IAED,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC5B,OAAO,IAAA,cAAS,EAAC,KAAK,EAAE;YACvB,QAAQ,EAAE,eAAe;YACzB,UAAU,EAAE;gBACX,KAAK,EAAE,cAAc;gBACrB,OAAO,EAAE,MAAM;aACf;YACD,SAAS,EAAE,aAAa;YACxB,GAAG,OAAO;SACV,CAAC,CAAA;IACH,CAAC;CACD,CAAA;AAEiB,sBAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toaster, toast } from './Toaster';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toast = exports.Toaster = void 0;
|
|
4
|
+
var Toaster_1 = require("./Toaster");
|
|
5
|
+
Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return Toaster_1.Toaster; } });
|
|
6
|
+
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return Toaster_1.toast; } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Toaster/index.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAAhC,kGAAA,OAAO,OAAA;AAAE,gGAAA,KAAK,OAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger
|
|
|
11
11
|
import { Button, buttonVariants, ButtonWidget } from './Button';
|
|
12
12
|
import { Audio } from './Audio';
|
|
13
13
|
import { cn } from './@/lib/utils';
|
|
14
|
-
import { Drawer, DrawerTrigger, DrawerClose, DrawerContent
|
|
14
|
+
import { Drawer, DrawerTrigger, DrawerClose, DrawerContent } from './Drawer';
|
|
15
15
|
import { Page } from './Page';
|
|
16
16
|
import { Chip } from './Chip';
|
|
17
17
|
import { InputField, InputLabel, InputMask } from './Input';
|
|
@@ -30,5 +30,5 @@ import { MessageTyping } from "./Chat";
|
|
|
30
30
|
import { FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses } from './FavoritePyments';
|
|
31
31
|
import { DigitKeyPad } from "./DigitKeyPad";
|
|
32
32
|
import { Badge, badgeVariants } from './Badge';
|
|
33
|
-
import {
|
|
34
|
-
export { Tooltip, Tabs, Slider, Popover, Logo, InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, Collapsible, CollapsibleTrigger, CollapsibleContent, AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem, Button, buttonVariants, InputField, InputLabel, Audio, cn, Icon, Drawer, DrawerTrigger, DrawerClose, DrawerContent, BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink, Page, Chip, Progress, Alert, Switch, Label, Textarea, SelectAccountCard, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, SelectAsync, InputMask, Select, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, MessageTyping, FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, Badge, badgeVariants,
|
|
33
|
+
import { Toaster, toast } from './Toaster';
|
|
34
|
+
export { Tooltip, Tabs, Slider, Popover, Logo, InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, Collapsible, CollapsibleTrigger, CollapsibleContent, AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem, Button, buttonVariants, InputField, InputLabel, Audio, cn, Icon, Drawer, DrawerTrigger, DrawerClose, DrawerContent, BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink, Page, Chip, Progress, Alert, Switch, Label, Textarea, SelectAccountCard, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, SelectAsync, InputMask, Select, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, MessageTyping, FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses, Badge, badgeVariants, DigitKeyPad, ButtonWidget, Toaster, toast, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SelectAsync = exports.DatePicker = exports.Calendar = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormItem = exports.FormField = exports.FormLabel = exports.Form = exports.SelectAccountCard = exports.Textarea = exports.Label = exports.Switch = exports.Alert = exports.Progress = exports.Chip = exports.Page = exports.BottomNavigationLink = exports.BottomNavigationListItem = exports.BottomNavigationList = exports.BottomNavigation = exports.DrawerContent = exports.DrawerClose = exports.DrawerTrigger = exports.Drawer = exports.Icon = exports.cn = exports.Audio = exports.InputLabel = exports.InputField = exports.buttonVariants = exports.Button = exports.AccountCollapsibleContentItem = exports.AccountCollapsibleContent = exports.AccountCollapsibleTrigger = exports.AccountCollapsibleHeader = exports.AccountCollapsible = exports.CollapsibleContent = exports.CollapsibleTrigger = exports.Collapsible = exports.InputOTPSeparator = exports.InputOTPSlot = exports.InputOTPGroup = exports.InputOTP = exports.Logo = exports.Popover = exports.Slider = exports.Tabs = exports.Tooltip = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.toast = exports.Toaster = exports.ButtonWidget = exports.DigitKeyPad = exports.badgeVariants = exports.Badge = exports.farvoriteLinkClasses = exports.FarvoritePaymentDescription = exports.FavoritePaymentsItem = exports.FavoritePaymentsList = exports.MessageTyping = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogTrigger = exports.AlertDialog = exports.Select = exports.InputMask = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const Tooltip_1 = require("./Tooltip");
|
|
7
7
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
|
|
@@ -48,7 +48,6 @@ Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () {
|
|
|
48
48
|
Object.defineProperty(exports, "DrawerTrigger", { enumerable: true, get: function () { return Drawer_1.DrawerTrigger; } });
|
|
49
49
|
Object.defineProperty(exports, "DrawerClose", { enumerable: true, get: function () { return Drawer_1.DrawerClose; } });
|
|
50
50
|
Object.defineProperty(exports, "DrawerContent", { enumerable: true, get: function () { return Drawer_1.DrawerContent; } });
|
|
51
|
-
Object.defineProperty(exports, "DrawerPortal", { enumerable: true, get: function () { return Drawer_1.DrawerPortal; } });
|
|
52
51
|
const Page_1 = require("./Page");
|
|
53
52
|
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
54
53
|
const Chip_1 = require("./Chip");
|
|
@@ -106,6 +105,7 @@ Object.defineProperty(exports, "DigitKeyPad", { enumerable: true, get: function
|
|
|
106
105
|
const Badge_1 = require("./Badge");
|
|
107
106
|
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
|
|
108
107
|
Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return Badge_1.badgeVariants; } });
|
|
109
|
-
const
|
|
110
|
-
Object.defineProperty(exports, "
|
|
108
|
+
const Toaster_1 = require("./Toaster");
|
|
109
|
+
Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return Toaster_1.Toaster; } });
|
|
110
|
+
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return Toaster_1.toast; } });
|
|
111
111
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAmC;AAwDlC,wFAxDQ,iBAAO,OAwDR;AAvDR,iCAA6B;AAwD5B,qFAxDQ,WAAI,OAwDR;AAvDL,qCAAiC;AAwDhC,uFAxDQ,eAAM,OAwDR;AAvDP,uCAAmC;AAwDlC,wFAxDQ,iBAAO,OAwDR;AAvDR,+DAAyB;AAwDxB,eAxDM,cAAI,CAwDN;AAvDL,2CAAsF;AAwDrF,yFAxDQ,oBAAQ,OAwDR;AACR,8FAzDkB,yBAAa,OAyDlB;AACb,6FA1DiC,wBAAY,OA0DjC;AACZ,kGA3D+C,6BAAiB,OA2D/C;AA1DlB,yDAK2B;AA0E1B,iGA9EA,mCAAgB,OA8EA;AAChB,qGA9EA,uCAAoB,OA8EA;AACpB,yGA9EA,2CAAwB,OA8EA;AACxB,qGA9EA,uCAAoB,OA8EA;AA5ErB,0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AmEpC;AACR,4FApE8C,kBAAW,OAoE9C;AACX,gGArE2D,sBAAe,OAqE3D;AACf,4FAtE4E,kBAAW,OAsE5E;AArEZ,yCAAqC;AAsEpC,yFAtEQ,mBAAQ,OAsER;AArET,6CAAyC;AAsExC,2FAtEQ,uBAAU,OAsER;AArEX,qCAAiC;AAwEhC,uFAxEQ,eAAM,OAwER;AAvEP,yCAAqC;AAsDpC,yFAtDQ,mBAAQ,OAsDR;AArDT,+CAUsB;AA6DrB,4FAtEA,yBAAW,OAsEA;AACX,mGAtEA,gCAAkB,OAsEA;AAClB,mGAtEA,gCAAkB,OAsEA;AAClB,kGAtEA,+BAAiB,OAsEA;AACjB,kGAtEA,+BAAiB,OAsEA;AACjB,iGAtEA,8BAAgB,OAsEA;AAChB,uGAtEA,oCAAsB,OAsEA;AACtB,kGAtEA,+BAAiB,OAsEA;AACjB,kGAtEA,+BAAiB,OAsEA;AApElB,iCAAsC;AAqErC,8FArEQ,oBAAa,OAqER;AApEd,uDAAiI;AAqEhI,qGArEQ,sCAAoB,OAqER;AACpB,qGAtE8B,sCAAoB,OAsE9B;AACpB,4GAvEoD,6CAA2B,OAuEpD;AAC3B,qGAxEiF,sCAAoB,OAwEjF;AAvErB,+CAA2C;AA0E1C,4FA1EQ,yBAAW,OA0ER;AAzEZ,mCAA8C;AAuE7C,sFAvEQ,aAAK,OAuER;AACL,8FAxEe,qBAAa,OAwEf;AAvEd,uCAA0C;AA0EzC,wFA1EQ,iBAAO,OA0ER;AACP,sFA3EiB,eAAK,OA2EjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modul/mbui",
|
|
3
|
-
"version": "0.0.20-beta-
|
|
3
|
+
"version": "0.0.20-beta-pv-53139-48074e41",
|
|
4
4
|
"packageManager": "yarn@3.5.1",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -46,10 +46,11 @@
|
|
|
46
46
|
"react-hook-form": "7.53.0",
|
|
47
47
|
"react-imask": "7.6.1",
|
|
48
48
|
"react-select": "5.8.0",
|
|
49
|
+
"sonner": "^1.5.0",
|
|
49
50
|
"tailwind-merge": "^2.3.0",
|
|
50
51
|
"tailwindcss": "^3.4.4",
|
|
51
52
|
"tailwindcss-animate": "^1.0.7",
|
|
52
|
-
"vaul": "0.9.
|
|
53
|
+
"vaul": "0.9.1",
|
|
53
54
|
"zod": "3.23.8"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
package/src/Alert/Alert.tsx
CHANGED
|
@@ -58,7 +58,7 @@ type TAlertProps = IAlertProps & React.DetailedHTMLProps<React.HTMLAttributes<HT
|
|
|
58
58
|
const Alert: React.FC<TAlertProps> & IAlertComponents = ({ className, variant = 'info', type, children, ...props }) => {
|
|
59
59
|
return (
|
|
60
60
|
<div
|
|
61
|
-
className={cn('flex', getClass(variant, type))}
|
|
61
|
+
className={cn('flex', getClass(variant, type), className)}
|
|
62
62
|
role='alert'
|
|
63
63
|
{...props}
|
|
64
64
|
>
|
package/src/Button/Button.tsx
CHANGED
package/src/Drawer/Drawer.tsx
CHANGED
|
@@ -1,10 +1,89 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { Drawer as DrawerPrimitive } from 'vaul'
|
|
3
|
+
import { cn } from '../@/lib/utils'
|
|
4
|
+
import { useContext } from 'react'
|
|
5
|
+
|
|
6
|
+
const DrawerContext = React.createContext({direction: 'bottom', modal: false})
|
|
7
|
+
|
|
8
|
+
const Drawer = ({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => {
|
|
9
|
+
return (
|
|
10
|
+
<DrawerContext.Provider value={{direction: props.direction, modal: props.modal}}>
|
|
11
|
+
<DrawerPrimitive.Root {...props} />
|
|
12
|
+
</DrawerContext.Provider>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
Drawer.displayName = 'Drawer'
|
|
3
17
|
|
|
4
|
-
const Drawer = DrawerPrimitive.Root
|
|
5
18
|
const DrawerTrigger = DrawerPrimitive.Trigger
|
|
6
|
-
|
|
19
|
+
|
|
7
20
|
const DrawerPortal = DrawerPrimitive.Portal
|
|
21
|
+
|
|
8
22
|
const DrawerClose = DrawerPrimitive.Close
|
|
9
23
|
|
|
10
|
-
|
|
24
|
+
const DrawerOverlay = DrawerPrimitive.Overlay
|
|
25
|
+
|
|
26
|
+
const DrawerTitle = React.forwardRef<
|
|
27
|
+
React.ElementRef<typeof DrawerPrimitive.Title>,
|
|
28
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
|
|
29
|
+
>(({ className, ...props }, ref) => (
|
|
30
|
+
<DrawerPrimitive.Title
|
|
31
|
+
ref={ref}
|
|
32
|
+
className={cn(className)}
|
|
33
|
+
{...props}
|
|
34
|
+
/>
|
|
35
|
+
))
|
|
36
|
+
|
|
37
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName
|
|
38
|
+
|
|
39
|
+
const DrawerContent = React.forwardRef<
|
|
40
|
+
React.ElementRef<typeof DrawerPrimitive.Content>,
|
|
41
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
|
|
42
|
+
>(({ className, children, ...props }, ref) => {
|
|
43
|
+
const {direction = 'bottom', modal = false} = useContext(DrawerContext)
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<DrawerPortal>
|
|
47
|
+
{modal && <DrawerOverlay className='z-50 fixed inset-0 bg-[--drawer-overlay-bg]' />}
|
|
48
|
+
<DrawerPrimitive.Content
|
|
49
|
+
ref={ref}
|
|
50
|
+
className={cn(
|
|
51
|
+
`z-50 fixed inset-x-0 flex flex-col bg-page shadow-sm max-h-[94%] sm:container`,
|
|
52
|
+
direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm',
|
|
53
|
+
className
|
|
54
|
+
)}
|
|
55
|
+
{...props}
|
|
56
|
+
>
|
|
57
|
+
{direction !== 'top' && (
|
|
58
|
+
<div className="pt-[4px] pb-[16px]">
|
|
59
|
+
<span className="block bg-[--cl-graphite-5] mx-auto rounded-full w-[36px] h-[5px]" />
|
|
60
|
+
</div>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{children}
|
|
64
|
+
|
|
65
|
+
{direction === 'top' && (
|
|
66
|
+
<div className="pt-[24px] pb-[16px]">
|
|
67
|
+
<svg
|
|
68
|
+
className="mx-auto"
|
|
69
|
+
width="38"
|
|
70
|
+
height="10"
|
|
71
|
+
viewBox="0 0 38 10"
|
|
72
|
+
fill="none"
|
|
73
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
74
|
+
>
|
|
75
|
+
<path
|
|
76
|
+
d="M0 7.39774C0 8.68678 1.25226 9.60455 2.48147 9.21638L17.7955 4.38038C18.5794 4.13282 19.4206 4.13282 20.2045 4.38038L35.5185 9.21638C36.7477 9.60455 38 8.68678 38 7.39774C38 6.56568 37.4606 5.82966 36.6671 5.5791L20.2045 0.380377C19.4206 0.132817 18.5794 0.132817 17.7955 0.380377L1.33286 5.5791C0.539422 5.82966 0 6.56568 0 7.39774Z"
|
|
77
|
+
fill="var(--cl-graphite-5)"
|
|
78
|
+
/>
|
|
79
|
+
</svg>
|
|
80
|
+
</div>
|
|
81
|
+
)}
|
|
82
|
+
</DrawerPrimitive.Content>
|
|
83
|
+
</DrawerPortal>
|
|
84
|
+
)
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
DrawerContent.displayName = 'DrawerContent'
|
|
88
|
+
|
|
89
|
+
export { Drawer, DrawerTrigger, DrawerContent, DrawerTitle, DrawerClose }
|
package/src/Drawer/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ const farvoriteLinkClasses: string = `
|
|
|
10
10
|
`
|
|
11
11
|
|
|
12
12
|
const FavoritePaymentsList: FC<{children: React.ReactNode}> = ({children}) => {
|
|
13
|
-
return <ul className="
|
|
13
|
+
return <ul className="divide-y">{children}</ul>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const FavoritePaymentsItem: FC<{children: React.ReactNode}> = ({children}) => {
|
package/src/Input-OTP/Input.tsx
CHANGED
|
@@ -37,7 +37,7 @@ const InputOTPSlot = React.forwardRef<
|
|
|
37
37
|
ref={ref}
|
|
38
38
|
className={cn(
|
|
39
39
|
'relative flex h-[48px] w-[20px] items-center justify-center border-b-[2px] border-input transition-all',
|
|
40
|
-
isActive && 'border-b-primary
|
|
40
|
+
isActive && 'border-b-primary',
|
|
41
41
|
className
|
|
42
42
|
)}
|
|
43
43
|
{...props}
|
package/src/Page/Page.tsx
CHANGED
|
@@ -6,7 +6,7 @@ type IProps = {
|
|
|
6
6
|
className?: string
|
|
7
7
|
}
|
|
8
8
|
const Navbar: FC<IProps> = ({ children, className }) => {
|
|
9
|
-
return <div className={cn('flex items-center h-[
|
|
9
|
+
return <div className={cn('flex items-center h-[--page-header-height] px-[20px] shrink-0', className)}>{children}</div>
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const Content: FC<IProps> = ({ children, className }) => {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { InfoSolid, CheckCircleSolid } from '../Icon'
|
|
3
|
+
import { Toaster as ToastContainer, toast as toastItem, ToasterProps, ExternalToast } from 'sonner'
|
|
4
|
+
|
|
5
|
+
const Toaster = ({ ...props }: ToasterProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<ToastContainer
|
|
8
|
+
visibleToasts={1}
|
|
9
|
+
toastOptions={{
|
|
10
|
+
unstyled: true,
|
|
11
|
+
classNames: {
|
|
12
|
+
icon: 'shrink-0 size-[24px]',
|
|
13
|
+
toast: 'px-[12px] py-[8px] text-white border-none rounded-md flex w-full sm:width-[--page-container-width] shadow-md',
|
|
14
|
+
description: 'text-[14px] leading-[1.125] mt-[4px]',
|
|
15
|
+
content: 'grow',
|
|
16
|
+
actionButton: 'shrink-0 py-[12px] px-[24px] font-medium',
|
|
17
|
+
cancelButton: 'shrink-0 py-[12px] px-[24px] font-medium',
|
|
18
|
+
},
|
|
19
|
+
}}
|
|
20
|
+
expand={true}
|
|
21
|
+
{...props}
|
|
22
|
+
/>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
Toaster.displayName = 'Toaster'
|
|
27
|
+
interface IToast {
|
|
28
|
+
success: (title?: string | ReactNode, options?: ExternalToast) => React.ReactNode
|
|
29
|
+
critical: (title?: string | ReactNode, options?: ExternalToast) => React.ReactNode
|
|
30
|
+
snackbar: (title?: string | ReactNode, options?: ExternalToast) => React.ReactNode
|
|
31
|
+
}
|
|
32
|
+
const toast: IToast = {
|
|
33
|
+
success: (title, options) => {
|
|
34
|
+
return toastItem(title, {
|
|
35
|
+
position: 'top-center',
|
|
36
|
+
icon: <CheckCircleSolid />,
|
|
37
|
+
classNames: {
|
|
38
|
+
content: 'w-[calc(100%-28px)]',
|
|
39
|
+
},
|
|
40
|
+
className: 'bg-success',
|
|
41
|
+
...options,
|
|
42
|
+
})
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
critical: (title, options) => {
|
|
46
|
+
return toastItem(title, {
|
|
47
|
+
position: 'top-center',
|
|
48
|
+
icon: <InfoSolid />,
|
|
49
|
+
duration: Infinity,
|
|
50
|
+
classNames: {
|
|
51
|
+
content: 'w-[calc(100%-28px)]',
|
|
52
|
+
},
|
|
53
|
+
className: 'bg-critical',
|
|
54
|
+
...options,
|
|
55
|
+
})
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
snackbar: (title, options) => {
|
|
59
|
+
return toastItem(title, {
|
|
60
|
+
position: 'bottom-center',
|
|
61
|
+
classNames: {
|
|
62
|
+
toast: 'items-center',
|
|
63
|
+
content: 'mt-0'
|
|
64
|
+
},
|
|
65
|
+
className: 'bg-[--base]',
|
|
66
|
+
...options,
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { Toaster, toast }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toaster, toast} from './Toaster'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" height="36" width="68" xmlns="http://www.w3.org/2000/svg"><path d="m56.8 14.7v7.47h-2.62v-5.24h-2.54v5.24h-2.64v-7.47zm-9.04 4.16c0 2.17-1.82 3.6-4.25 3.6-2.52 0-4.36-1.51-4.36-4.96 0-2.96 1.89-5.4 4.68-5.44 1.22 0 3.85-.06 3.85-.06l-1.18 2.18h-2.38a2.48 2.48 0 0 0 -2.45 2.15 3.6 3.6 0 0 1 2.52-.95c2.23 0 3.57 1.37 3.57 3.48zm-2.7 0c0-.98-.63-1.55-1.54-1.55-.9 0-1.56.58-1.56 1.56a1.51 1.51 0 0 0 1.56 1.6c.98 0 1.54-.73 1.54-1.61zm-8 1.05c-.5.25-1.04.4-1.59.43-1.1.03-2.06-.64-2.06-1.85 0-1.2.85-1.84 2.03-1.84.73 0 1.68.5 1.68.5l1.06-1.9a4.28 4.28 0 0 0 -2.57-.76c-2.61.01-4.61 1.66-4.61 3.99s1.89 3.98 4.6 3.93c.87-.04 1.7-.28 2.46-.7z" fill="#1c1637"/><path d="m4 9.53 3.64 6.5v3.95l-3.64 6.49z" fill="#5b57a2"/><path d="m17.97 13.66 3.4-2.09h6.98l-10.38 6.35z" fill="#d90751"/><path d="m17.95 9.5.02 8.59-3.65-2.24v-12.85z" fill="#fab718"/><path d="m28.35 11.57h-6.97l-3.43-2.07-3.63-6.5z" fill="#ed6f26"/><path d="m17.97 26.5v-4.17l-3.65-2.2v12.87z" fill="#63b22f"/><path d="m21.37 24.43-13.73-8.4-3.64-6.51 24.34 14.9h-6.97z" fill="#1487c9"/><path d="m14.32 33 3.65-6.5 3.4-2.07h6.96l-14 8.57z" fill="#017f36"/><path d="m4 26.47 10.35-6.33-3.48-2.14-3.23 1.97z" fill="#984995"/></svg>
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import { Button, buttonVariants, ButtonWidget } from './Button'
|
|
23
23
|
import { Audio } from './Audio'
|
|
24
24
|
import { cn } from './@/lib/utils'
|
|
25
|
-
import { Drawer, DrawerTrigger, DrawerClose, DrawerContent
|
|
25
|
+
import { Drawer, DrawerTrigger, DrawerClose, DrawerContent } from './Drawer'
|
|
26
26
|
import { Page } from './Page'
|
|
27
27
|
import { Chip } from './Chip'
|
|
28
28
|
import { InputField, InputLabel, InputMask } from './Input'
|
|
@@ -51,8 +51,7 @@ import { MessageTyping } from "./Chat"
|
|
|
51
51
|
import { FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses } from './FavoritePyments'
|
|
52
52
|
import { DigitKeyPad } from "./DigitKeyPad"
|
|
53
53
|
import { Badge, badgeVariants } from './Badge'
|
|
54
|
-
import {
|
|
55
|
-
|
|
54
|
+
import { Toaster, toast } from './Toaster'
|
|
56
55
|
|
|
57
56
|
export {
|
|
58
57
|
Tooltip,
|
|
@@ -81,7 +80,7 @@ export {
|
|
|
81
80
|
Icon,
|
|
82
81
|
Drawer,
|
|
83
82
|
DrawerTrigger,
|
|
84
|
-
|
|
83
|
+
|
|
85
84
|
DrawerClose,
|
|
86
85
|
DrawerContent,
|
|
87
86
|
BottomNavigation,
|
|
@@ -121,11 +120,11 @@ export {
|
|
|
121
120
|
FavoritePaymentsList,
|
|
122
121
|
FavoritePaymentsItem,
|
|
123
122
|
FarvoritePaymentDescription,
|
|
123
|
+
farvoriteLinkClasses,
|
|
124
124
|
Badge,
|
|
125
125
|
badgeVariants,
|
|
126
|
-
Checkbox,
|
|
127
|
-
farvoriteLinkClasses,
|
|
128
126
|
DigitKeyPad,
|
|
129
127
|
ButtonWidget,
|
|
130
|
-
|
|
128
|
+
Toaster,
|
|
129
|
+
toast,
|
|
131
130
|
}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import {
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Button,
|
|
5
|
+
cn,
|
|
6
|
+
Drawer,
|
|
7
|
+
DrawerContent,
|
|
8
|
+
DrawerTitle,
|
|
9
|
+
DrawerTrigger,
|
|
10
|
+
InputOTP,
|
|
11
|
+
InputOTPGroup,
|
|
12
|
+
InputOTPSlot,
|
|
13
|
+
Page,
|
|
14
|
+
} from '../../..'
|
|
3
15
|
import { Close } from '../../../Icon'
|
|
4
16
|
|
|
5
17
|
const InputSMS: React.FC = (props) => (
|
|
@@ -33,14 +45,18 @@ const InputSMS: React.FC = (props) => (
|
|
|
33
45
|
)
|
|
34
46
|
|
|
35
47
|
export const smsSignPage = () => {
|
|
48
|
+
const [snap, setSnap] = useState<number | string | null>('148px')
|
|
36
49
|
return (
|
|
37
50
|
<Page>
|
|
38
51
|
<Page.Navbar>
|
|
39
|
-
<a
|
|
52
|
+
<a
|
|
53
|
+
href=""
|
|
54
|
+
className="ml-auto"
|
|
55
|
+
>
|
|
40
56
|
<Close className="text-primary" />
|
|
41
57
|
</a>
|
|
42
58
|
</Page.Navbar>
|
|
43
|
-
<Page.Content className='flex flex-col'>
|
|
59
|
+
{/* <Page.Content className='flex flex-col'>
|
|
44
60
|
<h1 className="mt-[32px] mb-[16px] font-medium text-[20px] text-center leading-[1.2]">
|
|
45
61
|
Введите код из сообщения
|
|
46
62
|
<br />
|
|
@@ -69,6 +85,66 @@ export const smsSignPage = () => {
|
|
|
69
85
|
<Button className='mt-[32px] w-full'>Подтвердить</Button>
|
|
70
86
|
</div>
|
|
71
87
|
</form>
|
|
88
|
+
</Page.Content> */}
|
|
89
|
+
<Page.Content>
|
|
90
|
+
<Drawer
|
|
91
|
+
snapPoints={['148px', '355px', 1]}
|
|
92
|
+
activeSnapPoint={snap}
|
|
93
|
+
setActiveSnapPoint={setSnap}
|
|
94
|
+
>
|
|
95
|
+
<DrawerTrigger>
|
|
96
|
+
<Button variant="primary">Перевести</Button>
|
|
97
|
+
</DrawerTrigger>
|
|
98
|
+
<DrawerContent>
|
|
99
|
+
<DrawerTitle className="sr-only">Перевести</DrawerTitle>
|
|
100
|
+
<div className="px-[20px] pt-[8px]">
|
|
101
|
+
<p
|
|
102
|
+
className={cn('font-medium text-[12px] leading-[1.16] mb-[16px]', 'text-success', {
|
|
103
|
+
'text-critical': false,
|
|
104
|
+
})}
|
|
105
|
+
>
|
|
106
|
+
Отклонен, <time dateTime="">30 января 2024, 11:23</time>
|
|
107
|
+
</p>
|
|
108
|
+
<p className="font-medium text-[40px] leading-[1.1] mb-[16px]">3598,00 ₽</p>
|
|
109
|
+
<div className="space-y-[8px]">
|
|
110
|
+
<p className="">
|
|
111
|
+
<span className="text-light text-[12px] leading-[1.16]">Платёжное поручение:</span>{' '}
|
|
112
|
+
№91 от 01.01.2024
|
|
113
|
+
</p>
|
|
114
|
+
<p className="">
|
|
115
|
+
<span className="text-light text-[12px] leading-[1.16]">Со счёта:</span> Расчётный
|
|
116
|
+
счёт (•••• 4590)
|
|
117
|
+
</p>
|
|
118
|
+
<p className="">
|
|
119
|
+
<span className="text-light text-[12px] leading-[1.16]">На счёт:</span> Карточный
|
|
120
|
+
счёт (•••• 6416)
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<hr
|
|
125
|
+
role="presentation"
|
|
126
|
+
className="my-[16px]"
|
|
127
|
+
/>
|
|
128
|
+
|
|
129
|
+
<Alert
|
|
130
|
+
variant="critical"
|
|
131
|
+
className="my-[16px]"
|
|
132
|
+
>
|
|
133
|
+
<Alert.Description>
|
|
134
|
+
Произошла ошибка при отправке в банк: Клиент не является владельцем счёта
|
|
135
|
+
</Alert.Description>
|
|
136
|
+
</Alert>
|
|
137
|
+
|
|
138
|
+
<Button>Повторить</Button>
|
|
139
|
+
|
|
140
|
+
<p className="mt-[32px]">
|
|
141
|
+
<span className="text-light">Назначение:</span>
|
|
142
|
+
<br />
|
|
143
|
+
Перевод между счетами. Без НДС
|
|
144
|
+
</p>
|
|
145
|
+
</div>
|
|
146
|
+
</DrawerContent>
|
|
147
|
+
</Drawer>
|
|
72
148
|
</Page.Content>
|
|
73
149
|
</Page>
|
|
74
150
|
)
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
export { Checkbox };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkbox = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const CheckboxPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-checkbox"));
|
|
7
|
-
const icons_1 = require("../Icon/icons");
|
|
8
|
-
const checkboxClasses = {
|
|
9
|
-
root: `
|
|
10
|
-
peer
|
|
11
|
-
size-[18px]
|
|
12
|
-
shrink-0
|
|
13
|
-
rounded-sm
|
|
14
|
-
border-2
|
|
15
|
-
border-input
|
|
16
|
-
focus-visible:outline-none
|
|
17
|
-
focus-visible:ring-1 focus-visible:ring-ring
|
|
18
|
-
disabled:cursor-not-allowed disabled:opacity-50
|
|
19
|
-
data-[state=checked]:bg-primary
|
|
20
|
-
data-[state=checked]:border-primary
|
|
21
|
-
data-[state=checked]:text-white
|
|
22
|
-
`,
|
|
23
|
-
indicator: `
|
|
24
|
-
flex
|
|
25
|
-
justify-center
|
|
26
|
-
items-center
|
|
27
|
-
text-current
|
|
28
|
-
`
|
|
29
|
-
};
|
|
30
|
-
const Checkbox = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CheckboxPrimitive.Root, { ref: ref, className: checkboxClasses.root, ...props },
|
|
31
|
-
React.createElement(CheckboxPrimitive.Indicator, { className: checkboxClasses.indicator },
|
|
32
|
-
React.createElement(icons_1.CheckSmall, { className: "size-[14px]" })))));
|
|
33
|
-
exports.Checkbox = Checkbox;
|
|
34
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
35
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,yFAA6D;AAC7D,yCAA0C;AAE1C,MAAM,eAAe,GAAG;IACvB,IAAI,EAAE;;;;;;;;;;;;;GAaJ;IACF,SAAS,EAAE;;;;;EAKV;CACD,CAAA;AAED,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,oBAAC,iBAAiB,CAAC,IAAI,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,CAAC,IAAI,KAC3B,KAAK;IAET,oBAAC,iBAAiB,CAAC,SAAS,IAAC,SAAS,EAAE,eAAe,CAAC,SAAS;QAChE,oBAAC,kBAAU,IAAC,SAAS,EAAC,aAAa,GAAG,CACT,CACN,CACzB,CAAC,CAAA;AAGO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAA"}
|
package/dist/Checkbox/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Checkbox } from './Checkbox';
|
package/dist/Checkbox/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkbox = void 0;
|
|
4
|
-
var Checkbox_1 = require("./Checkbox");
|
|
5
|
-
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Checkbox/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox'
|
|
3
|
-
import { CheckSmall } from '../Icon/icons'
|
|
4
|
-
|
|
5
|
-
const checkboxClasses = {
|
|
6
|
-
root: `
|
|
7
|
-
peer
|
|
8
|
-
size-[18px]
|
|
9
|
-
shrink-0
|
|
10
|
-
rounded-sm
|
|
11
|
-
border-2
|
|
12
|
-
border-input
|
|
13
|
-
focus-visible:outline-none
|
|
14
|
-
focus-visible:ring-1 focus-visible:ring-ring
|
|
15
|
-
disabled:cursor-not-allowed disabled:opacity-50
|
|
16
|
-
data-[state=checked]:bg-primary
|
|
17
|
-
data-[state=checked]:border-primary
|
|
18
|
-
data-[state=checked]:text-white
|
|
19
|
-
`,
|
|
20
|
-
indicator: `
|
|
21
|
-
flex
|
|
22
|
-
justify-center
|
|
23
|
-
items-center
|
|
24
|
-
text-current
|
|
25
|
-
`
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const Checkbox = React.forwardRef<
|
|
29
|
-
React.ElementRef<typeof CheckboxPrimitive.Root>,
|
|
30
|
-
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
|
|
31
|
-
>(({ className, ...props }, ref) => (
|
|
32
|
-
<CheckboxPrimitive.Root
|
|
33
|
-
ref={ref}
|
|
34
|
-
className={checkboxClasses.root}
|
|
35
|
-
{...props}
|
|
36
|
-
>
|
|
37
|
-
<CheckboxPrimitive.Indicator className={checkboxClasses.indicator}>
|
|
38
|
-
<CheckSmall className="size-[14px]" />
|
|
39
|
-
</CheckboxPrimitive.Indicator>
|
|
40
|
-
</CheckboxPrimitive.Root>
|
|
41
|
-
))
|
|
42
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName
|
|
43
|
-
|
|
44
|
-
export { Checkbox }
|
package/src/Checkbox/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Checkbox } from './Checkbox'
|