@midas-ds/components 11.0.0 → 11.1.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 (92) hide show
  1. package/{AccordionItem-BtDoammf.js → AccordionItem-BPOQqTkQ.js} +14 -13
  2. package/AccordionItem-CS-QKqrU.cjs +1 -0
  3. package/CHANGELOG.md +11 -0
  4. package/{CheckboxGroup-DhQX10rP.cjs → CheckboxGroup-CT_eqERw.cjs} +1 -1
  5. package/{CheckboxGroup-CC9QGMuE.js → CheckboxGroup-oosHSGAt.js} +1 -1
  6. package/{ComboBox-CiCB2e4W.cjs → ComboBox-CQ49PhNd.cjs} +1 -1
  7. package/{ComboBox-Dnk8JMQ6.js → ComboBox-D4MsSPBu.js} +1 -1
  8. package/{DateField-DleDM0Sy.cjs → DateField-BURrxhil.cjs} +1 -1
  9. package/{DateField-BAS2v9aI.js → DateField-COs1-CkQ.js} +1 -1
  10. package/{DateRangePicker-CYXWnCTq.cjs → DateRangePicker-Bfibl08v.cjs} +1 -1
  11. package/{DateRangePicker-Blej-jD0.js → DateRangePicker-CvEycxmX.js} +1 -1
  12. package/{Label-VO6CAFux.cjs → Label-ChjDdBlv.cjs} +1 -1
  13. package/{Label-JLgFEbP9.js → Label-DA6FZwy0.js} +1 -1
  14. package/Popover-BDvKByTT.cjs +1 -0
  15. package/{Popover-DypW9ift.js → Popover-DHoXfBp2.js} +12 -12
  16. package/{ProgressBar-CFgcqHTR.js → ProgressBar-C0IBfi5I.js} +1 -1
  17. package/{ProgressBar-CJFNiudl.cjs → ProgressBar-ClysdvqU.cjs} +1 -1
  18. package/{Radio-DUBSD0kQ.js → Radio-B6N9dCtB.js} +1 -1
  19. package/{Radio-CMH6pTWD.cjs → Radio-Cz0vLIBw.cjs} +1 -1
  20. package/{Select-DKME5lZp.js → Select-DMVj2lrG.js} +1 -1
  21. package/{Select-C5i-rIDh.cjs → Select-DiCEyap1.cjs} +1 -1
  22. package/{TextArea-CY_tzBAJ.cjs → TextArea-DJKHFKuI.cjs} +1 -1
  23. package/{TextArea-BhmdgD1w.js → TextArea-eK7Jx3qs.js} +1 -1
  24. package/accordion/Accordion.d.ts +1 -2
  25. package/accordion/index.cjs +1 -1
  26. package/accordion/index.d.ts +2 -1
  27. package/accordion/index.js +3 -2
  28. package/assets/Popover.css +1 -1
  29. package/breadcrumbs/index.d.ts +1 -0
  30. package/button/Button.d.ts +1 -2
  31. package/button/index.d.ts +1 -1
  32. package/checkbox/index.cjs +1 -1
  33. package/checkbox/index.js +1 -1
  34. package/color-scheme-switch/index.d.ts +1 -0
  35. package/combobox/ComboBox.d.ts +1 -1
  36. package/combobox/index.cjs +1 -1
  37. package/combobox/index.js +1 -1
  38. package/date-field/index.cjs +1 -1
  39. package/date-field/index.d.ts +1 -0
  40. package/date-field/index.js +1 -1
  41. package/date-picker/index.cjs +1 -1
  42. package/date-picker/index.js +1 -1
  43. package/dropdown/Dropdown.d.ts +1 -2
  44. package/dropdown/index.d.ts +1 -1
  45. package/field-error/index.d.ts +1 -0
  46. package/grid/index.d.ts +1 -1
  47. package/heading/index.d.ts +1 -0
  48. package/index.cjs +1 -1
  49. package/index.d.ts +1 -1
  50. package/index.js +108 -107
  51. package/info-banner/index.d.ts +1 -1
  52. package/label/index.cjs +1 -1
  53. package/label/index.js +1 -1
  54. package/layout/index.d.ts +1 -0
  55. package/link/Link.d.ts +2 -2
  56. package/link/index.d.ts +1 -1
  57. package/link-button/LinkButton.d.ts +2 -2
  58. package/link-button/index.d.ts +1 -0
  59. package/modal/Dialog.d.ts +1 -1
  60. package/modal/index.d.ts +1 -1
  61. package/package.json +1 -1
  62. package/popover/Popover.d.ts +1 -2
  63. package/popover/index.cjs +1 -1
  64. package/popover/index.d.ts +1 -0
  65. package/popover/index.js +1 -1
  66. package/progress-bar/ProgressBar.d.ts +1 -2
  67. package/progress-bar/index.cjs +1 -1
  68. package/progress-bar/index.d.ts +1 -0
  69. package/progress-bar/index.js +1 -1
  70. package/radio/Radio.d.ts +1 -2
  71. package/radio/index.cjs +1 -1
  72. package/radio/index.d.ts +1 -1
  73. package/radio/index.js +1 -1
  74. package/search-field/index.d.ts +1 -1
  75. package/select/Select.d.ts +1 -1
  76. package/select/index.cjs +1 -1
  77. package/select/index.js +1 -1
  78. package/skeleton/index.d.ts +1 -1
  79. package/spinner/index.d.ts +1 -1
  80. package/table/index.d.ts +1 -0
  81. package/tabs/index.d.ts +1 -0
  82. package/tag/index.d.ts +1 -1
  83. package/text/index.d.ts +1 -0
  84. package/textfield/index.cjs +1 -1
  85. package/textfield/index.d.ts +3 -0
  86. package/textfield/index.js +1 -1
  87. package/toast/Toast.d.ts +2 -3
  88. package/toast/index.d.ts +1 -0
  89. package/tooltip/Tooltip.d.ts +1 -2
  90. package/tooltip/index.d.ts +1 -0
  91. package/AccordionItem-D2QYNgZS.cjs +0 -1
  92. package/Popover--r4Zr4mO.cjs +0 -1
