@midas-ds/components 1.3.0 → 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 +54 -0
- 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 +6436 -5984
- 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 +4 -1
- package/skeleton/Skeleton.d.ts +9 -0
- package/skeleton/index.d.ts +1 -0
- package/textarea/TextArea.d.ts +2 -2
- package/textfield/TextField.d.ts +0 -2
- package/tooltip/Tooltip.d.ts +9 -0
- package/tooltip/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
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
|
+
|
|
1
55
|
## 1.3.0 (2025-02-19)
|
|
2
56
|
|
|
3
57
|
### 🚀 Features
|
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;
|