@pismo/marola 1.0.0-beta.22 → 1.0.0-beta.24
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/SelectButton-oWzluvmj.js +63 -0
- package/dist/{Tabs.module-jkH1Qjn7.js → Tabs.module-BGGTkDc5.js} +7 -7
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +277 -277
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +26 -33
- package/dist/components/Select/Select.d.ts +6 -0
- package/dist/components/Select/Select.js +391 -358
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Tabs/Tab.d.ts +5 -3
- package/dist/components/Tabs/Tab.js +34 -33
- package/dist/components/Tabs/TabPanel.d.ts +4 -2
- package/dist/components/Tabs/TabPanel.js +48 -38
- package/dist/components/Tabs/Tabs.d.ts +6 -4
- package/dist/components/Tabs/Tabs.js +113 -110
- package/package.json +1 -1
- package/dist/SelectButton-CoOT2txy.js +0 -61
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { forwardRef as q
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { a as
|
|
3
|
+
import { forwardRef as q } from "react";
|
|
4
|
+
import { c as B } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { T as G, u as J, s as Q } from "../../Tabs.module-BGGTkDc5.js";
|
|
6
|
+
import { Tab as Ie } from "./Tab.js";
|
|
7
|
+
import { TabPanel as Fe } from "./TabPanel.js";
|
|
8
|
+
import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as w } from "../../useSlotProps-C_I1kEHr.js";
|
|
9
|
+
import { a as M, C as O } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
9
10
|
import { u as X } from "../../useControlled-CCMYYdCM.js";
|
|
10
11
|
import { L as Y, a as Z } from "../../combineHooksSlotProps-C-zYvfnF.js";
|
|
11
12
|
import { l as ee, m as te, u as oe } from "../../useList-B9C55YB7.js";
|
|
@@ -18,21 +19,21 @@ function ne(s) {
|
|
|
18
19
|
const {
|
|
19
20
|
value: e,
|
|
20
21
|
defaultValue: o,
|
|
21
|
-
onChange:
|
|
22
|
-
orientation:
|
|
22
|
+
onChange: l,
|
|
23
|
+
orientation: a = "horizontal",
|
|
23
24
|
direction: c = "ltr",
|
|
24
|
-
selectionFollowsFocus:
|
|
25
|
-
} = s, [d,
|
|
25
|
+
selectionFollowsFocus: n = !1
|
|
26
|
+
} = s, [d, i] = X({
|
|
26
27
|
controlled: e,
|
|
27
28
|
default: o,
|
|
28
29
|
name: "Tabs",
|
|
29
30
|
state: "value"
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
}, [
|
|
31
|
+
}), u = r.useCallback((x, y) => {
|
|
32
|
+
i(y), l == null || l(x, y);
|
|
33
|
+
}, [l, i]), {
|
|
33
34
|
subitems: m,
|
|
34
|
-
contextValue:
|
|
35
|
-
} =
|
|
35
|
+
contextValue: h
|
|
36
|
+
} = M(), p = r.useRef(() => {
|
|
36
37
|
}), f = r.useCallback((x) => {
|
|
37
38
|
var y;
|
|
38
39
|
return (y = m.get(x)) == null ? void 0 : y.id;
|
|
@@ -44,12 +45,12 @@ function ne(s) {
|
|
|
44
45
|
direction: c,
|
|
45
46
|
getTabId: b,
|
|
46
47
|
getTabPanelId: f,
|
|
47
|
-
onSelected:
|
|
48
|
-
orientation:
|
|
48
|
+
onSelected: u,
|
|
49
|
+
orientation: a,
|
|
49
50
|
registerTabIdLookup: P,
|
|
50
|
-
selectionFollowsFocus:
|
|
51
|
+
selectionFollowsFocus: n,
|
|
51
52
|
value: d
|
|
52
|
-
},
|
|
53
|
+
}, h)
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
function le(s) {
|
|
@@ -57,32 +58,32 @@ function le(s) {
|
|
|
57
58
|
value: e,
|
|
58
59
|
children: o
|
|
59
60
|
} = s, {
|
|
60
|
-
direction:
|
|
61
|
-
getItemIndex:
|
|
61
|
+
direction: l,
|
|
62
|
+
getItemIndex: a,
|
|
62
63
|
onSelected: c,
|
|
63
|
-
orientation:
|
|
64
|
+
orientation: n,
|
|
64
65
|
registerItem: d,
|
|
65
|
-
registerTabIdLookup:
|
|
66
|
-
selectionFollowsFocus:
|
|
66
|
+
registerTabIdLookup: i,
|
|
67
|
+
selectionFollowsFocus: u,
|
|
67
68
|
totalSubitemCount: m,
|
|
68
|
-
value:
|
|
69
|
+
value: h,
|
|
69
70
|
getTabId: p,
|
|
70
71
|
getTabPanelId: f
|
|
71
72
|
} = e, b = r.useMemo(() => ({
|
|
72
|
-
getItemIndex:
|
|
73
|
+
getItemIndex: a,
|
|
73
74
|
registerItem: d,
|
|
74
75
|
totalSubitemCount: m
|
|
75
|
-
}), [d,
|
|
76
|
-
direction:
|
|
76
|
+
}), [d, a, m]), P = r.useMemo(() => ({
|
|
77
|
+
direction: l,
|
|
77
78
|
getTabId: p,
|
|
78
79
|
getTabPanelId: f,
|
|
79
80
|
onSelected: c,
|
|
80
|
-
orientation:
|
|
81
|
-
registerTabIdLookup:
|
|
82
|
-
selectionFollowsFocus:
|
|
83
|
-
value:
|
|
84
|
-
}), [
|
|
85
|
-
return /* @__PURE__ */ T(
|
|
81
|
+
orientation: n,
|
|
82
|
+
registerTabIdLookup: i,
|
|
83
|
+
selectionFollowsFocus: u,
|
|
84
|
+
value: h
|
|
85
|
+
}), [l, p, f, c, n, i, u, h]);
|
|
86
|
+
return /* @__PURE__ */ T(O.Provider, {
|
|
86
87
|
value: b,
|
|
87
88
|
children: /* @__PURE__ */ T(G.Provider, {
|
|
88
89
|
value: P,
|
|
@@ -96,24 +97,24 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
|
|
|
96
97
|
} = s;
|
|
97
98
|
return N({
|
|
98
99
|
root: ["root", e]
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
var
|
|
100
|
+
}, w(se));
|
|
101
|
+
}, S = /* @__PURE__ */ r.forwardRef(function(e, o) {
|
|
102
|
+
var l;
|
|
102
103
|
const {
|
|
103
|
-
children:
|
|
104
|
+
children: a,
|
|
104
105
|
orientation: c = "horizontal",
|
|
105
|
-
direction:
|
|
106
|
+
direction: n = "ltr",
|
|
106
107
|
slotProps: d = {},
|
|
107
|
-
slots:
|
|
108
|
-
} = e,
|
|
108
|
+
slots: i = {}
|
|
109
|
+
} = e, u = F(e, re), m = C({}, e, {
|
|
109
110
|
orientation: c,
|
|
110
|
-
direction:
|
|
111
|
+
direction: n
|
|
111
112
|
}), {
|
|
112
|
-
contextValue:
|
|
113
|
-
} = ne(m), p = ae(m), f = (
|
|
113
|
+
contextValue: h
|
|
114
|
+
} = ne(m), p = ae(m), f = (l = i.root) != null ? l : "div", b = $({
|
|
114
115
|
elementType: f,
|
|
115
116
|
externalSlotProps: d.root,
|
|
116
|
-
externalForwardedProps:
|
|
117
|
+
externalForwardedProps: u,
|
|
117
118
|
additionalProps: {
|
|
118
119
|
ref: o
|
|
119
120
|
},
|
|
@@ -122,12 +123,12 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
|
|
|
122
123
|
});
|
|
123
124
|
return /* @__PURE__ */ T(f, C({}, b, {
|
|
124
125
|
children: /* @__PURE__ */ T(le, {
|
|
125
|
-
value:
|
|
126
|
-
children:
|
|
126
|
+
value: h,
|
|
127
|
+
children: a
|
|
127
128
|
})
|
|
128
129
|
}));
|
|
129
130
|
});
|
|
130
|
-
process.env.NODE_ENV !== "production" && (
|
|
131
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
131
132
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
132
133
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
133
134
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -199,7 +200,7 @@ function ue(s, e) {
|
|
|
199
200
|
});
|
|
200
201
|
const o = ee(s, e), {
|
|
201
202
|
context: {
|
|
202
|
-
selectionFollowsFocus:
|
|
203
|
+
selectionFollowsFocus: l
|
|
203
204
|
}
|
|
204
205
|
} = e;
|
|
205
206
|
if (e.type === Y.itemsChange) {
|
|
@@ -209,7 +210,7 @@ function ue(s, e) {
|
|
|
209
210
|
});
|
|
210
211
|
te(null, "reset", e.context);
|
|
211
212
|
}
|
|
212
|
-
return
|
|
213
|
+
return l && o.highlightedValue != null ? C({}, o, {
|
|
213
214
|
selectedValues: [o.highlightedValue]
|
|
214
215
|
}) : o;
|
|
215
216
|
}
|
|
@@ -218,37 +219,37 @@ function ce(s) {
|
|
|
218
219
|
const {
|
|
219
220
|
rootRef: o
|
|
220
221
|
} = s, {
|
|
221
|
-
direction:
|
|
222
|
-
onSelected:
|
|
222
|
+
direction: l = "ltr",
|
|
223
|
+
onSelected: a,
|
|
223
224
|
orientation: c = "horizontal",
|
|
224
|
-
value:
|
|
225
|
+
value: n,
|
|
225
226
|
registerTabIdLookup: d,
|
|
226
|
-
selectionFollowsFocus:
|
|
227
|
+
selectionFollowsFocus: i
|
|
227
228
|
} = J(), {
|
|
228
|
-
subitems:
|
|
229
|
+
subitems: u,
|
|
229
230
|
contextValue: m
|
|
230
|
-
} =
|
|
231
|
+
} = M(), h = r.useCallback((g) => {
|
|
231
232
|
var v;
|
|
232
|
-
return (v =
|
|
233
|
-
}, [
|
|
234
|
-
d(
|
|
235
|
-
const p = r.useMemo(() => Array.from(
|
|
233
|
+
return (v = u.get(g)) == null ? void 0 : v.id;
|
|
234
|
+
}, [u]);
|
|
235
|
+
d(h);
|
|
236
|
+
const p = r.useMemo(() => Array.from(u.keys()), [u]), f = r.useCallback((g) => {
|
|
236
237
|
var v, V;
|
|
237
|
-
return
|
|
238
|
-
}, [
|
|
238
|
+
return g == null ? null : (v = (V = u.get(g)) == null ? void 0 : V.ref.current) != null ? v : null;
|
|
239
|
+
}, [u]), b = l === "rtl";
|
|
239
240
|
let P;
|
|
240
241
|
c === "vertical" ? P = "vertical" : P = b ? "horizontal-rtl" : "horizontal-ltr";
|
|
241
|
-
const x = r.useCallback((
|
|
242
|
+
const x = r.useCallback((g, v) => {
|
|
242
243
|
var V;
|
|
243
|
-
|
|
244
|
-
}, [
|
|
245
|
-
selectedValues: [
|
|
244
|
+
a(g, (V = v[0]) != null ? V : null);
|
|
245
|
+
}, [a]), y = r.useMemo(() => n === void 0 ? {} : n != null ? {
|
|
246
|
+
selectedValues: [n]
|
|
246
247
|
} : {
|
|
247
248
|
selectedValues: []
|
|
248
|
-
}, [
|
|
249
|
+
}, [n]), U = r.useCallback((g) => {
|
|
249
250
|
var v, V;
|
|
250
|
-
return (v = (V =
|
|
251
|
-
}, [
|
|
251
|
+
return (v = (V = u.get(g)) == null ? void 0 : V.disabled) != null ? v : !1;
|
|
252
|
+
}, [u]), {
|
|
252
253
|
contextValue: L,
|
|
253
254
|
dispatch: R,
|
|
254
255
|
getRootProps: D,
|
|
@@ -259,7 +260,7 @@ function ce(s) {
|
|
|
259
260
|
rootRef: K
|
|
260
261
|
} = oe({
|
|
261
262
|
controlledProps: y,
|
|
262
|
-
disabledItemsFocusable: !
|
|
263
|
+
disabledItemsFocusable: !i,
|
|
263
264
|
focusManagement: "DOM",
|
|
264
265
|
getItemDomElement: f,
|
|
265
266
|
isItemDisabled: U,
|
|
@@ -268,18 +269,18 @@ function ce(s) {
|
|
|
268
269
|
onChange: x,
|
|
269
270
|
orientation: P,
|
|
270
271
|
reducerActionContext: r.useMemo(() => ({
|
|
271
|
-
selectionFollowsFocus:
|
|
272
|
-
}), [
|
|
272
|
+
selectionFollowsFocus: i || !1
|
|
273
|
+
}), [i]),
|
|
273
274
|
selectionMode: "single",
|
|
274
275
|
stateReducer: ue
|
|
275
276
|
});
|
|
276
277
|
r.useEffect(() => {
|
|
277
|
-
|
|
278
|
+
n !== void 0 && n != null && R({
|
|
278
279
|
type: z.valueChange,
|
|
279
|
-
value:
|
|
280
|
+
value: n
|
|
280
281
|
});
|
|
281
|
-
}, [R,
|
|
282
|
-
const W = (
|
|
282
|
+
}, [R, n]);
|
|
283
|
+
const W = (g = {}) => C({}, g, D(g), {
|
|
283
284
|
"aria-orientation": c === "vertical" ? "vertical" : void 0,
|
|
284
285
|
role: "tablist"
|
|
285
286
|
});
|
|
@@ -299,24 +300,24 @@ function de(s) {
|
|
|
299
300
|
value: e,
|
|
300
301
|
children: o
|
|
301
302
|
} = s, {
|
|
302
|
-
dispatch:
|
|
303
|
-
getItemIndex:
|
|
303
|
+
dispatch: l,
|
|
304
|
+
getItemIndex: a,
|
|
304
305
|
getItemState: c,
|
|
305
|
-
registerItem:
|
|
306
|
+
registerItem: n,
|
|
306
307
|
totalSubitemCount: d
|
|
307
|
-
} = e,
|
|
308
|
-
dispatch:
|
|
308
|
+
} = e, i = r.useMemo(() => ({
|
|
309
|
+
dispatch: l,
|
|
309
310
|
getItemState: c,
|
|
310
|
-
getItemIndex:
|
|
311
|
-
}), [
|
|
312
|
-
getItemIndex:
|
|
313
|
-
registerItem:
|
|
311
|
+
getItemIndex: a
|
|
312
|
+
}), [l, a, c]), u = r.useMemo(() => ({
|
|
313
|
+
getItemIndex: a,
|
|
314
|
+
registerItem: n,
|
|
314
315
|
totalSubitemCount: d
|
|
315
|
-
}), [
|
|
316
|
-
return /* @__PURE__ */ T(
|
|
317
|
-
value:
|
|
316
|
+
}), [n, a, d]);
|
|
317
|
+
return /* @__PURE__ */ T(O.Provider, {
|
|
318
|
+
value: u,
|
|
318
319
|
children: /* @__PURE__ */ T(Z.Provider, {
|
|
319
|
-
value:
|
|
320
|
+
value: i,
|
|
320
321
|
children: o
|
|
321
322
|
})
|
|
322
323
|
});
|
|
@@ -327,24 +328,24 @@ const me = ["children", "slotProps", "slots"], pe = (s) => {
|
|
|
327
328
|
} = s;
|
|
328
329
|
return N({
|
|
329
330
|
root: ["root", e]
|
|
330
|
-
},
|
|
331
|
+
}, w(ie));
|
|
331
332
|
}, A = /* @__PURE__ */ r.forwardRef(function(e, o) {
|
|
332
|
-
var
|
|
333
|
+
var l;
|
|
333
334
|
const {
|
|
334
|
-
children:
|
|
335
|
+
children: a,
|
|
335
336
|
slotProps: c = {},
|
|
336
|
-
slots:
|
|
337
|
+
slots: n = {}
|
|
337
338
|
} = e, d = F(e, me), {
|
|
338
|
-
isRtl:
|
|
339
|
-
orientation:
|
|
339
|
+
isRtl: i,
|
|
340
|
+
orientation: u,
|
|
340
341
|
getRootProps: m,
|
|
341
|
-
contextValue:
|
|
342
|
+
contextValue: h
|
|
342
343
|
} = ce({
|
|
343
344
|
rootRef: o
|
|
344
345
|
}), p = C({}, e, {
|
|
345
|
-
isRtl:
|
|
346
|
-
orientation:
|
|
347
|
-
}), f = pe(p), b = (
|
|
346
|
+
isRtl: i,
|
|
347
|
+
orientation: u
|
|
348
|
+
}), f = pe(p), b = (l = n.root) != null ? l : "div", P = $({
|
|
348
349
|
elementType: b,
|
|
349
350
|
getSlotProps: m,
|
|
350
351
|
externalSlotProps: c.root,
|
|
@@ -353,9 +354,9 @@ const me = ["children", "slotProps", "slots"], pe = (s) => {
|
|
|
353
354
|
className: f.root
|
|
354
355
|
});
|
|
355
356
|
return /* @__PURE__ */ T(de, {
|
|
356
|
-
value:
|
|
357
|
+
value: h,
|
|
357
358
|
children: /* @__PURE__ */ T(b, C({}, P, {
|
|
358
|
-
children:
|
|
359
|
+
children: a
|
|
359
360
|
}))
|
|
360
361
|
});
|
|
361
362
|
});
|
|
@@ -388,14 +389,16 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
|
388
389
|
root: t.elementType
|
|
389
390
|
})
|
|
390
391
|
});
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
});
|
|
392
|
+
const ye = q(
|
|
393
|
+
({ value: s, className: e, "data-testid": o, children: l, onChange: a }, c) => {
|
|
394
|
+
const n = (d, i) => {
|
|
395
|
+
a && a(i, d);
|
|
396
|
+
};
|
|
397
|
+
return /* @__PURE__ */ T(S, { "data-testid": o, value: s, onChange: (d, i) => n(d, i), ref: c, children: /* @__PURE__ */ T(A, { className: B(Q.tabs, e), children: l }) });
|
|
398
|
+
}
|
|
399
|
+
);
|
|
397
400
|
export {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
Ie as Tab,
|
|
402
|
+
Fe as TabPanel,
|
|
403
|
+
ye as Tabs
|
|
401
404
|
};
|
package/package.json
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as c, jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
import { forwardRef as y } from "react";
|
|
5
|
-
import { c as u } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
import { Typography as p } from "./components/Typography/Typography.js";
|
|
7
|
-
const g = "_select__listbox__option__text_jbvcl_65", v = "_select_jbvcl_65", x = "_select__popup_jbvcl_81", d = "_select__listbox_jbvcl_65", j = "_select__listbox__option_jbvcl_65", m = "_select__listbox__option__icon_jbvcl_102", w = "_select__list__option__icon_jbvcl_123", e = {
|
|
8
|
-
"u-typography-h1": "_u-typography-h1_jbvcl_1",
|
|
9
|
-
"u-typography-h2": "_u-typography-h2_jbvcl_8",
|
|
10
|
-
"u-typography-h3": "_u-typography-h3_jbvcl_15",
|
|
11
|
-
"u-typography-h4": "_u-typography-h4_jbvcl_22",
|
|
12
|
-
"u-typography-h5": "_u-typography-h5_jbvcl_29",
|
|
13
|
-
"u-typography-h6": "_u-typography-h6_jbvcl_36",
|
|
14
|
-
"u-typography-base": "_u-typography-base_jbvcl_43",
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_jbvcl_49",
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--xl_jbvcl_53",
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--lg_jbvcl_57",
|
|
18
|
-
"u-typography-base--sm": "_u-typography-base--sm_jbvcl_61",
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--bold_jbvcl_65",
|
|
20
|
-
select__listbox__option__text: g,
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_jbvcl_68",
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_jbvcl_71",
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_jbvcl_74",
|
|
24
|
-
select: v,
|
|
25
|
-
select__popup: x,
|
|
26
|
-
select__listbox: d,
|
|
27
|
-
select__listbox__option: j,
|
|
28
|
-
select__listbox__option__icon: m,
|
|
29
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_jbvcl_106",
|
|
30
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_jbvcl_115",
|
|
31
|
-
select__list__option__icon: w,
|
|
32
|
-
"select-button": "_select-button_jbvcl_128",
|
|
33
|
-
"base-Select-popup": "_base-Select-popup_jbvcl_146",
|
|
34
|
-
"select-button__text": "_select-button__text_jbvcl_149",
|
|
35
|
-
"select-button__icon": "_select-button__icon_jbvcl_158",
|
|
36
|
-
"select-button--active": "_select-button--active_jbvcl_164"
|
|
37
|
-
}, C = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), f = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), E = y((t, a) => {
|
|
38
|
-
const { children: i, disabled: b, className: n, "data-testid": r, prefix: l, onClick: h } = t, s = t["aria-expanded"];
|
|
39
|
-
return /* @__PURE__ */ c(
|
|
40
|
-
"button",
|
|
41
|
-
{
|
|
42
|
-
className: u(n, s ? e["select-button--active"] : "", e["select-button"]),
|
|
43
|
-
type: "button",
|
|
44
|
-
onClick: h,
|
|
45
|
-
disabled: b,
|
|
46
|
-
"data-testid": r,
|
|
47
|
-
ref: a,
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ c("span", { className: e["select-button__text"], children: [
|
|
50
|
-
l && /* @__PURE__ */ _(p, { children: l }),
|
|
51
|
-
/* @__PURE__ */ _(p, { children: i })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ _("span", { className: e["select-button__icon"], children: s ? /* @__PURE__ */ _(f, {}) : /* @__PURE__ */ _(C, {}) })
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
E as S,
|
|
60
|
-
e as s
|
|
61
|
-
};
|