@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.
Files changed (133) hide show
  1. package/dist/types-cjs/columns/Column.d.ts +68 -0
  2. package/dist/types-cjs/columns/Columns.d.ts +63 -0
  3. package/dist/types-cjs/components/Avatar.d.ts +91 -0
  4. package/dist/types-cjs/components/Avatars.d.ts +30 -0
  5. package/dist/types-cjs/components/Badge.d.ts +56 -0
  6. package/dist/types-cjs/components/Breadcrumb.d.ts +42 -0
  7. package/dist/types-cjs/components/Card.d.ts +166 -0
  8. package/dist/types-cjs/components/Carousel.d.ts +104 -0
  9. package/dist/types-cjs/components/Collapse.d.ts +69 -0
  10. package/dist/types-cjs/components/Dialog.d.ts +142 -0
  11. package/dist/types-cjs/components/Dropdown.d.ts +104 -0
  12. package/dist/types-cjs/components/Loading.d.ts +68 -0
  13. package/dist/types-cjs/components/Menu.d.ts +100 -0
  14. package/dist/types-cjs/components/Message.d.ts +51 -0
  15. package/dist/types-cjs/components/Modal.d.ts +126 -0
  16. package/dist/types-cjs/components/Navbar.d.ts +302 -0
  17. package/dist/types-cjs/components/Pagination.d.ts +130 -0
  18. package/dist/types-cjs/components/Panel.d.ts +147 -0
  19. package/dist/types-cjs/components/Reveal.d.ts +47 -0
  20. package/dist/types-cjs/components/Sidebar.d.ts +76 -0
  21. package/dist/types-cjs/components/Steps.d.ts +101 -0
  22. package/dist/types-cjs/components/Tabs.d.ts +160 -0
  23. package/dist/types-cjs/components/Toast.d.ts +150 -0
  24. package/dist/types-cjs/components/Tooltip.d.ts +68 -0
  25. package/dist/types-cjs/elements/Block.d.ts +31 -0
  26. package/dist/types-cjs/elements/Box.d.ts +41 -0
  27. package/dist/types-cjs/elements/Button.d.ts +74 -0
  28. package/dist/types-cjs/elements/Buttons.d.ts +40 -0
  29. package/dist/types-cjs/elements/Code.d.ts +23 -0
  30. package/dist/types-cjs/elements/Content.d.ts +34 -0
  31. package/dist/types-cjs/elements/Delete.d.ts +38 -0
  32. package/dist/types-cjs/elements/Divider.d.ts +19 -0
  33. package/dist/types-cjs/elements/Emphasis.d.ts +23 -0
  34. package/dist/types-cjs/elements/Figure.d.ts +40 -0
  35. package/dist/types-cjs/elements/Icon.d.ts +138 -0
  36. package/dist/types-cjs/elements/IconText.d.ts +40 -0
  37. package/dist/types-cjs/elements/Image.d.ts +44 -0
  38. package/dist/types-cjs/elements/Link.d.ts +55 -0
  39. package/dist/types-cjs/elements/LinkButton.d.ts +57 -0
  40. package/dist/types-cjs/elements/ListItem.d.ts +24 -0
  41. package/dist/types-cjs/elements/Notification.d.ts +148 -0
  42. package/dist/types-cjs/elements/OrderedList.d.ts +21 -0
  43. package/dist/types-cjs/elements/Paragraph.d.ts +23 -0
  44. package/dist/types-cjs/elements/Pre.d.ts +23 -0
  45. package/dist/types-cjs/elements/Progress.d.ts +36 -0
  46. package/dist/types-cjs/elements/Skeleton.d.ts +30 -0
  47. package/dist/types-cjs/elements/Span.d.ts +23 -0
  48. package/dist/types-cjs/elements/Strong.d.ts +23 -0
  49. package/dist/types-cjs/elements/SubTitle.d.ts +41 -0
  50. package/dist/types-cjs/elements/Table.d.ts +36 -0
  51. package/dist/types-cjs/elements/Tag.d.ts +45 -0
  52. package/dist/types-cjs/elements/Tags.d.ts +32 -0
  53. package/dist/types-cjs/elements/Tbody.d.ts +25 -0
  54. package/dist/types-cjs/elements/Td.d.ts +33 -0
  55. package/dist/types-cjs/elements/Tfoot.d.ts +25 -0
  56. package/dist/types-cjs/elements/Th.d.ts +38 -0
  57. package/dist/types-cjs/elements/Thead.d.ts +25 -0
  58. package/dist/types-cjs/elements/Title.d.ts +43 -0
  59. package/dist/types-cjs/elements/Tr.d.ts +30 -0
  60. package/dist/types-cjs/elements/UnorderedList.d.ts +18 -0
  61. package/dist/types-cjs/elements/iconProps.d.ts +30 -0
  62. package/dist/types-cjs/form/Autocomplete.d.ts +114 -0
  63. package/dist/types-cjs/form/Checkbox.d.ts +47 -0
  64. package/dist/types-cjs/form/Checkboxes.d.ts +30 -0
  65. package/dist/types-cjs/form/Control.d.ts +68 -0
  66. package/dist/types-cjs/form/DateInput.d.ts +70 -0
  67. package/dist/types-cjs/form/DateInputBase.d.ts +91 -0
  68. package/dist/types-cjs/form/DateTimeInput.d.ts +68 -0
  69. package/dist/types-cjs/form/DateTimeInputBase.d.ts +108 -0
  70. package/dist/types-cjs/form/Field.d.ts +101 -0
  71. package/dist/types-cjs/form/File.d.ts +52 -0
  72. package/dist/types-cjs/form/FormContext.d.ts +78 -0
  73. package/dist/types-cjs/form/Input.d.ts +72 -0
  74. package/dist/types-cjs/form/InputBase.d.ts +37 -0
  75. package/dist/types-cjs/form/Numberinput.d.ts +83 -0
  76. package/dist/types-cjs/form/Radio.d.ts +47 -0
  77. package/dist/types-cjs/form/Radios.d.ts +30 -0
  78. package/dist/types-cjs/form/Rate.d.ts +99 -0
  79. package/dist/types-cjs/form/Select.d.ts +58 -0
  80. package/dist/types-cjs/form/SelectBase.d.ts +45 -0
  81. package/dist/types-cjs/form/Slider.d.ts +141 -0
  82. package/dist/types-cjs/form/Switch.d.ts +67 -0
  83. package/dist/types-cjs/form/Taginput.d.ts +140 -0
  84. package/dist/types-cjs/form/TextArea.d.ts +52 -0
  85. package/dist/types-cjs/form/TextAreaBase.d.ts +43 -0
  86. package/dist/types-cjs/form/TimeInput.d.ts +66 -0
  87. package/dist/types-cjs/form/TimeInputBase.d.ts +95 -0
  88. package/dist/types-cjs/form/_pickerInternals/Calendar.d.ts +32 -0
  89. package/dist/types-cjs/form/_pickerInternals/PickerPopover.d.ts +20 -0
  90. package/dist/types-cjs/form/_pickerInternals/TimeWheels.d.ts +42 -0
  91. package/dist/types-cjs/form/_pickerInternals/audioTick.d.ts +50 -0
  92. package/dist/types-cjs/form/_pickerInternals/dateUtils.d.ts +52 -0
  93. package/dist/types-cjs/form/_pickerInternals/formatters.d.ts +32 -0
  94. package/dist/types-cjs/form/_pickerInternals/haptics.d.ts +24 -0
  95. package/dist/types-cjs/form/_pickerInternals/pickerTypes.d.ts +39 -0
  96. package/dist/types-cjs/form/_pickerInternals/segmentMap.d.ts +68 -0
  97. package/dist/types-cjs/form/_pickerInternals/useFocusTrap.d.ts +7 -0
  98. package/dist/types-cjs/form/_pickerInternals/useNativeMobilePicker.d.ts +11 -0
  99. package/dist/types-cjs/form/_pickerInternals/useSegmentedEntry.d.ts +75 -0
  100. package/dist/types-cjs/form/fieldProps.d.ts +24 -0
  101. package/dist/types-cjs/form/useAutoLabelId.d.ts +51 -0
  102. package/dist/types-cjs/grid/Cell.d.ts +42 -0
  103. package/dist/types-cjs/grid/Grid.d.ts +59 -0
  104. package/dist/types-cjs/helpers/Config.d.ts +67 -0
  105. package/dist/types-cjs/helpers/Theme.d.ts +116 -0
  106. package/dist/types-cjs/helpers/anchorAttrs.d.ts +37 -0
  107. package/dist/types-cjs/helpers/bulmaClassHelpers.d.ts +197 -0
  108. package/dist/types-cjs/helpers/classNames.d.ts +55 -0
  109. package/dist/types-cjs/helpers/colorDeprecations.d.ts +17 -0
  110. package/dist/types-cjs/helpers/mergeBulmaStyles.d.ts +17 -0
  111. package/dist/types-cjs/helpers/polymorphic.d.ts +138 -0
  112. package/dist/types-cjs/helpers/portal.d.ts +15 -0
  113. package/dist/types-cjs/helpers/scrollLock.d.ts +9 -0
  114. package/dist/types-cjs/helpers/useBulmaClasses.d.ts +60 -0
  115. package/dist/types-cjs/helpers/useColorClasses.d.ts +69 -0
  116. package/dist/types-cjs/helpers/useFlexboxClasses.d.ts +46 -0
  117. package/dist/types-cjs/helpers/useIsHydrated.d.ts +12 -0
  118. package/dist/types-cjs/helpers/useOtherClasses.d.ts +43 -0
  119. package/dist/types-cjs/helpers/useSpacingClasses.d.ts +45 -0
  120. package/dist/types-cjs/helpers/useTypographyClasses.d.ts +51 -0
  121. package/dist/types-cjs/helpers/useVisibilityClasses.d.ts +43 -0
  122. package/dist/types-cjs/helpers/withSubComponents.d.ts +16 -0
  123. package/dist/types-cjs/index.d.ts +113 -0
  124. package/dist/types-cjs/layout/Container.d.ts +51 -0
  125. package/dist/types-cjs/layout/Footer.d.ts +39 -0
  126. package/dist/types-cjs/layout/Hero.d.ts +126 -0
  127. package/dist/types-cjs/layout/Level.d.ts +112 -0
  128. package/dist/types-cjs/layout/Media.d.ts +97 -0
  129. package/dist/types-cjs/layout/Section.d.ts +38 -0
  130. package/dist/types-cjs/package.json +3 -0
  131. package/dist/types-cjs/skill-examples/ExampleMeta.d.ts +15 -0
  132. package/dist/types-cjs/skill-examples/ProfileCard.d.ts +23 -0
  133. package/package.json +9 -4
