Skip to content

Commit e38261d

Browse files
committed
remove @chakra-ui/icon in favor of lucide-react
1 parent fc48be1 commit e38261d

File tree

6 files changed

+21
-45
lines changed

6 files changed

+21
-45
lines changed

package-lock.json

Lines changed: 11 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/chakra-ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
"node": ">=20"
6464
},
6565
"peerDependencies": {
66-
"@chakra-ui/icons": ">=1.1.1",
6766
"@chakra-ui/react": ">=3.4.0",
6867
"@chakra-ui/system": ">=1.12.1",
6968
"@rjsf/core": "^6.x",
7069
"@rjsf/utils": "^6.x",
7170
"chakra-react-select": ">=3.3.8",
72-
"react": ">=18"
71+
"react": ">=18",
72+
"lucide-react": "^0.488.0"
7373
},
7474
"publishConfig": {
7575
"access": "public"
@@ -90,7 +90,6 @@
9090
"@babel/preset-react": "^7.23.3",
9191
"@babel/preset-typescript": "^7.23.3",
9292
"@chakra-ui/cli": "^3.4.0",
93-
"@chakra-ui/icons": "^1.1.7",
9493
"@chakra-ui/react": "^3.4.0",
9594
"@chakra-ui/system": "^1.12.1",
9695
"@emotion/eslint-plugin": "^11.11.0",
@@ -111,6 +110,7 @@
111110
"jest": "^29.7.0",
112111
"jest-environment-jsdom": "^29.7.0",
113112
"jest-watch-typeahead": "^2.2.2",
113+
"lucide-react": "^0.488.0",
114114
"react": "^18.2.0",
115115
"react-dom": "^18.2.0",
116116
"react-test-renderer": "^18.2.0",

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@rjsf/semantic-ui": "^6.0.0-alpha.0",
4747
"@rjsf/utils": "^6.0.0-alpha.0",
4848
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
49-
"@chakra-ui/icons": "^2.2.4",
5049
"@chakra-ui/react": "^3.15.1",
5150
"@emotion/react": "^11.14.0",
5251
"@fluentui/react": "^8.115.3",
@@ -71,7 +70,8 @@
7170
"react-frame-component": "^4.1.3",
7271
"react-is": "^18.2.0",
7372
"react-portal": "^4.2.2",
74-
"semantic-ui-react": "^2.1.3"
73+
"semantic-ui-react": "^2.1.3",
74+
"lucide-react": "^0.488.0"
7575
},
7676
"devDependencies": {
7777
"@babel/cli": "^7.23.9",

0 commit comments

Comments
 (0)