@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 +18 -0
- package/calendar/Calendar.d.ts +4 -4
- package/calendar/CalendarGrid.d.ts +6 -0
- package/calendar/CalendarHeader.d.ts +2 -0
- package/calendar/RangeCalendar.d.ts +4 -4
- package/calendar/index.d.ts +2 -2
- package/date-field/DateField.d.ts +4 -4
- package/date-field/DateInput.d.ts +4 -0
- package/date-field/DateInputDivider.d.ts +2 -0
- package/date-field/DateSegment.d.ts +4 -0
- package/date-field/index.d.ts +4 -1
- package/date-picker/DatePicker.d.ts +4 -10
- package/date-picker/DatePickerInputField.d.ts +8 -0
- package/date-picker/DatePickerPopover.d.ts +6 -0
- package/date-picker/DateRangePicker.d.ts +9 -0
- package/date-picker/index.d.ts +2 -2
- package/index.cjs +32 -32
- package/index.css +1 -1
- package/index.js +5644 -5679
- package/label/Label.d.ts +1 -1
- package/package.json +1 -1
- package/theme/index.d.ts +1 -0
- package/theme/tokens.d.ts +1 -0
- package/theme.cjs +1 -1
- package/theme.js +2 -2
- package/{tokens-B0IQe84F.cjs → tokens-CIuAmuws.cjs} +1 -1
- package/{tokens-BWq37Xsh.js → tokens-Dq5vcWLv.js} +2 -1
- package/tooltip/Tooltip.d.ts +1 -2
- package/utils/storybook.d.ts +4 -0
- package/utils/test.d.ts +7 -0
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
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
|
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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
|
6
|
-
export {};
|
|
6
|
+
export declare const RangeCalendar: React.FC<RangeCalendarProps>;
|
package/calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
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
|
-
|
|
3
|
-
|
|
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
|
|
9
|
-
export {};
|
|
9
|
+
export declare const DateField: React.FC<DateFieldProps>;
|
package/date-field/index.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { DatePickerProps
|
|
2
|
-
|
|
3
|
-
|
|
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: <
|
|
9
|
+
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
16
10
|
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>;
|
package/date-picker/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './DatePicker';
|
|
2
|
+
export * from './DateRangePicker';
|