@hexure/ui 1.4.2 → 1.5.1

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,12 @@
1
+ import { FC } from 'react';
2
+ import { AccessibleProps } from '../../utils/Accessibility';
3
+ export interface LinkProps extends AccessibleProps {
4
+ /** Set the text to be displayed */
5
+ children: string;
6
+ /** Display small text */
7
+ small?: boolean;
8
+ /** A method to execute when this component is clicked */
9
+ onClick?: (e?: any) => void;
10
+ }
11
+ declare const Link: FC<LinkProps>;
12
+ export default Link;
@@ -0,0 +1 @@
1
+ export { default } from './Link';
@@ -12,6 +12,7 @@ export { default as Field } from './components/Field';
12
12
  export { default as FileUpload } from './components/FileUpload';
13
13
  export { default as Heading } from './components/Heading';
14
14
  export { default as Input } from './components/Input';
15
+ export { default as Link } from './components/Link';
15
16
  export { default as Logo } from './components/Logo';
16
17
  export { default as Modal } from './components/Modal';
17
18
  export { default as MoreMenu } from './components/MoreMenu';
@@ -2,7 +2,7 @@ export interface AccessibleProps {
2
2
  /** Set the css id for the main wrapping html element */
3
3
  id?: string;
4
4
  /** Set the css class for the main wrapping html element */
5
- class?: string;
5
+ className?: string;
6
6
  /** Set the name attrbute on the main wrapping html element */
7
7
  name?: string;
8
8
  /** Set the role of the main wrapping html element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques */
@@ -10,5 +10,5 @@ export interface AccessibleProps {
10
10
  /** Set the order in which this element is focused. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex */
11
11
  tabIndex?: number;
12
12
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
13
- ariaLabel?: string;
13
+ 'aria-label'?: string;
14
14
  }
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ interface AccessibleProps {
4
4
  /** Set the css id for the main wrapping html element */
5
5
  id?: string;
6
6
  /** Set the css class for the main wrapping html element */
7
- class?: string;
7
+ className?: string;
8
8
  /** Set the name attrbute on the main wrapping html element */
9
9
  name?: string;
10
10
  /** Set the role of the main wrapping html element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques */
@@ -12,7 +12,7 @@ interface AccessibleProps {
12
12
  /** Set the order in which this element is focused. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex */
13
13
  tabIndex?: number;
14
14
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
15
- ariaLabel?: string;
15
+ 'aria-label'?: string;
16
16
  }
17
17
 
18
18
  interface AccordionProps extends AccessibleProps {
@@ -251,6 +251,16 @@ interface InputProps extends AccessibleProps {
251
251
  }
252
252
  declare const Input: FC<InputProps>;
253
253
 
254
+ interface LinkProps extends AccessibleProps {
255
+ /** Set the text to be displayed */
256
+ children: string;
257
+ /** Display small text */
258
+ small?: boolean;
259
+ /** A method to execute when this component is clicked */
260
+ onClick?: (e?: any) => void;
261
+ }
262
+ declare const Link: FC<LinkProps>;
263
+
254
264
  interface LogoProps extends AccessibleProps {
255
265
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
256
266
  height?: string;
@@ -441,4 +451,4 @@ interface ZeroStateProps extends AccessibleProps {
441
451
  }
442
452
  declare const ZeroState: FC<ZeroStateProps>;
443
453
 
444
- export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
454
+ export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input, Link, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.4.2",
3
+ "version": "1.5.1",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",