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: remove checkbox in combobox
Brad Barbin2216bba8aea9
diff --git a/packages/react/src/Combobox.tsx b/packages/react/src/Combobox.tsxindex 949d8f046b..b71204f157 100644--- a/packages/react/src/Combobox.tsx+++ b/packages/react/src/Combobox.tsx@@ -186,25 +186,22 @@ function VirtualizedCommand({transform: `translateY(${virtualRow.start}px)`,}}>- <div className="flex justify-start items-center gap-1 px-2">- {item.helper ? (- <div className="flex flex-col">- <p>{item.label}</p>- <p className="text-xs text-muted-foreground">- {item.helper}- </p>- </div>- ) : (- item.label+ {item.helper ? (+ <div className="flex flex-col">+ <p>{item.label}</p>+ <p className="text-xs text-muted-foreground">+ {item.helper}+ </p>+ </div>+ ) : (+ item.label+ )}+ <LuCheck+ className={cn(+ "ml-auto h-4 w-4",+ item.value === value ? "opacity-100" : "opacity-0")}-- <LuCheck- className={cn(- "ml-auto h-4 w-4 opacity-0",- item.value === value && "opacity-100"- )}- />- </div>+ /></CommandItem>);})}diff --git a/packages/react/src/CreateableCombobox.tsx b/packages/react/src/CreateableCombobox.tsxindex b4c92ddaba..fcbacb7ff2 100644--- a/packages/react/src/CreateableCombobox.tsx+++ b/packages/react/src/CreateableCombobox.tsx@@ -1,7 +1,7 @@import { useVirtualizer } from "@tanstack/react-virtual";import type { ComponentPropsWithoutRef } from "react";import { forwardRef, useMemo, useRef, useState } from "react";-import { LuCheck, LuPlus } from "react-icons/lu";+import { LuCheck } from "react-icons/lu";import { MdClose } from "react-icons/md";import {Command,@@ -224,36 +224,33 @@ function VirtualizedCommand({transform: `translateY(${virtualRow.start}px)`,}}>- <div className="flex justify-start items-center gap-1 px-2">- {isCreateOption ? (- <>- <LuPlus className="mr-1.5" />- <span>Create</span>- <span className="font-bold line-clamp-1">- {search.trim() === "" ? label : search}- </span>- </>- ) : (- <>- {item.helper ? (- <div className="flex flex-col">- <p>{item.label}</p>- <p className="text-xs text-muted-foreground">- {item.helper}- </p>- </div>- ) : (- item.label- )}- <LuCheck- className={cn(- "ml-auto h-4 w-4 opacity-0",- item.value === value && "opacity-100"- )}- />- </>- )}- </div>+ {isCreateOption ? (+ <>+ <span>Create</span>+ <span className="ml-1 font-bold line-clamp-1">+ {search.trim() === "" ? label : search}+ </span>+ </>+ ) : item.helper ? (+ <div className="flex flex-col">+ <p>{item.label}</p>+ <p className="text-xs text-muted-foreground">+ {item.helper}+ </p>+ </div>+ ) : (+ item.label+ )}+ {!isCreateOption && (+ <LuCheck+ className={cn(+ "ml-auto h-4 w-4",+ isSelected || item.value === value+ ? "opacity-100"+ : "opacity-0"+ )}+ />+ )}</CommandItem>);})}