@k8slens/lds-form 0.1.8 → 0.1.10
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/lib/cjs/FormErrorMessage/FormErrorMessage.d.ts +3 -1
- package/lib/cjs/FormField/FormField.d.ts +2 -0
- package/lib/cjs/FormLabel/FormLabel.d.ts +3 -1
- package/lib/es/FormErrorMessage/FormErrorMessage.d.ts +3 -1
- package/lib/es/FormField/FormField.d.ts +2 -0
- package/lib/es/FormLabel/FormLabel.d.ts +3 -1
- package/package.json +5 -5
|
@@ -5,7 +5,9 @@ export interface FormErrorMessageProps extends Omit<React.LabelHTMLAttributes<HT
|
|
|
5
5
|
errors: Array<string>;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Form error message
|
|
8
|
+
* Form error message component used by `FormField`
|
|
9
|
+
*
|
|
10
|
+
* `import { FormErrorMessage } from @k8slens/lds-form`
|
|
9
11
|
*/
|
|
10
12
|
declare const FormErrorMessage: ({ id, forId, errors, ...props }: FormErrorMessageProps) => JSX.Element;
|
|
11
13
|
export default FormErrorMessage;
|
|
@@ -29,6 +29,8 @@ CustomError extends string> extends Pick<FormFieldProps, "label" | "labelProps"
|
|
|
29
29
|
/**
|
|
30
30
|
* Generic form field component with label and error message.
|
|
31
31
|
*
|
|
32
|
+
* `import { FormField } from @k8slens/lds-form`
|
|
33
|
+
*
|
|
32
34
|
* See `FormComponent`for individual form components.
|
|
33
35
|
*/
|
|
34
36
|
export default function FormField({ id, label, labelId, errorId, required, errors, children, labelProps, errorProps, ...props }: PropsWithChildren<FormFieldProps>): JSX.Element;
|
|
@@ -6,7 +6,9 @@ export interface FormLabelProps extends Omit<React.LabelHTMLAttributes<HTMLLabel
|
|
|
6
6
|
required?: boolean;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Form label
|
|
9
|
+
* Form label component used by `FormField`
|
|
10
|
+
*
|
|
11
|
+
* `import { FormLabel } from @k8slens/lds-form`
|
|
10
12
|
*/
|
|
11
13
|
declare const FormLabel: ({ id, forId, label, required, ...props }: FormLabelProps) => JSX.Element;
|
|
12
14
|
export default FormLabel;
|
|
@@ -5,7 +5,9 @@ export interface FormErrorMessageProps extends Omit<React.LabelHTMLAttributes<HT
|
|
|
5
5
|
errors: Array<string>;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Form error message
|
|
8
|
+
* Form error message component used by `FormField`
|
|
9
|
+
*
|
|
10
|
+
* `import { FormErrorMessage } from @k8slens/lds-form`
|
|
9
11
|
*/
|
|
10
12
|
declare const FormErrorMessage: ({ id, forId, errors, ...props }: FormErrorMessageProps) => JSX.Element;
|
|
11
13
|
export default FormErrorMessage;
|
|
@@ -29,6 +29,8 @@ CustomError extends string> extends Pick<FormFieldProps, "label" | "labelProps"
|
|
|
29
29
|
/**
|
|
30
30
|
* Generic form field component with label and error message.
|
|
31
31
|
*
|
|
32
|
+
* `import { FormField } from @k8slens/lds-form`
|
|
33
|
+
*
|
|
32
34
|
* See `FormComponent`for individual form components.
|
|
33
35
|
*/
|
|
34
36
|
export default function FormField({ id, label, labelId, errorId, required, errors, children, labelProps, errorProps, ...props }: PropsWithChildren<FormFieldProps>): JSX.Element;
|
|
@@ -6,7 +6,9 @@ export interface FormLabelProps extends Omit<React.LabelHTMLAttributes<HTMLLabel
|
|
|
6
6
|
required?: boolean;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Form label
|
|
9
|
+
* Form label component used by `FormField`
|
|
10
|
+
*
|
|
11
|
+
* `import { FormLabel } from @k8slens/lds-form`
|
|
10
12
|
*/
|
|
11
13
|
declare const FormLabel: ({ id, forId, label, required, ...props }: FormLabelProps) => JSX.Element;
|
|
12
14
|
export default FormLabel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k8slens/lds-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Lens Design System – React Form components",
|
|
5
5
|
"author": "Mirantis Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"start": "npm run rollup-watch",
|
|
17
17
|
"build": "npm run clean && npm run rollup",
|
|
18
|
-
"rollup-watch": "rollup -c --watch",
|
|
18
|
+
"rollup-watch": "rollup -c --watch --waitForBundleInput",
|
|
19
19
|
"rollup": "rollup -c",
|
|
20
20
|
"clean": "rimraf lib",
|
|
21
21
|
"test": "jest",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"format": "eslint --fix ."
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@k8slens/lds": "^0.6.
|
|
26
|
+
"@k8slens/lds": "^0.6.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@k8slens/lds-tokens": "^0.7.
|
|
29
|
+
"@k8slens/lds-tokens": "^0.7.11",
|
|
30
30
|
"@rollup/plugin-node-resolve": "15.0.1",
|
|
31
31
|
"@storybook/react": "6.5.13",
|
|
32
32
|
"@testing-library/react": "13.4.0"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"\\.svg": "<rootDir>/../../__mocks__/SVGStub.js"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f25255873d24b1090c9b54352d561740853f48b8"
|
|
53
53
|
}
|