@midas-ds/components 8.1.0 → 8.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 8.2.0
2
+
3
+ ### 🚀 Features
4
+
5
+ - **theme:** add --icon-tertiary, new color for --icon-secondary ([f0ef381472](https://github.com/migrationsverket/midas/commit/f0ef381472))
6
+ - **label:** deprecate prop variant and add new css class ([42e33be662](https://github.com/migrationsverket/midas/commit/42e33be662))
7
+ - **tooltip:** allow locale agnostic tooltip placement ([#492](https://github.com/migrationsverket/midas/pull/492))
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - **accordion:** remove disabled styling if component has disabled children ([1c704b714d](https://github.com/migrationsverket/midas/commit/1c704b714d))
12
+ - **checkbox:** set correct line-height and adjust high contrast visibility ([6ca7ea9ba9](https://github.com/migrationsverket/midas/commit/6ca7ea9ba9))
13
+
14
+ ### Documentation Changes
15
+
16
+ - **propstable:** add support for enums in table ([#511](https://github.com/migrationsverket/midas/pull/511))
17
+ - **modal:** change arg types in storybook ([f9588f170b](https://github.com/migrationsverket/midas/commit/f9588f170b))
18
+
1
19
  ## 8.1.0
2
20
 
3
21
  ### 🚀 Features
@@ -1,6 +1,6 @@
1
- import { CalendarGridProps, CalendarProps, DateValue } from 'react-aria-components';
2
- interface MidasCalendarProps<T extends DateValue> extends CalendarProps<T>, Pick<CalendarGridProps, 'weekdayStyle'> {
1
+ import { CalendarProps as AriaCalendarProps, DateValue } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export interface CalendarProps extends AriaCalendarProps<DateValue> {
3
4
  errorMessage?: string;
4
5
  }
5
- export declare function Calendar<T extends DateValue>({ errorMessage, weekdayStyle, className, ...props }: MidasCalendarProps<T>): import("react/jsx-runtime").JSX.Element;
6
- export {};
6
+ export declare const Calendar: React.FC<CalendarProps>;
@@ -0,0 +1,6 @@
1
+ import { CalendarGridProps as AriaCalendarGridProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export interface CalendarGridProps {
4
+ weekdayStyle?: AriaCalendarGridProps['weekdayStyle'];
5
+ }
6
+ export declare const CalendarGrid: React.FC<CalendarGridProps>;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const CalendarHeader: React.FC;
@@ -1,6 +1,6 @@
1
- import { CalendarGridProps, RangeCalendarProps, DateValue } from 'react-aria-components';
2
- interface MidasCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, Pick<CalendarGridProps, 'weekdayStyle'> {
1
+ import { DateValue, RangeCalendarProps as AriaRangeCalendarProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export interface RangeCalendarProps extends AriaRangeCalendarProps<DateValue> {
3
4
  errorMessage?: string;
4
5
  }
5
- export declare function RangeCalendar<T extends DateValue>({ errorMessage, weekdayStyle, className, ...props }: MidasCalendarProps<T>): import("react/jsx-runtime").JSX.Element;
6
- export {};
6
+ export declare const RangeCalendar: React.FC<RangeCalendarProps>;
@@ -1,2 +1,2 @@
1
- export { Calendar } from './Calendar';
2
- export { RangeCalendar } from './RangeCalendar';
1
+ export * from './Calendar';
2
+ export * from './RangeCalendar';
@@ -1,9 +1,9 @@
1
1
  import { DateFieldProps as AriaDateFieldProps, DateValue, ValidationResult } from 'react-aria-components';
2
- interface DateFieldProps<T extends DateValue> extends AriaDateFieldProps<T> {
3
- label?: string;
2
+ import * as React from 'react';
3
+ export interface DateFieldProps extends AriaDateFieldProps<DateValue> {
4
4
  description?: string;
5
5
  errorMessage?: string | ((validation: ValidationResult) => string);
6
6
  errorPosition?: 'top' | 'bottom';
7
+ label?: string;
7
8
  }
8
- export declare function DateField<T extends DateValue>({ label, description, errorMessage, className, errorPosition, ...props }: DateFieldProps<T>): import("react/jsx-runtime").JSX.Element;
9
- export {};
9
+ export declare const DateField: React.FC<DateFieldProps>;
@@ -0,0 +1,4 @@
1
+ import { DateInputProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export type { DateInputProps };
4
+ export declare const DateInput: React.FC<DateInputProps>;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const DateInputDivider: React.FC;
@@ -0,0 +1,4 @@
1
+ import { DateSegmentProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export type { DateSegmentProps };
4
+ export declare const DateSegment: React.FC<DateSegmentProps>;
@@ -1 +1,4 @@
1
- export { DateField } from './DateField';
1
+ export * from './DateField';
2
+ export * from './DateSegment';
3
+ export * from './DateInput';
4
+ export * from './DateInputDivider';
@@ -1,16 +1,10 @@
1
- import { DatePickerProps, DateRangePickerProps, DateValue, ValidationResult } from 'react-aria-components';
2
- interface MidasDateRangePickerProps<T extends DateValue> extends DateRangePickerProps<T> {
3
- label?: string;
1
+ import { DatePickerProps as AriaDatePickerProps, DateValue, ValidationResult } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ interface DatePickerProps extends AriaDatePickerProps<DateValue> {
4
4
  description?: string;
5
5
  errorMessage?: string | ((validation: ValidationResult) => string);
6
6
  errorPosition?: 'top' | 'bottom';
7
- }
8
- export declare const DateRangePicker: <T extends DateValue>({ label, description, errorMessage, errorPosition, ...props }: MidasDateRangePickerProps<T>) => import("react/jsx-runtime").JSX.Element;
9
- interface MidasDatePickerProps<T extends DateValue> extends DatePickerProps<T> {
10
7
  label?: string;
11
- description?: string;
12
- errorMessage?: string | ((validation: ValidationResult) => string);
13
- errorPosition?: 'top' | 'bottom';
14
8
  }
15
- export declare const DatePicker: <T extends DateValue>({ label, description, errorMessage, errorPosition, ...props }: MidasDatePickerProps<T>) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const DatePicker: React.FC<DatePickerProps>;
16
10
  export {};
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface DatePickerInputFieldProps {
3
+ children?: React.ReactNode;
4
+ isDisabled?: boolean;
5
+ isInvalid?: boolean;
6
+ }
7
+ export declare const DatePickerInputField: React.FC<DatePickerInputFieldProps>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface DatePickerPopoverProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare const DatePickerPopover: React.ForwardRefExoticComponent<DatePickerPopoverProps & React.RefAttributes<HTMLDivElement>>;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { DateRangePickerProps as AriaDateRangePickerProps, DateValue, ValidationResult } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export interface DateRangePickerProps extends AriaDateRangePickerProps<DateValue> {
4
+ description?: string;
5
+ errorMessage?: string | ((validation: ValidationResult) => string);
6
+ errorPosition?: 'top' | 'bottom';
7
+ label?: string;
8
+ }
9
+ export declare const DateRangePicker: React.FC<DateRangePickerProps>;
@@ -1,2 +1,2 @@
1
- export { DatePicker } from './DatePicker';
2
- export { DateRangePicker } from './DatePicker';
1
+ export * from './DatePicker';
2
+ export * from './DateRangePicker';