@allxsmith/bestax-bulma 5.9.0 → 5.10.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.
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
3
  /**
4
- * Possible values for Bulma column size.
4
+ * Possible values for Bulma column size: a number 1–12 (as a number or a numeric string, `7` and `"7"` are equivalent) or a named fraction.
5
5
  */
6
- export type BulmaColumnSize = number | 'full' | 'half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'one-fifth' | 'two-fifths' | 'three-fifths' | 'four-fifths';
6
+ export type BulmaColumnSize = number | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'full' | 'half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'one-fifth' | 'two-fifths' | 'three-fifths' | 'four-fifths';
7
7
  /**
8
8
  * Props for the Column component.
9
9
  */
@@ -38,7 +38,13 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, Omit<Bu
38
38
  /**
39
39
  * Props for the Card.Header compound component.
40
40
  */
41
- export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement> {
41
+ export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
42
+ /** Bulma color modifier (text color helper). */
43
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
44
+ /** Background color helper. */
45
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
46
+ /** Text color helper; wins over `color` when both are set. */
47
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
42
48
  /** Additional CSS classes. */
43
49
  className?: string;
44
50
  /** Header content. Wrap in Card.Header.Title for Bulma styling. */
@@ -49,7 +55,13 @@ export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement> {
49
55
  /**
50
56
  * Props for the Card.Image compound component.
51
57
  */
52
- export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
58
+ export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
59
+ /** Bulma color modifier (text color helper). */
60
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
61
+ /** Background color helper. */
62
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
63
+ /** Text color helper; wins over `color` when both are set. */
64
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
53
65
  /** Additional CSS classes. */
54
66
  className?: string;
55
67
  /** Image content (e.g. a `<figure>` with an `<img>`). */
@@ -58,7 +70,13 @@ export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
58
70
  /**
59
71
  * Props for the Card.Content compound component.
60
72
  */
61
- export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
73
+ export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
74
+ /** Bulma color modifier (text color helper). */
75
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
76
+ /** Background color helper. */
77
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
78
+ /** Text color helper; wins over `color` when both are set. */
79
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
62
80
  /** Additional CSS classes. */
63
81
  className?: string;
64
82
  /** Card body content. */
@@ -67,7 +85,13 @@ export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
67
85
  /**
68
86
  * Props for the Card.Footer compound component.
69
87
  */
70
- export interface CardFooterProps extends React.HTMLAttributes<HTMLElement> {
88
+ export interface CardFooterProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
89
+ /** Bulma color modifier (text color helper). */
90
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
91
+ /** Background color helper. */
92
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
93
+ /** Text color helper; wins over `color` when both are set. */
94
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
71
95
  /** Additional CSS classes. */
72
96
  className?: string;
73
97
  /** Footer content, typically Card.FooterItem elements. */
@@ -76,7 +100,13 @@ export interface CardFooterProps extends React.HTMLAttributes<HTMLElement> {
76
100
  /**
77
101
  * Props for the Card.FooterItem compound component.
78
102
  */
79
- export interface CardFooterItemProps extends React.HTMLAttributes<HTMLSpanElement> {
103
+ export interface CardFooterItemProps extends React.HTMLAttributes<HTMLSpanElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
104
+ /** Bulma color modifier (text color helper). */
105
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
106
+ /** Background color helper. */
107
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
108
+ /** Text color helper; wins over `color` when both are set. */
109
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
80
110
  /** Additional CSS classes. */
81
111
  className?: string;
82
112
  /** Footer item content (link, button, text, etc.). */
@@ -85,7 +115,13 @@ export interface CardFooterItemProps extends React.HTMLAttributes<HTMLSpanElemen
85
115
  /**
86
116
  * Props for the Card.Header.Title compound component.
87
117
  */
88
- export interface CardHeaderTitleProps extends React.HTMLAttributes<HTMLDivElement> {
118
+ export interface CardHeaderTitleProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
119
+ /** Bulma color modifier (text color helper). */
120
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
121
+ /** Background color helper. */
122
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
123
+ /** Text color helper; wins over `color` when both are set. */
124
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
89
125
  /** Additional CSS classes. */
90
126
  className?: string;
91
127
  /** Title text content. */
@@ -96,7 +132,13 @@ export interface CardHeaderTitleProps extends React.HTMLAttributes<HTMLDivElemen
96
132
  /**
97
133
  * Props for the Card.Header.Icon compound component.
98
134
  */
99
- export interface CardHeaderIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
135
+ export interface CardHeaderIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
136
+ /** Bulma color modifier (text color helper). */
137
+ color?: (typeof validColors)[number] | 'inherit' | 'current';
138
+ /** Background color helper. */
139
+ bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
140
+ /** Text color helper; wins over `color` when both are set. */
141
+ textColor?: (typeof validColors)[number] | 'inherit' | 'current';
100
142
  /** Additional CSS classes. */
101
143
  className?: string;
102
144
  /** Icon content (e.g. an icon element). */
@@ -17,6 +17,8 @@ export interface SidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'c
17
17
  /** Custom width of the sidebar. */
18
18
  width?: string;
19
19
  /** Sidebar takes full width (mobile-style). */
20
+ isFullwidth?: boolean;
21
+ /** Sidebar takes full width (mobile-style). @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
20
22
  fullWidth?: boolean;
21
23
  /** Show overlay behind sidebar. Default: true. */
22
24
  overlay?: boolean;
@@ -9,6 +9,10 @@ export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
9
9
  /** Tab size. */
10
10
  size?: 'small' | 'medium' | 'large';
11
11
  /** Tabs expand to fill the horizontal space. */
12
+ isFullwidth?: boolean;
13
+ /** Tabs expand to fill the horizontal space. @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
14
+ isFullWidth?: boolean;
15
+ /** Tabs expand to fill the horizontal space. @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
12
16
  fullwidth?: boolean;
13
17
  /** Tabs use the boxed style. */
14
18
  boxed?: boolean;
@@ -17,6 +17,8 @@ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
17
17
  /** Makes the button non-interactive. */
18
18
  isStatic?: boolean;
19
19
  /** Makes the button full-width. */
20
+ isFullwidth?: boolean;
21
+ /** Makes the button full-width. @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
20
22
  isFullWidth?: boolean;
21
23
  /** Applies outlined styling (requires color). */
22
24
  isOutlined?: boolean;
@@ -4,7 +4,7 @@ import { ButtonProps } from './Button';
4
4
  * Props for the LinkButton component.
5
5
  */
6
6
  export interface LinkButtonProps extends Omit<ButtonProps, 'color' | 'isOutlined' | 'isInverted' | 'isLight'> {
7
- /** Display mode. `text` has no underline; `ghost` uses default text color. */
7
+ /** Display mode. `text` has no underline and highlights its background on hover; `ghost` uses the default text color and underlines on hover; `underline` drops the button chrome entirely (transparent background and border) and underlines on hover or focus. */
8
8
  variant?: 'text' | 'ghost' | 'underline';
9
9
  /** Text color override for the button. */
10
10
  color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'white' | 'light' | 'dark' | 'black';
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
2
  import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
- declare const validSubTitleSizes: readonly ["1", "2", "3", "4", "5", "6"];
4
3
  /**
5
- * Valid size values for the SubTitle component (Bulma subtitle sizes).
4
+ * Valid size values for the SubTitle component (Bulma subtitle sizes): `'1'`–`'6'` as a string or number (`3` and `'3'` are equivalent).
6
5
  */
7
- export type SubTitleSize = (typeof validSubTitleSizes)[number];
6
+ export type SubTitleSize = '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
8
7
  declare const validSubTitleElements: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
9
8
  /**
10
9
  * Valid HTML elements for the SubTitle component.
@@ -17,7 +16,7 @@ export type SubTitleElement = (typeof validSubTitleElements)[number];
17
16
  export interface SubTitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement | HTMLParagraphElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
18
17
  /** Additional CSS classes to apply. */
19
18
  className?: string;
20
- /** Size of the subtitle (Bulma sizes). */
19
+ /** Size of the subtitle (Bulma sizes `1`-`6`, as a string or number). */
21
20
  size?: SubTitleSize;
22
21
  /** HTML element to render as (h1-h6 or p). */
23
22
  as?: SubTitleElement;
@@ -19,6 +19,8 @@ export interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElem
19
19
  isHoverable?: boolean;
20
20
  /** Makes the table span the full width of its parent. */
21
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;
22
24
  /** Makes the table horizontally scrollable on small screens. */
23
25
  isResponsive?: boolean;
24
26
  /** Table content (should use subcomponents). */
@@ -20,6 +20,8 @@ export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'c
20
20
  color?: TagColor;
21
21
  /** Tag size. */
22
22
  size?: TagSize;
23
+ /** Use the light color variant. */
24
+ isLight?: boolean;
23
25
  /** Renders a rounded tag. */
24
26
  isRounded?: boolean;
25
27
  /** Renders a delete-style tag (delete button). */
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
2
  import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
3
- declare const validTitleSizes: readonly ["1", "2", "3", "4", "5", "6"];
4
3
  /**
5
- * Valid size values for the Title component (Bulma title sizes).
4
+ * Valid size values for the Title component (Bulma title sizes): `'1'`–`'6'` as a string or number (`3` and `'3'` are equivalent).
6
5
  */
7
- export type TitleSize = (typeof validTitleSizes)[number];
6
+ export type TitleSize = '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
8
7
  declare const validTitleElements: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
9
8
  /**
10
9
  * Valid HTML elements for the Title component.
@@ -17,7 +16,7 @@ export type TitleElement = (typeof validTitleElements)[number];
17
16
  export interface TitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement | HTMLParagraphElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
18
17
  /** Additional CSS classes to apply. */
19
18
  className?: string;
20
- /** Size of the title (Bulma sizes). */
19
+ /** Size of the title (Bulma sizes `1`-`6`, as a string or number). */
21
20
  size?: TitleSize;
22
21
  /** Adds margin below the title. */
23
22
  isSpaced?: boolean;
@@ -19,6 +19,8 @@ export interface FileProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
19
19
  isBoxed?: boolean;
20
20
  /** Whether the file input expands to full width. */
21
21
  isFullwidth?: boolean;
22
+ /** Whether the file input expands to full width. @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
23
+ isFullWidth?: boolean;
22
24
  /** Position the CTA on the right (with `hasName`). */
23
25
  isRight?: boolean;
24
26
  /** Center the file input within its container. */
@@ -76,4 +76,8 @@ export interface NumberinputProps extends Omit<React.InputHTMLAttributes<HTMLInp
76
76
  * <Numberinput variant="stepper" color="primary" step={10} />
77
77
  */
78
78
  export declare const Numberinput: React.ForwardRefExoticComponent<NumberinputProps & React.RefAttributes<HTMLInputElement>>;
79
+ /** @deprecated Use `Numberinput` — same component. */
80
+ export declare const NumberInput: React.ForwardRefExoticComponent<NumberinputProps & React.RefAttributes<HTMLInputElement>>;
81
+ /** @deprecated Use `NumberinputProps`. */
82
+ export type NumberInputProps = NumberinputProps;
79
83
  export default Numberinput;
@@ -20,6 +20,8 @@ export interface SelectBaseProps extends Omit<React.SelectHTMLAttributes<HTMLSel
20
20
  isFocused?: boolean;
21
21
  /** Makes the select span the full width of parent. */
22
22
  isFullwidth?: boolean;
23
+ /** Makes the select span the full width of parent. @deprecated Use `isFullwidth` instead — `isFullwidth` wins if both are set. */
24
+ isFullWidth?: boolean;
23
25
  /** Additional CSS classes to apply. */
24
26
  className?: string;
25
27
  /** Disables the select. */
@@ -133,4 +133,8 @@ export interface TaginputProps extends Omit<React.HTMLAttributes<HTMLDivElement>
133
133
  * />
134
134
  */
135
135
  export declare const Taginput: React.ForwardRefExoticComponent<TaginputProps & React.RefAttributes<HTMLInputElement>>;
136
+ /** @deprecated Use `Taginput` — same component. */
137
+ export declare const TagInput: React.ForwardRefExoticComponent<TaginputProps & React.RefAttributes<HTMLInputElement>>;
138
+ /** @deprecated Use `TaginputProps`. */
139
+ export type TagInputProps = TaginputProps;
136
140
  export default Taginput;
package/llms.txt CHANGED
@@ -7,3 +7,4 @@ React components for Bulma v1.
7
7
  - Any docs page as markdown: append .md (e.g. https://bestax.io/docs/api/elements/button.md)
8
8
  - LLM guide: https://bestax.io/docs/guides/llms
9
9
  - Agent skills: https://bestax.io/docs/skills/intro
10
+ - MCP server: `npx bestax-mcp` — setup at https://bestax.io/docs/guides/llms#mcp-server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allxsmith/bestax-bulma",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "description": "A fully-typed React component library for the Bulma CSS framework. Build modern UIs quickly with reusable, accessible, and customizable Bulma-based React components.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",