@koide-labs/ui 0.0.3 → 0.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.
- package/README.md +12 -12
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert-dialog/index.js +2 -1
- package/dist/components/anchor/index.js +14 -13
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/badge/index.js +14 -13
- package/dist/components/button/index.js +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/code/index.js +3 -2
- package/dist/components/collapse/index.js +6 -5
- package/dist/components/command/index.js +1 -0
- package/dist/components/context-menu/index.js +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/heading/index.js +11 -10
- package/dist/components/icon/index.js +27 -26
- package/dist/components/icon-button/index.js +9 -9
- package/dist/components/inline-code/index.js +10 -9
- package/dist/components/input/index.js +7 -6
- package/dist/components/meter/index.js +1 -0
- package/dist/components/multiline-input/index.js +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/password-input/index.js +4 -3
- package/dist/components/pill/index.js +11 -10
- package/dist/components/popover/index.js +1 -0
- package/dist/components/preview-card/index.js +70 -69
- package/dist/components/radio/index.js +39 -38
- package/dist/components/search-bar/index.js +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/separator/index.js +3 -2
- package/dist/components/slider/index.js +1 -0
- package/dist/components/spinner/index.js +5 -4
- package/dist/components/stacked-avatars/index.js +1 -0
- package/dist/components/status-banner/index.js +1 -0
- package/dist/components/surface/index.js +14 -13
- package/dist/components/switch/index.js +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/text/index.js +2 -1
- package/dist/components/theme-provider/index.js +3 -2
- package/dist/components/timestamp/index.js +1 -0
- package/dist/components/toast/index.js +4 -3
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/view/index.js +1 -0
- package/dist/components/visually-hidden/index.js +3 -2
- package/dist/index.js +16 -16
- package/dist/index11.css +1 -1
- package/dist/index12.css +1 -1
- package/dist/index13.css +1 -1
- package/dist/index14.css +1 -1
- package/dist/index15.css +1 -1
- package/dist/index16.css +1 -1
- package/dist/index17.css +1 -1
- package/dist/index18.css +1 -1
- package/package.json +8 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import "../../styles/tokens.js";
|
|
4
4
|
import { Icon as u } from "../icon/index.js";
|
|
5
5
|
import { View as b } from "../view/index.js";
|
|
6
6
|
import { B as m } from "../../Button-DrPFFzo7.js";
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../index12.css';const _ = {
|
|
8
8
|
"icon-button": "_icon-button_1xtat_1",
|
|
9
9
|
"icon-button_size_sm": "_icon-button_size_sm_1xtat_11",
|
|
10
10
|
"icon-button_size_md": "_icon-button_size_md_1xtat_15",
|
|
@@ -13,12 +13,12 @@ import '../../index11.css';const n = {
|
|
|
13
13
|
"icon-button_size_2xl": "_icon-button_size_2xl_1xtat_27",
|
|
14
14
|
"icon-button_size_3xl": "_icon-button_size_3xl_1xtat_31"
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function d({
|
|
17
17
|
icon: i,
|
|
18
18
|
alt: e,
|
|
19
19
|
size: o = "md",
|
|
20
20
|
render: c,
|
|
21
|
-
...
|
|
21
|
+
...n
|
|
22
22
|
}) {
|
|
23
23
|
return /* @__PURE__ */ t(
|
|
24
24
|
b,
|
|
@@ -28,18 +28,18 @@ function f({
|
|
|
28
28
|
m,
|
|
29
29
|
{
|
|
30
30
|
className: s(
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_["icon-button"],
|
|
32
|
+
_[`icon-button_size_${o}`]
|
|
33
33
|
),
|
|
34
|
-
focusableWhenDisabled: !!
|
|
34
|
+
focusableWhenDisabled: !!n.loading,
|
|
35
35
|
render: c
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
...
|
|
38
|
+
...n,
|
|
39
39
|
children: /* @__PURE__ */ t(u, { name: i, size: o, alt: e })
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
d as IconButton
|
|
45
45
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c
|
|
3
|
-
import { Surface as
|
|
3
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { Surface as r } from "../surface/index.js";
|
|
4
5
|
import { Text as l } from "../text/index.js";
|
|
5
|
-
import '../../
|
|
6
|
+
import '../../index13.css';const o = {
|
|
6
7
|
"inline-code": "_inline-code_ai49m_1",
|
|
7
8
|
"inline-code_colorway": "_inline-code_colorway_ai49m_11"
|
|
8
|
-
}, a = ({ color:
|
|
9
|
-
|
|
9
|
+
}, a = ({ color: i, ...n }) => /* @__PURE__ */ e(
|
|
10
|
+
r,
|
|
10
11
|
{
|
|
11
12
|
elevated: !0,
|
|
12
|
-
className:
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
className: c(
|
|
14
|
+
o["inline-code"],
|
|
15
|
+
i && o["inline-code_colorway"]
|
|
15
16
|
),
|
|
16
|
-
color:
|
|
17
|
+
color: i,
|
|
17
18
|
children: /* @__PURE__ */ e(l, { size: "sm", color: "inherit", children: /* @__PURE__ */ e("code", { ...n }) })
|
|
18
19
|
}
|
|
19
20
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
3
|
import { c as O } from "../../clsx-OuTLNxxd.js";
|
|
3
4
|
import { View as S } from "../view/index.js";
|
|
@@ -19,16 +20,16 @@ const V = /* @__PURE__ */ d.forwardRef(function(a, i) {
|
|
|
19
20
|
value: o,
|
|
20
21
|
disabled: E = !1,
|
|
21
22
|
onValueChange: F,
|
|
22
|
-
defaultValue:
|
|
23
|
+
defaultValue: c,
|
|
23
24
|
...I
|
|
24
25
|
} = a, {
|
|
25
|
-
state:
|
|
26
|
+
state: f,
|
|
26
27
|
name: D,
|
|
27
28
|
disabled: P
|
|
28
29
|
} = g(), s = P || E, m = D ?? y, T = d.useMemo(() => ({
|
|
29
|
-
...
|
|
30
|
+
...f,
|
|
30
31
|
disabled: s
|
|
31
|
-
}), [
|
|
32
|
+
}), [f, s]), {
|
|
32
33
|
setTouched: p,
|
|
33
34
|
setDirty: h,
|
|
34
35
|
validityData: w,
|
|
@@ -47,7 +48,7 @@ const V = /* @__PURE__ */ d.forwardRef(function(a, i) {
|
|
|
47
48
|
}, [t.inputRef, r, o]);
|
|
48
49
|
const [C, L] = j({
|
|
49
50
|
controlled: o,
|
|
50
|
-
default:
|
|
51
|
+
default: c,
|
|
51
52
|
name: "FieldControl",
|
|
52
53
|
state: "value"
|
|
53
54
|
}), k = o !== void 0, B = _((e, n) => {
|
|
@@ -72,7 +73,7 @@ const V = /* @__PURE__ */ d.forwardRef(function(a, i) {
|
|
|
72
73
|
...k ? {
|
|
73
74
|
value: C
|
|
74
75
|
} : {
|
|
75
|
-
defaultValue:
|
|
76
|
+
defaultValue: c
|
|
76
77
|
},
|
|
77
78
|
onChange(e) {
|
|
78
79
|
const n = e.currentTarget.value;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
3
|
import { useState as i } from "react";
|
|
3
4
|
import { IconButton as _ } from "../icon-button/index.js";
|
|
4
5
|
import { Input as a } from "../input/index.js";
|
|
5
|
-
import { View as
|
|
6
|
-
import '../../
|
|
6
|
+
import { View as u } from "../view/index.js";
|
|
7
|
+
import '../../index14.css';const t = {
|
|
7
8
|
"password-input__root": "_password-input__root_g27z2_1",
|
|
8
9
|
"password-input__eye": "_password-input__eye_g27z2_5"
|
|
9
10
|
};
|
|
10
11
|
function y(e) {
|
|
11
12
|
const [o, r] = i(!1);
|
|
12
|
-
return /* @__PURE__ */ n(
|
|
13
|
+
return /* @__PURE__ */ n(u, { className: t["password-input__root"], children: [
|
|
13
14
|
/* @__PURE__ */ s(a, { type: o ? "text" : "password", ...e }),
|
|
14
15
|
/* @__PURE__ */ s(
|
|
15
16
|
_,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { textify as s } from "../../-utils.js";
|
|
4
5
|
import { Icon as r } from "../icon/index.js";
|
|
5
|
-
import { View as
|
|
6
|
-
import '../../
|
|
6
|
+
import { View as m } from "../view/index.js";
|
|
7
|
+
import '../../index15.css';const f = "_pill_wezrb_1", a = "_pill_icon_left_wezrb_16", u = "_pill_icon_right_wezrb_20", _ = {
|
|
7
8
|
pill: f,
|
|
8
9
|
pill_icon_left: a,
|
|
9
|
-
pill_icon_right:
|
|
10
|
+
pill_icon_right: u
|
|
10
11
|
};
|
|
11
12
|
function g({
|
|
12
13
|
leftIcon: l,
|
|
@@ -15,10 +16,10 @@ function g({
|
|
|
15
16
|
children: n,
|
|
16
17
|
...p
|
|
17
18
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
19
|
+
return /* @__PURE__ */ e(
|
|
20
|
+
m,
|
|
20
21
|
{
|
|
21
|
-
className:
|
|
22
|
+
className: c(
|
|
22
23
|
_.pill,
|
|
23
24
|
l && _.pill_icon_left,
|
|
24
25
|
i && _.pill_icon_right,
|
|
@@ -27,7 +28,7 @@ function g({
|
|
|
27
28
|
...p,
|
|
28
29
|
children: [
|
|
29
30
|
l ? /* @__PURE__ */ o(r, { name: l }) : null,
|
|
30
|
-
|
|
31
|
+
s(n, { color: "inherit" }),
|
|
31
32
|
i ? /* @__PURE__ */ o(r, { name: i }) : null
|
|
32
33
|
]
|
|
33
34
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as P, jsxs as q } from "react/jsx-runtime";
|
|
2
3
|
import { c as pe } from "../../clsx-OuTLNxxd.js";
|
|
3
4
|
import { Surface as fe } from "../surface/index.js";
|
|
@@ -30,25 +31,25 @@ function x() {
|
|
|
30
31
|
}
|
|
31
32
|
const Z = 600, $ = 300;
|
|
32
33
|
function Ue(t, s = {}) {
|
|
33
|
-
const
|
|
34
|
-
delay:
|
|
35
|
-
} = s,
|
|
34
|
+
const u = t.useState("domReferenceElement"), f = t.context.dataRef, {
|
|
35
|
+
delay: d
|
|
36
|
+
} = s, i = he(), n = e.useRef(!1);
|
|
36
37
|
e.useEffect(() => {
|
|
37
|
-
const r = ye(
|
|
38
|
+
const r = ye(u);
|
|
38
39
|
function c() {
|
|
39
|
-
const
|
|
40
|
-
!t.select("open") && Re(
|
|
40
|
+
const a = t.select("domReferenceElement");
|
|
41
|
+
!t.select("open") && Re(a) && a === Q(xe(a)) && (n.current = !0);
|
|
41
42
|
}
|
|
42
43
|
return r.addEventListener("blur", c), () => {
|
|
43
44
|
r.removeEventListener("blur", c);
|
|
44
45
|
};
|
|
45
|
-
}, [t,
|
|
46
|
+
}, [t, u]);
|
|
46
47
|
const p = e.useMemo(() => ({
|
|
47
48
|
onFocus(r) {
|
|
48
49
|
const {
|
|
49
50
|
nativeEvent: c
|
|
50
|
-
} = r,
|
|
51
|
-
|
|
51
|
+
} = r, a = typeof d == "function" ? d() : d;
|
|
52
|
+
i.start(a ?? 0, () => {
|
|
52
53
|
t.setOpen(!0, G(L, c));
|
|
53
54
|
});
|
|
54
55
|
},
|
|
@@ -56,14 +57,14 @@ function Ue(t, s = {}) {
|
|
|
56
57
|
n.current = !1;
|
|
57
58
|
const {
|
|
58
59
|
relatedTarget: c,
|
|
59
|
-
nativeEvent:
|
|
60
|
+
nativeEvent: a
|
|
60
61
|
} = r;
|
|
61
|
-
|
|
62
|
+
i.start(0, () => {
|
|
62
63
|
const l = t.select("domReferenceElement"), m = Q(l ? l.ownerDocument : document);
|
|
63
|
-
!c && m === l || X(f.current.floatingContext?.refs.floating.current, m) || X(l, m) || t.setOpen(!1, G(L,
|
|
64
|
+
!c && m === l || X(f.current.floatingContext?.refs.floating.current, m) || X(l, m) || t.setOpen(!1, G(L, a));
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
}), [
|
|
67
|
+
}), [d, t, f, i]);
|
|
67
68
|
return e.useMemo(() => ({
|
|
68
69
|
reference: p
|
|
69
70
|
}), [p]);
|
|
@@ -71,15 +72,15 @@ function Ue(t, s = {}) {
|
|
|
71
72
|
function Fe(t) {
|
|
72
73
|
const {
|
|
73
74
|
open: s,
|
|
74
|
-
defaultOpen:
|
|
75
|
+
defaultOpen: u,
|
|
75
76
|
onOpenChange: f,
|
|
76
|
-
onOpenChangeComplete:
|
|
77
|
-
actionsRef:
|
|
77
|
+
onOpenChangeComplete: d,
|
|
78
|
+
actionsRef: i
|
|
78
79
|
} = t, n = e.useRef(Z), p = e.useRef($), r = V((v) => {
|
|
79
80
|
n.current = v.delay ?? Z, p.current = v.closeDelay ?? $;
|
|
80
|
-
}), [c,
|
|
81
|
+
}), [c, a] = e.useState(null), [l, m] = e.useState(null), [w, h] = e.useState(), S = e.useRef(null), [C, T] = Ee({
|
|
81
82
|
controlled: s,
|
|
82
|
-
default:
|
|
83
|
+
default: u,
|
|
83
84
|
name: "PreviewCard",
|
|
84
85
|
state: "open"
|
|
85
86
|
}), y = V(f), {
|
|
@@ -87,26 +88,26 @@ function Fe(t) {
|
|
|
87
88
|
setMounted: N,
|
|
88
89
|
transitionStatus: D
|
|
89
90
|
} = De(C), O = V(() => {
|
|
90
|
-
N(!1),
|
|
91
|
+
N(!1), d?.(!1);
|
|
91
92
|
});
|
|
92
93
|
ee({
|
|
93
|
-
enabled: !
|
|
94
|
+
enabled: !i,
|
|
94
95
|
open: C,
|
|
95
96
|
ref: S,
|
|
96
97
|
onComplete() {
|
|
97
98
|
C || O();
|
|
98
99
|
}
|
|
99
|
-
}), e.useImperativeHandle(
|
|
100
|
+
}), e.useImperativeHandle(i, () => ({
|
|
100
101
|
unmount: O
|
|
101
102
|
}), [O]);
|
|
102
103
|
const o = V((v, E) => {
|
|
103
|
-
const
|
|
104
|
+
const ue = E.reason === J, Y = v && E.reason === L, de = !v && (E.reason === Ne || E.reason === Oe);
|
|
104
105
|
if (y(v, E), E.isCanceled)
|
|
105
106
|
return;
|
|
106
107
|
function K() {
|
|
107
108
|
T(v);
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
+
ue ? ve.flushSync(K) : K(), Y || de ? h(Y ? "focus" : "dismiss") : E.reason === J && h(void 0);
|
|
110
111
|
}), g = Me({
|
|
111
112
|
elements: {
|
|
112
113
|
reference: c,
|
|
@@ -122,17 +123,17 @@ function Fe(t) {
|
|
|
122
123
|
delay: () => ({
|
|
123
124
|
close: I()
|
|
124
125
|
})
|
|
125
|
-
}),
|
|
126
|
+
}), ae = Ue(g, {
|
|
126
127
|
delay: _
|
|
127
128
|
}), ce = Pe(g), {
|
|
128
129
|
getReferenceProps: j,
|
|
129
130
|
getFloatingProps: W
|
|
130
|
-
} = Ce([b,
|
|
131
|
+
} = Ce([b, ae, ce]), le = e.useMemo(() => ({
|
|
131
132
|
open: C,
|
|
132
133
|
setOpen: o,
|
|
133
134
|
mounted: R,
|
|
134
135
|
setMounted: N,
|
|
135
|
-
setTriggerElement:
|
|
136
|
+
setTriggerElement: a,
|
|
136
137
|
positionerElement: l,
|
|
137
138
|
setPositionerElement: m,
|
|
138
139
|
popupRef: S,
|
|
@@ -141,9 +142,9 @@ function Fe(t) {
|
|
|
141
142
|
floatingRootContext: g,
|
|
142
143
|
instantType: M,
|
|
143
144
|
transitionStatus: D,
|
|
144
|
-
onOpenChangeComplete:
|
|
145
|
+
onOpenChangeComplete: d,
|
|
145
146
|
writeDelayRefs: r
|
|
146
|
-
}), [C, o, R, N, l, j, W, g, M, D,
|
|
147
|
+
}), [C, o, R, N, l, j, W, g, M, D, d, r]);
|
|
147
148
|
return /* @__PURE__ */ P(H.Provider, {
|
|
148
149
|
value: le,
|
|
149
150
|
children: t.children
|
|
@@ -157,38 +158,38 @@ function He() {
|
|
|
157
158
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <PreviewCard.Portal> is missing." : F(48));
|
|
158
159
|
return t;
|
|
159
160
|
}
|
|
160
|
-
const te = /* @__PURE__ */ e.forwardRef(function(s,
|
|
161
|
+
const te = /* @__PURE__ */ e.forwardRef(function(s, u) {
|
|
161
162
|
const {
|
|
162
163
|
keepMounted: f = !1,
|
|
163
|
-
...
|
|
164
|
+
...d
|
|
164
165
|
} = s, {
|
|
165
|
-
mounted:
|
|
166
|
+
mounted: i
|
|
166
167
|
} = x();
|
|
167
|
-
return
|
|
168
|
+
return i || f ? /* @__PURE__ */ P(k.Provider, {
|
|
168
169
|
value: f,
|
|
169
170
|
children: /* @__PURE__ */ P(Ie, {
|
|
170
|
-
ref:
|
|
171
|
-
...
|
|
171
|
+
ref: u,
|
|
172
|
+
...d
|
|
172
173
|
})
|
|
173
174
|
}) : null;
|
|
174
175
|
});
|
|
175
176
|
process.env.NODE_ENV !== "production" && (te.displayName = "PreviewCardPortal");
|
|
176
|
-
const oe = /* @__PURE__ */ e.forwardRef(function(s,
|
|
177
|
+
const oe = /* @__PURE__ */ e.forwardRef(function(s, u) {
|
|
177
178
|
const {
|
|
178
179
|
render: f,
|
|
179
|
-
className:
|
|
180
|
-
delay:
|
|
180
|
+
className: d,
|
|
181
|
+
delay: i,
|
|
181
182
|
closeDelay: n,
|
|
182
183
|
...p
|
|
183
184
|
} = s, {
|
|
184
185
|
open: r,
|
|
185
186
|
triggerProps: c,
|
|
186
|
-
setTriggerElement:
|
|
187
|
+
setTriggerElement: a,
|
|
187
188
|
writeDelayRefs: l
|
|
188
189
|
} = x();
|
|
189
190
|
Te(() => {
|
|
190
191
|
l({
|
|
191
|
-
delay:
|
|
192
|
+
delay: i,
|
|
192
193
|
closeDelay: n
|
|
193
194
|
});
|
|
194
195
|
});
|
|
@@ -196,7 +197,7 @@ const oe = /* @__PURE__ */ e.forwardRef(function(s, d) {
|
|
|
196
197
|
open: r
|
|
197
198
|
}), [r]);
|
|
198
199
|
return A("a", s, {
|
|
199
|
-
ref: [
|
|
200
|
+
ref: [a, u],
|
|
200
201
|
state: m,
|
|
201
202
|
props: [c, p],
|
|
202
203
|
stateAttributesMapping: we
|
|
@@ -211,16 +212,16 @@ function ne() {
|
|
|
211
212
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <PreviewCard.Popup> and <PreviewCard.Arrow> must be used within the <PreviewCard.Positioner> component" : F(49));
|
|
212
213
|
return t;
|
|
213
214
|
}
|
|
214
|
-
const re = /* @__PURE__ */ e.forwardRef(function(s,
|
|
215
|
+
const re = /* @__PURE__ */ e.forwardRef(function(s, u) {
|
|
215
216
|
const {
|
|
216
217
|
render: f,
|
|
217
|
-
className:
|
|
218
|
-
anchor:
|
|
218
|
+
className: d,
|
|
219
|
+
anchor: i,
|
|
219
220
|
positionMethod: n = "absolute",
|
|
220
221
|
side: p = "bottom",
|
|
221
222
|
align: r = "center",
|
|
222
223
|
sideOffset: c = 0,
|
|
223
|
-
alignOffset:
|
|
224
|
+
alignOffset: a = 0,
|
|
224
225
|
collisionBoundary: l = "clipping-ancestors",
|
|
225
226
|
collisionPadding: m = 5,
|
|
226
227
|
arrowPadding: w = 5,
|
|
@@ -234,14 +235,14 @@ const re = /* @__PURE__ */ e.forwardRef(function(s, d) {
|
|
|
234
235
|
floatingRootContext: N,
|
|
235
236
|
setPositionerElement: D
|
|
236
237
|
} = x(), O = He(), o = _e({
|
|
237
|
-
anchor:
|
|
238
|
+
anchor: i,
|
|
238
239
|
floatingRootContext: N,
|
|
239
240
|
positionMethod: n,
|
|
240
241
|
mounted: R,
|
|
241
242
|
side: p,
|
|
242
243
|
sideOffset: c,
|
|
243
244
|
align: r,
|
|
244
|
-
alignOffset:
|
|
245
|
+
alignOffset: a,
|
|
245
246
|
arrowPadding: w,
|
|
246
247
|
collisionBoundary: l,
|
|
247
248
|
collisionPadding: m,
|
|
@@ -272,7 +273,7 @@ const re = /* @__PURE__ */ e.forwardRef(function(s, d) {
|
|
|
272
273
|
arrowStyles: o.arrowStyles
|
|
273
274
|
}), [o.side, o.align, o.arrowRef, o.arrowUncentered, o.arrowStyles]), I = A("div", s, {
|
|
274
275
|
state: M,
|
|
275
|
-
ref: [D,
|
|
276
|
+
ref: [D, u],
|
|
276
277
|
props: [g, T],
|
|
277
278
|
stateAttributesMapping: U
|
|
278
279
|
});
|
|
@@ -285,17 +286,17 @@ process.env.NODE_ENV !== "production" && (re.displayName = "PreviewCardPositione
|
|
|
285
286
|
const ke = {
|
|
286
287
|
...U,
|
|
287
288
|
...Se
|
|
288
|
-
}, se = /* @__PURE__ */ e.forwardRef(function(s,
|
|
289
|
+
}, se = /* @__PURE__ */ e.forwardRef(function(s, u) {
|
|
289
290
|
const {
|
|
290
291
|
className: f,
|
|
291
|
-
render:
|
|
292
|
-
...
|
|
292
|
+
render: d,
|
|
293
|
+
...i
|
|
293
294
|
} = s, {
|
|
294
295
|
open: n,
|
|
295
296
|
transitionStatus: p,
|
|
296
297
|
popupRef: r,
|
|
297
298
|
onOpenChangeComplete: c,
|
|
298
|
-
popupProps:
|
|
299
|
+
popupProps: a
|
|
299
300
|
} = x(), {
|
|
300
301
|
side: l,
|
|
301
302
|
align: m
|
|
@@ -314,53 +315,53 @@ const ke = {
|
|
|
314
315
|
transitionStatus: p
|
|
315
316
|
}), [n, l, m, p]);
|
|
316
317
|
return A("div", s, {
|
|
317
|
-
ref: [r,
|
|
318
|
+
ref: [r, u],
|
|
318
319
|
state: w,
|
|
319
|
-
props: [
|
|
320
|
+
props: [a, be(p), i],
|
|
320
321
|
stateAttributesMapping: ke
|
|
321
322
|
});
|
|
322
323
|
});
|
|
323
324
|
process.env.NODE_ENV !== "production" && (se.displayName = "PreviewCardPopup");
|
|
324
|
-
const
|
|
325
|
+
const ie = /* @__PURE__ */ e.forwardRef(function(s, u) {
|
|
325
326
|
const {
|
|
326
327
|
render: f,
|
|
327
|
-
className:
|
|
328
|
-
...
|
|
328
|
+
className: d,
|
|
329
|
+
...i
|
|
329
330
|
} = s, {
|
|
330
331
|
open: n
|
|
331
332
|
} = x(), {
|
|
332
333
|
arrowRef: p,
|
|
333
334
|
side: r,
|
|
334
335
|
align: c,
|
|
335
|
-
arrowUncentered:
|
|
336
|
+
arrowUncentered: a,
|
|
336
337
|
arrowStyles: l
|
|
337
338
|
} = ne(), m = e.useMemo(() => ({
|
|
338
339
|
open: n,
|
|
339
340
|
side: r,
|
|
340
341
|
align: c,
|
|
341
|
-
uncentered:
|
|
342
|
-
}), [n, r, c,
|
|
342
|
+
uncentered: a
|
|
343
|
+
}), [n, r, c, a]);
|
|
343
344
|
return A("div", s, {
|
|
344
345
|
state: m,
|
|
345
|
-
ref: [p,
|
|
346
|
+
ref: [p, u],
|
|
346
347
|
props: [{
|
|
347
348
|
style: l,
|
|
348
349
|
"aria-hidden": !0
|
|
349
|
-
},
|
|
350
|
+
}, i],
|
|
350
351
|
stateAttributesMapping: U
|
|
351
352
|
});
|
|
352
353
|
});
|
|
353
|
-
process.env.NODE_ENV !== "production" && (
|
|
354
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "PreviewCardArrow");
|
|
354
355
|
const Be = {
|
|
355
356
|
"preview-card": "_preview-card_1o167_1"
|
|
356
357
|
};
|
|
357
358
|
function ct({
|
|
358
359
|
align: t,
|
|
359
360
|
side: s,
|
|
360
|
-
background:
|
|
361
|
+
background: u,
|
|
361
362
|
trigger: f,
|
|
362
|
-
children:
|
|
363
|
-
className:
|
|
363
|
+
children: d,
|
|
364
|
+
className: i,
|
|
364
365
|
...n
|
|
365
366
|
}) {
|
|
366
367
|
return /* @__PURE__ */ q(Fe, { ...n, children: [
|
|
@@ -374,22 +375,22 @@ function ct({
|
|
|
374
375
|
children: /* @__PURE__ */ q(
|
|
375
376
|
se,
|
|
376
377
|
{
|
|
377
|
-
render: /* @__PURE__ */ P(fe, { background:
|
|
378
|
+
render: /* @__PURE__ */ P(fe, { background: u }),
|
|
378
379
|
className: pe(
|
|
379
380
|
z.tooltip,
|
|
380
381
|
Be["preview-card"],
|
|
381
382
|
ge.transition_scale,
|
|
382
|
-
|
|
383
|
+
i
|
|
383
384
|
),
|
|
384
385
|
children: [
|
|
385
386
|
/* @__PURE__ */ P(
|
|
386
|
-
|
|
387
|
+
ie,
|
|
387
388
|
{
|
|
388
389
|
className: z.tooltip__arrow,
|
|
389
390
|
children: /* @__PURE__ */ P(me, {})
|
|
390
391
|
}
|
|
391
392
|
),
|
|
392
|
-
|
|
393
|
+
d
|
|
393
394
|
]
|
|
394
395
|
}
|
|
395
396
|
)
|