@allxsmith/bestax-bulma 1.0.5 → 1.0.7
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/README.md +10 -1
- package/dist/index.cjs.js +357 -2154
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +357 -2154
- package/dist/index.esm.js.map +1 -1
- package/dist/types/columns/Column.d.ts +0 -43
- package/dist/types/columns/Columns.d.ts +0 -32
- package/dist/types/components/Breadcrumb.d.ts +0 -28
- package/dist/types/components/Card.d.ts +0 -24
- package/dist/types/components/Dropdown.d.ts +0 -42
- package/dist/types/components/Menu.d.ts +0 -48
- package/dist/types/components/Message.d.ts +0 -21
- package/dist/types/components/Modal.d.ts +0 -21
- package/dist/types/components/Navbar.d.ts +0 -146
- package/dist/types/components/Pagination.d.ts +0 -68
- package/dist/types/components/Panel.d.ts +0 -81
- package/dist/types/components/Tab.d.ts +0 -49
- package/dist/types/components/Tabs.d.ts +0 -49
- package/dist/types/elements/Block.d.ts +0 -20
- package/dist/types/elements/Box.d.ts +1 -23
- package/dist/types/elements/Button.d.ts +0 -36
- package/dist/types/elements/Buttons.d.ts +0 -22
- package/dist/types/elements/Content.d.ts +0 -21
- package/dist/types/elements/Delete.d.ts +0 -22
- package/dist/types/elements/Icon.d.ts +0 -24
- package/dist/types/elements/IconText.d.ts +0 -27
- package/dist/types/elements/Image.d.ts +0 -27
- package/dist/types/elements/Notification.d.ts +0 -20
- package/dist/types/elements/Progress.d.ts +0 -20
- package/dist/types/elements/SubTitle.d.ts +0 -24
- package/dist/types/elements/Table.d.ts +0 -25
- package/dist/types/elements/Tag.d.ts +0 -28
- package/dist/types/elements/Tags.d.ts +0 -18
- package/dist/types/elements/Tbody.d.ts +0 -19
- package/dist/types/elements/Td.d.ts +0 -23
- package/dist/types/elements/Tfoot.d.ts +0 -19
- package/dist/types/elements/Th.d.ts +0 -25
- package/dist/types/elements/Thead.d.ts +0 -19
- package/dist/types/elements/Title.d.ts +0 -25
- package/dist/types/elements/Tr.d.ts +0 -21
- package/dist/types/form/Checkbox.d.ts +0 -16
- package/dist/types/form/Checkboxes.d.ts +0 -15
- package/dist/types/form/Control.d.ts +0 -30
- package/dist/types/form/Field.d.ts +0 -57
- package/dist/types/form/File.d.ts +0 -26
- package/dist/types/form/Input.d.ts +0 -22
- package/dist/types/form/Radio.d.ts +0 -16
- package/dist/types/form/Radios.d.ts +0 -15
- package/dist/types/form/Select.d.ts +0 -22
- package/dist/types/form/TextArea.d.ts +0 -25
- package/dist/types/grid/Cell.d.ts +0 -26
- package/dist/types/grid/Grid.d.ts +0 -40
- package/dist/types/helpers/classNames.d.ts +0 -14
- package/dist/types/helpers/useBulmaClasses.d.ts +0 -130
- package/dist/types/layout/Container.d.ts +0 -26
- package/dist/types/layout/Footer.d.ts +0 -19
- package/dist/types/layout/Hero.d.ts +0 -57
- package/dist/types/layout/Level.d.ts +0 -59
- package/dist/types/layout/Media.d.ts +0 -55
- package/dist/types/layout/Section.d.ts +0 -21
- package/package.json +5 -5
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
-
/**
|
|
4
|
-
* Possible values for Bulma hero size.
|
|
5
|
-
*/
|
|
6
3
|
export type HeroSize = 'small' | 'medium' | 'large' | 'fullheight' | 'fullheight-with-navbar';
|
|
7
|
-
/**
|
|
8
|
-
* Props for the Hero component.
|
|
9
|
-
*
|
|
10
|
-
* @property {string} [className] - Additional CSS classes.
|
|
11
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
12
|
-
* @property {HeroSize} [size] - Hero size.
|
|
13
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
14
|
-
* @property {boolean} [fullheightWithNavbar] - Use fullheight with navbar.
|
|
15
|
-
* @property {React.ReactNode} [children] - Content inside the hero.
|
|
16
|
-
*/
|
|
17
4
|
export interface HeroProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
18
5
|
className?: string;
|
|
19
6
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -22,28 +9,11 @@ export interface HeroProps extends React.HTMLAttributes<HTMLElement>, Omit<Bulma
|
|
|
22
9
|
fullheightWithNavbar?: boolean;
|
|
23
10
|
children?: React.ReactNode;
|
|
24
11
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Bulma Hero component root.
|
|
27
|
-
*
|
|
28
|
-
* @function
|
|
29
|
-
* @param {HeroProps} props - Props for the Hero component.
|
|
30
|
-
* @returns {JSX.Element} The rendered hero.
|
|
31
|
-
* @see {@link https://bulma.io/documentation/layout/hero/ | Bulma Hero documentation}
|
|
32
|
-
*/
|
|
33
12
|
export declare const Hero: React.FC<HeroProps> & {
|
|
34
13
|
Head: typeof HeroHead;
|
|
35
14
|
Body: typeof HeroBody;
|
|
36
15
|
Foot: typeof HeroFoot;
|
|
37
16
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Props for the HeroHead component.
|
|
40
|
-
*
|
|
41
|
-
* @property {string} [className] - Additional CSS classes.
|
|
42
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier for text.
|
|
43
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
44
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
45
|
-
* @property {React.ReactNode} [children] - Content.
|
|
46
|
-
*/
|
|
47
17
|
export interface HeroHeadProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
48
18
|
className?: string;
|
|
49
19
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -51,19 +21,7 @@ export interface HeroHeadProps extends React.HTMLAttributes<HTMLDivElement>, Omi
|
|
|
51
21
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
52
22
|
children?: React.ReactNode;
|
|
53
23
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Bulma Hero head section.
|
|
56
|
-
*/
|
|
57
24
|
export declare const HeroHead: React.FC<HeroHeadProps>;
|
|
58
|
-
/**
|
|
59
|
-
* Props for the HeroBody component.
|
|
60
|
-
*
|
|
61
|
-
* @property {string} [className] - Additional CSS classes.
|
|
62
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier for text.
|
|
63
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
64
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
65
|
-
* @property {React.ReactNode} [children] - Content.
|
|
66
|
-
*/
|
|
67
25
|
export interface HeroBodyProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
68
26
|
className?: string;
|
|
69
27
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -71,19 +29,7 @@ export interface HeroBodyProps extends React.HTMLAttributes<HTMLDivElement>, Omi
|
|
|
71
29
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
72
30
|
children?: React.ReactNode;
|
|
73
31
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Bulma Hero body section.
|
|
76
|
-
*/
|
|
77
32
|
export declare const HeroBody: React.FC<HeroBodyProps>;
|
|
78
|
-
/**
|
|
79
|
-
* Props for the HeroFoot component.
|
|
80
|
-
*
|
|
81
|
-
* @property {string} [className] - Additional CSS classes.
|
|
82
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier for text.
|
|
83
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
84
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
85
|
-
* @property {React.ReactNode} [children] - Content.
|
|
86
|
-
*/
|
|
87
33
|
export interface HeroFootProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
88
34
|
className?: string;
|
|
89
35
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -91,8 +37,5 @@ export interface HeroFootProps extends React.HTMLAttributes<HTMLDivElement>, Omi
|
|
|
91
37
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
92
38
|
children?: React.ReactNode;
|
|
93
39
|
}
|
|
94
|
-
/**
|
|
95
|
-
* Bulma Hero foot section.
|
|
96
|
-
*/
|
|
97
40
|
export declare const HeroFoot: React.FC<HeroFootProps>;
|
|
98
41
|
export default Hero;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Level component.
|
|
5
|
-
*
|
|
6
|
-
* @property {boolean} [isMobile] - Enable mobile mode.
|
|
7
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
8
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
9
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
10
|
-
* @property {string} [className] - Additional CSS classes.
|
|
11
|
-
* @property {React.ReactNode} [children] - Level content.
|
|
12
|
-
*/
|
|
13
3
|
export interface LevelProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
14
4
|
isMobile?: boolean;
|
|
15
5
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -18,28 +8,11 @@ export interface LevelProps extends React.HTMLAttributes<HTMLElement>, Omit<Bulm
|
|
|
18
8
|
className?: string;
|
|
19
9
|
children?: React.ReactNode;
|
|
20
10
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Bulma Level component for horizontal layouts.
|
|
23
|
-
*
|
|
24
|
-
* @function
|
|
25
|
-
* @param {LevelProps} props - Props for the Level component.
|
|
26
|
-
* @returns {JSX.Element} The rendered level.
|
|
27
|
-
* @see {@link https://bulma.io/documentation/layout/level/ | Bulma Level documentation}
|
|
28
|
-
*/
|
|
29
11
|
declare const Level: React.FC<LevelProps> & {
|
|
30
12
|
Left: typeof LevelLeft;
|
|
31
13
|
Right: typeof LevelRight;
|
|
32
14
|
Item: typeof LevelItem;
|
|
33
15
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Props for the LevelLeft component.
|
|
36
|
-
*
|
|
37
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
38
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
39
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
40
|
-
* @property {string} [className] - Additional CSS classes.
|
|
41
|
-
* @property {React.ReactNode} [children] - Content.
|
|
42
|
-
*/
|
|
43
16
|
export interface LevelLeftProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
44
17
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
45
18
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -47,19 +20,7 @@ export interface LevelLeftProps extends React.HTMLAttributes<HTMLDivElement>, Om
|
|
|
47
20
|
className?: string;
|
|
48
21
|
children?: React.ReactNode;
|
|
49
22
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Bulma Level left section.
|
|
52
|
-
*/
|
|
53
23
|
declare const LevelLeft: React.FC<LevelLeftProps>;
|
|
54
|
-
/**
|
|
55
|
-
* Props for the LevelRight component.
|
|
56
|
-
*
|
|
57
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
58
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
59
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
60
|
-
* @property {string} [className] - Additional CSS classes.
|
|
61
|
-
* @property {React.ReactNode} [children] - Content.
|
|
62
|
-
*/
|
|
63
24
|
export interface LevelRightProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
64
25
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
65
26
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -67,24 +28,7 @@ export interface LevelRightProps extends React.HTMLAttributes<HTMLDivElement>, O
|
|
|
67
28
|
className?: string;
|
|
68
29
|
children?: React.ReactNode;
|
|
69
30
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Bulma Level right section.
|
|
72
|
-
*/
|
|
73
31
|
declare const LevelRight: React.FC<LevelRightProps>;
|
|
74
|
-
/**
|
|
75
|
-
* Props for the LevelItem component.
|
|
76
|
-
*
|
|
77
|
-
* @property {'div'|'p'|'a'} [as] - Element type to render.
|
|
78
|
-
* @property {boolean} [hasTextCentered] - Center the text in the item.
|
|
79
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
80
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
81
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
82
|
-
* @property {string} [className] - Additional CSS classes.
|
|
83
|
-
* @property {React.ReactNode} [children] - Content.
|
|
84
|
-
* @property {string} [href] - Href for "a" tag.
|
|
85
|
-
* @property {string} [target] - Target for "a" tag
|
|
86
|
-
* @property {string} [rel] - Rel for "a" tag
|
|
87
|
-
*/
|
|
88
32
|
export interface LevelItemProps extends React.HTMLAttributes<HTMLDivElement | HTMLParagraphElement | HTMLAnchorElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
89
33
|
as?: 'div' | 'p' | 'a';
|
|
90
34
|
hasTextCentered?: boolean;
|
|
@@ -97,8 +41,5 @@ export interface LevelItemProps extends React.HTMLAttributes<HTMLDivElement | HT
|
|
|
97
41
|
target?: string;
|
|
98
42
|
rel?: string;
|
|
99
43
|
}
|
|
100
|
-
/**
|
|
101
|
-
* Bulma Level item section.
|
|
102
|
-
*/
|
|
103
44
|
declare const LevelItem: React.FC<LevelItemProps>;
|
|
104
45
|
export default Level;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Media component.
|
|
5
|
-
*
|
|
6
|
-
* @property {'article'|'div'} [as] - Element type to render.
|
|
7
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
8
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
9
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
10
|
-
* @property {string} [className] - Additional CSS classes.
|
|
11
|
-
* @property {React.ReactNode} [children] - Content.
|
|
12
|
-
*/
|
|
13
3
|
export interface MediaProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
14
4
|
as?: 'article' | 'div';
|
|
15
5
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -18,29 +8,11 @@ export interface MediaProps extends React.HTMLAttributes<HTMLElement>, Omit<Bulm
|
|
|
18
8
|
className?: string;
|
|
19
9
|
children?: React.ReactNode;
|
|
20
10
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Bulma Media component root.
|
|
23
|
-
*
|
|
24
|
-
* @function
|
|
25
|
-
* @param {MediaProps} props - Props for the Media component.
|
|
26
|
-
* @returns {JSX.Element} The rendered media container.
|
|
27
|
-
* @see {@link https://bulma.io/documentation/layout/media-object/ | Bulma Media documentation}
|
|
28
|
-
*/
|
|
29
11
|
export declare const Media: React.FC<MediaProps> & {
|
|
30
12
|
Left: typeof MediaLeft;
|
|
31
13
|
Content: typeof MediaContent;
|
|
32
14
|
Right: typeof MediaRight;
|
|
33
15
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Props for the MediaLeft component.
|
|
36
|
-
*
|
|
37
|
-
* @property {'figure'|'div'} [as] - Element type to render.
|
|
38
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
39
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
40
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
41
|
-
* @property {string} [className] - Additional CSS classes.
|
|
42
|
-
* @property {React.ReactNode} [children] - Content.
|
|
43
|
-
*/
|
|
44
16
|
export interface MediaLeftProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
45
17
|
as?: 'figure' | 'div';
|
|
46
18
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -49,19 +21,7 @@ export interface MediaLeftProps extends React.HTMLAttributes<HTMLElement>, Omit<
|
|
|
49
21
|
className?: string;
|
|
50
22
|
children?: React.ReactNode;
|
|
51
23
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Bulma Media left section.
|
|
54
|
-
*/
|
|
55
24
|
export declare const MediaLeft: React.FC<MediaLeftProps>;
|
|
56
|
-
/**
|
|
57
|
-
* Props for the MediaContent component.
|
|
58
|
-
*
|
|
59
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
60
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
61
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
62
|
-
* @property {string} [className] - Additional CSS classes.
|
|
63
|
-
* @property {React.ReactNode} [children] - Content.
|
|
64
|
-
*/
|
|
65
25
|
export interface MediaContentProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
66
26
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
67
27
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -69,19 +29,7 @@ export interface MediaContentProps extends React.HTMLAttributes<HTMLDivElement>,
|
|
|
69
29
|
className?: string;
|
|
70
30
|
children?: React.ReactNode;
|
|
71
31
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Bulma Media content section.
|
|
74
|
-
*/
|
|
75
32
|
export declare const MediaContent: React.FC<MediaContentProps>;
|
|
76
|
-
/**
|
|
77
|
-
* Props for the MediaRight component.
|
|
78
|
-
*
|
|
79
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
80
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
81
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
82
|
-
* @property {string} [className] - Additional CSS classes.
|
|
83
|
-
* @property {React.ReactNode} [children] - Content.
|
|
84
|
-
*/
|
|
85
33
|
export interface MediaRightProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
86
34
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
87
35
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -89,8 +37,5 @@ export interface MediaRightProps extends React.HTMLAttributes<HTMLDivElement>, O
|
|
|
89
37
|
className?: string;
|
|
90
38
|
children?: React.ReactNode;
|
|
91
39
|
}
|
|
92
|
-
/**
|
|
93
|
-
* Bulma Media right section.
|
|
94
|
-
*/
|
|
95
40
|
export declare const MediaRight: React.FC<MediaRightProps>;
|
|
96
41
|
export default Media;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
-
/**
|
|
4
|
-
* Section size values for Bulma.
|
|
5
|
-
*/
|
|
6
3
|
type SectionSize = 'medium' | 'large';
|
|
7
|
-
/**
|
|
8
|
-
* Props for the Section component.
|
|
9
|
-
*
|
|
10
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [color] - Bulma color modifier.
|
|
11
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
|
|
12
|
-
* @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
|
|
13
|
-
* @property {'medium'|'large'} [size] - Section size.
|
|
14
|
-
* @property {string} [className] - Additional CSS classes.
|
|
15
|
-
* @property {React.ReactNode} [children] - Section content.
|
|
16
|
-
*/
|
|
17
4
|
export interface SectionProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
18
5
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
19
6
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
@@ -22,13 +9,5 @@ export interface SectionProps extends React.HTMLAttributes<HTMLElement>, Omit<Bu
|
|
|
22
9
|
className?: string;
|
|
23
10
|
children?: React.ReactNode;
|
|
24
11
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Bulma Section component for general layout.
|
|
27
|
-
*
|
|
28
|
-
* @function
|
|
29
|
-
* @param {SectionProps} props - Props for the Section component.
|
|
30
|
-
* @returns {JSX.Element} The rendered section.
|
|
31
|
-
* @see {@link https://bulma.io/documentation/layout/section/ | Bulma Section documentation}
|
|
32
|
-
*/
|
|
33
12
|
export declare const Section: React.FC<SectionProps>;
|
|
34
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allxsmith/bestax-bulma",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "A React component library with TypeScript",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"module": "dist/
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
68
68
|
"bulma": "^1.0.4",
|
|
69
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
70
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
69
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
70
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
71
71
|
},
|
|
72
72
|
"keywords": [
|
|
73
73
|
"react",
|