@allxsmith/bestax-bulma 5.11.7 → 5.12.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.
- package/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Message.d.ts +8 -1
- package/dist/types/elements/Buttons.d.ts +8 -1
- package/dist/types/elements/Icon.d.ts +9 -1
- package/dist/types/elements/Tags.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
declare const validMessageSizes: readonly ["small", "medium", "large"];
|
|
4
|
+
/**
|
|
5
|
+
* Valid size values for the Message component (Bulma message sizes).
|
|
6
|
+
*/
|
|
7
|
+
export type MessageSize = (typeof validMessageSizes)[number];
|
|
3
8
|
/**
|
|
4
9
|
* Props for the Message component.
|
|
5
10
|
*/
|
|
6
|
-
export interface MessageProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
11
|
+
export interface MessageProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'>, Omit<BulmaClassesProps, 'color' | 'backgroundColor' | 'size'> {
|
|
7
12
|
/** Additional CSS classes. */
|
|
8
13
|
className?: string;
|
|
9
14
|
/** Title string/node (renders header section). */
|
|
@@ -14,6 +19,8 @@ export interface MessageProps extends Omit<React.HTMLAttributes<HTMLElement>, 't
|
|
|
14
19
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
15
20
|
/** Background color for the message (Bulma helper). */
|
|
16
21
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
22
|
+
/** Size of the message. */
|
|
23
|
+
size?: MessageSize;
|
|
17
24
|
/** Callback for the close ("X") button. */
|
|
18
25
|
onClose?: () => void;
|
|
19
26
|
/** Body content for the message. */
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
declare const validButtonsSizes: readonly ["small", "medium", "large"];
|
|
4
|
+
/**
|
|
5
|
+
* Valid size values for the Buttons component (Bulma button group sizes).
|
|
6
|
+
*/
|
|
7
|
+
export type ButtonsSize = (typeof validButtonsSizes)[number];
|
|
3
8
|
/**
|
|
4
9
|
* Props for the Buttons component.
|
|
5
10
|
*/
|
|
6
|
-
interface ButtonsProps extends React.HTMLAttributes<HTMLDivElement>, BulmaClassesProps {
|
|
11
|
+
interface ButtonsProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'size'> {
|
|
7
12
|
/** Additional CSS classes to apply. */
|
|
8
13
|
className?: string;
|
|
9
14
|
/** Text color helper for the button group. */
|
|
@@ -23,6 +28,8 @@ interface ButtonsProps extends React.HTMLAttributes<HTMLDivElement>, BulmaClasse
|
|
|
23
28
|
isRight?: boolean;
|
|
24
29
|
/** Group buttons together as addons (removes spacing between them). */
|
|
25
30
|
hasAddons?: boolean;
|
|
31
|
+
/** Size of the button group. */
|
|
32
|
+
size?: ButtonsSize;
|
|
26
33
|
/** The button elements to render inside the group. */
|
|
27
34
|
children: React.ReactNode;
|
|
28
35
|
}
|
|
@@ -49,7 +49,15 @@ export interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, BulmaC
|
|
|
49
49
|
libraryFeatures?: string | string[];
|
|
50
50
|
/** Size modifier for the icon container. */
|
|
51
51
|
size?: 'small' | 'medium' | 'large';
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* ARIA label for accessibility. Applied unconditionally to the container span, so an
|
|
54
|
+
* icon that never sets it still renders `aria-label="icon"`. For an icon-only control,
|
|
55
|
+
* put the real `aria-label` on the control (e.g. `Button`) and set `aria-hidden` here
|
|
56
|
+
* instead — otherwise the control's accessible name is announced as just "icon". For a
|
|
57
|
+
* decorative icon beside visible text, set `aria-hidden` here rather than leaving the
|
|
58
|
+
* default, so it doesn't add "icon" to the text's accessible name.
|
|
59
|
+
* @defaultValue 'icon'
|
|
60
|
+
*/
|
|
53
61
|
ariaLabel?: string;
|
|
54
62
|
/** Inline style object. */
|
|
55
63
|
style?: React.CSSProperties;
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps } from '../helpers/useBulmaClasses';
|
|
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];
|
|
3
8
|
/**
|
|
4
9
|
* Props for the Tags component.
|
|
5
10
|
*/
|
|
6
|
-
export interface TagsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
11
|
+
export interface TagsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color' | 'size'> {
|
|
7
12
|
/** Additional CSS classes to apply. */
|
|
8
13
|
className?: string;
|
|
9
14
|
/** Group tags together as add-ons (no spacing). */
|
|
10
15
|
hasAddons?: boolean;
|
|
11
16
|
/** Allow tags to wrap onto multiple lines. */
|
|
12
17
|
isMultiline?: boolean;
|
|
18
|
+
/** Size of every tag in the group. */
|
|
19
|
+
size?: TagsSize;
|
|
13
20
|
/** Tag elements to render inside the container. */
|
|
14
21
|
children?: React.ReactNode;
|
|
15
22
|
}
|
|
16
23
|
export declare const Tags: React.FC<TagsProps> & {
|
|
17
24
|
Tag: React.FC<import("./Tag").TagProps>;
|
|
18
25
|
};
|
|
26
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allxsmith/bestax-bulma",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.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",
|