@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.
@@ -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 {};
@@ -1 +1,2 @@
1
1
  export { Calendar } from './Calendar';
2
+ export { RangeCalendar } from './RangeCalendar';
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 */
@@ -1 +1 @@
1
- export { DateField } from './DateField.tsx';
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';