@allxsmith/bestax-bulma 5.12.0 → 5.13.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.
@@ -46,6 +46,8 @@ export interface DropdownItemProps extends Omit<React.HTMLAttributes<HTMLElement
46
46
  className?: string;
47
47
  /** The element type to render. */
48
48
  as?: 'a' | 'div' | 'button';
49
+ /** Marks the item as disabled; disabled items are skipped during keyboard navigation. Use with `as="button"` for a native disabled control, or pair with `aria-disabled` on a link. */
50
+ disabled?: boolean;
49
51
  /** Item content. */
50
52
  children?: React.ReactNode;
51
53
  }
@@ -186,6 +186,8 @@ export interface NavbarDropdownProps extends React.HTMLAttributes<HTMLDivElement
186
186
  hoverable?: boolean;
187
187
  /** Dropdown is open. */
188
188
  active?: boolean;
189
+ /** Callback when dropdown active state changes. */
190
+ onActiveChange?: (active: boolean) => void;
189
191
  /** Dropdown content. */
190
192
  children?: React.ReactNode;
191
193
  }
@@ -13,7 +13,13 @@ export interface TagsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'c
13
13
  className?: string;
14
14
  /** Group tags together as add-ons (no spacing). */
15
15
  hasAddons?: boolean;
16
- /** Allow tags to wrap onto multiple lines. */
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
+ */
17
23
  isMultiline?: boolean;
18
24
  /** Size of every tag in the group. */
19
25
  size?: TagsSize;
@@ -51,7 +51,7 @@ export declare const validFontFamilies: readonly ["sans-serif", "monospace", "pr
51
51
  * Valid Bulma display classes.
52
52
  * @example 'block', 'flex', 'inline'
53
53
  */
54
- export declare const validDisplays: readonly ["block", "flex", "inline", "inline-block", "inline-flex"];
54
+ export declare const validDisplays: readonly ["block", "flex", "inline", "inline-block", "inline-flex", "grid"];
55
55
  /**
56
56
  * Valid Bulma visibility classes.
57
57
  * These are all the valid visibility options available in Bulma.
@@ -97,7 +97,7 @@ export declare const validFlexGrowShrink: readonly ["0", "1", "2", "3", "4", "5"
97
97
  * Valid Bulma viewport classes for responsive design.
98
98
  * @example 'mobile', 'tablet', 'desktop'
99
99
  */
100
- export declare const validViewports: readonly ["mobile", "tablet", "desktop", "widescreen", "fullhd"];
100
+ export declare const validViewports: readonly ["mobile", "tablet", "tablet-only", "touch", "desktop", "desktop-only", "widescreen", "widescreen-only", "fullhd"];
101
101
  /**
102
102
  * Props for applying a Bulma viewport modifier to viewport-aware helper classes.
103
103
  */
@@ -116,10 +116,18 @@ export interface BulmaDisplayProps {
116
116
  displayMobile?: (typeof validDisplays)[number] | 'none';
117
117
  /** Display type for tablet viewport (769px - 1023px). */
118
118
  displayTablet?: (typeof validDisplays)[number] | 'none';
119
+ /** Display type for tablet-only viewport (769px - 1023px, excludes desktop+). */
120
+ displayTabletOnly?: (typeof validDisplays)[number] | 'none';
121
+ /** Display type for touch viewport (up to 1023px; mobile + tablet). */
122
+ displayTouch?: (typeof validDisplays)[number] | 'none';
119
123
  /** Display type for desktop viewport (1024px - 1215px). */
120
124
  displayDesktop?: (typeof validDisplays)[number] | 'none';
125
+ /** Display type for desktop-only viewport (1024px - 1215px, excludes widescreen+). */
126
+ displayDesktopOnly?: (typeof validDisplays)[number] | 'none';
121
127
  /** Display type for widescreen viewport (1216px - 1407px). */
122
128
  displayWidescreen?: (typeof validDisplays)[number] | 'none';
129
+ /** Display type for widescreen-only viewport (1216px - 1407px, excludes fullhd). */
130
+ displayWidescreenOnly?: (typeof validDisplays)[number] | 'none';
123
131
  /** Display type for fullhd viewport (1408px and above). */
124
132
  displayFullhd?: (typeof validDisplays)[number] | 'none';
125
133
  }
@@ -136,6 +144,6 @@ export interface BulmaDisplayProps {
136
144
  export declare const createBulmaClassHelpers: (classPrefix?: string, viewport?: (typeof validViewports)[number]) => {
137
145
  classes: string[];
138
146
  addPrefixedClass: (className: string) => void;
139
- addClass: (prefix: string, value: string | undefined, validValues: readonly string[], supportsViewport?: boolean) => void;
147
+ addClass: (prefix: string, value: string | undefined, validValues: readonly string[], supportsViewport?: boolean, supportedViewports?: readonly string[]) => void;
140
148
  addClassNoViewport: (prefix: string, value: string | undefined, validValues: readonly string[]) => void;
141
149
  };
@@ -9,10 +9,18 @@ export interface BulmaVisibilityProps extends BulmaViewportProps, BulmaDisplayPr
9
9
  visibilityMobile?: (typeof validVisibilities)[number];
10
10
  /** Visibility for tablet viewport (769px - 1023px). */
11
11
  visibilityTablet?: (typeof validVisibilities)[number];
12
+ /** Visibility for tablet-only viewport (769px - 1023px, excludes desktop+). */
13
+ visibilityTabletOnly?: (typeof validVisibilities)[number];
14
+ /** Visibility for touch viewport (up to 1023px; mobile + tablet). */
15
+ visibilityTouch?: (typeof validVisibilities)[number];
12
16
  /** Visibility for desktop viewport (1024px - 1215px). */
13
17
  visibilityDesktop?: (typeof validVisibilities)[number];
18
+ /** Visibility for desktop-only viewport (1024px - 1215px, excludes widescreen+). */
19
+ visibilityDesktopOnly?: (typeof validVisibilities)[number];
14
20
  /** Visibility for widescreen viewport (1216px - 1407px). */
15
21
  visibilityWidescreen?: (typeof validVisibilities)[number];
22
+ /** Visibility for widescreen-only viewport (1216px - 1407px, excludes fullhd). */
23
+ visibilityWidescreenOnly?: (typeof validVisibilities)[number];
16
24
  /** Visibility for fullhd viewport (1408px and above). */
17
25
  visibilityFullhd?: (typeof validVisibilities)[number];
18
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allxsmith/bestax-bulma",
3
- "version": "5.12.0",
3
+ "version": "5.13.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",