@mackin.com/styleguide 9.11.2 → 9.11.4
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.esm.js +6 -1
- package/index.js +6 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1988,6 +1988,11 @@ const FileUploader = (p) => {
|
|
|
1988
1988
|
var _a;
|
|
1989
1989
|
e.preventDefault();
|
|
1990
1990
|
(_a = form.current) === null || _a === void 0 ? void 0 : _a.classList.remove(hoverClass);
|
|
1991
|
+
if (!p.multiple && e.dataTransfer.files.length > 1) {
|
|
1992
|
+
// we're mimicing the behavior of the file system "pick file" here.
|
|
1993
|
+
// it does not allow for multiple picks at all so we're just going to do the same and ignore.
|
|
1994
|
+
return;
|
|
1995
|
+
}
|
|
1991
1996
|
onFilesChange(e.dataTransfer.files);
|
|
1992
1997
|
}, onSubmit: e => {
|
|
1993
1998
|
if (!files) {
|
|
@@ -3039,7 +3044,7 @@ const generateLinkStyles = (props, theme) => {
|
|
|
3039
3044
|
};
|
|
3040
3045
|
|
|
3041
3046
|
const OmniLink = (props) => {
|
|
3042
|
-
const { noRouter, rightIcon, leftIcon, block, iconBlock, variant, round, small, colorOverride, children, ref } = props, linkProps = __rest(props, ["noRouter", "rightIcon", "leftIcon", "block", "iconBlock", "variant", "round", "small", "colorOverride", "children", "ref"]);
|
|
3047
|
+
const { noRouter, rightIcon, leftIcon, block, iconBlock, variant, round, small, colorOverride, children, ref, waiting } = props, linkProps = __rest(props, ["noRouter", "rightIcon", "leftIcon", "block", "iconBlock", "variant", "round", "small", "colorOverride", "children", "ref", "waiting"]);
|
|
3043
3048
|
const theme = useThemeSafely();
|
|
3044
3049
|
const linkStyles = generateLinkStyles(props, theme);
|
|
3045
3050
|
const mainClassName = cx('omniLink', linkStyles, props.className);
|
package/index.js
CHANGED
|
@@ -2015,6 +2015,11 @@ const FileUploader = (p) => {
|
|
|
2015
2015
|
var _a;
|
|
2016
2016
|
e.preventDefault();
|
|
2017
2017
|
(_a = form.current) === null || _a === void 0 ? void 0 : _a.classList.remove(hoverClass);
|
|
2018
|
+
if (!p.multiple && e.dataTransfer.files.length > 1) {
|
|
2019
|
+
// we're mimicing the behavior of the file system "pick file" here.
|
|
2020
|
+
// it does not allow for multiple picks at all so we're just going to do the same and ignore.
|
|
2021
|
+
return;
|
|
2022
|
+
}
|
|
2018
2023
|
onFilesChange(e.dataTransfer.files);
|
|
2019
2024
|
}, onSubmit: e => {
|
|
2020
2025
|
if (!files) {
|
|
@@ -3066,7 +3071,7 @@ const generateLinkStyles = (props, theme) => {
|
|
|
3066
3071
|
};
|
|
3067
3072
|
|
|
3068
3073
|
const OmniLink = (props) => {
|
|
3069
|
-
const { noRouter, rightIcon, leftIcon, block, iconBlock, variant, round, small, colorOverride, children, ref } = props, linkProps = __rest(props, ["noRouter", "rightIcon", "leftIcon", "block", "iconBlock", "variant", "round", "small", "colorOverride", "children", "ref"]);
|
|
3074
|
+
const { noRouter, rightIcon, leftIcon, block, iconBlock, variant, round, small, colorOverride, children, ref, waiting } = props, linkProps = __rest(props, ["noRouter", "rightIcon", "leftIcon", "block", "iconBlock", "variant", "round", "small", "colorOverride", "children", "ref", "waiting"]);
|
|
3070
3075
|
const theme = useThemeSafely();
|
|
3071
3076
|
const linkStyles = generateLinkStyles(props, theme);
|
|
3072
3077
|
const mainClassName = css.cx('omniLink', linkStyles, props.className);
|