@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.
- package/README.md +9 -0
- package/dist/badge.js +1 -1
- package/dist/button.js +2 -2
- package/dist/calendar.js +4 -4
- package/dist/card.js +2 -1
- package/dist/command-search.js +1 -1
- package/dist/count-badge.js +2 -2
- package/dist/date-input.js +1 -1
- package/dist/dialog-primitive.js +9 -1
- package/dist/drawer.js +6 -0
- package/dist/dropdown-button.js +2 -2
- package/dist/file-upload.js +1 -1
- package/dist/filter-toggle.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/input-control.d.ts +1 -1
- package/dist/input-control.js +1 -1
- package/dist/link.js +2 -2
- package/dist/message-item.js +2 -2
- package/dist/multi-select.js +2 -2
- package/dist/page-header.d.ts +3 -1
- package/dist/page-header.js +2 -2
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +4 -3
- package/dist/popover-menu.js +3 -3
- package/dist/popover-primitive.js +9 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/select-primitive.js +12 -4
- package/dist/spinner.js +1 -1
- package/dist/styles.css +18 -0
- package/dist/table.d.ts +17 -5
- package/dist/table.js +136 -86
- package/dist/tailwind-preset.js +15 -0
- package/dist/theme.d.ts +45 -0
- package/dist/theme.js +36 -0
- package/dist/toaster.js +2 -2
- package/dist/tooltip.js +9 -1
- package/dist/typography.js +3 -3
- package/dist/use-search-highlight.js +1 -1
- package/package.json +1 -1
package/dist/typography.js
CHANGED
|
@@ -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-
|
|
16
|
-
eyebrow: "text-[11px] font-semibold uppercase leading-4 tracking-normal text-
|
|
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-
|
|
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-
|
|
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 };
|