@momo-webplatform/mobase 0.0.10 → 0.0.11
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 +1 -1
- package/publish/cjs/components/AlertDialog/AlertDialog.js +1 -1
- package/publish/cjs/components/Command/command.js +2 -2
- package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
- package/publish/esm/components/AlertDialog/AlertDialog.js +1 -1
- package/publish/esm/components/Command/command.js +1 -1
- package/publish/esm/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
const React = __importStar(require("react"));
|
|
29
29
|
const AlertDialogPrimitive = __importStar(require("@radix-ui/react-alert-dialog"));
|
|
30
30
|
const utils_1 = require("../../helpers/utils");
|
|
31
|
-
const Button_1 = require("
|
|
31
|
+
const Button_1 = require("../Button");
|
|
32
32
|
const AlertDialog = AlertDialogPrimitive.Root;
|
|
33
33
|
exports.AlertDialog = AlertDialog;
|
|
34
34
|
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
@@ -29,12 +29,12 @@ const React = __importStar(require("react"));
|
|
|
29
29
|
const cmdk_1 = require("cmdk");
|
|
30
30
|
const lucide_react_1 = require("lucide-react");
|
|
31
31
|
const utils_1 = require("../../helpers/utils");
|
|
32
|
-
const
|
|
32
|
+
const Dialog_1 = require("../Dialog");
|
|
33
33
|
const Command = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(cmdk_1.Command, { ref: ref, className: (0, utils_1.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className), ...props })));
|
|
34
34
|
exports.Command = Command;
|
|
35
35
|
Command.displayName = cmdk_1.Command.displayName;
|
|
36
36
|
const CommandDialog = ({ children, ...props }) => {
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { ...props, children: (0, jsx_runtime_1.jsx)(Dialog_1.DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: (0, jsx_runtime_1.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 }) }) }));
|
|
38
38
|
};
|
|
39
39
|
exports.CommandDialog = CommandDialog;
|
|
40
40
|
const CommandInput = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), (0, jsx_runtime_1.jsx)(cmdk_1.Command.Input, { ref: ref, className: (0, utils_1.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 })] })));
|