package/index.js CHANGED
@@ -1,135 +1,136 @@
1
- import { A as r, a as e } from "./AccordionItem-BtDoammf.js";
2
- import { B as t, a as p } from "./BadgeContainer-CKBIZWsc.js";
3
- import { B as x } from "./Breadcrumbs-BBzSV4SK.js";
4
- import { B as i } from "./Button-BjMaGya2.js";
5
- import { B as d } from "./ButtonGroup-DvVvear6.js";
6
- import { C as l, R as C } from "./RangeCalendar-BCruEq9d.js";
7
- import { C as g, d as u, c, a as B, e as S, f as D, b as L } from "./Card-BRs1FKX5.js";
8
- import { C as I } from "./CharacterCounter-DpBDwvLw.js";
9
- import { C as R } from "./Checkbox-EB_SCBEo.js";
10
- import { C as P } from "./CheckboxGroup-CC9QGMuE.js";
11
- import { C as h } from "./ColorSchemeSwitch-Cnyb9EKC.js";
12
- import { C as H, a as w, c as $, b as y } from "./ComboBox-Dnk8JMQ6.js";
13
- import { D as N } from "./DateField-BAS2v9aI.js";
14
- import { a as Q, b as Z, D as j } from "./DateInputDivider-B3oE1_tB.js";
15
- import { D as z, a as J } from "./DateRangePicker-Blej-jD0.js";
16
- import { D as O, a as U } from "./Dropdown-D6WCi_Ll.js";
1
+ import { a as r, b as e, A as s } from "./AccordionItem-BPOQqTkQ.js";
2
+ import { B as p, a as m } from "./BadgeContainer-CKBIZWsc.js";
3
+ import { B as f } from "./Breadcrumbs-BBzSV4SK.js";
4
+ import { B as n } from "./Button-BjMaGya2.js";
5
+ import { B as T } from "./ButtonGroup-DvVvear6.js";
6
+ import { C as l, R as b } from "./RangeCalendar-BCruEq9d.js";
7
+ import { C as u, d as c, c as B, a as D, e as S, f as I, b as L } from "./Card-BRs1FKX5.js";
8
+ import { C as R } from "./CharacterCounter-DpBDwvLw.js";
9
+ import { C as k } from "./Checkbox-EB_SCBEo.js";
10
+ import { C as A } from "./CheckboxGroup-oosHSGAt.js";
11
+ import { C as v } from "./ColorSchemeSwitch-Cnyb9EKC.js";
12
+ import { C as w, a as N, c as $, b as y } from "./ComboBox-D4MsSPBu.js";
13
+ import { D as M } from "./DateField-COs1-CkQ.js";
14
+ import { a as _, b as Q, D as Z } from "./DateInputDivider-B3oE1_tB.js";
15
+ import { D as q, a as z } from "./DateRangePicker-CvEycxmX.js";
16
+ import { D as K, a as U } from "./Dropdown-D6WCi_Ll.js";
17
17
  import { F as W } from "./FieldError-CDCvUjK5.js";
