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

[accordion] New Accordion components and hooks #577

Merged
merged 54 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a64950b
Provide Collapsible content width css var
mj12albert Sep 3, 2024
ab49d59
New Accordion hooks and components
mj12albert Aug 22, 2024
12353ff
Add docs and demos
mj12albert Sep 4, 2024
adb4ce2
Misc fixes
mj12albert Sep 4, 2024
357b1f5
Refactor useCollapsibleTrigger with useButton
mj12albert Sep 4, 2024
a211d7b
Fix review comments
mj12albert Sep 11, 2024
895872c
Rename subcomponents
mj12albert Sep 11, 2024
9605d9f
Support focus loop
mj12albert Sep 11, 2024
bfc09a1
Add tests
mj12albert Sep 16, 2024
3c687fa
Rename data-state for Accordion and Collapsible
mj12albert Sep 17, 2024
28978bb
Use a boolean prop to apply hidden-until-found
mj12albert Sep 17, 2024
c16a64a
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Sep 19, 2024
80b04e0
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Sep 20, 2024
0301088
PR review fixes
mj12albert Sep 23, 2024
d00847d
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 9, 2024
b37d00e
Rename onOpenChange to onValueChange and misc fixes
mj12albert Oct 9, 2024
b7c09a0
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 9, 2024
d8d2b68
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 13, 2024
85a3e12
Update experiments
mj12albert Oct 13, 2024
a26bf03
[core] Increase the minimum Node.js version support to 14.0.0 (#658)
oliviertassinari Oct 10, 2024
95e7a1c
Bump Public packages' dependencies (major) (#725)
renovate[bot] Oct 11, 2024
2572aa2
Bump Public packages' dependencies (#724)
renovate[bot] Oct 11, 2024
c28dcf1
[examples] Avoid git diff when playing with examples
oliviertassinari Oct 13, 2024
ef3c012
[Checkbox][Switch] Split data-state into data-checked, data-unchecked…
atomiks Oct 14, 2024
094b558
[core] Improve DX of importing Base UI components (#700)
michaldudak Oct 14, 2024
19cfa44
Update exports and types
mj12albert Oct 14, 2024
24be486
Update demos
mj12albert Oct 14, 2024
24a9abc
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 15, 2024
c76e668
Merge collapsible internal height and width states
mj12albert Oct 15, 2024
f87d7f0
Finalize demo margin padding
mj12albert Oct 16, 2024
283ec66
Refactor collapsible content internals
mj12albert Oct 15, 2024
0d2b45f
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 16, 2024
ddc2547
Improve getting computed styles performance
mj12albert Oct 16, 2024
0b5458f
Rename Collapsible.Content to Panel
mj12albert Oct 16, 2024
7ad7ce1
Update style hooks
mj12albert Oct 16, 2024
710c2cd
Improve tests
mj12albert Oct 16, 2024
788facc
Merge branch 'master' into feat/accordion
mj12albert Oct 16, 2024
5a7803e
Update docs
mj12albert Oct 17, 2024
707249d
Fixes
mj12albert Oct 17, 2024
743c07e
Rename
mj12albert Oct 17, 2024
49598c5
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 17, 2024
ca7e9b4
Fix contexts
mj12albert Oct 17, 2024
8e0df16
Update experiments
mj12albert Oct 17, 2024
03e0ec4
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 21, 2024
7dce2b3
prettier
mj12albert Oct 21, 2024
0321519
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 22, 2024
fc14621
Fix review comments
mj12albert Oct 22, 2024
e1134df
Universally update style hooks from data-attr='true' to data-attr
mj12albert Oct 22, 2024
e7de337
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 24, 2024
7b9bf09
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 28, 2024
91c0cbb
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 29, 2024
217ead7
Merge remote-tracking branch 'upstream/master' into feat/accordion
mj12albert Oct 29, 2024
ec8d70b
Fix conflict
mj12albert Oct 29, 2024
faf9231
Fix jsdom tests
mj12albert Oct 29, 2024
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into feat/accordion
  • Loading branch information
mj12albert committed Oct 21, 2024
commit 03e0ec44ae8b86b8ac8289df905fe88bb3a5042f
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"publishDirectory": {
"@base_ui/react": "packages/mui-base/build"
},
"sandboxes": ["/examples/base-ui-cra-ts"],
"sandboxes": ["/.codesandbox/template"],
"silent": true
}
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
* @atomiks @michaldudak
/docs/data/ @atomiks @colmtuite @michaldudak
/examples/ @atomiks @colmtuite @michaldudak
/packages/mui-base/ @atomiks @colmtuite @michaldudak
/scripts/ @michaldudak
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
/docs/app/playground/*
!/docs/app/playground/\[slug\]
/docs/public/feed/
/examples/**/.cache
/test/bundling/fixtures/*/yarn.lock
/test/bundling/fixtures/*/pnpm-lock.yaml
# created by test/bundling/scripts/createFixture
Expand Down
3 changes: 1 addition & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ module.exports = function getBabelConfig(api) {

const defaultAlias = {
'@base_ui/react': resolveAliasPath('./packages/mui-base/src'),
docs: resolveAliasPath('./node_modules/@mui/monorepo/docs'),
'docs-base': resolveAliasPath('./docs'),
docs: resolveAliasPath('./docs'),
test: resolveAliasPath('./test'),
'@mui-internal/api-docs-builder': resolveAliasPath(
'./node_modules/@mui/monorepo/packages/api-docs-builder',
Expand Down
19 changes: 0 additions & 19 deletions docs/data/getting-started/support/support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,6 @@ You have a few possible options to provide it:

You can browse the documentation, find an example close to your use case, and then open it in a live editor:

<span className="only-light-mode">
<img
src="/static/docs-infra/forking-an-example.png"
alt="Forking an example"
loading="lazy"
width="1628"
style={{ display: 'block', maxWidth: '774px' }}
/>
</span>
<span className="only-dark-mode">
<img
src="/static/docs-infra/forking-an-example-dark.png"
alt="Forking an example"
loading="lazy"
width="1628"
style={{ display: 'block', maxWidth: '774px' }}
/>
</span>

#### Use starter templates

You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/github/stackblitz/starters/tree/main/react-ts).
Expand Down
8 changes: 0 additions & 8 deletions docs/data/guides/next-js-app-router/next-js-app-router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ description: Learn how to use Base UI with the Next.js App Router.

<Description />

## Example

Starting fresh on a new App Router-based project?

Jump right into the code with [this example: Base UI - Next.js App Router with Tailwind CSS in TypeScript](/~https://github.com/mui/base-ui/tree/master/examples/base-ui-nextjs-tailwind-ts).

## Next.js and React Server Components

The Next.js App Router implements React Server Components, [an upcoming feature for React](/~https://github.com/reactjs/rfcs/blob/main/text/0227-server-module-conventions.md).
Expand Down Expand Up @@ -52,8 +46,6 @@ module.exports = {
};
```

Refer to this [example repo](/~https://github.com/mui/base-ui/tree/master/examples/base-ui-nextjs-tailwind-ts) for a full working demo of a Next.js 13 app using Base UI and Tailwind CSS.

### Emotion

If you're using Emotion, or something Emotion-based like MUI System, create a custom `ThemeRegistry` component that combines the Emotion `CacheProvider`, the Material UI `ThemeProvider`, and the `useServerInsertedHTML` hook from `next/navigation` as follows:
Expand Down
3 changes: 1 addition & 2 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ const nextConfig = {
...config.resolve,
alias: {
...config.resolve.alias,
'docs-base': path.resolve(workspaceRoot, 'docs'),
docs: path.resolve(workspaceRoot, 'node_modules/@mui/monorepo/docs'),
docs: path.resolve(workspaceRoot, 'docs'),
},
},
module: {
Expand Down
3 changes: 0 additions & 3 deletions docs/public/_headers
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/_next/*.js
Cache-Control: public, max-age=31536000, immutable

/static/images/*
Cache-Control: public, max-age=86400

/static/favicon.ico
Content-Type: image/x-icon

Expand Down
1 change: 0 additions & 1 deletion docs/public/static/BIMI.svg

This file was deleted.

Binary file removed docs/public/static/ads-in-house/figma.png
Binary file not shown.
Binary file removed docs/public/static/ads-in-house/scaffoldhub.png
Binary file not shown.
Binary file removed docs/public/static/ads-in-house/themes-2.jpg
Binary file not shown.
Binary file removed docs/public/static/ads-in-house/themes.png
Binary file not shown.
Binary file removed docs/public/static/ads-in-house/tidelift.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed docs/public/static/branding/base-ui/avatar.png
Diff not rendered.
1 change: 0 additions & 1 deletion docs/public/static/branding/base-ui/headless-ui-dark.svg
Diff not rendered.
1 change: 0 additions & 1 deletion docs/public/static/branding/base-ui/headless-ui.svg
Diff not rendered.
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.