@popsure/dirty-swan 0.58.0 → 0.58.2
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/dist/cjs/index.js +6 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.js +1 -1
- package/dist/esm/components/input/index.js +4 -2
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/input/radio/index.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/input/checkbox/styles.module.scss +0 -4
- package/src/lib/components/input/index.tsx +19 -14
- package/src/lib/components/input/radio/styles.module.scss +0 -4
package/dist/cjs/index.js
CHANGED
|
@@ -314,12 +314,14 @@ var Input = React__default['default'].forwardRef(function (_a, ref) {
|
|
|
314
314
|
return (jsxRuntime.jsxs("div", { className: "".concat(styles$H.container, " ").concat(className !== null && className !== void 0 ? className : ''), children: [label && !labelInsideInput && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1('p-p', styles$H.label, (_b = {},
|
|
315
315
|
_b[styles$H['label--with-error']] = error,
|
|
316
316
|
_b['sr-only'] = hideLabel,
|
|
317
|
-
_b)), children: label })), jsxRuntime.jsxs("div", { style: { position: 'relative' }, children: [jsxRuntime.jsx("input", __assign({ id: uniqueId, "data-testid": "ds-input-input", type: "text", ref: ref, className: classNames$1(error ? 'p-input--error' : 'p-input', (!label || labelInsideInput) &&
|
|
317
|
+
_b)), children: label })), jsxRuntime.jsxs("div", { style: { position: 'relative' }, children: [jsxRuntime.jsx("input", __assign({ id: uniqueId, "data-testid": "ds-input-input", type: "text", ref: ref, className: classNames$1(error ? 'p-input--error' : 'p-input', (!label || labelInsideInput) &&
|
|
318
|
+
placeholder &&
|
|
319
|
+
placeholder.length > 0
|
|
318
320
|
? styles$H.input
|
|
319
321
|
: styles$H['input--no-placeholder'], (_c = {},
|
|
320
322
|
_c[styles$H['input--with-prefix']] = prefix,
|
|
321
323
|
_c[styles$H['input--with-inside-label']] = labelInsideInput,
|
|
322
|
-
_c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled, "aria-invalid": !!error, "aria-errormessage": error ? error : undefined }, props)), prefix && (jsxRuntime.jsx("span", { className: classNames$1(styles$H.prefix, (_d = {}, _d[styles$H['prefix--with-error']] = error, _d), (_e = {}, _e[styles$H['prefix--disabled']] = disabled, _e)), children: prefix })), (!label || labelInsideInput) && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1(styles$H.placeholder, (_f = {}, _f[styles$H['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$H['placeholder--with-error']] = error, _g)), children: labelInsideInput ? label : placeholder }))] }), error && (jsxRuntime.jsx("p", { className: "p-p--small tc-red-500 w100 ".concat(styles$H.error), children: error }))] }));
|
|
324
|
+
_c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled, "aria-invalid": !!error, "aria-errormessage": error ? "".concat(uniqueId, "-error") : undefined }, props)), prefix && (jsxRuntime.jsx("span", { className: classNames$1(styles$H.prefix, (_d = {}, _d[styles$H['prefix--with-error']] = error, _d), (_e = {}, _e[styles$H['prefix--disabled']] = disabled, _e)), children: prefix })), (!label || labelInsideInput) && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1(styles$H.placeholder, (_f = {}, _f[styles$H['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$H['placeholder--with-error']] = error, _g)), children: labelInsideInput ? label : placeholder }))] }), error && (jsxRuntime.jsx("p", { id: "".concat(uniqueId, "-error"), className: "p-p--small tc-red-500 w100 ".concat(styles$H.error), children: error }))] }));
|
|
323
325
|
});
|
|
324
326
|
|
|
325
327
|
var build = {};
|
|
@@ -8568,7 +8570,7 @@ var Badge = function (_a) {
|
|
|
8568
8570
|
return (jsxRuntime.jsx("div", { role: "status", className: classNames$1(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$y["badge--".concat(size)], getVariantClassNames(variant)), children: children }));
|
|
8569
8571
|
};
|
|
8570
8572
|
|
|
8571
|
-
var css_248z$y = ".styles-module_container__3zJJC {\n max-width: 100%;\n
|
|
8573
|
+
var css_248z$y = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
|
|
8572
8574
|
var styles$x = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
|
|
8573
8575
|
styleInject(css_248z$y);
|
|
8574
8576
|
|
|
@@ -8621,7 +8623,7 @@ var Checkbox = function (_a) {
|
|
|
8621
8623
|
})] }));
|
|
8622
8624
|
};
|
|
8623
8625
|
|
|
8624
|
-
var css_248z$x = ".styles-module_container__3M-sc {\n max-width: 100%;\n
|
|
8626
|
+
var css_248z$x = ".styles-module_container__3M-sc {\n max-width: 100%;\n}\n\n.styles-module_narrow__3VUzp {\n max-width: 424px;\n}\n\n.styles-module_wide__3nLhz {\n max-width: 736px;\n}";
|
|
8625
8627
|
var styles$w = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
|
|
8626
8628
|
styleInject(css_248z$x);
|
|
8627
8629
|
|