@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.
Files changed (66) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/accordion/Accordion.d.ts +0 -5
  3. package/accordion/index.js +1 -1
  4. package/assets/Spinner.css +1 -1
  5. package/button/index.js +1 -1
  6. package/calendar/index.js +1 -1
  7. package/checkbox/index.js +1 -1
  8. package/chunks/{AccordionItem-BDkCTxFM.js → AccordionItem-O3_wicV2.js} +40 -44
  9. package/chunks/{Button-DbQwg49l.js → Button-wBgWrXj3.js} +1 -1
  10. package/chunks/{CheckboxGroup-6UA5fwt5.js → CheckboxGroup-dofHjXkU.js} +1 -1
  11. package/chunks/{ComboBox-7VcYris7.js → ComboBox-XQqP_jga.js} +1 -1
  12. package/chunks/{DateField--2cGkaU8.js → DateField-ltU-Jvra.js} +1 -1
  13. package/chunks/{DateRangePicker-CrWRvDJw.js → DateRangePicker-CdoVIV-F.js} +2 -2
  14. package/chunks/{Dialog-BndmKdiv.js → Dialog-x-HLOQFU.js} +1 -1
  15. package/chunks/{InfoBanner-tXWNVxpu.js → InfoBanner-DLiVpNON.js} +1 -1
  16. package/chunks/{Label-BE4Aa-pL.js → Label-DqmNWnmm.js} +1 -1
  17. package/chunks/{Layout-DPRkHK4y.js → Layout-DtwVUZus.js} +2 -2
  18. package/chunks/{ListBoxLoadMoreItem-BKptRAtt.js → ListBoxLoadMoreItem-D9X8YnwD.js} +1 -1
  19. package/chunks/{ProgressBar-CEImvHGt.js → ProgressBar-DXBCKRe_.js} +1 -1
  20. package/chunks/{Radio-BYvbz297.js → Radio-C1AFopLt.js} +1 -1
  21. package/chunks/{RangeCalendar-CuXHsT-k.js → RangeCalendar-CGk2btOp.js} +1 -1
  22. package/chunks/{SearchField-CLrAjcdA.js → SearchField-BfpeANM6.js} +1 -1
  23. package/chunks/{Select-C9YP6yTv.js → Select-Bcu1yvbR.js} +2 -2
  24. package/chunks/{Select-eJLNw9M8.js → Select-DAlreRs2.js} +2 -2
  25. package/chunks/Spinner-BORNnHph.js +43 -0
  26. package/chunks/{Tag-CEfQksg8.js → Tag-DxBoeE_n.js} +1 -1
  27. package/chunks/{TextArea-BtxTcpto.js → TextArea-CEiOylOx.js} +2 -2
  28. package/chunks/Toast-DgQ6BTmK.js +153 -0
  29. package/chunks/Tooltip-uNMG_UU-.js +44 -0
  30. package/combobox/index.js +1 -1
  31. package/date-field/index.js +1 -1
  32. package/date-picker/index.js +1 -1
  33. package/index.d.ts +0 -1
  34. package/index.js +113 -115
  35. package/info-banner/index.js +1 -1
  36. package/label/index.js +1 -1
  37. package/layout/index.js +1 -1
  38. package/legacy-select/index.js +1 -1
  39. package/list-box/ListBoxHeader.d.ts +1 -1
  40. package/list-box/index.js +1 -1
  41. package/modal/Dialog.d.ts +0 -11
  42. package/modal/index.d.ts +1 -1
  43. package/modal/index.js +1 -1
  44. package/package.json +2 -2
  45. package/progress-bar/index.js +1 -1
  46. package/radio/index.js +1 -1
  47. package/search-field/SearchField.d.ts +1 -1
  48. package/search-field/index.js +1 -1
  49. package/select/index.js +1 -1
  50. package/spinner/Spinner.d.ts +0 -6
  51. package/spinner/index.js +1 -1
  52. package/tag/index.js +1 -1
  53. package/text/Text.d.ts +2 -2
  54. package/textfield/index.js +1 -1
  55. package/toast/Toast.d.ts +2 -6
  56. package/toast/index.js +5 -4
  57. package/tooltip/Tooltip.d.ts +6 -5
  58. package/tooltip/index.js +1 -1
  59. package/assets/Dropdown.css +0 -1
  60. package/chunks/Dropdown-CWP2clB2.js +0 -79
  61. package/chunks/Spinner-CL9evrHm.js +0 -49
  62. package/chunks/Toast-CCA9sCnB.js +0 -162
  63. package/chunks/Tooltip-CtstfI8u.js +0 -46
  64. package/dropdown/Dropdown.d.ts +0 -31
  65. package/dropdown/index.d.ts +0 -1
  66. 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
