@handijitcom/ui 3.4.0 → 3.4.1
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/build/components/Combobox/index.cjs +1 -1
- package/build/components/Combobox/index.cjs.map +1 -1
- package/build/components/Combobox/index.js +147 -146
- package/build/components/Combobox/index.js.map +1 -1
- package/build/components/Combobox/style.css +1 -1
- package/build/components/FilterToolbar/index.cjs +1 -1
- package/build/components/FilterToolbar/index.cjs.map +1 -1
- package/build/components/FilterToolbar/index.js +34 -36
- package/build/components/FilterToolbar/index.js.map +1 -1
- package/build/components/FilterToolbar/style.css +1 -1
- package/build/components/Popover/style.css +1 -1
- package/build/components/Select/style.css +1 -1
- package/build/styles.css +4 -4
- package/package.json +1 -1
|
@@ -1,120 +1,122 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as f, jsx as
|
|
3
|
-
import { memo as
|
|
2
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { memo as Ee, forwardRef as Se, useId as Pe, useRef as g, useCallback as O, useState as V, useMemo as Te, useEffect as D } from "react";
|
|
4
4
|
import { createPortal as $e } from "react-dom";
|
|
5
|
-
import { Search as
|
|
6
|
-
import { SHEET_MEDIA_QUERY as
|
|
5
|
+
import { Search as Re, CaretDownFill as Ae, XLg as ke, CheckLg as He } from "react-bootstrap-icons";
|
|
6
|
+
import { SHEET_MEDIA_QUERY as Be } from "../../constants/breakpoint.constants.js";
|
|
7
7
|
import { cx as E } from "../../helpers/class-name.helper.js";
|
|
8
|
-
import { named as
|
|
9
|
-
import { assignRef as
|
|
10
|
-
import { resolveLabel as
|
|
11
|
-
import { matchesSearch as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { useUi as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { VIRTUAL_THRESHOLD as
|
|
8
|
+
import { named as Ke } from "../../helpers/component.helper.js";
|
|
9
|
+
import { assignRef as Ue } from "../../helpers/ref.helper.js";
|
|
10
|
+
import { resolveLabel as R } from "../../helpers/label.helper.js";
|
|
11
|
+
import { matchesSearch as ce } from "../../helpers/text.helper.js";
|
|
12
|
+
import Oe from "../../hooks/useAsyncSearch.js";
|
|
13
|
+
import Ve from "../../hooks/useListboxNavigation.js";
|
|
14
|
+
import je from "../../hooks/usePortalSurface.js";
|
|
15
|
+
import qe from "../../hooks/usePositioning.js";
|
|
16
|
+
import ze from "../../hooks/useVirtualList.js";
|
|
17
|
+
import { useUi as Qe } from "../../theme/context.js";
|
|
18
|
+
import Fe from "../BottomSheet/index.js";
|
|
19
|
+
import Ge from "../Spinner/index.js";
|
|
20
|
+
import { VIRTUAL_THRESHOLD as We, OPTION_HEIGHT as le, SEARCH_DEBOUNCE_MS as Xe } from "../../constants/combobox.constants.js";
|
|
21
21
|
const o = {"combobox":"ui-combobox-NtZoV","combobox__trigger":"ui-combobox__trigger-2riRR","combobox__trigger--empty":"ui-combobox__trigger--empty-RxwCq","combobox__trigger--open":"ui-combobox__trigger--open-rw1ZS","combobox__trigger--invalid":"ui-combobox__trigger--invalid-iZgiN","combobox__trigger--readOnly":"ui-combobox__trigger--readOnly-o2wH-","combobox__trigger--sm":"ui-combobox__trigger--sm-2xG91","combobox__trigger--clearable":"ui-combobox__trigger--clearable-shq9I","combobox__chevron":"ui-combobox__chevron-g-QzQ","combobox__leadingIcon":"ui-combobox__leadingIcon-it2xz","combobox__value":"ui-combobox__value-acDlr","combobox__clear":"ui-combobox__clear-EXOsc","combobox__chevron--open":"ui-combobox__chevron--open-9kj1j","combobox__panel":"ui-combobox__panel-srBxl","combobox__search":"ui-combobox__search-THjer","combobox__searchIcon":"ui-combobox__searchIcon-vr4Bg","combobox__searchInput":"ui-combobox__searchInput-JPp5h","combobox__list":"ui-combobox__list-p-eCs","combobox__list--sheet":"ui-combobox__list--sheet-r3MzB","combobox__option":"ui-combobox__option-CLWh-","combobox__option--active":"ui-combobox__option--active--75Vq","combobox__option--selected":"ui-combobox__option--selected-DVFGy","combobox__option--disabled":"ui-combobox__option--disabled-e6VjI","combobox__optionText":"ui-combobox__optionText-Zm0D6","combobox__optionLabel":"ui-combobox__optionLabel-WvT4W","combobox__optionDescription":"ui-combobox__optionDescription-8OEzi","combobox__check":"ui-combobox__check-MKlLz","combobox__empty":"ui-combobox__empty-mZwBq","combobox__srName":"ui-combobox__srName-9PNXF"};
|
|
22
|
-
const
|
|
22
|
+
const Ye = ({
|
|
23
23
|
options: v,
|
|
24
24
|
value: y,
|
|
25
|
-
onChange:
|
|
26
|
-
onBlur:
|
|
25
|
+
onChange: j,
|
|
26
|
+
onBlur: q,
|
|
27
27
|
labels: m,
|
|
28
|
-
isSearchHidden:
|
|
29
|
-
onSearch:
|
|
30
|
-
isLoading:
|
|
28
|
+
isSearchHidden: z,
|
|
29
|
+
onSearch: A,
|
|
30
|
+
isLoading: Q,
|
|
31
31
|
isDisabled: N,
|
|
32
32
|
isReadOnly: b,
|
|
33
|
-
isClearable:
|
|
34
|
-
icon:
|
|
35
|
-
size:
|
|
36
|
-
id:
|
|
37
|
-
required:
|
|
38
|
-
className:
|
|
39
|
-
testId:
|
|
40
|
-
"aria-describedby":
|
|
41
|
-
"aria-invalid":
|
|
42
|
-
},
|
|
43
|
-
const { labels:
|
|
33
|
+
isClearable: F,
|
|
34
|
+
icon: G,
|
|
35
|
+
size: me = "md",
|
|
36
|
+
id: de,
|
|
37
|
+
required: be,
|
|
38
|
+
className: ue,
|
|
39
|
+
testId: pe,
|
|
40
|
+
"aria-describedby": he,
|
|
41
|
+
"aria-invalid": W
|
|
42
|
+
}, X) => {
|
|
43
|
+
const { labels: n } = Qe(), w = {
|
|
44
44
|
get search() {
|
|
45
45
|
var e;
|
|
46
|
-
return
|
|
46
|
+
return R(
|
|
47
47
|
"Combobox.searchPlaceholder",
|
|
48
48
|
m.searchPlaceholder,
|
|
49
|
-
(e =
|
|
49
|
+
(e = n == null ? void 0 : n.combobox) == null ? void 0 : e.searchPlaceholder
|
|
50
50
|
);
|
|
51
51
|
},
|
|
52
52
|
get empty() {
|
|
53
53
|
var e;
|
|
54
|
-
return
|
|
54
|
+
return R(
|
|
55
55
|
"Combobox.emptyMessage",
|
|
56
56
|
m.emptyMessage,
|
|
57
|
-
(e =
|
|
57
|
+
(e = n == null ? void 0 : n.combobox) == null ? void 0 : e.emptyMessage
|
|
58
58
|
);
|
|
59
59
|
},
|
|
60
60
|
get loading() {
|
|
61
61
|
var e;
|
|
62
|
-
return
|
|
62
|
+
return R(
|
|
63
63
|
"Combobox.loadingMessage",
|
|
64
64
|
m.loadingMessage,
|
|
65
|
-
(e =
|
|
65
|
+
(e = n == null ? void 0 : n.combobox) == null ? void 0 : e.loadingMessage
|
|
66
66
|
);
|
|
67
67
|
},
|
|
68
68
|
get clear() {
|
|
69
69
|
var e;
|
|
70
|
-
return
|
|
70
|
+
return R("Combobox.clearLabel", m.clearLabel, (e = n == null ? void 0 : n.combobox) == null ? void 0 : e.clearLabel);
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, fe = Pe(), l = de ?? fe, k = `${l}-listbox`, H = g(null), S = g(null), C = g(null), B = g(null), xe = O(
|
|
73
73
|
(e) => {
|
|
74
|
-
S.current = e,
|
|
74
|
+
S.current = e, Ue(X, e);
|
|
75
75
|
},
|
|
76
|
-
[
|
|
77
|
-
), [s, Y] =
|
|
78
|
-
if (
|
|
76
|
+
[X]
|
|
77
|
+
), [s, Y] = V(null), i = s !== null, [L, K] = V(""), [_e, P] = V(null), c = Te(() => {
|
|
78
|
+
if (A || L.trim() === "") return v;
|
|
79
79
|
const e = L.trim();
|
|
80
80
|
return v.filter(
|
|
81
|
-
(
|
|
81
|
+
(t) => ce(t.label, e) || (t.description ? ce(t.description, e) : !1)
|
|
82
82
|
);
|
|
83
|
-
}, [v, L,
|
|
83
|
+
}, [v, L, A]), x = v.find((e) => e.value === y) ?? null;
|
|
84
84
|
D(() => {
|
|
85
|
-
x ?
|
|
85
|
+
x ? P(x.label) : y === null && P(null);
|
|
86
86
|
}, [x, y]);
|
|
87
|
-
const I = (x == null ? void 0 : x.label) ??
|
|
88
|
-
|
|
89
|
-
const _ =
|
|
90
|
-
Y(null),
|
|
91
|
-
}, []), J =
|
|
92
|
-
N || b || (Y(window.matchMedia(
|
|
87
|
+
const I = (x == null ? void 0 : x.label) ?? _e;
|
|
88
|
+
Oe(L, i, A, Xe);
|
|
89
|
+
const _ = O(() => {
|
|
90
|
+
Y(null), K("");
|
|
91
|
+
}, []), J = O(() => {
|
|
92
|
+
N || b || (Y(window.matchMedia(Be).matches ? "sheet" : "popover"), K(""));
|
|
93
93
|
}, [N, b]);
|
|
94
94
|
D(() => {
|
|
95
95
|
if (s !== "popover") return;
|
|
96
|
-
const e = (
|
|
96
|
+
const e = (t) => {
|
|
97
97
|
var h, d;
|
|
98
|
-
const a =
|
|
99
|
-
(h =
|
|
98
|
+
const a = t.target;
|
|
99
|
+
(h = H.current) != null && h.contains(a) || (d = C.current) != null && d.contains(a) || _();
|
|
100
100
|
};
|
|
101
101
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
102
|
-
}, [s, _])
|
|
103
|
-
var e;
|
|
104
|
-
s === "popover" && ((e = X.current) == null || e.focus({ preventScroll: !0 }));
|
|
105
|
-
}, [s]);
|
|
102
|
+
}, [s, _]);
|
|
106
103
|
const Z = (e) => {
|
|
107
|
-
e.isDisabled || (
|
|
104
|
+
e.isDisabled || (P(e.label), j(e.value), _());
|
|
108
105
|
}, ee = g(!1);
|
|
109
106
|
D(() => {
|
|
110
107
|
var e;
|
|
111
108
|
ee.current && !i && ((e = S.current) == null || e.focus()), ee.current = i;
|
|
112
109
|
}, [i]);
|
|
113
|
-
const
|
|
110
|
+
const T = qe(S, C, {
|
|
114
111
|
side: "bottom",
|
|
115
112
|
align: "start",
|
|
116
113
|
isOpen: i && s === "popover"
|
|
117
|
-
}), $ =
|
|
114
|
+
}), $ = je(s === "popover", S, C), oe = s === "popover" && T.isPositioned;
|
|
115
|
+
D(() => {
|
|
116
|
+
var e;
|
|
117
|
+
oe && ((e = B.current) == null || e.focus({ preventScroll: !0 }));
|
|
118
|
+
}, [oe]);
|
|
119
|
+
const { activeIndex: M, setActiveIndex: te, listRef: ge, handleKeyDown: re } = Ve({
|
|
118
120
|
count: c.length,
|
|
119
121
|
isOpen: i,
|
|
120
122
|
initialIndex: Math.max(
|
|
@@ -122,72 +124,71 @@ const Xe = ({
|
|
|
122
124
|
0
|
|
123
125
|
),
|
|
124
126
|
onSelect: (e) => {
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
+
const t = c[e];
|
|
128
|
+
t && Z(t);
|
|
127
129
|
},
|
|
128
130
|
/* Odagi geri vermek kapanisi izleyen etkinin isi (bkz. `wasOpenRef`). */
|
|
129
131
|
onClose: _
|
|
130
|
-
}),
|
|
131
|
-
rowHeight:
|
|
132
|
+
}), ve = c.some((e) => !!e.description), u = s === "popover" && !ve && c.length > We, { scrollRef: ye, range: p, scrollToIndex: ne } = ze(c.length, {
|
|
133
|
+
rowHeight: le,
|
|
132
134
|
isEnabled: u
|
|
133
135
|
});
|
|
134
136
|
D(() => {
|
|
135
|
-
u &&
|
|
136
|
-
}, [M, u,
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
te(e);
|
|
137
|
+
u && ne(M);
|
|
138
|
+
}, [M, u, ne]);
|
|
139
|
+
const Ne = (e) => {
|
|
140
|
+
ge.current = e, ye.current = e;
|
|
141
|
+
}, we = re, Ce = (e) => {
|
|
142
|
+
var t;
|
|
143
|
+
if (!i) {
|
|
144
|
+
["ArrowDown", "ArrowUp", "Enter", " "].includes(e.key) && (e.preventDefault(), J());
|
|
145
|
+
return;
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
!z && s === "popover" && ((t = B.current) == null || t.focus({ preventScroll: !0 })), re(e);
|
|
148
|
+
}, ae = g(s);
|
|
149
|
+
ae.current = s;
|
|
150
|
+
const Le = (e) => {
|
|
150
151
|
var a, h;
|
|
151
|
-
if (!
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
152
|
+
if (!q || ae.current === "sheet") return;
|
|
153
|
+
const t = e.relatedTarget;
|
|
154
|
+
t instanceof Node && ((a = H.current) != null && a.contains(t) || (h = C.current) != null && h.contains(t)) || q(e);
|
|
155
|
+
}, Ie = () => {
|
|
156
|
+
j(null), P(null);
|
|
157
|
+
}, se = z ? null : /* @__PURE__ */ f("div", { className: o.combobox__search, children: [
|
|
158
|
+
/* @__PURE__ */ r(Re, { "aria-hidden": !0, className: o.combobox__searchIcon }),
|
|
159
|
+
/* @__PURE__ */ r(
|
|
159
160
|
"input",
|
|
160
161
|
{
|
|
161
|
-
ref:
|
|
162
|
+
ref: B,
|
|
162
163
|
type: "text",
|
|
163
164
|
className: o.combobox__searchInput,
|
|
164
165
|
value: L,
|
|
165
166
|
placeholder: w.search,
|
|
166
167
|
autoComplete: "off",
|
|
167
168
|
"aria-autocomplete": "list",
|
|
168
|
-
"aria-controls":
|
|
169
|
+
"aria-controls": k,
|
|
169
170
|
"aria-activedescendant": c[M] ? `${l}-option-${M}` : void 0,
|
|
170
171
|
"aria-label": w.search,
|
|
171
172
|
onChange: (e) => {
|
|
172
|
-
|
|
173
|
+
K(e.target.value), te(0);
|
|
173
174
|
},
|
|
174
|
-
onKeyDown:
|
|
175
|
+
onKeyDown: we
|
|
175
176
|
}
|
|
176
177
|
),
|
|
177
|
-
|
|
178
|
-
] }),
|
|
179
|
-
const
|
|
178
|
+
Q && /* @__PURE__ */ r(Ge, { size: "sm", label: "" })
|
|
179
|
+
] }), ie = (e) => {
|
|
180
|
+
const t = c.slice(p.start, p.end);
|
|
180
181
|
return /* @__PURE__ */ f(
|
|
181
182
|
"ul",
|
|
182
183
|
{
|
|
183
|
-
ref:
|
|
184
|
-
id:
|
|
184
|
+
ref: Ne,
|
|
185
|
+
id: k,
|
|
185
186
|
role: "listbox",
|
|
186
187
|
className: E(o.combobox__list, e && o["combobox__list--sheet"]),
|
|
187
188
|
children: [
|
|
188
|
-
u && p.offset > 0 && /* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
const d = p.start + h,
|
|
189
|
+
u && p.offset > 0 && /* @__PURE__ */ r("li", { "aria-hidden": !0, style: { height: p.offset } }),
|
|
190
|
+
t.map((a, h) => {
|
|
191
|
+
const d = p.start + h, Me = d === M, U = a.value === y;
|
|
191
192
|
return (
|
|
192
193
|
/* ⚠ `role="option"` ` `NIN KENDISINDE. */
|
|
193
194
|
/* @__PURE__ */ f(
|
|
@@ -198,31 +199,31 @@ const Xe = ({
|
|
|
198
199
|
"data-index": d,
|
|
199
200
|
"aria-setsize": u ? c.length : void 0,
|
|
200
201
|
"aria-posinset": u ? d + 1 : void 0,
|
|
201
|
-
"aria-selected":
|
|
202
|
+
"aria-selected": U,
|
|
202
203
|
"aria-disabled": a.isDisabled,
|
|
203
204
|
className: E(
|
|
204
205
|
o.combobox__option,
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
Me && o["combobox__option--active"],
|
|
207
|
+
U && o["combobox__option--selected"],
|
|
207
208
|
a.isDisabled && o["combobox__option--disabled"]
|
|
208
209
|
),
|
|
209
|
-
onMouseEnter: () =>
|
|
210
|
-
onMouseDown: (
|
|
210
|
+
onMouseEnter: () => te(d),
|
|
211
|
+
onMouseDown: (De) => De.preventDefault(),
|
|
211
212
|
onClick: () => Z(a),
|
|
212
213
|
children: [
|
|
213
214
|
/* @__PURE__ */ f("span", { className: o.combobox__optionText, children: [
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
a.description && /* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ r("span", { className: o.combobox__optionLabel, children: a.label }),
|
|
216
|
+
a.description && /* @__PURE__ */ r("span", { className: o.combobox__optionDescription, children: a.description })
|
|
216
217
|
] }),
|
|
217
|
-
|
|
218
|
+
U && /* @__PURE__ */ r(He, { "aria-hidden": !0, className: o.combobox__check })
|
|
218
219
|
]
|
|
219
220
|
},
|
|
220
221
|
a.value
|
|
221
222
|
)
|
|
222
223
|
);
|
|
223
224
|
}),
|
|
224
|
-
u && p.end < c.length && /* @__PURE__ */
|
|
225
|
-
c.length === 0 && /* @__PURE__ */
|
|
225
|
+
u && p.end < c.length && /* @__PURE__ */ r("li", { "aria-hidden": !0, style: { height: (c.length - p.end) * le } }),
|
|
226
|
+
c.length === 0 && /* @__PURE__ */ r("li", { className: o.combobox__empty, children: Q ? w.loading : w.empty })
|
|
226
227
|
]
|
|
227
228
|
}
|
|
228
229
|
);
|
|
@@ -230,44 +231,44 @@ const Xe = ({
|
|
|
230
231
|
return /* @__PURE__ */ f(
|
|
231
232
|
"div",
|
|
232
233
|
{
|
|
233
|
-
ref:
|
|
234
|
-
className: E(o.combobox,
|
|
235
|
-
"data-testid":
|
|
236
|
-
onBlur:
|
|
234
|
+
ref: H,
|
|
235
|
+
className: E(o.combobox, ue),
|
|
236
|
+
"data-testid": pe,
|
|
237
|
+
onBlur: Le,
|
|
237
238
|
children: [
|
|
238
239
|
/* @__PURE__ */ f(
|
|
239
240
|
"button",
|
|
240
241
|
{
|
|
241
|
-
ref:
|
|
242
|
+
ref: xe,
|
|
242
243
|
id: l,
|
|
243
244
|
type: "button",
|
|
244
245
|
className: E(
|
|
245
246
|
o.combobox__trigger,
|
|
246
|
-
|
|
247
|
+
me === "sm" && o["combobox__trigger--sm"],
|
|
247
248
|
!I && o["combobox__trigger--empty"],
|
|
248
249
|
i && o["combobox__trigger--open"],
|
|
249
|
-
|
|
250
|
+
W && o["combobox__trigger--invalid"],
|
|
250
251
|
b && o["combobox__trigger--readOnly"],
|
|
251
|
-
|
|
252
|
+
F && I && !N && !b && o["combobox__trigger--clearable"]
|
|
252
253
|
),
|
|
253
254
|
disabled: N,
|
|
254
255
|
role: "combobox",
|
|
255
256
|
"aria-haspopup": "listbox",
|
|
256
257
|
"aria-expanded": i,
|
|
257
|
-
"aria-controls":
|
|
258
|
+
"aria-controls": k,
|
|
258
259
|
"aria-labelledby": I ? `${l}-name ${l}-value` : `${l}-name`,
|
|
259
|
-
"aria-describedby":
|
|
260
|
-
"aria-invalid":
|
|
261
|
-
"aria-required":
|
|
260
|
+
"aria-describedby": he,
|
|
261
|
+
"aria-invalid": W || void 0,
|
|
262
|
+
"aria-required": be || void 0,
|
|
262
263
|
"aria-readonly": b || void 0,
|
|
263
264
|
onClick: () => i ? _() : J(),
|
|
264
|
-
onKeyDown:
|
|
265
|
+
onKeyDown: Ce,
|
|
265
266
|
children: [
|
|
266
|
-
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
!b && /* @__PURE__ */
|
|
270
|
-
|
|
267
|
+
G && /* @__PURE__ */ r("span", { className: o.combobox__leadingIcon, "aria-hidden": !0, children: G }),
|
|
268
|
+
/* @__PURE__ */ r("span", { id: `${l}-name`, className: o.combobox__srName, children: m.placeholder }),
|
|
269
|
+
/* @__PURE__ */ r("span", { id: `${l}-value`, className: o.combobox__value, children: I ?? m.placeholder }),
|
|
270
|
+
!b && /* @__PURE__ */ r(
|
|
271
|
+
Ae,
|
|
271
272
|
{
|
|
272
273
|
"aria-hidden": !0,
|
|
273
274
|
className: E(o.combobox__chevron, i && o["combobox__chevron--open"])
|
|
@@ -276,14 +277,14 @@ const Xe = ({
|
|
|
276
277
|
]
|
|
277
278
|
}
|
|
278
279
|
),
|
|
279
|
-
|
|
280
|
+
F && I && !N && !b && /* @__PURE__ */ r(
|
|
280
281
|
"button",
|
|
281
282
|
{
|
|
282
283
|
type: "button",
|
|
283
284
|
className: o.combobox__clear,
|
|
284
285
|
"aria-label": w.clear,
|
|
285
|
-
onClick:
|
|
286
|
-
children: /* @__PURE__ */
|
|
286
|
+
onClick: Ie,
|
|
287
|
+
children: /* @__PURE__ */ r(ke, { "aria-hidden": !0 })
|
|
287
288
|
}
|
|
288
289
|
),
|
|
289
290
|
s === "popover" && $.container && $e(
|
|
@@ -294,39 +295,39 @@ const Xe = ({
|
|
|
294
295
|
className: o.combobox__panel,
|
|
295
296
|
...$.attributes,
|
|
296
297
|
style: {
|
|
297
|
-
...
|
|
298
|
+
...T.style,
|
|
298
299
|
...$.style,
|
|
299
300
|
/*
|
|
300
301
|
* Panel tetikleyiciyle AYNI genislikte: sabit konum + portal onu kapsayicidan
|
|
301
302
|
* kopardigi icin genislik artik miras alinmiyor.
|
|
302
303
|
*/
|
|
303
|
-
width:
|
|
304
|
+
width: T.anchorWidth || void 0,
|
|
304
305
|
/* Ilk karede olcu yok; yanlis yerde bir kare parlamasin. */
|
|
305
|
-
visibility:
|
|
306
|
+
visibility: T.isPositioned ? void 0 : "hidden"
|
|
306
307
|
},
|
|
307
308
|
children: [
|
|
308
|
-
|
|
309
|
-
|
|
309
|
+
se,
|
|
310
|
+
ie(!1)
|
|
310
311
|
]
|
|
311
312
|
}
|
|
312
313
|
),
|
|
313
314
|
$.container
|
|
314
315
|
),
|
|
315
|
-
s === "sheet" && /* @__PURE__ */
|
|
316
|
-
|
|
316
|
+
s === "sheet" && /* @__PURE__ */ r(
|
|
317
|
+
Fe,
|
|
317
318
|
{
|
|
318
319
|
title: m.placeholder,
|
|
319
|
-
closeLabel: m.closeLabel ?? (
|
|
320
|
+
closeLabel: m.closeLabel ?? (n == null ? void 0 : n.close),
|
|
320
321
|
onClose: _,
|
|
321
|
-
toolbar:
|
|
322
|
-
children:
|
|
322
|
+
toolbar: se ?? void 0,
|
|
323
|
+
children: ie(!0)
|
|
323
324
|
}
|
|
324
325
|
)
|
|
325
326
|
]
|
|
326
327
|
}
|
|
327
328
|
);
|
|
328
|
-
},
|
|
329
|
+
}, Je = /* @__PURE__ */ Se(Ye), vo = /* @__PURE__ */ Ee(/* @__PURE__ */ Ke(Je, "Combobox"));
|
|
329
330
|
export {
|
|
330
|
-
|
|
331
|
+
vo as default
|
|
331
332
|
};
|
|
332
333
|
//# sourceMappingURL=index.js.map
|