reactive-bulma 2.3.0 → 2.4.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 +20 -3
- package/dist/cjs/index.js +82 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/BreadcrumbItem/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/Breadcrumbs/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +8 -0
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +13 -3
- package/dist/cjs/types/types/styleTypes.d.ts +2 -0
- package/dist/esm/index.js +81 -39
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/BreadcrumbItem/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/Breadcrumbs/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +8 -0
- package/dist/esm/types/interfaces/moleculeProps.d.ts +13 -3
- package/dist/esm/types/types/styleTypes.d.ts +2 -0
- package/dist/index.d.ts +25 -1
- package/package.json +28 -26
@@ -229,3 +229,11 @@ export interface RadioButtonProps extends ComposedElementProps {
|
|
229
229
|
/** `Function` Click function, alone does not nothing, but can be reused for other components */
|
230
230
|
onChange?: () => void;
|
231
231
|
}
|
232
|
+
export interface BreadcrumbItemProps extends ComposedElementProps {
|
233
|
+
/** `Attribute` `Required` Indicates item text that will be shown */
|
234
|
+
text: string;
|
235
|
+
/** `Styling` Marks the item as the one where user is located (based on breadcrumb hierarchy) */
|
236
|
+
isActiveItem?: boolean;
|
237
|
+
/** `Function` Click function, alone does not nothing, but can be reused for other components */
|
238
|
+
onClick?: () => void;
|
239
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { ElementProps } from './commonProps';
|
3
|
-
import { ButtonProps, ColumnProps, DeleteProps } from './atomProps';
|
4
|
-
import { basicColorType, columnGapType } from '../types/styleTypes';
|
2
|
+
import { ComposedElementProps, ElementProps } from './commonProps';
|
3
|
+
import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps } from './atomProps';
|
4
|
+
import { basicColorType, basicSizeType, breadcrumbAlignType, breadcrumbSeparatorType, columnGapType } from '../types/styleTypes';
|
5
5
|
export interface ButtonGroupProps extends ElementProps {
|
6
6
|
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
7
7
|
buttonList: ButtonProps[];
|
@@ -34,3 +34,13 @@ export interface NotificationProps extends ElementProps {
|
|
34
34
|
/** `Styling` Will adjust the selected color with a ligther style */
|
35
35
|
isLightColor?: boolean;
|
36
36
|
}
|
37
|
+
export interface BreadcrumbsProps extends ComposedElementProps {
|
38
|
+
/** `Atribute` `Required` Array of `BreadcrumbItems` objects that will be shown */
|
39
|
+
items: BreadcrumbItemProps[];
|
40
|
+
/** `Styling` Will adjust element position on screen */
|
41
|
+
alignment?: breadcrumbAlignType | null;
|
42
|
+
/** `Styling` Will adjust element position on screen */
|
43
|
+
separator?: breadcrumbSeparatorType | null;
|
44
|
+
/** `Styling` Set button's size on bulma's size tokens */
|
45
|
+
size?: Exclude<basicSizeType, 'is-normal'>;
|
46
|
+
}
|
@@ -7,3 +7,5 @@ export type fixedImageSizeType = 'is-16x16' | 'is-24x24' | 'is-32x32' | 'is-48x4
|
|
7
7
|
export type basicSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
8
8
|
export type iconColorModeType = 'light' | 'dark';
|
9
9
|
export type columnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
|
10
|
+
export type breadcrumbAlignType = 'is-centered' | 'is-right';
|
11
|
+
export type breadcrumbSeparatorType = 'has-arrow-separator' | 'has-bullet-separator' | 'has-dot-separator' | 'has-succeeds-separator';
|
package/dist/index.d.ts
CHANGED
@@ -28,6 +28,8 @@ type textColorType = 'has-text-white' | 'has-text-black' | 'has-text-light' | 'h
|
|
28
28
|
type basicSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
29
29
|
type iconColorModeType = 'light' | 'dark';
|
30
30
|
type columnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
|
31
|
+
type breadcrumbAlignType = 'is-centered' | 'is-right';
|
32
|
+
type breadcrumbSeparatorType = 'has-arrow-separator' | 'has-bullet-separator' | 'has-dot-separator' | 'has-succeeds-separator';
|
31
33
|
|
32
34
|
type inputTypes = 'text' | 'password' | 'email' | 'tel';
|
33
35
|
|
@@ -250,6 +252,14 @@ interface RadioButtonProps extends ComposedElementProps {
|
|
250
252
|
/** `Function` Click function, alone does not nothing, but can be reused for other components */
|
251
253
|
onChange?: () => void;
|
252
254
|
}
|
255
|
+
interface BreadcrumbItemProps extends ComposedElementProps {
|
256
|
+
/** `Attribute` `Required` Indicates item text that will be shown */
|
257
|
+
text: string;
|
258
|
+
/** `Styling` Marks the item as the one where user is located (based on breadcrumb hierarchy) */
|
259
|
+
isActiveItem?: boolean;
|
260
|
+
/** `Function` Click function, alone does not nothing, but can be reused for other components */
|
261
|
+
onClick?: () => void;
|
262
|
+
}
|
253
263
|
|
254
264
|
declare const Button: React$1.FC<ButtonProps>;
|
255
265
|
|
@@ -281,6 +291,8 @@ declare const CheckBox: React$1.FC<CheckBoxProps>;
|
|
281
291
|
|
282
292
|
declare const RadioButton: React$1.FC<RadioButtonProps>;
|
283
293
|
|
294
|
+
declare const BreadcrumbItem: React$1.FC<BreadcrumbItemProps>;
|
295
|
+
|
284
296
|
interface ButtonGroupProps extends ElementProps {
|
285
297
|
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
286
298
|
buttonList: ButtonProps[];
|
@@ -313,6 +325,16 @@ interface NotificationProps extends ElementProps {
|
|
313
325
|
/** `Styling` Will adjust the selected color with a ligther style */
|
314
326
|
isLightColor?: boolean;
|
315
327
|
}
|
328
|
+
interface BreadcrumbsProps extends ComposedElementProps {
|
329
|
+
/** `Atribute` `Required` Array of `BreadcrumbItems` objects that will be shown */
|
330
|
+
items: BreadcrumbItemProps[];
|
331
|
+
/** `Styling` Will adjust element position on screen */
|
332
|
+
alignment?: breadcrumbAlignType | null;
|
333
|
+
/** `Styling` Will adjust element position on screen */
|
334
|
+
separator?: breadcrumbSeparatorType | null;
|
335
|
+
/** `Styling` Set button's size on bulma's size tokens */
|
336
|
+
size?: Exclude<basicSizeType, 'is-normal'>;
|
337
|
+
}
|
316
338
|
|
317
339
|
declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
|
318
340
|
|
@@ -320,4 +342,6 @@ declare const ColumnGroup: React$1.FC<ColumnGroupProps>;
|
|
320
342
|
|
321
343
|
declare const Notification: React$1.FC<NotificationProps>;
|
322
344
|
|
323
|
-
|
345
|
+
declare const Breadcrumbs: React$1.FC<BreadcrumbsProps>;
|
346
|
+
|
347
|
+
export { Block, Box, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, CheckBox as Checkbox, Column, ColumnGroup, Delete, File, Icon, Input, Notification, 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.4.0",
|
4
4
|
"description": "A component library based on React, Bulma, Typescript and Rollup",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -44,17 +44,18 @@
|
|
44
44
|
"prepare": "npm run build",
|
45
45
|
"build": "rollup -c --bundleConfigAsCjs",
|
46
46
|
"build:storybook": "storybook build",
|
47
|
-
"semantic-release": "semantic-release"
|
47
|
+
"semantic-release": "semantic-release",
|
48
|
+
"create": "hygen component new"
|
48
49
|
},
|
49
50
|
"devDependencies": {
|
50
|
-
"@babel/core": "^7.23.
|
51
|
-
"@babel/preset-env": "^7.
|
51
|
+
"@babel/core": "^7.23.2",
|
52
|
+
"@babel/preset-env": "^7.23.2",
|
52
53
|
"@babel/preset-react": "^7.22.15",
|
53
|
-
"@babel/preset-typescript": "^7.23.
|
54
|
-
"@mdi/font": "^7.
|
55
|
-
"@rollup/plugin-commonjs": "^25.0.
|
56
|
-
"@rollup/plugin-node-resolve": "^15.2.
|
57
|
-
"@rollup/plugin-typescript": "^11.1.
|
54
|
+
"@babel/preset-typescript": "^7.23.2",
|
55
|
+
"@mdi/font": "^7.3.67",
|
56
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
57
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
58
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
58
59
|
"@semantic-release/changelog": "^6.0.3",
|
59
60
|
"@semantic-release/commit-analyzer": "^11.0.0",
|
60
61
|
"@semantic-release/exec": "^6.0.3",
|
@@ -62,40 +63,41 @@
|
|
62
63
|
"@semantic-release/github": "^9.2.1",
|
63
64
|
"@semantic-release/npm": "^11.0.0",
|
64
65
|
"@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.
|
66
|
+
"@storybook/addon-actions": "^7.4.6",
|
67
|
+
"@storybook/addon-essentials": "^7.4.6",
|
68
|
+
"@storybook/addon-interactions": "^7.4.6",
|
69
|
+
"@storybook/addon-links": "^7.4.6",
|
70
|
+
"@storybook/addon-mdx-gfm": "^7.4.6",
|
71
|
+
"@storybook/cli": "^7.4.6",
|
72
|
+
"@storybook/react": "^7.4.6",
|
73
|
+
"@storybook/react-webpack5": "^7.4.6",
|
73
74
|
"@storybook/testing-library": "^0.2.2",
|
74
|
-
"@testing-library/jest-dom": "^6.1.
|
75
|
+
"@testing-library/jest-dom": "^6.1.4",
|
75
76
|
"@testing-library/react": "^14.0.0",
|
76
77
|
"@types/jest": "^29.5.5",
|
77
|
-
"@types/react": "^18.2.
|
78
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
79
|
-
"@typescript-eslint/parser": "^6.7.
|
78
|
+
"@types/react": "^18.2.28",
|
79
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
80
|
+
"@typescript-eslint/parser": "^6.7.5",
|
80
81
|
"babel-jest": "^29.7.0",
|
81
82
|
"babel-loader": "^9.1.3",
|
82
83
|
"bulma": "^0.9.4",
|
83
|
-
"eslint": "^8.
|
84
|
+
"eslint": "^8.51.0",
|
84
85
|
"eslint-config-prettier": "^9.0.0",
|
85
86
|
"eslint-plugin-react": "^7.33.2",
|
86
87
|
"husky": "^8.0.3",
|
88
|
+
"hygen": "^6.2.11",
|
87
89
|
"jest": "^29.7.0",
|
88
90
|
"jest-environment-jsdom": "^29.7.0",
|
89
|
-
"lint-staged": "^
|
91
|
+
"lint-staged": "^15.0.1",
|
90
92
|
"postcss": "^8.4.31",
|
91
93
|
"prettier": "^3.0.3",
|
92
94
|
"react": "^18.2.0",
|
93
95
|
"react-dom": "^18.2.0",
|
94
|
-
"rollup": "^
|
95
|
-
"rollup-plugin-dts": "^6.0
|
96
|
+
"rollup": "^4.1.4",
|
97
|
+
"rollup-plugin-dts": "^6.1.0",
|
96
98
|
"rollup-plugin-postcss": "^4.0.2",
|
97
99
|
"semantic-release": "^22.0.5",
|
98
|
-
"storybook": "^7.4.
|
100
|
+
"storybook": "^7.4.6",
|
99
101
|
"tslib": "^2.6.2",
|
100
102
|
"typescript": "^5.2.2"
|
101
103
|
},
|