@midas-ds/components 1.2.3 → 1.3.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,32 @@
1
+ ## 1.3.0 (2025-02-19)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **textfield:** add dossier number validation ([9092008ef](https://github.com/migrationsverket/midas/commit/9092008ef))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **theme:** reorder theme export ([3398a0f68](https://github.com/migrationsverket/midas/commit/3398a0f68))
10
+ - **table:** preserve classNames when using props.className ([d7a9142cd](https://github.com/migrationsverket/midas/commit/d7a9142cd))
11
+ - **textfield:** +/- divider should be optional ([b1393263a](https://github.com/migrationsverket/midas/commit/b1393263a))
12
+ - **table:** add pointer if row has a link ([9a62302ff](https://github.com/migrationsverket/midas/commit/9a62302ff))
13
+ - **card:** clean the code ([a17aa2941](https://github.com/migrationsverket/midas/commit/a17aa2941))
14
+ - **textfield:** add dossier number validation ([b3027b5b9](https://github.com/migrationsverket/midas/commit/b3027b5b9))
15
+ - **accordion:** support any elements in title ([1129fd742](https://github.com/migrationsverket/midas/commit/1129fd742))
16
+ - **table:** remove unused props ([1cb0c2e69](https://github.com/migrationsverket/midas/commit/1cb0c2e69))
17
+ - **table:** show hover background color for striped table ([a6b4f35d5](https://github.com/migrationsverket/midas/commit/a6b4f35d5))
18
+ - **theme:** point to theme types ([98e09424f](https://github.com/migrationsverket/midas/commit/98e09424f))
19
+ - **card:** remove the id content from p tag ([54e4fe9cd](https://github.com/migrationsverket/midas/commit/54e4fe9cd))
20
+ - **card:** fix to read title and content ([dd8d07c72](https://github.com/migrationsverket/midas/commit/dd8d07c72))
21
+ - **card:** add React.useId to generate unique id ([160319d03](https://github.com/migrationsverket/midas/commit/160319d03))
22
+ - fix content to be readable by screen reader when use tab ([d49d8d4f9](https://github.com/migrationsverket/midas/commit/d49d8d4f9))
23
+
24
+ ### ❤️ Thank You
25
+
26
+ - derpbravely
27
+ - jabir Khalil
28
+ - Wilhelm Hjelm
29
+
1
30
  ## 1.2.3 (2025-02-11)
2
31
 
3
32
  This was a version bump only for components to align it with other projects, there were no code changes.
@@ -121,4 +150,4 @@ This was a version bump only for components to align it with other projects, the
121
150
  ### ❤️ Thank You
122
151
 
123
152
  - jabir Khalil
124
- - Wilhelm Hjelm
153
+ - Wilhelm Hjelm
@@ -1,8 +1,8 @@
1
1
  import { DisclosureProps, HeadingProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
3
  interface MidasAccordionItem extends Omit<DisclosureProps, 'children'> {
4
- /** The text displayed in the collapsed state */
5
- title?: string;
4
+ /** The text displayed in the collapsed state. If a ReactNode is proveded we're not adding a heading and you have to provide one yourself. */
5
+ title?: string | React.ReactNode;
6
6
  children?: React.ReactNode;
7
7
  /** Adjust the titles heading level to your heading tag structure */
8
8
  headingLevel?: HeadingProps['level'];