Skip to content

Commit d11afdc

Browse files
authored
Merge pull request #36 from solved-ac/feature/tabler-icons
Use tabler icons instead of react-icons
2 parents c08a7fe + 483308f commit d11afdc

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@
3232
"@emotion/react": ">=11",
3333
"@emotion/styled": ">=11",
3434
"@floating-ui/react-dom-interactions": "^0.13.3",
35+
"@tabler/icons-react": "^2.11.0",
3536
"framer-motion": "6.x",
3637
"react": ">=17",
37-
"react-dom": ">=17",
38-
"react-icons": "^4.8.0"
38+
"react-dom": ">=17"
3939
},
4040
"devDependencies": {
4141
"@babel/plugin-proposal-decorators": "^7.17.9",
4242
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
4343
"@emotion/react": "^11.1.5",
4444
"@emotion/styled": "^11.1.5",
4545
"@floating-ui/react-dom-interactions": "^0.13.3",
46+
"@tabler/icons-react": "^2.11.0",
4647
"@testing-library/jest-dom": "^4.2.4",
4748
"@testing-library/react": "^9.5.0",
4849
"@testing-library/user-event": "^7.2.1",
4950
"@types/jest": "^25.1.4",
5051
"@types/node": "^12.12.38",
5152
"@types/react": "^18.0.9",
5253
"@types/react-dom": "^18.0.3",
53-
"@types/react-icons": "^3.0.0",
5454
"@typescript-eslint/eslint-plugin": "^5.22.0",
5555
"@typescript-eslint/parser": "^5.22.0",
5656
"babel-eslint": "^10.0.3",
@@ -80,7 +80,6 @@
8080
"prettier": "^2.6.2",
8181
"react": "^17.0.1",
8282
"react-dom": "^17.0.1",
83-
"react-icons": "^4.8.0",
8483
"react-scripts": "^5.0.1",
8584
"typescript": "^4.6.4"
8685
}

src/components/Select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
useRole,
1818
useTypeahead
1919
} from '@floating-ui/react-dom-interactions'
20+
import { IconChevronDown } from '@tabler/icons-react'
2021
import { AnimatePresence, motion } from 'framer-motion'
2122
import { ellipsis } from 'polished'
2223
import React, {
@@ -28,7 +29,6 @@ import React, {
2829
useRef,
2930
useState
3031
} from 'react'
31-
import { IoChevronDown } from 'react-icons/io5'
3232
import { PP, PR } from '../types/PolymorphicElementProps'
3333
import { cssClickable, cssDisablable } from '../utils/styles'
3434
import { ListItem, ListItemProps } from './$List'
@@ -269,7 +269,7 @@ export const Select = React.forwardRef(
269269
>
270270
{selected ? render(selected) : null}
271271
<SelectInputAdornment>
272-
<IoChevronDown />
272+
<IconChevronDown />
273273
</SelectInputAdornment>
274274
</SelectDisplay>
275275
<FloatingPortal>

yarn.lock

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,19 @@
19871987
"@svgr/plugin-svgo" "^5.5.0"
19881988
loader-utils "^2.0.0"
19891989

1990+
"@tabler/icons-react@^2.11.0":
1991+
version "2.11.0"
1992+
resolved "https://registry.yarnpkg.com/@tabler/icons-react/-/icons-react-2.11.0.tgz#18d512830e4e9fabe425177fa968136efa7ea372"
1993+
integrity sha512-Mbie8IFLrtI0sGm802Bmierle0ixIi7FVczShoLjPZwRM0da1HcD588TF7oMuQ09zd241BY+L7M/f0Q6lquBng==
1994+
dependencies:
1995+
"@tabler/icons" "2.11.0"
1996+
prop-types "^15.7.2"
1997+
1998+
1999+
version "2.11.0"
2000+
resolved "https://registry.yarnpkg.com/@tabler/icons/-/icons-2.11.0.tgz#9767f2bb57a716ed71fdc5019ca534d5fddcc816"
2001+
integrity sha512-KPESQnvHoSpbAdgzDdrSmeZ9AE8fSU12fU3Cag79uXJCUkC8f741fcvPJPsFMDe0S96VSq3mMYF8JnA7a570uQ==
2002+
19902003
"@testing-library/dom@*":
19912004
version "8.13.0"
19922005
resolved "https://registry.npmjs.org/@testing-library/dom/-/dom-8.13.0.tgz"
@@ -2304,13 +2317,6 @@
23042317
dependencies:
23052318
"@types/react" "*"
23062319

2307-
"@types/react-icons@^3.0.0":
2308-
version "3.0.0"
2309-
resolved "https://registry.yarnpkg.com/@types/react-icons/-/react-icons-3.0.0.tgz#27ca2823a6add881d06a371bfff093afc1b9c829"
2310-
integrity sha512-Vefs6LkLqF61vfV7AiAqls+vpR94q67gunhMueDznG+msAkrYgRxl7gYjNem/kZ+as2l2mNChmF1jRZzzQQtMg==
2311-
dependencies:
2312-
react-icons "*"
2313-
23142320
"@types/react@*":
23152321
version "18.0.6"
23162322
resolved "https://registry.npmjs.org/@types/react/-/react-18.0.6.tgz"
@@ -8285,7 +8291,7 @@ prompts@^2.0.1, prompts@^2.4.2:
82858291
kleur "^3.0.3"
82868292
sisteransi "^1.0.5"
82878293

8288-
prop-types@^15.8.1:
8294+
prop-types@^15.7.2, prop-types@^15.8.1:
82898295
version "15.8.1"
82908296
resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz"
82918297
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
@@ -8427,11 +8433,6 @@ react-error-overlay@^6.0.11:
84278433
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz"
84288434
integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==
84298435

8430-
react-icons@*, react-icons@^4.8.0:
8431-
version "4.8.0"
8432-
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.8.0.tgz#621e900caa23b912f737e41be57f27f6b2bff445"
8433-
integrity sha512-N6+kOLcihDiAnj5Czu637waJqSnwlMNROzVZMhfX68V/9bu9qHaMIJC4UdozWoOk57gahFCNHwVvWzm0MTzRjg==
8434-
84358436
react-is@^16.12.0, react-is@^16.13.1, react-is@^16.7.0, react-is@^16.8.4:
84368437
version "16.13.1"
84378438
resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"

0 commit comments

Comments
 (0)