@allxsmith/bestax-bulma 2.1.2 → 2.2.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/README.md +10 -10
- package/dist/index.cjs.js +169 -562
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +169 -563
- package/dist/index.esm.js.map +1 -1
- package/dist/types/elements/Icon.d.ts +1 -0
- package/dist/types/elements/SubTitle.d.ts +3 -1
- package/dist/types/elements/Title.d.ts +3 -1
- package/dist/types/helpers/Config.d.ts +5 -0
- package/package.json +3 -3
|
@@ -26,6 +26,7 @@ export interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, BulmaC
|
|
|
26
26
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
27
27
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
28
28
|
name: string;
|
|
29
|
+
icon?: string;
|
|
29
30
|
library?: IconLibrary;
|
|
30
31
|
variant?: string;
|
|
31
32
|
features?: string | string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BulmaClassesProps } from '../helpers/useBulmaClasses';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
3
|
declare const validSubTitleSizes: readonly ["1", "2", "3", "4", "5", "6"];
|
|
4
4
|
export type SubTitleSize = (typeof validSubTitleSizes)[number];
|
|
5
5
|
declare const validSubTitleElements: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
@@ -10,6 +10,8 @@ export interface SubTitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElem
|
|
|
10
10
|
as?: SubTitleElement;
|
|
11
11
|
hasSkeleton?: boolean;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
14
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
15
|
}
|
|
14
16
|
export declare const SubTitle: React.FC<SubTitleProps>;
|
|
15
17
|
export default SubTitle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BulmaClassesProps } from '../helpers/useBulmaClasses';
|
|
2
|
+
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
3
|
declare const validTitleSizes: readonly ["1", "2", "3", "4", "5", "6"];
|
|
4
4
|
export type TitleSize = (typeof validTitleSizes)[number];
|
|
5
5
|
declare const validTitleElements: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
@@ -11,6 +11,8 @@ export interface TitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement
|
|
|
11
11
|
as?: TitleElement;
|
|
12
12
|
hasSkeleton?: boolean;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
+
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
15
|
+
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
14
16
|
}
|
|
15
17
|
export declare const Title: React.FC<TitleProps>;
|
|
16
18
|
export default Title;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
type IconLibrary = 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';
|
|
2
3
|
export interface ConfigContextProps {
|
|
3
4
|
classPrefix?: string;
|
|
5
|
+
iconLibrary?: IconLibrary;
|
|
4
6
|
}
|
|
5
7
|
export declare const useConfig: () => ConfigContextProps;
|
|
6
8
|
export interface ConfigProviderProps {
|
|
7
9
|
children: ReactNode;
|
|
8
10
|
classPrefix?: string;
|
|
11
|
+
iconLibrary?: IconLibrary;
|
|
9
12
|
}
|
|
10
13
|
export declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
11
14
|
export declare const useClassPrefix: () => string;
|
|
12
15
|
export declare const usePrefixedClass: () => (className: string) => string;
|
|
16
|
+
export declare const useIconLibrary: () => IconLibrary | undefined;
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allxsmith/bestax-bulma",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
],
|
|
86
86
|
"exports": {
|
|
87
87
|
".": {
|
|
88
|
+
"types": "./dist/types/index.d.ts",
|
|
88
89
|
"import": "./dist/index.esm.js",
|
|
89
|
-
"require": "./dist/index.cjs.js"
|
|
90
|
-
"types": "./dist/types/index.d.ts"
|
|
90
|
+
"require": "./dist/index.cjs.js"
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"funding": {
|