@ai-matrx/design-system 0.3.1 → 0.4.0

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
@@ -23,8 +23,8 @@ var badgeVariants = cva(
23
23
  outline: "border-border text-foreground",
24
24
  success: "border-transparent bg-success/15 text-success",
25
25
  warning: "border-transparent bg-warning/15 text-warning",
26
- info: "border-blue-200 bg-blue-100 text-blue-800",
27
- error: "border-transparent bg-red-500/15 text-red-700 dark:text-red-400",
26
+ info: "border-info/30 bg-info/15 text-info",
27
+ error: "border-transparent bg-destructive/15 text-destructive",
28
28
  neutral: "border-border bg-muted text-muted-foreground"
29
29
  }
30
30
  },
@@ -229,8 +229,8 @@ function BottomSheet({
229
229
  /* @__PURE__ */ jsx4(
230
230
  DrawerPrimitive.Overlay,
231
231
  {
232
- className: cn("fixed inset-0 z-50 bg-black/80", "fixed inset-0 z-50"),
233
- style: { background: "rgba(0, 0, 0, 0.08)" }
232
+ className: cn("fixed inset-0 z-50 bg-[var(--matrx-overlay-scrim)]", "fixed inset-0 z-50"),
233
+ style: { background: "var(--matrx-overlay-scrim-drawer)" }
234
234
  }
235
235
  ),
236
236
  /* @__PURE__ */ jsxs2(
@@ -307,7 +307,7 @@ function BottomSheetFooter({
307
307
  "div",
308
308
  {
309
309
  className: cn(
310
- "flex-shrink-0 px-4 py-3 pb-safe border-t border-white/[0.06]",
310
+ "flex-shrink-0 px-4 py-3 pb-safe border-t border-[var(--matrx-sheet-divider)]",
311
311
  className
312
312
  ),
313
313
  children
@@ -431,7 +431,7 @@ var CommandDialogContent = React5.forwardRef(({ className, children, container,
431
431
  isModal ? /* @__PURE__ */ jsx7(
432
432
  DialogPrimitive.Overlay,
433
433
  {
434
- className: "fixed inset-0 z-[10000] bg-black/20 dark:bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
434
+ className: "fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
435
435
  }
436
436
  ) : null,
437
437
  /* @__PURE__ */ jsxs3(
@@ -1028,14 +1028,14 @@ function EditableLabel({
1028
1028
  import * as React7 from "react";
1029
1029
  import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
1030
1030
  var getVariantStyles = (variant = "default") => {
1031
- const baseStyles = `flex h-10 w-full border border-border bg-background text-black dark:text-white shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
1032
- file:text-sm file:font-medium placeholder:text-neutral-400 dark:placeholder-text-neutral-600
1033
- focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-neutral-400 dark:focus-visible:ring-neutral-600
1031
+ const baseStyles = `flex h-10 w-full border border-border bg-background text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
1032
+ file:text-sm file:font-medium placeholder:text-muted-foreground
1033
+ focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring
1034
1034
  disabled:cursor-not-allowed disabled:opacity-50
1035
- dark:shadow-[0px_0px_1px_1px_var(--neutral-700)]
1035
+ dark:shadow-none
1036
1036
  transition duration-400
1037
1037
  [&:-webkit-autofill]:bg-background [&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--background))_inset] [&:-webkit-autofill]:[caret-color:currentColor]
1038
- dark:[&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--background))_inset] dark:[&:-webkit-autofill]:[-webkit-text-fill-color:white]
1038
+ dark:[&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--background))_inset] dark:[&:-webkit-autofill]:[-webkit-text-fill-color:hsl(var(--foreground))]
1039
1039
  [&:-webkit-autofill:hover]:shadow-[0_0_0_1000px_hsl(var(--background))_inset] [&:-webkit-autofill:focus]:shadow-[0_0_0_1000px_hsl(var(--background))_inset]`;
1040
1040
  switch (variant) {
1041
1041
  case "destructive":
@@ -1314,15 +1314,15 @@ var DEFAULT_SCORE_THRESHOLDS = {
1314
1314
  };
1315
1315
  function scoreRingColorClasses(pct, thresholds = DEFAULT_SCORE_THRESHOLDS) {
1316
1316
  if (pct === null) return "text-muted-foreground";
1317
- if (pct >= thresholds.good) return "text-green-500";
1318
- if (pct >= thresholds.warning) return "text-orange-500";
1319
- return "text-red-500";
1317
+ if (pct >= thresholds.good) return "text-success";
1318
+ if (pct >= thresholds.warning) return "text-warning";
1319
+ return "text-destructive";
1320
1320
  }
1321
1321
  function scoreAccentBgClasses(pct, thresholds = DEFAULT_SCORE_THRESHOLDS) {
1322
1322
  if (pct === null) return "bg-muted-foreground/30";
1323
- if (pct >= thresholds.good) return "bg-green-500";
1324
- if (pct >= thresholds.warning) return "bg-orange-500";
1325
- return "bg-red-500";
1323
+ if (pct >= thresholds.good) return "bg-success";
1324
+ if (pct >= thresholds.warning) return "bg-warning";
1325
+ return "bg-destructive";
1326
1326
  }
1327
1327
  function ScoreRing({
1328
1328
  pct,
@@ -1629,7 +1629,7 @@ var SheetOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
1629
1629
  SheetPrimitive.Overlay,
1630
1630
  {
1631
1631
  className: cn(
1632
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1632
+ "fixed inset-0 z-50 bg-[var(--matrx-overlay-scrim)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1633
1633
  className
1634
1634
  ),
1635
1635
  ...props,