diff --git a/beta/.eslintrc b/beta/.eslintrc index 9df06b09f..5c336583f 100644 --- a/beta/.eslintrc +++ b/beta/.eslintrc @@ -1,10 +1,13 @@ { "root": true, - "extends": "next", + "extends": "next/core-web-vitals", + "rules": { + "no-unused-vars": "warn" + }, "env": { "node": true, "commonjs": true, "browser": true, "es6": true } -} \ No newline at end of file +} diff --git a/beta/package.json b/beta/package.json index 84bfad19e..59857cf57 100644 --- a/beta/package.json +++ b/beta/package.json @@ -22,7 +22,7 @@ "check-all": "npm-run-all prettier lint:fix tsc" }, "dependencies": { - "@codesandbox/sandpack-react": "0.13.16-experimental.0", + "@codesandbox/sandpack-react": "v0.14.3-experimental.1", "@docsearch/css": "3.0.0-alpha.41", "@docsearch/react": "3.0.0-alpha.41", "@headlessui/react": "^1.3.0", @@ -53,7 +53,7 @@ "@typescript-eslint/eslint-plugin": "2.x", "@typescript-eslint/parser": "2.x", "asyncro": "^3.0.0", - "autoprefixer": "^10.3.1", + "autoprefixer": "^10.4.2", "babel-eslint": "10.x", "eslint": "7.x", "eslint-config-next": "12.0.3", @@ -72,7 +72,7 @@ "mdast-util-to-string": "^1.1.0", "npm-run-all": "^4.1.5", "patch-package": "^6.2.2", - "postcss": "^8.3.6", + "postcss": "^8.4.5", "postcss-flexbugs-fixes": "4.2.1", "postcss-preset-env": "^6.7.0", "prettier": "^2.5.1", @@ -86,7 +86,7 @@ "retext": "^7.0.1", "retext-smartypants": "^4.0.0", "rss": "^1.2.2", - "tailwindcss": "^2.2.7", + "tailwindcss": "^3.0.22", "typescript": "^4.0.2", "unist-util-visit": "^2.0.3", "webpack-bundle-analyzer": "^4.5.0" diff --git a/beta/public/html/single-file-example.html b/beta/public/html/single-file-example.html index ca9f66a6b..380a169f5 100644 --- a/beta/public/html/single-file-example.html +++ b/beta/public/html/single-file-example.html @@ -3,9 +3,9 @@ Hello World - - - + + + diff --git a/beta/public/images/docs/diagrams/passing_data_context_close.dark.svg b/beta/public/images/docs/diagrams/passing_data_context_close.dark.svg new file mode 100644 index 000000000..78432ad25 --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_context_close.dark.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_context_close.svg b/beta/public/images/docs/diagrams/passing_data_context_close.svg new file mode 100644 index 000000000..c9af9b5bd --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_context_close.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_context_far.dark.svg b/beta/public/images/docs/diagrams/passing_data_context_far.dark.svg new file mode 100644 index 000000000..205d4574f --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_context_far.dark.svg @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_context_far.svg b/beta/public/images/docs/diagrams/passing_data_context_far.svg new file mode 100644 index 000000000..cd5af3841 --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_context_far.svg @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_lifting_state.dark.svg b/beta/public/images/docs/diagrams/passing_data_lifting_state.dark.svg new file mode 100644 index 000000000..7b8a17015 --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_lifting_state.dark.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_lifting_state.svg b/beta/public/images/docs/diagrams/passing_data_lifting_state.svg new file mode 100644 index 000000000..b424b42d6 --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_lifting_state.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_prop_drilling.dark.svg b/beta/public/images/docs/diagrams/passing_data_prop_drilling.dark.svg new file mode 100644 index 000000000..86958f254 --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_prop_drilling.dark.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/passing_data_prop_drilling.svg b/beta/public/images/docs/diagrams/passing_data_prop_drilling.svg new file mode 100644 index 000000000..1aedf7c85 --- /dev/null +++ b/beta/public/images/docs/diagrams/passing_data_prop_drilling.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_add_component.dark.svg b/beta/public/images/docs/diagrams/preserving_state_add_component.dark.svg new file mode 100644 index 000000000..adaa981bd --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_add_component.dark.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_add_component.svg b/beta/public/images/docs/diagrams/preserving_state_add_component.svg new file mode 100644 index 000000000..48a56f371 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_add_component.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_position_p1.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_position_p1.dark.svg new file mode 100644 index 000000000..5d2fd114c --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_position_p1.dark.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_position_p1.svg b/beta/public/images/docs/diagrams/preserving_state_diff_position_p1.svg new file mode 100644 index 000000000..17bcc9f24 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_position_p1.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_position_p2.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_position_p2.dark.svg new file mode 100644 index 000000000..582739f04 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_position_p2.dark.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_position_p2.svg b/beta/public/images/docs/diagrams/preserving_state_diff_position_p2.svg new file mode 100644 index 000000000..2348598b3 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_position_p2.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_position_p3.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_position_p3.dark.svg new file mode 100644 index 000000000..355e8dedf --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_position_p3.dark.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_position_p3.svg b/beta/public/images/docs/diagrams/preserving_state_diff_position_p3.svg new file mode 100644 index 000000000..d7bb3c284 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_position_p3.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_pt1.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_pt1.dark.svg new file mode 100644 index 000000000..2cfc2d66d --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_pt1.dark.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_pt1.svg b/beta/public/images/docs/diagrams/preserving_state_diff_pt1.svg new file mode 100644 index 000000000..a0258e85c --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_pt1.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_pt2.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_pt2.dark.svg new file mode 100644 index 000000000..0d64ce977 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_pt2.dark.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_pt2.svg b/beta/public/images/docs/diagrams/preserving_state_diff_pt2.svg new file mode 100644 index 000000000..2f7936b82 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_pt2.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_same_pt1.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt1.dark.svg new file mode 100644 index 000000000..76d0b65ac --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt1.dark.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_same_pt1.svg b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt1.svg new file mode 100644 index 000000000..883dd43b1 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt1.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_same_pt2.dark.svg b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt2.dark.svg new file mode 100644 index 000000000..91bb862e0 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt2.dark.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_diff_same_pt2.svg b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt2.svg new file mode 100644 index 000000000..800551d83 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_diff_same_pt2.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_dom_tree.dark.svg b/beta/public/images/docs/diagrams/preserving_state_dom_tree.dark.svg new file mode 100644 index 000000000..5b9020c5f --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_dom_tree.dark.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_dom_tree.svg b/beta/public/images/docs/diagrams/preserving_state_dom_tree.svg new file mode 100644 index 000000000..836000fa6 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_dom_tree.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_increment.dark.svg b/beta/public/images/docs/diagrams/preserving_state_increment.dark.svg new file mode 100644 index 000000000..505afc6e3 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_increment.dark.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_increment.svg b/beta/public/images/docs/diagrams/preserving_state_increment.svg new file mode 100644 index 000000000..b85f2f70d --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_increment.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_remove_component.dark.svg b/beta/public/images/docs/diagrams/preserving_state_remove_component.dark.svg new file mode 100644 index 000000000..281da2e14 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_remove_component.dark.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_remove_component.svg b/beta/public/images/docs/diagrams/preserving_state_remove_component.svg new file mode 100644 index 000000000..d0c6057bc --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_remove_component.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_same_component.dark.svg b/beta/public/images/docs/diagrams/preserving_state_same_component.dark.svg new file mode 100644 index 000000000..beded1bec --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_same_component.dark.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_same_component.svg b/beta/public/images/docs/diagrams/preserving_state_same_component.svg new file mode 100644 index 000000000..f638f2302 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_same_component.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_tree.dark.svg b/beta/public/images/docs/diagrams/preserving_state_tree.dark.svg new file mode 100644 index 000000000..8f856013e --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_tree.dark.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/preserving_state_tree.svg b/beta/public/images/docs/diagrams/preserving_state_tree.svg new file mode 100644 index 000000000..7a404ded2 --- /dev/null +++ b/beta/public/images/docs/diagrams/preserving_state_tree.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/responding_to_input_flow.dark.svg b/beta/public/images/docs/diagrams/responding_to_input_flow.dark.svg new file mode 100644 index 000000000..7b0a26456 --- /dev/null +++ b/beta/public/images/docs/diagrams/responding_to_input_flow.dark.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/responding_to_input_flow.svg b/beta/public/images/docs/diagrams/responding_to_input_flow.svg new file mode 100644 index 000000000..a353950e6 --- /dev/null +++ b/beta/public/images/docs/diagrams/responding_to_input_flow.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_child.dark.svg b/beta/public/images/docs/diagrams/sharing_data_child.dark.svg new file mode 100644 index 000000000..c743da735 --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_child.dark.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_child.svg b/beta/public/images/docs/diagrams/sharing_data_child.svg new file mode 100644 index 000000000..961cbae9d --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_child.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_child_clicked.dark.svg b/beta/public/images/docs/diagrams/sharing_data_child_clicked.dark.svg new file mode 100644 index 000000000..ad15105f3 --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_child_clicked.dark.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_child_clicked.svg b/beta/public/images/docs/diagrams/sharing_data_child_clicked.svg new file mode 100644 index 000000000..28f8fcc7e --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_child_clicked.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_parent.dark.svg b/beta/public/images/docs/diagrams/sharing_data_parent.dark.svg new file mode 100644 index 000000000..866ac760a --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_parent.dark.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_parent.svg b/beta/public/images/docs/diagrams/sharing_data_parent.svg new file mode 100644 index 000000000..580de7992 --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_parent.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_parent_clicked.dark.svg b/beta/public/images/docs/diagrams/sharing_data_parent_clicked.dark.svg new file mode 100644 index 000000000..52adaa14d --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_parent_clicked.dark.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/sharing_data_parent_clicked.svg b/beta/public/images/docs/diagrams/sharing_data_parent_clicked.svg new file mode 100644 index 000000000..804f6c140 --- /dev/null +++ b/beta/public/images/docs/diagrams/sharing_data_parent_clicked.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_form.dark.svg b/beta/public/images/docs/diagrams/writing_jsx_form.dark.svg new file mode 100644 index 000000000..339a840e9 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_form.dark.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_form.svg b/beta/public/images/docs/diagrams/writing_jsx_form.svg new file mode 100644 index 000000000..f0aaea4c6 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_form.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_html.dark.svg b/beta/public/images/docs/diagrams/writing_jsx_html.dark.svg new file mode 100644 index 000000000..f5d9426b4 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_html.dark.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_html.svg b/beta/public/images/docs/diagrams/writing_jsx_html.svg new file mode 100644 index 000000000..cbb8d68c2 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_html.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_js.dark.svg b/beta/public/images/docs/diagrams/writing_jsx_js.dark.svg new file mode 100644 index 000000000..05d1945e2 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_js.dark.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_js.svg b/beta/public/images/docs/diagrams/writing_jsx_js.svg new file mode 100644 index 000000000..92c8016a0 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_js.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_sidebar.dark.svg b/beta/public/images/docs/diagrams/writing_jsx_sidebar.dark.svg new file mode 100644 index 000000000..1c80ade59 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_sidebar.dark.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/diagrams/writing_jsx_sidebar.svg b/beta/public/images/docs/diagrams/writing_jsx_sidebar.svg new file mode 100644 index 000000000..328ebe134 --- /dev/null +++ b/beta/public/images/docs/diagrams/writing_jsx_sidebar.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/beta/public/images/docs/illustrations/i_keys-in-trees.png b/beta/public/images/docs/illustrations/i_keys-in-trees.png deleted file mode 100644 index 55d864f9e..000000000 Binary files a/beta/public/images/docs/illustrations/i_keys-in-trees.png and /dev/null differ diff --git a/beta/public/images/docs/illustrations/i_react-is-blind-to-ui-swap.png b/beta/public/images/docs/illustrations/i_react-is-blind-to-ui-swap.png deleted file mode 100644 index d20511be9..000000000 Binary files a/beta/public/images/docs/illustrations/i_react-is-blind-to-ui-swap.png and /dev/null differ diff --git a/beta/public/images/docs/sketches/s_flow-chart.jpg b/beta/public/images/docs/sketches/s_flow-chart.jpg deleted file mode 100644 index 1e5d94bd3..000000000 Binary files a/beta/public/images/docs/sketches/s_flow-chart.jpg and /dev/null differ diff --git a/beta/public/images/docs/sketches/s_jsx-to-tree.png b/beta/public/images/docs/sketches/s_jsx-to-tree.png deleted file mode 100644 index 0b7f845e2..000000000 Binary files a/beta/public/images/docs/sketches/s_jsx-to-tree.png and /dev/null differ diff --git a/beta/public/images/docs/sketches/s_react-dom-tree.png b/beta/public/images/docs/sketches/s_react-dom-tree.png deleted file mode 100644 index b33bf0e44..000000000 Binary files a/beta/public/images/docs/sketches/s_react-dom-tree.png and /dev/null differ diff --git a/beta/public/images/docs/sketches/s_remove-ui.png b/beta/public/images/docs/sketches/s_remove-ui.png deleted file mode 100644 index d2307cf2f..000000000 Binary files a/beta/public/images/docs/sketches/s_remove-ui.png and /dev/null differ diff --git a/beta/public/images/docs/sketches/s_ui-swap.png b/beta/public/images/docs/sketches/s_ui-swap.png deleted file mode 100644 index ce96d7e01..000000000 Binary files a/beta/public/images/docs/sketches/s_ui-swap.png and /dev/null differ diff --git a/beta/public/images/team/huxpro.jpg b/beta/public/images/team/huxpro.jpg new file mode 100644 index 000000000..f9a94452e Binary files /dev/null and b/beta/public/images/team/huxpro.jpg differ diff --git a/beta/src/components/Icon/IconArrow.tsx b/beta/src/components/Icon/IconArrow.tsx index 6c93c7758..942f8a2db 100644 --- a/beta/src/components/Icon/IconArrow.tsx +++ b/beta/src/components/Icon/IconArrow.tsx @@ -19,7 +19,7 @@ export const IconArrow = React.memo< fill="currentColor" {...rest} className={cn(className, { - 'transform rotate-180': displayDirection === 'right', + 'rotate-180': displayDirection === 'right', })}> diff --git a/beta/src/components/Icon/IconArrowSmall.tsx b/beta/src/components/Icon/IconArrowSmall.tsx index e415b9fac..ed838882e 100644 --- a/beta/src/components/Icon/IconArrowSmall.tsx +++ b/beta/src/components/Icon/IconArrowSmall.tsx @@ -11,8 +11,8 @@ export const IconArrowSmall = React.memo< } >(function IconArrowSmall({displayDirection, className, ...rest}) { const classes = cn(className, { - 'transform rotate-180': displayDirection === 'left', - 'transform rotate-90': displayDirection === 'down', + 'rotate-180': displayDirection === 'left', + 'rotate-90': displayDirection === 'down', }); return ( (function IconChevron({className, displayDirection, ...rest}) { +>(function IconChevron({className, displayDirection}) { const classes = cn( { - 'transform rotate-0': displayDirection === 'down', - 'transform rotate-90': displayDirection === 'left', - 'transform rotate-180': displayDirection === 'up', - 'transform -rotate-90': displayDirection === 'right', + 'rotate-0': displayDirection === 'down', + 'rotate-90': displayDirection === 'left', + 'rotate-180': displayDirection === 'up', + '-rotate-90': displayDirection === 'right', }, className ); diff --git a/beta/src/components/Icon/IconNavArrow.tsx b/beta/src/components/Icon/IconNavArrow.tsx index e153f48b4..4531b3c0f 100644 --- a/beta/src/components/Icon/IconNavArrow.tsx +++ b/beta/src/components/Icon/IconNavArrow.tsx @@ -9,13 +9,13 @@ export const IconNavArrow = React.memo< JSX.IntrinsicElements['svg'] & { displayDirection: 'right' | 'down' | 'left'; } ->(function IconNavArrow({displayDirection = 'right', className, ...rest}) { +>(function IconNavArrow({displayDirection = 'right', className}) { const classes = cn( 'duration-100 ease-in transition', { - 'transform rotate-0': displayDirection === 'down', - 'transform -rotate-90': displayDirection === 'right', - 'transform rotate-90': displayDirection === 'left', + 'rotate-0': displayDirection === 'down', + '-rotate-90': displayDirection === 'right', + 'rotate-90': displayDirection === 'left', }, className ); diff --git a/beta/src/components/Layout/Page.tsx b/beta/src/components/Layout/Page.tsx index 2f8ad2f4d..e9481b104 100644 --- a/beta/src/components/Layout/Page.tsx +++ b/beta/src/components/Layout/Page.tsx @@ -8,6 +8,7 @@ import {Nav} from './Nav'; import {RouteItem, SidebarContext} from './useRouteMeta'; import {Sidebar} from './Sidebar'; import {Footer} from './Footer'; +import SocialBanner from '../SocialBanner'; interface PageProps { children: React.ReactNode; routeTree: RouteItem; @@ -15,24 +16,27 @@ interface PageProps { export function Page({routeTree, children}: PageProps) { return ( - - -
-
-
+ <> + + + +
+
+
-
-
-
- {children} -
-
+
+
+
+ {children} +
+
+
-
- - + + + ); } diff --git a/beta/src/components/Layout/Sidebar/Sidebar.tsx b/beta/src/components/Layout/Sidebar/Sidebar.tsx index a1295dc5a..8a325a2cb 100644 --- a/beta/src/components/Layout/Sidebar/Sidebar.tsx +++ b/beta/src/components/Layout/Sidebar/Sidebar.tsx @@ -9,13 +9,12 @@ import {MenuContext} from 'components/useMenu'; import {useMediaQuery} from '../useMediaQuery'; import {SidebarRouteTree} from './SidebarRouteTree'; import {Search} from 'components/Search'; -import {Button} from 'components/Button'; import {MobileNav} from '../Nav/MobileNav'; import {Feedback} from '../Feedback'; const SIDEBAR_BREAKPOINT = 1023; -export function Sidebar({isMobileOnly}: {isMobileOnly?: boolean}) { +export function Sidebar() { const {menuRef, isOpen} = React.useContext(MenuContext); const isMobileSidebar = useMediaQuery(SIDEBAR_BREAKPOINT); let routeTree = React.useContext(SidebarContext); @@ -28,18 +27,18 @@ export function Sidebar({isMobileOnly}: {isMobileOnly?: boolean}) { return (