@carto/ps-react-ui 4.2.0 → 4.2.2
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.
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { PickDeep } from 'type-fest';
|
|
3
|
+
import { LassoToolsComponentProps, OptionsChildrenProps } from './types';
|
|
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
|
+
export declare namespace LassoToolsUI {
|
|
6
|
+
var Action: ({ modes, modesMapping, modeSelected, actionProps, enabled, labels, onActionToggle, }: Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot"> & {
|
|
7
|
+
labels?: PickDeep<LassoToolsComponentProps["labels"], "actions">["actions"];
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
var Chips: ({ values, labels, chipProps, onDelete, onChipToggle, onActionToggle, }: Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot">) => false | import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
var SecondaryActions: typeof SecondaryActionsWrapper;
|
|
11
|
+
var Options: ({ values, modes, modesMapping, modeSelected, labels, onChangeMode, ...props }: Omit<LassoToolsComponentProps, "ChipsSlot" | "ActionsSlot" | "OptionsSlot" | "SecondaryActionsSlot"> & OptionsChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
declare function SecondaryActionsWrapper({ values, labels, onAllChipToggle, onAllDelete, }: Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box, ChipProps, Paper, TooltipProps } from '@mui/material';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
2
|
+
import { ComponentProps, ComponentType } from 'react';
|
|
3
3
|
import { LassoToolsMode, LassoToolsModes, LassoToolOptionsMode, LassoToolsModesMapping } from '../types';
|
|
4
4
|
export interface LassoToolsData {
|
|
5
5
|
id: string;
|
|
@@ -59,6 +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'>> | null;
|
|
63
|
+
ActionSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>> | null;
|
|
64
|
+
OptionsSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'> & OptionsChildrenProps> | null;
|
|
65
|
+
SecondaryActionsSlot?: ComponentType<Omit<LassoToolsComponentProps, 'ChipsSlot' | 'ActionsSlot' | 'OptionsSlot' | 'SecondaryActionsSlot'>> | null;
|
|
62
66
|
}
|
|
63
67
|
export interface LassoToolsInlineComponentProps<M extends string = LassoToolsMode> extends LassoToolsComponentBaseProps<M> {
|
|
64
68
|
BoxProps?: ComponentProps<typeof Box>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/ps-react-ui",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "CARTO's Professional Service React Material library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@emotion/styled": "11.14.
|
|
8
|
-
"@mui/material": "5.
|
|
9
|
-
"@mui/icons-material": "5.
|
|
7
|
+
"@emotion/styled": "11.14.1",
|
|
8
|
+
"@mui/material": "5.18.0",
|
|
9
|
+
"@mui/icons-material": "5.18.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@emotion/styled": "^11.0.0",
|