@momo-webplatform/mobase 0.0.10 → 0.0.12
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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-webplatform/mobase",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Mobase is the UI framework upon we build product experiences at MoMo.vn, base on Radix primitives, and Tailwind CSS.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "next dev",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/core": "^1.6.0",
|
|
31
31
|
"@floating-ui/react": "^0.26.2",
|
|
32
|
-
"@heroicons/react": "1.
|
|
32
|
+
"@heroicons/react": "^2.1.1",
|
|
33
33
|
"@momo-webplatform/mobase": "^0.0.7",
|
|
34
34
|
"@radix-ui/primitive": "^1.0.1",
|
|
35
35
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"vaul": "^0.8.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
+
"@next/eslint-plugin-next": "^14.1.4",
|
|
92
93
|
"@storybook/addon-essentials": "^7.6.7",
|
|
93
94
|
"@storybook/addon-interactions": "^7.6.7",
|
|
94
95
|
"@storybook/addon-links": "^7.6.7",
|
|
@@ -106,21 +107,24 @@
|
|
|
106
107
|
"@types/react": "^18.2.37",
|
|
107
108
|
"@types/react-dom": "^18.2.15",
|
|
108
109
|
"@types/react-syntax-highlighter": "^15.5.10",
|
|
109
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
110
|
-
"@typescript-eslint/parser": "^
|
|
110
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
111
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
111
112
|
"@vitejs/plugin-react": "^4.1.1",
|
|
112
113
|
"@vitest/coverage-v8": "^0.34.6",
|
|
113
114
|
"@vitest/ui": "^0.34.6",
|
|
114
115
|
"autoprefixer": "^10.4.16",
|
|
115
|
-
"eslint": "^8.
|
|
116
|
-
"eslint-config-
|
|
117
|
-
"eslint-
|
|
118
|
-
"eslint-
|
|
119
|
-
"eslint-
|
|
120
|
-
"eslint-
|
|
116
|
+
"eslint": "^8.57.0",
|
|
117
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
118
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
119
|
+
"eslint-config-next": "^14.1.4",
|
|
120
|
+
"eslint-config-prettier": "^9.1.0",
|
|
121
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
122
|
+
"eslint-plugin-etc": "^2.0.3",
|
|
123
|
+
"eslint-plugin-json-schema-validator": "^4.9.0",
|
|
124
|
+
"eslint-plugin-mdx": "^3.1.5",
|
|
125
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
121
126
|
"jsdom": "^22.1.0",
|
|
122
127
|
"markdown-toc": "^1.2.0",
|
|
123
|
-
"postcss": "^8.4.31",
|
|
124
128
|
"prettier": "^3.0.3",
|
|
125
129
|
"prettier-plugin-organize-imports": "^3.2.3",
|
|
126
130
|
"prettier-plugin-tailwindcss": "^0.5.6",
|
|
@@ -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 })] })));
|