@hexure/ui 1.4.2 → 1.5.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,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';
@@ -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
  }
@@ -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';
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.4.2",
3
+ "version": "1.5.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",