@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.js
CHANGED
|
@@ -182,18 +182,22 @@ var AlertSize = /* @__PURE__ */ ((AlertSize2) => {
|
|
|
182
182
|
AlertSize2["L"] = "L";
|
|
183
183
|
return AlertSize2;
|
|
184
184
|
})(AlertSize || {});
|
|
185
|
+
var iconCircleStroke = {
|
|
186
|
+
["INFO" /* INFO */]: "[&_circle]:stroke-[var(--alert-box-info-icon-fill)]",
|
|
187
|
+
["ERROR" /* ERROR */]: "[&_circle]:stroke-[var(--alert-box-error-icon-fill)]"
|
|
188
|
+
};
|
|
185
189
|
var getIcon = (type) => {
|
|
186
190
|
const key = type.toLowerCase();
|
|
187
191
|
const iconProps = {
|
|
188
|
-
className: "relative",
|
|
192
|
+
className: cn("relative", iconCircleStroke[type]),
|
|
189
193
|
fill: `var(--alert-box-${key}-icon-fill)`,
|
|
190
|
-
stroke: `var(--alert-box-${key}-icon)`
|
|
194
|
+
stroke: `var(--alert-box-${key}-icon-stroke)`
|
|
191
195
|
};
|
|
192
196
|
return {
|
|
193
197
|
["INFO" /* INFO */]: /* @__PURE__ */ jsx3(AlertCircle, { ...iconProps }),
|
|
194
198
|
["WARNING" /* WARNING */]: /* @__PURE__ */ jsx3(TriangleAlert, { ...iconProps }),
|
|
195
199
|
["ERROR" /* ERROR */]: /* @__PURE__ */ jsx3(XCircle, { ...iconProps }),
|
|
196
|
-
["LIGHT" /* LIGHT */]:
|
|
200
|
+
["LIGHT" /* LIGHT */]: null,
|
|
197
201
|
["SUCCESS" /* SUCCESS */]: /* @__PURE__ */ jsx3(Check, { ...iconProps })
|
|
198
202
|
}[type];
|
|
199
203
|
};
|
|
@@ -7952,7 +7956,7 @@ var LinkInternal = forwardRef29(
|
|
|
7952
7956
|
{
|
|
7953
7957
|
ref,
|
|
7954
7958
|
className: cn(
|
|
7955
|
-
"inline cursor-pointer text-[var(--link-text-color)] [text-decoration:var(--link-text-decoration)] transition-all duration-75 ease-in-out",
|
|
7959
|
+
"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",
|
|
7956
7960
|
!disabled && "hover:opacity-80 active:opacity-100",
|
|
7957
7961
|
disabled && "cursor-not-allowed text-[var(--link-disabled-text-color)]",
|
|
7958
7962
|
"[&_img]:inline [&_img]:align-middle [&_svg]:relative [&_svg]:bottom-[1px] [&_svg]:ml-1 [&_svg]:inline [&_svg]:align-middle",
|