@midas-ds/components 4.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +543 -183
- package/accordion/Accordion.d.ts +1 -0
- package/calendar/RangeCalendar.d.ts +6 -0
- package/calendar/index.d.ts +1 -0
- package/card/Card.d.ts +1 -0
- package/date-field/index.d.ts +1 -1
- package/global.css +1 -1
- package/heading/Heading.d.ts +14 -0
- package/heading/index.d.ts +1 -0
- package/index.cjs +29 -29
- package/index.css +1 -1
- package/index.d.ts +4 -0
- package/index.js +24667 -23922
- package/label/Label.d.ts +10 -0
- package/label/index.d.ts +1 -0
- package/logo/Logo.d.ts +0 -2
- package/package.json +4 -5
- package/progress-bar/ProgressBar.d.ts +19 -0
- package/progress-bar/index.d.ts +1 -0
- package/select/SelectPopover.d.ts +1 -1
- package/text/Text.d.ts +14 -0
- package/text/index.d.ts +1 -0
- package/textfield/TextField.d.ts +1 -0
- package/theme/index.d.ts +163 -102
- package/theme/tokens.d.ts +163 -102
- package/theme.cjs +1 -1
- package/theme.js +11 -18
- package/toast/Toast.d.ts +7 -2
- package/tokens-Ce2Sj8HD.js +240 -0
- package/tokens-DZsQgihc.cjs +1 -0
- package/tokens-BskyMDHv.cjs +0 -1
- package/tokens-CjXmpXTi.js +0 -160
package/accordion/Accordion.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DisclosureGroupProps } from 'react-aria-components';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
export declare const ACCORDION_TEST_ID = "accordion";
|
|
3
4
|
interface MidasAccordion extends DisclosureGroupProps {
|
|
4
5
|
/** Display either the larger contained variant or a smaller uncontained variant */
|
|
5
6
|
variant?: 'uncontained' | 'contained';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CalendarGridProps, RangeCalendarProps, DateValue } from 'react-aria-components';
|
|
2
|
+
interface MidasCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, Pick<CalendarGridProps, 'weekdayStyle'> {
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function RangeCalendar<T extends DateValue>({ errorMessage, weekdayStyle, className, ...props }: MidasCalendarProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
package/calendar/index.d.ts
CHANGED
package/card/Card.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface CardProps<C extends React.ElementType = typeof Link> extends Re
|
|
|
8
8
|
};
|
|
9
9
|
/** Sets background to predetermined color
|
|
10
10
|
* @default false
|
|
11
|
+
* @deprecated Not supported since v5.0.0
|
|
11
12
|
* */
|
|
12
13
|
background?: boolean;
|
|
13
14
|
/** Header as h1 for the component rendered below image if there is one */
|
package/date-field/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DateField } from './DateField
|
|
1
|
+
export { DateField } from './DateField';
|
package/global.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
|
1
|
+
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root{color-scheme:light dark}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HeadingProps as AriaHeadingProps } from 'react-aria-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ElementType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
|
+
export interface HeadingProps extends AriaHeadingProps {
|
|
5
|
+
/**
|
|
6
|
+
* Override the semantic element of the component but keep the look of the level property
|
|
7
|
+
*/
|
|
8
|
+
elementType?: ElementType;
|
|
9
|
+
/**
|
|
10
|
+
* Use the external/expressive look
|
|
11
|
+
*/
|
|
12
|
+
isExpressive?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Heading: React.FC<HeadingProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Heading';
|