@allxsmith/bestax-bulma 1.0.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.
Files changed (61) hide show
  1. package/dist/index.cjs.js +3799 -0
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.esm.js +3701 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/types/columns/Column.d.ts +73 -0
  6. package/dist/types/columns/Columns.d.ts +55 -0
  7. package/dist/types/components/Breadcrumb.d.ts +45 -0
  8. package/dist/types/components/Card.d.ts +44 -0
  9. package/dist/types/components/Dropdown.d.ts +72 -0
  10. package/dist/types/components/Menu.d.ts +79 -0
  11. package/dist/types/components/Message.d.ts +34 -0
  12. package/dist/types/components/Modal.d.ts +36 -0
  13. package/dist/types/components/Navbar.d.ts +229 -0
  14. package/dist/types/components/Pagination.d.ts +117 -0
  15. package/dist/types/components/Panel.d.ts +136 -0
  16. package/dist/types/components/Tab.d.ts +79 -0
  17. package/dist/types/components/Tabs.d.ts +79 -0
  18. package/dist/types/elements/Block.d.ts +30 -0
  19. package/dist/types/elements/Box.d.ts +33 -0
  20. package/dist/types/elements/Button.d.ts +64 -0
  21. package/dist/types/elements/Buttons.d.ts +36 -0
  22. package/dist/types/elements/Content.d.ts +33 -0
  23. package/dist/types/elements/Delete.d.ts +36 -0
  24. package/dist/types/elements/Icon.d.ts +41 -0
  25. package/dist/types/elements/IconText.d.ts +45 -0
  26. package/dist/types/elements/Image.d.ts +44 -0
  27. package/dist/types/elements/Notification.d.ts +31 -0
  28. package/dist/types/elements/Progress.d.ts +31 -0
  29. package/dist/types/elements/SubTitle.d.ts +38 -0
  30. package/dist/types/elements/Table.d.ts +38 -0
  31. package/dist/types/elements/Tag.d.ts +46 -0
  32. package/dist/types/elements/Tags.d.ts +27 -0
  33. package/dist/types/elements/Tbody.d.ts +26 -0
  34. package/dist/types/elements/Td.d.ts +33 -0
  35. package/dist/types/elements/Tfoot.d.ts +26 -0
  36. package/dist/types/elements/Th.d.ts +39 -0
  37. package/dist/types/elements/Thead.d.ts +26 -0
  38. package/dist/types/elements/Title.d.ts +40 -0
  39. package/dist/types/elements/Tr.d.ts +31 -0
  40. package/dist/types/form/Checkbox.d.ts +25 -0
  41. package/dist/types/form/Checkboxes.d.ts +23 -0
  42. package/dist/types/form/Control.d.ts +61 -0
  43. package/dist/types/form/Field.d.ts +96 -0
  44. package/dist/types/form/File.d.ts +45 -0
  45. package/dist/types/form/Input.d.ts +38 -0
  46. package/dist/types/form/Radio.d.ts +25 -0
  47. package/dist/types/form/Radios.d.ts +23 -0
  48. package/dist/types/form/Select.d.ts +38 -0
  49. package/dist/types/form/TextArea.d.ts +44 -0
  50. package/dist/types/grid/Cell.d.ts +43 -0
  51. package/dist/types/grid/Grid.d.ts +65 -0
  52. package/dist/types/helpers/classNames.d.ts +16 -0
  53. package/dist/types/helpers/useBulmaClasses.d.ts +194 -0
  54. package/dist/types/index.d.ts +54 -0
  55. package/dist/types/layout/Container.d.ts +43 -0
  56. package/dist/types/layout/Footer.d.ts +31 -0
  57. package/dist/types/layout/Hero.d.ts +98 -0
  58. package/dist/types/layout/Level.d.ts +104 -0
  59. package/dist/types/layout/Media.d.ts +96 -0
  60. package/dist/types/layout/Section.d.ts +34 -0
  61. package/package.json +95 -0
