reactive-bulma 1.5.0 → 1.7.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 +24 -5
- package/dist/cjs/index.js +27 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/{Button/Button.d.ts → atoms/Button/index.d.ts} +1 -3
- package/dist/cjs/types/components/atoms/Column/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +2 -0
- package/dist/cjs/types/functions/persers.d.ts +1 -0
- package/dist/cjs/types/functions/tests/parsers.test.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/cjs/types/interfaces/atomProps.d.ts +21 -0
- package/dist/cjs/types/types/domTypes.d.ts +1 -0
- package/dist/cjs/types/types/styleTypes.d.ts +4 -0
- package/dist/esm/index.js +27 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/{Button/Button.d.ts → atoms/Button/index.d.ts} +1 -3
- package/dist/esm/types/components/atoms/Column/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +2 -0
- package/dist/esm/types/functions/persers.d.ts +1 -0
- package/dist/esm/types/functions/tests/parsers.test.d.ts +1 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/types/interfaces/atomProps.d.ts +21 -0
- package/dist/esm/types/types/domTypes.d.ts +1 -0
- package/dist/esm/types/types/styleTypes.d.ts +4 -0
- package/dist/index.d.ts +29 -4
- package/package.json +4 -3
- package/dist/cjs/types/components/Button/index.d.ts +0 -1
- package/dist/cjs/types/components/index.d.ts +0 -2
- package/dist/esm/types/components/Button/index.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +0 -2
@@ -0,0 +1 @@
|
|
1
|
+
export declare const parseClasses: (_classes: Array<string | null>) => string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import '../node_modules/bulma/css/bulma.min.css';
|
2
|
+
export * from './components/atoms';
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { basicColorType, columnOffsetType, columnSizeType, sizeType } from '../types/styleTypes';
|
3
|
+
export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
4
|
+
text?: string;
|
5
|
+
style?: React.CSSProperties;
|
6
|
+
color?: basicColorType;
|
7
|
+
isLightColor?: boolean;
|
8
|
+
isInvertedColor?: boolean;
|
9
|
+
isOutlined?: boolean;
|
10
|
+
isRounded?: boolean;
|
11
|
+
isLoading?: boolean;
|
12
|
+
isDisabled?: boolean;
|
13
|
+
isStatic?: boolean;
|
14
|
+
size?: sizeType;
|
15
|
+
onClick?: () => void;
|
16
|
+
}
|
17
|
+
export interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
|
18
|
+
size?: columnSizeType;
|
19
|
+
offset?: columnOffsetType;
|
20
|
+
isNarrow?: boolean;
|
21
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type buttonType = 'submit' | 'reset' | 'button';
|
@@ -0,0 +1,4 @@
|
|
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 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
|
+
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
|
+
export type sizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,33 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import React$1 from 'react';
|
2
3
|
|
3
|
-
|
4
|
+
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';
|
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';
|
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';
|
7
|
+
type sizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
8
|
+
|
9
|
+
interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
4
10
|
text?: string;
|
11
|
+
style?: React.CSSProperties;
|
12
|
+
color?: basicColorType;
|
13
|
+
isLightColor?: boolean;
|
14
|
+
isInvertedColor?: boolean;
|
15
|
+
isOutlined?: boolean;
|
16
|
+
isRounded?: boolean;
|
17
|
+
isLoading?: boolean;
|
18
|
+
isDisabled?: boolean;
|
19
|
+
isStatic?: boolean;
|
20
|
+
size?: sizeType;
|
21
|
+
onClick?: () => void;
|
22
|
+
}
|
23
|
+
interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
|
24
|
+
size?: columnSizeType;
|
25
|
+
offset?: columnOffsetType;
|
26
|
+
isNarrow?: boolean;
|
5
27
|
}
|
6
|
-
declare const Button: React.FC<ButtonProps>;
|
7
28
|
|
8
|
-
|
29
|
+
declare const Button: React$1.FC<ButtonProps>;
|
30
|
+
|
31
|
+
declare const Column: React$1.FC<ColumnProps>;
|
32
|
+
|
33
|
+
export { Button, Column };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "reactive-bulma",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.7.0",
|
4
4
|
"description": "A typescript-react-based component library based on bulma",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -66,6 +66,7 @@
|
|
66
66
|
"@storybook/manager-webpack5": "^6.5.15",
|
67
67
|
"@storybook/react": "^6.5.15",
|
68
68
|
"@storybook/testing-library": "^0.0.13",
|
69
|
+
"@testing-library/jest-dom": "^5.16.5",
|
69
70
|
"@testing-library/react": "^13.4.0",
|
70
71
|
"@types/jest": "^29.4.0",
|
71
72
|
"@types/react": "^18.0.26",
|
@@ -77,6 +78,7 @@
|
|
77
78
|
"eslint": "^8.33.0",
|
78
79
|
"eslint-config-prettier": "^8.6.0",
|
79
80
|
"eslint-plugin-react": "^7.32.2",
|
81
|
+
"husky": "^8.0.0",
|
80
82
|
"jest": "^29.4.1",
|
81
83
|
"jest-environment-jsdom": "^29.4.1",
|
82
84
|
"lint-staged": "^13.1.0",
|
@@ -88,8 +90,7 @@
|
|
88
90
|
"rollup-plugin-postcss": "^4.0.2",
|
89
91
|
"semantic-release": "^20.1.0",
|
90
92
|
"tslib": "^2.4.1",
|
91
|
-
"typescript": "^4.9.4"
|
92
|
-
"husky": "^8.0.0"
|
93
|
+
"typescript": "^4.9.4"
|
93
94
|
},
|
94
95
|
"lint-staged": {
|
95
96
|
"src/**/*.(ts|tsx)": [
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './Button';
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './Button';
|