@midas-ds/components 3.1.0 → 4.0.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,42 @@
1
+ # 4.0.0 (2025-03-10)
2
+
3
+ ### 🚀 Features
4
+
5
+ - ⚠️ updated select, multi-select and modal components
6
+ - **button:** set primary border to 2px when in high-contrast mode
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - **layout:** final design adjustments
11
+ - **layout:** design tweaks
12
+ - **layout:** design tweaks
13
+ - **layout:** design adjustments
14
+ - **button:** write a deprecate comment that size small will be deprecate
15
+ - **table:** write a deprecate comment that narrow will be deprecate
16
+ - **date-picker:** resize button in invalid state, fixes #312
17
+ - **date-picker:** change selected date color to blue150
18
+ - change the weekday names to swedish languge
19
+ - change disabled cursor to not-allowed
20
+ - **datepicker:** change cursor to pointer
21
+ - **radio:** change cursor to pointer
22
+ - **checkbox:** change cursor to pointer
23
+
24
+ ### Documentation Changes
25
+
26
+ - add security disclaimers
27
+ - **date-picker:** add style unavailable and code example for Unavailable Date in docs
28
+
29
+ ### ⚠️ Breaking Changes
30
+
31
+ - `Select`, `MultiSelect` and `Modal` now have updated API:s, expect things not to work as before. Make sure to check the API:s before upgrading."
32
+
33
+ ### ❤️ Thank You
34
+
35
+ - derpbravely
36
+ - jabir Khalil
37
+ - pixelrickdreamer
38
+ - Wilhelm Hjelm
39
+
1
40
  ## 3.1.0 (2025-03-06)
2
41
 
3
42
  ### 🚀 Features
@@ -15,6 +15,7 @@ export interface MidasButtonProps {
15
15
  */
16
16
  fullwidth?: boolean;
17
17
  /** Choose between different button sizes */
18
+ /** @deprecated This variant will be replaced with a new scaling api accross all components. */
18
19
  size?: 'small';
19
20
  /** Add an icon from lucide-react
20
21
  *
@@ -0,0 +1,6 @@
1
+ import { CalendarGridProps, CalendarProps, DateValue } from 'react-aria-components';
2
+ interface MidasCalendarProps<T extends DateValue> extends CalendarProps<T>, Pick<CalendarGridProps, 'weekdayStyle'> {
3
+ errorMessage?: string;
4
+ }
5
+ export declare function Calendar<T extends DateValue>({ errorMessage, weekdayStyle, className, ...props }: MidasCalendarProps<T>): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export { Calendar } from './Calendar';
@@ -0,0 +1,8 @@
1
+ import { DateFieldProps as AriaDateFieldProps, DateValue, ValidationResult } from 'react-aria-components';
2
+ interface DateFieldProps<T extends DateValue> extends AriaDateFieldProps<T> {
3
+ label?: string;
4
+ description?: string;
5
+ errorMessage?: string | ((validation: ValidationResult) => string);
6
+ }
7
+ export declare function DateField<T extends DateValue>({ label, description, errorMessage, className, ...props }: DateFieldProps<T>): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { DateField } from './DateField.tsx';