@bazza-ui/react 0.1.0-canary.6 → 0.1.0-canary.7
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/{ListboxStore-DPqpLlAL.d.ts → ListboxStore-Be-isU6l.d.ts} +43 -3
- package/dist/{ListboxStore-BtcTXpzi.d.cts → ListboxStore-DcAFvpEj.d.cts} +43 -3
- package/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/chunk-2D2HREBK.js +2 -0
- package/dist/chunk-2D2HREBK.js.map +1 -0
- package/dist/chunk-5T5B5SPR.cjs +2 -0
- package/dist/chunk-5T5B5SPR.cjs.map +1 -0
- package/dist/chunk-KO3DXT3Y.js +2 -0
- package/dist/chunk-KO3DXT3Y.js.map +1 -0
- package/dist/chunk-SF7X2BUT.cjs +2 -0
- package/dist/chunk-SF7X2BUT.cjs.map +1 -0
- package/dist/chunk-URLK26NV.cjs +2 -0
- package/dist/{chunk-JSPKF52O.cjs.map → chunk-URLK26NV.cjs.map} +1 -1
- package/dist/chunk-ZPRKUVIC.js +2 -0
- package/dist/chunk-ZPRKUVIC.js.map +1 -0
- package/dist/combobox/index.cjs +1 -1
- package/dist/combobox/index.cjs.map +1 -1
- package/dist/combobox/index.d.cts +27 -23
- package/dist/combobox/index.d.ts +27 -23
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/{command-score-YjNr3ZWi.d.cts → command-score-CEqnuMqW.d.cts} +1 -1
- package/dist/{command-score-Dgo3ZS3Z.d.ts → command-score-JZy7Snbk.d.ts} +1 -1
- package/dist/{data-surface-wC_Jb6Rh.d.ts → context-Dhm4Zi3l.d.ts} +10 -69
- package/dist/{data-surface-CvJ9KHPs.d.cts → context-Drjy6Y10.d.cts} +10 -69
- package/dist/context-menu/index.cjs +1 -1
- package/dist/context-menu/index.cjs.map +1 -1
- package/dist/context-menu/index.d.cts +14 -12
- package/dist/context-menu/index.d.ts +14 -12
- package/dist/context-menu/index.js +1 -1
- package/dist/context-menu/index.js.map +1 -1
- package/dist/dropdown-menu/index.cjs +1 -1
- package/dist/dropdown-menu/index.cjs.map +1 -1
- package/dist/dropdown-menu/index.d.cts +14 -12
- package/dist/dropdown-menu/index.d.ts +14 -12
- package/dist/dropdown-menu/index.js +1 -1
- package/dist/dropdown-menu/index.js.map +1 -1
- package/dist/internal/listbox/index.cjs +1 -1
- package/dist/internal/listbox/index.d.cts +3 -3
- package/dist/internal/listbox/index.d.ts +3 -3
- package/dist/internal/listbox/index.js +1 -1
- package/dist/internal/popup-menu/index.cjs +1 -1
- package/dist/internal/popup-menu/index.cjs.map +1 -1
- package/dist/internal/popup-menu/index.d.cts +9 -9
- package/dist/internal/popup-menu/index.d.ts +9 -9
- package/dist/internal/popup-menu/index.js +1 -1
- package/dist/items-B6HeFO_8.d.cts +37 -0
- package/dist/items-B6HeFO_8.d.ts +37 -0
- package/dist/select/index.cjs +1 -1
- package/dist/select/index.cjs.map +1 -1
- package/dist/select/index.d.cts +72 -36
- package/dist/select/index.d.ts +72 -36
- package/dist/select/index.js +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/{separator-C9c1Jo6A.d.ts → separator-BncOmTUq.d.ts} +18 -13
- package/dist/{separator-BzYYn73e.d.cts → separator-DACt2Z4S.d.cts} +18 -13
- package/dist/{types-M2vBIhdB.d.ts → types-BtG9pIR2.d.ts} +6 -51
- package/dist/{types-Cggz7pEl.d.cts → types-w3v6Vp8X.d.cts} +6 -51
- package/dist/video-player/index.d.cts +6 -5
- package/dist/video-player/index.d.ts +6 -5
- package/dist/video-player/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-AVZ64JQ3.js +0 -2
- package/dist/chunk-AVZ64JQ3.js.map +0 -1
- package/dist/chunk-BGJJC6GX.cjs +0 -2
- package/dist/chunk-BGJJC6GX.cjs.map +0 -1
- package/dist/chunk-FWWOE2SW.cjs +0 -2
- package/dist/chunk-FWWOE2SW.cjs.map +0 -1
- package/dist/chunk-JSPKF52O.cjs +0 -2
- package/dist/chunk-KWGD24VS.js +0 -2
- package/dist/chunk-KWGD24VS.js.map +0 -1
- package/dist/chunk-WKAPAKUL.js +0 -2
- package/dist/chunk-WKAPAKUL.js.map +0 -1
- package/dist/item-equality-B6TbXlBT.d.cts +0 -7
- package/dist/item-equality-B6TbXlBT.d.ts +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { P as PopupMenuOpenChangeReason, H as HighlightChangeEventDetails, C as ChangeEventDetails, G as GenericEventDetails } from './events-BPr8sRGH.js';
|
|
3
|
-
import { b as ListboxStore, V as VirtualItem, F as FilterFn, S as SearchNormalizer } from './ListboxStore-
|
|
4
|
-
import { G as GetQualifiedRowIdFn } from './types-
|
|
3
|
+
import { b as ListboxStore, V as VirtualItem, F as FilterFn, S as SearchNormalizer } from './ListboxStore-Be-isU6l.js';
|
|
4
|
+
import { G as GetQualifiedRowIdFn, aq as DataSurfaceProps } from './types-BtG9pIR2.js';
|
|
5
5
|
import { ReactStore } from '@base-ui/utils/store';
|
|
6
6
|
import { PopoverArrowProps, Popover, PopoverBackdropProps, PopoverPopupProps, PopoverPortalProps } from '@base-ui/react/popover';
|
|
7
7
|
import { a as ComponentRenderFn, C as ComponentProps } from './types-DT4FOOa2.js';
|
|
@@ -309,7 +309,7 @@ interface PopupMenuArrowProps extends PopoverArrowProps {
|
|
|
309
309
|
* Must be rendered inside `Popup`.
|
|
310
310
|
* Renders a `<div>` element.
|
|
311
311
|
*/
|
|
312
|
-
declare const PopupMenuArrow: React.ForwardRefExoticComponent<PopupMenuArrowProps & React.RefAttributes<HTMLDivElement>>;
|
|
312
|
+
declare const PopupMenuArrow: React.ForwardRefExoticComponent<Omit<PopupMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
313
313
|
declare namespace PopupMenuArrow {
|
|
314
314
|
type Props = PopupMenuArrowProps;
|
|
315
315
|
type State = Popover.Arrow.State;
|
|
@@ -339,7 +339,7 @@ interface PopupMenuBackdropProps extends PopoverBackdropProps {
|
|
|
339
339
|
*
|
|
340
340
|
* Renders a `<div>` element with `pointer-events: none`.
|
|
341
341
|
*/
|
|
342
|
-
declare const PopupMenuBackdrop: React.ForwardRefExoticComponent<PopupMenuBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
342
|
+
declare const PopupMenuBackdrop: React.ForwardRefExoticComponent<Omit<PopupMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
343
343
|
declare namespace PopupMenuBackdrop {
|
|
344
344
|
type Props = PopupMenuBackdropProps;
|
|
345
345
|
type State = Popover.Backdrop.State;
|
|
@@ -385,7 +385,7 @@ interface PopupMenuPopupProps extends Omit<PopoverPopupProps, 'className' | 'ren
|
|
|
385
385
|
*
|
|
386
386
|
* Renders a `<div>` element.
|
|
387
387
|
*/
|
|
388
|
-
declare const PopupMenuPopup: React.ForwardRefExoticComponent<PopupMenuPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
388
|
+
declare const PopupMenuPopup: React.ForwardRefExoticComponent<Omit<PopupMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
389
389
|
declare namespace PopupMenuPopup {
|
|
390
390
|
type Props = PopupMenuPopupProps;
|
|
391
391
|
type State = PopupMenuPopupState;
|
|
@@ -397,7 +397,7 @@ interface PopupMenuPortalProps extends PopoverPortalProps {
|
|
|
397
397
|
* A portal element that moves the popup to a different part of the DOM.
|
|
398
398
|
* By default, the portal element is appended to `<body>`.
|
|
399
399
|
*/
|
|
400
|
-
declare const PopupMenuPortal: React.ForwardRefExoticComponent<PopoverPortalProps & React.RefAttributes<HTMLDivElement>>;
|
|
400
|
+
declare const PopupMenuPortal: React.ForwardRefExoticComponent<Omit<PopoverPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
401
401
|
declare namespace PopupMenuPortal {
|
|
402
402
|
type Props = PopoverPortalProps;
|
|
403
403
|
type State = Popover.Portal.State;
|
|
@@ -502,7 +502,7 @@ interface PopupMenuListChildrenState {
|
|
|
502
502
|
}
|
|
503
503
|
interface PopupMenuListState extends Record<string, unknown> {
|
|
504
504
|
}
|
|
505
|
-
interface PopupMenuListProps extends Omit<ComponentProps<'div', PopupMenuList.State>, 'children'> {
|
|
505
|
+
interface PopupMenuListProps extends Omit<ComponentProps<'div', PopupMenuList.State>, 'children' | 'content'> {
|
|
506
506
|
/**
|
|
507
507
|
* Content to render inside the list.
|
|
508
508
|
* Can be a render function that receives the current search state.
|
|
@@ -525,12 +525,12 @@ interface PopupMenuListProps extends Omit<ComponentProps<'div', PopupMenuList.St
|
|
|
525
525
|
* Only used when `measureRowWidth` is true.
|
|
526
526
|
*/
|
|
527
527
|
maxRowWidth?: number;
|
|
528
|
+
/**
|
|
529
|
+
* Ref to the element that owns the list's scroll position.
|
|
530
|
+
* Use when the semantic list is rendered inside another scroll container.
|
|
531
|
+
*/
|
|
532
|
+
scrollContainerRef?: React.RefObject<HTMLElement | null>;
|
|
528
533
|
}
|
|
529
|
-
/**
|
|
530
|
-
* Container for popup menu items.
|
|
531
|
-
* Supports render props for accessing search state.
|
|
532
|
-
* Renders a `<div>` element with role="listbox".
|
|
533
|
-
*/
|
|
534
534
|
declare const PopupMenuList: React.ForwardRefExoticComponent<Omit<PopupMenuList.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
535
535
|
declare namespace PopupMenuList {
|
|
536
536
|
type State = PopupMenuListState;
|
|
@@ -609,7 +609,7 @@ declare namespace PopupMenuScrollDownArrow {
|
|
|
609
609
|
|
|
610
610
|
interface PopupMenuSurfaceState extends Record<string, unknown> {
|
|
611
611
|
}
|
|
612
|
-
interface PopupMenuSurfaceProps extends ComponentProps<'div', PopupMenuSurface.State
|
|
612
|
+
interface PopupMenuSurfaceProps extends Omit<ComponentProps<'div', PopupMenuSurface.State>, 'content'>, DataSurfaceProps {
|
|
613
613
|
/**
|
|
614
614
|
* Filter function for matching items against search query.
|
|
615
615
|
* Returns a score between 0 and 1 (0 = no match, > 0 = match).
|
|
@@ -656,6 +656,11 @@ interface PopupMenuSurfaceProps extends ComponentProps<'div', PopupMenuSurface.S
|
|
|
656
656
|
* @default true
|
|
657
657
|
*/
|
|
658
658
|
clearSearchOnClose?: boolean | 'after-exit';
|
|
659
|
+
/**
|
|
660
|
+
* Whether to reset the list scroll position when the search query changes.
|
|
661
|
+
* @default true
|
|
662
|
+
*/
|
|
663
|
+
resetScrollOnSearch?: boolean;
|
|
659
664
|
/**
|
|
660
665
|
* Whether to skip auto-focusing the input/list when this surface becomes the focus owner.
|
|
661
666
|
* Useful for Combobox where the input is outside the popup and should retain focus.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { P as PopupMenuOpenChangeReason, H as HighlightChangeEventDetails, C as ChangeEventDetails, G as GenericEventDetails } from './events-BPr8sRGH.cjs';
|
|
3
|
-
import { b as ListboxStore, V as VirtualItem, F as FilterFn, S as SearchNormalizer } from './ListboxStore-
|
|
4
|
-
import { G as GetQualifiedRowIdFn } from './types-
|
|
3
|
+
import { b as ListboxStore, V as VirtualItem, F as FilterFn, S as SearchNormalizer } from './ListboxStore-DcAFvpEj.cjs';
|
|
4
|
+
import { G as GetQualifiedRowIdFn, aq as DataSurfaceProps } from './types-w3v6Vp8X.cjs';
|
|
5
5
|
import { ReactStore } from '@base-ui/utils/store';
|
|
6
6
|
import { PopoverArrowProps, Popover, PopoverBackdropProps, PopoverPopupProps, PopoverPortalProps } from '@base-ui/react/popover';
|
|
7
7
|
import { a as ComponentRenderFn, C as ComponentProps } from './types-DT4FOOa2.cjs';
|
|
@@ -309,7 +309,7 @@ interface PopupMenuArrowProps extends PopoverArrowProps {
|
|
|
309
309
|
* Must be rendered inside `Popup`.
|
|
310
310
|
* Renders a `<div>` element.
|
|
311
311
|
*/
|
|
312
|
-
declare const PopupMenuArrow: React.ForwardRefExoticComponent<PopupMenuArrowProps & React.RefAttributes<HTMLDivElement>>;
|
|
312
|
+
declare const PopupMenuArrow: React.ForwardRefExoticComponent<Omit<PopupMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
313
313
|
declare namespace PopupMenuArrow {
|
|
314
314
|
type Props = PopupMenuArrowProps;
|
|
315
315
|
type State = Popover.Arrow.State;
|
|
@@ -339,7 +339,7 @@ interface PopupMenuBackdropProps extends PopoverBackdropProps {
|
|
|
339
339
|
*
|
|
340
340
|
* Renders a `<div>` element with `pointer-events: none`.
|
|
341
341
|
*/
|
|
342
|
-
declare const PopupMenuBackdrop: React.ForwardRefExoticComponent<PopupMenuBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
342
|
+
declare const PopupMenuBackdrop: React.ForwardRefExoticComponent<Omit<PopupMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
343
343
|
declare namespace PopupMenuBackdrop {
|
|
344
344
|
type Props = PopupMenuBackdropProps;
|
|
345
345
|
type State = Popover.Backdrop.State;
|
|
@@ -385,7 +385,7 @@ interface PopupMenuPopupProps extends Omit<PopoverPopupProps, 'className' | 'ren
|
|
|
385
385
|
*
|
|
386
386
|
* Renders a `<div>` element.
|
|
387
387
|
*/
|
|
388
|
-
declare const PopupMenuPopup: React.ForwardRefExoticComponent<PopupMenuPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
388
|
+
declare const PopupMenuPopup: React.ForwardRefExoticComponent<Omit<PopupMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
389
389
|
declare namespace PopupMenuPopup {
|
|
390
390
|
type Props = PopupMenuPopupProps;
|
|
391
391
|
type State = PopupMenuPopupState;
|
|
@@ -397,7 +397,7 @@ interface PopupMenuPortalProps extends PopoverPortalProps {
|
|
|
397
397
|
* A portal element that moves the popup to a different part of the DOM.
|
|
398
398
|
* By default, the portal element is appended to `<body>`.
|
|
399
399
|
*/
|
|
400
|
-
declare const PopupMenuPortal: React.ForwardRefExoticComponent<PopoverPortalProps & React.RefAttributes<HTMLDivElement>>;
|
|
400
|
+
declare const PopupMenuPortal: React.ForwardRefExoticComponent<Omit<PopoverPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
401
401
|
declare namespace PopupMenuPortal {
|
|
402
402
|
type Props = PopoverPortalProps;
|
|
403
403
|
type State = Popover.Portal.State;
|
|
@@ -502,7 +502,7 @@ interface PopupMenuListChildrenState {
|
|
|
502
502
|
}
|
|
503
503
|
interface PopupMenuListState extends Record<string, unknown> {
|
|
504
504
|
}
|
|
505
|
-
interface PopupMenuListProps extends Omit<ComponentProps<'div', PopupMenuList.State>, 'children'> {
|
|
505
|
+
interface PopupMenuListProps extends Omit<ComponentProps<'div', PopupMenuList.State>, 'children' | 'content'> {
|
|
506
506
|
/**
|
|
507
507
|
* Content to render inside the list.
|
|
508
508
|
* Can be a render function that receives the current search state.
|
|
@@ -525,12 +525,12 @@ interface PopupMenuListProps extends Omit<ComponentProps<'div', PopupMenuList.St
|
|
|
525
525
|
* Only used when `measureRowWidth` is true.
|
|
526
526
|
*/
|
|
527
527
|
maxRowWidth?: number;
|
|
528
|
+
/**
|
|
529
|
+
* Ref to the element that owns the list's scroll position.
|
|
530
|
+
* Use when the semantic list is rendered inside another scroll container.
|
|
531
|
+
*/
|
|
532
|
+
scrollContainerRef?: React.RefObject<HTMLElement | null>;
|
|
528
533
|
}
|
|
529
|
-
/**
|
|
530
|
-
* Container for popup menu items.
|
|
531
|
-
* Supports render props for accessing search state.
|
|
532
|
-
* Renders a `<div>` element with role="listbox".
|
|
533
|
-
*/
|
|
534
534
|
declare const PopupMenuList: React.ForwardRefExoticComponent<Omit<PopupMenuList.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
535
535
|
declare namespace PopupMenuList {
|
|
536
536
|
type State = PopupMenuListState;
|
|
@@ -609,7 +609,7 @@ declare namespace PopupMenuScrollDownArrow {
|
|
|
609
609
|
|
|
610
610
|
interface PopupMenuSurfaceState extends Record<string, unknown> {
|
|
611
611
|
}
|
|
612
|
-
interface PopupMenuSurfaceProps extends ComponentProps<'div', PopupMenuSurface.State
|
|
612
|
+
interface PopupMenuSurfaceProps extends Omit<ComponentProps<'div', PopupMenuSurface.State>, 'content'>, DataSurfaceProps {
|
|
613
613
|
/**
|
|
614
614
|
* Filter function for matching items against search query.
|
|
615
615
|
* Returns a score between 0 and 1 (0 = no match, > 0 = match).
|
|
@@ -656,6 +656,11 @@ interface PopupMenuSurfaceProps extends ComponentProps<'div', PopupMenuSurface.S
|
|
|
656
656
|
* @default true
|
|
657
657
|
*/
|
|
658
658
|
clearSearchOnClose?: boolean | 'after-exit';
|
|
659
|
+
/**
|
|
660
|
+
* Whether to reset the list scroll position when the search query changes.
|
|
661
|
+
* @default true
|
|
662
|
+
*/
|
|
663
|
+
resetScrollOnSearch?: boolean;
|
|
659
664
|
/**
|
|
660
665
|
* Whether to skip auto-focusing the input/list when this surface becomes the focus owner.
|
|
661
666
|
* Useful for Combobox where the input is outside the popup and should retain focus.
|
|
@@ -1433,6 +1433,11 @@ interface DataSurfaceProps {
|
|
|
1433
1433
|
* - `'after-exit'`: clear after exit animation completes
|
|
1434
1434
|
*/
|
|
1435
1435
|
clearSearchOnClose?: boolean | 'after-exit';
|
|
1436
|
+
/**
|
|
1437
|
+
* Whether to reset the list scroll position when the search query changes.
|
|
1438
|
+
* @default true
|
|
1439
|
+
*/
|
|
1440
|
+
resetScrollOnSearch?: boolean;
|
|
1436
1441
|
/**
|
|
1437
1442
|
* Function to generate qualified IDs for row items.
|
|
1438
1443
|
* Called for each item when rendering to produce IDs for:
|
|
@@ -1470,55 +1475,5 @@ interface DataListChildrenState {
|
|
|
1470
1475
|
/** Aggregate async loading state across all menus */
|
|
1471
1476
|
async: AsyncState;
|
|
1472
1477
|
}
|
|
1473
|
-
/**
|
|
1474
|
-
* Props for the DataList component.
|
|
1475
|
-
*/
|
|
1476
|
-
interface DataListProps {
|
|
1477
|
-
/**
|
|
1478
|
-
* Render function for the list content.
|
|
1479
|
-
* Receives the current state and returns JSX.
|
|
1480
|
-
*/
|
|
1481
|
-
children: (state: DataListChildrenState) => React.ReactNode;
|
|
1482
|
-
/** Accessible label for the listbox */
|
|
1483
|
-
label?: string;
|
|
1484
|
-
/** Additional class name */
|
|
1485
|
-
className?: string;
|
|
1486
|
-
/** Additional styles */
|
|
1487
|
-
style?: React.CSSProperties;
|
|
1488
|
-
/**
|
|
1489
|
-
* When true, measures row widths and applies `--row-width` CSS variable.
|
|
1490
|
-
* Keeps the list at the maximum width seen while scrolling.
|
|
1491
|
-
* Useful for virtualized lists where content width varies.
|
|
1492
|
-
* @default true
|
|
1493
|
-
*/
|
|
1494
|
-
measureRowWidth?: boolean;
|
|
1495
|
-
/**
|
|
1496
|
-
* Maximum width cap for row measurement (in pixels).
|
|
1497
|
-
* Only used when `measureRowWidth` is true.
|
|
1498
|
-
*/
|
|
1499
|
-
maxRowWidth?: number;
|
|
1500
|
-
}
|
|
1501
|
-
/**
|
|
1502
|
-
* State passed to the DataSubpages render function.
|
|
1503
|
-
*/
|
|
1504
|
-
interface DataSubpagesChildrenState {
|
|
1505
|
-
/** All subpage content nodes discovered in the current content tree. */
|
|
1506
|
-
subpages: DisplaySubpageNode[];
|
|
1507
|
-
/**
|
|
1508
|
-
* Function to render a subpage content node.
|
|
1509
|
-
* Calls the node's `renderContent` callback with page context and child renderer.
|
|
1510
|
-
*/
|
|
1511
|
-
renderSubpageContent: (subpage: DisplaySubpageNode) => React.ReactNode;
|
|
1512
|
-
}
|
|
1513
|
-
/**
|
|
1514
|
-
* Props for the DataSubpages component.
|
|
1515
|
-
*/
|
|
1516
|
-
interface DataSubpagesProps {
|
|
1517
|
-
/**
|
|
1518
|
-
* Optional render function.
|
|
1519
|
-
* If omitted, all subpage contents are rendered by default.
|
|
1520
|
-
*/
|
|
1521
|
-
children?: (state: DataSubpagesChildrenState) => React.ReactNode;
|
|
1522
|
-
}
|
|
1523
1478
|
|
|
1524
|
-
export { type
|
|
1479
|
+
export { type QueryDependentLoaderConfig as $, type AsyncLoaderConfig as A, type BreadcrumbNode as B, type CheckboxItemDef as C, type CheckboxItemRenderParams as D, type CheckboxItemRenderProps as E, type DataListChildrenState as F, type GetQualifiedRowIdFn as G, type DeepSearchConfig as H, type DisplayGroupNode as I, type DisplayNode as J, type DisplayRadioGroupNode as K, type DisplayRowNode as L, type DisplaySeparatorNode as M, type DisplaySubpageNode as N, type GroupBehavior as O, PopupMenuCheckboxItem as P, type GroupDef as Q, type GroupRenderContext as R, type GroupRenderParams as S, type IncludeInDeepSearch as T, type InitialQueryBehavior as U, type ItemDef as V, type ItemRenderParams as W, type ItemRenderProps as X, type LoaderComponentProps as Y, type NodeDef as Z, type QueryAsyncNodesConfig as _, PopupMenuItem as a, type RadioGroupBehavior as a0, type RadioGroupDef as a1, type RadioGroupRenderParams as a2, type RadioGroupRenderProps as a3, type RadioItemDef as a4, type RadioItemRenderParams as a5, type RadioItemRenderProps as a6, type RowRenderContext as a7, type ScoredNode as a8, type SeparatorDef as a9, type SeparatorRenderParams as aa, type StaticAsyncNodesConfig as ab, type StaticLoaderConfig as ac, type SubmenuDef as ad, type SubmenuRenderParams as ae, type SubmenuRenderProps as af, type SubpageContentRenderParams as ag, type SubpageDef as ah, type SubpageTriggerRenderParams as ai, type SubpageTriggerRenderProps as aj, defineRadioGroup as ak, isDisplayGroupNode as al, isDisplayRadioGroupNode as am, isDisplayRowNode as an, isDisplaySeparatorNode as ao, type GetQualifiedRowIdContext as ap, type DataSurfaceProps as aq, PopupMenuRadioGroup as b, PopupMenuRadioItem as c, PopupMenuSubmenuTrigger as d, PopupMenuSubpageTrigger as e, type PopupMenuCheckboxItemProps as f, type PopupMenuCheckboxItemState as g, type PopupMenuItemProps as h, type PopupMenuItemState as i, type PopupMenuRadioGroupProps as j, type PopupMenuRadioGroupState as k, type PopupMenuRadioItemProps as l, type PopupMenuRadioItemState as m, type PopupMenuSubmenuTriggerProps as n, type PopupMenuSubmenuTriggerState as o, type PopupMenuSubpageTriggerProps as p, type PopupMenuSubpageTriggerState as q, type AsyncLoaderFetchStatus as r, type AsyncLoaderLoadingPhase as s, type AsyncLoaderResult as t, type AsyncLoaderSource as u, type AsyncLoaderStatus as v, type AsyncNodesConfig as w, type AsyncRenderState as x, type AsyncResultBehavior as y, type AsyncState as z };
|
|
@@ -1433,6 +1433,11 @@ interface DataSurfaceProps {
|
|
|
1433
1433
|
* - `'after-exit'`: clear after exit animation completes
|
|
1434
1434
|
*/
|
|
1435
1435
|
clearSearchOnClose?: boolean | 'after-exit';
|
|
1436
|
+
/**
|
|
1437
|
+
* Whether to reset the list scroll position when the search query changes.
|
|
1438
|
+
* @default true
|
|
1439
|
+
*/
|
|
1440
|
+
resetScrollOnSearch?: boolean;
|
|
1436
1441
|
/**
|
|
1437
1442
|
* Function to generate qualified IDs for row items.
|
|
1438
1443
|
* Called for each item when rendering to produce IDs for:
|
|
@@ -1470,55 +1475,5 @@ interface DataListChildrenState {
|
|
|
1470
1475
|
/** Aggregate async loading state across all menus */
|
|
1471
1476
|
async: AsyncState;
|
|
1472
1477
|
}
|
|
1473
|
-
/**
|
|
1474
|
-
* Props for the DataList component.
|
|
1475
|
-
*/
|
|
1476
|
-
interface DataListProps {
|
|
1477
|
-
/**
|
|
1478
|
-
* Render function for the list content.
|
|
1479
|
-
* Receives the current state and returns JSX.
|
|
1480
|
-
*/
|
|
1481
|
-
children: (state: DataListChildrenState) => React.ReactNode;
|
|
1482
|
-
/** Accessible label for the listbox */
|
|
1483
|
-
label?: string;
|
|
1484
|
-
/** Additional class name */
|
|
1485
|
-
className?: string;
|
|
1486
|
-
/** Additional styles */
|
|
1487
|
-
style?: React.CSSProperties;
|
|
1488
|
-
/**
|
|
1489
|
-
* When true, measures row widths and applies `--row-width` CSS variable.
|
|
1490
|
-
* Keeps the list at the maximum width seen while scrolling.
|
|
1491
|
-
* Useful for virtualized lists where content width varies.
|
|
1492
|
-
* @default true
|
|
1493
|
-
*/
|
|
1494
|
-
measureRowWidth?: boolean;
|
|
1495
|
-
/**
|
|
1496
|
-
* Maximum width cap for row measurement (in pixels).
|
|
1497
|
-
* Only used when `measureRowWidth` is true.
|
|
1498
|
-
*/
|
|
1499
|
-
maxRowWidth?: number;
|
|
1500
|
-
}
|
|
1501
|
-
/**
|
|
1502
|
-
* State passed to the DataSubpages render function.
|
|
1503
|
-
*/
|
|
1504
|
-
interface DataSubpagesChildrenState {
|
|
1505
|
-
/** All subpage content nodes discovered in the current content tree. */
|
|
1506
|
-
subpages: DisplaySubpageNode[];
|
|
1507
|
-
/**
|
|
1508
|
-
* Function to render a subpage content node.
|
|
1509
|
-
* Calls the node's `renderContent` callback with page context and child renderer.
|
|
1510
|
-
*/
|
|
1511
|
-
renderSubpageContent: (subpage: DisplaySubpageNode) => React.ReactNode;
|
|
1512
|
-
}
|
|
1513
|
-
/**
|
|
1514
|
-
* Props for the DataSubpages component.
|
|
1515
|
-
*/
|
|
1516
|
-
interface DataSubpagesProps {
|
|
1517
|
-
/**
|
|
1518
|
-
* Optional render function.
|
|
1519
|
-
* If omitted, all subpage contents are rendered by default.
|
|
1520
|
-
*/
|
|
1521
|
-
children?: (state: DataSubpagesChildrenState) => React.ReactNode;
|
|
1522
|
-
}
|
|
1523
1478
|
|
|
1524
|
-
export { type
|
|
1479
|
+
export { type QueryDependentLoaderConfig as $, type AsyncLoaderConfig as A, type BreadcrumbNode as B, type CheckboxItemDef as C, type CheckboxItemRenderParams as D, type CheckboxItemRenderProps as E, type DataListChildrenState as F, type GetQualifiedRowIdFn as G, type DeepSearchConfig as H, type DisplayGroupNode as I, type DisplayNode as J, type DisplayRadioGroupNode as K, type DisplayRowNode as L, type DisplaySeparatorNode as M, type DisplaySubpageNode as N, type GroupBehavior as O, PopupMenuCheckboxItem as P, type GroupDef as Q, type GroupRenderContext as R, type GroupRenderParams as S, type IncludeInDeepSearch as T, type InitialQueryBehavior as U, type ItemDef as V, type ItemRenderParams as W, type ItemRenderProps as X, type LoaderComponentProps as Y, type NodeDef as Z, type QueryAsyncNodesConfig as _, PopupMenuItem as a, type RadioGroupBehavior as a0, type RadioGroupDef as a1, type RadioGroupRenderParams as a2, type RadioGroupRenderProps as a3, type RadioItemDef as a4, type RadioItemRenderParams as a5, type RadioItemRenderProps as a6, type RowRenderContext as a7, type ScoredNode as a8, type SeparatorDef as a9, type SeparatorRenderParams as aa, type StaticAsyncNodesConfig as ab, type StaticLoaderConfig as ac, type SubmenuDef as ad, type SubmenuRenderParams as ae, type SubmenuRenderProps as af, type SubpageContentRenderParams as ag, type SubpageDef as ah, type SubpageTriggerRenderParams as ai, type SubpageTriggerRenderProps as aj, defineRadioGroup as ak, isDisplayGroupNode as al, isDisplayRadioGroupNode as am, isDisplayRowNode as an, isDisplaySeparatorNode as ao, type GetQualifiedRowIdContext as ap, type DataSurfaceProps as aq, PopupMenuRadioGroup as b, PopupMenuRadioItem as c, PopupMenuSubmenuTrigger as d, PopupMenuSubpageTrigger as e, type PopupMenuCheckboxItemProps as f, type PopupMenuCheckboxItemState as g, type PopupMenuItemProps as h, type PopupMenuItemState as i, type PopupMenuRadioGroupProps as j, type PopupMenuRadioGroupState as k, type PopupMenuRadioItemProps as l, type PopupMenuRadioItemState as m, type PopupMenuSubmenuTriggerProps as n, type PopupMenuSubmenuTriggerState as o, type PopupMenuSubpageTriggerProps as p, type PopupMenuSubpageTriggerState as q, type AsyncLoaderFetchStatus as r, type AsyncLoaderLoadingPhase as s, type AsyncLoaderResult as t, type AsyncLoaderSource as u, type AsyncLoaderStatus as v, type AsyncNodesConfig as w, type AsyncRenderState as x, type AsyncResultBehavior as y, type AsyncState as z };
|
|
@@ -915,7 +915,7 @@ interface SeekSliderState {
|
|
|
915
915
|
hoverTime: number | null;
|
|
916
916
|
hoverProgress: number | null;
|
|
917
917
|
}
|
|
918
|
-
declare const SeekSliderControl: React.ForwardRefExoticComponent<_base_ui_react_slider.SliderControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
918
|
+
declare const SeekSliderControl: React.ForwardRefExoticComponent<Omit<_base_ui_react_slider.SliderControlProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
919
919
|
interface SeekSliderTrackProps extends Omit<React.ComponentPropsWithRef<typeof Slider.Track>, 'render' | 'children'> {
|
|
920
920
|
render?: RenderProp<SeekSliderTrackRenderProps, SeekSliderTrackState>;
|
|
921
921
|
children?: React.ReactNode;
|
|
@@ -936,9 +936,10 @@ interface SeekSliderProgressRenderProps {
|
|
|
936
936
|
interface SeekSliderProgressState {
|
|
937
937
|
progress: number;
|
|
938
938
|
}
|
|
939
|
-
interface SeekSliderThumbProps extends Omit<React.ComponentPropsWithRef<typeof Slider.Thumb>, 'render' | 'children'> {
|
|
939
|
+
interface SeekSliderThumbProps extends Omit<React.ComponentPropsWithRef<typeof Slider.Thumb>, 'render' | 'children' | 'style'> {
|
|
940
940
|
render?: RenderProp<SeekSliderThumbRenderProps, SeekSliderThumbState>;
|
|
941
941
|
children?: React.ReactNode;
|
|
942
|
+
style?: React.CSSProperties;
|
|
942
943
|
}
|
|
943
944
|
interface SeekSliderThumbRenderProps {
|
|
944
945
|
ref: React.Ref<any>;
|
|
@@ -1028,7 +1029,7 @@ declare namespace SeekSlider {
|
|
|
1028
1029
|
type State = SeekSliderState;
|
|
1029
1030
|
type RenderProps = SeekSliderRenderProps;
|
|
1030
1031
|
}
|
|
1031
|
-
declare const SeekSliderTrack: React.ForwardRefExoticComponent<Omit<SeekSliderTrackProps, "ref"> & React.RefAttributes<
|
|
1032
|
+
declare const SeekSliderTrack: React.ForwardRefExoticComponent<Omit<SeekSliderTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1032
1033
|
declare namespace SeekSliderTrack {
|
|
1033
1034
|
type Props = SeekSliderTrackProps;
|
|
1034
1035
|
type State = SeekSliderTrackState;
|
|
@@ -1256,10 +1257,10 @@ interface VolumeSliderState {
|
|
|
1256
1257
|
pressing: boolean;
|
|
1257
1258
|
dragging: boolean;
|
|
1258
1259
|
}
|
|
1259
|
-
declare const VolumeSliderControl: React.ForwardRefExoticComponent<_base_ui_react_slider.SliderControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
1260
|
+
declare const VolumeSliderControl: React.ForwardRefExoticComponent<Omit<_base_ui_react_slider.SliderControlProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1260
1261
|
interface VolumeSliderTrackProps extends React.ComponentPropsWithRef<typeof Slider.Track> {
|
|
1261
1262
|
}
|
|
1262
|
-
declare const VolumeSliderTrack: React.ForwardRefExoticComponent<Omit<VolumeSliderTrackProps, "ref"> & React.RefAttributes<
|
|
1263
|
+
declare const VolumeSliderTrack: React.ForwardRefExoticComponent<Omit<VolumeSliderTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1263
1264
|
interface VolumeSliderRangeProps extends React.ComponentPropsWithRef<typeof Slider.Indicator> {
|
|
1264
1265
|
}
|
|
1265
1266
|
declare const VolumeSliderRange: React.ForwardRefExoticComponent<Omit<VolumeSliderRangeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -915,7 +915,7 @@ interface SeekSliderState {
|
|
|
915
915
|
hoverTime: number | null;
|
|
916
916
|
hoverProgress: number | null;
|
|
917
917
|
}
|
|
918
|
-
declare const SeekSliderControl: React.ForwardRefExoticComponent<_base_ui_react_slider.SliderControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
918
|
+
declare const SeekSliderControl: React.ForwardRefExoticComponent<Omit<_base_ui_react_slider.SliderControlProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
919
919
|
interface SeekSliderTrackProps extends Omit<React.ComponentPropsWithRef<typeof Slider.Track>, 'render' | 'children'> {
|
|
920
920
|
render?: RenderProp<SeekSliderTrackRenderProps, SeekSliderTrackState>;
|
|
921
921
|
children?: React.ReactNode;
|
|
@@ -936,9 +936,10 @@ interface SeekSliderProgressRenderProps {
|
|
|
936
936
|
interface SeekSliderProgressState {
|
|
937
937
|
progress: number;
|
|
938
938
|
}
|
|
939
|
-
interface SeekSliderThumbProps extends Omit<React.ComponentPropsWithRef<typeof Slider.Thumb>, 'render' | 'children'> {
|
|
939
|
+
interface SeekSliderThumbProps extends Omit<React.ComponentPropsWithRef<typeof Slider.Thumb>, 'render' | 'children' | 'style'> {
|
|
940
940
|
render?: RenderProp<SeekSliderThumbRenderProps, SeekSliderThumbState>;
|
|
941
941
|
children?: React.ReactNode;
|
|
942
|
+
style?: React.CSSProperties;
|
|
942
943
|
}
|
|
943
944
|
interface SeekSliderThumbRenderProps {
|
|
944
945
|
ref: React.Ref<any>;
|
|
@@ -1028,7 +1029,7 @@ declare namespace SeekSlider {
|
|
|
1028
1029
|
type State = SeekSliderState;
|
|
1029
1030
|
type RenderProps = SeekSliderRenderProps;
|
|
1030
1031
|
}
|
|
1031
|
-
declare const SeekSliderTrack: React.ForwardRefExoticComponent<Omit<SeekSliderTrackProps, "ref"> & React.RefAttributes<
|
|
1032
|
+
declare const SeekSliderTrack: React.ForwardRefExoticComponent<Omit<SeekSliderTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1032
1033
|
declare namespace SeekSliderTrack {
|
|
1033
1034
|
type Props = SeekSliderTrackProps;
|
|
1034
1035
|
type State = SeekSliderTrackState;
|
|
@@ -1256,10 +1257,10 @@ interface VolumeSliderState {
|
|
|
1256
1257
|
pressing: boolean;
|
|
1257
1258
|
dragging: boolean;
|
|
1258
1259
|
}
|
|
1259
|
-
declare const VolumeSliderControl: React.ForwardRefExoticComponent<_base_ui_react_slider.SliderControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
1260
|
+
declare const VolumeSliderControl: React.ForwardRefExoticComponent<Omit<_base_ui_react_slider.SliderControlProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1260
1261
|
interface VolumeSliderTrackProps extends React.ComponentPropsWithRef<typeof Slider.Track> {
|
|
1261
1262
|
}
|
|
1262
|
-
declare const VolumeSliderTrack: React.ForwardRefExoticComponent<Omit<VolumeSliderTrackProps, "ref"> & React.RefAttributes<
|
|
1263
|
+
declare const VolumeSliderTrack: React.ForwardRefExoticComponent<Omit<VolumeSliderTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1263
1264
|
interface VolumeSliderRangeProps extends React.ComponentPropsWithRef<typeof Slider.Indicator> {
|
|
1264
1265
|
}
|
|
1265
1266
|
declare const VolumeSliderRange: React.ForwardRefExoticComponent<Omit<VolumeSliderRangeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|