@momo-webplatform/mobase 0.0.11 → 0.0.13
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/package.json +15 -11
- package/publish/cjs/components/AlertDialog/AlertDialog.js +1 -1
- package/publish/cjs/components/Select/Select.js +1 -1
- package/publish/cjs/components/TextArea/TextArea.js +38 -0
- package/publish/cjs/components/TextArea/index.js +5 -0
- package/publish/cjs/components/TextInput/TextInput.js +66 -0
- package/publish/cjs/components/TextInput/index.js +5 -0
- package/publish/cjs/index.js +2 -25
- package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
- package/publish/esm/components/AlertDialog/AlertDialog.js +1 -1
- package/publish/esm/components/Select/Select.js +1 -1
- package/publish/esm/components/TextArea/TextArea.d.ts +8 -0
- package/publish/esm/components/TextArea/TextArea.js +35 -0
- package/publish/esm/components/TextArea/index.d.ts +2 -0
- package/publish/esm/components/TextArea/index.js +1 -0
- package/publish/esm/components/TextInput/TextInput.d.ts +10 -0
- package/publish/esm/components/TextInput/TextInput.js +63 -0
- package/publish/esm/components/TextInput/index.d.ts +2 -0
- package/publish/esm/components/TextInput/index.js +1 -0
- package/publish/esm/index.d.ts +2 -25
- package/publish/esm/index.js +2 -25
- package/publish/esm/tsconfig.lib.tsbuildinfo +1 -1
- package/publish/cjs/components/Alert/Alert.js +0 -50
- package/publish/cjs/components/Alert/index.js +0 -7
- package/publish/cjs/components/Avatar/Avatar.js +0 -74
- package/publish/cjs/components/Avatar/index.js +0 -7
- package/publish/cjs/components/Calendar/calendar.js +0 -39
- package/publish/cjs/components/Calendar/index.js +0 -5
- package/publish/cjs/components/Card/Card.js +0 -47
- package/publish/cjs/components/Card/index.js +0 -10
- package/publish/cjs/components/Collapsible/collapsible.js +0 -33
- package/publish/cjs/components/Collapsible/index.js +0 -7
- package/publish/cjs/components/Command/command.js +0 -62
- package/publish/cjs/components/Command/index.js +0 -13
- package/publish/cjs/components/Dialog/dialog.js +0 -57
- package/publish/cjs/components/Dialog/index.js +0 -14
- package/publish/cjs/components/Drawer/drawer.js +0 -57
- package/publish/cjs/components/Drawer/index.js +0 -14
- package/publish/cjs/components/DropdownMenu/dropdownmenu.js +0 -75
- package/publish/cjs/components/DropdownMenu/index.js +0 -19
- package/publish/cjs/components/HoverCard/hover-card.js +0 -38
- package/publish/cjs/components/HoverCard/index.js +0 -7
- package/publish/cjs/components/Input/index.js +0 -5
- package/publish/cjs/components/Input/input.js +0 -34
- package/publish/cjs/components/Label/Label.js +0 -35
- package/publish/cjs/components/Label/index.js +0 -5
- package/publish/cjs/components/Menubar/index.js +0 -20
- package/publish/cjs/components/Menubar/menubar.js +0 -77
- package/publish/cjs/components/NavigationMenu/index.js +0 -14
- package/publish/cjs/components/NavigationMenu/navigation-menu.js +0 -102
- package/publish/cjs/components/Progress/Progress.js +0 -33
- package/publish/cjs/components/Progress/index.js +0 -5
- package/publish/cjs/components/RadioGroup/Radio.js +0 -110
- package/publish/cjs/components/RadioGroup/RadioGroup.js +0 -53
- package/publish/cjs/components/RadioGroup/index.js +0 -6
- package/publish/cjs/components/Sheet/index.js +0 -14
- package/publish/cjs/components/Sheet/sheet.js +0 -71
- package/publish/cjs/components/Skeleton/index.js +0 -5
- package/publish/cjs/components/Skeleton/skeleton.js +0 -9
- package/publish/cjs/components/Slider/index.js +0 -5
- package/publish/cjs/components/Slider/slider.js +0 -33
- package/publish/cjs/components/Switch/Switch.js +0 -54
- package/publish/cjs/components/Switch/index.js +0 -6
- package/publish/cjs/components/Table/Table.js +0 -53
- package/publish/cjs/components/Table/index.js +0 -12
- package/publish/cjs/components/Textarea/Textarea.js +0 -14
- package/publish/cjs/components/Textarea/index.js +0 -5
- package/publish/esm/components/Alert/Alert.d.ts +0 -8
- package/publish/esm/components/Alert/Alert.js +0 -22
- package/publish/esm/components/Alert/index.d.ts +0 -1
- package/publish/esm/components/Alert/index.js +0 -1
- package/publish/esm/components/Avatar/Avatar.d.ts +0 -33
- package/publish/esm/components/Avatar/Avatar.js +0 -46
- package/publish/esm/components/Avatar/index.d.ts +0 -2
- package/publish/esm/components/Avatar/index.js +0 -1
- package/publish/esm/components/Calendar/calendar.d.ts +0 -8
- package/publish/esm/components/Calendar/calendar.js +0 -36
- package/publish/esm/components/Calendar/index.d.ts +0 -1
- package/publish/esm/components/Calendar/index.js +0 -1
- package/publish/esm/components/Card/Card.d.ts +0 -8
- package/publish/esm/components/Card/Card.js +0 -16
- package/publish/esm/components/Card/index.d.ts +0 -1
- package/publish/esm/components/Card/index.js +0 -1
- package/publish/esm/components/Collapsible/collapsible.d.ts +0 -5
- package/publish/esm/components/Collapsible/collapsible.js +0 -5
- package/publish/esm/components/Collapsible/index.d.ts +0 -1
- package/publish/esm/components/Collapsible/index.js +0 -1
- package/publish/esm/components/Command/command.d.ts +0 -50
- package/publish/esm/components/Command/command.js +0 -28
- package/publish/esm/components/Command/index.d.ts +0 -1
- package/publish/esm/components/Command/index.js +0 -1
- package/publish/esm/components/Dialog/dialog.d.ts +0 -19
- package/publish/esm/components/Dialog/dialog.js +0 -22
- package/publish/esm/components/Dialog/index.d.ts +0 -1
- package/publish/esm/components/Dialog/index.js +0 -1
- package/publish/esm/components/Drawer/drawer.d.ts +0 -24
- package/publish/esm/components/Drawer/drawer.js +0 -22
- package/publish/esm/components/Drawer/index.d.ts +0 -1
- package/publish/esm/components/Drawer/index.js +0 -1
- package/publish/esm/components/DropdownMenu/dropdownmenu.d.ts +0 -27
- package/publish/esm/components/DropdownMenu/dropdownmenu.js +0 -35
- package/publish/esm/components/DropdownMenu/index.d.ts +0 -1
- package/publish/esm/components/DropdownMenu/index.js +0 -1
- package/publish/esm/components/HoverCard/hover-card.d.ts +0 -6
- package/publish/esm/components/HoverCard/hover-card.js +0 -10
- package/publish/esm/components/HoverCard/index.d.ts +0 -1
- package/publish/esm/components/HoverCard/index.js +0 -1
- package/publish/esm/components/Input/index.d.ts +0 -1
- package/publish/esm/components/Input/index.js +0 -1
- package/publish/esm/components/Input/input.d.ts +0 -5
- package/publish/esm/components/Input/input.js +0 -8
- package/publish/esm/components/Label/Label.d.ts +0 -5
- package/publish/esm/components/Label/Label.js +0 -9
- package/publish/esm/components/Label/index.d.ts +0 -1
- package/publish/esm/components/Label/index.js +0 -1
- package/publish/esm/components/Menubar/index.d.ts +0 -1
- package/publish/esm/components/Menubar/index.js +0 -1
- package/publish/esm/components/Menubar/menubar.d.ts +0 -31
- package/publish/esm/components/Menubar/menubar.js +0 -36
- package/publish/esm/components/NavigationMenu/index.d.ts +0 -1
- package/publish/esm/components/NavigationMenu/index.js +0 -1
- package/publish/esm/components/NavigationMenu/navigation-menu.d.ts +0 -13
- package/publish/esm/components/NavigationMenu/navigation-menu.js +0 -64
- package/publish/esm/components/Progress/Progress.d.ts +0 -4
- package/publish/esm/components/Progress/Progress.js +0 -7
- package/publish/esm/components/Progress/index.d.ts +0 -1
- package/publish/esm/components/Progress/index.js +0 -1
- package/publish/esm/components/RadioGroup/Radio.d.ts +0 -22
- package/publish/esm/components/RadioGroup/Radio.js +0 -84
- package/publish/esm/components/RadioGroup/RadioGroup.d.ts +0 -44
- package/publish/esm/components/RadioGroup/RadioGroup.js +0 -25
- package/publish/esm/components/RadioGroup/index.d.ts +0 -2
- package/publish/esm/components/RadioGroup/index.js +0 -1
- package/publish/esm/components/Sheet/index.d.ts +0 -1
- package/publish/esm/components/Sheet/index.js +0 -1
- package/publish/esm/components/Sheet/sheet.d.ts +0 -25
- package/publish/esm/components/Sheet/sheet.js +0 -36
- package/publish/esm/components/Skeleton/index.d.ts +0 -1
- package/publish/esm/components/Skeleton/index.js +0 -1
- package/publish/esm/components/Skeleton/skeleton.d.ts +0 -2
- package/publish/esm/components/Skeleton/skeleton.js +0 -6
- package/publish/esm/components/Slider/index.d.ts +0 -1
- package/publish/esm/components/Slider/index.js +0 -1
- package/publish/esm/components/Slider/slider.d.ts +0 -4
- package/publish/esm/components/Slider/slider.js +0 -7
- package/publish/esm/components/Switch/Switch.d.ts +0 -37
- package/publish/esm/components/Switch/Switch.js +0 -26
- package/publish/esm/components/Switch/index.d.ts +0 -2
- package/publish/esm/components/Switch/index.js +0 -1
- package/publish/esm/components/Table/Table.d.ts +0 -10
- package/publish/esm/components/Table/Table.js +0 -20
- package/publish/esm/components/Table/index.d.ts +0 -1
- package/publish/esm/components/Table/index.js +0 -1
- package/publish/esm/components/Textarea/Textarea.d.ts +0 -5
- package/publish/esm/components/Textarea/Textarea.js +0 -8
- package/publish/esm/components/Textarea/index.d.ts +0 -1
- package/publish/esm/components/Textarea/index.js +0 -1
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SheetDescription = exports.SheetTitle = exports.SheetFooter = exports.SheetHeader = exports.SheetContent = exports.SheetClose = exports.SheetTrigger = exports.SheetOverlay = exports.SheetPortal = exports.Sheet = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const SheetPrimitive = __importStar(require("@radix-ui/react-dialog"));
|
|
30
|
-
const class_variance_authority_1 = require("class-variance-authority");
|
|
31
|
-
const lucide_react_1 = require("lucide-react");
|
|
32
|
-
const utils_1 = require("../../helpers/utils");
|
|
33
|
-
const Sheet = SheetPrimitive.Root;
|
|
34
|
-
exports.Sheet = Sheet;
|
|
35
|
-
const SheetTrigger = SheetPrimitive.Trigger;
|
|
36
|
-
exports.SheetTrigger = SheetTrigger;
|
|
37
|
-
const SheetClose = SheetPrimitive.Close;
|
|
38
|
-
exports.SheetClose = SheetClose;
|
|
39
|
-
const SheetPortal = SheetPrimitive.Portal;
|
|
40
|
-
exports.SheetPortal = SheetPortal;
|
|
41
|
-
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SheetPrimitive.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 })));
|
|
42
|
-
exports.SheetOverlay = SheetOverlay;
|
|
43
|
-
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
44
|
-
const sheetVariants = (0, class_variance_authority_1.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
45
|
-
variants: {
|
|
46
|
-
side: {
|
|
47
|
-
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
48
|
-
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
49
|
-
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
50
|
-
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
defaultVariants: {
|
|
54
|
-
side: "right",
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(SheetPortal, { children: [(0, jsx_runtime_1.jsx)(SheetOverlay, {}), (0, jsx_runtime_1.jsxs)(SheetPrimitive.Content, { ref: ref, className: (0, utils_1.cn)(sheetVariants({ side }), className), ...props, children: [children, (0, jsx_runtime_1.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.X, { className: "h-4 w-4" }), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "Close" })] })] })] })));
|
|
58
|
-
exports.SheetContent = SheetContent;
|
|
59
|
-
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
60
|
-
const SheetHeader = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
61
|
-
exports.SheetHeader = SheetHeader;
|
|
62
|
-
SheetHeader.displayName = "SheetHeader";
|
|
63
|
-
const SheetFooter = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
64
|
-
exports.SheetFooter = SheetFooter;
|
|
65
|
-
SheetFooter.displayName = "SheetFooter";
|
|
66
|
-
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SheetPrimitive.Title, { ref: ref, className: (0, utils_1.cn)("text-lg font-semibold text-foreground", className), ...props })));
|
|
67
|
-
exports.SheetTitle = SheetTitle;
|
|
68
|
-
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
69
|
-
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SheetPrimitive.Description, { ref: ref, className: (0, utils_1.cn)("text-sm text-muted-foreground", className), ...props })));
|
|
70
|
-
exports.SheetDescription = SheetDescription;
|
|
71
|
-
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Skeleton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const utils_1 = require("../../helpers/utils");
|
|
6
|
-
function Skeleton({ className, ...props }) {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("animate-pulse rounded-md bg-muted", className), ...props }));
|
|
8
|
-
}
|
|
9
|
-
exports.Skeleton = Skeleton;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Slider = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const SliderPrimitive = __importStar(require("@radix-ui/react-slider"));
|
|
30
|
-
const utils_1 = require("../../helpers/utils");
|
|
31
|
-
const Slider = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(SliderPrimitive.Root, { ref: ref, className: (0, utils_1.cn)("relative flex w-full touch-none select-none items-center", className), ...props, children: [(0, jsx_runtime_1.jsx)(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: (0, jsx_runtime_1.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }), (0, jsx_runtime_1.jsx)(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })] })));
|
|
32
|
-
exports.Slider = Slider;
|
|
33
|
-
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var _a, _b;
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.SwitchThumb = exports.Switch = exports.useSwitchContext = exports.SwitchProvider = exports.createSwitchScope = exports.createSwitchContext = void 0;
|
|
28
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
|
-
const React = __importStar(require("react"));
|
|
30
|
-
const SwitchPrimitives = __importStar(require("@radix-ui/react-switch"));
|
|
31
|
-
const react_context_1 = require("@radix-ui/react-context");
|
|
32
|
-
const react_primitive_1 = require("@radix-ui/react-primitive");
|
|
33
|
-
const utils_1 = require("../../helpers/utils");
|
|
34
|
-
const SWITCH_NAME = "Switch";
|
|
35
|
-
_a = (0, react_context_1.createContextScope)(SWITCH_NAME), exports.createSwitchContext = _a[0], exports.createSwitchScope = _a[1];
|
|
36
|
-
_b = (0, exports.createSwitchContext)(SWITCH_NAME), exports.SwitchProvider = _b[0], exports.useSwitchContext = _b[1];
|
|
37
|
-
function getState(checked) {
|
|
38
|
-
return checked ? "checked" : "unchecked";
|
|
39
|
-
}
|
|
40
|
-
/* -------------------------------------------------------------------------------------------------
|
|
41
|
-
* SwitchThumb
|
|
42
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
43
|
-
const THUMB_NAME = "SwitchThumb";
|
|
44
|
-
const SwitchThumb = React.forwardRef((props, forwardedRef) => {
|
|
45
|
-
const { __scopeSwitch, ...thumbProps } = props;
|
|
46
|
-
const context = (0, exports.useSwitchContext)(THUMB_NAME, __scopeSwitch);
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(react_primitive_1.Primitive.span, { "data-state": getState(context.checked), "data-disabled": context.disabled ? "" : undefined, ...thumbProps, ref: forwardedRef }));
|
|
48
|
-
});
|
|
49
|
-
exports.SwitchThumb = SwitchThumb;
|
|
50
|
-
SwitchThumb.displayName = THUMB_NAME;
|
|
51
|
-
/* ---------------------------------------------------------------------------------------------- */
|
|
52
|
-
const Switch = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SwitchPrimitives.Root, { className: (0, utils_1.cn)("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400", className), ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(SwitchPrimitives.Thumb, { className: (0, utils_1.cn)("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5") }) })));
|
|
53
|
-
exports.Switch = Switch;
|
|
54
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SwitchThumb = exports.Switch = void 0;
|
|
4
|
-
var Switch_1 = require("./Switch");
|
|
5
|
-
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return Switch_1.Switch; } });
|
|
6
|
-
Object.defineProperty(exports, "SwitchThumb", { enumerable: true, get: function () { return Switch_1.SwitchThumb; } });
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.TableCaption = exports.TableCell = exports.TableRow = exports.TableHead = exports.TableFooter = exports.TableBody = exports.TableHeader = exports.Table = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const React = __importStar(require("react"));
|
|
29
|
-
const utils_1 = require("../../helpers/utils");
|
|
30
|
-
const Table = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { className: "relative w-full overflow-auto", children: (0, jsx_runtime_1.jsx)("table", { ref: ref, className: (0, utils_1.cn)("w-full caption-bottom text-sm", className), ...props }) })));
|
|
31
|
-
exports.Table = Table;
|
|
32
|
-
Table.displayName = "Table";
|
|
33
|
-
const TableHeader = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("thead", { ref: ref, className: (0, utils_1.cn)("[&_tr]:border-b", className), ...props })));
|
|
34
|
-
exports.TableHeader = TableHeader;
|
|
35
|
-
TableHeader.displayName = "TableHeader";
|
|
36
|
-
const TableBody = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("tbody", { ref: ref, className: (0, utils_1.cn)("[&_tr:last-child]:border-0", className), ...props })));
|
|
37
|
-
exports.TableBody = TableBody;
|
|
38
|
-
TableBody.displayName = "TableBody";
|
|
39
|
-
const TableFooter = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("tfoot", { ref: ref, className: (0, utils_1.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })));
|
|
40
|
-
exports.TableFooter = TableFooter;
|
|
41
|
-
TableFooter.displayName = "TableFooter";
|
|
42
|
-
const TableRow = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("tr", { ref: ref, className: (0, utils_1.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className), ...props })));
|
|
43
|
-
exports.TableRow = TableRow;
|
|
44
|
-
TableRow.displayName = "TableRow";
|
|
45
|
-
const TableHead = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("th", { ref: ref, className: (0, utils_1.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className), ...props })));
|
|
46
|
-
exports.TableHead = TableHead;
|
|
47
|
-
TableHead.displayName = "TableHead";
|
|
48
|
-
const TableCell = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("td", { ref: ref, className: (0, utils_1.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })));
|
|
49
|
-
exports.TableCell = TableCell;
|
|
50
|
-
TableCell.displayName = "TableCell";
|
|
51
|
-
const TableCaption = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("caption", { ref: ref, className: (0, utils_1.cn)("mt-4 text-sm text-muted-foreground", className), ...props })));
|
|
52
|
-
exports.TableCaption = TableCaption;
|
|
53
|
-
TableCaption.displayName = "TableCaption";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableCaption = exports.TableCell = exports.TableRow = exports.TableHead = exports.TableFooter = exports.TableBody = exports.TableHeader = exports.Table = void 0;
|
|
4
|
-
var Table_1 = require("./Table");
|
|
5
|
-
Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return Table_1.Table; } });
|
|
6
|
-
Object.defineProperty(exports, "TableHeader", { enumerable: true, get: function () { return Table_1.TableHeader; } });
|
|
7
|
-
Object.defineProperty(exports, "TableBody", { enumerable: true, get: function () { return Table_1.TableBody; } });
|
|
8
|
-
Object.defineProperty(exports, "TableFooter", { enumerable: true, get: function () { return Table_1.TableFooter; } });
|
|
9
|
-
Object.defineProperty(exports, "TableHead", { enumerable: true, get: function () { return Table_1.TableHead; } });
|
|
10
|
-
Object.defineProperty(exports, "TableRow", { enumerable: true, get: function () { return Table_1.TableRow; } });
|
|
11
|
-
Object.defineProperty(exports, "TableCell", { enumerable: true, get: function () { return Table_1.TableCell; } });
|
|
12
|
-
Object.defineProperty(exports, "TableCaption", { enumerable: true, get: function () { return Table_1.TableCaption; } });
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Textarea = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const utils_1 = require("../../helpers/utils");
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const Textarea = react_1.default.forwardRef(({ className, ...props }, ref) => {
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("textarea", { className: (0, utils_1.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref, ...props }));
|
|
12
|
-
});
|
|
13
|
-
exports.Textarea = Textarea;
|
|
14
|
-
Textarea.displayName = "Textarea";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
-
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
-
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "../../helpers/utils";
|
|
5
|
-
const alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: "bg-background text-foreground",
|
|
9
|
-
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
defaultVariants: {
|
|
13
|
-
variant: "default",
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (_jsx("div", { ref: ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props })));
|
|
17
|
-
Alert.displayName = "Alert";
|
|
18
|
-
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h5", { ref: ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })));
|
|
19
|
-
AlertTitle.displayName = "AlertTitle";
|
|
20
|
-
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })));
|
|
21
|
-
AlertDescription.displayName = "AlertDescription";
|
|
22
|
-
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Alert, AlertDescription, AlertTitle } from "./Alert";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Alert, AlertDescription, AlertTitle } from "./Alert";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
-
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
import type * as Radix from "@radix-ui/react-primitive";
|
|
5
|
-
import { Primitive } from "@radix-ui/react-primitive";
|
|
6
|
-
declare const AvatarVariants: (props?: ({
|
|
7
|
-
variant?: null | undefined;
|
|
8
|
-
size?: "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
|
|
9
|
-
shape?: "square" | "rounded" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
11
|
-
type ImageLoadingStatus = "idle" | "loading" | "loaded" | "error";
|
|
12
|
-
type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
13
|
-
interface AvatarProps extends PrimitiveSpanProps {
|
|
14
|
-
}
|
|
15
|
-
type PrimitiveImageProps = Radix.ComponentPropsWithoutRef<typeof Primitive.img>;
|
|
16
|
-
interface AvatarVariantProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof AvatarVariants> {
|
|
17
|
-
asChild?: boolean;
|
|
18
|
-
}
|
|
19
|
-
interface SubImageProps {
|
|
20
|
-
subImage?: string;
|
|
21
|
-
}
|
|
22
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & AvatarVariantProps & SubImageProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
-
interface AvatarImageProps extends PrimitiveImageProps {
|
|
24
|
-
onLoadingStatusChange?: (status: ImageLoadingStatus) => void;
|
|
25
|
-
}
|
|
26
|
-
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
27
|
-
interface AvatarFallbackProps extends PrimitiveSpanProps {
|
|
28
|
-
delayMs?: number;
|
|
29
|
-
anonymous?: boolean;
|
|
30
|
-
}
|
|
31
|
-
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
32
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
33
|
-
export type { AvatarProps, AvatarImageProps, AvatarFallbackProps, SubImageProps, AvatarVariantProps, };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
4
|
-
import { cn } from "../../helpers/utils";
|
|
5
|
-
import { cva } from "class-variance-authority";
|
|
6
|
-
/* -------------------------------------------------------------------------------------------------
|
|
7
|
-
* AvatarVariants
|
|
8
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
9
|
-
const AvatarVariants = cva("aspect-square object-cover relative overflow-hidden flex shrink-0 bg-pink-100 border border-gray-200", {
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {},
|
|
12
|
-
size: {
|
|
13
|
-
xs: "w-6 h-6 text-xs",
|
|
14
|
-
sm: "w-8 h-8 text-xs",
|
|
15
|
-
md: "w-10 h-10 text-xs",
|
|
16
|
-
lg: "w-12 h-12 text-lg",
|
|
17
|
-
xl: "w-14 h-14 text-xl",
|
|
18
|
-
},
|
|
19
|
-
shape: {
|
|
20
|
-
rounded: "rounded-full",
|
|
21
|
-
square: "rounded-lg",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
shape: "rounded",
|
|
26
|
-
size: "sm",
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
const subImageVariants = cva("absolute -bottom-0.5 -right-1 z-10 ", {
|
|
30
|
-
variants: {
|
|
31
|
-
size: {
|
|
32
|
-
xs: "w-3 h-3 rounded-md",
|
|
33
|
-
sm: "w-4 h-4 rounded-md",
|
|
34
|
-
md: "w-5 h-5 text-xs rounded-md",
|
|
35
|
-
lg: "w-5 h-5 text-lg rounded-lg",
|
|
36
|
-
xl: "w-6 h-6 text-xl rounded-lg",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
const Avatar = React.forwardRef(({ size = "md", shape = "rounded", subImage = "", className, ...props }, ref) => (_jsxs("div", { className: "relative", children: [_jsx(AvatarPrimitive.Root, { ref: ref, className: cn(AvatarVariants({ size, shape }), "", className), ...props }), subImage && (_jsx("div", { className: cn(subImageVariants({ size })), children: _jsx("img", { src: subImage, className: cn("object-cover w-full h-full", subImageVariants({})), alt: "" }) }))] })));
|
|
41
|
-
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
42
|
-
const AvatarImage = React.forwardRef(({ className, ...props }, ref) => (_jsx(AvatarPrimitive.Image, { ref: ref, className: cn("w-full h-full aspect-square z-10", className), ...props })));
|
|
43
|
-
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
44
|
-
const AvatarFallback = React.forwardRef(({ anonymous = false, className, ...props }, ref) => (_jsx(_Fragment, { children: anonymous ? (_jsx("div", { className: "flex items-center font-medium flex-shrink-0 w-full h-full text-pink-500 justify-center rounded-full bg-muted", children: _jsx("img", { src: "https://homepage.momocdn.net/fileuploads/svg/momo-file-240228134145.svg ", alt: "", className: "aspect-[1/1] w-5 h-5\t" }) })) : (_jsx(AvatarPrimitive.Fallback, { ref: ref, className: cn("flex h-full w-full items-center font-medium text-pink-500 justify-center rounded-full bg-muted", className), ...props })) })));
|
|
45
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
46
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Avatar, AvatarImage, AvatarFallback } from "./Avatar";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { DayPicker } from "react-day-picker";
|
|
3
|
-
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace Calendar {
|
|
6
|
-
var displayName: string;
|
|
7
|
-
}
|
|
8
|
-
export { Calendar };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
3
|
-
import { DayPicker } from "react-day-picker";
|
|
4
|
-
import { cn } from "../../helpers/utils";
|
|
5
|
-
import { buttonVariants } from "../..//components/Button";
|
|
6
|
-
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
7
|
-
return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("p-3", className), classNames: {
|
|
8
|
-
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
9
|
-
month: "space-y-4",
|
|
10
|
-
caption: "flex justify-center pt-1 relative items-center",
|
|
11
|
-
caption_label: "text-sm font-medium",
|
|
12
|
-
nav: "space-x-1 flex items-center",
|
|
13
|
-
nav_button: cn(buttonVariants({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
14
|
-
nav_button_previous: "absolute left-1",
|
|
15
|
-
nav_button_next: "absolute right-1",
|
|
16
|
-
table: "w-full border-collapse space-y-1",
|
|
17
|
-
head_row: "flex",
|
|
18
|
-
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
19
|
-
row: "flex w-full mt-2",
|
|
20
|
-
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
21
|
-
day: cn(buttonVariants({ variant: "outline" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
22
|
-
day_range_end: "day-range-end",
|
|
23
|
-
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
24
|
-
day_today: "bg-accent text-accent-foreground",
|
|
25
|
-
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
26
|
-
day_disabled: "text-muted-foreground opacity-50",
|
|
27
|
-
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
28
|
-
day_hidden: "invisible",
|
|
29
|
-
...classNames,
|
|
30
|
-
}, components: {
|
|
31
|
-
IconLeft: () => _jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
32
|
-
IconRight: () => _jsx(ChevronRight, { className: "h-4 w-4" }),
|
|
33
|
-
}, ...props }));
|
|
34
|
-
}
|
|
35
|
-
Calendar.displayName = "Calendar";
|
|
36
|
-
export { Calendar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Calendar } from "./calendar";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Calendar } from "./calendar";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../../helpers/utils";
|
|
4
|
-
const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props })));
|
|
5
|
-
Card.displayName = "Card";
|
|
6
|
-
const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
|
|
7
|
-
CardHeader.displayName = "CardHeader";
|
|
8
|
-
const CardTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h3", { ref: ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })));
|
|
9
|
-
CardTitle.displayName = "CardTitle";
|
|
10
|
-
const CardDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("p", { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
11
|
-
CardDescription.displayName = "CardDescription";
|
|
12
|
-
const CardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("p-6 pt-0", className), ...props })));
|
|
13
|
-
CardContent.displayName = "CardContent";
|
|
14
|
-
const CardFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center p-6 pt-0", className), ...props })));
|
|
15
|
-
CardFooter.displayName = "CardFooter";
|
|
16
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./Card";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./Card";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
-
declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
-
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
-
const Collapsible = CollapsiblePrimitive.Root;
|
|
3
|
-
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
4
|
-
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent, } from "./collapsible";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent, } from "./collapsible";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type DialogProps } from "@radix-ui/react-dialog";
|
|
3
|
-
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
-
label?: string | undefined;
|
|
7
|
-
shouldFilter?: boolean | undefined;
|
|
8
|
-
filter?: ((value: string, search: string) => number) | undefined;
|
|
9
|
-
defaultValue?: string | undefined;
|
|
10
|
-
value?: string | undefined;
|
|
11
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
12
|
-
loop?: boolean | undefined;
|
|
13
|
-
vimBindings?: boolean | undefined;
|
|
14
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
interface CommandDialogProps extends DialogProps {
|
|
16
|
-
}
|
|
17
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
|
|
19
|
-
value?: string | undefined;
|
|
20
|
-
onValueChange?: ((search: string) => void) | undefined;
|
|
21
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
31
|
-
heading?: React.ReactNode;
|
|
32
|
-
value?: string | undefined;
|
|
33
|
-
forceMount?: boolean | undefined;
|
|
34
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
|
|
36
|
-
alwaysRender?: boolean | undefined;
|
|
37
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
|
41
|
-
disabled?: boolean | undefined;
|
|
42
|
-
onSelect?: ((value: string) => void) | undefined;
|
|
43
|
-
value?: string | undefined;
|
|
44
|
-
forceMount?: boolean | undefined;
|
|
45
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
declare const CommandShortcut: {
|
|
47
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
displayName: string;
|
|
49
|
-
};
|
|
50
|
-
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
4
|
-
import { Search } from "lucide-react";
|
|
5
|
-
import { cn } from "../../helpers/utils";
|
|
6
|
-
import { Dialog, DialogContent } from "../Dialog";
|
|
7
|
-
const Command = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive, { ref: ref, className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className), ...props })));
|
|
8
|
-
Command.displayName = CommandPrimitive.displayName;
|
|
9
|
-
const CommandDialog = ({ children, ...props }) => {
|
|
10
|
-
return (_jsx(Dialog, { ...props, children: _jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: _jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: children }) }) }));
|
|
11
|
-
};
|
|
12
|
-
const CommandInput = React.forwardRef(({ className, ...props }, ref) => (_jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [_jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), _jsx(CommandPrimitive.Input, { ref: ref, className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className), ...props })] })));
|
|
13
|
-
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
14
|
-
const CommandList = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.List, { ref: ref, className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className), ...props })));
|
|
15
|
-
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
16
|
-
const CommandEmpty = React.forwardRef((props, ref) => (_jsx(CommandPrimitive.Empty, { ref: ref, className: "py-6 text-center text-sm", ...props })));
|
|
17
|
-
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
18
|
-
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Group, { ref: ref, className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), ...props })));
|
|
19
|
-
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
20
|
-
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Separator, { ref: ref, className: cn("-mx-1 h-px bg-border", className), ...props })));
|
|
21
|
-
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
22
|
-
const CommandItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props })));
|
|
23
|
-
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
24
|
-
const CommandShortcut = ({ className, ...props }) => {
|
|
25
|
-
return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
|
|
26
|
-
};
|
|
27
|
-
CommandShortcut.displayName = "CommandShortcut";
|
|
28
|
-
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|