welcome-ui 0.0.0-dev.1743704848626 → 0.0.0-dev.1745599321604

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/dist/Drawer.mjs CHANGED
@@ -9,8 +9,8 @@ import { Text as f } from "./Text.mjs";
9
9
  import "./Icon.mjs";
10
10
  import { A as D } from "./index-Bkl89twW.mjs";
11
11
  import { Button as B } from "./Button.mjs";
12
- import { D as k, u as v } from "./JC64G2H7-BzklVBKM.mjs";
13
- import { D as C } from "./AXB53BZF-BOEe01VW.mjs";
12
+ import { D as k, u as C } from "./JC64G2H7-BzklVBKM.mjs";
13
+ import { D as v } from "./AXB53BZF-BOEe01VW.mjs";
14
14
  const I = (t) => {
15
15
  switch (t) {
16
16
  case "top":
@@ -144,7 +144,6 @@ const I = (t) => {
144
144
  },
145
145
  /* @__PURE__ */ e.createElement(f, { m: "0", variant: "h3", w: "100%" }, t)
146
146
  ), L = a.divBox`
147
- overflow-y: scroll;
148
147
  flex: 1;
149
148
  margin: 0 auto;
150
149
  width: 100%;
@@ -237,13 +236,13 @@ const I = (t) => {
237
236
  )
238
237
  );
239
238
  function nt(t = {}) {
240
- return v({ animated: !0, ...t });
239
+ return C({ animated: !0, ...t });
241
240
  }
242
241
  const q = ({
243
242
  hideOnInteractOutside: t = !0,
244
243
  ...r
245
244
  }) => /* @__PURE__ */ e.createElement(g, { hideOnInteractOutside: t, ...r }), h = d(({ as: t, store: r, ...o }, s) => /* @__PURE__ */ e.createElement(
246
- C,
245
+ v,
247
246
  {
248
247
  ref: s,
249
248
  render: t ? (i) => /* @__PURE__ */ e.createElement(t, { ...i }) : void 0,
package/dist/Link.mjs CHANGED
@@ -1,12 +1,12 @@
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 h, { system as x, th as e, typography as g, css as y } from "@xstyled/styled-components";
4
4
  import { UniversalLink as k } from "./UniversalLink.mjs";
5
- import { shouldForwardProp as y, forwardRef as $ } from "./System.mjs";
5
+ import { shouldForwardProp as $, forwardRef as w } from "./System.mjs";
6
6
  import "./Icon.mjs";
7
- import { E as w } from "./index-DqBUFsqP.mjs";
8
- const E = h(k).withConfig({ shouldForwardProp: y })(
9
- ({ isExternal: t, variant: n = "primary" }) => g`
7
+ import { E } from "./index-DqBUFsqP.mjs";
8
+ const L = h(k).withConfig({ shouldForwardProp: $ })(
9
+ ({ isExternal: t, variant: n = "primary" }) => y`
10
10
  display: inline-flex;
11
11
  flex-direction: row;
12
12
  align-items: center;
@@ -14,6 +14,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
14
14
  line-height: 1.5;
15
15
  text-decoration: none;
16
16
  cursor: pointer;
17
+ ${x}
17
18
 
18
19
  > .wui-text {
19
20
  margin-right: -2px;
@@ -24,7 +25,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
24
25
  ${e("links.default")};
25
26
  ${e(`links.${n}.default`)};
26
27
  ${t && e("links.withExternalLink")};
27
- ${x};
28
+ ${g};
28
29
  }
29
30
 
30
31
  &:hover,
@@ -47,7 +48,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
47
48
  margin-right: xs;
48
49
  }
49
50
  `
50
- ), L = (t) => {
51
+ ), W = (t) => {
51
52
  var n, r, o;
52
53
  return (
53
54
  // <span />
@@ -55,10 +56,10 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
55
56
  ((n = t == null ? void 0 : t.props) == null ? void 0 : n.as) === "span" || // <FormattedMessage />
56
57
  ((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
58
  );
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
+ }, a = (t) => typeof t == "object" ? W(t) : typeof t == "string", d = ({ children: t, isExternal: n }) => /* @__PURE__ */ i.createElement("span", { className: "wui-text" }, t, n && /* @__PURE__ */ i.createElement(E, { mb: "-2px", ml: "sm", size: "sm" })), b = w((t, n) => {
59
60
  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);
60
61
  return /* @__PURE__ */ i.createElement(
61
- E,
62
+ L,
62
63
  {
63
64
  "data-testid": o,
64
65
  disabled: m,
@@ -70,7 +71,7 @@ const E = h(k).withConfig({ shouldForwardProp: y })(
70
71
  f
71
72
  );
72
73
  });
73
- W.displayName = "Link";
74
+ b.displayName = "Link";
74
75
  export {
75
- W as Link
76
+ b as Link
76
77
  };
package/dist/Tag.mjs CHANGED
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import d from "react";
3
3
  import { w as C } from "./wrap-children-aq69jtFP.mjs";
4
- import m, { th as i, system as w, css as n } from "@xstyled/styled-components";
4
+ import m, { th as o, system as w, css as n } from "@xstyled/styled-components";
5
5
  import { o as p } from "./overflow-ellipsis-DGV5Kgt-.mjs";
6
6
  import { g } from "./get-max-width-height-DoUro2T7.mjs";
7
7
  import { StyledIcon as S } from "./Icon.mjs";
8
8
  import { forwardRef as b } from "./System.mjs";
9
- import { C as A } from "./index-C7zM96J_.mjs";
10
- const E = (o, t, s) => n`
11
- ${i(`tags.shape.${o}`)}
9
+ import { C as E } from "./index-C7zM96J_.mjs";
10
+ const I = (i, t, s) => n`
11
+ ${o(`tags.shape.${i}`)}
12
12
  padding: 0;
13
13
  ${(t || s) && n`
14
14
  width: ${g(t || "0", s)};
15
15
  height: ${g(t || "0", s)};
16
16
  `}
17
17
  `, h = m.div.withConfig({
18
- shouldForwardProp: (o) => !["hasClickAction", "hasLink", "hasRemoveAction"].includes(o)
18
+ shouldForwardProp: (i) => !["hasClickAction", "hasLink", "hasRemoveAction"].includes(i)
19
19
  })(
20
- ({ h: o, hasClickAction: t, hasLink: s, hasRemoveAction: c, length: a, size: e, variant: r, w: l }) => n`
21
- ${i("tags.default")};
22
- ${i(`tags.variants.${r}`)};
23
- ${i(`tags.sizes.${e}`)}
20
+ ({ h: i, hasClickAction: t, hasLink: s, hasRemoveAction: a, length: r, size: e, variant: c, w: l }) => n`
21
+ ${o("tags.default")};
22
+ ${o(`tags.variants.${c}`)};
23
+ ${o(`tags.sizes.${e}`)}
24
24
  position: relative;
25
25
  display: inline-flex;
26
26
  align-items: center;
@@ -30,15 +30,15 @@ const E = (o, t, s) => n`
30
30
  max-width: 100%;
31
31
  ${p}
32
32
  ${w}
33
- ${a !== 1 && n`
33
+ ${r !== 1 && n`
34
34
  span,
35
35
  p {
36
36
  ${p}
37
37
  }
38
38
  `}
39
- ${a === 1 && n`
39
+ ${r === 1 && !a && n`
40
40
  justify-content: center;
41
- ${E(e, l, o)};
41
+ ${I(e, l, i)};
42
42
  `};
43
43
 
44
44
  ${(s || t) && n`
@@ -47,11 +47,11 @@ const E = (o, t, s) => n`
47
47
 
48
48
  &:hover,
49
49
  &:focus {
50
- ${i(`tags.hover.${r}`)};
50
+ ${o(`tags.hover.${c}`)};
51
51
  }
52
52
  `};
53
53
 
54
- ${c && n`
54
+ ${a && n`
55
55
  padding-right: xl;
56
56
  `}
57
57
 
@@ -60,15 +60,15 @@ const E = (o, t, s) => n`
60
60
  }
61
61
 
62
62
  & > svg {
63
- width: ${i(`tags.icon.${e}`)};
64
- height: ${i(`tags.icon.${e}`)};
63
+ width: ${o(`tags.icon.${e}`)};
64
+ height: ${o(`tags.icon.${e}`)};
65
65
  }
66
66
 
67
67
  > *:not(:only-child) {
68
68
  ${/* sc-selector */
69
69
  S}:last-child {
70
70
  opacity: 1;
71
- transition: opacity ${i.transition("medium")};
71
+ transition: opacity ${o.transition("medium")};
72
72
  cursor: pointer;
73
73
 
74
74
  &:hover {
@@ -77,10 +77,10 @@ const E = (o, t, s) => n`
77
77
  }
78
78
  }
79
79
  `
80
- ), I = m.divBox(
81
- ({ size: o }) => n`
80
+ ), k = m.divBox(
81
+ ({ size: i }) => n`
82
82
  position: absolute;
83
- ${i(`tags.sizes.${o}`)};
83
+ ${o(`tags.sizes.${i}`)};
84
84
  top: 0;
85
85
  bottom: 0;
86
86
  right: 0;
@@ -88,48 +88,48 @@ const E = (o, t, s) => n`
88
88
  align-items: center;
89
89
  justify-content: center;
90
90
  `
91
- ), k = m.buttonBox`
91
+ ), A = m.buttonBox`
92
92
  all: unset;
93
93
  display: flex;
94
- `, R = b(
94
+ `, T = b(
95
95
  ({
96
- as: o,
96
+ as: i,
97
97
  children: t,
98
98
  dataTestId: s,
99
- href: c,
100
- onClick: a,
99
+ href: a,
100
+ onClick: r,
101
101
  onRemove: e,
102
- size: r = "md",
102
+ size: c = "md",
103
103
  to: l,
104
104
  variant: $ = "default",
105
105
  ...f
106
106
  }, u) => {
107
- const y = C(t), x = !!(t || t === 0) && ["number", "string"].includes(typeof t) ? t.toString().length : void 0, v = !!c || !!l;
107
+ const y = C(t), x = !!(t || t === 0) && ["number", "string"].includes(typeof t) ? t.toString().length : void 0, v = !!a || !!l;
108
108
  return /* @__PURE__ */ d.createElement(
109
109
  h,
110
110
  {
111
- as: o,
111
+ as: i,
112
112
  "data-testid": s,
113
- hasClickAction: !!a,
113
+ hasClickAction: !!r,
114
114
  hasLink: v,
115
115
  hasRemoveAction: !!e,
116
- href: c,
116
+ href: a,
117
117
  length: x,
118
- onClick: a,
118
+ onClick: r,
119
119
  ref: u,
120
- size: r,
120
+ size: c,
121
121
  to: l,
122
122
  variant: $,
123
123
  ...f
124
124
  },
125
125
  y,
126
- !!e && /* @__PURE__ */ d.createElement(I, { size: r }, /* @__PURE__ */ d.createElement(k, { onClick: e, title: "Remove", type: "button" }, /* @__PURE__ */ d.createElement(A, { size: "xs", title: "Remove" })))
126
+ !!e && /* @__PURE__ */ d.createElement(k, { size: c }, /* @__PURE__ */ d.createElement(A, { onClick: e, title: "Remove", type: "button" }, /* @__PURE__ */ d.createElement(E, { size: "xs", title: "Remove" })))
127
127
  );
128
128
  }
129
129
  );
130
- R.displayName = "Tag";
130
+ T.displayName = "Tag";
131
131
  const P = h;
132
132
  export {
133
133
  P as StyledTag,
134
- R as Tag
134
+ T as Tag
135
135
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "0.0.0-dev.1743704848626",
3
+ "version": "0.0.0-dev.1745599321604",
4
4
  "description": "Customizable design system with react • styled-components • styled-system and ariakit.",
5
5
  "files": [
6
6
  "dist"