@uxf/ui 1.0.0-beta.134 → 1.0.0-beta.136
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/package.json +1 -1
- package/tabs/tabs.d.ts +2 -1
- package/tabs/tabs.js +1 -1
- package/text-link/text-link.d.ts +3 -0
- package/text-link/text-link.js +2 -2
- package/text-link/theme.d.ts +3 -0
- package/text-link/theme.js +2 -0
package/package.json
CHANGED
package/tabs/tabs.d.ts
CHANGED
package/tabs/tabs.js
CHANGED
|
@@ -30,7 +30,7 @@ const useMouseDragToScroll_1 = require("@uxf/core/hooks/useMouseDragToScroll");
|
|
|
30
30
|
const cx_1 = require("@uxf/core/utils/cx");
|
|
31
31
|
const forwardRef_1 = require("@uxf/core/utils/forwardRef");
|
|
32
32
|
const react_2 = __importStar(require("react"));
|
|
33
|
-
const Panel = (props) => react_2.default.createElement("div", { className: props.className }, props.children);
|
|
33
|
+
const Panel = (props) => (react_2.default.createElement("div", { className: props.className, style: props.style }, props.children));
|
|
34
34
|
const TabsRoot = (0, forwardRef_1.forwardRef)("Tabs", (props, ref) => {
|
|
35
35
|
var _a, _b;
|
|
36
36
|
const tabsClassName = (0, cx_1.cx)("uxf-tabs", props.grow && "uxf-tabs--grow", props.className);
|
package/text-link/text-link.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { UseAnchorProps } from "@uxf/core/hooks/useAnchorProps";
|
|
2
2
|
import React, { AnchorHTMLAttributes } from "react";
|
|
3
|
+
import { TextLinkVariants } from "@uxf/ui/text-link/theme";
|
|
4
|
+
export type TextLinkVariant = keyof TextLinkVariants;
|
|
3
5
|
export interface TextLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "type">, UseAnchorProps {
|
|
6
|
+
variant?: TextLinkVariant;
|
|
4
7
|
}
|
|
5
8
|
export declare const TextLink: React.ForwardRefExoticComponent<TextLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
package/text-link/text-link.js
CHANGED
|
@@ -10,10 +10,10 @@ const cx_1 = require("@uxf/core/utils/cx");
|
|
|
10
10
|
const react_1 = __importDefault(require("react"));
|
|
11
11
|
exports.TextLink = (0, forwardRef_1.forwardRef)("TextLink", (props, ref) => {
|
|
12
12
|
// eslint-disable-next-line react/destructuring-assignment
|
|
13
|
-
const { className, children, ...restProps } = props;
|
|
13
|
+
const { className, children, variant, ...restProps } = props;
|
|
14
14
|
const anchorProps = (0, useAnchorProps_1.useAnchorProps)({
|
|
15
15
|
...restProps,
|
|
16
|
-
className: (0, cx_1.cx)("uxf-text-link", className),
|
|
16
|
+
className: (0, cx_1.cx)("uxf-text-link", `uxf-text-link--variant-${variant !== null && variant !== void 0 ? variant : "default"}`, className),
|
|
17
17
|
});
|
|
18
18
|
return (react_1.default.createElement("a", { ref: ref, ...anchorProps }, children));
|
|
19
19
|
});
|