@momo-webplatform/mobase 0.0.23 → 0.0.24
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/README.md +11 -6
- package/package.json +1 -1
- package/publish/cjs/components/AlertDialog/AlertDialog.js +5 -5
- package/publish/cjs/components/Pagination/Pagination.js +31 -0
- package/publish/cjs/components/Pagination/index.js +8 -0
- package/publish/cjs/components/TextArea/TextArea.js +6 -6
- package/publish/cjs/components/TextInput/TextInput.js +6 -6
- package/publish/cjs/index.js +1 -0
- package/publish/cjs/mobase-tw-plugin/colors/blue.js +11 -11
- package/publish/cjs/mobase-tw-plugin/colors/green.js +11 -11
- package/publish/cjs/mobase-tw-plugin/colors/orange.js +11 -11
- package/publish/cjs/mobase-tw-plugin/colors/pink.js +8 -8
- package/publish/cjs/mobase-tw-plugin/colors/purple.js +9 -9
- package/publish/cjs/mobase-tw-plugin/colors/red.js +9 -9
- package/publish/cjs/mobase-tw-plugin/colors/yellow.js +11 -11
- package/publish/cjs/mobase-tw-plugin/plugin.js +20 -0
- package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
- package/publish/esm/components/AlertDialog/AlertDialog.js +5 -5
- package/publish/esm/components/Pagination/Pagination.d.ts +16 -0
- package/publish/esm/components/Pagination/Pagination.js +28 -0
- package/publish/esm/components/Pagination/index.d.ts +1 -0
- package/publish/esm/components/Pagination/index.js +1 -0
- package/publish/esm/components/TextArea/TextArea.js +6 -6
- package/publish/esm/components/TextInput/TextInput.js +6 -6
- package/publish/esm/index.d.ts +1 -0
- package/publish/esm/index.js +1 -0
- package/publish/esm/mobase-tw-plugin/colors/blue.js +11 -11
- package/publish/esm/mobase-tw-plugin/colors/green.js +11 -11
- package/publish/esm/mobase-tw-plugin/colors/orange.js +11 -11
- package/publish/esm/mobase-tw-plugin/colors/pink.js +8 -8
- package/publish/esm/mobase-tw-plugin/colors/purple.js +9 -9
- package/publish/esm/mobase-tw-plugin/colors/red.js +9 -9
- package/publish/esm/mobase-tw-plugin/colors/yellow.js +11 -11
- package/publish/esm/mobase-tw-plugin/plugin.js +20 -0
- package/publish/esm/tsconfig.lib.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -31,13 +31,18 @@ pnpm tailwindcss init -p
|
|
|
31
31
|
Point Tailwind CSS to files you have `className=".."` in:
|
|
32
32
|
|
|
33
33
|
```javascript
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
import { mobaseTW } from "@momo-webplatform/mobase";
|
|
35
|
+
|
|
36
|
+
const config = {
|
|
37
|
+
content: [
|
|
38
|
+
// ...
|
|
39
|
+
"node_modules/@momo-webplatform/mobase/publish/esm/**/*.js",
|
|
40
|
+
],
|
|
41
|
+
darkMode: ["class"],
|
|
42
|
+
plugins: [mobaseTW()],
|
|
40
43
|
};
|
|
44
|
+
|
|
45
|
+
export default config;
|
|
41
46
|
```
|
|
42
47
|
|
|
43
48
|
Add Tailwind CSS to a CSS file:
|
package/package.json
CHANGED
|
@@ -38,13 +38,13 @@ exports.AlertDialogPortal = AlertDialogPortal;
|
|
|
38
38
|
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Overlay, { className: (0, utils_1.cn)("fixed inset-0 z-50 bg-black/70 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 })));
|
|
39
39
|
exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
40
40
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
41
|
-
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(AlertDialogPortal, { children: [(0, jsx_runtime_1.jsx)(AlertDialogOverlay, {}), (0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Content, { ref: ref, className: (0, utils_1.cn)("fixed left-[50%] bg-white text-gray-700 border
|
|
41
|
+
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(AlertDialogPortal, { children: [(0, jsx_runtime_1.jsx)(AlertDialogOverlay, {}), (0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Content, { ref: ref, className: (0, utils_1.cn)("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 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-xl", className), ...props })] })));
|
|
42
42
|
exports.AlertDialogContent = AlertDialogContent;
|
|
43
43
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
44
|
-
const AlertDialogHeader = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-col space-y-2 text-
|
|
44
|
+
const AlertDialogHeader = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-col space-y-2 text-left", className), ...props }));
|
|
45
45
|
exports.AlertDialogHeader = AlertDialogHeader;
|
|
46
46
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
47
|
-
const AlertDialogFooter = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-
|
|
47
|
+
const AlertDialogFooter = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-row justify-end space-x-4", className), ...props }));
|
|
48
48
|
exports.AlertDialogFooter = AlertDialogFooter;
|
|
49
49
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
50
50
|
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Title, { ref: ref, className: (0, utils_1.cn)("text-lg text-gray-900 font-semibold", className), ...props })));
|
|
@@ -54,9 +54,9 @@ const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) =
|
|
|
54
54
|
exports.AlertDialogDescription = AlertDialogDescription;
|
|
55
55
|
AlertDialogDescription.displayName =
|
|
56
56
|
AlertDialogPrimitive.Description.displayName;
|
|
57
|
-
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Action, { ref: ref, className: (0, utils_1.cn)((0, Button_1.buttonVariants)(), "", className), ...props })));
|
|
57
|
+
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Action, { ref: ref, className: (0, utils_1.cn)((0, Button_1.buttonVariants)({ variant: "primary" }), "", className), ...props })));
|
|
58
58
|
exports.AlertDialogAction = AlertDialogAction;
|
|
59
59
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
60
|
-
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Cancel, { ref: ref, className: (0, utils_1.cn)((0, Button_1.buttonVariants)({ variant: "secondary" }),
|
|
60
|
+
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Cancel, { ref: ref, className: (0, utils_1.cn)((0, Button_1.buttonVariants)({ variant: "secondary" }), className), ...props })));
|
|
61
61
|
exports.AlertDialogCancel = AlertDialogCancel;
|
|
62
62
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const lucide_react_1 = require("lucide-react");
|
|
5
|
+
const IconButton_1 = require("../IconButton/IconButton");
|
|
6
|
+
const utils_1 = require("../../helpers/utils");
|
|
7
|
+
function Pagination({ current, total, onChange, }) {
|
|
8
|
+
const getButton = (index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: (0, utils_1.cn)((0, IconButton_1.iconButtonVariants)({
|
|
9
|
+
variant: current === index ? "outline" : "secondary",
|
|
10
|
+
size: "sm",
|
|
11
|
+
})), onClick: () => onChange(index), children: index }) }, index));
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("nav", { role: "navigation", "aria-label": "pagination", className: (0, utils_1.cn)("mx-auto flex w-full justify-center"), children: (0, jsx_runtime_1.jsxs)("ul", { className: (0, utils_1.cn)("flex flex-row flex-wrap items-center gap-2"), children: [total > 1 && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: (0, utils_1.cn)((0, IconButton_1.iconButtonVariants)({
|
|
13
|
+
variant: "secondary",
|
|
14
|
+
size: "sm",
|
|
15
|
+
})), disabled: current === 1, onClick: () => current > 1 && onChange(current - 1), children: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronLeft, { className: "h-4 w-4" }) }) })), total <= 6 ? (Array(total)
|
|
16
|
+
.fill(0)
|
|
17
|
+
.map((_, index) => getButton(index + 1))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [getButton(1), current === 1 && [getButton(2), getButton(3)], current > 3 && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: (0, utils_1.cn)((0, IconButton_1.iconButtonVariants)({
|
|
18
|
+
variant: "secondary",
|
|
19
|
+
size: "sm",
|
|
20
|
+
})), disabled: current === 1, onClick: () => onChange(current - 3), children: "..." }) })), current > 2 &&
|
|
21
|
+
current !== 1 &&
|
|
22
|
+
current !== total &&
|
|
23
|
+
getButton(current - 1), current > 1 && current < total && getButton(current), current < total - 1 && current !== 1 && getButton(current + 1), current === total && [getButton(total - 2), getButton(total - 1)], current < total - 2 && current !== total && ((0, jsx_runtime_1.jsx)("button", { className: (0, utils_1.cn)((0, IconButton_1.iconButtonVariants)({
|
|
24
|
+
variant: "secondary",
|
|
25
|
+
size: "sm",
|
|
26
|
+
})), disabled: current === 1, onClick: () => onChange(current + 3), children: "..." })), getButton(total)] })), total > 1 && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: (0, utils_1.cn)((0, IconButton_1.iconButtonVariants)({
|
|
27
|
+
variant: "secondary",
|
|
28
|
+
size: "sm",
|
|
29
|
+
})), disabled: current === total, onClick: () => current < total && onChange(current + 1), children: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" }) }) }))] }) }));
|
|
30
|
+
}
|
|
31
|
+
exports.default = Pagination;
|
|
@@ -0,0 +1,8 @@
|
|
|
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.Pagination = void 0;
|
|
7
|
+
var Pagination_1 = require("./Pagination");
|
|
8
|
+
Object.defineProperty(exports, "Pagination", { enumerable: true, get: function () { return __importDefault(Pagination_1).default; } });
|
|
@@ -9,11 +9,11 @@ const utils_1 = require("../../helpers/utils");
|
|
|
9
9
|
exports.TextArea = (0, react_1.forwardRef)(({ disabled, isError, message, label, className, inputClassName, rows = 3, ...restProps }, ref) => {
|
|
10
10
|
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("relative", className, isError && "mobase-text-area-error"), children: [label && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm", disabled ? "text-gray-400" : "text-gray-500"), children: label })), (0, jsx_runtime_1.jsx)("textarea", { disabled: disabled, ref: ref, className: (0, utils_1.cn)("mobase-text-area-box bg-white w-full transition-all rounded border border-gray-400 placeholder:text-base placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-300 outline-none block", inputClassName), rows: rows, ...restProps }), message && ((0, jsx_runtime_1.jsxs)("div", { className: "mobase-text-area-message flex space-x-1 items-center mt-0.5", children: [isError ? ((0, jsx_runtime_1.jsx)(solid_1.XCircleIcon, { width: 16, height: 16, className: "text-red-500" })) : ((0, jsx_runtime_1.jsx)(outline_1.QuestionMarkCircleIcon, { width: 16, height: 16, className: "text-gray-500" })), (0, jsx_runtime_1.jsx)("span", { className: "text-gray-500 text-sm", children: message })] })), (0, jsx_runtime_1.jsx)("style", { children: `
|
|
11
11
|
.mobase-text-area-box:hover {
|
|
12
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--gray-400) / 1) inset;
|
|
12
|
+
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.mobase-text-area-box:focus {
|
|
16
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--pink-500) / 1) inset;
|
|
16
|
+
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.mobase-text-area-box:disabled {
|
|
@@ -22,16 +22,16 @@ exports.TextArea = (0, react_1.forwardRef)(({ disabled, isError, message, label,
|
|
|
22
22
|
|
|
23
23
|
.mobase-text-area-error {
|
|
24
24
|
.mobase-text-area-label {
|
|
25
|
-
color: rgb(var(--red-500) / 1);
|
|
25
|
+
color: rgb(var(--mobase-red-500) / 1);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.mobase-text-area-box {
|
|
29
|
-
box-shadow: 0px 0px 0px 1px
|
|
30
|
-
border-color: rgb(var(--red-500) / 1);
|
|
29
|
+
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-red-500) / 1) inset;
|
|
30
|
+
border-color: rgb(var(--mobase-red-500) / 1);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.mobase-text-area-message span {
|
|
34
|
-
color: rgb(var(--red-500) / 1);
|
|
34
|
+
color: rgb(var(--mobase-red-500) / 1);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
` })] }));
|
|
@@ -41,25 +41,25 @@ exports.TextInput = (0, react_1.forwardRef)(({ disabled, isError, message, label
|
|
|
41
41
|
}, [value, defaultValue]);
|
|
42
42
|
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)(className, isError && "mobase-text-input-error"), ref: rootRef, children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [label && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)("mobase-text-input-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm", disabled ? "text-gray-400" : "text-gray-500"), children: label })), (0, jsx_runtime_1.jsx)("input", { disabled: disabled, type: type, ref: ref, className: (0, utils_1.cn)("mobase-text-input-box bg-white w-full transition-all rounded border border-gray-400 placeholder:text-base placeholder:text-gray-500 p-3 text-gray-900 h-12 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-300 disabled:pointer-events-none block", inputClassName), onChange: onChangeFactory, onFocus: onFocusFactory, value: value, defaultValue: defaultValue, ...restProps }), withClearButton && clearable && ((0, jsx_runtime_1.jsx)("button", { "aria-label": "button", type: "button", className: "absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none", disabled: disabled, onClick: handleClear, children: (0, jsx_runtime_1.jsx)(outline_1.XCircleIcon, { strokeWidth: 2, width: 20, height: 20 }) }))] }), message && ((0, jsx_runtime_1.jsxs)("div", { className: "mobase-text-input-message flex space-x-1 items-center mt-0.5", children: [isError ? ((0, jsx_runtime_1.jsx)(solid_1.XCircleIcon, { width: 16, height: 16, className: "text-red-500" })) : ((0, jsx_runtime_1.jsx)(outline_1.QuestionMarkCircleIcon, { width: 16, height: 16, className: "text-gray-500" })), (0, jsx_runtime_1.jsx)("span", { className: "text-gray-500 text-sm", children: message })] })), (0, jsx_runtime_1.jsx)("style", { children: `
|
|
43
43
|
.mobase-text-input-box:hover {
|
|
44
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--gray-400) / 1) inset;
|
|
44
|
+
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.mobase-text-input-box:focus {
|
|
48
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--pink-500) / 1) inset;
|
|
48
|
+
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.mobase-text-input-error {
|
|
52
52
|
.mobase-text-input-label {
|
|
53
|
-
color: rgb(var(--red-500) / 1);
|
|
53
|
+
color: rgb(var(--mobase-red-500) / 1);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.mobase-text-input-box {
|
|
57
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--red-500) / 1) inset;
|
|
58
|
-
border-color: rgb(var(--red-500) / 1);
|
|
57
|
+
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-red-500) / 1) inset;
|
|
58
|
+
border-color: rgb(var(--mobase-red-500) / 1);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.mobase-text-input-message span {
|
|
62
|
-
color: rgb(var(--red-500) / 1);
|
|
62
|
+
color: rgb(var(--mobase-red-500) / 1);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
` })] }));
|
package/publish/cjs/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./components/Button"), exports);
|
|
|
20
20
|
__exportStar(require("./components/Checkbox"), exports);
|
|
21
21
|
__exportStar(require("./components/AlertDialog"), exports);
|
|
22
22
|
__exportStar(require("./components/IconButton"), exports);
|
|
23
|
+
__exportStar(require("./components/Pagination"), exports);
|
|
23
24
|
__exportStar(require("./components/Popover"), exports);
|
|
24
25
|
__exportStar(require("./components/Tabs"), exports);
|
|
25
26
|
__exportStar(require("./components/TextArea"), exports);
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.blue = void 0;
|
|
4
4
|
exports.blue = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
10
|
-
500: "#
|
|
11
|
-
600: "#
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
15
|
-
DEFAULT: "#
|
|
5
|
+
50: "#eef8ff",
|
|
6
|
+
100: "#d9eeff",
|
|
7
|
+
200: "#bce1ff",
|
|
8
|
+
300: "#8ed0ff",
|
|
9
|
+
400: "#59b4ff",
|
|
10
|
+
500: "#429cff",
|
|
11
|
+
600: "#1b74f5",
|
|
12
|
+
700: "#145ee1",
|
|
13
|
+
800: "#174bb6",
|
|
14
|
+
900: "#19428f",
|
|
15
|
+
DEFAULT: "#429cff",
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.green = void 0;
|
|
4
4
|
exports.green = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
10
|
-
500: "#
|
|
11
|
-
600: "#
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
15
|
-
DEFAULT: "#
|
|
5
|
+
50: "#f1fcf3",
|
|
6
|
+
100: "#dff9e5",
|
|
7
|
+
200: "#c0f2cc",
|
|
8
|
+
300: "#8fe6a4",
|
|
9
|
+
400: "#57d175",
|
|
10
|
+
500: "#34c759",
|
|
11
|
+
600: "#22973f",
|
|
12
|
+
700: "#1e7735",
|
|
13
|
+
800: "#1d5e2e",
|
|
14
|
+
900: "#194e28",
|
|
15
|
+
DEFAULT: "#34c759",
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.orange = void 0;
|
|
4
4
|
exports.orange = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
10
|
-
500: "#
|
|
11
|
-
600: "#
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
15
|
-
DEFAULT: "#
|
|
5
|
+
50: "#fff4ed",
|
|
6
|
+
100: "#ffe6d5",
|
|
7
|
+
200: "#fecaaa",
|
|
8
|
+
300: "#fea473",
|
|
9
|
+
400: "#fc743b",
|
|
10
|
+
500: "#fa541c",
|
|
11
|
+
600: "#eb350b",
|
|
12
|
+
700: "#c3240b",
|
|
13
|
+
800: "#9b1e11",
|
|
14
|
+
900: "#7c1c12",
|
|
15
|
+
DEFAULT: "#fa541c",
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pink = void 0;
|
|
4
4
|
exports.pink = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
5
|
+
50: "#FEE5F6",
|
|
6
|
+
100: "#FECCED",
|
|
7
|
+
200: "#FFA2DF",
|
|
8
|
+
300: "#FE68C6",
|
|
9
|
+
400: "#F93BAD",
|
|
10
10
|
500: "#EB2F96",
|
|
11
11
|
600: "#D42A87",
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
12
|
+
700: "#CB0B6F",
|
|
13
|
+
800: "#A70D5B",
|
|
14
|
+
900: "#8B104E",
|
|
15
15
|
DEFAULT: "#EB2F96",
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.purple = void 0;
|
|
4
4
|
exports.purple = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
5
|
+
50: "#faf5ff",
|
|
6
|
+
100: "#f4e9fe",
|
|
7
|
+
200: "#ead6fe",
|
|
8
|
+
300: "#dab6fc",
|
|
9
|
+
400: "#c487f9",
|
|
10
10
|
500: "#ab55f3",
|
|
11
|
-
600: "#
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
11
|
+
600: "#9937e6",
|
|
12
|
+
700: "#8326ca",
|
|
13
|
+
800: "#6f24a5",
|
|
14
|
+
900: "#5b1e85",
|
|
15
15
|
DEFAULT: "#ab55f3",
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.red = void 0;
|
|
4
4
|
exports.red = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
5
|
+
50: "#fff1f2",
|
|
6
|
+
100: "#ffe1e3",
|
|
7
|
+
200: "#ffc8cb",
|
|
8
|
+
300: "#ffa1a6",
|
|
9
|
+
400: "#fe6b73",
|
|
10
10
|
500: "#f74e57",
|
|
11
|
-
600: "#
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
11
|
+
600: "#e41e29",
|
|
12
|
+
700: "#c0151e",
|
|
13
|
+
800: "#9e161d",
|
|
14
|
+
900: "#83191f",
|
|
15
15
|
DEFAULT: "#f74e57",
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.yellow = void 0;
|
|
4
4
|
exports.yellow = {
|
|
5
|
-
50: "#
|
|
6
|
-
100: "#
|
|
7
|
-
200: "#
|
|
8
|
-
300: "#
|
|
9
|
-
400: "#
|
|
10
|
-
500: "#
|
|
11
|
-
600: "#
|
|
12
|
-
700: "#
|
|
13
|
-
800: "#
|
|
14
|
-
900: "#
|
|
15
|
-
DEFAULT: "#
|
|
5
|
+
50: "#fffee7",
|
|
6
|
+
100: "#fffec1",
|
|
7
|
+
200: "#fff886",
|
|
8
|
+
300: "#ffec41",
|
|
9
|
+
400: "#ffdb0d",
|
|
10
|
+
500: "#ffcc00",
|
|
11
|
+
600: "#d19500",
|
|
12
|
+
700: "#a66a02",
|
|
13
|
+
800: "#89530a",
|
|
14
|
+
900: "#74430f",
|
|
15
|
+
DEFAULT: "#ffcc00",
|
|
16
16
|
};
|
|
@@ -98,6 +98,26 @@ const mobaseTW = () => {
|
|
|
98
98
|
{
|
|
99
99
|
theme: {
|
|
100
100
|
extend: {
|
|
101
|
+
fontFamily: {
|
|
102
|
+
sans: [
|
|
103
|
+
"-apple-system",
|
|
104
|
+
"BlinkMacSystemFont",
|
|
105
|
+
"Segoe UI",
|
|
106
|
+
"Helvetica",
|
|
107
|
+
"Arial",
|
|
108
|
+
"sans-serif",
|
|
109
|
+
"Apple Color Emoji",
|
|
110
|
+
"Segoe UI Emoji",
|
|
111
|
+
"Segoe UI Symbol",
|
|
112
|
+
],
|
|
113
|
+
mono: [
|
|
114
|
+
"SFMono-Regular",
|
|
115
|
+
"Consolas",
|
|
116
|
+
"Liberation Mono",
|
|
117
|
+
"Menlo",
|
|
118
|
+
"monospace",
|
|
119
|
+
],
|
|
120
|
+
},
|
|
101
121
|
colors: {
|
|
102
122
|
...colors_1.colors,
|
|
103
123
|
...resolved?.colors,
|