18
- import { D as Y, F as _ } from "./FileUpload-BokzdXVc.js";
19
- import { F as oa, G as ra } from "./Grid--OhtgCo6.js";
20
- import { F as sa, G as ta } from "./GridItem-DlbSdRmB.js";
21
- import { H as ma } from "./Heading-D2y_kiC0.js";
22
- import { I as fa } from "./InfoBanner-D05poAe3.js";
23
- import { L as na } from "./Label-JLgFEbP9.js";
24
- import { H as Ta, L as la, N as Ca, S as ba, a as ga } from "./Layout-CcADAhds.js";
25
- import { L as ca } from "./Link-ovwNVMfg.js";
18
+ import { D as Y, F as aa } from "./FileUpload-BokzdXVc.js";
19
+ import { F as ra, G as ea } from "./Grid--OhtgCo6.js";
20
+ import { F as ta, G as pa } from "./GridItem-DlbSdRmB.js";
21
+ import { H as xa } from "./Heading-D2y_kiC0.js";
22
+ import { I as ia } from "./InfoBanner-D05poAe3.js";
23
+ import { L as da } from "./Label-DA6FZwy0.js";
24
+ import { H as Ca, L as la, N as ba, S as ga, a as ua } from "./Layout-CcADAhds.js";
25
+ import { L as Ba } from "./Link-ovwNVMfg.js";
26
26
  import { L as Sa } from "./LinkButton-BkZULm2a.js";
27
27
  import { L as La } from "./Logo-ME4ffCue.js";
28
- import { M as Ia } from "./Dialog-BkUw6PlA.js";
29
- import { P as Ra } from "./Popover-DypW9ift.js";
30
- import { P as Pa } from "./ProgressBar-CFgcqHTR.js";
31
- import { R as ha, a as va } from "./Radio-DUBSD0kQ.js";
32
- import { S as wa } from "./SearchField-nwlyszwt.js";
33
- import { S as ya } from "./Select-DKME5lZp.js";
34
- import { S as Na } from "./Skeleton-BePDRmrO.js";
35
- import { S as Qa } from "./Spinner-VSyPhiJ9.js";
36
- import { b as ja, C as qa, R as za, T as Ja, $ as Ka, a as Oa } from "./Table-B5Aine4F.js";
28
+ import { M as Ra } from "./Dialog-BkUw6PlA.js";
29
+ import { P as ka } from "./Popover-DHoXfBp2.js";
30
+ import { P as Aa } from "./ProgressBar-C0IBfi5I.js";
31
+ import { R as va, a as Ha } from "./Radio-B6N9dCtB.js";
32
+ import { S as Na } from "./SearchField-nwlyszwt.js";
33
+ import { S as ya } from "./Select-DMVj2lrG.js";
34
+ import { S as Ma } from "./Skeleton-BePDRmrO.js";
35
+ import { S as _a } from "./Spinner-VSyPhiJ9.js";
36
+ import { b as Za, C as ja, R as qa, T as za, $ as Ja, a as Ka } from "./Table-B5Aine4F.js";
37
37
  import { a as Va, c as Wa, b as Xa, T as Ya } from "./TabList-QApx8qRC.js";
38
- import { T as ao, a as oo } from "./Tag-Byva_Xuy.js";
39
- import { T as eo } from "./Text-BPcfhYQ9.js";
40
- import { I as to, b as po, a as mo, T as xo } from "./TextArea-BhmdgD1w.js";
41
- import { G as io, b as no, T as To, a as lo, t as Co, u as bo } from "./Toast-CWt_mNIg.js";
42
- import { T as uo, a as co } from "./ToggleButtonGroup-HjvaTYD4.js";
43
- import { T as So, a as Do } from "./Tooltip-DjNc93tV.js";
38
+ import { T as oo, a as ro } from "./Tag-Byva_Xuy.js";
39
+ import { T as so } from "./Text-BPcfhYQ9.js";
40
+ import { I as po, b as mo, a as xo, T as fo } from "./TextArea-eK7Jx3qs.js";
41
+ import { G as no, b as To, T as Co, a as lo, t as bo, u as go } from "./Toast-CWt_mNIg.js";
42
+ import { T as co, a as Bo } from "./ToggleButtonGroup-HjvaTYD4.js";
43
+ import { T as So, a as Io } from "./Tooltip-DjNc93tV.js";
44
44
  import { $ as Fo } from "./usePress-BW47IcyU.js";
45
45
  import { $ as Go } from "./Dialog-DKHo0W9B.js";
