reactive-bulma 2.5.0 → 2.7.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 +16 -9
- package/dist/cjs/index.js +65 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/MenuItem/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/Menu/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/MenuList/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/Message/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +3 -0
- package/dist/cjs/types/functions/parsers.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +6 -0
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +33 -1
- package/dist/esm/index.js +62 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/MenuItem/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/Menu/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/MenuList/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/Message/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +3 -0
- package/dist/esm/types/functions/parsers.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +6 -0
- package/dist/esm/types/interfaces/moleculeProps.d.ts +33 -1
- package/dist/index.d.ts +46 -1
- package/package.json +34 -29
@@ -16,3 +16,4 @@ export { default as RadioButton } from './RadioButton';
|
|
16
16
|
export { default as BreadcrumbItem } from './BreadcrumbItem';
|
17
17
|
export { default as DropdownTrigger } from './DropdownTrigger';
|
18
18
|
export { default as DropdownItem } from './DropdownItem';
|
19
|
+
export { default as MenuItem } from './MenuItem';
|
@@ -3,3 +3,6 @@ export { default as ColumnGroup } from './ColumnGroup';
|
|
3
3
|
export { default as Notification } from './Notification';
|
4
4
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
5
5
|
export { default as Dropdown } from './Dropdown';
|
6
|
+
export { default as Message } from './Message';
|
7
|
+
export { default as Menu } from './Menu';
|
8
|
+
export { default as MenuList } from './MenuList';
|
@@ -12,3 +12,4 @@ export declare const parseClasses: (_classes: Array<string | null | undefined>)
|
|
12
12
|
* @returns A single string product of merge all classNames, separated by `separator` value
|
13
13
|
*/
|
14
14
|
export declare const parseTestId: (config: ParseTestIdProps) => string;
|
15
|
+
export declare const parseKey: (max?: number, min?: number) => string;
|
@@ -241,3 +241,9 @@ export interface DropdownItemProps extends ElementProps, ClickeableProps {
|
|
241
241
|
/** `Styling` Marks the item as the one where user is located (based on dropdown hierarchy) */
|
242
242
|
isActiveItem?: boolean;
|
243
243
|
}
|
244
|
+
export interface MenuItemProps extends ElementProps, ClickeableProps {
|
245
|
+
/** `Attribute` `Required` Sets the text will be shown on the menu item */
|
246
|
+
text: string;
|
247
|
+
/** `Styling` Generates a blue background to mark the item as the active one in the `MenuList` */
|
248
|
+
isActive?: boolean;
|
249
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComposedElementProps, ElementProps } from './commonProps';
|
3
|
-
import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps, DropdownItemProps } from './atomProps';
|
3
|
+
import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps, DropdownItemProps, MenuItemProps } from './atomProps';
|
4
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 */
|
@@ -52,3 +52,35 @@ export interface DropdownProps extends ElementProps {
|
|
52
52
|
/** `Atribute` `Required` Array of `DropdownItem` objects that will be shown on its menu */
|
53
53
|
listOfItems: DropdownItemProps[];
|
54
54
|
}
|
55
|
+
export interface MessageProps extends ElementProps {
|
56
|
+
/** `Atribute` Sets the header's text that will be shown on message's darker zone */
|
57
|
+
headerText?: string;
|
58
|
+
/** `Atribute` `Required` Sets the body's text that will be shown on message's lighter zone */
|
59
|
+
bodyText: string;
|
60
|
+
/** `Atribute` Includes a `Delete` config object that will be shown */
|
61
|
+
deleteButton?: DeleteProps;
|
62
|
+
/** `Styling` Color based on bulma's color tokens */
|
63
|
+
color?: basicColorType;
|
64
|
+
/** `Styling` Set button's size on bulma's size tokens */
|
65
|
+
size?: Exclude<basicSizeType, 'is-normal'>;
|
66
|
+
}
|
67
|
+
interface MenuSubListProps {
|
68
|
+
subListTitle: MenuItemProps;
|
69
|
+
subItems: MenuItemProps[];
|
70
|
+
}
|
71
|
+
type MenuListItemType = MenuItemProps | MenuSubListProps;
|
72
|
+
export interface MenuListProps extends ElementProps {
|
73
|
+
/** `Attribute` `Required` List of menu items that can be used as single ones or in a list/sublist format */
|
74
|
+
itemList: Array<MenuListItemType>;
|
75
|
+
}
|
76
|
+
interface MenuSectionProps {
|
77
|
+
/** `Attribute` `Required` Label that will be show at the beginning of each section */
|
78
|
+
label: string;
|
79
|
+
/** `Attribute` `Required` List of menu items that can be used as single ones or in a list/sublist format */
|
80
|
+
itemList: Array<MenuListItemType>;
|
81
|
+
}
|
82
|
+
export interface MenuProps extends ElementProps {
|
83
|
+
/** `Attribute` `Required` List of sections that can be single or second level MenuItems */
|
84
|
+
menuSections: MenuSectionProps[];
|
85
|
+
}
|
86
|
+
export {};
|
package/dist/index.d.ts
CHANGED
@@ -269,6 +269,12 @@ interface DropdownItemProps extends ElementProps, ClickeableProps {
|
|
269
269
|
/** `Styling` Marks the item as the one where user is located (based on dropdown hierarchy) */
|
270
270
|
isActiveItem?: boolean;
|
271
271
|
}
|
272
|
+
interface MenuItemProps extends ElementProps, ClickeableProps {
|
273
|
+
/** `Attribute` `Required` Sets the text will be shown on the menu item */
|
274
|
+
text: string;
|
275
|
+
/** `Styling` Generates a blue background to mark the item as the active one in the `MenuList` */
|
276
|
+
isActive?: boolean;
|
277
|
+
}
|
272
278
|
|
273
279
|
declare const Button: React$1.FC<ButtonProps>;
|
274
280
|
|
@@ -306,6 +312,8 @@ declare const DropdownTrigger: React$1.FC<DropdownTriggerProps>;
|
|
306
312
|
|
307
313
|
declare const DropdownItem: React$1.FC<DropdownItemProps>;
|
308
314
|
|
315
|
+
declare const MenuItem: React$1.FC<MenuItemProps>;
|
316
|
+
|
309
317
|
interface ButtonGroupProps extends ElementProps {
|
310
318
|
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
311
319
|
buttonList: ButtonProps[];
|
@@ -356,6 +364,37 @@ interface DropdownProps extends ElementProps {
|
|
356
364
|
/** `Atribute` `Required` Array of `DropdownItem` objects that will be shown on its menu */
|
357
365
|
listOfItems: DropdownItemProps[];
|
358
366
|
}
|
367
|
+
interface MessageProps extends ElementProps {
|
368
|
+
/** `Atribute` Sets the header's text that will be shown on message's darker zone */
|
369
|
+
headerText?: string;
|
370
|
+
/** `Atribute` `Required` Sets the body's text that will be shown on message's lighter zone */
|
371
|
+
bodyText: string;
|
372
|
+
/** `Atribute` Includes a `Delete` config object that will be shown */
|
373
|
+
deleteButton?: DeleteProps;
|
374
|
+
/** `Styling` Color based on bulma's color tokens */
|
375
|
+
color?: basicColorType;
|
376
|
+
/** `Styling` Set button's size on bulma's size tokens */
|
377
|
+
size?: Exclude<basicSizeType, 'is-normal'>;
|
378
|
+
}
|
379
|
+
interface MenuSubListProps {
|
380
|
+
subListTitle: MenuItemProps;
|
381
|
+
subItems: MenuItemProps[];
|
382
|
+
}
|
383
|
+
type MenuListItemType = MenuItemProps | MenuSubListProps;
|
384
|
+
interface MenuListProps extends ElementProps {
|
385
|
+
/** `Attribute` `Required` List of menu items that can be used as single ones or in a list/sublist format */
|
386
|
+
itemList: Array<MenuListItemType>;
|
387
|
+
}
|
388
|
+
interface MenuSectionProps {
|
389
|
+
/** `Attribute` `Required` Label that will be show at the beginning of each section */
|
390
|
+
label: string;
|
391
|
+
/** `Attribute` `Required` List of menu items that can be used as single ones or in a list/sublist format */
|
392
|
+
itemList: Array<MenuListItemType>;
|
393
|
+
}
|
394
|
+
interface MenuProps extends ElementProps {
|
395
|
+
/** `Attribute` `Required` List of sections that can be single or second level MenuItems */
|
396
|
+
menuSections: MenuSectionProps[];
|
397
|
+
}
|
359
398
|
|
360
399
|
declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
|
361
400
|
|
@@ -367,4 +406,10 @@ declare const Breadcrumbs: React$1.FC<BreadcrumbsProps>;
|
|
367
406
|
|
368
407
|
declare const Dropdown: React$1.FC<DropdownProps>;
|
369
408
|
|
370
|
-
|
409
|
+
declare const Message: React$1.FC<MessageProps>;
|
410
|
+
|
411
|
+
declare const Menu: React$1.FC<MenuProps>;
|
412
|
+
|
413
|
+
declare const MenuList: React$1.FC<MenuListProps>;
|
414
|
+
|
415
|
+
export { Block, Box, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, CheckBox as Checkbox, Column, ColumnGroup, Delete, Dropdown, DropdownItem, DropdownTrigger, File, Icon, Input, Menu, MenuItem, MenuList, Message, 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.7.0",
|
4
4
|
"description": "A component library based on React, Bulma, Typescript and Rollup",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -40,65 +40,70 @@
|
|
40
40
|
"prettier": "prettier src/**/*.{tsx,ts} --write",
|
41
41
|
"prettier:ci": "prettier src/**/*.{tsx,ts} --check",
|
42
42
|
"lint-staged": "lint-staged -v",
|
43
|
-
"setup": "npm i && husky install",
|
43
|
+
"setup": "npm i && npm i -g npm-check-updates && husky install",
|
44
44
|
"prepare": "npm run build",
|
45
45
|
"build": "rollup -c --bundleConfigAsCjs",
|
46
46
|
"build:storybook": "storybook build",
|
47
47
|
"semantic-release": "semantic-release",
|
48
|
-
"create": "hygen component new"
|
48
|
+
"create": "hygen component new",
|
49
|
+
"update": "npm run update:deps && npm run update:doctor && npm run update:storybook",
|
50
|
+
"update:deps": "ncu -i --format group",
|
51
|
+
"update:storybook": "npx storybook@latest upgrade && npm run build:storybook",
|
52
|
+
"update:doctor": "npm run lint && npm run test && npm run build"
|
49
53
|
},
|
50
54
|
"devDependencies": {
|
51
|
-
"@babel/core": "^7.23.
|
52
|
-
"@babel/preset-env": "^7.23.
|
53
|
-
"@babel/preset-react": "^7.
|
54
|
-
"@babel/preset-typescript": "^7.23.
|
55
|
+
"@babel/core": "^7.23.3",
|
56
|
+
"@babel/preset-env": "^7.23.3",
|
57
|
+
"@babel/preset-react": "^7.23.3",
|
58
|
+
"@babel/preset-typescript": "^7.23.3",
|
55
59
|
"@mdi/font": "^7.3.67",
|
56
60
|
"@rollup/plugin-commonjs": "^25.0.7",
|
57
61
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
58
62
|
"@rollup/plugin-typescript": "^11.1.5",
|
59
63
|
"@semantic-release/changelog": "^6.0.3",
|
60
|
-
"@semantic-release/commit-analyzer": "^11.
|
64
|
+
"@semantic-release/commit-analyzer": "^11.1.0",
|
61
65
|
"@semantic-release/exec": "^6.0.3",
|
62
66
|
"@semantic-release/git": "^10.0.1",
|
63
|
-
"@semantic-release/github": "^9.2.
|
64
|
-
"@semantic-release/npm": "^11.0.
|
65
|
-
"@semantic-release/release-notes-generator": "^12.
|
66
|
-
"@storybook/addon-actions": "^7.5.
|
67
|
-
"@storybook/addon-essentials": "^7.5.
|
68
|
-
"@storybook/addon-interactions": "^7.5.
|
69
|
-
"@storybook/addon-links": "^7.5.
|
70
|
-
"@storybook/addon-mdx-gfm": "^7.5.
|
71
|
-
"@storybook/cli": "^7.5.
|
72
|
-
"@storybook/react": "^7.5.
|
73
|
-
"@storybook/react-webpack5": "^7.5.
|
67
|
+
"@semantic-release/github": "^9.2.3",
|
68
|
+
"@semantic-release/npm": "^11.0.1",
|
69
|
+
"@semantic-release/release-notes-generator": "^12.1.0",
|
70
|
+
"@storybook/addon-actions": "^7.5.3",
|
71
|
+
"@storybook/addon-essentials": "^7.5.3",
|
72
|
+
"@storybook/addon-interactions": "^7.5.3",
|
73
|
+
"@storybook/addon-links": "^7.5.3",
|
74
|
+
"@storybook/addon-mdx-gfm": "^7.5.3",
|
75
|
+
"@storybook/cli": "^7.5.3",
|
76
|
+
"@storybook/react": "^7.5.3",
|
77
|
+
"@storybook/react-webpack5": "^7.5.3",
|
74
78
|
"@storybook/testing-library": "^0.2.2",
|
75
79
|
"@testing-library/jest-dom": "^6.1.4",
|
76
|
-
"@testing-library/react": "^14.
|
80
|
+
"@testing-library/react": "^14.1.0",
|
77
81
|
"@testing-library/user-event": "^14.5.1",
|
78
|
-
"@types/jest": "^29.5.
|
79
|
-
"@types/react": "^18.2.
|
80
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
81
|
-
"@typescript-eslint/parser": "^6.
|
82
|
+
"@types/jest": "^29.5.8",
|
83
|
+
"@types/react": "^18.2.37",
|
84
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
85
|
+
"@typescript-eslint/parser": "^6.10.0",
|
82
86
|
"babel-jest": "^29.7.0",
|
83
87
|
"babel-loader": "^9.1.3",
|
84
88
|
"bulma": "^0.9.4",
|
85
|
-
"eslint": "^8.
|
89
|
+
"eslint": "^8.53.0",
|
86
90
|
"eslint-config-prettier": "^9.0.0",
|
87
91
|
"eslint-plugin-react": "^7.33.2",
|
88
92
|
"husky": "^8.0.3",
|
89
93
|
"hygen": "^6.2.11",
|
90
94
|
"jest": "^29.7.0",
|
91
95
|
"jest-environment-jsdom": "^29.7.0",
|
92
|
-
"lint-staged": "^15.0
|
96
|
+
"lint-staged": "^15.1.0",
|
97
|
+
"npm-check-updates": "^16.14.6",
|
93
98
|
"postcss": "^8.4.31",
|
94
99
|
"prettier": "^3.0.3",
|
95
100
|
"react": "^18.2.0",
|
96
101
|
"react-dom": "^18.2.0",
|
97
|
-
"rollup": "^4.1
|
102
|
+
"rollup": "^4.3.1",
|
98
103
|
"rollup-plugin-dts": "^6.1.0",
|
99
104
|
"rollup-plugin-postcss": "^4.0.2",
|
100
|
-
"semantic-release": "^22.0.
|
101
|
-
"storybook": "^7.5.
|
105
|
+
"semantic-release": "^22.0.7",
|
106
|
+
"storybook": "^7.5.3",
|
102
107
|
"tslib": "^2.6.2",
|
103
108
|
"typescript": "^5.2.2"
|
104
109
|
},
|