@lumx/react 3.3.1-alpha-uploader-a-11-y.0 → 3.3.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.
package/index.d.ts
CHANGED
|
@@ -2785,7 +2785,7 @@ interface UploaderProps extends GenericProps, HasTheme {
|
|
|
2785
2785
|
/** Variant. */
|
|
2786
2786
|
variant?: UploaderVariant;
|
|
2787
2787
|
/** On click callback. */
|
|
2788
|
-
onClick?: MouseEventHandler<
|
|
2788
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
2789
2789
|
}
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Uploader component.
|
|
@@ -2794,7 +2794,7 @@ interface UploaderProps extends GenericProps, HasTheme {
|
|
|
2794
2794
|
* @param ref Component ref.
|
|
2795
2795
|
* @return React element.
|
|
2796
2796
|
*/
|
|
2797
|
-
declare const Uploader: Comp<UploaderProps,
|
|
2797
|
+
declare const Uploader: Comp<UploaderProps, HTMLDivElement>;
|
|
2798
2798
|
|
|
2799
2799
|
/**
|
|
2800
2800
|
* User block sizes.
|
package/index.js
CHANGED
|
@@ -12880,9 +12880,8 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12880
12880
|
forwardedProps = _objectWithoutProperties(props, _excluded$1o);
|
|
12881
12881
|
// Adjust to square aspect ratio when using circle variants.
|
|
12882
12882
|
const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio.square : aspectRatio;
|
|
12883
|
-
return /*#__PURE__*/React.createElement("
|
|
12884
|
-
ref: ref
|
|
12885
|
-
type: "button"
|
|
12883
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12884
|
+
ref: ref
|
|
12886
12885
|
}, forwardedProps, {
|
|
12887
12886
|
className: classnames(className, handleBasicClasses({
|
|
12888
12887
|
aspectRatio: adjustedAspectRatio,
|