Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: mes app
Brad Barbinfcc0f9711f41
diff --git a/README.md b/README.mdindex 6daee4c6b0..6323f462b6 100644--- a/README.md+++ b/README.md@@ -4,9 +4,9 @@</a></p>-# Carbon ERP+# CarbonOS-Carbon is a high performance, open-source, single tenant (incomplete) ERP written in Typescript. It allows customers, suppliers, and employees to share a common platform that's easy to integrate with.+Carbon is the operating system for manufacturing written in Typescript. It allows customers, suppliers, and employees to share a common platform that's easy to integrate with.Technical highlights/roadmap:@@ -62,6 +62,7 @@ The monorepo follows the Turborepo convention of grouping packages into one of t| ------------ | --------------- | --------------------- || `carbon` | ERP Application | `npm run dev` || `docs` | Documentation | `npm run dev:docs` |+| `mes` | MES | `npm run dev:mes` || `website` | Website | `npm run dev:website` |### `/packages`@@ -86,7 +87,8 @@ After installation you should be able to access the following apps/containers lo| Application | URL || --------------- | ------------------------------------------------------------------------------------------------------------------ |-| Carbon ERP | [http://localhost:3000](http://localhost:3000) |+| ERP | [http://localhost:3000](http://localhost:3000) |+| MES | [http://localhost:4000](http://localhost:4000) || Postgres | [postgresql://postgres:postgres@localhost:54322/postgres](postgresql://postgres:postgres@localhost:54322/postgres) || Supabase Studio | [http://localhost:54323/project/default](http://localhost:54323/project/default) || Inbucket | [http://localhost:54324/monitor](http://localhost:54324/monitor) |diff --git a/apps/carbon/app/root.tsx b/apps/carbon/app/root.tsxindex 118962dad5..3b15dce44d 100644--- a/apps/carbon/app/root.tsx+++ b/apps/carbon/app/root.tsx@@ -41,7 +41,7 @@ export function links() {export const meta: MetaFunction = () => {return [{- title: "Carbon ERP",+ title: "CarbonOS",},];};@@ -94,7 +94,7 @@ export async function action({ request }: ActionFunctionArgs) {function Document({children,- title = "Carbon ERP",+ title = "CarbonOS",mode = "dark",}: {children: React.ReactNode;diff --git a/apps/carbon/app/routes/onboarding+/_index.tsx b/apps/carbon/app/routes/onboarding+/_index.tsxindex 6402f0597e..6cc2a0a40e 100644--- a/apps/carbon/app/routes/onboarding+/_index.tsx+++ b/apps/carbon/app/routes/onboarding+/_index.tsx@@ -37,14 +37,14 @@ export default function GetStarted() {size="display"className="m-0">- Welcome to Carbon ERP+ Welcome to CarbonOS</Heading><motion.p{...fade}transition={{ duration: 1.4, ease: "easeInOut", delay: 1.9 }}className="text-muted-foreground text-sm pb-4">- Carbon is an open-source ERP for manufacturing+ CarbonOS is the operating system for manufacturing</motion.p><Buttondiff --git a/apps/docs/components/Home/components/features.tsx b/apps/docs/components/Home/components/features.tsxindex 84183b3088..bbdccf07b3 100644--- a/apps/docs/components/Home/components/features.tsx+++ b/apps/docs/components/Home/components/features.tsx@@ -2,7 +2,6 @@ import React from "react";import { BsLightningCharge } from "react-icons/bs";import { GiSpeedometer } from "react-icons/gi";import { GoSync } from "react-icons/go";-import { HiCode, HiFingerPrint } from "react-icons/hi";import { TbBuildingFactory2 } from "react-icons/tb";import { useGlowPointer } from "../../../hooks/useGlowPointer";@@ -19,12 +18,7 @@ const features = [description:"Built on best open-source technologies for incredible performance and security.",},- {- name: "Open Core",- icon: HiCode,- description:- "Unlike other open-source ERPs, you can use Carbon to build your own proprietary systems.",- },+{name: "Serverless Architecture",icon: GoSync,@@ -41,12 +35,6 @@ const features = [icon: TbBuildingFactory2,description: "Carbon has first-class support for American manufacturing.",},- {- name: "Single Tenant",- icon: HiFingerPrint,- description:- "You're not sharing databases with other companies. Your data is yours.",- },] as const;function Features({ showIcons = false }) {diff --git a/apps/docs/components/Learn/LoomDemo.tsx b/apps/docs/components/Learn/LoomDemo.tsxindex 9d5ca9eb57..020719a748 100644--- a/apps/docs/components/Learn/LoomDemo.tsx+++ b/apps/docs/components/Learn/LoomDemo.tsx@@ -10,7 +10,7 @@ const LoomDemo = () => {}}><iframe- title="Carbon ERP Walkthrough"+ title="CarbonOS Walkthrough"src="https://www.loom.com/share/7eb03a5e4d4d4836b34f173805fb7403?sid=7ed308d0-8d59-4230-a3f1-137aae3c24da"frameBorder={0}allowFullScreendiff --git a/apps/docs/pages/core-concepts/fetching.mdx b/apps/docs/pages/core-concepts/fetching.mdxindex 4bde6f4023..8875c9e8f6 100644--- a/apps/docs/pages/core-concepts/fetching.mdx+++ b/apps/docs/pages/core-concepts/fetching.mdx@@ -1,6 +1,6 @@----title: Data Fetching in Carbon ERP-description: Conventions for fetching data in Carbon ERP+title: Data Fetching in CarbonOS+description: Conventions for fetching data in CarbonOS---import { Callout, Tab, Tabs } from "nextra-theme-docs";diff --git a/apps/docs/pages/core-concepts/permissions.mdx b/apps/docs/pages/core-concepts/permissions.mdxindex 9759c3dcfc..21a3e5a072 100644--- a/apps/docs/pages/core-concepts/permissions.mdx+++ b/apps/docs/pages/core-concepts/permissions.mdx@@ -1,6 +1,6 @@----title: Permissions in Carbon ERP-description: Conventions for permissions in Carbon ERP+title: Permissions in CarbonOS+description: Conventions for permissions in CarbonOS---# Permissionsdiff --git a/apps/docs/pages/core-concepts/realtime.mdx b/apps/docs/pages/core-concepts/realtime.mdxindex 3ed5564cb4..6c26d53062 100644--- a/apps/docs/pages/core-concepts/realtime.mdx+++ b/apps/docs/pages/core-concepts/realtime.mdx@@ -1,11 +1,11 @@----title: Realtime in Carbon ERP-description: Conventions for using realtime data in Carbon ERP+title: Realtime in CarbonOS+description: Conventions for using realtime data in CarbonOS---# Realtime-There are two basic use cases for realtime data in Carbon ERP:+There are two basic use cases for realtime data in CarbonOS:1. Listening for async events to complete2. Minimizing the number of requests for popular datadiff --git a/apps/docs/pages/core-concepts/serverless.mdx b/apps/docs/pages/core-concepts/serverless.mdxindex 8dd639c709..729e833e86 100644--- a/apps/docs/pages/core-concepts/serverless.mdx+++ b/apps/docs/pages/core-concepts/serverless.mdx@@ -1,6 +1,6 @@----title: Serverless Architecture in Carbon ERP-description: Overview of serverless infrastructure in Carbon ERP+title: Serverless Architecture in CarbonOS+description: Overview of serverless infrastructure in CarbonOS---# Serverless Architecturediff --git a/apps/docs/pages/core-concepts/transactions.mdx b/apps/docs/pages/core-concepts/transactions.mdxindex 936f432a24..5e671a9867 100644--- a/apps/docs/pages/core-concepts/transactions.mdx+++ b/apps/docs/pages/core-concepts/transactions.mdx@@ -1,6 +1,6 @@----title: Realtime in Carbon ERP-description: Conventions for database transactions in Carbon ERP+title: Realtime in CarbonOS+description: Conventions for database transactions in CarbonOS---# Transactionsdiff --git a/apps/docs/pages/core-concepts/writing.mdx b/apps/docs/pages/core-concepts/writing.mdxindex fbd00df4ff..0a5c79d408 100644--- a/apps/docs/pages/core-concepts/writing.mdx+++ b/apps/docs/pages/core-concepts/writing.mdx@@ -1,6 +1,6 @@----title: Data Writes in Carbon ERP-description: Conventions for mutating data in Carbon ERP+title: Data Writes in CarbonOS+description: Conventions for mutating data in CarbonOS---import { Callout } from "nextra-theme-docs";diff --git a/apps/docs/pages/getting-started.mdx b/apps/docs/pages/getting-started.mdxindex 1d031a282c..0443bf4288 100644--- a/apps/docs/pages/getting-started.mdx+++ b/apps/docs/pages/getting-started.mdx@@ -1,6 +1,6 @@----title: Getting started with Carbon ERP-description: Carbon is a high-performance, open-source ERP+title: Getting started with CarbonOS+description: Carbon is a high-performance operating system for manufacturing---# Getting Started@@ -13,7 +13,7 @@ After running the steps below you should be able to access the following apps/co| Application | URL || --------------- | ------------------------------------------------------------------------------------------------------------------ |-| Carbon ERP | [http://localhost:3000](http://localhost:3000) |+| CarbonOS | [http://localhost:3000](http://localhost:3000) || Postgres | [postgresql://postgres:postgres@localhost:54322/postgres](postgresql://postgres:postgres@localhost:54322/postgres) || Supabase Studio | [http://localhost:54323/project/default](http://localhost:54323/project/default) || Inbucket | [http://localhost:54324/monitor](http://localhost:54324/monitor) |diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdxindex fbcbded1c5..70e43a6025 100644--- a/apps/docs/pages/index.mdx+++ b/apps/docs/pages/index.mdx@@ -1,5 +1,5 @@----title: Carbon ERP Tech Stack+title: CarbonOS Tech Stackdescription: TypeScript, React, shadcn, Remix, Supabase---diff --git a/apps/docs/pages/principles.mdx b/apps/docs/pages/principles.mdxindex 5d95fb225f..7f7c1abc87 100644--- a/apps/docs/pages/principles.mdx+++ b/apps/docs/pages/principles.mdx@@ -1,6 +1,6 @@----title: Carbon ERP Principles-description: Simplicity, extensibility, openness, and productivity are the four principles that guide the development of Carbon ERP.+title: CarbonOS Principles+description: Simplicity, extensibility, openness, and productivity are the four principles that guide the development of CarbonOS.---# Principles@@ -9,8 +9,7 @@ Decision-making is guided by four principles:1. Simplicity2. Extensibility-3. Openness-4. Productivity+3. Productivity## Simplicity@@ -36,17 +35,6 @@ To provide extensibility we have the following goals:- Easy to add custom database tables- Easy to add modules and interfaces to the primary application-## Openness--The ERP system is the heart of a business' digital operation. We want to make sure that they can easily integrate with other systems and customize it in any way that they need. **The only real way to do this that to make the source code available and free to modify**.--An open source ERP system has a number of benefits, including:--- Greater long-term stability-- Greater flexibility-- Lower costs-- Better security-## ProductivityWhen making decisions, we aim to **optimize for long-term developer productivity**. We take it as a given that everyone wants more features. But in order to quickly provide new features over time, we need to make sure that the platform is easy to use and maintain.diff --git a/apps/docs/public/grid.svg b/apps/docs/public/grid.svgindex 76e3b29f0d..d9dc0423ed 100644--- a/apps/docs/public/grid.svg+++ b/apps/docs/public/grid.svg@@ -1,5 +1,5 @@-<svg id="download" xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path id="Path_3" data-name="Path 3" d="M96,95h4v1H96v4H95V96H86v4H85V96H76v4H75V96H66v4H65V96H56v4H55V96H46v4H45V96H36v4H35V96H26v4H25V96H16v4H15V96H0V95H15V86H0V85H15V76H0V75H15V66H0V65H15V56H0V55H15V46H0V45H15V36H0V35H15V26H0V25H15V16H0V15H15V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96Zm-1,0V86H86v9ZM85,95V86H76v9ZM75,95V86H66v9ZM65,95V86H56v9ZM55,95V86H46v9ZM45,95V86H36v9ZM35,95V86H26v9ZM25,95V86H16v9ZM16,85h9V76H16Zm10,0h9V76H26Zm10,0h9V76H36Zm10,0h9V76H46Zm10,0h9V76H56Zm10,0h9V76H66Zm10,0h9V76H76Zm10,0h9V76H86Zm9-10V66H86v9ZM85,75V66H76v9ZM75,75V66H66v9ZM65,75V66H56v9ZM55,75V66H46v9ZM45,75V66H36v9ZM35,75V66H26v9ZM25,75V66H16v9ZM16,65h9V56H16Zm10,0h9V56H26Zm10,0h9V56H36Zm10,0h9V56H46Zm10,0h9V56H56Zm10,0h9V56H66Zm10,0h9V56H76Zm10,0h9V56H86Zm9-10V46H86v9ZM85,55V46H76v9ZM75,55V46H66v9ZM65,55V46H56v9ZM55,55V46H46v9ZM45,55V46H36v9ZM35,55V46H26v9ZM25,55V46H16v9ZM16,45h9V36H16Zm10,0h9V36H26Zm10,0h9V36H36Zm10,0h9V36H46Zm10,0h9V36H56Zm10,0h9V36H66Zm10,0h9V36H76Zm10,0h9V36H86Zm9-10V26H86v9ZM85,35V26H76v9ZM75,35V26H66v9ZM65,35V26H56v9ZM55,35V26H46v9ZM45,35V26H36v9ZM35,35V26H26v9ZM25,35V26H16v9ZM16,25h9V16H16Zm10,0h9V16H26Zm10,0h9V16H36Zm10,0h9V16H46Zm10,0h9V16H56Zm10,0h9V16H66Zm10,0h9V16H76Zm10,0h9V16H86Z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd" opacity="0.5"/><path id="Path_4" data-name="Path 4" d="M6,5V0H5V5H0V6H5v94H6V6h94V5Z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd"/></svg>diff --git a/apps/docs/theme.config.js b/apps/docs/theme.config.jsindex 6425056867..d65ffa5d23 100644--- a/apps/docs/theme.config.js+++ b/apps/docs/theme.config.js@@ -27,7 +27,7 @@ export default {},darkMode: true,footer: {- text: `Carbon ERP ${new Date().getFullYear()}. All rights reserved.`,+ text: `CarbonOS ${new Date().getFullYear()}. All rights reserved.`,},editLink: {text: `View this page on GitHub`,@@ -52,7 +52,7 @@ export default {),useNextSeoProps() {return {- titleTemplate: "%s – Carbon ERP",+ titleTemplate: "%s – CarbonOS",};},};diff --git a/apps/mes/.env.example b/apps/mes/.env.examplenew file mode 100644index 0000000000..246c84fac6--- /dev/null+++ b/apps/mes/.env.example@@ -0,0 +1,2 @@+VITE_SUPABASE_ANON_KEY="******************"+VITE_SUPABASE_URL="http://localhost:54321"\ No newline at end of filediff --git a/apps/mes/.eslintrc.cjs b/apps/mes/.eslintrc.cjsnew file mode 100644index 0000000000..0cc3ea7134--- /dev/null+++ b/apps/mes/.eslintrc.cjs@@ -0,0 +1,7 @@+module.exports = {+ root: true,+ env: { browser: true, es2020: true },+ extends: ["carbon"],+ ignorePatterns: ["dist", ".eslintrc.cjs"],+ parser: "@typescript-eslint/parser",+};diff --git a/apps/mes/.gitignore b/apps/mes/.gitignorenew file mode 100644index 0000000000..a547bf36d8--- /dev/null+++ b/apps/mes/.gitignore@@ -0,0 +1,24 @@+# Logs+logs+*.log+npm-debug.log*+yarn-debug.log*+yarn-error.log*+pnpm-debug.log*+lerna-debug.log*++node_modules+dist+dist-ssr+*.local++# Editor directories and files+.vscode/*+!.vscode/extensions.json+.idea+.DS_Store+*.suo+*.ntvs*+*.njsproj+*.sln+*.sw?diff --git a/apps/mes/index.html b/apps/mes/index.htmlnew file mode 100644index 0000000000..876ec45862--- /dev/null+++ b/apps/mes/index.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>CarbonOS - MES</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/apps/mes/package.json b/apps/mes/package.jsonnew file mode 100644index 0000000000..99af6137da--- /dev/null+++ b/apps/mes/package.json@@ -0,0 +1,38 @@+{+ "name": "mes",+ "private": true,+ "version": "0.0.0",+ "type": "module",+ "scripts": {+ "dev": "vite",+ "build": "tsc && vite build",+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",+ "preview": "vite preview"+ },+ "dependencies": {+ "@carbon/database": "*",+ "@carbon/react": "*",+ "@carbon/react-hook-form": "*",+ "@carbon/tsconfig": "*",+ "@supabase/supabase-js": "^2.40.0",+ "localforage": "^1.10.0",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-icons": "^4.12.0",+ "react-router-dom": "^6.23.1"+ },+ "devDependencies": {+ "@types/react": "^18.2.66",+ "@types/react-dom": "^18.2.22",+ "@typescript-eslint/eslint-plugin": "^7.2.0",+ "@typescript-eslint/parser": "^7.2.0",+ "@vitejs/plugin-react": "^4.2.1",+ "autoprefixer": "^10.4.14",+ "eslint": "^8.57.0",+ "eslint-config-carbon": "*",+ "postcss": "^8.4.33",+ "tailwindcss": "^3.3.2",+ "typescript": "^5.2.2",+ "vite": "^5.2.0"+ }+}diff --git a/apps/mes/postcss.config.js b/apps/mes/postcss.config.jsnew file mode 100644index 0000000000..2aa7205d4b--- /dev/null+++ b/apps/mes/postcss.config.js@@ -0,0 +1,6 @@+export default {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+};diff --git a/apps/mes/public/favicon.ico b/apps/mes/public/favicon.iconew file mode 100644index 0000000000..ce92de6710Binary files /dev/null and b/apps/mes/public/favicon.ico differdiff --git a/apps/mes/public/fonts/Geist-Black.woff2 b/apps/mes/public/fonts/Geist-Black.woff2new file mode 100644index 0000000000..c8230cbc68Binary files /dev/null and b/apps/mes/public/fonts/Geist-Black.woff2 differdiff --git a/apps/mes/public/fonts/Geist-Bold.woff2 b/apps/mes/public/fonts/Geist-Bold.woff2new file mode 100644index 0000000000..d0562e48ecBinary files /dev/null and b/apps/mes/public/fonts/Geist-Bold.woff2 differdiff --git a/apps/mes/public/fonts/Geist-Light.woff2 b/apps/mes/public/fonts/Geist-Light.woff2new file mode 100644index 0000000000..56611204f7Binary files /dev/null and b/apps/mes/public/fonts/Geist-Light.woff2 differdiff --git a/apps/mes/public/fonts/Geist-Medium.woff2 b/apps/mes/public/fonts/Geist-Medium.woff2new file mode 100644index 0000000000..76edd10515Binary files /dev/null and b/apps/mes/public/fonts/Geist-Medium.woff2 differdiff --git a/apps/mes/public/fonts/Geist-Regular.woff2 b/apps/mes/public/fonts/Geist-Regular.woff2new file mode 100644index 0000000000..2ebd0097e7Binary files /dev/null and b/apps/mes/public/fonts/Geist-Regular.woff2 differdiff --git a/apps/mes/public/fonts/Geist-SemiBold.woff2 b/apps/mes/public/fonts/Geist-SemiBold.woff2new file mode 100644index 0000000000..a6c53e8b06Binary files /dev/null and b/apps/mes/public/fonts/Geist-SemiBold.woff2 differdiff --git a/apps/mes/public/fonts/Geist-UltraBlack.woff2 b/apps/mes/public/fonts/Geist-UltraBlack.woff2new file mode 100644index 0000000000..198caeadc9Binary files /dev/null and b/apps/mes/public/fonts/Geist-UltraBlack.woff2 differdiff --git a/apps/mes/public/fonts/Geist-UltraLight.woff2 b/apps/mes/public/fonts/Geist-UltraLight.woff2new file mode 100644index 0000000000..541685251aBinary files /dev/null and b/apps/mes/public/fonts/Geist-UltraLight.woff2 differdiff --git a/apps/mes/public/grid.svg b/apps/mes/public/grid.svgnew file mode 100644index 0000000000..d9dc0423ed--- /dev/null+++ b/apps/mes/public/grid.svg@@ -0,0 +1,5 @@++<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">+ <path id="Path_3" data-name="Path 3" d="M96,95h4v1H96v4H95V96H86v4H85V96H76v4H75V96H66v4H65V96H56v4H55V96H46v4H45V96H36v4H35V96H26v4H25V96H16v4H15V96H0V95H15V86H0V85H15V76H0V75H15V66H0V65H15V56H0V55H15V46H0V45H15V36H0V35H15V26H0V25H15V16H0V15H15V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h9V0h1V15h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96v9h4v1H96Zm-1,0V86H86v9ZM85,95V86H76v9ZM75,95V86H66v9ZM65,95V86H56v9ZM55,95V86H46v9ZM45,95V86H36v9ZM35,95V86H26v9ZM25,95V86H16v9ZM16,85h9V76H16Zm10,0h9V76H26Zm10,0h9V76H36Zm10,0h9V76H46Zm10,0h9V76H56Zm10,0h9V76H66Zm10,0h9V76H76Zm10,0h9V76H86Zm9-10V66H86v9ZM85,75V66H76v9ZM75,75V66H66v9ZM65,75V66H56v9ZM55,75V66H46v9ZM45,75V66H36v9ZM35,75V66H26v9ZM25,75V66H16v9ZM16,65h9V56H16Zm10,0h9V56H26Zm10,0h9V56H36Zm10,0h9V56H46Zm10,0h9V56H56Zm10,0h9V56H66Zm10,0h9V56H76Zm10,0h9V56H86Zm9-10V46H86v9ZM85,55V46H76v9ZM75,55V46H66v9ZM65,55V46H56v9ZM55,55V46H46v9ZM45,55V46H36v9ZM35,55V46H26v9ZM25,55V46H16v9ZM16,45h9V36H16Zm10,0h9V36H26Zm10,0h9V36H36Zm10,0h9V36H46Zm10,0h9V36H56Zm10,0h9V36H66Zm10,0h9V36H76Zm10,0h9V36H86Zm9-10V26H86v9ZM85,35V26H76v9ZM75,35V26H66v9ZM65,35V26H56v9ZM55,35V26H46v9ZM45,35V26H36v9ZM35,35V26H26v9ZM25,35V26H16v9ZM16,25h9V16H16Zm10,0h9V16H26Zm10,0h9V16H36Zm10,0h9V16H46Zm10,0h9V16H56Zm10,0h9V16H66Zm10,0h9V16H76Zm10,0h9V16H86Z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd" opacity="0.5"/>+ <path id="Path_4" data-name="Path 4" d="M6,5V0H5V5H0V6H5v94H6V6h94V5Z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd"/>+</svg>diff --git a/apps/mes/src/MES.tsx b/apps/mes/src/MES.tsxnew file mode 100644index 0000000000..a363c5948b--- /dev/null+++ b/apps/mes/src/MES.tsx@@ -0,0 +1,16 @@+import { Outlet } from "react-router-dom";++export function MES() {+ return (+ <>+ <div className="background">+ <div className="gradient" />+ </div>+ <div className="relative z-10">+ <div className="flex flex-col min-w-screen h-screen min-h-0">+ <Outlet />+ </div>+ </div>+ </>+ );+}diff --git a/apps/mes/src/components/Error.tsx b/apps/mes/src/components/Error.tsxnew file mode 100644index 0000000000..bc055bffa5--- /dev/null+++ b/apps/mes/src/components/Error.tsx@@ -0,0 +1,38 @@+import { isRouteErrorResponse, useRouteError } from "react-router-dom";++export default function ErrorPage() {+ const error = useRouteError();+ console.error(error);++ if (isRouteErrorResponse(error)) {+ if (error.status === 401) {+ // ...+ } else if (error.status === 404) {+ // ...+ }++ return (+ <div id="error-page">+ <h1>Oops! {error.status}</h1>+ <p>{error.statusText}</p>+ {error.data?.message && (+ <p>+ <i>{error.data.message}</i>+ </p>+ )}+ </div>+ );+ } else if (error instanceof Error) {+ return (+ <div id="error-page">+ <h1>Oops! Unexpected Error</h1>+ <p>Something went wrong.</p>+ <p>+ <i>{error.message}</i>+ </p>+ </div>+ );+ } else {+ return <></>;+ }+}diff --git a/apps/mes/src/config.ts b/apps/mes/src/config.tsnew file mode 100644index 0000000000..c937327c5f--- /dev/null+++ b/apps/mes/src/config.ts@@ -0,0 +1,5 @@+export const path = {+ to: {+ login: "/login",+ },+};diff --git a/apps/mes/src/index.css b/apps/mes/src/index.cssnew file mode 100644index 0000000000..7e383da454--- /dev/null+++ b/apps/mes/src/index.css@@ -0,0 +1,185 @@+@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;600;700&display=swap&display=swap");+@tailwind base;+@tailwind components;+@tailwind utilities;++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 200;+ src: url("/fonts/Geist-UltraLight.woff2") format("woff2");+}++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 300;+ src: url("/fonts/Geist-Light.woff2") format("woff2");+}++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 500;+ src: url("/fonts/Geist-Medium.woff2") format("woff2");+}++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 600;+ src: url("/fonts/Geist-SemiBold.woff2") format("woff2");+}++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 700;+ src: url("/fonts/Geist-Bold.woff2") format("woff2");+}++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 800;+ src: url("/fonts/Geist-Black.woff2") format("woff2");+}++@font-face {+ font-family: "Triangle";+ font-style: normal;+ font-weight: 900;+ src: url("/fonts/Geist-UltraBlack.woff2") format("woff2");+}++@tailwind base;+@tailwind components;+@tailwind utilities;++@layer base {+ :root {+ --background: 0 0% 100%;+ --foreground: 240 10% 3.9%;+ --card: 0 0% 100%;+ --card-foreground: 240 10% 3.9%;+ --popover: 0 0% 100%;+ --popover-foreground: 240 10% 3.9%;+ --primary: 240 5.9% 10%;+ --primary-foreground: 0 0% 98%;+ --secondary: 240 4.8% 95.9%;+ --secondary-foreground: 240 5.9% 10%;+ --muted: 240 4.8% 95.9%;+ --muted-foreground: 240 3.8% 46.1%;+ --accent: 240 4.8% 89.9%;+ --accent-foreground: 240 5.9% 10%;+ --destructive: 0 72.22% 50.59%;+ --destructive-foreground: 0 0% 98%;+ --border: 240 5.9% 90%;+ --input: 240 5.9% 90%;+ --ring: 240 5% 64.9%;+ --radius: 0.5rem;+ }++ .dark {+ --background: 240 10% 3.9%;+ --foreground: 0 0% 98%;+ --card: 240 10% 3.9%;+ --card-foreground: 0 0% 98%;+ --popover: 240 10% 3.9%;+ --popover-foreground: 0 0% 98%;+ --primary: 0 0% 98%;+ --primary-foreground: 240 5.9% 10%;+ --secondary: 240 3.7% 15.9%;+ --secondary-foreground: 0 0% 98%;+ --muted: 240 3.7% 15.9%;+ --muted-foreground: 240 5% 64.9%;+ --accent: 240 3.7% 15.9%;+ --accent-foreground: 0 0% 98%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 0 85.7% 97.3%;+ --border: 240 3.7% 15.9%;+ --input: 240 3.7% 15.9%;+ --ring: 240 4.9% 83.9%;+ }+}++@layer base {+ * {+ @apply border-border;+ }+ body {+ @apply bg-background text-foreground;+ font-feature-settings: "rlig" 1, "calt" 1;+ font-synthesis-weight: none;+ text-rendering: optimizeLegibility;+ }+}++/* Credit: https://cmdk.paco.me/ */++.background {+ width: 100vw;+ min-height: 100vh;+ position: fixed;+ display: flex;+ justify-content: center;+ padding: 120px 24px 160px 24px;+ pointer-events: none;+}++.background:before {+ background: radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%);+ position: absolute;+ content: "";+ z-index: 2;+ width: 100%;+ height: 100%;+ top: 0;+}++.dark .background:before {+ background: radial-gradient(circle, rgba(2, 0, 36, 0) 0, #161616 100%);+}++.background:after {+ content: "";+ background-image: url("/grid.svg");+ z-index: 1;+ position: absolute;+ width: 100%;+ height: 100%;+ top: 0;+ opacity: 0.4;+ filter: invert(1);+}++.gradient {+ height: fit-content;+ z-index: 3;+ width: 100%;+ max-width: 640px;+ background-image: radial-gradient(+ at 27% 37%,+ hsla(215, 98%, 61%, 1) 0px,+ transparent 0%+ ),+ radial-gradient(at 97% 21%, hsla(125, 60%, 72%, 1) 0px, transparent 55%),+ radial-gradient(at 52% 99%, hsla(354, 40%, 61%, 1) 0px, transparent 55%),+ radial-gradient(at 10% 29%, hsla(256, 50%, 67%, 1) 0px, transparent 55%),+ radial-gradient(at 97% 96%, hsla(38, 40%, 74%, 1) 0px, transparent 55%),+ radial-gradient(at 33% 50%, hsla(222, 60%, 73%, 1) 0px, transparent 55%),+ radial-gradient(at 79% 53%, hsla(343, 20%, 79%, 1) 0px, transparent 55%);+ position: absolute;+ content: "";+ width: 100%;+ height: 100%;+ filter: blur(100px) saturate(150%);+ top: 80px;+ opacity: 0.15;+}++@media screen and (max-width: 640px) {+ .content {+ display: none;+ }+}diff --git a/apps/mes/src/lib/supabase.ts b/apps/mes/src/lib/supabase.tsnew file mode 100644index 0000000000..3e06b2fcf7--- /dev/null+++ b/apps/mes/src/lib/supabase.ts@@ -0,0 +1,6 @@+import { createClient } from "@supabase/supabase-js";++const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;+const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;++export const supabase = createClient(supabaseUrl, supabaseAnonKey);diff --git a/apps/mes/src/main.tsx b/apps/mes/src/main.tsxnew file mode 100644index 0000000000..1aa232166f--- /dev/null+++ b/apps/mes/src/main.tsx@@ -0,0 +1,29 @@+import React from "react";+import ReactDOM from "react-dom/client";+import { createBrowserRouter, RouterProvider } from "react-router-dom";+import Error from "~/components/Error";+import { path } from "~/config";+import "~/index.css";+import { MES } from "~/MES";+import { Login, loader as loginLoader } from "./routes/login";++const router = createBrowserRouter([+ {+ path: "/",+ element: <MES />,+ errorElement: <Error />,+ children: [+ {+ path: path.to.login,+ loader: loginLoader,+ element: <Login />,+ },+ ],+ },+]);++ReactDOM.createRoot(document.getElementById("root")!).render(+ <React.StrictMode>+ <RouterProvider router={router} />+ </React.StrictMode>+);diff --git a/apps/mes/src/routes/login.tsx b/apps/mes/src/routes/login.tsxnew file mode 100644index 0000000000..07c97043e8--- /dev/null+++ b/apps/mes/src/routes/login.tsx@@ -0,0 +1,267 @@+import { Button, Input, Label, cn } from "@carbon/react";+import type { HTMLAttributes, SyntheticEvent} from "react";+import { useState } from "react";+import { BsHexagonFill } from "react-icons/bs";+import { Link, useLoaderData } from "react-router-dom";++export const loader = () => {+ const quote = quotes[Math.floor(Math.random() * quotes.length)];+ return quote ?? (quotes[0] as (typeof quotes)[number]);+};++export function Login() {+ const data = useLoaderData() as ReturnType<typeof loader>;++ return (+ <>+ <div className="container relative h-full flex-col items-center justify-center grid lg:max-w-none lg:grid-cols-2 lg:px-0">+ <div className="relative hidden h-full flex-col bg-muted p-10 text-white lg:flex dark:border-r">+ <div className="absolute inset-0 bg-zinc-900" />+ <div className="relative z-20 flex items-center text-lg font-medium">+ <BsHexagonFill className="w-6 h-6 mr-2" />+ CarbonOS+ </div>+ {data && (+ <div className="relative z-20 mt-auto">+ <blockquote className="space-y-2">+ <p className="text-lg">“{data?.quote}”</p>+ <footer className="text-sm">{data?.source}</footer>+ </blockquote>+ </div>+ )}+ </div>+ <div className="lg:p-8">+ <div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">+ <div className="flex flex-col space-y-2 text-center">+ <h1 className="text-2xl font-semibold tracking-tight">Sign In</h1>+ <p className="text-sm text-muted-foreground">+ Enter your email below to sign in+ </p>+ </div>+ <UserAuthForm />+ <p className="px-8 text-center text-sm text-muted-foreground">+ By clicking continue, you agree to our{" "}+ <Link+ to="/terms"+ className="underline underline-offset-4 hover:text-primary"+ >+ Terms of Service+ </Link>{" "}+ and{" "}+ <Link+ to="/privacy"+ className="underline underline-offset-4 hover:text-primary"+ >+ Privacy Policy+ </Link>+ .+ </p>+ </div>+ </div>+ </div>+ </>+ );+}++interface UserAuthFormProps extends HTMLAttributes<HTMLDivElement> {}++function UserAuthForm({ className, ...props }: UserAuthFormProps) {+ const [isLoading, setIsLoading] = useState<boolean>(false);++ async function onSubmit(event: SyntheticEvent) {+ event.preventDefault();+ setIsLoading(true);++ setTimeout(() => {+ setIsLoading(false);+ }, 3000);+ }++ return (+ <div className={cn("grid gap-6", className)} {...props}>+ <form onSubmit={onSubmit}>+ <div className="grid gap-2">+ <div className="grid gap-1">+ <Label className="sr-only" htmlFor="email">+ </Label>+ <Input+ className="bg-card"+ id="email"+ placeholder="[email protected]"+ type="email"+ autoCapitalize="none"+ autoComplete="email"+ autoCorrect="off"+ disabled={isLoading}+ />+ </div>+ <Button size="lg" isDisabled={isLoading} isLoading={isLoading}>+ Sign In+ </Button>+ </div>+ </form>+ </div>+ );+}++const quotes = [+ {+ quote: "Nothing can be changed until it is faced.",+ source: "James Baldwin",+ },+ {+ quote:+ "The Sun will rise and set regardless. What we choose to do with the light while it's here is up to us. Journey wisely.",+ source: "Alex Elle",+ },+ {+ quote: "I am unfolding slowly because blooming takes time.",+ source: "Alex Elle",+ },+ {+ quote: "Someone once told me love isn’t perfect—or predictable.",+ source: "Lauren Morrill",+ },+ {+ quote:+ "Sometimes you climb out of bed in the morning and you think, I'm not going to make it, but you laugh inside — remembering all the times you've felt that way",+ source: "Charles Bukowski",+ },+ {+ quote: "If you can't beat the fear, just do it scared.",+ source: "Glennon Doyle",+ },+ {+ quote: "There is a crack in everything. That's how the light gets in.",+ source: "Rumi",+ },+ {+ quote: "We must bring our own light into the darkness.",+ source: "Charles Bukowski",+ },+ {+ quote: "You are not too old. And it is not too late.",+ source: "Rainer Maria Rilke",+ },+ {+ quote: "There is nothing holding you back in life more than yourself.",+ source: "Brianna Wiest",+ },+ {+ quote:+ "Another person's success is not the absence of your own. Another person's progress is not the absence of your own. Another person's happiness is not the absense of your own.",+ source: "Brianna Wiest",+ },+ {+ quote:+ "The things we lose are not losses. They are entry ways. They are the world saying, sometimes sharply, there is something else out there.",+ source: "Brianna Wiest",+ },+ {+ quote: "You are allowed to outgrow people.",+ source: "Mantra Magazine",+ },+ {+ quote:+ "Stop feeling bad for outgrowing people who had the chance to grow with you.",+ source: "Hunter Pauley",+ },+ {+ quote: "Don't let someone live rent-free in your head.",+ source: "Ann Landers",+ },+ {+ quote:+ "Not everything that is faced can be changed, but nothing can be changed until it is faced.",+ source: "James Baldwin",+ },+ {+ quote: "No force on earth can stop an idea whose time has come.",+ source: "Victor Hugo",+ },+ {+ quote: "Learning never exhausts the mind.",+ source: "Leonardo da Vinci",+ },+ {+ quote: "The journey of a thousand miles begins with one step.",+ source: "Lao Tzu",+ },+ {+ quote: "If opportunity doesn't knock, build a door.",+ source: "Milton Berle",+ },+ {+ quote: "Everything has beauty, but not everyone sees it.",+ source: "Confucius",+ },+ {+ quote:+ "The best and most beautiful things in the world cannot be seen or even touched - they must be felt with the heart.",+ source: "Helen Keller",+ },+ {+ quote: "Simplicity is the ultimate sophistication.",+ source: "Leonardo da Vinci",+ },+ {+ quote: "The best revenge is massive success.",+ source: "Frank Sinatra",+ },+ {+ quote:+ "The distance between insanity and genius is measured only by success.",+ source: "Bruce Feirstein",+ },+ {+ quote: "Success is the sum of small efforts, repeated day-in and day-out.",+ source: "Robert Collier",+ },+ {+ quote: "The mind is everything. What you think you become.",+ source: "Gautama Buddha",+ },+ {+ quote: "Peace comes from within. Do not seek it without.",+ source: "Gautama Buddha",+ },+ {+ quote:+ "What you think, you become. What you feel, you attract. What you imagine, you create.",+ source: "The Buddha",+ },+ {+ quote: "Share your knowledge. It is a way to achieve immortality.",+ source: "The Dalai Lama",+ },+ {+ quote: "Man is made by his belief. As he believes, so he is.",+ source: "Bhagavad Gita",+ },+ {+ quote:+ "Life’s most persistent and urgent question is, ‘What are you doing for others?’",+ source: "Martin Luther King, Jr.",+ },+ {+ quote: "Once you choose hope, anythings possible.",+ source: "Christopher Reeve",+ },+ {+ quote: "Learn from yesterday, live for today, hope for tomorrow.",+ source: "Albert Einstein",+ },+ {+ quote: "Stay hungry, stay foolish.",+ source: "Steve Jobs",+ },+ {+ quote: "The only way to do great work is to love what you do.",+ source: "Steve Jobs",+ },+ {+ quote: "You are never too old to set another goal or to dream a new dream.",+ source: "C.S. Lewis",+ },+];diff --git a/apps/mes/src/vite-env.d.ts b/apps/mes/src/vite-env.d.tsnew file mode 100644index 0000000000..11f02fe2a0--- /dev/null+++ b/apps/mes/src/vite-env.d.ts@@ -0,0 +1 @@+/// <reference types="vite/client" />diff --git a/apps/mes/tailwind.config.ts b/apps/mes/tailwind.config.tsnew file mode 100644index 0000000000..0ea1cf06ca--- /dev/null+++ b/apps/mes/tailwind.config.ts@@ -0,0 +1 @@+module.exports = require("@carbon/tailwind/tailwind.config");diff --git a/apps/mes/tsconfig.json b/apps/mes/tsconfig.jsonnew file mode 100644index 0000000000..72c0c3a59d--- /dev/null+++ b/apps/mes/tsconfig.json@@ -0,0 +1,13 @@+{+ "exclude": ["node_modules"],+ "extends": "@carbon/tsconfig/vite.json",+ "compilerOptions": {+ "rootDir": ".",+ "outDir": "dist",+ "baseUrl": ".",+ "paths": {+ "~/*": ["src/*"]+ }+ },+ "include": ["src", "vite.config.ts"]+}diff --git a/apps/mes/vite.config.ts b/apps/mes/vite.config.tsnew file mode 100644index 0000000000..413675e469--- /dev/null+++ b/apps/mes/vite.config.ts@@ -0,0 +1,19 @@+import react from "@vitejs/plugin-react";+import { resolve } from "path";+import { defineConfig } from "vite";++// https://vitejs.dev/config/+export default defineConfig({+ plugins: [react()],+ server: {+ port: 4000,+ },+ build: {+ sourcemap: true,+ },+ resolve: {+ alias: {+ "~": resolve(__dirname, "src"),+ },+ },+});diff --git a/apps/website/src/app/story/page.tsx b/apps/website/src/app/story/page.tsxindex 7cc1cc5712..c8f6466689 100644--- a/apps/website/src/app/story/page.tsx+++ b/apps/website/src/app/story/page.tsx@@ -2,7 +2,7 @@import type { Metadata } from "next";export const metadata: Metadata = {- title: "Carbon ERP | Story",+ title: "CarbonOS | Story",};export default function Page() {@@ -43,7 +43,7 @@ export default function Page() {Extensible</h2><p>- The mission of Carbon ERP is to become the platform upon which connected+ The mission of CarbonOS is to become the platform upon which connectedmanufacturing ecosystems are built. The goal is to provide a solidfoundation for businesses to build upon, and to provide a platform thatis flexible enough to adapt to the ever-changing needs of thediff --git a/apps/website/src/app/updates/page.tsx b/apps/website/src/app/updates/page.tsxindex dbd6b30a2b..26c7bab3eb 100644--- a/apps/website/src/app/updates/page.tsx+++ b/apps/website/src/app/updates/page.tsx@@ -7,7 +7,7 @@ import Image from "next/image";import Link from "next/link";export const metadata: Metadata = {- title: "Carbon ERP | Updates",+ title: "CarbonOS | Updates",};export function UpdatesHeader() {diff --git a/apps/website/src/app/updates/posts/elastic-license.mdx b/apps/website/src/app/updates/posts/elastic-license.mdxindex 702d66bb1a..85b25a926e 100644--- a/apps/website/src/app/updates/posts/elastic-license.mdx+++ b/apps/website/src/app/updates/posts/elastic-license.mdx@@ -1,7 +1,7 @@---title: "The Elastic License"publishedAt: "2024-05-09"-summary: "Why we've decided to use the Elastic license for Carbon ERP"+summary: "Why we've decided to use the Elastic license for CarbonOS"tag: "Business"image: "/elastic-license.webp"---diff --git a/package-lock.json b/package-lock.jsonindex d865095221..0752722a8e 100644--- a/package-lock.json+++ b/package-lock.json@@ -268,6 +268,294 @@"typescript": "^5.2.2"}},+ "apps/mes": {+ "version": "0.0.0",+ "dependencies": {+ "@carbon/database": "*",+ "@carbon/react": "*",+ "@carbon/react-hook-form": "*",+ "@carbon/tsconfig": "*",+ "@supabase/supabase-js": "^2.40.0",+ "localforage": "^1.10.0",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-icons": "^4.12.0",+ "react-router-dom": "^6.23.1"+ },+ "devDependencies": {+ "@types/react": "^18.2.66",+ "@types/react-dom": "^18.2.22",+ "@typescript-eslint/eslint-plugin": "^7.2.0",+ "@typescript-eslint/parser": "^7.2.0",+ "@vitejs/plugin-react": "^4.2.1",+ "autoprefixer": "^10.4.14",+ "eslint": "^8.57.0",+ "eslint-config-carbon": "*",+ "postcss": "^8.4.33",+ "tailwindcss": "^3.3.2",+ "typescript": "^5.2.2",+ "vite": "^5.2.0"+ }+ },+ "apps/mes/node_modules/@remix-run/router": {+ "version": "1.16.1",+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.16.1.tgz",+ "integrity": "sha512-es2g3dq6Nb07iFxGk5GuHN20RwBZOsuDQN7izWIisUcv9r+d2C5jQxqmgkdebXgReWfiyUabcki6Fg77mSNrig==",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "apps/mes/node_modules/@typescript-eslint/eslint-plugin": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.10.0.tgz",+ "integrity": "sha512-PzCr+a/KAef5ZawX7nbyNwBDtM1HdLIT53aSA2DDlxmxMngZ43O8SIePOeX8H5S+FHXeI6t97mTt/dDdzY4Fyw==",+ "dev": true,+ "dependencies": {+ "@eslint-community/regexpp": "^4.10.0",+ "@typescript-eslint/scope-manager": "7.10.0",+ "@typescript-eslint/type-utils": "7.10.0",+ "@typescript-eslint/utils": "7.10.0",+ "@typescript-eslint/visitor-keys": "7.10.0",+ "graphemer": "^1.4.0",+ "ignore": "^5.3.1",+ "natural-compare": "^1.4.0",+ "ts-api-utils": "^1.3.0"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^7.0.0",+ "eslint": "^8.56.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "apps/mes/node_modules/@typescript-eslint/parser": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.10.0.tgz",+ "integrity": "sha512-2EjZMA0LUW5V5tGQiaa2Gys+nKdfrn2xiTIBLR4fxmPmVSvgPcKNW+AE/ln9k0A4zDUti0J/GZXMDupQoI+e1w==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/scope-manager": "7.10.0",+ "@typescript-eslint/types": "7.10.0",+ "@typescript-eslint/typescript-estree": "7.10.0",+ "@typescript-eslint/visitor-keys": "7.10.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.56.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "apps/mes/node_modules/@typescript-eslint/scope-manager": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.10.0.tgz",+ "integrity": "sha512-7L01/K8W/VGl7noe2mgH0K7BE29Sq6KAbVmxurj8GGaPDZXPr8EEQ2seOeAS+mEV9DnzxBQB6ax6qQQ5C6P4xg==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "7.10.0",+ "@typescript-eslint/visitor-keys": "7.10.0"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "apps/mes/node_modules/@typescript-eslint/type-utils": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.10.0.tgz",+ "integrity": "sha512-D7tS4WDkJWrVkuzgm90qYw9RdgBcrWmbbRkrLA4d7Pg3w0ttVGDsvYGV19SH8gPR5L7OtcN5J1hTtyenO9xE9g==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/typescript-estree": "7.10.0",+ "@typescript-eslint/utils": "7.10.0",+ "debug": "^4.3.4",+ "ts-api-utils": "^1.3.0"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.56.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "apps/mes/node_modules/@typescript-eslint/types": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.10.0.tgz",+ "integrity": "sha512-7fNj+Ya35aNyhuqrA1E/VayQX9Elwr8NKZ4WueClR3KwJ7Xx9jcCdOrLW04h51de/+gNbyFMs+IDxh5xIwfbNg==",+ "dev": true,+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "apps/mes/node_modules/@typescript-eslint/typescript-estree": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.10.0.tgz",+ "integrity": "sha512-LXFnQJjL9XIcxeVfqmNj60YhatpRLt6UhdlFwAkjNc6jSUlK8zQOl1oktAP8PlWFzPQC1jny/8Bai3/HPuvN5g==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "7.10.0",+ "@typescript-eslint/visitor-keys": "7.10.0",+ "debug": "^4.3.4",+ "globby": "^11.1.0",+ "is-glob": "^4.0.3",+ "minimatch": "^9.0.4",+ "semver": "^7.6.0",+ "ts-api-utils": "^1.3.0"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "apps/mes/node_modules/@typescript-eslint/utils": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.10.0.tgz",+ "integrity": "sha512-olzif1Fuo8R8m/qKkzJqT7qwy16CzPRWBvERS0uvyc+DHd8AKbO4Jb7kpAvVzMmZm8TrHnI7hvjN4I05zow+tg==",+ "dev": true,+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.4.0",+ "@typescript-eslint/scope-manager": "7.10.0",+ "@typescript-eslint/types": "7.10.0",+ "@typescript-eslint/typescript-estree": "7.10.0"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.56.0"+ }+ },+ "apps/mes/node_modules/@typescript-eslint/visitor-keys": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.10.0.tgz",+ "integrity": "sha512-9ntIVgsi6gg6FIq9xjEO4VQJvwOqA3jaBFQJ/6TK5AvEup2+cECI6Fh7QiBxmfMHXU0V0J4RyPeOU1VDNzl9cg==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "7.10.0",+ "eslint-visitor-keys": "^3.4.3"+ },+ "engines": {+ "node": "^18.18.0 || >=20.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "apps/mes/node_modules/brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dev": true,+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "apps/mes/node_modules/minimatch": {+ "version": "9.0.4",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",+ "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",+ "dev": true,+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "apps/mes/node_modules/react-router": {+ "version": "6.23.1",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.23.1.tgz",+ "integrity": "sha512-fzcOaRF69uvqbbM7OhvQyBTFDVrrGlsFdS3AL+1KfIBtGETibHzi3FkoTRyiDJnWNc2VxrfvR+657ROHjaNjqQ==",+ "dependencies": {+ "@remix-run/router": "1.16.1"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8"+ }+ },+ "apps/mes/node_modules/react-router-dom": {+ "version": "6.23.1",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.23.1.tgz",+ "integrity": "sha512-utP+K+aSTtEdbWpC+4gxhdlPFwuEfDKq8ZrPFU65bbRJY+l706qjR7yaidBpo3MSeA/fzwbXWbKBI6ftOnP3OQ==",+ "dependencies": {+ "@remix-run/router": "1.16.1",+ "react-router": "6.23.1"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8",+ "react-dom": ">=16.8"+ }+ },+ "apps/mes/node_modules/semver": {+ "version": "7.6.2",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz",+ "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==",+ "dev": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },"apps/website": {"version": "0.0.1","dependencies": {@@ -432,20 +720,20 @@}},"node_modules/@babel/core": {- "version": "7.24.4",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.4.tgz",- "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz",+ "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==","dependencies": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.24.2",- "@babel/generator": "^7.24.4",+ "@babel/generator": "^7.24.5","@babel/helper-compilation-targets": "^7.23.6",- "@babel/helper-module-transforms": "^7.23.3",- "@babel/helpers": "^7.24.4",- "@babel/parser": "^7.24.4",+ "@babel/helper-module-transforms": "^7.24.5",+ "@babel/helpers": "^7.24.5",+ "@babel/parser": "^7.24.5","@babel/template": "^7.24.0",- "@babel/traverse": "^7.24.1",- "@babel/types": "^7.24.0",+ "@babel/traverse": "^7.24.5",+ "@babel/types": "^7.24.5","convert-source-map": "^2.0.0","debug": "^4.1.0","gensync": "^1.0.0-beta.2",@@ -502,11 +790,11 @@}},"node_modules/@babel/generator": {- "version": "7.24.4",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.4.tgz",- "integrity": "sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz",+ "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==","dependencies": {- "@babel/types": "^7.24.0",+ "@babel/types": "^7.24.5","@jridgewell/gen-mapping": "^0.3.5","@jridgewell/trace-mapping": "^0.3.25","jsesc": "^2.5.1"@@ -657,15 +945,15 @@}},"node_modules/@babel/helper-module-transforms": {- "version": "7.23.3",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz",- "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz",+ "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==","dependencies": {"@babel/helper-environment-visitor": "^7.22.20",- "@babel/helper-module-imports": "^7.22.15",- "@babel/helper-simple-access": "^7.22.5",- "@babel/helper-split-export-declaration": "^7.22.6",- "@babel/helper-validator-identifier": "^7.22.20"+ "@babel/helper-module-imports": "^7.24.3",+ "@babel/helper-simple-access": "^7.24.5",+ "@babel/helper-split-export-declaration": "^7.24.5",+ "@babel/helper-validator-identifier": "^7.24.5"},"engines": {"node": ">=6.9.0"@@ -686,9 +974,9 @@}},"node_modules/@babel/helper-plugin-utils": {- "version": "7.24.0",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz",- "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz",+ "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==","engines": {"node": ">=6.9.0"}@@ -710,11 +998,11 @@}},"node_modules/@babel/helper-simple-access": {- "version": "7.22.5",- "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz",- "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz",+ "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==","dependencies": {- "@babel/types": "^7.22.5"+ "@babel/types": "^7.24.5"},"engines": {"node": ">=6.9.0"@@ -732,11 +1020,11 @@}},"node_modules/@babel/helper-split-export-declaration": {- "version": "7.22.6",- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz",- "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz",+ "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==","dependencies": {- "@babel/types": "^7.22.5"+ "@babel/types": "^7.24.5"},"engines": {"node": ">=6.9.0"@@ -751,9 +1039,9 @@}},"node_modules/@babel/helper-validator-identifier": {- "version": "7.22.20",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz",- "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz",+ "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==","engines": {"node": ">=6.9.0"}@@ -767,13 +1055,13 @@}},"node_modules/@babel/helpers": {- "version": "7.24.4",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.4.tgz",- "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz",+ "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==","dependencies": {"@babel/template": "^7.24.0",- "@babel/traverse": "^7.24.1",- "@babel/types": "^7.24.0"+ "@babel/traverse": "^7.24.5",+ "@babel/types": "^7.24.5"},"engines": {"node": ">=6.9.0"@@ -858,9 +1146,9 @@}},"node_modules/@babel/parser": {- "version": "7.24.4",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz",- "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz",+ "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==","bin": {"parser": "bin/babel-parser.js"},@@ -1107,6 +1395,36 @@"@babel/core": "^7.0.0-0"}},+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.24.5.tgz",+ "integrity": "sha512-RtCJoUO2oYrYwFPtR1/jkoBEcFuI1ae9a9IMxeyAVa3a1Ap4AnxmyIKG2b2FaJKqkidw/0cxRbWN+HOs6ZWd1w==",+ "dev": true,+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.24.5"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.24.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.24.1.tgz",+ "integrity": "sha512-1v202n7aUq4uXAieRTKcwPzNyphlCuqHHDcdSNc+vdhoTEZcFMh+L5yZuCmGaIO7bs1nJUNfHB89TZyoL48xNA==",+ "dev": true,+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.24.0"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },"node_modules/@babel/plugin-transform-react-pure-annotations": {"version": "7.24.1","resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.24.1.tgz",@@ -1201,18 +1519,18 @@}},"node_modules/@babel/traverse": {- "version": "7.24.1",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz",- "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz",+ "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==","dependencies": {- "@babel/code-frame": "^7.24.1",- "@babel/generator": "^7.24.1",+ "@babel/code-frame": "^7.24.2",+ "@babel/generator": "^7.24.5","@babel/helper-environment-visitor": "^7.22.20","@babel/helper-function-name": "^7.23.0","@babel/helper-hoist-variables": "^7.22.5",- "@babel/helper-split-export-declaration": "^7.22.6",- "@babel/parser": "^7.24.1",- "@babel/types": "^7.24.0",+ "@babel/helper-split-export-declaration": "^7.24.5",+ "@babel/parser": "^7.24.5",+ "@babel/types": "^7.24.5","debug": "^4.3.1","globals": "^11.1.0"},@@ -1229,12 +1547,12 @@}},"node_modules/@babel/types": {- "version": "7.24.0",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz",- "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==",+ "version": "7.24.5",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz",+ "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==","dependencies": {- "@babel/helper-string-parser": "^7.23.4",- "@babel/helper-validator-identifier": "^7.22.20",+ "@babel/helper-string-parser": "^7.24.1",+ "@babel/helper-validator-identifier": "^7.24.5","to-fast-properties": "^2.0.0"},"engines": {@@ -1271,6 +1589,10 @@"resolved": "packages/react","link": true},+ "node_modules/@carbon/react-hook-form": {+ "resolved": "packages/react-hook-form",+ "link": true+ },"node_modules/@carbon/redis": {"resolved": "packages/redis","link": true@@ -1917,9 +2239,9 @@}},"node_modules/@hookform/resolvers": {- "version": "3.3.4",- "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.3.4.tgz",- "integrity": "sha512-o5cgpGOuJYrd+iMKvkttOclgwRW86EsWJZZRC23prf0uU2i48Htq4PuT73AVb9ionFyZrwYEITuOFGF+BydEtQ==",+ "version": "3.4.2",+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.4.2.tgz",+ "integrity": "sha512-1m9uAVIO8wVf7VCDAGsuGA0t6Z3m6jVGAN50HkV9vYLl0yixKK/Z1lr01vaRvYCkIKGoy1noVRxMzQYb4y/j1Q==","peerDependencies": {"react-hook-form": "^7.0.0"}@@ -11330,6 +11652,25 @@"node": ">=12"}},+ "node_modules/@vitejs/plugin-react": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.0.tgz",+ "integrity": "sha512-KcEbMsn4Dpk+LIbHMj7gDPRKaTMStxxWRkRmxsg/jVdFdJCZWt1SchZcf0M4t8lIKdwwMsEyzhrcOXRrDPtOBw==",+ "dev": true,+ "dependencies": {+ "@babel/core": "^7.24.5",+ "@babel/plugin-transform-react-jsx-self": "^7.24.5",+ "@babel/plugin-transform-react-jsx-source": "^7.24.1",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.14.2"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0"+ }+ },"node_modules/@web3-storage/multipart-parser": {"version": "1.0.0","resolved": "https://registry.npmjs.org/@web3-storage/multipart-parser/-/multipart-parser-1.0.0.tgz",@@ -24670,6 +25011,10 @@"url": "https://opencollective.com/unified"}},+ "node_modules/mes": {+ "resolved": "apps/mes",+ "link": true+ },"node_modules/methods": {"version": "1.1.2","resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",@@ -37379,6 +37724,18 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/ts-api-utils": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz",+ "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==",+ "dev": true,+ "engines": {+ "node": ">=16"+ },+ "peerDependencies": {+ "typescript": ">=4.2.0"+ }+ },"node_modules/ts-dedent": {"version": "2.2.0","resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz",@@ -40400,9 +40757,9 @@"integrity": "sha512-tT/oChyDXelLo2A+UVnlW9GU7CsvFMaEnd9kVFsaiCQonFAXd3xrHhkLYu+suwwosrAEQ746xBU+HvYtm1Zs2Q=="},"node_modules/zod": {- "version": "3.23.4",- "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.4.tgz",- "integrity": "sha512-/AtWOKbBgjzEYYQRNfoGKHObgfAZag6qUJX1VbHo2PRBgS+wfWagEY2mizjfyAPcGesrJOcx/wcl0L9WnVrHFw==",+ "version": "3.23.8",+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz",+ "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==","funding": {"url": "https://github.com/sponsors/colinhacks"}@@ -40745,6 +41102,40 @@"react-icons": "^4.12.0"}},+ "packages/react-hook-form": {+ "name": "@carbon/react-hook-form",+ "version": "*",+ "dependencies": {+ "@hookform/resolvers": "^3.4.2",+ "@radix-ui/react-label": "^2.0.2",+ "@radix-ui/react-slot": "^1.0.2",+ "react-hook-form": "^7.51.5"+ },+ "devDependencies": {+ "tsconfig": "*",+ "typescript": "^5.2.2"+ },+ "peerDependencies": {+ "@carbon/react": "*",+ "react": "^18.2.0",+ "zod": "^3.23.4"+ }+ },+ "packages/react-hook-form/node_modules/react-hook-form": {+ "version": "7.51.5",+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.51.5.tgz",+ "integrity": "sha512-J2ILT5gWx1XUIJRETiA7M19iXHlG74+6O3KApzvqB/w8S5NQR7AbU8HVZrMALdmDgWpRPYiZJl0zx8Z4L2mP6Q==",+ "engines": {+ "node": ">=12.22.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/react-hook-form"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17 || ^18"+ }+ },"packages/redis": {"name": "@carbon/redis","version": "*",diff --git a/packages/documents/src/pdf/PurchaseOrderPDF.tsx b/packages/documents/src/pdf/PurchaseOrderPDF.tsxindex 99ced10d6d..4938f0c3a9 100644--- a/packages/documents/src/pdf/PurchaseOrderPDF.tsx+++ b/packages/documents/src/pdf/PurchaseOrderPDF.tsx@@ -60,7 +60,7 @@ const PurchaseOrderPDF = ({<Templatetitle={title}meta={{- author: meta?.author ?? "Carbon ERP",+ author: meta?.author ?? "CarbonOS",keywords: meta?.keywords ?? "purchase order",subject: meta?.subject ?? "Purchase Order",}}diff --git a/packages/documents/src/pdf/QuotePDF.tsx b/packages/documents/src/pdf/QuotePDF.tsxindex 550465717e..fd03a39ae8 100644--- a/packages/documents/src/pdf/QuotePDF.tsx+++ b/packages/documents/src/pdf/QuotePDF.tsx@@ -45,7 +45,7 @@ const QuotePDF = ({<Templatetitle={title}meta={{- author: meta?.author ?? "Carbon ERP",+ author: meta?.author ?? "CarbonOS",keywords: meta?.keywords ?? "quote",subject: meta?.subject ?? "Quote",}}diff --git a/packages/documents/src/pdf/components/Template.tsx b/packages/documents/src/pdf/components/Template.tsxindex 7c2834bb6a..8f024afc18 100644--- a/packages/documents/src/pdf/components/Template.tsx+++ b/packages/documents/src/pdf/components/Template.tsx@@ -41,7 +41,7 @@ const Template = ({ title, meta, children }: TemplateProps) => {return (<Document- author={meta?.author ?? "Carbon ERP"}+ author={meta?.author ?? "CarbonOS"}keywords={meta?.keywords}subject={meta?.subject}title={title}diff --git a/packages/react-hook-form/.eslintrc.js b/packages/react-hook-form/.eslintrc.jsnew file mode 100644index 0000000000..1308cba140--- /dev/null+++ b/packages/react-hook-form/.eslintrc.js@@ -0,0 +1,4 @@+module.exports = {+ root: true,+ extends: ["carbon"],+};diff --git a/packages/react-hook-form/LICENSE b/packages/react-hook-form/LICENSEnew file mode 100644index 0000000000..be404fc497--- /dev/null+++ b/packages/react-hook-form/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2021 Aaron Pettengill++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/packages/react-hook-form/package.json b/packages/react-hook-form/package.jsonnew file mode 100644index 0000000000..ce01355edb--- /dev/null+++ b/packages/react-hook-form/package.json@@ -0,0 +1,37 @@+{+ "name": "@carbon/react-hook-form",+ "peerDependencies": {+ "@carbon/react": "*",+ "react": "^18.2.0",+ "zod": "^3.23.4"+ },+ "devDependencies": {+ "tsconfig": "*",+ "typescript": "^5.2.2"+ },+ "dependencies": {+ "@hookform/resolvers": "^3.4.2",+ "@radix-ui/react-label": "^2.0.2",+ "@radix-ui/react-slot": "^1.0.2",+ "react-hook-form": "^7.51.5"+ },+ "files": [+ "dist/**"+ ],+ "jest": {+ "preset": "@carbon/jest/node"+ },+ "main": "./dist/index.js",+ "module": "./dist/index.mjs",+ "private": true,+ "scripts": {+ "build": "tsup src/index.tsx --format esm,cjs --dts --external react",+ "clean": "rimraf .turbo node_modules dist",+ "dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",+ "lint": "TIMING=1 eslint \"src/**/*.ts*\"",+ "test": "jest"+ },+ "sideEffects": false,+ "types": "./dist/index.d.ts",+ "version": "*"+}diff --git a/packages/react-hook-form/src/index.tsx b/packages/react-hook-form/src/index.tsxnew file mode 100644index 0000000000..2615ee586f--- /dev/null+++ b/packages/react-hook-form/src/index.tsx@@ -0,0 +1,178 @@+import type * as LabelPrimitive from "@radix-ui/react-label";+import { Slot } from "@radix-ui/react-slot";+import * as React from "react";+import type {+ ControllerProps,+ FieldPath,+ FieldValues,+ useForm,+} from "react-hook-form";+import { Controller, FormProvider, useFormContext } from "react-hook-form";++import { Label, cn } from "@carbon/react";+import { zodResolver } from "@hookform/resolvers/zod";++const Form = FormProvider;++type FormFieldContextValue<+ TFieldValues extends FieldValues = FieldValues,+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>+> = {+ name: TName;+};++const FormFieldContext = React.createContext<FormFieldContextValue>(+ {} as FormFieldContextValue+);++const FormField = <+ TFieldValues extends FieldValues = FieldValues,+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>+>({+ ...props+}: ControllerProps<TFieldValues, TName>) => {+ return (+ <FormFieldContext.Provider value={{ name: props.name }}>+ <Controller {...props} />+ </FormFieldContext.Provider>+ );+};++const useFormField = () => {+ const fieldContext = React.useContext(FormFieldContext);+ const itemContext = React.useContext(FormItemContext);+ const { getFieldState, formState } = useFormContext();++ const fieldState = getFieldState(fieldContext.name, formState);++ if (!fieldContext) {+ throw new Error("useFormField should be used within <FormField>");+ }++ const { id } = itemContext;++ return {+ id,+ name: fieldContext.name,+ formItemId: `${id}-form-item`,+ formDescriptionId: `${id}-form-item-description`,+ formMessageId: `${id}-form-item-message`,+ ...fieldState,+ };+};++type FormItemContextValue = {+ id: string;+};++const FormItemContext = React.createContext<FormItemContextValue>(+ {} as FormItemContextValue+);++const FormItem = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => {+ const id = React.useId();++ return (+ <FormItemContext.Provider value={{ id }}>+ <div ref={ref} className={cn("space-y-2", className)} {...props} />+ </FormItemContext.Provider>+ );+});+FormItem.displayName = "FormItem";++const FormLabel = React.forwardRef<+ React.ElementRef<typeof LabelPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>+>(({ className, ...props }, ref) => {+ const { error, formItemId } = useFormField();++ return (+ <Label+ ref={ref}+ className={cn(error && "text-destructive", className)}+ htmlFor={formItemId}+ {...props}+ />+ );+});+FormLabel.displayName = "FormLabel";++const FormControl = React.forwardRef<+ React.ElementRef<typeof Slot>,+ React.ComponentPropsWithoutRef<typeof Slot>+>(({ ...props }, ref) => {+ const { error, formItemId, formDescriptionId, formMessageId } =+ useFormField();++ return (+ <Slot+ ref={ref}+ id={formItemId}+ aria-describedby={+ !error+ ? `${formDescriptionId}`+ : `${formDescriptionId} ${formMessageId}`+ }+ aria-invalid={!!error}+ {...props}+ />+ );+});+FormControl.displayName = "FormControl";++const FormDescription = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLParagraphElement>+>(({ className, ...props }, ref) => {+ const { formDescriptionId } = useFormField();++ return (+ <p+ ref={ref}+ id={formDescriptionId}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+ );+});+FormDescription.displayName = "FormDescription";++const FormMessage = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLParagraphElement>+>(({ className, children, ...props }, ref) => {+ const { error, formMessageId } = useFormField();+ const body = error ? String(error?.message) : children;++ if (!body) {+ return null;+ }++ return (+ <p+ ref={ref}+ id={formMessageId}+ className={cn("text-sm font-medium text-destructive", className)}+ {...props}+ >+ {body}+ </p>+ );+});+FormMessage.displayName = "FormMessage";++export {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+ useForm,+ useFormField,+ zodResolver,+};diff --git a/packages/react-hook-form/tailwind.config.js b/packages/react-hook-form/tailwind.config.jsnew file mode 100644index 0000000000..0ea1cf06ca--- /dev/null+++ b/packages/react-hook-form/tailwind.config.js@@ -0,0 +1 @@+module.exports = require("@carbon/tailwind/tailwind.config");diff --git a/packages/react-hook-form/tsconfig.json b/packages/react-hook-form/tsconfig.jsonnew file mode 100644index 0000000000..5c7482cdc8--- /dev/null+++ b/packages/react-hook-form/tsconfig.json@@ -0,0 +1,13 @@+{+ "compilerOptions": {+ "lib": ["dom", "ES2015"],+ "resolveJsonModule": true,+ "baseUrl": ".",+ "paths": {+ "~/*": ["../../packages/react/src/*"]+ }+ },+ "extends": "@carbon/tsconfig/react-library.json",+ "include": ["src"],+ "exclude": ["**/*.d.ts", "./dist", "node_modules"]+}diff --git a/packages/tsconfig/vite.json b/packages/tsconfig/vite.jsonindex 46c2e55bd5..46a5179c9d 100644--- a/packages/tsconfig/vite.json+++ b/packages/tsconfig/vite.json@@ -3,15 +3,20 @@"extends": "./base.json","Display": "Vite","compilerOptions": {- "allowJs": false,- "esModuleInterop": false,- "jsx": "react",- "lib": ["dom", "dom.iterable", "esnext"],+ "target": "ES2020",+ "useDefineForClassFields": true,+ "lib": ["ES2020", "DOM", "DOM.Iterable"],"module": "ESNext",- "noEmit": true,+ "skipLibCheck": true,+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,"resolveJsonModule": true,- "skipLibCheck": false,- "target": "ESNext",- "types": ["vite/client"]+ "isolatedModules": true,+ "noEmit": true,+ "jsx": "react-jsx",+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true}}