46
46
  export {
47
- r as Accordion,
48
- e as AccordionItem,
49
- t as Badge,
50
- p as BadgeContainer,
51
- x as Breadcrumbs,
52
- i as Button,
53
- d as ButtonGroup,
47
+ r as ACCORDION_TEST_ID,
48
+ e as Accordion,
49
+ s as AccordionItem,
50
+ p as Badge,
51
+ m as BadgeContainer,
52
+ f as Breadcrumbs,
53
+ n as Button,
54
+ T as ButtonGroup,
54
55
  l as Calendar,
55
- g as Card,
56
- u as CardActionArea,
57
- c as CardActions,
58
- B as CardContent,
56
+ u as Card,
57
+ c as CardActionArea,
58
+ B as CardActions,
59
+ D as CardContent,
59
60
  S as CardImage,
60
- D as CardLink,
61
+ I as CardLink,
61
62
  L as CardTitle,
62
- ja as Cell,
63
- I as CharacterCounter,
64
- R as Checkbox,
65
- P as CheckboxGroup,
66
- h as ColorSchemeSwitch,
67
- qa as Column,
68
- H as ComboBox,
69
- w as ComboBoxItem,
63
+ Za as Cell,
64
+ R as CharacterCounter,
65
+ k as Checkbox,
66
+ A as CheckboxGroup,
67
+ v as ColorSchemeSwitch,
68
+ ja as Column,
69
+ w as ComboBox,
70
+ N as ComboBoxItem,
70
71
  $ as ComboBoxSection,
71
72
  y as ComboBoxSelection,
72
- N as DateField,
73
- Q as DateInput,
74
- Z as DateInputDivider,
75
- z as DatePicker,
76
- J as DateRangePicker,
77
- j as DateSegment,
73
+ M as DateField,
74
+ _ as DateInput,
75
+ Q as DateInputDivider,
76
+ q as DatePicker,
77
+ z as DateRangePicker,
78
+ Z as DateSegment,
78
79
  Go as DialogTrigger,
79
80
  Y as DropZone,
80
- O as Dropdown,
81
+ K as Dropdown,
81
82
  U as DropdownItem,
82
83
  W as FieldError,
83
- _ as FileTrigger,
84
- oa as Flex,
85
- sa as FlexItem,
86
- io as GlobalToastRegion,
87
- ra as Grid,
88
- ta as GridItem,
89
- Ta as Header,
90
- ma as Heading,
91
- fa as InfoBanner,
92
- to as Input,
93
- na as Label,
84
+ aa as FileTrigger,
85
+ ra as Flex,
86
+ ta as FlexItem,
87
+ no as GlobalToastRegion,
88
+ ea as Grid,
89
+ pa as GridItem,
90
+ Ca as Header,
91
+ xa as Heading,
92
+ ia as InfoBanner,
93
+ po as Input,
94
+ da as Label,
94
95
  la as Layout,
95
- ca as Link,
96
+ Ba as Link,
96
97
  Sa as LinkButton,
97
98
  La as Logo,
98
- Ia as Modal,
99
- Ca as Navbar,
100
- Ra as Popover,
101
- Pa as ProgressBar,
102
- ha as Radio,
103
- va as RadioGroup,
104
- C as RangeCalendar,
99
+ Ra as Modal,
100
+ ba as Navbar,
101
+ ka as Popover,
102
+ Aa as ProgressBar,
103
+ va as Radio,
104
+ Ha as RadioGroup,
105
+ b as RangeCalendar,
105
106
  Fo as RouterProvider,
106
- za as Row,
107
- wa as SearchField,
107
+ qa as Row,
108
+ Na as SearchField,
108
109
  ya as Select,
109
- ba as Sidebar,
110
- ga as SidebarLink,
111
- Na as Skeleton,
112
- Qa as Spinner,
110
+ ga as Sidebar,
111
+ ua as SidebarLink,
112
+ Ma as Skeleton,
113
+ _a as Spinner,
113
114
  Va as Tab,
114
115
  Wa as TabList,
115
116
  Xa as TabPanel,
116
- Ja as Table,
117
- Ka as TableBody,
118
- Oa as TableHeader,
117
+ za as Table,
118
+ Ja as TableBody,
119
+ Ka as TableHeader,
119
120
  Ya as Tabs,
120
- ao as Tag,
121
- oo as TagGroup,
122
- eo as Text,
123
- po as TextArea,
124
- mo as TextField,
125
- xo as TextFieldBase,
126
- no as Toast,
127
- To as ToastProvider,
121
+ oo as Tag,
122
+ ro as TagGroup,
123
+ so as Text,
124
+ mo as TextArea,
125
+ xo as TextField,
126
+ fo as TextFieldBase,
127
+ To as Toast,
128
+ Co as ToastProvider,
128
129
  lo as ToastRegion,
129
- uo as ToggleButton,
130
- co as ToggleButtonGroup,
130
+ co as ToggleButton,
131
+ Bo as ToggleButtonGroup,
131
132
  So as Tooltip,
132
- Do as TooltipTrigger,
133
- Co as toastQueue,
134
- bo as useToastState
133
+ Io as TooltipTrigger,
134
+ bo as toastQueue,
135
+ go as useToastState
135
136
  };
@@ -1 +1 @@
1
- export { InfoBanner } from './InfoBanner';
1
+ export { InfoBanner, type InfoBannerProps } from './InfoBanner';
package/label/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Label-VO6CAFux.cjs");exports.Label=e.Label;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Label-ChjDdBlv.cjs");exports.Label=e.Label;
package/label/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as o } from "../Label-JLgFEbP9.js";
1
+ import { L as o } from "../Label-DA6FZwy0.js";
2
2
  export {
3
3
  o as Label
4
4
  };
package/layout/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './components/Header';
3
3
  export * from './components/Sidebar';
4
4
  export * from './components/SidebarLink';
5
5
  export * from './components/Navbar';
6
+ export type { SidebarLinkGroup, SidebarLinkProps, SidebarUser, App, MidasLayout } from './Layout';
package/link/Link.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Link as AriaLink, RouterProvider } from 'react-aria-components';
2
2
  import { LucideIcon } from 'lucide-react';
