@allxsmith/bestax-bulma 5.9.1 → 5.11.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 +208 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +204 -62
- package/dist/index.esm.js.map +1 -1
- package/dist/types/columns/Column.d.ts +2 -2
- package/dist/types/components/Card.d.ts +57 -10
- package/dist/types/components/Sidebar.d.ts +2 -0
- package/dist/types/components/Tabs.d.ts +4 -0
- package/dist/types/elements/Box.d.ts +8 -3
- package/dist/types/elements/Button.d.ts +2 -0
- package/dist/types/elements/SubTitle.d.ts +3 -4
- package/dist/types/elements/Table.d.ts +2 -0
- package/dist/types/elements/Tag.d.ts +2 -0
- package/dist/types/elements/Title.d.ts +3 -4
- package/dist/types/form/File.d.ts +2 -0
- package/dist/types/form/Numberinput.d.ts +4 -0
- package/dist/types/form/SelectBase.d.ts +2 -0
- package/dist/types/form/Taginput.d.ts +4 -0
- package/dist/types/helpers/Theme.d.ts +1 -1
- package/dist/types/helpers/bulmaClassHelpers.d.ts +9 -0
- package/dist/types/helpers/mergeBulmaStyles.d.ts +17 -0
- package/dist/types/helpers/useBulmaClasses.d.ts +25 -8
- package/dist/types/helpers/useColorClasses.d.ts +43 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/layout/Container.d.ts +8 -3
- package/dist/types/layout/Footer.d.ts +8 -3
- package/dist/types/layout/Hero.d.ts +29 -9
- package/dist/types/layout/Section.d.ts +8 -3
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
2
|
+
import { BulmaClassesProps, validColors, validSchemeColors } from '../helpers/useBulmaClasses';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the Card component.
|
|
5
5
|
* @extraProp {'centered' | 'justified' | 'left' | 'right'} [textAlign] - Text alignment.
|
|
@@ -16,8 +16,13 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, Omit<Bu
|
|
|
16
16
|
* a colored surface.
|
|
17
17
|
*/
|
|
18
18
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Background color for the card. `scheme-*` values render as a
|
|
21
|
+
* dark-mode-safe inline `background-color: var(--bulma-scheme-*)` instead
|
|
22
|
+
* of a class. The `scheme-invert*` values do not change text color — pair
|
|
23
|
+
* them with a contrasting foreground.
|
|
24
|
+
*/
|
|
25
|
+
bgColor?: (typeof validColors)[number] | (typeof validSchemeColors)[number] | 'inherit' | 'current';
|
|
21
26
|
/** Whether the card has a shadow (default: `true`). */
|
|
22
27
|
hasShadow?: boolean;
|
|
23
28
|
/** Card header content, rendered inside `.card-header-title`. */
|
|
@@ -38,7 +43,13 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, Omit<Bu
|
|
|
38
43
|
/**
|
|
39
44
|
* Props for the Card.Header compound component.
|
|
40
45
|
*/
|
|
41
|
-
export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement> {
|
|
46
|
+
export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
47
|
+
/** Bulma color modifier (text color helper). */
|
|
48
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
49
|
+
/** Background color helper. */
|
|
50
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
51
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
52
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
42
53
|
/** Additional CSS classes. */
|
|
43
54
|
className?: string;
|
|
44
55
|
/** Header content. Wrap in Card.Header.Title for Bulma styling. */
|
|
@@ -49,7 +60,13 @@ export interface CardHeaderProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
49
60
|
/**
|
|
50
61
|
* Props for the Card.Image compound component.
|
|
51
62
|
*/
|
|
52
|
-
export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
63
|
+
export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
64
|
+
/** Bulma color modifier (text color helper). */
|
|
65
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
66
|
+
/** Background color helper. */
|
|
67
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
68
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
69
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
53
70
|
/** Additional CSS classes. */
|
|
54
71
|
className?: string;
|
|
55
72
|
/** Image content (e.g. a `<figure>` with an `<img>`). */
|
|
@@ -58,7 +75,13 @@ export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
58
75
|
/**
|
|
59
76
|
* Props for the Card.Content compound component.
|
|
60
77
|
*/
|
|
61
|
-
export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
78
|
+
export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
79
|
+
/** Bulma color modifier (text color helper). */
|
|
80
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
81
|
+
/** Background color helper. */
|
|
82
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
83
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
84
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
62
85
|
/** Additional CSS classes. */
|
|
63
86
|
className?: string;
|
|
64
87
|
/** Card body content. */
|
|
@@ -67,7 +90,13 @@ export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
67
90
|
/**
|
|
68
91
|
* Props for the Card.Footer compound component.
|
|
69
92
|
*/
|
|
70
|
-
export interface CardFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
93
|
+
export interface CardFooterProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
94
|
+
/** Bulma color modifier (text color helper). */
|
|
95
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
96
|
+
/** Background color helper. */
|
|
97
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
98
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
99
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
71
100
|
/** Additional CSS classes. */
|
|
72
101
|
className?: string;
|
|
73
102
|
/** Footer content, typically Card.FooterItem elements. */
|
|
@@ -76,7 +105,13 @@ export interface CardFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
76
105
|
/**
|
|
77
106
|
* Props for the Card.FooterItem compound component.
|
|
78
107
|
*/
|
|
79
|
-
export interface CardFooterItemProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
108
|
+
export interface CardFooterItemProps extends React.HTMLAttributes<HTMLSpanElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
109
|
+
/** Bulma color modifier (text color helper). */
|
|
110
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
111
|
+
/** Background color helper. */
|
|
112
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
113
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
114
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
80
115
|
/** Additional CSS classes. */
|
|
81
116
|
className?: string;
|
|
82
117
|
/** Footer item content (link, button, text, etc.). */
|
|
@@ -85,7 +120,13 @@ export interface CardFooterItemProps extends React.HTMLAttributes<HTMLSpanElemen
|
|
|
85
120
|
/**
|
|
86
121
|
* Props for the Card.Header.Title compound component.
|
|
87
122
|
*/
|
|
88
|
-
export interface CardHeaderTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
123
|
+
export interface CardHeaderTitleProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
124
|
+
/** Bulma color modifier (text color helper). */
|
|
125
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
126
|
+
/** Background color helper. */
|
|
127
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
128
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
129
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
89
130
|
/** Additional CSS classes. */
|
|
90
131
|
className?: string;
|
|
91
132
|
/** Title text content. */
|
|
@@ -96,7 +137,13 @@ export interface CardHeaderTitleProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
96
137
|
/**
|
|
97
138
|
* Props for the Card.Header.Icon compound component.
|
|
98
139
|
*/
|
|
99
|
-
export interface CardHeaderIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
140
|
+
export interface CardHeaderIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
141
|
+
/** Bulma color modifier (text color helper). */
|
|
142
|
+
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
143
|
+
/** Background color helper. */
|
|
144
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
145
|
+
/** Text color helper; wins over `color` when both are set. */
|
|
146
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
100
147
|
/** Additional CSS classes. */
|
|
101
148
|
className?: string;
|
|
102
149
|
/** 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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
2
|
+
import { BulmaClassesProps, validColors, validSchemeColors } from '../helpers/useBulmaClasses';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the Box component.
|
|
5
5
|
*/
|
|
@@ -17,8 +17,13 @@ export interface BoxProps
|
|
|
17
17
|
* a colored surface.
|
|
18
18
|
*/
|
|
19
19
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Background color helper. `scheme-*` values render as a dark-mode-safe
|
|
22
|
+
* inline `background-color: var(--bulma-scheme-*)` instead of a class. The
|
|
23
|
+
* `scheme-invert*` values do not change text color — pair them with a
|
|
24
|
+
* contrasting foreground.
|
|
25
|
+
*/
|
|
26
|
+
bgColor?: (typeof validColors)[number] | (typeof validSchemeColors)[number] | 'inherit' | 'current';
|
|
22
27
|
/** Whether the box has a shadow (default: true). */
|
|
23
28
|
hasShadow?: boolean;
|
|
24
29
|
/** Content to render inside the box. */
|
|
@@ -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;
|
|
@@ -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 =
|
|
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 =
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BulmaClassesProps } from './useBulmaClasses';
|
|
3
|
-
declare const bulmaCssVars: readonly ["--bulma-scheme-h", "--bulma-scheme-s", "--bulma-light-l", "--bulma-light-invert-l", "--bulma-dark-l", "--bulma-dark-invert-l", "--bulma-soft-l", "--bulma-bold-l", "--bulma-soft-invert-l", "--bulma-bold-invert-l", "--bulma-hover-background-l-delta", "--bulma-active-background-l-delta", "--bulma-hover-border-l-delta", "--bulma-active-border-l-delta", "--bulma-hover-color-l-delta", "--bulma-active-color-l-delta", "--bulma-hover-shadow-a-delta", "--bulma-active-shadow-a-delta", "--bulma-primary-h", "--bulma-primary-s", "--bulma-primary-l", "--bulma-link-h", "--bulma-link-s", "--bulma-link-l", "--bulma-info-h", "--bulma-info-s", "--bulma-info-l", "--bulma-success-h", "--bulma-success-s", "--bulma-success-l", "--bulma-warning-h", "--bulma-warning-s", "--bulma-warning-l", "--bulma-danger-h", "--bulma-danger-s", "--bulma-danger-l", "--bulma-family-primary", "--bulma-family-secondary", "--bulma-family-code", "--bulma-size-small", "--bulma-size-normal", "--bulma-size-medium", "--bulma-size-large", "--bulma-weight-light", "--bulma-weight-normal", "--bulma-weight-medium", "--bulma-weight-semibold", "--bulma-weight-bold", "--bulma-weight-extrabold", "--bulma-block-spacing", "--bulma-duration", "--bulma-easing", "--bulma-radius-small", "--bulma-radius", "--bulma-radius-medium", "--bulma-radius-large", "--bulma-radius-rounded", "--bulma-speed", "--bulma-arrow-color", "--bulma-loading-color", "--bulma-burger-h", "--bulma-burger-s", "--bulma-burger-l", "--bulma-burger-border-radius", "--bulma-burger-gap", "--bulma-burger-item-height", "--bulma-burger-item-width", "--bulma-body-background-color", "--bulma-body-size", "--bulma-body-min-width", "--bulma-body-rendering", "--bulma-body-family", "--bulma-body-overflow-x", "--bulma-body-overflow-y", "--bulma-body-color", "--bulma-body-font-size", "--bulma-body-weight", "--bulma-body-line-height", "--bulma-code-family", "--bulma-code-padding", "--bulma-code-weight", "--bulma-code-size", "--bulma-small-font-size", "--bulma-hr-background-color", "--bulma-hr-height", "--bulma-hr-margin", "--bulma-strong-color", "--bulma-strong-weight", "--bulma-pre-font-size", "--bulma-pre-padding", "--bulma-pre-code-font-size", "--bulma-skeleton-background", "--bulma-skeleton-radius", "--bulma-skeleton-block-min-height", "--bulma-skeleton-lines-gap", "--bulma-skeleton-line-height", "--bulma-breadcrumb-item-color", "--bulma-breadcrumb-item-hover-color", "--bulma-breadcrumb-item-active-color", "--bulma-breadcrumb-item-padding-vertical", "--bulma-breadcrumb-item-padding-horizontal", "--bulma-breadcrumb-item-separator-color", "--bulma-card-color", "--bulma-card-background-color", "--bulma-card-shadow", "--bulma-card-radius", "--bulma-card-header-background-color", "--bulma-card-header-color", "--bulma-card-header-padding", "--bulma-card-header-shadow", "--bulma-card-header-weight", "--bulma-card-content-background-color", "--bulma-card-content-padding", "--bulma-card-footer-background-color", "--bulma-card-footer-border-top", "--bulma-card-footer-padding", "--bulma-card-media-margin", "--bulma-dropdown-menu-min-width", "--bulma-dropdown-content-background-color", "--bulma-dropdown-content-offset", "--bulma-dropdown-content-padding-bottom", "--bulma-dropdown-content-padding-top", "--bulma-dropdown-content-radius", "--bulma-dropdown-content-shadow", "--bulma-dropdown-content-z", "--bulma-dropdown-item-h", "--bulma-dropdown-item-s", "--bulma-dropdown-item-l", "--bulma-dropdown-item-background-l", "--bulma-dropdown-item-background-l-delta", "--bulma-dropdown-item-hover-background-l-delta", "--bulma-dropdown-item-active-background-l-delta", "--bulma-dropdown-item-color-l", "--bulma-dropdown-item-selected-h", "--bulma-dropdown-item-selected-s", "--bulma-dropdown-item-selected-l", "--bulma-dropdown-item-selected-background-l", "--bulma-dropdown-item-selected-color-l", "--bulma-dropdown-divider-background-color", "--bulma-menu-item-h", "--bulma-menu-item-s", "--bulma-menu-item-l", "--bulma-menu-item-background-l", "--bulma-menu-item-background-l-delta", "--bulma-menu-item-hover-background-l-delta", "--bulma-menu-item-active-background-l-delta", "--bulma-menu-item-color-l", "--bulma-menu-item-radius", "--bulma-menu-item-selected-h", "--bulma-menu-item-selected-s", "--bulma-menu-item-selected-l", "--bulma-menu-item-selected-background-l", "--bulma-menu-item-selected-color-l", "--bulma-menu-list-border-left", "--bulma-menu-list-line-height", "--bulma-menu-list-link-padding", "--bulma-menu-nested-list-margin", "--bulma-menu-nested-list-padding-left", "--bulma-menu-label-color", "--bulma-menu-label-font-size", "--bulma-menu-label-letter-spacing", "--bulma-menu-label-spacing", "--bulma-message-h", "--bulma-message-s", "--bulma-message-background-l", "--bulma-message-border-l", "--bulma-message-border-l-delta", "--bulma-message-border-style", "--bulma-message-border-width", "--bulma-message-color-l", "--bulma-message-radius", "--bulma-message-header-weight", "--bulma-message-header-padding", "--bulma-message-header-radius", "--bulma-message-header-body-border-width", "--bulma-message-header-background-l", "--bulma-message-header-color-l", "--bulma-message-body-border-width", "--bulma-message-body-color", "--bulma-message-body-padding", "--bulma-message-body-radius", "--bulma-message-body-pre-code-background-color", "--bulma-modal-z", "--bulma-modal-background-background-color", "--bulma-modal-content-width", "--bulma-modal-content-margin-mobile", "--bulma-modal-content-spacing-mobile", "--bulma-modal-content-spacing-tablet", "--bulma-modal-close-dimensions", "--bulma-modal-close-right", "--bulma-modal-close-top", "--bulma-modal-card-spacing", "--bulma-modal-card-head-background-color", "--bulma-modal-card-head-padding", "--bulma-modal-card-head-radius", "--bulma-modal-card-title-color", "--bulma-modal-card-title-line-height", "--bulma-modal-card-title-size", "--bulma-modal-card-foot-background-color", "--bulma-modal-card-foot-radius", "--bulma-modal-card-body-background-color", "--bulma-modal-card-body-padding", "--bulma-navbar-h", "--bulma-navbar-s", "--bulma-navbar-l", "--bulma-navbar-background-color", "--bulma-navbar-box-shadow-size", "--bulma-navbar-box-shadow-color", "--bulma-navbar-padding-vertical", "--bulma-navbar-padding-horizontal", "--bulma-navbar-z", "--bulma-navbar-fixed-z", "--bulma-navbar-item-background-a", "--bulma-navbar-item-background-l", "--bulma-navbar-item-background-l-delta", "--bulma-navbar-item-hover-background-l-delta", "--bulma-navbar-item-active-background-l-delta", "--bulma-navbar-item-color-l", "--bulma-navbar-item-selected-h", "--bulma-navbar-item-selected-s", "--bulma-navbar-item-selected-l", "--bulma-navbar-item-selected-background-l", "--bulma-navbar-item-selected-color-l", "--bulma-navbar-item-img-max-height", "--bulma-navbar-burger-color", "--bulma-navbar-tab-hover-background-color", "--bulma-navbar-tab-hover-border-bottom-color", "--bulma-navbar-tab-active-color", "--bulma-navbar-tab-active-background-color", "--bulma-navbar-tab-active-border-bottom-color", "--bulma-navbar-tab-active-border-bottom-style", "--bulma-navbar-tab-active-border-bottom-width", "--bulma-navbar-dropdown-background-color", "--bulma-navbar-dropdown-border-l", "--bulma-navbar-dropdown-border-color", "--bulma-navbar-dropdown-border-style", "--bulma-navbar-dropdown-border-width", "--bulma-navbar-dropdown-offset", "--bulma-navbar-dropdown-arrow", "--bulma-navbar-dropdown-radius", "--bulma-navbar-dropdown-z", "--bulma-navbar-dropdown-boxed-radius", "--bulma-navbar-dropdown-boxed-shadow", "--bulma-navbar-dropdown-item-h", "--bulma-navbar-dropdown-item-s", "--bulma-navbar-dropdown-item-l", "--bulma-navbar-dropdown-item-background-l", "--bulma-navbar-dropdown-item-color-l", "--bulma-navbar-divider-background-l", "--bulma-navbar-divider-height", "--bulma-navbar-bottom-box-shadow-size", "--bulma-pagination-margin", "--bulma-pagination-min-width", "--bulma-pagination-item-h", "--bulma-pagination-item-s", "--bulma-pagination-item-l", "--bulma-pagination-item-background-l-delta", "--bulma-pagination-item-hover-background-l-delta", "--bulma-pagination-item-active-background-l-delta", "--bulma-pagination-item-border-style", "--bulma-pagination-item-border-width", "--bulma-pagination-item-border-l", "--bulma-pagination-item-border-l-delta", "--bulma-pagination-item-hover-border-l-delta", "--bulma-pagination-item-active-border-l-delta", "--bulma-pagination-item-focus-border-l-delta", "--bulma-pagination-item-color-l", "--bulma-pagination-item-font-size", "--bulma-pagination-item-margin", "--bulma-pagination-item-padding-left", "--bulma-pagination-item-padding-right", "--bulma-pagination-item-outer-shadow-h", "--bulma-pagination-item-outer-shadow-s", "--bulma-pagination-item-outer-shadow-l", "--bulma-pagination-item-outer-shadow-a", "--bulma-pagination-nav-padding-left", "--bulma-pagination-nav-padding-right", "--bulma-pagination-disabled-color", "--bulma-pagination-disabled-background-color", "--bulma-pagination-disabled-border-color", "--bulma-pagination-current-color", "--bulma-pagination-current-background-color", "--bulma-pagination-current-border-color", "--bulma-pagination-ellipsis-color", "--bulma-pagination-shadow-inset", "--bulma-pagination-selected-item-h", "--bulma-pagination-selected-item-s", "--bulma-pagination-selected-item-l", "--bulma-pagination-selected-item-background-l", "--bulma-pagination-selected-item-border-l", "--bulma-pagination-selected-item-color-l", "--bulma-panel-margin", "--bulma-panel-item-border", "--bulma-panel-radius", "--bulma-panel-shadow", "--bulma-panel-heading-line-height", "--bulma-panel-heading-padding", "--bulma-panel-heading-radius", "--bulma-panel-heading-size", "--bulma-panel-heading-weight", "--bulma-panel-tabs-font-size", "--bulma-panel-tab-border-bottom-color", "--bulma-panel-tab-border-bottom-style", "--bulma-panel-tab-border-bottom-width", "--bulma-panel-tab-active-color", "--bulma-panel-list-item-color", "--bulma-panel-list-item-hover-color", "--bulma-panel-block-color", "--bulma-panel-block-hover-background-color", "--bulma-panel-block-active-border-left-color", "--bulma-panel-block-active-color", "--bulma-panel-block-active-icon-color", "--bulma-panel-icon-color", "--bulma-tabs-border-bottom-color", "--bulma-tabs-border-bottom-style", "--bulma-tabs-border-bottom-width", "--bulma-tabs-link-color", "--bulma-tabs-link-hover-border-bottom-color", "--bulma-tabs-link-hover-color", "--bulma-tabs-link-active-border-bottom-color", "--bulma-tabs-link-active-color", "--bulma-tabs-link-padding", "--bulma-tabs-boxed-link-radius", "--bulma-tabs-boxed-link-hover-background-color", "--bulma-tabs-boxed-link-hover-border-bottom-color", "--bulma-tabs-boxed-link-active-background-color", "--bulma-tabs-boxed-link-active-border-color", "--bulma-tabs-boxed-link-active-border-bottom-color", "--bulma-tabs-toggle-link-border-color", "--bulma-tabs-toggle-link-border-style", "--bulma-tabs-toggle-link-border-width", "--bulma-tabs-toggle-link-hover-background-color", "--bulma-tabs-toggle-link-hover-border-color", "--bulma-tabs-toggle-link-radius", "--bulma-tabs-toggle-link-active-background-color", "--bulma-tabs-toggle-link-active-border-color", "--bulma-tabs-toggle-link-active-color", "--bulma-box-background-color", "--bulma-box-color", "--bulma-box-radius", "--bulma-box-shadow", "--bulma-box-padding", "--bulma-box-link-hover-shadow", "--bulma-box-link-active-shadow", "--bulma-content-heading-color", "--bulma-content-heading-weight", "--bulma-content-heading-line-height", "--bulma-content-block-margin-bottom", "--bulma-content-blockquote-background-color", "--bulma-content-blockquote-border-left", "--bulma-content-blockquote-padding", "--bulma-content-pre-padding", "--bulma-content-table-cell-border", "--bulma-content-table-cell-border-width", "--bulma-content-table-cell-padding", "--bulma-content-table-cell-heading-color", "--bulma-content-table-head-cell-border-width", "--bulma-content-table-head-cell-color", "--bulma-content-table-body-last-row-cell-border-bottom-width", "--bulma-content-table-foot-cell-border-width", "--bulma-content-table-foot-cell-color", "--bulma-delete-dimensions", "--bulma-delete-background-l", "--bulma-delete-background-alpha", "--bulma-delete-color", "--bulma-icon-dimensions", "--bulma-icon-dimensions-small", "--bulma-icon-dimensions-medium", "--bulma-icon-dimensions-large", "--bulma-icon-text-spacing", "--bulma-notification-h", "--bulma-notification-s", "--bulma-notification-background-l", "--bulma-notification-color-l", "--bulma-notification-code-background-color", "--bulma-notification-radius", "--bulma-notification-padding", "--bulma-progress-border-radius", "--bulma-progress-bar-background-color", "--bulma-progress-value-background-color", "--bulma-progress-indeterminate-duration", "--bulma-table-color", "--bulma-table-background-color", "--bulma-table-cell-border-color", "--bulma-table-cell-border-style", "--bulma-table-cell-border-width", "--bulma-table-cell-padding", "--bulma-table-cell-heading-color", "--bulma-table-cell-text-align", "--bulma-table-head-cell-border-width", "--bulma-table-head-cell-color", "--bulma-table-foot-cell-border-width", "--bulma-table-foot-cell-color", "--bulma-table-head-background-color", "--bulma-table-body-background-color", "--bulma-table-foot-background-color", "--bulma-table-row-hover-background-color", "--bulma-table-row-active-background-color", "--bulma-table-row-active-color", "--bulma-table-striped-row-even-background-color", "--bulma-table-striped-row-even-hover-background-color", "--bulma-tag-h", "--bulma-tag-s", "--bulma-tag-background-l", "--bulma-tag-background-l-delta", "--bulma-tag-hover-background-l-delta", "--bulma-tag-active-background-l-delta", "--bulma-tag-color-l", "--bulma-tag-radius", "--bulma-tag-delete-margin", "--bulma-title-color", "--bulma-title-family", "--bulma-title-size", "--bulma-title-weight", "--bulma-title-line-height", "--bulma-title-strong-color", "--bulma-title-strong-weight", "--bulma-title-sub-size", "--bulma-title-sup-size", "--bulma-subtitle-color", "--bulma-subtitle-family", "--bulma-subtitle-size", "--bulma-subtitle-weight", "--bulma-subtitle-line-height", "--bulma-subtitle-strong-color", "--bulma-subtitle-strong-weight", "--bulma-control-radius", "--bulma-control-radius-small", "--bulma-control-border-width", "--bulma-control-height", "--bulma-control-line-height", "--bulma-control-padding-vertical", "--bulma-control-padding-horizontal", "--bulma-control-size", "--bulma-control-focus-shadow-l", "--bulma-file-radius", "--bulma-file-name-border-color", "--bulma-file-name-border-style", "--bulma-file-name-border-width", "--bulma-file-name-max-width", "--bulma-file-h", "--bulma-file-s", "--bulma-file-background-l", "--bulma-file-background-l-delta", "--bulma-file-hover-background-l-delta", "--bulma-file-active-background-l-delta", "--bulma-file-border-l", "--bulma-file-border-l-delta", "--bulma-file-hover-border-l-delta", "--bulma-file-active-border-l-delta", "--bulma-file-cta-color-l", "--bulma-file-name-color-l", "--bulma-file-color-l-delta", "--bulma-file-hover-color-l-delta", "--bulma-file-active-color-l-delta", "--bulma-input-h", "--bulma-input-s", "--bulma-input-l", "--bulma-input-border-style", "--bulma-input-border-l", "--bulma-input-border-l-delta", "--bulma-input-hover-border-l-delta", "--bulma-input-active-border-l-delta", "--bulma-input-focus-h", "--bulma-input-focus-s", "--bulma-input-focus-l", "--bulma-input-focus-shadow-size", "--bulma-input-focus-shadow-alpha", "--bulma-input-color-l", "--bulma-input-background-l", "--bulma-input-background-l-delta", "--bulma-input-height", "--bulma-input-shadow", "--bulma-input-placeholder-color", "--bulma-input-disabled-color", "--bulma-input-disabled-background-color", "--bulma-input-disabled-border-color", "--bulma-input-disabled-placeholder-color", "--bulma-input-arrow", "--bulma-input-icon-color", "--bulma-input-icon-hover-color", "--bulma-input-icon-focus-color", "--bulma-input-radius", "--bulma-column-gap", "--bulma-grid-gap", "--bulma-grid-column-count", "--bulma-grid-column-min", "--bulma-grid-cell-column-span", "--bulma-grid-cell-column-start", "--bulma-footer-background-color", "--bulma-footer-color", "--bulma-footer-padding", "--bulma-hero-body-padding", "--bulma-hero-body-padding-tablet", "--bulma-hero-body-padding-small", "--bulma-hero-body-padding-medium", "--bulma-hero-body-padding-large", "--bulma-media-border-color", "--bulma-media-border-size", "--bulma-media-spacing", "--bulma-media-spacing-large", "--bulma-media-content-spacing", "--bulma-media-level-1-spacing", "--bulma-media-level-1-content-spacing", "--bulma-media-level-2-spacing", "--bulma-section-padding", "--bulma-section-padding-desktop", "--bulma-section-padding-medium", "--bulma-section-padding-large"];
|
|
3
|
+
declare const bulmaCssVars: readonly ["--bulma-scheme-h", "--bulma-scheme-s", "--bulma-scheme-main", "--bulma-scheme-main-bis", "--bulma-scheme-main-ter", "--bulma-scheme-invert", "--bulma-scheme-invert-bis", "--bulma-scheme-invert-ter", "--bulma-light-l", "--bulma-light-invert-l", "--bulma-dark-l", "--bulma-dark-invert-l", "--bulma-soft-l", "--bulma-bold-l", "--bulma-soft-invert-l", "--bulma-bold-invert-l", "--bulma-hover-background-l-delta", "--bulma-active-background-l-delta", "--bulma-hover-border-l-delta", "--bulma-active-border-l-delta", "--bulma-hover-color-l-delta", "--bulma-active-color-l-delta", "--bulma-hover-shadow-a-delta", "--bulma-active-shadow-a-delta", "--bulma-primary-h", "--bulma-primary-s", "--bulma-primary-l", "--bulma-link-h", "--bulma-link-s", "--bulma-link-l", "--bulma-info-h", "--bulma-info-s", "--bulma-info-l", "--bulma-success-h", "--bulma-success-s", "--bulma-success-l", "--bulma-warning-h", "--bulma-warning-s", "--bulma-warning-l", "--bulma-danger-h", "--bulma-danger-s", "--bulma-danger-l", "--bulma-family-primary", "--bulma-family-secondary", "--bulma-family-code", "--bulma-size-small", "--bulma-size-normal", "--bulma-size-medium", "--bulma-size-large", "--bulma-weight-light", "--bulma-weight-normal", "--bulma-weight-medium", "--bulma-weight-semibold", "--bulma-weight-bold", "--bulma-weight-extrabold", "--bulma-block-spacing", "--bulma-duration", "--bulma-easing", "--bulma-radius-small", "--bulma-radius", "--bulma-radius-medium", "--bulma-radius-large", "--bulma-radius-rounded", "--bulma-speed", "--bulma-arrow-color", "--bulma-loading-color", "--bulma-burger-h", "--bulma-burger-s", "--bulma-burger-l", "--bulma-burger-border-radius", "--bulma-burger-gap", "--bulma-burger-item-height", "--bulma-burger-item-width", "--bulma-body-background-color", "--bulma-body-size", "--bulma-body-min-width", "--bulma-body-rendering", "--bulma-body-family", "--bulma-body-overflow-x", "--bulma-body-overflow-y", "--bulma-body-color", "--bulma-body-font-size", "--bulma-body-weight", "--bulma-body-line-height", "--bulma-code-family", "--bulma-code-padding", "--bulma-code-weight", "--bulma-code-size", "--bulma-small-font-size", "--bulma-hr-background-color", "--bulma-hr-height", "--bulma-hr-margin", "--bulma-strong-color", "--bulma-strong-weight", "--bulma-pre-font-size", "--bulma-pre-padding", "--bulma-pre-code-font-size", "--bulma-skeleton-background", "--bulma-skeleton-radius", "--bulma-skeleton-block-min-height", "--bulma-skeleton-lines-gap", "--bulma-skeleton-line-height", "--bulma-breadcrumb-item-color", "--bulma-breadcrumb-item-hover-color", "--bulma-breadcrumb-item-active-color", "--bulma-breadcrumb-item-padding-vertical", "--bulma-breadcrumb-item-padding-horizontal", "--bulma-breadcrumb-item-separator-color", "--bulma-card-color", "--bulma-card-background-color", "--bulma-card-shadow", "--bulma-card-radius", "--bulma-card-header-background-color", "--bulma-card-header-color", "--bulma-card-header-padding", "--bulma-card-header-shadow", "--bulma-card-header-weight", "--bulma-card-content-background-color", "--bulma-card-content-padding", "--bulma-card-footer-background-color", "--bulma-card-footer-border-top", "--bulma-card-footer-padding", "--bulma-card-media-margin", "--bulma-dropdown-menu-min-width", "--bulma-dropdown-content-background-color", "--bulma-dropdown-content-offset", "--bulma-dropdown-content-padding-bottom", "--bulma-dropdown-content-padding-top", "--bulma-dropdown-content-radius", "--bulma-dropdown-content-shadow", "--bulma-dropdown-content-z", "--bulma-dropdown-item-h", "--bulma-dropdown-item-s", "--bulma-dropdown-item-l", "--bulma-dropdown-item-background-l", "--bulma-dropdown-item-background-l-delta", "--bulma-dropdown-item-hover-background-l-delta", "--bulma-dropdown-item-active-background-l-delta", "--bulma-dropdown-item-color-l", "--bulma-dropdown-item-selected-h", "--bulma-dropdown-item-selected-s", "--bulma-dropdown-item-selected-l", "--bulma-dropdown-item-selected-background-l", "--bulma-dropdown-item-selected-color-l", "--bulma-dropdown-divider-background-color", "--bulma-menu-item-h", "--bulma-menu-item-s", "--bulma-menu-item-l", "--bulma-menu-item-background-l", "--bulma-menu-item-background-l-delta", "--bulma-menu-item-hover-background-l-delta", "--bulma-menu-item-active-background-l-delta", "--bulma-menu-item-color-l", "--bulma-menu-item-radius", "--bulma-menu-item-selected-h", "--bulma-menu-item-selected-s", "--bulma-menu-item-selected-l", "--bulma-menu-item-selected-background-l", "--bulma-menu-item-selected-color-l", "--bulma-menu-list-border-left", "--bulma-menu-list-line-height", "--bulma-menu-list-link-padding", "--bulma-menu-nested-list-margin", "--bulma-menu-nested-list-padding-left", "--bulma-menu-label-color", "--bulma-menu-label-font-size", "--bulma-menu-label-letter-spacing", "--bulma-menu-label-spacing", "--bulma-message-h", "--bulma-message-s", "--bulma-message-background-l", "--bulma-message-border-l", "--bulma-message-border-l-delta", "--bulma-message-border-style", "--bulma-message-border-width", "--bulma-message-color-l", "--bulma-message-radius", "--bulma-message-header-weight", "--bulma-message-header-padding", "--bulma-message-header-radius", "--bulma-message-header-body-border-width", "--bulma-message-header-background-l", "--bulma-message-header-color-l", "--bulma-message-body-border-width", "--bulma-message-body-color", "--bulma-message-body-padding", "--bulma-message-body-radius", "--bulma-message-body-pre-code-background-color", "--bulma-modal-z", "--bulma-modal-background-background-color", "--bulma-modal-content-width", "--bulma-modal-content-margin-mobile", "--bulma-modal-content-spacing-mobile", "--bulma-modal-content-spacing-tablet", "--bulma-modal-close-dimensions", "--bulma-modal-close-right", "--bulma-modal-close-top", "--bulma-modal-card-spacing", "--bulma-modal-card-head-background-color", "--bulma-modal-card-head-padding", "--bulma-modal-card-head-radius", "--bulma-modal-card-title-color", "--bulma-modal-card-title-line-height", "--bulma-modal-card-title-size", "--bulma-modal-card-foot-background-color", "--bulma-modal-card-foot-radius", "--bulma-modal-card-body-background-color", "--bulma-modal-card-body-padding", "--bulma-navbar-h", "--bulma-navbar-s", "--bulma-navbar-l", "--bulma-navbar-background-color", "--bulma-navbar-box-shadow-size", "--bulma-navbar-box-shadow-color", "--bulma-navbar-padding-vertical", "--bulma-navbar-padding-horizontal", "--bulma-navbar-z", "--bulma-navbar-fixed-z", "--bulma-navbar-item-background-a", "--bulma-navbar-item-background-l", "--bulma-navbar-item-background-l-delta", "--bulma-navbar-item-hover-background-l-delta", "--bulma-navbar-item-active-background-l-delta", "--bulma-navbar-item-color-l", "--bulma-navbar-item-selected-h", "--bulma-navbar-item-selected-s", "--bulma-navbar-item-selected-l", "--bulma-navbar-item-selected-background-l", "--bulma-navbar-item-selected-color-l", "--bulma-navbar-item-img-max-height", "--bulma-navbar-burger-color", "--bulma-navbar-tab-hover-background-color", "--bulma-navbar-tab-hover-border-bottom-color", "--bulma-navbar-tab-active-color", "--bulma-navbar-tab-active-background-color", "--bulma-navbar-tab-active-border-bottom-color", "--bulma-navbar-tab-active-border-bottom-style", "--bulma-navbar-tab-active-border-bottom-width", "--bulma-navbar-dropdown-background-color", "--bulma-navbar-dropdown-border-l", "--bulma-navbar-dropdown-border-color", "--bulma-navbar-dropdown-border-style", "--bulma-navbar-dropdown-border-width", "--bulma-navbar-dropdown-offset", "--bulma-navbar-dropdown-arrow", "--bulma-navbar-dropdown-radius", "--bulma-navbar-dropdown-z", "--bulma-navbar-dropdown-boxed-radius", "--bulma-navbar-dropdown-boxed-shadow", "--bulma-navbar-dropdown-item-h", "--bulma-navbar-dropdown-item-s", "--bulma-navbar-dropdown-item-l", "--bulma-navbar-dropdown-item-background-l", "--bulma-navbar-dropdown-item-color-l", "--bulma-navbar-divider-background-l", "--bulma-navbar-divider-height", "--bulma-navbar-bottom-box-shadow-size", "--bulma-pagination-margin", "--bulma-pagination-min-width", "--bulma-pagination-item-h", "--bulma-pagination-item-s", "--bulma-pagination-item-l", "--bulma-pagination-item-background-l-delta", "--bulma-pagination-item-hover-background-l-delta", "--bulma-pagination-item-active-background-l-delta", "--bulma-pagination-item-border-style", "--bulma-pagination-item-border-width", "--bulma-pagination-item-border-l", "--bulma-pagination-item-border-l-delta", "--bulma-pagination-item-hover-border-l-delta", "--bulma-pagination-item-active-border-l-delta", "--bulma-pagination-item-focus-border-l-delta", "--bulma-pagination-item-color-l", "--bulma-pagination-item-font-size", "--bulma-pagination-item-margin", "--bulma-pagination-item-padding-left", "--bulma-pagination-item-padding-right", "--bulma-pagination-item-outer-shadow-h", "--bulma-pagination-item-outer-shadow-s", "--bulma-pagination-item-outer-shadow-l", "--bulma-pagination-item-outer-shadow-a", "--bulma-pagination-nav-padding-left", "--bulma-pagination-nav-padding-right", "--bulma-pagination-disabled-color", "--bulma-pagination-disabled-background-color", "--bulma-pagination-disabled-border-color", "--bulma-pagination-current-color", "--bulma-pagination-current-background-color", "--bulma-pagination-current-border-color", "--bulma-pagination-ellipsis-color", "--bulma-pagination-shadow-inset", "--bulma-pagination-selected-item-h", "--bulma-pagination-selected-item-s", "--bulma-pagination-selected-item-l", "--bulma-pagination-selected-item-background-l", "--bulma-pagination-selected-item-border-l", "--bulma-pagination-selected-item-color-l", "--bulma-panel-margin", "--bulma-panel-item-border", "--bulma-panel-radius", "--bulma-panel-shadow", "--bulma-panel-heading-line-height", "--bulma-panel-heading-padding", "--bulma-panel-heading-radius", "--bulma-panel-heading-size", "--bulma-panel-heading-weight", "--bulma-panel-tabs-font-size", "--bulma-panel-tab-border-bottom-color", "--bulma-panel-tab-border-bottom-style", "--bulma-panel-tab-border-bottom-width", "--bulma-panel-tab-active-color", "--bulma-panel-list-item-color", "--bulma-panel-list-item-hover-color", "--bulma-panel-block-color", "--bulma-panel-block-hover-background-color", "--bulma-panel-block-active-border-left-color", "--bulma-panel-block-active-color", "--bulma-panel-block-active-icon-color", "--bulma-panel-icon-color", "--bulma-tabs-border-bottom-color", "--bulma-tabs-border-bottom-style", "--bulma-tabs-border-bottom-width", "--bulma-tabs-link-color", "--bulma-tabs-link-hover-border-bottom-color", "--bulma-tabs-link-hover-color", "--bulma-tabs-link-active-border-bottom-color", "--bulma-tabs-link-active-color", "--bulma-tabs-link-padding", "--bulma-tabs-boxed-link-radius", "--bulma-tabs-boxed-link-hover-background-color", "--bulma-tabs-boxed-link-hover-border-bottom-color", "--bulma-tabs-boxed-link-active-background-color", "--bulma-tabs-boxed-link-active-border-color", "--bulma-tabs-boxed-link-active-border-bottom-color", "--bulma-tabs-toggle-link-border-color", "--bulma-tabs-toggle-link-border-style", "--bulma-tabs-toggle-link-border-width", "--bulma-tabs-toggle-link-hover-background-color", "--bulma-tabs-toggle-link-hover-border-color", "--bulma-tabs-toggle-link-radius", "--bulma-tabs-toggle-link-active-background-color", "--bulma-tabs-toggle-link-active-border-color", "--bulma-tabs-toggle-link-active-color", "--bulma-box-background-color", "--bulma-box-color", "--bulma-box-radius", "--bulma-box-shadow", "--bulma-box-padding", "--bulma-box-link-hover-shadow", "--bulma-box-link-active-shadow", "--bulma-content-heading-color", "--bulma-content-heading-weight", "--bulma-content-heading-line-height", "--bulma-content-block-margin-bottom", "--bulma-content-blockquote-background-color", "--bulma-content-blockquote-border-left", "--bulma-content-blockquote-padding", "--bulma-content-pre-padding", "--bulma-content-table-cell-border", "--bulma-content-table-cell-border-width", "--bulma-content-table-cell-padding", "--bulma-content-table-cell-heading-color", "--bulma-content-table-head-cell-border-width", "--bulma-content-table-head-cell-color", "--bulma-content-table-body-last-row-cell-border-bottom-width", "--bulma-content-table-foot-cell-border-width", "--bulma-content-table-foot-cell-color", "--bulma-delete-dimensions", "--bulma-delete-background-l", "--bulma-delete-background-alpha", "--bulma-delete-color", "--bulma-icon-dimensions", "--bulma-icon-dimensions-small", "--bulma-icon-dimensions-medium", "--bulma-icon-dimensions-large", "--bulma-icon-text-spacing", "--bulma-notification-h", "--bulma-notification-s", "--bulma-notification-background-l", "--bulma-notification-color-l", "--bulma-notification-code-background-color", "--bulma-notification-radius", "--bulma-notification-padding", "--bulma-progress-border-radius", "--bulma-progress-bar-background-color", "--bulma-progress-value-background-color", "--bulma-progress-indeterminate-duration", "--bulma-table-color", "--bulma-table-background-color", "--bulma-table-cell-border-color", "--bulma-table-cell-border-style", "--bulma-table-cell-border-width", "--bulma-table-cell-padding", "--bulma-table-cell-heading-color", "--bulma-table-cell-text-align", "--bulma-table-head-cell-border-width", "--bulma-table-head-cell-color", "--bulma-table-foot-cell-border-width", "--bulma-table-foot-cell-color", "--bulma-table-head-background-color", "--bulma-table-body-background-color", "--bulma-table-foot-background-color", "--bulma-table-row-hover-background-color", "--bulma-table-row-active-background-color", "--bulma-table-row-active-color", "--bulma-table-striped-row-even-background-color", "--bulma-table-striped-row-even-hover-background-color", "--bulma-tag-h", "--bulma-tag-s", "--bulma-tag-background-l", "--bulma-tag-background-l-delta", "--bulma-tag-hover-background-l-delta", "--bulma-tag-active-background-l-delta", "--bulma-tag-color-l", "--bulma-tag-radius", "--bulma-tag-delete-margin", "--bulma-title-color", "--bulma-title-family", "--bulma-title-size", "--bulma-title-weight", "--bulma-title-line-height", "--bulma-title-strong-color", "--bulma-title-strong-weight", "--bulma-title-sub-size", "--bulma-title-sup-size", "--bulma-subtitle-color", "--bulma-subtitle-family", "--bulma-subtitle-size", "--bulma-subtitle-weight", "--bulma-subtitle-line-height", "--bulma-subtitle-strong-color", "--bulma-subtitle-strong-weight", "--bulma-control-radius", "--bulma-control-radius-small", "--bulma-control-border-width", "--bulma-control-height", "--bulma-control-line-height", "--bulma-control-padding-vertical", "--bulma-control-padding-horizontal", "--bulma-control-size", "--bulma-control-focus-shadow-l", "--bulma-file-radius", "--bulma-file-name-border-color", "--bulma-file-name-border-style", "--bulma-file-name-border-width", "--bulma-file-name-max-width", "--bulma-file-h", "--bulma-file-s", "--bulma-file-background-l", "--bulma-file-background-l-delta", "--bulma-file-hover-background-l-delta", "--bulma-file-active-background-l-delta", "--bulma-file-border-l", "--bulma-file-border-l-delta", "--bulma-file-hover-border-l-delta", "--bulma-file-active-border-l-delta", "--bulma-file-cta-color-l", "--bulma-file-name-color-l", "--bulma-file-color-l-delta", "--bulma-file-hover-color-l-delta", "--bulma-file-active-color-l-delta", "--bulma-input-h", "--bulma-input-s", "--bulma-input-l", "--bulma-input-border-style", "--bulma-input-border-l", "--bulma-input-border-l-delta", "--bulma-input-hover-border-l-delta", "--bulma-input-active-border-l-delta", "--bulma-input-focus-h", "--bulma-input-focus-s", "--bulma-input-focus-l", "--bulma-input-focus-shadow-size", "--bulma-input-focus-shadow-alpha", "--bulma-input-color-l", "--bulma-input-background-l", "--bulma-input-background-l-delta", "--bulma-input-height", "--bulma-input-shadow", "--bulma-input-placeholder-color", "--bulma-input-disabled-color", "--bulma-input-disabled-background-color", "--bulma-input-disabled-border-color", "--bulma-input-disabled-placeholder-color", "--bulma-input-arrow", "--bulma-input-icon-color", "--bulma-input-icon-hover-color", "--bulma-input-icon-focus-color", "--bulma-input-radius", "--bulma-column-gap", "--bulma-grid-gap", "--bulma-grid-column-count", "--bulma-grid-column-min", "--bulma-grid-cell-column-span", "--bulma-grid-cell-column-start", "--bulma-footer-background-color", "--bulma-footer-color", "--bulma-footer-padding", "--bulma-hero-body-padding", "--bulma-hero-body-padding-tablet", "--bulma-hero-body-padding-small", "--bulma-hero-body-padding-medium", "--bulma-hero-body-padding-large", "--bulma-media-border-color", "--bulma-media-border-size", "--bulma-media-spacing", "--bulma-media-spacing-large", "--bulma-media-content-spacing", "--bulma-media-level-1-spacing", "--bulma-media-level-1-content-spacing", "--bulma-media-level-2-spacing", "--bulma-section-padding", "--bulma-section-padding-desktop", "--bulma-section-padding-medium", "--bulma-section-padding-large"];
|
|
4
4
|
/** A single Bulma CSS variable key from the `bulmaCssVars` tuple. */
|
|
5
5
|
type BulmaVarKey = (typeof bulmaCssVars)[number];
|
|
6
6
|
/** A partial record mapping Bulma CSS variable keys to string values. */
|
|
@@ -8,6 +8,15 @@ export declare const validColors: readonly ["primary", "link", "info", "success"
|
|
|
8
8
|
* @example '00', '05', 'invert', 'light', 'dark', 'soft', 'bold', 'on-scheme'
|
|
9
9
|
*/
|
|
10
10
|
export declare const validColorShades: readonly ["00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55", "60", "65", "70", "75", "80", "85", "90", "95", "invert", "light", "dark", "soft", "bold", "on-scheme"];
|
|
11
|
+
/**
|
|
12
|
+
* Valid Bulma scheme color names for scheme-aware backgrounds.
|
|
13
|
+
*
|
|
14
|
+
* Bulma ships no `has-background-scheme-*` helper classes, so these values
|
|
15
|
+
* never emit a class — components render them as a dark-mode-safe inline
|
|
16
|
+
* `background-color: var(--bulma-<value>)` style instead.
|
|
17
|
+
* @example 'scheme-main', 'scheme-main-bis', 'scheme-invert'
|
|
18
|
+
*/
|
|
19
|
+
export declare const validSchemeColors: readonly ["scheme-main", "scheme-main-bis", "scheme-main-ter", "scheme-invert", "scheme-invert-bis", "scheme-invert-ter"];
|
|
11
20
|
/**
|
|
12
21
|
* Valid Bulma size classes for margins and paddings.
|
|
13
22
|
* @example '0', '1', 'auto'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Merges helper-emitted inline styles (e.g., `bulmaHelperStyles` from
|
|
4
|
+
* `useBulmaClasses`) with a user-supplied `style` prop.
|
|
5
|
+
*
|
|
6
|
+
* The user's `style` wins on conflicting properties, and when both inputs are
|
|
7
|
+
* absent the result is `undefined` — so components that receive neither
|
|
8
|
+
* render with no `style` attribute at all, exactly as before.
|
|
9
|
+
*
|
|
10
|
+
* @function mergeBulmaStyles
|
|
11
|
+
* @param helperStyles - Inline styles emitted by the Bulma helper hooks.
|
|
12
|
+
* @param style - The component consumer's `style` prop.
|
|
13
|
+
* @returns The merged style object, or `undefined` when both are absent.
|
|
14
|
+
* @example
|
|
15
|
+
* <section style={mergeBulmaStyles(bulmaHelperStyles, style)} />
|
|
16
|
+
*/
|
|
17
|
+
export declare const mergeBulmaStyles: (helperStyles?: CSSProperties, style?: CSSProperties) => CSSProperties | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
1
2
|
import { BulmaDisplayProps, BulmaViewportProps } from './bulmaClassHelpers';
|
|
2
|
-
import { BulmaColorProps } from './useColorClasses';
|
|
3
|
+
import { BulmaColorProps, BulmaColorPropsWithScheme } from './useColorClasses';
|
|
3
4
|
import { BulmaSpacingProps } from './useSpacingClasses';
|
|
4
5
|
import { BulmaTypographyProps } from './useTypographyClasses';
|
|
5
6
|
import { BulmaVisibilityProps } from './useVisibilityClasses';
|
|
@@ -10,6 +11,14 @@ import { BulmaOtherProps } from './useOtherClasses';
|
|
|
10
11
|
*/
|
|
11
12
|
export interface BulmaClassesProps extends BulmaColorProps, BulmaSpacingProps, BulmaTypographyProps, BulmaVisibilityProps, BulmaFlexboxProps, BulmaOtherProps {
|
|
12
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* {@link BulmaClassesProps} with `backgroundColor` widened to also accept the
|
|
16
|
+
* scheme color names from `validSchemeColors` (see
|
|
17
|
+
* {@link BulmaColorPropsWithScheme}). This is the input type of
|
|
18
|
+
* `useBulmaClasses`; scheme values surface as the `bulmaHelperStyles` return
|
|
19
|
+
* member instead of a class.
|
|
20
|
+
*/
|
|
21
|
+
export type BulmaClassesPropsWithScheme = Omit<BulmaClassesProps, keyof BulmaColorProps> & BulmaColorPropsWithScheme;
|
|
13
22
|
/**
|
|
14
23
|
* A hook that generates Bulma helper classes from props and separates unhandled props.
|
|
15
24
|
*
|
|
@@ -17,23 +26,31 @@ export interface BulmaClassesProps extends BulmaColorProps, BulmaSpacingProps, B
|
|
|
17
26
|
* useTypographyClasses, useVisibilityClasses, useFlexboxClasses, and
|
|
18
27
|
* useOtherClasses), which can also be used individually.
|
|
19
28
|
*
|
|
29
|
+
* Scheme background values (`backgroundColor: 'scheme-main-bis'`, …) emit no
|
|
30
|
+
* class; they are returned as `bulmaHelperStyles` — a dark-mode-safe inline
|
|
31
|
+
* `background-color: var(--bulma-scheme-*)` style (`undefined` for all other
|
|
32
|
+
* inputs). Merge it with a user `style` prop via `mergeBulmaStyles`.
|
|
33
|
+
*
|
|
20
34
|
* @function useBulmaClasses
|
|
21
|
-
* @param props - Combination of
|
|
22
|
-
* @returns An object containing the Bulma helper classes
|
|
35
|
+
* @param props - Combination of BulmaClassesPropsWithScheme and additional props.
|
|
36
|
+
* @returns An object containing the Bulma helper classes, optional helper
|
|
37
|
+
* styles, and unhandled props.
|
|
23
38
|
* @example
|
|
24
|
-
* const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
39
|
+
* const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
25
40
|
* color: 'primary',
|
|
26
|
-
*
|
|
41
|
+
* backgroundColor: 'scheme-main-bis',
|
|
27
42
|
* className: 'custom-class'
|
|
28
43
|
* });
|
|
29
|
-
* // bulmaHelperClasses: 'has-text-primary
|
|
44
|
+
* // bulmaHelperClasses: 'has-text-primary'
|
|
45
|
+
* // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }
|
|
30
46
|
* // rest: { className: 'custom-class' }
|
|
31
47
|
*/
|
|
32
|
-
export declare const useBulmaClasses: <T extends
|
|
48
|
+
export declare const useBulmaClasses: <T extends object>(props: BulmaClassesPropsWithScheme & T) => {
|
|
33
49
|
bulmaHelperClasses: string;
|
|
50
|
+
bulmaHelperStyles?: CSSProperties;
|
|
34
51
|
rest: Omit<T, keyof BulmaClassesProps>;
|
|
35
52
|
};
|
|
36
|
-
export { validColors, validColorShades, validSizes, validTextSizes, validAlignments, validTextTransforms, validTextWeights, validFontFamilies, validDisplays, validVisibilities, validFlexDirections, validFlexWraps, validJustifyContents, validAlignContents, validAlignItems, validAlignSelfs, validFlexGrowShrink, validViewports, } from './bulmaClassHelpers';
|
|
53
|
+
export { validColors, validColorShades, validSchemeColors, validSizes, validTextSizes, validAlignments, validTextTransforms, validTextWeights, validFontFamilies, validDisplays, validVisibilities, validFlexDirections, validFlexWraps, validJustifyContents, validAlignContents, validAlignItems, validAlignSelfs, validFlexGrowShrink, validViewports, } from './bulmaClassHelpers';
|
|
37
54
|
export type { BulmaViewportProps, BulmaDisplayProps };
|
|
38
55
|
export * from './useColorClasses';
|
|
39
56
|
export * from './useSpacingClasses';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
import { validColors, validColorShades, validSchemeColors } from './bulmaClassHelpers';
|
|
2
3
|
/**
|
|
3
4
|
* Props for applying Bulma text and background color helper classes.
|
|
4
5
|
*/
|
|
@@ -12,9 +13,26 @@ export interface BulmaColorProps {
|
|
|
12
13
|
/** Background color shade suffix (e.g., '00', 'invert'). */
|
|
13
14
|
backgroundColorShade?: (typeof validColorShades)[number];
|
|
14
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* {@link BulmaColorProps} with `backgroundColor` widened to also accept the
|
|
18
|
+
* scheme color names from `validSchemeColors` (e.g., 'scheme-main-bis').
|
|
19
|
+
*
|
|
20
|
+
* Scheme values never emit a `has-background-*` class — pass them through
|
|
21
|
+
* {@link useColorStyles} (or `useBulmaClasses`' `bulmaHelperStyles` return) to
|
|
22
|
+
* get the dark-mode-safe inline `background-color: var(--bulma-scheme-*)`
|
|
23
|
+
* style instead.
|
|
24
|
+
*/
|
|
25
|
+
export type BulmaColorPropsWithScheme = Omit<BulmaColorProps, 'backgroundColor'> & {
|
|
26
|
+
/** Background color: a Bulma color class name or a scheme color name. */
|
|
27
|
+
backgroundColor?: BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];
|
|
28
|
+
};
|
|
15
29
|
/**
|
|
16
30
|
* A hook that generates Bulma text and background color helper classes.
|
|
17
31
|
*
|
|
32
|
+
* Scheme background values (`scheme-main`, `scheme-main-bis`, …) are dropped
|
|
33
|
+
* from class emission — Bulma ships no `has-background-scheme-*` classes; use
|
|
34
|
+
* {@link useColorStyles} to render them as an inline style.
|
|
35
|
+
*
|
|
18
36
|
* @function useColorClasses
|
|
19
37
|
* @param props - Color-related Bulma helper props.
|
|
20
38
|
* @returns A space-separated string of color helper classes.
|
|
@@ -25,4 +43,27 @@ export interface BulmaColorProps {
|
|
|
25
43
|
* });
|
|
26
44
|
* // colorClasses: 'has-text-primary has-background-info'
|
|
27
45
|
*/
|
|
28
|
-
export declare const useColorClasses: (props:
|
|
46
|
+
export declare const useColorClasses: (props: BulmaColorPropsWithScheme) => string;
|
|
47
|
+
/**
|
|
48
|
+
* A hook that generates inline styles for scheme-aware color props.
|
|
49
|
+
*
|
|
50
|
+
* When `backgroundColor` is one of the scheme color names in
|
|
51
|
+
* `validSchemeColors`, returns `{ backgroundColor: 'var(--bulma-<value>)' }` —
|
|
52
|
+
* an inline style that tracks Bulma's scheme CSS variables, so it adapts to
|
|
53
|
+
* light/dark mode with no bestax-shipped CSS. For every other input it
|
|
54
|
+
* returns `undefined` (never `{}`), so components that don't use scheme
|
|
55
|
+
* values produce identical DOM to before.
|
|
56
|
+
*
|
|
57
|
+
* `backgroundColorShade` is ignored for scheme values — Bulma defines no
|
|
58
|
+
* shaded scheme variables. Only the background is set: the `scheme-invert*`
|
|
59
|
+
* values do not change text color, so pair them with a contrasting
|
|
60
|
+
* foreground.
|
|
61
|
+
*
|
|
62
|
+
* @function useColorStyles
|
|
63
|
+
* @param props - Color-related Bulma helper props (scheme-aware).
|
|
64
|
+
* @returns An inline style object for scheme backgrounds, or `undefined`.
|
|
65
|
+
* @example
|
|
66
|
+
* const colorStyles = useColorStyles({ backgroundColor: 'scheme-main-bis' });
|
|
67
|
+
* // colorStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }
|
|
68
|
+
*/
|
|
69
|
+
export declare const useColorStyles: (props: BulmaColorPropsWithScheme) => CSSProperties | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export type { FormFieldProps } from './form/fieldProps';
|
|
|
100
100
|
export * from './grid/Cell';
|
|
101
101
|
export * from './grid/Grid';
|
|
102
102
|
export * from './helpers/classNames';
|
|
103
|
+
export * from './helpers/mergeBulmaStyles';
|
|
103
104
|
export * from './helpers/useBulmaClasses';
|
|
104
105
|
export * from './helpers/Theme';
|
|
105
106
|
export * from './helpers/Config';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
2
|
+
import { BulmaClassesProps, validColors, validSchemeColors } from '../helpers/useBulmaClasses';
|
|
3
3
|
/**
|
|
4
4
|
* Bulma container breakpoints.
|
|
5
5
|
*/
|
|
@@ -19,8 +19,13 @@ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, Om
|
|
|
19
19
|
* a colored surface.
|
|
20
20
|
*/
|
|
21
21
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Background color helper. `scheme-*` values render as a dark-mode-safe
|
|
24
|
+
* inline `background-color: var(--bulma-scheme-*)` instead of a class. The
|
|
25
|
+
* `scheme-invert*` values do not change text color — pair them with a
|
|
26
|
+
* contrasting foreground.
|
|
27
|
+
*/
|
|
28
|
+
bgColor?: (typeof validColors)[number] | (typeof validSchemeColors)[number] | 'inherit' | 'current';
|
|
24
29
|
/** Makes the container full-width with a 32px gap on each side. */
|
|
25
30
|
fluid?: boolean;
|
|
26
31
|
/** Makes the container full-width until the `widescreen` breakpoint. */
|