@infonomic/uikit 5.8.0 → 5.9.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.
|
@@ -3,7 +3,7 @@ import type { Intent, Variant } from './@types/input.js';
|
|
|
3
3
|
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
label
|
|
6
|
+
label?: string;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
variant?: Variant;
|
|
9
9
|
intent?: Intent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../src/components/forms/text-area.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOxD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACtF,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../src/components/forms/text-area.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOxD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACtF,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAA;CAClG;AAED,eAAO,MAAM,QAAQ,GAAqB,sIAgBvC,aAAa,KAAG,KAAK,CAAC,GAAG,CAAC,OAsC5B,CAAA"}
|
|
@@ -9,7 +9,7 @@ const text_area_TextArea = function({ ref, id, name, label, rows = 4, required =
|
|
|
9
9
|
return /*#__PURE__*/ jsxs("fieldset", {
|
|
10
10
|
className: classnames('text-area-wrapper', input_module["input-wrapper"]),
|
|
11
11
|
children: [
|
|
12
|
-
/*#__PURE__*/ jsx(Label, {
|
|
12
|
+
null != label && /*#__PURE__*/ jsx(Label, {
|
|
13
13
|
id: id,
|
|
14
14
|
htmlFor: id,
|
|
15
15
|
required: required,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import styles from './text-area.module.css'
|
|
|
11
11
|
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
12
12
|
id: string
|
|
13
13
|
name: string
|
|
14
|
-
label
|
|
14
|
+
label?: string
|
|
15
15
|
required?: boolean
|
|
16
16
|
variant?: Variant
|
|
17
17
|
intent?: Intent
|
|
@@ -44,7 +44,7 @@ export const TextArea = function TextArea({
|
|
|
44
44
|
}: TextAreaProps): React.JSX.Element {
|
|
45
45
|
return (
|
|
46
46
|
<fieldset className={cx('text-area-wrapper', inputStyles['input-wrapper'])}>
|
|
47
|
-
<Label id={id} htmlFor={id} required={required} label={label} />
|
|
47
|
+
{label != null && <Label id={id} htmlFor={id} required={required} label={label} />}
|
|
48
48
|
<textarea
|
|
49
49
|
ref={ref}
|
|
50
50
|
id={id}
|