hplx-react-elements-dev 1.1.24 → 1.1.25
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/esm/index.js +4 -4
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4891,7 +4891,7 @@ var getLabelStyle$1 = function getLabelStyle(disabled) {
|
|
|
4891
4891
|
var getIconTypeClassName = function getIconTypeClassName(iconfile, size, disabled) {
|
|
4892
4892
|
switch (iconfile) {
|
|
4893
4893
|
case "dot":
|
|
4894
|
-
return size === "sm" ? disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-
|
|
4894
|
+
return size === "sm" ? disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : " hplxt-hidden hplxt-ring-[3px] hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[12.85px] hplxt-mt-[4.85px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block";
|
|
4895
4895
|
|
|
4896
4896
|
case "checkmark":
|
|
4897
4897
|
return size === "sm" ? disabled ? "hx_checkmark hplxt-text-[12px] -hplxt-ml-[17px] hplxt-mt-[3px] hplxt-text-White peer-checked:hplxt-block " : "hplxt-hidden hx_checkmark hplxt-text-[12px] -hplxt-ml-[17px] hplxt-mt-[3px] hplxt-text-White peer-checked:hplxt-block" : disabled ? "hx_checkmark -hplxt-ml-[21px] hplxt-mt-[2px] hplxt-text-White peer-checked:hplxt-block " : "hplxt-hidden hx_checkmark -hplxt-ml-[21px] hplxt-mt-[2px] hplxt-text-White peer-checked:hplxt-block";
|
|
@@ -4919,7 +4919,7 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4919
4919
|
className: "hplxt-flex hplxt-flex-row hplxt-flex-1 ".concat(className)
|
|
4920
4920
|
}, {
|
|
4921
4921
|
children: [jsxRuntime.exports.jsx("input", {
|
|
4922
|
-
className: "hplxt-sr-only
|
|
4922
|
+
className: " hplxt-sr-only hplxt-peer hplxt-border-0 focus:hplxt-border-0",
|
|
4923
4923
|
type: "radio",
|
|
4924
4924
|
value: value,
|
|
4925
4925
|
name: "radioBtn",
|
|
@@ -4929,12 +4929,12 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4929
4929
|
onChange: onChange,
|
|
4930
4930
|
checked: checked
|
|
4931
4931
|
}), jsxRuntime.exports.jsx("label", {
|
|
4932
|
-
className: "".concat(getPaddingClassName(size, disabled)),
|
|
4932
|
+
className: " ".concat(getPaddingClassName(size, disabled)),
|
|
4933
4933
|
htmlFor: id
|
|
4934
4934
|
}), jsxRuntime.exports.jsx("div", {
|
|
4935
4935
|
className: "".concat(getIconTypeClassName(iconfile, size, disabled))
|
|
4936
4936
|
}), jsxRuntime.exports.jsxs("label", __assign({
|
|
4937
|
-
className: " hplxt-mx-4
|
|
4937
|
+
className: " ".concat(size === "sm" ? "peer-checked:hplxt-mx-[20.85px]" : "peer-checked:hplxt-mx-[22px]", " hplxt-mx-4 ").concat(getLabelStyle$1(disabled), " "),
|
|
4938
4938
|
htmlFor: id
|
|
4939
4939
|
}, {
|
|
4940
4940
|
children: [jsxRuntime.exports.jsx(Typography, __assign({
|