@allxsmith/bestax-bulma 5.16.4 → 5.16.6
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/types-cjs/columns/Column.d.ts +68 -0
- package/dist/types-cjs/columns/Columns.d.ts +63 -0
- package/dist/types-cjs/components/Avatar.d.ts +91 -0
- package/dist/types-cjs/components/Avatars.d.ts +30 -0
- package/dist/types-cjs/components/Badge.d.ts +56 -0
- package/dist/types-cjs/components/Breadcrumb.d.ts +42 -0
- package/dist/types-cjs/components/Card.d.ts +166 -0
- package/dist/types-cjs/components/Carousel.d.ts +104 -0
- package/dist/types-cjs/components/Collapse.d.ts +69 -0
- package/dist/types-cjs/components/Dialog.d.ts +142 -0
- package/dist/types-cjs/components/Dropdown.d.ts +104 -0
- package/dist/types-cjs/components/Loading.d.ts +68 -0
- package/dist/types-cjs/components/Menu.d.ts +100 -0
- package/dist/types-cjs/components/Message.d.ts +51 -0
- package/dist/types-cjs/components/Modal.d.ts +126 -0
- package/dist/types-cjs/components/Navbar.d.ts +302 -0
- package/dist/types-cjs/components/Pagination.d.ts +130 -0
- package/dist/types-cjs/components/Panel.d.ts +147 -0
- package/dist/types-cjs/components/Reveal.d.ts +47 -0
- package/dist/types-cjs/components/Sidebar.d.ts +76 -0
- package/dist/types-cjs/components/Steps.d.ts +101 -0
- package/dist/types-cjs/components/Tabs.d.ts +160 -0
- package/dist/types-cjs/components/Toast.d.ts +150 -0
- package/dist/types-cjs/components/Tooltip.d.ts +68 -0
- package/dist/types-cjs/elements/Block.d.ts +31 -0
- package/dist/types-cjs/elements/Box.d.ts +41 -0
- package/dist/types-cjs/elements/Button.d.ts +74 -0
- package/dist/types-cjs/elements/Buttons.d.ts +40 -0
- package/dist/types-cjs/elements/Code.d.ts +23 -0
- package/dist/types-cjs/elements/Content.d.ts +34 -0
- package/dist/types-cjs/elements/Delete.d.ts +38 -0
- package/dist/types-cjs/elements/Divider.d.ts +19 -0
- package/dist/types-cjs/elements/Emphasis.d.ts +23 -0
- package/dist/types-cjs/elements/Figure.d.ts +40 -0
- package/dist/types-cjs/elements/Icon.d.ts +138 -0
- package/dist/types-cjs/elements/IconText.d.ts +40 -0
- package/dist/types-cjs/elements/Image.d.ts +44 -0
- package/dist/types-cjs/elements/Link.d.ts +55 -0
- package/dist/types-cjs/elements/LinkButton.d.ts +57 -0
- package/dist/types-cjs/elements/ListItem.d.ts +24 -0
- package/dist/types-cjs/elements/Notification.d.ts +148 -0
- package/dist/types-cjs/elements/OrderedList.d.ts +21 -0
- package/dist/types-cjs/elements/Paragraph.d.ts +23 -0
- package/dist/types-cjs/elements/Pre.d.ts +23 -0
- package/dist/types-cjs/elements/Progress.d.ts +36 -0
- package/dist/types-cjs/elements/Skeleton.d.ts +30 -0
- package/dist/types-cjs/elements/Span.d.ts +23 -0
- package/dist/types-cjs/elements/Strong.d.ts +23 -0
- package/dist/types-cjs/elements/SubTitle.d.ts +41 -0
- package/dist/types-cjs/elements/Table.d.ts +36 -0
- package/dist/types-cjs/elements/Tag.d.ts +45 -0
- package/dist/types-cjs/elements/Tags.d.ts +32 -0
- package/dist/types-cjs/elements/Tbody.d.ts +25 -0
- package/dist/types-cjs/elements/Td.d.ts +33 -0
- package/dist/types-cjs/elements/Tfoot.d.ts +25 -0
- package/dist/types-cjs/elements/Th.d.ts +38 -0
- package/dist/types-cjs/elements/Thead.d.ts +25 -0
- package/dist/types-cjs/elements/Title.d.ts +43 -0
- package/dist/types-cjs/elements/Tr.d.ts +30 -0
- package/dist/types-cjs/elements/UnorderedList.d.ts +18 -0
- package/dist/types-cjs/elements/iconProps.d.ts +30 -0
- package/dist/types-cjs/form/Autocomplete.d.ts +114 -0
- package/dist/types-cjs/form/Checkbox.d.ts +47 -0
- package/dist/types-cjs/form/Checkboxes.d.ts +30 -0
- package/dist/types-cjs/form/Control.d.ts +68 -0
- package/dist/types-cjs/form/DateInput.d.ts +70 -0
- package/dist/types-cjs/form/DateInputBase.d.ts +91 -0
- package/dist/types-cjs/form/DateTimeInput.d.ts +68 -0
- package/dist/types-cjs/form/DateTimeInputBase.d.ts +108 -0
- package/dist/types-cjs/form/Field.d.ts +101 -0
- package/dist/types-cjs/form/File.d.ts +52 -0
- package/dist/types-cjs/form/FormContext.d.ts +78 -0
- package/dist/types-cjs/form/Input.d.ts +72 -0
- package/dist/types-cjs/form/InputBase.d.ts +37 -0
- package/dist/types-cjs/form/Numberinput.d.ts +83 -0
- package/dist/types-cjs/form/Radio.d.ts +47 -0
- package/dist/types-cjs/form/Radios.d.ts +30 -0
- package/dist/types-cjs/form/Rate.d.ts +99 -0
- package/dist/types-cjs/form/Select.d.ts +58 -0
- package/dist/types-cjs/form/SelectBase.d.ts +45 -0
- package/dist/types-cjs/form/Slider.d.ts +141 -0
- package/dist/types-cjs/form/Switch.d.ts +67 -0
- package/dist/types-cjs/form/Taginput.d.ts +140 -0
- package/dist/types-cjs/form/TextArea.d.ts +52 -0
- package/dist/types-cjs/form/TextAreaBase.d.ts +43 -0
- package/dist/types-cjs/form/TimeInput.d.ts +66 -0
- package/dist/types-cjs/form/TimeInputBase.d.ts +95 -0
- package/dist/types-cjs/form/_pickerInternals/Calendar.d.ts +32 -0
- package/dist/types-cjs/form/_pickerInternals/PickerPopover.d.ts +20 -0
- package/dist/types-cjs/form/_pickerInternals/TimeWheels.d.ts +42 -0
- package/dist/types-cjs/form/_pickerInternals/audioTick.d.ts +50 -0
- package/dist/types-cjs/form/_pickerInternals/dateUtils.d.ts +52 -0
- package/dist/types-cjs/form/_pickerInternals/formatters.d.ts +32 -0
- package/dist/types-cjs/form/_pickerInternals/haptics.d.ts +24 -0
- package/dist/types-cjs/form/_pickerInternals/pickerTypes.d.ts +39 -0
- package/dist/types-cjs/form/_pickerInternals/segmentMap.d.ts +68 -0
- package/dist/types-cjs/form/_pickerInternals/useFocusTrap.d.ts +7 -0
- package/dist/types-cjs/form/_pickerInternals/useNativeMobilePicker.d.ts +11 -0
- package/dist/types-cjs/form/_pickerInternals/useSegmentedEntry.d.ts +75 -0
- package/dist/types-cjs/form/fieldProps.d.ts +24 -0
- package/dist/types-cjs/form/useAutoLabelId.d.ts +51 -0
- package/dist/types-cjs/grid/Cell.d.ts +42 -0
- package/dist/types-cjs/grid/Grid.d.ts +59 -0
- package/dist/types-cjs/helpers/Config.d.ts +67 -0
- package/dist/types-cjs/helpers/Theme.d.ts +116 -0
- package/dist/types-cjs/helpers/anchorAttrs.d.ts +37 -0
- package/dist/types-cjs/helpers/bulmaClassHelpers.d.ts +197 -0
- package/dist/types-cjs/helpers/classNames.d.ts +55 -0
- package/dist/types-cjs/helpers/colorDeprecations.d.ts +17 -0
- package/dist/types-cjs/helpers/mergeBulmaStyles.d.ts +17 -0
- package/dist/types-cjs/helpers/polymorphic.d.ts +138 -0
- package/dist/types-cjs/helpers/portal.d.ts +15 -0
- package/dist/types-cjs/helpers/scrollLock.d.ts +9 -0
- package/dist/types-cjs/helpers/useBulmaClasses.d.ts +60 -0
- package/dist/types-cjs/helpers/useColorClasses.d.ts +69 -0
- package/dist/types-cjs/helpers/useFlexboxClasses.d.ts +46 -0
- package/dist/types-cjs/helpers/useIsHydrated.d.ts +12 -0
- package/dist/types-cjs/helpers/useOtherClasses.d.ts +43 -0
- package/dist/types-cjs/helpers/useSpacingClasses.d.ts +45 -0
- package/dist/types-cjs/helpers/useTypographyClasses.d.ts +51 -0
- package/dist/types-cjs/helpers/useVisibilityClasses.d.ts +43 -0
- package/dist/types-cjs/helpers/withSubComponents.d.ts +16 -0
- package/dist/types-cjs/index.d.ts +113 -0
- package/dist/types-cjs/layout/Container.d.ts +51 -0
- package/dist/types-cjs/layout/Footer.d.ts +39 -0
- package/dist/types-cjs/layout/Hero.d.ts +126 -0
- package/dist/types-cjs/layout/Level.d.ts +112 -0
- package/dist/types-cjs/layout/Media.d.ts +97 -0
- package/dist/types-cjs/layout/Section.d.ts +38 -0
- package/dist/types-cjs/package.json +3 -0
- package/dist/types-cjs/skill-examples/ExampleMeta.d.ts +15 -0
- package/dist/types-cjs/skill-examples/ProfileCard.d.ts +23 -0
- package/package.json +9 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the ListItem component.
|
|
5
|
+
* @extraProp {number} [value] - Custom value for ordered list items.
|
|
6
|
+
*/
|
|
7
|
+
export interface ListItemProps extends React.LiHTMLAttributes<HTMLLIElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
8
|
+
/** Additional CSS classes to apply. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Text color helper. */
|
|
11
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
12
|
+
/** Background color helper. */
|
|
13
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
14
|
+
/** Content to render inside the list item. */
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The `ListItem` component renders a styled list item (`<li>`) element with Bulma helper class integration.
|
|
19
|
+
*
|
|
20
|
+
* @function
|
|
21
|
+
* @param {ListItemProps} props - Props for the ListItem component.
|
|
22
|
+
* @returns {JSX.Element} The rendered li element.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ListItem: React.FC<ListItemProps>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Notification component.
|
|
5
|
+
*/
|
|
6
|
+
export interface NotificationProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Additional CSS classes to apply. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Bulma color modifier for the notification (renders `is-<color>`).
|
|
11
|
+
*
|
|
12
|
+
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
13
|
+
* `white`, `light`, and `dark` have shipped CSS for `.notification`. Every
|
|
14
|
+
* other value the union accepts emits a class no CSS rule matches, so the
|
|
15
|
+
* notification renders unstyled; those log a console warning in development
|
|
16
|
+
* and will be removed from this union in the next major version.
|
|
17
|
+
*/
|
|
18
|
+
color?: (typeof validColors)[number];
|
|
19
|
+
/** Text color helper. */
|
|
20
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
21
|
+
/** Use the light color variant. */
|
|
22
|
+
isLight?: boolean;
|
|
23
|
+
/** Shows a close (delete) button in the notification. */
|
|
24
|
+
hasDelete?: boolean;
|
|
25
|
+
/** Callback fired when the delete button is clicked. */
|
|
26
|
+
onDelete?: () => void;
|
|
27
|
+
/** Content inside the notification. */
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The `Notification` component is a Bulma-styled alert/message area for providing feedback, warnings, or information to users.
|
|
32
|
+
*
|
|
33
|
+
* @function
|
|
34
|
+
* @param {NotificationProps} props - Props for the Notification component.
|
|
35
|
+
* @returns {JSX.Element} The rendered notification element.
|
|
36
|
+
* @see {@link https://bulma.io/documentation/elements/notification/ | Bulma Notification documentation}
|
|
37
|
+
*/
|
|
38
|
+
export declare const Notification: React.FC<NotificationProps>;
|
|
39
|
+
/** Screen positions where programmatic notifications can be displayed. */
|
|
40
|
+
export type NotificationPosition = 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
41
|
+
/**
|
|
42
|
+
* Options for showing a programmatic notification.
|
|
43
|
+
*/
|
|
44
|
+
export interface NotificationOptions {
|
|
45
|
+
/** The message to display. */
|
|
46
|
+
message: string | React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Bulma color modifier for the notification (renders `is-<color>`).
|
|
49
|
+
*
|
|
50
|
+
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
51
|
+
* `white`, `light`, and `dark` have shipped CSS for `.notification`. Every
|
|
52
|
+
* other value the union accepts emits a class no CSS rule matches, so the
|
|
53
|
+
* notification renders unstyled; those log a console warning in development
|
|
54
|
+
* and will be removed from this union in the next major version.
|
|
55
|
+
*/
|
|
56
|
+
color?: (typeof validColors)[number];
|
|
57
|
+
/** Use the light color variant. */
|
|
58
|
+
isLight?: boolean;
|
|
59
|
+
/** Duration in ms before auto-close. Default 3000. */
|
|
60
|
+
duration?: number;
|
|
61
|
+
/** Position on the screen. Default 'top-right'. */
|
|
62
|
+
position?: NotificationPosition;
|
|
63
|
+
/** When true, notifications enter a FIFO queue and display one at a time. Default false. */
|
|
64
|
+
queue?: boolean;
|
|
65
|
+
/** Show a delete (close) button. Default true. */
|
|
66
|
+
hasDelete?: boolean;
|
|
67
|
+
/** Stay open until dismissed. */
|
|
68
|
+
indefinite?: boolean;
|
|
69
|
+
/** Pause auto-close timer on hover. Default true. */
|
|
70
|
+
pauseOnHover?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Internal representation of a notification instance.
|
|
74
|
+
*/
|
|
75
|
+
interface NotificationInstance {
|
|
76
|
+
/** Unique identifier for this notification. */
|
|
77
|
+
id: string;
|
|
78
|
+
/** Configuration options for the notification. */
|
|
79
|
+
options: NotificationOptions;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Programmatic notification API for showing, closing, and managing notifications.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* notification.success('File saved successfully');
|
|
86
|
+
* notification.danger('Something went wrong', { duration: 5000 });
|
|
87
|
+
*/
|
|
88
|
+
export declare const notification: {
|
|
89
|
+
/**
|
|
90
|
+
* Show a notification with the given options.
|
|
91
|
+
* @param {NotificationOptions} options - Notification configuration.
|
|
92
|
+
* @returns {string} The unique ID of the created notification.
|
|
93
|
+
*/
|
|
94
|
+
show: (options: NotificationOptions) => string;
|
|
95
|
+
/**
|
|
96
|
+
* Show a success notification.
|
|
97
|
+
* @param {string|React.ReactNode} message - The message to display.
|
|
98
|
+
* @param {Partial<NotificationOptions>} [options] - Additional options.
|
|
99
|
+
* @returns {string} The notification ID.
|
|
100
|
+
*/
|
|
101
|
+
success: (message: string | React.ReactNode, options?: Partial<NotificationOptions>) => string;
|
|
102
|
+
/**
|
|
103
|
+
* Show a danger notification.
|
|
104
|
+
* @param {string|React.ReactNode} message - The message to display.
|
|
105
|
+
* @param {Partial<NotificationOptions>} [options] - Additional options.
|
|
106
|
+
* @returns {string} The notification ID.
|
|
107
|
+
*/
|
|
108
|
+
danger: (message: string | React.ReactNode, options?: Partial<NotificationOptions>) => string;
|
|
109
|
+
/**
|
|
110
|
+
* Show a warning notification.
|
|
111
|
+
* @param {string|React.ReactNode} message - The message to display.
|
|
112
|
+
* @param {Partial<NotificationOptions>} [options] - Additional options.
|
|
113
|
+
* @returns {string} The notification ID.
|
|
114
|
+
*/
|
|
115
|
+
warning: (message: string | React.ReactNode, options?: Partial<NotificationOptions>) => string;
|
|
116
|
+
/**
|
|
117
|
+
* Show an info notification.
|
|
118
|
+
* @param {string|React.ReactNode} message - The message to display.
|
|
119
|
+
* @param {Partial<NotificationOptions>} [options] - Additional options.
|
|
120
|
+
* @returns {string} The notification ID.
|
|
121
|
+
*/
|
|
122
|
+
info: (message: string | React.ReactNode, options?: Partial<NotificationOptions>) => string;
|
|
123
|
+
/**
|
|
124
|
+
* Close a specific notification by ID.
|
|
125
|
+
* @param {string} id - The notification ID to close.
|
|
126
|
+
*/
|
|
127
|
+
close: (id: string) => void;
|
|
128
|
+
/** Close all notifications and clear the queue. */
|
|
129
|
+
closeAll: () => void;
|
|
130
|
+
/**
|
|
131
|
+
* Subscribe to notification state changes.
|
|
132
|
+
* @param {(items: NotificationInstance[]) => void} listener - Callback invoked on changes.
|
|
133
|
+
* @returns {() => void} Unsubscribe function.
|
|
134
|
+
*/
|
|
135
|
+
subscribe: (listener: (items: NotificationInstance[]) => void) => (() => void);
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Container component for rendering programmatic notifications.
|
|
139
|
+
* Place once at your app root to enable the notification API.
|
|
140
|
+
*
|
|
141
|
+
* @function
|
|
142
|
+
* @param {{ position?: NotificationPosition }} props - Container props.
|
|
143
|
+
* @returns {JSX.Element | null} The rendered notification container, or null if empty.
|
|
144
|
+
*/
|
|
145
|
+
export declare const NotificationContainer: React.FC<{
|
|
146
|
+
position?: NotificationPosition;
|
|
147
|
+
}>;
|
|
148
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the OrderedList component.
|
|
5
|
+
* @extraProp {'1' | 'a' | 'A' | 'i' | 'I'} [type='1'] - The numbering type for the list.
|
|
6
|
+
* @extraProp {number} [start] - The starting number for the list.
|
|
7
|
+
* @extraProp {boolean} [reversed] - Whether to reverse the list numbering.
|
|
8
|
+
*/
|
|
9
|
+
export interface OrderedListProps extends React.OlHTMLAttributes<HTMLOListElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
10
|
+
/** Additional CSS classes to apply. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Text color helper. */
|
|
13
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
14
|
+
/** Background color helper. */
|
|
15
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
16
|
+
/** List items to render inside the list. */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const OrderedList: React.FC<OrderedListProps> & {
|
|
20
|
+
Item: React.FC<import("./ListItem.js").ListItemProps>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Paragraph component.
|
|
5
|
+
*/
|
|
6
|
+
export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Additional CSS classes to apply. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Text color helper. */
|
|
10
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
11
|
+
/** Background color helper. */
|
|
12
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Content to render inside the paragraph. */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The `Paragraph` component renders a styled `<p>` element with Bulma helper class integration.
|
|
18
|
+
*
|
|
19
|
+
* @function
|
|
20
|
+
* @param {ParagraphProps} props - Props for the Paragraph component.
|
|
21
|
+
* @returns {JSX.Element} The rendered paragraph element.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Paragraph: React.FC<ParagraphProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Pre component.
|
|
5
|
+
*/
|
|
6
|
+
export interface PreProps extends React.HTMLAttributes<HTMLPreElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Additional CSS classes to apply. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Text color helper. */
|
|
10
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
11
|
+
/** Background color helper. */
|
|
12
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Preformatted content to render. */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The `Pre` component renders a styled `<pre>` element with Bulma helper class integration.
|
|
18
|
+
*
|
|
19
|
+
* @function
|
|
20
|
+
* @param {PreProps} props - Props for the Pre component.
|
|
21
|
+
* @returns {JSX.Element} The rendered pre element.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Pre: React.FC<PreProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Progress component.
|
|
5
|
+
*/
|
|
6
|
+
export interface ProgressProps extends React.ProgressHTMLAttributes<HTMLProgressElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Additional CSS classes to apply. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Bulma color modifier for the progress bar (renders `is-<color>`).
|
|
11
|
+
*
|
|
12
|
+
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
13
|
+
* `white`, `light`, and `dark` have shipped CSS for `.progress`. Every
|
|
14
|
+
* other value the union accepts emits a class no CSS rule matches, so the
|
|
15
|
+
* bar renders unstyled; those log a console warning in development and will
|
|
16
|
+
* be removed from this union in the next major version.
|
|
17
|
+
*/
|
|
18
|
+
color?: (typeof validColors)[number];
|
|
19
|
+
/** Size modifier for the progress bar. */
|
|
20
|
+
size?: 'small' | 'medium' | 'large';
|
|
21
|
+
/** Current value of the progress bar. */
|
|
22
|
+
value?: number;
|
|
23
|
+
/** Maximum value of the progress bar. */
|
|
24
|
+
max?: number;
|
|
25
|
+
/** Optional custom content inside the progress bar. */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The `Progress` component displays a Bulma-styled progress bar.
|
|
30
|
+
*
|
|
31
|
+
* @function
|
|
32
|
+
* @param {ProgressProps} props - Props for the Progress component.
|
|
33
|
+
* @returns {JSX.Element} The rendered progress bar element.
|
|
34
|
+
* @see {@link https://bulma.io/documentation/elements/progress/ | Bulma Progress documentation}
|
|
35
|
+
*/
|
|
36
|
+
export declare const Progress: React.FC<ProgressProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Skeleton component.
|
|
4
|
+
*/
|
|
5
|
+
export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Additional CSS classes to apply */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Skeleton variant: block (single block) or lines. */
|
|
9
|
+
variant?: 'block' | 'lines';
|
|
10
|
+
/** Number of lines (only for `lines` variant). */
|
|
11
|
+
lines?: number;
|
|
12
|
+
/** Content inside the block (only for block variant). */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The `Skeleton` component provides a Bulma-styled skeleton loader for React applications, useful for indicating that content is loading.
|
|
17
|
+
*
|
|
18
|
+
* @function
|
|
19
|
+
* @param {SkeletonProps} props - Props for the Skeleton component.
|
|
20
|
+
* @returns {JSX.Element} The rendered skeleton element.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Block skeleton
|
|
24
|
+
* <Skeleton />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Multi-line skeleton
|
|
28
|
+
* <Skeleton variant="lines" lines={5} />
|
|
29
|
+
*/
|
|
30
|
+
export declare const Skeleton: React.FC<SkeletonProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Span component.
|
|
5
|
+
*/
|
|
6
|
+
export interface SpanProps extends React.HTMLAttributes<HTMLSpanElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Additional CSS classes to apply. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Text color helper. */
|
|
10
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
11
|
+
/** Background color helper. */
|
|
12
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Content to render inside the span. */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The `Span` component renders a styled inline `<span>` element with Bulma helper class integration.
|
|
18
|
+
*
|
|
19
|
+
* @function
|
|
20
|
+
* @param {SpanProps} props - Props for the Span component.
|
|
21
|
+
* @returns {JSX.Element} The rendered span element.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Span: React.FC<SpanProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Strong component.
|
|
5
|
+
*/
|
|
6
|
+
export interface StrongProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Additional CSS classes to apply. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Text color helper. */
|
|
10
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
11
|
+
/** Background color helper. */
|
|
12
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Content to render inside the strong element. */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The `Strong` component renders a styled `<strong>` element with Bulma helper class integration.
|
|
18
|
+
*
|
|
19
|
+
* @function
|
|
20
|
+
* @param {StrongProps} props - Props for the Strong component.
|
|
21
|
+
* @returns {JSX.Element} The rendered strong element.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Strong: React.FC<StrongProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
/**
|
|
4
|
+
* Valid size values for the SubTitle component (Bulma subtitle sizes): `'1'`–`'6'` as a string or number (`3` and `'3'` are equivalent).
|
|
5
|
+
*/
|
|
6
|
+
export type SubTitleSize = '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
7
|
+
declare const validSubTitleElements: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
8
|
+
/**
|
|
9
|
+
* Valid HTML elements for the SubTitle component.
|
|
10
|
+
*/
|
|
11
|
+
export type SubTitleElement = (typeof validSubTitleElements)[number];
|
|
12
|
+
/**
|
|
13
|
+
* Props for the SubTitle component.
|
|
14
|
+
* @extraProp {boolean} [skeleton] - Applies the `is-skeleton` class to the entire component.
|
|
15
|
+
*/
|
|
16
|
+
export interface SubTitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement | HTMLParagraphElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
17
|
+
/** Additional CSS classes to apply. */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Size of the subtitle (Bulma sizes `1`-`6`, as a string or number). */
|
|
20
|
+
size?: SubTitleSize;
|
|
21
|
+
/** HTML element to render as (h1-h6 or p). */
|
|
22
|
+
as?: SubTitleElement;
|
|
23
|
+
/** Applies the `has-skeleton` class to part of the content. */
|
|
24
|
+
hasSkeleton?: boolean;
|
|
25
|
+
/** Subtitle content. */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/** Text color helper. */
|
|
28
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
29
|
+
/** Background color helper. */
|
|
30
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The `SubTitle` component renders a Bulma-styled subtitle (secondary heading), supporting sizes `1-6` and rendering as any heading or paragraph element (`h1-h6`, `p`).
|
|
34
|
+
*
|
|
35
|
+
* @function
|
|
36
|
+
* @param {SubTitleProps} props - Props for the SubTitle component.
|
|
37
|
+
* @returns {JSX.Element} The rendered subtitle element.
|
|
38
|
+
* @see {@link https://bulma.io/documentation/elements/title/#subtitle | Bulma Subtitle documentation}
|
|
39
|
+
*/
|
|
40
|
+
export declare const SubTitle: React.FC<SubTitleProps>;
|
|
41
|
+
export default SubTitle;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @group Table
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the Table component.
|
|
8
|
+
*/
|
|
9
|
+
export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor'> {
|
|
10
|
+
/** Additional CSS classes to apply. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Adds borders to all cells. */
|
|
13
|
+
isBordered?: boolean;
|
|
14
|
+
/** Adds zebra-striping to rows. */
|
|
15
|
+
isStriped?: boolean;
|
|
16
|
+
/** Makes the table more compact by cutting cell padding in half. */
|
|
17
|
+
isNarrow?: boolean;
|
|
18
|
+
/** Adds a hover effect on rows. */
|
|
19
|
+
isHoverable?: boolean;
|
|
20
|
+
/** Makes the table span the full width of its parent. */
|
|
21
|
+
isFullwidth?: boolean;
|
|
22
|
+
/** Makes the table span the full width of its parent. @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
|
|
23
|
+
isFullWidth?: boolean;
|
|
24
|
+
/** Makes the table horizontally scrollable on small screens. */
|
|
25
|
+
isResponsive?: boolean;
|
|
26
|
+
/** Table content (should use subcomponents). */
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const Table: React.FC<TableProps> & {
|
|
30
|
+
Thead: React.FC<import("./Thead.js").TheadProps>;
|
|
31
|
+
Tbody: React.FC<import("./Tbody.js").TbodyProps>;
|
|
32
|
+
Tfoot: React.FC<import("./Tfoot.js").TfootProps>;
|
|
33
|
+
Tr: React.FC<import("./Tr.js").TrProps>;
|
|
34
|
+
Th: React.FC<import("./Th.js").ThProps>;
|
|
35
|
+
Td: React.FC<import("./Td.js").TdProps>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
declare const validTagColors: readonly ["primary", "link", "info", "success", "warning", "danger", "black", "dark", "light", "white"];
|
|
4
|
+
/**
|
|
5
|
+
* Valid color values for the Tag component (Bulma tag colors).
|
|
6
|
+
*/
|
|
7
|
+
export type TagColor = (typeof validTagColors)[number];
|
|
8
|
+
declare const validTagSizes: readonly ["normal", "medium", "large"];
|
|
9
|
+
/**
|
|
10
|
+
* Valid size values for the Tag component (Bulma tag sizes).
|
|
11
|
+
*/
|
|
12
|
+
export type TagSize = (typeof validTagSizes)[number];
|
|
13
|
+
/**
|
|
14
|
+
* Props for the Tag component.
|
|
15
|
+
*/
|
|
16
|
+
export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, Omit<BulmaClassesProps, 'color'> {
|
|
17
|
+
/** Additional CSS classes to apply. */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Bulma color modifier for the tag. */
|
|
20
|
+
color?: TagColor;
|
|
21
|
+
/** Tag size. */
|
|
22
|
+
size?: TagSize;
|
|
23
|
+
/** Use the light color variant. */
|
|
24
|
+
isLight?: boolean;
|
|
25
|
+
/** Renders a rounded tag. */
|
|
26
|
+
isRounded?: boolean;
|
|
27
|
+
/** Renders a delete-style tag (delete button). */
|
|
28
|
+
isDelete?: boolean;
|
|
29
|
+
/** Adds hover effect to the tag. */
|
|
30
|
+
isHoverable?: boolean;
|
|
31
|
+
/** Callback for delete tag/button. */
|
|
32
|
+
onDelete?: () => void;
|
|
33
|
+
/** Tag content. */
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The `Tag` component renders a Bulma-styled label or badge.
|
|
38
|
+
*
|
|
39
|
+
* @function
|
|
40
|
+
* @param {TagProps} props - Props for the Tag component.
|
|
41
|
+
* @returns {JSX.Element} The rendered tag element.
|
|
42
|
+
* @see {@link https://bulma.io/documentation/elements/tag/ | Bulma Tag documentation}
|
|
43
|
+
*/
|
|
44
|
+
export declare const Tag: React.FC<TagProps>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
3
|
+
declare const validTagsSizes: readonly ["medium", "large"];
|
|
4
|
+
/**
|
|
5
|
+
* Valid size values for the Tags component (Bulma tag group sizes).
|
|
6
|
+
*/
|
|
7
|
+
export type TagsSize = (typeof validTagsSizes)[number];
|
|
8
|
+
/**
|
|
9
|
+
* Props for the Tags component.
|
|
10
|
+
*/
|
|
11
|
+
export interface TagsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color' | 'size'> {
|
|
12
|
+
/** Additional CSS classes to apply. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Group tags together as add-ons (no spacing). */
|
|
15
|
+
hasAddons?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* No-op retained for backwards compatibility.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Bulma's `.tags` wraps by default (no shipped `are-multiline`
|
|
20
|
+
* CSS exists for it) — this prop has never had a visual effect and will be
|
|
21
|
+
* removed in the next major version.
|
|
22
|
+
*/
|
|
23
|
+
isMultiline?: boolean;
|
|
24
|
+
/** Size of every tag in the group. */
|
|
25
|
+
size?: TagsSize;
|
|
26
|
+
/** Tag elements to render inside the container. */
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const Tags: React.FC<TagsProps> & {
|
|
30
|
+
Tag: React.FC<import("./Tag.js").TagProps>;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @group Table
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the Tbody component.
|
|
8
|
+
*/
|
|
9
|
+
export interface TbodyProps extends Omit<React.HTMLAttributes<HTMLTableSectionElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor'> {
|
|
10
|
+
/** Additional CSS classes to apply. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Table body content (rows). */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Tbody component for rendering a styled Bulma table body.
|
|
17
|
+
*
|
|
18
|
+
* Supports Bulma helper classes for additional styling.
|
|
19
|
+
*
|
|
20
|
+
* @function
|
|
21
|
+
* @param {TbodyProps} props - Props for the Tbody component.
|
|
22
|
+
* @returns {JSX.Element} The rendered table body element.
|
|
23
|
+
* @see {@link https://bulma.io/documentation/elements/table/#table-body | Bulma Table documentation}
|
|
24
|
+
*/
|
|
25
|
+
export declare const Tbody: React.FC<TbodyProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @group Table
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
6
|
+
/** Valid Bulma color values for table cells. */
|
|
7
|
+
export declare const validTableColors: readonly ["primary", "link", "info", "success", "warning", "danger", "black", "dark", "light", "white"];
|
|
8
|
+
/**
|
|
9
|
+
* Valid color values for the Td component (Bulma table cell colors).
|
|
10
|
+
*/
|
|
11
|
+
export type TableColor = (typeof validTableColors)[number];
|
|
12
|
+
/**
|
|
13
|
+
* Props for the Td component.
|
|
14
|
+
*/
|
|
15
|
+
export interface TdProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
16
|
+
/** Additional CSS classes to apply. */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Bulma color modifier for the table cell. */
|
|
19
|
+
color?: TableColor;
|
|
20
|
+
/** Table cell content. */
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Td component for rendering a styled Bulma table cell.
|
|
25
|
+
*
|
|
26
|
+
* Supports Bulma color modifiers and helper classes for additional styling.
|
|
27
|
+
*
|
|
28
|
+
* @function
|
|
29
|
+
* @param {TdProps} props - Props for the Td component.
|
|
30
|
+
* @returns {JSX.Element} The rendered table cell element.
|
|
31
|
+
* @see {@link https://bulma.io/documentation/elements/table/#table-body | Bulma Table documentation}
|
|
32
|
+
*/
|
|
33
|
+
export declare const Td: React.FC<TdProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @group Table
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the Tfoot component.
|
|
8
|
+
*/
|
|
9
|
+
export interface TfootProps extends Omit<React.HTMLAttributes<HTMLTableSectionElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor'> {
|
|
10
|
+
/** Additional CSS classes to apply. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Table footer content (rows). */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Tfoot component for rendering a styled Bulma table footer.
|
|
17
|
+
*
|
|
18
|
+
* Supports Bulma helper classes for additional styling.
|
|
19
|
+
*
|
|
20
|
+
* @function
|
|
21
|
+
* @param {TfootProps} props - Props for the Tfoot component.
|
|
22
|
+
* @returns {JSX.Element} The rendered table footer element.
|
|
23
|
+
* @see {@link https://bulma.io/documentation/elements/table/#table-footer | Bulma Table documentation}
|
|
24
|
+
*/
|
|
25
|
+
export declare const Tfoot: React.FC<TfootProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @group Table
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
|
|
6
|
+
import { TableColor } from './Td.js';
|
|
7
|
+
declare const validAlignments: readonly ["left", "right", "centered"];
|
|
8
|
+
/**
|
|
9
|
+
* Valid alignment values for the Th component.
|
|
10
|
+
*/
|
|
11
|
+
type TableAlignment = (typeof validAlignments)[number];
|
|
12
|
+
/**
|
|
13
|
+
* Props for the Th component.
|
|
14
|
+
*/
|
|
15
|
+
export interface ThProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
16
|
+
/** Additional CSS classes to apply. */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Text alignment for the header cell ('left', 'right', 'centered'). */
|
|
19
|
+
isAligned?: TableAlignment;
|
|
20
|
+
/** Width of the header cell (e.g., '100px' or 100). */
|
|
21
|
+
width?: string | number;
|
|
22
|
+
/** Bulma color modifier for the header cell. */
|
|
23
|
+
color?: TableColor;
|
|
24
|
+
/** Table header cell content. */
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Th component for rendering a styled Bulma table header cell.
|
|
29
|
+
*
|
|
30
|
+
* Supports alignment, width, and color modifiers.
|
|
31
|
+
*
|
|
32
|
+
* @function
|
|
33
|
+
* @param {ThProps} props - Props for the Th component.
|
|
34
|
+
* @returns {JSX.Element} The rendered table header cell element.
|
|
35
|
+
* @see {@link https://bulma.io/documentation/elements/table/#table-head | Bulma Table documentation}
|
|
36
|
+
*/
|
|
37
|
+
export declare const Th: React.FC<ThProps>;
|
|
38
|
+
export {};
|