@midas-ds/components 16.2.5 → 16.3.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/CHANGELOG.md +16 -0
- package/accordion/index.js +1 -1
- package/assets/Select.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/character-counter/CharacterCounter.d.ts +1 -3
- package/character-counter/index.js +1 -1
- package/checkbox/Checkbox.d.ts +3 -2
- package/checkbox/CheckboxGroupItem.d.ts +1 -1
- package/checkbox/CheckboxInner.d.ts +1 -2
- package/checkbox/SingleCheckbox.d.ts +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/types.d.ts +0 -1
- package/chunks/{AccordionItem-BUUDZ7l6.js → AccordionItem-D6vWtoJN.js} +2 -2
- package/chunks/{Button-wBgWrXj3.js → Button-BYrLbzir.js} +1 -1
- package/chunks/CharacterCounter-R6vh7AE5.js +22 -0
- package/chunks/Checkbox-BTAfwDxU.js +130 -0
- package/chunks/{CheckboxGroup-A7UJMi5J.js → CheckboxGroup-C6LIpj_R.js} +4 -4
- package/chunks/{ColorSchemeSwitch-DugvPh6T.js → ColorSchemeSwitch-D-vCkxQo.js} +1 -1
- package/chunks/{ComboBox-yl5zHYPk.js → ComboBox-CzwpRxSH.js} +3 -3
- package/chunks/{DateField-BsT1K-bB.js → DateField-DPJrihTz.js} +2 -2
- package/chunks/{DateRangePicker-BsK7pMRv.js → DateRangePicker-DzgK_p0d.js} +3 -3
- package/chunks/{Dialog-DC0cGNj5.js → Dialog-DprWZBKT.js} +2 -2
- package/chunks/{FeedbackStatusIcon-COWuMusk.js → FeedbackStatusIcon-YJaUAfjp.js} +1 -1
- package/chunks/FieldError-Bra5aRT3.js +24 -0
- 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-CSFYbin8.js → Radio-XQA8CylD.js} +2 -2
- package/chunks/{RangeCalendar-BF-6p7u2.js → RangeCalendar-Bt8q3FZi.js} +2 -2
- package/chunks/{SearchField-mBHZ9pFg.js → SearchField-CxoPi6Ql.js} +3 -3
- package/chunks/Select-BNCz_ox4.js +221 -0
- package/chunks/{Select-BjD5iQvX.js → Select-CyYUhMOg.js} +6 -6
- package/chunks/{Spinner-BORNnHph.js → Spinner-tvJ7rPiT.js} +1 -1
- package/chunks/{Table-t3rVzb31.js → Table-BgsgXhC_.js} +1 -1
- package/chunks/{Tag-DxBoeE_n.js → Tag-BKcduKRR.js} +1 -1
- package/chunks/TextArea-BM5wOL3b.js +137 -0
- 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/field-error/FieldError.d.ts +1 -3
- package/field-error/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +68 -66
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/Select.d.ts +4 -2
- package/legacy-select/index.js +1 -1
- package/legacy-select/types.d.ts +1 -2
- 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/table/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/Input.d.ts +1 -3
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/TextArea.d.ts +2 -5
- package/textfield/TextField.d.ts +2 -5
- package/textfield/TextFieldBase.d.ts +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/chunks/CharacterCounter-_m-SgTMV.js +0 -20
- package/chunks/Checkbox-gsEu5wcB.js +0 -119
- package/chunks/FieldError-Bc0acYNs.js +0 -21
- package/chunks/Select-Df4333VV.js +0 -208
- package/chunks/TextArea-B2BePnZz.js +0 -136
- package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +0 -25
- package/select/SelectValueTag.d.ts +0 -5
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { SelectStateContext as m, Button as v, TagList as V, Select as x, SelectValue as C } from "react-aria-components";
|
|
3
|
-
import { FocusScope as b } from "@react-aria/focus";
|
|
4
|
-
import { a as T, L as N } from "./Label-Dup4lWaR.js";
|
|
5
|
-
import { a as y, c as h } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { T as B } from "./Text-TWzJxnto.js";
|
|
7
|
-
import { F as _ } from "./FieldError-Bc0acYNs.js";
|
|
8
|
-
import f, { useContext as p } from "react";
|
|
9
|
-
import { C as L } from "./Checkbox-gsEu5wcB.js";
|
|
10
|
-
import { u } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
11
|
-
import { useFocusManager as M } from "react-aria";
|
|
12
|
-
import { X as F } from "./x-BXShoIAM.js";
|
|
13
|
-
import { L as I } from "./ListBox-D5BBeZWL.js";
|
|
14
|
-
import { P as G } from "./Popover-BcEtFiU1.js";
|
|
15
|
-
import { a as j, T as k } from "./Tag-DxBoeE_n.js";
|
|
16
|
-
import { C as R } from "./chevron-down-DgT-uSF9.js";
|
|
17
|
-
import '../assets/Select.css';const $ = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", selected: "selected" }, w = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", selected: "valda" }, g = {
|
|
18
|
-
en: $,
|
|
19
|
-
sv: w
|
|
20
|
-
}, D = "_select_nivht_1", z = "_triggerContainer_nivht_7", E = "_trigger_nivht_7", K = "_medium_nivht_28", P = "_selectValue_nivht_71", W = "_placeholder_nivht_81", X = "_selectValueTag_nivht_95", q = "_clearButton_nivht_109", H = "_truncate_nivht_121", J = "_popover_nivht_158", O = "_selectAll_nivht_184", Q = "_tagGroup_nivht_247", a = {
|
|
21
|
-
select: D,
|
|
22
|
-
triggerContainer: z,
|
|
23
|
-
trigger: E,
|
|
24
|
-
medium: K,
|
|
25
|
-
selectValue: P,
|
|
26
|
-
placeholder: W,
|
|
27
|
-
selectValueTag: X,
|
|
28
|
-
clearButton: q,
|
|
29
|
-
truncate: H,
|
|
30
|
-
popover: J,
|
|
31
|
-
selectAll: O,
|
|
32
|
-
tagGroup: Q
|
|
33
|
-
}, U = () => {
|
|
34
|
-
const t = f.useContext(m), l = u(g), s = () => t?.setValue(
|
|
35
|
-
t?.selectionManager.isSelectAll ? null : Array.from(t.collection.getKeys())
|
|
36
|
-
);
|
|
37
|
-
return /* @__PURE__ */ e(
|
|
38
|
-
L,
|
|
39
|
-
{
|
|
40
|
-
className: a.selectAll,
|
|
41
|
-
isIndeterminate: !t?.selectionManager.isSelectAll && !t?.selectionManager.isEmpty,
|
|
42
|
-
isSelected: t?.selectionManager.isSelectAll,
|
|
43
|
-
onChange: s,
|
|
44
|
-
children: l.format("selectAll")
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
}, Y = ({
|
|
48
|
-
isDisabled: t,
|
|
49
|
-
selectedItems: l,
|
|
50
|
-
selectedText: s
|
|
51
|
-
}) => {
|
|
52
|
-
const c = u(g), o = () => l.length === 1 ? s : `${l.length} ${c.format("selected")}`;
|
|
53
|
-
return /* @__PURE__ */ d(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
className: a.selectValueTag,
|
|
57
|
-
"data-disabled": t || void 0,
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ e("span", { className: a.truncate, children: o() }),
|
|
60
|
-
/* @__PURE__ */ e(Z, { isDisabled: t })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}, Z = ({
|
|
65
|
-
isDisabled: t
|
|
66
|
-
}) => {
|
|
67
|
-
const l = f.useContext(m), s = u(g), c = M(), o = () => {
|
|
68
|
-
c?.focusFirst(), l?.setValue(null);
|
|
69
|
-
};
|
|
70
|
-
return /* @__PURE__ */ e(
|
|
71
|
-
v,
|
|
72
|
-
{
|
|
73
|
-
"aria-label": s.format("clearAll"),
|
|
74
|
-
className: a.clearButton,
|
|
75
|
-
onPress: o,
|
|
76
|
-
slot: null,
|
|
77
|
-
isDisabled: t,
|
|
78
|
-
children: /* @__PURE__ */ e(
|
|
79
|
-
F,
|
|
80
|
-
{
|
|
81
|
-
width: 20,
|
|
82
|
-
height: 20
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}, ee = ({
|
|
88
|
-
showTags: t,
|
|
89
|
-
isDisabled: l
|
|
90
|
-
}) => {
|
|
91
|
-
const s = u(g), c = p(m), o = (n) => {
|
|
92
|
-
c?.selectionManager.toggleSelection(Array.from(n)[0]);
|
|
93
|
-
};
|
|
94
|
-
return !c?.selectedItems.length || !t ? null : /* @__PURE__ */ e(
|
|
95
|
-
j,
|
|
96
|
-
{
|
|
97
|
-
"aria-label": s.format("selectedItems"),
|
|
98
|
-
className: a.tagGroup,
|
|
99
|
-
onRemove: o,
|
|
100
|
-
selectionBehavior: "toggle",
|
|
101
|
-
children: /* @__PURE__ */ e(V, { items: c.selectedItems, children: (n) => /* @__PURE__ */ e(
|
|
102
|
-
k,
|
|
103
|
-
{
|
|
104
|
-
dismissable: !0,
|
|
105
|
-
id: n.key,
|
|
106
|
-
isDisabled: l,
|
|
107
|
-
textValue: n.textValue,
|
|
108
|
-
children: n.textValue
|
|
109
|
-
},
|
|
110
|
-
n.key
|
|
111
|
-
) })
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
}, te = ({ size: t }) => {
|
|
115
|
-
const l = p(m);
|
|
116
|
-
return /* @__PURE__ */ e(
|
|
117
|
-
v,
|
|
118
|
-
{
|
|
119
|
-
className: y(
|
|
120
|
-
{
|
|
121
|
-
[a.medium]: t === "medium"
|
|
122
|
-
},
|
|
123
|
-
a.trigger
|
|
124
|
-
),
|
|
125
|
-
"data-invalid": !!l?.displayValidation.isInvalid || void 0,
|
|
126
|
-
children: /* @__PURE__ */ e(
|
|
127
|
-
"span",
|
|
128
|
-
{
|
|
129
|
-
"aria-hidden": "true",
|
|
130
|
-
style: { display: "flex" },
|
|
131
|
-
children: /* @__PURE__ */ e(R, { size: 20 })
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
function pe({
|
|
138
|
-
children: t,
|
|
139
|
-
description: l,
|
|
140
|
-
errorMessage: s,
|
|
141
|
-
errorPosition: c = "top",
|
|
142
|
-
items: o,
|
|
143
|
-
label: n,
|
|
144
|
-
popover: S,
|
|
145
|
-
size: A = "large",
|
|
146
|
-
...r
|
|
147
|
-
}) {
|
|
148
|
-
return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ d(
|
|
149
|
-
x,
|
|
150
|
-
{
|
|
151
|
-
...r,
|
|
152
|
-
className: h(r.className, a.select),
|
|
153
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ e(T, { popover: S, children: n && /* @__PURE__ */ e(N, { "data-disabled": r.isDisabled || void 0, children: n }) }),
|
|
155
|
-
l && /* @__PURE__ */ e(B, { slot: "description", children: l }),
|
|
156
|
-
c === "top" && /* @__PURE__ */ e(_, { children: s }),
|
|
157
|
-
/* @__PURE__ */ d(
|
|
158
|
-
"div",
|
|
159
|
-
{
|
|
160
|
-
className: a.triggerContainer,
|
|
161
|
-
"data-disabled": r.isDisabled || void 0,
|
|
162
|
-
children: [
|
|
163
|
-
/* @__PURE__ */ e(te, { size: A }),
|
|
164
|
-
/* @__PURE__ */ e(
|
|
165
|
-
C,
|
|
166
|
-
{
|
|
167
|
-
className: a.selectValue,
|
|
168
|
-
"data-disabled": r.isDisabled || void 0,
|
|
169
|
-
children: (i) => i.isPlaceholder || r.selectionMode !== "multiple" ? /* @__PURE__ */ e("div", { className: h(a.placeholder), children: /* @__PURE__ */ e("span", { className: h(a.truncate), children: i.selectedText || i.defaultChildren }) }) : /* @__PURE__ */ e(
|
|
170
|
-
Y,
|
|
171
|
-
{
|
|
172
|
-
...r,
|
|
173
|
-
...i
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
c === "bottom" && /* @__PURE__ */ e(_, { children: s }),
|
|
182
|
-
/* @__PURE__ */ d(
|
|
183
|
-
G,
|
|
184
|
-
{
|
|
185
|
-
className: a.popover,
|
|
186
|
-
offset: 0,
|
|
187
|
-
hideArrow: !0,
|
|
188
|
-
children: [
|
|
189
|
-
r.isSelectableAll && /* @__PURE__ */ e(U, {}),
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
I,
|
|
192
|
-
{
|
|
193
|
-
escapeKeyBehavior: "none",
|
|
194
|
-
items: o,
|
|
195
|
-
children: t
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
),
|
|
201
|
-
/* @__PURE__ */ e(ee, { ...r })
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
|
-
) });
|
|
205
|
-
}
|
|
206
|
-
export {
|
|
207
|
-
pe as S
|
|
208
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { TextField as F, useContextProps as h, InputContext as u, Input as N, TextArea as P } from "react-aria-components";
|
|
3
|
-
import { a as b, c as m } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { s as c } from "./TextField.module-DZslrEPC.js";
|
|
5
|
-
import { useState as g } from "react";
|
|
6
|
-
import { T as x } from "./Text-TWzJxnto.js";
|
|
7
|
-
import { B as C } from "./Button-wBgWrXj3.js";
|
|
8
|
-
import { u as v } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
9
|
-
import { F as p } from "./FieldError-Bc0acYNs.js";
|
|
10
|
-
import { C as I } from "./CharacterCounter-_m-SgTMV.js";
|
|
11
|
-
import { a as L, L as y } from "./Label-Dup4lWaR.js";
|
|
12
|
-
const f = (t) => {
|
|
13
|
-
const {
|
|
14
|
-
label: s,
|
|
15
|
-
description: r,
|
|
16
|
-
errorMessage: a,
|
|
17
|
-
showCounter: n,
|
|
18
|
-
errorPosition: o = "top",
|
|
19
|
-
size: i = "large",
|
|
20
|
-
popover: d,
|
|
21
|
-
children: w
|
|
22
|
-
} = t;
|
|
23
|
-
return /* @__PURE__ */ l(
|
|
24
|
-
F,
|
|
25
|
-
{
|
|
26
|
-
...t,
|
|
27
|
-
className: b(c.textField, {
|
|
28
|
-
[c.medium]: i === "medium"
|
|
29
|
-
}),
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ e(L, { popover: d, children: s && /* @__PURE__ */ e(y, { children: s }) }),
|
|
32
|
-
r && /* @__PURE__ */ e(x, { slot: "description", children: r }),
|
|
33
|
-
n && /* @__PURE__ */ e(I, { isLonely: !r }),
|
|
34
|
-
o === "top" && /* @__PURE__ */ e(p, { "data-testid": "fieldError", children: a }),
|
|
35
|
-
w,
|
|
36
|
-
o === "bottom" && /* @__PURE__ */ e(
|
|
37
|
-
p,
|
|
38
|
-
{
|
|
39
|
-
"data-testid": "fieldError",
|
|
40
|
-
className: c.bottomError,
|
|
41
|
-
children: a
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
}, A = { hide: "Hide", show: "Show" }, B = { hide: "Dölj", show: "Visa" }, E = {
|
|
48
|
-
en: A,
|
|
49
|
-
sv: B
|
|
50
|
-
}, S = ({ ref: t, ...s }) => {
|
|
51
|
-
[s, t] = h(s, t, u);
|
|
52
|
-
const [r, a] = g(!1), n = () => a((i) => !i), o = v(E);
|
|
53
|
-
return /* @__PURE__ */ l(T, { children: [
|
|
54
|
-
r && /* @__PURE__ */ e(
|
|
55
|
-
x,
|
|
56
|
-
{
|
|
57
|
-
slot: "description",
|
|
58
|
-
className: c.passwordText,
|
|
59
|
-
children: s.value
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
/* @__PURE__ */ e(
|
|
63
|
-
C,
|
|
64
|
-
{
|
|
65
|
-
variant: "tertiary",
|
|
66
|
-
onPress: n,
|
|
67
|
-
className: c.passwordButton,
|
|
68
|
-
children: r ? o.format("hide") : o.format("show")
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
] });
|
|
72
|
-
}, $ = ({
|
|
73
|
-
ref: t,
|
|
74
|
-
skipContext: s = !1,
|
|
75
|
-
...r
|
|
76
|
-
}) => {
|
|
77
|
-
const [a, n] = h(
|
|
78
|
-
r,
|
|
79
|
-
t,
|
|
80
|
-
u
|
|
81
|
-
), o = s ? t : n, i = s ? r : a;
|
|
82
|
-
return /* @__PURE__ */ l("div", { className: c.wrap, children: [
|
|
83
|
-
/* @__PURE__ */ e(
|
|
84
|
-
N,
|
|
85
|
-
{
|
|
86
|
-
...i,
|
|
87
|
-
ref: o,
|
|
88
|
-
className: m(c.input, i.className)
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
i.type === "password" && /* @__PURE__ */ e(S, { ...i })
|
|
92
|
-
] });
|
|
93
|
-
}, K = ({
|
|
94
|
-
className: t,
|
|
95
|
-
form: s,
|
|
96
|
-
list: r,
|
|
97
|
-
min: a,
|
|
98
|
-
max: n,
|
|
99
|
-
ref: o,
|
|
100
|
-
type: i,
|
|
101
|
-
...d
|
|
102
|
-
}) => /* @__PURE__ */ e(f, { ...d, children: /* @__PURE__ */ e(
|
|
103
|
-
$,
|
|
104
|
-
{
|
|
105
|
-
className: m(t),
|
|
106
|
-
form: s,
|
|
107
|
-
list: r,
|
|
108
|
-
min: a,
|
|
109
|
-
max: n,
|
|
110
|
-
ref: o,
|
|
111
|
-
type: i,
|
|
112
|
-
skipContext: !0
|
|
113
|
-
}
|
|
114
|
-
) }), O = ({
|
|
115
|
-
className: t,
|
|
116
|
-
form: s,
|
|
117
|
-
rows: r,
|
|
118
|
-
wrap: a,
|
|
119
|
-
ref: n,
|
|
120
|
-
...o
|
|
121
|
-
}) => /* @__PURE__ */ e(f, { ...o, children: /* @__PURE__ */ e(
|
|
122
|
-
P,
|
|
123
|
-
{
|
|
124
|
-
className: m(c.textArea, t),
|
|
125
|
-
form: s,
|
|
126
|
-
ref: n,
|
|
127
|
-
rows: r,
|
|
128
|
-
wrap: a
|
|
129
|
-
}
|
|
130
|
-
) });
|
|
131
|
-
export {
|
|
132
|
-
$ as I,
|
|
133
|
-
f as T,
|
|
134
|
-
K as a,
|
|
135
|
-
O as b
|
|
136
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LocalizedStringFormatter as n, LocalizedStringDictionary as c } from "@internationalized/string";
|
|
2
|
-
import { useMemo as u } from "react";
|
|
3
|
-
import { useLocale as m } from "react-aria-components";
|
|
4
|
-
const t = "sv", i = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
function d(e) {
|
|
6
|
-
let o = i.get(e);
|
|
7
|
-
return o || (o = new c(e, t), i.set(e, o)), o;
|
|
8
|
-
}
|
|
9
|
-
function f(e, o) {
|
|
10
|
-
return d(e);
|
|
11
|
-
}
|
|
12
|
-
function y(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: a } = m(), r = f(e);
|
|
18
|
-
return u(
|
|
19
|
-
() => new n(a, r),
|
|
20
|
-
[r, a]
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
y as u
|
|
25
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SelectValueRenderProps } from 'react-aria-components';
|
|
2
|
-
import { MidasSelectProps, SelectionMode } from './';
|
|
3
|
-
type SelectValueTagProps<T extends object, M extends SelectionMode = 'single'> = SelectValueRenderProps<T> & Pick<MidasSelectProps<T, M>, 'isDisabled'>;
|
|
4
|
-
export declare const SelectValueTag: <T extends object, M extends SelectionMode = "single">({ isDisabled, selectedItems, selectedText, }: SelectValueTagProps<T, M>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|