@pallasoft/ps-input-components 3.11.0 → 3.11.1
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,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PsFormControl = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ps_design_system_1 = require("@pallasoft/ps-design-system");
|
|
6
|
-
const PsFormControl = ({ children, className, errorText, helperText, label, }) => ((0, jsx_runtime_1.jsxs)("div", { className: ps_design_system_1.PallasoftClassNameService.merge('grid gap-2', className), children: [label ? (0, jsx_runtime_1.jsx)("span", { className: 'ps-input-label
|
|
6
|
+
const PsFormControl = ({ children, className, errorText, helperText, label, }) => ((0, jsx_runtime_1.jsxs)("div", { className: ps_design_system_1.PallasoftClassNameService.merge('grid gap-2', className), children: [label ? (0, jsx_runtime_1.jsx)("span", { className: 'ps-input-label', children: label }) : null, children, errorText ? ((0, jsx_runtime_1.jsx)("p", { className: 'text-xs font-semibold text-danger', children: errorText })) : helperText ? ((0, jsx_runtime_1.jsx)("p", { className: 'ps-input-helper', children: helperText })) : null] }));
|
|
7
7
|
exports.PsFormControl = PsFormControl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { PallasoftClassNameService } from '@pallasoft/ps-design-system';
|
|
3
|
-
export const PsFormControl = ({ children, className, errorText, helperText, label, }) => (_jsxs("div", { className: PallasoftClassNameService.merge('grid gap-2', className), children: [label ? _jsx("span", { className: 'ps-input-label
|
|
3
|
+
export const PsFormControl = ({ children, className, errorText, helperText, label, }) => (_jsxs("div", { className: PallasoftClassNameService.merge('grid gap-2', className), children: [label ? _jsx("span", { className: 'ps-input-label', children: label }) : null, children, errorText ? (_jsx("p", { className: 'text-xs font-semibold text-danger', children: errorText })) : helperText ? (_jsx("p", { className: 'ps-input-helper', children: helperText })) : null] }));
|