@midas-ds/components 17.8.2 → 17.9.0
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 +30 -0
- package/accordion/index.js +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBox.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/{AccordionItem-w6c28fSu.js → AccordionItem-DHhQDd6o.js} +1 -1
- package/chunks/{Button-D22xOe8j.js → Button-GCROAMSl.js} +1 -1
- package/chunks/Button.module-byTN5rhp.js +14 -0
- package/chunks/{Checkbox-sAkQe7Q9.js → Checkbox-DSW-_Qpm.js} +28 -28
- package/chunks/{CheckboxGroup-DY8sC9ro.js → CheckboxGroup-DteJIgnR.js} +2 -2
- package/chunks/{ClearButton-DfwjeVYh.js → ClearButton-DkC8PIMi.js} +1 -1
- package/chunks/{ColorSchemeSwitch-D52V0sr3.js → ColorSchemeSwitch-gD9pFu9h.js} +1 -1
- package/chunks/{ComboBox-BGMkkxN2.js → ComboBox-BEUfJ6IN.js} +29 -29
- package/chunks/{DateField-kEqIc-Nc.js → DateField-Bwis4G2o.js} +2 -2
- package/chunks/DateRangePicker-5E41DzGI.js +198 -0
- package/chunks/{Dialog-SBj6IJAF.js → Dialog-BSWBlyJI.js} +16 -16
- package/chunks/InfoBanner-CWLvkP6D.js +76 -0
- package/chunks/{Label-BNQY5OnB.js → Label-Cg0aAlnt.js} +7 -7
- package/chunks/{Layout-fkaVQ6a0.js → Layout-BLP0HVR-.js} +2 -2
- package/chunks/Link-CyY3-8M8.js +59 -0
- package/chunks/{LinkButton-DJ-D5PkB.js → LinkButton-DWKAbxXF.js} +28 -28
- package/chunks/{ListBox-BmONCo_D.js → ListBox-CRtyHPj1.js} +19 -19
- package/chunks/{ListBoxEmptyState-7VzB4KvQ.js → ListBoxEmptyState-D6Jvy1WT.js} +1 -1
- package/chunks/{ListBoxHeader-D_WqTfOS.js → ListBoxHeader-DIxY1gOH.js} +1 -1
- package/chunks/{Popover-6cnHxDEK.js → Popover-CjEPHe4A.js} +7 -7
- package/chunks/ProgressBar-CBz_dIOH.js +53 -0
- package/chunks/Radio-CRHdSthr.js +44 -0
- package/chunks/{RangeCalendar-_g_BVyUN.js → RangeCalendar-DL6cCjH3.js} +1 -1
- package/chunks/SearchField-VIMb28RB.js +118 -0
- package/chunks/{Select-DJ_VE1E4.js → Select-C01v_D--.js} +57 -57
- package/chunks/Separator-CDRwpeHz.js +76 -0
- package/chunks/{Skeleton-D6mxKxuu.js → Skeleton-tiP1Syzf.js} +20 -20
- package/chunks/{Table-Bg-AKi7d.js → Table-BpVSZ3aM.js} +48 -48
- package/chunks/{TagGroup-YCiXkdo3.js → TagGroup-DPFh8qHR.js} +1 -1
- package/chunks/{TextArea-Z4BKGpA9.js → TextArea-C7l7_Kof.js} +2 -2
- package/chunks/Toast-BFq_0Ue4.js +158 -0
- package/chunks/{ToggleButtonGroup-Bv9xpwTT.js → ToggleButtonGroup-DRnEEi5-.js} +1 -1
- package/chunks/{Tooltip-C1bbgr2l.js → Tooltip-BYEaNkZG.js} +11 -11
- package/clear-button/index.js +1 -1
- 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.js +32 -32
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.js +3 -3
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -2
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/SearchField.d.ts +22 -4
- package/search-field/SearchField.stories.d.ts +10 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/table/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/Button.module-BW0TvYZ2.js +0 -14
- package/chunks/DateRangePicker-B7d3F0qi.js +0 -197
- package/chunks/InfoBanner-BIDGEIpk.js +0 -76
- package/chunks/Link-rqGQvFQq.js +0 -59
- package/chunks/ProgressBar-BIfkrfrH.js +0 -53
- package/chunks/Radio-D-sGYrD6.js +0 -44
- package/chunks/SearchField-D2Mm_VUO.js +0 -128
- package/chunks/Separator-CkVOLF6I.js +0 -76
- package/chunks/Toast-D8euCY5O.js +0 -158
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as n, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import { B as f } from "./Button-GCROAMSl.js";
|
|
4
|
+
import { useToast as p, useToastRegion as g } from "react-aria";
|
|
5
|
+
import { ToastQueue as q, useToastQueue as w, useToastState as h } from "react-stately";
|
|
6
|
+
import _ from "react";
|
|
7
|
+
import { createPortal as R, flushSync as y } from "react-dom";
|
|
8
|
+
import { c as l } from "./clsx-AexbMWKp.js";
|
|
9
|
+
import { F as b } from "./FeedbackStatusIcon-X9Bjgeta.js";
|
|
10
|
+
import { X as P } from "./x-B9bYxG31.js";
|
|
11
|
+
import '../assets/Toast.css';const I = "_toastRegion_1vq8s_49", N = "_toast_1vq8s_49", E = "_success_1vq8s_98", O = "_info_1vq8s_106", x = "_important_1vq8s_114", C = "_warning_1vq8s_122", M = "_icon_1vq8s_130", S = "_toastContent_1vq8s_144", k = "_toastMessage_1vq8s_151", B = "_viewTransition_1vq8s_157", F = "_slideInTop_1vq8s_1", Q = "_slideInEnd_1vq8s_1", V = "_slideOutTop_1vq8s_1", j = "_slideOutEnd_1vq8s_1", e = {
|
|
12
|
+
toastRegion: I,
|
|
13
|
+
toast: N,
|
|
14
|
+
success: E,
|
|
15
|
+
info: O,
|
|
16
|
+
important: x,
|
|
17
|
+
warning: C,
|
|
18
|
+
icon: M,
|
|
19
|
+
toastContent: S,
|
|
20
|
+
toastMessage: k,
|
|
21
|
+
viewTransition: B,
|
|
22
|
+
slideInTop: F,
|
|
23
|
+
slideInEnd: Q,
|
|
24
|
+
slideOutTop: V,
|
|
25
|
+
slideOutEnd: j
|
|
26
|
+
}, u = {
|
|
27
|
+
wrapUpdate(t) {
|
|
28
|
+
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
29
|
+
y(t);
|
|
30
|
+
}) : t();
|
|
31
|
+
},
|
|
32
|
+
maxVisibleToasts: 5
|
|
33
|
+
}, G = new q(u), Y = (t) => {
|
|
34
|
+
const o = w(G);
|
|
35
|
+
return o.visibleToasts.length > 0 ? R(
|
|
36
|
+
/* @__PURE__ */ n(
|
|
37
|
+
d,
|
|
38
|
+
{
|
|
39
|
+
...t,
|
|
40
|
+
state: o
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
document.body
|
|
44
|
+
) : null;
|
|
45
|
+
}, Z = ({ children: t, ...o }) => {
|
|
46
|
+
const s = h(u);
|
|
47
|
+
return /* @__PURE__ */ c(T, { children: [
|
|
48
|
+
typeof t == "function" ? t(s) : t,
|
|
49
|
+
s.visibleToasts.length > 0 && /* @__PURE__ */ n(
|
|
50
|
+
d,
|
|
51
|
+
{
|
|
52
|
+
...o,
|
|
53
|
+
state: s
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
function d({
|
|
59
|
+
state: t,
|
|
60
|
+
className: o,
|
|
61
|
+
...s
|
|
62
|
+
}) {
|
|
63
|
+
const a = _.useRef(null), { regionProps: r } = g(s, t, a);
|
|
64
|
+
return /* @__PURE__ */ n(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
...r,
|
|
68
|
+
ref: a,
|
|
69
|
+
className: l(e.toastRegion, o),
|
|
70
|
+
children: t.visibleToasts.map((i) => /* @__PURE__ */ n(
|
|
71
|
+
z,
|
|
72
|
+
{
|
|
73
|
+
toast: i,
|
|
74
|
+
state: t
|
|
75
|
+
},
|
|
76
|
+
i.key
|
|
77
|
+
))
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function z({
|
|
82
|
+
state: t,
|
|
83
|
+
className: o,
|
|
84
|
+
...s
|
|
85
|
+
}) {
|
|
86
|
+
const a = _.useRef(null), { toastProps: r, contentProps: i, titleProps: m, closeButtonProps: v } = p(
|
|
87
|
+
s,
|
|
88
|
+
t,
|
|
89
|
+
a
|
|
90
|
+
);
|
|
91
|
+
return /* @__PURE__ */ c(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
...r,
|
|
95
|
+
ref: a,
|
|
96
|
+
className: l(
|
|
97
|
+
e.toast,
|
|
98
|
+
e[s.toast.content.type],
|
|
99
|
+
o
|
|
100
|
+
),
|
|
101
|
+
style: {
|
|
102
|
+
viewTransitionName: s.toast.key,
|
|
103
|
+
viewTransitionClass: e.viewTransition
|
|
104
|
+
},
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ c(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
...i,
|
|
110
|
+
className: l(e.toastContent, i.className),
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ n(
|
|
113
|
+
b,
|
|
114
|
+
{
|
|
115
|
+
"aria-hidden": !0,
|
|
116
|
+
className: e.icon,
|
|
117
|
+
status: s.toast.content.type
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ c("div", { children: [
|
|
121
|
+
/* @__PURE__ */ n(
|
|
122
|
+
"p",
|
|
123
|
+
{
|
|
124
|
+
className: e.toastMessage,
|
|
125
|
+
...m,
|
|
126
|
+
children: s.toast.content.message
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
s.toast.content.children
|
|
130
|
+
] })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ n(
|
|
135
|
+
f,
|
|
136
|
+
{
|
|
137
|
+
variant: "icon",
|
|
138
|
+
...v,
|
|
139
|
+
children: /* @__PURE__ */ n(
|
|
140
|
+
P,
|
|
141
|
+
{
|
|
142
|
+
size: 20,
|
|
143
|
+
"aria-hidden": !0
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
Y as G,
|
|
154
|
+
z as T,
|
|
155
|
+
Z as a,
|
|
156
|
+
d as b,
|
|
157
|
+
G as t
|
|
158
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { ToggleButton as u, ToggleButtonGroup as r } from "react-aria-components";
|
|
3
|
-
import { B as t } from "./Button.module-
|
|
3
|
+
import { B as t } from "./Button.module-byTN5rhp.js";
|
|
4
4
|
import { c as s } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import '../assets/ToggleButtonGroup.css';const e = "_group_q04hh_1", l = "_toggleButton_q04hh_10", n = {
|
|
6
6
|
group: e,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as p } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { Tooltip as n, OverlayArrow as c, TooltipTrigger as
|
|
4
|
-
import '../assets/Tooltip.css';const
|
|
5
|
-
tooltip:
|
|
3
|
+
import { Tooltip as n, OverlayArrow as c, TooltipTrigger as T } from "react-aria-components";
|
|
4
|
+
import '../assets/Tooltip.css';const g = "_tooltip_exq12_1", m = "_arrow_exq12_18", i = {
|
|
5
|
+
tooltip: g,
|
|
6
6
|
arrow: m
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function h({ children: o, className: r, ...s }) {
|
|
9
9
|
return /* @__PURE__ */ t(
|
|
10
10
|
n,
|
|
11
11
|
{
|
|
12
12
|
className: p(i.tooltip, r),
|
|
13
13
|
...s,
|
|
14
|
-
children: (
|
|
14
|
+
children: (e) => /* @__PURE__ */ a(l, { children: [
|
|
15
15
|
/* @__PURE__ */ t(c, { className: i.arrow, children: /* @__PURE__ */ t(
|
|
16
16
|
"svg",
|
|
17
17
|
{
|
|
@@ -21,17 +21,17 @@ function x({ children: o, className: r, ...s }) {
|
|
|
21
21
|
children: /* @__PURE__ */ t("path", { d: "M0 0 L4 4 L8 0" })
|
|
22
22
|
}
|
|
23
23
|
) }),
|
|
24
|
-
typeof o == "function" ? o(
|
|
24
|
+
typeof o == "function" ? o(e) : o
|
|
25
25
|
] })
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _({
|
|
30
30
|
delay: o = 0,
|
|
31
31
|
...r
|
|
32
32
|
}) {
|
|
33
33
|
return /* @__PURE__ */ t(
|
|
34
|
-
|
|
34
|
+
T,
|
|
35
35
|
{
|
|
36
36
|
delay: o,
|
|
37
37
|
...r
|
|
@@ -39,6 +39,6 @@ function h({
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
h as T,
|
|
43
|
+
_ as a
|
|
44
44
|
};
|
package/clear-button/index.js
CHANGED
package/combobox/index.js
CHANGED
package/date-field/index.js
CHANGED
package/date-picker/index.js
CHANGED
package/index.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { A as s, a as p } from "./chunks/AccordionItem-
|
|
2
|
+
import { A as s, a as p } from "./chunks/AccordionItem-DHhQDd6o.js";
|
|
3
3
|
import { B as m, a as i } from "./chunks/BadgeContainer-CKVsfTlF.js";
|
|
4
4
|
import { B as f, a as d } from "./chunks/Breadcrumb-Bs836gOn.js";
|
|
5
|
-
import { B as c } from "./chunks/Button-
|
|
5
|
+
import { B as c } from "./chunks/Button-GCROAMSl.js";
|
|
6
6
|
import { B as l } from "./chunks/ButtonGroup-Dr6HOBo2.js";
|
|
7
|
-
import { C, R as L } from "./chunks/RangeCalendar-
|
|
7
|
+
import { C, R as L } from "./chunks/RangeCalendar-DL6cCjH3.js";
|
|
8
8
|
import { C as b, a as S, b as D, c as I, d as R, e as G, f as P } from "./chunks/Card-CVwiT9zm.js";
|
|
9
9
|
import { C as v } from "./chunks/CharacterCounter-Dgnv-orm.js";
|
|
10
|
-
import { C as M } from "./chunks/Checkbox-
|
|
11
|
-
import { C as h } from "./chunks/CheckboxGroup-
|
|
12
|
-
import { C as y } from "./chunks/ColorSchemeSwitch-
|
|
13
|
-
import { C as N } from "./chunks/ComboBox-
|
|
14
|
-
import { D as z } from "./chunks/DateField-
|
|
10
|
+
import { C as M } from "./chunks/Checkbox-DSW-_Qpm.js";
|
|
11
|
+
import { C as h } from "./chunks/CheckboxGroup-DteJIgnR.js";
|
|
12
|
+
import { C as y } from "./chunks/ColorSchemeSwitch-gD9pFu9h.js";
|
|
13
|
+
import { C as N } from "./chunks/ComboBox-BEUfJ6IN.js";
|
|
14
|
+
import { D as z } from "./chunks/DateField-Bwis4G2o.js";
|
|
15
15
|
import { D as Q, a as V, b as Z } from "./chunks/DateInputDivider-DwopMIb9.js";
|
|
16
|
-
import { D as q, a as J } from "./chunks/DateRangePicker-
|
|
16
|
+
import { D as q, a as J } from "./chunks/DateRangePicker-5E41DzGI.js";
|
|
17
17
|
import { F as U } from "./chunks/FieldError-krpMBtie.js";
|
|
18
18
|
import { D as X, F as Y } from "./chunks/FileUpload-Cu8DCSjX.js";
|
|
19
19
|
import { G as $ } from "./chunks/Grid-CettmpaZ.js";
|
|
20
20
|
import { G as ao } from "./chunks/GridItem-z7zclNdT.js";
|
|
21
21
|
import { H as eo } from "./chunks/Heading-nfcRc2QF.js";
|
|
22
|
-
import { I as so } from "./chunks/InfoBanner-
|
|
23
|
-
import { L as xo } from "./chunks/Label-
|
|
24
|
-
import { H as io, L as no, N as fo, S as To, a as co } from "./chunks/Layout-
|
|
25
|
-
import { L as lo } from "./chunks/Link-
|
|
26
|
-
import { L as Co } from "./chunks/LinkButton-
|
|
22
|
+
import { I as so } from "./chunks/InfoBanner-CWLvkP6D.js";
|
|
23
|
+
import { L as xo } from "./chunks/Label-Cg0aAlnt.js";
|
|
24
|
+
import { H as io, L as no, N as fo, S as To, a as co } from "./chunks/Layout-BLP0HVR-.js";
|
|
25
|
+
import { L as lo } from "./chunks/Link-CyY3-8M8.js";
|
|
26
|
+
import { L as Co } from "./chunks/LinkButton-DWKAbxXF.js";
|
|
27
27
|
import { L as Bo, a as bo } from "./chunks/Logo-DDykn5b2.js";
|
|
28
|
-
import { M as Do } from "./chunks/Dialog-
|
|
29
|
-
import { P as Ro } from "./chunks/Popover-
|
|
30
|
-
import { P as Po } from "./chunks/ProgressBar-
|
|
31
|
-
import { R as vo, a as Fo } from "./chunks/Radio-
|
|
32
|
-
import { S as Ao } from "./chunks/SearchField-
|
|
33
|
-
import { S as Ho } from "./chunks/Select-
|
|
34
|
-
import { S as Eo } from "./chunks/Skeleton-
|
|
28
|
+
import { M as Do } from "./chunks/Dialog-BSWBlyJI.js";
|
|
29
|
+
import { P as Ro } from "./chunks/Popover-CjEPHe4A.js";
|
|
30
|
+
import { P as Po } from "./chunks/ProgressBar-CBz_dIOH.js";
|
|
31
|
+
import { R as vo, a as Fo } from "./chunks/Radio-CRHdSthr.js";
|
|
32
|
+
import { S as Ao } from "./chunks/SearchField-VIMb28RB.js";
|
|
33
|
+
import { S as Ho } from "./chunks/Select-C01v_D--.js";
|
|
34
|
+
import { S as Eo } from "./chunks/Skeleton-tiP1Syzf.js";
|
|
35
35
|
import { S as wo } from "./chunks/Spinner-CfKMn18u.js";
|
|
36
|
-
import { C as Oo, a as Qo, R as Vo, T as Zo, b as jo, c as qo } from "./chunks/Table-
|
|
36
|
+
import { C as Oo, a as Qo, R as Vo, T as Zo, b as jo, c as qo } from "./chunks/Table-BpVSZ3aM.js";
|
|
37
37
|
import { T as Ko, a as Uo, b as Wo, c as Xo } from "./chunks/TabList-CJSnr6O0.js";
|
|
38
|
-
import { T as _o, a as $o, b as oa } from "./chunks/TagGroup-
|
|
38
|
+
import { T as _o, a as $o, b as oa } from "./chunks/TagGroup-DPFh8qHR.js";
|
|
39
39
|
import { T as ra } from "./chunks/Text-D0r_W4lH.js";
|
|
40
|
-
import { I as ta, T as sa, a as pa, b as xa } from "./chunks/TextArea-
|
|
41
|
-
import { G as ia, T as na, a as fa, b as da, t as Ta } from "./chunks/Toast-
|
|
42
|
-
import { T as ga, a as la } from "./chunks/ToggleButtonGroup-
|
|
43
|
-
import { T as Ca, a as La } from "./chunks/Tooltip-
|
|
44
|
-
import { L as ba } from "./chunks/ListBox-
|
|
45
|
-
import { L as Da, a as Ia, b as Ra, c as Ga, d as Pa } from "./chunks/ListBoxHeader-
|
|
46
|
-
import { L as va, a as Fa } from "./chunks/ListBoxEmptyState-
|
|
47
|
-
import { M as Aa, a as ha, b as Ha, c as ya, S as Ea } from "./chunks/Separator-
|
|
40
|
+
import { I as ta, T as sa, a as pa, b as xa } from "./chunks/TextArea-C7l7_Kof.js";
|
|
41
|
+
import { G as ia, T as na, a as fa, b as da, t as Ta } from "./chunks/Toast-BFq_0Ue4.js";
|
|
42
|
+
import { T as ga, a as la } from "./chunks/ToggleButtonGroup-DRnEEi5-.js";
|
|
43
|
+
import { T as Ca, a as La } from "./chunks/Tooltip-BYEaNkZG.js";
|
|
44
|
+
import { L as ba } from "./chunks/ListBox-CRtyHPj1.js";
|
|
45
|
+
import { L as Da, a as Ia, b as Ra, c as Ga, d as Pa } from "./chunks/ListBoxHeader-DIxY1gOH.js";
|
|
46
|
+
import { L as va, a as Fa } from "./chunks/ListBoxEmptyState-D6Jvy1WT.js";
|
|
47
|
+
import { M as Aa, a as ha, b as Ha, c as ya, S as Ea } from "./chunks/Separator-CDRwpeHz.js";
|
|
48
48
|
import { c as wa } from "./chunks/clsx-AexbMWKp.js";
|
|
49
49
|
import { DialogTrigger as Oa, MenuTrigger as Qa, RouterProvider as Va } from "react-aria-components";
|
|
50
50
|
import { u as ja } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
|
|
51
51
|
import { useToastState as Ja } from "react-stately";
|
|
52
|
-
const o = "17.
|
|
52
|
+
const o = "17.9.0", a = {
|
|
53
53
|
version: o
|
|
54
54
|
}, r = a.version;
|
|
55
55
|
export {
|
package/info-banner/index.js
CHANGED
package/label/index.js
CHANGED
package/layout/index.js
CHANGED
package/link/index.js
CHANGED
package/link-button/index.js
CHANGED
package/list-box/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as s } from "../chunks/ListBox-
|
|
2
|
-
import { L, a as e, b as x, c as i, d as r } from "../chunks/ListBoxHeader-
|
|
3
|
-
import { L as m, a as p } from "../chunks/ListBoxEmptyState-
|
|
1
|
+
import { L as s } from "../chunks/ListBox-CRtyHPj1.js";
|
|
2
|
+
import { L, a as e, b as x, c as i, d as r } from "../chunks/ListBoxHeader-DIxY1gOH.js";
|
|
3
|
+
import { L as m, a as p } from "../chunks/ListBoxEmptyState-D6Jvy1WT.js";
|
|
4
4
|
export {
|
|
5
5
|
s as ListBox,
|
|
6
6
|
L as ListBoxButton,
|
package/menu/index.js
CHANGED
package/modal/index.js
CHANGED
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"description": "Midas Components",
|
|
15
15
|
"homepage": "https://designsystem.migrationsverket.se/",
|
|
16
16
|
"license": "CC0-1.0",
|
|
17
|
-
"version": "17.
|
|
17
|
+
"version": "17.9.0",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./*": "./*/index.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@midas-ds/theme": "3.12.
|
|
44
|
+
"@midas-ds/theme": "3.12.13",
|
|
45
45
|
"react-aria-components": "1.16.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/popover/index.js
CHANGED
package/progress-bar/index.js
CHANGED
package/radio/index.js
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
2
2
|
import { Size } from '../common/types';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export interface SearchFieldProps extends AriaSearchFieldProps {
|
|
4
|
+
export interface SearchFieldProps extends Omit<AriaSearchFieldProps, 'children'> {
|
|
5
5
|
/** Placeholder text */
|
|
6
6
|
placeholder: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Whether to render a built-in submit button.
|
|
9
|
+
*
|
|
10
|
+
* **Future flag:** pass `showButton={false}` to opt into the v18 default today.
|
|
11
|
+
* In v18 the button will no longer be shown by default — compose your own `Button`
|
|
12
|
+
* outside `SearchField` instead. This prop will be removed in v18.
|
|
13
|
+
*
|
|
14
|
+
* @see https://github.com/migrationsverket/midas/issues/1109
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Opt into v18 behavior now:
|
|
18
|
+
* <SearchField placeholder="Sök" onSubmit={handleSubmit} />
|
|
19
|
+
* <Button onPress={() => handleSubmit(value)}>Sök</Button>
|
|
20
|
+
*
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
showButton?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Text displayed on the built-in submit button.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated since v17.9.0 — use your own `Button` instead. See `showButton`.
|
|
28
|
+
* @default 'Sök'
|
|
11
29
|
*/
|
|
12
30
|
buttonText?: string;
|
|
13
31
|
/**
|
|
@@ -9,14 +9,23 @@ declare const _default: {
|
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
11
11
|
args: {
|
|
12
|
-
buttonText: string;
|
|
13
12
|
errorPosition: "top";
|
|
14
13
|
className: string;
|
|
15
14
|
size: "large";
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
17
|
export default _default;
|
|
18
|
+
/**
|
|
19
|
+
* Default behavior in v17 — the built-in submit button is shown.
|
|
20
|
+
* The button is not in the tab order; use Enter to submit or click the button.
|
|
21
|
+
*/
|
|
19
22
|
export declare const Primary: Story;
|
|
20
23
|
export declare const CustomValidation: Story;
|
|
21
24
|
export declare const Invalid: Story;
|
|
22
25
|
export declare const Disabled: Story;
|
|
26
|
+
/**
|
|
27
|
+
* Future default in v18 — opt in today with `showButton={false}`.
|
|
28
|
+
* Compose your own `Button` outside `SearchField` for explicit submit.
|
|
29
|
+
* Enter still works for keyboard submission.
|
|
30
|
+
*/
|
|
31
|
+
export declare const WithoutButton: Story;
|
package/search-field/index.js
CHANGED
package/select/index.js
CHANGED
package/skeleton/index.js
CHANGED
package/table/index.js
CHANGED
package/tag/index.js
CHANGED
package/textfield/index.js
CHANGED
package/toast/index.js
CHANGED
package/toggle-button/index.js
CHANGED
package/tooltip/index.js
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import '../assets/Button.css';const n = "_button_7n7qm_1", t = "_secondary_7n7qm_48", _ = "_tertiary_7n7qm_71", o = "_iconBtn_7n7qm_91", i = "_medium_7n7qm_111", c = "_danger_7n7qm_116", r = "_iconRight_7n7qm_138", m = "_fullwidth_7n7qm_142", s = "_primary_7n7qm_152", e = {
|
|
2
|
-
button: n,
|
|
3
|
-
secondary: t,
|
|
4
|
-
tertiary: _,
|
|
5
|
-
iconBtn: o,
|
|
6
|
-
medium: i,
|
|
7
|
-
danger: c,
|
|
8
|
-
iconRight: r,
|
|
9
|
-
fullwidth: m,
|
|
10
|
-
primary: s
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
e as B
|
|
14
|
-
};
|