@chekinapp/ui 0.2.8 → 0.2.9

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 CHANGED
@@ -182,24 +182,32 @@ var AlertSize = /* @__PURE__ */ ((AlertSize2) => {
182
182
  AlertSize2["L"] = "L";
183
183
  return AlertSize2;
184
184
  })(AlertSize || {});
185
- var getIcon = (type) => ({
186
- ["INFO" /* INFO */]: /* @__PURE__ */ jsx3(AlertCircle, { className: "relative" }),
187
- ["WARNING" /* WARNING */]: /* @__PURE__ */ jsx3(TriangleAlert, { className: "relative" }),
188
- ["ERROR" /* ERROR */]: /* @__PURE__ */ jsx3(XCircle, { className: "relative" }),
189
- ["LIGHT" /* LIGHT */]: null,
190
- ["SUCCESS" /* SUCCESS */]: /* @__PURE__ */ jsx3(Check, { className: "relative" })
191
- })[type];
185
+ var getIcon = (type) => {
186
+ const key = type.toLowerCase();
187
+ const iconProps = {
188
+ className: "relative",
189
+ fill: `var(--alert-box-${key}-icon-fill)`,
190
+ stroke: `var(--alert-box-${key}-icon)`
191
+ };
192
+ return {
193
+ ["INFO" /* INFO */]: /* @__PURE__ */ jsx3(AlertCircle, { ...iconProps }),
194
+ ["WARNING" /* WARNING */]: /* @__PURE__ */ jsx3(TriangleAlert, { ...iconProps }),
195
+ ["ERROR" /* ERROR */]: /* @__PURE__ */ jsx3(XCircle, { ...iconProps }),
196
+ ["LIGHT" /* LIGHT */]: /* @__PURE__ */ jsx3(AlertCircle, { ...iconProps }),
197
+ ["SUCCESS" /* SUCCESS */]: /* @__PURE__ */ jsx3(Check, { ...iconProps })
198
+ }[type];
199
+ };
192
200
  var sizeClasses = {
193
201
  ["S" /* S */]: "px-3 py-3 text-sm font-medium items-start",
194
202
  ["M" /* M */]: "p-4 text-base font-medium items-start",
195
203
  ["L" /* L */]: "px-6 py-5 items-start"
196
204
  };
197
205
  var typeStyles = {
198
- ["INFO" /* INFO */]: "bg-[var(--alert-box-info-bg)] [&_svg]:text-[var(--alert-box-info-icon)]",
199
- ["WARNING" /* WARNING */]: "bg-[var(--alert-box-warning-bg)] [&_svg]:text-[var(--alert-box-warning-icon)]",
200
- ["ERROR" /* ERROR */]: "bg-[var(--alert-box-error-bg)] [&_svg]:text-[var(--alert-box-error-icon)]",
201
- ["SUCCESS" /* SUCCESS */]: "bg-[var(--alert-box-success-bg)] text-[var(--alert-box-success-text)] [&_svg]:text-[var(--alert-box-success-icon)]",
202
- ["LIGHT" /* LIGHT */]: ""
206
+ ["INFO" /* INFO */]: "border-[color:var(--alert-box-info-border)] bg-[var(--alert-box-info-bg)] text-[color:var(--alert-box-info-text)]",
207
+ ["WARNING" /* WARNING */]: "border-[color:var(--alert-box-warning-border)] bg-[var(--alert-box-warning-bg)] text-[color:var(--alert-box-warning-text)]",
208
+ ["ERROR" /* ERROR */]: "border-[color:var(--alert-box-error-border)] bg-[var(--alert-box-error-bg)] text-[color:var(--alert-box-error-text)]",
209
+ ["SUCCESS" /* SUCCESS */]: "border-[color:var(--alert-box-success-border)] bg-[var(--alert-box-success-bg)] text-[color:var(--alert-box-success-text)]",
210
+ ["LIGHT" /* LIGHT */]: "border-[color:var(--alert-box-light-border)] bg-[var(--alert-box-light-bg)] text-[color:var(--alert-box-light-text)]"
203
211
  };
204
212
  function AlertBox({
205
213
  children,
@@ -213,7 +221,7 @@ function AlertBox({
213
221
  {
214
222
  "data-slot": "alert-box",
215
223
  className: cn(
216
- "flex gap-3 rounded-[var(--alert-box-radius)] [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
224
+ "flex gap-3 rounded-[var(--alert-box-radius)] border-solid border-[length:var(--alert-box-border-width)] [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
217
225
  sizeClasses[size],
218
226
  typeStyles[type],
219
227
  className
@@ -7944,9 +7952,9 @@ var LinkInternal = forwardRef29(
7944
7952
  {
7945
7953
  ref,
7946
7954
  className: cn(
7947
- "inline cursor-pointer text-[var(--button-link-text)] no-underline transition-all duration-75 ease-in-out",
7955
+ "inline cursor-pointer text-[var(--link-text-color)] [text-decoration:var(--link-text-decoration)] transition-all duration-75 ease-in-out",
7948
7956
  !disabled && "hover:opacity-80 active:opacity-100",
7949
- disabled && "cursor-not-allowed text-[var(--chekin-neutral-400)]",
7957
+ disabled && "cursor-not-allowed text-[var(--link-disabled-text-color)]",
7950
7958
  "[&_img]:inline [&_img]:align-middle [&_svg]:relative [&_svg]:bottom-[1px] [&_svg]:ml-1 [&_svg]:inline [&_svg]:align-middle",
7951
7959
  className
7952
7960
  ),