reactive-bulma 1.17.0 → 1.19.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/LICENSE +21 -21
- package/README.md +196 -192
- package/dist/cjs/index.js +54 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Button/Button.d.ts +4 -0
- package/dist/cjs/types/components/atoms/File/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/Select/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +2 -0
- package/dist/cjs/types/enums/styleEnums.d.ts +38 -0
- package/dist/cjs/types/functions/persers.d.ts +3 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +27 -0
- package/dist/esm/index.js +53 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Button/Button.d.ts +4 -0
- package/dist/esm/types/components/atoms/File/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/Select/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +2 -0
- package/dist/esm/types/enums/styleEnums.d.ts +38 -0
- package/dist/esm/types/functions/persers.d.ts +3 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +27 -0
- package/dist/index.d.ts +32 -1
- package/package.json +106 -106
@@ -9,3 +9,5 @@ export { default as Icon } from './Icon';
|
|
9
9
|
export { default as Input } from './Input';
|
10
10
|
export { default as TextArea } from './TextArea';
|
11
11
|
export { default as Delete } from './Delete';
|
12
|
+
export { default as Select } from './Select';
|
13
|
+
export { default as File } from './File';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export declare enum columnSiteEnum {
|
2
|
+
'is-three-quarters' = 0,
|
3
|
+
'is-two-thirds' = 1,
|
4
|
+
'is-half' = 2,
|
5
|
+
'is-one-third' = 3,
|
6
|
+
'is-one-quarter' = 4,
|
7
|
+
'is-full' = 5,
|
8
|
+
'is-four-fifths' = 6,
|
9
|
+
'is-three-fifths' = 7,
|
10
|
+
'is-two-fifths' = 8,
|
11
|
+
'is-one-fifth' = 9,
|
12
|
+
'is-1' = 10,
|
13
|
+
'is-2' = 11,
|
14
|
+
'is-3' = 12,
|
15
|
+
'is-4' = 13,
|
16
|
+
'is-5' = 14,
|
17
|
+
'is-6' = 15,
|
18
|
+
'is-7' = 16,
|
19
|
+
'is-8' = 17,
|
20
|
+
'is-9' = 18,
|
21
|
+
'is-10' = 19,
|
22
|
+
'is-11' = 20,
|
23
|
+
'is-12' = 21
|
24
|
+
}
|
25
|
+
export declare enum columnOffsetEnum {
|
26
|
+
'is-offset-1' = 0,
|
27
|
+
'is-offset-2' = 1,
|
28
|
+
'is-offset-3' = 2,
|
29
|
+
'is-offset-4' = 3,
|
30
|
+
'is-offset-5' = 4,
|
31
|
+
'is-offset-6' = 5,
|
32
|
+
'is-offset-7' = 6,
|
33
|
+
'is-offset-8' = 7,
|
34
|
+
'is-offset-9' = 8,
|
35
|
+
'is-offset-10' = 9,
|
36
|
+
'is-offset-11' = 10,
|
37
|
+
'is-offset-12' = 11
|
38
|
+
}
|
@@ -94,4 +94,31 @@ export interface DeleteProps extends BasicProps {
|
|
94
94
|
size?: Exclude<basicSizeType, 'is-normal'>;
|
95
95
|
onClick?: () => void;
|
96
96
|
}
|
97
|
+
export interface SelectOption {
|
98
|
+
id: string | number;
|
99
|
+
name: string;
|
100
|
+
selected?: boolean;
|
101
|
+
}
|
102
|
+
export interface SelectProps extends BasicProps {
|
103
|
+
options?: SelectOption[];
|
104
|
+
showOptions?: number;
|
105
|
+
isMultiple?: boolean;
|
106
|
+
color?: basicColorType;
|
107
|
+
size?: basicSizeType;
|
108
|
+
isRounded?: boolean;
|
109
|
+
isHovered?: boolean;
|
110
|
+
isFocused?: boolean;
|
111
|
+
onClick?: () => void;
|
112
|
+
}
|
113
|
+
export interface FileProps extends BasicProps {
|
114
|
+
fileName?: string;
|
115
|
+
uploadIcon?: IconProps;
|
116
|
+
uploadText?: string;
|
117
|
+
buttonOnRight?: boolean;
|
118
|
+
isFullWidth?: boolean;
|
119
|
+
isBoxed?: boolean;
|
120
|
+
color?: basicColorType;
|
121
|
+
size?: basicSizeType;
|
122
|
+
onClick?: () => void;
|
123
|
+
}
|
97
124
|
export {};
|
package/dist/index.d.ts
CHANGED
@@ -98,6 +98,33 @@ interface DeleteProps extends BasicProps {
|
|
98
98
|
size?: Exclude<basicSizeType, 'is-normal'>;
|
99
99
|
onClick?: () => void;
|
100
100
|
}
|
101
|
+
interface SelectOption {
|
102
|
+
id: string | number;
|
103
|
+
name: string;
|
104
|
+
selected?: boolean;
|
105
|
+
}
|
106
|
+
interface SelectProps extends BasicProps {
|
107
|
+
options?: SelectOption[];
|
108
|
+
showOptions?: number;
|
109
|
+
isMultiple?: boolean;
|
110
|
+
color?: basicColorType;
|
111
|
+
size?: basicSizeType;
|
112
|
+
isRounded?: boolean;
|
113
|
+
isHovered?: boolean;
|
114
|
+
isFocused?: boolean;
|
115
|
+
onClick?: () => void;
|
116
|
+
}
|
117
|
+
interface FileProps extends BasicProps {
|
118
|
+
fileName?: string;
|
119
|
+
uploadIcon?: IconProps;
|
120
|
+
uploadText?: string;
|
121
|
+
buttonOnRight?: boolean;
|
122
|
+
isFullWidth?: boolean;
|
123
|
+
isBoxed?: boolean;
|
124
|
+
color?: basicColorType;
|
125
|
+
size?: basicSizeType;
|
126
|
+
onClick?: () => void;
|
127
|
+
}
|
101
128
|
|
102
129
|
declare const Button: React.FC<ButtonProps>;
|
103
130
|
|
@@ -121,4 +148,8 @@ declare const TextArea: React.FC<TextAreaProps>;
|
|
121
148
|
|
122
149
|
declare const Delete: React.FC<DeleteProps>;
|
123
150
|
|
124
|
-
|
151
|
+
declare const Select: React.FC<SelectProps>;
|
152
|
+
|
153
|
+
declare const File: React.FC<FileProps>;
|
154
|
+
|
155
|
+
export { Block, Box, Button, Column, Delete, File, Icon, Input, ProgressBar, Select, Tag, TextArea, Title };
|
package/package.json
CHANGED
@@ -1,106 +1,106 @@
|
|
1
|
-
{
|
2
|
-
"name": "reactive-bulma",
|
3
|
-
"version": "1.
|
4
|
-
"description": "A typescript-react-based component library based on bulma",
|
5
|
-
"keywords": [
|
6
|
-
"typescript",
|
7
|
-
"react",
|
8
|
-
"bulma",
|
9
|
-
"rollup",
|
10
|
-
"semantic-release",
|
11
|
-
"jest",
|
12
|
-
"prettier",
|
13
|
-
"eslint",
|
14
|
-
"husky",
|
15
|
-
"component-library"
|
16
|
-
],
|
17
|
-
"author": "Nicolás Omar González Passerino",
|
18
|
-
"license": "MIT",
|
19
|
-
"homepage": "https://github.com/NicolasOmar/reactive-bulma#readme",
|
20
|
-
"repository": {
|
21
|
-
"type": "git",
|
22
|
-
"url": "https://github.com/NicolasOmar/reactive-bulma.git"
|
23
|
-
},
|
24
|
-
"bugs": {
|
25
|
-
"url": "https://github.com/NicolasOmar/reactive-bulma/issues"
|
26
|
-
},
|
27
|
-
"main": "dist/cjs/index.js",
|
28
|
-
"module": "dist/esm/index.js",
|
29
|
-
"files": [
|
30
|
-
"dist"
|
31
|
-
],
|
32
|
-
"types": "dist/index.d.ts",
|
33
|
-
"scripts": {
|
34
|
-
"start": "storybook dev -p 6006",
|
35
|
-
"start:
|
36
|
-
"test": "jest --watchAll=false --verbose",
|
37
|
-
"test:ci": "npm test -- --coverage",
|
38
|
-
"lint": "eslint src/**/*.tsx",
|
39
|
-
"prettier": "prettier src/**/*.{tsx,ts} --write",
|
40
|
-
"lint-staged": "lint-staged -v",
|
41
|
-
"setup": "npm i && husky install",
|
42
|
-
"prepare": "npm run build",
|
43
|
-
"build": "rollup -c --bundleConfigAsCjs",
|
44
|
-
"build:storybook": "storybook build",
|
45
|
-
"semantic-release": "semantic-release"
|
46
|
-
},
|
47
|
-
"devDependencies": {
|
48
|
-
"@babel/core": "^7.22.
|
49
|
-
"@babel/preset-env": "^7.22.
|
50
|
-
"@babel/preset-react": "^7.22.
|
51
|
-
"@babel/preset-typescript": "^7.
|
52
|
-
"@mdi/font": "^7.2.96",
|
53
|
-
"@rollup/plugin-commonjs": "^25.0.
|
54
|
-
"@rollup/plugin-node-resolve": "^15.0
|
55
|
-
"@rollup/plugin-typescript": "^11.1.
|
56
|
-
"@semantic-release/changelog": "^6.0.3",
|
57
|
-
"@semantic-release/commit-analyzer": "^
|
58
|
-
"@semantic-release/exec": "^6.0.3",
|
59
|
-
"@semantic-release/git": "^10.0.1",
|
60
|
-
"@semantic-release/github": "^
|
61
|
-
"@semantic-release/npm": "^10.0.
|
62
|
-
"@semantic-release/release-notes-generator": "^11.0.
|
63
|
-
"@storybook/addon-actions": "^7.0.
|
64
|
-
"@storybook/addon-essentials": "^7.0.
|
65
|
-
"@storybook/addon-interactions": "^7.0.
|
66
|
-
"@storybook/addon-links": "^7.0.
|
67
|
-
"@storybook/addon-mdx-gfm": "^7.0.
|
68
|
-
"@storybook/cli": "^7.0.
|
69
|
-
"@storybook/react": "^7.0.
|
70
|
-
"@storybook/react-webpack5": "^7.0.
|
71
|
-
"@storybook/testing-library": "^0.
|
72
|
-
"@testing-library/jest-dom": "^5.16.5",
|
73
|
-
"@testing-library/react": "^14.0.0",
|
74
|
-
"@types/jest": "^29.5.
|
75
|
-
"@types/react": "^18.2.
|
76
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
77
|
-
"@typescript-eslint/parser": "^5.
|
78
|
-
"babel-jest": "^29.5.0",
|
79
|
-
"babel-loader": "^9.1.2",
|
80
|
-
"bulma": "^0.9.4",
|
81
|
-
"eslint": "^8.
|
82
|
-
"eslint-config-prettier": "^8.8.0",
|
83
|
-
"eslint-plugin-react": "^7.32.2",
|
84
|
-
"husky": "^8.0.3",
|
85
|
-
"jest": "^29.5.0",
|
86
|
-
"jest-environment-jsdom": "^29.5.0",
|
87
|
-
"lint-staged": "^13.2.
|
88
|
-
"postcss": "^8.4.
|
89
|
-
"prettier": "^2.8.8",
|
90
|
-
"react": "^18.2.0",
|
91
|
-
"react-dom": "^18.2.0",
|
92
|
-
"rollup": "^3.
|
93
|
-
"rollup-plugin-dts": "^5.3.0",
|
94
|
-
"rollup-plugin-postcss": "^4.0.2",
|
95
|
-
"semantic-release": "^21.0.
|
96
|
-
"storybook": "^7.0.
|
97
|
-
"tslib": "^2.
|
98
|
-
"typescript": "^5.
|
99
|
-
},
|
100
|
-
"lint-staged": {
|
101
|
-
"src/**/*.(ts|tsx)": [
|
102
|
-
"prettier --write",
|
103
|
-
"eslint --fix"
|
104
|
-
]
|
105
|
-
}
|
106
|
-
}
|
1
|
+
{
|
2
|
+
"name": "reactive-bulma",
|
3
|
+
"version": "1.19.0",
|
4
|
+
"description": "A typescript-react-based component library based on bulma",
|
5
|
+
"keywords": [
|
6
|
+
"typescript",
|
7
|
+
"react",
|
8
|
+
"bulma",
|
9
|
+
"rollup",
|
10
|
+
"semantic-release",
|
11
|
+
"jest",
|
12
|
+
"prettier",
|
13
|
+
"eslint",
|
14
|
+
"husky",
|
15
|
+
"component-library"
|
16
|
+
],
|
17
|
+
"author": "Nicolás Omar González Passerino",
|
18
|
+
"license": "MIT",
|
19
|
+
"homepage": "https://github.com/NicolasOmar/reactive-bulma#readme",
|
20
|
+
"repository": {
|
21
|
+
"type": "git",
|
22
|
+
"url": "https://github.com/NicolasOmar/reactive-bulma.git"
|
23
|
+
},
|
24
|
+
"bugs": {
|
25
|
+
"url": "https://github.com/NicolasOmar/reactive-bulma/issues"
|
26
|
+
},
|
27
|
+
"main": "dist/cjs/index.js",
|
28
|
+
"module": "dist/esm/index.js",
|
29
|
+
"files": [
|
30
|
+
"dist"
|
31
|
+
],
|
32
|
+
"types": "dist/index.d.ts",
|
33
|
+
"scripts": {
|
34
|
+
"start": "storybook dev -p 6006",
|
35
|
+
"start:cli": "npm start -- --no-open",
|
36
|
+
"test": "jest --watchAll=false --verbose",
|
37
|
+
"test:ci": "npm test -- --coverage",
|
38
|
+
"lint": "eslint src/**/*.tsx",
|
39
|
+
"prettier": "prettier src/**/*.{tsx,ts} --write",
|
40
|
+
"lint-staged": "lint-staged -v",
|
41
|
+
"setup": "npm i && husky install",
|
42
|
+
"prepare": "npm run build",
|
43
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
44
|
+
"build:storybook": "storybook build",
|
45
|
+
"semantic-release": "semantic-release"
|
46
|
+
},
|
47
|
+
"devDependencies": {
|
48
|
+
"@babel/core": "^7.22.5",
|
49
|
+
"@babel/preset-env": "^7.22.5",
|
50
|
+
"@babel/preset-react": "^7.22.5",
|
51
|
+
"@babel/preset-typescript": "^7.22.5",
|
52
|
+
"@mdi/font": "^7.2.96",
|
53
|
+
"@rollup/plugin-commonjs": "^25.0.2",
|
54
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
55
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
56
|
+
"@semantic-release/changelog": "^6.0.3",
|
57
|
+
"@semantic-release/commit-analyzer": "^10.0.1",
|
58
|
+
"@semantic-release/exec": "^6.0.3",
|
59
|
+
"@semantic-release/git": "^10.0.1",
|
60
|
+
"@semantic-release/github": "^9.0.3",
|
61
|
+
"@semantic-release/npm": "^10.0.4",
|
62
|
+
"@semantic-release/release-notes-generator": "^11.0.3",
|
63
|
+
"@storybook/addon-actions": "^7.0.25",
|
64
|
+
"@storybook/addon-essentials": "^7.0.25",
|
65
|
+
"@storybook/addon-interactions": "^7.0.25",
|
66
|
+
"@storybook/addon-links": "^7.0.25",
|
67
|
+
"@storybook/addon-mdx-gfm": "^7.0.25",
|
68
|
+
"@storybook/cli": "^7.0.25",
|
69
|
+
"@storybook/react": "^7.0.25",
|
70
|
+
"@storybook/react-webpack5": "^7.0.25",
|
71
|
+
"@storybook/testing-library": "^0.2.0",
|
72
|
+
"@testing-library/jest-dom": "^5.16.5",
|
73
|
+
"@testing-library/react": "^14.0.0",
|
74
|
+
"@types/jest": "^29.5.2",
|
75
|
+
"@types/react": "^18.2.14",
|
76
|
+
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
77
|
+
"@typescript-eslint/parser": "^5.60.1",
|
78
|
+
"babel-jest": "^29.5.0",
|
79
|
+
"babel-loader": "^9.1.2",
|
80
|
+
"bulma": "^0.9.4",
|
81
|
+
"eslint": "^8.44.0",
|
82
|
+
"eslint-config-prettier": "^8.8.0",
|
83
|
+
"eslint-plugin-react": "^7.32.2",
|
84
|
+
"husky": "^8.0.3",
|
85
|
+
"jest": "^29.5.0",
|
86
|
+
"jest-environment-jsdom": "^29.5.0",
|
87
|
+
"lint-staged": "^13.2.3",
|
88
|
+
"postcss": "^8.4.24",
|
89
|
+
"prettier": "^2.8.8",
|
90
|
+
"react": "^18.2.0",
|
91
|
+
"react-dom": "^18.2.0",
|
92
|
+
"rollup": "^3.26.0",
|
93
|
+
"rollup-plugin-dts": "^5.3.0",
|
94
|
+
"rollup-plugin-postcss": "^4.0.2",
|
95
|
+
"semantic-release": "^21.0.6",
|
96
|
+
"storybook": "^7.0.25",
|
97
|
+
"tslib": "^2.6.0",
|
98
|
+
"typescript": "^5.1.6"
|
99
|
+
},
|
100
|
+
"lint-staged": {
|
101
|
+
"src/**/*.(ts|tsx)": [
|
102
|
+
"prettier --write",
|
103
|
+
"eslint --fix"
|
104
|
+
]
|
105
|
+
}
|
106
|
+
}
|