@pallasoft/ps-input-components 1.5.0 → 1.6.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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface PsTextAreaInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
helperText?: string;
|
|
4
|
+
hideLabel?: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PsTextAreaInput: ({ className, helperText, hideLabel, label, rows, ...props }: PsTextAreaInputProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PsTextAreaInput = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ps_design_system_1 = require("@pallasoft/ps-design-system");
|
|
6
|
+
const PsTextAreaInput = ({ className, helperText, hideLabel, label, rows = 4, ...props }) => ((0, jsx_runtime_1.jsxs)("label", { className: 'block', children: [(0, jsx_runtime_1.jsx)("span", { className: hideLabel ? 'sr-only' : 'ps-input-label', children: label }), (0, jsx_runtime_1.jsx)("textarea", { className: ps_design_system_1.PallasoftClassNameService.merge(hideLabel ? 'ps-input-control' : 'ps-input-control mt-2', 'min-h-24 resize-y leading-6', className), rows: rows, ...props }), helperText ? (0, jsx_runtime_1.jsx)("span", { className: 'ps-input-helper', children: helperText }) : null] }));
|
|
7
|
+
exports.PsTextAreaInput = PsTextAreaInput;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export * from './components/ps-file-picker';
|
|
|
7
7
|
export * from './components/ps-form-control';
|
|
8
8
|
export * from './components/ps-multi-select-input';
|
|
9
9
|
export * from './components/ps-select-input';
|
|
10
|
+
export * from './components/ps-text-area-input';
|
|
10
11
|
export * from './components/ps-text-input';
|
|
11
12
|
export * from './components/ps-toggle';
|
package/dist/index.js
CHANGED
|
@@ -23,5 +23,6 @@ __exportStar(require("./components/ps-file-picker"), exports);
|
|
|
23
23
|
__exportStar(require("./components/ps-form-control"), exports);
|
|
24
24
|
__exportStar(require("./components/ps-multi-select-input"), exports);
|
|
25
25
|
__exportStar(require("./components/ps-select-input"), exports);
|
|
26
|
+
__exportStar(require("./components/ps-text-area-input"), exports);
|
|
26
27
|
__exportStar(require("./components/ps-text-input"), exports);
|
|
27
28
|
__exportStar(require("./components/ps-toggle"), exports);
|