@modul/mbui 0.0.16-beta-pv-53139-f8011ffd → 0.0.16-beta-pv-53147-00d3e008
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.d.ts +15 -6
- package/dist/Alert/Alert.js +30 -19
- package/dist/Alert/Alert.js.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +10 -10
- package/dist/AlertDialog/AlertDialog.js.map +1 -1
- package/dist/BottomNavigation/BottomNavigation.js +21 -3
- package/dist/BottomNavigation/BottomNavigation.js.map +1 -1
- package/dist/Button/Button.d.ts +2 -2
- package/dist/Button/Button.js +17 -119
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/index.js.map +1 -1
- package/dist/Calendar/Calendar.js +3 -3
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Chip/Chip.js +2 -3
- package/dist/Chip/Chip.js.map +1 -1
- package/dist/Collapsible/AccountCollapsible.js +18 -3
- package/dist/Collapsible/AccountCollapsible.js.map +1 -1
- package/dist/DatePicker/DatePicker.js +6 -6
- package/dist/DatePicker/DatePicker.js.map +1 -1
- package/dist/Drawer/Drawer.js +3 -3
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Form/Form.js +6 -6
- package/dist/Form/Form.js.map +1 -1
- package/dist/Icon/icons/InfoSolid.js +1 -1
- package/dist/Icon/icons/InfoSolid.js.map +1 -1
- package/dist/Input/Input.js +3 -3
- package/dist/Input/Input.js.map +1 -1
- package/dist/Input/InputMask.js +22 -1
- package/dist/Input/InputMask.js.map +1 -1
- package/dist/Input-OTP/Input.js +4 -5
- package/dist/Input-OTP/Input.js.map +1 -1
- package/dist/Label/Label.js +2 -2
- package/dist/Label/Label.js.map +1 -1
- package/dist/Page/Page.js +4 -4
- package/dist/Page/Page.js.map +1 -1
- package/dist/Popover/Popover.js +23 -2
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Progress/Progress.js +11 -3
- package/dist/Progress/Progress.js.map +1 -1
- package/dist/Select/SelectAccountCard.js +33 -7
- package/dist/Select/SelectAccountCard.js.map +1 -1
- package/dist/Select/SelectAsync.js +17 -6
- package/dist/Select/SelectAsync.js.map +1 -1
- package/dist/Select/SelectBase.js +17 -6
- package/dist/Select/SelectBase.js.map +1 -1
- package/dist/Slider/Slider.js +21 -5
- package/dist/Slider/Slider.js.map +1 -1
- package/dist/Switch/Switch.js +27 -13
- package/dist/Switch/Switch.js.map +1 -1
- package/dist/Tabs/Tabs.js +39 -9
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Textarea/Textarea.d.ts +1 -1
- package/dist/Textarea/Textarea.js +20 -3
- package/dist/Textarea/Textarea.js.map +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/src/@/config/index.ts +72 -72
- package/src/Alert/Alert.tsx +68 -25
- package/src/AlertDialog/AlertDialog.tsx +2 -3
- package/src/BottomNavigation/BottomNavigation.tsx +20 -2
- package/src/Button/Button.tsx +43 -140
- package/src/Button/index.ts +1 -1
- package/src/Calendar/Calendar.tsx +1 -1
- package/src/Chip/Chip.tsx +2 -3
- package/src/Collapsible/AccountCollapsible.tsx +19 -3
- package/src/DatePicker/DatePicker.tsx +5 -5
- package/src/Drawer/Drawer.tsx +2 -1
- package/src/Form/Form.tsx +5 -3
- package/src/Icon/icons/InfoSolid.tsx +1 -1
- package/src/Input/Input.tsx +1 -1
- package/src/Input/InputMask.tsx +22 -1
- package/src/Input-OTP/Input.tsx +1 -2
- package/src/Label/Label.tsx +1 -1
- package/src/Page/Page.tsx +1 -1
- package/src/Popover/Popover.tsx +24 -2
- package/src/Progress/Progress.tsx +11 -3
- package/src/Select/Select.tsx +1 -1
- package/src/Select/SelectAccountCard.tsx +32 -11
- package/src/Select/SelectAsync.tsx +16 -10
- package/src/Select/SelectBase.tsx +16 -6
- package/src/Slider/Slider.tsx +21 -4
- package/src/Switch/Switch.tsx +26 -13
- package/src/Tabs/Tabs.tsx +41 -9
- package/src/Textarea/Textarea.tsx +30 -19
- package/src/assets/css/global.css +11 -6
- package/src/index.ts +3 -9
- package/dist/Badge/Badge.d.ts +0 -10
- package/dist/Badge/Badge.js +0 -52
- package/dist/Badge/Badge.js.map +0 -1
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Badge/index.js +0 -7
- package/dist/Badge/index.js.map +0 -1
- 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/Badge/Badge.tsx +0 -58
- package/src/Badge/index.ts +0 -1
- package/src/Checkbox/Checkbox.tsx +0 -44
- package/src/Checkbox/index.ts +0 -1
package/dist/Alert/Alert.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
declare const Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
4
|
+
declare const Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
interface TAlertComponents {
|
|
6
|
+
displayName: string;
|
|
7
|
+
Title: typeof Title;
|
|
8
|
+
Description: typeof Description;
|
|
7
9
|
}
|
|
8
|
-
|
|
10
|
+
interface IAlertProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
variant?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare type TAlertProps = IAlertProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
17
|
+
declare const Alert: React.FC<TAlertProps> & TAlertComponents;
|
|
9
18
|
export { Alert };
|
package/dist/Alert/Alert.js
CHANGED
|
@@ -3,25 +3,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Alert = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
6
|
+
const _utils_1 = require("@utils");
|
|
7
|
+
const Icon_1 = require("@/Icon");
|
|
8
|
+
const AleltIconClasses = '[&+div]:ml-[8px] shrink-0';
|
|
9
|
+
const AlertIcons = {
|
|
10
|
+
info: React.createElement(Icon_1.InfoSolid, { "aria-hidden": true, className: (0, _utils_1.cn)(AleltIconClasses, 'text-primary'), width: 24, height: 24 }),
|
|
11
|
+
warning: React.createElement(Icon_1.Warning, { "aria-hidden": true, className: (0, _utils_1.cn)(AleltIconClasses, 'text-warning'), width: 24, height: 24 }),
|
|
12
|
+
success: React.createElement(Icon_1.CheckCircleSolid, { "aria-hidden": true, className: (0, _utils_1.cn)(AleltIconClasses, 'text-success'), width: 24, height: 24 }),
|
|
13
|
+
critical: React.createElement(Icon_1.InfoSolid, { "aria-hidden": true, className: (0, _utils_1.cn)(AleltIconClasses, 'text-critical'), width: 24, height: 24 })
|
|
14
|
+
};
|
|
15
|
+
const Title = React.forwardRef(({ className, ...props }, ref) => (React.createElement("div", { role: "heading", ref: ref, className: (0, _utils_1.cn)('text-[14px] font-medium', className), ...props })));
|
|
16
|
+
const Description = React.forwardRef(({ className, ...props }, ref) => (React.createElement("p", { ref: ref, className: (0, _utils_1.cn)('text-[14px] [&>a]:text-primary [&>a]:underline', className), ...props })));
|
|
17
|
+
const getClass = (variant, type) => {
|
|
18
|
+
const commonClasses = 'px-[8px] py-[16px] border rounded-md ';
|
|
19
|
+
const variants = {
|
|
20
|
+
info: `${type !== 'text' ? `${commonClasses} bg-primary-light border-primary` : 'text-primary'}`,
|
|
21
|
+
warning: `${type !== 'text' ? `${commonClasses} bg-warning-light border-warning` : 'text-warning'}`,
|
|
22
|
+
success: `${type !== 'text' ? `${commonClasses} bg-success-light border-success` : 'text-success'}`,
|
|
23
|
+
critical: `${type !== 'text' ? `${commonClasses} bg-critical-light border-critical` : 'text-critical'}`,
|
|
24
|
+
};
|
|
25
|
+
return variants[variant];
|
|
26
|
+
};
|
|
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 },
|
|
29
|
+
AlertIcons[variant],
|
|
30
|
+
React.createElement("div", { className: 'pt-[2px]' }, children)));
|
|
31
|
+
};
|
|
25
32
|
exports.Alert = Alert;
|
|
26
33
|
Alert.displayName = 'Alert';
|
|
34
|
+
Alert.Title = Title;
|
|
35
|
+
Alert.Title.displayName = 'Alert.Title';
|
|
36
|
+
Alert.Description = Description;
|
|
37
|
+
Alert.Description.displayName = "Alert.Description";
|
|
27
38
|
//# sourceMappingURL=Alert.js.map
|
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,
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../src/Alert/Alert.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,mCAA2B;AAC3B,iCAA6D;AAG7D,MAAM,gBAAgB,GAAG,2BAA2B,CAAA;AACpD,MAAM,UAAU,GAAG;IAClB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|
|
@@ -4,39 +4,39 @@ exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescr
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const AlertDialogPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-alert-dialog"));
|
|
7
|
-
const
|
|
8
|
-
const Button_1 = require("
|
|
7
|
+
const _utils_1 = require("@utils");
|
|
8
|
+
const Button_1 = require("@/Button");
|
|
9
9
|
const AlertDialog = AlertDialogPrimitive.Root;
|
|
10
10
|
exports.AlertDialog = AlertDialog;
|
|
11
11
|
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
12
12
|
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
13
13
|
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
14
14
|
exports.AlertDialogPortal = AlertDialogPortal;
|
|
15
|
-
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Overlay, { className: (0,
|
|
15
|
+
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Overlay, { className: (0, _utils_1.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
|
|
16
16
|
exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
17
17
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
18
18
|
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPortal, null,
|
|
19
19
|
React.createElement(AlertDialogOverlay, null),
|
|
20
|
-
React.createElement(AlertDialogPrimitive.Content, { ref: ref, className: (0,
|
|
20
|
+
React.createElement(AlertDialogPrimitive.Content, { ref: ref, className: (0, _utils_1.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-input bg-dialog p-[16px] shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-md", className), ...props }))));
|
|
21
21
|
exports.AlertDialogContent = AlertDialogContent;
|
|
22
22
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
23
|
-
const AlertDialogHeader = ({ className, ...props }) => (React.createElement("div", { className: (0,
|
|
23
|
+
const AlertDialogHeader = ({ className, ...props }) => (React.createElement("div", { className: (0, _utils_1.cn)("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
24
24
|
exports.AlertDialogHeader = AlertDialogHeader;
|
|
25
25
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
26
|
-
const AlertDialogFooter = ({ className, ...props }) => (React.createElement("div", { className: (0,
|
|
26
|
+
const AlertDialogFooter = ({ className, ...props }) => (React.createElement("div", { className: (0, _utils_1.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
27
27
|
exports.AlertDialogFooter = AlertDialogFooter;
|
|
28
28
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
29
|
-
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Title, { ref: ref, className: (0,
|
|
29
|
+
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Title, { ref: ref, className: (0, _utils_1.cn)("text-lg font-semibold", className), ...props })));
|
|
30
30
|
exports.AlertDialogTitle = AlertDialogTitle;
|
|
31
31
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
32
|
-
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Description, { ref: ref, className: (0,
|
|
32
|
+
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Description, { ref: ref, className: (0, _utils_1.cn)("text-sm text-muted-foreground", className), ...props })));
|
|
33
33
|
exports.AlertDialogDescription = AlertDialogDescription;
|
|
34
34
|
AlertDialogDescription.displayName =
|
|
35
35
|
AlertDialogPrimitive.Description.displayName;
|
|
36
|
-
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Action, { ref: ref, className: (0,
|
|
36
|
+
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Action, { ref: ref, className: (0, _utils_1.cn)((0, Button_1.buttonVariants)({ variant: 'primary', size: 'sm' }), className), ...props })));
|
|
37
37
|
exports.AlertDialogAction = AlertDialogAction;
|
|
38
38
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
39
|
-
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Cancel, { ref: ref, className: (0,
|
|
39
|
+
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (React.createElement(AlertDialogPrimitive.Cancel, { ref: ref, className: (0, _utils_1.cn)((0, Button_1.buttonVariants)({ variant: "outline", size: 'sm' }), className), ...props })));
|
|
40
40
|
exports.AlertDialogCancel = AlertDialogCancel;
|
|
41
41
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
42
42
|
//# sourceMappingURL=AlertDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.js","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,gGAAoE;
|
|
1
|
+
{"version":3,"file":"AlertDialog.js","sourceRoot":"","sources":["../../src/AlertDialog/AlertDialog.tsx"],"names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M,IAC1B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,WAAE,EAAC,IAAA,uBAAc,EAAC,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,EAAE,SAAS,CAAC,KACtE,KAAK,GACT,CACH,CAAC,CAAA;AA4BA,8CAAiB;AA3BnB,iBAAiB,CAAC,WAAW,GAAG,oBAAoB,CAAC,MAAM,CAAC,WAAW,CAAA;AAEvE,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAGxC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,oBAAC,oBAAoB,CAAC,MAAM,IAC1B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,WAAE,EACX,IAAA,uBAAc,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAClD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAA;AAcA,8CAAiB;AAbnB,iBAAiB,CAAC,WAAW,GAAG,oBAAoB,CAAC,MAAM,CAAC,WAAW,CAAA"}
|
|
@@ -4,11 +4,29 @@ exports.BottomNavigationLink = exports.BottomNavigationListItem = exports.Bottom
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const react_slot_1 = require("@radix-ui/react-slot");
|
|
7
|
-
const
|
|
8
|
-
const btnClasses =
|
|
7
|
+
const _utils_1 = require("@utils");
|
|
8
|
+
const btnClasses = `
|
|
9
|
+
inline-flex
|
|
10
|
+
flex-col
|
|
11
|
+
place-items-center
|
|
12
|
+
gap-y-[8px]
|
|
13
|
+
w-full
|
|
14
|
+
p-[8px]
|
|
15
|
+
text-[10px]
|
|
16
|
+
text-center
|
|
17
|
+
text-light
|
|
18
|
+
leading-[1.33]
|
|
19
|
+
transition
|
|
20
|
+
duration-300
|
|
21
|
+
hover:bg-btn-ghost-hover
|
|
22
|
+
hover:text-primary
|
|
23
|
+
focus:bg-btn-ghost-focus
|
|
24
|
+
active:bg-btn-ghost-active
|
|
25
|
+
data-[status=active]:text-primary
|
|
26
|
+
`;
|
|
9
27
|
const BottomNavigationLink = React.forwardRef(({ className, asChild, ...props }, ref) => {
|
|
10
28
|
const Comp = asChild ? react_slot_1.Slot : "button";
|
|
11
|
-
return (React.createElement(Comp, { className: (0,
|
|
29
|
+
return (React.createElement(Comp, { className: (0, _utils_1.cn)(btnClasses, className), ref: ref, ...props }));
|
|
12
30
|
});
|
|
13
31
|
exports.BottomNavigationLink = BottomNavigationLink;
|
|
14
32
|
BottomNavigationLink.displayName = 'BottomNavigationLink';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomNavigation.js","sourceRoot":"","sources":["../../src/BottomNavigation/BottomNavigation.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,qDAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"BottomNavigation.js","sourceRoot":"","sources":["../../src/BottomNavigation/BottomNavigation.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,qDAA2C;AAC3C,mCAA2B;AAW3B,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;CAkBlB,CAAA;AAED,MAAM,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAA+C,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrI,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,iBAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IACtC,OAAO,CACN,oBAAC,IAAI,IACJ,SAAS,EAAE,IAAA,WAAE,EAAC,UAAU,EAAE,SAAS,CAAC,EACpC,GAAG,EAAE,GAAG,KACJ,KAAK,GACR,CACF,CAAA;AACF,CAAC,CAAC,CAAA;AAmByE,oDAAoB;AAjB/F,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAA;AAEzD,MAAM,wBAAwB,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3F,4BAAI,SAAS,EAAE,SAAS,IAAG,QAAQ,CAAM,CACzC,CAAC,CAAA;AAa+C,4DAAwB;AAZzE,wBAAwB,CAAC,WAAW,GAAG,0BAA0B,CAAA;AAEjE,MAAM,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CACvF,4BAAI,SAAS,EAAC,2BAA2B,IAAE,QAAQ,CAAM,CACzD,CAAC,CAAA;AAQyB,oDAAoB;AAP/C,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAA;AAEzD,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAU,EAAE,GAAG,EAAE,EAAE;IAClF,OAAO,6BAAK,SAAS,EAAE,SAAS,IAAG,QAAQ,CAAO,CAAA;AACnD,CAAC,CAAC,CAAA;AAGO,4CAAgB;AAFzB,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAA"}
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: {
|
|
4
|
-
variant?: "primary" | "secondary" | "success" | "primary-outline" | "outline" | "ghost"
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "primary" | "secondary" | "success" | "primary-outline" | "outline" | "ghost";
|
|
5
|
+
size?: "lg" | "md" | "sm" | "xs" | "xxs";
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
package/dist/Button/Button.js
CHANGED
|
@@ -5,115 +5,23 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const react_slot_1 = require("@radix-ui/react-slot");
|
|
7
7
|
const class_variance_authority_1 = require("class-variance-authority");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
variant: {
|
|
11
|
-
base: `
|
|
12
|
-
inline-flex
|
|
13
|
-
justify-center
|
|
14
|
-
items-center
|
|
15
|
-
font-medium
|
|
16
|
-
border-[2px]
|
|
17
|
-
whitespace-nowrap
|
|
18
|
-
transition-colors
|
|
19
|
-
ring-offset-1
|
|
20
|
-
focus-visible:ring
|
|
21
|
-
focus-visible:outline-none
|
|
22
|
-
disabled:pointer-events-none
|
|
23
|
-
disabled:opacity-[.24]`,
|
|
24
|
-
primary: `
|
|
25
|
-
text-btn-primary
|
|
26
|
-
bg-btn-primary
|
|
27
|
-
border-btn-primary
|
|
28
|
-
hover:bg-btn-primary-hover
|
|
29
|
-
hover:border-btn-primary-hover
|
|
30
|
-
focus:bg-btn-primary-focus
|
|
31
|
-
focus:border-btn-primary-focus
|
|
32
|
-
active:border-btn-primary-active
|
|
33
|
-
active:bg-btn-primary-active`,
|
|
34
|
-
secondary: `
|
|
35
|
-
text-btn-secondary
|
|
36
|
-
bg-btn-secondary
|
|
37
|
-
border-btn-secondary
|
|
38
|
-
hover:bg-btn-secondary-hover
|
|
39
|
-
hover:border-btn-secondary-hover
|
|
40
|
-
focus:bg-btn-secondary-focus
|
|
41
|
-
focus:border-btn-secondary-focus
|
|
42
|
-
active:bg-btn-secondary-active
|
|
43
|
-
active:border-btn-secondary-active`,
|
|
44
|
-
success: `
|
|
45
|
-
text-btn-success
|
|
46
|
-
bg-btn-success
|
|
47
|
-
border-btn-success
|
|
48
|
-
hover:bg-btn-success-hover
|
|
49
|
-
active:border-btn-success-active
|
|
50
|
-
focus:bg-btn-success-focus
|
|
51
|
-
focus:border-btn-success-focus
|
|
52
|
-
active:bg-btn-success-active
|
|
53
|
-
hover:border-btn-success-hover`,
|
|
54
|
-
primaryOutline: `
|
|
55
|
-
text-btn-primary-outline
|
|
56
|
-
bg-btn-primary-outline
|
|
57
|
-
border-btn-primary-outline
|
|
58
|
-
hover:text-btn-primary-outline-hover
|
|
59
|
-
hover:bg-btn-primary-outline-hover
|
|
60
|
-
hover:border-btn-primary-outline-hover
|
|
61
|
-
focus:text-btn-primary-outline-focus
|
|
62
|
-
focus:bg-btn-primary-outline-focus
|
|
63
|
-
focus:border-btn-primary-outline-focus
|
|
64
|
-
active:text-btn-primary-outline-active
|
|
65
|
-
active:bg-btn-primary-outline-active
|
|
66
|
-
active:border-btn-primary-outline-active`,
|
|
67
|
-
outline: `
|
|
68
|
-
text-btn-outline
|
|
69
|
-
border-[1px]
|
|
70
|
-
border-btn-outline
|
|
71
|
-
ring-[currentColor]`,
|
|
72
|
-
ghost: `
|
|
73
|
-
text-btn-ghost
|
|
74
|
-
bg-btn-ghost
|
|
75
|
-
border-transparent
|
|
76
|
-
hover:bg-btn-ghost-hover
|
|
77
|
-
focus:bg-btn-ghost-focus
|
|
78
|
-
active:bg-btn-ghost-active`,
|
|
79
|
-
widget: `
|
|
80
|
-
justify-start
|
|
81
|
-
h-[72px]
|
|
82
|
-
w-full p-[16px]
|
|
83
|
-
space-x-[16px]
|
|
84
|
-
text-left
|
|
85
|
-
rounded-md
|
|
86
|
-
shadow-md
|
|
87
|
-
border-transparent`,
|
|
88
|
-
},
|
|
89
|
-
size: {
|
|
90
|
-
lg: 'h-[52px] px-[32px] text-[16px] leading-[1.08] rounded-[4px]',
|
|
91
|
-
md: 'h-[44px] px-[24px] text-[14px] leading-[1.08] rounded-[4px]',
|
|
92
|
-
sm: 'h-[36px] px-[20px] text-[12px] leading-none rounded-[3px]',
|
|
93
|
-
xs: 'h-[28px] px-[12px] text-[11px] leading-none rounded-[2px]',
|
|
94
|
-
xxs: 'h-[20px] px-[8px] text-[9px] leading-none rounded-[2px]',
|
|
95
|
-
widget: `h-[72px] p-[16px]`
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const buttonVariants = (0, class_variance_authority_1.cva)(buttonClasses.variant.base, {
|
|
8
|
+
const _utils_1 = require("@utils");
|
|
9
|
+
const buttonVariants = (0, class_variance_authority_1.cva)('inline-flex justify-center items-center border-[2px] disabled:opacity-[.24] focus-visible:ring ring-offset-1 font-medium whitespace-nowrap transition-colors focus-visible:outline-none disabled:pointer-events-none', {
|
|
99
10
|
variants: {
|
|
100
11
|
variant: {
|
|
101
|
-
primary:
|
|
102
|
-
secondary:
|
|
103
|
-
success:
|
|
104
|
-
'primary-outline':
|
|
105
|
-
outline:
|
|
106
|
-
ghost:
|
|
107
|
-
widget: buttonClasses.variant.widget,
|
|
108
|
-
// link: 'text-primary underline-offset-4 hover:underline',
|
|
12
|
+
primary: 'text-btn-primary bg-btn-primary hover:bg-btn-primary-hover focus:bg-btn-primary-focus active:bg-btn-primary-active border-btn-primary hover:border-btn-primary-hover focus:border-btn-primary-focus active:border-btn-primary-active',
|
|
13
|
+
secondary: 'text-btn-secondary bg-btn-secondary hover:bg-btn-secondary-hover focus:bg-btn-secondary-focus active:bg-btn-secondary-active border-btn-secondary hover:border-btn-secondary-hover focus:border-btn-secondary-focus active:border-btn-secondary-active',
|
|
14
|
+
success: 'text-btn-success bg-btn-success hover:bg-btn-success-hover focus:bg-btn-success-focus active:bg-btn-success-active border-btn-success hover:border-btn-success-hover focus:border-btn-success-focus active:border-btn-success-active',
|
|
15
|
+
'primary-outline': 'text-btn-primary-outline hover:text-btn-primary-outline-hover focus:text-btn-primary-outline-focus active:text-btn-primary-outline-active bg-btn-primary-outline hover:bg-btn-primary-outline-hover focus:bg-btn-primary-outline-focus active:bg-btn-primary-outline-active border-btn-primary-outline hover:border-btn-primary-outline-hover focus:border-btn-primary-outline-focus active:border-btn-primary-outline-active',
|
|
16
|
+
outline: 'border-[1px] text-btn-outline border-btn-outline ring-[currentColor]',
|
|
17
|
+
ghost: 'text-btn-ghost bg-btn-ghost hover:bg-btn-ghost-hover focus:bg-btn-ghost-focus active:bg-btn-ghost-active border-transparent',
|
|
109
18
|
},
|
|
110
19
|
size: {
|
|
111
|
-
lg:
|
|
112
|
-
md:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
xxs: buttonClasses.size.xxs,
|
|
20
|
+
lg: 'h-[52px] px-[32px] text-[16px] leading-[1.08] rounded-[4px]',
|
|
21
|
+
md: 'h-[44px] px-[24px] text-[14px] leading-[1.08] rounded-[4px]',
|
|
22
|
+
sm: 'h-[36px] px-[20px] text-[12px] leading-none rounded-[3px]',
|
|
23
|
+
xs: 'h-[28px] px-[12px] text-[11px] leading-none rounded-[2px]',
|
|
24
|
+
xxs: 'h-[20px] px-[8px] text-[9px] leading-none rounded-[2px]',
|
|
117
25
|
},
|
|
118
26
|
},
|
|
119
27
|
defaultVariants: {
|
|
@@ -122,20 +30,10 @@ const buttonVariants = (0, class_variance_authority_1.cva)(buttonClasses.variant
|
|
|
122
30
|
},
|
|
123
31
|
});
|
|
124
32
|
exports.buttonVariants = buttonVariants;
|
|
125
|
-
const textVariants = (0, class_variance_authority_1.cva)(
|
|
126
|
-
whitespace-nowrap
|
|
127
|
-
transition-colors
|
|
128
|
-
rounded-[.25em]
|
|
129
|
-
focus-visible:outline-current
|
|
130
|
-
disabled:opacity-[.24]
|
|
131
|
-
disabled:pointer-events-none`, {
|
|
33
|
+
const textVariants = (0, class_variance_authority_1.cva)('inline-flex whitespace-nowrap transition-colors focus-visible:outline-current disabled:opacity-[.24] rounded-[.25em] disabled:pointer-events-none', {
|
|
132
34
|
variants: {
|
|
133
35
|
variant: {
|
|
134
|
-
primary:
|
|
135
|
-
hover:text-primary-hover
|
|
136
|
-
focus:text-primary-focus
|
|
137
|
-
active:text-primary-active
|
|
138
|
-
disabled:pointer-events-none`,
|
|
36
|
+
primary: 'text-primary hover:text-primary-hover focus:text-primary-focus active:text-primary-active disabled:pointer-events-none',
|
|
139
37
|
},
|
|
140
38
|
},
|
|
141
39
|
defaultVariants: {
|
|
@@ -143,10 +41,10 @@ const textVariants = (0, class_variance_authority_1.cva)(`inline-flex
|
|
|
143
41
|
},
|
|
144
42
|
});
|
|
145
43
|
const Button = React.forwardRef(({ className, variant, size, asText = false, asChild = false, ...props }, ref) => {
|
|
146
|
-
const Comp = asChild ? react_slot_1.Slot :
|
|
44
|
+
const Comp = asChild ? react_slot_1.Slot : "button";
|
|
147
45
|
// @ts-ignore
|
|
148
46
|
const classes = asText ? textVariants({ variant, className }) : buttonVariants({ variant, size, className });
|
|
149
|
-
return (React.createElement(Comp, { className: (0,
|
|
47
|
+
return (React.createElement(Comp, { className: (0, _utils_1.cn)(classes), ref: ref, ...props }));
|
|
150
48
|
});
|
|
151
49
|
exports.Button = Button;
|
|
152
50
|
Button.displayName = 'Button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,qDAA2C;AAC3C,uEAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,qDAA2C;AAC3C,uEAAiE;AACjE,mCAA2B;AAE3B,MAAM,cAAc,GAAG,IAAA,8BAAG,EACzB,sNAAsN,EACtN;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EACN,sOAAsO;YACvO,SAAS,EACR,wPAAwP;YACzP,OAAO,EACN,sOAAsO;YACvO,iBAAiB,EAChB,+ZAA+Z;YACha,OAAO,EAAE,sEAAsE;YAC/E,KAAK,EAAE,6HAA6H;SACpI;QACD,IAAI,EAAE;YACL,EAAE,EAAE,6DAA6D;YACjE,EAAE,EAAE,6DAA6D;YACjE,EAAE,EAAE,2DAA2D;YAC/D,EAAE,EAAE,2DAA2D;YAC/D,GAAG,EAAE,yDAAyD;SAC9D;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACV;CACD,CACD,CAAA;AAwCgB,wCAAc;AAvC/B,MAAM,YAAY,GAAG,IAAA,8BAAG,EACvB,mJAAmJ,EACnJ;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EACN,wHAAwH;SACzH;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,SAAS;KAClB;CACD,CACD,CAAA;AASD,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/E,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,iBAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IACzC,aAAa;IACb,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,CAAM,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAC/G,OAAO,CACL,oBAAC,IAAI,IACH,SAAS,EAAE,IAAA,WAAE,EAAC,OAAO,CAAC,EACtB,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAIQ,wBAAM;AAFf,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA"}
|
package/dist/Button/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Button/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Button/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiD;AAAxC,gGAAA,MAAM,OAAA;AAAE,wGAAA,cAAc,OAAA"}
|
|
@@ -4,14 +4,14 @@ exports.Calendar = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const react_day_picker_1 = require("react-day-picker");
|
|
7
|
-
const
|
|
7
|
+
const _utils_1 = require("@utils");
|
|
8
8
|
const locale_1 = require("date-fns/locale");
|
|
9
9
|
const daySelectedClasses = 'bg-btn-primary text-btn-primary rounded-sm';
|
|
10
10
|
const dayTodayClasses = 'bg-btn-secondary text-btn-secondary rounded-sm';
|
|
11
11
|
const rangeMiddleClasses = 'date-range-middle aria-selected:bg-btn-primary/50 aria-selected:text-white';
|
|
12
12
|
const btnNavClasses = 'opacity-50 hover:opacity-100 ring-offset-2 focus-visible:opacity-100 focus-visible:outline-primary border-input border rounded-sm shadow-sm';
|
|
13
13
|
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
14
|
-
return (React.createElement(react_day_picker_1.DayPicker, { locale: locale_1.ru, showOutsideDays: showOutsideDays, className: (0,
|
|
14
|
+
return (React.createElement(react_day_picker_1.DayPicker, { locale: locale_1.ru, showOutsideDays: showOutsideDays, className: (0, _utils_1.cn)('inline-flex', className), classNames: {
|
|
15
15
|
months: 'relative',
|
|
16
16
|
month: 'flex flex-col space-y-[16px] items-center',
|
|
17
17
|
month_grid: 'w-full border-collapse',
|
|
@@ -24,7 +24,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
24
24
|
weekday: 'text-light w-[32px] font-normal text-[14px]',
|
|
25
25
|
week: 'flex w-full mt-2',
|
|
26
26
|
day_button: 'w-[32px] h-[32px] p-0',
|
|
27
|
-
day: (0,
|
|
27
|
+
day: (0, _utils_1.cn)('aria-selected:opacity-100 text-[14px] leading-[1]', props.mode === 'range'
|
|
28
28
|
? '[&:(.day-range-middle)]:rounded-0 [&:has(>.day-range-end)]:rounded-r-sm [&:has(>.day-range-start)]:rounded-l-sm first:[&:has([aria-selected])]:rounded-l-sm last:[&:has([aria-selected])]:rounded-r-sm'
|
|
29
29
|
: '[&:([aria-selected])]:rounded-sm'),
|
|
30
30
|
range_start: 'day-range-start',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../src/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../src/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uDAA4C;AAC5C,mCAA2B;AAC3B,4CAAoC;AAEpC,MAAM,kBAAkB,GAAG,4CAA4C,CAAA;AACvE,MAAM,eAAe,GAAG,gDAAgD,CAAA;AACxE,MAAM,kBAAkB,GAAG,4EAA4E,CAAA;AACvG,MAAM,aAAa,GAClB,6IAA6I,CAAA;AAG9I,SAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,GAAG,IAAI,EAAE,GAAG,KAAK,EAAiB;IAC3F,OAAO,CACN,oBAAC,4BAAS,IACT,MAAM,EAAE,WAAE,EACV,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,IAAA,WAAE,EAAC,aAAa,EAAE,SAAS,CAAC,EACvC,UAAU,EAAE;YACX,MAAM,EAAE,UAAU;YAClB,KAAK,EAAE,2CAA2C;YAClD,UAAU,EAAE,wBAAwB;YACpC,aAAa,EAAE,iBAAiB;YAChC,aAAa,EAAE,gCAAgC;YAC/C,GAAG,EAAE,6CAA6C;YAClD,eAAe,EAAE,aAAa;YAC9B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,6CAA6C;YACtD,IAAI,EAAE,kBAAkB;YACxB,UAAU,EAAE,uBAAuB;YACnC,GAAG,EAAE,IAAA,WAAE,EACN,mDAAmD,EACnD,KAAK,CAAC,IAAI,KAAK,OAAO;gBACrB,CAAC,CAAC,wMAAwM;gBAC1M,CAAC,CAAC,kCAAkC,CACrC;YACD,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,eAAe;YAC1B,YAAY,EAAE,kBAAkB;YAChC,QAAQ,EAAE,kBAAkB;YAC5B,KAAK,EAAE,eAAe;YACtB,OAAO,EACN,qGAAqG;YACtG,QAAQ,EAAE,uBAAuB;YACjC,MAAM,EAAE,WAAW;YACnB,GAAG,UAAU;SACb,EACD,UAAU,EACT;QACC,+CAA+C;SAC/C,KAEE,KAAK,GACR,CACF,CAAA;AACF,CAAC;AAIQ,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA"}
|
package/dist/Chip/Chip.js
CHANGED
|
@@ -5,8 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
6
|
const class_variance_authority_1 = require("class-variance-authority");
|
|
7
7
|
const react_slot_1 = require("@radix-ui/react-slot");
|
|
8
|
-
const
|
|
9
|
-
// import { cn } from "@/lib/utils" порешать с алиасами
|
|
8
|
+
const _utils_1 = require("@utils");
|
|
10
9
|
const chipVariants = (0, class_variance_authority_1.cva)('inline-flex justify-center items-center border-[2px] disabled:opacity-[.24] rounded-full ring-offset-1 font-medium whitespace-nowrap transition-colors disabled:pointer-events-none', {
|
|
11
10
|
variants: {
|
|
12
11
|
variant: {
|
|
@@ -32,7 +31,7 @@ const chipVariants = (0, class_variance_authority_1.cva)('inline-flex justify-ce
|
|
|
32
31
|
});
|
|
33
32
|
const Chip = react_1.default.forwardRef(({ children, variant, size, className, asChild = false, ...props }, ref) => {
|
|
34
33
|
const Comp = asChild ? react_slot_1.Slot : "span";
|
|
35
|
-
return (react_1.default.createElement(Comp, { className: (0,
|
|
34
|
+
return (react_1.default.createElement(Comp, { className: (0, _utils_1.cn)(chipVariants({ variant, size, className })), ref: ref, ...props }));
|
|
36
35
|
});
|
|
37
36
|
exports.Chip = Chip;
|
|
38
37
|
Chip.displayName = 'Chip';
|
package/dist/Chip/Chip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../src/Chip/Chip.tsx"],"names":[],"mappings":";;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../src/Chip/Chip.tsx"],"names":[],"mappings":";;;;AAAA,+DAAyB;AACzB,uEAAiE;AACjE,qDAA2C;AAC3C,mCAA2B;AAE3B,MAAM,YAAY,GAAG,IAAA,8BAAG,EACvB,qLAAqL,EACrL;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EACN,sOAAsO;YACvO,SAAS,EACR,wPAAwP;YACzP,OAAO,EACN,sOAAsO;YACvO,iBAAiB,EAChB,+ZAA+Z;YACha,OAAO,EAAE,sEAAsE;YAC/E,KAAK,EAAE,6HAA6H;SACpI;QACD,IAAI,EAAE;YACL,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,8CAA8C;YAClD,EAAE,EAAE,EAAE;YACN,GAAG,EAAE,EAAE;SACP;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,WAAW;QACpB,IAAI,EAAE,IAAI;KACV;CACD,CACD,CAAA;AAMD,MAAM,IAAI,GAAG,eAAK,CAAC,UAAU,CAAgC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACpI,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,iBAAI,CAAC,CAAC,CAAC,MAAM,CAAA;IAEvC,OAAO,CACN,8BAAC,IAAI,IACC,SAAS,EAAE,IAAA,WAAE,EAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EACzD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAIO,oBAAI;AAFb,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA"}
|
|
@@ -4,8 +4,8 @@ exports.AccountCollapsibleContentItem = exports.AccountCollapsibleContent = expo
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
6
|
const CollapsiblePrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-collapsible"));
|
|
7
|
-
const Icon_1 = require("
|
|
8
|
-
const
|
|
7
|
+
const Icon_1 = require("@/Icon");
|
|
8
|
+
const _utils_1 = require("@utils");
|
|
9
9
|
const react_slot_1 = require("@radix-ui/react-slot");
|
|
10
10
|
const AccountCollapsible = CollapsiblePrimitive.Root;
|
|
11
11
|
exports.AccountCollapsible = AccountCollapsible;
|
|
@@ -19,9 +19,24 @@ const AccountCollapsibleHeader = ({ label }) => {
|
|
|
19
19
|
react_1.default.createElement(Icon_1.DropdownSmallOld, { className: 'group-[[data-state=open]]:rotate-180 transition-transform' })));
|
|
20
20
|
};
|
|
21
21
|
exports.AccountCollapsibleHeader = AccountCollapsibleHeader;
|
|
22
|
+
const accountCollapsibleClasses = `
|
|
23
|
+
text-left
|
|
24
|
+
w-full
|
|
25
|
+
rounded-[4px]
|
|
26
|
+
px-[12px]
|
|
27
|
+
py-[16px]
|
|
28
|
+
bg-btn-secondary
|
|
29
|
+
border-btn-secondary
|
|
30
|
+
hover:bg-btn-secondary-hover
|
|
31
|
+
hover:border-btn-secondary-hover
|
|
32
|
+
focus:bg-btn-secondary-focus
|
|
33
|
+
focus:border-btn-secondary-focus
|
|
34
|
+
active:border-btn-secondary-active
|
|
35
|
+
active:bg-btn-secondary-active
|
|
36
|
+
`;
|
|
22
37
|
const AccountCollapsibleContentItem = ({ children, asChild = true, className, ...props }) => {
|
|
23
38
|
const Comp = asChild ? react_slot_1.Slot : 'div';
|
|
24
|
-
return (react_1.default.createElement(Comp, { className: (0,
|
|
39
|
+
return (react_1.default.createElement(Comp, { className: (0, _utils_1.cn)(accountCollapsibleClasses, className), ...props }, children));
|
|
25
40
|
};
|
|
26
41
|
exports.AccountCollapsibleContentItem = AccountCollapsibleContentItem;
|
|
27
42
|
AccountCollapsible.displayName = 'AccountCollaspible';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountCollapsible.js","sourceRoot":"","sources":["../../src/Collapsible/AccountCollapsible.tsx"],"names":[],"mappings":";;;;AAAA,+DAA4C;AAC5C,+FAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"AccountCollapsible.js","sourceRoot":"","sources":["../../src/Collapsible/AccountCollapsible.tsx"],"names":[],"mappings":";;;;AAAA,+DAA4C;AAC5C,+FAAmE;AACnE,iCAAyC;AACzC,mCAA2B;AAC3B,qDAA2C;AAE3C,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,IAAI,CAAA;AAmEnD,gDAAkB;AAjEnB,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,kBAAkB,CAAA;AAmExE,8DAAyB;AAjE1B,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,kBAAkB,CAAA;AAkExE,8DAAyB;AAtD1B,MAAM,wBAAwB,GAAsC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACjF,OAAO,CACN,8BAAC,yBAAyB,IAAC,SAAS,EAAC,wEAAwE;QAC5G,uCAAK,SAAS,EAAC,wCAAwC,IAAE,KAAK,CAAO;QACrE,8BAAC,uBAAgB,IAAC,SAAS,EAAC,2DAA2D,GAAE,CAC9D,CAC5B,CAAA;AACF,CAAC,CAAA;AA6CA,4DAAwB;AA3CzB,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;CAcjC,CAAA;AACD,MAAM,6BAA6B,GAA2C,CAAC,EAC9E,QAAQ,EACR,OAAO,GAAG,IAAI,EACd,SAAS,EACT,GAAG,KAAK,EACR,EAAE,EAAE;IACJ,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,iBAAI,CAAC,CAAC,CAAC,KAAK,CAAA;IACnC,OAAO,CACN,8BAAC,IAAI,IACJ,SAAS,EAAE,IAAA,WAAE,EACZ,yBAAyB,EACzB,SAAS,CACT,KACG,KAAK,IAER,QAAQ,CACH,CACP,CAAA;AACF,CAAC,CAAA;AAaA,sEAA6B;AAX9B,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAA;AACrD,yBAAyB,CAAC,WAAW,GAAG,2BAA2B,CAAA;AACnE,wBAAwB,CAAC,WAAW,GAAG,0BAA0B,CAAA;AACjE,yBAAyB,CAAC,WAAW,GAAG,2BAA2B,CAAA;AACnE,6BAA6B,CAAC,WAAW,GAAG,+BAA+B,CAAA"}
|
|
@@ -4,16 +4,16 @@ exports.DatePicker = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const date_fns_1 = require("date-fns");
|
|
7
|
-
const
|
|
8
|
-
const Calendar_1 = require("
|
|
9
|
-
const Icon_1 = require("
|
|
10
|
-
const Popover_1 = require("
|
|
7
|
+
const _utils_1 = require("@utils");
|
|
8
|
+
const Calendar_1 = require("@/Calendar");
|
|
9
|
+
const Icon_1 = require("@/Icon");
|
|
10
|
+
const Popover_1 = require("@/Popover");
|
|
11
11
|
const locale_1 = require("date-fns/locale");
|
|
12
|
-
const trigegrClasses = 'inline-flex items-center
|
|
12
|
+
const trigegrClasses = 'inline-flex items-center px-[12px] h-[44px] text-left border-input border rounded-sm';
|
|
13
13
|
const DatePicker = ({ placeholder, triggerDisabled, date, classTrigger, ...props }) => {
|
|
14
14
|
return (React.createElement(Popover_1.Popover, null,
|
|
15
15
|
React.createElement(Popover_1.Popover.Trigger, { asChild: true },
|
|
16
|
-
React.createElement("button", { className: (0,
|
|
16
|
+
React.createElement("button", { className: (0, _utils_1.cn)(trigegrClasses, { 'bg-light text-light': triggerDisabled }, classTrigger), disabled: triggerDisabled },
|
|
17
17
|
date ? React.createElement("span", { className: 'w-[calc(100%-26px)] truncate' }, (0, date_fns_1.format)(date, 'PPP', { locale: locale_1.ru })) : React.createElement("span", { className: 'w-[calc(100%-26px)] text-light truncate' }, placeholder),
|
|
18
18
|
React.createElement(Icon_1.Calendar, { width: 18, height: 18, className: "ml-[8px] text-light shrink-0" }))),
|
|
19
19
|
React.createElement(Popover_1.Popover.Content, { className: "bg-page p-0 w-auto", align: "center" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/DatePicker/DatePicker.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/DatePicker/DatePicker.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uCAAiC;AACjC,mCAA2B;AAC3B,yCAAqC;AACrC,iCAAiD;AACjD,uCAAmC;AACnC,4CAAoC;AAEpC,MAAM,cAAc,GAAG,sFAAsF,CAAA;AAW7G,MAAM,UAAU,GAAqB,CAAC,EAAC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAG,GAAG,KAAK,EAAC,EAAE,EAAE;IAEtG,OAAO,CACN,oBAAC,iBAAO;QACP,oBAAC,iBAAO,CAAC,OAAO,IAAC,OAAO;YACvB,gCAAQ,SAAS,EAAE,IAAA,WAAE,EAAC,cAAc,EAAE,EAAC,qBAAqB,EAAC,eAAe,EAAC,EAAE,YAAY,CAAC,EAAE,QAAQ,EAAE,eAAe;gBACrH,IAAI,CAAC,CAAC,CAAC,8BAAM,SAAS,EAAC,8BAA8B,IAAE,IAAA,iBAAM,EAAC,IAAI,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,WAAE,EAAC,CAAC,CAAQ,CAAC,CAAC,CAAC,8BAAM,SAAS,EAAC,yCAAyC,IAAE,WAAW,CAAQ;gBAClL,oBAAC,eAAY,IAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAC,8BAA8B,GAAG,CACxE,CACQ;QAClB,oBAAC,iBAAO,CAAC,OAAO,IACf,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,QAAQ;YAEd,oBAAC,mBAAQ,OAAK,KAAK,GAAG,CACL,CACT,CACV,CAAA;AACF,CAAC,CAAA;AAEQ,gCAAU"}
|
package/dist/Drawer/Drawer.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.DrawerClose = exports.DrawerTitle = exports.DrawerContent = exports.Draw
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const vaul_1 = require("vaul");
|
|
7
|
-
const
|
|
7
|
+
const _utils_1 = require("@utils");
|
|
8
8
|
const react_1 = require("react");
|
|
9
9
|
const DrawerContext = React.createContext({ direction: 'bottom', modal: false });
|
|
10
10
|
const Drawer = ({ ...props }) => {
|
|
@@ -19,14 +19,14 @@ const DrawerPortal = vaul_1.Drawer.Portal;
|
|
|
19
19
|
const DrawerClose = vaul_1.Drawer.Close;
|
|
20
20
|
exports.DrawerClose = DrawerClose;
|
|
21
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,
|
|
22
|
+
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement(vaul_1.Drawer.Title, { ref: ref, className: (0, _utils_1.cn)(className), ...props })));
|
|
23
23
|
exports.DrawerTitle = DrawerTitle;
|
|
24
24
|
DrawerTitle.displayName = vaul_1.Drawer.Title.displayName;
|
|
25
25
|
const DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
26
26
|
const { direction = 'bottom', modal = false } = (0, react_1.useContext)(DrawerContext);
|
|
27
27
|
return (React.createElement(DrawerPortal, null,
|
|
28
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,
|
|
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
30
|
direction !== 'top' && (React.createElement("div", { className: "pt-[4px] pb-[16px]" },
|
|
31
31
|
React.createElement("span", { className: "block bg-[--cl-graphite-5] mx-auto rounded-full w-[36px] h-[5px]" }))),
|
|
32
32
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,+BAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,+BAAgD;AAChD,mCAA2B;AAC3B,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,W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