welcome-ui 8.0.3 → 8.0.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.
Files changed (2) hide show
  1. package/dist/Link.mjs +12 -12
  2. package/package.json +1 -1
package/dist/Link.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import i from "react";
3
- import h, { th as e, typography as x, css as g } from "@xstyled/styled-components";
3
+ import f, { th as e, typography as h, css as g } from "@xstyled/styled-components";
4
4
  import { UniversalLink as k } from "./UniversalLink.mjs";
5
- import { shouldForwardProp as y, forwardRef as $ } from "./System.mjs";
6
5
  import "./Icon.mjs";
7
- import { E as w } from "./index-DqBUFsqP.mjs";
8
- const E = h(k).withConfig({ shouldForwardProp: y })(
6
+ import { E as y } from "./index-DqBUFsqP.mjs";
7
+ import { forwardRef as $ } from "./System.mjs";
8
+ const E = f(k)(
9
9
  ({ isExternal: t, variant: n = "primary" }) => g`
10
10
  display: inline-flex;
11
11
  flex-direction: row;
@@ -24,7 +24,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
24
24
  ${e("links.default")};
25
25
  ${e(`links.${n}.default`)};
26
26
  ${t && e("links.withExternalLink")};
27
- ${x};
27
+ ${h};
28
28
  }
29
29
 
30
30
  &:hover,
@@ -47,7 +47,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
47
47
  margin-right: xs;
48
48
  }
49
49
  `
50
- ), L = (t) => {
50
+ ), w = (t) => {
51
51
  var n, r, o;
52
52
  return (
53
53
  // <span />
@@ -55,22 +55,22 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
55
55
  ((n = t == null ? void 0 : t.props) == null ? void 0 : n.as) === "span" || // <FormattedMessage />
56
56
  ((r = t == null ? void 0 : t.props) == null ? void 0 : r.tagName) === "span" || ((o = t == null ? void 0 : t.props) == null ? void 0 : o["data-wui-link"]) === !0
57
57
  );
58
- }, a = (t) => typeof t == "object" ? L(t) : typeof t == "string", d = ({ children: t, isExternal: n }) => /* @__PURE__ */ i.createElement("span", { className: "wui-text" }, t, n && /* @__PURE__ */ i.createElement(w, { mb: "-2px", ml: "sm", size: "sm" })), W = $((t, n) => {
59
- const { children: r, dataTestId: o, disabled: m, isExternal: s, variant: c = "primary", ...l } = t, f = a(r) ? /* @__PURE__ */ i.createElement(d, { isExternal: s }, r) : i.Children.map(r, (p) => a(p) ? /* @__PURE__ */ i.createElement(d, { isExternal: s }, p) : p);
58
+ }, a = (t) => typeof t == "object" ? w(t) : typeof t == "string", m = ({ children: t, isExternal: n }) => /* @__PURE__ */ i.createElement("span", { className: "wui-text" }, t, n && /* @__PURE__ */ i.createElement(y, { mb: "-2px", ml: "sm", size: "sm" })), L = $((t, n) => {
59
+ const { children: r, dataTestId: o, disabled: d, isExternal: s, variant: c = "primary", ...l } = t, x = a(r) ? /* @__PURE__ */ i.createElement(m, { isExternal: s }, r) : i.Children.map(r, (p) => a(p) ? /* @__PURE__ */ i.createElement(m, { isExternal: s }, p) : p);
60
60
  return /* @__PURE__ */ i.createElement(
61
61
  E,
62
62
  {
63
63
  "data-testid": o,
64
- disabled: m,
64
+ disabled: d,
65
65
  isExternal: s,
66
66
  ref: n,
67
67
  variant: c,
68
68
  ...l
69
69
  },
70
- f
70
+ x
71
71
  );
72
72
  });
73
- W.displayName = "Link";
73
+ L.displayName = "Link";
74
74
  export {
75
- W as Link
75
+ L as Link
76
76
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "Customizable design system with react • styled-components • styled-system and ariakit.",
5
5
  "files": [
6
6
  "dist"