@chekinapp/ui 0.2.9 → 0.2.11
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.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -606,18 +606,22 @@ var AlertSize = /* @__PURE__ */ ((AlertSize2) => {
|
|
|
606
606
|
AlertSize2["L"] = "L";
|
|
607
607
|
return AlertSize2;
|
|
608
608
|
})(AlertSize || {});
|
|
609
|
+
var iconCircleStroke = {
|
|
610
|
+
["INFO" /* INFO */]: "[&_circle]:stroke-[var(--alert-box-info-icon-fill)]",
|
|
611
|
+
["ERROR" /* ERROR */]: "[&_circle]:stroke-[var(--alert-box-error-icon-fill)]"
|
|
612
|
+
};
|
|
609
613
|
var getIcon = (type) => {
|
|
610
614
|
const key = type.toLowerCase();
|
|
611
615
|
const iconProps = {
|
|
612
|
-
className: "relative",
|
|
616
|
+
className: cn("relative", iconCircleStroke[type]),
|
|
613
617
|
fill: `var(--alert-box-${key}-icon-fill)`,
|
|
614
|
-
stroke: `var(--alert-box-${key}-icon)`
|
|
618
|
+
stroke: `var(--alert-box-${key}-icon-stroke)`
|
|
615
619
|
};
|
|
616
620
|
return {
|
|
617
621
|
["INFO" /* INFO */]: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.AlertCircle, { ...iconProps }),
|
|
618
622
|
["WARNING" /* WARNING */]: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.TriangleAlert, { ...iconProps }),
|
|
619
623
|
["ERROR" /* ERROR */]: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.XCircle, { ...iconProps }),
|
|
620
|
-
["LIGHT" /* LIGHT */]:
|
|
624
|
+
["LIGHT" /* LIGHT */]: null,
|
|
621
625
|
["SUCCESS" /* SUCCESS */]: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.Check, { ...iconProps })
|
|
622
626
|
}[type];
|
|
623
627
|
};
|
|
@@ -8355,7 +8359,7 @@ var LinkInternal = (0, import_react53.forwardRef)(
|
|
|
8355
8359
|
{
|
|
8356
8360
|
ref,
|
|
8357
8361
|
className: cn(
|
|
8358
|
-
"inline cursor-pointer text-[var(--link-text-color)] [text-decoration:var(--link-text-decoration)] transition-all duration-75 ease-in-out",
|
|
8362
|
+
"inline cursor-pointer text-[var(--link-text-color)] font-[var(--link-font-weight)] [text-decoration:var(--link-text-decoration)] transition-all duration-75 ease-in-out",
|
|
8359
8363
|
!disabled && "hover:opacity-80 active:opacity-100",
|
|
8360
8364
|
disabled && "cursor-not-allowed text-[var(--link-disabled-text-color)]",
|
|
8361
8365
|
"[&_img]:inline [&_img]:align-middle [&_svg]:relative [&_svg]:bottom-[1px] [&_svg]:ml-1 [&_svg]:inline [&_svg]:align-middle",
|