@momo-webplatform/mobase 0.0.23 → 0.0.25

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 (56) 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/NavigationMenu/NavigationMenu.js +62 -0
  5. package/publish/cjs/components/NavigationMenu/index.js +13 -0
  6. package/publish/cjs/components/Pagination/Pagination.js +31 -0
  7. package/publish/cjs/components/Pagination/index.js +8 -0
  8. package/publish/cjs/components/RadioGroup/RadioGroup.js +53 -0
  9. package/publish/cjs/components/RadioGroup/index.js +6 -0
  10. package/publish/cjs/components/Select/Select.js +34 -12
  11. package/publish/cjs/components/Switch/Switch.js +33 -0
  12. package/publish/cjs/components/Switch/index.js +5 -0
  13. package/publish/cjs/components/TextArea/TextArea.js +6 -6
  14. package/publish/cjs/components/TextInput/TextInput.js +6 -6
  15. package/publish/cjs/index.js +5 -0
  16. package/publish/cjs/mobase-tw-plugin/colors/blue.js +11 -11
  17. package/publish/cjs/mobase-tw-plugin/colors/green.js +11 -11
  18. package/publish/cjs/mobase-tw-plugin/colors/orange.js +11 -11
  19. package/publish/cjs/mobase-tw-plugin/colors/pink.js +8 -8
  20. package/publish/cjs/mobase-tw-plugin/colors/purple.js +9 -9
  21. package/publish/cjs/mobase-tw-plugin/colors/red.js +9 -9
  22. package/publish/cjs/mobase-tw-plugin/colors/yellow.js +11 -11
  23. package/publish/cjs/mobase-tw-plugin/plugin.js +20 -0
  24. package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
  25. package/publish/esm/components/AlertDialog/AlertDialog.js +5 -5
  26. package/publish/esm/components/NavigationMenu/NavigationMenu.d.ts +12 -0
  27. package/publish/esm/components/NavigationMenu/NavigationMenu.js +28 -0
  28. package/publish/esm/components/NavigationMenu/index.d.ts +1 -0
  29. package/publish/esm/components/NavigationMenu/index.js +1 -0
  30. package/publish/esm/components/Pagination/Pagination.d.ts +16 -0
  31. package/publish/esm/components/Pagination/Pagination.js +28 -0
  32. package/publish/esm/components/Pagination/index.d.ts +1 -0
  33. package/publish/esm/components/Pagination/index.js +1 -0
  34. package/publish/esm/components/RadioGroup/RadioGroup.d.ts +13 -0
  35. package/publish/esm/components/RadioGroup/RadioGroup.js +26 -0
  36. package/publish/esm/components/RadioGroup/index.d.ts +1 -0
  37. package/publish/esm/components/RadioGroup/index.js +1 -0
  38. package/publish/esm/components/Select/Select.d.ts +8 -2
  39. package/publish/esm/components/Select/Select.js +33 -11
  40. package/publish/esm/components/Switch/Switch.d.ts +4 -0
  41. package/publish/esm/components/Switch/Switch.js +7 -0
  42. package/publish/esm/components/Switch/index.d.ts +1 -0
  43. package/publish/esm/components/Switch/index.js +1 -0
  44. package/publish/esm/components/TextArea/TextArea.js +6 -6
  45. package/publish/esm/components/TextInput/TextInput.js +6 -6
  46. package/publish/esm/index.d.ts +5 -0
  47. package/publish/esm/index.js +5 -0
  48. package/publish/esm/mobase-tw-plugin/colors/blue.js +11 -11
  49. package/publish/esm/mobase-tw-plugin/colors/green.js +11 -11
  50. package/publish/esm/mobase-tw-plugin/colors/orange.js +11 -11
  51. package/publish/esm/mobase-tw-plugin/colors/pink.js +8 -8
  52. package/publish/esm/mobase-tw-plugin/colors/purple.js +9 -9
  53. package/publish/esm/mobase-tw-plugin/colors/red.js +9 -9
  54. package/publish/esm/mobase-tw-plugin/colors/yellow.js +11 -11
  55. package/publish/esm/mobase-tw-plugin/plugin.js +20 -0
  56. 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.25",
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,62 @@
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.NavigationMenuViewport = exports.NavigationMenuIndicator = exports.NavigationMenuLink = exports.NavigationMenuTrigger = exports.NavigationMenuContent = exports.NavigationMenuItem = exports.NavigationMenuList = exports.NavigationMenu = exports.navigationMenuTriggerStyle = void 0;
27
+ const jsx_runtime_1 = require("react/jsx-runtime");
28
+ const React = __importStar(require("react"));
29
+ const solid_1 = require("@heroicons/react/16/solid");
30
+ const NavigationMenuPrimitive = __importStar(require("@radix-ui/react-navigation-menu"));
31
+ const class_variance_authority_1 = require("class-variance-authority");
32
+ const Button_1 = require("../Button/Button");
33
+ const utils_1 = require("../../helpers/utils");
34
+ const NavigationMenu = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(NavigationMenuPrimitive.Root, { ref: ref, className: (0, utils_1.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(NavigationMenuViewport, {})] })));
35
+ exports.NavigationMenu = NavigationMenu;
36
+ NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
37
+ const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.List, { ref: ref, className: (0, utils_1.cn)("group flex flex-1 list-none items-center justify-center ", className), ...props })));
38
+ exports.NavigationMenuList = NavigationMenuList;
39
+ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
40
+ const NavigationMenuItem = NavigationMenuPrimitive.Item;
41
+ exports.NavigationMenuItem = NavigationMenuItem;
42
+ const navigationMenuTriggerStyle = (0, class_variance_authority_1.cva)((0, Button_1.buttonVariants)({
43
+ variant: "transparent",
44
+ size: "sm",
45
+ }));
46
+ exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
47
+ const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(NavigationMenuPrimitive.Trigger, { ref: ref, className: (0, utils_1.cn)(navigationMenuTriggerStyle(), "group", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(solid_1.ChevronDownIcon, { className: "relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180", "aria-hidden": "true" })] })));
48
+ exports.NavigationMenuTrigger = NavigationMenuTrigger;
49
+ NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
50
+ const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Content, { ref: ref, className: (0, utils_1.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", className), ...props })));
51
+ exports.NavigationMenuContent = NavigationMenuContent;
52
+ NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
53
+ const NavigationMenuLink = NavigationMenuPrimitive.Link;
54
+ exports.NavigationMenuLink = NavigationMenuLink;
55
+ const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("absolute left-0 top-full flex justify-center"), children: (0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Viewport, { className: (0, utils_1.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-white text-gray-900 shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", className), ref: ref, ...props }) })));
56
+ exports.NavigationMenuViewport = NavigationMenuViewport;
57
+ NavigationMenuViewport.displayName =
58
+ NavigationMenuPrimitive.Viewport.displayName;
59
+ const NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Indicator, { ref: ref, className: (0, utils_1.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className), ...props, children: (0, jsx_runtime_1.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" }) })));
60
+ exports.NavigationMenuIndicator = NavigationMenuIndicator;
61
+ NavigationMenuIndicator.displayName =
62
+ NavigationMenuPrimitive.Indicator.displayName;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.navigationMenuTriggerStyle = exports.NavigationMenuViewport = exports.NavigationMenuIndicator = exports.NavigationMenuLink = exports.NavigationMenuTrigger = exports.NavigationMenuContent = exports.NavigationMenuItem = exports.NavigationMenuList = exports.NavigationMenu = void 0;
4
+ var NavigationMenu_1 = require("./NavigationMenu");
5
+ Object.defineProperty(exports, "NavigationMenu", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenu; } });
6
+ Object.defineProperty(exports, "NavigationMenuList", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuList; } });
7
+ Object.defineProperty(exports, "NavigationMenuItem", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuItem; } });
8
+ Object.defineProperty(exports, "NavigationMenuContent", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuContent; } });
9
+ Object.defineProperty(exports, "NavigationMenuTrigger", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuTrigger; } });
10
+ Object.defineProperty(exports, "NavigationMenuLink", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuLink; } });
11
+ Object.defineProperty(exports, "NavigationMenuIndicator", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuIndicator; } });
12
+ Object.defineProperty(exports, "NavigationMenuViewport", { enumerable: true, get: function () { return NavigationMenu_1.NavigationMenuViewport; } });
13
+ Object.defineProperty(exports, "navigationMenuTriggerStyle", { enumerable: true, get: function () { return NavigationMenu_1.navigationMenuTriggerStyle; } });
@@ -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; } });
@@ -0,0 +1,53 @@
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.RadioGroupItem = exports.RadioGroup = void 0;
27
+ const jsx_runtime_1 = require("react/jsx-runtime");
28
+ const React = __importStar(require("react"));
29
+ const RadioGroupPrimitive = __importStar(require("@radix-ui/react-radio-group"));
30
+ const lucide_react_1 = require("lucide-react");
31
+ const utils_1 = require("../../helpers/utils");
32
+ const class_variance_authority_1 = require("class-variance-authority");
33
+ const radioGroupVariants = (0, class_variance_authority_1.cva)("grid cursor-pointer gap-2 text-gray-900 text-sm", {
34
+ variants: {
35
+ orientation: {
36
+ horizontal: "grid-cols-2",
37
+ vertical: "grid-cols-1",
38
+ },
39
+ },
40
+ defaultVariants: {
41
+ orientation: "vertical",
42
+ },
43
+ });
44
+ const RadioGroup = React.forwardRef(({ disabled, orientation, className, ...props }, ref) => {
45
+ return ((0, jsx_runtime_1.jsx)(RadioGroupPrimitive.Root, { className: (0, utils_1.cn)("", radioGroupVariants({ orientation }), className), ...props, ref: ref }));
46
+ });
47
+ exports.RadioGroup = RadioGroup;
48
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
49
+ const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
50
+ return ((0, jsx_runtime_1.jsx)(RadioGroupPrimitive.Item, { ref: ref, className: (0, utils_1.cn)("aspect-square h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40", className), ...props, children: (0, jsx_runtime_1.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center w-full h-full rounded-full ", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Circle, { className: "h-2 w-2 fill-current text-current" }) }) }));
51
+ });
52
+ exports.RadioGroupItem = RadioGroupItem;
53
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RadioGroupItem = exports.RadioGroup = void 0;
4
+ var RadioGroup_1 = require("./RadioGroup");
5
+ Object.defineProperty(exports, "RadioGroup", { enumerable: true, get: function () { return RadioGroup_1.RadioGroup; } });
6
+ Object.defineProperty(exports, "RadioGroupItem", { enumerable: true, get: function () { return RadioGroup_1.RadioGroupItem; } });
@@ -27,35 +27,57 @@ exports.SelectScrollDownButton = exports.SelectScrollUpButton = exports.SelectSe
27
27
  const jsx_runtime_1 = require("react/jsx-runtime");
28
28
  const React = __importStar(require("react"));
29
29
  const solid_1 = require("@heroicons/react/16/solid");
30
+ const outline_1 = require("@heroicons/react/24/outline");
31
+ const solid_2 = require("@heroicons/react/24/solid");
30
32
  const SelectPrimitive = __importStar(require("@radix-ui/react-select"));
31
33
  const utils_1 = require("../../helpers/utils");
32
- const Select = SelectPrimitive.Root;
34
+ const Select = React.forwardRef(({ className, children, label, message, size, isError, disabled, ...props }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("select-mobase relative", className, disabled ? "disabled" : "", isError ? "is-error" : "", size === "lg" ? "select-size-lg" : ""), children: [label && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs", size === "lg" && "text-sm -top-2.5", isError ? "text-red-500" : "text-gray-500"), children: label })), (0, jsx_runtime_1.jsx)(SelectPrimitive.Root, { disabled: disabled, ...props, children: children }), message && ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("mobase-select-message flex space-x-1 items-center mt-1", isError ? "text-red-500" : "text-gray-500"), children: [isError ? ((0, jsx_runtime_1.jsx)(solid_2.XCircleIcon, { width: 16, height: 16 })) : ((0, jsx_runtime_1.jsx)(outline_1.QuestionMarkCircleIcon, { width: 16, height: 16 })), (0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)(size === "lg" ? "text-sm" : "text-xs"), children: message })] })), (0, jsx_runtime_1.jsx)("style", { children: `
35
+ .select-mobase.disabled{
36
+ .mobase-select-label,.mobase-select-message {
37
+ color: rgb(var(--mobase-gray-400) / var(--tw-text-opacity));
38
+ }
39
+ }
40
+ .select-mobase.select-size-lg {
41
+ .select-mobase-button {
42
+ font-size: var(--mobase-font-size-base);
43
+ line-height: 1.25rem;
44
+ height: var(--mobase-spacing-unit-12);
45
+ }
46
+ }
47
+ .select-mobase.is-error {
48
+ .select-mobase-button {
49
+ box-shadow: 0px 0px 0px 1px rgb(var(--mobase-red-500) / 1) inset;
50
+ border-color: rgb(var(--mobase-red-500) / 1);
51
+ }
52
+ }
53
+ ` })] })));
33
54
  exports.Select = Select;
34
- const SelectGroup = SelectPrimitive.Group;
35
- exports.SelectGroup = SelectGroup;
36
55
  const SelectValue = SelectPrimitive.Value;
37
56
  exports.SelectValue = SelectValue;
38
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(SelectPrimitive.Trigger, { ref: ref, className: (0, utils_1.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-gray-500 focus:outline-none focus:ring-1 focus:ring-pink-200 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 text-gray-900", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(SelectPrimitive.Icon, { asChild: true, children: (0, jsx_runtime_1.jsx)(solid_1.ChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })] })));
57
+ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(SelectPrimitive.Trigger, { ref: ref, className: (0, utils_1.cn)("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-0 rounded border border-gray-400 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-300 disabled:text-gray-500 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm", className), ...props, children: [(0, jsx_runtime_1.jsx)("div", { className: "line-clamp-1 text-left", children: children }), (0, jsx_runtime_1.jsx)(SelectPrimitive.Icon, { asChild: true, children: (0, jsx_runtime_1.jsx)(solid_1.ChevronDownIcon, { className: "h-4 w-4 text-gray-700 flex-none" }) })] })));
39
58
  exports.SelectTrigger = SelectTrigger;
40
59
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
41
- const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.ScrollUpButton, { ref: ref, className: (0, utils_1.cn)("flex cursor-default items-center justify-center py-1", className), ...props, children: (0, jsx_runtime_1.jsx)(solid_1.ChevronUpIcon, {}) })));
60
+ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.ScrollUpButton, { ref: ref, className: (0, utils_1.cn)("flex cursor-default items-center justify-center py-1", className), ...props, children: (0, jsx_runtime_1.jsx)(solid_1.ChevronUpIcon, { className: "h-5 w-5" }) })));
42
61
  exports.SelectScrollUpButton = SelectScrollUpButton;
43
62
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
44
- const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.ScrollDownButton, { ref: ref, className: (0, utils_1.cn)("flex cursor-default items-center justify-center py-1", className), ...props, children: (0, jsx_runtime_1.jsx)(solid_1.ChevronDownIcon, {}) })));
63
+ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.ScrollDownButton, { ref: ref, className: (0, utils_1.cn)("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent", className), ...props, children: (0, jsx_runtime_1.jsx)(solid_1.ChevronDownIcon, { className: "h-5 w-5" }) })));
45
64
  exports.SelectScrollDownButton = SelectScrollDownButton;
46
65
  SelectScrollDownButton.displayName =
47
66
  SelectPrimitive.ScrollDownButton.displayName;
48
- const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Portal, { children: (0, jsx_runtime_1.jsxs)(SelectPrimitive.Content, { ref: ref, className: (0, utils_1.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" &&
49
- "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), position: position, ...props, children: [(0, jsx_runtime_1.jsx)(SelectScrollUpButton, {}), (0, jsx_runtime_1.jsx)(SelectPrimitive.Viewport, { className: (0, utils_1.cn)("p-1", position === "popper" &&
50
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"), children: children }), (0, jsx_runtime_1.jsx)(SelectScrollDownButton, {})] }) })));
67
+ const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Portal, { children: (0, jsx_runtime_1.jsxs)(SelectPrimitive.Content, { ref: ref, className: (0, utils_1.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" &&
68
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), position: position, ...props, children: [(0, jsx_runtime_1.jsx)(SelectScrollUpButton, {}), (0, jsx_runtime_1.jsx)(SelectPrimitive.Viewport, { className: (0, utils_1.cn)("p-0", position === "popper" &&
69
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] max-w-[var(--radix-select-trigger-width)]"), children: children }), (0, jsx_runtime_1.jsx)(SelectScrollDownButton, {})] }) })));
51
70
  exports.SelectContent = SelectContent;
52
71
  SelectContent.displayName = SelectPrimitive.Content.displayName;
53
- const SelectLabel = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Label, { ref: ref, className: (0, utils_1.cn)("px-2 py-1.5 text-sm font-semibold", className), ...props })));
72
+ const SelectGroup = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Group, { ref: ref, className: (0, utils_1.cn)("relative p-1 after:w-full border-b border-gray-200 last:border-0", className), ...props, children: children })));
73
+ exports.SelectGroup = SelectGroup;
74
+ const SelectLabel = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Label, { ref: ref, className: (0, utils_1.cn)("pr-2 pl-8 py-1.5 text-sm font-semibold", className), ...props })));
54
75
  exports.SelectLabel = SelectLabel;
55
76
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
56
- const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(SelectPrimitive.Item, { ref: ref, className: (0, utils_1.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props, children: [(0, jsx_runtime_1.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: (0, jsx_runtime_1.jsx)(SelectPrimitive.ItemIndicator, { children: (0, jsx_runtime_1.jsx)(solid_1.CheckIcon, { className: "h-4 w-4" }) }) }), (0, jsx_runtime_1.jsx)(SelectPrimitive.ItemText, { children: children })] })));
77
+ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => {
78
+ return ((0, jsx_runtime_1.jsxs)(SelectPrimitive.Item, { ref: ref, className: (0, utils_1.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props, children: [(0, jsx_runtime_1.jsx)("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: (0, jsx_runtime_1.jsx)(SelectPrimitive.ItemIndicator, { children: (0, jsx_runtime_1.jsx)(solid_1.CheckIcon, { className: "h-4 w-4" }) }) }), (0, jsx_runtime_1.jsx)(SelectPrimitive.ItemText, { children: children })] }));
79
+ });
57
80
  exports.SelectItem = SelectItem;
58
- SelectItem.displayName = SelectPrimitive.Item.displayName;
59
81
  const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Separator, { ref: ref, className: (0, utils_1.cn)("-mx-1 my-1 h-px bg-muted", className), ...props })));
60
82
  exports.SelectSeparator = SelectSeparator;
61
83
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
@@ -0,0 +1,33 @@
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.Switch = void 0;
27
+ const jsx_runtime_1 = require("react/jsx-runtime");
28
+ const React = __importStar(require("react"));
29
+ const SwitchPrimitives = __importStar(require("@radix-ui/react-switch"));
30
+ const utils_1 = require("../../helpers/utils");
31
+ 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") }) })));
32
+ exports.Switch = Switch;
33
+ Switch.displayName = SwitchPrimitives.Root.displayName;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Switch = void 0;
4
+ var Switch_1 = require("./Switch");
5
+ Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return Switch_1.Switch; } });
@@ -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,9 +20,14 @@ __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);
26
27
  __exportStar(require("./components/Tooltip"), exports);
27
28
  __exportStar(require("./components/TextInput"), exports);
29
+ __exportStar(require("./components/Select"), exports);
30
+ __exportStar(require("./components/NavigationMenu"), exports);
31
+ __exportStar(require("./components/Switch"), exports);
32
+ __exportStar(require("./components/RadioGroup"), exports);
28
33
  __exportStar(require("./mobase-tw-plugin"), 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: "#fef1f9",
6
+ 100: "#fee5f6",
7
+ 200: "#fecced",
8
+ 300: "#ffa2df",
9
+ 400: "#fe68c6",
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
  };