@wavv/ui 2.4.8-alpha.4 → 2.4.8
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.
|
@@ -76,7 +76,7 @@ type PanelProps = {
|
|
|
76
76
|
children?: TabPanelProps['children'];
|
|
77
77
|
className?: TabPanelProps['className'];
|
|
78
78
|
style?: TabPanelProps['style'];
|
|
79
|
-
} & Omit<TabPanelProps, 'id'>;
|
|
79
|
+
} & Padding & Omit<TabPanelProps, 'id'>;
|
|
80
80
|
export declare const Panel: {
|
|
81
81
|
(props: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
82
82
|
displayName: string;
|
package/build/components/Tabs.js
CHANGED
|
@@ -64,14 +64,26 @@ type BaseSelectInputProps = {
|
|
|
64
64
|
after?: ReactNode;
|
|
65
65
|
maxHeight?: PopoverProps['maxHeight'];
|
|
66
66
|
} & Omit<InputProps, 'iconRight'> & ShowHideCallbacks & Pick<PopoverProps, 'maxHeight'>;
|
|
67
|
-
|
|
67
|
+
type SingleSelectInputProps = BaseSelectInputProps & {
|
|
68
|
+
/** The selection mode for the select */
|
|
69
|
+
selectionMode?: 'single';
|
|
70
|
+
/** The controlled value of the input */
|
|
71
|
+
value?: Key;
|
|
72
|
+
/** The uncontrolled initial value of the input */
|
|
73
|
+
defaultValue?: Key;
|
|
74
|
+
/** The function to be called when an option is selected */
|
|
75
|
+
onChange?: (key: string) => void;
|
|
76
|
+
};
|
|
77
|
+
type MultipleSelectInputProps = BaseSelectInputProps & {
|
|
78
|
+
/** The selection mode for the select */
|
|
79
|
+
selectionMode: 'multiple';
|
|
68
80
|
/** The controlled value of the input */
|
|
69
81
|
value?: Key | Key[];
|
|
70
82
|
/** The uncontrolled initial value of the input */
|
|
71
83
|
defaultValue?: Key | Key[];
|
|
72
|
-
|
|
73
|
-
onChange?: (key: string | string[]) => void;
|
|
84
|
+
onChange?: (keys: string | string[]) => void;
|
|
74
85
|
};
|
|
86
|
+
export type SelectInputProps = SingleSelectInputProps | MultipleSelectInputProps;
|
|
75
87
|
export type ComboBoxInputProps = BaseSelectInputProps & {
|
|
76
88
|
/** The controlled value of the input */
|
|
77
89
|
value?: Key;
|