@carto/ps-react-ui 6.1.0 → 6.1.1
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/types/widgets/wrapper/style.d.ts +31 -2
- package/dist/types/widgets/wrapper/widget-actions.d.ts +2 -2
- package/dist/types/widgets/wrapper/widget-wrapper.d.ts +2 -2
- package/dist/widgets.js +341 -294
- package/dist/widgets.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/wrapper/style.ts +38 -2
- package/src/widgets/wrapper/widget-actions.tsx +2 -2
- package/src/widgets/wrapper/widget-wrapper.test.tsx +32 -2
- package/src/widgets/wrapper/widget-wrapper.tsx +62 -36
|
@@ -40,14 +40,43 @@ export declare const styles: {
|
|
|
40
40
|
height: ({ spacing }: Theme) => string;
|
|
41
41
|
zIndex: number;
|
|
42
42
|
};
|
|
43
|
+
header: {
|
|
44
|
+
display: "flex";
|
|
45
|
+
alignItems: "center";
|
|
46
|
+
gap: ({ spacing }: Theme) => string;
|
|
47
|
+
minHeight: ({ spacing }: Theme) => string;
|
|
48
|
+
paddingInlineEnd: ({ spacing }: Theme) => string;
|
|
49
|
+
};
|
|
43
50
|
summary: {
|
|
51
|
+
flex: number;
|
|
52
|
+
minWidth: number;
|
|
44
53
|
minHeight: ({ spacing }: Theme) => string;
|
|
54
|
+
paddingInlineEnd: number;
|
|
45
55
|
'& .MuiAccordionSummary-content': {
|
|
46
|
-
gap: ({ spacing }: Theme) => string;
|
|
47
|
-
paddingInlineEnd: ({ spacing }: Theme) => string;
|
|
48
56
|
alignItems: "center";
|
|
57
|
+
minWidth: number;
|
|
58
|
+
marginInlineEnd: number;
|
|
59
|
+
paddingInlineEnd: number;
|
|
49
60
|
};
|
|
50
61
|
};
|
|
62
|
+
headerNoIcon: {
|
|
63
|
+
paddingInlineEnd: ({ spacing }: Theme) => string;
|
|
64
|
+
};
|
|
65
|
+
expandIcon: {
|
|
66
|
+
display: "flex";
|
|
67
|
+
marginInlineStart: ({ spacing }: Theme) => string;
|
|
68
|
+
color: "text.secondary";
|
|
69
|
+
cursor: "pointer";
|
|
70
|
+
'& svg': {
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
color: "inherit";
|
|
74
|
+
};
|
|
75
|
+
transition: ({ transitions }: Theme) => string;
|
|
76
|
+
};
|
|
77
|
+
expanded: {
|
|
78
|
+
transform: "rotate(180deg)";
|
|
79
|
+
};
|
|
51
80
|
summaryDisabled: {
|
|
52
81
|
'&, &:hover:not(.Mui-disabled)': {
|
|
53
82
|
cursor: "default";
|
|
@@ -11,8 +11,8 @@ export interface ActionsProps {
|
|
|
11
11
|
* pointer devices), and stay full-opacity when a descendant is marked with
|
|
12
12
|
* `.active` — typically applied by toggled actions.
|
|
13
13
|
*
|
|
14
|
-
* The container also stops click propagation so
|
|
15
|
-
*
|
|
14
|
+
* The container also stops click propagation, so a click on an action never
|
|
15
|
+
* reaches handlers further up the widget.
|
|
16
16
|
*/
|
|
17
17
|
export declare function Actions({ sx, children }: ActionsProps): import('react').JSX.Element;
|
|
18
18
|
export interface OptionsProps {
|
|
@@ -30,8 +30,8 @@ export interface WrapperProps {
|
|
|
30
30
|
variant?: 'outlined' | 'elevation';
|
|
31
31
|
labels?: Partial<WrapperLabels>;
|
|
32
32
|
/**
|
|
33
|
-
* Icon shown at the right edge of the
|
|
34
|
-
*
|
|
33
|
+
* Icon shown at the right edge of the header row, rotated 180° while the
|
|
34
|
+
* wrapper is expanded. Default: `ExpandMoreIcon`.
|
|
35
35
|
*/
|
|
36
36
|
expandIcon?: ComponentType<SvgIconProps>;
|
|
37
37
|
iconProps?: SvgIconProps;
|