@uxf/ui 11.38.3 → 11.40.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.
|
@@ -6,4 +6,4 @@ export interface IconButtonProps extends Omit<ButtonProps, "children" | "isIconB
|
|
|
6
6
|
iconSize?: number;
|
|
7
7
|
label: string;
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.IconButton =
|
|
26
|
+
exports.IconButton = void 0;
|
|
7
27
|
const button_1 = require("@uxf/ui/button");
|
|
8
28
|
const icon_1 = require("@uxf/ui/icon");
|
|
9
|
-
const react_1 =
|
|
10
|
-
|
|
29
|
+
const react_1 = __importStar(require("react"));
|
|
30
|
+
exports.IconButton = (0, react_1.forwardRef)((props, ref) => {
|
|
11
31
|
// eslint-disable-next-line react/destructuring-assignment
|
|
12
32
|
const { className, iconName, iconSize, label, ...buttonProps } = props;
|
|
13
|
-
return (react_1.default.createElement(button_1.Button, { className: `uxf-icon-button ${className !== null && className !== void 0 ? className : ""}`, ...buttonProps },
|
|
33
|
+
return (react_1.default.createElement(button_1.Button, { className: `uxf-icon-button ${className !== null && className !== void 0 ? className : ""}`, ref: ref, ...buttonProps },
|
|
14
34
|
react_1.default.createElement(icon_1.Icon, { "aria-label": label, name: iconName, size: iconSize })));
|
|
15
|
-
}
|
|
35
|
+
});
|
|
36
|
+
exports.IconButton.displayName = "IconButton";
|
package/package.json
CHANGED
package/utils/next-link.d.ts
CHANGED
|
@@ -7,7 +7,11 @@ type InternalLinkProps = {
|
|
|
7
7
|
replace?: boolean;
|
|
8
8
|
scroll?: boolean;
|
|
9
9
|
shallow?: boolean;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* next 14 => prefetch?: boolean;
|
|
12
|
+
* next 15 => prefetch?: boolean | null;
|
|
13
|
+
*/
|
|
14
|
+
prefetch?: any;
|
|
11
15
|
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
12
16
|
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
13
17
|
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|