diff --git a/packages/filigran-ui/package.json b/packages/filigran-ui/package.json
index 1f5bc6d..6f38a40 100644
--- a/packages/filigran-ui/package.json
+++ b/packages/filigran-ui/package.json
@@ -54,7 +54,6 @@
"class-variance-authority": "0.7.0",
"clsx": "2.1.1",
"cmdk": "1.0.0",
- "lucide-react": "0.399.0",
"react-easy-sort": "1.6.0",
"react-hook-form": "7.52.0",
"tailwind-merge": "2.3.0",
@@ -62,8 +61,8 @@
"zod": "3.23.8"
},
"peerDependencies": {
- "react": "18.2.0",
- "react-dom": "18.2.0"
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
},
"exports": {
".": {
diff --git a/packages/filigran-ui/src/components/clients/accordion.tsx b/packages/filigran-ui/src/components/clients/accordion.tsx
index 8dfad93..e646b05 100644
--- a/packages/filigran-ui/src/components/clients/accordion.tsx
+++ b/packages/filigran-ui/src/components/clients/accordion.tsx
@@ -1,7 +1,7 @@
'use client'
import * as AccordionPrimitive from '@radix-ui/react-accordion'
-import {ChevronDown} from 'lucide-react'
+import {KeyboardArrowDownIcon} from 'filigran-icon'
import * as React from 'react'
import {cn} from '../../lib/utils'
@@ -32,7 +32,7 @@ const AccordionTrigger = React.forwardRef<
)}
{...props}>
{children}
-
+
))
diff --git a/packages/filigran-ui/src/components/clients/combobox.tsx b/packages/filigran-ui/src/components/clients/combobox.tsx
index 8667a11..bf5f010 100644
--- a/packages/filigran-ui/src/components/clients/combobox.tsx
+++ b/packages/filigran-ui/src/components/clients/combobox.tsx
@@ -1,10 +1,8 @@
'use client'
-import {Check, ChevronDown} from 'lucide-react'
+import {CheckIcon, KeyboardArrowDownIcon} from 'filigran-icon'
import * as React from 'react'
-
import {cn} from '../../lib/utils'
-
import {Button} from '../servers'
import {
Command,
@@ -70,7 +68,7 @@ function Combobox({
) : (
{order}
)}
-
+
@@ -84,7 +82,7 @@ function Combobox({
key={data.value}
value={data.value}
onSelect={() => handleSelect(data.value)}>
-
-
+
({
{column.getCanSort() && (
<>
column.toggleSorting(false)}>
-
+
{t_i18n('Asc')}
column.toggleSorting(true)}>
-
+
{t_i18n('Desc')}
>
@@ -277,7 +278,7 @@ const DataTableOptionsHeader = ({
{column.getCanHide() && (
column.toggleVisibility(false)}>
-
+
{t_i18n('Hide')}
)}
@@ -301,14 +302,14 @@ const DraggableTableHeader = ({
const styles: Record = {
transform: transform ? getTransformString(transform) : '',
}
- const size = header.getSize();
+ const size = header.getSize()
// if size is -1, it means the column has no size and will expand to fit the available space
if (size !== -1) {
styles.minWidth = size
styles.width = size
}
- return styles;
- }, [header, transform]);
+ return styles
+ }, [header, transform])
return (
({
)}
{...attributes}
{...listeners}>
-
+
)}
diff --git a/packages/filigran-ui/src/components/clients/dialog.tsx b/packages/filigran-ui/src/components/clients/dialog.tsx
index b1acce4..e721946 100644
--- a/packages/filigran-ui/src/components/clients/dialog.tsx
+++ b/packages/filigran-ui/src/components/clients/dialog.tsx
@@ -1,9 +1,9 @@
'use client'
import * as DialogPrimitive from '@radix-ui/react-dialog'
-import {X} from 'lucide-react'
import * as React from 'react'
+import {CloseIcon} from 'filigran-icon'
import {cn} from '../../lib/utils'
const Dialog = DialogPrimitive.Root
@@ -44,7 +44,7 @@ const DialogContent = React.forwardRef<
{...props}>
{children}
-
+
Close
diff --git a/packages/filigran-ui/src/components/clients/dropdown-menu.tsx b/packages/filigran-ui/src/components/clients/dropdown-menu.tsx
index 55e6de2..09dc67d 100644
--- a/packages/filigran-ui/src/components/clients/dropdown-menu.tsx
+++ b/packages/filigran-ui/src/components/clients/dropdown-menu.tsx
@@ -1,7 +1,7 @@
'use client'
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
-import {Check, ChevronRight, Circle} from 'lucide-react'
+import {CheckIcon, ChevronIcon, CircleIcon} from 'filigran-icon'
import * as React from 'react'
import {cn} from '../../lib/utils'
@@ -32,7 +32,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
)}
{...props}>
{children}
-
+
))
DropdownMenuSubTrigger.displayName =
@@ -104,7 +104,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
{...props}>
-
+
{children}
@@ -126,7 +126,7 @@ const DropdownMenuRadioItem = React.forwardRef<
{...props}>
-
+
{children}
diff --git a/packages/filigran-ui/src/components/clients/multi-select.tsx b/packages/filigran-ui/src/components/clients/multi-select.tsx
index 077192f..4a2eb69 100644
--- a/packages/filigran-ui/src/components/clients/multi-select.tsx
+++ b/packages/filigran-ui/src/components/clients/multi-select.tsx
@@ -1,8 +1,6 @@
import {cva, type VariantProps} from 'class-variance-authority'
-import {CheckIcon, ChevronDown} from 'lucide-react'
+import {CheckIcon, CloseIcon, KeyboardArrowDownIcon} from 'filigran-icon'
import * as React from 'react'
-
-import {CloseIcon} from 'filigran-icon'
import {cn} from '../../lib/utils'
import {
Command,
@@ -161,7 +159,7 @@ const MultiSelectFormField = React.forwardRef<
orientation="vertical"
className="flex h-full min-h-6"
/>
-
+
) : (
@@ -169,7 +167,7 @@ const MultiSelectFormField = React.forwardRef<
{placeholder}
-
+
)}
diff --git a/packages/filigran-ui/src/components/clients/sheet.tsx b/packages/filigran-ui/src/components/clients/sheet.tsx
index 96bf852..d25d516 100644
--- a/packages/filigran-ui/src/components/clients/sheet.tsx
+++ b/packages/filigran-ui/src/components/clients/sheet.tsx
@@ -2,9 +2,8 @@
import * as SheetPrimitive from '@radix-ui/react-dialog'
import {cva, type VariantProps} from 'class-variance-authority'
-import {X} from 'lucide-react'
+import {CloseIcon} from 'filigran-icon'
import * as React from 'react'
-
import {cn} from '../../lib/utils'
import {Button} from '../servers'
@@ -73,7 +72,7 @@ const SheetContent = React.forwardRef<
variant="ghost"
size="icon"
className="text-primary hover:bg-hover/50 focus:bg-hover/50">
-
+
Close
diff --git a/packages/filigran-ui/src/components/clients/tag-input/autocomplete.tsx b/packages/filigran-ui/src/components/clients/tag-input/autocomplete.tsx
index 4e2be1b..338ffdc 100644
--- a/packages/filigran-ui/src/components/clients/tag-input/autocomplete.tsx
+++ b/packages/filigran-ui/src/components/clients/tag-input/autocomplete.tsx
@@ -1,4 +1,4 @@
-import {CheckIcon} from 'lucide-react'
+import {CheckIcon} from 'filigran-icon'
import React, {useCallback, useEffect, useRef, useState} from 'react'
import {cn} from '../../../lib/utils'
import {Button} from '../../servers/button'
diff --git a/packages/filigran-ui/src/components/clients/toast.tsx b/packages/filigran-ui/src/components/clients/toast.tsx
index 49334c7..423234c 100644
--- a/packages/filigran-ui/src/components/clients/toast.tsx
+++ b/packages/filigran-ui/src/components/clients/toast.tsx
@@ -2,7 +2,7 @@
import * as ToastPrimitives from '@radix-ui/react-toast'
import {cva, type VariantProps} from 'class-variance-authority'
-import {X} from 'lucide-react'
+import {CloseIcon} from 'filigran-icon'
import * as React from 'react'
import {cn} from '../../lib/utils'
@@ -78,7 +78,7 @@ const ToastClose = React.forwardRef<
className={cn('absolute right-4 top-4', className)}
toast-close=""
{...props}>
-
+
))
ToastClose.displayName = ToastPrimitives.Close.displayName
diff --git a/packages/filigran-ui/src/components/servers/breadcrumb.tsx b/packages/filigran-ui/src/components/servers/breadcrumb.tsx
index 594b5df..919b7fc 100644
--- a/packages/filigran-ui/src/components/servers/breadcrumb.tsx
+++ b/packages/filigran-ui/src/components/servers/breadcrumb.tsx
@@ -1,5 +1,5 @@
import {Slot} from '@radix-ui/react-slot'
-import {ChevronRight, MoreHorizontal} from 'lucide-react'
+import {ChevronIcon, MoreHorizIcon} from 'filigran-icon'
import * as React from 'react'
import {cn} from '../../lib/utils'
@@ -87,7 +87,7 @@ const BreadcrumbSeparator = ({
aria-hidden="true"
className={cn('[&>svg]:size-3.5', className)}
{...props}>
- {children ?? }
+ {children ?? }
)
BreadcrumbSeparator.displayName = 'BreadcrumbSeparator'
@@ -101,7 +101,7 @@ const BreadcrumbEllipsis = ({
aria-hidden="true"
className={cn('flex h-9 w-9 items-center justify-center', className)}
{...props}>
-
+
More
)
diff --git a/projects/filigran-website/components/example/example-multi-select.tsx b/projects/filigran-website/components/example/example-multi-select.tsx
index c05b758..048a381 100644
--- a/projects/filigran-website/components/example/example-multi-select.tsx
+++ b/projects/filigran-website/components/example/example-multi-select.tsx
@@ -11,7 +11,7 @@ import {
FormLabel,
FormMessage,
} from 'filigran-ui'
-import {MultiSelectFormField} from 'filigran-ui/servers'
+import {MultiSelectFormField} from 'filigran-ui/clients'
const frameworksList = [
{