@midas-ds/components 1.2.3 → 2.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 +84 -1
- package/accordion/AccordionItem.d.ts +2 -2
- package/combobox/ComboBox.d.ts +1 -1
- package/combobox/types.d.ts +4 -0
- package/combobox/utils.d.ts +2 -0
- package/file-upload/FileUpload.d.ts +1 -1
- package/index.cjs +28 -28
- package/index.css +1 -1
- package/index.d.ts +2 -0
- package/index.js +6771 -6292
- package/layout/Layout.d.ts +29 -26
- package/layout/components/Backdrop.d.ts +2 -0
- package/layout/components/Header.d.ts +5 -0
- package/layout/components/Sidebar.d.ts +2 -0
- package/layout/components/SidebarLink.d.ts +3 -0
- package/layout/components/SkipLink.d.ts +6 -0
- package/layout/context/LayoutContext.d.ts +21 -0
- package/layout/index.d.ts +3 -0
- package/package.json +5 -1
- package/skeleton/Skeleton.d.ts +9 -0
- package/skeleton/index.d.ts +1 -0
- package/table/Table.d.ts +3 -4
- package/textarea/TextArea.d.ts +2 -2
- package/textfield/TextField.d.ts +14 -5
- package/tooltip/Tooltip.d.ts +9 -0
- package/tooltip/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
+
# 2.0.0 (2025-02-25)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- ⚠️ **textfield:** rename maxCharacters property ([44eec760e](https://github.com/migrationsverket/midas/commit/44eec760e))
|
|
6
|
+
- ⚠️ **textarea:** rename maxCharacters property ([06116cee9](https://github.com/migrationsverket/midas/commit/06116cee9))
|
|
7
|
+
- **tooltip:** new component tooltip ([3bc3fcd4f](https://github.com/migrationsverket/midas/commit/3bc3fcd4f))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- **accordion:** add comment ([56db5d49f](https://github.com/migrationsverket/midas/commit/56db5d49f))
|
|
12
|
+
- **accordion:** remove dependency array from useLayoutEffect - fix render of dynamic content in AccordionItem ([db4c920ee](https://github.com/migrationsverket/midas/commit/db4c920ee))
|
|
13
|
+
- **theme:** add global css export ([9786d79da](https://github.com/migrationsverket/midas/commit/9786d79da))
|
|
14
|
+
- **textarea:** set initial counter value on render ([15121e437](https://github.com/migrationsverket/midas/commit/15121e437))
|
|
15
|
+
- **textfield:** set initial counter value on render ([1f9a9cfc1](https://github.com/migrationsverket/midas/commit/1f9a9cfc1))
|
|
16
|
+
- **textarea:** set initial counter value on render ([924f5abda](https://github.com/migrationsverket/midas/commit/924f5abda))
|
|
17
|
+
- **textfield:** set initial counter value on render ([0e9e4a44d](https://github.com/migrationsverket/midas/commit/0e9e4a44d))
|
|
18
|
+
- **tooltip:** append classname ([0e6e6e483](https://github.com/migrationsverket/midas/commit/0e6e6e483))
|
|
19
|
+
- **textfield:** append classname ([53f5b603c](https://github.com/migrationsverket/midas/commit/53f5b603c))
|
|
20
|
+
- **textarea:** append classname ([cdd9f3e5c](https://github.com/migrationsverket/midas/commit/cdd9f3e5c))
|
|
21
|
+
- **tag:** append classname ([df88ec9fb](https://github.com/migrationsverket/midas/commit/df88ec9fb))
|
|
22
|
+
- **radio:** append classname ([796173ba2](https://github.com/migrationsverket/midas/commit/796173ba2))
|
|
23
|
+
- **logo:** append classname ([66a189a6c](https://github.com/migrationsverket/midas/commit/66a189a6c))
|
|
24
|
+
- **combobox:** append classname ([570a1998e](https://github.com/migrationsverket/midas/commit/570a1998e))
|
|
25
|
+
- **accordion:** append classname ([aaaa0ddb1](https://github.com/migrationsverket/midas/commit/aaaa0ddb1))
|
|
26
|
+
- **file-upload:** import react to get autodocs props ([e6467ca66](https://github.com/migrationsverket/midas/commit/e6467ca66))
|
|
27
|
+
- **file-upload:** add autdocs config ([809f0b894](https://github.com/migrationsverket/midas/commit/809f0b894))
|
|
28
|
+
- **file-upload:** pass unhandled props ([fc90980d9](https://github.com/migrationsverket/midas/commit/fc90980d9))
|
|
29
|
+
- **layout:** fix bug where mobile menu wouldn't open ([c61923662](https://github.com/migrationsverket/midas/commit/c61923662))
|
|
30
|
+
- **accessibility:** fix focus for high contrast mode ([#267](https://github.com/migrationsverket/midas/pull/267))
|
|
31
|
+
- **textarea:** add validation for minLength property ([8df1f931a](https://github.com/migrationsverket/midas/commit/8df1f931a))
|
|
32
|
+
- **layout:** design adjustments + skip to content link ([facdaf64f](https://github.com/migrationsverket/midas/commit/facdaf64f))
|
|
33
|
+
- **layout:** design review ([b1928466c](https://github.com/migrationsverket/midas/commit/b1928466c))
|
|
34
|
+
- **layout:** add tooltips on layout collapsed state ([5e9d0090d](https://github.com/migrationsverket/midas/commit/5e9d0090d))
|
|
35
|
+
- **layout:** design adjustments ([f086ad5fe](https://github.com/migrationsverket/midas/commit/f086ad5fe))
|
|
36
|
+
|
|
37
|
+
### Documentation Changes
|
|
38
|
+
|
|
39
|
+
- **components:** sync docusaurus and storybook autodocs config ([4e061ad4d](https://github.com/migrationsverket/midas/commit/4e061ad4d))
|
|
40
|
+
- **file-upload:** manually extend react aria props for autodocs ([07ecde229](https://github.com/migrationsverket/midas/commit/07ecde229))
|
|
41
|
+
- dropdown + layout + tooltip ([28d3bc661](https://github.com/migrationsverket/midas/commit/28d3bc661))
|
|
42
|
+
|
|
43
|
+
### ⚠️ Breaking Changes
|
|
44
|
+
|
|
45
|
+
- **textfield:** TextField property maxCharacters is renamed to maxLength
|
|
46
|
+
- **textarea:** TextArea propert maxCharacters is renamed to maxLength
|
|
47
|
+
|
|
48
|
+
### ❤️ Thank You
|
|
49
|
+
|
|
50
|
+
- derpbravely
|
|
51
|
+
- Jabir Khalil
|
|
52
|
+
- pixelrickdreamer
|
|
53
|
+
- Wilhelm Hjelm
|
|
54
|
+
|
|
55
|
+
## 1.3.0 (2025-02-19)
|
|
56
|
+
|
|
57
|
+
### 🚀 Features
|
|
58
|
+
|
|
59
|
+
- **textfield:** add dossier number validation ([9092008ef](https://github.com/migrationsverket/midas/commit/9092008ef))
|
|
60
|
+
|
|
61
|
+
### 🩹 Fixes
|
|
62
|
+
|
|
63
|
+
- **theme:** reorder theme export ([3398a0f68](https://github.com/migrationsverket/midas/commit/3398a0f68))
|
|
64
|
+
- **table:** preserve classNames when using props.className ([d7a9142cd](https://github.com/migrationsverket/midas/commit/d7a9142cd))
|
|
65
|
+
- **textfield:** +/- divider should be optional ([b1393263a](https://github.com/migrationsverket/midas/commit/b1393263a))
|
|
66
|
+
- **table:** add pointer if row has a link ([9a62302ff](https://github.com/migrationsverket/midas/commit/9a62302ff))
|
|
67
|
+
- **card:** clean the code ([a17aa2941](https://github.com/migrationsverket/midas/commit/a17aa2941))
|
|
68
|
+
- **textfield:** add dossier number validation ([b3027b5b9](https://github.com/migrationsverket/midas/commit/b3027b5b9))
|
|
69
|
+
- **accordion:** support any elements in title ([1129fd742](https://github.com/migrationsverket/midas/commit/1129fd742))
|
|
70
|
+
- **table:** remove unused props ([1cb0c2e69](https://github.com/migrationsverket/midas/commit/1cb0c2e69))
|
|
71
|
+
- **table:** show hover background color for striped table ([a6b4f35d5](https://github.com/migrationsverket/midas/commit/a6b4f35d5))
|
|
72
|
+
- **theme:** point to theme types ([98e09424f](https://github.com/migrationsverket/midas/commit/98e09424f))
|
|
73
|
+
- **card:** remove the id content from p tag ([54e4fe9cd](https://github.com/migrationsverket/midas/commit/54e4fe9cd))
|
|
74
|
+
- **card:** fix to read title and content ([dd8d07c72](https://github.com/migrationsverket/midas/commit/dd8d07c72))
|
|
75
|
+
- **card:** add React.useId to generate unique id ([160319d03](https://github.com/migrationsverket/midas/commit/160319d03))
|
|
76
|
+
- fix content to be readable by screen reader when use tab ([d49d8d4f9](https://github.com/migrationsverket/midas/commit/d49d8d4f9))
|
|
77
|
+
|
|
78
|
+
### ❤️ Thank You
|
|
79
|
+
|
|
80
|
+
- derpbravely
|
|
81
|
+
- jabir Khalil
|
|
82
|
+
- Wilhelm Hjelm
|
|
83
|
+
|
|
1
84
|
## 1.2.3 (2025-02-11)
|
|
2
85
|
|
|
3
86
|
This was a version bump only for components to align it with other projects, there were no code changes.
|
|
@@ -121,4 +204,4 @@ This was a version bump only for components to align it with other projects, the
|
|
|
121
204
|
### ❤️ Thank You
|
|
122
205
|
|
|
123
206
|
- jabir Khalil
|
|
124
|
-
- Wilhelm Hjelm
|
|
207
|
+
- 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'];
|
package/combobox/ComboBox.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<
|
|
|
8
8
|
children: React.ReactNode | ((item: T) => React.ReactNode);
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function ComboBox<T extends object>({ label, description, errorMessage, children, items, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function ComboBox<T extends object>({ label, description, errorMessage, children, items, className, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare function ComboBoxItem(props: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileTriggerProps as AriaFileTriggerProps } from 'react-aria-components';
|
|
2
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export interface FileTriggerProps extends AriaFileTriggerProps {
|
|
4
4
|
/** Label for the file upload button */
|
|
5
5
|
label?: string;
|