@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.
- package/{AccordionItem-BtDoammf.js → AccordionItem-BPOQqTkQ.js} +14 -13
- package/AccordionItem-CS-QKqrU.cjs +1 -0
- package/CHANGELOG.md +11 -0
- package/{CheckboxGroup-DhQX10rP.cjs → CheckboxGroup-CT_eqERw.cjs} +1 -1
- package/{CheckboxGroup-CC9QGMuE.js → CheckboxGroup-oosHSGAt.js} +1 -1
- package/{ComboBox-CiCB2e4W.cjs → ComboBox-CQ49PhNd.cjs} +1 -1
- package/{ComboBox-Dnk8JMQ6.js → ComboBox-D4MsSPBu.js} +1 -1
- package/{DateField-DleDM0Sy.cjs → DateField-BURrxhil.cjs} +1 -1
- package/{DateField-BAS2v9aI.js → DateField-COs1-CkQ.js} +1 -1
- package/{DateRangePicker-CYXWnCTq.cjs → DateRangePicker-Bfibl08v.cjs} +1 -1
- package/{DateRangePicker-Blej-jD0.js → DateRangePicker-CvEycxmX.js} +1 -1
- package/{Label-VO6CAFux.cjs → Label-ChjDdBlv.cjs} +1 -1
- package/{Label-JLgFEbP9.js → Label-DA6FZwy0.js} +1 -1
- package/Popover-BDvKByTT.cjs +1 -0
- package/{Popover-DypW9ift.js → Popover-DHoXfBp2.js} +12 -12
- package/{ProgressBar-CFgcqHTR.js → ProgressBar-C0IBfi5I.js} +1 -1
- package/{ProgressBar-CJFNiudl.cjs → ProgressBar-ClysdvqU.cjs} +1 -1
- package/{Radio-DUBSD0kQ.js → Radio-B6N9dCtB.js} +1 -1
- package/{Radio-CMH6pTWD.cjs → Radio-Cz0vLIBw.cjs} +1 -1
- package/{Select-DKME5lZp.js → Select-DMVj2lrG.js} +1 -1
- package/{Select-C5i-rIDh.cjs → Select-DiCEyap1.cjs} +1 -1
- package/{TextArea-CY_tzBAJ.cjs → TextArea-DJKHFKuI.cjs} +1 -1
- package/{TextArea-BhmdgD1w.js → TextArea-eK7Jx3qs.js} +1 -1
- package/accordion/Accordion.d.ts +1 -2
- package/accordion/index.cjs +1 -1
- package/accordion/index.d.ts +2 -1
- package/accordion/index.js +3 -2
- package/assets/Popover.css +1 -1
- package/breadcrumbs/index.d.ts +1 -0
- package/button/Button.d.ts +1 -2
- package/button/index.d.ts +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +1 -1
- package/color-scheme-switch/index.d.ts +1 -0
- package/combobox/ComboBox.d.ts +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.d.ts +1 -0
- package/date-field/index.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -2
- package/dropdown/index.d.ts +1 -1
- package/field-error/index.d.ts +1 -0
- package/grid/index.d.ts +1 -1
- package/heading/index.d.ts +1 -0
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +108 -107
- package/info-banner/index.d.ts +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.d.ts +1 -0
- package/link/Link.d.ts +2 -2
- package/link/index.d.ts +1 -1
- package/link-button/LinkButton.d.ts +2 -2
- package/link-button/index.d.ts +1 -0
- package/modal/Dialog.d.ts +1 -1
- package/modal/index.d.ts +1 -1
- package/package.json +1 -1
- package/popover/Popover.d.ts +1 -2
- package/popover/index.cjs +1 -1
- package/popover/index.d.ts +1 -0
- package/popover/index.js +1 -1
- package/progress-bar/ProgressBar.d.ts +1 -2
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.d.ts +1 -0
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +1 -2
- package/radio/index.cjs +1 -1
- package/radio/index.d.ts +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.d.ts +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.d.ts +1 -1
- package/spinner/index.d.ts +1 -1
- package/table/index.d.ts +1 -0
- package/tabs/index.d.ts +1 -0
- package/tag/index.d.ts +1 -1
- package/text/index.d.ts +1 -0
- package/textfield/index.cjs +1 -1
- package/textfield/index.d.ts +3 -0
- package/textfield/index.js +1 -1
- package/toast/Toast.d.ts +2 -3
- package/toast/index.d.ts +1 -0
- package/tooltip/Tooltip.d.ts +1 -2
- package/tooltip/index.d.ts +1 -0
- package/AccordionItem-D2QYNgZS.cjs +0 -1
- package/Popover--r4Zr4mO.cjs +0 -1
package/index.js
CHANGED
|
@@ -1,135 +1,136 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { C as l, R as
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import { D as
|
|
14
|
-
import { a as
|
|
15
|
-
import { D as
|
|
16
|
-
import { D as
|
|
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
|
|
19
|
-
import { F as
|
|
20
|
-
import { F as
|
|
21
|
-
import { H as
|
|
22
|
-
import { I as
|
|
23
|
-
import { L as
|
|
24
|
-
import { H as
|
|
25
|
-
import { L as
|
|
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
|
|
29
|
-
import { P as
|
|
30
|
-
import { P as
|
|
31
|
-
import { R as
|
|
32
|
-
import { S as
|
|
33
|
-
import { S as ya } from "./Select-
|
|
34
|
-
import { S as
|
|
35
|
-
import { S as
|
|
36
|
-
import { b as
|
|
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
|
|
39
|
-
import { T as
|
|
40
|
-
import { I as
|
|
41
|
-
import { G as
|
|
42
|
-
import { T as
|
|
43
|
-
import { T as So, a as
|
|
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
|
|
48
|
-
e as
|
|
49
|
-
|
|
50
|
-
p as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
u as Card,
|
|
57
|
+
c as CardActionArea,
|
|
58
|
+
B as CardActions,
|
|
59
|
+
D as CardContent,
|
|
59
60
|
S as CardImage,
|
|
60
|
-
|
|
61
|
+
I as CardLink,
|
|
61
62
|
L as CardTitle,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
81
|
+
K as Dropdown,
|
|
81
82
|
U as DropdownItem,
|
|
82
83
|
W as FieldError,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
96
|
+
Ba as Link,
|
|
96
97
|
Sa as LinkButton,
|
|
97
98
|
La as Logo,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
107
|
-
|
|
107
|
+
qa as Row,
|
|
108
|
+
Na as SearchField,
|
|
108
109
|
ya as Select,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
za as Table,
|
|
118
|
+
Ja as TableBody,
|
|
119
|
+
Ka as TableHeader,
|
|
119
120
|
Ya as Tabs,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
130
|
-
|
|
130
|
+
co as ToggleButton,
|
|
131
|
+
Bo as ToggleButtonGroup,
|
|
131
132
|
So as Tooltip,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
Io as TooltipTrigger,
|
|
134
|
+
bo as toastQueue,
|
|
135
|
+
go as useToastState
|
|
135
136
|
};
|
package/info-banner/index.d.ts
CHANGED
|
@@ -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-
|
|
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
package/layout/index.d.ts
CHANGED
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
|
|
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> =
|
|
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
|
|
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> =
|
|
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
|
* */
|
package/link-button/index.d.ts
CHANGED
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
package/popover/Popover.d.ts
CHANGED
|
@@ -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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-BDvKByTT.cjs");exports.Popover=e.Popover;
|
package/popover/index.d.ts
CHANGED
package/popover/index.js
CHANGED
|
@@ -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 {};
|
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-ClysdvqU.cjs");exports.ProgressBar=r.ProgressBar;
|
package/progress-bar/index.d.ts
CHANGED
package/progress-bar/index.js
CHANGED
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-
|
|
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
package/search-field/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SearchField } from './SearchField';
|
|
1
|
+
export { SearchField, type SearchFieldProps } from './SearchField';
|
package/select/Select.d.ts
CHANGED
|
@@ -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('
|
|
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-
|
|
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
package/skeleton/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Skeleton } from './Skeleton';
|
|
1
|
+
export { Skeleton, type SkeletonProps } from './Skeleton';
|
package/spinner/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Spinner } from './Spinner';
|
|
1
|
+
export { Spinner, type SpinnerProps } from './Spinner';
|
package/table/index.d.ts
CHANGED
package/tabs/index.d.ts
CHANGED
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
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-DJKHFKuI.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
|
package/textfield/index.d.ts
CHANGED
|
@@ -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';
|
package/textfield/index.js
CHANGED
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
package/tooltip/Tooltip.d.ts
CHANGED
|
@@ -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 {};
|
package/tooltip/index.d.ts
CHANGED
|
@@ -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;
|
package/Popover--r4Zr4mO.cjs
DELETED
|
@@ -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;
|