reactive-bulma 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +29 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/molecules/ColumnGroup/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +17 -2
- package/dist/cjs/types/types/styleTypes.d.ts +1 -0
- package/dist/esm/index.js +29 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/molecules/ColumnGroup/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +1 -0
- package/dist/esm/types/interfaces/moleculeProps.d.ts +17 -2
- package/dist/esm/types/types/styleTypes.d.ts +1 -0
- package/dist/index.d.ts +19 -2
- package/package.json +15 -15
@@ -1,10 +1,25 @@
|
|
1
1
|
import { ElementProps } from './commonProps';
|
2
|
-
import { ButtonProps } from './atomProps';
|
2
|
+
import { ButtonProps, ColumnProps } from './atomProps';
|
3
|
+
import { columnGapType } from '../types/styleTypes';
|
3
4
|
export interface ButtonGroupProps extends ElementProps {
|
4
|
-
/** `Atribute` Array of
|
5
|
+
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
5
6
|
buttonList: ButtonProps[];
|
6
7
|
/** `Styling` Will group the list of buttonList in a single line */
|
7
8
|
isAttached?: boolean;
|
8
9
|
/** `Styling` Sets group position on the container */
|
9
10
|
position?: 'left' | 'centered' | 'right';
|
10
11
|
}
|
12
|
+
export interface ColumnGroupProps extends ElementProps {
|
13
|
+
/** `Atribute` `Required` Array of `Column` objects that will be shown */
|
14
|
+
listOfColumns: ColumnProps[];
|
15
|
+
/** `Styling` Will adjust column structure display layout in case you want to work on mobiles */
|
16
|
+
isMobileLayout?: boolean;
|
17
|
+
/** `Styling` Will reorder column display in multiple lines each time exceeds viewport width */
|
18
|
+
isMultiline?: boolean;
|
19
|
+
/** `Styling` Will center the list of columns vertically */
|
20
|
+
isVerticallyCentered?: boolean;
|
21
|
+
/** `Styling` Will center the list of columns horizontally */
|
22
|
+
isHorizontallyCentered?: boolean;
|
23
|
+
/** `Styling` Will adjust the space between the columns. In case to set null, it will remove those gaps */
|
24
|
+
gap?: columnGapType | null;
|
25
|
+
}
|
@@ -6,3 +6,4 @@ export type textColorType = 'has-text-white' | 'has-text-black' | 'has-text-ligh
|
|
6
6
|
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';
|
7
7
|
export type basicSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
8
8
|
export type iconColorModeType = 'light' | 'dark';
|
9
|
+
export type columnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
|
package/dist/index.d.ts
CHANGED
@@ -31,6 +31,7 @@ type basicColorType = 'is-white' | 'is-light' | 'is-dark' | 'is-black' | 'is-tex
|
|
31
31
|
type textColorType = 'has-text-white' | 'has-text-black' | 'has-text-light' | 'has-text-dark' | 'has-text-primary' | 'has-text-link' | 'has-text-info' | 'has-text-success' | 'has-text-warning' | 'has-text-danger';
|
32
32
|
type basicSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
33
33
|
type iconColorModeType = 'light' | 'dark';
|
34
|
+
type columnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
|
34
35
|
|
35
36
|
type inputTypes = 'text' | 'password' | 'email' | 'tel';
|
36
37
|
|
@@ -285,14 +286,30 @@ declare const CheckBox: React$1.FC<CheckBoxProps>;
|
|
285
286
|
declare const RadioButton: React$1.FC<RadioButtonProps>;
|
286
287
|
|
287
288
|
interface ButtonGroupProps extends ElementProps {
|
288
|
-
/** `Atribute` Array of
|
289
|
+
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
289
290
|
buttonList: ButtonProps[];
|
290
291
|
/** `Styling` Will group the list of buttonList in a single line */
|
291
292
|
isAttached?: boolean;
|
292
293
|
/** `Styling` Sets group position on the container */
|
293
294
|
position?: 'left' | 'centered' | 'right';
|
294
295
|
}
|
296
|
+
interface ColumnGroupProps extends ElementProps {
|
297
|
+
/** `Atribute` `Required` Array of `Column` objects that will be shown */
|
298
|
+
listOfColumns: ColumnProps[];
|
299
|
+
/** `Styling` Will adjust column structure display layout in case you want to work on mobiles */
|
300
|
+
isMobileLayout?: boolean;
|
301
|
+
/** `Styling` Will reorder column display in multiple lines each time exceeds viewport width */
|
302
|
+
isMultiline?: boolean;
|
303
|
+
/** `Styling` Will center the list of columns vertically */
|
304
|
+
isVerticallyCentered?: boolean;
|
305
|
+
/** `Styling` Will center the list of columns horizontally */
|
306
|
+
isHorizontallyCentered?: boolean;
|
307
|
+
/** `Styling` Will adjust the space between the columns. In case to set null, it will remove those gaps */
|
308
|
+
gap?: columnGapType | null;
|
309
|
+
}
|
295
310
|
|
296
311
|
declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
|
297
312
|
|
298
|
-
|
313
|
+
declare const ColumnGroup: React$1.FC<ColumnGroupProps>;
|
314
|
+
|
315
|
+
export { Block, Box, Button, ButtonGroup, CheckBox as Checkbox, Column, ColumnGroup, Delete, File, Icon, Input, ProgressBar, RadioButton, Select, Tag, TextArea, Title };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "reactive-bulma",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.2.0",
|
4
4
|
"description": "A component library based on React, Bulma, Typescript and Rollup",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -59,17 +59,17 @@
|
|
59
59
|
"@semantic-release/commit-analyzer": "^11.0.0",
|
60
60
|
"@semantic-release/exec": "^6.0.3",
|
61
61
|
"@semantic-release/git": "^10.0.1",
|
62
|
-
"@semantic-release/github": "^9.0.
|
62
|
+
"@semantic-release/github": "^9.0.7",
|
63
63
|
"@semantic-release/npm": "^11.0.0",
|
64
64
|
"@semantic-release/release-notes-generator": "^12.0.0",
|
65
|
-
"@storybook/addon-actions": "^7.4.
|
66
|
-
"@storybook/addon-essentials": "^7.4.
|
67
|
-
"@storybook/addon-interactions": "^7.4.
|
68
|
-
"@storybook/addon-links": "^7.4.
|
69
|
-
"@storybook/addon-mdx-gfm": "^7.4.
|
70
|
-
"@storybook/cli": "^7.4.
|
71
|
-
"@storybook/react": "^7.4.
|
72
|
-
"@storybook/react-webpack5": "^7.4.
|
65
|
+
"@storybook/addon-actions": "^7.4.5",
|
66
|
+
"@storybook/addon-essentials": "^7.4.5",
|
67
|
+
"@storybook/addon-interactions": "^7.4.5",
|
68
|
+
"@storybook/addon-links": "^7.4.5",
|
69
|
+
"@storybook/addon-mdx-gfm": "^7.4.5",
|
70
|
+
"@storybook/cli": "^7.4.5",
|
71
|
+
"@storybook/react": "^7.4.5",
|
72
|
+
"@storybook/react-webpack5": "^7.4.5",
|
73
73
|
"@storybook/testing-library": "^0.2.1",
|
74
74
|
"@testing-library/jest-dom": "^6.1.3",
|
75
75
|
"@testing-library/react": "^14.0.0",
|
@@ -80,22 +80,22 @@
|
|
80
80
|
"babel-jest": "^29.7.0",
|
81
81
|
"babel-loader": "^9.1.3",
|
82
82
|
"bulma": "^0.9.4",
|
83
|
-
"eslint": "^8.
|
83
|
+
"eslint": "^8.50.0",
|
84
84
|
"eslint-config-prettier": "^9.0.0",
|
85
85
|
"eslint-plugin-react": "^7.33.2",
|
86
86
|
"husky": "^8.0.3",
|
87
87
|
"jest": "^29.7.0",
|
88
88
|
"jest-environment-jsdom": "^29.7.0",
|
89
89
|
"lint-staged": "^14.0.1",
|
90
|
-
"postcss": "^8.4.
|
90
|
+
"postcss": "^8.4.30",
|
91
91
|
"prettier": "^3.0.3",
|
92
92
|
"react": "^18.2.0",
|
93
93
|
"react-dom": "^18.2.0",
|
94
|
-
"rollup": "^3.29.
|
94
|
+
"rollup": "^3.29.3",
|
95
95
|
"rollup-plugin-dts": "^6.0.2",
|
96
96
|
"rollup-plugin-postcss": "^4.0.2",
|
97
|
-
"semantic-release": "^22.0.
|
98
|
-
"storybook": "^7.4.
|
97
|
+
"semantic-release": "^22.0.5",
|
98
|
+
"storybook": "^7.4.5",
|
99
99
|
"tslib": "^2.6.2",
|
100
100
|
"typescript": "^5.2.2"
|
101
101
|
},
|