@hexure/ui 1.10.1 → 1.11.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.
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { ButtonProps } from '../Button/Button';
3
+ export interface AppHeaderProps {
4
+ logoUrl: string;
5
+ buttons: ButtonProps[];
6
+ }
7
+ declare const AppHeader: FC<AppHeaderProps>;
8
+ export default AppHeader;
@@ -0,0 +1 @@
1
+ export { default } from './AppHeader';
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ import { AccessibleProps } from '../../utils/Accessibility';
3
+ export interface Menu extends AccessibleProps {
4
+ icon: string;
5
+ label: string;
6
+ onClick: () => void;
7
+ is_active?: boolean;
8
+ menu?: {
9
+ label: string;
10
+ onClick: () => void;
11
+ is_active?: boolean;
12
+ }[];
13
+ }
14
+ export interface AppMenuProps extends AccessibleProps {
15
+ menu: Menu[];
16
+ isCollapsed?: boolean;
17
+ footerTag?: string;
18
+ }
19
+ declare const AppMenu: FC<AppMenuProps>;
20
+ export default AppMenu;
@@ -0,0 +1 @@
1
+ export { default } from './AppMenu';
@@ -1,6 +1,7 @@
1
1
  export { default as Accordion } from './components/Accordion';
2
2
  export { default as ActionDialog } from './components/ActionDialog';
3
3
  export { default as Alert } from './components/Alert';
4
+ export { default as AppHeader } from './components/AppHeader';
4
5
  export { default as BulkActionBar } from './components/BulkActionBar';
5
6
  export { default as Button } from './components/Button';
6
7
  export { default as ButtonMenu } from './components/ButtonMenu';
package/dist/index.d.ts CHANGED
@@ -65,21 +65,7 @@ interface AlertProps extends AccessibleProps {
65
65
  }
66
66
  declare const Alert: FC<AlertProps>;
67
67
 
68
- interface ButtonProps$3 {
69
- children: string;
70
- onClick: (e?: any) => void;
71
- format?: 'primary' | 'secondary';
72
- icon?: string;
73
- }
74
- interface BulkActionBarProps extends AccessibleProps {
75
- actions?: ButtonProps$3[];
76
- errorMsg?: string;
77
- onClear: (e?: any) => void;
78
- selectedCount?: number;
79
- }
80
- declare const BulkActionBar: FC<BulkActionBarProps>;
81
-
82
- interface ButtonProps$2 extends AccessibleProps {
68
+ interface ButtonProps$3 extends AccessibleProps {
83
69
  /** Display a number badge on the right side of the button */
84
70
  badge?: number;
85
71
  /** Define the button label. */
@@ -101,7 +87,27 @@ interface ButtonProps$2 extends AccessibleProps {
101
87
  /** Define which button format to display. By default the Primary button will be used. */
102
88
  format?: 'primary' | 'secondary' | 'red' | 'green';
103
89
  }
104
- declare const Button: FC<ButtonProps$2>;
90
+ declare const Button: FC<ButtonProps$3>;
91
+
92
+ interface AppHeaderProps {
93
+ logoUrl: string;
94
+ buttons: ButtonProps$3[];
95
+ }
96
+ declare const AppHeader: FC<AppHeaderProps>;
97
+
98
+ interface ButtonProps$2 {
99
+ children: string;
100
+ onClick: (e?: any) => void;
101
+ format?: 'primary' | 'secondary';
102
+ icon?: string;
103
+ }
104
+ interface BulkActionBarProps extends AccessibleProps {
105
+ actions?: ButtonProps$2[];
106
+ errorMsg?: string;
107
+ onClear: (e?: any) => void;
108
+ selectedCount?: number;
109
+ }
110
+ declare const BulkActionBar: FC<BulkActionBarProps>;
105
111
 
106
112
  interface MenuItemProps extends AccessibleProps {
107
113
  icon?: string;
@@ -645,4 +651,4 @@ declare const EditableTheme: {
645
651
  };
646
652
  };
647
653
 
648
- export { AccessibleProps, Accordion, ActionDialog, Alert, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
654
+ export { AccessibleProps, Accordion, ActionDialog, Alert, AppHeader, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",