3
- interface MidasLinkProps<C extends React.ElementType> {
3
+ export interface LinkComponentProps<C extends React.ElementType> {
4
4
  children: React.ReactNode;
5
5
  /** Use standalone to use the component as a standalone link, for example under a block of text.*/
6
6
  standalone?: boolean;
@@ -14,6 +14,6 @@ interface MidasLinkProps<C extends React.ElementType> {
14
14
  */
15
15
  as?: C;
16
16
  }
17
- export type LinkProps<C extends React.ElementType> = MidasLinkProps<C> & Omit<React.ComponentProps<C>, keyof MidasLinkProps<C>>;
17
+ export type LinkProps<C extends React.ElementType> = LinkComponentProps<C> & Omit<React.ComponentProps<C>, keyof LinkComponentProps<C>>;
18
18
  export declare const Link: <C extends React.ElementType = typeof AriaLink>({ children, standalone, target, stretched, download, icon: IconComponent, className, as, ...rest }: LinkProps<C>) => import("react/jsx-runtime").JSX.Element;
19
19
  export { RouterProvider };
package/link/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { Link, RouterProvider, type LinkProps } from './Link';
1
+ export { Link, RouterProvider, type LinkProps, type LinkComponentProps } from './Link';
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { Link as AriaLink, RouterProvider } from 'react-aria-components';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  import { Size } from '../common/types';
5
- interface MidasLinkProps<C extends React.ElementType> {
5
+ export interface LinkButtonComponentProps<C extends React.ElementType> {
6
6
  children: React.ReactNode;
7
7
  /**
8
8
  * Primary button is used as a positive action in a flow. Always use one primary button and never a seconday button on it's own. When using just an icon you must pass an aria-label
@@ -33,7 +33,7 @@ interface MidasLinkProps<C extends React.ElementType> {
33
33
  **/
34
34
  size?: Size;
35
35
  }
36
- export type LinkButtonProps<C extends React.ElementType> = MidasLinkProps<C> & Omit<React.ComponentProps<C>, keyof MidasLinkProps<C>>;
36
+ export type LinkButtonProps<C extends React.ElementType> = LinkButtonComponentProps<C> & Omit<React.ComponentProps<C>, keyof LinkButtonComponentProps<C>>;
37
37
  /**
38
38
  * A link to be used when a user expects a button but web technologies force us to use a a-tag
39
39
  * */
@@ -1 +1,2 @@
1
1
  export * from './LinkButton';
2
+ export type { LinkButtonComponentProps } from './LinkButton';
package/modal/Dialog.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AriaDialogProps } from 'react-aria';
2
2
  import { DialogTrigger } from 'react-aria-components';
3
3
  import { AriaModalOverlayProps } from '@react-aria/overlays';
4
4
  import * as React from 'react';
5
- interface DialogProps extends AriaDialogProps {
5
+ export interface DialogProps extends AriaDialogProps {
6
6
  /**
7
7
  * An optional title for the dialog. If omitted, please provide an aria-label for accessibility.
8
8
  */
package/modal/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { Modal, DialogTrigger } from './Dialog';
1
+ export { Modal, DialogTrigger, type DialogProps } from './Dialog';
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": "11.0.0",
17
+ "version": "11.1.0",
18
18
  "main": "./index.cjs",
19
19
  "module": "./index.js",
20
20
  "types": "./index.d.ts",
@@ -1,7 +1,6 @@
1
1
  import { PopoverProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
- interface MidasPopoverProps extends Omit<PopoverProps, 'children'> {
3
+ export interface MidasPopoverProps extends Omit<PopoverProps, 'children'> {
4
4
  children: React.ReactNode;
5
5
  }
6
6
  export declare function Popover({ children, className, offset, ...props }: MidasPopoverProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
package/popover/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover--r4Zr4mO.cjs");exports.Popover=e.Popover;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-BDvKByTT.cjs");exports.Popover=e.Popover;
@@ -1 +1,2 @@
1
1
  export * from './Popover';
2
+ export type { MidasPopoverProps } from './Popover';
package/popover/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as e } from "../Popover-DypW9ift.js";
1
+ import { P as e } from "../Popover-DHoXfBp2.js";
2
2
  export {
3
3
  e as Popover
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { LabelProps, ProgressBarProps as AriaProgressBarProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
- interface ProgressBarProps extends AriaProgressBarProps {
3
+ export interface ProgressBarProps extends AriaProgressBarProps {
4
4
  /**
5
5
  * A visual label
6
6
  * */
@@ -15,4 +15,3 @@ interface ProgressBarProps extends AriaProgressBarProps {
15
15
  showValueLabel?: boolean;
16
16
  }
17
17
  export declare const ProgressBar: React.FC<ProgressBarProps>;
18
- export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-CJFNiudl.cjs");exports.ProgressBar=r.ProgressBar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-ClysdvqU.cjs");exports.ProgressBar=r.ProgressBar;
@@ -1 +1,2 @@
1
1
  export * from './ProgressBar';
2
+ export type { ProgressBarProps } from './ProgressBar';
@@ -1,4 +1,4 @@
1
- import { P as s } from "../ProgressBar-CFgcqHTR.js";
1
+ import { P as s } from "../ProgressBar-C0IBfi5I.js";
2
2
  export {
3
3
  s as ProgressBar
4
4
  };
package/radio/Radio.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { RadioGroupProps, RadioProps, ValidationResult } from 'react-aria-components';
2
2
  import { InfoPopoverProps } from '../label';
3
3
  import * as React from 'react';
4
- interface MVDSRadioGroupProps extends Omit<RadioGroupProps, 'children'> {
4
+ export interface MVDSRadioGroupProps extends Omit<RadioGroupProps, 'children'> {
5
5
  children?: React.ReactNode;
6
6
  /** Label for the RadioGroup */
7
7
  label?: string;
@@ -18,4 +18,3 @@ interface MVDSRadioGroupProps extends Omit<RadioGroupProps, 'children'> {
18
18
  */
19
19
  export declare const RadioGroup: React.FC<MVDSRadioGroupProps>;
20
20
  export declare const Radio: ({ className, ...rest }: RadioProps) => import("react/jsx-runtime").JSX.Element;
21
- export {};
package/radio/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-CMH6pTWD.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-Cz0vLIBw.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
package/radio/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { Radio, RadioGroup } from './Radio';
1
+ export { Radio, RadioGroup, type MVDSRadioGroupProps } from './Radio';
package/radio/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as r, a as R } from "../Radio-DUBSD0kQ.js";
1
+ import { R as r, a as R } from "../Radio-B6N9dCtB.js";
2
2
  export {
3
3
  r as Radio,
4
4
  R as RadioGroup
@@ -1 +1 @@
1
- export { SearchField } from './SearchField';
1
+ export { SearchField, type SearchFieldProps } from './SearchField';
@@ -1,5 +1,5 @@
1
1
  import { SelectProps } from './types';
2
2
  import * as React from 'react';
3
3
  export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "children" | "items"> & {
4
- options: import('..').ListBoxOption[];
4
+ options: import('../list-box').ListBoxOption[];
5
5
  } & React.RefAttributes<HTMLButtonElement>>;
package/select/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-C5i-rIDh.cjs");exports.Select=e.Select;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-DiCEyap1.cjs");exports.Select=e.Select;
package/select/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "../Select-DKME5lZp.js";
1
+ import { S as r } from "../Select-DMVj2lrG.js";
2
2
  export {
3
3
  r as Select
4
4
  };
@@ -1 +1 @@
1
- export { Skeleton } from './Skeleton';
1
+ export { Skeleton, type SkeletonProps } from './Skeleton';
@@ -1 +1 @@
1
- export { Spinner } from './Spinner';
1
+ export { Spinner, type SpinnerProps } from './Spinner';
package/table/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './Table';
2
+ export type { TableProps } from './Table';
package/tabs/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './Tabs';
2
+ export type { TabsProps } from './Tabs';
2
3
  export * from './Tab';
3
4
  export * from './TabPanel';
4
5
  export * from './TabList';
package/tag/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { Tag, TagGroup } from './Tag';
1
+ export { Tag, TagGroup, type TagGroupProp, type TagProps } from './Tag';
package/text/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './Text';
2
+ export type { TextProps } from './Text';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-CY_tzBAJ.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-DJKHFKuI.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
@@ -1,4 +1,7 @@
1
1
  export * from './TextFieldBase';
2
+ export type { TextFieldBaseProps } from './TextFieldBase';
2
3
  export * from './TextField';
4
+ export type { TextFieldProps } from './TextField';
3
5
  export * from './TextArea';
6
+ export type { TextAreaProps } from './TextArea';
4
7
  export * from './Input';
@@ -1,4 +1,4 @@
1
- import { I as s, b as t, a as x, T } from "../TextArea-BhmdgD1w.js";
1
+ import { I as s, b as t, a as x, T } from "../TextArea-eK7Jx3qs.js";
2
2
  export {
3
3
  s as Input,
4
4
  t as TextArea,
package/toast/Toast.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface MidasToast {
6
6
  type: 'success' | 'info' | 'warning' | 'important';
7
7
  children?: React.ReactNode;
8
8
  }
9
- interface ToastRegionProps<T> extends AriaToastRegionProps {
9
+ export interface ToastRegionProps<T> extends AriaToastRegionProps {
10
10
  state: ToastState<T>;
11
11
  className?: string;
12
12
  }
@@ -16,7 +16,7 @@ export interface ToastProps<T> extends AriaToastProps<T> {
16
16
  children?: React.ReactNode;
17
17
  className?: string;
18
18
  }
19
- interface ToastProviderProps extends AriaToastRegionProps {
19
+ export interface ToastProviderProps extends AriaToastRegionProps {
20
20
  children?: ((state: ToastState<MidasToast>) => React.ReactNode) | React.ReactNode;
21
21
  className?: string;
22
22
  }
@@ -30,4 +30,3 @@ export declare const GlobalToastRegion: (props: ToastProviderProps) => React.Rea
30
30
  export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
31
31
  export declare function ToastRegion<T extends MidasToast>({ state, className, ...props }: ToastRegionProps<T>): import("react/jsx-runtime").JSX.Element;
32
32
  export declare function Toast<T extends MidasToast>({ state, className, ...props }: ToastProps<T>): import("react/jsx-runtime").JSX.Element;
33
- export {};
package/toast/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './Toast';
2
+ export type { MidasToast, ToastRegionProps, ToastProps, ToastProviderProps } from './Toast';
@@ -1,8 +1,7 @@
1
1
  import { TooltipProps, TooltipTriggerComponentProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
- interface MidasTooltipProps extends Omit<TooltipProps, 'children'> {
3
+ export interface MidasTooltipProps extends Omit<TooltipProps, 'children'> {
4
4
  children: React.ReactNode;
5
5
  }
6
6
  export declare function Tooltip({ children, className, ...props }: MidasTooltipProps): import("react/jsx-runtime").JSX.Element;
7
7
  export declare function TooltipTrigger({ children, delay, ...props }: TooltipTriggerComponentProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1 +1,2 @@
1
1
  export * from './Tooltip';
2
+ export type { MidasTooltipProps } from './Tooltip';
@@ -1 +0,0 @@
1
- "use strict";require('./assets/AccordionItem.css');const u=require("react/jsx-runtime"),g=require("./clsx-C11secjj.cjs"),E=require("./Button-DExMoP5f.cjs"),x=require("./utils-DHNZrQmj.cjs"),b=require("./mergeProps-B5KXZAI3.cjs"),h=require("./filterDOMProps-BS2lrgFA.cjs"),a=require("react"),v=require("./useControlledState-D0L6S_5r.cjs"),S=require("react-dom"),M=require("./useEvent-DPxMu-X9.cjs"),N=require("./SSRProvider-Bc-sMhsT.cjs"),y=require("./useFocusRing-B-A1OLhU.cjs"),A=require("./Button-Dq6ugqxT.cjs"),K=require("./Heading-CKTR4sOz.cjs"),B=require("./chevron-down-5hFlg_lR.cjs"),j=require("./triangle-alert-BviJNFjf.cjs"),F=require("./check-B0aKTFe5.cjs"),T="_root_1t40y_4",k="_contained_1t40y_13",V="_item_1t40y_22",W="_success_1t40y_23",O="_warning_1t40y_30",z="_uncontained_1t40y_43",G="_content_1t40y_44",H="_triggerButton_1t40y_52",J="_trigger_1t40y_52",L="_triggerMainContent_1t40y_77",Q="_triggerText_1t40y_81",U="_chevronIcon_1t40y_95",X="_statusIcon_1t40y_101",Y="_panel_1t40y_119",Z="_hasBackground_1t40y_136",r={root:T,contained:k,item:V,success:W,warning:O,uncontained:z,content:G,triggerButton:H,trigger:J,triggerMainContent:L,triggerText:Q,chevronIcon:U,statusIcon:X,panel:Y,hasBackground:Z};function ee(d,e,n){let{isDisabled:t}=d,s=b.$bdb11010cef70236$export$f680877a34711e37(),c=b.$bdb11010cef70236$export$f680877a34711e37(),l=!N.$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")}),S.flushSync(()=>{e.toggle()})},[n,e]);return M.$e9faafb641e167db$export$90fc3a17d93f704c(n,"beforematch",l?f:null),b.$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:s,"aria-expanded":e.isExpanded,"aria-controls":c,onPress:$=>{!t&&$.pointerType!=="keyboard"&&e.toggle()},isDisabled:t,onPressStart($){$.pointerType==="keyboard"&&!t&&e.toggle()}},panelProps:{id:c,role:"group","aria-labelledby":s,"aria-hidden":!e.isExpanded,hidden:l?!0:!e.isExpanded}}}function te(d){let[e,n]=v.$458b0a5536c1a7cf$export$40bfa8c7b0832715(d.isExpanded,d.defaultExpanded||!1,d.onExpandedChange);const t=a.useCallback(()=>{n(!0)},[n]),s=a.useCallback(()=>{n(!1)},[n]),c=a.useCallback(()=>{n(!e)},[n,e]);return{isExpanded:e,setExpanded:n,expand:t,collapse:s,toggle:c}}function ne(d){let{allowsMultipleExpanded:e=!1,isDisabled:n=!1}=d,[t,s]=v.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.useMemo(()=>d.expandedKeys?new Set(d.expandedKeys):void 0,[d.expandedKeys]),a.useMemo(()=>d.defaultExpandedKeys?new Set(d.defaultExpandedKeys):new Set,[d.defaultExpandedKeys]),d.onExpandedChange);return a.useEffect(()=>{if(!e&&t.size>1){let c=t.values().next().value;c!=null&&s(new Set([c]))}}),{allowsMultipleExpanded:e,isDisabled:n,expandedKeys:t,setExpandedKeys:s,toggleKey(c){let i;e?(i=new Set(t),i.has(c)?i.delete(c):i.add(c)):i=new Set(t.has(c)?[]:[c]),s(i)}}}const C=a.createContext(null),ae=a.forwardRef(function(e,n){let t=ne(e),s=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-DisclosureGroup",values:{isDisabled:t.isDisabled,state:t}}),c=h.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return a.createElement("div",{...c,...s,ref:n,"data-disabled":e.isDisabled||void 0},a.createElement(C.Provider,{value:t},s.children))}),de=a.createContext(null),se=a.createContext(null),P=a.createContext(null),ce=a.forwardRef(function(e,n){[e,n]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,de);let t=a.useContext(C),{id:s,...c}=e,i=b.$bdb11010cef70236$export$f680877a34711e37();s||(s=i);let l=t?t.expandedKeys.has(s):e.isExpanded,o=te({...e,isExpanded:l,onExpandedChange(R){var p;t&&t.toggleKey(s),(p=e.onExpandedChange)===null||p===void 0||p.call(e,R)}}),f=a.useRef(null),$=e.isDisabled||(t==null?void 0:t.isDisabled)||!1,{buttonProps:D,panelProps:w}=ee({...e,isExpanded:l,isDisabled:$},o,f),{isFocusVisible:_,focusProps:I}=y.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),m=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,defaultClassName:"react-aria-Disclosure",values:{isExpanded:o.isExpanded,isDisabled:$,isFocusVisibleWithin:_,state:o}}),q=h.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(c);return a.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[E.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{[x.$64fa3d84918910a7$export$c62b8e45d58ddad9]:{},trigger:D}}],[P,{panelProps:w,panelRef:f}],[se,o]]},a.createElement("div",{ref:n,"data-expanded":o.isExpanded||void 0,"data-disabled":$||void 0,"data-focus-visible-within":_||void 0,...q,...I,...m},m.children))}),re=a.forwardRef(function(e,n){let{role:t="group"}=e,{panelProps:s,panelRef:c}=a.useContext(P),{isFocusVisible:i,focusProps:l}=y.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-DisclosurePanel",values:{isFocusVisibleWithin:i}}),f=h.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return a.createElement("div",{...f,ref:x.$5dc95899b306f630$export$c9058316764c140e(n,c),...b.$3ef42575df84b30b$export$9d1611c77c2fe928(s,l),...o,role:t,"data-focus-visible-within":i||void 0},a.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[E.$d2b4bc8c273e7be6$export$24d547caef80ccd1,null]]},e.children))}),ie="accordion",oe=({variant:d="uncontained",children:e,className:n,...t})=>u.jsx(ae,{"data-testid":ie,className:g.clsx(r.root,d==="contained"?r.contained:r.uncontained,n),...t,children:e}),le=({title:d,children:e,className:n,headingLevel:t="h2",type:s,hasBackground:c=!0,...i})=>{const l=typeof d=="object",f={success:F.Check,warning:j.TriangleAlert,default:null}[s||"default"],$=f?u.jsx(f,{size:20,className:r.statusIcon}):null;return u.jsxs(ce,{...i,className:g.clsx(r.item,s==="success"&&r.success,s==="warning"&&r.warning,n),children:[u.jsx("div",{className:r.trigger,children:u.jsxs(A.Button,{className:r.triggerButton,slot:"trigger",variant:"icon",children:[u.jsx(B.ChevronDown,{size:20,className:r.chevronIcon}),u.jsx("div",{className:r.triggerMainContent,children:l?d:u.jsx(K.Heading,{level:3,elementType:t,className:r.triggerText,children:d})}),$]})}),u.jsx(re,{className:r.panel,children:u.jsx("div",{className:g.clsx(r.content,c&&r.hasBackground),children:e})})]})};exports.Accordion=oe;exports.AccordionItem=le;
@@ -1 +0,0 @@
1
- "use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),a=require("./clsx-C11secjj.cjs"),p=require("./OverlayArrow-DpZ1FqOd.cjs"),i=require("./Dialog-DtHk3eXI.cjs"),n="_popover_ycjap_4",l="_arrow_ycjap_19",e={popover:n,arrow:l};function x({children:o,className:s,offset:c=4,...t}){return r.jsxs(i.$07b14b47974efb58$export$5b6b19405a83ff9d,{...t,offset:c,className:a.clsx(e.popover,s),children:[r.jsx(p.$44f671af83e7d9e0$export$746d02f47f4d381,{className:e.arrow,children:r.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:r.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o]})}exports.Popover=x;