@voxel51/voodo 2.5.0 → 2.6.0
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/components/Drawer/Drawer.d.ts +5 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2152 -2135
- package/dist/index.js.map +1 -1
- package/dist/util/useResizableDrawer.d.ts +8 -1
- package/dist/util/useResizableDrawer.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,13 @@ export interface UseResizableDrawerOptions extends UseDisclosureOptions {
|
|
|
14
14
|
invert?: boolean;
|
|
15
15
|
/** Invoked with the new content-area size on every drag-induced resize. */
|
|
16
16
|
onSizeChange?: (size: number) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Controlled content-area size in pixels. When set, the open drawer is this
|
|
19
|
+
* size rather than its content's, and drags report sizes up to `maxSize`
|
|
20
|
+
* through `onSizeChange` for the caller to apply. Dragging it shut closes
|
|
21
|
+
* it through `onOpenChange` and reports no size.
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
17
24
|
}
|
|
18
25
|
export interface UseResizableDrawerReturn extends UseDisclosureReturn {
|
|
19
26
|
/** Current content-area size in pixels (0 when closed or not yet measured). */
|
|
@@ -43,5 +50,5 @@ export interface UseResizableDrawerReturn extends UseDisclosureReturn {
|
|
|
43
50
|
*/
|
|
44
51
|
contentRef: (el: HTMLElement | null) => void;
|
|
45
52
|
}
|
|
46
|
-
export declare function useResizableDrawer({ axis, maxSize, invert, onSizeChange, ...disclosureOptions }: UseResizableDrawerOptions): UseResizableDrawerReturn;
|
|
53
|
+
export declare function useResizableDrawer({ axis, maxSize, invert, onSizeChange, size: controlledSize, ...disclosureOptions }: UseResizableDrawerOptions): UseResizableDrawerReturn;
|
|
47
54
|
//# sourceMappingURL=useResizableDrawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResizableDrawer.d.ts","sourceRoot":"","sources":["../../src/util/useResizableDrawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAIxD,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,yGAAyG;IACzG,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useResizableDrawer.d.ts","sourceRoot":"","sources":["../../src/util/useResizableDrawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAIxD,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,yGAAyG;IACzG,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACnE,+EAA+E;IAC/E,IAAI,EAAE,MAA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