@allxsmith/bestax-bulma 2.3.1 → 2.3.3
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/index.cjs.js +57 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +57 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Modal.d.ts +46 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
3
|
export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'title'>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
4
4
|
active?: boolean;
|
|
5
|
+
isActive?: boolean;
|
|
5
6
|
onClose?: () => void;
|
|
6
7
|
className?: string;
|
|
7
8
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -11,5 +12,49 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
11
12
|
type?: 'card' | 'content';
|
|
12
13
|
children?: React.ReactNode;
|
|
13
14
|
}
|
|
14
|
-
export
|
|
15
|
+
export interface ModalBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ModalContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ModalCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ModalCardHeadProps extends React.HTMLAttributes<HTMLElement> {
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ModalCardTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ModalCardBodyProps extends React.HTMLAttributes<HTMLElement> {
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ModalCardFootProps extends React.HTMLAttributes<HTMLElement> {
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ModalCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
37
|
+
className?: string;
|
|
38
|
+
size?: 'small' | 'medium' | 'large';
|
|
39
|
+
variant?: 'delete' | 'floating';
|
|
40
|
+
}
|
|
41
|
+
declare const ModalBackground: React.FC<ModalBackgroundProps>;
|
|
42
|
+
declare const ModalContent: React.FC<ModalContentProps>;
|
|
43
|
+
declare const ModalCardHead: React.FC<ModalCardHeadProps>;
|
|
44
|
+
declare const ModalCardTitle: React.FC<ModalCardTitleProps>;
|
|
45
|
+
declare const ModalCardBody: React.FC<ModalCardBodyProps>;
|
|
46
|
+
declare const ModalCardFoot: React.FC<ModalCardFootProps>;
|
|
47
|
+
declare const ModalCard: React.FC<ModalCardProps> & {
|
|
48
|
+
Head: typeof ModalCardHead;
|
|
49
|
+
Title: typeof ModalCardTitle;
|
|
50
|
+
Body: typeof ModalCardBody;
|
|
51
|
+
Foot: typeof ModalCardFoot;
|
|
52
|
+
};
|
|
53
|
+
declare const ModalClose: React.FC<ModalCloseProps>;
|
|
54
|
+
export declare const Modal: React.FC<ModalProps> & {
|
|
55
|
+
Background: typeof ModalBackground;
|
|
56
|
+
Content: typeof ModalContent;
|
|
57
|
+
Card: typeof ModalCard;
|
|
58
|
+
Close: typeof ModalClose;
|
|
59
|
+
};
|
|
15
60
|
export default Modal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allxsmith/bestax-bulma",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "A fully-typed React component library for the Bulma CSS framework. Build modern UIs quickly with reusable, accessible, and customizable Bulma-based React components.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|