@midas-ds/components 4.0.0 → 5.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,4 +1,4 @@
1
- # 4.0.0 (2025-03-10)
1
+ # 5.0.0 (2025-03-17)
2
2
 
3
3
  ### 🚀 Features
4
4
 
@@ -7,6 +7,16 @@
7
7
 
8
8
  ### 🩹 Fixes
9
9
 
10
+ - **card:** deprecate card background
11
+ - **select:** change direct element selector
12
+ - **modal:** remove unused code
13
+ - **link-button:** remove ts-ignore comment
14
+ - **link:** remove unused code
15
+ - **docs:** remove unused code
16
+ - **select:** remove unsupported attribute
17
+ - **select:** remove useless fragment
18
+ - **search-field:** use aria-label instead of hidden label
19
+ - add and remove comments
10
20
  - **layout:** final design adjustments
11
21
  - **layout:** design tweaks
12
22
  - **layout:** design tweaks
@@ -23,8 +33,10 @@
23
33
 
24
34
  ### Documentation Changes
25
35
 
36
+ - fix local dark mode on portals in SB
26
37
  - add security disclaimers
27
38
  - **date-picker:** add style unavailable and code example for Unavailable Date in docs
39
+ - dark mode support for storybook and docusaurus
28
40
 
29
41
  ### ⚠️ Breaking Changes
30
42
 
@@ -37,6 +49,45 @@
37
49
  - pixelrickdreamer
38
50
  - Wilhelm Hjelm
39
51
 
52
+ # 4.0.0 (2025-03-10)
53
+
54
+ ### 🚀 Features
55
+
56
+ - ⚠️ updated select, multi-select and modal components
57
+ - **button:** set primary border to 2px when in high-contrast mode
58
+
59
+ ### 🩹 Fixes
60
+
61
+ - **layout:** final design adjustments
62
+ - **layout:** design tweaks
63
+ - **layout:** design tweaks
64
+ - **layout:** design adjustments
65
+ - **button:** write a deprecate comment that size small will be deprecate
66
+ - **table:** write a deprecate comment that narrow will be deprecate
67
+ - **date-picker:** resize button in invalid state, fixes #312
68
+ - **date-picker:** change selected date color to blue150
69
+ - change the weekday names to swedish languge
70
+ - change disabled cursor to not-allowed
71
+ - **datepicker:** change cursor to pointer
72
+ - **radio:** change cursor to pointer
73
+ - **checkbox:** change cursor to pointer
74
+
75
+ ### Documentation Changes
76
+
77
+ - add security disclaimers
78
+ - **date-picker:** add style unavailable and code example for Unavailable Date in docs
79
+
80
+ ### ⚠️ Breaking Changes
81
+
82
+ - `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."
83
+
84
+ ### ❤️ Thank You
85
+
86
+ - derpbravely
87
+ - jabir Khalil
88
+ - pixelrickdreamer
89
+ - Wilhelm Hjelm
90
+
40
91
  ## 3.1.0 (2025-03-06)
41
92
 
42
93
  ### 🚀 Features
@@ -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';