@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "1.0.0-beta.134",
3
+ "version": "1.0.0-beta.136",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/tabs/tabs.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import React, { ReactNode } from "react";
1
+ import React, { CSSProperties, ReactNode } from "react";
2
2
  export interface TabsPanelProps {
3
3
  className?: string;
4
4
  disabled?: boolean;
5
+ style?: CSSProperties;
5
6
  title: ReactNode;
6
7
  }
7
8
  export interface TabsProps {
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);
@@ -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>>;
@@ -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
  });
@@ -0,0 +1,3 @@
1
+ export interface TextLinkVariants {
2
+ default: true;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });