@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.
Files changed (35) hide show
  1. package/README.md +11 -6
  2. package/package.json +1 -1
  3. package/publish/cjs/components/AlertDialog/AlertDialog.js +5 -5
  4. package/publish/cjs/components/Pagination/Pagination.js +31 -0
  5. package/publish/cjs/components/Pagination/index.js +8 -0
  6. package/publish/cjs/components/TextArea/TextArea.js +6 -6
  7. package/publish/cjs/components/TextInput/TextInput.js +6 -6
  8. package/publish/cjs/index.js +1 -0
  9. package/publish/cjs/mobase-tw-plugin/colors/blue.js +11 -11
  10. package/publish/cjs/mobase-tw-plugin/colors/green.js +11 -11
  11. package/publish/cjs/mobase-tw-plugin/colors/orange.js +11 -11
  12. package/publish/cjs/mobase-tw-plugin/colors/pink.js +8 -8
  13. package/publish/cjs/mobase-tw-plugin/colors/purple.js +9 -9
  14. package/publish/cjs/mobase-tw-plugin/colors/red.js +9 -9
  15. package/publish/cjs/mobase-tw-plugin/colors/yellow.js +11 -11
  16. package/publish/cjs/mobase-tw-plugin/plugin.js +20 -0
  17. package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
  18. package/publish/esm/components/AlertDialog/AlertDialog.js +5 -5
  19. package/publish/esm/components/Pagination/Pagination.d.ts +16 -0
  20. package/publish/esm/components/Pagination/Pagination.js +28 -0
  21. package/publish/esm/components/Pagination/index.d.ts +1 -0
  22. package/publish/esm/components/Pagination/index.js +1 -0
  23. package/publish/esm/components/TextArea/TextArea.js +6 -6
  24. package/publish/esm/components/TextInput/TextInput.js +6 -6
  25. package/publish/esm/index.d.ts +1 -0
  26. package/publish/esm/index.js +1 -0
  27. package/publish/esm/mobase-tw-plugin/colors/blue.js +11 -11
  28. package/publish/esm/mobase-tw-plugin/colors/green.js +11 -11
  29. package/publish/esm/mobase-tw-plugin/colors/orange.js +11 -11
  30. package/publish/esm/mobase-tw-plugin/colors/pink.js +8 -8
  31. package/publish/esm/mobase-tw-plugin/colors/purple.js +9 -9
  32. package/publish/esm/mobase-tw-plugin/colors/red.js +9 -9
  33. package/publish/esm/mobase-tw-plugin/colors/yellow.js +11 -11
  34. package/publish/esm/mobase-tw-plugin/plugin.js +20 -0
  35. 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
- module.exports = {
35
- content: ["./src/**/*.{js,jsx,ts,tsx}" /* src folder, for example */],
36
- theme: {
37
- extend: {},
38
- },
39
- plugins: [],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-webplatform/mobase",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
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",
@@ -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 rounded-sm border-gray-300 top-[50%] z-50 grid w-full 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%] sm:rounded-lg", className), ...props })] })));
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-center sm:text-left", className), ...props }));
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-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
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" }), "mt-2 sm:mt-0", className), ...props })));
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 hsl(var(--red-500) / 1) inset;
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
  ` })] }));
@@ -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: "#F2F8FF",
6
- 100: "#E5F1FF",
7
- 200: "#CCE4FF",
8
- 300: "#99caff",
9
- 400: "#3395ff",
10
- 500: "#1987FF",
11
- 600: "#007aff",
12
- 700: "#006ee6",
13
- 800: "#0062cc",
14
- 900: "#004794",
15
- DEFAULT: "#1987FF",
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: "#eaf9ee",
6
- 100: "#d6f4de",
7
- 200: "#aee9bd",
8
- 300: "#85DD9B",
9
- 400: "#5dd27a",
10
- 500: "#48cc69",
11
- 600: "#34c759",
12
- 700: "#2fb350",
13
- 800: "#2a9f47",
14
- 900: "#117A2B",
15
- DEFAULT: "#48cc69",
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: "#fff6f3",
6
- 100: "#feede8",
7
- 200: "#feddd2",
8
- 300: "#fdbba4",
9
- 400: "#fc9877",
10
- 500: "#fb7649",
11
- 600: "#fa6532",
12
- 700: "#fa541c",
13
- 800: "#e14c19",
14
- 900: "#c84316",
15
- DEFAULT: "#fb7649",
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: "#FEF8FC",
6
- 100: "#FDEAF4",
7
- 200: "#FBD5EA",
8
- 300: "#F382C0",
9
- 400: "#EF59AB",
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: "#BC2678",
13
- 800: "#A50064",
14
- 900: "#780650",
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: "#faf4fe",
6
- 100: "#f4e9fd",
7
- 200: "#ead4fc",
8
- 300: "#d5aaf9",
9
- 400: "#c07ff6",
5
+ 50: "#faf5ff",
6
+ 100: "#f4e9fe",
7
+ 200: "#ead6fe",
8
+ 300: "#dab6fc",
9
+ 400: "#c487f9",
10
10
  500: "#ab55f3",
11
- 600: "#a03ff1",
12
- 700: "#962af0",
13
- 800: "#8726d8",
14
- 900: "#6A15B2",
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: "#fef4f4",
6
- 100: "#fee8ea",
7
- 200: "#fdd3d5",
8
- 300: "#fba7ab",
9
- 400: "#f97a81",
5
+ 50: "#fff1f2",
6
+ 100: "#ffe1e3",
7
+ 200: "#ffc8cb",
8
+ 300: "#ffa1a6",
9
+ 400: "#fe6b73",
10
10
  500: "#f74e57",
11
- 600: "#f63842",
12
- 700: "#f5222d",
13
- 800: "#dd1f29",
14
- 900: "#c41b24",
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: "#fff9e5",
6
- 100: "#fff5cc",
7
- 200: "#ffeb99",
8
- 300: "#ffe066",
9
- 400: "#ffd633",
10
- 500: "#ffd119",
11
- 600: "#ffcc00",
12
- 700: "#e6b800",
13
- 800: "#cca300",
14
- 900: "#A88600",
15
- DEFAULT: "#ffd119",
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,