@pathscale/ui 0.0.60 → 0.0.62
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/index.js +19 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7571,21 +7571,16 @@ const Input = (props)=>{
|
|
|
7571
7571
|
if ("password" === local.type) return passwordVisible() ? "text" : "password";
|
|
7572
7572
|
return local.type;
|
|
7573
7573
|
});
|
|
7574
|
-
const
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
"input-info": "info" === local.color,
|
|
7585
|
-
"input-success": "success" === local.color,
|
|
7586
|
-
"input-warning": "warning" === local.color,
|
|
7587
|
-
"input-error": "error" === local.color
|
|
7588
|
-
}));
|
|
7574
|
+
const colorFocusMap = {
|
|
7575
|
+
primary: "focus-within:border-primary",
|
|
7576
|
+
success: "focus-within:border-success",
|
|
7577
|
+
warning: "focus-within:border-warning",
|
|
7578
|
+
error: "focus-within:border-error",
|
|
7579
|
+
info: "focus-within:border-info",
|
|
7580
|
+
default: "focus-within:border-base-content"
|
|
7581
|
+
};
|
|
7582
|
+
const labelClasses = ()=>twMerge("input input-bordered w-full items-center gap-2 focus-within:outline-none", colorFocusMap[local.color || "default"], local.class, local.className);
|
|
7583
|
+
const inputClasses = ()=>"grow bg-transparent focus:outline-none";
|
|
7589
7584
|
return (()=>{
|
|
7590
7585
|
var _el$ = Input_tmpl$2(), _el$2 = _el$.firstChild;
|
|
7591
7586
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -7614,6 +7609,12 @@ const Input = (props)=>{
|
|
|
7614
7609
|
},
|
|
7615
7610
|
get placeholder () {
|
|
7616
7611
|
return local["placeholder"];
|
|
7612
|
+
},
|
|
7613
|
+
get style () {
|
|
7614
|
+
return local.style;
|
|
7615
|
+
},
|
|
7616
|
+
get ["class"] () {
|
|
7617
|
+
return inputClasses();
|
|
7617
7618
|
}
|
|
7618
7619
|
}), false, false);
|
|
7619
7620
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -7641,15 +7642,13 @@ const Input = (props)=>{
|
|
|
7641
7642
|
}
|
|
7642
7643
|
}), null);
|
|
7643
7644
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7644
|
-
var _v$5 =
|
|
7645
|
+
var _v$5 = labelClasses(), _v$6 = local.dataTheme;
|
|
7645
7646
|
_v$5 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$5);
|
|
7646
|
-
_p$.t
|
|
7647
|
-
_v$7 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.a = _v$7);
|
|
7647
|
+
_v$6 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.t = _v$6);
|
|
7648
7648
|
return _p$;
|
|
7649
7649
|
}, {
|
|
7650
7650
|
e: void 0,
|
|
7651
|
-
t: void 0
|
|
7652
|
-
a: void 0
|
|
7651
|
+
t: void 0
|
|
7653
7652
|
});
|
|
7654
7653
|
return _el$;
|
|
7655
7654
|
})();
|