reactive-bulma 1.11.1 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Box/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/Title/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +2 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +13 -1
- package/dist/cjs/types/types/styleTypes.d.ts +1 -0
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Box/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/Title/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +2 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +13 -1
- package/dist/esm/types/types/styleTypes.d.ts +1 -0
- package/dist/index.d.ts +18 -1
- package/package.json +28 -28
@@ -3,3 +3,5 @@ export { default as Column } from './Column';
|
|
3
3
|
export { default as ProgressBar } from './ProgressBar';
|
4
4
|
export { default as Block } from './Block';
|
5
5
|
export { default as Tag } from './Tag';
|
6
|
+
export { default as Box } from './Box';
|
7
|
+
export { default as Title } from './Title';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { basicColorType, columnOffsetType, columnSizeType, fixedImageSizeType, sizeType } from '../types/styleTypes';
|
2
|
+
import { basicColorType, columnOffsetType, columnSizeType, fixedImageSizeType, sizeType, titleSize } from '../types/styleTypes';
|
3
3
|
interface BasicProps {
|
4
4
|
testId?: string;
|
5
5
|
style?: React.CSSProperties;
|
@@ -51,4 +51,16 @@ export interface ImageProps extends BasicProps, React.ComponentPropsWithoutRef<'
|
|
51
51
|
fixedSize?: fixedImageSizeType;
|
52
52
|
isRounded?: boolean;
|
53
53
|
}
|
54
|
+
export interface BoxProps extends BasicProps, React.ComponentPropsWithoutRef<'section'> {
|
55
|
+
}
|
56
|
+
export interface TitleSectionProps extends BasicProps, React.ComponentPropsWithoutRef<'p'> {
|
57
|
+
text: string;
|
58
|
+
size?: titleSize;
|
59
|
+
prop: 'title' | 'subtitle';
|
60
|
+
isSpaced?: boolean;
|
61
|
+
}
|
62
|
+
export interface TitleProps {
|
63
|
+
main?: TitleSectionProps;
|
64
|
+
secondary?: TitleSectionProps;
|
65
|
+
}
|
54
66
|
export {};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export type columnSizeType = 'is-three-quarters' | 'is-two-thirds' | 'is-half' | 'is-one-third' | 'is-one-quarter' | 'is-full' | 'is-four-fifths' | 'is-three-fifths' | 'is-two-fifths' | 'is-one-fifth' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8' | 'is-9' | 'is-10' | 'is-11' | 'is-12';
|
2
|
+
export type titleSize = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6';
|
2
3
|
export type columnOffsetType = 'is-offset-1' | 'is-offset-2' | 'is-offset-3' | 'is-offset-4' | 'is-offset-5' | 'is-offset-6' | 'is-offset-7' | 'is-offset-8' | 'is-offset-9' | 'is-offset-10' | 'is-offset-11' | 'is-offset-12';
|
3
4
|
export type basicColorType = 'is-white' | 'is-light' | 'is-dark' | 'is-black' | 'is-text' | 'is-ghost' | 'is-primary' | 'is-link' | 'is-info' | 'is-success' | 'is-warning' | 'is-danger';
|
4
5
|
export type fixedImageSizeType = 'is-16x16' | 'is-24x24' | 'is-32x32' | 'is-48x48' | 'is-64x64' | 'is-96x96' | 'is-128x128' | 'is-square' | 'is-1by1' | 'is-5by4' | 'is-4by3' | 'is-3by2' | 'is-5by3' | 'is-16by9' | 'is-2by1' | 'is-3by1' | 'is-4by5' | 'is-3by4' | 'is-2by3' | 'is-3by5' | 'is-9by16' | 'is-1by2' | 'is-1by3';
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
|
3
3
|
type columnSizeType = 'is-three-quarters' | 'is-two-thirds' | 'is-half' | 'is-one-third' | 'is-one-quarter' | 'is-full' | 'is-four-fifths' | 'is-three-fifths' | 'is-two-fifths' | 'is-one-fifth' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8' | 'is-9' | 'is-10' | 'is-11' | 'is-12';
|
4
|
+
type titleSize = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6';
|
4
5
|
type columnOffsetType = 'is-offset-1' | 'is-offset-2' | 'is-offset-3' | 'is-offset-4' | 'is-offset-5' | 'is-offset-6' | 'is-offset-7' | 'is-offset-8' | 'is-offset-9' | 'is-offset-10' | 'is-offset-11' | 'is-offset-12';
|
5
6
|
type basicColorType = 'is-white' | 'is-light' | 'is-dark' | 'is-black' | 'is-text' | 'is-ghost' | 'is-primary' | 'is-link' | 'is-info' | 'is-success' | 'is-warning' | 'is-danger';
|
6
7
|
type sizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
@@ -51,6 +52,18 @@ interface TagProps extends BasicProps, React.ComponentPropsWithoutRef<'span'> {
|
|
51
52
|
addonColor?: basicColorType;
|
52
53
|
onDeleteClick?: () => void;
|
53
54
|
}
|
55
|
+
interface BoxProps extends BasicProps, React.ComponentPropsWithoutRef<'section'> {
|
56
|
+
}
|
57
|
+
interface TitleSectionProps extends BasicProps, React.ComponentPropsWithoutRef<'p'> {
|
58
|
+
text: string;
|
59
|
+
size?: titleSize;
|
60
|
+
prop: 'title' | 'subtitle';
|
61
|
+
isSpaced?: boolean;
|
62
|
+
}
|
63
|
+
interface TitleProps {
|
64
|
+
main?: TitleSectionProps;
|
65
|
+
secondary?: TitleSectionProps;
|
66
|
+
}
|
54
67
|
|
55
68
|
declare const Button: React.FC<ButtonProps>;
|
56
69
|
|
@@ -62,4 +75,8 @@ declare const Block: React.FC<BlockProps>;
|
|
62
75
|
|
63
76
|
declare const Tag: React.FC<TagProps>;
|
64
77
|
|
65
|
-
|
78
|
+
declare const Box: React.FC<BoxProps>;
|
79
|
+
|
80
|
+
declare const Title: React.FC<TitleProps>;
|
81
|
+
|
82
|
+
export { Block, Box, Button, Column, ProgressBar, Tag, Title };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "reactive-bulma",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.13.0",
|
4
4
|
"description": "A typescript-react-based component library based on bulma",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -48,52 +48,52 @@
|
|
48
48
|
"@babel/preset-env": "^7.21.4",
|
49
49
|
"@babel/preset-react": "^7.18.6",
|
50
50
|
"@babel/preset-typescript": "^7.21.4",
|
51
|
-
"@rollup/plugin-commonjs": "^24.
|
51
|
+
"@rollup/plugin-commonjs": "^24.1.0",
|
52
52
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
53
|
-
"@rollup/plugin-typescript": "^
|
53
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
54
54
|
"@semantic-release/changelog": "^6.0.2",
|
55
55
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
56
56
|
"@semantic-release/exec": "^6.0.3",
|
57
57
|
"@semantic-release/git": "^10.0.1",
|
58
58
|
"@semantic-release/github": "^8.0.7",
|
59
|
-
"@semantic-release/npm": "^
|
60
|
-
"@semantic-release/release-notes-generator": "^
|
61
|
-
"@storybook/addon-actions": "^7.0.
|
62
|
-
"@storybook/addon-essentials": "^7.0.
|
63
|
-
"@storybook/addon-interactions": "^7.0.
|
64
|
-
"@storybook/addon-links": "^7.0.
|
65
|
-
"@storybook/addon-mdx-gfm": "^7.0.
|
66
|
-
"@storybook/cli": "^7.0.
|
67
|
-
"@storybook/react": "^7.0.
|
68
|
-
"@storybook/react-webpack5": "^7.0.
|
59
|
+
"@semantic-release/npm": "^10.0.3",
|
60
|
+
"@semantic-release/release-notes-generator": "^11.0.1",
|
61
|
+
"@storybook/addon-actions": "^7.0.8",
|
62
|
+
"@storybook/addon-essentials": "^7.0.8",
|
63
|
+
"@storybook/addon-interactions": "^7.0.8",
|
64
|
+
"@storybook/addon-links": "^7.0.8",
|
65
|
+
"@storybook/addon-mdx-gfm": "^7.0.8",
|
66
|
+
"@storybook/cli": "^7.0.8",
|
67
|
+
"@storybook/react": "^7.0.8",
|
68
|
+
"@storybook/react-webpack5": "^7.0.8",
|
69
69
|
"@storybook/testing-library": "^0.1.0",
|
70
70
|
"@testing-library/jest-dom": "^5.16.5",
|
71
|
-
"@testing-library/react": "^
|
72
|
-
"@types/jest": "^29.
|
73
|
-
"@types/react": "^18.
|
74
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
75
|
-
"@typescript-eslint/parser": "^5.
|
71
|
+
"@testing-library/react": "^14.0.0",
|
72
|
+
"@types/jest": "^29.5.1",
|
73
|
+
"@types/react": "^18.2.2",
|
74
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
75
|
+
"@typescript-eslint/parser": "^5.59.2",
|
76
76
|
"babel-jest": "^29.5.0",
|
77
77
|
"babel-loader": "^9.1.2",
|
78
78
|
"bulma": "^0.9.4",
|
79
|
-
"eslint": "^8.
|
79
|
+
"eslint": "^8.39.0",
|
80
80
|
"eslint-config-prettier": "^8.8.0",
|
81
81
|
"eslint-plugin-react": "^7.32.2",
|
82
|
-
"husky": "^8.0.
|
82
|
+
"husky": "^8.0.3",
|
83
83
|
"jest": "^29.5.0",
|
84
84
|
"jest-environment-jsdom": "^29.5.0",
|
85
|
-
"lint-staged": "^13.
|
85
|
+
"lint-staged": "^13.2.2",
|
86
86
|
"postcss": "^8.4.23",
|
87
|
-
"prettier": "^2.8.
|
87
|
+
"prettier": "^2.8.8",
|
88
88
|
"react": "^18.2.0",
|
89
89
|
"react-dom": "^18.2.0",
|
90
|
-
"rollup": "^3.
|
91
|
-
"rollup-plugin-dts": "^5.
|
90
|
+
"rollup": "^3.21.4",
|
91
|
+
"rollup-plugin-dts": "^5.3.0",
|
92
92
|
"rollup-plugin-postcss": "^4.0.2",
|
93
|
-
"semantic-release": "^
|
94
|
-
"storybook": "^7.0.
|
95
|
-
"tslib": "^2.
|
96
|
-
"typescript": "^
|
93
|
+
"semantic-release": "^21.0.2",
|
94
|
+
"storybook": "^7.0.8",
|
95
|
+
"tslib": "^2.5.0",
|
96
|
+
"typescript": "^5.0.4"
|
97
97
|
},
|
98
98
|
"lint-staged": {
|
99
99
|
"src/**/*.(ts|tsx)": [
|