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
style: blue theme and style fixes
Brad Barbin56fded3d6801
diff --git a/apps/carbon/app/components/ItemThumbnail.tsx b/apps/carbon/app/components/ItemThumbnail.tsxindex 74d59c442f..1a95d11b92 100644--- a/apps/carbon/app/components/ItemThumbnail.tsx+++ b/apps/carbon/app/components/ItemThumbnail.tsx@@ -14,11 +14,11 @@ const ItemThumbnail = ({ thumbnailPath, modelId }: ItemThumbnailProps) => {src={`/file/preview/private/${thumbnailPath}`}/>) : !!modelId && !thumbnailPath ? (- <div className="w-10 h-10 bg-gradient-to-bl from-muted to-muted/40 rounded-lg border-2 border-transparent p-2">+ <div className="w-10 h-10 bg-gradient-to-bl from-muted to-muted/40 rounded-lg border-2 border-transparent p-1.5"><Spinner className="w-6 h-6 text-muted-foreground" /></div>) : (- <div className="w-10 h-10 bg-gradient-to-bl from-muted to-muted/40 rounded-lg border-2 border-transparent p-2">+ <div className="w-10 h-10 bg-gradient-to-bl from-muted to-muted/40 rounded-lg border-2 border-transparent p-1.5"><LuImage className="w-6 h-6 text-muted-foreground" /></div>);diff --git a/apps/carbon/app/components/Skeletons.tsx b/apps/carbon/app/components/Skeletons.tsxnew file mode 100644index 0000000000..f3a0313989--- /dev/null+++ b/apps/carbon/app/components/Skeletons.tsx@@ -0,0 +1,13 @@+import { Skeleton } from "@carbon/react";++export function ExplorerSkeleton() {+ return (+ <div className="space-y-2">+ <Skeleton className="h-6 w-full" />+ <Skeleton className="h-4 w-3/4" />+ <Skeleton className="h-4 w-5/6" />+ <Skeleton className="h-4 w-2/3" />+ <Skeleton className="h-4 w-4/5" />+ </div>+ );+}diff --git a/apps/carbon/app/components/Table/Table.tsx b/apps/carbon/app/components/Table/Table.tsxindex 3d853ba54b..c2704051eb 100644--- a/apps/carbon/app/components/Table/Table.tsx+++ b/apps/carbon/app/components/Table/Table.tsx@@ -667,42 +667,67 @@ const Table = <T extends object>({width: header.getSize(),}}>- {header.isPlaceholder ? null : (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <div className="flex justify-start items-center text-xs text-muted-foreground">- {flexRender(- header.column.columnDef.header,- header.getContext()- )}- </div>- </DropdownMenuTrigger>- <DropdownMenuContent align="start">- <DropdownMenuRadioGroup- value={sorted?.toString()}- >- <DropdownMenuRadioItem- onClick={() =>- toggleSortByAscending(accessorKey!)- }- value="1"+ {!header.isPlaceholder &&+ (sortable ? (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <div className="flex justify-start items-center text-xs text-foreground">+ {flexRender(+ header.column.columnDef.header,+ header.getContext()+ )}+ <span className="pl-2">+ {sorted ? (+ sorted === -1 ? (+ <LuArrowUp+ aria-label="sorted descending"+ className="text-primary"+ />+ ) : (+ <LuArrowDown+ aria-label="sorted ascending"+ className="text-primary"+ />+ )+ ) : null}+ </span>+ </div>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuRadioGroup+ value={sorted?.toString()}>- <DropdownMenuIcon icon={<LuArrowUp />} />- Sort Ascending- </DropdownMenuRadioItem>- <DropdownMenuRadioItem- onClick={() =>- toggleSortByDescending(accessorKey!)- }- value="-1"- >- <DropdownMenuIcon icon={<LuArrowDown />} />- Sort Descending- </DropdownMenuRadioItem>- </DropdownMenuRadioGroup>- </DropdownMenuContent>- </DropdownMenu>- )}+ <DropdownMenuRadioItem+ onClick={() =>+ toggleSortByAscending(accessorKey!)+ }+ value="1"+ >+ <DropdownMenuIcon icon={<LuArrowUp />} />+ Sort Ascending+ </DropdownMenuRadioItem>+ <DropdownMenuRadioItem+ onClick={() =>+ toggleSortByDescending(accessorKey!)+ }+ value="-1"+ >+ <DropdownMenuIcon+ icon={<LuArrowDown />}+ />+ Sort Descending+ </DropdownMenuRadioItem>+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ ) : (+ <div className="flex justify-start items-center text-xs text-foreground">+ {flexRender(+ header.column.columnDef.header,+ header.getContext()+ )}+ </div>+ ))}</Th>);})}diff --git a/apps/carbon/app/components/Table/components/Sort/useSort.tsx b/apps/carbon/app/components/Table/components/Sort/useSort.tsxindex f89f01bd8e..dfd85b007c 100644--- a/apps/carbon/app/components/Table/components/Sort/useSort.tsx+++ b/apps/carbon/app/components/Table/components/Sort/useSort.tsx@@ -25,7 +25,7 @@ export function useSort() {if (!existingSort.includes(sortAsc)) {setParams({- sort: existingSort.filter((s) => s !== sortDesc).concat(sortAsc),+ sort: [sortAsc, ...existingSort.filter((s) => s !== sortDesc)],});} else {setParams({@@ -41,7 +41,7 @@ export function useSort() {if (!existingSort.includes(sortDesc)) {setParams({- sort: existingSort.filter((s) => s !== sortAsc).concat(sortDesc),+ sort: [sortDesc, ...existingSort.filter((s) => s !== sortAsc)],});} else {setParams({diff --git a/apps/carbon/app/root.tsx b/apps/carbon/app/root.tsxindex 8d5f9219cc..cb62539f93 100644--- a/apps/carbon/app/root.tsx+++ b/apps/carbon/app/root.tsx@@ -111,7 +111,7 @@ function Document({<title>{title}</title><Links /></head>- <body className="h-full bg-background antialiased selection:bg-[#00cc9937] selection:text-[#007763fd] dark:selection:bg-[#00fff61d] dark:selection:text-[#67ffded2]">+ <body className="h-full bg-background antialiased selection:bg-primary/10 selection:text-primary">{children}<ScrollRestoration />diff --git a/packages/react/src/Button.tsx b/packages/react/src/Button.tsxindex a32538738b..d878df0b43 100644--- a/packages/react/src/Button.tsx+++ b/packages/react/src/Button.tsx@@ -13,14 +13,14 @@ export const buttonVariants = cva(variants: {variant: {primary:- "bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",+ "bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm shadow-[inset_0_2px_4px_0_theme(colors.white/15%)]",active:"bg-active text-active-foreground hover:bg-active/90 hover:text-active-foreground",secondary:- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",+ "border border-input bg-card hover:bg-accent hover:text-accent-foreground",solid: "bg-accent text-accent-foreground hover:bg-accent/90",destructive:- "bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",+ "bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm shadow-[inset_0_2px_4px_0_theme(colors.white/15%)]",ghost:"bg-transparent hover:bg-primary/10 text-accent-foreground hover:text-accent-foreground/90",link: "text-foreground hover:text-foreground underline-offset-4 hover:underline",diff --git a/packages/react/src/Drawer.tsx b/packages/react/src/Drawer.tsxindex a59feec92c..d2d09ae857 100644--- a/packages/react/src/Drawer.tsx+++ b/packages/react/src/Drawer.tsx@@ -130,27 +130,27 @@ const sheetVariants = cva({position: ["right", "left"],size: "md",- class: "w-1/3",+ class: "w-full lg:w-1/3",},{position: ["right", "left"],size: "sm",- class: "w-1/4",+ class: "w-full lg:w-1/4",},{position: ["right", "left"],size: "lg",- class: "w-1/2",+ class: "w-full lg:w-1/2",},{position: ["right", "left"],size: "xl",- class: "w-2/3",+ class: "w-full lg:w-2/3",},{position: ["right", "left"],size: "full",- class: "w-screen",+ class: "w-full lg:w-screen",},],defaultVariants: {diff --git a/packages/utils/src/themes.ts b/packages/utils/src/themes.tsindex 998145492e..2354bc41af 100644--- a/packages/utils/src/themes.ts+++ b/packages/utils/src/themes.ts@@ -341,21 +341,21 @@ export const themes = [name: "blue",label: "Blue",activeColor: {- light: "221.2 83.2% 53.3%",- dark: "217.2 91.2% 59.8%",+ light: "216.2 83.2% 53.3%",+ dark: "216 98% 52%",},cssVars: {light: {background: "0 0% 100%",- foreground: "222.2 84% 4.9%",+ foreground: "216 98% 4.9%",card: "0 0% 100%",- "card-foreground": "222.2 84% 4.9%",+ "card-foreground": "216 98% 4.9%",popover: "0 0% 100%",- "popover-foreground": "222.2 84% 4.9%",- primary: "221.2 83.2% 53.3%",+ "popover-foreground": "216 98% 4.9%",+ primary: "216 98% 52%","primary-foreground": "210 40% 98%",- active: "222.2 84% 78.9%",- "active-foreground": "222.2 84% 2.9%",+ active: "216 98% 92%",+ "active-foreground": "216 98% 2.9%",secondary: "210 40% 96.1%","secondary-foreground": "222.2 47.4% 11.2%",muted: "210 40% 96.1%",@@ -369,27 +369,27 @@ export const themes = [ring: "221.2 83.2% 53.3%",},dark: {- background: "222.2 84% 6.5%",- foreground: "210 40% 98%",- card: "222.2 84% 8.9%",- "card-foreground": "210 40% 98%",- popover: "222.2 84% 8.9%",- "popover-foreground": "210 40% 98%",- primary: "217.2 91.2% 59.8%",- "primary-foreground": "222.2 47.4% 11.2%",- active: "217.2 91.2% 81.8%",- "active-foreground": "217.2 91.2% 52.8%",- secondary: "217.2 32.6% 17.5%",- "secondary-foreground": "210 40% 98%",- muted: "217.2 32.6% 17.5%",- "muted-foreground": "215 20.2% 65.1%",- accent: "217.2 32.6% 17.5%",- "accent-foreground": "210 40% 98%",+ background: "220 14.3% 6.1%",+ foreground: "220 0% 95%",+ popover: "216 0% 9%",+ "popover-foreground": "220 0% 95%",+ card: "220 0% 9%",+ "card-foreground": "220 0% 95%",+ primary: "216 98% 52%",+ "primary-foreground": "216 80.4% 100%",+ active: "216 50% 15%",+ "active-foreground": "216 98% 58%",+ secondary: "220 3.7% 15.9%",+ "secondary-foreground": "220 0% 98%",+ muted: "220 0% 15%",+ "muted-foreground": "220 5% 64.9%",+ accent: "220 6.5% 15.1%",+ "accent-foreground": "220 0% 98%",destructive: "0 62.8% 30.6%",- "destructive-foreground": "210 40% 98%",- border: "217.2 32.6% 17.5%",- input: "217.2 32.6% 17.5%",- ring: "224.3 76.3% 48%",+ "destructive-foreground": "0 85.7% 97.3%",+ border: "220 3.7% 15.9%",+ input: "220 3.7% 15.9%",+ ring: "216 71.8% 29.2%",},},},