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: add icons to comboboxes
Brad Barbin87fa7da273c4
diff --git a/apps/carbon/app/components/Form/Item.tsx b/apps/carbon/app/components/Form/Item.tsxindex d64a860a8e..ebb9b83591 100644--- a/apps/carbon/app/components/Form/Item.tsx+++ b/apps/carbon/app/components/Form/Item.tsx@@ -160,7 +160,7 @@ const Item = ({<IconButtontype="button"aria-label="Change Type"- className="bg-transparent flex-shrink-0 h-10 rounded-l-none border-l-0 shadow-sm"+ className="bg-transparent flex-shrink-0 h-10 w-10 px-3 rounded-l-none border-l-0 shadow-sm"disabled={props.isReadOnly}variant="secondary"size="lg"diff --git a/apps/carbon/package.json b/apps/carbon/package.jsonindex 7bba98b3be..202fb17257 100644--- a/apps/carbon/package.json+++ b/apps/carbon/package.json@@ -62,7 +62,7 @@"react-dom": "^18.3.1","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","react-pdf": "^7.7.1","react-use-measure": "^2.1.1","remix-flat-routes": "^0.6.5",diff --git a/apps/developers/package.json b/apps/developers/package.jsonindex 0095534224..993e978a5b 100644--- a/apps/developers/package.json+++ b/apps/developers/package.json@@ -30,7 +30,7 @@"react-dom": "^18.3.1","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","tailwind-merge": "^2.2.1","tailwind-scrollbar": "^3.0.5","tailwind-scrollbar-hide": "^1.1.7",diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 17bd0afd0a..83a74b5530 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -18,7 +18,7 @@"react": "^18.3.1","react-dom": "^18.3.1","react-hook-form": "7.51.2",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","tailwind-merge": "^2.2.1","tailwindcss-animate": "^1.0.7","zod": "^3.23.8"diff --git a/apps/mes/package.json b/apps/mes/package.jsonindex 646512de59..91ca1200a0 100644--- a/apps/mes/package.json+++ b/apps/mes/package.json@@ -30,13 +30,14 @@"react-dom": "^18.3.1","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0",+ "react-router-dom": "^6.23.1","tailwind-merge": "^2.2.1","tailwind-scrollbar": "^3.0.5","tailwind-scrollbar-hide": "^1.1.7","tailwindcss-animate": "^1.0.7","zod": "^3.23.8",- "zod-form-data": "*"+ "zod": "3.23.8"},"devDependencies": {"@carbon/tailwind": "*",diff --git a/package-lock.json b/package-lock.jsonindex 6e91eff99f..73ec45f91b 100644--- a/package-lock.json+++ b/package-lock.json@@ -93,7 +93,7 @@"react-dom": "^18.3.1","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","react-pdf": "^7.7.1","react-use-measure": "^2.1.1","remix-flat-routes": "^0.6.5",@@ -158,7 +158,7 @@"react-dom": "^18.3.1","react-dropzone": "^14.2.3","react-hotkeys-hook": "~4.5.0",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","tailwind-merge": "^2.2.1","tailwind-scrollbar": "^3.0.5","tailwind-scrollbar-hide": "^1.1.7",@@ -206,7 +206,7 @@"react": "^18.3.1","react-dom": "^18.3.1","react-hook-form": "7.51.2",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","tailwind-merge": "^2.2.1","tailwindcss-animate": "^1.0.7","zod": "^3.23.8"@@ -228,7 +228,6 @@},"apps/mes": {"version": "0.0.0",- "extraneous": true,"dependencies": {"@carbon/database": "*","@carbon/react": "*",@@ -23375,6 +23374,10 @@}},"node_modules/mes": {+ "resolved": "apps/mes",+ "link": true+ },+ "node_modules/mes-prototype": {"resolved": "apps/mes-prototype","link": true},@@ -35692,7 +35695,7 @@"@react-email/components": "0.0.16","@react-pdf/renderer": "^3.1.14","react-hook-form": "7.51.2",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","react-pdf-tailwind": "~2.3.0"},"devDependencies": {diff --git a/packages/documents/package.json b/packages/documents/package.jsonindex 5f6a236214..3f8ea71d01 100644--- a/packages/documents/package.json+++ b/packages/documents/package.json@@ -4,7 +4,7 @@"@hookform/resolvers": "^3.3.4","@react-email/components": "0.0.16","@react-pdf/renderer": "^3.1.14",- "react-icons": "^5.2.1",+ "react-icons": "^5.3.0","react-hook-form": "7.51.2","react-pdf-tailwind": "~2.3.0"},diff --git a/packages/react/src/Combobox.tsx b/packages/react/src/Combobox.tsxindex c42d281838..0d1ebcb39b 100644--- a/packages/react/src/Combobox.tsx+++ b/packages/react/src/Combobox.tsx@@ -1,8 +1,8 @@import { useVirtualizer } from "@tanstack/react-virtual";import type { ComponentPropsWithoutRef } from "react";import { forwardRef, useMemo, useRef, useState } from "react";+import { FaRegSquare, FaSquareCheck } from "react-icons/fa6";import { MdClose } from "react-icons/md";-import { RxCheck } from "react-icons/rx";import {Command,CommandGroup,@@ -186,22 +186,23 @@ function VirtualizedCommand({transform: `translateY(${virtualRow.start}px)`,}}>- {item.helper ? (- <div className="flex flex-col">- <p>{item.label}</p>- <p className="text-xs text-muted-foreground">- {item.helper}- </p>- </div>- ) : (- item.label- )}- <RxCheck- className={cn(- "ml-auto h-4 w-4",- item.value === value ? "opacity-100" : "opacity-0"+ <div className="flex justify-start items-center gap-1 px-2">+ {item.value === value ? (+ <FaSquareCheck className="mr-1.5 text-primary" />+ ) : (+ <FaRegSquare className="mr-1.5 text-muted-foreground" />)}- />+ {item.helper ? (+ <div className="flex flex-col">+ <p>{item.label}</p>+ <p className="text-xs text-muted-foreground">+ {item.helper}+ </p>+ </div>+ ) : (+ item.label+ )}+ </div></CommandItem>);})}diff --git a/packages/react/src/CreateableCombobox.tsx b/packages/react/src/CreateableCombobox.tsxindex 1b4339c648..82f11ae763 100644--- a/packages/react/src/CreateableCombobox.tsx+++ b/packages/react/src/CreateableCombobox.tsx@@ -1,8 +1,9 @@import { useVirtualizer } from "@tanstack/react-virtual";import type { ComponentPropsWithoutRef } from "react";import { forwardRef, useMemo, useRef, useState } from "react";+import { FaRegSquare, FaSquareCheck } from "react-icons/fa6";+import { LuPlus } from "react-icons/lu";import { MdClose } from "react-icons/md";-import { RxCheck } from "react-icons/rx";import {Command,CommandGroup,@@ -224,33 +225,35 @@ function VirtualizedCommand({transform: `translateY(${virtualRow.start}px)`,}}>- {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 && (- <RxCheck- className={cn(- "ml-auto h-4 w-4",- isSelected || item.value === value- ? "opacity-100"- : "opacity-0"- )}- />- )}+ <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>+ </>+ ) : (+ <>+ {isSelected || item.value === value ? (+ <FaSquareCheck className="mr-1.5 text-primary" />+ ) : (+ <FaRegSquare className="mr-1.5 text-muted-foreground" />+ )}+ {item.helper ? (+ <div className="flex flex-col">+ <p>{item.label}</p>+ <p className="text-xs text-muted-foreground">+ {item.helper}+ </p>+ </div>+ ) : (+ item.label+ )}+ </>+ )}+ </div></CommandItem>);})}diff --git a/packages/react/src/CreateableMultiSelect.tsx b/packages/react/src/CreateableMultiSelect.tsxindex 01076414f0..c8e213187f 100644--- a/packages/react/src/CreateableMultiSelect.tsx+++ b/packages/react/src/CreateableMultiSelect.tsx@@ -2,8 +2,10 @@ import { useVirtualizer } from "@tanstack/react-virtual";import { CommandEmpty } from "cmdk";import type { ComponentPropsWithoutRef } from "react";import { forwardRef, useId, useMemo, useRef, useState } from "react";+import { FaRegSquare, FaSquareCheck } from "react-icons/fa6";+import { LuPlus } from "react-icons/lu";import { MdClose } from "react-icons/md";-import { RxCheck, RxMagnifyingGlass } from "react-icons/rx";+import { RxMagnifyingGlass } from "react-icons/rx";import { Badge, BadgeCloseButton } from "./Badge";import { Button } from "./Button";import {@@ -267,31 +269,35 @@ function VirtualizedCommand({transform: `translateY(${virtualRow.start}px)`,}}>- {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 && (- <RxCheck- className={cn(- "ml-auto h-4 w-4",- isSelected ? "opacity-100" : "opacity-0"- )}- />- )}+ <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>+ </>+ ) : (+ <>+ {isSelected ? (+ <FaSquareCheck className="mr-1.5 text-primary" />+ ) : (+ <FaRegSquare className="mr-1.5 text-muted-foreground" />+ )}+ {item.helper ? (+ <div className="flex flex-col">+ <p>{item.label}</p>+ <p className="text-xs text-muted-foreground">+ {item.helper}+ </p>+ </div>+ ) : (+ item.label+ )}+ </>+ )}+ </div></CommandItem>);})}diff --git a/packages/react/src/Date/components/Button.tsx b/packages/react/src/Date/components/Button.tsxindex a4517e041d..4889994c76 100644--- a/packages/react/src/Date/components/Button.tsx+++ b/packages/react/src/Date/components/Button.tsx@@ -32,10 +32,10 @@ export const FieldButton = (props: FieldButtonProps) => {{...buttonProps}ref={ref}aria-label="Toggle"- className="flex-shrink-0 h-10 rounded-l-none border-l-0 shadow-sm"+ className="flex-shrink-0 h-10 w-10 px-3 rounded-l-none border-l-0 shadow-sm"icon={<LuCalendar />}variant="secondary"- size="lg"+ size="md"/>);};diff --git a/packages/react/src/Form/FormLabel.tsx b/packages/react/src/Form/FormLabel.tsxindex 2eb5032cd9..9191874428 100644--- a/packages/react/src/Form/FormLabel.tsx+++ b/packages/react/src/Form/FormLabel.tsx@@ -23,13 +23,13 @@ export const FormLabel = forwardRef<className="flex items-center justify-between"{...props}>- <span className={cn("text-xs text-muted-foreground", className)}>+ <span+ className={cn("text-xs font-medium text-muted-foreground", className)}+ >{children}</span>{isOptional && (- <span className="text-muted-foreground font-light text-xxs">- Optional- </span>+ <span className="text-muted-foreground text-xxs">Optional</span>)}</ReactAria.Label>);diff --git a/packages/react/src/MultiSelect.tsx b/packages/react/src/MultiSelect.tsxindex 1118d0fd49..8048be25e2 100644--- a/packages/react/src/MultiSelect.tsx+++ b/packages/react/src/MultiSelect.tsx@@ -1,7 +1,8 @@import { useVirtualizer } from "@tanstack/react-virtual";import type { ComponentPropsWithoutRef } from "react";import { forwardRef, useId, useMemo, useRef, useState } from "react";-import { RxCheck, RxMagnifyingGlass } from "react-icons/rx";+import { FaRegSquare, FaSquareCheck } from "react-icons/fa6";+import { RxMagnifyingGlass } from "react-icons/rx";import { Badge, BadgeCloseButton } from "./Badge";import { Button } from "./Button";import {@@ -216,13 +217,14 @@ function VirtualizedCommand({transform: `translateY(${virtualRow.start}px)`,}}>- <RxCheck- className={cn(- "mr-2 h-4 w-4",- isSelected ? "opacity-100" : "opacity-0"+ <div className="flex items-center justify-start gap-2">+ {isSelected ? (+ <FaSquareCheck className="mr-1.5 text-primary" />+ ) : (+ <FaRegSquare className="mr-1.5 text-muted-foreground" />)}- />- {option.label}+ {option.label}+ </div></CommandItem>);})}