@hexure/ui 1.8.5 → 1.8.6

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 CHANGED
@@ -2061,6 +2061,13 @@ const button_type_mapping = {
2061
2061
  badge_bg_color: '#fff',
2062
2062
  badge_content_color: Colors.RED.Hex,
2063
2063
  },
2064
+ green: {
2065
+ background_color: Colors.GREEN.Hex,
2066
+ border_color: Colors.GREEN.Hex,
2067
+ content_color: '#fff',
2068
+ badge_bg_color: '#fff',
2069
+ badge_content_color: Colors.GREEN.Hex,
2070
+ },
2064
2071
  };
2065
2072
  const StyledButton = styled.button `
2066
2073
  height: ${props => (props.$small ? '30px' : '40px')};
@@ -3809,14 +3816,14 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu }) => {
3809
3816
  React.createElement(Info, null,
3810
3817
  React.createElement(Heading, { type: 'secondary' }, title),
3811
3818
  breadcrumbs ? (React.createElement(Breadcrumbs, null, breadcrumbs.map((crumb, i) => {
3812
- return (React.createElement(React.Fragment, null,
3819
+ return (React.createElement(React.Fragment, { key: i },
3813
3820
  crumb.onClick ? (React.createElement(Link, { onClick: crumb.onClick, small: true }, crumb.label)) : (React.createElement(Copy, { type: 'small' }, crumb.label)),
3814
3821
  i + 1 < breadcrumbs.length ? React.createElement(Icon.Icon, { path: js.mdiChevronRight, size: '14px' }) : null));
3815
3822
  }))) : null),
3816
3823
  actions ? (React.createElement(Actions, null,
3817
- actions.map(action => {
3824
+ actions.map((action, i) => {
3818
3825
  const { label } = action, buttonProps = __rest(action, ["label"]);
3819
- return (React.createElement(Button, Object.assign({}, buttonProps, { small: true }), label));
3826
+ return (React.createElement(Button, Object.assign({}, buttonProps, { key: i, small: true }), label));
3820
3827
  }),
3821
3828
  menuItems.length ? (React.createElement(ButtonMenu, { label: label, menuItems: menuItems, small: true })) : null)) : null));
3822
3829
  };