Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy v7.15.0 #10588

Merged
merged 256 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
5a1a8ac
feat(theme/Radio): add radio theme and story
TylerAPfledderer Mar 31, 2023
b4fab27
feat(theme/switch): add Switch theme and story
TylerAPfledderer Mar 31, 2023
3c6a8bc
feat(theme/Input): add theme and story
TylerAPfledderer Mar 31, 2023
150418c
feat(theme/dropdown): create component, theme, and stories
TylerAPfledderer Mar 31, 2023
724d617
chore(theme/Input): remove console log
TylerAPfledderer Apr 2, 2023
f0fb32e
refactor(Input): restructure component returns
TylerAPfledderer Apr 2, 2023
0c954de
refactor: update Input component implementations
TylerAPfledderer Apr 2, 2023
4328aa8
refactor: update Checkbox component implementation
TylerAPfledderer Apr 2, 2023
007092e
style(theme/Switch): remove track border
TylerAPfledderer Apr 2, 2023
d9d6154
refactor: update Switch component implimentation
TylerAPfledderer Apr 2, 2023
907fc96
revert(theme): remove Dropdown component and theme
TylerAPfledderer Apr 13, 2023
6c56945
feat(theme/Select): add custom styling and story
TylerAPfledderer Apr 13, 2023
2dbc09e
revert(deps): remove zag deps
TylerAPfledderer Apr 13, 2023
d28849a
chore(theme/component.utils): remove unused variable
TylerAPfledderer Apr 13, 2023
92b5ce7
Merge branch 'dev' into feat/new-form-component-themes
TylerAPfledderer Apr 14, 2023
2ffc5c6
style(theme/Select): define hover color for icon
TylerAPfledderer Apr 21, 2023
6051e08
feat(components/Select): build custom select component
TylerAPfledderer Apr 21, 2023
e7688d3
refactor: apply custom Select component
TylerAPfledderer Apr 21, 2023
2cb2b85
refactor: apply type assertions to the onChange payloads for the cust…
TylerAPfledderer Apr 21, 2023
c182c99
style(theme/Input): add transition props for Input side element
TylerAPfledderer Apr 27, 2023
02e11d6
style(theme/Input): apply group hover style
TylerAPfledderer Apr 27, 2023
63e68e0
refactor(Checkbox): remove custom component in favor of Chakra's defa…
TylerAPfledderer Apr 27, 2023
1b7642c
fix(Radio.stories): fix argTypes
TylerAPfledderer Apr 27, 2023
e6ff1be
Create index.md
qbzzt May 2, 2023
ead5a8a
Add files via upload
qbzzt May 2, 2023
9fed765
Update index.md
qbzzt May 2, 2023
d7d841a
Update index.md
qbzzt May 2, 2023
7faefd9
Update index.md
qbzzt May 2, 2023
39da7a2
Update index.md
qbzzt May 2, 2023
2f88d69
Update index.md
qbzzt May 2, 2023
058be9d
Minor wording changes
qbzzt May 3, 2023
50e38c7
Delete uniswap-scam.png
qbzzt May 3, 2023
f734123
Delete uniswap-real.png
qbzzt May 3, 2023
acda347
Smaller image size
qbzzt May 3, 2023
4da2097
refactor(theme/Input): update focus styling
TylerAPfledderer May 5, 2023
8cbbc2e
style(theme): apply base input theme to select
TylerAPfledderer May 5, 2023
fcd7f12
refactor(Radio): update story controls
TylerAPfledderer May 5, 2023
1739962
refactor(theme): add new spacing tokens for button, input and select …
TylerAPfledderer May 12, 2023
bf0eceb
style(theme/input): update icon sizes
TylerAPfledderer May 12, 2023
05c7471
style(theme/input): trim line height
TylerAPfledderer May 12, 2023
e8009f7
Merge branch 'dev' into pr/TylerAPfledderer/9856
pettinarip May 12, 2023
84044dd
fix after merge
pettinarip May 13, 2023
a75f451
Update index.md
qbzzt May 13, 2023
169b6d9
Update index.md
qbzzt May 15, 2023
177b457
Update index.md
qbzzt May 15, 2023
9b1a115
Update index.md
qbzzt May 15, 2023
8c05c3d
Update index.md
qbzzt May 20, 2023
66d83c8
Update index.md
qbzzt May 20, 2023
36a26c6
Formatting fix
qbzzt May 20, 2023
734fb34
Apply suggestions from code review
qbzzt May 25, 2023
7a5fe4c
Update src/content/guides/how-to-id-scam-tokens/index.md
qbzzt May 25, 2023
22272a9
Update index.md
qbzzt May 25, 2023
ea9c429
Update index.md
qbzzt May 25, 2023
66c5edd
Add files via upload
qbzzt May 25, 2023
bbde889
Update index.md
qbzzt May 25, 2023
7e32e02
remove hover color and make border color transparent to avoid flickering
pettinarip May 25, 2023
b0a2b83
add input disabled variant
pettinarip May 25, 2023
e86198c
Merge branch 'dev' into pr/TylerAPfledderer/9856
pettinarip May 25, 2023
2c2aaad
fixes related to new Select component after merge update
pettinarip May 25, 2023
6020d9f
Apply suggestions from code review
qbzzt May 31, 2023
5a1d5e3
Apply suggestions from code review
qbzzt May 31, 2023
78be594
Apply suggestions from code review
qbzzt May 31, 2023
ed92042
Update src/content/guides/how-to-id-scam-tokens/index.md
qbzzt May 31, 2023
d8f50b1
Update src/content/guides/how-to-id-scam-tokens/index.md
qbzzt May 31, 2023
be70f82
Update src/content/guides/how-to-id-scam-tokens/index.md
qbzzt May 31, 2023
0d0cbf2
Update src/content/guides/how-to-id-scam-tokens/index.md
qbzzt May 31, 2023
3c65b20
Update index.md
qbzzt May 31, 2023
e1e9f3b
Merge branch 'dev' into feat/new-form-component-themes
TylerAPfledderer Jun 7, 2023
ecb82f5
not apply hover styles on read-only inputs
pettinarip Jun 9, 2023
ca3cf54
Merge branch 'dev' into pr/TylerAPfledderer/9856
pettinarip Jun 9, 2023
a072d34
Fix math % multiplication error
koonopek Jun 13, 2023
bf644a0
API3DAO_ADDITION_ORACLE_140692
Jun 14, 2023
d9d9579
migrate ButtonDropdown component
pettinarip Jun 14, 2023
568f00f
Merge branch 'dev' into migrate-button-dropdown
pettinarip Jun 14, 2023
947fd5a
migrate StakingCommunityCallout component
pettinarip Jun 14, 2023
2e126c2
API3DAO_ADDITION_ORACLE_140692
Jun 14, 2023
e1b5ccb
Amend
Jun 14, 2023
ef052fc
Update index.md
0xAlexS Jun 15, 2023
00e1ae2
migrate What is eth page component
pettinarip Jun 15, 2023
e55fb16
migrate eth page
pettinarip Jun 15, 2023
53adfe4
Added EthCC 6 to community events
Shiva-Sai-ssb Jun 16, 2023
8e39e6f
feat: added 852dev.xyz into community-meetups.json
socathie Jun 16, 2023
32c5552
Merge remote-tracking branch 'origin/dev' into feat/new-form-componen…
TylerAPfledderer Jun 16, 2023
38c00b9
refactor(theme): update missing nested semantics for form components
TylerAPfledderer Jun 16, 2023
878a768
refactor(theme/components.utils): apply 'not-allowed' cursor event to…
TylerAPfledderer Jun 16, 2023
9c84f15
refactor(theme): update existing form component styles to the latest …
TylerAPfledderer Jun 16, 2023
2ae2757
feat(theme): add invalid styles to radio and checkbox
TylerAPfledderer Jun 16, 2023
cee7769
fix typo for consensus vs execution
seidenbergerscott Jun 16, 2023
a32ae68
feat: Add ETHKL to Community Events
socathie Jun 17, 2023
a4c2b55
Update index.md
Simon-Busch Jun 17, 2023
815a9b6
Update community-events.json
morotijani Jun 18, 2023
e8ed4c2
Update src/content/guides/how-to-id-scam-tokens/index.md
qbzzt Jun 18, 2023
a99d569
Update index.md
qbzzt Jun 18, 2023
bcb8b6d
Update index.md
qbzzt Jun 18, 2023
6342b4d
Update index.md
qbzzt Jun 18, 2023
d207876
Delete OriginEtherGlyphIcon.tsx
hanniabu Jun 19, 2023
d3356ed
remove OriginEtherGlyphIcon
hanniabu Jun 19, 2023
6fa78fe
remove Origin Ether
hanniabu Jun 19, 2023
c3f2c0a
display different hover colors for checked and unchecked states on th…
pettinarip Jun 19, 2023
ecc4356
chore: add audit to eth-docker
dionysuzx Jun 19, 2023
2b1ab5a
ETHLisbon Event
PolpEdu Jun 19, 2023
2b09fa4
Add PUSH0 opcode
ardislu Jun 20, 2023
13312a2
Update index.md
kt-wawro Jun 20, 2023
64e7585
Update Bulgarian (bg) Homepage and Essentials buckets
minimalsm Jun 20, 2023
7a30f42
Update Essentials, Exploring, Use Ethereum, Use Cases, Staking, Commu…
minimalsm Jun 20, 2023
13b5e21
Update Chinese Traditional (zh-tw) Essentials and Use Ethereum buckets
minimalsm Jun 20, 2023
8203c03
Update French (fr) Essentials, Use Ethereum, Community, Foundational …
minimalsm Jun 20, 2023
bb166aa
Update German (de) Essentials, Exploring, Use Ethereu, Use Cases, and…
minimalsm Jun 20, 2023
10dd40d
Update Portuguese-Brazilian (pt-br) Staking, Learn Pages, Community, …
minimalsm Jun 20, 2023
83777b5
Update Italian (it) Homepage, Essentials, and Use Ethereum buckets
minimalsm Jun 20, 2023
3cde00f
Update Japanese (ja) Use Ethereum bucket
minimalsm Jun 20, 2023
4215886
Fix invalid frontmatter
minimalsm Jun 20, 2023
e17cba3
Add check for valid frontmatter of Emoji component
minimalsm Jun 20, 2023
1a5b531
ui fixes from code review
pettinarip Jun 20, 2023
b753cab
use chakra components for paragraphs and headings
pettinarip Jun 20, 2023
d16ec00
correct VRF explanation
Jun 21, 2023
1aaa867
docs: add `viem` to javascript api libraries
insulineru Jun 21, 2023
27a45c7
Merge pull request #10516 from lourkeur/dev
jmcook1186 Jun 21, 2023
578764e
Fix build breaking syntax
minimalsm Jun 21, 2023
b1cfacc
Update Crowdin script to add SVGs
minimalsm Jun 21, 2023
684a519
Add translated PT-BR translations
minimalsm Jun 21, 2023
b76950e
add product disclaimer
wackerow Jun 21, 2023
c7e7f39
extract for intl
wackerow Jun 21, 2023
866cae8
Merge pull request #10463 from ethereum/migrate-staking-comm-callout
wackerow Jun 21, 2023
ed79f64
Update src/pages-conditional/what-is-ethereum.tsx
wackerow Jun 21, 2023
e82d1d1
Merge pull request #10468 from ethereum/migrate-what-is-eth-page
wackerow Jun 21, 2023
c065c78
add rainbow hardware wallet support
skylarbarrera Jun 21, 2023
4b329cd
direction responsive margins
wackerow Jun 21, 2023
9bb1315
Update src/pages-conditional/eth.tsx
pettinarip Jun 21, 2023
d02ed0b
Merge pull request #10470 from ethereum/migrate-eth-page
pettinarip Jun 22, 2023
e65c6f1
Update index.md
Shubham-Rasal Jun 22, 2023
c0ca1d3
Add Foundational docs images
minimalsm Jun 22, 2023
de62b32
Update index.md
Thegaram Jun 22, 2023
dae389f
Merge pull request #10524 from Thegaram/patch-1
jmcook1186 Jun 22, 2023
07445eb
Creating designer docs listing policy
konopkja Jun 22, 2023
5a29b11
Update index.md
konopkja Jun 22, 2023
1bd59c3
Update index.md
konopkja Jun 22, 2023
37383c3
Update index.md
konopkja Jun 22, 2023
65edd01
Update community-meetups.json
RostyslavBortman Jun 22, 2023
6f9a5c6
remove Menu theme and add the styles just for the ButtonDropdown
pettinarip Jun 22, 2023
890c909
Merge branch 'dev' into migrate-button-dropdown
pettinarip Jun 22, 2023
942b86c
update tokens
pettinarip Jun 22, 2023
af6b709
fix bg color on menu items
pettinarip Jun 22, 2023
7337256
Update index.md
Jun 22, 2023
3705153
fix discord invite link on translation program resources page
kshyun28 Jun 23, 2023
1f2fcdb
Update index.md
scrovy Jun 23, 2023
2b72757
Update index.md
konopkja Jun 23, 2023
1e209e5
revert react-select deprecation
pettinarip Jun 23, 2023
a75e2d5
migrate run a node page
pettinarip Jun 23, 2023
0a20383
migrate shared components
pettinarip Jun 23, 2023
0f1e220
replace all html tags with chakra tags
pettinarip Jun 23, 2023
44c5de7
use input theme styles
pettinarip Jun 23, 2023
0fdaa92
remove custom styles from old input implementations
pettinarip Jun 23, 2023
d1c454b
Merge branch 'dev' into pr/TylerAPfledderer/9856
pettinarip Jun 23, 2023
9c8dd05
Fix spelling in danksharding explanation
dhvogel Jun 25, 2023
369ad33
fix ethpool data
Buttaa Jun 26, 2023
cc03181
Merge pull request #10532 from scrovy/patch-1
jmcook1186 Jun 26, 2023
d48356f
Merge pull request #10502 from kt-wawro/patch-1
jmcook1186 Jun 26, 2023
646c3ac
Merge pull request #10545 from dhvogel/patch-1
jmcook1186 Jun 26, 2023
f0e94f2
Merge pull request #10529 from nixorokish/patch-3
jmcook1186 Jun 26, 2023
337b3b8
Merge pull request #10480 from seidenbergerscott/dev
jmcook1186 Jun 26, 2023
0138237
Merge pull request #10467 from KenCarvAPI/API3_request
jmcook1186 Jun 26, 2023
e59a6b5
Merge pull request #10466 from alexs0x01/patch-1
jmcook1186 Jun 26, 2023
a692456
Merge pull request #10519 from ethereum/endorsement-disclaimer
jmcook1186 Jun 26, 2023
a3770f7
remove redirect that is already generated automatically by the code
pettinarip Jun 26, 2023
a1ffa80
Merge pull request #9856 from TylerAPfledderer/feat/new-form-componen…
pettinarip Jun 26, 2023
4e75acc
migrate roadmap template
pettinarip Jun 26, 2023
28179bc
Merge pull request #10496 from hanniabu/remove-origin-ether-staking
corwintines Jun 26, 2023
f6a13cb
Merge pull request #10548 from ethereum/fix-quizzes-extra-redirect
corwintines Jun 26, 2023
0e90410
Update index.md
leoelz Jun 26, 2023
36940f1
Merge pull request #10521 from skylarbarrera/patch-1
corwintines Jun 26, 2023
ee23a20
Merge pull request #10482 from socathie/feat/add-ethkl
corwintines Jun 26, 2023
df7b843
Merge pull request #10527 from RostyslavBortman/patch-3
corwintines Jun 26, 2023
cb5534a
docs: correct `viem` description
insulineru Jun 26, 2023
b4a83fe
Merge pull request #10517 from insulineru/patch-1
jmcook1186 Jun 26, 2023
874e735
support colocated files
pettinarip Jun 26, 2023
eb0ee0b
add translated image example
pettinarip Jun 26, 2023
d409551
Update src/content/contributing/design/adding-design-resources/index.md
corwintines Jun 26, 2023
ebe0b41
add link to /contributing and fix markdown
corwintines Jun 26, 2023
af9c220
Merge pull request #10551 from ethereum/translatable-image-mdx-support
corwintines Jun 27, 2023
8e7ab6a
Merge branch 'dev' into migrate-roadmap-template
corwintines Jun 27, 2023
fbcb4d7
Update src/intl/ja/page-layer-2.json
corwintines Jun 27, 2023
7ab28d0
Merge pull request #10511 from ethereum/june20Japanese
corwintines Jun 27, 2023
842c9d4
Merge pull request #10512 from ethereum/fixInvalidEmoji
corwintines Jun 27, 2023
bb33a0f
Merge pull request #10547 from Buttaa/fixEthpoolEL
corwintines Jun 27, 2023
a72884a
Update src/content/contributing/translation-program/resources/index.md
corwintines Jun 27, 2023
e7db12f
Merge pull request #10531 from kshyun28/fix-discord-link
corwintines Jun 27, 2023
dd4ad88
Update Arabic (ar) Essentials and Use Cases buckets
minimalsm Jun 27, 2023
b99d4a0
Revert "add translated image example"
pettinarip Jun 27, 2023
becf750
Merge pull request #10555 from ethereum/revert-image-example
minimalsm Jun 27, 2023
302beb4
Update Azerbaijani (az) Homepage and Exploring buckets
minimalsm Jun 27, 2023
ceb9521
Update Chinese Traditional (zh-tw) Use cases bucket
minimalsm Jun 27, 2023
9833d68
Update Czech (cs) homepage bucket
minimalsm Jun 27, 2023
e483f71
Update Danish, Dutch, and Filipino (da, nl, fil) Homepage buckets
minimalsm Jun 27, 2023
a1c4f6a
Update Filipino in Crowdin import script
minimalsm Jun 27, 2023
cd4c44a
add blur effect on softare box section
pettinarip Jun 27, 2023
3b0465b
Merge pull request #10526 from ethereum/konopkja-design-listing-policy-1
corwintines Jun 27, 2023
6e1475f
Merge pull request #10510 from ethereum/june20Italian
corwintines Jun 27, 2023
b3e5704
Update src/content/translations/pt-br/developers/docs/nodes-and-clien…
corwintines Jun 27, 2023
0c50306
Update src/content/translations/pt-br/developers/docs/nodes-and-clien…
corwintines Jun 27, 2023
bbed30b
Update src/content/translations/pt-br/developers/docs/apis/javascript…
corwintines Jun 27, 2023
4870bf2
Update src/content/translations/pt-br/developers/docs/standards/token…
corwintines Jun 27, 2023
111b1eb
Update src/content/translations/pt-br/developers/docs/standards/token…
corwintines Jun 27, 2023
030b217
Update src/content/translations/pt-br/developers/docs/standards/token…
corwintines Jun 27, 2023
1573521
Update src/content/translations/pt-br/developers/docs/standards/token…
corwintines Jun 27, 2023
edf8f8c
Update src/content/translations/pt-br/developers/docs/standards/token…
corwintines Jun 27, 2023
ac2c7bf
Update Italian (it) buckets 3,6,8,9,10,14,15,23
minimalsm Jun 27, 2023
38c056a
Merge pull request #10498 from d1onys1us/add-audit
corwintines Jun 27, 2023
3feb907
Merge pull request #10503 from ethereum/june20Bulgarian
corwintines Jun 27, 2023
5727333
Merge pull request #10500 from PolpEdu/addedETHLisbon
corwintines Jun 27, 2023
150360c
Merge pull request #10504 from ethereum/june20ChineseSimp
corwintines Jun 27, 2023
fbaeb3c
Merge pull request #10505 from ethereum/june20ChineseTrad
corwintines Jun 27, 2023
1b9813e
Merge pull request #10506 from ethereum/june20French
corwintines Jun 27, 2023
fe043d3
Merge pull request #10507 from ethereum/june20German
corwintines Jun 27, 2023
4733645
Merge pull request #10508 from morotijani/patch-3
corwintines Jun 27, 2023
a257df1
Merge pull request #10483 from Simon-Busch/patch-3
corwintines Jun 27, 2023
0108d02
Merge pull request #10501 from ardislu/add-push0
corwintines Jun 27, 2023
9deda0c
Merge pull request #10474 from socathie/feat/add-hongkong-meetup
corwintines Jun 27, 2023
69ce88b
Update src/data/community-events.json
corwintines Jun 27, 2023
d698352
Merge branch 'dev' into event
corwintines Jun 27, 2023
7a97997
Merge pull request #10471 from Shiva-Sai-ssb/event
corwintines Jun 27, 2023
da17ae9
Merge pull request #10458 from koonopek/patch-1
corwintines Jun 27, 2023
f4e7725
Merge pull request #10556 from ethereum/june27Azerbaijani
corwintines Jun 27, 2023
ffe882f
Merge pull request #10557 from ethereum/june27ChineseTrad
corwintines Jun 27, 2023
1eb8fff
Merge pull request #10558 from ethereum/updateHomepages
corwintines Jun 27, 2023
31533d7
Update buckets 7, 12, 13, 22
minimalsm Jun 27, 2023
aa0701b
style unordered lists
pettinarip Jun 27, 2023
7ae1493
Merge pull request #10549 from ethereum/migrate-roadmap-template
pettinarip Jun 27, 2023
a85c1ef
fix link
corwintines Jun 27, 2023
2a19bfe
Merge branch 'dev' into migrate-button-dropdown
pettinarip Jun 27, 2023
10a35b2
Apply suggestions from code review
qbzzt Jun 27, 2023
a2b6ca7
Merge pull request #10462 from ethereum/migrate-button-dropdown
pettinarip Jun 27, 2023
2cc6b81
Merge pull request #10534 from ethereum/migrate-run-a-node-page
pettinarip Jun 27, 2023
206ef71
Update src/content/translations/it/developers/docs/nodes-and-clients/…
corwintines Jun 27, 2023
089ca4d
Merge pull request #10560 from ethereum/june27Italian
corwintines Jun 27, 2023
fd3d694
Merge pull request #10554 from ethereum/june27Arabic
corwintines Jun 27, 2023
5ac3fe3
Merge pull request #10509 from ethereum/june20PTBR
corwintines Jun 27, 2023
4090f67
remove unused old components
pettinarip Jun 27, 2023
0889a62
remove styled dep from the staking considerations component
pettinarip Jun 27, 2023
442b96a
Merge pull request #10550 from leoelz/patch-1
corwintines Jun 27, 2023
5c8074a
add link on /security page
corwintines Jun 28, 2023
8d1621c
Merge pull request #10115 from qbzzt/230502-scam-tokens
corwintines Jun 28, 2023
ec05931
Merge pull request #10565 from ethereum/refactor-staking-considerations
corwintines Jun 28, 2023
7cb4932
Merge pull request #10564 from ethereum/remove-unused-components
corwintines Jun 28, 2023
77704bc
cleanup
corwintines Jun 28, 2023
a70f126
Merge pull request #10523 from Shubham-Rasal/patch-1
corwintines Jun 28, 2023
21a466b
v7.15.0
corwintines Jun 28, 2023
7ce31b2
Merge pull request #10566 from ethereum/v7-15-0
corwintines Jun 28, 2023
c271027
Merge branch 'staging' into dev
corwintines Jun 28, 2023
5e008a0
Merge pull request #10567 from ethereum/dev
corwintines Jun 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ window.___navigate = (pathname) => {

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
backgrounds: {
disable: true,
},
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-org-website",
"version": "7.14.2",
"version": "7.15.0",
"description": "Website of ethereum.org",
"main": "index.js",
"repository": "git@github.com:ethereum/ethereum-org-website.git",
Expand Down
6 changes: 5 additions & 1 deletion plugins/gatsby-remark-fix-static-urls/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const fs = require("fs")
const path = require("path")
const visitWithParents = require("unist-util-visit-parents")
const isRelativeUrl = require("is-relative-url")
Expand Down Expand Up @@ -39,7 +40,10 @@ module.exports = ({ markdownNode, markdownAST }) => {
return
}

node.url = path.join(relativePath, node.url)
// only modify the paths for those files doesn't exist in the current folder
if (!fs.existsSync(path.join(fileAbsoluteDir, node.url))) {
node.url = path.join(relativePath, node.url)
}
}
})

