Skip to content

Commit

Permalink
Merge branch 'master' into docs/base-select-tailwind-plain-css-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Jun 30, 2023
2 parents 475672b + e6f223a commit 5c287c0
Show file tree
Hide file tree
Showing 364 changed files with 1,359 additions and 1,779 deletions.
6 changes: 5 additions & 1 deletion dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ async function reportBundleSize() {

const comparison = await loadLastComparison(upstreamRef);

const detailedComparisonRoute = `/size-comparison?circleCIBuildNumber=${circleCIBuildNumber}&baseRef=${danger.github.pr.base.ref}&baseCommit=${comparison.previous}&prNumber=${danger.github.pr.number}`;
const detailedComparisonQuery = `circleCIBuildNumber=${circleCIBuildNumber}&baseRef=${danger.github.pr.base.ref}&baseCommit=${comparison.previous}&prNumber=${danger.github.pr.number}`;
const detailedComparisonToolpadUrl = `https://tools-public.onrender.com/prod/pages/h71gdad?${detailedComparisonQuery}`;
const detailedComparisonRoute = `/size-comparison?${detailedComparisonQuery}`;
const detailedComparisonUrl = `https://mui-dashboard.netlify.app${detailedComparisonRoute}`;

const { all: allResults, main: mainResults } = sieveResults(Object.entries(comparison.bundles));
Expand All @@ -169,12 +171,14 @@ async function reportBundleSize() {

const details = `## Bundle size report
[Details of bundle changes (Toolpad)](${detailedComparisonToolpadUrl})
[Details of bundle changes](${detailedComparisonUrl})`;

markdown(details);
} else {
markdown(`## Bundle size report
[No bundle size changes (Toolpad)](${detailedComparisonToolpadUrl})
[No bundle size changes](${detailedComparisonUrl})`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/accordion/accordion.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Accordion component
githubLabel: 'component: accordion'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/autocomplete/autocomplete.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Autocomplete hook
hooks: useAutocomplete
githubLabel: 'component: autocomplete'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/badge-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Badge component and hook
components: BadgeUnstyled
githubLabel: 'component: badge'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/badge-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Badge component and hook
components: BadgeUnstyled
githubLabel: 'component: badge'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/badge.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Badge component and hook
components: Badge
hooks: useBadge
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/button/button-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Componente e Hook do botão React sem estilo
components: ButtonUnstyled
githubLabel: 'component: button'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/button/button-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Button component and hook
components: ButtonUnstyled
githubLabel: 'component: button'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/button/button.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Button component and hook
components: Button
hooks: useButton
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/checkbox/checkbox.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Checkbox component
githubLabel: 'component: checkbox'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Detect click outside React component
components: ClickAwayListener
githubLabel: 'component: ClickAwayListener'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Detect click outside React component
components: ClickAwayListener
githubLabel: 'component: ClickAwayListener'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Detect click outside React component
components: ClickAwayListener
githubLabel: 'component: ClickAwayListener'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/focus-trap/focus-trap-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Focus Trap component
components: FocusTrap
githubLabel: 'component: FocusTrap'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/focus-trap/focus-trap-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Focus Trap component
components: FocusTrap
githubLabel: 'component: FocusTrap'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/focus-trap/focus-trap.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Focus Trap component
components: FocusTrap
githubLabel: 'component: FocusTrap'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/form-control/form-control-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Form Control component and hook
components: FormControlUnstyled
githubLabel: 'component: FormControl'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/form-control/form-control-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Form Control component and hook
components: FormControlUnstyled
githubLabel: 'component: FormControl'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/form-control/form-control.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Form Control component and hook
components: FormControl
hooks: useFormControlContext
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/input/input-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Input component and hook
components: InputUnstyled
githubLabel: 'component: input'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/input/input-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Input component and hook
components: InputUnstyled
githubLabel: 'component: input'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/input/input.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Input component and hook
components: Input
hooks: useInput
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/menu/menu-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Menu components and hooks
components: MenuUnstyled, MenuItemUnstyled
githubLabel: 'component: menu'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/menu/menu-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Menu components and hooks
components: MenuUnstyled, MenuItemUnstyled
githubLabel: 'component: menu'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/menu/menu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Menu components and hooks
components: Menu, MenuItem
hooks: useMenu, useMenuItem
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/modal/modal-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Modal component
components: ModalUnstyled
githubLabel: 'component: modal'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/modal/modal-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Modal component
components: ModalUnstyled
githubLabel: 'component: modal'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/modal/modal.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Modal component
components: Modal
githubLabel: 'component: modal'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/no-ssr/no-ssr-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: No SSR React component
components: NoSsr
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/no-ssr/no-ssr-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: No SSR React component
components: NoSsr
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/no-ssr/no-ssr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: No SSR React component
components: NoSsr
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/popper/popper-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Popper component
components: PopperUnstyled
githubLabel: 'component: Popper'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/popper/popper-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Popper component
components: PopperUnstyled
githubLabel: 'component: Popper'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/popper/popper.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Popper component
components: Popper
githubLabel: 'component: Popper'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/portal/portal-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Portal component
components: Portal
githubLabel: 'component: Portal'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/portal/portal-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Portal component
components: Portal
githubLabel: 'component: Portal'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/portal/portal.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Portal component
components: Portal
githubLabel: 'component: Portal'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/radio-button/radio-button.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Radio Button component
githubLabel: 'component: radio'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/select/select-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Select components and hook
components: SelectUnstyled, MultiSelectUnstyled, OptionUnstyled, OptionGroupUnstyled
githubLabel: 'component: select'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/select/select-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Select components and hook
components: SelectUnstyled, MultiSelectUnstyled, OptionUnstyled, OptionGroupUnstyled
githubLabel: 'component: select'
Expand Down
11 changes: 10 additions & 1 deletion docs/data/base/components/select/select.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Select components and hook
components: Select, Option, OptionGroup
hooks: useSelect, useOption
Expand Down Expand Up @@ -132,6 +132,15 @@ The following code snippet applies a CSS class called `my-listbox` to the listbo
<Select slotProps={{ listbox: { className: 'my-listbox' } }} />
```

### Portals

By default, the Select's popup is rendered in a [Portal](https://mui.com/base-ui/react-portal/) and appended to the bottom of the DOM.
To instead render the popup where the component is defined, override the `disablePortal` prop of the underlying Popper, as shown below:

```jsx
<Select slotProps={{ popper: { disablePortal: true } }} />
```

#### Usage with TypeScript

In TypeScript, you can specify the custom component type used in the `slots.root` as a generic parameter of the unstyled component. This way, you can safely provide the custom root's props directly on the component:
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/slider-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Slider component and hook
components: SliderUnstyled
githubLabel: 'component: slider'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/slider-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Slider component and hook
components: SliderUnstyled
githubLabel: 'component: slider'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/slider.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Slider component and hook
components: Slider
hooks: useSlider
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/snackbar/snackbar-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Snackbar component and hook
components: SnackbarUnstyled
githubLabel: 'component: snackbar'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/snackbar/snackbar-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Snackbar component and hook
components: SnackbarUnstyled
githubLabel: 'component: snackbar'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/snackbar/snackbar.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Snackbar component and hook
components: Snackbar
hooks: useSnackbar
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/switch/switch-pt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Switch component and hook
components: SwitchUnstyled
githubLabel: 'component: switch'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/switch/switch-zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Switch component and hook
components: SwitchUnstyled
githubLabel: 'component: switch'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/switch/switch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: React Switch component and hook
components: Switch
hooks: useSwitch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Table Pagination component
components: TablePaginationUnstyled
githubLabel: 'component: TablePagination'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
product: base-ui
productId: base-ui
title: Unstyled React Table Pagination component
components: TablePaginationUnstyled
githubLabel: 'component: TablePagination'
Expand Down
Loading

0 comments on commit 5c287c0

Please sign in to comment.