@hexure/ui 1.4.1 → 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
  }
package/dist/esm/index.js CHANGED
@@ -2648,7 +2648,12 @@ var DatePicker = function (_a) {
2648
2648
  setDayOptions(Array.from({ length: dDate.daysInMonth() }, function (_, i) { return ({
2649
2649
  value: i + 1,
2650
2650
  }); }));
2651
- onChange(dDate.format('YYYY-MM-DD'));
2651
+ // Mimicing browser event structure
2652
+ onChange({
2653
+ target: {
2654
+ value: dDate.format('YYYY-MM-DD'),
2655
+ },
2656
+ });
2652
2657
  }, [dDate]);
2653
2658
  var handleDayChange = function (e) {
2654
2659
  var date = parseInt(e.target.value, 10);