welcome-ui 0.0.0-dev.1744121054156 → 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 +4 -5
- package/dist/Tag.mjs +35 -35
- package/package.json +1 -1
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
|
|
13
|
-
import { D as
|
|
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
|
|
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
|
-
|
|
245
|
+
v,
|
|
247
246
|
{
|
|
248
247
|
ref: s,
|
|
249
248
|
render: t ? (i) => /* @__PURE__ */ e.createElement(t, { ...i }) : void 0,
|
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
|
|
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
|
|
10
|
-
const
|
|
11
|
-
${
|
|
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: (
|
|
18
|
+
shouldForwardProp: (i) => !["hasClickAction", "hasLink", "hasRemoveAction"].includes(i)
|
|
19
19
|
})(
|
|
20
|
-
({ h:
|
|
21
|
-
${
|
|
22
|
-
${
|
|
23
|
-
${
|
|
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
|
-
${
|
|
33
|
+
${r !== 1 && n`
|
|
34
34
|
span,
|
|
35
35
|
p {
|
|
36
36
|
${p}
|
|
37
37
|
}
|
|
38
38
|
`}
|
|
39
|
-
${
|
|
39
|
+
${r === 1 && !a && n`
|
|
40
40
|
justify-content: center;
|
|
41
|
-
${
|
|
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
|
-
${
|
|
50
|
+
${o(`tags.hover.${c}`)};
|
|
51
51
|
}
|
|
52
52
|
`};
|
|
53
53
|
|
|
54
|
-
${
|
|
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: ${
|
|
64
|
-
height: ${
|
|
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 ${
|
|
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
|
-
),
|
|
81
|
-
({ size:
|
|
80
|
+
), k = m.divBox(
|
|
81
|
+
({ size: i }) => n`
|
|
82
82
|
position: absolute;
|
|
83
|
-
${
|
|
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
|
-
),
|
|
91
|
+
), A = m.buttonBox`
|
|
92
92
|
all: unset;
|
|
93
93
|
display: flex;
|
|
94
|
-
`,
|
|
94
|
+
`, T = b(
|
|
95
95
|
({
|
|
96
|
-
as:
|
|
96
|
+
as: i,
|
|
97
97
|
children: t,
|
|
98
98
|
dataTestId: s,
|
|
99
|
-
href:
|
|
100
|
-
onClick:
|
|
99
|
+
href: a,
|
|
100
|
+
onClick: r,
|
|
101
101
|
onRemove: e,
|
|
102
|
-
size:
|
|
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 = !!
|
|
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:
|
|
111
|
+
as: i,
|
|
112
112
|
"data-testid": s,
|
|
113
|
-
hasClickAction: !!
|
|
113
|
+
hasClickAction: !!r,
|
|
114
114
|
hasLink: v,
|
|
115
115
|
hasRemoveAction: !!e,
|
|
116
|
-
href:
|
|
116
|
+
href: a,
|
|
117
117
|
length: x,
|
|
118
|
-
onClick:
|
|
118
|
+
onClick: r,
|
|
119
119
|
ref: u,
|
|
120
|
-
size:
|
|
120
|
+
size: c,
|
|
121
121
|
to: l,
|
|
122
122
|
variant: $,
|
|
123
123
|
...f
|
|
124
124
|
},
|
|
125
125
|
y,
|
|
126
|
-
!!e && /* @__PURE__ */ d.createElement(
|
|
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
|
-
|
|
130
|
+
T.displayName = "Tag";
|
|
131
131
|
const P = h;
|
|
132
132
|
export {
|
|
133
133
|
P as StyledTag,
|
|
134
|
-
|
|
134
|
+
T as Tag
|
|
135
135
|
};
|