empower-container 0.1.10 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -168,6 +168,7 @@ info: 'Sample Information'
168
168
  ```html
169
169
  <MenuBar
170
170
  config={menubar.config}
171
+ mainButton={menubar.mainButton}
171
172
  button={menubar.button}
172
173
  pagination={menubar.pagination}
173
174
  pivot={menubar.pivot}
@@ -353,6 +354,7 @@ info: 'Sample Information'
353
354
  ```html
354
355
  <Modal
355
356
  config={menubar.config}
357
+ mainButton={menubar.mainButton}
356
358
  button={menubar.button}
357
359
  pagination={menubar.pagination}
358
360
  pivot={menubar.pivot}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "empower-container",
3
- "version": "0.1.10",
3
+ "version": "0.1.13",
4
4
  "private": false,
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -485,7 +485,7 @@ var MenuBar = function (_a) {
485
485
  react_1.default.createElement("a", { href: "#", onClick: function (event) { return popoverRequestHandler(event, 'info'); }, "data-testid": "menubar-information" },
486
486
  react_1.default.createElement("div", { className: "em-info-icon" }, Asset_1.SVG_INFORMATION)),
487
487
  react_1.default.createElement(Select_1.Popover, { id: "InfoPopOver", open: Boolean(infoPopover), className: Boolean(dropdownPopover) ? 'open-popover' : '', onClick: function (event) { return popoverRequestHandler(event, 'info'); } },
488
- react_1.default.createElement(Information_1.default, { items: info && info.infoDetails ? info.infoDetails : info, listRow: info && info.listRow ? info.listRow : [], desc: info && info.listRow && info.listRow.length > 0 ? false : true, title: config && config.title ? config.title.toUpperCase() : null, hide: function (event) { return popoverRequestHandler(event, 'info', true); } }))))) : null,
488
+ react_1.default.createElement(Information_1.default, { items: info && info.infoDetails ? info.infoDetails : info, listRow: info && info.listRow ? info.listRow : [], desc: info && info.listRow && info.listRow.length > 0 ? false : true, title: config && config.title ? config.title : null, hide: function (event) { return popoverRequestHandler(event, 'info', true); } }))))) : null,
489
489
  // Additional title on the modal
490
490
  config && config.addedTitle ? (react_1.default.createElement("p", null, config.addedTitle)) : null),
491
491
  react_1.default.createElement("div", { className: "em-beltleft-cta" },
@@ -585,7 +585,7 @@ const MenuBar: React.FunctionComponent<IMenuBarProps> = ({ config, info, button,
585
585
  items={info && info.infoDetails ? info.infoDetails : info}
586
586
  listRow={info && info.listRow ? info.listRow : []}
587
587
  desc={info && info.listRow && info.listRow.length > 0 ? false : true}
588
- title={config && config.title ? config.title.toUpperCase() : null}
588
+ title={config && config.title ? config.title : null}
589
589
  hide={event => popoverRequestHandler(event, 'info', true)}
590
590
  />
591
591
 
@@ -90,7 +90,9 @@ var TestMenuBar = function () {
90
90
  },
91
91
  menubar: {
92
92
  config: {
93
- title: 'Test Title',
93
+ title: react_1.default.createElement("div", null,
94
+ react_1.default.createElement("h3", null, "Hello"),
95
+ react_1.default.createElement("span", null, "Sub Hello")),
94
96
  icon: Asset_1.SVG_REQUEST,
95
97
  showInfo: true,
96
98
  iconType: ['check', "back", 'standard']
@@ -65,7 +65,10 @@ const TestMenuBar = () => {
65
65
  },
66
66
  menubar: {
67
67
  config: {
68
- title: 'Test Title',
68
+ title: <div>
69
+ <h3>Hello</h3>
70
+ <span>Sub Hello</span>
71
+ </div>,
69
72
  icon: SVG_REQUEST,
70
73
  showInfo: true,
71
74
  iconType: ['check', "back", 'standard']