@purpurds/modal 7.6.0 → 7.7.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/LICENSE.txt +5 -5
- package/dist/modal-content.d.ts +92 -4
- package/dist/modal-content.d.ts.map +1 -1
- package/dist/modal-trigger.d.ts +3 -6
- package/dist/modal-trigger.d.ts.map +1 -1
- package/dist/modal.cjs.js +16 -16
- package/dist/modal.cjs.js.map +1 -1
- package/dist/modal.d.ts +35 -4
- package/dist/modal.d.ts.map +1 -1
- package/dist/modal.es.js +630 -648
- package/dist/modal.es.js.map +1 -1
- package/package.json +10 -9
- package/src/modal-content.tsx +26 -12
- package/src/modal-trigger.tsx +6 -9
package/dist/modal.d.ts
CHANGED
|
@@ -14,11 +14,42 @@ export type ModalProps = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const Modal: {
|
|
16
16
|
({ ["data-testid"]: dataTestId, children, open, onOpenChange, }: ModalProps): React.JSX.Element;
|
|
17
|
-
Trigger: React.ForwardRefExoticComponent<
|
|
18
|
-
|
|
17
|
+
Trigger: React.ForwardRefExoticComponent<Omit<import('./modal-trigger').ModalTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
Content: React.ForwardRefExoticComponent<(Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
19
|
+
[key: `data-${string}`]: string | undefined;
|
|
20
|
+
}, "children"> & {
|
|
21
|
+
actions?: ReactNode;
|
|
19
22
|
children: ReactNode;
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
description?: string;
|
|
24
|
+
disableCloseOnClickOutside?: boolean;
|
|
25
|
+
hideDescription?: boolean;
|
|
26
|
+
image?: ReactNode;
|
|
27
|
+
notification?: ReactNode;
|
|
28
|
+
stickyButtons?: boolean;
|
|
29
|
+
title: string;
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
32
|
+
} & {
|
|
33
|
+
closeButtonAriaLabel?: never;
|
|
34
|
+
showCloseButton?: false;
|
|
35
|
+
}, "ref"> | Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
36
|
+
[key: `data-${string}`]: string | undefined;
|
|
37
|
+
}, "children"> & {
|
|
38
|
+
actions?: ReactNode;
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
description?: string;
|
|
41
|
+
disableCloseOnClickOutside?: boolean;
|
|
42
|
+
hideDescription?: boolean;
|
|
43
|
+
image?: ReactNode;
|
|
44
|
+
notification?: ReactNode;
|
|
45
|
+
stickyButtons?: boolean;
|
|
46
|
+
title: string;
|
|
47
|
+
zIndex?: number;
|
|
48
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
49
|
+
} & {
|
|
50
|
+
closeButtonAriaLabel: string;
|
|
51
|
+
showCloseButton: true;
|
|
52
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
22
53
|
displayName: string;
|
|
23
54
|
};
|
|
24
55
|
//# sourceMappingURL=modal.d.ts.map
|
package/dist/modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../src/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM9C,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB;;SAEK;IACL,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC;;SAEK;IACL,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,KAAK;qEAKf,UAAU
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../src/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM9C,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB;;SAEK;IACL,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC;;SAEK;IACL,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,KAAK;qEAKf,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIZ,CAAC"}
|