@midas-ds/components 16.3.0 → 16.3.2
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/CHANGELOG.md +13 -0
- package/accordion/index.js +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/Select.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{AccordionItem-BUUDZ7l6.js → AccordionItem-D6vWtoJN.js} +2 -2
- package/chunks/{Button-wBgWrXj3.js → Button-BYrLbzir.js} +1 -1
- package/chunks/{CheckboxGroup-BQ8EpX7O.js → CheckboxGroup-C6LIpj_R.js} +2 -2
- package/chunks/{ColorSchemeSwitch-DugvPh6T.js → ColorSchemeSwitch-D-vCkxQo.js} +1 -1
- package/chunks/ComboBox-BXcuyHPd.js +108 -0
- package/chunks/{DateField-06YL8tj_.js → DateField-DPJrihTz.js} +1 -1
- package/chunks/{DateRangePicker-CZRWDV_g.js → DateRangePicker-DzgK_p0d.js} +2 -2
- package/chunks/{Dialog-DC0cGNj5.js → Dialog-DprWZBKT.js} +2 -2
- package/chunks/{FeedbackStatusIcon-COWuMusk.js → FeedbackStatusIcon-YJaUAfjp.js} +1 -1
- package/chunks/{InfoBanner-DLiVpNON.js → InfoBanner-BOKZ4lBE.js} +3 -3
- package/chunks/{Label-Dup4lWaR.js → Label-6SXmzRZE.js} +2 -2
- package/chunks/{Layout-DX3HUm5b.js → Layout-DveMXIKw.js} +3 -3
- package/chunks/{ListBoxLoadMoreItem-CB67meAb.js → ListBoxLoadMoreItem-CygpsU3W.js} +2 -2
- package/chunks/{Logo-InDSslpO.js → Logo-CsWcKqIg.js} +1 -1
- package/chunks/{ProgressBar-CbwvcHvk.js → ProgressBar-67lCngwJ.js} +1 -1
- package/chunks/{Radio-BDHczAt5.js → Radio-XQA8CylD.js} +1 -1
- package/chunks/{RangeCalendar-BSth1Fmv.js → RangeCalendar-Bt8q3FZi.js} +1 -1
- package/chunks/{SearchField-DTkfUFwn.js → SearchField-CxoPi6Ql.js} +2 -2
- package/chunks/Select-BNCz_ox4.js +221 -0
- package/chunks/{Select-CPM82ww2.js → Select-CyYUhMOg.js} +4 -4
- package/chunks/{Spinner-BORNnHph.js → Spinner-tvJ7rPiT.js} +1 -1
- package/chunks/{Tag-DxBoeE_n.js → Tag-BKcduKRR.js} +1 -1
- package/chunks/{TextArea-DQ_dAC-2.js → TextArea-BM5wOL3b.js} +3 -3
- package/chunks/{Toast-DTwUGSJ8.js → Toast-C-EV39pd.js} +2 -2
- package/chunks/useLocalizedStringFormatter-BHvsRxDk.js +25 -0
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +65 -63
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/index.js +1 -1
- package/list-box/index.js +1 -1
- package/logo/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/MultiSelectValue.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -2
- package/select/index.js +1 -1
- package/spinner/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/chunks/ComboBox-DVK0dL2W.js +0 -108
- package/chunks/Select-C8Fr7Vn3.js +0 -208
- package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +0 -25
- package/select/SelectValueTag.d.ts +0 -5
|
@@ -14,14 +14,14 @@ import { ListKeyboardDelegate as le, useTypeSelect as ne } from "@react-aria/sel
|
|
|
14
14
|
import { useMenuTriggerState as oe } from "@react-stately/menu";
|
|
15
15
|
import { useFormValidationState as ie } from "@react-stately/form";
|
|
16
16
|
import { useListState as re } from "@react-stately/list";
|
|
17
|
-
import { a as se, T as ae } from "./Tag-
|
|
17
|
+
import { a as se, T as ae } from "./Tag-BKcduKRR.js";
|
|
18
18
|
import { useFormValidation as ce } from "@react-aria/form";
|
|
19
19
|
import { useVisuallyHidden as de } from "@react-aria/visually-hidden";
|
|
20
|
-
import { a as ue, L as me } from "./Label-
|
|
20
|
+
import { a as ue, L as me } from "./Label-6SXmzRZE.js";
|
|
21
21
|
import { T as ge } from "./Text-TWzJxnto.js";
|
|
22
22
|
import { C as fe } from "./Checkbox-BTAfwDxU.js";
|
|
23
23
|
import { X as pe } from "./x-BXShoIAM.js";
|
|
24
|
-
import { u as B } from "./useLocalizedStringFormatter-
|
|
24
|
+
import { u as B } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
25
25
|
import { C as ye } from "./chevron-down-DgT-uSF9.js";
|
|
26
26
|
import { F as he } from "./FieldError-Bra5aRT3.js";
|
|
27
27
|
import '../assets/Select2.css';const T = ({ item: e }) => /* @__PURE__ */ o(
|
|
@@ -565,7 +565,7 @@ const Ve = "_wrapper_1nkrm_7", ke = "_trigger_1nkrm_18", Me = "_medium_1nkrm_32"
|
|
|
565
565
|
title: r.name,
|
|
566
566
|
children: (l) => /* @__PURE__ */ o(C, { textValue: l.textValue, children: l.name })
|
|
567
567
|
},
|
|
568
|
-
r.name
|
|
568
|
+
String(r.name)
|
|
569
569
|
) : /* @__PURE__ */ o(C, { textValue: r.textValue, children: r.name })
|
|
570
570
|
}
|
|
571
571
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import { VisuallyHidden as c } from "react-aria";
|
|
4
|
-
import { u as l } from "./useLocalizedStringFormatter-
|
|
4
|
+
import { u as l } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
5
5
|
import { c as d } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
6
|
import '../assets/Spinner.css';const m = "_container_1qexx_1", p = "_spinner_1qexx_5", g = "_large_1qexx_18", n = {
|
|
7
7
|
container: m,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Tag as c, TagGroup as _, TagList as e } from "react-aria-components";
|
|
3
|
-
import { B as g } from "./Button-
|
|
3
|
+
import { B as g } from "./Button-BYrLbzir.js";
|
|
4
4
|
import { c as u } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { X as l } from "./x-BXShoIAM.js";
|
|
6
6
|
import '../assets/Tag.css';const T = "_button_1nm6n_1", p = "_success_1nm6n_16", f = "_warning_1nm6n_17", d = "_info_1nm6n_18", x = "_important_1nm6n_19", b = "_tag_1nm6n_31", w = "_tagText_1nm6n_83", L = "_dismissable_1nm6n_88", N = "_tagList_1nm6n_92", s = {
|
|
@@ -4,11 +4,11 @@ import { useContextProps as p, TextFieldContext as b, TextField as g, InputConte
|
|
|
4
4
|
import { a as A, c as h } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { s as d } from "./TextField.module-DZslrEPC.js";
|
|
6
6
|
import { T as w } from "./Text-TWzJxnto.js";
|
|
7
|
-
import { B } from "./Button-
|
|
8
|
-
import { u as L } from "./useLocalizedStringFormatter-
|
|
7
|
+
import { B } from "./Button-BYrLbzir.js";
|
|
8
|
+
import { u as L } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
9
9
|
import { F as u } from "./FieldError-Bra5aRT3.js";
|
|
10
10
|
import { C as E } from "./CharacterCounter-R6vh7AE5.js";
|
|
11
|
-
import { a as S, L as $ } from "./Label-
|
|
11
|
+
import { a as S, L as $ } from "./Label-6SXmzRZE.js";
|
|
12
12
|
const x = l(
|
|
13
13
|
(e, a) => {
|
|
14
14
|
[e] = p(e, a, b);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as c, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { B as p } from "./Button-
|
|
2
|
+
import { B as p } from "./Button-BYrLbzir.js";
|
|
3
3
|
import { useToastRegion as g, useToast as h } from "react-aria";
|
|
4
4
|
import { ToastQueue as v, useToastQueue as R, useToastState as y } from "react-stately";
|
|
5
5
|
import l from "react";
|
|
6
6
|
import { createPortal as b, flushSync as w } from "react-dom";
|
|
7
7
|
import { c as d } from "./clsx-AexbMWKp.js";
|
|
8
|
-
import { F as P } from "./FeedbackStatusIcon-
|
|
8
|
+
import { F as P } from "./FeedbackStatusIcon-YJaUAfjp.js";
|
|
9
9
|
import { X as I } from "./x-BXShoIAM.js";
|
|
10
10
|
import '../assets/Toast.css';const N = "_toastRegion_1798d_49", E = "_toast_1798d_49", O = "_success_1798d_97", x = "_info_1798d_105", C = "_important_1798d_113", M = "_warning_1798d_121", S = "_icon_1798d_129", k = "_toastContent_1798d_143", B = "_toastMessage_1798d_150", F = "_slideInTop_1798d_1", Q = "_slideInEnd_1798d_1", V = "_slideOutTop_1798d_1", j = "_slideOutEnd_1798d_1", e = {
|
|
11
11
|
toastRegion: N,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LocalizedStringFormatter as c, LocalizedStringDictionary as a } from "@internationalized/string";
|
|
2
|
+
import { useMemo as u } from "react";
|
|
3
|
+
import { useLocale as l } from "react-aria-components";
|
|
4
|
+
const t = "sv", n = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function d(e) {
|
|
6
|
+
let o = n.get(e);
|
|
7
|
+
return o || (o = new a(e, t), n.set(e, o)), o;
|
|
8
|
+
}
|
|
9
|
+
function f(e, o) {
|
|
10
|
+
return o && a.getGlobalDictionaryForPackage(o) || d(e);
|
|
11
|
+
}
|
|
12
|
+
function D(e, o) {
|
|
13
|
+
if (!e || typeof e != "object" || !(t in e))
|
|
14
|
+
throw new Error(
|
|
15
|
+
`useLocalizedStringFormatter: Default language "${t}" must be defined in dictionary.`
|
|
16
|
+
);
|
|
17
|
+
const { locale: r } = l(), i = f(e, o);
|
|
18
|
+
return u(
|
|
19
|
+
() => new c(r, i),
|
|
20
|
+
[i, r]
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
D as u
|
|
25
|
+
};
|
package/combobox/index.js
CHANGED
package/date-field/index.js
CHANGED
package/date-picker/index.js
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,84 +1,85 @@
|
|
|
1
|
-
import { a as r, A as e } from "./chunks/AccordionItem-
|
|
1
|
+
import { a as r, A as e } from "./chunks/AccordionItem-D6vWtoJN.js";
|
|
2
2
|
import { B as s, a as p } from "./chunks/BadgeContainer-CKVsfTlF.js";
|
|
3
3
|
import { B as m } from "./chunks/Breadcrumbs-By2bMbQd.js";
|
|
4
|
-
import { B as
|
|
4
|
+
import { B as f } from "./chunks/Button-BYrLbzir.js";
|
|
5
5
|
import { B as d } from "./chunks/ButtonGroup-Dr6HOBo2.js";
|
|
6
|
-
import { C as l, R as
|
|
7
|
-
import { C as g, d as
|
|
6
|
+
import { C as l, R as u } from "./chunks/RangeCalendar-Bt8q3FZi.js";
|
|
7
|
+
import { C as g, d as b, c, a as B, e as L, f as S, b as D } from "./chunks/Card-ia98VoKL.js";
|
|
8
8
|
import { C as G } from "./chunks/CharacterCounter-R6vh7AE5.js";
|
|
9
9
|
import { C as R } from "./chunks/Checkbox-BTAfwDxU.js";
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as v } from "./chunks/ColorSchemeSwitch-
|
|
12
|
-
import { C as h, a as H, b as y } from "./chunks/ComboBox-
|
|
13
|
-
import { D as N } from "./chunks/DateField-
|
|
14
|
-
import { a as
|
|
15
|
-
import { D as
|
|
10
|
+
import { C as F } from "./chunks/CheckboxGroup-C6LIpj_R.js";
|
|
11
|
+
import { C as v } from "./chunks/ColorSchemeSwitch-D-vCkxQo.js";
|
|
12
|
+
import { C as h, a as H, b as y } from "./chunks/ComboBox-BXcuyHPd.js";
|
|
13
|
+
import { D as N } from "./chunks/DateField-DPJrihTz.js";
|
|
14
|
+
import { a as E, b as Q, D as Z } from "./chunks/DateInputDivider-CkTB5q5k.js";
|
|
15
|
+
import { D as q, a as J } from "./chunks/DateRangePicker-DzgK_p0d.js";
|
|
16
16
|
import { F as O } from "./chunks/FieldError-Bra5aRT3.js";
|
|
17
17
|
import { D as V, F as W } from "./chunks/FileUpload-h1PxqQmb.js";
|
|
18
18
|
import { G as Y } from "./chunks/Grid-B-WgMwON.js";
|
|
19
19
|
import { G as $ } from "./chunks/GridItem-5t1Z14sM.js";
|
|
20
20
|
import { H as ao } from "./chunks/Heading-D8tNNJkt.js";
|
|
21
|
-
import { I as eo } from "./chunks/InfoBanner-
|
|
22
|
-
import { L as so } from "./chunks/Label-
|
|
23
|
-
import { H as xo, L as mo, N as
|
|
21
|
+
import { I as eo } from "./chunks/InfoBanner-BOKZ4lBE.js";
|
|
22
|
+
import { L as so } from "./chunks/Label-6SXmzRZE.js";
|
|
23
|
+
import { H as xo, L as mo, N as io, S as fo, a as no } from "./chunks/Layout-DveMXIKw.js";
|
|
24
24
|
import { L as lo } from "./chunks/Link-yTNUNv3C.js";
|
|
25
|
-
import { L as
|
|
26
|
-
import { L as
|
|
27
|
-
import { M as
|
|
25
|
+
import { L as Co } from "./chunks/LinkButton-3nAekUJ4.js";
|
|
26
|
+
import { L as bo } from "./chunks/Logo-CsWcKqIg.js";
|
|
27
|
+
import { M as Bo } from "./chunks/Dialog-DprWZBKT.js";
|
|
28
28
|
import { P as So } from "./chunks/Popover-BcEtFiU1.js";
|
|
29
|
-
import { P as Io } from "./chunks/ProgressBar-
|
|
30
|
-
import { R as Po, a as Ro } from "./chunks/Radio-
|
|
31
|
-
import { S as
|
|
32
|
-
import { S as vo } from "./chunks/Select-
|
|
33
|
-
import { S as ho } from "./chunks/Select-
|
|
29
|
+
import { P as Io } from "./chunks/ProgressBar-67lCngwJ.js";
|
|
30
|
+
import { R as Po, a as Ro } from "./chunks/Radio-XQA8CylD.js";
|
|
31
|
+
import { S as Fo } from "./chunks/SearchField-CxoPi6Ql.js";
|
|
32
|
+
import { S as vo } from "./chunks/Select-BNCz_ox4.js";
|
|
33
|
+
import { S as ho } from "./chunks/Select-CyYUhMOg.js";
|
|
34
34
|
import { S as yo } from "./chunks/Skeleton-DqIHQLQl.js";
|
|
35
|
-
import { S as No } from "./chunks/Spinner-
|
|
36
|
-
import { b as
|
|
35
|
+
import { S as No } from "./chunks/Spinner-tvJ7rPiT.js";
|
|
36
|
+
import { b as Eo, C as Qo, R as Zo, T as jo, c as qo, a as Jo } from "./chunks/Table-BgsgXhC_.js";
|
|
37
37
|
import { a as Oo, c as Uo, b as Vo, T as Wo } from "./chunks/TabList-D2XV5ixe.js";
|
|
38
|
-
import { T as Yo, a as _o } from "./chunks/Tag-
|
|
38
|
+
import { T as Yo, a as _o } from "./chunks/Tag-BKcduKRR.js";
|
|
39
39
|
import { T as oa } from "./chunks/Text-TWzJxnto.js";
|
|
40
|
-
import { I as ra, b as ea, a as ta, T as sa } from "./chunks/TextArea-
|
|
41
|
-
import { G as xa, b as ma, T as
|
|
40
|
+
import { I as ra, b as ea, a as ta, T as sa } from "./chunks/TextArea-BM5wOL3b.js";
|
|
41
|
+
import { G as xa, b as ma, T as ia, a as fa, t as na } from "./chunks/Toast-C-EV39pd.js";
|
|
42
42
|
import { T as Ta, a as la } from "./chunks/ToggleButtonGroup-CXKTrLbb.js";
|
|
43
|
-
import { T as
|
|
44
|
-
import { L as
|
|
45
|
-
import { L as La, a as Sa } from "./chunks/ListBoxLoadMoreItem-
|
|
43
|
+
import { T as Ca, a as ga } from "./chunks/Tooltip-m032jGgF.js";
|
|
44
|
+
import { L as ca } from "./chunks/ListBox-D5BBeZWL.js";
|
|
45
|
+
import { L as La, a as Sa } from "./chunks/ListBoxLoadMoreItem-CygpsU3W.js";
|
|
46
46
|
import { c as Ia, L as Ga, a as Pa, b as Ra } from "./chunks/ListBoxSection-MZB_5DdD.js";
|
|
47
|
-
import { M as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
47
|
+
import { M as Fa, a as Ma, b as va, c as Aa, S as ha } from "./chunks/Separator-BcnQEA9f.js";
|
|
48
|
+
import { u as ya } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
|
|
49
|
+
import { DialogTrigger as Na, MenuTrigger as za, RouterProvider as Ea } from "react-aria-components";
|
|
50
|
+
import { useToastState as Za } from "react-stately";
|
|
50
51
|
export {
|
|
51
52
|
r as Accordion,
|
|
52
53
|
e as AccordionItem,
|
|
53
54
|
s as Badge,
|
|
54
55
|
p as BadgeContainer,
|
|
55
56
|
m as Breadcrumbs,
|
|
56
|
-
|
|
57
|
+
f as Button,
|
|
57
58
|
d as ButtonGroup,
|
|
58
59
|
l as Calendar,
|
|
59
60
|
g as Card,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
b as CardActionArea,
|
|
62
|
+
c as CardActions,
|
|
63
|
+
B as CardContent,
|
|
63
64
|
L as CardImage,
|
|
64
65
|
S as CardLink,
|
|
65
66
|
D as CardTitle,
|
|
66
|
-
|
|
67
|
+
Eo as Cell,
|
|
67
68
|
G as CharacterCounter,
|
|
68
69
|
R as Checkbox,
|
|
69
|
-
|
|
70
|
+
F as CheckboxGroup,
|
|
70
71
|
v as ColorSchemeSwitch,
|
|
71
|
-
|
|
72
|
+
Qo as Column,
|
|
72
73
|
h as ComboBox,
|
|
73
74
|
H as ComboBoxItem,
|
|
74
75
|
y as ComboBoxSection,
|
|
75
76
|
N as DateField,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
E as DateInput,
|
|
78
|
+
Q as DateInputDivider,
|
|
79
|
+
q as DatePicker,
|
|
79
80
|
J as DateRangePicker,
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
Z as DateSegment,
|
|
82
|
+
Na as DialogTrigger,
|
|
82
83
|
V as DropZone,
|
|
83
84
|
O as FieldError,
|
|
84
85
|
W as FileTrigger,
|
|
@@ -93,41 +94,41 @@ export {
|
|
|
93
94
|
mo as Layout,
|
|
94
95
|
ho as LegacySelect,
|
|
95
96
|
lo as Link,
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
Co as LinkButton,
|
|
98
|
+
ca as ListBox,
|
|
98
99
|
La as ListBoxButton,
|
|
99
100
|
Ia as ListBoxHeader,
|
|
100
101
|
Ga as ListBoxItem,
|
|
101
102
|
Sa as ListBoxLoadMoreItem,
|
|
102
103
|
Pa as ListBoxPopover,
|
|
103
104
|
Ra as ListBoxSection,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
bo as Logo,
|
|
106
|
+
Fa as Menu,
|
|
107
|
+
Ma as MenuItem,
|
|
107
108
|
va as MenuPopover,
|
|
108
109
|
Aa as MenuSection,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
za as MenuTrigger,
|
|
111
|
+
Bo as Modal,
|
|
112
|
+
io as Navbar,
|
|
112
113
|
So as Popover,
|
|
113
114
|
Io as ProgressBar,
|
|
114
115
|
Po as Radio,
|
|
115
116
|
Ro as RadioGroup,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
u as RangeCalendar,
|
|
118
|
+
Ea as RouterProvider,
|
|
119
|
+
Zo as Row,
|
|
120
|
+
Fo as SearchField,
|
|
120
121
|
vo as Select,
|
|
121
122
|
ha as Separator,
|
|
122
|
-
|
|
123
|
+
fo as Sidebar,
|
|
123
124
|
no as SidebarLink,
|
|
124
125
|
yo as Skeleton,
|
|
125
126
|
No as Spinner,
|
|
126
127
|
Oo as Tab,
|
|
127
128
|
Uo as TabList,
|
|
128
129
|
Vo as TabPanel,
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
jo as Table,
|
|
131
|
+
qo as TableBody,
|
|
131
132
|
Jo as TableHeader,
|
|
132
133
|
Wo as Tabs,
|
|
133
134
|
Yo as Tag,
|
|
@@ -137,12 +138,13 @@ export {
|
|
|
137
138
|
ta as TextField,
|
|
138
139
|
sa as TextFieldBase,
|
|
139
140
|
ma as Toast,
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
ia as ToastProvider,
|
|
142
|
+
fa as ToastRegion,
|
|
142
143
|
Ta as ToggleButton,
|
|
143
144
|
la as ToggleButtonGroup,
|
|
144
|
-
|
|
145
|
+
Ca as Tooltip,
|
|
145
146
|
ga as TooltipTrigger,
|
|
146
147
|
na as toastQueue,
|
|
147
|
-
|
|
148
|
+
ya as useLocalizedStringFormatter,
|
|
149
|
+
Za as useToastState
|
|
148
150
|
};
|
package/info-banner/index.js
CHANGED
package/label/index.js
CHANGED
package/layout/index.js
CHANGED
package/legacy-select/index.js
CHANGED
package/list-box/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as s } from "../chunks/ListBox-D5BBeZWL.js";
|
|
2
|
-
import { L, a as e } from "../chunks/ListBoxLoadMoreItem-
|
|
2
|
+
import { L, a as e } from "../chunks/ListBoxLoadMoreItem-CygpsU3W.js";
|
|
3
3
|
import { c as r, L as i, a as B, b as m } from "../chunks/ListBoxSection-MZB_5DdD.js";
|
|
4
4
|
export {
|
|
5
5
|
s as ListBox,
|
package/logo/index.js
CHANGED
package/modal/index.js
CHANGED
package/package.json
CHANGED
package/progress-bar/index.js
CHANGED
package/radio/index.js
CHANGED
package/search-field/index.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MidasSelectProps, SelectionMode } from '.';
|
|
2
|
+
type MultiSelectValueProps<T extends object, M extends SelectionMode = 'single'> = Pick<MidasSelectProps<T, M>, 'isDisabled'>;
|
|
3
|
+
export declare const MultiSelectValue: <T extends object, M extends SelectionMode = "single">({ isDisabled, }: MultiSelectValueProps<T, M>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Size } from '../common/types';
|
|
2
|
-
|
|
2
|
+
import { MidasSelectProps } from './Select';
|
|
3
|
+
import { SelectionMode } from '.';
|
|
4
|
+
interface SelectTriggerProps<T extends object, M extends SelectionMode = 'single'> extends Pick<MidasSelectProps<T, M>, 'isDisabled' | 'selectionMode'> {
|
|
3
5
|
size: Size;
|
|
4
6
|
}
|
|
5
|
-
export declare const SelectTrigger: ({ size }: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const SelectTrigger: <T extends object, M extends SelectionMode = "single">({ isDisabled, selectionMode, size, }: SelectTriggerProps<T, M>) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export {};
|
package/select/index.js
CHANGED
package/spinner/index.js
CHANGED
package/tag/index.js
CHANGED
package/textfield/index.js
CHANGED
package/toast/index.js
CHANGED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import g from "react";
|
|
3
|
-
import { ComboBox as y, Input as B, Button as F, Collection as w } from "react-aria-components";
|
|
4
|
-
import { c as s } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { a as C, L as S } from "./Label-Dup4lWaR.js";
|
|
6
|
-
import { T as u } from "./Text-TWzJxnto.js";
|
|
7
|
-
import { F as h } from "./FieldError-Bra5aRT3.js";
|
|
8
|
-
import { L as v } from "./ListBox-D5BBeZWL.js";
|
|
9
|
-
import { a as R, L as N, b as E } from "./ListBoxSection-MZB_5DdD.js";
|
|
10
|
-
import { C as I } from "./chevron-down-DgT-uSF9.js";
|
|
11
|
-
import { u as T } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
12
|
-
import '../assets/ComboBox.css';const j = "_combobox_47hgd_1", O = "_inputField_47hgd_6", U = "_medium_47hgd_28", z = "_wrap_47hgd_74", D = "_button_47hgd_80", M = "_icon_47hgd_116", V = "_emptyState_47hgd_122", t = {
|
|
13
|
-
combobox: j,
|
|
14
|
-
inputField: O,
|
|
15
|
-
medium: U,
|
|
16
|
-
wrap: z,
|
|
17
|
-
button: D,
|
|
18
|
-
icon: M,
|
|
19
|
-
emptyState: V
|
|
20
|
-
}, W = { showList: "Show list", noResultsFound: "No results found" }, $ = { showList: "Visa lista", noResultsFound: "Inga träffar" }, k = {
|
|
21
|
-
en: W,
|
|
22
|
-
sv: $
|
|
23
|
-
};
|
|
24
|
-
function to({
|
|
25
|
-
label: e,
|
|
26
|
-
description: i,
|
|
27
|
-
errorMessage: r,
|
|
28
|
-
children: p,
|
|
29
|
-
items: f,
|
|
30
|
-
className: _,
|
|
31
|
-
errorPosition: a = "top",
|
|
32
|
-
size: m = "large",
|
|
33
|
-
popover: b,
|
|
34
|
-
...n
|
|
35
|
-
}) {
|
|
36
|
-
const d = g.useRef(null), c = T(k), x = (L) => {
|
|
37
|
-
L.currentTarget.value && d.current?.select();
|
|
38
|
-
};
|
|
39
|
-
return /* @__PURE__ */ l(
|
|
40
|
-
y,
|
|
41
|
-
{
|
|
42
|
-
className: s(t.combobox, _),
|
|
43
|
-
...n,
|
|
44
|
-
"data-readonly": n.isReadOnly || void 0,
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ o(C, { popover: b, children: e && /* @__PURE__ */ o(S, { children: e }) }),
|
|
47
|
-
i && /* @__PURE__ */ o(u, { slot: "description", children: i }),
|
|
48
|
-
a === "top" && /* @__PURE__ */ o(h, { "data-testid": "fieldError", children: r }),
|
|
49
|
-
/* @__PURE__ */ l("div", { className: t.wrap, children: [
|
|
50
|
-
/* @__PURE__ */ o(
|
|
51
|
-
B,
|
|
52
|
-
{
|
|
53
|
-
className: s(t.inputField, {
|
|
54
|
-
[t.medium]: m === "medium"
|
|
55
|
-
}),
|
|
56
|
-
"data-readonly": n.isReadOnly || void 0,
|
|
57
|
-
onMouseUp: x,
|
|
58
|
-
ref: d
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ o(
|
|
62
|
-
F,
|
|
63
|
-
{
|
|
64
|
-
className: s(t.button, {
|
|
65
|
-
[t.medium]: m === "medium"
|
|
66
|
-
}),
|
|
67
|
-
"aria-label": c.format("showList"),
|
|
68
|
-
children: /* @__PURE__ */ o(
|
|
69
|
-
"div",
|
|
70
|
-
{
|
|
71
|
-
className: t.icon,
|
|
72
|
-
"aria-hidden": "true",
|
|
73
|
-
children: /* @__PURE__ */ o(
|
|
74
|
-
I,
|
|
75
|
-
{
|
|
76
|
-
size: 20,
|
|
77
|
-
"aria-hidden": !0
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] }),
|
|
85
|
-
a === "bottom" && /* @__PURE__ */ o(h, { "data-testid": "fieldError", children: r }),
|
|
86
|
-
/* @__PURE__ */ o(R, { children: /* @__PURE__ */ o(
|
|
87
|
-
v,
|
|
88
|
-
{
|
|
89
|
-
items: f,
|
|
90
|
-
renderEmptyState: () => /* @__PURE__ */ o(u, { className: t.emptyState, children: c.format("noResultsFound") }),
|
|
91
|
-
children: p
|
|
92
|
-
}
|
|
93
|
-
) })
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
function q(e) {
|
|
99
|
-
return /* @__PURE__ */ o(N, { ...e });
|
|
100
|
-
}
|
|
101
|
-
function eo(e) {
|
|
102
|
-
return /* @__PURE__ */ o(E, { ...e, children: /* @__PURE__ */ o(w, { items: e.children, children: (i) => /* @__PURE__ */ o(q, { children: i.name }, i.id) }) });
|
|
103
|
-
}
|
|
104
|
-
export {
|
|
105
|
-
to as C,
|
|
106
|
-
q as a,
|
|
107
|
-
eo as b
|
|
108
|
-
};
|