welcome-ui 10.0.0-alpha.1 → 10.0.0-alpha.11
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 +1 -1
- package/dist/2W3RN7C5-DMC82gDP.js +61 -0
- package/dist/4I4MLMKD-BO6Lcy7s.js +150 -0
- package/dist/Accordion.js +20 -18
- package/dist/Alert.css +1 -1
- package/dist/Alert.js +93 -87
- package/dist/AspectRatio.js +2 -1
- package/dist/Avatar.js +14 -12
- package/dist/{B7UTNDHN-BlIblHCu.js → B7UTNDHN-BghjolIs.js} +30 -30
- package/dist/Badge.js +2 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +175 -154
- package/dist/Button.css +1 -1
- package/dist/Button.js +43 -41
- package/dist/ButtonGroup.js +7 -5
- package/dist/Card.css +1 -1
- package/dist/Card.js +68 -15
- package/dist/Checkbox.js +32 -30
- package/dist/CloseButton.css +1 -1
- package/dist/CloseButton.js +15 -13
- package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
- package/dist/{DSAASPLT-BaaCUKsb.js → DSAASPLT-Fx1kuAsk.js} +3 -3
- package/dist/DatePicker.js +96 -91
- package/dist/DateTimePicker.js +21 -20
- package/dist/Drawer.js +141 -96
- package/dist/DropdownMenu.css +1 -1
- package/dist/DropdownMenu.js +902 -462
- package/dist/Field.css +1 -1
- package/dist/Field.js +50 -50
- package/dist/FieldGroup.js +9 -7
- package/dist/FileDrop.css +1 -1
- package/dist/FileDrop.js +433 -398
- package/dist/FileUpload.js +44 -41
- package/dist/GVVKDT6A-CF9ejW_c.js +619 -0
- package/dist/Hint.js +10 -8
- package/dist/Icon.css +1 -1
- package/dist/Icon.js +36 -22
- package/dist/InputText.css +1 -1
- package/dist/InputText.js +59 -57
- package/dist/{KPUWHTQJ-D2TPji47.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
- package/dist/Label.js +9 -7
- package/dist/Link.css +1 -1
- package/dist/Link.js +54 -49
- package/dist/Loader.js +13 -11
- package/dist/Logo.js +21 -13
- package/dist/Modal.js +153 -113
- package/dist/{NI3IVY7K-Ztb3-XAv.js → NI3IVY7K-Dy240mkD.js} +53 -53
- package/dist/{NMGNQVTG-C6TqBngP.js → NMGNQVTG-DRO2uXZT.js} +8 -8
- package/dist/{OE2EFRVA-C3721cM3.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
- package/dist/{OLVWQA7U-DysaSaZj.js → OLVWQA7U-Dia3UUnG.js} +51 -51
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +157 -76
- package/dist/PasswordInput.js +20 -17
- package/dist/Popover.js +89 -72
- package/dist/{RTNCFSKZ-qpPg689E.js → RTNCFSKZ-BywELldk.js} +47 -47
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +39 -40
- package/dist/RadioGroup.js +29 -27
- package/dist/RadioTab.js +3 -2
- package/dist/{SBSPVDDI-DJKkC1eb.js → SBSPVDDI-CmtnvvUX.js} +42 -42
- package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
- package/dist/Search.css +1 -1
- package/dist/Search.js +136 -129
- package/dist/Select.css +1 -1
- package/dist/Select.js +259 -257
- package/dist/Slider.js +67 -62
- package/dist/Stepper.js +34 -27
- package/dist/StickyNote.css +1 -0
- package/dist/StickyNote.js +49 -0
- package/dist/Swiper.js +53 -51
- package/dist/{T22PY7TE-C1N0q8Kn.js → T22PY7TE-gLuJpoOm.js} +46 -46
- package/dist/Table.js +34 -21
- package/dist/Tabs.js +165 -156
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +67 -62
- package/dist/Text.js +5 -3
- package/dist/Textarea.css +1 -1
- package/dist/Textarea.js +26 -17
- package/dist/TimePicker.js +53 -51
- package/dist/Toast.css +1 -1
- package/dist/Toast.js +275 -165
- package/dist/Toggle.js +17 -15
- package/dist/Tooltip.css +1 -1
- package/dist/Tooltip.js +120 -129
- package/dist/VariantIcon.js +8 -6
- package/dist/VisuallyHidden.js +9 -7
- package/dist/WelcomeLoader.js +4 -3
- package/dist/XCKGTAUF-CJwwVibW.js +25 -0
- package/dist/{Y67KZUMI-DFEgrUv2.js → Y67KZUMI-BwLWwpNF.js} +5 -5
- package/dist/{ZTXFEM5L-CkrIQCN1.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
- package/dist/{downshift.esm-D_6pHXkq.js → downshift.esm-xtYanIDi.js} +1 -1
- package/dist/scss/breakpoints.scss +9 -0
- package/dist/scss/text-ellipsis.scss +5 -0
- package/dist/scss/texts.scss +108 -0
- package/dist/theme.css +1 -1
- package/dist/theme.js +1 -0
- package/dist/{tslib.es6-DpB4Y59c.js → tslib.es6-C80jYMbM.js} +1 -1
- package/dist/types/components/Alert/components/Buttons.d.ts +3 -0
- package/dist/types/components/Alert/components/Title.d.ts +5 -0
- package/dist/types/components/Alert/index.d.ts +7 -3
- package/dist/types/components/Alert/types.d.ts +3 -9
- package/dist/types/components/Breadcrumb/Item.d.ts +2 -2
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Breadcrumb/types.d.ts +6 -3
- package/dist/types/components/Card/Body.d.ts +2 -3
- package/dist/types/components/Card/Footer.d.ts +6 -0
- package/dist/types/components/Card/Header.d.ts +5 -0
- package/dist/types/components/Card/index.d.ts +7 -8
- package/dist/types/components/Card/types.d.ts +16 -3
- package/dist/types/components/Checkbox/index.d.ts +1 -2
- package/dist/types/components/Checkbox/types.d.ts +3 -1
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +4 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +6 -3
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +4 -1
- package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +4 -1
- package/dist/types/components/Drawer/AssetDrawer/types.d.ts +3 -0
- package/dist/types/components/Drawer/components/Backdrop.d.ts +1 -1
- package/dist/types/components/Drawer/components/Close.d.ts +4 -1
- package/dist/types/components/Drawer/components/Title.d.ts +4 -1
- package/dist/types/components/Drawer/index.d.ts +13 -4
- package/dist/types/components/DropdownMenu/Action.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Group.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Item.d.ts +7 -0
- package/dist/types/components/DropdownMenu/Search.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Submenu.d.ts +4 -0
- package/dist/types/components/DropdownMenu/index.d.ts +11 -0
- package/dist/types/components/DropdownMenu/types.d.ts +26 -5
- package/dist/types/components/FileDrop/components/FilePreview.d.ts +4 -1
- package/dist/types/components/FileDrop/components/Message.d.ts +4 -1
- package/dist/types/components/FileDrop/types.d.ts +2 -0
- package/dist/types/components/Icon/icons.d.ts +6 -6
- package/dist/types/components/Icon/types.d.ts +2 -0
- package/dist/types/components/Loader/index.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetTitle.d.ts +4 -1
- package/dist/types/components/Modal/Assets/CloseButton.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Dialog.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +4 -1
- package/dist/types/components/Modal/Assets/index.d.ts +16 -4
- package/dist/types/components/Modal/components/Close.d.ts +4 -1
- package/dist/types/components/Modal/components/Content.d.ts +1 -1
- package/dist/types/components/Modal/index.d.ts +17 -5
- package/dist/types/components/Modal/types.d.ts +1 -1
- package/dist/types/components/Pagination/types.d.ts +11 -0
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +4 -1
- package/dist/types/components/Popover/Arrow.d.ts +4 -1
- package/dist/types/components/Popover/ContentWrapper.d.ts +4 -1
- package/dist/types/components/Radio/types.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +4 -1
- package/dist/types/components/Stepper/index.d.ts +8 -2
- package/dist/types/components/StickyNote/components/Button.d.ts +5 -0
- package/dist/types/components/StickyNote/components/Title.d.ts +5 -0
- package/dist/types/components/StickyNote/index.d.ts +11 -0
- package/dist/types/components/StickyNote/index.test.d.ts +1 -0
- package/dist/types/components/StickyNote/types.d.ts +15 -0
- package/dist/types/components/Swiper/index.d.ts +4 -1
- package/dist/types/components/Table/index.d.ts +20 -5
- package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +4 -1
- package/dist/types/components/Tag/types.d.ts +4 -2
- package/dist/types/components/Textarea/types.d.ts +1 -0
- package/dist/types/components/Toast/components/Growl.d.ts +2 -0
- package/dist/types/components/Toast/index.d.ts +8 -2
- package/dist/types/components/Toast/types.d.ts +8 -9
- package/dist/types/components/Tooltip/types.d.ts +1 -1
- package/dist/types/theme/types.d.ts +255 -218
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/{utils-DileZjMm.js → utils-BD597oo6.js} +1 -1
- package/dist/utils.js +3 -2
- package/package.json +3 -2
- package/dist/2W3RN7C5-bkX-rIa3.js +0 -61
- package/dist/4I4MLMKD-BLxAidnq.js +0 -43
- package/dist/GVVKDT6A-bET6V7Py.js +0 -724
- package/dist/SQZLCNLX-CHDXnZ16.js +0 -82
- package/dist/XCKGTAUF-DkxWCbaW.js +0 -25
- package/dist/index.css +0 -0
- package/dist/types/components/Icon/Icon.d.ts +0 -2
- package/dist/types/utils/theme/index.d.ts +0 -0
- /package/dist/{index-CdiHdiVB.js → index-PAaZGbyz.js} +0 -0
- /package/dist/types/components/Icon/{Icon.test.d.ts → index.test.d.ts} +0 -0
package/dist/Select.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import './Select.css';
|
|
3
|
+
import { jsx as v, jsxs as L } from "react/jsx-runtime";
|
|
4
|
+
import { D as me } from "./downshift.esm-xtYanIDi.js";
|
|
5
|
+
import { g as Ke, c as ye } from "./index-PAaZGbyz.js";
|
|
6
|
+
import { forwardRef as Le, useMemo as Pe, useState as P, useEffect as he, useCallback as $e, Fragment as Ye } from "react";
|
|
7
|
+
import { CloseButton as Be } from "./CloseButton.js";
|
|
8
|
+
import { useField as Xe } from "./Field.js";
|
|
8
9
|
import { Icon as _e } from "./Icon.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
10
|
+
import { c as Ze } from "./create-event-rXDe5aCQ.js";
|
|
11
|
+
import { u as Qe } from "./useForkRef-D807AV7D.js";
|
|
11
12
|
import { Tag as Ge } from "./Tag.js";
|
|
12
|
-
var
|
|
13
|
+
var V = { exports: {} }, pe;
|
|
13
14
|
function Je() {
|
|
14
|
-
if (pe) return
|
|
15
|
+
if (pe) return V.exports;
|
|
15
16
|
pe = 1;
|
|
16
17
|
var e = {
|
|
17
18
|
À: "A",
|
|
@@ -473,19 +474,19 @@ function Je() {
|
|
|
473
474
|
Й: "И",
|
|
474
475
|
ё: "е",
|
|
475
476
|
Ё: "Е"
|
|
476
|
-
},
|
|
477
|
+
}, t = Object.keys(e).join("|"), n = new RegExp(t, "g"), r = new RegExp(t, "");
|
|
477
478
|
function s(o) {
|
|
478
479
|
return e[o];
|
|
479
480
|
}
|
|
480
481
|
var c = function(o) {
|
|
481
|
-
return o.replace(
|
|
482
|
+
return o.replace(n, s);
|
|
482
483
|
}, i = function(o) {
|
|
483
484
|
return !!o.match(r);
|
|
484
485
|
};
|
|
485
|
-
return
|
|
486
|
+
return V.exports = c, V.exports.has = i, V.exports.remove = c, V.exports;
|
|
486
487
|
}
|
|
487
|
-
var
|
|
488
|
-
const
|
|
488
|
+
var et = Je();
|
|
489
|
+
const tt = /* @__PURE__ */ Ke(et);
|
|
489
490
|
/**
|
|
490
491
|
* @name match-sorter
|
|
491
492
|
* @license MIT license.
|
|
@@ -501,15 +502,15 @@ const g = {
|
|
|
501
502
|
ACRONYM: 2,
|
|
502
503
|
MATCHES: 1,
|
|
503
504
|
NO_MATCH: 0
|
|
504
|
-
},
|
|
505
|
-
function G(e,
|
|
506
|
-
|
|
505
|
+
}, nt = (e, t) => String(e.rankedValue).localeCompare(String(t.rankedValue));
|
|
506
|
+
function G(e, t, n) {
|
|
507
|
+
n === void 0 && (n = {});
|
|
507
508
|
const {
|
|
508
509
|
keys: r,
|
|
509
510
|
threshold: s = g.MATCHES,
|
|
510
|
-
baseSort: c =
|
|
511
|
-
sorter: i = (d) => d.sort((u, h) =>
|
|
512
|
-
} =
|
|
511
|
+
baseSort: c = nt,
|
|
512
|
+
sorter: i = (d) => d.sort((u, h) => ot(u, h, c))
|
|
513
|
+
} = n, o = e.reduce(l, []);
|
|
513
514
|
return i(o).map((d) => {
|
|
514
515
|
let {
|
|
515
516
|
item: u
|
|
@@ -517,46 +518,46 @@ function G(e, n, t) {
|
|
|
517
518
|
return u;
|
|
518
519
|
});
|
|
519
520
|
function l(d, u, h) {
|
|
520
|
-
const
|
|
521
|
+
const E = rt(u, r, t, n), {
|
|
521
522
|
rank: p,
|
|
522
523
|
keyThreshold: m = s
|
|
523
|
-
} =
|
|
524
|
+
} = E;
|
|
524
525
|
return p >= m && d.push({
|
|
525
|
-
...
|
|
526
|
+
...E,
|
|
526
527
|
item: u,
|
|
527
528
|
index: h
|
|
528
529
|
}), d;
|
|
529
530
|
}
|
|
530
531
|
}
|
|
531
532
|
G.rankings = g;
|
|
532
|
-
function
|
|
533
|
-
if (!
|
|
533
|
+
function rt(e, t, n, r) {
|
|
534
|
+
if (!t) {
|
|
534
535
|
const c = e;
|
|
535
536
|
return {
|
|
536
537
|
// ends up being duplicate of 'item' in matches but consistent
|
|
537
538
|
rankedValue: c,
|
|
538
|
-
rank: Ae(c,
|
|
539
|
+
rank: Ae(c, n, r),
|
|
539
540
|
keyIndex: -1,
|
|
540
541
|
keyThreshold: r.threshold
|
|
541
542
|
};
|
|
542
543
|
}
|
|
543
|
-
return
|
|
544
|
+
return it(e, t).reduce((c, i, o) => {
|
|
544
545
|
let {
|
|
545
546
|
rank: l,
|
|
546
547
|
rankedValue: d,
|
|
547
548
|
keyIndex: u,
|
|
548
549
|
keyThreshold: h
|
|
549
550
|
} = c, {
|
|
550
|
-
itemValue:
|
|
551
|
+
itemValue: E,
|
|
551
552
|
attributes: p
|
|
552
|
-
} = i, m = Ae(
|
|
553
|
+
} = i, m = Ae(E, n, r), k = d;
|
|
553
554
|
const {
|
|
554
|
-
minRanking:
|
|
555
|
-
maxRanking:
|
|
556
|
-
threshold:
|
|
555
|
+
minRanking: T,
|
|
556
|
+
maxRanking: R,
|
|
557
|
+
threshold: S
|
|
557
558
|
} = p;
|
|
558
|
-
return m <
|
|
559
|
-
rankedValue:
|
|
559
|
+
return m < T && m >= g.MATCHES ? m = T : m > R && (m = R), m > l && (l = m, u = o, h = S, k = E), {
|
|
560
|
+
rankedValue: k,
|
|
560
561
|
rank: l,
|
|
561
562
|
keyIndex: u,
|
|
562
563
|
keyThreshold: h
|
|
@@ -568,78 +569,78 @@ function rn(e, n, t, r) {
|
|
|
568
569
|
keyThreshold: r.threshold
|
|
569
570
|
});
|
|
570
571
|
}
|
|
571
|
-
function Ae(e,
|
|
572
|
-
return e = ge(e,
|
|
572
|
+
function Ae(e, t, n) {
|
|
573
|
+
return e = ge(e, n), t = ge(t, n), t.length > e.length ? g.NO_MATCH : e === t ? g.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? g.EQUAL : e.startsWith(t) ? g.STARTS_WITH : e.includes(` ${t}`) ? g.WORD_STARTS_WITH : e.includes(t) ? g.CONTAINS : t.length === 1 ? g.NO_MATCH : st(e).includes(t) ? g.ACRONYM : at(e, t));
|
|
573
574
|
}
|
|
574
|
-
function
|
|
575
|
-
let
|
|
575
|
+
function st(e) {
|
|
576
|
+
let t = "";
|
|
576
577
|
return e.split(" ").forEach((r) => {
|
|
577
578
|
r.split("-").forEach((c) => {
|
|
578
|
-
|
|
579
|
+
t += c.substr(0, 1);
|
|
579
580
|
});
|
|
580
|
-
}),
|
|
581
|
+
}), t;
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
let
|
|
583
|
+
function at(e, t) {
|
|
584
|
+
let n = 0, r = 0;
|
|
584
585
|
function s(l, d, u) {
|
|
585
|
-
for (let h = u,
|
|
586
|
+
for (let h = u, E = d.length; h < E; h++)
|
|
586
587
|
if (d[h] === l)
|
|
587
|
-
return
|
|
588
|
+
return n += 1, h + 1;
|
|
588
589
|
return -1;
|
|
589
590
|
}
|
|
590
591
|
function c(l) {
|
|
591
|
-
const d = 1 / l, u =
|
|
592
|
+
const d = 1 / l, u = n / t.length;
|
|
592
593
|
return g.MATCHES + u * d;
|
|
593
594
|
}
|
|
594
|
-
const i = s(
|
|
595
|
+
const i = s(t[0], e, 0);
|
|
595
596
|
if (i < 0)
|
|
596
597
|
return g.NO_MATCH;
|
|
597
598
|
r = i;
|
|
598
|
-
for (let l = 1, d =
|
|
599
|
-
const u =
|
|
599
|
+
for (let l = 1, d = t.length; l < d; l++) {
|
|
600
|
+
const u = t[l];
|
|
600
601
|
if (r = s(u, e, r), !(r > -1))
|
|
601
602
|
return g.NO_MATCH;
|
|
602
603
|
}
|
|
603
604
|
const o = r - i;
|
|
604
605
|
return c(o);
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
+
function ot(e, t, n) {
|
|
607
608
|
const {
|
|
608
609
|
rank: c,
|
|
609
610
|
keyIndex: i
|
|
610
611
|
} = e, {
|
|
611
612
|
rank: o,
|
|
612
613
|
keyIndex: l
|
|
613
|
-
} =
|
|
614
|
-
return c === o ? i === l ?
|
|
614
|
+
} = t;
|
|
615
|
+
return c === o ? i === l ? n(e, t) : i < l ? -1 : 1 : c > o ? -1 : 1;
|
|
615
616
|
}
|
|
616
|
-
function ge(e,
|
|
617
|
+
function ge(e, t) {
|
|
617
618
|
let {
|
|
618
|
-
keepDiacritics:
|
|
619
|
-
} =
|
|
620
|
-
return e = `${e}`,
|
|
619
|
+
keepDiacritics: n
|
|
620
|
+
} = t;
|
|
621
|
+
return e = `${e}`, n || (e = tt(e)), e;
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
-
typeof
|
|
624
|
-
let
|
|
625
|
-
if (typeof
|
|
626
|
-
|
|
623
|
+
function lt(e, t) {
|
|
624
|
+
typeof t == "object" && (t = t.key);
|
|
625
|
+
let n;
|
|
626
|
+
if (typeof t == "function")
|
|
627
|
+
n = t(e);
|
|
627
628
|
else if (e == null)
|
|
628
|
-
|
|
629
|
-
else if (Object.hasOwnProperty.call(e,
|
|
630
|
-
|
|
629
|
+
n = null;
|
|
630
|
+
else if (Object.hasOwnProperty.call(e, t))
|
|
631
|
+
n = e[t];
|
|
631
632
|
else {
|
|
632
|
-
if (
|
|
633
|
-
return
|
|
634
|
-
|
|
633
|
+
if (t.includes("."))
|
|
634
|
+
return ct(t, e);
|
|
635
|
+
n = null;
|
|
635
636
|
}
|
|
636
|
-
return
|
|
637
|
+
return n == null ? [] : Array.isArray(n) ? n : [String(n)];
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
-
const
|
|
640
|
-
let r = [
|
|
641
|
-
for (let s = 0, c =
|
|
642
|
-
const i =
|
|
639
|
+
function ct(e, t) {
|
|
640
|
+
const n = e.split(".");
|
|
641
|
+
let r = [t];
|
|
642
|
+
for (let s = 0, c = n.length; s < c; s++) {
|
|
643
|
+
const i = n[s];
|
|
643
644
|
let o = [];
|
|
644
645
|
for (let l = 0, d = r.length; l < d; l++) {
|
|
645
646
|
const u = r[l];
|
|
@@ -653,108 +654,108 @@ function cn(e, n) {
|
|
|
653
654
|
}
|
|
654
655
|
return Array.isArray(r[0]) ? [].concat(...r) : r;
|
|
655
656
|
}
|
|
656
|
-
function
|
|
657
|
-
const
|
|
658
|
-
for (let r = 0, s =
|
|
659
|
-
const c =
|
|
657
|
+
function it(e, t) {
|
|
658
|
+
const n = [];
|
|
659
|
+
for (let r = 0, s = t.length; r < s; r++) {
|
|
660
|
+
const c = t[r], i = ut(c), o = lt(e, c);
|
|
660
661
|
for (let l = 0, d = o.length; l < d; l++)
|
|
661
|
-
|
|
662
|
+
n.push({
|
|
662
663
|
itemValue: o[l],
|
|
663
664
|
attributes: i
|
|
664
665
|
});
|
|
665
666
|
}
|
|
666
|
-
return
|
|
667
|
+
return n;
|
|
667
668
|
}
|
|
668
669
|
const Ie = {
|
|
669
670
|
maxRanking: 1 / 0,
|
|
670
671
|
minRanking: -1 / 0
|
|
671
672
|
};
|
|
672
|
-
function
|
|
673
|
+
function ut(e) {
|
|
673
674
|
return typeof e == "string" ? Ie : {
|
|
674
675
|
...Ie,
|
|
675
676
|
...e
|
|
676
677
|
};
|
|
677
678
|
}
|
|
678
|
-
const
|
|
679
|
-
indicators:
|
|
680
|
-
"size-xs": "_size-
|
|
681
|
-
"dropdown-indicator": "_dropdown-
|
|
682
|
-
"styled-icon": "_styled-
|
|
683
|
-
open:
|
|
684
|
-
disabled:
|
|
685
|
-
"input-wrapper": "_input-
|
|
686
|
-
"icon-placement-right": "_icon-placement-
|
|
687
|
-
root:
|
|
688
|
-
"icon-placement-left": "_icon-placement-
|
|
689
|
-
"icon-placement-both": "_icon-placement-
|
|
690
|
-
clearable:
|
|
691
|
-
transparent:
|
|
692
|
-
"variant-danger": "_variant-
|
|
693
|
-
"variant-success": "_variant-
|
|
694
|
-
"variant-warning": "_variant-
|
|
695
|
-
"size-lg": "_size-
|
|
696
|
-
"size-md": "_size-
|
|
697
|
-
"size-sm": "_size-
|
|
698
|
-
"icon-wrapper": "_icon-
|
|
699
|
-
wrapper:
|
|
700
|
-
menu:
|
|
701
|
-
item:
|
|
702
|
-
highlighted:
|
|
703
|
-
selected:
|
|
704
|
-
multiple:
|
|
705
|
-
allowUnselectFromList:
|
|
706
|
-
tags:
|
|
707
|
-
"styled-tag": "_styled-
|
|
708
|
-
},
|
|
709
|
-
function
|
|
710
|
-
return /* @__PURE__ */
|
|
679
|
+
const dt = "_indicators_1tqnt_2", ft = "_open_1tqnt_34", mt = "_disabled_1tqnt_40", ht = "_root_1tqnt_51", _t = "_clearable_1tqnt_86", pt = "_transparent_1tqnt_104", At = "_wrapper_1tqnt_204", gt = "_menu_1tqnt_211", It = "_item_1tqnt_239", vt = "_highlighted_1tqnt_253", Et = "_selected_1tqnt_256", Ot = "_multiple_1tqnt_256", yt = "_allowUnselectFromList_1tqnt_260", wt = "_tags_1tqnt_268", we = {
|
|
680
|
+
indicators: dt,
|
|
681
|
+
"size-xs": "_size-xs_1tqnt_11",
|
|
682
|
+
"dropdown-indicator": "_dropdown-indicator_1tqnt_14",
|
|
683
|
+
"styled-icon": "_styled-icon_1tqnt_28",
|
|
684
|
+
open: ft,
|
|
685
|
+
disabled: mt,
|
|
686
|
+
"input-wrapper": "_input-wrapper_1tqnt_44",
|
|
687
|
+
"icon-placement-right": "_icon-placement-right_1tqnt_47",
|
|
688
|
+
root: ht,
|
|
689
|
+
"icon-placement-left": "_icon-placement-left_1tqnt_83",
|
|
690
|
+
"icon-placement-both": "_icon-placement-both_1tqnt_83",
|
|
691
|
+
clearable: _t,
|
|
692
|
+
transparent: pt,
|
|
693
|
+
"variant-danger": "_variant-danger_1tqnt_140",
|
|
694
|
+
"variant-success": "_variant-success_1tqnt_143",
|
|
695
|
+
"variant-warning": "_variant-warning_1tqnt_146",
|
|
696
|
+
"size-lg": "_size-lg_1tqnt_149",
|
|
697
|
+
"size-md": "_size-md_1tqnt_157",
|
|
698
|
+
"size-sm": "_size-sm_1tqnt_165",
|
|
699
|
+
"icon-wrapper": "_icon-wrapper_1tqnt_173",
|
|
700
|
+
wrapper: At,
|
|
701
|
+
menu: gt,
|
|
702
|
+
item: It,
|
|
703
|
+
highlighted: vt,
|
|
704
|
+
selected: Et,
|
|
705
|
+
multiple: Ot,
|
|
706
|
+
allowUnselectFromList: yt,
|
|
707
|
+
tags: wt,
|
|
708
|
+
"styled-tag": "_styled-tag_1tqnt_271"
|
|
709
|
+
}, ve = ye(we);
|
|
710
|
+
function Ct(e, t) {
|
|
711
|
+
return /* @__PURE__ */ v("div", { className: ve("tags"), role: "list", children: e.map((n) => (
|
|
711
712
|
// TODO migrate after WUI-187/tag
|
|
712
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ v(
|
|
713
714
|
Ge,
|
|
714
715
|
{
|
|
715
|
-
className:
|
|
716
|
-
onRemove: () => n
|
|
716
|
+
className: ve("styled-tag"),
|
|
717
|
+
onRemove: () => t(n.value.toString()),
|
|
717
718
|
role: "listitem",
|
|
718
|
-
children:
|
|
719
|
+
children: n.label
|
|
719
720
|
},
|
|
720
|
-
|
|
721
|
+
n.value
|
|
721
722
|
)
|
|
722
723
|
)) });
|
|
723
724
|
}
|
|
724
|
-
const ee = "",
|
|
725
|
+
const ee = "", xt = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g, Ce = (e) => {
|
|
725
726
|
if (typeof e == "number")
|
|
726
727
|
return String(e);
|
|
727
728
|
if (typeof e == "string") {
|
|
728
|
-
const
|
|
729
|
-
return
|
|
729
|
+
const t = e.match(xt);
|
|
730
|
+
return t && t.map((n) => n.toLowerCase()).join("-");
|
|
730
731
|
}
|
|
731
|
-
},
|
|
732
|
-
(
|
|
732
|
+
}, Ee = (e) => e ? e.label : ee, Nt = (e) => e.reduce(
|
|
733
|
+
(t, n) => n.label && t.length > n.label.length ? t : n.label,
|
|
733
734
|
ee
|
|
734
|
-
),
|
|
735
|
-
const r =
|
|
736
|
-
return r &&
|
|
737
|
-
},
|
|
735
|
+
), bt = (e, t, n) => {
|
|
736
|
+
const r = t.find((s) => e.value === s.value);
|
|
737
|
+
return r && n ? t.filter((s) => e.value !== s.value) : r ? t : [...t, e];
|
|
738
|
+
}, Q = (e, t) => !!t.find((n) => n.value === e), J = (e, t = []) => t.find(
|
|
738
739
|
(r) => r.label === (e.label || e) || r.value === (e.value || e)
|
|
739
|
-
) || { label: e, value:
|
|
740
|
-
const r =
|
|
740
|
+
) || { label: e, value: Ce(e) }, Rt = (e, t, n = !1) => {
|
|
741
|
+
const r = n ? t.flatMap((s) => s.options) : t;
|
|
741
742
|
return !e && e !== 0 ? [] : Array.isArray(e) ? e.map((s) => J(s, r)) : [J(e, r)];
|
|
742
|
-
},
|
|
743
|
-
(
|
|
744
|
-
) : [],
|
|
743
|
+
}, qt = (e, t) => !!t.find((n) => n.value === e.value), kt = (e, t) => qt(e, t) ? e.value : e.label, Oe = (e, t) => e ? e.map((n) => kt(n, t)) : [], St = (e, t) => e ? e.filter(
|
|
744
|
+
(n) => !t.find((r) => r.value === n.value)
|
|
745
|
+
) : [], Ut = ({
|
|
745
746
|
inputValue: e,
|
|
746
|
-
isMultiple:
|
|
747
|
-
isSearchable:
|
|
747
|
+
isMultiple: t,
|
|
748
|
+
isSearchable: n,
|
|
748
749
|
options: r,
|
|
749
750
|
renderItem: s
|
|
750
751
|
}) => {
|
|
751
752
|
const c = J(e, r);
|
|
752
|
-
return
|
|
753
|
-
},
|
|
753
|
+
return t ? e : c.label ? n ? c.label : s(c) : ee;
|
|
754
|
+
}, w = ye(we), Vt = me.default || me, Tt = Le(
|
|
754
755
|
({
|
|
755
756
|
allowUnselectFromList: e,
|
|
756
|
-
autoComplete:
|
|
757
|
-
autoFocus:
|
|
757
|
+
autoComplete: t = "off",
|
|
758
|
+
autoFocus: n,
|
|
758
759
|
className: r,
|
|
759
760
|
dataTestId: s,
|
|
760
761
|
disableCloseOnSelect: c,
|
|
@@ -764,142 +765,142 @@ const ee = "", xn = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|
|
|
|
764
765
|
iconPlacement: d = "left",
|
|
765
766
|
id: u,
|
|
766
767
|
isClearable: h,
|
|
767
|
-
isCreatable:
|
|
768
|
+
isCreatable: E,
|
|
768
769
|
isMultiple: p,
|
|
769
770
|
isSearchable: m,
|
|
770
|
-
name:
|
|
771
|
-
onBlur:
|
|
772
|
-
onChange:
|
|
773
|
-
onClick:
|
|
774
|
-
onCreate:
|
|
775
|
-
onFocus:
|
|
771
|
+
name: k,
|
|
772
|
+
onBlur: T,
|
|
773
|
+
onChange: R,
|
|
774
|
+
onClick: S,
|
|
775
|
+
onCreate: $,
|
|
776
|
+
onFocus: xe,
|
|
776
777
|
options: I = [],
|
|
777
|
-
placeholder:
|
|
778
|
-
renderCreateItem:
|
|
779
|
-
renderGroupHeader:
|
|
780
|
-
renderItem:
|
|
781
|
-
renderMultiple: be =
|
|
782
|
-
size:
|
|
778
|
+
placeholder: te = "Choose from…",
|
|
779
|
+
renderCreateItem: Ne = (F) => `Create "${F}"`,
|
|
780
|
+
renderGroupHeader: ne,
|
|
781
|
+
renderItem: H = Ee,
|
|
782
|
+
renderMultiple: be = Ct,
|
|
783
|
+
size: z = "lg",
|
|
783
784
|
transparent: re,
|
|
784
785
|
value: se,
|
|
785
786
|
variant: ae,
|
|
786
787
|
...oe
|
|
787
|
-
},
|
|
788
|
-
const { getInputProps:
|
|
789
|
-
() =>
|
|
788
|
+
}, Re) => {
|
|
789
|
+
const { getInputProps: F, variant: qe } = Xe(), le = qe || ae, D = Pe(
|
|
790
|
+
() => Rt(se, I, o),
|
|
790
791
|
[se, I, o]
|
|
791
|
-
),
|
|
792
|
-
m =
|
|
793
|
-
const [
|
|
792
|
+
), Y = !p && D[0] || null, B = Y ? Y.label : "", [x, X] = P(D), [C, U] = P(B), [M, j] = P(I), [N, q] = P(!1);
|
|
793
|
+
m = E || m;
|
|
794
|
+
const [Z, ke] = Qe(Re);
|
|
794
795
|
he(() => {
|
|
795
|
-
|
|
796
|
-
}, [m,
|
|
797
|
-
|
|
798
|
-
}, [
|
|
799
|
-
const
|
|
800
|
-
if (m && a !==
|
|
796
|
+
n && Z.current && (Z.current.focus(), m && q(!0));
|
|
797
|
+
}, [m, n, Z]), he(() => {
|
|
798
|
+
X(D), U(B), j(I);
|
|
799
|
+
}, [B, I, D]);
|
|
800
|
+
const Se = (a) => {
|
|
801
|
+
if (m && a !== C) {
|
|
801
802
|
let f = [];
|
|
802
803
|
o ? f = G(I, a, {
|
|
803
804
|
// should match on group.label OR group.options.label
|
|
804
|
-
keys: [(A) => A.label, (A) => A.options.map((
|
|
805
|
-
}) : f = G(I, a, { keys: ["label"] }),
|
|
805
|
+
keys: [(A) => A.label, (A) => A.options.map((O) => O.label)]
|
|
806
|
+
}) : f = G(I, a, { keys: ["label"] }), U(a), j(f);
|
|
806
807
|
}
|
|
807
|
-
},
|
|
808
|
-
m && !
|
|
808
|
+
}, Ue = () => {
|
|
809
|
+
m && !N && q(!0);
|
|
809
810
|
}, ce = (a) => {
|
|
810
811
|
let f = [];
|
|
811
|
-
o ? f =
|
|
812
|
+
o ? f = Oe(
|
|
812
813
|
a,
|
|
813
814
|
I.flatMap((_) => _.options)
|
|
814
|
-
) : f =
|
|
815
|
-
const A = p ? f : f[0],
|
|
816
|
-
if (
|
|
817
|
-
const _ =
|
|
818
|
-
_.length && (
|
|
815
|
+
) : f = Oe(a, I);
|
|
816
|
+
const A = p ? f : f[0], O = Ze({ name: k, value: p ? a : a[0] });
|
|
817
|
+
if (R == null || R(A, O), E) {
|
|
818
|
+
const _ = St(a, I);
|
|
819
|
+
_.length && ($ == null || $(_[0].label, O));
|
|
819
820
|
}
|
|
820
|
-
},
|
|
821
|
+
}, Ve = (a) => {
|
|
821
822
|
let f, A;
|
|
822
|
-
!a || a != null && a.disabled ? (f = p ?
|
|
823
|
+
!a || a != null && a.disabled ? (f = p ? x : [], A = !0) : (f = p ? bt(a, x, e) : [a], A = p), A && U(""), j(I), X(f), ce(f), c || q(!1);
|
|
824
|
+
}, Te = (a) => {
|
|
825
|
+
const f = x.filter((A) => A.value !== a);
|
|
826
|
+
X(f), ce(f);
|
|
823
827
|
}, He = (a) => {
|
|
824
|
-
|
|
825
|
-
Z(f), ce(f);
|
|
828
|
+
S == null || S(a), q(!N);
|
|
826
829
|
}, ze = (a) => {
|
|
827
|
-
|
|
828
|
-
}, Fe = (
|
|
829
|
-
|
|
830
|
-
}, De = bn(I), ie = Tn({
|
|
831
|
-
inputValue: w,
|
|
830
|
+
p && a.selectedItem ? U("") : m && a.selectedItem && U(a.selectedItem.label), j(I), q(!1);
|
|
831
|
+
}, Fe = Nt(I), ie = Ut({
|
|
832
|
+
inputValue: C,
|
|
832
833
|
isMultiple: p,
|
|
833
834
|
isSearchable: m,
|
|
834
835
|
options: I,
|
|
835
|
-
renderItem:
|
|
836
|
-
}),
|
|
836
|
+
renderItem: H
|
|
837
|
+
}), De = $e(
|
|
837
838
|
({
|
|
838
839
|
getItemProps: a,
|
|
839
840
|
highlightedIndex: f,
|
|
840
841
|
options: A
|
|
841
842
|
}) => A.reduce(
|
|
842
|
-
(
|
|
843
|
+
(O, _, W) => {
|
|
843
844
|
if (o && "options" in _)
|
|
844
|
-
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
|
|
847
|
-
_.options ? _.options.map((
|
|
848
|
-
const b =
|
|
849
|
-
return /* @__PURE__ */
|
|
845
|
+
O.itemsToRender.push(
|
|
846
|
+
/* @__PURE__ */ L(Ye, { children: [
|
|
847
|
+
ne(_),
|
|
848
|
+
_.options ? _.options.map((y) => {
|
|
849
|
+
const b = O.itemIndex++, K = Q(y.value, x);
|
|
850
|
+
return /* @__PURE__ */ v(
|
|
850
851
|
"li",
|
|
851
852
|
{
|
|
852
|
-
className:
|
|
853
|
+
className: w(
|
|
853
854
|
"item",
|
|
854
855
|
f === b && "highlighted",
|
|
855
856
|
p && "multiple",
|
|
856
857
|
e && "allowUnselectFromList",
|
|
857
|
-
|
|
858
|
-
|
|
858
|
+
y.disabled && "disabled",
|
|
859
|
+
K && "selected"
|
|
859
860
|
),
|
|
860
861
|
...a({
|
|
861
862
|
index: b,
|
|
862
|
-
item:
|
|
863
|
+
item: y
|
|
863
864
|
}),
|
|
864
|
-
children:
|
|
865
|
+
children: H(y, K)
|
|
865
866
|
},
|
|
866
|
-
|
|
867
|
+
y.value
|
|
867
868
|
);
|
|
868
869
|
}) : null
|
|
869
870
|
] }, _.label)
|
|
870
871
|
);
|
|
871
872
|
else if ("value" in _) {
|
|
872
|
-
const
|
|
873
|
-
|
|
874
|
-
/* @__PURE__ */
|
|
873
|
+
const y = Q(_.value, x), b = f === W;
|
|
874
|
+
O.itemsToRender.push(
|
|
875
|
+
/* @__PURE__ */ v(
|
|
875
876
|
"li",
|
|
876
877
|
{
|
|
877
|
-
className:
|
|
878
|
+
className: w(
|
|
878
879
|
"item",
|
|
879
880
|
b && "highlighted",
|
|
880
881
|
p && "multiple",
|
|
881
882
|
e && "allowUnselectFromList",
|
|
882
883
|
_.disabled && "disabled",
|
|
883
|
-
|
|
884
|
+
y && "selected"
|
|
884
885
|
),
|
|
885
886
|
...a({
|
|
886
|
-
index:
|
|
887
|
+
index: W,
|
|
887
888
|
item: _
|
|
888
889
|
}),
|
|
889
|
-
children:
|
|
890
|
+
children: H(_, y)
|
|
890
891
|
},
|
|
891
892
|
_.value
|
|
892
893
|
)
|
|
893
894
|
);
|
|
894
895
|
}
|
|
895
|
-
return
|
|
896
|
+
return O;
|
|
896
897
|
},
|
|
897
898
|
{ itemIndex: 0, itemsToRender: [] }
|
|
898
899
|
).itemsToRender,
|
|
899
|
-
[p, e,
|
|
900
|
-
), ue =
|
|
900
|
+
[p, e, x, o, ne, H]
|
|
901
|
+
), ue = w(
|
|
901
902
|
"root",
|
|
902
|
-
`size-${
|
|
903
|
+
`size-${z}`,
|
|
903
904
|
le && `variant-${le}`,
|
|
904
905
|
h && "clearable",
|
|
905
906
|
re && "transparent",
|
|
@@ -907,104 +908,105 @@ const ee = "", xn = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|
|
|
|
907
908
|
r,
|
|
908
909
|
i && "disabled"
|
|
909
910
|
);
|
|
910
|
-
return /* @__PURE__ */
|
|
911
|
-
|
|
911
|
+
return /* @__PURE__ */ v(
|
|
912
|
+
Vt,
|
|
912
913
|
{
|
|
913
914
|
id: u,
|
|
914
915
|
inputValue: m ? ie : "",
|
|
915
|
-
isOpen:
|
|
916
|
-
itemToString:
|
|
917
|
-
onInputValueChange:
|
|
918
|
-
onOuterClick:
|
|
919
|
-
onSelect:
|
|
920
|
-
selectedItem:
|
|
916
|
+
isOpen: N,
|
|
917
|
+
itemToString: Ee,
|
|
918
|
+
onInputValueChange: Se,
|
|
919
|
+
onOuterClick: ze,
|
|
920
|
+
onSelect: Ve,
|
|
921
|
+
selectedItem: Y,
|
|
921
922
|
children: ({
|
|
922
923
|
clearSelection: a,
|
|
923
924
|
getInputProps: f,
|
|
924
925
|
getItemProps: A,
|
|
925
|
-
getMenuProps:
|
|
926
|
+
getMenuProps: O,
|
|
926
927
|
getRootProps: _,
|
|
927
|
-
getToggleButtonProps:
|
|
928
|
-
highlightedIndex:
|
|
928
|
+
getToggleButtonProps: W,
|
|
929
|
+
highlightedIndex: y
|
|
929
930
|
}) => {
|
|
930
|
-
const b = !!(
|
|
931
|
-
|
|
931
|
+
const b = !!(E && C && !Q(C, x)), K = N && (M.length || b), de = h && C, Me = /* @__PURE__ */ v("div", { className: w("dropdown-indicator", N && "open"), children: /* @__PURE__ */ v(
|
|
932
|
+
Be,
|
|
932
933
|
{
|
|
933
934
|
animatePresence: !0,
|
|
934
935
|
onClick: a,
|
|
935
936
|
title: "Clear"
|
|
936
937
|
}
|
|
937
|
-
) }),
|
|
938
|
+
) }), je = /* @__PURE__ */ v(
|
|
938
939
|
"div",
|
|
939
940
|
{
|
|
940
|
-
className:
|
|
941
|
+
className: w("dropdown-indicator", N && "open", i && "disabled"),
|
|
941
942
|
"data-testid": s ? `${s}-arrow-icon` : null,
|
|
942
943
|
disabled: i,
|
|
943
944
|
tabIndex: -1,
|
|
944
|
-
...
|
|
945
|
-
onClick: () => !i &&
|
|
945
|
+
...W({
|
|
946
|
+
onClick: () => !i && q(!N)
|
|
946
947
|
}),
|
|
947
|
-
children: /* @__PURE__ */
|
|
948
|
+
children: /* @__PURE__ */ v(_e, { className: w("styled-icon"), name: "angle-down", size: "lg" })
|
|
948
949
|
}
|
|
949
|
-
),
|
|
950
|
-
autoComplete:
|
|
951
|
-
autoFocus:
|
|
952
|
-
"data-spacer":
|
|
950
|
+
), We = _(oe, { suppressRefError: !0 }), fe = f({
|
|
951
|
+
autoComplete: t,
|
|
952
|
+
autoFocus: n,
|
|
953
|
+
"data-spacer": Fe || te,
|
|
953
954
|
"data-testid": s,
|
|
954
955
|
disabled: i,
|
|
955
956
|
id: u,
|
|
956
|
-
name:
|
|
957
|
-
onBlur:
|
|
958
|
-
onClick: i ? void 0 :
|
|
959
|
-
onFocus:
|
|
960
|
-
onKeyDown:
|
|
961
|
-
placeholder:
|
|
962
|
-
ref:
|
|
963
|
-
size:
|
|
957
|
+
name: k,
|
|
958
|
+
onBlur: T,
|
|
959
|
+
onClick: i ? void 0 : He,
|
|
960
|
+
onFocus: xe,
|
|
961
|
+
onKeyDown: Ue,
|
|
962
|
+
placeholder: te,
|
|
963
|
+
ref: ke,
|
|
964
|
+
size: z,
|
|
964
965
|
tabIndex: 0,
|
|
965
966
|
transparent: re,
|
|
966
|
-
variant:
|
|
967
|
+
variant: N ? "focused" : ae,
|
|
967
968
|
...oe
|
|
968
969
|
});
|
|
969
|
-
return /* @__PURE__ */
|
|
970
|
-
m ? /* @__PURE__ */
|
|
970
|
+
return /* @__PURE__ */ L("div", { ...We, className: w("wrapper", i && "disabled", "field-input"), children: [
|
|
971
|
+
m ? /* @__PURE__ */ v(
|
|
971
972
|
"input",
|
|
972
973
|
{
|
|
973
974
|
className: ue,
|
|
974
975
|
type: "text",
|
|
975
|
-
...
|
|
976
|
+
...F(fe)
|
|
976
977
|
}
|
|
977
|
-
) : /* @__PURE__ */
|
|
978
|
-
l ? /* @__PURE__ */
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
de ?
|
|
981
|
-
|
|
978
|
+
) : /* @__PURE__ */ v("div", { className: ue, ...F(fe), children: ie }),
|
|
979
|
+
l ? /* @__PURE__ */ v("div", { className: w("icon-wrapper", "icon-placement-left", `size-${z}`), children: /* @__PURE__ */ v(_e, { ...l.props, size: "md" }) }) : null,
|
|
980
|
+
/* @__PURE__ */ L("div", { className: w("indicators", `size-${z}`), children: [
|
|
981
|
+
de ? Me : null,
|
|
982
|
+
je
|
|
982
983
|
] }),
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
b &&
|
|
984
|
+
K ? /* @__PURE__ */ L("ul", { className: w("menu"), ...O(), children: [
|
|
985
|
+
De({ getItemProps: A, highlightedIndex: y, options: M }),
|
|
986
|
+
b && C.length ? /* @__PURE__ */ v(
|
|
986
987
|
"li",
|
|
987
988
|
{
|
|
988
|
-
className:
|
|
989
|
+
className: w("item", y === M.length && "highlighted"),
|
|
989
990
|
...A({
|
|
990
|
-
index:
|
|
991
|
+
index: M.length,
|
|
991
992
|
item: {
|
|
992
|
-
label:
|
|
993
|
-
value:
|
|
993
|
+
label: C,
|
|
994
|
+
value: Ce(C)
|
|
994
995
|
}
|
|
995
996
|
}),
|
|
996
|
-
children:
|
|
997
|
+
children: Ne(C)
|
|
997
998
|
},
|
|
998
999
|
"add"
|
|
999
1000
|
) : null
|
|
1000
1001
|
] }) : null,
|
|
1001
|
-
p ? be(
|
|
1002
|
+
p ? be(x, Te) : null
|
|
1002
1003
|
] });
|
|
1003
1004
|
}
|
|
1004
1005
|
}
|
|
1005
1006
|
);
|
|
1006
1007
|
}
|
|
1007
1008
|
);
|
|
1009
|
+
Tt.displayName = "Select";
|
|
1008
1010
|
export {
|
|
1009
|
-
|
|
1011
|
+
Tt as Select
|
|
1010
1012
|
};
|