@@ -1,4 +1,4 @@
1
- import { C as a, a as b, b as x } from "../chunks/ComboBox-7VcYris7.js";
1
+ import { C as a, a as b, b as x } from "../chunks/ComboBox-XQqP_jga.js";
2
2
  export {
3
3
  a as ComboBox,
4
4
  b as ComboBoxItem,
@@ -1,4 +1,4 @@
1
- import { D as t } from "../chunks/DateField--2cGkaU8.js";
1
+ import { D as t } from "../chunks/DateField-ltU-Jvra.js";
2
2
  import { a as r, b as o, D as p } from "../chunks/DateInputDivider-CkTB5q5k.js";
3
3
  export {
4
4
  t as DateField,
@@ -1,4 +1,4 @@
1
- import { D as r, a as t } from "../chunks/DateRangePicker-CrWRvDJw.js";
1
+ import { D as r, a as t } from "../chunks/DateRangePicker-CdoVIV-F.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as DateRangePicker
package/index.d.ts CHANGED
@@ -11,7 +11,6 @@ export * from './combobox';
11
11
  export * from './common/types';
12
12
  export * from './date-field';
13
13
  export * from './date-picker';
14
- export * from './dropdown';
15
14
  export * from './field-error';
16
15
  export * from './file-upload';
17
16
  export * from './grid';
package/index.js CHANGED
@@ -1,52 +1,52 @@
1
- import { a as r, A as e } from "./chunks/AccordionItem-BDkCTxFM.js";
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-DbQwg49l.js";
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-CuXHsT-k.js";
7
- import { C as b, d as g, c as B, a as c, e as L, f as S, b as D } from "./chunks/Card-ia98VoKL.js";
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-6UA5fwt5.js";
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 w } from "./chunks/ComboBox-7VcYris7.js";
13
- import { D as N } from "./chunks/DateField--2cGkaU8.js";
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-CrWRvDJw.js";
16
- import { D as O, a as U } from "./chunks/Dropdown-CWP2clB2.js";
17
- import { F as W } from "./chunks/FieldError-C0HRIcAx.js";
18
- import { D as Y, F as _ } from "./chunks/FileUpload-h1PxqQmb.js";
19
- import { G as oo } from "./chunks/Grid-B-WgMwON.js";
20
- import { G as ro } from "./chunks/GridItem-5t1Z14sM.js";
21
- import { H as to } from "./chunks/Heading-D8tNNJkt.js";
22
- import { I as po } from "./chunks/InfoBanner-tXWNVxpu.js";
23
- import { L as mo } from "./chunks/Label-BE4Aa-pL.js";
24
- import { H as io, L as no, N as To, S as lo, a as Co } from "./chunks/Layout-DPRkHK4y.js";
25
- import { L as bo } from "./chunks/Link-yTNUNv3C.js";
26
- import { L as Bo } from "./chunks/LinkButton-3nAekUJ4.js";
27
- import { L as Lo } from "./chunks/Logo-InDSslpO.js";
28
- import { M as Do } from "./chunks/Dialog-BndmKdiv.js";
29
- import { P as Go } from "./chunks/Popover-D9tAN-g7.js";
30
- import { P as Ro } from "./chunks/ProgressBar-CEImvHGt.js";
31
- import { R as Mo, a as Fo } from "./chunks/Radio-BYvbz297.js";
32
- import { S as Ao } from "./chunks/SearchField-CLrAjcdA.js";
33
- import { S as Ho } from "./chunks/Select-C9YP6yTv.js";
34
- import { S as yo } from "./chunks/Select-eJLNw9M8.js";
35
- import { S as Eo } from "./chunks/Skeleton-DqIHQLQl.js";
36
- import { S as Zo } from "./chunks/Spinner-CL9evrHm.js";
37
- import { b as qo, C as zo, R as Jo, T as Ko, c as Oo, a as Uo } from "./chunks/Table-B1rlSIhS.js";
38
- import { a as Wo, c as Xo, b as Yo, T as _o } from "./chunks/TabList-D2XV5ixe.js";
39
- import { T as oa, a as aa } from "./chunks/Tag-CEfQksg8.js";
40
- import { T as ea } from "./chunks/Text-TWzJxnto.js";
41
- import { I as sa, b as pa, a as xa, T as ma } from "./chunks/TextArea-BtxTcpto.js";
42
- import { G as ia, b as na, T as da, a as Ta, t as la, u as Ca } from "./chunks/Toast-CCA9sCnB.js";
43
- import { T as ba, a as ga } from "./chunks/ToggleButtonGroup-CXKTrLbb.js";
44
- import { T as ca, a as La } from "./chunks/Tooltip-CtstfI8u.js";
45
- import { L as Da } from "./chunks/ListBox-D4tO_OrO.js";
46
- import { L as Ga, a as Pa } from "./chunks/ListBoxLoadMoreItem-BKptRAtt.js";
47
- import { c as ka, L as Ma, a as Fa, b as va } from "./chunks/ListBoxSection-DKHba2X0.js";
48
- import { M as ha, a as Ha, b as wa, c as ya, S as Na } from "./chunks/Separator-BcnQEA9f.js";
49
- import { DialogTrigger as Qa, MenuTrigger as Za, RouterProvider as ja } from "react-aria-components";
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
- b as Card,
60
- g as CardActionArea,
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
- qo as Cell,
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
- zo as Column,
71
+ Zo as Column,
72
72
  h as ComboBox,
73
73
  H as ComboBoxItem,
74
- w as ComboBoxSection,
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
- Qa as DialogTrigger,
82
- Y as DropZone,
83
- O as Dropdown,
84
- U as DropdownItem,
85
- W as FieldError,
86
- _ as FileTrigger,
87
- ia as GlobalToastRegion,
88
- oo as Grid,
89
- ro as GridItem,
90
- io as Header,
91
- to as Heading,
92
- po as InfoBanner,
93
- sa as Input,
94
- mo as Label,
95
- no as Layout,
96
- yo as LegacySelect,
97
- bo as Link,
98
- Bo as LinkButton,
99
- Da as ListBox,
100
- Ga as ListBoxButton,
101
- ka as ListBoxHeader,
102
- Ma as ListBoxItem,
103
- Pa as ListBoxLoadMoreItem,
104
- Fa as ListBoxPopover,
105
- va as ListBoxSection,
106
- Lo as Logo,
107
- ha as Menu,
108
- Ha as MenuItem,
109
- wa as MenuPopover,
110
- ya as MenuSection,
111
- Za as MenuTrigger,
112
- Do as Modal,
113
- To as Navbar,
114
- Go as Popover,
115
- Ro as ProgressBar,
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
- ja as RouterProvider,
120
- Jo as Row,
121
- Ao as SearchField,
122
- Ho as Select,
123
- Na as Separator,
124
- lo as Sidebar,
125
- Co as SidebarLink,
126
- Eo as Skeleton,
127
- Zo as Spinner,
128
- Wo as Tab,
129
- Xo as TabList,
130
- Yo as TabPanel,
131
- Ko as Table,
132
- Oo as TableBody,
133
- Uo as TableHeader,
134
- _o as Tabs,
135
- oa as Tag,
136
- aa as TagGroup,
137
- ea as Text,
138
- pa as TextArea,
139
- xa as TextField,
140
- ma as TextFieldBase,
141
- na as Toast,
142
- da as ToastProvider,
143
- Ta as ToastRegion,
144
- ba as ToggleButton,
145
- ga as ToggleButtonGroup,
146
- ca as Tooltip,
147
- La as TooltipTrigger,
148
- la as toastQueue,
149
- Ca as useToastState
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
  };