@@ -0,0 +1,54 @@
1
+ export * from './columns/Column';
2
+ export * from './columns/Columns';
3
+ export * from './components/Breadcrumb';
4
+ export * from './components/Card';
5
+ export * from './components/Dropdown';
6
+ export * from './components/Menu';
7
+ export * from './components/Message';
8
+ export * from './components/Modal';
9
+ export * from './components/Navbar';
10
+ export * from './components/Pagination';
11
+ export * from './components/Panel';
12
+ export * from './components/Tabs';
13
+ export * from './elements/Block';
14
+ export * from './elements/Box';
15
+ export * from './elements/Button';
16
+ export * from './elements/Buttons';
17
+ export * from './elements/Content';
18
+ export * from './elements/Delete';
19
+ export * from './elements/Icon';
20
+ export * from './elements/IconText';
21
+ export * from './elements/Image';
22
+ export * from './elements/Notification';
23
+ export * from './elements/Progress';
24
+ export * from './elements/SubTitle';
25
+ export * from './elements/Table';
26
+ export * from './elements/Tag';
27
+ export * from './elements/Tags';
28
+ export * from './elements/Tbody';
29
+ export * from './elements/Td';
30
+ export * from './elements/Tfoot';
31
+ export * from './elements/Th';
32
+ export * from './elements/Thead';
33
+ export * from './elements/Title';
34
+ export * from './elements/Tr';
35
+ export * from './form/Checkbox';
36
+ export * from './form/Checkboxes';
37
+ export * from './form/Control';
38
+ export * from './form/Field';
39
+ export * from './form/File';
40
+ export * from './form/Input';
41
+ export * from './form/Radio';
42
+ export * from './form/Radios';
43
+ export * from './form/Select';
44
+ export * from './form/TextArea';
45
+ export * from './grid/Cell';
46
+ export * from './grid/Grid';
47
+ export * from './helpers/classNames';
48
+ export * from './helpers/useBulmaClasses';
49
+ export * from './layout/Container';
50
+ export * from './layout/Footer';
51
+ export * from './layout/Hero';
52
+ export * from './layout/Level';
53
+ export * from './layout/Media';
54
+ export * from './layout/Section';
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
+ /**
4
+ * Bulma container breakpoints.
5
+ */
6
+ export type ContainerBreakpoint = 'tablet' | 'desktop' | 'widescreen';
7
+ /**
8
+ * Props for the Container component.
9
+ *
10
+ * @property {string} [className] - Additional CSS classes.
11
+ * @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color.
12
+ * @property {'primary'|'link'|'info'|'success'|'warning'|'danger'} [color] - Bulma color modifier.
13
+ * @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color.
14
+ * @property {boolean} [fluid] - Full-width container.
15
+ * @property {boolean} [widescreen] - Container is widescreen.
16
+ * @property {boolean} [fullhd] - Container is fullhd.
17
+ * @property {ContainerBreakpoint} [breakpoint] - Responsive breakpoint.
18
+ * @property {boolean} [isMax] - Use is-max-* class for breakpoint.
19
+ * @property {React.ReactNode} [children] - Content inside the container.
20
+ */
21
+ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
22
+ className?: string;
23
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
24
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
25
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
26
+ fluid?: boolean;
27
+ widescreen?: boolean;
28
+ fullhd?: boolean;
29
+ breakpoint?: ContainerBreakpoint;
30
+ isMax?: boolean;
31
+ children?: React.ReactNode;
32
+ }
33
+ /**
34
+ * Container component for Bulma.
35
+ * Adds optional responsive, fluid, and color support, including is-max-* and breakpoint classes.
36
+ *
37
+ * @function
38
+ * @param {ContainerProps} props - Props for the Container component.
39
+ * @returns {JSX.Element} The rendered container.
40
+ * @see {@link https://bulma.io/documentation/layout/container/ | Bulma Container documentation}
41
+ */
42
+ export declare const Container: React.FC<ContainerProps>;
43
+ export default Container;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
+ /**
4
+ * Props for the Footer component.
5
+ *
6
+ * @property {'footer'|'div'} [as] - The HTML tag to render as.
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 inside the footer.
12
+ */
13
+ export interface FooterProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
14
+ as?: 'footer' | 'div';
15
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
16
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
17
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
18
+ className?: string;
19
+ children?: React.ReactNode;
20
+ }
21
+ /**
22
+ * Bulma Footer component.
23
+ *
24
+ * @example
25
+ * <Footer>
26
+ * <div className="content has-text-centered">...</div>
27
+ * </Footer>
28
+ * @see {@link https://bulma.io/documentation/layout/footer/ | Bulma Footer documentation}
29
+ */
30
+ declare const Footer: React.FC<FooterProps>;
31
+ export default Footer;
@@ -0,0 +1,98 @@
1
+ import React from 'react';
2
+ import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
+ /**
4
+ * Possible values for Bulma hero size.
5
+ */
6
+ 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
+ export interface HeroProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
18
+ className?: string;
19
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
20
+ size?: HeroSize;
21
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
22
+ fullheightWithNavbar?: boolean;
23
+ children?: React.ReactNode;
24
+ }
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
+ export declare const Hero: React.FC<HeroProps> & {
34
+ Head: typeof HeroHead;
35
+ Body: typeof HeroBody;
36
+ Foot: typeof HeroFoot;
37
+ };
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
+ export interface HeroHeadProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
48
+ className?: string;
49
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
50
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
51
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
52
+ children?: React.ReactNode;
53
+ }
54
+ /**
55
+ * Bulma Hero head section.
56
+ */
57
+ 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
+ export interface HeroBodyProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
68
+ className?: string;
69
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
70
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
71
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
72
+ children?: React.ReactNode;
73
+ }
74
+ /**
75
+ * Bulma Hero body section.
76
+ */
77
+ 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
+ export interface HeroFootProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
88
+ className?: string;
89
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
90
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
91
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
92
+ children?: React.ReactNode;
93
+ }
94
+ /**
95
+ * Bulma Hero foot section.
96
+ */
97
+ export declare const HeroFoot: React.FC<HeroFootProps>;
98
+ export default Hero;
@@ -0,0 +1,104 @@
1
+ import React from 'react';
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
+ export interface LevelProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
14
+ isMobile?: boolean;
15
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
16
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
17
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
18
+ className?: string;
19
+ children?: React.ReactNode;
20
+ }
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
+ declare const Level: React.FC<LevelProps> & {
30
+ Left: typeof LevelLeft;
31
+ Right: typeof LevelRight;
32
+ Item: typeof LevelItem;
33
+ };
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
+ export interface LevelLeftProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
44
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
45
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
46
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
47
+ className?: string;
48
+ children?: React.ReactNode;
49
+ }
50
+ /**
51
+ * Bulma Level left section.
52
+ */
53
+ 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
+ export interface LevelRightProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
64
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
65
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
66
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
67
+ className?: string;
68
+ children?: React.ReactNode;
69
+ }
70
+ /**
71
+ * Bulma Level right section.
72
+ */
73
+ 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
+ export interface LevelItemProps extends React.HTMLAttributes<HTMLDivElement | HTMLParagraphElement | HTMLAnchorElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
89
+ as?: 'div' | 'p' | 'a';
90
+ hasTextCentered?: boolean;
91
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
92
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
93
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
94
+ className?: string;
95
+ children?: React.ReactNode;
96
+ href?: string;
97
+ target?: string;
98
+ rel?: string;
99
+ }
100
+ /**
101
+ * Bulma Level item section.
102
+ */
103
+ declare const LevelItem: React.FC<LevelItemProps>;
104
+ export default Level;
@@ -0,0 +1,96 @@
1
+ import React from 'react';
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
+ export interface MediaProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
14
+ as?: 'article' | 'div';
15
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
16
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
17
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
18
+ className?: string;
19
+ children?: React.ReactNode;
20
+ }
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
+ export declare const Media: React.FC<MediaProps> & {
30
+ Left: typeof MediaLeft;
31
+ Content: typeof MediaContent;
32
+ Right: typeof MediaRight;
33
+ };
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
+ export interface MediaLeftProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
45
+ as?: 'figure' | 'div';
46
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
47
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
48
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
49
+ className?: string;
50
+ children?: React.ReactNode;
51
+ }
52
+ /**
53
+ * Bulma Media left section.
54
+ */
55
+ 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
+ export interface MediaContentProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
66
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
67
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
68
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
69
+ className?: string;
70
+ children?: React.ReactNode;
71
+ }
72
+ /**
73
+ * Bulma Media content section.
74
+ */
75
+ 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
+ export interface MediaRightProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
86
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
87
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
88
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
89
+ className?: string;
90
+ children?: React.ReactNode;
91
+ }
92
+ /**
93
+ * Bulma Media right section.
94
+ */
95
+ export declare const MediaRight: React.FC<MediaRightProps>;
96
+ export default Media;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
+ /**
4
+ * Section size values for Bulma.
5
+ */
6
+ 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
+ export interface SectionProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
18
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
19
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
20
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
21
+ size?: SectionSize;
22
+ className?: string;
23
+ children?: React.ReactNode;
24
+ }
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
+ export declare const Section: React.FC<SectionProps>;
34
+ export {};
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@allxsmith/bestax-bulma",
3
+ "version": "1.0.0",
4
+ "description": "A React component library with TypeScript",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "type": "module",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "sideEffects": false,
13
+ "scripts": {
14
+ "build": "rollup -c",
15
+ "dev": "rollup -c --watch",
16
+ "watch": "rollup -c --watch",
17
+ "test": "jest",
18
+ "test:watch": "jest --watch",
19
+ "test:coverage": "jest --coverage",
20
+ "bundle:stats": "rollup -c --configPlugin visualizer",
21
+ "lint": "eslint src --ext .ts,.tsx",
22
+ "typecheck": "tsc --noEmit",
23
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
24
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
25
+ "clean": "rimraf dist",
26
+ "storybook": "storybook dev -p 6006",
27
+ "start": "storybook dev -p 6006",
28
+ "build-storybook": "storybook build"
29
+ },
30
+ "dependencies": {},
31
+ "devDependencies": {
32
+ "@faker-js/faker": "^9.0.3",
33
+ "@rollup/plugin-commonjs": "^28.0.0",
34
+ "@rollup/plugin-node-resolve": "^16.0.1",
35
+ "@rollup/plugin-typescript": "^12.1.0",
36
+ "@storybook/addon-docs": "^9.0.12",
37
+ "@storybook/addon-onboarding": "^9.0.12",
38
+ "@storybook/react-vite": "^9.0.12",
39
+ "@testing-library/jest-dom": "^6.5.0",
40
+ "@testing-library/react": "^16.0.1",
41
+ "@testing-library/user-event": "^14.5.2",
42
+ "@types/jest": "^29.5.13",
43
+ "@types/react": "^18.3.11",
44
+ "@types/react-dom": "^18.3.0",
45
+ "@typescript-eslint/eslint-plugin": "^8.8.1",
46
+ "@typescript-eslint/parser": "^8.8.1",
47
+ "eslint": "^9.27.0",
48
+ "eslint-config-prettier": "^10.1.5",
49
+ "eslint-config-react-hooks": "^1.0.0",
50
+ "eslint-plugin-prettier": "^5.2.1",
51
+ "eslint-plugin-react": "^7.37.1",
52
+ "eslint-plugin-react-hooks": "^5.2.0",
53
+ "eslint-plugin-storybook": "^9.0.12",
54
+ "jest": "^29.7.0",
55
+ "jest-environment-jsdom": "^29.7.0",
56
+ "prettier": "^3.3.3",
57
+ "rimraf": "^6.0.1",
58
+ "rollup": "^4.24.0",
59
+ "rollup-plugin-visualizer": "^5.12.0",
60
+ "storybook": "^9.0.12",
61
+ "ts-jest": "^29.2.5",
62
+ "tslib": "^2.8.0",
63
+ "typescript": "^5.6.3"
64
+ },
65
+ "peerDependencies": {
66
+ "@fortawesome/fontawesome-free": "^6.7.2",
67
+ "bulma": "^1.0.4",
68
+ "react": "^17.0.0 || ^18.0.0",
69
+ "react-dom": "^17.0.0 || ^18.0.0"
70
+ },
71
+ "keywords": [
72
+ "react",
73
+ "components",
74
+ "typescript",
75
+ "ui"
76
+ ],
77
+ "author": "Alex Smith",
78
+ "license": "MIT",
79
+ "repository": {
80
+ "type": "git",
81
+ "url": "git+https://github.com/allxsmith/bestax.git",
82
+ "directory": "bulma-ui"
83
+ },
84
+ "publishConfig": {
85
+ "access": "public"
86
+ },
87
+ "eslintConfig": {
88
+ "extends": [
89
+ "plugin:storybook/recommended"
90
+ ]
91
+ },
92
+ "overrides": {
93
+ "storybook": "$storybook"
94
+ }
95
+ }