Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0584324
refactor(ThemeProvider): remove Chakra provider and remove useColorMo…
TylerAPfledderer Feb 17, 2025
063327c
chore(.storybook): remove anything connected to chakra
TylerAPfledderer Feb 17, 2025
e20c882
chore: remove remaining comments related to Chakra
TylerAPfledderer Feb 17, 2025
1be091c
chore(.eslint): remove Chakra theme directory from source order
TylerAPfledderer Feb 17, 2025
5316145
chore(@chakra-ui): remove entire theme directory
TylerAPfledderer Feb 17, 2025
a54713a
chore: remove ancient theme config
TylerAPfledderer Feb 17, 2025
294ccde
chore(chromatic.yml): remove chakra theme glob path for Github workflow
TylerAPfledderer Feb 17, 2025
1c3b553
chore: remove type definition override for emotion
TylerAPfledderer Feb 17, 2025
ab97b2f
chore(tsconfig): remove tailwind directory glob path
TylerAPfledderer Feb 17, 2025
35e5beb
chore(.storybook): remove unneeded `types` file
TylerAPfledderer Feb 17, 2025
a0c3e92
build(package.json): uninstall Chakra deps
TylerAPfledderer Feb 17, 2025
75dfd1d
fix: revert and update `useLocaleDirection` usage
TylerAPfledderer Feb 17, 2025
075c8cb
Merge remote-tracking branch 'upstream/dev' into refactor/remove-chak…
TylerAPfledderer Feb 18, 2025
636de38
chore(package.json): remove `postinstall` script
TylerAPfledderer Feb 18, 2025
b03dac6
refactor(tailwind.config): update dark mode strategy to use the class…
TylerAPfledderer Feb 18, 2025
04a89bb
chore(tailwind): remove important flag from body styles
TylerAPfledderer Feb 18, 2025
a707d85
fix(tailwind): explicitly define leading for body element
TylerAPfledderer Feb 18, 2025
abc0897
fix(EthTokenIcon): replace fill values with class utilities
TylerAPfledderer Feb 18, 2025
c9666c5
Apply suggestions from code review
pettinarip Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
// Packages. `react` related packages come first.
// Also, put `react-icons` in sorting order not with `react`
["^react(?!-.)$", "^\\w", "^@\\w"],
// The Chakra theme directory if imported to story file or other places
["^@/@chakra-ui"],
// From the `types` directory.
["^@/lib/types", "^@/lib/interfaces"],
// From the `components` directory.
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- "src/components/**/*"
- "src/pages/**/*"
- "src/layouts/**/*"
- "src/@chakra-ui/**/*"
- ".storybook/**/*"
- "tailwind.config.ts"
- "src/styles/**/*"
Expand Down
64 changes: 0 additions & 64 deletions .storybook/ChakraDecorator.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
import { propNames } from "@chakra-ui/react"
import type { StorybookConfig } from "@storybook/nextjs"

/**
Expand Down Expand Up @@ -41,11 +40,6 @@ const config: StorybookConfig = {
docs: {
autodocs: "tag",
},
refs: {
"@chakra-ui/react": {
disable: true,
},
},
webpackFinal: async (config) => {
config.module = config.module || {}
config.module.rules = config.module.rules || []
Expand Down Expand Up @@ -79,23 +73,6 @@ const config: StorybookConfig = {
typescript: {
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
/**
* For handling bloated controls table of Chakra Props
*
* https://github.com/chakra-ui/chakra-ui/issues/2009#issuecomment-852793946
*/
propFilter: (prop) => {
const excludedPropNames = propNames.concat([
"as",
"apply",
"sx",
"__css",
])
const isStyledSystemProp = excludedPropNames.includes(prop.name)
const isHTMLElementProp =
prop.parent?.fileName.includes("node_modules") ?? false
return !(isStyledSystemProp || isHTMLElementProp)
},
},

reactDocgen: "react-docgen-typescript",
Expand Down
83 changes: 0 additions & 83 deletions .storybook/types.ts

This file was deleted.

9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"private": true,
"scripts": {
"dev": "next dev",
"postinstall": "yarn theme",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
Expand All @@ -23,16 +22,11 @@
"markdown-checker": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/markdownChecker.ts",
"events-import": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/events-import.ts",
"crowdin-needs-review": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/crowdin/reports/generateReviewReport.ts",
"theme": "chakra-cli tokens ./src/@chakra-ui/theme.ts",
"theme:watch": "chakra-cli tokens ./src/@chakra-ui/theme.ts --watch",
"prepare": "husky"
},
"dependencies": {
"@chakra-ui/react": "^2.8.0",
"@crowdin/crowdin-api-client": "^1.25.0",
"@docsearch/react": "^3.5.2",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@hookform/resolvers": "^3.8.0",
"@next/bundle-analyzer": "^14.2.5",
"@radix-ui/react-accordion": "^1.2.0",
Expand Down Expand Up @@ -96,7 +90,6 @@
"yaml-loader": "^0.8.0"
},
"devDependencies": {
"@chakra-ui/cli": "^2.4.1",
"@chromatic-com/storybook": "1.5.0",
"@netlify/plugin-nextjs": "^5.8.0",
"@storybook/addon-essentials": "8.1.10",
Expand Down Expand Up @@ -150,4 +143,4 @@
"jackspeak": "2.1.1",
"sharp": "0.32.6"
}
}
}
46 changes: 0 additions & 46 deletions src/@chakra-ui/components/Accordion.ts

This file was deleted.

94 changes: 0 additions & 94 deletions src/@chakra-ui/components/Avatar.ts

This file was deleted.

Loading