@midas-ds/components 12.1.1 → 13.0.1-local.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/AccordionItem-Bq8nUKg4.cjs +1 -0
- package/{AccordionItem-Dd9VLdsb.js → AccordionItem-D2Y0gJZB.js} +108 -108
- package/CHANGELOG.md +42 -0
- package/{CheckboxGroup-BmCK0XG9.js → CheckboxGroup-BmFdy-K6.js} +1 -1
- package/{CheckboxGroup-DbmYdQEv.cjs → CheckboxGroup-LrqCwPET.cjs} +1 -1
- package/{ComboBox-Cl6jBB-8.js → ComboBox-B2btGwWe.js} +3 -3
- package/{ComboBox-CvD0t2T2.cjs → ComboBox-uMsVrOYu.cjs} +1 -1
- package/{DateField-DJAQH95Q.cjs → DateField-B5dlDwdH.cjs} +1 -1
- package/{DateField-D2IqGDL5.js → DateField-CEpRn4wR.js} +1 -1
- package/{DateRangePicker-CNPXbRqx.js → DateRangePicker-BmPPDZIF.js} +2 -2
- package/{DateRangePicker-CljQy8oD.cjs → DateRangePicker-It4M98bT.cjs} +1 -1
- package/{Dialog-COpVrq8B.js → Dialog-B1HuzqOX.js} +1 -1
- package/{Dialog-B8swxl24.js → Dialog-COeUapMW.js} +2 -2
- package/{Dropdown-DbeUiGYo.js → Dropdown-CGQbf7OT.js} +1 -1
- package/InfoBanner-C82hcpzj.cjs +1 -0
- package/InfoBanner-Dz_0wVSa.js +83 -0
- package/{Label-Dp85Vue3.cjs → Label-06gf6yKQ.cjs} +1 -1
- package/{Label-C5TNJ0Ku.js → Label-1N6ddn5w.js} +2 -2
- package/{Layout-CcXu63hP.js → Layout-B-A-s7B0.js} +39 -39
- package/{Layout-Bxd0-ao3.cjs → Layout-DlE30BHE.cjs} +2 -2
- package/{ListBoxLoadMoreItem-CIFJ3liN.js → ListBoxLoadMoreItem-C4jnDcYH.js} +1 -1
- package/{ListBoxSection-BBY8-t3_.js → ListBoxSection-D7BcbjUt.js} +1 -1
- package/{Popover-CyEVqpJ6.js → Popover-Bf5YH53o.js} +11 -11
- package/{Popover-Bi5yJEoE.cjs → Popover-DIq3kp6B.cjs} +1 -1
- package/{ProgressBar-BYb9d2kC.js → ProgressBar-DRhXkSE6.js} +1 -1
- package/{ProgressBar-CgbE08QT.cjs → ProgressBar-i7almbvK.cjs} +1 -1
- package/{Radio-BagVPvJX.cjs → Radio-BpQoJB8e.cjs} +1 -1
- package/{Radio-C98ly9yx.js → Radio-D4wUZfW9.js} +1 -1
- package/{Select-xBp51JSl.cjs → Select-1QuVY4f5.cjs} +1 -1
- package/{Select-BECa8IyZ.js → Select-CEwJo1BT.js} +3 -3
- package/{Separator-DH-5wu9X.js → Separator-Bj24aGrT.js} +1 -1
- package/TabList-3fErCDyP.cjs +1 -0
- package/{TabList-C0mZgIzV.js → TabList-CXaxruLg.js} +36 -36
- package/{Table-DzbfeVO7.js → Table-BzJktg2G.js} +1 -1
- package/{Table-BHY1uCZ0.cjs → Table-Dyqa6_rE.cjs} +1 -1
- package/{TextArea-DJCtwrqV.cjs → TextArea-B4BZUoJp.cjs} +1 -1
- package/{TextArea-CDoLq124.js → TextArea-Df1fR5R4.js} +20 -21
- package/{Toast-DZnQTLDr.js → Toast-B74PMVL9.js} +36 -36
- package/{Toast-BN3vRCsH.cjs → Toast-Cs0CEbRr.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/default.css +1 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +144 -144
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/list-box/index.js +2 -2
- package/menu/Menu.d.ts +2 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +6 -4
- package/modal/index.js +2 -2
- package/package.json +4 -14
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/textfield/TextArea.d.ts +2 -7
- package/textfield/TextField.d.ts +2 -6
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/variables-B3KEYyhW.cjs +1 -0
- package/variables-DzXcMW2k.js +5 -0
- package/AccordionItem-CV9Hrare.cjs +0 -1
- package/InfoBanner-CgmPdsH8.js +0 -83
- package/InfoBanner-Y-f3hKVR.cjs +0 -1
- package/TabList-BMyKYLlY.cjs +0 -1
- package/assets/global.css +0 -1
- package/assets/theme.css +0 -1
- package/assets/variables.css +0 -1
- package/theme/generated-object.d.ts +0 -381
- package/theme/generated-tokens.d.ts +0 -331
- package/theme/index.cjs +0 -1
- package/theme/index.d.ts +0 -267
- package/theme/index.js +0 -3991
- package/theme/tokens.d.ts +0 -290
- package/tokens-B3FfJ-rY.cjs +0 -1
- package/tokens-B9ooUP4g.js +0 -327
package/index.js
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import {
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as A } from "./
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import { D as
|
|
15
|
-
import {
|
|
16
|
-
import { D as
|
|
17
|
-
import {
|
|
18
|
-
import { F as
|
|
19
|
-
import {
|
|
20
|
-
import { G as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { L as
|
|
25
|
-
import {
|
|
26
|
-
import { L as co } from "./
|
|
27
|
-
import { L as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { P as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { S as
|
|
34
|
-
import { S as
|
|
35
|
-
import { S as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { T as
|
|
40
|
-
import { T as
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { T as
|
|
44
|
-
import {
|
|
45
|
-
import { L as
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import { $ as
|
|
49
|
-
import { $ as Oa } from "./Dialog-B8swxl24.js";
|
|
1
|
+
import { a as r, b as e, A as s } from "./AccordionItem-D2Y0gJZB.js";
|
|
2
|
+
import { B as p, a as m } from "./BadgeContainer-iNNgJKD9.js";
|
|
3
|
+
import { B as f } from "./Breadcrumbs-C6B4fyk3.js";
|
|
4
|
+
import { B as n } from "./Button-CUMHt7MG.js";
|
|
5
|
+
import { B as T } from "./ButtonGroup-DC8925jD.js";
|
|
6
|
+
import { C as b, R as l } from "./RangeCalendar-Bi9jc61A.js";
|
|
7
|
+
import { C as g, d as B, c, a as L, e as S, f as D, b as I } from "./Card-D2UbrhDW.js";
|
|
8
|
+
import { C as G } from "./CharacterCounter-DT7A0wWP.js";
|
|
9
|
+
import { C as k } from "./Checkbox-DTuryJdM.js";
|
|
10
|
+
import { C as A } from "./CheckboxGroup-BmFdy-K6.js";
|
|
11
|
+
import { C as v } from "./ColorSchemeSwitch-CgZfgCG4.js";
|
|
12
|
+
import { C as H, a as w, b as N } from "./ComboBox-B2btGwWe.js";
|
|
13
|
+
import { D as E } from "./DateField-CEpRn4wR.js";
|
|
14
|
+
import { a as _, b as $, D as Q } from "./DateInputDivider-LxS0Kw1H.js";
|
|
15
|
+
import { D as j, a as q } from "./DateRangePicker-BmPPDZIF.js";
|
|
16
|
+
import { D as J, a as K } from "./Dropdown-CGQbf7OT.js";
|
|
17
|
+
import { F as V } from "./FieldError-DdvFyIf4.js";
|
|
18
|
+
import { D as X, F as Y } from "./FileUpload-D2gnQKdn.js";
|
|
19
|
+
import { G as ao } from "./Grid-BmX6arAO.js";
|
|
20
|
+
import { G as eo } from "./GridItem-BtO9kCX9.js";
|
|
21
|
+
import { H as to } from "./Heading-BQlmb5Tm.js";
|
|
22
|
+
import { I as mo } from "./InfoBanner-Dz_0wVSa.js";
|
|
23
|
+
import { L as fo } from "./Label-1N6ddn5w.js";
|
|
24
|
+
import { H as no, L as To, N as Co, S as bo, a as lo } from "./Layout-B-A-s7B0.js";
|
|
25
|
+
import { L as go } from "./Link-lO-Ke97K.js";
|
|
26
|
+
import { L as co } from "./LinkButton-CJyZh3BS.js";
|
|
27
|
+
import { L as So } from "./Logo-DkagDdKQ.js";
|
|
28
|
+
import { M as Io } from "./Dialog-B1HuzqOX.js";
|
|
29
|
+
import { P as Go } from "./Popover-Bf5YH53o.js";
|
|
30
|
+
import { P as ko } from "./ProgressBar-DRhXkSE6.js";
|
|
31
|
+
import { R as Ao, a as Fo } from "./Radio-D4wUZfW9.js";
|
|
32
|
+
import { S as ho } from "./SearchField-BevjTbcW.js";
|
|
33
|
+
import { S as wo } from "./Select-CEwJo1BT.js";
|
|
34
|
+
import { S as yo } from "./Skeleton-Iovq135_.js";
|
|
35
|
+
import { S as Oo } from "./Spinner-BZ7i01Kt.js";
|
|
36
|
+
import { b as $o, C as Qo, R as Zo, T as jo, c as qo, a as zo } from "./Table-BzJktg2G.js";
|
|
37
|
+
import { a as Ko, c as Uo, b as Vo, T as Wo } from "./TabList-CXaxruLg.js";
|
|
38
|
+
import { T as Yo, a as oa } from "./Tag-BYUPXbhG.js";
|
|
39
|
+
import { T as ra } from "./Text-CmlsaWMA.js";
|
|
40
|
+
import { I as sa, b as ta, a as pa, T as ma } from "./TextArea-Df1fR5R4.js";
|
|
41
|
+
import { G as fa, b as ia, T as na, a as da, t as Ta, u as Ca } from "./Toast-B74PMVL9.js";
|
|
42
|
+
import { T as la, a as ua } from "./ToggleButtonGroup-CwHPu7w5.js";
|
|
43
|
+
import { T as Ba, a as ca } from "./Tooltip-BHAtsp9k.js";
|
|
44
|
+
import { L as Sa, a as Da, b as Ia, c as Ra } from "./ListBoxSection-D7BcbjUt.js";
|
|
45
|
+
import { L as Pa, a as ka } from "./ListBoxLoadMoreItem-C4jnDcYH.js";
|
|
46
|
+
import { M as Aa, a as Fa, b as va, c as ha, S as Ha } from "./Separator-Bj24aGrT.js";
|
|
47
|
+
import { $ as Na } from "./usePress-DMUpU0GU.js";
|
|
48
|
+
import { $ as Ea, a as Oa } from "./Dialog-COeUapMW.js";
|
|
50
49
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
r as ACCORDION_TEST_ID,
|
|
51
|
+
e as Accordion,
|
|
53
52
|
s as AccordionItem,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
53
|
+
p as Badge,
|
|
54
|
+
m as BadgeContainer,
|
|
55
|
+
f as Breadcrumbs,
|
|
56
|
+
n as Button,
|
|
57
|
+
T as ButtonGroup,
|
|
58
|
+
b as Calendar,
|
|
59
|
+
g as Card,
|
|
60
|
+
B as CardActionArea,
|
|
61
|
+
c as CardActions,
|
|
62
|
+
L as CardContent,
|
|
63
|
+
S as CardImage,
|
|
64
|
+
D as CardLink,
|
|
65
|
+
I as CardTitle,
|
|
66
|
+
$o as Cell,
|
|
67
|
+
G as CharacterCounter,
|
|
68
|
+
k as Checkbox,
|
|
69
|
+
A as CheckboxGroup,
|
|
70
|
+
v as ColorSchemeSwitch,
|
|
71
|
+
Qo as Column,
|
|
72
|
+
H as ComboBox,
|
|
73
|
+
w as ComboBoxItem,
|
|
74
|
+
N as ComboBoxSection,
|
|
75
|
+
E as DateField,
|
|
76
|
+
_ as DateInput,
|
|
77
|
+
$ as DateInputDivider,
|
|
78
|
+
j as DatePicker,
|
|
79
|
+
q as DateRangePicker,
|
|
80
|
+
Q as DateSegment,
|
|
81
|
+
Ea as DialogTrigger,
|
|
82
|
+
X as DropZone,
|
|
83
|
+
J as Dropdown,
|
|
84
|
+
K as DropdownItem,
|
|
85
|
+
V as FieldError,
|
|
86
|
+
Y as FileTrigger,
|
|
87
|
+
fa as GlobalToastRegion,
|
|
88
|
+
ao as Grid,
|
|
89
|
+
eo as GridItem,
|
|
90
|
+
no as Header,
|
|
91
|
+
to as Heading,
|
|
92
|
+
mo as InfoBanner,
|
|
94
93
|
sa as Input,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
94
|
+
fo as Label,
|
|
95
|
+
To as Layout,
|
|
96
|
+
go as Link,
|
|
97
|
+
co as LinkButton,
|
|
98
|
+
Sa as ListBox,
|
|
99
|
+
Pa as ListBoxButton,
|
|
100
|
+
Da as ListBoxItem,
|
|
101
|
+
ka as ListBoxLoadMoreItem,
|
|
102
|
+
Ia as ListBoxPopover,
|
|
103
|
+
Ra as ListBoxSection,
|
|
104
|
+
So as Logo,
|
|
105
|
+
Aa as Menu,
|
|
106
|
+
Fa as MenuItem,
|
|
107
|
+
va as MenuPopover,
|
|
108
|
+
ha as MenuSection,
|
|
109
|
+
Oa as MenuTrigger,
|
|
110
|
+
Io as Modal,
|
|
111
|
+
Co as Navbar,
|
|
112
|
+
Go as Popover,
|
|
113
|
+
ko as ProgressBar,
|
|
114
|
+
Ao as Radio,
|
|
115
|
+
Fo as RadioGroup,
|
|
116
|
+
l as RangeCalendar,
|
|
117
|
+
Na as RouterProvider,
|
|
118
|
+
Zo as Row,
|
|
119
|
+
ho as SearchField,
|
|
120
|
+
wo as Select,
|
|
121
|
+
Ha as Separator,
|
|
122
|
+
bo as Sidebar,
|
|
123
|
+
lo as SidebarLink,
|
|
124
|
+
yo as Skeleton,
|
|
125
|
+
Oo as Spinner,
|
|
126
|
+
Ko as Tab,
|
|
127
|
+
Uo as TabList,
|
|
128
|
+
Vo as TabPanel,
|
|
129
|
+
jo as Table,
|
|
130
|
+
qo as TableBody,
|
|
131
|
+
zo as TableHeader,
|
|
132
|
+
Wo as Tabs,
|
|
133
|
+
Yo as Tag,
|
|
134
|
+
oa as TagGroup,
|
|
135
|
+
ra as Text,
|
|
136
|
+
ta as TextArea,
|
|
137
|
+
pa as TextField,
|
|
138
|
+
ma as TextFieldBase,
|
|
139
|
+
ia as Toast,
|
|
140
|
+
na as ToastProvider,
|
|
141
|
+
da as ToastRegion,
|
|
142
|
+
la as ToggleButton,
|
|
143
|
+
ua as ToggleButtonGroup,
|
|
144
|
+
Ba as Tooltip,
|
|
145
|
+
ca as TooltipTrigger,
|
|
146
|
+
Ta as toastQueue,
|
|
147
|
+
Ca as useToastState
|
|
148
148
|
};
|
package/info-banner/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../InfoBanner-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../InfoBanner-C82hcpzj.cjs");exports.InfoBanner=e.InfoBanner;
|
package/info-banner/index.js
CHANGED
package/label/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Label-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Label-06gf6yKQ.cjs");exports.Label=e.Label;
|
package/label/index.js
CHANGED
package/layout/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Layout-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Layout-DlE30BHE.cjs");exports.Header=e.Header;exports.Layout=e.Layout;exports.Navbar=e.Navbar;exports.Sidebar=e.Sidebar;exports.SidebarLink=e.SidebarLink;
|
package/layout/index.js
CHANGED
package/list-box/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as s, a, b as L, c as x } from "../ListBoxSection-
|
|
2
|
-
import { L as i, a as B } from "../ListBoxLoadMoreItem-
|
|
1
|
+
import { L as s, a, b as L, c as x } from "../ListBoxSection-D7BcbjUt.js";
|
|
2
|
+
import { L as i, a as B } from "../ListBoxLoadMoreItem-C4jnDcYH.js";
|
|
3
3
|
export {
|
|
4
4
|
s as ListBox,
|
|
5
5
|
i as ListBoxButton,
|
package/menu/Menu.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { MenuProps as AriaMenuProps } from 'react-aria-components';
|
|
1
|
+
import { MenuTrigger, MenuTriggerProps, MenuProps as AriaMenuProps } from 'react-aria-components';
|
|
2
2
|
import { Size } from '../common/types';
|
|
3
3
|
import { ExcludeKeysFrom } from '../utils/types';
|
|
4
|
+
export { MenuTrigger, type MenuTriggerProps };
|
|
4
5
|
export type MenuItemObject = ExcludeKeysFrom<{
|
|
5
6
|
[prop: string]: unknown;
|
|
6
7
|
}, 'href'>;
|
package/menu/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Separator-Cfv2pbWf.cjs");exports.Menu=e.Menu;exports.MenuItem=e.MenuItem;exports.MenuPopover=e.MenuPopover;exports.MenuSection=e.MenuSection;exports.Separator=e.Separator;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Separator-Cfv2pbWf.cjs"),r=require("../Dialog-DR6nEqMT.cjs");exports.Menu=e.Menu;exports.MenuItem=e.MenuItem;exports.MenuPopover=e.MenuPopover;exports.MenuSection=e.MenuSection;exports.Separator=e.Separator;exports.MenuTrigger=r.$3674c52c6b3c5bce$export$27d2ad3c5815583e;
|
package/menu/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { M as
|
|
1
|
+
import { M as r, a as o, b as n, c as s, S as M } from "../Separator-Bj24aGrT.js";
|
|
2
|
+
import { a as u } from "../Dialog-COeUapMW.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
r as Menu,
|
|
5
|
+
o as MenuItem,
|
|
6
|
+
n as MenuPopover,
|
|
6
7
|
s as MenuSection,
|
|
8
|
+
u as MenuTrigger,
|
|
7
9
|
M as Separator
|
|
8
10
|
};
|
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": "13.0.1-local.0",
|
|
18
18
|
"main": "./index.cjs",
|
|
19
19
|
"module": "./index.js",
|
|
20
20
|
"types": "./index.d.ts",
|
|
@@ -39,22 +39,12 @@
|
|
|
39
39
|
"import": "./index.js",
|
|
40
40
|
"require": "./index.cjs"
|
|
41
41
|
},
|
|
42
|
-
"./
|
|
43
|
-
"
|
|
44
|
-
"import": "./theme/index.js",
|
|
45
|
-
"require": "./theme/index.cjs"
|
|
46
|
-
},
|
|
47
|
-
"./global.css": {
|
|
48
|
-
"import": "./assets/global.css"
|
|
49
|
-
},
|
|
50
|
-
"./theme.css": {
|
|
51
|
-
"import": "./assets/theme.css"
|
|
52
|
-
},
|
|
53
|
-
"./variables.css": {
|
|
54
|
-
"import": "./assets/variables.css"
|
|
42
|
+
"./default.css": {
|
|
43
|
+
"import": "./assets/default.css"
|
|
55
44
|
}
|
|
56
45
|
},
|
|
57
46
|
"dependencies": {
|
|
47
|
+
"@midas-ds/theme": "3.0.1-local.0",
|
|
58
48
|
"react-aria-components": "^1.12.1",
|
|
59
49
|
"react-stately": "^3.39.0"
|
|
60
50
|
}
|
package/popover/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-DIq3kp6B.cjs");exports.Popover=e.Popover;
|
package/popover/index.js
CHANGED
package/progress-bar/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-i7almbvK.cjs");exports.ProgressBar=r.ProgressBar;
|
package/progress-bar/index.js
CHANGED
package/radio/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-BpQoJB8e.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
|
package/radio/index.js
CHANGED
package/select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-1QuVY4f5.cjs");exports.Select=e.Select;
|
package/select/index.js
CHANGED
package/table/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-Dyqa6_rE.cjs");exports.Cell=e.Cell;exports.Column=e.Column;exports.Row=e.Row;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableHeader=e.TableHeader;
|
package/table/index.js
CHANGED
package/tabs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../TabList-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../TabList-3fErCDyP.cjs");exports.Tab=a.Tab;exports.TabList=a.TabList;exports.TabPanel=a.TabPanel;exports.Tabs=a.Tabs;
|
package/tabs/index.js
CHANGED
package/textfield/TextArea.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { TextFieldBaseProps } from './TextFieldBase';
|
|
2
2
|
import { TextAreaProps as AriaTextAreaProps } from 'react-aria-components';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
form?: string;
|
|
7
|
-
rows?: number;
|
|
8
|
-
wrap?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
4
|
+
export type TextAreaProps = Omit<TextFieldBaseProps, 'type' | 'pattern'> & AriaTextAreaProps;
|
|
5
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextFieldBaseProps, "type" | "pattern"> & AriaTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
package/textfield/TextField.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { TextFieldBaseProps } from './TextFieldBase';
|
|
2
2
|
import { InputProps } from './Input';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
form?: string;
|
|
7
|
-
list?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export type TextFieldProps = TextFieldBaseProps & InputProps;
|
|
5
|
+
export declare const TextField: React.ForwardRefExoticComponent<TextFieldBaseProps & InputProps & React.RefAttributes<HTMLInputElement>>;
|
package/textfield/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-B4BZUoJp.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
|
package/textfield/index.js
CHANGED
package/toast/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-Cs0CEbRr.cjs");exports.GlobalToastRegion=o.GlobalToastRegion;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.ToastRegion=o.ToastRegion;exports.toastQueue=o.toastQueue;exports.useToastState=o.useToastState;
|
package/toast/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i="480px",r="light-dark(#b90835, #b90835)";exports.brandPrimary=r;exports.windowSizesSm=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/AccordionItem.css');const u=require("react/jsx-runtime"),m=require("./clsx-C11secjj.cjs"),M=require("./icon-map-9XcghDra.cjs"),a=require("react"),D=require("./Button-CMIbSc4-.cjs"),g=require("./utils-CMHKYKlz.cjs"),x=require("./mergeProps-JhcJ7uJL.cjs"),E=require("./filterDOMProps-RRlKPKX0.cjs"),P=require("./useControlledState-D0L6S_5r.cjs"),K=require("react-dom"),j=require("./useEvent-3ZO5TPSH.cjs"),B=require("./SSRProvider-Bc-sMhsT.cjs"),w=require("./useFocusRing-BcbYske2.cjs"),T=require("./Button-D_tRdPW9.cjs"),F=require("./Heading-D3FR_KXb.cjs"),k=require("./chevron-down-5hFlg_lR.cjs"),O="_root_17bdp_1",W="_contained_17bdp_5",h={root:O,contained:W};function V(i,e,n){let{isDisabled:t}=i,d=x.$bdb11010cef70236$export$f680877a34711e37(),s=x.$bdb11010cef70236$export$f680877a34711e37(),l=!B.$b5e257d569688ac6$export$535bd6ca7f90a273()&&"onbeforematch"in document.body,o=a.useRef(null),f=a.useCallback(()=>{o.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),K.flushSync(()=>{e.toggle()})},[n,e]);return j.$e9faafb641e167db$export$90fc3a17d93f704c(n,"beforematch",l?f:null),x.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{o.current&&cancelAnimationFrame(o.current),l&&n.current&&!t&&(e.isExpanded?n.current.removeAttribute("hidden"):n.current.setAttribute("hidden","until-found"))},[t,n,e.isExpanded,l]),a.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current)},[]),{buttonProps:{id:d,"aria-expanded":e.isExpanded,"aria-controls":s,onPress:$=>{!t&&$.pointerType!=="keyboard"&&e.toggle()},isDisabled:t,onPressStart($){$.pointerType==="keyboard"&&!t&&e.toggle()}},panelProps:{id:s,role:"group","aria-labelledby":d,"aria-hidden":!e.isExpanded,hidden:l?!0:!e.isExpanded}}}function z(i){let[e,n]=P.$458b0a5536c1a7cf$export$40bfa8c7b0832715(i.isExpanded,i.defaultExpanded||!1,i.onExpandedChange);const t=a.useCallback(()=>{n(!0)},[n]),d=a.useCallback(()=>{n(!1)},[n]),s=a.useCallback(()=>{n(!e)},[n,e]);return{isExpanded:e,setExpanded:n,expand:t,collapse:d,toggle:s}}function G(i){let{allowsMultipleExpanded:e=!1,isDisabled:n=!1}=i,[t,d]=P.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.useMemo(()=>i.expandedKeys?new Set(i.expandedKeys):void 0,[i.expandedKeys]),a.useMemo(()=>i.defaultExpandedKeys?new Set(i.defaultExpandedKeys):new Set,[i.defaultExpandedKeys]),i.onExpandedChange);return a.useEffect(()=>{if(!e&&t.size>1){let s=t.values().next().value;s!=null&&d(new Set([s]))}}),{allowsMultipleExpanded:e,isDisabled:n,expandedKeys:t,setExpandedKeys:d,toggleKey(s){let c;e?(c=new Set(t),c.has(s)?c.delete(s):c.add(s)):c=new Set(t.has(s)?[]:[s]),d(c)}}}const I=a.createContext(null),H=a.forwardRef(function(e,n){let t=G(e),d=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-DisclosureGroup",values:{isDisabled:t.isDisabled,state:t}}),s=E.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return a.createElement("div",{...s,...d,ref:n,"data-disabled":e.isDisabled||void 0},a.createElement(I.Provider,{value:t},d.children))}),J=a.createContext(null),L=a.createContext(null),y=a.createContext(null),Q=a.forwardRef(function(e,n){[e,n]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,J);let t=a.useContext(I),{id:d,...s}=e,c=x.$bdb11010cef70236$export$f680877a34711e37();d||(d=c);let l=t?t.expandedKeys.has(d):e.isExpanded,o=z({...e,isExpanded:l,onExpandedChange(A){var _;t&&t.toggleKey(d),(_=e.onExpandedChange)===null||_===void 0||_.call(e,A)}}),f=a.useRef(null),$=e.isDisabled||(t==null?void 0:t.isDisabled)||!1,{buttonProps:b,panelProps:p}=V({...e,isExpanded:l,isDisabled:$},o,f),{isFocusVisible:v,focusProps:q}=w.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),C=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,defaultClassName:"react-aria-Disclosure",values:{isExpanded:o.isExpanded,isDisabled:$,isFocusVisibleWithin:v,state:o}}),N=E.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s,{global:!0});return a.createElement(g.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{[g.$64fa3d84918910a7$export$c62b8e45d58ddad9]:{},trigger:b}}],[y,{panelProps:p,panelRef:f}],[L,o]]},a.createElement("div",{...x.$3ef42575df84b30b$export$9d1611c77c2fe928(N,C,q),ref:n,"data-expanded":o.isExpanded||void 0,"data-disabled":$||void 0,"data-focus-visible-within":v||void 0},C.children))}),U=a.forwardRef(function(e,n){let{role:t="group"}=e,{panelProps:d,panelRef:s}=a.useContext(y),{isFocusVisible:c,focusProps:l}=w.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=g.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-DisclosurePanel",values:{isFocusVisibleWithin:c}}),f=E.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return a.createElement("div",{...x.$3ef42575df84b30b$export$9d1611c77c2fe928(f,o,d,l),ref:g.$5dc95899b306f630$export$c9058316764c140e(n,s),role:t,"data-focus-visible-within":c||void 0},a.createElement(g.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D.$d2b4bc8c273e7be6$export$24d547caef80ccd1,null]]},e.children))}),R=a.createContext(void 0),S="accordion",X=({variant:i,children:e,className:n,isContained:t,...d})=>{const s=t||i==="contained";return u.jsx(R.Provider,{value:{isContained:s},children:u.jsx(H,{"data-testid":S,className:m.clsx(h.root,s?h.contained:h.uncontained,n),...d,children:e})})},Y="_item_1gig9_1",Z="_contained_1gig9_17",ee="_success_1gig9_28",te="_warning_1gig9_35",ne="_info_1gig9_42",ae="_important_1gig9_49",de="_triggerButton_1gig9_61",se="_triggerText_1gig9_65",ie="_trigger_1gig9_61",oe="_triggerMainContent_1gig9_76",ce="_chevronIcon_1gig9_93",re="_statusIcon_1gig9_99",le="_panel_1gig9_113",ue="_content_1gig9_127",fe="_hasBackground_1gig9_133",$e="_header_1gig9_137",r={item:Y,contained:Z,success:ee,warning:te,info:ne,important:ae,triggerButton:de,triggerText:se,trigger:ie,triggerMainContent:oe,chevronIcon:ce,statusIcon:re,panel:le,content:ue,hasBackground:fe,header:$e},ge=({title:i,children:e,className:n,headingLevel:t="h2",type:d,hasBackground:s=!0,isContained:c,...l})=>{const o=a.useContext(R),f=c??(o==null?void 0:o.isContained)??!1,$=typeof i=="object";a.useEffect(()=>{d&&!f&&console.warn("AccordionItem: When 'type' is set, it is recommended to also set 'isContained' to true for visual consistency.")},[d,f]);const b=d?M.iconMap[d]:null,p=b?u.jsx(b,{size:20,className:r.statusIcon}):null;return u.jsxs(Q,{...l,className:m.clsx(r.item,d&&r[d],f&&r.contained,n),children:[u.jsx("div",{className:r.trigger,children:u.jsxs(T.Button,{className:r.triggerButton,slot:"trigger",variant:"icon",children:[u.jsx(k.ChevronDown,{size:20,className:r.chevronIcon}),u.jsx("div",{className:r.triggerMainContent,children:$?i:u.jsx(F.Heading,{level:3,elementType:t,className:r.triggerText,children:i})}),p]})}),u.jsx(U,{className:r.panel,children:u.jsx("div",{className:m.clsx(r.content,s&&r.hasBackground),children:e})})]})};exports.ACCORDION_TEST_ID=S;exports.Accordion=X;exports.AccordionItem=ge;
|