@baseline-ui/core 0.53.0 → 0.54.0
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/Acknowledgements.md +4780 -2543
- package/dist/index.css +1 -1
- package/dist/index.d.mts +118 -50
- package/dist/index.d.ts +118 -50
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +15 -15
- package/sbom.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Time, CalendarDateTime, ZonedDateTime, CalendarDate, CalendarIdentifier
|
|
|
4
4
|
import { NumberFormatOptions } from '@internationalized/number';
|
|
5
5
|
import { LocalizedStrings } from '@internationalized/message';
|
|
6
6
|
import { Theme, Sprinkles } from '@baseline-ui/tokens';
|
|
7
|
-
import { PanelProps as PanelProps$1,
|
|
7
|
+
import { PanelProps as PanelProps$1, PanelImperativeHandle, GroupProps as GroupProps$1, SeparatorProps as SeparatorProps$2 } from 'react-resizable-panels';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
export { MotionGlobalConfig } from 'motion/react';
|
|
10
10
|
|
|
@@ -437,17 +437,17 @@ interface SingleSelection {
|
|
|
437
437
|
/** The currently selected key in the collection (controlled). */
|
|
438
438
|
selectedKey?: Key | null,
|
|
439
439
|
/** The initial selected key in the collection (uncontrolled). */
|
|
440
|
-
defaultSelectedKey?: Key,
|
|
440
|
+
defaultSelectedKey?: Key | null,
|
|
441
441
|
/** Handler that is called when the selection changes. */
|
|
442
442
|
onSelectionChange?: (key: Key | null) => void
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
type SelectionMode$
|
|
445
|
+
type SelectionMode$3 = 'none' | 'single' | 'multiple';
|
|
446
446
|
type SelectionBehavior = 'toggle' | 'replace';
|
|
447
447
|
type Selection$1 = 'all' | Set<Key>;
|
|
448
448
|
interface MultipleSelection {
|
|
449
449
|
/** The type of selection that is allowed in the collection. */
|
|
450
|
-
selectionMode?: SelectionMode$
|
|
450
|
+
selectionMode?: SelectionMode$3,
|
|
451
451
|
/** Whether the collection allows empty selection. */
|
|
452
452
|
disallowEmptySelection?: boolean,
|
|
453
453
|
/** The currently selected keys in the collection (controlled). */
|
|
@@ -1001,6 +1001,11 @@ interface PressEvent {
|
|
|
1001
1001
|
x: number,
|
|
1002
1002
|
/** Y position relative to the target. */
|
|
1003
1003
|
y: number,
|
|
1004
|
+
/**
|
|
1005
|
+
* The key that triggered the press event, if it was triggered by a keyboard interaction.
|
|
1006
|
+
* This is useful for differentiating between Space and Enter key presses.
|
|
1007
|
+
*/
|
|
1008
|
+
key?: string,
|
|
1004
1009
|
/**
|
|
1005
1010
|
* By default, press events stop propagation to parent elements.
|
|
1006
1011
|
* In cases where a handler decides not to handle a specific event,
|
|
@@ -1350,7 +1355,7 @@ interface AriaBaseButtonProps extends FocusableDOMProps, AriaLabelingProps {
|
|
|
1350
1355
|
* The URL that processes the information submitted by the button.
|
|
1351
1356
|
* Overrides the action attribute of the button's form owner.
|
|
1352
1357
|
*/
|
|
1353
|
-
formAction?:
|
|
1358
|
+
formAction?: ButtonHTMLAttributes<HTMLButtonElement>['formAction'],
|
|
1354
1359
|
/** Indicates how to encode the form data that is submitted. */
|
|
1355
1360
|
formEncType?: string,
|
|
1356
1361
|
/** Indicates the HTTP method used to submit the form. */
|
|
@@ -1660,22 +1665,48 @@ interface AriaColorSwatchProps extends AriaLabelingProps, DOMProps {
|
|
|
1660
1665
|
|
|
1661
1666
|
|
|
1662
1667
|
type MenuTriggerAction = 'focus' | 'input' | 'manual';
|
|
1668
|
+
type SelectionMode$2 = 'single' | 'multiple';
|
|
1669
|
+
type ValueType$1<M extends SelectionMode$2> = M extends 'single' ? Key | null : Key[];
|
|
1670
|
+
type ValidationType$1<M extends SelectionMode$2> = M extends 'single' ? Key : Key[];
|
|
1663
1671
|
|
|
1664
|
-
interface ComboBoxValidationValue {
|
|
1665
|
-
/**
|
|
1672
|
+
interface ComboBoxValidationValue<M extends SelectionMode$2 = 'single'> {
|
|
1673
|
+
/**
|
|
1674
|
+
* The selected key in the ComboBox.
|
|
1675
|
+
* @deprecated
|
|
1676
|
+
*/
|
|
1666
1677
|
selectedKey: Key | null,
|
|
1678
|
+
/** The keys of the currently selected items. */
|
|
1679
|
+
value: ValidationType$1<M>,
|
|
1667
1680
|
/** The value of the ComboBox input. */
|
|
1668
1681
|
inputValue: string
|
|
1669
1682
|
}
|
|
1670
1683
|
|
|
1671
|
-
interface ComboBoxProps$1<T
|
|
1684
|
+
interface ComboBoxProps$1<T, M extends SelectionMode$2 = 'single'> extends CollectionBase<T>, InputBase, ValueBase<ValueType$1<M>>, TextInputBase, Validation<ComboBoxValidationValue>, FocusableProps$1<HTMLInputElement>, LabelableProps, HelpTextProps {
|
|
1672
1685
|
/** The list of ComboBox items (uncontrolled). */
|
|
1673
1686
|
defaultItems?: Iterable<T>,
|
|
1674
1687
|
/** The list of ComboBox items (controlled). */
|
|
1675
1688
|
items?: Iterable<T>,
|
|
1676
1689
|
/** Method that is called when the open state of the menu changes. Returns the new open state and the action that caused the opening of the menu. */
|
|
1677
1690
|
onOpenChange?: (isOpen: boolean, menuTrigger?: MenuTriggerAction) => void,
|
|
1678
|
-
/**
|
|
1691
|
+
/**
|
|
1692
|
+
* Whether single or multiple selection is enabled.
|
|
1693
|
+
* @default 'single'
|
|
1694
|
+
*/
|
|
1695
|
+
selectionMode?: M,
|
|
1696
|
+
/**
|
|
1697
|
+
* The currently selected key in the collection (controlled).
|
|
1698
|
+
* @deprecated
|
|
1699
|
+
*/
|
|
1700
|
+
selectedKey?: Key | null,
|
|
1701
|
+
/**
|
|
1702
|
+
* The initial selected key in the collection (uncontrolled).
|
|
1703
|
+
* @deprecated
|
|
1704
|
+
*/
|
|
1705
|
+
defaultSelectedKey?: Key | null,
|
|
1706
|
+
/**
|
|
1707
|
+
* Handler that is called when the selection changes.
|
|
1708
|
+
* @deprecated
|
|
1709
|
+
*/
|
|
1679
1710
|
onSelectionChange?: (key: Key | null) => void,
|
|
1680
1711
|
/** The value of the ComboBox input (controlled). */
|
|
1681
1712
|
inputValue?: string,
|
|
@@ -1684,7 +1715,7 @@ interface ComboBoxProps$1<T> extends CollectionBase<T>, Omit<SingleSelection, 'd
|
|
|
1684
1715
|
/** Handler that is called when the ComboBox input value changes. */
|
|
1685
1716
|
onInputChange?: (value: string) => void,
|
|
1686
1717
|
/** Whether the ComboBox allows a non-item matching input value to be set. */
|
|
1687
|
-
|
|
1718
|
+
allowsCustomValue?: boolean,
|
|
1688
1719
|
// /**
|
|
1689
1720
|
// * Whether the Combobox should only suggest matching options or autocomplete the field with the nearest matching option.
|
|
1690
1721
|
// * @default 'suggest'
|
|
@@ -1697,7 +1728,7 @@ interface ComboBoxProps$1<T> extends CollectionBase<T>, Omit<SingleSelection, 'd
|
|
|
1697
1728
|
menuTrigger?: MenuTriggerAction
|
|
1698
1729
|
}
|
|
1699
1730
|
|
|
1700
|
-
interface AriaComboBoxProps<T> extends ComboBoxProps$1<T>, DOMProps, InputDOMProps, AriaLabelingProps {
|
|
1731
|
+
interface AriaComboBoxProps<T, M extends SelectionMode$2 = 'single'> extends ComboBoxProps$1<T, M>, DOMProps, InputDOMProps, AriaLabelingProps {
|
|
1701
1732
|
/** Whether keyboard navigation is circular. */
|
|
1702
1733
|
shouldFocusWrap?: boolean
|
|
1703
1734
|
}
|
|
@@ -1766,7 +1797,7 @@ interface FocusState {
|
|
|
1766
1797
|
}
|
|
1767
1798
|
interface MultipleSelectionState extends FocusState {
|
|
1768
1799
|
/** The type of selection that is allowed in the collection. */
|
|
1769
|
-
readonly selectionMode: SelectionMode$
|
|
1800
|
+
readonly selectionMode: SelectionMode$3;
|
|
1770
1801
|
/** The selection behavior for the collection. */
|
|
1771
1802
|
readonly selectionBehavior: SelectionBehavior;
|
|
1772
1803
|
/** Sets the selection behavior for the collection. */
|
|
@@ -1784,7 +1815,7 @@ interface MultipleSelectionState extends FocusState {
|
|
|
1784
1815
|
}
|
|
1785
1816
|
interface MultipleSelectionManager extends FocusState {
|
|
1786
1817
|
/** The type of selection that is allowed in the collection. */
|
|
1787
|
-
readonly selectionMode: SelectionMode$
|
|
1818
|
+
readonly selectionMode: SelectionMode$3;
|
|
1788
1819
|
/** The selection behavior for the collection. */
|
|
1789
1820
|
readonly selectionBehavior: SelectionBehavior;
|
|
1790
1821
|
/** Whether the collection allows empty selection. */
|
|
@@ -1866,7 +1897,7 @@ declare class SelectionManager implements MultipleSelectionManager {
|
|
|
1866
1897
|
/**
|
|
1867
1898
|
* The type of selection that is allowed in the collection.
|
|
1868
1899
|
*/
|
|
1869
|
-
get selectionMode(): SelectionMode$
|
|
1900
|
+
get selectionMode(): SelectionMode$3;
|
|
1870
1901
|
/**
|
|
1871
1902
|
* Whether the collection allows empty selection.
|
|
1872
1903
|
*/
|
|
@@ -2133,7 +2164,7 @@ interface OverlayTriggerState {
|
|
|
2133
2164
|
}
|
|
2134
2165
|
|
|
2135
2166
|
type FilterFn = (textValue: string, inputValue: string) => boolean;
|
|
2136
|
-
interface ComboBoxStateOptions<T> extends Omit<ComboBoxProps$1<T>, 'children'>, CollectionStateBase<T> {
|
|
2167
|
+
interface ComboBoxStateOptions<T, M extends SelectionMode$2 = 'single'> extends Omit<ComboBoxProps$1<T, M>, 'children'>, CollectionStateBase<T> {
|
|
2137
2168
|
/** The filter function used to determine if a option should be included in the combo box list. */
|
|
2138
2169
|
defaultFilter?: FilterFn;
|
|
2139
2170
|
/** Whether the combo box allows the menu to be open when the collection is empty. */
|
|
@@ -2142,7 +2173,7 @@ interface ComboBoxStateOptions<T> extends Omit<ComboBoxProps$1<T>, 'children'>,
|
|
|
2142
2173
|
shouldCloseOnBlur?: boolean;
|
|
2143
2174
|
}
|
|
2144
2175
|
|
|
2145
|
-
interface AriaComboBoxOptions<T> extends Omit<AriaComboBoxProps<T>, 'children'> {
|
|
2176
|
+
interface AriaComboBoxOptions<T, M extends SelectionMode$2 = 'single'> extends Omit<AriaComboBoxProps<T, M>, 'children'> {
|
|
2146
2177
|
/** The ref for the input element. */
|
|
2147
2178
|
inputRef: RefObject<HTMLInputElement | null>;
|
|
2148
2179
|
/** The ref for the list box popover. */
|
|
@@ -2331,8 +2362,7 @@ type NullToObject<T> = T extends (null | undefined) ? {} : T;
|
|
|
2331
2362
|
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
2332
2363
|
/**
|
|
2333
2364
|
* Merges multiple props objects together. Event handlers are chained,
|
|
2334
|
-
* classNames are combined,
|
|
2335
|
-
* will trigger a side-effect and re-render components hooked up with `useId`.
|
|
2365
|
+
* classNames are combined, ids are deduplicated, and refs are merged.
|
|
2336
2366
|
* For all other props, the last prop object overrides all previous ones.
|
|
2337
2367
|
* @param args - Multiple sets of props to merge together.
|
|
2338
2368
|
*/
|
|
@@ -2392,7 +2422,7 @@ interface FocusScopeProps {
|
|
|
2392
2422
|
restoreFocus?: boolean;
|
|
2393
2423
|
/** Whether to auto focus the first focusable element in the focus scope on mount. */
|
|
2394
2424
|
autoFocus?: boolean;
|
|
2395
|
-
/** The owner document to
|
|
2425
|
+
/** The owner document for the focus scope. Used to support iframes and shadow DOM. */
|
|
2396
2426
|
ownerDocument?: Document;
|
|
2397
2427
|
}
|
|
2398
2428
|
interface FocusManagerOptions {
|
|
@@ -2852,11 +2882,11 @@ declare function useCollator(options?: Intl.CollatorOptions): Intl.Collator;
|
|
|
2852
2882
|
|
|
2853
2883
|
interface Filter {
|
|
2854
2884
|
/** Returns whether a string starts with a given substring. */
|
|
2855
|
-
startsWith(string: string, substring: string)
|
|
2885
|
+
startsWith: (string: string, substring: string) => boolean;
|
|
2856
2886
|
/** Returns whether a string ends with a given substring. */
|
|
2857
|
-
endsWith(string: string, substring: string)
|
|
2887
|
+
endsWith: (string: string, substring: string) => boolean;
|
|
2858
2888
|
/** Returns whether a string contains a given substring. */
|
|
2859
|
-
contains(string: string, substring: string)
|
|
2889
|
+
contains: (string: string, substring: string) => boolean;
|
|
2860
2890
|
}
|
|
2861
2891
|
/**
|
|
2862
2892
|
* Provides localized string search functionality that is useful for filtering or matching items
|
|
@@ -3356,7 +3386,7 @@ interface AriaProgressBarProps extends ProgressBarProps$1, DOMProps, AriaLabelin
|
|
|
3356
3386
|
|
|
3357
3387
|
|
|
3358
3388
|
|
|
3359
|
-
interface RadioGroupProps$1 extends ValueBase<string|null, string>, InputBase, Pick<InputDOMProps, 'name'>, Validation<string
|
|
3389
|
+
interface RadioGroupProps$1 extends ValueBase<string|null, string>, InputBase, Pick<InputDOMProps, 'name'>, Validation<string>, LabelableProps, HelpTextProps, FocusEvents {
|
|
3360
3390
|
/**
|
|
3361
3391
|
* The axis the Radio Button(s) should align with.
|
|
3362
3392
|
* @default 'vertical'
|
|
@@ -3415,10 +3445,11 @@ interface AriaSearchFieldProps extends SearchFieldProps, Omit<AriaTextFieldProps
|
|
|
3415
3445
|
|
|
3416
3446
|
|
|
3417
3447
|
type SelectionMode$1 = 'single' | 'multiple';
|
|
3418
|
-
type ValueType<M extends SelectionMode$1> = M extends 'single' ? Key | null : Key[];
|
|
3448
|
+
type ValueType<M extends SelectionMode$1> = M extends 'single' ? Key | null : readonly Key[];
|
|
3449
|
+
type ChangeValueType<M extends SelectionMode$1> = M extends 'single' ? Key | null : Key[];
|
|
3419
3450
|
type ValidationType<M extends SelectionMode$1> = M extends 'single' ? Key : Key[];
|
|
3420
3451
|
|
|
3421
|
-
interface SelectProps$1<T, M extends SelectionMode$1 = 'single'> extends CollectionBase<T>, Omit<InputBase, 'isReadOnly'>, ValueBase<ValueType<M>>, Validation<ValidationType<M>>, HelpTextProps, LabelableProps, TextInputBase, FocusableProps$1 {
|
|
3452
|
+
interface SelectProps$1<T, M extends SelectionMode$1 = 'single'> extends CollectionBase<T>, Omit<InputBase, 'isReadOnly'>, ValueBase<ValueType<M>, ChangeValueType<M>>, Validation<ValidationType<M>>, HelpTextProps, LabelableProps, TextInputBase, FocusableProps$1 {
|
|
3422
3453
|
/**
|
|
3423
3454
|
* Whether single or multiple selection is enabled.
|
|
3424
3455
|
* @default 'single'
|
|
@@ -3433,7 +3464,7 @@ interface SelectProps$1<T, M extends SelectionMode$1 = 'single'> extends Collect
|
|
|
3433
3464
|
* The initial selected key in the collection (uncontrolled).
|
|
3434
3465
|
* @deprecated
|
|
3435
3466
|
*/
|
|
3436
|
-
defaultSelectedKey?: Key,
|
|
3467
|
+
defaultSelectedKey?: Key | null,
|
|
3437
3468
|
/**
|
|
3438
3469
|
* Handler that is called when the selection changes.
|
|
3439
3470
|
* @deprecated
|
|
@@ -3444,7 +3475,9 @@ interface SelectProps$1<T, M extends SelectionMode$1 = 'single'> extends Collect
|
|
|
3444
3475
|
/** Sets the default open state of the menu. */
|
|
3445
3476
|
defaultOpen?: boolean,
|
|
3446
3477
|
/** Method that is called when the open state of the menu changes. */
|
|
3447
|
-
onOpenChange?: (isOpen: boolean) => void
|
|
3478
|
+
onOpenChange?: (isOpen: boolean) => void,
|
|
3479
|
+
/** Whether the select should be allowed to be open when the collection is empty. */
|
|
3480
|
+
allowsEmptyCollection?: boolean
|
|
3448
3481
|
}
|
|
3449
3482
|
|
|
3450
3483
|
interface AriaSelectProps<T, M extends SelectionMode$1 = 'single'> extends SelectProps$1<T, M>, DOMProps, AriaLabelingProps, FocusableDOMProps {
|
|
@@ -3574,12 +3607,16 @@ declare let _Item: <T>(props: ItemProps$1<T>) => JSX.Element;
|
|
|
3574
3607
|
|
|
3575
3608
|
|
|
3576
3609
|
|
|
3577
|
-
interface TabListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection' | 'onSelectionChange'> {
|
|
3610
|
+
interface TabListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection' | 'selectedKey' | 'defaultSelectedKeys' | 'onSelectionChange'> {
|
|
3578
3611
|
/**
|
|
3579
3612
|
* Whether the TabList is disabled.
|
|
3580
3613
|
* Shows that a selection exists, but is not available in that circumstance.
|
|
3581
3614
|
*/
|
|
3582
3615
|
isDisabled?: boolean,
|
|
3616
|
+
/** The currently selected key in the collection (controlled). */
|
|
3617
|
+
selectedKey?: Key,
|
|
3618
|
+
/** The initial selected keys in the collection (uncontrolled). */
|
|
3619
|
+
defaultSelectedKey?: Key,
|
|
3583
3620
|
/** Handler that is called when the selection changes. */
|
|
3584
3621
|
onSelectionChange?: (key: Key) => void
|
|
3585
3622
|
}
|
|
@@ -3714,7 +3751,13 @@ interface TooltipTriggerProps extends OverlayTriggerProps$1 {
|
|
|
3714
3751
|
* By default, opens for both focus and hover. Can be made to open only for focus.
|
|
3715
3752
|
* @default 'hover'
|
|
3716
3753
|
*/
|
|
3717
|
-
trigger?: 'hover' | 'focus'
|
|
3754
|
+
trigger?: 'hover' | 'focus',
|
|
3755
|
+
|
|
3756
|
+
/**
|
|
3757
|
+
* Whether the tooltip should close when the trigger is pressed.
|
|
3758
|
+
* @default true
|
|
3759
|
+
*/
|
|
3760
|
+
shouldCloseOnPress?: boolean
|
|
3718
3761
|
}
|
|
3719
3762
|
|
|
3720
3763
|
interface TooltipProps$1 {
|
|
@@ -3831,9 +3874,9 @@ interface ListData<T> {
|
|
|
3831
3874
|
/**
|
|
3832
3875
|
* Updates an item in the list.
|
|
3833
3876
|
* @param key - The key of the item to update.
|
|
3834
|
-
* @param newValue - The new value for the item.
|
|
3877
|
+
* @param newValue - The new value for the item, or a function that returns the new value based on the previous value.
|
|
3835
3878
|
*/
|
|
3836
|
-
update(key: Key, newValue: T): void;
|
|
3879
|
+
update(key: Key, newValue: T | ((prev: T) => T)): void;
|
|
3837
3880
|
}
|
|
3838
3881
|
/**
|
|
3839
3882
|
* Manages state for an immutable list data structure, and provides convenience methods to
|
|
@@ -3952,7 +3995,7 @@ type ClassNameOrFunction<T> = string | ((values: T & {
|
|
|
3952
3995
|
type StyleOrFunction<T> = CSSProperties | ((values: T & {
|
|
3953
3996
|
defaultStyle: CSSProperties;
|
|
3954
3997
|
}) => CSSProperties | undefined);
|
|
3955
|
-
interface StyleRenderProps<T> {
|
|
3998
|
+
interface StyleRenderProps<T, E extends keyof React__default.JSX.IntrinsicElements = 'div'> extends DOMRenderProps<E, T> {
|
|
3956
3999
|
/** The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. */
|
|
3957
4000
|
className?: ClassNameOrFunction<T>;
|
|
3958
4001
|
/** The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state. */
|
|
@@ -3965,6 +4008,21 @@ interface SlotProps {
|
|
|
3965
4008
|
*/
|
|
3966
4009
|
slot?: string | null;
|
|
3967
4010
|
}
|
|
4011
|
+
type DOMRenderFunction<E extends keyof React__default.JSX.IntrinsicElements, T> = (props: React__default.JSX.IntrinsicElements[E], renderProps: T) => ReactElement;
|
|
4012
|
+
interface DOMRenderProps<E extends keyof React__default.JSX.IntrinsicElements, T> {
|
|
4013
|
+
/**
|
|
4014
|
+
* Overrides the default DOM element with a custom render function.
|
|
4015
|
+
* This allows rendering existing components with built-in styles and behaviors
|
|
4016
|
+
* such as router links, animation libraries, and pre-styled components.
|
|
4017
|
+
*
|
|
4018
|
+
* Requirements:
|
|
4019
|
+
*
|
|
4020
|
+
* * You must render the expected element type (e.g. if `<button>` is expected, you cannot render an `<a>`).
|
|
4021
|
+
* * Only a single root DOM element can be rendered (no fragments).
|
|
4022
|
+
* * You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
|
|
4023
|
+
*/
|
|
4024
|
+
render?: DOMRenderFunction<E, T>;
|
|
4025
|
+
}
|
|
3968
4026
|
|
|
3969
4027
|
interface AutocompleteProps$1 {
|
|
3970
4028
|
/** The value of the autocomplete input (controlled). */
|
|
@@ -3999,7 +4057,7 @@ interface AriaAutocompleteProps<T> extends AutocompleteProps$1 {
|
|
|
3999
4057
|
interface AutocompleteProps<T = object> extends AriaAutocompleteProps<T>, SlotProps {
|
|
4000
4058
|
}
|
|
4001
4059
|
/**
|
|
4002
|
-
* An autocomplete
|
|
4060
|
+
* An autocomplete allows users to search or filter a list of suggestions.
|
|
4003
4061
|
*/
|
|
4004
4062
|
declare function Autocomplete<T extends object>(props: AutocompleteProps<T>): JSX.Element;
|
|
4005
4063
|
|
|
@@ -4045,7 +4103,7 @@ interface ItemRenderProps {
|
|
|
4045
4103
|
* The type of selection that is allowed in the collection.
|
|
4046
4104
|
* @selector [data-selection-mode="single | multiple"]
|
|
4047
4105
|
*/
|
|
4048
|
-
selectionMode: SelectionMode$
|
|
4106
|
+
selectionMode: SelectionMode$3;
|
|
4049
4107
|
/** The selection behavior for the collection. */
|
|
4050
4108
|
selectionBehavior: SelectionBehavior;
|
|
4051
4109
|
/**
|
|
@@ -4597,6 +4655,12 @@ interface GridLayoutOptions {
|
|
|
4597
4655
|
* @default 2
|
|
4598
4656
|
*/
|
|
4599
4657
|
dropIndicatorThickness?: number;
|
|
4658
|
+
/**
|
|
4659
|
+
* The fixed height of a loader element in px. This loader is specifically for
|
|
4660
|
+
* "load more" elements rendered when loading more rows at the root level or inside nested row/sections.
|
|
4661
|
+
* @default 48
|
|
4662
|
+
*/
|
|
4663
|
+
loaderHeight?: number;
|
|
4600
4664
|
}
|
|
4601
4665
|
/**
|
|
4602
4666
|
* GridLayout is a virtualizer Layout implementation
|
|
@@ -4787,6 +4851,12 @@ interface WaterfallLayoutOptions {
|
|
|
4787
4851
|
* @default 2
|
|
4788
4852
|
*/
|
|
4789
4853
|
dropIndicatorThickness?: number;
|
|
4854
|
+
/**
|
|
4855
|
+
* The fixed height of a loader element in px. This loader is specifically for
|
|
4856
|
+
* "load more" elements rendered when loading more rows at the root level or inside nested row/sections.
|
|
4857
|
+
* @default 48
|
|
4858
|
+
*/
|
|
4859
|
+
loaderHeight?: number;
|
|
4790
4860
|
}
|
|
4791
4861
|
declare class WaterfallLayout<T extends object, O extends WaterfallLayoutOptions = WaterfallLayoutOptions> extends Layout<Node$1<T>, O> implements LayoutDelegate, DropTargetDelegate {
|
|
4792
4862
|
private contentSize;
|
|
@@ -4840,9 +4910,9 @@ interface AriaToolbarProps extends AriaLabelingProps {
|
|
|
4840
4910
|
*/
|
|
4841
4911
|
orientation?: Orientation;
|
|
4842
4912
|
/**
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4913
|
+
* Allows tabbing through the toolbar's content when false.
|
|
4914
|
+
* @default true
|
|
4915
|
+
*/
|
|
4846
4916
|
isSingleTabStop?: boolean;
|
|
4847
4917
|
}
|
|
4848
4918
|
|
|
@@ -8190,26 +8260,24 @@ interface PanelProps extends StylingProps {
|
|
|
8190
8260
|
*/
|
|
8191
8261
|
minSize?: PanelProps$1["minSize"];
|
|
8192
8262
|
/** Called with current panel size on resize */
|
|
8193
|
-
onResize?:
|
|
8194
|
-
/**
|
|
8195
|
-
* Provide a value in case of conditional rendering to ensure panels are
|
|
8196
|
-
* correctly added back
|
|
8197
|
-
*/
|
|
8198
|
-
order?: PanelProps$1["order"];
|
|
8263
|
+
onResize?: (size: number) => void;
|
|
8199
8264
|
}
|
|
8200
8265
|
interface PanelGroupProps extends StylingProps {
|
|
8201
8266
|
/** Content comprising `Panel` and `PanelResizeHandle` */
|
|
8202
8267
|
children: ReactNode;
|
|
8203
8268
|
/** Orientation of the layout */
|
|
8204
|
-
direction:
|
|
8205
|
-
/**
|
|
8206
|
-
|
|
8269
|
+
direction: NonNullable<GroupProps$1["orientation"]>;
|
|
8270
|
+
/**
|
|
8271
|
+
* Called with a map of panel id to size (percentage) when group layout
|
|
8272
|
+
* changes
|
|
8273
|
+
*/
|
|
8274
|
+
onLayout?: (layout: Record<string, number>) => void;
|
|
8207
8275
|
/**
|
|
8208
8276
|
* When passed, automatically persists layouts, should be unique amongst other
|
|
8209
8277
|
* `PanelGroup`. Each `Panel` should have a stable `id` prop for persistence
|
|
8210
8278
|
* to work correctly.
|
|
8211
8279
|
*/
|
|
8212
|
-
autoSaveId?:
|
|
8280
|
+
autoSaveId?: string;
|
|
8213
8281
|
}
|
|
8214
8282
|
interface PanelResizeHandleProps extends StylingProps {
|
|
8215
8283
|
/**
|
|
@@ -8217,13 +8285,13 @@ interface PanelResizeHandleProps extends StylingProps {
|
|
|
8217
8285
|
*
|
|
8218
8286
|
* @default false
|
|
8219
8287
|
*/
|
|
8220
|
-
isDisabled?:
|
|
8288
|
+
isDisabled?: SeparatorProps$2["disabled"];
|
|
8221
8289
|
}
|
|
8222
8290
|
interface ImperativePanelGroupHandle {
|
|
8223
|
-
setLayout?:
|
|
8291
|
+
setLayout?: (layout: Record<string, number>) => void;
|
|
8224
8292
|
}
|
|
8225
8293
|
interface ImperativePanelHandle {
|
|
8226
|
-
resize?:
|
|
8294
|
+
resize?: PanelImperativeHandle["resize"];
|
|
8227
8295
|
}
|
|
8228
8296
|
|
|
8229
8297
|
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<ImperativePanelHandle>>;
|