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
refactor: vstack component
Brad Barbin81513e60adc0
diff --git a/apps/carbon/app/components/Address/Address.tsx b/apps/carbon/app/components/Address/Address.tsxindex b11ad09316..7b10364f35 100644--- a/apps/carbon/app/components/Address/Address.tsx+++ b/apps/carbon/app/components/Address/Address.tsx@@ -1,5 +1,5 @@-import { ActionMenu } from "@carbon/react";-import { Grid, Icon, MenuItem, Text, VStack } from "@chakra-ui/react";+import { ActionMenu, VStack } from "@carbon/react";+import { Grid, Icon, MenuItem, Text } from "@chakra-ui/react";import { BsPinMapFill } from "react-icons/bs";import type { Action } from "~/types";@@ -21,7 +21,7 @@ const Address = ({ address, actions }: AddressProps) => {return (<Grid w="full" gridColumnGap={4} gridTemplateColumns="auto 1fr auto"><Icon as={BsPinMapFill} w={8} h={8} />- <VStack spacing={0} alignItems="start">+ <VStack spacing={0}><Text fontWeight="bold" noOfLines={1}>{location}</Text>diff --git a/apps/carbon/app/components/Contact/Contact.tsx b/apps/carbon/app/components/Contact/Contact.tsxindex e6d3aae006..5b638a4e1b 100644--- a/apps/carbon/app/components/Contact/Contact.tsx+++ b/apps/carbon/app/components/Contact/Contact.tsx@@ -1,5 +1,5 @@-import { ActionMenu, Dot } from "@carbon/react";-import { Avatar, Grid, HStack, MenuItem, Text, VStack } from "@chakra-ui/react";+import { ActionMenu, Dot, HStack, VStack } from "@carbon/react";+import { Avatar, Grid, MenuItem, Text } from "@chakra-ui/react";import { Link } from "@remix-run/react";import type { Action } from "~/types";@@ -34,7 +34,7 @@ const Contact = ({ contact, url, user, actions }: ContactProps) => {return (<Grid w="full" gridColumnGap={4} gridTemplateColumns="auto 1fr auto"><Avatar size="sm" name={`${name}`} />- <VStack spacing={0} alignItems="start">+ <VStack spacing={0}><HStack spacing={2}>{url ? (<Link to={url}>diff --git a/apps/carbon/app/components/Form/Array.tsx b/apps/carbon/app/components/Form/Array.tsxindex 50980be627..39f128f899 100644--- a/apps/carbon/app/components/Form/Array.tsx+++ b/apps/carbon/app/components/Form/Array.tsx@@ -1,13 +1,12 @@+import { HStack, VStack } from "@carbon/react";import type { InputProps } from "@chakra-ui/react";-import { Button } from "@chakra-ui/react";-import { VStack } from "@chakra-ui/react";-import { IconButton } from "@chakra-ui/react";-import { HStack } from "@chakra-ui/react";import {+ Button,+ Input as ChakraInput,FormControl,FormErrorMessage,FormLabel,- Input as ChakraInput,+ IconButton,} from "@chakra-ui/react";import { forwardRef } from "react";import { IoMdAdd, IoMdClose } from "react-icons/io";@@ -26,7 +25,7 @@ const Array = forwardRef<HTMLInputElement, FormArrayProps>(return (<FormControl isInvalid={!!error} isRequired={isRequired}>{label && <FormLabel htmlFor={`${name}`}>{label}</FormLabel>}- <VStack alignItems="start" spacing={2} w="full" mb={4}>+ <VStack className="mb-4">{items.map((item, index) => (<ArrayInputkey={`${item}-${index}`}@@ -60,7 +59,7 @@ const ArrayInput = forwardRef<HTMLInputElement, ArrayInputProps>(return (<FormControl isInvalid={!!error} isRequired>- <HStack w="full" alignContent="space-between">+ <HStack className="w-full content-between"><ChakraInputref={ref}{...getInputProps({diff --git a/apps/carbon/app/components/Grid/Grid.tsx b/apps/carbon/app/components/Grid/Grid.tsxindex a2df589545..90540e5d33 100644--- a/apps/carbon/app/components/Grid/Grid.tsx+++ b/apps/carbon/app/components/Grid/Grid.tsx@@ -1,19 +1,6 @@-import { useColor, useEscape, useMount } from "@carbon/react";+import { HStack, VStack, useColor, useEscape, useMount } from "@carbon/react";import { clip } from "@carbon/utils";-import {- Box,- Flex,- HStack,- Icon,- Table,- Tbody,- Td,- Text,- Th,- Thead,- Tr,- VStack,-} from "@chakra-ui/react";+import { Icon, Table, Tbody, Td, Text, Th, Thead, Tr } from "@chakra-ui/react";import type { ColumnDef, ColumnOrderState } from "@tanstack/react-table";import {flexRender,@@ -343,7 +330,7 @@ const Grid = <T extends object>({const rowBackground = useColor("gray.50");return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full">{/* {withColumnOrdering && (<GridHeadercolumnAccessors={columnAccessors}@@ -353,11 +340,8 @@ const Grid = <T extends object>({withColumnOrdering={withColumnOrdering}/>)} */}- <Box- w="full"- h="full"- bg={useColor("white")}- overflowX="auto"+ <div+ className="w-full h-full bg:white dark:bg-black overflow-x-auto"style={{contain: contained ? "strict" : undefined,}}@@ -397,17 +381,12 @@ const Grid = <T extends object>({whiteSpace="nowrap">{header.isPlaceholder ? null : (- <Flex- justify="flex-start"- align="center"- fontSize="xs"- color="gray.500"- >+ <div className="flex justify-start items-center text-xs text-gray-500">{flexRender(header.column.columnDef.header,header.getContext())}- {/* <chakra.span pl="4">+ {/* <span className="pl-4">{sorted ? (sorted === -1 ? (<FaSortDown aria-label="sorted descending" />@@ -420,8 +399,8 @@ const Grid = <T extends object>({style={{ opacity: 0.4 }}/>) : null}- </chakra.span> */}- </Flex>+ </span> */}+ </div>)}</Th>);@@ -471,7 +450,7 @@ const Grid = <T extends object>({}}><Td colSpan={24}>- <HStack spacing={2}>+ <HStack><Icon color="gray.500" as={BsPlus} w={6} h={6} /><Text color="gray.500">New</Text></HStack>@@ -480,7 +459,7 @@ const Grid = <T extends object>({)}</Tbody></Table>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/components/Layout/SectionTitle/SectionTitle.tsx b/apps/carbon/app/components/Layout/SectionTitle/SectionTitle.tsxindex 58ce6b8167..9593abe64a 100644--- a/apps/carbon/app/components/Layout/SectionTitle/SectionTitle.tsx+++ b/apps/carbon/app/components/Layout/SectionTitle/SectionTitle.tsx@@ -8,7 +8,7 @@ type SectionTitleProps = PropsWithChildren<{const SectionTitle = ({ children, subtitle, ...props }: SectionTitleProps) => {return (<VStack spacing={2} className="mb4" {...props}>- <Heading size="h2">{children}</Heading>+ <Heading size="h3">{children}</Heading>{subtitle && <p className="text-muted-foreground">{subtitle}</p>}</VStack>);diff --git a/apps/carbon/app/components/Layout/Sidebar/CollapsibleSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/CollapsibleSidebar.tsxindex df3185f6b0..fee9b94e91 100644--- a/apps/carbon/app/components/Layout/Sidebar/CollapsibleSidebar.tsx+++ b/apps/carbon/app/components/Layout/Sidebar/CollapsibleSidebar.tsx@@ -1,10 +1,9 @@import { useColor } from "@carbon/react";-import { Box, IconButton, Tooltip, useDisclosure } from "@chakra-ui/react";+import { IconButton, Tooltip, useDisclosure } from "@chakra-ui/react";import { motion } from "framer-motion";import type { PropsWithChildren } from "react";import { TbArrowBarLeft, TbArrowBarRight } from "react-icons/tb";-const MotionBox = motion(Box);const variants = {visible: {width: 180,@@ -12,7 +11,6 @@ const variants = {hidden: {width: 15,},- transition: { duration: 0.5 },};export const CollapsibleSidebar = ({ children }: PropsWithChildren<{}>) => {@@ -21,18 +19,12 @@ export const CollapsibleSidebar = ({ children }: PropsWithChildren<{}>) => {});return (- <MotionBox+ <motion.divanimate={sidebar.isOpen ? "visible" : "hidden"}initial={variants.visible}+ transition={{ duration: 0.5 }}variants={variants}- bg={useColor("white")}- borderRight={1}- borderRightColor={useColor("gray.300")}- borderRightStyle="solid"- h="calc(100vh - 50px)"- position="sticky"- top={50}- zIndex={3}+ className="bg-background border-r h-full min-h-[calc(100vh-50px)] sticky top-50 z-3"><Tooltip label={sidebar.isOpen ? "Collapse" : "Expand"} placement="right"><IconButton@@ -58,6 +50,6 @@ export const CollapsibleSidebar = ({ children }: PropsWithChildren<{}>) => {/></Tooltip>{sidebar.isOpen ? children : null}- </MotionBox>+ </motion.div>);};diff --git a/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsxindex 54ff97accd..d72e60e180 100644--- a/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx+++ b/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx@@ -1,5 +1,5 @@-import { useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches } from "@remix-run/react";import { useUrlParams } from "~/hooks";import type { Route } from "~/types";@@ -9,47 +9,36 @@ const ContentSidebar = ({ links }: { links: Route[] }) => {const matches = useMatches();const [params] = useUrlParams();const filter = params.get("q") ?? undefined;- const borderColor = useColor("gray.200");return (<CollapsibleSidebar>- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full" pb={8}>- <VStack spacing={2}>- <VStack- spacing={1}- alignItems="start"- borderBottomStyle={"solid"}- borderBottomWidth={1}- borderBottomColor={borderColor}- p={2}- w="full"- >- {links.map((route) => {- const isActive = matches.some(- (match) =>- match.pathname.includes(route.to) && route.q === filter- );- return (- <Button- key={route.name}- as={Link}- to={route.to + (route.q ? `?q=${route.q}` : "")}- leftIcon={route.icon}- variant={isActive ? "solid" : "ghost"}- border="none"- fontWeight={isActive ? "bold" : "normal"}- justifyContent="start"- w="full"- >- {route.name}- </Button>- );- })}- </VStack>+ <div className="overflow-y-auto h-full w-full pb-8">+ <VStack spacing={2}>+ <VStack spacing={1} className="border-b p-2">+ {links.map((route) => {+ const isActive = matches.some(+ (match) =>+ match.pathname.includes(route.to) && route.q === filter+ );+ return (+ <Button+ key={route.name}+ as={Link}+ to={route.to + (route.q ? `?q=${route.q}` : "")}+ leftIcon={route.icon}+ variant={isActive ? "solid" : "ghost"}+ border="none"+ fontWeight={isActive ? "bold" : "normal"}+ justifyContent="start"+ w="full"+ >+ {route.name}+ </Button>+ );+ })}</VStack>- </Box>- </VStack>+ </VStack>+ </div></CollapsibleSidebar>);};diff --git a/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsxindex a609d29a50..8e1598e090 100644--- a/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx+++ b/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx@@ -1,65 +1,53 @@-import { useColor } from "@carbon/react";-import { Box, Button, Text, VStack } from "@chakra-ui/react";+import { VStack, useColor } from "@carbon/react";+import { Button, Text } from "@chakra-ui/react";import { Link, useMatches } from "@remix-run/react";import type { RouteGroup } from "~/types";import { CollapsibleSidebar } from "./CollapsibleSidebar";const GroupedContentSidebar = ({ groups }: { groups: RouteGroup[] }) => {const matches = useMatches();- const borderColor = useColor("gray.200");const labelColor = useColor("gray.400");return (<CollapsibleSidebar>- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full" pb={8}>- <VStack spacing={2}>- {groups.map((group) => (- <VStack- key={group.name}- spacing={1}- alignItems="start"- borderBottomStyle={"solid"}- borderBottomWidth={1}- borderBottomColor={borderColor}- p={2}- w="full"+ <div className="overflow-y-auto h-full w-full pb-8">+ <VStack spacing={2}>+ {groups.map((group) => (+ <VStack key={group.name} spacing={1} className="border-b p-2">+ <Text+ color={labelColor}+ fontSize="xs"+ fontWeight="bold"+ pl={3}+ py={1}+ textTransform="uppercase">- <Text- color={labelColor}- fontSize="xs"- fontWeight="bold"- pl={3}- py={1}- textTransform="uppercase"- >- {group.name}- </Text>- {group.routes.map((route) => {- const isActive = matches.some((match) =>- match.pathname.includes(route.to)- );- return (- <Button- key={route.name}- as={Link}- to={route.to}- variant={isActive ? "solid" : "ghost"}- border="none"- fontWeight={isActive ? "bold" : "normal"}- leftIcon={route.icon}- justifyContent="start"- w="full"- >- {route.name}- </Button>- );- })}- </VStack>- ))}- </VStack>- </Box>- </VStack>+ {group.name}+ </Text>+ {group.routes.map((route) => {+ const isActive = matches.some((match) =>+ match.pathname.includes(route.to)+ );+ return (+ <Button+ key={route.name}+ as={Link}+ to={route.to}+ variant={isActive ? "solid" : "ghost"}+ border="none"+ fontWeight={isActive ? "bold" : "normal"}+ leftIcon={route.icon}+ justifyContent="start"+ w="full"+ >+ {route.name}+ </Button>+ );+ })}+ </VStack>+ ))}+ </VStack>+ </div></CollapsibleSidebar>);};diff --git a/apps/carbon/app/components/Layout/Sidebar/IconSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/IconSidebar.tsxindex 070ca2392d..1f1f131007 100644--- a/apps/carbon/app/components/Layout/Sidebar/IconSidebar.tsx+++ b/apps/carbon/app/components/Layout/Sidebar/IconSidebar.tsx@@ -1,5 +1,5 @@-import { useColor } from "@carbon/react";-import { Box, IconButton, Tooltip, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { IconButton, Tooltip } from "@chakra-ui/react";import { Link, useMatches } from "@remix-run/react";import { BsFillHexagonFill } from "react-icons/bs";import { z } from "zod";@@ -23,14 +23,7 @@ const IconSidebar = () => {}, new Set<string>());return (- <Box- h="full"- borderRight={1}- borderRightColor={useColor("gray.200")}- borderRightStyle="solid"- background={useColor("white")}- zIndex={1}- >+ <div className="h-full border-r bg-background z-10"><IconButtonaria-label="Home"as={Link}@@ -43,7 +36,7 @@ const IconSidebar = () => {mb={4}/>- <VStack spacing={0} top={50} position="sticky">+ <VStack spacing={0} className="top-[50px] sticky">{links.map((link) => {const module = link.to.split("/")[2]; // link.to is "/x/parts" -- this returns "parts"@@ -67,7 +60,7 @@ const IconSidebar = () => {);})}</VStack>- </Box>+ </div>);};diff --git a/apps/carbon/app/components/Layout/Sidebar/MultiTabSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/MultiTabSidebar.tsxindex 2c62cf69e3..7a65cd453e 100644--- a/apps/carbon/app/components/Layout/Sidebar/MultiTabSidebar.tsx+++ b/apps/carbon/app/components/Layout/Sidebar/MultiTabSidebar.tsx@@ -1,18 +1,9 @@-import { useColor } from "@carbon/react";-import {- Box,- IconButton,- Tooltip,- useDisclosure,- useOutsideClick,- VStack,-} from "@chakra-ui/react";+import { VStack, useDisclosure, useOutsideClick } from "@carbon/react";+import { IconButton, Tooltip } from "@chakra-ui/react";import { motion } from "framer-motion";import type { ReactElement } from "react";import { useRef, useState } from "react";-const MotionBox = motion(Box);-type MultiTabSidebarNode = {id: string;icon: ReactElement;@@ -27,22 +18,6 @@ type MultiTabSidebarProps = {nodes: MultiTabSidebarNode[];};-const variants = {- visible: {- position: "asbolute",- x: "0%",- z: "0px",- left: "48px",- },- hidden: {- position: "relative",- x: "-100%",- z: "0px",- left: "0",- },- transition: { duration: 0.5 },-};-const MultiTabSidebar = ({nodes,canCollapse = true,@@ -66,18 +41,6 @@ const MultiTabSidebar = ({},});- const initialState = defaultIsOpen- ? {- position: "relative",- x: "0%",- left: "48px",- }- : {- position: "fixed",- x: "-100%",- left: "-100%",- };-const getActiveNode = () => {if (activeNode === null) return null;const node = nodes.find((n) => n.id === activeNode);@@ -96,34 +59,50 @@ const MultiTabSidebar = ({return (<>- <MotionBox+ <motion.divanimate={!sidebar.isOpen ? "hidden" : "visible"}- initial={initialState}- variants={variants}+ initial={+ defaultIsOpen+ ? {+ position: "relative",+ x: "0%",+ left: "48px",+ }+ : {+ position: "fixed",+ x: "-100%",+ left: "-100%",+ }+ }+ variants={{+ visible: {+ position: "absolute",+ x: "0%",+ z: "0px",+ left: "48px",+ },+ hidden: {+ position: "relative",+ x: "-100%",+ z: "0px",+ left: "0",+ },+ }}+ transition={{+ duration: 0.5,+ }}ref={ref}- h="full"- w="20rem"- bg={useColor("white")}- borderRight={1}- borderRightColor={useColor("gray.300")}- borderRightStyle="solid"+ className="h-full w-[20rem] bg-background border-r">- <VStack h="full" alignItems="start">- <Box pb={8} overflowY="auto" w="full" h="full" p={2}>+ <VStack className="h-full">+ <div className="p-2 pb-8 overflow-y-auto w-full h-full">{/* TODO: persist state between changes */}{getActiveNode()}- </Box>+ </div></VStack>- </MotionBox>+ </motion.div>- <Box- position="absolute"- h="full"- bg={useColor("white")}- borderRight={1}- borderRightColor={useColor("gray.200")}- borderRightStyle="solid"- >+ <div className="absolute h-full bg-background border-r"><VStack spacing={0}>{nodes.map((node) => (<Tooltip key={node.id} label={node.label} placement="right">@@ -140,7 +119,7 @@ const MultiTabSidebar = ({</Tooltip>))}</VStack>- </Box>+ </div></>);};diff --git a/apps/carbon/app/components/Search/Search/Search.tsx b/apps/carbon/app/components/Search/Search/Search.tsxindex 6419aa8e38..fa4d4ca770 100644--- a/apps/carbon/app/components/Search/Search/Search.tsx+++ b/apps/carbon/app/components/Search/Search/Search.tsx@@ -1,10 +1,14 @@-import { useColor, useDebounce, useKeyboardShortcuts } from "@carbon/react";+import {+ VStack,+ useColor,+ useDebounce,+ useDisclosure,+ useKeyboardShortcuts,+} from "@carbon/react";import { clip } from "@carbon/utils";import type { ButtonProps } from "@chakra-ui/react";import {- Box,Button,- Flex,HStack,Icon,Input,@@ -18,8 +22,6 @@ import {ModalContent,ModalOverlay,Text,- VStack,- useDisclosure,} from "@chakra-ui/react";import { Link, useNavigate } from "@remix-run/react";import { useCallback, useEffect, useRef, useState } from "react";@@ -221,16 +223,7 @@ const SearchModal = ({/></InputGroup>- <Box- bg="white"- borderRadius="lg"- boxShadow="lg"- maxH="66vh"- overflowY="scroll"- px={4}- pt={0}- pb={4}- >+ <div className="bg-background rounded-lg shadow-lg max-h-[66vh] overflow-y-scroll p-4 pt-0"><List role="listbox" ref={listboxRef}>{moduleResults.map((item, itemIndex) => (<Module@@ -256,7 +249,7 @@ const SearchModal = ({/>))}</List>- </Box>+ </div></ModalBody></ModalContent></Modal>@@ -326,7 +319,7 @@ function Result({onMouseEnter={onHover}><ResultIcon entity={result.entity} />- <VStack alignItems="start" flexGrow={1} spacing={0} w="full">+ <VStack spacing={0} className="flex-1"><Text fontSize="sm" color="gray.500">{result.entity}</Text>@@ -367,7 +360,7 @@ function Module({{/* {item.icon && ( // @ts-expect-error<Icon as={item.icon} {...resultIconProps} />)} */}- <VStack alignItems="start" flexGrow={1} spacing={0} w="full">+ <VStack spacing={0} className="flex-1"><Text fontSize="sm" color="gray.500">Module</Text>@@ -399,7 +392,7 @@ const SearchButton = (props: ButtonProps) => {{...props}><HStack w="full">- <Flex flexGrow={1}>Search</Flex>+ <div className="flex flex-grow">Search</div><Kbd size="lg">/</Kbd></HStack></Button>diff --git a/apps/carbon/app/components/Table/Table.tsx b/apps/carbon/app/components/Table/Table.tsxindex a915ee5a7c..4f046442ee 100644--- a/apps/carbon/app/components/Table/Table.tsx+++ b/apps/carbon/app/components/Table/Table.tsx@@ -1,6 +1,7 @@import {ActionMenu,ContextMenu,+ VStack,useColor,useEscape,useMount,@@ -8,18 +9,14 @@ import {import { clip } from "@carbon/utils";import type { ThemeTypings } from "@chakra-ui/react";import {- Box,- chakra,- Flex,+ Table as ChakraTable,Grid,MenuList,- Table as ChakraTable,Tbody,Th,Thead,Tr,VisuallyHidden,- VStack,} from "@chakra-ui/react";import type {ColumnDef,@@ -428,7 +425,7 @@ const Table = <T extends object>({const rowBackground = useColor("gray.50");return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full">{(withColumnOrdering ||withFilters ||withSelectableRows ||@@ -450,11 +447,8 @@ const Table = <T extends object>({withSelectableRows={withSelectableRows}/>)}- <Box- w="full"- h="full"- bg={useColor("white")}- overflow="scroll"+ <div+ className="w-full h-full bg-background overflow-scroll"style={{ contain: "strict" }}ref={tableContainerRef}onKeyDown={editMode ? onKeyDown : undefined}@@ -505,17 +499,12 @@ const Table = <T extends object>({whiteSpace="nowrap">{header.isPlaceholder ? null : (- <Flex- justify="flex-start"- align="center"- fontSize="xs"- color="gray.500"- >+ <div className="flex justify-start items-center text-xs text-muted-foreground">{flexRender(header.column.columnDef.header,header.getContext())}- <chakra.span pl="4">+ <span className="pl-4">{sorted ? (sorted === -1 ? (<FaSortDown aria-label="sorted descending" />@@ -525,8 +514,8 @@ const Table = <T extends object>({) : sortable ? (<FaSort aria-label="sort" />) : null}- </chakra.span>- </Flex>+ </span>+ </div>)}</Th>);@@ -639,17 +628,12 @@ const Table = <T extends object>({whiteSpace="nowrap">{header.isPlaceholder ? null : (- <Flex- justify="flex-start"- align="center"- fontSize="xs"- color="gray.500"- >+ <div className="flex justify-start items-center text-xs text-muted-foreground">{flexRender(header.column.columnDef.header,header.getContext())}- <chakra.span pl="4">+ <span className="pl-4">{sorted ? (sorted === -1 ? (<FaSortDown aria-label="sorted descending" />@@ -662,8 +646,8 @@ const Table = <T extends object>({style={{ opacity: 0.4 }}/>) : null}- </chakra.span>- </Flex>+ </span>+ </div>)}</Th>);@@ -751,7 +735,7 @@ const Table = <T extends object>({</Tbody></ChakraTable></Grid>- </Box>+ </div>{withPagination && (<Pagination {...pagination} colorScheme={colorScheme} />)}@@ -794,9 +778,9 @@ function getActionColumn<T>(id: "Actions",header: () => <VisuallyHidden>Actions</VisuallyHidden>,cell: (item) => (- <Flex justifyContent="end">+ <div className="flex justify-end"><ActionMenu>{renderContextMenu(item.row.original)}</ActionMenu>- </Flex>+ </div>),},];diff --git a/apps/carbon/app/modules/account/ui/Password/PasswordForm/PasswordForm.tsx b/apps/carbon/app/modules/account/ui/Password/PasswordForm/PasswordForm.tsxindex af4c82db05..c5eeb999ab 100644--- a/apps/carbon/app/modules/account/ui/Password/PasswordForm/PasswordForm.tsx+++ b/apps/carbon/app/modules/account/ui/Password/PasswordForm/PasswordForm.tsx@@ -1,4 +1,4 @@-import { Box, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import { useRef, useState } from "react";import { ValidatedForm } from "remix-validated-form";import { Password, Submit } from "~/components/Form";@@ -21,13 +21,13 @@ const PasswordForm = () => {};return (- <Box w="full">+ <div className="w-full"><ValidatedFormmethod="post"action={path.to.accountPassword}validator={accountPasswordValidator}>- <VStack spacing={4} my={4} w="full" alignItems="start" maxW={440}>+ <VStack spacing={4} className="my-4 max-w-[440px]"><Password name="currentPassword" label="Current Password" /><Passwordref={passwordRef}@@ -44,7 +44,7 @@ const PasswordForm = () => {<Submit isDisabled={!passwordsMatch}>Update Password</Submit></VStack></ValidatedForm>- </Box>+ </div>);};diff --git a/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/PersonalDataForm.tsx b/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/PersonalDataForm.tsxindex 893612b7a3..6747b0ad15 100644--- a/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/PersonalDataForm.tsx+++ b/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/PersonalDataForm.tsx@@ -1,4 +1,5 @@-import { Box, Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Submit } from "~/components/Form";import type { PersonalData } from "~/modules/account";@@ -11,20 +12,19 @@ type PersonalDataFormProps = {const PersonalDataForm = ({ personalData }: PersonalDataFormProps) => {return (- <Box w="full">+ <div className="w-full"><ValidatedFormmethod="post"action={path.to.accountPersonal}validator={accountPersonalDataValidator}defaultValues={personalData}>- <VStack alignItems="start" w="full" spacing={4} mt={4}>+ <VStack spacing={4} className="mt-4"><Grid gridTemplateColumns="1fr 1fr" gridColumnGap={4} w="full"></Grid>-<Submit>Save</Submit></VStack></ValidatedForm>- </Box>+ </div>);};diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfileForm/ProfileForm.tsx b/apps/carbon/app/modules/account/ui/Profile/ProfileForm/ProfileForm.tsxindex a985ba9f4f..26fd7c4162 100644--- a/apps/carbon/app/modules/account/ui/Profile/ProfileForm/ProfileForm.tsx+++ b/apps/carbon/app/modules/account/ui/Profile/ProfileForm/ProfileForm.tsx@@ -1,4 +1,5 @@-import { Box, Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";import { Hidden, Input, Submit, TextArea } from "~/components/Form";@@ -16,7 +17,7 @@ const ProfileForm = ({ user }: ProfileFormProps) => {const isSelf = !personId;return (- <Box w="full">+ <div className="w-full"><SectionTitle>Basic Information</SectionTitle><ValidatedFormmethod="post"@@ -24,7 +25,7 @@ const ProfileForm = ({ user }: ProfileFormProps) => {validator={accountProfileValidator}defaultValues={user}>- <VStack spacing={4} my={4} w="full" alignItems="start">+ <VStack spacing={4} className="my-4"><Grid gridTemplateColumns="1fr 1fr" gridColumnGap={4} w="full"><Input name="firstName" label="First Name" /><Input name="lastName" label="Last Name" />@@ -34,7 +35,7 @@ const ProfileForm = ({ user }: ProfileFormProps) => {<Submit size="sm">Save</Submit></VStack></ValidatedForm>- </Box>+ </div>);};diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/ProfilePhotoForm.tsx b/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/ProfilePhotoForm.tsxindex 21bbb058c9..89f7477876 100644--- a/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/ProfilePhotoForm.tsx+++ b/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/ProfilePhotoForm.tsx@@ -1,5 +1,5 @@-import { File, useNotification } from "@carbon/react";-import { Button, VStack } from "@chakra-ui/react";+import { File, VStack, useNotification } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { useSubmit } from "@remix-run/react";import type { ChangeEvent } from "react";import { Avatar } from "~/components";@@ -66,7 +66,7 @@ const ProfilePhotoForm = ({ user }: ProfilePhotoFormProps) => {};return (- <VStack w="full" spacing={2} px={8}>+ <VStack className="px-8 items-center"><Avatar size="2xl" path={user?.avatarUrl} title={user?.fullName ?? ""} /><File accept="image/*" onChange={uploadImage}>{user.avatarUrl ? "Change" : "Upload"}diff --git a/apps/carbon/app/modules/account/ui/UserAttributes/UserAttributesForm.tsx b/apps/carbon/app/modules/account/ui/UserAttributes/UserAttributesForm.tsxindex 3e8f88d2a4..d8cafd1600 100644--- a/apps/carbon/app/modules/account/ui/UserAttributes/UserAttributesForm.tsx+++ b/apps/carbon/app/modules/account/ui/UserAttributes/UserAttributesForm.tsx@@ -1,14 +1,5 @@-import { useColor } from "@carbon/react";-import {- Box,- Button,- Grid,- HStack,- Switch,- Text,- useDisclosure,- VStack,-} from "@chakra-ui/react";+import { VStack, useColor, useDisclosure } from "@carbon/react";+import { Button, Grid, HStack, Switch, Text } from "@chakra-ui/react";import { parseDate } from "@internationalized/date";import { useFetcher, useParams } from "@remix-run/react";import { useState } from "react";@@ -64,11 +55,11 @@ const UserAttributesForm = ({ attributeCategory }: UserAttributesFormProps) => {return null;return (- <Box w="full">- <VStack alignItems="start" w="full" spacing={4}>+ <div className="w-full">+ <VStack spacing={4}>{attributeCategory.userAttribute.map((attribute) => {const genericProps = getGenericProps(- attribute,+ attribute as PublicAttributes["userAttribute"],optimisticUpdates[attribute.id]);@@ -93,7 +84,7 @@ const UserAttributesForm = ({ attributeCategory }: UserAttributesFormProps) => {);})}</VStack>- </Box>+ </div>);};@@ -123,11 +114,11 @@ const GenericAttributeRow = (props: GenericAttributeRowProps) => {};return (- <Box key={props.attribute.id} w="full">+ <div key={props.attribute.id} className="w-full">{editing.isOpen? TypedForm({ ...props, onSubmit, onClose: editing.onClose }): TypedDisplay({ ...props, onOpen: editing.onOpen })}- </Box>+ </div>);};@@ -174,12 +165,12 @@ function renderTypedForm({<Text color="gray.500" alignSelf="center">{attribute.name}</Text>- <Box>+ <div><Hidden name="type" value="boolean" /><Hidden name="userAttributeId" /><Hidden name="userAttributeValueId" /><BooleanInput name="value" />- </Box>+ </div><HStack justifyContent="end" w="full" alignSelf="center"><Submit size="sm" type="submit">Save@@ -216,12 +207,12 @@ function renderTypedForm({<Text color="gray.500" alignSelf="center">{attribute.name}</Text>- <Box>+ <div><Hidden name="type" value="date" /><Hidden name="userAttributeId" /><Hidden name="userAttributeValueId" /><DatePicker name="value" />- </Box>+ </div><HStack justifyContent="end" w="full" alignSelf="center"><Submit size="sm" type="submit">Save@@ -258,7 +249,7 @@ function renderTypedForm({<Text color="gray.500" alignSelf="center">{attribute.name}</Text>- <Box>+ <div><Hidden name="type" value="list" /><Hidden name="userAttributeId" /><Hidden name="userAttributeValueId" />@@ -271,7 +262,7 @@ function renderTypedForm({})) ?? []}/>- </Box>+ </div><HStack justifyContent="end" w="full" alignSelf="center"><Submit size="sm" type="submit">Save@@ -308,12 +299,12 @@ function renderTypedForm({<Text color="gray.500" alignSelf="center">{attribute.name}</Text>- <Box>+ <div><Hidden name="type" value="numeric" /><Hidden name="userAttributeId" /><Hidden name="userAttributeValueId" /><NumberInput name="value" />- </Box>+ </div><HStack justifyContent="end" w="full" alignSelf="center"><Submit size="sm" type="submit">Save@@ -350,12 +341,12 @@ function renderTypedForm({<Text color="gray.500" alignSelf="center">{attribute.name}</Text>- <Box>+ <div><Hidden name="type" value="text" /><Hidden name="userAttributeId" /><Hidden name="userAttributeValueId" /><Input name="value" />- </Box>+ </div><HStack justifyContent="end" w="full" alignSelf="center"><Submit size="sm" type="submit">Save@@ -392,12 +383,12 @@ function renderTypedForm({<Text color="gray.500" alignSelf="center">{attribute.name}</Text>- <Box>+ <div><Hidden name="type" value="user" /><Hidden name="userAttributeId" /><Hidden name="userAttributeValueId" /><Employee name="value" />- </Box>+ </div><HStack justifyContent="end" w="full" alignSelf="center"><Submit size="sm" type="submit">Save@@ -411,9 +402,9 @@ function renderTypedForm({);default:return (- <Box bg="red.100" color="red.800" p={4} w="full">+ <div className="text-destructive bg-destructive-foreground p-4 w-full">Unknown data type- </Box>+ </div>);}}diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/AccountCategoryDetail.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/AccountCategoryDetail.tsxindex 4e031b9d2c..99da974de7 100644--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/AccountCategoryDetail.tsx+++ b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/AccountCategoryDetail.tsx@@ -1,3 +1,4 @@+import { HStack, VStack, useDisclosure } from "@carbon/react";import {Button,Drawer,@@ -7,15 +8,12 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,IconButton,List,ListItem,Tag,TagLabel,Text,- useDisclosure,- VStack,} from "@chakra-ui/react";import { Link } from "@remix-run/react";import { useState } from "react";@@ -62,8 +60,8 @@ const AccountCategoryDetail = ({<DrawerContent><DrawerCloseButton /><DrawerHeader>- <VStack spacing={2} w="full" alignItems="start">- <HStack justifyContent="space-between" w="full" pr={8}>+ <VStack>+ <HStack className="content-between pr-8 w-full"><span>{accountCategory.category}</span><TagborderRadius="full"diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/AccountCategoryForm.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/AccountCategoryForm.tsxindex 0a349d5738..670f49f4fe 100644--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/AccountCategoryForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/AccountCategoryForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Hidden, Input, Select, Submit } from "~/components/Form";@@ -57,7 +56,7 @@ const AccountCategoryForm = ({</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={2} alignItems="start">+ <VStack><Input name="category" label="Category" /><Selectname="incomeBalance"@@ -78,7 +77,7 @@ const AccountCategoryForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/AccountSubcategoryForm.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/AccountSubcategoryForm.tsxindex e3eabfe3ec..4410303a87 100644--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/AccountSubcategoryForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/AccountSubcategoryForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -9,9 +10,7 @@ import {DrawerOverlay,FormControl,FormLabel,- HStack,- Input as ChakraInput,- VStack,+ Input as InputBase,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -69,16 +68,16 @@ const AccountSubcategoryForm = ({<DrawerBody pb={8}><Hidden name="id" /><Hidden name="accountCategoryId" />- <VStack spacing={2} alignItems="start">+ <VStack><FormControl><FormLabel>Category</FormLabel>- <ChakraInput value={category} isReadOnly />+ <InputBase value={category} isReadOnly /></FormControl><Input name="name" label="Name" /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx b/apps/carbon/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsxindex b2902f39c5..9cdfac2b03 100644--- a/apps/carbon/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/AccountDefaults/AccountDefaultsForm.tsx@@ -1,14 +1,12 @@-import { Heading } from "@carbon/react";+import { Heading, HStack, VStack } from "@carbon/react";import {Button,Grid,- HStack,Tab,TabList,TabPanel,TabPanels,Tabs,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -47,7 +45,7 @@ const AccountDefaultsForm = ({}));return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ValidatedFormvalidator={defaultAcountValidator}method="post"@@ -65,8 +63,8 @@ const AccountDefaultsForm = ({<TabPanels><TabPanel>- <VStack w="full" alignItems="start" spacing={8}>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={8}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -92,7 +90,7 @@ const AccountDefaultsForm = ({/></Grid></VStack>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -159,7 +157,7 @@ const AccountDefaultsForm = ({/></Grid></VStack>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -190,7 +188,7 @@ const AccountDefaultsForm = ({/></Grid></VStack>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -229,8 +227,8 @@ const AccountDefaultsForm = ({</VStack></TabPanel><TabPanel>- <VStack w="full" alignItems="start" spacing={8}>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={8}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -287,7 +285,7 @@ const AccountDefaultsForm = ({/></Grid></VStack>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -323,7 +321,7 @@ const AccountDefaultsForm = ({/></Grid></VStack>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -374,7 +372,7 @@ const AccountDefaultsForm = ({/></Grid></VStack>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Headingsize="h4"className="uppercase text-muted-foreground"@@ -399,7 +397,7 @@ const AccountDefaultsForm = ({</TabPanels></Tabs>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/ChartOfAccountForm.tsx b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/ChartOfAccountForm.tsxindex 4008f96423..5c5a225e5f 100644--- a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/ChartOfAccountForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/ChartOfAccountForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -8,8 +9,6 @@ import {DrawerHeader,DrawerOverlay,Grid,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -102,7 +101,7 @@ const ChartOfAccountForm = ({ initialValues }: ChartOfAccountFormProps) => {gridRowGap={2}w="full">- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="number" label="Account Number" /><Input name="name" label="Name" /><Select@@ -114,7 +113,7 @@ const ChartOfAccountForm = ({ initialValues }: ChartOfAccountFormProps) => {}))}/></VStack>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><AccountCategoryname="accountCategoryId"onChange={onAccountCategoryChange}@@ -137,7 +136,7 @@ const ChartOfAccountForm = ({ initialValues }: ChartOfAccountFormProps) => {}}/></VStack>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><SelectControlledname="class"label="Class"diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx b/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsxindex a4a4aebb99..f791995f84 100644--- a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -60,7 +59,7 @@ const CurrencyForm = ({ initialValues }: CurrencyFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Currency</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Inputname="name"label="Name"diff --git a/apps/carbon/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsx b/apps/carbon/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsxindex 9add21ac9f..de0e9ba55c 100644--- a/apps/carbon/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/FiscalYear/FiscalYearSettingsForm.tsx@@ -1,4 +1,4 @@-import { Box, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import { ValidatedForm } from "remix-validated-form";import { Select, Submit } from "~/components/Form";import { usePermissions } from "~/hooks";@@ -16,14 +16,14 @@ const FiscalYearSettingsForm = ({}: FiscalYearSettingsFormProps) => {const permissions = usePermissions();return (- <Box w="full">+ <div className="w-full"><ValidatedFormmethod="post"action={path.to.fiscalYears}defaultValues={initialValues}validator={fiscalYearSettingsValidator}>- <VStack spacing={4} my={4} w="full" alignItems="start" maxW={440}>+ <VStack spacing={4} className="my-4 w-full max-w-[440px]"><Selectname="startMonth"label="Start of Fiscal Year"@@ -46,7 +46,7 @@ const FiscalYearSettingsForm = ({</Submit></VStack></ValidatedForm>- </Box>+ </div>);};diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/PaymentTermForm.tsx b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/PaymentTermForm.tsxindex 8c665a8b87..608406823c 100644--- a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/PaymentTermForm.tsx+++ b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/PaymentTermForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -63,7 +62,7 @@ const PaymentTermForm = ({ initialValues }: PaymentTermFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Payment Term</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><Selectname="calculationMethod"diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/DocumentForm.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/DocumentForm.tsxindex 652c5a3308..929596683b 100644--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/DocumentForm.tsx+++ b/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/DocumentForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -46,7 +45,7 @@ const DocumentForm = ({ initialValues, ownerId }: DocumentFormProps) => {<Hidden name="id" /><Hidden name="type" /><Hidden name="size" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Inputname="name"label="Name"diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsxindex ab2fa767cf..56d134737f 100644--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx+++ b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx@@ -1,6 +1,5 @@-import { Menubar, MenubarItem } from "@carbon/react";+import { HStack, Menubar, MenubarItem, VStack } from "@carbon/react";import {- Box,Button,Drawer,DrawerBody,@@ -10,8 +9,6 @@ import {DrawerHeader,DrawerOverlay,Grid,- HStack,- VStack,} from "@chakra-ui/react";import { Outlet } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -80,14 +77,14 @@ const ReceiptForm = ({<DrawerCloseButton /><DrawerHeader>{initialValues.receiptId}</DrawerHeader><DrawerBody pb={8}>- <VStack spacing={4} w="full" alignItems="start">+ <VStack spacing={4}><Menubar mb={2} mt={-2}><MenubarItem isDisabled={!canPost || isPosted} onClick={onPost}>Post</MenubarItem></Menubar>- <Box w="full">+ <div className="w-full"><ValidatedFormid={formId}validator={receiptValidator}@@ -105,7 +102,7 @@ const ReceiptForm = ({}/><Hidden name="supplierId" value={supplierId ?? ""} />- <VStack spacing={4} w="full" alignItems="start" minH="full">+ <VStack spacing={4} className="min-h-full"><GridgridTemplateColumns={["1fr", "1fr", "1fr 1fr"]}gridColumnGap={8}@@ -163,9 +160,9 @@ const ReceiptForm = ({</Grid></VStack></ValidatedForm>- </Box>+ </div>- <VStack w="full" alignItems="start">+ <VStack><SectionTitle>Receipt Lines</SectionTitle><DataGrid<ReceiptLine>data={internalReceiptLines}diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/ShippingMethodForm.tsx b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/ShippingMethodForm.tsxindex 939a956f95..fb660213b1 100644--- a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/ShippingMethodForm.tsx+++ b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/ShippingMethodForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -59,14 +58,18 @@ const ShippingMethodForm = ({ initialValues }: ShippingMethodFormProps) => {</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><Selectname="carrier"label="Carrier"options={shippingCarrierOptions}/>- <Account name="carrierAccountId" label="Carrier Account" />+ <Account+ classes={["Expense"]}+ name="carrierAccountId"+ label="Carrier Account"+ /><Inputname="trackingUrl"label="Tracking URL"diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsxindex fbb2541114..03e771cf80 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx@@ -1,4 +1,4 @@-import { Heading } from "@carbon/react";+import { Heading, VStack } from "@carbon/react";import {Card,CardBody,@@ -6,7 +6,6 @@ import {CardHeader,Grid,Text,- VStack,} from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";@@ -81,7 +80,7 @@ const PurchaseInvoiceForm = ({<CardBody><Hidden name="id" /><Hidden name="invoiceId" />- <VStack spacing={2} w="full" alignItems="start">+ <VStack><GridgridTemplateColumns={isEditing ? ["1fr", "1fr", "1fr 1fr 1fr"] : "1fr"@@ -90,7 +89,7 @@ const PurchaseInvoiceForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Suppliername="supplierId"label="Supplier"@@ -118,7 +117,7 @@ const PurchaseInvoiceForm = ({</>)}</VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Inputname="supplierReference"label="Supplier Invoice Number"@@ -135,7 +134,7 @@ const PurchaseInvoiceForm = ({/>)}</VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack>{isEditing && (<><Selectdiff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsxindex 78188b9374..f4c16979ef 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx@@ -1,21 +1,25 @@-import { Heading, Menubar, MenubarItem } from "@carbon/react";+import {+ HStack,+ Heading,+ Menubar,+ MenubarItem,+ VStack,+ useDisclosure,+} from "@carbon/react";import {Button,Card,CardBody,CardHeader,- HStack,Stack,Text,- VStack,- useDisclosure,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { useMemo, useState } from "react";import { FaHistory } from "react-icons/fa";import { usePermissions, useRouteData } from "~/hooks";import { useSupabase } from "~/lib/supabase";-import type { PurchaseInvoice, PurchaseInvoiceLine } from "~/modules/invoicing";+import type { PurchaseInvoice } from "~/modules/invoicing";import {PurchaseInvoicingStatus,usePurchaseInvoiceTotals,@@ -30,7 +34,7 @@ const PurchaseInvoiceHeader = () => {const { supabase } = useSupabase();const [linesNotAssociatedWithPO, setLinesNotAssociatedWithPO] = useState<- PurchaseInvoiceLine[]+ { partId: string | null; quantity: number }[]>([]);if (!invoiceId) throw new Error("invoiceId not found");@@ -67,13 +71,13 @@ const PurchaseInvoiceHeader = () => {if (!data) return;// so that we can ask the user if they want to receive those lines- setLinesNotAssociatedWithPO(data);+ setLinesNotAssociatedWithPO(data ?? []);postingModal.onOpen();};return (<>- <VStack w="full" alignItems="start" spacing={2}>+ <VStack>{permissions.is("employee") && (<Menubar><MenubarItem@@ -87,13 +91,13 @@ const PurchaseInvoiceHeader = () => {<Card w="full"><CardHeader>- <HStack justifyContent="space-between" alignItems="start">- <Stack direction="column" spacing={2}>+ <HStack className="items-start justify-between">+ <VStack><Heading size="h3">{purchaseInvoice.invoiceId}</Heading><Text color="gray.500" fontWeight="normal">{purchaseInvoice.supplierName}</Text>- </Stack>+ </VStack><Button onClick={() => alert("TODO")} leftIcon={<FaHistory />}>Supplier Details</Button>diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/PurchaseInvoiceLineForm.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/PurchaseInvoiceLineForm.tsxindex c53cbc0063..8e69e44182 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/PurchaseInvoiceLineForm.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/PurchaseInvoiceLineForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -9,14 +10,12 @@ import {DrawerOverlay,FormControl,FormLabel,- HStack,Input,NumberDecrementStepper,NumberIncrementStepper,NumberInput,NumberInputField,NumberInputStepper,- VStack,} from "@chakra-ui/react";import { useFetcher, useNavigate, useParams } from "@remix-run/react";import { useEffect, useMemo, useState } from "react";@@ -228,7 +227,7 @@ const PurchaseInvoiceLineForm = ({<Hidden name="id" /><Hidden name="invoiceId" /><Hidden name="description" value={partData.description} />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Selectname="invoiceLineType"label="Type"diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/PurchaseInvoicePostModal.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/PurchaseInvoicePostModal.tsxindex 0a9e3e4b15..16adcba132 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/PurchaseInvoicePostModal.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/PurchaseInvoicePostModal.tsx@@ -18,7 +18,7 @@ type PurchaseInvoicePostModalProps = {isOpen: boolean;onClose: () => void;invoiceId: string;- linesToReceive: { partId: string; quantity: number }[];+ linesToReceive: { partId: string | null; quantity: number }[];};const PurchaseInvoicePostModal = ({diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSidebar/PurchaseInvoiceSidebar.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSidebar/PurchaseInvoiceSidebar.tsxindex 3d16b0d1d7..0a38f49bf4 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSidebar/PurchaseInvoiceSidebar.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSidebar/PurchaseInvoiceSidebar.tsx@@ -1,5 +1,5 @@-import { Count, useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { Count, VStack, useColor } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { PurchaseInvoiceLine } from "~/modules/invoicing";@@ -24,10 +24,10 @@ const PurchaseInvoiceSidebar = () => {const matches = useMatches();return (- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full">+ <VStack className="h-full">+ <div className="overflow-y-auto h-full w-full"><VStack spacing={2}>- <VStack spacing={1} alignItems="start" w="full">+ <VStack spacing={1}>{links.map((route) => {const isActive = matches.some((match) =>@@ -57,7 +57,7 @@ const PurchaseInvoiceSidebar = () => {})}</VStack></VStack>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/PartCostingForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/PartCostingForm.tsxindex c533d69e0c..ca4bdf76f8 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/PartCostingForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/PartCostingForm.tsx@@ -1,12 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- VStack,-} from "@chakra-ui/react";+import { Heading, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Boolean, Hidden, Number, Select, Submit } from "~/components/Form";import { usePermissions } from "~/hooks";@@ -45,7 +38,7 @@ const PartCostingForm = ({ initialValues }: PartCostingFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="costingMethod"label="Part Costing Method"@@ -54,7 +47,7 @@ const PartCostingForm = ({ initialValues }: PartCostingFormProps) => {<Number name="standardCost" label="Standard Cost" precision={2} /><Number name="unitCost" label="Unit Cost" precision={2} /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Numbername="salesHistory"label="Sales History"diff --git a/apps/carbon/app/modules/parts/ui/Part/PartForm/PartForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartForm/PartForm.tsxindex 620543eb2d..27021479da 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartForm/PartForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartForm/PartForm.tsx@@ -1,4 +1,4 @@-import { Heading } from "@carbon/react";+import { Heading, VStack } from "@carbon/react";import {Card,CardBody,@@ -6,7 +6,6 @@ import {CardHeader,Grid,Text,- VStack,} from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";@@ -137,7 +136,7 @@ const PartForm = ({ initialValues }: PartFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack>{isEditing ? (<Input name="id" label="Part ID" isReadOnly />) : (@@ -154,7 +153,7 @@ const PartForm = ({ initialValues }: PartFormProps) => {<Input name="name" label="Name" /><TextArea name="description" label="Description" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="replenishmentSystem"label="Replenishment System"@@ -171,7 +170,7 @@ const PartForm = ({ initialValues }: PartFormProps) => {options={unitOfMeasureOptions}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="partGroupId"label="Part Group"diff --git a/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/PartInventoryForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/PartInventoryForm.tsxindex a741712392..a8607096a0 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/PartInventoryForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/PartInventoryForm.tsx@@ -1,14 +1,5 @@-import { Heading, Select } from "@carbon/react";-import {- Box,- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- HStack,- VStack,-} from "@chakra-ui/react";+import { HStack, Heading, Select, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import { CreatableSelect, Hidden, Number, Submit } from "~/components/Form";@@ -51,9 +42,9 @@ const PartInventoryForm = ({><Card w="full"><CardHeader>- <HStack w="full" justifyContent="space-between">+ <HStack className="w-full justify-between"><Heading size="h3">Inventory</Heading>- <Box w={180}>+ <div className="w-[180px]"><Select// @ts-ignoresize="sm"@@ -68,7 +59,7 @@ const PartInventoryForm = ({)}?location=${selected?.value}`;}}/>- </Box>+ </div></HStack></CardHeader><CardBody>@@ -81,7 +72,7 @@ const PartInventoryForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><CreatableSelectoptions={shelfOptions}name="defaultShelfId"@@ -96,7 +87,7 @@ const PartInventoryForm = ({isReadOnly/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Numbername="quantityAvailable"label="Quantity Available"@@ -108,7 +99,7 @@ const PartInventoryForm = ({isReadOnly/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Numbername="quantityOnProdOrder"label="Quantity On Prod Order"diff --git a/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/PartManufacturingForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/PartManufacturingForm.tsxindex 4ab7f49288..b6070e4621 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/PartManufacturingForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/PartManufacturingForm.tsx@@ -1,12 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- VStack,-} from "@chakra-ui/react";+import { Heading, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Boolean, Hidden, Number, Select, Submit } from "~/components/Form";import { usePermissions } from "~/hooks";@@ -49,7 +42,7 @@ const PartManufacturingForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="manufacturingPolicy"label="Manufacturing Policy"@@ -61,12 +54,12 @@ const PartManufacturingForm = ({options={[{ label: "", value: "" }]}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Number name="manufacturingLeadTime" label="Lead Time (Days)" /><Number name="scrapPercentage" label="Scrap Percentage" /><Number name="lotSize" label="Lot Size" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Booleanname="manufacturingBlocked"label="Manufacturing Blocked"diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/PartPlanningForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/PartPlanningForm.tsxindex e95cfb4395..af2458f87e 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/PartPlanningForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/PartPlanningForm.tsx@@ -1,14 +1,5 @@-import { Heading, Select } from "@carbon/react";-import {- Box,- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- HStack,- VStack,-} from "@chakra-ui/react";+import { HStack, Heading, Select, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import {Boolean,@@ -47,9 +38,9 @@ const PartPlanningForm = ({><Card w="full"><CardHeader>- <HStack w="full" justifyContent="space-between">+ <HStack className="w-full justify-between"><Heading size="h3">Planning</Heading>- <Box w={180}>+ <div className="w-[180px]"><Select// @ts-ignoresize="sm"@@ -64,7 +55,7 @@ const PartPlanningForm = ({)}?location=${selected?.value}`;}}/>- </Box>+ </div></HStack></CardHeader><CardBody>@@ -76,7 +67,7 @@ const PartPlanningForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><SelectFormname="reorderingPolicy"label="Reordering Policy"@@ -104,7 +95,7 @@ const PartPlanningForm = ({/><Number name="orderMultiple" label="Order Multiple" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Numbername="demandAccumulationPeriod"label="Demand Accumulation Period (Days)"@@ -118,7 +109,7 @@ const PartPlanningForm = ({label="Demand Includes Inventory"/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Number name="reorderPoint" label="Reorder Point" /><Number name="reorderQuantity" label="Reorder Quantity" /><Numberdiff --git a/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/PartPurchasingForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/PartPurchasingForm.tsxindex 6c7b9a3e9d..d60d8b103c 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/PartPurchasingForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/PartPurchasingForm.tsx@@ -1,12 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- VStack,-} from "@chakra-ui/react";+import { Heading, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import {Boolean,@@ -55,11 +48,11 @@ const PartPurchasingForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Supplier name="preferredSupplierId" label="Preferred Supplier" /><Number name="purchasingLeadTime" label="Lead Time (Days)" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="purchasingUnitOfMeasureCode"label="Purchasing Unit of Measure"@@ -71,7 +64,7 @@ const PartPurchasingForm = ({min={0}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Boolean name="purchasingBlocked" label="Purchasing Blocked" /></VStack></Grid>diff --git a/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/PartSalePriceForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/PartSalePriceForm.tsxindex 62dd5cb708..b94e831d5e 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/PartSalePriceForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/PartSalePriceForm.tsx@@ -1,12 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- VStack,-} from "@chakra-ui/react";+import { Heading, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import {Boolean,@@ -55,18 +48,18 @@ const PartSalePriceForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Number name="unitSalePrice" label="Unit Sale Price" /><Currency name="currencyCode" label="Currency" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="salesUnitOfMeasureCode"label="Sales Unit of Measure"options={unitOfMeasureOptions}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Boolean name="salesBlocked" label="Sales Blocked" /><Boolean name="priceIncludesTax" label="Price Includes Tax" /><Booleandiff --git a/apps/carbon/app/modules/parts/ui/Part/PartSidebar/PartSidebar.tsx b/apps/carbon/app/modules/parts/ui/Part/PartSidebar/PartSidebar.tsxindex f9265920c9..17fe8404ed 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartSidebar/PartSidebar.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartSidebar/PartSidebar.tsx@@ -1,5 +1,5 @@-import { useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { VStack, useColor } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { PartSummary } from "~/modules/parts/types";@@ -21,10 +21,10 @@ const PartSidebar = () => {const matches = useMatches();return (- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full">+ <VStack className="h-full">+ <div className="overflow-y-auto h-full w-full"><VStack spacing={2}>- <VStack spacing={1} alignItems="start" w="full">+ <VStack spacing={1}>{links.map((route) => {const isActive = matches.some((match) =>@@ -51,7 +51,7 @@ const PartSidebar = () => {})}</VStack></VStack>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/PartSupplierForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/PartSupplierForm.tsxindex f64ea05214..3d9556644d 100644--- a/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/PartSupplierForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/PartSupplierForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate, useParams } from "@remix-run/react";import { useMemo } from "react";@@ -80,7 +79,7 @@ const PartSupplierForm = ({ initialValues }: PartSupplierFormProps) => {<Hidden name="id" /><Hidden name="partId" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Supplier name="supplierId" label="Supplier" /><Input name="supplierPartId" label="Supplier Part ID" /><Selectdiff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/PartGroupForm.tsx b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/PartGroupForm.tsxindex ed241423a8..35490e35a1 100644--- a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/PartGroupForm.tsx+++ b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/PartGroupForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -50,13 +49,13 @@ const PartGroupForm = ({ initialValues }: PartGroupFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Part Group</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Part Group" /><TextArea name="description" label="Description" /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceForm/ServiceForm.tsx b/apps/carbon/app/modules/parts/ui/Service/ServiceForm/ServiceForm.tsxindex 8d2daa0ece..38bb5d44f6 100644--- a/apps/carbon/app/modules/parts/ui/Service/ServiceForm/ServiceForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Service/ServiceForm/ServiceForm.tsx@@ -1,4 +1,4 @@-import { Heading } from "@carbon/react";+import { Heading, VStack } from "@carbon/react";import {Card,CardBody,@@ -6,7 +6,6 @@ import {CardHeader,Grid,Text,- VStack,} from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";@@ -122,7 +121,7 @@ const ServiceForm = ({ initialValues }: ServiceFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack>{isEditing ? (<Input name="id" label="Service ID" isReadOnly />) : (@@ -138,7 +137,7 @@ const ServiceForm = ({ initialValues }: ServiceFormProps) => {<Input name="name" label="Name" /><TextArea name="description" label="Description" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="serviceType"label="Service Type"@@ -150,7 +149,7 @@ const ServiceForm = ({ initialValues }: ServiceFormProps) => {options={partGroupOptions}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Boolean name="blocked" label="Blocked" />{isEditing && <Boolean name="active" label="Active" />}</VStack>diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceSidebar/ServiceSidebar.tsx b/apps/carbon/app/modules/parts/ui/Service/ServiceSidebar/ServiceSidebar.tsxindex a367985cc9..bba2299c52 100644--- a/apps/carbon/app/modules/parts/ui/Service/ServiceSidebar/ServiceSidebar.tsx+++ b/apps/carbon/app/modules/parts/ui/Service/ServiceSidebar/ServiceSidebar.tsx@@ -1,5 +1,5 @@-import { useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { useColor, VStack } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { Service } from "~/modules/parts/types";@@ -21,10 +21,10 @@ const ServiceSidebar = () => {const matches = useMatches();return (- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full">+ <VStack className="h-full">+ <div className="overflow-y-auto h-full w-full"><VStack spacing={2}>- <VStack spacing={1} alignItems="start" w="full">+ <VStack spacing={1}>{links.map((route) => {const isActive = matches.some((match) =>@@ -51,7 +51,7 @@ const ServiceSidebar = () => {})}</VStack></VStack>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/ServiceSupplierForm.tsx b/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/ServiceSupplierForm.tsxindex 53ed378bb3..70200651b8 100644--- a/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/ServiceSupplierForm.tsx+++ b/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/ServiceSupplierForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate, useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -58,7 +57,7 @@ const ServiceSupplierForm = ({ initialValues }: ServiceSupplierFormProps) => {<Hidden name="id" /><Hidden name="serviceId" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Supplier name="supplierId" label="Supplier" /><Input name="supplierServiceId" label="Supplier Service ID" /></VStack>diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/UnitOfMeasureForm.tsx b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/UnitOfMeasureForm.tsxindex 80ebbedd00..05ed438a18 100644--- a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/UnitOfMeasureForm.tsx+++ b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/UnitOfMeasureForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -48,7 +47,7 @@ const UnitOfMeasureForm = ({ initialValues }: UnitOfMeasureFormProps) => {</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Unit of Measure" /><Inputname="code"diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm/PurchaseOrderDeliveryForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm/PurchaseOrderDeliveryForm.tsxindex 33624c327a..defeb661e9 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm/PurchaseOrderDeliveryForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm/PurchaseOrderDeliveryForm.tsx@@ -1,12 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- VStack,-} from "@chakra-ui/react";+import { Heading, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {@@ -74,7 +67,7 @@ const PurchaseOrderDeliveryForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Locationname="locationId"label="Delivery Location"@@ -93,12 +86,12 @@ const PurchaseOrderDeliveryForm = ({options={shippingTermOptions}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><DatePicker name="receiptRequestedDate" label="Requested Date" /><DatePicker name="receiptPromisedDate" label="Promised Date" /><DatePicker name="deliveryDate" label="Delivery Date" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Input name="trackingNumber" label="Tracking Number" />{/* <TextArea name="notes" label="Shipping Notes" /> */}<Booleandiff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsxindex 0180d70b3a..03e53508ea 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsx@@ -1,4 +1,4 @@-import { Heading } from "@carbon/react";+import { Heading, VStack } from "@carbon/react";import {Card,CardBody,@@ -6,7 +6,6 @@ import {CardHeader,Grid,Text,- VStack,} from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";@@ -74,7 +73,7 @@ const PurchaseOrderForm = ({ initialValues }: PurchaseOrderFormProps) => {</CardHeader><CardBody><Hidden name="purchaseOrderId" />- <VStack spacing={2} w="full" alignItems="start">+ <VStack><GridgridTemplateColumns={isEditing ? ["1fr", "1fr", "1fr 1fr 1fr"] : "1fr"@@ -83,7 +82,7 @@ const PurchaseOrderForm = ({ initialValues }: PurchaseOrderFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Suppliername="supplierId"label="Supplier"@@ -106,7 +105,7 @@ const PurchaseOrderForm = ({ initialValues }: PurchaseOrderFormProps) => {</>)}</VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Input name="supplierReference" label="Supplier Order Number" /><DatePickername="orderDate"@@ -120,7 +119,7 @@ const PurchaseOrderForm = ({ initialValues }: PurchaseOrderFormProps) => {isReadOnly={isSupplier}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack>{isEditing && (<>{permissions.can("delete", "purchasing") && (diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsxindex e9e1627056..06a2ffc91e 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsx@@ -1,4 +1,4 @@-import { Heading, Menubar, MenubarItem } from "@carbon/react";+import { Heading, Menubar, MenubarItem, VStack } from "@carbon/react";import {Button,Card,@@ -7,7 +7,6 @@ import {HStack,Stack,Text,- VStack,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { useMemo } from "react";@@ -39,7 +38,7 @@ const PurchaseOrderHeader = () => {const { receive, release, invoice } = usePurchaseOrder();return (- <VStack w="full" alignItems="start" spacing={2}>+ <VStack>{permissions.is("employee") && (<Menubar><MenubarItem@@ -87,7 +86,7 @@ const PurchaseOrderHeader = () => {<Card w="full"><CardHeader>- <HStack justifyContent="space-between" alignItems="start">+ <HStack className="justify-between items-start"><Stack direction="column" spacing={2}><Heading size="h3">{routeData?.purchaseOrder?.purchaseOrderId}diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsxindex ee22638114..0388a81ae2 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -9,14 +10,12 @@ import {DrawerOverlay,FormControl,FormLabel,- HStack,Input,NumberDecrementStepper,NumberIncrementStepper,NumberInput,NumberInputField,NumberInputStepper,- VStack,} from "@chakra-ui/react";import { useFetcher, useNavigate, useParams } from "@remix-run/react";import { useEffect, useMemo, useState } from "react";@@ -226,7 +225,7 @@ const PurchaseOrderLineForm = ({<Hidden name="id" /><Hidden name="purchaseOrderId" /><Hidden name="description" value={partData.description} />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Selectname="purchaseOrderLineType"label="Type"diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsxindex f53d7b7ace..288e0aa986 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsx@@ -1,12 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- VStack,-} from "@chakra-ui/react";+import { Heading, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {@@ -62,7 +55,7 @@ const PurchaseOrderPaymentForm = ({gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Suppliername="invoiceSupplierId"label="Invoice Supplier"@@ -79,7 +72,7 @@ const PurchaseOrderPaymentForm = ({supplier={supplier}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="paymentTermId"label="Payment Terms"@@ -87,7 +80,7 @@ const PurchaseOrderPaymentForm = ({/><Currency name="currencyCode" label="Currency" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Boolean name="paymentComplete" label="Payment Complete" /></VStack></Grid>diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSidebar/PurchaseOrderSidebar.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSidebar/PurchaseOrderSidebar.tsxindex e219cc14df..0bb67bd2ee 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSidebar/PurchaseOrderSidebar.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSidebar/PurchaseOrderSidebar.tsx@@ -1,5 +1,5 @@-import { Count, useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { Count, VStack, useColor } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type {@@ -33,10 +33,10 @@ const PurchaseOrderSidebar = () => {const matches = useMatches();return (- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full">+ <VStack className="h-full">+ <div className="overflow-y-auto h-full w-full"><VStack spacing={2}>- <VStack spacing={1} alignItems="start" w="full">+ <VStack spacing={1}>{links.map((route) => {const isActive = matches.some((match) =>@@ -66,7 +66,7 @@ const PurchaseOrderSidebar = () => {})}</VStack></VStack>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/SupplierContactForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/SupplierContactForm.tsxindex bbc52322a4..ccca4651ed 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/SupplierContactForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/SupplierContactForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate, useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -63,7 +62,7 @@ const SupplierContactForm = ({ initialValues }: SupplierContactFormProps) => {<DrawerBody pb={8}><Hidden name="id" /><Hidden name="contactId" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="firstName" label="First Name" /><Input name="lastName" label="Last Name" /><Input name="email" label="Email" />@@ -83,7 +82,7 @@ const SupplierContactForm = ({ initialValues }: SupplierContactFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsxindex 93e1cd250a..d7b9d7ee93 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx@@ -1,13 +1,11 @@-import { Heading } from "@carbon/react";+import { Heading, HStack, VStack } from "@carbon/react";import {Card,CardBody,CardFooter,CardHeader,Grid,- HStack,Text,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Employee, Hidden, Input, Select, Submit } from "~/components/Form";@@ -74,11 +72,11 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Input name="name" label="Name" /><Input name="taxId" label="Tax ID" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="supplierTypeId"label="Supplier Type"@@ -94,7 +92,7 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {</VStack>{isEditing && (<>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Employee name="accountManagerId" label="Account Manager" /></VStack></>@@ -102,7 +100,7 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {</Grid></CardBody><CardFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit></HStack></CardFooter>diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsxindex 9eef134dd5..8a6c22542c 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsx@@ -1,13 +1,11 @@-import { Heading } from "@carbon/react";+import { Heading, HStack, VStack } from "@carbon/react";import {Button,Card,CardBody,CardHeader,- HStack,Stack,Text,- VStack,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { FaHistory } from "react-icons/fa";@@ -34,10 +32,10 @@ const SupplierHeader = () => {}>(path.to.supplierRoot);return (- <VStack w="full" alignItems="start" spacing={2}>+ <VStack><Card w="full"><CardHeader>- <HStack justifyContent="space-between" alignItems="start">+ <HStack className="justify-between items-center"><Stack direction="column" spacing={2}><Heading size="h3">{routeData?.supplier?.name}</Heading></Stack>@@ -80,6 +78,7 @@ const SupplierHeader = () => {><Text color="gray.500">Payment Terms</Text><Text fontWeight="bold">+ {/* // TODO: defaultPaymentTermId */}{sharedSupplierData?.paymentTerms?.find((term) =>term.id === routeData?.supplier?.defaultPaymentTermIddiff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/SupplierLocationForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/SupplierLocationForm.tsxindex cd9d508001..5338cc9c23 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/SupplierLocationForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/SupplierLocationForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate, useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -56,7 +55,7 @@ const SupplierLocationForm = ({ initialValues }: SupplierLocationFormProps) => {<DrawerBody pb={8}><Hidden name="id" /><Hidden name="addressId" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="addressLine1" label="Address Line 1" /><Input name="addressLine2" label="Address Line 2" /><Input name="city" label="City" />@@ -66,7 +65,7 @@ const SupplierLocationForm = ({ initialValues }: SupplierLocationFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsxindex 15cdfd2f94..60e11e2feb 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx@@ -1,13 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- HStack,- VStack,-} from "@chakra-ui/react";+import { Heading, HStack, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {@@ -65,7 +57,7 @@ const SupplierPaymentForm = ({ initialValues }: SupplierPaymentFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Suppliername="invoiceSupplierId"label="Invoice Supplier"@@ -82,7 +74,7 @@ const SupplierPaymentForm = ({ initialValues }: SupplierPaymentFormProps) => {supplier={supplier}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="paymentTermId"label="Payment Term"@@ -93,7 +85,7 @@ const SupplierPaymentForm = ({ initialValues }: SupplierPaymentFormProps) => {</Grid></CardBody><CardFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit></HStack></CardFooter>diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsxindex a6ffe811ce..4ae112095d 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx@@ -1,13 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- HStack,- VStack,-} from "@chakra-ui/react";+import { Heading, HStack, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {@@ -71,7 +63,7 @@ const SupplierShippingForm = ({ initialValues }: SupplierShippingFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Suppliername="shippingSupplierId"label="Shipping Supplier"@@ -88,7 +80,7 @@ const SupplierShippingForm = ({ initialValues }: SupplierShippingFormProps) => {supplier={supplier}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="shippingMethodId"label="Shipping Method"diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/SupplierSidebar.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/SupplierSidebar.tsxindex d0b50f64bc..21c60116fb 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/SupplierSidebar.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/SupplierSidebar.tsx@@ -1,5 +1,5 @@-import { Count, useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { Count, VStack, useColor } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type {@@ -31,10 +31,10 @@ const SupplierSidebar = () => {const matches = useMatches();return (- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full">+ <VStack className="h-full">+ <div className="overflow-y-auto h-full w-full"><VStack spacing={2}>- <VStack spacing={1} alignItems="start" w="full">+ <VStack spacing={1}>{links.map((route) => {const isActive = matches.some((match) =>@@ -64,7 +64,7 @@ const SupplierSidebar = () => {})}</VStack></VStack>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/SupplierTypeForm.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/SupplierTypeForm.tsxindex edc24001a0..5fa3ba1622 100644--- a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/SupplierTypeForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/SupplierTypeForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -52,13 +51,13 @@ const SupplierTypeForm = ({ initialValues }: SupplierTypeFormProps) => {</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Supplier Type" /><Color name="color" label="Color" /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/AbilityForm.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/AbilityForm.tsxindex 0a8278e03d..3f55241311 100644--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/AbilityForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/AbilityForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -57,7 +56,7 @@ const AbilityForm = ({ initialValues }: AbilityFormProps) => {<DrawerHeader>New Ability</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" />{/* <Booleanname="machineOperator"@@ -97,7 +96,7 @@ const AbilityForm = ({ initialValues }: AbilityFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/EmployeeAbilityForm.tsx b/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/EmployeeAbilityForm.tsxindex 9bad56d3c3..ace079e56b 100644--- a/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/EmployeeAbilityForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/EmployeeAbilityForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { useState } from "react";@@ -76,7 +75,7 @@ const EmployeeAbilityForm = ({<DrawerCloseButton /><DrawerHeader>{isEditing ? "Edit" : "New"} Employee</DrawerHeader><DrawerBody pb={8}>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Employeename="employeeId"label="Employee"@@ -120,7 +119,7 @@ const EmployeeAbilityForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/AttributeCategoryForm.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/AttributeCategoryForm.tsxindex 4f79888af1..1c36ce0aae 100644--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/AttributeCategoryForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/AttributeCategoryForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Boolean, Hidden, Input, Submit } from "~/components/Form";@@ -52,7 +51,7 @@ const AttributeCategoryForm = ({</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Category Name" /><Booleanname="isPublic"@@ -62,7 +61,7 @@ const AttributeCategoryForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsxindex 877315bebf..b2c646b91e 100644--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";@@ -87,7 +86,7 @@ const AttributeForm = ({<DrawerHeader>{isEditing ? "Edit" : "New"} Attribute</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={2} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><Hidden name="userAttributeCategoryId" />@@ -110,7 +109,7 @@ const AttributeForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx b/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsxindex 76a8eb3347..2942871eeb 100644--- a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useLocation, useNavigate } from "@remix-run/react";import { useState } from "react";@@ -61,7 +60,7 @@ const ContractorForm = ({ initialValues }: ContractorFormProps) => {<DrawerCloseButton /><DrawerHeader>{isEditing ? "Edit" : "New"} Contractor</DrawerHeader><DrawerBody pb={8}>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Suppliername="supplierId"label="Supplier"@@ -84,7 +83,7 @@ const ContractorForm = ({ initialValues }: ContractorFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/DepartmentForm.tsx b/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/DepartmentForm.tsxindex 29fda5ba55..8c017a88c9 100644--- a/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/DepartmentForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/DepartmentForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -50,14 +49,14 @@ const DepartmentForm = ({ initialValues }: DepartmentFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Department</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Department Name" /><Color name="color" label="Color" /><Department name="parentDepartmentId" label="Parent Department" /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/EquipmentForm.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/EquipmentForm.tsxindex 944f85d590..d12a72b1c4 100644--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/EquipmentForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/EquipmentForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -10,12 +11,10 @@ import {FormControl,FormErrorMessage,FormLabel,- HStack,- VStack,} from "@chakra-ui/react";import { useFetcher } from "@remix-run/react";import { useEffect, useMemo, useState } from "react";-import { useControlField, useField, ValidatedForm } from "remix-validated-form";+import { ValidatedForm, useControlField, useField } from "remix-validated-form";import {Hidden,Input,@@ -102,7 +101,7 @@ const EquipmentForm = ({<DrawerHeader>{isEditing ? "Edit" : "New"} Equipment</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={2} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><TextArea name="description" label="Description" /><Select@@ -134,7 +133,7 @@ const EquipmentForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/EquipmentTypeDetail.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/EquipmentTypeDetail.tsxindex 3488948048..6dde74ec53 100644--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/EquipmentTypeDetail.tsx+++ b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/EquipmentTypeDetail.tsx@@ -1,4 +1,4 @@-import { ActionMenu } from "@carbon/react";+import { ActionMenu, HStack, VStack, useDisclosure } from "@carbon/react";import {Button,Drawer,@@ -8,12 +8,8 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,MenuItem,- StackDivider,Text,- useDisclosure,- VStack,} from "@chakra-ui/react";import { Link } from "@remix-run/react";import { useState } from "react";@@ -77,16 +73,11 @@ const EquipmentTypeDetail = ({<DrawerHeader>{equipmentType.name}</DrawerHeader><DrawerBody>{Array.isArray(equipmentType?.equipment) && (- <VStack- alignItems="start"- divider={<StackDivider borderColor="gray.200" />}- spacing={4}- w="full"- >+ <VStack spacing={4}>{equipmentType.equipment.map((equipment) => {return (- <HStack key={equipment.id} w="full">- <VStack spacing={0} flexGrow={1} alignItems="start">+ <HStack key={equipment.id} className="w-full">+ <VStack spacing={0} className="flex-grow"><Text fontWeight="bold">{equipment.name}</Text><Text fontSize="sm" color="gray.500">{/* @ts-ignore */}diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/EquipmentTypeForm.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/EquipmentTypeForm.tsxindex d547f99450..4932eef6ac 100644--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/EquipmentTypeForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/EquipmentTypeForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import {@@ -59,7 +58,7 @@ const EquipmentTypeForm = ({</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><TextArea name="description" label="Description" /><Color name="color" label="Color" />@@ -67,7 +66,7 @@ const EquipmentTypeForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/HolidayForm.tsx b/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/HolidayForm.tsxindex e53bddf166..d38f64ba1b 100644--- a/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/HolidayForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/HolidayForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -48,13 +47,13 @@ const HolidayForm = ({ initialValues }: HolidayFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Holiday</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Holiday Name" /><DatePicker name="date" label="Date" /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationForm/LocationForm.tsx b/apps/carbon/app/modules/resources/ui/Locations/LocationForm/LocationForm.tsxindex bd0949c47c..2f0460426e 100644--- a/apps/carbon/app/modules/resources/ui/Locations/LocationForm/LocationForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Locations/LocationForm/LocationForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -48,7 +47,7 @@ const LocationForm = ({ initialValues }: LocationFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Location</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Location Name" /><Input name="addressLine1" label="Address Line 1" /><Input name="addressLine2" label="Address Line 2" />@@ -62,7 +61,7 @@ const LocationForm = ({ initialValues }: LocationFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsxindex 025c1c0097..de97da6359 100644--- a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx@@ -1,4 +1,4 @@-import { Select, useMount } from "@carbon/react";+import { HStack, Select, VStack, useMount } from "@carbon/react";import {Button,Drawer,@@ -11,12 +11,10 @@ import {FormControl,FormErrorMessage,FormLabel,- HStack,- VStack,} from "@chakra-ui/react";import { useFetcher, useNavigate } from "@remix-run/react";import { useEffect, useMemo } from "react";-import { useControlField, useField, ValidatedForm } from "remix-validated-form";+import { ValidatedForm, useControlField, useField } from "remix-validated-form";import { Abilities, Number, Submit, Supplier } from "~/components/Form";import { usePermissions } from "~/hooks";import type { getSupplierLocations } from "~/modules/purchasing";@@ -77,7 +75,7 @@ const PartnerForm = ({ initialValues }: PartnerFormProps) => {<DrawerCloseButton /><DrawerHeader>{isEditing ? "Edit" : "New"} Partner</DrawerHeader><DrawerBody pb={8}>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Suppliername="supplierId"label="Supplier"@@ -100,7 +98,7 @@ const PartnerForm = ({ initialValues }: PartnerFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonHeader/PersonHeader.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonHeader/PersonHeader.tsxindex 07cb5b1c69..c91d088a33 100644--- a/apps/carbon/app/modules/resources/ui/Person/PersonHeader/PersonHeader.tsx+++ b/apps/carbon/app/modules/resources/ui/Person/PersonHeader/PersonHeader.tsx@@ -1,5 +1,5 @@-import { Heading } from "@carbon/react";-import { Button, HStack, Text, VStack } from "@chakra-ui/react";+import { Heading, HStack, VStack } from "@carbon/react";+import { Button, Text } from "@chakra-ui/react";import { BsEnvelopeFill } from "react-icons/bs";import { Avatar } from "~/components";import { usePermissions } from "~/hooks";@@ -8,17 +8,17 @@ import type { Account } from "~/modules/account";const PersonHeader = ({ user }: { user: Account }) => {const permissions = usePermissions();return (- <HStack py={4} justifyContent="space-between" spacing={4} w="full">+ <HStack className="py-4 justify-between w-full" spacing={4}><HStack spacing={4}><Avatar size="lg" path={user.avatarUrl} />- <VStack align="start" spacing={1}>+ <VStack spacing={1}><Heading size="h3">{user.fullName}</Heading><Text color="gray.500" fontSize="sm">{user.about}</Text></VStack></HStack>- <HStack spacing={2}>+ <HStack>{permissions.can("create", "messaging") && (<Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonJob/PersonJob.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonJob/PersonJob.tsxindex 8e00dfa27d..f9b30e4f8e 100644--- a/apps/carbon/app/modules/resources/ui/Person/PersonJob/PersonJob.tsx+++ b/apps/carbon/app/modules/resources/ui/Person/PersonJob/PersonJob.tsx@@ -1,14 +1,8 @@-import { Select, useMount } from "@carbon/react";-import {- Box,- FormControl,- FormErrorMessage,- FormLabel,- VStack,-} from "@chakra-ui/react";+import { Select, VStack, useMount } from "@carbon/react";+import { FormControl, FormErrorMessage, FormLabel } from "@chakra-ui/react";import { useFetcher } from "@remix-run/react";import { useEffect, useMemo } from "react";-import { useControlField, useField, ValidatedForm } from "remix-validated-form";+import { ValidatedForm, useControlField, useField } from "remix-validated-form";import {DatePicker,Employee,@@ -48,7 +42,7 @@ const PersonJob = ({ job }: PersonJobProps) => {);return (- <Box w="full">+ <div className="w-full"><ValidatedFormvalidator={employeeJobValidator}method="post"@@ -60,7 +54,7 @@ const PersonJob = ({ job }: PersonJobProps) => {}}><SectionTitle>Job</SectionTitle>- <VStack w="full" alignItems="start" spacing={4}>+ <VStack spacing={4}><Input name="title" label="Title" /><DatePicker name="startDate" label="Start Date" /><Location@@ -77,7 +71,7 @@ const PersonJob = ({ job }: PersonJobProps) => {<Submit size="sm">Save</Submit></VStack></ValidatedForm>- </Box>+ </div>);};diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/ShiftForm.tsx b/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/ShiftForm.tsxindex b63c717770..a3a79c09dc 100644--- a/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/ShiftForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/ShiftForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -9,8 +10,6 @@ import {DrawerOverlay,FormControl,FormLabel,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -55,7 +54,7 @@ const ShiftForm = ({ initialValues }: ShiftFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Shift</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Shift Name" /><Location name="locationId" label="Location" /><TimePicker name="startTime" label="Start Time" />@@ -63,7 +62,7 @@ const ShiftForm = ({ initialValues }: ShiftFormProps) => {<FormControl><FormLabel>Days</FormLabel>- <VStack w="full" alignItems="start">+ <VStack><Boolean name="monday" description="Monday" /><Boolean name="tuesday" description="Tuesday" /><Boolean name="wednesday" description="Wednesday" />@@ -76,7 +75,7 @@ const ShiftForm = ({ initialValues }: ShiftFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/WorkCellForm.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/WorkCellForm.tsxindex 0ed0c1d371..7880002845 100644--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/WorkCellForm.tsx+++ b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/WorkCellForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import {@@ -69,7 +68,7 @@ const WorkCellForm = ({<DrawerHeader>{isEditing ? "Edit" : "New"} Work Cell</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={2} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><TextArea name="description" label="Description" /><Select@@ -83,7 +82,7 @@ const WorkCellForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/WorkCellTypeDetail.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/WorkCellTypeDetail.tsxindex fc9b5d2f6e..af18683a8d 100644--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/WorkCellTypeDetail.tsx+++ b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/WorkCellTypeDetail.tsx@@ -1,4 +1,4 @@-import { ActionMenu } from "@carbon/react";+import { ActionMenu, HStack, VStack, useDisclosure } from "@carbon/react";import {Button,Drawer,@@ -8,12 +8,8 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,MenuItem,- StackDivider,Text,- useDisclosure,- VStack,} from "@chakra-ui/react";import { Link } from "@remix-run/react";import { useState } from "react";@@ -77,12 +73,7 @@ const WorkCellTypeDetail = ({<DrawerHeader>{workCellType.name}</DrawerHeader><DrawerBody>{Array.isArray(workCellType?.workCell) && (- <VStack- alignItems="start"- divider={<StackDivider borderColor="gray.200" />}- spacing={4}- w="full"- >+ <VStack spacing={4}>{workCellType.workCell.map((workCell) => {if (!workCell ||@@ -92,8 +83,8 @@ const WorkCellTypeDetail = ({)return null;return (- <HStack key={workCell.id} w="full">- <VStack spacing={0} flexGrow={1} alignItems="start">+ <HStack key={workCell.id} className="w-full">+ <VStack spacing={0} className="flex-grow"><Text fontWeight="bold">{workCell.name}</Text><Text fontSize="sm" color="gray.500">{workCell.location?.name} /{" "}diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/WorkCellTypeForm.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/WorkCellTypeForm.tsxindex 18c5b14655..c31641e3e0 100644--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/WorkCellTypeForm.tsx+++ b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/WorkCellTypeForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import {@@ -59,7 +58,7 @@ const WorkCellTypeForm = ({</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Name" /><TextArea name="description" label="Description" /><Color name="color" label="Color" />@@ -67,7 +66,7 @@ const WorkCellTypeForm = ({</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/CustomerContactForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/CustomerContactForm.tsxindex bb8f82d298..7b49758879 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/CustomerContactForm.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/CustomerContactForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate, useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -63,7 +62,7 @@ const CustomerContactForm = ({ initialValues }: CustomerContactFormProps) => {<DrawerBody pb={8}><Hidden name="id" /><Hidden name="contactId" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="firstName" label="First Name" /><Input name="lastName" label="Last Name" /><Input name="email" label="Email" />@@ -83,7 +82,7 @@ const CustomerContactForm = ({ initialValues }: CustomerContactFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsxindex f0ce07ffde..f83a7149e1 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx@@ -1,13 +1,11 @@-import { Heading } from "@carbon/react";+import { Heading, HStack, VStack } from "@carbon/react";import {Card,CardBody,CardFooter,CardHeader,Grid,- HStack,Text,- VStack,} from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Employee, Hidden, Input, Select, Submit } from "~/components/Form";@@ -74,11 +72,11 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Input name="name" label="Name" /><Input name="taxId" label="Tax ID" /></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="customerTypeId"label="Customer Type"@@ -94,7 +92,7 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {</VStack>{isEditing && (<>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Employee name="accountManagerId" label="Account Manager" /></VStack></>@@ -102,7 +100,7 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {</Grid></CardBody><CardFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit></HStack></CardFooter>diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsxindex 8f31315846..90734b4a49 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsx@@ -1,13 +1,11 @@-import { Heading } from "@carbon/react";+import { Heading, HStack, VStack } from "@carbon/react";import {Button,Card,CardBody,CardHeader,- HStack,Stack,Text,- VStack,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";import { FaHistory } from "react-icons/fa";@@ -33,13 +31,13 @@ const CustomerHeader = () => {}>(path.to.customerRoot);return (- <VStack w="full" alignItems="start" spacing={2}>+ <VStack><Card w="full"><CardHeader>- <HStack justifyContent="space-between" alignItems="start">- <Stack direction="column" spacing={2}>+ <HStack className="justify-between items-start">+ <VStack><Heading size="h3">{routeData?.customer?.name}</Heading>- </Stack>+ </VStack><Button onClick={() => alert("TODO")} leftIcon={<FaHistory />}>Customer Details</Button>diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/CustomerLocationForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/CustomerLocationForm.tsxindex 8e07d55bbe..df2b15e6ea 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/CustomerLocationForm.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/CustomerLocationForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate, useParams } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -56,7 +55,7 @@ const CustomerLocationForm = ({ initialValues }: CustomerLocationFormProps) => {<DrawerBody pb={8}><Hidden name="id" /><Hidden name="addressId" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="addressLine1" label="Address Line 1" /><Input name="addressLine2" label="Address Line 2" /><Input name="city" label="City" />@@ -66,7 +65,7 @@ const CustomerLocationForm = ({ initialValues }: CustomerLocationFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsxindex 9dd75d31c6..51ba61267e 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx@@ -1,13 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- HStack,- VStack,-} from "@chakra-ui/react";+import { Heading, HStack, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {@@ -65,7 +57,7 @@ const CustomerPaymentForm = ({ initialValues }: CustomerPaymentFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Customername="invoiceCustomerId"label="Invoice Customer"@@ -82,7 +74,7 @@ const CustomerPaymentForm = ({ initialValues }: CustomerPaymentFormProps) => {customer={customer}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="paymentTermId"label="Payment Term"@@ -93,7 +85,7 @@ const CustomerPaymentForm = ({ initialValues }: CustomerPaymentFormProps) => {</Grid></CardBody><CardFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit></HStack></CardFooter>diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsxindex e783c7a6c8..16fa230f58 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx@@ -1,13 +1,5 @@-import { Heading } from "@carbon/react";-import {- Card,- CardBody,- CardFooter,- CardHeader,- Grid,- HStack,- VStack,-} from "@chakra-ui/react";+import { Heading, HStack, VStack } from "@carbon/react";+import { Card, CardBody, CardFooter, CardHeader, Grid } from "@chakra-ui/react";import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {@@ -71,7 +63,7 @@ const CustomerShippingForm = ({ initialValues }: CustomerShippingFormProps) => {gridRowGap={2}w="full">- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Customername="shippingCustomerId"label="Shipping Customer"@@ -88,7 +80,7 @@ const CustomerShippingForm = ({ initialValues }: CustomerShippingFormProps) => {customer={customer}/></VStack>- <VStack alignItems="start" spacing={2} w="full">+ <VStack><Selectname="shippingMethodId"label="Shipping Method"@@ -103,7 +95,7 @@ const CustomerShippingForm = ({ initialValues }: CustomerShippingFormProps) => {</Grid></CardBody><CardFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit></HStack></CardFooter>diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/CustomerSidebar.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/CustomerSidebar.tsxindex bf34f67b28..58fa8f19b9 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/CustomerSidebar.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/CustomerSidebar.tsx@@ -1,5 +1,5 @@-import { Count, useColor } from "@carbon/react";-import { Box, Button, VStack } from "@chakra-ui/react";+import { Count, VStack, useColor } from "@carbon/react";+import { Button } from "@chakra-ui/react";import { Link, useMatches, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type {@@ -27,10 +27,10 @@ const CustomerSidebar = () => {const borderColor = useColor("gray.200");return (- <VStack h="full" alignItems="start">- <Box overflowY="auto" w="full" h="full">+ <VStack className="h-full">+ <div className="overflow-y-auto h-full w-full"><VStack spacing={2}>- <VStack spacing={1} alignItems="start" w="full">+ <VStack spacing={1}>{links.map((route) => {const isActive = matches.some((match) =>@@ -60,7 +60,7 @@ const CustomerSidebar = () => {})}</VStack></VStack>- </Box>+ </div></VStack>);};diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/CustomerTypeForm.tsx b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/CustomerTypeForm.tsxindex 9d29bd9b53..3aca960f52 100644--- a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/CustomerTypeForm.tsx+++ b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/CustomerTypeForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -52,13 +51,13 @@ const CustomerTypeForm = ({ initialValues }: CustomerTypeFormProps) => {</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Customer Type" /><Color name="color" label="Color" /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/settings/ui/Company/CompanyForm/CompanyForm.tsx b/apps/carbon/app/modules/settings/ui/Company/CompanyForm/CompanyForm.tsxindex 45f1c6dd9b..dff4d36140 100644--- a/apps/carbon/app/modules/settings/ui/Company/CompanyForm/CompanyForm.tsx+++ b/apps/carbon/app/modules/settings/ui/Company/CompanyForm/CompanyForm.tsx@@ -1,4 +1,5 @@-import { Box, Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import { ValidatedForm } from "remix-validated-form";import { Hidden, Input, Submit } from "~/components/Form";import { SectionTitle } from "~/components/Layout";@@ -12,7 +13,7 @@ type CompanyFormProps = {const CompanyForm = ({ company }: CompanyFormProps) => {return (- <Box w="full">+ <div className="w-full"><SectionTitle>Basic Information</SectionTitle><ValidatedFormmethod="post"@@ -20,7 +21,7 @@ const CompanyForm = ({ company }: CompanyFormProps) => {validator={companyValidator}defaultValues={company}>- <VStack spacing={4} my={4} w="full" alignItems="start">+ <VStack spacing={4} className="my-4"><Grid gridTemplateColumns="1fr 1fr" gridGap={4} w="full"><Input name="name" label="Company Name" /><Input name="taxId" label="Tax ID" />@@ -40,7 +41,7 @@ const CompanyForm = ({ company }: CompanyFormProps) => {<Submit size="sm">Save</Submit></VStack></ValidatedForm>- </Box>+ </div>);};diff --git a/apps/carbon/app/modules/settings/ui/Company/CompanyLogoForm/CompanyLogoForm.tsx b/apps/carbon/app/modules/settings/ui/Company/CompanyLogoForm/CompanyLogoForm.tsxindex 8600bcadd1..eee59fe60e 100644--- a/apps/carbon/app/modules/settings/ui/Company/CompanyLogoForm/CompanyLogoForm.tsx+++ b/apps/carbon/app/modules/settings/ui/Company/CompanyLogoForm/CompanyLogoForm.tsx@@ -1,5 +1,5 @@-import { File, useNotification } from "@carbon/react";-import { Avatar, Button, VStack } from "@chakra-ui/react";+import { File, VStack, useNotification } from "@carbon/react";+import { Avatar, Button } from "@chakra-ui/react";import { useSubmit } from "@remix-run/react";import type { ChangeEvent } from "react";import { useSupabase } from "~/lib/supabase";@@ -66,7 +66,7 @@ const CompanyLogoForm = ({ company }: CompanyLogoFormProps) => {};return (- <VStack w="full" spacing={2} px={8}>+ <VStack className="items-center p-8"><Avatarsize="2xl"src={company?.logo ?? undefined}diff --git a/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsx b/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsxindex b910705089..7f1ecdac91 100644--- a/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsx+++ b/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsx@@ -1,4 +1,4 @@-import { Heading } from "@carbon/react";+import { Heading, HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -8,9 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- Text,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -61,7 +58,7 @@ const SequenceForm = ({ initialValues }: SequenceFormProps) => {<DrawerHeader>{`${initialValues.name}`} Sequence</DrawerHeader><DrawerBody pb={8}><Hidden name="table" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Heading size="h2">{makePreview()}</Heading><Input@@ -88,22 +85,19 @@ const SequenceForm = ({ initialValues }: SequenceFormProps) => {label="Suffix"onChange={(e) => setSuffix(e.target.value)}/>- <VStack spacing={0} alignItems="start">- <Text- color="gray.500"- fontSize="sm"- >{`%{yyyy} = Full Year`}</Text>- <Text color="gray.500" fontSize="sm">{`%{yy} = Year`}</Text>- <Text color="gray.500" fontSize="sm">{`%{mm} = Month`}</Text>- <Text color="gray.500" fontSize="sm">{`%{dd} = Day`}</Text>- <Text color="gray.500" fontSize="sm">{`%{hh} = Hour`}</Text>- <Text color="gray.500" fontSize="sm">{`%{mm} = Minute`}</Text>- <Text color="gray.500" fontSize="sm">{`%{ss} = Second`}</Text>+ <VStack spacing={0}>+ <p className="text-muted-foreground text-sm">{`%{yyyy} = Full Year`}</p>+ <p className="text-muted-foreground text-sm">{`%{yy} = Year`}</p>+ <p className="text-muted-foreground text-sm">{`%{mm} = Month`}</p>+ <p className="text-muted-foreground text-sm">{`%{dd} = Day`}</p>+ <p className="text-muted-foreground text-sm">{`%{hh} = Hour`}</p>+ <p className="text-muted-foreground text-sm">{`%{mm} = Minute`}</p>+ <p className="text-muted-foreground text-sm">{`%{ss} = Second`}</p></VStack></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/shared/ui/Notes/Notes.tsx b/apps/carbon/app/modules/shared/ui/Notes/Notes.tsxindex 6c6ec694cd..d23d1c976b 100644--- a/apps/carbon/app/modules/shared/ui/Notes/Notes.tsx+++ b/apps/carbon/app/modules/shared/ui/Notes/Notes.tsx@@ -1,14 +1,6 @@-import { HTML, useColor } from "@carbon/react";+import { HStack, HTML, VStack } from "@carbon/react";import { formatTimeAgo } from "@carbon/utils";-import {- Box,- Button,- Flex,- Grid,- HStack,- Text,- VStack,-} from "@chakra-ui/react";+import { Button, Grid, Text } from "@chakra-ui/react";import { Form } from "@remix-run/react";import { Fragment } from "react";import { ValidatedForm } from "remix-validated-form";@@ -30,12 +22,10 @@ const Notes = ({ documentId, notes }: NotesProps) => {const permissions = usePermissions();const isEmployee = permissions.is("employee");- const borderColor = useColor("gray.200");-if (!isEmployee) return null;return (- <Box w="full">+ <div className="w-full"><SectionTitle>Notes</SectionTitle>{notes.length > 0 ? (@@ -52,7 +42,7 @@ const Notes = ({ documentId, notes }: NotesProps) => {<Fragment key={note.id}>{/* @ts-ignore */}<Avatar path={note.user.avatarUrl} />- <VStack spacing={1} w="full" alignItems="start">+ <VStack spacing={1}>{/* @ts-ignore */}<Text fontWeight="bold">{note.user?.fullName!}</Text><HTML text={note.note} />@@ -80,12 +70,12 @@ const Notes = ({ documentId, notes }: NotesProps) => {})}</Grid>) : (- <Box color="gray.500" p={4} w="full" textAlign="center">+ <div className="text-muted-foreground p-4 w-full text-center">No notes- </Box>+ </div>)}- <Box pt={8} w="full">+ <div className="pt-8 w-full"><ValidatedFormmethod="post"action={path.to.newNote}@@ -93,23 +83,17 @@ const Notes = ({ documentId, notes }: NotesProps) => {validator={noteValidator}><Hidden name="documentId" value={documentId} />- <VStack spacing={3} w="full">- <Box- w="full"- borderColor={borderColor}- borderWidth={1}- borderStyle="solid"- borderRadius="md"- >+ <VStack spacing={3}>+ <div className="w-full border rounded-md"><RichText name="note" minH={160} />- </Box>- <Flex justifyContent="flex-end" w="full">+ </div>+ <div className="flex justify-end w-full"><Submit>Add Note</Submit>- </Flex>+ </div></VStack></ValidatedForm>- </Box>- </Box>+ </div>+ </div>);};diff --git a/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsx b/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsxindex 230f693201..bc6e8fa788 100644--- a/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsx+++ b/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsx@@ -1,4 +1,5 @@-import { Image, Text, useColorModeValue, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Image, useColorModeValue } from "@chakra-ui/react";import { useEffect, useState } from "react";import { Background } from "~/components/Layout";import { useSupabase } from "~/lib/supabase";@@ -206,10 +207,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {function Loading() {return (<VStack- h="100vh"- w="100vw"- alignItems="center"- justifyContent="center"+ className="h-screen w-screen items-center justify-center"spacing={4}><Image@@ -221,9 +219,7 @@ function Loading() {maxW={100}marginBottom={3}/>- <Text letterSpacing={-1} textTransform="uppercase" fontWeight={700}>- Loading...- </Text>+ <p className="uppercase tracking-tight font-bold">Loading...</p><Background /></VStack>);diff --git a/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/CreateCustomerModal.tsx b/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/CreateCustomerModal.tsxindex 1454fc51f2..8e822c73f9 100644--- a/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/CreateCustomerModal.tsx+++ b/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/CreateCustomerModal.tsx@@ -1,8 +1,8 @@+import { HStack, VStack } from "@carbon/react";import {FormControl,FormLabel,Grid,- HStack,Input,Modal,ModalBody,@@ -10,7 +10,6 @@ import {ModalContent,ModalHeader,ModalOverlay,- VStack,} from "@chakra-ui/react";import { useFetcher, useNavigate } from "@remix-run/react";import { useRef, useState } from "react";@@ -64,7 +63,7 @@ const CreateCustomerModal = () => {// @ts-ignorefetcher={formFetcher}>- <VStack spacing={4} alignItems="start" w="full">+ <VStack spacing={4}><Customername="customer"label="Customer"@@ -112,7 +111,7 @@ const CreateCustomerModal = () => {</>)}- <HStack spacing={4}>+ <HStack><Submit>Create User</Submit></HStack></VStack>diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/EmployeeTypeForm.tsx b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/EmployeeTypeForm.tsxindex 7f977578d6..6a4bde668b 100644--- a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/EmployeeTypeForm.tsx+++ b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/EmployeeTypeForm.tsx@@ -1,5 +1,5 @@+import { HStack, VStack } from "@carbon/react";import {- Box,Button,Drawer,DrawerBody,@@ -9,8 +9,6 @@ import {DrawerHeader,DrawerOverlay,FormLabel,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -76,7 +74,7 @@ const EmployeeTypeForm = ({ initialValues }: EmployeeTypeFormProps) => {</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Employee Type" /><Color name="color" label="Color" /><Hidden@@ -84,23 +82,23 @@ const EmployeeTypeForm = ({ initialValues }: EmployeeTypeFormProps) => {value={JSON.stringify(Object.values(permissions))}/></VStack>- <VStack spacing={2} alignItems="start">+ <VStack><FormLabel>Default Permissions</FormLabel>{Object.entries(permissions).sort((a, b) => a[0].localeCompare(b[0])).map(([module, data], index) => (- <Box key={index}>+ <div key={index}><PermissionCheckboxesmodule={module}permissions={data.permission}updatePermissions={updatePermissions}/>- </Box>+ </div>))}</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsx b/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsxindex 96d3fece12..0675011433 100644--- a/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsx+++ b/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsx@@ -1,6 +1,5 @@-import { useColor, useMount } from "@carbon/react";+import { HStack, VStack, useMount } from "@carbon/react";import {- Box,Button,Drawer,DrawerBody,@@ -9,16 +8,14 @@ import {DrawerHeader,DrawerOverlay,FormLabel,- HStack,- VStack,} from "@chakra-ui/react";import { useFetcher } from "@remix-run/react";import { useEffect, useState } from "react";import { ValidatedForm } from "remix-validated-form";import { Employees, Hidden, Radios, Submit } from "~/components/Form";+import type { Permission } from "~/modules/users";import { bulkPermissionsValidator } from "~/modules/users";import { path } from "~/utils/path";-import type { Permission } from "../../../types";import PermissionCheckboxes from "../../components/Permission";type BulkEditPermissionsProps = {@@ -83,15 +80,8 @@ const BulkEditPermissions = ({onSubmit={onClose}defaultValues={{ userIds }}>- <VStack spacing={4} alignItems="start">- <Box- borderColor={useColor("gray.200")}- borderRadius="lg"- borderStyle="solid"- borderWidth={1}- p={4}- w="full"- >+ <VStack spacing={4}>+ <div className="border p-4 w-full rounded-lg"><Radiosname="editType"label="Type of Permission Update"@@ -106,7 +96,7 @@ const BulkEditPermissions = ({},]}/>- </Box>+ </div><Employeesname="userIds"@@ -118,16 +108,16 @@ const BulkEditPermissions = ({{Object.entries(permissions).sort((a, b) => a[0].localeCompare(b[0])).map(([module, data], index) => (- <Box key={index}>+ <div key={index}><PermissionCheckboxesmodule={module}permissions={data}updatePermissions={updatePermissions}/>- </Box>+ </div>))}<Hidden name="data" value={JSON.stringify(permissions)} />- <HStack spacing={2} my={4}>+ <HStack spacing={2} className="my-4"><Submit>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/CreateEmployeeModal.tsx b/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/CreateEmployeeModal.tsxindex cc0b891057..1d923779bd 100644--- a/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/CreateEmployeeModal.tsx+++ b/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/CreateEmployeeModal.tsx@@ -1,14 +1,12 @@-import { useMount } from "@carbon/react";+import { HStack, VStack, useMount } from "@carbon/react";import {Grid,- HStack,Modal,ModalBody,ModalCloseButton,ModalContent,ModalHeader,ModalOverlay,- VStack,} from "@chakra-ui/react";import { useFetcher, useNavigate } from "@remix-run/react";import type { PostgrestResponse } from "@supabase/supabase-js";@@ -54,7 +52,7 @@ const CreateEmployeeModal = () => {// @ts-ignorefetcher={formFetcher}>- <VStack spacing={4} alignItems="start" w="full">+ <VStack spacing={4}><Input ref={initialFocusRef} name="email" label="Email" /><Grid templateColumns="1fr 1fr" gap={4}><Input name="firstName" label="First Name" />@@ -67,7 +65,7 @@ const CreateEmployeeModal = () => {options={employeeTypeOptions}placeholder="Select Employee Type"/>- <HStack spacing={4}>+ <HStack><Submit>Create User</Submit></HStack></VStack>diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/EmployeePermissionsForm.tsx b/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/EmployeePermissionsForm.tsxindex f65ca6f9fd..846c4b796e 100644--- a/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/EmployeePermissionsForm.tsx+++ b/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/EmployeePermissionsForm.tsx@@ -1,5 +1,5 @@+import { HStack, VStack } from "@carbon/react";import {- Box,Button,Drawer,DrawerBody,@@ -9,8 +9,6 @@ import {DrawerHeader,DrawerOverlay,FormLabel,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { useState } from "react";@@ -66,7 +64,7 @@ const EmployeePermissionsForm = ({<DrawerCloseButton /><DrawerHeader>{name}</DrawerHeader><DrawerBody pb={8}>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Selectname="employeeType"label="Employee Type"@@ -77,20 +75,20 @@ const EmployeePermissionsForm = ({{Object.entries(permissions).sort((a, b) => a[0].localeCompare(b[0])).map(([module, data], index) => (- <Box key={index}>+ <div key={index}><PermissionCheckboxesmodule={module}permissions={data}updatePermissions={updatePermissions}/>- </Box>+ </div>))}<Hidden name="id" /><Hidden name="data" value={JSON.stringify(permissions)} /></VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsForm/GroupsForm.tsx b/apps/carbon/app/modules/users/ui/Groups/GroupsForm/GroupsForm.tsxindex 44d84146be..4b820a6936 100644--- a/apps/carbon/app/modules/users/ui/Groups/GroupsForm/GroupsForm.tsx+++ b/apps/carbon/app/modules/users/ui/Groups/GroupsForm/GroupsForm.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Drawer,@@ -7,8 +8,6 @@ import {DrawerFooter,DrawerHeader,DrawerOverlay,- HStack,- VStack,} from "@chakra-ui/react";import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";@@ -47,7 +46,7 @@ const GroupForm = ({ initialValues }: GroupFormProps) => {<DrawerHeader>{isEditing ? "Edit" : "New"} Group</DrawerHeader><DrawerBody pb={8}><Hidden name="id" />- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Input name="name" label="Group Name" /><Usersname="selections"@@ -58,7 +57,7 @@ const GroupForm = ({ initialValues }: GroupFormProps) => {</VStack></DrawerBody><DrawerFooter>- <HStack spacing={2}>+ <HStack><Submit isDisabled={isDisabled}>Save</Submit><Buttonsize="md"diff --git a/apps/carbon/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx b/apps/carbon/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsxindex 31c6d753d4..dca4911cd8 100644--- a/apps/carbon/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx+++ b/apps/carbon/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx@@ -1,8 +1,8 @@+import { HStack, VStack } from "@carbon/react";import {FormControl,FormLabel,Grid,- HStack,Input,Modal,ModalBody,@@ -10,7 +10,6 @@ import {ModalContent,ModalHeader,ModalOverlay,- VStack,} from "@chakra-ui/react";import { useFetcher, useNavigate } from "@remix-run/react";import { useRef, useState } from "react";@@ -64,7 +63,7 @@ const CreateSupplierModal = () => {// @ts-ignorefetcher={formFetcher}>- <VStack spacing={4} alignItems="start" w="full">+ <VStack spacing={4}><Suppliername="supplier"label="Supplier"diff --git a/apps/carbon/app/routes/_public+/_layout.tsx b/apps/carbon/app/routes/_public+/_layout.tsxindex 3472f8da60..8707130632 100644--- a/apps/carbon/app/routes/_public+/_layout.tsx+++ b/apps/carbon/app/routes/_public+/_layout.tsx@@ -1,14 +1,17 @@-import { Flex, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import { Outlet } from "@remix-run/react";import { Background } from "~/components/Layout";export default function PublicRoute() {return (- <Flex minW="100vw" minH="100vh">- <VStack spacing={8} mx="auto" maxW="lg" pt={24} px={6} zIndex={3}>+ <div className="flex min-h-screen min-w-screen">+ <VStack+ spacing={8}+ className="items-center mx-auto max-w-lg pt-24 px-6 z-[3]"+ ><Outlet /></VStack><Background />- </Flex>+ </div>);}diff --git a/apps/carbon/app/routes/_public+/forgot-password.tsx b/apps/carbon/app/routes/_public+/forgot-password.tsxindex 02fab1df84..4426d87737 100644--- a/apps/carbon/app/routes/_public+/forgot-password.tsx+++ b/apps/carbon/app/routes/_public+/forgot-password.tsx@@ -1,14 +1,12 @@-import { useColor } from "@carbon/react";+import { VStack } from "@carbon/react";import {Alert,AlertDescription,AlertIcon,AlertTitle,- Box,Image,Text,useColorModeValue,- VStack,} from "@chakra-ui/react";import type {ActionFunctionArgs,@@ -70,7 +68,6 @@ export async function action({ request }: ActionFunctionArgs): FormActionData {export default function ForgotPasswordRoute() {const actionData = useActionData<Result>();- const boxBackground = useColor("white");return (<>@@ -104,9 +101,9 @@ export default function ForgotPasswordRoute() {</AlertDescription></Alert>) : (- <Box rounded="lg" bg={boxBackground} boxShadow="lg" w={380} p={8}>+ <div className="rounded-lg bg-background shadow-lg p-8 w-[380px]"><ValidatedForm validator={forgotPasswordValidator} method="post">- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Text>Please enter your email address to search for your account.</Text>@@ -120,7 +117,7 @@ export default function ForgotPasswordRoute() {<Submit w="full">Search</Submit></VStack></ValidatedForm>- </Box>+ </div>)}</>);diff --git a/apps/carbon/app/routes/_public+/login.tsx b/apps/carbon/app/routes/_public+/login.tsxindex d33e1e9b48..c5a86a34d1 100644--- a/apps/carbon/app/routes/_public+/login.tsx+++ b/apps/carbon/app/routes/_public+/login.tsx@@ -1,12 +1,10 @@-import { useColor } from "@carbon/react";+import { VStack, useColor } from "@carbon/react";import {Alert,AlertIcon,AlertTitle,- Box,Image,useColorModeValue,- VStack,} from "@chakra-ui/react";import type {ActionFunctionArgs,@@ -86,13 +84,13 @@ export default function LoginRoute() {marginBottom={3}/>- <Box rounded="lg" bg={useColor("white")} boxShadow="lg" w={380} p={8}>+ <div className="rounded-lg bg-background shadow-lg p-8 w-[380px]"><ValidatedFormvalidator={loginValidator}defaultValues={{ redirectTo }}method="post">- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}>{result && result?.message && (<Alert status="error"><AlertIcon />@@ -108,7 +106,7 @@ export default function LoginRoute() {</Link></VStack></ValidatedForm>- </Box>+ </div></>);}diff --git a/apps/carbon/app/routes/_public+/reset-password.tsx b/apps/carbon/app/routes/_public+/reset-password.tsxindex a58926f8cf..33c1448d71 100644--- a/apps/carbon/app/routes/_public+/reset-password.tsx+++ b/apps/carbon/app/routes/_public+/reset-password.tsx@@ -1,13 +1,5 @@-import { useColor } from "@carbon/react";-import {- Box,- Button,- HStack,- Image,- Text,- useColorModeValue,- VStack,-} from "@chakra-ui/react";+import { HStack, VStack } from "@carbon/react";+import { Button, Image, Text, useColorModeValue } from "@chakra-ui/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useNavigate } from "@remix-run/react";@@ -57,7 +49,6 @@ export async function action({ request }: ActionFunctionArgs) {}export default function ResetPasswordRoute() {- const boxBackground = useColor("white");const navigate = useNavigate();return (@@ -72,13 +63,13 @@ export default function ResetPasswordRoute() {marginBottom={3}/>- <Box rounded="lg" bg={boxBackground} boxShadow="lg" w={380} p={8}>+ <div className="rounded-lg bg-background shadow-lg p-8 w-[380px]"><ValidatedFormmethod="post"action={path.to.resetPassord}validator={resetPasswordValidator}>- <VStack spacing={4} alignItems="start">+ <VStack spacing={4}><Text>Please select a new password.</Text><Password name="password" label="New Password" />@@ -93,7 +84,7 @@ export default function ResetPasswordRoute() {</HStack></VStack></ValidatedForm>- </Box>+ </div></>);}diff --git a/apps/carbon/app/routes/onboarding+/company.tsx b/apps/carbon/app/routes/onboarding+/company.tsxindex ba0ca31691..edfe74fee1 100644--- a/apps/carbon/app/routes/onboarding+/company.tsx+++ b/apps/carbon/app/routes/onboarding+/company.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Modal,@@ -6,7 +7,6 @@ import {ModalFooter,ModalHeader,ModalOverlay,- VStack,} from "@chakra-ui/react";import { getLocalTimeZone } from "@internationalized/date";import { json, redirect, type ActionFunctionArgs } from "@remix-run/node";@@ -143,7 +143,7 @@ export default function OnboardingUser() {<ModalBody><Hidden name="next" value={next} />- <VStack w="full" spacing={4}>+ <VStack spacing={4}><Input name="name" label="Company Name" /><Input name="addressLine1" label="Address" /><Input name="city" label="City" />@@ -152,16 +152,18 @@ export default function OnboardingUser() {</VStack></ModalBody>- <ModalFooter justifyContent="space-between">- <Button- isDisabled={!previous}- size="md"- disabled- onClick={onPrevious}- >- Previous- </Button>- <Submit>Next</Submit>+ <ModalFooter>+ <HStack>+ <Button+ isDisabled={!previous}+ size="md"+ disabled+ onClick={onPrevious}+ >+ Previous+ </Button>+ <Submit>Next</Submit>+ </HStack></ModalFooter></ValidatedForm></ModalContent>diff --git a/apps/carbon/app/routes/onboarding+/user.tsx b/apps/carbon/app/routes/onboarding+/user.tsxindex 0c14ec307c..2113483183 100644--- a/apps/carbon/app/routes/onboarding+/user.tsx+++ b/apps/carbon/app/routes/onboarding+/user.tsx@@ -1,3 +1,4 @@+import { HStack, VStack } from "@carbon/react";import {Button,Modal,@@ -6,7 +7,6 @@ import {ModalFooter,ModalHeader,ModalOverlay,- VStack,} from "@chakra-ui/react";import { redirect, type ActionFunctionArgs } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";@@ -113,7 +113,7 @@ export default function OnboardingUser() {<ModalBody><Hidden name="next" value={next} />- <VStack w="full" spacing={4}>+ <VStack spacing={4}><Input name="firstName" label="First Name" /><Input name="lastName" label="Last Name" /><Input autoComplete="off" name="email" label="Email" />@@ -121,16 +121,18 @@ export default function OnboardingUser() {</VStack></ModalBody>- <ModalFooter justifyContent="space-between">- <Button- isDisabled={!previous}- size="md"- disabled- onClick={onPrevious}- >- Previous- </Button>- <Submit>Next</Submit>+ <ModalFooter>+ <HStack>+ <Button+ isDisabled={!previous}+ size="md"+ disabled+ onClick={onPrevious}+ >+ Previous+ </Button>+ <Submit>Next</Submit>+ </HStack></ModalFooter></ValidatedForm></ModalContent>diff --git a/apps/carbon/app/routes/x+/_layout.tsx b/apps/carbon/app/routes/x+/_layout.tsxindex dac64bf589..7fbe4cfba8 100644--- a/apps/carbon/app/routes/x+/_layout.tsx+++ b/apps/carbon/app/routes/x+/_layout.tsx@@ -1,5 +1,5 @@-import { useColor, useNotification } from "@carbon/react";-import { Flex, Grid, GridItem, VStack } from "@chakra-ui/react";+import { VStack, useNotification } from "@carbon/react";+import { Grid, GridItem } from "@chakra-ui/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData, useNavigation } from "@remix-run/react";@@ -101,11 +101,11 @@ export default function AuthenticatedRoute() {<GridItem w="full" h="full"><Grid templateRows="auto 1fr" h="full" w="full"><Topbar />- <Flex w="full" h="full">- <VStack spacing={0} w="full" bg={useColor("gray.50")}>+ <div className="flex w-full h-full">+ <VStack spacing={0} className="bg-zinc-50 dark:bg-zinc-900"><Outlet /></VStack>- </Flex>+ </div></Grid></GridItem></Grid>diff --git a/apps/carbon/app/routes/x+/account+/_layout.tsx b/apps/carbon/app/routes/x+/account+/_layout.tsxindex 5c0c3e28f4..e9ee3817b4 100644--- a/apps/carbon/app/routes/x+/account+/_layout.tsx+++ b/apps/carbon/app/routes/x+/account+/_layout.tsx@@ -1,5 +1,5 @@-import { useColor } from "@carbon/react";-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { ContentSidebar } from "~/components/Layout/Sidebar";@@ -23,7 +23,7 @@ export default function AccountRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><ContentSidebar links={links} />- <VStack w="full" h="full" spacing={0} p={8} bg={useColor("white")}>+ <VStack spacing={0} className="h-full p-8 bg-background"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/accounting+/_layout.tsx b/apps/carbon/app/routes/x+/accounting+/_layout.tsxindex ce405f30c1..3101b51343 100644--- a/apps/carbon/app/routes/x+/accounting+/_layout.tsx+++ b/apps/carbon/app/routes/x+/accounting+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet } from "@remix-run/react";@@ -81,7 +82,7 @@ export default function AccountingRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/accounting+/categories.tsx b/apps/carbon/app/routes/x+/accounting+/categories.tsxindex 58afbe3b19..6bc0ba3945 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -63,7 +63,7 @@ export default function GlAccountCategoriesRoute() {const { count, categories } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><AccountCategoriesTableFilters /><AccountCategoriesTable data={categories} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/accounting+/charts.tsx b/apps/carbon/app/routes/x+/accounting+/charts.tsxindex c90b53f048..75757c4999 100644--- a/apps/carbon/app/routes/x+/accounting+/charts.tsx+++ b/apps/carbon/app/routes/x+/accounting+/charts.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -54,7 +54,7 @@ export default function ChartOfAccountsRoute() {const { chartOfAccounts } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ChartOfAccountsTableFilters /><ChartOfAccountsTable data={chartOfAccounts} /><Outlet />diff --git a/apps/carbon/app/routes/x+/accounting+/currencies.tsx b/apps/carbon/app/routes/x+/accounting+/currencies.tsxindex de913c783e..e50a25fb3d 100644--- a/apps/carbon/app/routes/x+/accounting+/currencies.tsx+++ b/apps/carbon/app/routes/x+/accounting+/currencies.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -35,7 +35,7 @@ export default function CurrenciesRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><CurrenciesTableFilters /><CurrenciesTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/accounting+/defaults.tsx b/apps/carbon/app/routes/x+/accounting+/defaults.tsxindex 2f5413fdef..66f4bf35f8 100644--- a/apps/carbon/app/routes/x+/accounting+/defaults.tsx+++ b/apps/carbon/app/routes/x+/accounting+/defaults.tsx@@ -1,5 +1,4 @@-import { useColor } from "@carbon/react";-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";@@ -89,7 +88,7 @@ export default function AccountDefaultsRoute() {}>(path.to.accounting);return (- <VStack bg={useColor("white")} w="full" h="full" p={8} overflowY="auto">+ <VStack className="bg-background h-full p-8 overflow-y-auto"><PageTitletitle="Account Defaults"subtitle="These accounts will be used to prepopulate posting grous when a new customer type, supplier type, part group, or location is created."diff --git a/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx b/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsxindex 8a47771dde..e5083cc777 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -72,7 +72,7 @@ export default function InventoryPostingGroupsRoute() {}>(path.to.accounting);return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><InventoryPostingGroupsFilterspartGroups={partGroups}locations={locations}diff --git a/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx b/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsxindex 1882a9fcfa..48fddd8d63 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -76,7 +76,7 @@ export default function PurchasingPostingGroupsRoute() {}>(path.to.accounting);return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PurchasingPostingGroupsFilterspartGroups={partGroups}supplierTypes={supplierTypes}diff --git a/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx b/apps/carbon/app/routes/x+/accounting+/groups.sales.tsxindex df1d23d693..f6bbe5f23a 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -73,7 +73,7 @@ export default function SalesPostingGroupsRoute() {}>(path.to.accounting);return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><SalesPostingGroupsFilterspartGroups={partGroups}customerTypes={customerTypes}diff --git a/apps/carbon/app/routes/x+/accounting+/payment-terms.tsx b/apps/carbon/app/routes/x+/accounting+/payment-terms.tsxindex 21df5e1527..df6280e7a9 100644--- a/apps/carbon/app/routes/x+/accounting+/payment-terms.tsx+++ b/apps/carbon/app/routes/x+/accounting+/payment-terms.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -35,7 +35,7 @@ export default function PaymentTermsRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PaymentTermsTableFilters /><PaymentTermsTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/accounting+/years.tsx b/apps/carbon/app/routes/x+/accounting+/years.tsxindex 90d032a366..d5e739c562 100644--- a/apps/carbon/app/routes/x+/accounting+/years.tsx+++ b/apps/carbon/app/routes/x+/accounting+/years.tsx@@ -1,5 +1,4 @@-import { useColor } from "@carbon/react";-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";@@ -55,12 +54,9 @@ export async function action({ request }: ActionFunctionArgs) {if (validation.error) {return validationError(validation.error);}- const { startMonth, taxStartMonth } = validation.data;const update = await updateFiscalYearSettings(client, {- startMonth,- // @ts-expect-error- taxStartMonth: taxStartMonth === "same" ? startMonth : taxStartMonth,+ ...validation.data,updatedBy: userId,});if (update.error) {@@ -84,22 +80,16 @@ export default function FiscalYearSettingsRoute() {const initialValues = {startMonth: settings?.startMonth || "January",- taxStartMonth:- settings?.startMonth === settings.taxStartMonth- ? "same"- : settings?.taxStartMonth || "January",+ taxStartMonth: settings?.taxStartMonth || "January",};return (- <VStack w="full" h="full" spacing={0} p={8} bg={useColor("white")}>+ <VStack spacing={0} className="h-full bg-background p-8"><PageTitletitle="Fiscal Year Settings"subtitle="Define the month when your fiscal year starts"/>- <FiscalYearSettingsForm- // @ts-expect-error- initialValues={initialValues}- />+ <FiscalYearSettingsForm initialValues={initialValues} /></VStack>);}diff --git a/apps/carbon/app/routes/x+/customer+/_layout.tsx b/apps/carbon/app/routes/x+/customer+/_layout.tsxindex 8b5f536571..de44f8b503 100644--- a/apps/carbon/app/routes/x+/customer+/_layout.tsx+++ b/apps/carbon/app/routes/x+/customer+/_layout.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet } from "@remix-run/react";@@ -52,7 +52,7 @@ export async function loader({ request }: LoaderFunctionArgs) {export default function CustomerRoute() {return (- <VStack w="full" h="full" spacing={4} p={4}>+ <VStack spacing={4} className="h-full p-4"><Outlet /></VStack>);diff --git a/apps/carbon/app/routes/x+/documents+/_layout.tsx b/apps/carbon/app/routes/x+/documents+/_layout.tsxindex 9ca610837d..539f9ad871 100644--- a/apps/carbon/app/routes/x+/documents+/_layout.tsx+++ b/apps/carbon/app/routes/x+/documents+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { ContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function DocumentsRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><ContentSidebar links={links} />- <VStack w="full" h="full">+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/documents+/search.tsx b/apps/carbon/app/routes/x+/documents+/search.tsxindex 80382c676b..e815f357bd 100644--- a/apps/carbon/app/routes/x+/documents+/search.tsx+++ b/apps/carbon/app/routes/x+/documents+/search.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -70,7 +70,7 @@ export default function DocumentsAllRoute() {const { count, documents, labels } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><DocumentsTableFilters labels={labels} /><DocumentsTable data={documents} count={count} labels={labels} /><Outlet />diff --git a/apps/carbon/app/routes/x+/inventory+/_layout.tsx b/apps/carbon/app/routes/x+/inventory+/_layout.tsxindex e810491797..79a183aedd 100644--- a/apps/carbon/app/routes/x+/inventory+/_layout.tsx+++ b/apps/carbon/app/routes/x+/inventory+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function UsersRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/inventory+/receipts.tsx b/apps/carbon/app/routes/x+/inventory+/receipts.tsxindex 7c8894e148..3dd18479e6 100644--- a/apps/carbon/app/routes/x+/inventory+/receipts.tsx+++ b/apps/carbon/app/routes/x+/inventory+/receipts.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -63,7 +63,7 @@ export default function ReceiptsRoute() {const { receipts, count, locations } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ReceiptsTableFilters locations={locations ?? []} /><ReceiptsTable data={receipts} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsx b/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsxindex 9e36a34db3..96ed57ac0f 100644--- a/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsx+++ b/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -58,7 +58,7 @@ export default function ShippingMethodsRoute() {const { shippingMethods, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ShippingMethodsTableFilters /><ShippingMethodsTable data={shippingMethods ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/invoicing+/_layout.tsx b/apps/carbon/app/routes/x+/invoicing+/_layout.tsxindex 831a0c9b32..8da194499b 100644--- a/apps/carbon/app/routes/x+/invoicing+/_layout.tsx+++ b/apps/carbon/app/routes/x+/invoicing+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";import { useInvoicingSidebar } from "~/modules/invoicing";@@ -17,7 +18,7 @@ export default function InvoicingRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/invoicing+/purchasing.tsx b/apps/carbon/app/routes/x+/invoicing+/purchasing.tsxindex 2493a35a00..9a30ac9559 100644--- a/apps/carbon/app/routes/x+/invoicing+/purchasing.tsx+++ b/apps/carbon/app/routes/x+/invoicing+/purchasing.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -65,7 +65,7 @@ export default function PurchaseInvoicesSearchRoute() {const { count, purchaseInvoices } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PurchaseInvoicesTableFilters /><PurchaseInvoicesTable data={purchaseInvoices} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/part+/_layout.tsx b/apps/carbon/app/routes/x+/part+/_layout.tsxindex 66dc41fd38..9b98b9ba05 100644--- a/apps/carbon/app/routes/x+/part+/_layout.tsx+++ b/apps/carbon/app/routes/x+/part+/_layout.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getPartGroupsList, getUnitOfMeasuresList } from "~/modules/parts";@@ -37,7 +37,7 @@ export async function loader({ request }: LoaderFunctionArgs) {export default function PartRoute() {return (- <VStack w="full" h="full" spacing={4} p={4}>+ <VStack spacing={4} className="h-full p-4"><Outlet /></VStack>);diff --git a/apps/carbon/app/routes/x+/parts+/_layout.tsx b/apps/carbon/app/routes/x+/parts+/_layout.tsxindex 1fd94d8d63..6156a19924 100644--- a/apps/carbon/app/routes/x+/parts+/_layout.tsx+++ b/apps/carbon/app/routes/x+/parts+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function PartsRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/parts+/groups.tsx b/apps/carbon/app/routes/x+/parts+/groups.tsxindex 574c960aab..2378bad901 100644--- a/apps/carbon/app/routes/x+/parts+/groups.tsx+++ b/apps/carbon/app/routes/x+/parts+/groups.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -66,7 +66,7 @@ export default function PartGroupsRoute() {const { partGroups, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PartGroupsTableFilters /><PartGroupsTable data={partGroups} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/parts+/routing.tsx b/apps/carbon/app/routes/x+/parts+/routing.tsxindex 462309e30b..47b56f140c 100644--- a/apps/carbon/app/routes/x+/parts+/routing.tsx+++ b/apps/carbon/app/routes/x+/parts+/routing.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";@@ -7,6 +7,6 @@ export const handle: Handle = {to: path.to.routings,};-export default function PartsConfiguratorRoute() {- return <VStack w="full" h="full" spacing={0}></VStack>;+export default function PartsRoutingRoute() {+ return <VStack spacing={0} className="h-full"></VStack>;}diff --git a/apps/carbon/app/routes/x+/parts+/search.tsx b/apps/carbon/app/routes/x+/parts+/search.tsxindex 659e98450b..81e732ea43 100644--- a/apps/carbon/app/routes/x+/parts+/search.tsx+++ b/apps/carbon/app/routes/x+/parts+/search.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -61,7 +61,7 @@ export default function PartsSearchRoute() {const { count, parts, partGroups } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PartsTableFilters partGroups={partGroups} /><PartsTable data={parts} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/parts+/services.tsx b/apps/carbon/app/routes/x+/parts+/services.tsxindex 9c672f0148..544a79394a 100644--- a/apps/carbon/app/routes/x+/parts+/services.tsx+++ b/apps/carbon/app/routes/x+/parts+/services.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -67,7 +67,7 @@ export default function ServicesSearchRoute() {const { count, services, partGroups } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ServicesTableFilters partGroups={partGroups} /><ServicesTable data={services} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/parts+/uom.tsx b/apps/carbon/app/routes/x+/parts+/uom.tsxindex 4f3250790c..733db71161 100644--- a/apps/carbon/app/routes/x+/parts+/uom.tsx+++ b/apps/carbon/app/routes/x+/parts+/uom.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -35,7 +35,7 @@ export default function UnitOfMeasuresRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><UnitOfMeasuresTableFilters /><UnitOfMeasuresTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsxindex f7c6e601b3..aba6c42de0 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getPaymentTermsList } from "~/modules/accounting";@@ -29,7 +29,7 @@ export async function loader({ request }: LoaderFunctionArgs) {export default function PurchaseInvoiceRoute() {return (- <VStack w="full" h="full" spacing={4} p={4}>+ <VStack spacing={4} className="h-full p-4"><Outlet /></VStack>);diff --git a/apps/carbon/app/routes/x+/purchase-order+/_layout.tsx b/apps/carbon/app/routes/x+/purchase-order+/_layout.tsxindex 2c5d0e2b1a..0e15fb5327 100644--- a/apps/carbon/app/routes/x+/purchase-order+/_layout.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/_layout.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import type { Handle } from "~/utils/handle";@@ -16,7 +16,7 @@ export const handle: Handle = {export default function PurchaseOrderRoute() {return (- <VStack w="full" h="full" spacing={4} p={4}>+ <VStack spacing={4} className="h-full p-4"><Outlet /></VStack>);diff --git a/apps/carbon/app/routes/x+/purchasing+/_layout.tsx b/apps/carbon/app/routes/x+/purchasing+/_layout.tsxindex d898e41ed9..2243b23195 100644--- a/apps/carbon/app/routes/x+/purchasing+/_layout.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function UsersRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/purchasing+/orders.tsx b/apps/carbon/app/routes/x+/purchasing+/orders.tsxindex c034592cbf..3921eb5bc8 100644--- a/apps/carbon/app/routes/x+/purchasing+/orders.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/orders.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -65,7 +65,7 @@ export default function PurchaseOrdersSearchRoute() {const { count, purchasOrders } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PurchaseOrdersTableFilters /><PurchaseOrdersTable data={purchasOrders} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsxindex 36fcc8dc24..f1e393c3ec 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -35,7 +35,7 @@ export default function SupplierTypesRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><SupplierTypesTableFilters /><SupplierTypesTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/purchasing+/suppliers.tsx b/apps/carbon/app/routes/x+/purchasing+/suppliers.tsxindex 9d10c173cd..0e116b8e7a 100644--- a/apps/carbon/app/routes/x+/purchasing+/suppliers.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/suppliers.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -61,7 +61,7 @@ export default function PurchasingSuppliersRoute() {useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><SuppliersTableFilterssupplierTypes={supplierTypes}supplierStatuses={supplierStatuses}diff --git a/apps/carbon/app/routes/x+/resources+/_layout.tsx b/apps/carbon/app/routes/x+/resources+/_layout.tsxindex a4eb00bf87..7f12f2c253 100644--- a/apps/carbon/app/routes/x+/resources+/_layout.tsx+++ b/apps/carbon/app/routes/x+/resources+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function ResourcesRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/resources+/abilities.tsx b/apps/carbon/app/routes/x+/resources+/abilities.tsxindex 67090d3f00..e1199cb887 100644--- a/apps/carbon/app/routes/x+/resources+/abilities.tsx+++ b/apps/carbon/app/routes/x+/resources+/abilities.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -49,7 +49,7 @@ export default function AbilitiesRoute() {const { abilities, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><AbilitiesTableFilters /><AbilitiesTable data={abilities} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/attributes.tsx b/apps/carbon/app/routes/x+/resources+/attributes.tsxindex 755f6a1f66..8938b9bc5e 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -57,7 +57,7 @@ export default function UserAttributesRoute() {const { count, categories } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><AttributeCategoriesTableFilters /><AttributeCategoriesTable data={categories} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/contractors.tsx b/apps/carbon/app/routes/x+/resources+/contractors.tsxindex 4d065452d7..683f161b75 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -64,7 +64,7 @@ export default function Route() {const { contractors, abilities, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ContractorsTableFilters abilities={abilities} /><ContractorsTable data={contractors} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/departments.tsx b/apps/carbon/app/routes/x+/resources+/departments.tsxindex 3a599bbce5..1391451204 100644--- a/apps/carbon/app/routes/x+/resources+/departments.tsx+++ b/apps/carbon/app/routes/x+/resources+/departments.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -57,7 +57,7 @@ export default function Route() {const { departments, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><DepartmentsTableFilters /><DepartmentsTable data={departments} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/equipment.tsx b/apps/carbon/app/routes/x+/resources+/equipment.tsxindex 62926a728a..d0bd218ca0 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -57,7 +57,7 @@ export default function UserAttributesRoute() {const { count, equipmentTypes } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><EquipmentTypesTableFilters /><EquipmentTypesTable data={equipmentTypes} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/holidays.tsx b/apps/carbon/app/routes/x+/resources+/holidays.tsxindex cba55e64dc..bf8ceb36b2 100644--- a/apps/carbon/app/routes/x+/resources+/holidays.tsx+++ b/apps/carbon/app/routes/x+/resources+/holidays.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -62,7 +62,7 @@ export default function Route() {const { holidays, years, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><HolidaysTableFilters years={years} /><HolidaysTable data={holidays} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/locations.tsx b/apps/carbon/app/routes/x+/resources+/locations.tsxindex 37f514794c..3984cd2e50 100644--- a/apps/carbon/app/routes/x+/resources+/locations.tsx+++ b/apps/carbon/app/routes/x+/resources+/locations.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -49,7 +49,7 @@ export default function LocationsRoute() {const { locations, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><LocationsTableFilters /><LocationsTable data={locations} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/partners.tsx b/apps/carbon/app/routes/x+/resources+/partners.tsxindex 10c6c03194..9601c7a336 100644--- a/apps/carbon/app/routes/x+/resources+/partners.tsx+++ b/apps/carbon/app/routes/x+/resources+/partners.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -61,7 +61,7 @@ export default function Route() {const { partners, abilities, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PartnersTableFilters abilities={abilities} /><PartnersTable data={partners} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/people.tsx b/apps/carbon/app/routes/x+/resources+/people.tsxindex 0cf94a62e5..d6936609f6 100644--- a/apps/carbon/app/routes/x+/resources+/people.tsx+++ b/apps/carbon/app/routes/x+/resources+/people.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -81,7 +81,7 @@ export default function ResourcesPeopleRoute() {const permissions = usePermissions();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><PeopleTableFilters employeeTypes={employeeTypes ?? []} /><PeopleTableattributeCategories={attributeCategories}diff --git a/apps/carbon/app/routes/x+/resources+/person.$personId.tsx b/apps/carbon/app/routes/x+/resources+/person.$personId.tsxindex c16ab8b29f..d82b852d49 100644--- a/apps/carbon/app/routes/x+/resources+/person.$personId.tsx+++ b/apps/carbon/app/routes/x+/resources+/person.$personId.tsx@@ -1,4 +1,5 @@-import { Box, Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";@@ -166,7 +167,7 @@ export default function PersonRoute() {} = useLoaderData<typeof loader>();return (- <Box p="4" w="full">+ <div className="w-full p-4"><PersonHeader user={user} /><Grid gridTemplateColumns="5fr 3fr" gridColumnGap={4} w="full"><VStack spacing={4}>@@ -184,6 +185,6 @@ export default function PersonRoute() {<PersonAbilities abilities={employeeAbilities} /></VStack></Grid>- </Box>+ </div>);}diff --git a/apps/carbon/app/routes/x+/resources+/shifts.tsx b/apps/carbon/app/routes/x+/resources+/shifts.tsxindex 67d7596e28..8aa6430254 100644--- a/apps/carbon/app/routes/x+/resources+/shifts.tsx+++ b/apps/carbon/app/routes/x+/resources+/shifts.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -55,7 +55,7 @@ export default function ShiftsRoute() {const { shifts, locations, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><ShiftsTableFilters locations={locations} /><ShiftsTable data={shifts} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.tsxindex ce9fbe3684..663b46f565 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -57,7 +57,7 @@ export default function UserAttributesRoute() {const { count, workCellTypes } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><WorkCellTypesTableFilters /><WorkCellTypesTable data={workCellTypes} count={count} /><Outlet />diff --git a/apps/carbon/app/routes/x+/sales+/_layout.tsx b/apps/carbon/app/routes/x+/sales+/_layout.tsxindex ecf9f0ca11..4e8a48c493 100644--- a/apps/carbon/app/routes/x+/sales+/_layout.tsx+++ b/apps/carbon/app/routes/x+/sales+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -16,13 +17,13 @@ export const handle: Handle = {module: "sales",};-export default function UsersRoute() {+export default function SalesRoute() {const { groups } = useSalesSidebar();return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/sales+/customer-types.tsx b/apps/carbon/app/routes/x+/sales+/customer-types.tsxindex 022b05b1d0..e23e18698f 100644--- a/apps/carbon/app/routes/x+/sales+/customer-types.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-types.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -35,7 +35,7 @@ export default function CustomerTypesRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><CustomerTypesTableFilters /><CustomerTypesTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/sales+/customers.tsx b/apps/carbon/app/routes/x+/sales+/customers.tsxindex fbd6d9186a..e0530bc75a 100644--- a/apps/carbon/app/routes/x+/sales+/customers.tsx+++ b/apps/carbon/app/routes/x+/sales+/customers.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -61,7 +61,7 @@ export default function SalesCustomersRoute() {useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><CustomersTableFilterscustomerTypes={customerTypes}customerStatuses={customerStatuses}diff --git a/apps/carbon/app/routes/x+/service+/_layout.tsx b/apps/carbon/app/routes/x+/service+/_layout.tsxindex d4243562d5..b94f7b8a86 100644--- a/apps/carbon/app/routes/x+/service+/_layout.tsx+++ b/apps/carbon/app/routes/x+/service+/_layout.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getPartGroupsList } from "~/modules/parts";@@ -35,7 +35,7 @@ export async function loader({ request }: LoaderFunctionArgs) {export default function ServiceRoute() {return (- <VStack w="full" h="full" spacing={4} p={4}>+ <VStack spacing={4} className="h-full p-4"><Outlet /></VStack>);diff --git a/apps/carbon/app/routes/x+/settings+/_layout.tsx b/apps/carbon/app/routes/x+/settings+/_layout.tsxindex 00c8dec6ca..e3cb476b9d 100644--- a/apps/carbon/app/routes/x+/settings+/_layout.tsx+++ b/apps/carbon/app/routes/x+/settings+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function SettingsRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/settings+/company.tsx b/apps/carbon/app/routes/x+/settings+/company.tsxindex 77e5d54cd0..4a1490c1c2 100644--- a/apps/carbon/app/routes/x+/settings+/company.tsx+++ b/apps/carbon/app/routes/x+/settings+/company.tsx@@ -1,5 +1,5 @@-import { useColor } from "@carbon/react";-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";@@ -116,7 +116,7 @@ export default function Company() {};return (- <VStack w="full" h="full" spacing={0} p={8} bg={useColor("white")}>+ <VStack spacing={0} className="bg-background p-8 h-full"><PageTitletitle="Company"subtitle="This information will be displayed on document headers."diff --git a/apps/carbon/app/routes/x+/settings+/sequences.tsx b/apps/carbon/app/routes/x+/settings+/sequences.tsxindex a227b4594c..f671fecaad 100644--- a/apps/carbon/app/routes/x+/settings+/sequences.tsx+++ b/apps/carbon/app/routes/x+/settings+/sequences.tsx@@ -35,7 +35,7 @@ export default function SequencesRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><SequencesTableFilters /><SequencesTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/supplier+/_layout.tsx b/apps/carbon/app/routes/x+/supplier+/_layout.tsxindex d613737696..ae718b2776 100644--- a/apps/carbon/app/routes/x+/supplier+/_layout.tsx+++ b/apps/carbon/app/routes/x+/supplier+/_layout.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet } from "@remix-run/react";@@ -52,7 +52,7 @@ export async function loader({ request }: LoaderFunctionArgs) {export default function SupplierRoute() {return (- <VStack w="full" h="full" spacing={4} p={4}>+ <VStack spacing={4} className="h-full p-4"><Outlet /></VStack>);diff --git a/apps/carbon/app/routes/x+/users+/_layout.tsx b/apps/carbon/app/routes/x+/users+/_layout.tsxindex 8292033ef8..f4fae16e64 100644--- a/apps/carbon/app/routes/x+/users+/_layout.tsx+++ b/apps/carbon/app/routes/x+/users+/_layout.tsx@@ -1,4 +1,5 @@-import { Grid, VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid } from "@chakra-ui/react";import type { MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { GroupedContentSidebar } from "~/components/Layout/Sidebar";@@ -22,7 +23,7 @@ export default function UsersRoute() {return (<Grid w="full" h="full" templateColumns="auto 1fr"><GroupedContentSidebar groups={groups} />- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><Outlet /></VStack></Grid>diff --git a/apps/carbon/app/routes/x+/users+/customers.tsx b/apps/carbon/app/routes/x+/users+/customers.tsxindex 3dc9a88a02..5307a89510 100644--- a/apps/carbon/app/routes/x+/users+/customers.tsx+++ b/apps/carbon/app/routes/x+/users+/customers.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -59,7 +59,7 @@ export default function UsersCustomersRoute() {const permissions = usePermissions();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><CustomerAccountsTableFilters customerTypes={customerTypes} /><CustomerAccountsTabledata={customers}diff --git a/apps/carbon/app/routes/x+/users+/employee-types.tsx b/apps/carbon/app/routes/x+/users+/employee-types.tsxindex 4667aeffbd..6c8cb03324 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -35,7 +35,7 @@ export default function EmployeeTypesRoute() {const { data, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><EmployeeTypesTableFilters /><EmployeeTypesTable data={data ?? []} count={count ?? 0} /><Outlet />diff --git a/apps/carbon/app/routes/x+/users+/employees.tsx b/apps/carbon/app/routes/x+/users+/employees.tsxindex 07e34450b4..4e5378ed1b 100644--- a/apps/carbon/app/routes/x+/users+/employees.tsx+++ b/apps/carbon/app/routes/x+/users+/employees.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -69,7 +69,7 @@ export default function UsersEmployeesRoute() {const permissions = usePermissions();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><EmployeesTableFilters employeeTypes={employeeTypes} /><EmployeesTabledata={employees}diff --git a/apps/carbon/app/routes/x+/users+/groups.tsx b/apps/carbon/app/routes/x+/users+/groups.tsxindex 67983b4126..5ecee633d1 100644--- a/apps/carbon/app/routes/x+/users+/groups.tsx+++ b/apps/carbon/app/routes/x+/users+/groups.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -49,7 +49,7 @@ export default function GroupsRoute() {const { groups, count } = useLoaderData<typeof loader>();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><GroupsTableFilters />{/* @ts-ignore */}<GroupsTable data={groups} count={count} />diff --git a/apps/carbon/app/routes/x+/users+/suppliers.tsx b/apps/carbon/app/routes/x+/users+/suppliers.tsxindex 9d8dee97d2..cb95d85050 100644--- a/apps/carbon/app/routes/x+/users+/suppliers.tsx+++ b/apps/carbon/app/routes/x+/users+/suppliers.tsx@@ -1,4 +1,4 @@-import { VStack } from "@chakra-ui/react";+import { VStack } from "@carbon/react";import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";@@ -67,7 +67,7 @@ export default function UsersSuppliersRoute() {const permissions = usePermissions();return (- <VStack w="full" h="full" spacing={0}>+ <VStack spacing={0} className="h-full"><SupplierAccountsTableFilters supplierTypes={supplierTypes} /><SupplierAccountsTabledata={suppliers}diff --git a/packages/react/src/DataTable/DataTable.tsx b/packages/react/src/DataTable/DataTable.tsxindex edfa694128..998012bf2a 100644--- a/packages/react/src/DataTable/DataTable.tsx+++ b/packages/react/src/DataTable/DataTable.tsx@@ -1,14 +1,5 @@-import {- Box,- Grid,- Table,- Tbody,- Td,- Th,- Thead,- Tr,- VStack,-} from "@chakra-ui/react";+import { VStack } from "@carbon/react";+import { Grid, Table, Tbody, Td, Th, Thead, Tr } from "@chakra-ui/react";import type {ColumnDef,ColumnFiltersState,@@ -27,7 +18,6 @@ import {} from "@tanstack/react-table";import { useState } from "react";-import { useColor } from "../hooks";import { DataTablePagination } from "./DataTablePagination";interface DataTableProps<TData, TValue> {@@ -74,14 +64,8 @@ const DataTable = <TData, TValue>({});return (- <VStack spacing={0} w="full" h="full">- <Box- w="full"- h="full"- bg={useColor("white")}- overflow="scroll"- style={{ contain: "strict" }}- >+ <VStack spacing={0} className="h-full">+ <div className="h-full bg-background overflow-scroll"><Grid w="full" gridTemplateColumns="1fr"><Table><Thead>@@ -142,7 +126,7 @@ const DataTable = <TData, TValue>({</Tbody></Table></Grid>- </Box>+ </div><DataTablePagination table={table} /></VStack>);diff --git a/packages/react/src/HStack.tsx b/packages/react/src/HStack.tsxnew file mode 100644index 0000000000..497d96aaec--- /dev/null+++ b/packages/react/src/HStack.tsx@@ -0,0 +1,47 @@+import type { VariantProps } from "class-variance-authority";+import { cva } from "class-variance-authority";+import type { ComponentProps } from "react";+import { forwardRef } from "react";+import { cn } from "./utils/cn";++const hStackVariants = cva("flex", {+ variants: {+ spacing: {+ 0: "space-x-0",+ 1: "space-x-1",+ 2: "space-x-2",+ 3: "space-x-3",+ 4: "space-x-4",+ 8: "space-x-8",+ },+ },+ defaultVariants: {+ spacing: 2,+ },+});++export interface HStackProps+ extends ComponentProps<"div">,+ VariantProps<typeof hStackVariants> {}++const HStack = forwardRef<HTMLDivElement, HStackProps>(+ ({ className, children, spacing, ...props }, ref) => {+ return (+ <div+ className={cn(+ hStackVariants({+ spacing,+ className,+ })+ )}+ ref={ref}+ {...props}+ >+ {children}+ </div>+ );+ }+);+HStack.displayName = "HStack";++export { HStack };diff --git a/packages/react/src/Inputs/Editor/Editor.tsx b/packages/react/src/Inputs/Editor/Editor.tsxindex fb59917f2a..3daaedbe33 100644--- a/packages/react/src/Inputs/Editor/Editor.tsx+++ b/packages/react/src/Inputs/Editor/Editor.tsx@@ -1,11 +1,12 @@import type { BoxProps } from "@chakra-ui/react";-import { Box, VStack } from "@chakra-ui/react";+import { Box } from "@chakra-ui/react";import { Color } from "@tiptap/extension-color";import ListItem from "@tiptap/extension-list-item";import TextStyle from "@tiptap/extension-text-style";import { EditorContent, useEditor as useEditorInternal } from "@tiptap/react";import StarterKit from "@tiptap/starter-kit";-import { reset } from "../../Theme";+import { reset } from "~/Theme";+import { VStack } from "~/VStack";import { Toolbar } from "./Toolbar";export const useEditor = (content: string) => {@@ -40,7 +41,7 @@ export const Editor = ({ editor, ...props }: EditorProps) => {}return (- <VStack w="full" alignItems="start" spacing={0}>+ <VStack spacing={0}><Toolbar editor={editor} /><Boxas={EditorContent}diff --git a/packages/react/src/VStack.tsx b/packages/react/src/VStack.tsxindex d6909f7228..cce9f3acc0 100644--- a/packages/react/src/VStack.tsx+++ b/packages/react/src/VStack.tsx@@ -16,7 +16,7 @@ const vStackVariants = cva("flex flex-col w-full items-start", {},},defaultVariants: {- spacing: 4,+ spacing: 2,},});diff --git a/packages/react/src/hooks/index.ts b/packages/react/src/hooks/index.tsindex 78e60b3d28..3110f1750f 100644--- a/packages/react/src/hooks/index.ts+++ b/packages/react/src/hooks/index.ts@@ -1,19 +1,23 @@import useColor from "./useColor";import useDebounce from "./useDebounce";+import useDisclosure from "./useDisclosure";import useEscape from "./useEscape";import useHydrated from "./useHydrated";import useInterval from "./useInterval";import useKeyboardShortcuts from "./useKeyboardShortcuts";import useLocalStorage from "./useLocalStorage";import useMount from "./useMount";+import useOutsideClick from "./useOutsideClick";export {useColor,useDebounce,+ useDisclosure,useEscape,useHydrated,useInterval,useKeyboardShortcuts,useLocalStorage,useMount,+ useOutsideClick,};diff --git a/packages/react/src/hooks/useCallbackRef.ts b/packages/react/src/hooks/useCallbackRef.tsnew file mode 100644index 0000000000..c05bd17227--- /dev/null+++ b/packages/react/src/hooks/useCallbackRef.ts@@ -0,0 +1,15 @@+import { useCallback, useEffect, useRef } from "react";++export default function useCallbackRef<T extends (...args: any[]) => any>(+ callback: T | undefined,+ deps: React.DependencyList = []+) {+ const callbackRef = useRef(callback);++ useEffect(() => {+ callbackRef.current = callback;+ });++ // eslint-disable-next-line react-hooks/exhaustive-deps+ return useCallback(((...args) => callbackRef.current?.(...args)) as T, deps);+}diff --git a/packages/react/src/hooks/useDisclosure.ts b/packages/react/src/hooks/useDisclosure.tsnew file mode 100644index 0000000000..ce7042be83--- /dev/null+++ b/packages/react/src/hooks/useDisclosure.ts@@ -0,0 +1,92 @@+import type React from "react";+import { useCallback, useId, useState } from "react";+import useCallbackRef from "./useCallbackRef";++export interface UseDisclosureProps {+ isOpen?: boolean;+ defaultIsOpen?: boolean;+ onClose?(): void;+ onOpen?(): void;+ id?: string;+}++type HTMLProps = React.HTMLAttributes<HTMLElement>;++/**+ * `useDisclosure` is a custom hook used to help handle common open, close, or toggle scenarios.+ * It can be used to control feedback component such as `Modal`, `AlertDialog`, `Drawer`, etc.+ *+ * @see Docs https://chakra-ui.com/docs/hooks/use-disclosure+ */+export default function useDisclosure(props: UseDisclosureProps = {}) {+ const {+ onClose: onCloseProp,+ onOpen: onOpenProp,+ isOpen: isOpenProp,+ id: idProp,+ } = props;++ const handleOpen = useCallbackRef(onOpenProp);+ const handleClose = useCallbackRef(onCloseProp);++ const [isOpenState, setIsOpen] = useState(props.defaultIsOpen || false);++ const isOpen = isOpenProp !== undefined ? isOpenProp : isOpenState;++ const isControlled = isOpenProp !== undefined;++ const uid = useId();+ const id = idProp ?? `disclosure-${uid}`;++ const onClose = useCallback(() => {+ if (!isControlled) {+ setIsOpen(false);+ }+ handleClose?.();+ }, [isControlled, handleClose]);++ const onOpen = useCallback(() => {+ if (!isControlled) {+ setIsOpen(true);+ }+ handleOpen?.();+ }, [isControlled, handleOpen]);++ const onToggle = useCallback(() => {+ if (isOpen) {+ onClose();+ } else {+ onOpen();+ }+ }, [isOpen, onOpen, onClose]);++ function getButtonProps(props: HTMLProps = {}): HTMLProps {+ return {+ ...props,+ "aria-expanded": isOpen,+ "aria-controls": id,+ onClick(event) {+ props.onClick?.(event);+ onToggle();+ },+ };+ }++ function getDisclosureProps(props: HTMLProps = {}): HTMLProps {+ return {+ ...props,+ hidden: !isOpen,+ id,+ };+ }++ return {+ isOpen,+ onOpen,+ onClose,+ onToggle,+ isControlled,+ getButtonProps,+ getDisclosureProps,+ };+}diff --git a/packages/react/src/hooks/useOutsideClick.ts b/packages/react/src/hooks/useOutsideClick.tsnew file mode 100644index 0000000000..36a42e4301--- /dev/null+++ b/packages/react/src/hooks/useOutsideClick.ts@@ -0,0 +1,90 @@+import { useCallbackRef } from "@chakra-ui/react-use-callback-ref";+import { useEffect, useRef } from "react";++export interface UseOutsideClickProps {+ /**+ * Whether the hook is enabled+ */+ enabled?: boolean;+ /**+ * The reference to a DOM element.+ */+ ref: React.RefObject<HTMLElement>;+ /**+ * Function invoked when a click is triggered outside the referenced element.+ */+ handler?: (e: Event) => void;+}++/**+ * Example, used in components like Dialogs and Popovers, so they can close+ * when a user clicks outside them.+ */+export default function useOutsideClick(props: UseOutsideClickProps) {+ const { ref, handler, enabled = true } = props;+ const savedHandler = useCallbackRef(handler);++ const stateRef = useRef({+ isPointerDown: false,+ ignoreEmulatedMouseEvents: false,+ });++ const state = stateRef.current;++ useEffect(() => {+ if (!enabled) return;+ const onPointerDown: any = (e: PointerEvent) => {+ if (isValidEvent(e, ref)) {+ state.isPointerDown = true;+ }+ };++ const onMouseUp: any = (event: MouseEvent) => {+ if (state.ignoreEmulatedMouseEvents) {+ state.ignoreEmulatedMouseEvents = false;+ return;+ }++ if (state.isPointerDown && handler && isValidEvent(event, ref)) {+ state.isPointerDown = false;+ savedHandler(event);+ }+ };++ const onTouchEnd = (event: TouchEvent) => {+ state.ignoreEmulatedMouseEvents = true;+ if (handler && state.isPointerDown && isValidEvent(event, ref)) {+ state.isPointerDown = false;+ savedHandler(event);+ }+ };++ const doc = getOwnerDocument(ref.current);+ doc.addEventListener("mousedown", onPointerDown, true);+ doc.addEventListener("mouseup", onMouseUp, true);+ doc.addEventListener("touchstart", onPointerDown, true);+ doc.addEventListener("touchend", onTouchEnd, true);++ return () => {+ doc.removeEventListener("mousedown", onPointerDown, true);+ doc.removeEventListener("mouseup", onMouseUp, true);+ doc.removeEventListener("touchstart", onPointerDown, true);+ doc.removeEventListener("touchend", onTouchEnd, true);+ };+ }, [handler, ref, savedHandler, state, enabled]);+}++function isValidEvent(event: Event, ref: React.RefObject<HTMLElement>) {+ const target = event.target as HTMLElement;++ if (target) {+ const doc = getOwnerDocument(target);+ if (!doc.contains(target)) return false;+ }++ return !ref.current?.contains(target);+}++function getOwnerDocument(node?: Element | null): Document {+ return node?.ownerDocument ?? document;+}diff --git a/packages/react/src/index.tsx b/packages/react/src/index.tsxindex 4e49cfdbc8..1d877a5cc3 100644--- a/packages/react/src/index.tsx+++ b/packages/react/src/index.tsx@@ -2,6 +2,7 @@ import Button from "./Button";import Count from "./Count";import DataTable, { DataTableColumnHeader } from "./DataTable";import Dot from "./Dot";+import { HStack } from "./HStack";import HTML from "./HTML";import { Heading } from "./Heading";import type {@@ -34,11 +35,13 @@ import { VStack } from "./VStack";import {useColor,useDebounce,+ useDisclosure,useEscape,useHydrated,useInterval,useKeyboardShortcuts,useMount,+ useOutsideClick,} from "./hooks";export {@@ -56,6 +59,7 @@ export {Dot,Editor,File,+ HStack,HTML,Heading,Loading,@@ -71,6 +75,7 @@ export {theme,useColor,useDebounce,+ useDisclosure,useEditor,useEscape,useHydrated,@@ -78,5 +83,6 @@ export {useKeyboardShortcuts,useMount,useNotification,+ useOutsideClick,};export type { GroupBase, MultiValue, OptionBase, OptionProps, SingleValue };diff --git a/packages/tailwind/tailwind.config.js b/packages/tailwind/tailwind.config.jsindex 2e7d77ac31..1c523cb33b 100644--- a/packages/tailwind/tailwind.config.js+++ b/packages/tailwind/tailwind.config.js@@ -59,7 +59,7 @@ module.exports = {},fontFamily: {sans: ["var(--font-geist-sans)", ...fontFamily.sans],- // mono: ["var(--font-mono)", ...fontFamily.mono],+ mono: ["var(--font-mono)", ...fontFamily.mono],},keyframes: {"accordion-down": {