@midas-ds/components 8.2.0 → 8.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 +24 -0
- package/accordion/Accordion.d.ts +1 -1
- package/button/Button.d.ts +1 -1
- package/card/Card.d.ts +29 -32
- package/index.cjs +32 -32
- package/index.css +1 -1
- package/index.js +5886 -5782
- package/label/Label.d.ts +1 -1
- package/modal/Dialog.d.ts +2 -2
- package/package.json +1 -1
- package/spinner/Spinner.d.ts +1 -1
- package/table/Table.d.ts +1 -1
- package/tabs/Tabs.d.ts +1 -1
- package/textfield/TextFieldBase.d.ts +5 -0
- package/theme/index.d.ts +2 -0
- package/theme/tokens.d.ts +2 -0
- package/theme.cjs +1 -1
- package/theme.js +2 -2
- package/{tokens-CIuAmuws.cjs → tokens-B6mMZ0T6.cjs} +1 -1
- package/{tokens-Dq5vcWLv.js → tokens-CEzXihhV.js} +8 -1
- package/utils/intl/useMessageFormatter.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 8.3.0
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **theme:** use `--support-border-warning` instead of `--border-invalid` ([#518](https://github.com/migrationsverket/midas/pull/518))
|
|
6
|
+
- **textfield:** add medium size variant ([#520](https://github.com/migrationsverket/midas/pull/520))
|
|
7
|
+
- **layout:** change font weight for active menu item ([57e2485234](https://github.com/migrationsverket/midas/commit/57e2485234))
|
|
8
|
+
- **layout:** change background color for menu item ([d9ffc16bb6](https://github.com/migrationsverket/midas/commit/d9ffc16bb6))
|
|
9
|
+
|
|
10
|
+
### 🩹 Fixes
|
|
11
|
+
|
|
12
|
+
- **modal:** adjust modal header when content is scollable ([#527](https://github.com/migrationsverket/midas/pull/527))
|
|
13
|
+
- **combobox:** add disabled color to the icon in disabled state ([9cd5657149](https://github.com/migrationsverket/midas/commit/9cd5657149))
|
|
14
|
+
- **select:** add disabled styling to description ([4cabb0c8ae](https://github.com/migrationsverket/midas/commit/4cabb0c8ae))
|
|
15
|
+
- **select:** change invalid border from 3px to 2 px ([834f1f8fdc](https://github.com/migrationsverket/midas/commit/834f1f8fdc))
|
|
16
|
+
- **accordion:** add a minimal padding to allow items with margin-bottom ([e0b2d8058b](https://github.com/migrationsverket/midas/commit/e0b2d8058b))
|
|
17
|
+
- **accordion:** remove padding bottom for last uncontained accordionitem ([463a7fa29e](https://github.com/migrationsverket/midas/commit/463a7fa29e))
|
|
18
|
+
- **textfield:** remove opacity from disabled ([0332d83cb6](https://github.com/migrationsverket/midas/commit/0332d83cb6))
|
|
19
|
+
- **textfield:** add border bottom in disabled and change ivalid border to 2px ([2bcd1d5beb](https://github.com/migrationsverket/midas/commit/2bcd1d5beb))
|
|
20
|
+
|
|
21
|
+
### Documentation Changes
|
|
22
|
+
|
|
23
|
+
- improvements to preview 💅 🔍 ✨ ([#530](https://github.com/migrationsverket/midas/pull/530))
|
|
24
|
+
|
|
1
25
|
## 8.2.0
|
|
2
26
|
|
|
3
27
|
### 🚀 Features
|
package/accordion/Accordion.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const ACCORDION_TEST_ID = "accordion";
|
|
|
4
4
|
interface MidasAccordion extends DisclosureGroupProps {
|
|
5
5
|
/** Display either the larger contained variant or a smaller uncontained variant */
|
|
6
6
|
variant?: 'uncontained' | 'contained';
|
|
7
|
-
/** @deprecated Use 'allowsMultipleExpanded' instead */
|
|
7
|
+
/** @deprecated since v8.0.0 Use 'allowsMultipleExpanded' instead */
|
|
8
8
|
type?: 'single' | 'multiple';
|
|
9
9
|
}
|
|
10
10
|
/**
|
package/button/Button.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface MidasButtonProps {
|
|
|
15
15
|
*/
|
|
16
16
|
fullwidth?: boolean;
|
|
17
17
|
/** Choose between different button sizes */
|
|
18
|
-
/** @deprecated This variant will be replaced with a new scaling api accross all components. */
|
|
18
|
+
/** @deprecated since v4.0.0 This variant will be replaced with a new scaling api accross all components. */
|
|
19
19
|
size?: 'small';
|
|
20
20
|
/** Add an icon from lucide-react
|
|
21
21
|
*
|
package/card/Card.d.ts
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeadingProps } from '../heading';
|
|
2
|
+
import { ButtonProps, Link } from 'react-aria-components';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
export interface
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** Header as h1 for the component rendered below image if there is one */
|
|
15
|
-
title: string;
|
|
16
|
-
/** Content as p element for the component */
|
|
17
|
-
content: string;
|
|
18
|
-
/** Props for when card element is clicked */
|
|
19
|
-
link: LinkProps<C>;
|
|
20
|
-
/** Adjust the tag to be used for the header
|
|
21
|
-
* @default 'h1'
|
|
22
|
-
*/
|
|
23
|
-
headingTag?: React.ElementType;
|
|
4
|
+
export interface MidasCard extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Stack content in card vertical or horizontal */
|
|
6
|
+
horizontal?: boolean;
|
|
7
|
+
/** Card content, usually wrap with CardContent */
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface MidasCardContext {
|
|
11
|
+
horizontal?: MidasCard['horizontal'];
|
|
12
|
+
titleId?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MidasCardImage {
|
|
24
15
|
/** Custom image component to be used instead of the default img tag */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
className?: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
interface MidasCardLink<C extends React.ElementType> {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
as?: C;
|
|
28
23
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare const
|
|
35
|
-
export
|
|
24
|
+
export type MidasCardLinkProps<C extends React.ElementType> = MidasCardLink<C> & Omit<React.ComponentProps<C>, keyof MidasCardLink<C>>;
|
|
25
|
+
export declare const Card: React.FC<MidasCard>;
|
|
26
|
+
export declare const CardContent: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
27
|
+
export declare const CardTitle: React.FC<HeadingProps>;
|
|
28
|
+
export declare const CardActions: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const CardActionArea: React.FC<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
export declare const CardImage: React.FC<MidasCardImage>;
|
|
31
|
+
export declare const CardLink: <C extends React.ElementType = (props: import('react-aria-components').LinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement | null>({ children, as, ...rest }: MidasCardLinkProps<C>) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|