@theroutingcompany/components 0.0.149 → 0.0.151
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/trc-components.es.js +5732 -5636
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +355 -339
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/types/components/ButtonMenu/ButtonMenu.d.ts +2 -0
- package/types/components/MultiSelect/MultiSelect.d.ts +8 -2
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ export interface ButtonMenuProps extends Omit<ButtonPropsV2, 'onClick'> {
|
|
|
11
11
|
optionIcon?: React.ComponentType<{
|
|
12
12
|
className?: string;
|
|
13
13
|
}>;
|
|
14
|
+
defaultAction?: string;
|
|
15
|
+
onDefaultAction?: () => void;
|
|
14
16
|
}
|
|
15
17
|
export declare const ButtonMenu: import("react").ForwardRefExoticComponent<ButtonMenuProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
18
|
export default ButtonMenu;
|
|
@@ -36,6 +36,12 @@ type MultiSelectProps = {
|
|
|
36
36
|
isDisabled?: boolean;
|
|
37
37
|
/** Whether to show a button to select all items. */
|
|
38
38
|
isSelectableAll?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether "All" checkbox should automatically check when all items are manually selected.
|
|
41
|
+
* When true (default): "All" is checked whenever all items are selected, regardless of how.
|
|
42
|
+
* When false: "All" is only checked when explicitly clicked by the user.
|
|
43
|
+
*/
|
|
44
|
+
autoSelectAll?: boolean;
|
|
39
45
|
/** Custom text to display if all elements are selected */
|
|
40
46
|
isAllSelectedText?: string;
|
|
41
47
|
/** Sets the open state of the field (controlled). */
|
|
@@ -47,8 +53,8 @@ type MultiSelectProps = {
|
|
|
47
53
|
placeholder?: string;
|
|
48
54
|
/** Handler that is called when the select's open state changes. */
|
|
49
55
|
onOpenChange?: Parameters<typeof useMultiSelectState>['0']['onOpenChange'];
|
|
50
|
-
/** Handler that is called when the selection changes. */
|
|
51
|
-
onSelectionChange?:
|
|
56
|
+
/** Handler that is called when the selection changes. Receives the selected keys and whether "All" was explicitly selected. */
|
|
57
|
+
onSelectionChange?: (keys: Set<string>, isAllExplicitlySelected?: boolean) => void;
|
|
52
58
|
/** The currently selected keys in the collection (controlled). */
|
|
53
59
|
selectedKeys?: Parameters<typeof useMultiSelectState>['0']['selectedKeys'];
|
|
54
60
|
/** The type of selection that is allowed in the collection. */
|