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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ButtonProps } from '../../../interfaces/atomProps';
3
+ declare const Button: React.FC<ButtonProps>;
4
+ export default Button;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SelectProps } from '../../../interfaces/atomProps';
3
+ declare const Select: React.FC<SelectProps>;
4
+ export default Select;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ import { ParseTestIdProps } from '../interfaces/functionProps';
2
+ export declare const parseClasses: (_classes: Array<string | null>) => string;
3
+ export declare const parseTestId: (config: ParseTestIdProps) => string;
@@ -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
- export { Block, Box, Button, Column, Delete, Icon, Input, ProgressBar, Tag, TextArea, Title };
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.17.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:off": "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.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
+ }