@@ -1,4 +1,4 @@
1
- import { I as r } from "../chunks/InfoBanner-tXWNVxpu.js";
1
+ import { I as r } from "../chunks/InfoBanner-DLiVpNON.js";
2
2
  export {
3
3
  r as InfoBanner
4
4
  };
package/label/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as o } from "../chunks/Label-BE4Aa-pL.js";
1
+ import { L as o } from "../chunks/Label-DqmNWnmm.js";
2
2
  export {
3
3
  o as Label
4
4
  };
package/layout/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H as e, L as s, N as b, S as d, a as i } from "../chunks/Layout-DPRkHK4y.js";
1
+ import { H as e, L as s, N as b, S as d, a as i } from "../chunks/Layout-DtwVUZus.js";
2
2
  export {
3
3
  e as Header,
4
4
  s as Layout,
@@ -1,4 +1,4 @@
1
- import { S as c } from "../chunks/Select-eJLNw9M8.js";
1
+ import { S as c } from "../chunks/Select-DAlreRs2.js";
2
2
  export {
3
3
  c as LegacySelect
4
4
  };
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- export type ListBoxHeaderProps = React.HTMLAttributes<HTMLElement> & React.RefAttributes<object>;
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-BKptRAtt.js";
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 DialogProps, type ModalProps, } from './Dialog';
1
+ export { Modal, DialogTrigger, type ModalProps } from './Dialog';
package/modal/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as a } from "../chunks/Dialog-BndmKdiv.js";
1
+ import { M as a } from "../chunks/Dialog-x-HLOQFU.js";
2
2
  import { DialogTrigger as g } from "react-aria-components";
