@allxsmith/bestax-bulma 5.15.4 → 5.16.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/constants.cjs +357 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.d.cts +197 -0
- package/dist/constants.esm.js +328 -0
- package/dist/constants.esm.js.map +1 -0
- package/dist/index.cjs.js +72 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +66 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/types/elements/Notification.d.ts +8 -12
- package/dist/types/elements/Progress.d.ts +4 -5
- package/dist/types/helpers/bulmaClassHelpers.d.ts +49 -1
- package/dist/types/helpers/colorDeprecations.d.ts +1 -1
- package/dist/types/helpers/useBulmaClasses.d.ts +1 -1
- package/dist/types/helpers/useOtherClasses.d.ts +8 -7
- package/dist/types/layout/Hero.d.ts +4 -6
- package/package.json +18 -1
|
@@ -10,12 +10,10 @@ export interface NotificationProps extends React.HTMLAttributes<HTMLDivElement>,
|
|
|
10
10
|
* Bulma color modifier for the notification (renders `is-<color>`).
|
|
11
11
|
*
|
|
12
12
|
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
13
|
-
* `white`, `light`, and `dark` have shipped CSS for `.notification`.
|
|
14
|
-
* other
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* warning in development and will be removed from this union in the next
|
|
18
|
-
* major version.
|
|
13
|
+
* `white`, `light`, and `dark` have shipped CSS for `.notification`. Every
|
|
14
|
+
* other value the union accepts emits a class no CSS rule matches, so the
|
|
15
|
+
* notification renders unstyled; those log a console warning in development
|
|
16
|
+
* and will be removed from this union in the next major version.
|
|
19
17
|
*/
|
|
20
18
|
color?: (typeof validColors)[number];
|
|
21
19
|
/** Text color helper. */
|
|
@@ -50,12 +48,10 @@ export interface NotificationOptions {
|
|
|
50
48
|
* Bulma color modifier for the notification (renders `is-<color>`).
|
|
51
49
|
*
|
|
52
50
|
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
53
|
-
* `white`, `light`, and `dark` have shipped CSS for `.notification`.
|
|
54
|
-
* other
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* warning in development and will be removed from this union in the next
|
|
58
|
-
* major version.
|
|
51
|
+
* `white`, `light`, and `dark` have shipped CSS for `.notification`. Every
|
|
52
|
+
* other value the union accepts emits a class no CSS rule matches, so the
|
|
53
|
+
* notification renders unstyled; those log a console warning in development
|
|
54
|
+
* and will be removed from this union in the next major version.
|
|
59
55
|
*/
|
|
60
56
|
color?: (typeof validColors)[number];
|
|
61
57
|
/** Use the light color variant. */
|
|
@@ -10,11 +10,10 @@ export interface ProgressProps extends React.ProgressHTMLAttributes<HTMLProgress
|
|
|
10
10
|
* Bulma color modifier for the progress bar (renders `is-<color>`).
|
|
11
11
|
*
|
|
12
12
|
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
13
|
-
* `white`, `light`, and `dark` have shipped CSS for `.progress`.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* will be removed from this union in the next major version.
|
|
13
|
+
* `white`, `light`, and `dark` have shipped CSS for `.progress`. Every
|
|
14
|
+
* other value the union accepts emits a class no CSS rule matches, so the
|
|
15
|
+
* bar renders unstyled; those log a console warning in development and will
|
|
16
|
+
* be removed from this union in the next major version.
|
|
18
17
|
*/
|
|
19
18
|
color?: (typeof validColors)[number];
|
|
20
19
|
/** Size modifier for the progress bar. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Valid Bulma color classes.
|
|
3
3
|
* @example 'primary', 'link', 'info'
|
|
4
4
|
*/
|
|
5
|
-
export declare const validColors: readonly ["primary", "link", "info", "success", "warning", "danger", "black", "black-bis", "black-ter", "grey-darker", "grey-dark", "grey", "grey-light", "grey-lighter", "white", "light", "dark"];
|
|
5
|
+
export declare const validColors: readonly ["primary", "link", "info", "success", "warning", "danger", "black", "black-bis", "black-ter", "grey-darker", "grey-dark", "grey", "grey-light", "grey-lighter", "white", "white-bis", "white-ter", "light", "dark"];
|
|
6
6
|
/**
|
|
7
7
|
* Valid Bulma color shade suffixes.
|
|
8
8
|
* @example '00', '05', 'invert', 'light', 'dark', 'soft', 'bold', 'on-scheme'
|
|
@@ -98,6 +98,54 @@ export declare const validFlexGrowShrink: readonly ["0", "1", "2", "3", "4", "5"
|
|
|
98
98
|
* @example 'mobile', 'tablet', 'desktop'
|
|
99
99
|
*/
|
|
100
100
|
export declare const validViewports: readonly ["mobile", "tablet", "tablet-only", "touch", "desktop", "desktop-only", "widescreen", "widescreen-only", "fullhd"];
|
|
101
|
+
/**
|
|
102
|
+
* Valid Bulma float classes.
|
|
103
|
+
* @example 'left', 'right'
|
|
104
|
+
*/
|
|
105
|
+
export declare const validFloats: readonly ["left", "right"];
|
|
106
|
+
/**
|
|
107
|
+
* Valid Bulma overflow classes.
|
|
108
|
+
* @example 'clipped'
|
|
109
|
+
*/
|
|
110
|
+
export declare const validOverflows: readonly ["clipped"];
|
|
111
|
+
/**
|
|
112
|
+
* Valid Bulma interaction classes.
|
|
113
|
+
* @example 'unselectable', 'clickable'
|
|
114
|
+
*/
|
|
115
|
+
export declare const validInteractions: readonly ["unselectable", "clickable"];
|
|
116
|
+
/**
|
|
117
|
+
* Valid Bulma cursor helper values.
|
|
118
|
+
*
|
|
119
|
+
* These share no class stem: `pointer` renders `is-clickable` and `help`
|
|
120
|
+
* renders `is-cursor-help`, so the class each one emits lives in
|
|
121
|
+
* `cursorClasses` rather than being built from the value.
|
|
122
|
+
* @example 'pointer', 'help'
|
|
123
|
+
*/
|
|
124
|
+
export declare const validCursors: readonly ["pointer", "help"];
|
|
125
|
+
/**
|
|
126
|
+
* Cursor helper value to the class it renders.
|
|
127
|
+
*
|
|
128
|
+
* A `Record` over `validCursors` on purpose: TypeScript then rejects a value
|
|
129
|
+
* added to the tuple with no class for it, and a class for a value the tuple
|
|
130
|
+
* does not carry, so the accepted set and the rendered classes cannot drift
|
|
131
|
+
* apart.
|
|
132
|
+
*/
|
|
133
|
+
export declare const cursorClasses: Record<(typeof validCursors)[number], string>;
|
|
134
|
+
/**
|
|
135
|
+
* Valid Bulma border-radius helper classes.
|
|
136
|
+
* @example 'radiusless'
|
|
137
|
+
*/
|
|
138
|
+
export declare const validRadii: readonly ["radiusless"];
|
|
139
|
+
/**
|
|
140
|
+
* Valid Bulma shadow helper classes.
|
|
141
|
+
* @example 'shadowless'
|
|
142
|
+
*/
|
|
143
|
+
export declare const validShadows: readonly ["shadowless"];
|
|
144
|
+
/**
|
|
145
|
+
* Valid Bulma responsive helper classes.
|
|
146
|
+
* @example 'mobile', 'narrow'
|
|
147
|
+
*/
|
|
148
|
+
export declare const validResponsives: readonly ["mobile", "narrow"];
|
|
101
149
|
/**
|
|
102
150
|
* Props for applying a Bulma viewport modifier to viewport-aware helper classes.
|
|
103
151
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `has-background-*` helpers DO cover these values — only the
|
|
5
5
|
* component-modifier form is dead.
|
|
6
6
|
*/
|
|
7
|
-
export declare const UNSTYLED_MODIFIER_COLORS: readonly ["black-bis", "black-ter", "grey-darker", "grey-dark", "grey", "grey-light", "grey-lighter"];
|
|
7
|
+
export declare const UNSTYLED_MODIFIER_COLORS: readonly ["black-bis", "black-ter", "white-bis", "white-ter", "grey-darker", "grey-dark", "grey", "grey-light", "grey-lighter"];
|
|
8
8
|
/** Test-only: re-arm the warn-once registry. */
|
|
9
9
|
export declare const resetColorDeprecationWarnings: () => void;
|
|
10
10
|
/**
|
|
@@ -50,7 +50,7 @@ export declare const useBulmaClasses: <T extends object>(props: BulmaClassesProp
|
|
|
50
50
|
bulmaHelperStyles?: CSSProperties;
|
|
51
51
|
rest: Omit<T, keyof BulmaClassesProps>;
|
|
52
52
|
};
|
|
53
|
-
export { validColors, validColorShades, validSchemeColors, 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, validFloats, validOverflows, validInteractions, validCursors, validRadii, validShadows, validResponsives, } from './bulmaClassHelpers';
|
|
54
54
|
export type { BulmaViewportProps, BulmaDisplayProps };
|
|
55
55
|
export * from './useColorClasses';
|
|
56
56
|
export * from './useSpacingClasses';
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import { validCursors, validFloats, validInteractions, validOverflows, validRadii, validResponsives, validShadows } from './bulmaClassHelpers';
|
|
1
2
|
/**
|
|
2
3
|
* Props for applying miscellaneous Bulma helper classes.
|
|
3
4
|
*/
|
|
4
5
|
export interface BulmaOtherProps {
|
|
5
6
|
/** Float direction (e.g., 'left', 'right'). */
|
|
6
|
-
float?:
|
|
7
|
+
float?: (typeof validFloats)[number];
|
|
7
8
|
/** Overflow behavior (e.g., 'clipped'). */
|
|
8
|
-
overflow?:
|
|
9
|
+
overflow?: (typeof validOverflows)[number];
|
|
9
10
|
/** Applies overlay styling if true. */
|
|
10
11
|
overlay?: boolean;
|
|
11
12
|
/** Interaction behavior (e.g., 'unselectable', 'clickable'). */
|
|
12
|
-
interaction?:
|
|
13
|
+
interaction?: (typeof validInteractions)[number];
|
|
13
14
|
/** Cursor style (e.g., 'pointer', 'help'). */
|
|
14
|
-
cursor?:
|
|
15
|
+
cursor?: (typeof validCursors)[number];
|
|
15
16
|
/** Border radius style (e.g., 'radiusless'). */
|
|
16
|
-
radius?:
|
|
17
|
+
radius?: (typeof validRadii)[number];
|
|
17
18
|
/** Shadow style (e.g., 'shadowless'). */
|
|
18
|
-
shadow?:
|
|
19
|
+
shadow?: (typeof validShadows)[number];
|
|
19
20
|
/** Responsive behavior (e.g., 'mobile', 'narrow'). */
|
|
20
|
-
responsive?:
|
|
21
|
+
responsive?: (typeof validResponsives)[number];
|
|
21
22
|
/** Add Bulma skeleton class if true. */
|
|
22
23
|
skeleton?: boolean;
|
|
23
24
|
/** Applies clearfix to fix floating children if true. */
|
|
@@ -14,12 +14,10 @@ export interface HeroProps extends React.HTMLAttributes<HTMLElement>, Omit<Bulma
|
|
|
14
14
|
* Bulma color modifier for the hero section (renders `is-<color>`).
|
|
15
15
|
*
|
|
16
16
|
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
17
|
-
* `white`, `light`, and `dark` have shipped CSS for `.hero`.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* warning in development and will be removed from this union in the next
|
|
22
|
-
* major version.
|
|
17
|
+
* `white`, `light`, and `dark` have shipped CSS for `.hero`. Every other
|
|
18
|
+
* value the union accepts emits a class no CSS rule matches, so the hero
|
|
19
|
+
* renders unstyled; those log a console warning in development and will be
|
|
20
|
+
* removed from this union in the next major version.
|
|
23
21
|
*/
|
|
24
22
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
25
23
|
/** Hero size. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allxsmith/bestax-bulma",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.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",
|
|
@@ -99,12 +99,29 @@
|
|
|
99
99
|
"agents",
|
|
100
100
|
"agent-skills"
|
|
101
101
|
],
|
|
102
|
+
"typesVersions": {
|
|
103
|
+
"*": {
|
|
104
|
+
"constants": [
|
|
105
|
+
"./dist/types/helpers/bulmaClassHelpers.d.ts"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
102
109
|
"exports": {
|
|
103
110
|
".": {
|
|
104
111
|
"types": "./dist/types/index.d.ts",
|
|
105
112
|
"import": "./dist/index.esm.js",
|
|
106
113
|
"require": "./dist/index.cjs.js"
|
|
107
114
|
},
|
|
115
|
+
"./constants": {
|
|
116
|
+
"import": {
|
|
117
|
+
"types": "./dist/types/helpers/bulmaClassHelpers.d.ts",
|
|
118
|
+
"default": "./dist/constants.esm.js"
|
|
119
|
+
},
|
|
120
|
+
"require": {
|
|
121
|
+
"types": "./dist/constants.d.cts",
|
|
122
|
+
"default": "./dist/constants.cjs"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
108
125
|
"./dist/extras.css": {
|
|
109
126
|
"default": "./dist/extras.css"
|
|
110
127
|
},
|