@carto/ps-react-ui 4.2.2 → 4.2.4
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.
|
@@ -3,12 +3,12 @@ import { PickDeep } from 'type-fest';
|
|
|
3
3
|
import { LassoToolsComponentProps, OptionsChildrenProps } from './types';
|
|
4
4
|
export declare function LassoToolsUI({ enabled, values, actionProps, chipProps, labels, modes, modesMapping, modeSelected, PaperProps: { sx, ...PaperProps }, onActionToggle, onChipToggle, onDelete, onChangeMode, onAllChipToggle, onAllDelete, ChipsSlot, ActionSlot, SecondaryActionsSlot, OptionsSlot, }: LassoToolsComponentProps): JSX.Element;
|
|
5
5
|
export declare namespace LassoToolsUI {
|
|
6
|
-
var Action: ({ modes, modesMapping, modeSelected, actionProps, enabled, labels, onActionToggle, }: Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot"
|
|
6
|
+
var Action: ({ modes, modesMapping, modeSelected, actionProps, enabled, labels, onActionToggle, }: Partial<Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot">> & {
|
|
7
7
|
labels?: PickDeep<LassoToolsComponentProps["labels"], "actions">["actions"];
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
var Chips: ({ values, labels, chipProps, onDelete, onChipToggle, onActionToggle, }: Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot"
|
|
9
|
+
var Chips: ({ values, labels, chipProps, onDelete, onChipToggle, onActionToggle, }: Partial<Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot">>) => false | import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
var SecondaryActions: typeof SecondaryActionsWrapper;
|
|
11
|
-
var Options: ({ values, modes, modesMapping, modeSelected, labels, onChangeMode, ...props }: Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot"
|
|
11
|
+
var Options: ({ values, modes, modesMapping, modeSelected, labels, onChangeMode, ...props }: Partial<Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot">> & OptionsChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
}
|
|
13
|
-
declare function SecondaryActionsWrapper({ values, labels, onAllChipToggle, onAllDelete, }: Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'
|
|
13
|
+
declare function SecondaryActionsWrapper({ values, labels, onAllChipToggle, onAllDelete, }: Partial<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>>): import("react/jsx-runtime").JSX.Element | null;
|
|
14
14
|
export {};
|
|
@@ -59,10 +59,10 @@ export interface LassoToolsComponentProps<M extends string = LassoToolsMode> ext
|
|
|
59
59
|
};
|
|
60
60
|
PaperProps?: ComponentProps<typeof Paper>;
|
|
61
61
|
onActionToggle: (data: boolean) => void;
|
|
62
|
-
ChipsSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'
|
|
63
|
-
ActionSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'
|
|
64
|
-
OptionsSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'
|
|
65
|
-
SecondaryActionsSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'
|
|
62
|
+
ChipsSlot?: ComponentType<Partial<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>>> | null;
|
|
63
|
+
ActionSlot?: ComponentType<Partial<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>>> | null;
|
|
64
|
+
OptionsSlot?: ComponentType<Partial<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>> & OptionsChildrenProps> | null;
|
|
65
|
+
SecondaryActionsSlot?: ComponentType<Partial<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>>> | null;
|
|
66
66
|
}
|
|
67
67
|
export interface LassoToolsInlineComponentProps<M extends string = LassoToolsMode> extends LassoToolsComponentBaseProps<M> {
|
|
68
68
|
BoxProps?: ComponentProps<typeof Box>;
|