Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into renovate/next-13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Jun 29, 2023
2 parents f0d0469 + 2fa8d6c commit f7cc181
Show file tree
Hide file tree
Showing 357 changed files with 1,188 additions and 1,641 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/priority-support-validation-prompt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Find Comment
uses: peter-evans/find-comment@v2 # v2.4.0
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1 # v2
id: findComment
with:
issue-number: ${{ github.event.issue.number }}
Expand All @@ -25,7 +25,7 @@ jobs:

- name: Create comment
if: ${{ steps.findComment.outputs.comment-id == '' && contains(github.event.label.name, 'unknown') }}
uses: peter-evans/create-or-update-comment@5f728c3dae25f329afbe34ee4d08eef25569d79f # v3.0.2
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa # v3.0.2
with:
issue-number: ${{ github.event.issue.number }}
body: |
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Update comment
if: ${{ steps.findComment.outputs.comment-id != '' && contains(github.event.label.name, 'priority') }}
uses: peter-evans/create-or-update-comment@5f728c3dae25f329afbe34ee4d08eef25569d79f # v3.0.2
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa # v3.0.2
with:
comment-id: ${{ steps.findComment.outputs.comment-id }}
body: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
persist-credentials: false

- name: Run analysis
uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
with:
results_file: results.sarif
results_format: sarif
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
Loading

0 comments on commit f7cc181

Please sign in to comment.