feat: Add components required for estimates (#4690)
* Add sortable, radio and typography components * Remove stray css classes * Prevent drag of items from other draggable * Minor cleanup * Update yarn.lock * Remove radio input component as it was build on headless ui v2.0.0 and now we are using v1.7.0 * Fix build errors * Update dependencies in use memo.
This commit is contained in:
parent
77b73dc032
commit
188f8ff83f
9 changed files with 196 additions and 4 deletions
1
packages/ui/src/typography/index.tsx
Normal file
1
packages/ui/src/typography/index.tsx
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./sub-heading";
|
||||
15
packages/ui/src/typography/sub-heading.tsx
Normal file
15
packages/ui/src/typography/sub-heading.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import React from "react";
|
||||
import { cn } from "../../helpers";
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
noMargin?: boolean;
|
||||
};
|
||||
const SubHeading = ({ children, className, noMargin }: Props) => (
|
||||
<h3 className={cn("text-xl font-medium text-custom-text-200 block leading-7", !noMargin && "mb-2", className)}>
|
||||
{children}
|
||||
</h3>
|
||||
);
|
||||
|
||||
export { SubHeading };
|
||||
Loading…
Add table
Add a link
Reference in a new issue