@@ -0,0 +1,302 @@
1
+ import React from 'react';
2
+ import type { PolymorphicComponent } from '../helpers/polymorphic.js';
3
+ import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
4
+ /**
5
+ * Props for the Navbar component.
6
+ * @extraProp {React.Ref<HTMLElement>} [ref] - Ref forwarded to the root `<nav>` element.
7
+ */
8
+ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
9
+ /** Additional CSS classes for the navbar. */
10
+ className?: string;
11
+ /** Text color for the navbar. */
12
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
13
+ /** Bulma color modifier for the navbar. */
14
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'black' | 'dark' | 'light' | 'white';
15
+ /** Background color for the navbar. */
16
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
17
+ /** Renders the navbar with a transparent background. */
18
+ transparent?: boolean;
19
+ /** Fixes the navbar to the top or bottom of the viewport. */
20
+ fixed?: 'top' | 'bottom';
21
+ /** Navbar content (compose with subcomponents). */
22
+ children?: React.ReactNode;
23
+ }
24
+ /**
25
+ * Props for the NavbarBrand component.
26
+ */
27
+ export interface NavbarBrandProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
28
+ /** Additional CSS classes. */
29
+ className?: string;
30
+ /** Text color for the brand. */
31
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
32
+ /** Bulma color modifier for the brand. */
33
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
34
+ /** Brand content. */
35
+ children?: React.ReactNode;
36
+ }
37
+ /**
38
+ * For logo and branding (left side)
39
+ *
40
+ * @function
41
+ * @param {NavbarBrandProps} props - Props for the NavbarBrand component.
42
+ * @returns {JSX.Element} The rendered brand area.
43
+ */
44
+ export declare const NavbarBrand: React.FC<NavbarBrandProps>;
45
+ /**
46
+ * The NavbarItem component's own props — everything it adds on top of the
47
+ * attributes of whatever element `as` renders.
48
+ */
49
+ export interface NavbarItemOwnProps extends Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
50
+ /**
51
+ * Not accepted. `color` here would be the deprecated presentational HTML
52
+ * attribute, and `useBulmaClasses` consumes any `color` key as a Bulma helper
53
+ * before the target could see it — so it is declared unavailable rather than
54
+ * silently eaten. Use `textColor` / `bgColor`.
55
+ * @internal
56
+ */
57
+ color?: never;
58
+ /**
59
+ * Not accepted under this name. `useBulmaClasses` consumes any
60
+ * `backgroundColor` key before `rest` is spread, so a custom `as` target
61
+ * declaring one would never receive it. Use `bgColor`.
62
+ * @internal
63
+ */
64
+ backgroundColor?: never;
65
+ /** Additional CSS classes. */
66
+ className?: string;
67
+ /** Whether the item is active. */
68
+ active?: boolean;
69
+ /** Text color for the item. */
70
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
71
+ /** Background color for the item. */
72
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
73
+ /** Navbar item content. */
74
+ children?: React.ReactNode;
75
+ }
76
+ /**
77
+ * Props for the NavbarItem component. The DOM attributes and the `ref` both
78
+ * follow `as`: rendering as a router link accepts that component's props (`to`
79
+ * and friends) by inference, and `as="span"` rejects `href`.
80
+ *
81
+ * @extraProp {PolymorphicRef<React.ElementType>} [ref] - Ref forwarded to the element `as` renders, typed from `as`: the DOM node for an intrinsic tag, or whatever handle a custom component exposes.
82
+ */
83
+ export type NavbarItemProps<T extends React.ElementType = 'a'> = NavbarItemOwnProps & Omit<React.ComponentPropsWithoutRef<T>, keyof NavbarItemOwnProps | 'as'> & {
84
+ /** Render as another intrinsic element (`'span'`, `'div'`) or a custom component (e.g. a router link). Defaults to `'a'`. */
85
+ as?: T;
86
+ };
87
+ /**
88
+ * Navigation links, buttons, or custom content
89
+ *
90
+ * @function
91
+ * @param {NavbarItemProps} props - Props for the NavbarItem component.
92
+ * @param {React.Ref} ref - Forwarded ref to the element `as` renders.
93
+ * @returns {JSX.Element} The rendered item.
94
+ */
95
+ export declare const NavbarItem: PolymorphicComponent<NavbarItemOwnProps, "a">;
96
+ /**
97
+ * Props for the NavbarBurger component.
98
+ * @extraProp {React.Ref<HTMLButtonElement>} [ref] - Ref forwarded to the burger button element.
99
+ */
100
+ export interface NavbarBurgerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
101
+ /** Additional CSS classes. */
102
+ className?: string;
103
+ /** Text color for the burger. */
104
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
105
+ /** Bulma color modifier for the burger. */
106
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
107
+ /** Whether the burger is active. */
108
+ active?: boolean;
109
+ /** Custom content inside the burger. */
110
+ children?: React.ReactNode;
111
+ /** Aria label for accessibility. */
112
+ 'aria-label'?: string;
113
+ /** Aria expanded state. */
114
+ 'aria-expanded'?: boolean;
115
+ /** Click handler. */
116
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
117
+ }
118
+ /**
119
+ * Responsive menu toggle (mobile)
120
+ *
121
+ * @function
122
+ * @param {NavbarBurgerProps} props - Props for the NavbarBurger component.
123
+ * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref to the burger button element.
124
+ * @returns {JSX.Element} The rendered burger.
125
+ */
126
+ export declare const NavbarBurger: React.ForwardRefExoticComponent<NavbarBurgerProps & React.RefAttributes<HTMLButtonElement>>;
127
+ /**
128
+ * Props for the NavbarMenu component.
129
+ */
130
+ export interface NavbarMenuProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
131
+ /** Additional CSS classes. */
132
+ className?: string;
133
+ /** Text color for the menu. */
134
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
135
+ /** Bulma color modifier for the menu. */
136
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
137
+ /** Whether the menu is active. */
138
+ active?: boolean;
139
+ /** Menu content. */
140
+ children?: React.ReactNode;
141
+ }
142
+ /**
143
+ * Collapsible content (contains `Navbar.Start` and `Navbar.End`)
144
+ *
145
+ * @function
146
+ * @param {NavbarMenuProps} props - Props for the NavbarMenu component.
147
+ * @returns {JSX.Element} The rendered menu.
148
+ */
149
+ export declare const NavbarMenu: React.FC<NavbarMenuProps>;
150
+ /**
151
+ * Props for the NavbarStartEnd component.
152
+ */
153
+ export interface NavbarStartEndProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
154
+ /** Additional CSS classes. */
155
+ className?: string;
156
+ /** Text color. */
157
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
158
+ /** Bulma color modifier. */
159
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
160
+ /** Content. */
161
+ children?: React.ReactNode;
162
+ }
163
+ /**
164
+ * Left-aligned menu area
165
+ *
166
+ * @function
167
+ * @param {NavbarStartEndProps} props - Props for the NavbarStart component.
168
+ * @returns {JSX.Element} The rendered start area.
169
+ */
170
+ export declare const NavbarStart: React.FC<NavbarStartEndProps>;
171
+ /**
172
+ * Right-aligned menu area
173
+ *
174
+ * @function
175
+ * @param {NavbarStartEndProps} props - Props for the NavbarEnd component.
176
+ * @returns {JSX.Element} The rendered end area.
177
+ */
178
+ export declare const NavbarEnd: React.FC<NavbarStartEndProps>;
179
+ /**
180
+ * The NavbarLink component's own props — everything it adds on top of the
181
+ * attributes of whatever element `as` renders.
182
+ */
183
+ export interface NavbarLinkOwnProps extends Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
184
+ /**
185
+ * Not accepted. `color` here would be the deprecated presentational HTML
186
+ * attribute, and `useBulmaClasses` consumes any `color` key as a Bulma helper
187
+ * before the target could see it — so it is declared unavailable rather than
188
+ * silently eaten. Use `textColor` / `bgColor`.
189
+ * @internal
190
+ */
191
+ color?: never;
192
+ /**
193
+ * Not accepted under this name. `useBulmaClasses` consumes any
194
+ * `backgroundColor` key before `rest` is spread, so a custom `as` target
195
+ * declaring one would never receive it. Use `bgColor`.
196
+ * @internal
197
+ */
198
+ backgroundColor?: never;
199
+ /** Additional CSS classes. */
200
+ className?: string;
201
+ /** Remove the dropdown arrow indicator. */
202
+ arrowless?: boolean;
203
+ /** Text color. */
204
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
205
+ /** Background color. */
206
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
207
+ /** Link content. */
208
+ children?: React.ReactNode;
209
+ }
210
+ /**
211
+ * Props for the NavbarLink component. The DOM attributes and the `ref` both
212
+ * follow `as`: `as="button"` accepts the button attributes and a button ref,
213
+ * and `as="span"` rejects `href` and `target`. Not `rel` — React declares it on
214
+ * `HTMLAttributes<T>`, so it is valid on every element, and rejecting it would
215
+ * mean diverging from React's own typing.
216
+ *
217
+ * @extraProp {PolymorphicRef<React.ElementType>} [ref] - Ref forwarded to the element `as` renders, typed from `as`: the DOM node for an intrinsic tag, or whatever handle a custom component exposes.
218
+ */
219
+ export type NavbarLinkProps<T extends React.ElementType = 'a'> = NavbarLinkOwnProps & Omit<React.ComponentPropsWithoutRef<T>, keyof NavbarLinkOwnProps | 'as'> & {
220
+ /** Render as another intrinsic element (`'button'`, `'span'`) or a custom component. Defaults to `'a'`. */
221
+ as?: T;
222
+ };
223
+ /**
224
+ * Dropdown trigger with arrow indicator (use as first child of `Navbar.Dropdown`)
225
+ *
226
+ * @function
227
+ * @param {NavbarLinkProps} props - Props for the NavbarLink component.
228
+ * @param {React.Ref} ref - Forwarded ref to the element `as` renders.
229
+ * @returns {JSX.Element} The rendered navbar link.
230
+ */
231
+ export declare const NavbarLink: PolymorphicComponent<NavbarLinkOwnProps, "a">;
232
+ /**
233
+ * Props for the NavbarDropdown component.
234
+ * @extraProp {React.Ref<HTMLDivElement>} [ref] - Ref forwarded to the dropdown container element.
235
+ */
236
+ export interface NavbarDropdownProps extends React.HTMLAttributes<HTMLDivElement> {
237
+ /** Additional CSS classes. */
238
+ className?: string;
239
+ /** Dropdown aligned right. */
240
+ right?: boolean;
241
+ /** Dropdown opens upwards. */
242
+ up?: boolean;
243
+ /** Dropdown opens on hover. */
244
+ hoverable?: boolean;
245
+ /** Dropdown is open. */
246
+ active?: boolean;
247
+ /** Callback when dropdown active state changes. */
248
+ onActiveChange?: (active: boolean) => void;
249
+ /** Dropdown content. */
250
+ children?: React.ReactNode;
251
+ }
252
+ /**
253
+ * Dropdown parent (with options for hover, up, right, active)
254
+ *
255
+ * @function
256
+ * @param {NavbarDropdownProps} props - Props for the NavbarDropdown component.
257
+ * @param {React.Ref<HTMLDivElement>} ref - Forwarded ref to the dropdown container element.
258
+ * @returns {JSX.Element} The rendered dropdown.
259
+ */
260
+ export declare const NavbarDropdown: React.ForwardRefExoticComponent<NavbarDropdownProps & React.RefAttributes<HTMLDivElement>>;
261
+ /**
262
+ * Props for the NavbarDropdownMenu component.
263
+ */
264
+ export interface NavbarDropdownMenuProps extends React.HTMLAttributes<HTMLDivElement> {
265
+ /** Additional CSS classes. */
266
+ className?: string;
267
+ /** Dropdown aligned right. */
268
+ right?: boolean;
269
+ /** Dropdown opens upwards. */
270
+ up?: boolean;
271
+ /** Dropdown menu content. */
272
+ children?: React.ReactNode;
273
+ }
274
+ /**
275
+ * Dropdown menu container
276
+ *
277
+ * @function
278
+ * @param {NavbarDropdownMenuProps} props - Props for the NavbarDropdownMenu component.
279
+ * @returns {JSX.Element} The rendered dropdown menu.
280
+ */
281
+ export declare const NavbarDropdownMenu: React.FC<NavbarDropdownMenuProps>;
282
+ /**
283
+ * Divider in dropdown menus.
284
+ *
285
+ * @function
286
+ * @param {React.HTMLAttributes<HTMLHRElement>} props - Standard hr props.
287
+ * @returns {JSX.Element} The rendered divider.
288
+ */
289
+ export declare const NavbarDivider: React.FC<React.HTMLAttributes<HTMLHRElement>>;
290
+ export declare const Navbar: React.ForwardRefExoticComponent<NavbarProps & React.RefAttributes<HTMLElement>> & {
291
+ Brand: React.FC<NavbarBrandProps>;
292
+ Item: PolymorphicComponent<NavbarItemOwnProps, "a">;
293
+ Link: PolymorphicComponent<NavbarLinkOwnProps, "a">;
294
+ Burger: React.ForwardRefExoticComponent<NavbarBurgerProps & React.RefAttributes<HTMLButtonElement>>;
295
+ Menu: React.FC<NavbarMenuProps>;
296
+ Start: React.FC<NavbarStartEndProps>;
297
+ End: React.FC<NavbarStartEndProps>;
298
+ Dropdown: React.ForwardRefExoticComponent<NavbarDropdownProps & React.RefAttributes<HTMLDivElement>>;
299
+ DropdownMenu: React.FC<NavbarDropdownMenuProps>;
300
+ Divider: React.FC<React.HTMLAttributes<HTMLHRElement>>;
301
+ };
302
+ export default Navbar;
@@ -0,0 +1,130 @@
1
+ import React from 'react';
2
+ import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses.js';
3
+ /**
4
+ * Props for the Pagination component.
5
+ */
6
+ export interface PaginationProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
7
+ /**
8
+ * Color modifier for the pagination (renders `is-<color>`).
9
+ *
10
+ * Bulma ships no pagination color CSS, so this prop has never had a visual
11
+ * effect for any value. Passing it logs a console warning in development.
12
+ * Use `textColor` / `bgColor` instead.
13
+ * @deprecated No `.pagination.is-<color>` CSS exists; the prop renders
14
+ * unstyled and will be removed in the next major version.
15
+ */
16
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'black' | 'dark' | 'light' | 'white';
17
+ /** Text color helper. */
18
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
19
+ /** Background color helper. */
20
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
21
+ /** Size modifier for the pagination. */
22
+ size?: 'small' | 'medium' | 'large';
23
+ /** Alignment for the pagination. */
24
+ align?: 'centered' | 'right';
25
+ /** Renders pagination with rounded corners. */
26
+ rounded?: boolean;
27
+ /** Total number of pages (for custom implementations). */
28
+ total?: number;
29
+ /** Current page (for controlled implementations). */
30
+ current?: number;
31
+ /** Callback when a page is selected. */
32
+ onPageChange?: (page: number) => void;
33
+ /** Additional CSS classes. */
34
+ className?: string;
35
+ /** Custom pagination content (usually subcomponents). */
36
+ children?: React.ReactNode;
37
+ }
38
+ /**
39
+ * Props for PaginationPrevious and PaginationNext components.
40
+ */
41
+ export interface PaginationPreviousNextProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
42
+ /** Additional CSS classes. */
43
+ className?: string;
44
+ /** Whether previous/next is disabled. */
45
+ disabled?: boolean;
46
+ /** Button content. */
47
+ children?: React.ReactNode;
48
+ }
49
+ /**
50
+ * "Previous" navigation button.
51
+ *
52
+ * @function
53
+ * @param {PaginationPreviousNextProps} props - Props for the PaginationPrevious component.
54
+ * @returns {JSX.Element} The rendered previous button.
55
+ */
56
+ export declare const PaginationPrevious: React.FC<PaginationPreviousNextProps>;
57
+ /**
58
+ * "Next" navigation button.
59
+ *
60
+ * @function
61
+ * @param {PaginationPreviousNextProps} props - Props for the PaginationNext component.
62
+ * @returns {JSX.Element} The rendered next button.
63
+ */
64
+ export declare const PaginationNext: React.FC<PaginationPreviousNextProps>;
65
+ /**
66
+ * Props for the PaginationList component.
67
+ */
68
+ export interface PaginationListProps extends React.HTMLAttributes<HTMLUListElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
69
+ /** Additional CSS classes. */
70
+ className?: string;
71
+ /** Text color for the list. */
72
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
73
+ /** Bulma color modifier for the list. */
74
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
75
+ /** Background color for the list. */
76
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
77
+ /** List items. */
78
+ children?: React.ReactNode;
79
+ }
80
+ /**
81
+ * Container for page links and ellipsis.
82
+ *
83
+ * @function
84
+ * @param {PaginationListProps} props - Props for the PaginationList component.
85
+ * @returns {JSX.Element} The rendered pagination list.
86
+ */
87
+ export declare const PaginationList: React.FC<PaginationListProps>;
88
+ /**
89
+ * Props for the PaginationLink component.
90
+ */
91
+ export interface PaginationLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
92
+ /** Additional CSS classes. */
93
+ className?: string;
94
+ /** Bulma color modifier. */
95
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
96
+ /** Text color. */
97
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
98
+ /** Background color. */
99
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
100
+ /** Whether the link is for the current page. */
101
+ active?: boolean;
102
+ /** Whether the link is disabled. */
103
+ disabled?: boolean;
104
+ /** Link content. */
105
+ children?: React.ReactNode;
106
+ }
107
+ /**
108
+ * Page number or navigation link.
109
+ *
110
+ * @function
111
+ * @param {PaginationLinkProps} props - Props for the PaginationLink component.
112
+ * @returns {JSX.Element} The rendered pagination link.
113
+ */
114
+ export declare const PaginationLink: React.FC<PaginationLinkProps>;
115
+ /**
116
+ * Ellipsis separator.
117
+ *
118
+ * @function
119
+ * @param {React.LiHTMLAttributes<HTMLLIElement>} props - Standard li props.
120
+ * @returns {JSX.Element} The rendered ellipsis.
121
+ */
122
+ export declare const PaginationEllipsis: React.FC<React.LiHTMLAttributes<HTMLLIElement>>;
123
+ export declare const Pagination: React.FC<PaginationProps> & {
124
+ Link: React.FC<PaginationLinkProps>;
125
+ List: React.FC<PaginationListProps>;
126
+ Ellipsis: React.FC<React.LiHTMLAttributes<HTMLLIElement>>;
127
+ Previous: React.FC<PaginationPreviousNextProps>;
128
+ Next: React.FC<PaginationPreviousNextProps>;
129
+ };
130
+ export default Pagination;
@@ -0,0 +1,147 @@
1
+ import React from 'react';
2
+ import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
3
+ import { IconChildrenProps, IconDeprecatedProps, IconNameProps } from '../elements/Icon.js';
4
+ /**
5
+ * Props for the Panel component.
6
+ */
7
+ export interface PanelProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
8
+ /** Bulma color modifier for the panel. */
9
+ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'black' | 'dark' | 'light' | 'white';
10
+ /** Additional CSS classes. */
11
+ className?: string;
12
+ /** Panel content (usually includes subcomponents). */
13
+ children?: React.ReactNode;
14
+ }
15
+ /**
16
+ * Props for the PanelHeading component.
17
+ */
18
+ export interface PanelHeadingProps extends React.HTMLAttributes<HTMLParagraphElement> {
19
+ /** Additional CSS classes. */
20
+ className?: string;
21
+ /** Heading content. */
22
+ children?: React.ReactNode;
23
+ }
24
+ /**
25
+ * Props for the PanelTabs component.
26
+ */
27
+ export interface PanelTabsProps extends React.HTMLAttributes<HTMLDivElement> {
28
+ /** Additional CSS classes. */
29
+ className?: string;
30
+ /** Tabs content. */
31
+ children?: React.ReactNode;
32
+ }
33
+ /**
34
+ * Props for the PanelBlock component.
35
+ */
36
+ export interface PanelBlockProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
37
+ /** Additional CSS classes. */
38
+ className?: string;
39
+ /** Whether the block is active. */
40
+ active?: boolean;
41
+ /** Block content. */
42
+ children?: React.ReactNode;
43
+ }
44
+ /**
45
+ * Props for the PanelIcon component.
46
+ * Extends IconProps but uses 'panel-icon' as the container class.
47
+ */
48
+ export type PanelIconProps = Omit<IconNameProps, 'containerClassName'> | Omit<IconChildrenProps, 'containerClassName'> | Omit<IconDeprecatedProps, 'containerClassName'>;
49
+ /**
50
+ * Props for the PanelInputBlock component.
51
+ */
52
+ export interface PanelInputBlockProps extends React.HTMLAttributes<HTMLDivElement> {
53
+ /** Input value. */
54
+ value?: string;
55
+ /** Input change handler. */
56
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
57
+ /** Input placeholder. */
58
+ placeholder?: string;
59
+ /** Icon class for left icon (default 'fas fa-search'). */
60
+ iconClassName?: string;
61
+ }
62
+ /**
63
+ * Props for the PanelCheckboxBlock component.
64
+ */
65
+ export interface PanelCheckboxBlockProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'onChange'> {
66
+ /** Whether the checkbox is checked. */
67
+ checked?: boolean;
68
+ /** Checkbox change handler. */
69
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
70
+ /** Label/content. */
71
+ children?: React.ReactNode;
72
+ }
73
+ /**
74
+ * Props for the PanelButtonBlock component.
75
+ */
76
+ export interface PanelButtonBlockProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
77
+ /** Button content. */
78
+ children?: React.ReactNode;
79
+ }
80
+ /**
81
+ * Main heading (renders as `<p class="panel-heading">`)
82
+ *
83
+ * @function
84
+ * @param {PanelHeadingProps} props - Props for the PanelHeading component.
85
+ * @returns {JSX.Element} The rendered panel heading.
86
+ */
87
+ export declare const PanelHeading: React.FC<PanelHeadingProps>;
88
+ /**
89
+ * Panel tabs (renders as `<p class="panel-tabs">`)
90
+ *
91
+ * @function
92
+ * @param {PanelTabsProps} props - Props for the PanelTabs component.
93
+ * @returns {JSX.Element} The rendered panel tabs.
94
+ */
95
+ export declare const PanelTabs: React.FC<PanelTabsProps>;
96
+ /**
97
+ * Individual panel block (renders as `<a class="panel-block">`)
98
+ *
99
+ * @function
100
+ * @param {PanelBlockProps} props - Props for the PanelBlock component.
101
+ * @returns {JSX.Element} The rendered panel block.
102
+ */
103
+ export declare const PanelBlock: React.FC<PanelBlockProps>;
104
+ /**
105
+ * Icon wrapper with panel styling (renders as `<span class="panel-icon">`, containing an
106
+ * `<i/>` when a `name` is given, or the custom node passed as `children`).
107
+ * Accepts all Icon props (`name`, `variant`, `features`, etc.), or `children` for a custom node.
108
+ *
109
+ * @function
110
+ * @param {PanelIconProps} props - Props for the PanelIcon component.
111
+ * @returns {JSX.Element} The rendered panel icon.
112
+ */
113
+ export declare const PanelIcon: React.FC<PanelIconProps>;
114
+ /**
115
+ * Search input with icon (renders as `<div class="panel-block">`)
116
+ *
117
+ * @function
118
+ * @param {PanelInputBlockProps} props - Props for the PanelInputBlock component.
119
+ * @returns {JSX.Element} The rendered panel input block.
120
+ */
121
+ export declare const PanelInputBlock: React.FC<PanelInputBlockProps>;
122
+ /**
123
+ * Checkbox block (renders as `<label class="panel-block">`)
124
+ *
125
+ * @function
126
+ * @param {PanelCheckboxBlockProps} props - Props for the PanelCheckboxBlock component.
127
+ * @returns {JSX.Element} The rendered panel checkbox block.
128
+ */
129
+ export declare const PanelCheckboxBlock: React.FC<PanelCheckboxBlockProps>;
130
+ /**
131
+ * Call-to-action button (renders as `<div class="panel-block"><button /></div>`)
132
+ *
133
+ * @function
134
+ * @param {PanelButtonBlockProps} props - Props for the PanelButtonBlock component.
135
+ * @returns {JSX.Element} The rendered panel button block.
136
+ */
137
+ export declare const PanelButtonBlock: React.FC<PanelButtonBlockProps>;
138
+ export declare const Panel: React.FC<PanelProps> & {
139
+ Heading: React.FC<PanelHeadingProps>;
140
+ Tabs: React.FC<PanelTabsProps>;
141
+ Block: React.FC<PanelBlockProps>;
142
+ Icon: React.FC<PanelIconProps>;
143
+ InputBlock: React.FC<PanelInputBlockProps>;
144
+ CheckboxBlock: React.FC<PanelCheckboxBlockProps>;
145
+ ButtonBlock: React.FC<PanelButtonBlockProps>;
146
+ };
147
+ export default Panel;
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+ import type { PolymorphicComponentWithoutRef } from '../helpers/polymorphic.js';
3
+ import { BulmaClassesProps } from '../helpers/useBulmaClasses.js';
4
+ /**
5
+ * Animation styles available for the Reveal component.
6
+ */
7
+ export type RevealAnimation = 'fade' | 'fade-up' | 'fade-down' | 'slide-left' | 'slide-right' | 'zoom' | 'flip';
8
+ /**
9
+ * The Reveal component's own props — everything it adds on top of the
10
+ * attributes of whatever element `as` renders.
11
+ */
12
+ export interface RevealOwnProps extends BulmaClassesProps {
13
+ /** Animation style applied when the element enters the viewport. */
14
+ animation?: RevealAnimation;
15
+ /** Delay in milliseconds before the animation starts. Default: 0. */
16
+ delay?: number;
17
+ /** Animation duration in milliseconds. Default: 600. */
18
+ duration?: number;
19
+ /** Fraction (0-1) of the element that must be visible to trigger the reveal. Clamped to the 0-1 range; non-finite values fall back to `0.15`. */
20
+ threshold?: number;
21
+ /** Animate only the first time the element enters the viewport. If `false`, it re-animates on every entry/exit. */
22
+ once?: boolean;
23
+ /** Stagger direct children with an incrementing delay instead of animating this element as a single block. */
24
+ cascade?: boolean;
25
+ /** Milliseconds added to each successive child's delay when `cascade` is set. Default: 80. */
26
+ cascadeInterval?: number;
27
+ /** Content to reveal. */
28
+ children?: React.ReactNode;
29
+ /** Additional CSS classes. Applied to the observed element (the wrapper `div` when `as` is a component). */
30
+ className?: string;
31
+ /** Inline styles, merged after the animation's own. Applied to the observed element. */
32
+ style?: React.CSSProperties;
33
+ }
34
+ /**
35
+ * Props for the Reveal component. The DOM attributes follow `as`.
36
+ *
37
+ * Reveal forwards no `ref`: it owns the node it observes for scroll
38
+ * intersection, and when `as` is a component that node is a wrapper `div`
39
+ * rather than the element `as` names — so a ref derived from `as` would point
40
+ * at the wrong thing.
41
+ */
42
+ export type RevealProps<T extends React.ElementType = 'div'> = RevealOwnProps & Omit<React.ComponentPropsWithoutRef<T>, keyof RevealOwnProps | 'as'> & {
43
+ /** Element or component to render as. Default: 'div'. When `as` is a plain intrinsic tag (e.g. `'section'`), your `className`, `style`, and Bulma helper classes plus everything in `...rest` all land on that single element. When `as` is a component (e.g. `Section`, `Card`), scroll detection needs a real DOM node with a ref, so `Reveal` wraps it in an observed `div`: `className`/`style`/helper classes go on that wrapper `div`, while `...rest` (`id`, `aria-*`, `data-*`, event handlers) is forwarded to the inner component. */
44
+ as?: T;
45
+ };
46
+ export declare const Reveal: PolymorphicComponentWithoutRef<RevealOwnProps, "div">;
47
+ export default Reveal;