@midas-ds/components 5.0.1 → 6.0.1

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,36 @@
1
+ ## 6.0.1
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **select:** 🐛 Selected values doesn't match selected IDs
6
+
7
+ # 6.0.0
8
+
9
+ ### 🚀 Features
10
+
11
+ - **modal:** replace h2 with heading component
12
+ - ⚠️ **modal:** deprecate `ModalTrigger` and `Dialog`
13
+ - **modal:** fix overlay position to avoid moving the modal when y-overflow
14
+ - **modal:** increase z-index on overlay
15
+ - **modal:** add focustrap to modal
16
+ - **modal:** add styles and clean up types
17
+ - **modal:** add boilerplate code for new modal implementation
18
+ - use `cursor: not-allowed` for disabled elements
19
+
20
+ ### 🩹 Fixes
21
+
22
+ - **layout:** change minimize menu button to icon variant
23
+ - **button:** change iconbtn color token
24
+ - **button:** tokenize icon button for better dark mode support
25
+ - **button:** clarify use of labels on button groups
26
+ - **button:** clarify use of labels on button groups
27
+ - add react types to dependencies
28
+ - remove test setup from build
29
+
30
+ ### ⚠️ Breaking Changes
31
+
32
+ - **modal:** Use the new DialogTrigger and Modal instead of ModalTrigger and Dialog. New API will apply.
33
+
1
34
  ## 5.0.1
2
35
 
3
36
  ### 🩹 Fixes
@@ -19,7 +52,7 @@
19
52
 
20
53
  ### 🚀 Features
21
54
 
22
- - ⚠️ support for dark mode across all components
55
+ - ⚠️ support for dark mode across all components
23
56
 
24
57
  ### 🩹 Fixes
25
58
 
@@ -48,7 +81,7 @@
48
81
  - **docs:** add new UIkit
49
82
  - **localization:** add dev instructions for localization
50
83
 
51
- ### ⚠️ Breaking Changes
84
+ ### ⚠️ Breaking Changes
52
85
 
53
86
  - dark mode :city_sunrise:
54
87
 
@@ -67,6 +100,7 @@
67
100
 
68
101
  - **date-picker:** add style unavailable and code example for Unavailable Date in docs
69
102
  - **docs:** add new UIkit
103
+
70
104
  ### ⚠️ Breaking Changes
71
105
 
72
106
  - `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 +307,7 @@
273
307
  - **text-field:** support counter and maxCharacters
274
308
  - **ui:** export new components
275
309
  -
310
+
276
311
  ### 🩹 Fixes
277
312
 
278
313
  - **accordion:** hover on trigger
@@ -426,7 +461,6 @@
426
461
  - **ui:** add modal
427
462
  - **ui:** update theme version
428
463
 
429
-
430
464
  ### ⚠️ Breaking Changes
431
465
 
432
466
  - **modal:** new API
@@ -672,4 +706,3 @@
672
706
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
673
707
 
674
708
  ---
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>>;