@midas-ds/components 15.5.2 → 16.0.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/Accordion.d.ts +0 -5
- package/accordion/index.js +1 -1
- package/assets/Spinner.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{AccordionItem-BDkCTxFM.js → AccordionItem-O3_wicV2.js} +40 -44
- package/chunks/{Button-DbQwg49l.js → Button-wBgWrXj3.js} +1 -1
- package/chunks/{CheckboxGroup-6UA5fwt5.js → CheckboxGroup-dofHjXkU.js} +1 -1
- package/chunks/{ComboBox-7VcYris7.js → ComboBox-XQqP_jga.js} +1 -1
- package/chunks/{DateField--2cGkaU8.js → DateField-ltU-Jvra.js} +1 -1
- package/chunks/{DateRangePicker-CrWRvDJw.js → DateRangePicker-CdoVIV-F.js} +2 -2
- package/chunks/{Dialog-BndmKdiv.js → Dialog-x-HLOQFU.js} +1 -1
- package/chunks/{InfoBanner-tXWNVxpu.js → InfoBanner-DLiVpNON.js} +1 -1
- package/chunks/{Label-BE4Aa-pL.js → Label-DqmNWnmm.js} +1 -1
- package/chunks/{Layout-DPRkHK4y.js → Layout-DtwVUZus.js} +2 -2
- package/chunks/{ListBoxLoadMoreItem-BKptRAtt.js → ListBoxLoadMoreItem-D9X8YnwD.js} +1 -1
- package/chunks/{ProgressBar-CEImvHGt.js → ProgressBar-DXBCKRe_.js} +1 -1
- package/chunks/{Radio-BYvbz297.js → Radio-C1AFopLt.js} +1 -1
- package/chunks/{RangeCalendar-CuXHsT-k.js → RangeCalendar-CGk2btOp.js} +1 -1
- package/chunks/{SearchField-CLrAjcdA.js → SearchField-BfpeANM6.js} +1 -1
- package/chunks/{Select-C9YP6yTv.js → Select-Bcu1yvbR.js} +2 -2
- package/chunks/{Select-eJLNw9M8.js → Select-DAlreRs2.js} +2 -2
- package/chunks/Spinner-BORNnHph.js +43 -0
- package/chunks/{Tag-CEfQksg8.js → Tag-DxBoeE_n.js} +1 -1
- package/chunks/{TextArea-BtxTcpto.js → TextArea-CEiOylOx.js} +2 -2
- package/chunks/Toast-DgQ6BTmK.js +153 -0
- package/chunks/Tooltip-uNMG_UU-.js +44 -0
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/index.d.ts +0 -1
- package/index.js +113 -115
- 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/ListBoxHeader.d.ts +1 -1
- package/list-box/index.js +1 -1
- package/modal/Dialog.d.ts +0 -11
- package/modal/index.d.ts +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -2
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/SearchField.d.ts +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/spinner/Spinner.d.ts +0 -6
- package/spinner/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/Text.d.ts +2 -2
- package/textfield/index.js +1 -1
- package/toast/Toast.d.ts +2 -6
- package/toast/index.js +5 -4
- package/tooltip/Tooltip.d.ts +6 -5
- package/tooltip/index.js +1 -1
- package/assets/Dropdown.css +0 -1
- package/chunks/Dropdown-CWP2clB2.js +0 -79
- package/chunks/Spinner-CL9evrHm.js +0 -49
- package/chunks/Toast-CCA9sCnB.js +0 -162
- package/chunks/Tooltip-CtstfI8u.js +0 -46
- package/dropdown/Dropdown.d.ts +0 -31
- package/dropdown/index.d.ts +0 -1
- package/dropdown/index.js +0 -5
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as t, jsxs as l, Fragment as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { Tooltip as p, OverlayArrow as c, TooltipTrigger as T } from "react-aria-components";
|
|
4
|
+
import '../assets/Tooltip.css';const g = "_tooltip_1nthz_1", m = "_arrow_1nthz_18", i = {
|
|
5
|
+
tooltip: g,
|
|
6
|
+
arrow: m
|
|
7
|
+
};
|
|
8
|
+
function _({ children: o, className: r, ...s }) {
|
|
9
|
+
return /* @__PURE__ */ t(
|
|
10
|
+
p,
|
|
11
|
+
{
|
|
12
|
+
className: n(i.tooltip, r),
|
|
13
|
+
...s,
|
|
14
|
+
children: (a) => /* @__PURE__ */ l(e, { children: [
|
|
15
|
+
/* @__PURE__ */ t(c, { className: i.arrow, children: /* @__PURE__ */ t(
|
|
16
|
+
"svg",
|
|
17
|
+
{
|
|
18
|
+
width: 8,
|
|
19
|
+
height: 8,
|
|
20
|
+
viewBox: "0 0 8 8",
|
|
21
|
+
children: /* @__PURE__ */ t("path", { d: "M0 0 L4 4 L8 0" })
|
|
22
|
+
}
|
|
23
|
+
) }),
|
|
24
|
+
typeof o == "function" ? o(a) : o
|
|
25
|
+
] })
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function u({
|
|
30
|
+
delay: o = 0,
|
|
31
|
+
...r
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ t(
|
|
34
|
+
T,
|
|
35
|
+
{
|
|
36
|
+
delay: o,
|
|
37
|
+
...r
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
_ as T,
|
|
43
|
+
u as a
|
|
44
|
+
};
|
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,52 +1,52 @@
|
|
|
1
|
-
import { a as r, A as e } from "./chunks/AccordionItem-
|
|
1
|
+
import { a as r, A as e } from "./chunks/AccordionItem-O3_wicV2.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 i } from "./chunks/Button-
|
|
4
|
+
import { B as i } from "./chunks/Button-wBgWrXj3.js";
|
|
5
5
|
import { B as d } from "./chunks/ButtonGroup-Dr6HOBo2.js";
|
|
6
|
-
import { C as l, R as C } from "./chunks/RangeCalendar-
|
|
7
|
-
import { C as
|
|
6
|
+
import { C as l, R as C } from "./chunks/RangeCalendar-CGk2btOp.js";
|
|
7
|
+
import { C as g, d as u, c as B, a as c, e as L, f as S, b as D } from "./chunks/Card-ia98VoKL.js";
|
|
8
8
|
import { C as G } from "./chunks/CharacterCounter-DeuE2det.js";
|
|
9
9
|
import { C as R } from "./chunks/Checkbox-ClhO-AzB.js";
|
|
10
|
-
import { C as M } from "./chunks/CheckboxGroup-
|
|
10
|
+
import { C as M } from "./chunks/CheckboxGroup-dofHjXkU.js";
|
|
11
11
|
import { C as v } from "./chunks/ColorSchemeSwitch-DugvPh6T.js";
|
|
12
|
-
import { C as h, a as H, b as
|
|
13
|
-
import { D as N } from "./chunks/DateField
|
|
12
|
+
import { C as h, a as H, b as y } from "./chunks/ComboBox-XQqP_jga.js";
|
|
13
|
+
import { D as N } from "./chunks/DateField-ltU-Jvra.js";
|
|
14
14
|
import { a as Q, b as Z, D as j } from "./chunks/DateInputDivider-CkTB5q5k.js";
|
|
15
|
-
import { D as z, a as J } from "./chunks/DateRangePicker-
|
|
16
|
-
import {
|
|
17
|
-
import { F as W } from "./chunks/
|
|
18
|
-
import {
|
|
19
|
-
import { G as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { L as mo } from "./chunks/
|
|
24
|
-
import {
|
|
25
|
-
import { L as bo } from "./chunks/
|
|
26
|
-
import { L as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { P as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { S as
|
|
33
|
-
import { S as
|
|
34
|
-
import { S as yo } from "./chunks/
|
|
35
|
-
import { S as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { T as oa
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { T as ba, a as ga } from "./chunks/
|
|
44
|
-
import {
|
|
45
|
-
import { L as
|
|
46
|
-
import { L as Ga, a as Pa } from "./chunks/
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
15
|
+
import { D as z, a as J } from "./chunks/DateRangePicker-CdoVIV-F.js";
|
|
16
|
+
import { F as O } from "./chunks/FieldError-C0HRIcAx.js";
|
|
17
|
+
import { D as V, F as W } from "./chunks/FileUpload-h1PxqQmb.js";
|
|
18
|
+
import { G as Y } from "./chunks/Grid-B-WgMwON.js";
|
|
19
|
+
import { G as $ } from "./chunks/GridItem-5t1Z14sM.js";
|
|
20
|
+
import { H as ao } from "./chunks/Heading-D8tNNJkt.js";
|
|
21
|
+
import { I as eo } from "./chunks/InfoBanner-DLiVpNON.js";
|
|
22
|
+
import { L as so } from "./chunks/Label-DqmNWnmm.js";
|
|
23
|
+
import { H as xo, L as mo, N as fo, S as io, a as no } from "./chunks/Layout-DtwVUZus.js";
|
|
24
|
+
import { L as lo } from "./chunks/Link-yTNUNv3C.js";
|
|
25
|
+
import { L as bo } from "./chunks/LinkButton-3nAekUJ4.js";
|
|
26
|
+
import { L as uo } from "./chunks/Logo-InDSslpO.js";
|
|
27
|
+
import { M as co } from "./chunks/Dialog-x-HLOQFU.js";
|
|
28
|
+
import { P as So } from "./chunks/Popover-D9tAN-g7.js";
|
|
29
|
+
import { P as Io } from "./chunks/ProgressBar-DXBCKRe_.js";
|
|
30
|
+
import { R as Po, a as Ro } from "./chunks/Radio-C1AFopLt.js";
|
|
31
|
+
import { S as Mo } from "./chunks/SearchField-BfpeANM6.js";
|
|
32
|
+
import { S as vo } from "./chunks/Select-Bcu1yvbR.js";
|
|
33
|
+
import { S as ho } from "./chunks/Select-DAlreRs2.js";
|
|
34
|
+
import { S as yo } from "./chunks/Skeleton-DqIHQLQl.js";
|
|
35
|
+
import { S as No } from "./chunks/Spinner-BORNnHph.js";
|
|
36
|
+
import { b as Qo, C as Zo, R as jo, T as qo, c as zo, a as Jo } from "./chunks/Table-B1rlSIhS.js";
|
|
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-DxBoeE_n.js";
|
|
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-CEiOylOx.js";
|
|
41
|
+
import { G as xa, b as ma, T as fa, a as ia, t as na } from "./chunks/Toast-DgQ6BTmK.js";
|
|
42
|
+
import { T as Ta, a as la } from "./chunks/ToggleButtonGroup-CXKTrLbb.js";
|
|
43
|
+
import { T as ba, a as ga } from "./chunks/Tooltip-uNMG_UU-.js";
|
|
44
|
+
import { L as Ba } from "./chunks/ListBox-D4tO_OrO.js";
|
|
45
|
+
import { L as La, a as Sa } from "./chunks/ListBoxLoadMoreItem-D9X8YnwD.js";
|
|
46
|
+
import { c as Ia, L as Ga, a as Pa, b as Ra } from "./chunks/ListBoxSection-DKHba2X0.js";
|
|
47
|
+
import { M as Ma, a as Fa, b as va, c as Aa, S as ha } from "./chunks/Separator-BcnQEA9f.js";
|
|
48
|
+
import { DialogTrigger as ya, MenuTrigger as wa, RouterProvider as Na } from "react-aria-components";
|
|
49
|
+
import { useToastState as Qa } from "react-stately";
|
|
50
50
|
export {
|
|
51
51
|
r as Accordion,
|
|
52
52
|
e as AccordionItem,
|
|
@@ -56,95 +56,93 @@ export {
|
|
|
56
56
|
i as Button,
|
|
57
57
|
d as ButtonGroup,
|
|
58
58
|
l as Calendar,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
g as Card,
|
|
60
|
+
u as CardActionArea,
|
|
61
61
|
B as CardActions,
|
|
62
62
|
c as CardContent,
|
|
63
63
|
L as CardImage,
|
|
64
64
|
S as CardLink,
|
|
65
65
|
D as CardTitle,
|
|
66
|
-
|
|
66
|
+
Qo as Cell,
|
|
67
67
|
G as CharacterCounter,
|
|
68
68
|
R as Checkbox,
|
|
69
69
|
M as CheckboxGroup,
|
|
70
70
|
v as ColorSchemeSwitch,
|
|
71
|
-
|
|
71
|
+
Zo as Column,
|
|
72
72
|
h as ComboBox,
|
|
73
73
|
H as ComboBoxItem,
|
|
74
|
-
|
|
74
|
+
y as ComboBoxSection,
|
|
75
75
|
N as DateField,
|
|
76
76
|
Q as DateInput,
|
|
77
77
|
Z as DateInputDivider,
|
|
78
78
|
z as DatePicker,
|
|
79
79
|
J as DateRangePicker,
|
|
80
80
|
j as DateSegment,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
O as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Ga as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
wa as
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Ro as
|
|
116
|
-
Mo as Radio,
|
|
117
|
-
Fo as RadioGroup,
|
|
81
|
+
ya as DialogTrigger,
|
|
82
|
+
V as DropZone,
|
|
83
|
+
O as FieldError,
|
|
84
|
+
W as FileTrigger,
|
|
85
|
+
xa as GlobalToastRegion,
|
|
86
|
+
Y as Grid,
|
|
87
|
+
$ as GridItem,
|
|
88
|
+
xo as Header,
|
|
89
|
+
ao as Heading,
|
|
90
|
+
eo as InfoBanner,
|
|
91
|
+
ra as Input,
|
|
92
|
+
so as Label,
|
|
93
|
+
mo as Layout,
|
|
94
|
+
ho as LegacySelect,
|
|
95
|
+
lo as Link,
|
|
96
|
+
bo as LinkButton,
|
|
97
|
+
Ba as ListBox,
|
|
98
|
+
La as ListBoxButton,
|
|
99
|
+
Ia as ListBoxHeader,
|
|
100
|
+
Ga as ListBoxItem,
|
|
101
|
+
Sa as ListBoxLoadMoreItem,
|
|
102
|
+
Pa as ListBoxPopover,
|
|
103
|
+
Ra as ListBoxSection,
|
|
104
|
+
uo as Logo,
|
|
105
|
+
Ma as Menu,
|
|
106
|
+
Fa as MenuItem,
|
|
107
|
+
va as MenuPopover,
|
|
108
|
+
Aa as MenuSection,
|
|
109
|
+
wa as MenuTrigger,
|
|
110
|
+
co as Modal,
|
|
111
|
+
fo as Navbar,
|
|
112
|
+
So as Popover,
|
|
113
|
+
Io as ProgressBar,
|
|
114
|
+
Po as Radio,
|
|
115
|
+
Ro as RadioGroup,
|
|
118
116
|
C as RangeCalendar,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
117
|
+
Na as RouterProvider,
|
|
118
|
+
jo as Row,
|
|
119
|
+
Mo as SearchField,
|
|
120
|
+
vo as Select,
|
|
121
|
+
ha as Separator,
|
|
122
|
+
io as Sidebar,
|
|
123
|
+
no as SidebarLink,
|
|
124
|
+
yo as Skeleton,
|
|
125
|
+
No as Spinner,
|
|
126
|
+
Oo as Tab,
|
|
127
|
+
Uo as TabList,
|
|
128
|
+
Vo as TabPanel,
|
|
129
|
+
qo as Table,
|
|
130
|
+
zo as TableBody,
|
|
131
|
+
Jo as TableHeader,
|
|
132
|
+
Wo as Tabs,
|
|
133
|
+
Yo as Tag,
|
|
134
|
+
_o as TagGroup,
|
|
135
|
+
oa as Text,
|
|
136
|
+
ea as TextArea,
|
|
137
|
+
ta as TextField,
|
|
138
|
+
sa as TextFieldBase,
|
|
139
|
+
ma as Toast,
|
|
140
|
+
fa as ToastProvider,
|
|
141
|
+
ia as ToastRegion,
|
|
142
|
+
Ta as ToggleButton,
|
|
143
|
+
la as ToggleButtonGroup,
|
|
144
|
+
ba as Tooltip,
|
|
145
|
+
ga as TooltipTrigger,
|
|
146
|
+
na as toastQueue,
|
|
147
|
+
Qa as useToastState
|
|
150
148
|
};
|
package/info-banner/index.js
CHANGED
package/label/index.js
CHANGED
package/layout/index.js
CHANGED
package/legacy-select/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export type ListBoxHeaderProps = React.HTMLAttributes<HTMLElement> & React.RefAttributes<
|
|
2
|
+
export type ListBoxHeaderProps = React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>;
|
|
3
3
|
export declare const ListBoxHeader: ({ className, ...rest }: ListBoxHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
package/list-box/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as s } from "../chunks/ListBox-D4tO_OrO.js";
|
|
2
|
-
import { L, a as e } from "../chunks/ListBoxLoadMoreItem-
|
|
2
|
+
import { L, a as e } from "../chunks/ListBoxLoadMoreItem-D9X8YnwD.js";
|
|
3
3
|
import { c as r, L as i, a as B, b as m } from "../chunks/ListBoxSection-DKHba2X0.js";
|
|
4
4
|
export {
|
|
5
5
|
s as ListBox,
|
package/modal/Dialog.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { AriaDialogProps } from 'react-aria';
|
|
2
1
|
import { DialogTrigger, ModalOverlayProps } from 'react-aria-components';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated since v13.0.1 please use ModalProps instead
|
|
6
|
-
*/
|
|
7
|
-
export interface DialogProps extends AriaDialogProps {
|
|
8
|
-
/**
|
|
9
|
-
* An optional title for the dialog. If omitted, please provide an aria-label for accessibility.
|
|
10
|
-
*/
|
|
11
|
-
title?: React.ReactNode;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
14
3
|
export interface ModalProps extends ModalOverlayProps, React.RefAttributes<HTMLDivElement> {
|
|
15
4
|
/**
|
|
16
5
|
* An optional title for the dialog. If omitted, please provide an aria-label for accessibility.
|
package/modal/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Modal, DialogTrigger, type
|
|
1
|
+
export { Modal, DialogTrigger, type ModalProps } from './Dialog';
|
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
|
+
"version": "16.0.0",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@midas-ds/theme": "3.8.1",
|
|
45
|
-
"react-aria-components": "1.
|
|
45
|
+
"react-aria-components": "1.14.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/progress-bar/index.js
CHANGED
package/radio/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
export interface SearchFieldProps extends AriaSearchFieldProps {
|
|
5
5
|
/** Placeholder text */
|
|
6
6
|
placeholder: string;
|
|
7
7
|
/**
|
package/search-field/index.js
CHANGED
package/select/index.js
CHANGED
package/spinner/Spinner.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ export interface SpinnerProps {
|
|
|
3
3
|
* @default false
|
|
4
4
|
*/
|
|
5
5
|
small?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated since v14, define color based on context. Use `color` prop instead.
|
|
8
|
-
*
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
isOnColor?: boolean;
|
|
12
6
|
/** User defined color */
|
|
13
7
|
color?: string;
|
|
14
8
|
className?: string;
|
package/spinner/index.js
CHANGED
package/tag/index.js
CHANGED
package/text/Text.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TextProps as AriaTextProps } from 'react-aria-components';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export type TextSize = 'small';
|
|
4
4
|
/**
|
|
5
|
-
* @deprecated Use size prop instead. Only kept for backwards compatibility with body-01 and body-02.
|
|
5
|
+
* @deprecated since v15.0.0 Use size prop instead. Only kept for backwards compatibility with body-01 and body-02.
|
|
6
6
|
*/
|
|
7
7
|
export type TextVariant = 'body-01' | 'body-02';
|
|
8
8
|
export interface TextProps extends AriaTextProps {
|
|
@@ -12,7 +12,7 @@ export interface TextProps extends AriaTextProps {
|
|
|
12
12
|
*/
|
|
13
13
|
size?: TextSize;
|
|
14
14
|
/**
|
|
15
|
-
* @deprecated Use size prop instead. Only body-01 and body-02 are supported for backwards compatibility.
|
|
15
|
+
* @deprecated since v15.0.0 Use size prop instead. Only body-01 and body-02 are supported for backwards compatibility.
|
|
16
16
|
*/
|
|
17
17
|
variant?: TextVariant;
|
|
18
18
|
/**
|
package/textfield/index.js
CHANGED
package/toast/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AriaToastProps, AriaToastRegionProps } from 'react-aria';
|
|
2
|
-
import { QueuedToast, ToastQueue, ToastState,
|
|
2
|
+
import { QueuedToast, ToastQueue, ToastState, useToastState } from 'react-stately';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { FeedbackStatus } from '../common/types';
|
|
5
5
|
export interface MidasToast {
|
|
@@ -21,11 +21,7 @@ export interface ToastProviderProps extends AriaToastRegionProps {
|
|
|
21
21
|
children?: ((state: ToastState<MidasToast>) => React.ReactNode) | React.ReactNode;
|
|
22
22
|
className?: string;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
* Temporary implementation of https://github.com/adobe/react-spectrum/blob/main/packages/%40react-stately/toast/src/useToastState.ts#L59
|
|
26
|
-
* TODO: Erase this as soon as react-stately is released
|
|
27
|
-
*/
|
|
28
|
-
export declare function useToastState<T>(props?: ToastStateProps): ToastState<T>;
|
|
24
|
+
export { useToastState };
|
|
29
25
|
export declare const toastQueue: ToastQueue<MidasToast>;
|
|
30
26
|
export declare const GlobalToastRegion: (props: ToastProviderProps) => React.ReactPortal | null;
|
|
31
27
|
export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
|
package/toast/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { G as
|
|
1
|
+
import { G as s, b as t, T as e, a as r, t as T } from "../chunks/Toast-DgQ6BTmK.js";
|
|
2
|
+
import { useToastState as u } from "react-stately";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
s as GlobalToastRegion,
|
|
4
5
|
t as Toast,
|
|
5
6
|
e as ToastProvider,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
r as ToastRegion,
|
|
8
|
+
T as toastQueue,
|
|
8
9
|
u as useToastState
|
|
9
10
|
};
|
package/tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TooltipProps, TooltipTriggerComponentProps } from 'react-aria-components';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export type { TooltipProps };
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated since v16.0.0 please use TooltipProps instead
|
|
5
|
+
*/
|
|
6
|
+
export type MidasTooltipProps = TooltipProps;
|
|
6
7
|
export declare function Tooltip({ children, className, ...props }: MidasTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function TooltipTrigger({
|
|
8
|
+
export declare function TooltipTrigger({ delay, ...props }: TooltipTriggerComponentProps): import("react/jsx-runtime").JSX.Element;
|
package/tooltip/index.js
CHANGED
package/assets/Dropdown.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._dropDownMenu_1493w_1{font-family:var(--midas-typography-font-family);box-shadow:2px 2px 4px #00000040;background-color:var(--midas-button-background-tertiary-hover)}._dropDownMenu_1493w_1[data-focus-visible]{outline:none;box-shadow:var(--midas-state-focus)}@media(forced-colors:active){._dropDownMenu_1493w_1[data-focus-visible]{outline:var(--midas-state-focus-contrast-mode-outline) solid highlight!important;outline-offset:calc(var(--midas-state-focus-contrast-mode-outline) * -1)}}._menuItem_1493w_17{width:100%}._menuItem_1493w_17[data-focus-visible]{outline:none;box-shadow:var(--midas-state-focus)}@media(forced-colors:active){._menuItem_1493w_17[data-focus-visible]{outline:var(--midas-state-focus-contrast-mode-outline) solid highlight!important;outline-offset:calc(var(--midas-state-focus-contrast-mode-outline) * -1)}}
|