3
3
  export {
4
4
  g as DialogTrigger,
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": "15.5.2",
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.13.0"
45
+ "react-aria-components": "1.14.0"
46
46
  }
47
47
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../chunks/ProgressBar-CEImvHGt.js";
1
+ import { P as s } from "../chunks/ProgressBar-DXBCKRe_.js";
2
2
  export {
3
3
  s as ProgressBar
4
4
  };
package/radio/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as r, a as R } from "../chunks/Radio-BYvbz297.js";
1
+ import { R as r, a as R } from "../chunks/Radio-C1AFopLt.js";
2
2
  export {
3
3
  r as Radio,
4
4
  R as RadioGroup
@@ -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 Omit<AriaSearchFieldProps, 'isRequired'> {
4
+ export interface SearchFieldProps extends AriaSearchFieldProps {
5
5
  /** Placeholder text */
6
6
  placeholder: string;
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { S as a } from "../chunks/SearchField-CLrAjcdA.js";
1
+ import { S as a } from "../chunks/SearchField-BfpeANM6.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
package/select/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "../chunks/Select-C9YP6yTv.js";
1
+ import { S as r } from "../chunks/Select-Bcu1yvbR.js";
2
2
  export {
3
3
  r as Select
4
4
  };
@@ -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
@@ -1,4 +1,4 @@
1
- import { S as n } from "../chunks/Spinner-CL9evrHm.js";
1
+ import { S as n } from "../chunks/Spinner-BORNnHph.js";
2
2
  export {
3
3
  n as Spinner
4
4
  };
package/tag/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r, a as T } from "../chunks/Tag-CEfQksg8.js";
1
+ import { T as r, a as T } from "../chunks/Tag-DxBoeE_n.js";
2
2
  export {
3
3
  r as Tag,
4
4
  T as TagGroup
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
  /**
@@ -1,4 +1,4 @@
1
- import { I as s, b as t, a as x, T } from "../chunks/TextArea-BtxTcpto.js";
1
+ import { I as s, b as t, a as x, T } from "../chunks/TextArea-CEiOylOx.js";
2
2
  export {
3
3
  s as Input,
4
4
  t as TextArea,
package/toast/Toast.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AriaToastProps, AriaToastRegionProps } from 'react-aria';
2
- import { QueuedToast, ToastQueue, ToastState, ToastStateProps } from 'react-stately';
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 o, b as t, T as e, a as T, t as r, u } from "../chunks/Toast-CCA9sCnB.js";
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
- o as GlobalToastRegion,
4
+ s as GlobalToastRegion,
4
5
  t as Toast,
5
6
  e as ToastProvider,
6
- T as ToastRegion,
7
- r as toastQueue,
7
+ r as ToastRegion,
8
+ T as toastQueue,
8
9
  u as useToastState
9
10
  };
@@ -1,7 +1,8 @@
1
1
  import { TooltipProps, TooltipTriggerComponentProps } from 'react-aria-components';
2
- import * as React from 'react';
3
- export interface MidasTooltipProps extends Omit<TooltipProps, 'children'> {
4
- children: React.ReactNode;
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({ children, delay, ...props }: TooltipTriggerComponentProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function TooltipTrigger({ delay, ...props }: TooltipTriggerComponentProps): import("react/jsx-runtime").JSX.Element;
package/tooltip/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T, a } from "../chunks/Tooltip-CtstfI8u.js";
1
+ import { T, a } from "../chunks/Tooltip-uNMG_UU-.js";
2
2
  export {
3
3
  T as Tooltip,
4
4
  a as TooltipTrigger
@@ -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)}}