reactive-bulma 1.18.0 → 1.20.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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CheckboxProps } from '../../../interfaces/atomProps';
3
+ declare const Checkbox: React.FC<CheckboxProps>;
4
+ export default Checkbox;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { FileProps } from '../../../interfaces/atomProps';
3
+ declare const File: React.FC<FileProps>;
4
+ export default File;
@@ -10,3 +10,4 @@ export { default as Input } from './Input';
10
10
  export { default as TextArea } from './TextArea';
11
11
  export { default as Delete } from './Delete';
12
12
  export { default as Select } from './Select';
13
+ export { default as File } from './File';
@@ -110,4 +110,20 @@ export interface SelectProps extends BasicProps {
110
110
  isFocused?: boolean;
111
111
  onClick?: () => void;
112
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
+ }
124
+ export interface CheckboxProps extends BasicProps {
125
+ content?: string | React.ReactElement;
126
+ isDisabled?: boolean;
127
+ onChange?: () => void;
128
+ }
113
129
  export {};
package/dist/index.d.ts CHANGED
@@ -114,6 +114,17 @@ interface SelectProps extends BasicProps {
114
114
  isFocused?: boolean;
115
115
  onClick?: () => void;
116
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
+ }
117
128
 
118
129
  declare const Button: React.FC<ButtonProps>;
119
130
 
@@ -139,4 +150,6 @@ declare const Delete: React.FC<DeleteProps>;
139
150
 
140
151
  declare const Select: React.FC<SelectProps>;
141
152
 
142
- export { Block, Box, Button, Column, Delete, Icon, Input, ProgressBar, Select, Tag, TextArea, Title };
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.18.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.1",
49
- "@babel/preset-env": "^7.22.2",
50
- "@babel/preset-react": "^7.22.3",
51
- "@babel/preset-typescript": "^7.21.5",
52
- "@mdi/font": "^7.2.96",
53
- "@rollup/plugin-commonjs": "^25.0.0",
54
- "@rollup/plugin-node-resolve": "^15.0.2",
55
- "@rollup/plugin-typescript": "^11.1.1",
56
- "@semantic-release/changelog": "^6.0.3",
57
- "@semantic-release/commit-analyzer": "^9.0.2",
58
- "@semantic-release/exec": "^6.0.3",
59
- "@semantic-release/git": "^10.0.1",
60
- "@semantic-release/github": "^8.0.8",
61
- "@semantic-release/npm": "^10.0.3",
62
- "@semantic-release/release-notes-generator": "^11.0.1",
63
- "@storybook/addon-actions": "^7.0.18",
64
- "@storybook/addon-essentials": "^7.0.18",
65
- "@storybook/addon-interactions": "^7.0.18",
66
- "@storybook/addon-links": "^7.0.18",
67
- "@storybook/addon-mdx-gfm": "^7.0.18",
68
- "@storybook/cli": "^7.0.18",
69
- "@storybook/react": "^7.0.18",
70
- "@storybook/react-webpack5": "^7.0.18",
71
- "@storybook/testing-library": "^0.1.0",
72
- "@testing-library/jest-dom": "^5.16.5",
73
- "@testing-library/react": "^14.0.0",
74
- "@types/jest": "^29.5.1",
75
- "@types/react": "^18.2.7",
76
- "@typescript-eslint/eslint-plugin": "^5.59.7",
77
- "@typescript-eslint/parser": "^5.59.7",
78
- "babel-jest": "^29.5.0",
79
- "babel-loader": "^9.1.2",
80
- "bulma": "^0.9.4",
81
- "eslint": "^8.41.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.2",
88
- "postcss": "^8.4.23",
89
- "prettier": "^2.8.8",
90
- "react": "^18.2.0",
91
- "react-dom": "^18.2.0",
92
- "rollup": "^3.23.0",
93
- "rollup-plugin-dts": "^5.3.0",
94
- "rollup-plugin-postcss": "^4.0.2",
95
- "semantic-release": "^21.0.2",
96
- "storybook": "^7.0.18",
97
- "tslib": "^2.5.2",
98
- "typescript": "^5.0.4"
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.20.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.8",
49
+ "@babel/preset-env": "^7.22.7",
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.4",
63
+ "@storybook/addon-actions": "^7.0.26",
64
+ "@storybook/addon-essentials": "^7.0.26",
65
+ "@storybook/addon-interactions": "^7.0.26",
66
+ "@storybook/addon-links": "^7.0.26",
67
+ "@storybook/addon-mdx-gfm": "^7.0.26",
68
+ "@storybook/cli": "^7.0.26",
69
+ "@storybook/react": "^7.0.26",
70
+ "@storybook/react-webpack5": "^7.0.26",
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.61.0",
77
+ "@typescript-eslint/parser": "^5.61.0",
78
+ "babel-jest": "^29.6.1",
79
+ "babel-loader": "^9.1.3",
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.6.1",
86
+ "jest-environment-jsdom": "^29.6.1",
87
+ "lint-staged": "^13.2.3",
88
+ "postcss": "^8.4.25",
89
+ "prettier": "^3.0.0",
90
+ "react": "^18.2.0",
91
+ "react-dom": "^18.2.0",
92
+ "rollup": "^3.26.2",
93
+ "rollup-plugin-dts": "^5.3.0",
94
+ "rollup-plugin-postcss": "^4.0.2",
95
+ "semantic-release": "^21.0.7",
96
+ "storybook": "^7.0.26",
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
+ }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '../../../interfaces/atomProps';
3
- declare const Button: React.FC<ButtonProps>;
4
- export default Button;
@@ -1,38 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { ParseTestIdProps } from '../interfaces/functionProps';
2
- export declare const parseClasses: (_classes: Array<string | null>) => string;
3
- export declare const parseTestId: (config: ParseTestIdProps) => string;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '../../../interfaces/atomProps';
3
- declare const Button: React.FC<ButtonProps>;
4
- export default Button;
@@ -1,38 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { ParseTestIdProps } from '../interfaces/functionProps';
2
- export declare const parseClasses: (_classes: Array<string | null>) => string;
3
- export declare const parseTestId: (config: ParseTestIdProps) => string;