@carto/ps-react-ui 6.5.0 → 6.5.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/collapsed-context.d.ts +7 -0
- package/dist/widgets.js +218 -212
- package/dist/widgets.js.map +1 -1
- package/package.json +3 -3
- package/src/widgets/toolbox/toolbox.test.tsx +28 -0
- package/src/widgets/toolbox/toolbox.tsx +9 -0
- package/src/widgets/wrapper/collapsed-context.ts +12 -0
- package/src/widgets/wrapper/widget-wrapper.tsx +6 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the enclosing `<Wrapper>` is collapsed. The Accordion keeps its
|
|
3
|
+
* details mounted, so content that opens portalled UI (the Toolbox popper)
|
|
4
|
+
* reads this to close it. `false` outside a Wrapper.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WrapperCollapsedContext: import('react').Context<boolean>;
|
|
7
|
+
export declare function useWrapperCollapsed(): boolean;
|