@leonardaustin/ui 0.11.0 → 0.13.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/ui/Dialog.d.ts +22 -6
- package/dist/components/ui/Dialog.d.ts.map +1 -1
- package/dist/index.js +1644 -1492
- package/dist/lib/dialogResize.d.ts +44 -0
- package/dist/lib/dialogResize.d.ts.map +1 -0
- package/dist/styles.css +10 -1
- package/package.json +2 -2
|
@@ -39,11 +39,27 @@ export interface DialogProps {
|
|
|
39
39
|
*/
|
|
40
40
|
draggable?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
42
|
+
* Let the user resize the dialog from the handle shown at its bottom-right
|
|
43
|
+
* corner (mouse, touch or pen). The top-left corner stays put while it
|
|
44
|
+
* resizes, and the body scrolls when it's shorter than its content. The
|
|
45
|
+
* handle is focusable ("Resize dialog"): the arrow keys resize the dialog
|
|
46
|
+
* 10px, or 50px with Shift (Right/Down grow it, Left/Up shrink it). It
|
|
47
|
+
* can't get narrower than 280px or shorter than its title bar, footer and a
|
|
48
|
+
* little body, and keeps a theme-spacing margin from the viewport edges.
|
|
49
|
+
* `size` and `className` set the opening size; a resize overrides them
|
|
50
|
+
* until the dialog closes. It reopens at that natural size unless
|
|
51
|
+
* `rememberPosition` is set. Off below the `md` breakpoint, where the
|
|
52
|
+
* handle is hidden.
|
|
53
|
+
*/
|
|
54
|
+
resizable?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* With `draggable` or `resizable`, reopen the dialog as the user left it:
|
|
57
|
+
* at the screen position they last moved it to (by drag or keyboard), and
|
|
58
|
+
* at the size they last resized it to, instead of its default (or
|
|
59
|
+
* anchored) position and natural size. Kept in memory for this Dialog
|
|
60
|
+
* instance only (not persisted), pulled back inside the viewport if the
|
|
61
|
+
* window has shrunk, and cleared below the `md` breakpoint. Ignored
|
|
62
|
+
* without `draggable` or `resizable`.
|
|
47
63
|
*/
|
|
48
64
|
rememberPosition?: boolean;
|
|
49
65
|
/**
|
|
@@ -77,5 +93,5 @@ export interface DialogProps {
|
|
|
77
93
|
closeOnOverlayClick?: boolean;
|
|
78
94
|
hideCloseButton?: boolean;
|
|
79
95
|
}
|
|
80
|
-
export declare function Dialog({ open, onClose, title, children, footer, className, size, draggable, rememberPosition, placement, anchorRef, role, description, "aria-label": ariaLabel, "aria-describedby": describedBy, initialFocusRef, returnFocusRef, busy, closeOnEscape, closeOnOverlayClick, hideCloseButton, }: DialogProps): import("react").ReactPortal | null;
|
|
96
|
+
export declare function Dialog({ open, onClose, title, children, footer, className, size, draggable, resizable, rememberPosition, placement, anchorRef, role, description, "aria-label": ariaLabel, "aria-describedby": describedBy, initialFocusRef, returnFocusRef, busy, closeOnEscape, closeOnOverlayClick, hideCloseButton, }: DialogProps): import("react").ReactPortal | null;
|
|
81
97
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,2BAA2B,CAAC;AAsBnC,sEAAsE;AACtE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,eAAe,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AASnD,MAAM,WAAW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