@neasg/design-system 0.4.22 → 0.4.24

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.
@@ -12,8 +12,8 @@ const typographyVariants = cva("", {
12
12
  body: "text-base text-foreground",
13
13
  bodySm: "text-sm text-foreground",
14
14
  label: "text-sm font-medium leading-5 text-foreground",
15
- caption: "text-sm text-muted-foreground",
16
- eyebrow: "text-[11px] font-semibold uppercase leading-4 tracking-normal text-muted-foreground",
15
+ caption: "text-sm text-instructional",
16
+ eyebrow: "text-[11px] font-semibold uppercase leading-4 tracking-normal text-instructional",
17
17
  },
18
18
  },
19
19
  defaultVariants: {
@@ -40,7 +40,7 @@ const Typography = React.forwardRef(({ as, asChild = false, className, variant,
40
40
  : color === "foreground"
41
41
  ? "text-foreground"
42
42
  : color === "muted"
43
- ? "text-muted-foreground"
43
+ ? "text-instructional"
44
44
  : undefined;
45
45
  return (_jsx(Comp, { ref: ref, className: cn(typographyVariants({ variant: resolvedVariant }), colorClass, className), ...props }));
46
46
  });
@@ -41,6 +41,6 @@ function useSearchHighlight(text, query) {
41
41
  }
42
42
  function SearchHighlight({ text, query, className, markClassName, ...props }) {
43
43
  const segments = useSearchHighlight(text, query);
44
- return (_jsx("span", { className: className, ...props, children: segments.map((segment, index) => segment.matched ? (_jsx("mark", { className: cn("rounded-[2px] bg-primary/10 px-0.5 font-medium text-primary dark:bg-primary/50 dark:text-foreground dark:ring-1 dark:ring-inset dark:ring-[hsl(var(--status-success-foreground)/0.55)]", markClassName), children: segment.text }, `${segment.text}-${index}`)) : (_jsx(React.Fragment, { children: segment.text }, `${segment.text}-${index}`))) }));
44
+ return (_jsx("span", { className: className, ...props, children: segments.map((segment, index) => segment.matched ? (_jsx("mark", { className: cn("rounded-[2px] bg-highlight px-0.5 font-medium text-highlight-foreground", markClassName), children: segment.text }, `${segment.text}-${index}`)) : (_jsx(React.Fragment, { children: segment.text }, `${segment.text}-${index}`))) }));
45
45
  }
46
46
  export { SearchHighlight, useSearchHighlight };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neasg/design-system",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
4
4
  "description": "NEA shared design system primitives, theme tokens, and Storybook docs.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",