@jobber/components 8.23.0 → 8.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Autocomplete/index.cjs +1 -1
- package/dist/Autocomplete/index.mjs +1 -1
- package/dist/Card/index.cjs +4 -4
- package/dist/Card/index.mjs +4 -4
- package/dist/Chip/index.cjs +1 -1
- package/dist/Chip/index.mjs +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
- package/dist/Chips/InternalChipDismissible/index.cjs +1 -1
- package/dist/Chips/InternalChipDismissible/index.mjs +1 -1
- package/dist/Chips/index.cjs +1 -1
- package/dist/Chips/index.mjs +1 -1
- package/dist/ComboboxChipRemove-cjs.js +668 -379
- package/dist/ComboboxChipRemove-es.js +508 -219
- package/dist/ConfirmationModal/index.cjs +1 -1
- package/dist/ConfirmationModal/index.mjs +1 -1
- package/dist/DataDump/index.cjs +4 -4
- package/dist/DataDump/index.mjs +4 -4
- package/dist/DataList/components/DataListActions/index.cjs +1 -1
- package/dist/DataList/components/DataListActions/index.mjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.cjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.mjs +1 -1
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +1 -1
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +1 -1
- package/dist/DataList/components/DataListFilters/index.cjs +1 -1
- package/dist/DataList/components/DataListFilters/index.mjs +1 -1
- package/dist/DataList/components/DataListHeader/index.cjs +1 -1
- package/dist/DataList/components/DataListHeader/index.mjs +1 -1
- package/dist/DataList/components/DataListItem/index.cjs +1 -1
- package/dist/DataList/components/DataListItem/index.mjs +1 -1
- package/dist/DataList/components/DataListItemActions/index.cjs +1 -1
- package/dist/DataList/components/DataListItemActions/index.mjs +1 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +1 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +1 -1
- package/dist/DataList/components/DataListItems/index.cjs +1 -1
- package/dist/DataList/components/DataListItems/index.mjs +1 -1
- package/dist/DataList/components/DataListLayout/index.cjs +1 -1
- package/dist/DataList/components/DataListLayout/index.mjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.cjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.mjs +1 -1
- package/dist/DataList/index.cjs +1 -1
- package/dist/DataList/index.mjs +1 -1
- package/dist/DatePicker/index.cjs +1 -1
- package/dist/DatePicker/index.mjs +1 -1
- package/dist/Dialog/index.cjs +3 -3
- package/dist/Dialog/index.mjs +3 -3
- package/dist/DrawerDescription-cjs.js +32 -33
- package/dist/DrawerDescription-es.js +19 -20
- package/dist/DrawerTitle-cjs.js +7 -5
- package/dist/DrawerTitle-es.js +7 -5
- package/dist/FilterPicker/components/FilterPickerActivator/index.cjs +1 -1
- package/dist/FilterPicker/components/FilterPickerActivator/index.mjs +1 -1
- package/dist/FilterPicker/components/FilterPickerContent/index.cjs +1 -1
- package/dist/FilterPicker/components/FilterPickerContent/index.mjs +1 -1
- package/dist/FilterPicker/components/FilterPickerTrigger/index.cjs +1 -1
- package/dist/FilterPicker/components/FilterPickerTrigger/index.mjs +1 -1
- package/dist/FilterPicker/index.cjs +1 -1
- package/dist/FilterPicker/index.mjs +1 -1
- package/dist/FormFieldWrapper-cjs.js +2 -2
- package/dist/FormFieldWrapper-es.js +2 -2
- package/dist/FormatFile/index.cjs +1 -1
- package/dist/FormatFile/index.mjs +1 -1
- package/dist/Gallery/index.cjs +1 -1
- package/dist/Gallery/index.mjs +1 -1
- package/dist/InputDate/index.cjs +1 -1
- package/dist/InputDate/index.mjs +1 -1
- package/dist/InputNumberExperimental-cjs.js +319 -102
- package/dist/InputNumberExperimental-es.js +321 -104
- package/dist/LightBox/index.cjs +1 -1
- package/dist/LightBox/index.mjs +1 -1
- package/dist/Menu/index.cjs +4 -4
- package/dist/Menu/index.mjs +4 -4
- package/dist/MenuSubmenuTrigger-cjs.js +545 -498
- package/dist/MenuSubmenuTrigger-es.js +490 -443
- package/dist/Modal/index.cjs +1 -1
- package/dist/Modal/index.mjs +1 -1
- package/dist/NumberFieldInput-cjs.js +609 -496
- package/dist/NumberFieldInput-es.js +612 -498
- package/dist/Page/index.cjs +4 -4
- package/dist/Page/index.mjs +4 -4
- package/dist/Popover/index.cjs +1 -1
- package/dist/Popover/index.mjs +1 -1
- package/dist/ScrollAreaViewport-cjs.js +326 -601
- package/dist/ScrollAreaViewport-es.js +278 -548
- package/dist/SelectGroupLabel-cjs.js +494 -528
- package/dist/SelectGroupLabel-es.js +411 -445
- package/dist/Separator-cjs.js +1 -0
- package/dist/Separator-es.js +1 -0
- package/dist/Tooltip/index.cjs +1 -1
- package/dist/Tooltip/index.mjs +1 -1
- package/dist/docs/InputTime/InputTime.md +8 -0
- package/dist/docs/SelectPrimitive/SelectPrimitive.md +38 -25
- package/dist/floating-ui.react-cjs.js +586 -10
- package/dist/floating-ui.react-dom-cjs.js +92 -92
- package/dist/floating-ui.react-dom-es.js +1 -1
- package/dist/floating-ui.react-es.js +580 -4
- package/dist/floating-ui.utils-cjs.js +159 -0
- package/dist/floating-ui.utils-es.js +136 -0
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{ToolbarRootContext-cjs.js → isElementDisabled-cjs.js} +5 -0
- package/dist/{ToolbarRootContext-es.js → isElementDisabled-es.js} +5 -1
- package/dist/primitives/BottomSheet/index.cjs +3 -3
- package/dist/primitives/BottomSheet/index.mjs +3 -3
- package/dist/primitives/ComboboxPrimitive/index.cjs +2 -2
- package/dist/primitives/ComboboxPrimitive/index.mjs +2 -2
- package/dist/primitives/InputNumberExperimental/index.cjs +1 -1
- package/dist/primitives/InputNumberExperimental/index.mjs +1 -1
- package/dist/primitives/SelectPrimitive/index.cjs +5 -5
- package/dist/primitives/SelectPrimitive/index.mjs +5 -5
- package/dist/primitives/index.cjs +4 -4
- package/dist/primitives/index.mjs +4 -4
- package/dist/resolveAriaLabelledBy-cjs.js +5 -0
- package/dist/resolveAriaLabelledBy-es.js +5 -1
- package/dist/{CSPContext-cjs.js → scrollEdges-cjs.js} +30 -2
- package/dist/{CSPContext-es.js → scrollEdges-es.js} +28 -3
- package/dist/styles.css +9 -3
- package/dist/unstyledPrimitives/index.cjs +1217 -639
- package/dist/unstyledPrimitives/index.mjs +1163 -585
- package/dist/useButton-cjs.js +283 -317
- package/dist/useButton-es.js +277 -298
- package/dist/useCompositeListItem-cjs.js +328 -279
- package/dist/useCompositeListItem-es.js +293 -246
- package/dist/useLabel-cjs.js +11 -1
- package/dist/useLabel-es.js +11 -2
- package/dist/useLabelableId-cjs.js +37 -91
- package/dist/useLabelableId-es.js +37 -90
- package/dist/useRenderElement-cjs.js +81 -26
- package/dist/useRenderElement-es.js +81 -27
- package/dist/{InternalBackdrop-cjs.js → useScrollLock-cjs.js} +1286 -1220
- package/dist/{InternalBackdrop-es.js → useScrollLock-es.js} +1250 -1207
- package/package.json +3 -3
- package/dist/index.esm-cjs.js +0 -738
- package/dist/index.esm-es.js +0 -712
package/dist/Separator-cjs.js
CHANGED
package/dist/Separator-es.js
CHANGED
package/dist/Tooltip/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ require('react');
|
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('../floating-ui.react-cjs.js');
|
|
7
7
|
require('../floating-ui.utils.dom-cjs.js');
|
|
8
|
-
require('../
|
|
8
|
+
require('../floating-ui.utils-cjs.js');
|
|
9
9
|
require('react/jsx-runtime');
|
|
10
10
|
require('react-dom');
|
|
11
11
|
require('../floating-ui.react-dom-cjs.js');
|
package/dist/Tooltip/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import 'react';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../floating-ui.react-es.js';
|
|
5
5
|
import '../floating-ui.utils.dom-es.js';
|
|
6
|
-
import '../
|
|
6
|
+
import '../floating-ui.utils-es.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import '../floating-ui.react-dom-es.js';
|
|
@@ -29,6 +29,14 @@ number automatically fills in the rest of the time. For example, typing `2` will
|
|
|
29
29
|
fill in `2:00 PM` and typing `1` waits for a few milliseconds in case the user
|
|
30
30
|
wants to type `10`, `11`, or `12`.
|
|
31
31
|
|
|
32
|
+
## Sizes and the placeholder
|
|
33
|
+
|
|
34
|
+
Consistent with other inputs, `size="small"` does not show the floating mini
|
|
35
|
+
label. The placeholder appears while the field is empty and unfocused, and is
|
|
36
|
+
hidden while the field is being edited or has a value, keeping the field at its
|
|
37
|
+
small height throughout. The default and `large` sizes float the placeholder up
|
|
38
|
+
as a mini label while editing or once a value is set.
|
|
39
|
+
|
|
32
40
|
|
|
33
41
|
## Props
|
|
34
42
|
|
|
@@ -192,20 +192,22 @@ Base UI.
|
|
|
192
192
|
|
|
193
193
|
| Prop | Type | Required | Default | Description |
|
|
194
194
|
|------|------|----------|---------|-------------|
|
|
195
|
-
| `className` | `string | ((state: SelectPortalState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
195
|
+
| `className` | `string | ((state: SelectPortalState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
196
196
|
| `container` | `HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot>` | No | — | A parent element to render the portal element into. |
|
|
197
197
|
| `ref` | `Ref<HTMLDivElement>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
|
|
198
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectPortalState>` | No | — | Allows you to replace the component
|
|
198
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectPortalState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
199
|
+
| `style` | `CSSProperties | ((state: SelectPortalState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
199
200
|
|
|
200
201
|
#### Root
|
|
201
202
|
|
|
202
203
|
| Prop | Type | Required | Default | Description |
|
|
203
204
|
|------|------|----------|---------|-------------|
|
|
204
|
-
| `actionsRef` | `RefObject<SelectRootActions>` | No | — | A ref to imperative actions. - `unmount`:
|
|
205
|
+
| `actionsRef` | `RefObject<SelectRootActions>` | No | — | A ref to imperative actions. - `unmount`: Manually unmounts the select. Call this after any externally controlled clo... |
|
|
205
206
|
| `autoComplete` | `string` | No | — | Provides a hint to the browser for autofill. @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attribu... |
|
|
206
207
|
| `defaultOpen` | `boolean` | No | `false` | Whether the select popup is initially open. To render a controlled select popup, use the `open` prop instead. |
|
|
207
|
-
| `defaultValue` | `SelectValueType<Value, Multiple>` | No | — | The uncontrolled value of the select when it
|
|
208
|
+
| `defaultValue` | `SelectValueType<Value, Multiple>` | No | — | The uncontrolled value of the select when it's initially rendered. To render a controlled select, use the `value` pr... |
|
|
208
209
|
| `disabled` | `boolean` | No | `false` | Whether the component should ignore user interaction. |
|
|
210
|
+
| `form` | `string` | No | — | Identifies the form that owns the hidden input. Useful when the select is rendered outside the form. |
|
|
209
211
|
| `highlightItemOnHover` | `boolean` | No | `true` | Whether moving the pointer over items should highlight them. Disabling this prop allows CSS `:hover` to be differenti... |
|
|
210
212
|
| `id` | `string` | No | — | The id of the Select. |
|
|
211
213
|
| `inputRef` | `Ref<HTMLInputElement>` | No | — | A ref to access the hidden input element. |
|
|
@@ -228,56 +230,63 @@ Base UI.
|
|
|
228
230
|
|
|
229
231
|
| Prop | Type | Required | Default | Description |
|
|
230
232
|
|------|------|----------|---------|-------------|
|
|
231
|
-
| `className` | `string | ((state: SelectGroupState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
232
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectGroupState>` | No | — | Allows you to replace the component
|
|
233
|
+
| `className` | `string | ((state: SelectGroupState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
234
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectGroupState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
235
|
+
| `style` | `CSSProperties | ((state: SelectGroupState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
233
236
|
|
|
234
237
|
#### SelectPrimitiveGroupLabel
|
|
235
238
|
|
|
236
239
|
| Prop | Type | Required | Default | Description |
|
|
237
240
|
|------|------|----------|---------|-------------|
|
|
238
|
-
| `className` | `string | ((state: SelectGroupLabelState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
239
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectGroupLabelState>` | No | — | Allows you to replace the component
|
|
241
|
+
| `className` | `string | ((state: SelectGroupLabelState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
242
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectGroupLabelState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
243
|
+
| `style` | `CSSProperties | ((state: SelectGroupLabelState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
240
244
|
|
|
241
245
|
#### SelectPrimitiveItem
|
|
242
246
|
|
|
243
247
|
| Prop | Type | Required | Default | Description |
|
|
244
248
|
|------|------|----------|---------|-------------|
|
|
245
|
-
| `className` | `string | ((state: SelectItemState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
249
|
+
| `className` | `string | ((state: SelectItemState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
246
250
|
| `disabled` | `boolean` | No | `false` | Whether the component should ignore user interaction. |
|
|
247
251
|
| `label` | `string` | No | — | Specifies the text label to use when the item is matched during keyboard text navigation. Defaults to the item text ... |
|
|
248
252
|
| `nativeButton` | `boolean` | No | `true` | Whether the component renders a native `<button>` element when replacing it via the `render` prop. Set to `false` if ... |
|
|
249
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectItemState>` | No | — | Allows you to replace the component
|
|
253
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectItemState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
254
|
+
| `style` | `CSSProperties | ((state: SelectItemState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
250
255
|
| `value` | `any` | No | `null` | A unique value that identifies this select item. |
|
|
251
256
|
|
|
252
257
|
#### SelectPrimitiveItemIndicator
|
|
253
258
|
|
|
254
259
|
| Prop | Type | Required | Default | Description |
|
|
255
260
|
|------|------|----------|---------|-------------|
|
|
256
|
-
| `className` | `string | ((state: SelectItemIndicatorState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
261
|
+
| `className` | `string | ((state: SelectItemIndicatorState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
257
262
|
| `keepMounted` | `boolean` | No | — | Whether to keep the HTML element in the DOM when the item is not selected. |
|
|
258
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectItemIndicatorState>` | No | — | Allows you to replace the component
|
|
263
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectItemIndicatorState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
264
|
+
| `style` | `CSSProperties | ((state: SelectItemIndicatorState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
259
265
|
|
|
260
266
|
#### SelectPrimitiveItemText
|
|
261
267
|
|
|
262
268
|
| Prop | Type | Required | Default | Description |
|
|
263
269
|
|------|------|----------|---------|-------------|
|
|
264
|
-
| `className` | `string | ((state: SelectItemTextState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
265
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectItemTextState>` | No | — | Allows you to replace the component
|
|
270
|
+
| `className` | `string | ((state: SelectItemTextState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
271
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectItemTextState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
272
|
+
| `style` | `CSSProperties | ((state: SelectItemTextState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
266
273
|
|
|
267
274
|
#### SelectPrimitiveList
|
|
268
275
|
|
|
269
276
|
| Prop | Type | Required | Default | Description |
|
|
270
277
|
|------|------|----------|---------|-------------|
|
|
271
|
-
| `className` | `string | ((state: SelectListState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
272
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectListState>` | No | — | Allows you to replace the component
|
|
278
|
+
| `className` | `string | ((state: SelectListState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
279
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectListState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
280
|
+
| `style` | `CSSProperties | ((state: SelectListState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
273
281
|
|
|
274
282
|
#### SelectPrimitivePopup
|
|
275
283
|
|
|
276
284
|
| Prop | Type | Required | Default | Description |
|
|
277
285
|
|------|------|----------|---------|-------------|
|
|
278
|
-
| `className` | `string | ((state: SelectPopupState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
286
|
+
| `className` | `string | ((state: SelectPopupState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
279
287
|
| `finalFocus` | `boolean | RefObject<HTMLElement> | ((closeType: InteractionType) => boolean | void | HTMLElement)` | No | — | Determines the element to focus when the select popup is closed. - `false`: Do not move focus. - `true`: Move focus ... |
|
|
280
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectPopupState>` | No | — | Allows you to replace the component
|
|
288
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectPopupState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
289
|
+
| `style` | `CSSProperties | ((state: SelectPopupState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
281
290
|
|
|
282
291
|
#### SelectPrimitivePositioner
|
|
283
292
|
|
|
@@ -288,16 +297,17 @@ Base UI.
|
|
|
288
297
|
| `alignOffset` | `OffsetFunction | number` | No | `0` | Additional offset along the alignment axis in pixels. Also accepts a function that returns the offset to read the dim... |
|
|
289
298
|
| `anchor` | `Element | RefObject<Element> | VirtualElement | (() => Element | VirtualElement)` | No | — | An element to position the popup against. By default, the popup will be positioned against the trigger. |
|
|
290
299
|
| `arrowPadding` | `number` | No | `5` | Minimum distance to maintain between the arrow and the edges of the popup. Use it to prevent the arrow element from ... |
|
|
291
|
-
| `className` | `string | ((state: SelectPositionerState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
300
|
+
| `className` | `string | ((state: SelectPositionerState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
292
301
|
| `collisionAvoidance` | `CollisionAvoidance` | No | — | Determines how to handle collisions when positioning the popup. `side` controls overflow on the preferred placement ... |
|
|
293
302
|
| `collisionBoundary` | `Boundary` | No | `'clipping-ancestors'` | An element or a rectangle that delimits the area that the popup is confined to. |
|
|
294
303
|
| `collisionPadding` | `Padding` | No | `5` | Additional space to maintain from the edge of the collision boundary. |
|
|
295
304
|
| `disableAnchorTracking` | `boolean` | No | `false` | Whether to disable the popup from tracking any layout shift of its positioning anchor. |
|
|
296
305
|
| `positionMethod` | `"absolute" | "fixed"` | No | `'absolute'` | Determines which CSS `position` property to use. |
|
|
297
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectPositionerState>` | No | — | Allows you to replace the component
|
|
306
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectPositionerState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
298
307
|
| `side` | `Side` | No | `'bottom'` | Which side of the anchor element to align the popup against. May automatically change to avoid collisions. |
|
|
299
308
|
| `sideOffset` | `OffsetFunction | number` | No | `6` | Distance between the anchor and the popup in pixels. Also accepts a function that returns the distance to read the di... |
|
|
300
309
|
| `sticky` | `boolean` | No | `false` | Whether to maintain the popup in the viewport after the anchor element was scrolled out of view. |
|
|
310
|
+
| `style` | `CSSProperties | ((state: SelectPositionerState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
301
311
|
|
|
302
312
|
#### SelectPrimitiveSeparator
|
|
303
313
|
|
|
@@ -305,22 +315,25 @@ Base UI.
|
|
|
305
315
|
|------|------|----------|---------|-------------|
|
|
306
316
|
| `className` | `string` | No | — | |
|
|
307
317
|
| `orientation` | `Orientation` | No | `'horizontal'` | The orientation of the separator. |
|
|
308
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SeparatorState>` | No | — | Allows you to replace the component
|
|
318
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SeparatorState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
319
|
+
| `style` | `CSSProperties | ((state: SeparatorState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
309
320
|
|
|
310
321
|
#### SelectPrimitiveTrigger
|
|
311
322
|
|
|
312
323
|
| Prop | Type | Required | Default | Description |
|
|
313
324
|
|------|------|----------|---------|-------------|
|
|
314
|
-
| `className` | `string | ((state: SelectTriggerState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
325
|
+
| `className` | `string | ((state: SelectTriggerState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
315
326
|
| `disabled` | `boolean` | No | — | Whether the component should ignore user interaction. |
|
|
316
327
|
| `nativeButton` | `boolean` | No | `true` | Whether the component renders a native `<button>` element when replacing it via the `render` prop. Set to `false` if ... |
|
|
317
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectTriggerState>` | No | — | Allows you to replace the component
|
|
328
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectTriggerState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
329
|
+
| `style` | `CSSProperties | ((state: SelectTriggerState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|
|
318
330
|
|
|
319
331
|
#### SelectPrimitiveValue
|
|
320
332
|
|
|
321
333
|
| Prop | Type | Required | Default | Description |
|
|
322
334
|
|------|------|----------|---------|-------------|
|
|
323
335
|
| `children` | `ReactNode | ((value: any) => ReactNode)` | No | — | Accepts a function that returns a `ReactNode` to format the selected value. @example ```tsx <Select.Value> {(value:... |
|
|
324
|
-
| `className` | `string | ((state: SelectValueState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component
|
|
336
|
+
| `className` | `string | ((state: SelectValueState) => string)` | No | — | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
325
337
|
| `placeholder` | `ReactNode` | No | — | The placeholder value to display when no value is selected. This is overridden by `children` if specified, or by a nu... |
|
|
326
|
-
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectValueState>` | No | — | Allows you to replace the component
|
|
338
|
+
| `render` | `ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, SelectValueState>` | No | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accep... |
|
|
339
|
+
| `style` | `CSSProperties | ((state: SelectValueState) => CSSProperties)` | No | — | Style applied to the element, or a function that returns a style object based on the component's state. |
|