reactive-bulma 2.8.0 → 2.9.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/dist/cjs/index.js +40 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/Modal/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +6 -0
- package/dist/esm/index.js +39 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/Modal/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +1 -0
- package/dist/esm/types/interfaces/moleculeProps.d.ts +6 -0
- package/dist/index.d.ts +20 -1
- package/package.json +26 -26
@@ -17,4 +17,5 @@ export { default as BreadcrumbItem } from './BreadcrumbItem';
|
|
17
17
|
export { default as DropdownTrigger } from './DropdownTrigger';
|
18
18
|
export { default as DropdownItem } from './DropdownItem';
|
19
19
|
export { default as MenuItem } from './MenuItem';
|
20
|
+
export { default as Image } from './Image';
|
20
21
|
export { default as PaginationItem } from './PaginationItem';
|
@@ -109,4 +109,10 @@ export interface PaginationProps extends ComposedElementProps {
|
|
109
109
|
/** `Styling` Will adjust the pages position on screen */
|
110
110
|
alignment?: elementAlignType | null;
|
111
111
|
}
|
112
|
+
export interface ModalProps extends ComposedElementProps {
|
113
|
+
/** `Attribute` Reffers to the component or array of components that will be shown inside the column */
|
114
|
+
children?: string | React.ReactElement | React.ReactElement[] | null;
|
115
|
+
/** `Function` Custom function related to the modal's close button to inject custom code if needed */
|
116
|
+
onCloseClick?: () => void;
|
117
|
+
}
|
112
118
|
export {};
|
package/dist/index.d.ts
CHANGED
@@ -29,6 +29,7 @@ type titleSizeType = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6';
|
|
29
29
|
type columnOffsetType = 'is-offset-1' | 'is-offset-2' | 'is-offset-3' | 'is-offset-4' | 'is-offset-5' | 'is-offset-6' | 'is-offset-7' | 'is-offset-8' | 'is-offset-9' | 'is-offset-10' | 'is-offset-11' | 'is-offset-12';
|
30
30
|
type basicColorType = 'is-white' | 'is-light' | 'is-dark' | 'is-black' | 'is-text' | 'is-ghost' | 'is-primary' | 'is-link' | 'is-info' | 'is-success' | 'is-warning' | 'is-danger';
|
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
|
+
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';
|
32
33
|
type basicSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
33
34
|
type reducedSizeType = Exclude<basicSizeType, 'is-normal'>;
|
34
35
|
type iconColorModeType = 'light' | 'dark';
|
@@ -113,6 +114,14 @@ interface TagProps extends ComposedElementProps, React$1.ComponentPropsWithoutRe
|
|
113
114
|
/** `Function` Click function for `delete` option, alone does not nothing, but can be reused for other components */
|
114
115
|
onDeleteClick?: () => void;
|
115
116
|
}
|
117
|
+
interface ImageProps extends ComposedElementProps, React$1.ComponentPropsWithoutRef<'figure'> {
|
118
|
+
/** `Attribute` `Required` The image source that will be shown */
|
119
|
+
src: string;
|
120
|
+
/** `Styling` Will add round borders to image's shape */
|
121
|
+
fixedSize?: fixedImageSizeType;
|
122
|
+
/** `Styling` Sets image size based on one of fixed ratios/fixed sizes */
|
123
|
+
isRounded?: boolean;
|
124
|
+
}
|
116
125
|
interface BoxProps extends ElementProps, React$1.ComponentPropsWithoutRef<'section'> {
|
117
126
|
/** `Attribute` Reffers to the component or array of components that will be shown inside the box */
|
118
127
|
children?: string | React$1.ReactElement | React$1.ReactElement[];
|
@@ -325,6 +334,8 @@ declare const DropdownItem: React$1.FC<DropdownItemProps>;
|
|
325
334
|
|
326
335
|
declare const MenuItem: React$1.FC<MenuItemProps>;
|
327
336
|
|
337
|
+
declare const Image: React$1.FC<ImageProps>;
|
338
|
+
|
328
339
|
declare const PaginationItem: React$1.FC<PaginationItemProps>;
|
329
340
|
|
330
341
|
interface ButtonGroupProps extends ElementProps {
|
@@ -434,6 +445,12 @@ interface PaginationProps extends ComposedElementProps {
|
|
434
445
|
/** `Styling` Will adjust the pages position on screen */
|
435
446
|
alignment?: elementAlignType | null;
|
436
447
|
}
|
448
|
+
interface ModalProps extends ComposedElementProps {
|
449
|
+
/** `Attribute` Reffers to the component or array of components that will be shown inside the column */
|
450
|
+
children?: string | React.ReactElement | React.ReactElement[] | null;
|
451
|
+
/** `Function` Custom function related to the modal's close button to inject custom code if needed */
|
452
|
+
onCloseClick?: () => void;
|
453
|
+
}
|
437
454
|
|
438
455
|
declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
|
439
456
|
|
@@ -453,4 +470,6 @@ declare const MenuList: React$1.FC<MenuListProps>;
|
|
453
470
|
|
454
471
|
declare const Pagination: React$1.FC<PaginationProps>;
|
455
472
|
|
456
|
-
|
473
|
+
declare const Modal: React$1.FC<ModalProps>;
|
474
|
+
|
475
|
+
export { Block, Box, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, CheckBox as Checkbox, Column, ColumnGroup, Delete, Dropdown, DropdownItem, DropdownTrigger, File, Icon, Image, Input, Menu, MenuItem, MenuList, Message, Modal, Notification, Pagination, PaginationItem, 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.9.0",
|
4
4
|
"description": "A component library based on React, Bulma, Typescript and Rollup",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -52,8 +52,8 @@
|
|
52
52
|
"update:doctor": "npm run lint && npm run test && npm run build"
|
53
53
|
},
|
54
54
|
"devDependencies": {
|
55
|
-
"@babel/core": "^7.23.
|
56
|
-
"@babel/preset-env": "^7.23.
|
55
|
+
"@babel/core": "^7.23.5",
|
56
|
+
"@babel/preset-env": "^7.23.5",
|
57
57
|
"@babel/preset-react": "^7.23.3",
|
58
58
|
"@babel/preset-typescript": "^7.23.3",
|
59
59
|
"@mdi/font": "^7.3.67",
|
@@ -64,48 +64,48 @@
|
|
64
64
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
65
65
|
"@semantic-release/exec": "^6.0.3",
|
66
66
|
"@semantic-release/git": "^10.0.1",
|
67
|
-
"@semantic-release/github": "^9.2.
|
68
|
-
"@semantic-release/npm": "^11.0.
|
67
|
+
"@semantic-release/github": "^9.2.5",
|
68
|
+
"@semantic-release/npm": "^11.0.2",
|
69
69
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
70
|
-
"@storybook/addon-actions": "^7.
|
71
|
-
"@storybook/addon-essentials": "^7.
|
72
|
-
"@storybook/addon-interactions": "^7.
|
73
|
-
"@storybook/addon-links": "^7.
|
74
|
-
"@storybook/addon-mdx-gfm": "^7.
|
75
|
-
"@storybook/cli": "^7.
|
76
|
-
"@storybook/react": "^7.
|
77
|
-
"@storybook/react-webpack5": "^7.
|
70
|
+
"@storybook/addon-actions": "^7.6.4",
|
71
|
+
"@storybook/addon-essentials": "^7.6.4",
|
72
|
+
"@storybook/addon-interactions": "^7.6.4",
|
73
|
+
"@storybook/addon-links": "^7.6.4",
|
74
|
+
"@storybook/addon-mdx-gfm": "^7.6.4",
|
75
|
+
"@storybook/cli": "^7.6.4",
|
76
|
+
"@storybook/react": "^7.6.4",
|
77
|
+
"@storybook/react-webpack5": "^7.6.4",
|
78
78
|
"@storybook/testing-library": "^0.2.2",
|
79
|
-
"@testing-library/jest-dom": "^6.1.
|
79
|
+
"@testing-library/jest-dom": "^6.1.5",
|
80
80
|
"@testing-library/react": "^14.1.2",
|
81
81
|
"@testing-library/user-event": "^14.5.1",
|
82
|
-
"@types/jest": "^29.5.
|
83
|
-
"@types/react": "^18.2.
|
84
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
85
|
-
"@typescript-eslint/parser": "^6.
|
82
|
+
"@types/jest": "^29.5.11",
|
83
|
+
"@types/react": "^18.2.43",
|
84
|
+
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
85
|
+
"@typescript-eslint/parser": "^6.13.2",
|
86
86
|
"babel-jest": "^29.7.0",
|
87
87
|
"babel-loader": "^9.1.3",
|
88
88
|
"bulma": "^0.9.4",
|
89
|
-
"eslint": "^8.
|
90
|
-
"eslint-config-prettier": "^9.
|
89
|
+
"eslint": "^8.55.0",
|
90
|
+
"eslint-config-prettier": "^9.1.0",
|
91
91
|
"eslint-plugin-react": "^7.33.2",
|
92
92
|
"husky": "^8.0.3",
|
93
93
|
"hygen": "^6.2.11",
|
94
94
|
"jest": "^29.7.0",
|
95
95
|
"jest-environment-jsdom": "^29.7.0",
|
96
|
-
"lint-staged": "^15.
|
96
|
+
"lint-staged": "^15.2.0",
|
97
97
|
"npm-check-updates": "^16.14.11",
|
98
|
-
"postcss": "^8.4.
|
98
|
+
"postcss": "^8.4.32",
|
99
99
|
"prettier": "^3.1.0",
|
100
100
|
"react": "^18.2.0",
|
101
101
|
"react-dom": "^18.2.0",
|
102
|
-
"rollup": "^4.
|
102
|
+
"rollup": "^4.7.0",
|
103
103
|
"rollup-plugin-dts": "^6.1.0",
|
104
104
|
"rollup-plugin-postcss": "^4.0.2",
|
105
|
-
"semantic-release": "^22.0.
|
106
|
-
"storybook": "^7.
|
105
|
+
"semantic-release": "^22.0.10",
|
106
|
+
"storybook": "^7.6.4",
|
107
107
|
"tslib": "^2.6.2",
|
108
|
-
"typescript": "^5.3.
|
108
|
+
"typescript": "^5.3.3"
|
109
109
|
},
|
110
110
|
"lint-staged": {
|
111
111
|
"src/**/*.(ts|tsx)": [
|