@midas-ds/components 2.0.1 → 3.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 +30 -0
- package/index.cjs +26 -26
- package/index.css +1 -1
- package/index.js +3489 -3510
- package/package.json +1 -1
- package/search-field/SearchField.d.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface SearchFieldProps extends AriaSearchFieldProps {
|
|
3
|
+
export interface SearchFieldProps extends Omit<AriaSearchFieldProps, 'isRequired'> {
|
|
4
4
|
/** Placeholder text */
|
|
5
5
|
placeholder: string;
|
|
6
6
|
/**
|
|
@@ -9,5 +9,9 @@ export interface SearchFieldProps extends AriaSearchFieldProps {
|
|
|
9
9
|
* 'Sök'
|
|
10
10
|
*/
|
|
11
11
|
buttonText?: string;
|
|
12
|
+
/**
|
|
13
|
+
* A custom error message if using the isInvalid prop.
|
|
14
|
+
*/
|
|
15
|
+
errorMessage?: string;
|
|
12
16
|
}
|
|
13
17
|
export declare const SearchField: React.FC<SearchFieldProps>;
|