Skip to content

Commit c9e88c6

Browse files
committed
remove @chakra-ui/icon in favor of lucide-react
1 parent 838e137 commit c9e88c6

File tree

6 files changed

+27
-38
lines changed

6 files changed

+27
-38
lines changed

package-lock.json

+17-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/chakra-ui/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
"node": ">=14"
6363
},
6464
"peerDependencies": {
65-
"@chakra-ui/icons": ">=1.1.1",
6665
"@chakra-ui/react": ">=3.4.0",
6766
"@chakra-ui/system": ">=1.12.1",
6867
"@rjsf/core": "^5.24.x",
6968
"@rjsf/utils": "^5.24.x",
7069
"chakra-react-select": ">=3.3.8",
71-
"react": ">=18"
70+
"react": ">=18",
71+
"lucide-react": "^0.488.0"
7272
},
7373
"publishConfig": {
7474
"access": "public"
@@ -89,7 +89,6 @@
8989
"@babel/preset-react": "^7.23.3",
9090
"@babel/preset-typescript": "^7.23.3",
9191
"@chakra-ui/cli": "^3.4.0",
92-
"@chakra-ui/icons": "^1.1.7",
9392
"@chakra-ui/react": "^3.4.0",
9493
"@chakra-ui/system": "^1.12.1",
9594
"@emotion/eslint-plugin": "^11.11.0",
@@ -109,6 +108,7 @@
109108
"jest": "^29.7.0",
110109
"jest-environment-jsdom": "^29.7.0",
111110
"jest-watch-typeahead": "^2.2.2",
111+
"lucide-react": "^0.488.0",
112112
"react": "^18.2.0",
113113
"react-dom": "^18.2.0",
114114
"react-test-renderer": "^18.2.0",

packages/chakra-ui/src/AddButton/AddButton.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
22
import { Button } from '@chakra-ui/react';
3-
import { AddIcon } from '@chakra-ui/icons';
3+
import { PlusIcon } from 'lucide-react';
44

55
export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({
66
uiSchema,
@@ -10,7 +10,7 @@ export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSche
1010
const { translateString } = registry;
1111
return (
1212
<Button {...props}>
13-
<AddIcon />
13+
<PlusIcon />
1414
{translateString(TranslatableString.AddItemButton)}
1515
</Button>
1616
);

packages/chakra-ui/src/ErrorList/ErrorList.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
22
import { ListIndicator, ListItem, ListRoot } from '@chakra-ui/react';
3-
import { WarningIcon } from '@chakra-ui/icons';
3+
import { TriangleAlert } from 'lucide-react';
44
import { Alert } from '../components/ui/alert';
55

66
export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({
@@ -20,7 +20,7 @@ export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSche
2020
{errors.map((error, i) => (
2121
<ListItem key={i}>
2222
<ListIndicator asChild color='red.500'>
23-
<WarningIcon />
23+
<TriangleAlert />
2424
</ListIndicator>
2525
{error.stack}
2626
</ListItem>

packages/chakra-ui/src/IconButton/IconButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
22

3-
import { ArrowUpIcon, ArrowDownIcon, CopyIcon, DeleteIcon } from '@chakra-ui/icons';
3+
import { ArrowUpIcon, ArrowDownIcon, CopyIcon, DeleteIcon } from 'lucide-react';
44
import ChakraIconButton from './ChakraIconButton';
55

66
export function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(

packages/playground/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"react-frame-component": "^4.1.3",
7575
"react-is": "^18.2.0",
7676
"react-portal": "^4.2.2",
77-
"semantic-ui-react": "^2.1.3"
77+
"semantic-ui-react": "^2.1.3",
78+
"lucide-react": "^0.488.0"
7879
},
7980
"devDependencies": {
8081
"@babel/cli": "^7.23.9",

0 commit comments

Comments
 (0)