Expand Down
4 changes: 0 additions & 4 deletions redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@
"fromPath": "/upgrades",
"toPath": "/en/roadmap"
},
{
"fromPath": "/quizzes",
"toPath": "/en/quizzes/"
},
{
"fromPath": "/*/upgrades",
"toPath": "/:splat/roadmap"
Expand Down
2 changes: 1 addition & 1 deletion src/@chakra-ui/gatsby-plugin/components/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const Button = defineStyleConfig({
baseStyle,
sizes: defineMergeStyles(defaultSizes, {
md: {
h: "42px",
h: 10.5,
},
}),
variants: {
Expand Down
87 changes: 31 additions & 56 deletions src/@chakra-ui/gatsby-plugin/components/Checkbox.ts
Original file line number Diff line number Diff line change
@@ -1,70 +1,45 @@
import { createMultiStyleConfigHelpers, defineStyle } from "@chakra-ui/react"
import { checkboxAnatomy } from "@chakra-ui/anatomy"
import { checkboxDefaultTheme, defineMergeStyles } from "./components.utils"
import {
checkboxDefaultTheme,
commonInputTriggerStyles,
defineMergeStyles,
} from "./components.utils"

const { baseStyle: defaultBaseStyle } = checkboxDefaultTheme
const { sizes: defaultSizes } = checkboxDefaultTheme

const { definePartsStyle, defineMultiStyleConfig } =
createMultiStyleConfigHelpers(checkboxAnatomy.keys)

const baseStyleControl = defineStyle((props) =>
defineMergeStyles(defaultBaseStyle?.(props).control, {
bg: "background.base",
_checked: {
bg: "primary400",
_hover: {
bg: "primary400",
borderColor: "primary600",
},
borderColor: "black50",
},
border: "1px",
borderColor: "black50",
borderRadius: "3px",
transition: "all 150ms",
_focusVisible: {
boxShadow: "none",
},
_hover: {
boxShadow: "tableItemBoxShadow",
border: "1px",
borderStyle: "solid",
borderColor: "primary600",
transition: "transform 0.1s",
transform: "scale(1.02)",
},
})
const { commonContainerProps, commonControlProps, commonLabelProps } =
commonInputTriggerStyles

const checkboxMdSize = defaultSizes?.md

const baseStyleControl = defineMergeStyles(
checkboxMdSize?.control,
commonControlProps,
{
boxSize: "var(--checkbox-size)", // Comes from default theme
borderRadius: "sm",
}
)

const sizes = {
md: defineStyle({
control: {
h: "1.5rem",
w: "1.5rem",
},
icon: {
fontSize: "md",
},
}),
}
const baseStyleLabel = defineStyle({ ...commonLabelProps })

const baseStyleContainer = defineStyle({ ...commonContainerProps })

const baseStyleIcon = defineStyle({
boxSize: 2,
})

const variantAlignTop = definePartsStyle({
control: {
mt: "0.25rem",
},
const baseStyle = definePartsStyle({
container: baseStyleContainer,
control: baseStyleControl,
label: baseStyleLabel,
icon: baseStyleIcon,
})

export const Checkbox = defineMultiStyleConfig({
baseStyle: definePartsStyle((props) => ({
...defaultBaseStyle?.(props),
control: baseStyleControl(props),
})),
sizes,
variants: {
// TODO: remove this variant
alignTop: variantAlignTop,
},
defaultProps: {
size: "md",
},
baseStyle,
})
117 changes: 117 additions & 0 deletions src/@chakra-ui/gatsby-plugin/components/Input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import { inputAnatomy } from "@chakra-ui/anatomy"
import {
createMultiStyleConfigHelpers,
defineStyle,
} from "@chakra-ui/styled-system"
import { defineMergeStyles, inputDefaultTheme } from "./components.utils"

const { defineMultiStyleConfig, definePartsStyle } =
createMultiStyleConfigHelpers(inputAnatomy.keys)

const baseStyle = definePartsStyle((props) => {
const {
focusBorderColor: fc = "primaryHover",
errorBorderColor: ec = "errorOutline",
} = props

return defineMergeStyles(
inputDefaultTheme.baseStyle,
inputDefaultTheme.variants?.outline(props),
{
field: {
borderColor: "currentColor",
borderRadius: "base",
outline: "3px solid transparent",
lineHeight: 1,
_placeholder: {
color: "disabled",
opacity: 1,
},
_focusVisible: {
outlineColor: fc,
outlineOffset: "-1px",
borderColor: "transparent",
boxShadow: "none",
},
_hover: null, // override default
_groupHover: {
borderColor: "primary.hover",
},
_invalid: {
borderColor: ec,
boxShadow: "none",
},
_disabled: {
borderColor: "disabled",
opacity: 1,
},
"&:not(:disabled)": {
_active: {
bg: "background.highlight",
borderColor: "primary.highContrast",
},
},
},
element: {
fontSize: "2xl",
transitionProperty: "common",
transitionDuration: "normal",
_groupHover: {
color: "primary.hover",
},
_peerFocusVisible: {
color: fc,
_peerInvalid: {
color: ec,
},
_peerDisabled: {
color: "disabled",
},
},
_peerDisabled: {
color: "disabled",
},
"[data-peer]:not(:disabled):active ~ &": {
color: "primary.dark",
_dark: {
color: "primary.highContrast",
},
},
},
}
)
})

const size = {
md: defineStyle({
h: 10.5,
px: 2,
}),
sm: defineStyle({
h: 8,
px: 1,
}),
}

const sizes = {
md: definePartsStyle({
field: size.md,
element: size.md,
}),
sm: definePartsStyle({
field: { ...size.sm, fontSize: "sm" },
element: {
...size.sm,
fontSize: "xl",
},
}),
}

export const Input = defineMultiStyleConfig({
baseStyle,
sizes,
defaultProps: {
variant: "outline",
size: "md",
},
})
51 changes: 51 additions & 0 deletions src/@chakra-ui/gatsby-plugin/components/Radio.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {
createMultiStyleConfigHelpers,
cssVar,
defineStyle,
} from "@chakra-ui/react"
import { radioAnatomy } from "@chakra-ui/anatomy"
import {
commonInputTriggerStyles,
defineMergeStyles,
radioDefaultTheme,
} from "./components.utils"

const { defineMultiStyleConfig, definePartsStyle } =
createMultiStyleConfigHelpers(radioAnatomy.keys)

export const $radioDisableColor = cssVar("radio-disable-color")

const { commonContainerProps, commonControlProps, commonLabelProps } =
commonInputTriggerStyles

const baseStyleContainer = defineStyle({ ...commonContainerProps })

const baseStyleControl = defineMergeStyles(
radioDefaultTheme.baseStyle?.({} as never).control,
commonControlProps,
{
boxSize: 4,
fontSize: "md",
"*:hover > &": {
outlineOffset: "-1px",
},
_checked: {
_before: {
// Force half the size, as '50%' value not reliable.
boxSize: 2,
},
},
}
)

const baseStyleLabel = defineStyle({ ...commonLabelProps })

const baseStyle = definePartsStyle({
container: baseStyleContainer,
control: baseStyleControl,
label: baseStyleLabel,
})

export const Radio = defineMultiStyleConfig({
baseStyle,
})
Loading