@midas-ds/components 5.0.1 → 6.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,30 @@
1
+ # 6.0.0
2
+
3
+ ### 🚀 Features
4
+
5
+ - **modal:** replace h2 with heading component
6
+ - ⚠️ **modal:** deprecate `ModalTrigger` and `Dialog`
7
+ - **modal:** fix overlay position to avoid moving the modal when y-overflow
8
+ - **modal:** increase z-index on overlay
9
+ - **modal:** add focustrap to modal
10
+ - **modal:** add styles and clean up types
11
+ - **modal:** add boilerplate code for new modal implementation
12
+ - use `cursor: not-allowed` for disabled elements
13
+
14
+ ### 🩹 Fixes
15
+
16
+ - **layout:** change minimize menu button to icon variant
17
+ - **button:** change iconbtn color token
18
+ - **button:** tokenize icon button for better dark mode support
19
+ - **button:** clarify use of labels on button groups
20
+ - **button:** clarify use of labels on button groups
21
+ - add react types to dependencies
22
+ - remove test setup from build
23
+
24
+ ### ⚠️ Breaking Changes
25
+
26
+ - **modal:** Use the new DialogTrigger and Modal instead of ModalTrigger and Dialog. New API will apply.
27
+
1
28
  ## 5.0.1
2
29
 
3
30
  ### 🩹 Fixes
@@ -19,7 +46,7 @@
19
46
 
20
47
  ### 🚀 Features
21
48
 
22
- - ⚠️ support for dark mode across all components
49
+ - ⚠️ support for dark mode across all components
23
50
 
24
51
  ### 🩹 Fixes
25
52
 
@@ -48,7 +75,7 @@
48
75
  - **docs:** add new UIkit
49
76
  - **localization:** add dev instructions for localization
50
77
 
51
- ### ⚠️ Breaking Changes
78
+ ### ⚠️ Breaking Changes
52
79
 
53
80
  - dark mode :city_sunrise:
54
81
 
@@ -67,6 +94,7 @@
67
94
 
68
95
  - **date-picker:** add style unavailable and code example for Unavailable Date in docs
69
96
  - **docs:** add new UIkit
97
+
70
98
  ### ⚠️ Breaking Changes
71
99
 
72
100
  - `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.
@@ -273,6 +301,7 @@
273
301
  - **text-field:** support counter and maxCharacters
274
302
  - **ui:** export new components
275
303
  -
304
+
276
305
  ### 🩹 Fixes
277
306
 
278
307
  - **accordion:** hover on trigger
@@ -426,7 +455,6 @@
426
455
  - **ui:** add modal
427
456
  - **ui:** update theme version
428
457
 
429
-
430
458
  ### ⚠️ Breaking Changes
431
459
 
432
460
  - **modal:** new API
@@ -672,4 +700,3 @@
672
700
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
673
701
 
674
702
  ---
675
-
@@ -1,12 +1,9 @@
1
- export interface MidasButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
2
- /** Set a descriptive lable for screen readers */
3
- 'aria-label': string;
4
- }
1
+ import * as React from 'react';
5
2
  /**
6
3
  * Group several buttons together.
7
4
  *
8
- * @interface MidasButtonGroupProps
5
+ * @interface React.HTMLAttributes<HTMLDivElement>
9
6
  *
10
7
  * @see {@link https://designsystem.migrationsverket.se/components/button}
11
8
  */
12
- export declare const ButtonGroup: React.FC<MidasButtonGroupProps>;
9
+ export declare const ButtonGroup: React.FC<React.HTMLAttributes<HTMLDivElement>>;