New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mbao01/ui

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mbao01/ui - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

1

./src/index.ts
export * from "@mbao01/common";
export * from "./components/Breadcrumbs";
export * from "./components/Link";

9

dist/types/components/Link/constant.d.ts

@@ -1,5 +0,4 @@

import { LinkVariant } from './types';
export declare const getLinkClasses: ({ hover, variant }: {
hover?: boolean | undefined;
variant?: LinkVariant | undefined;
}) => string;
export declare const getLinkClasses: (props?: ({
variant?: "accent" | "default" | "error" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
hover?: boolean | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
import type { To, LinkProps as RouterLinkProps } from "react-router-dom";
export type LinkVariant = "default" | "neutral" | "primary" | "secondary" | "accent" | "link" | "info" | "success" | "warning" | "error";
import { type VariantProps } from "@mbao01/common/libs";
import { getLinkClasses } from "./constant";
export type LinkProps = Omit<RouterLinkProps, "to"> & {
href: To;
hover?: boolean;
variant?: LinkVariant;
};
} & VariantProps<typeof getLinkClasses>;
export * from "@mbao01/common";
export * from "./components/Breadcrumbs";
export * from "./components/Link";
{
"name": "@mbao01/ui",
"private": false,
"version": "0.1.6",
"version": "0.1.7",
"type": "module",

@@ -43,4 +43,4 @@ "author": "Ayomide Bakare",

"dependencies": {
"@heroicons/react": "^2.1.1",
"@mbao01/common": "^0.0.5",
"@mbao01/common": "^0.0.6",
"@radix-ui/react-icons": "^1.3.0",
"clsx": "^2.1.0"

@@ -91,3 +91,3 @@ },

},
"gitHead": "d40fb1867ee09180de85ab18ffe74c4436e43413"
"gitHead": "ceb6cef48e8547b4da5c51dda329bd6edee73c0b"
}

@@ -39,3 +39,3 @@

"plugins": [
require("@mbao01/common/plugin"), // -> import the tailwind library plugin
...require("@mbao01/common/plugin"), // -> import the tailwind library plugin
...

@@ -42,0 +42,0 @@ ]

@@ -1,21 +0,21 @@

import c from 'clsx';
import { LinkVariant } from './types';
import { cva } from "@mbao01/common/libs";
const LINK_VARIANTS = {
accent: c('link-accent'),
default: c('link-default'),
error: c('link-error'),
info: c('link-info'),
link: c('link-link'),
neutral: c('link-neutral'),
primary: c('link-primary'),
secondary: c('link-secondary'),
success: c('link-success'),
warning: c('link-warning'),
} satisfies Record<LinkVariant, string>;
export const getLinkClasses = ({ hover, variant }: { hover?: boolean; variant?: LinkVariant }) => {
return c('link transition-all', LINK_VARIANTS[variant!], {
'link-hover': hover,
});
};
export const getLinkClasses = cva("link transition-all", {
variants: {
variant: {
accent: "link-accent",
default: "link-default",
error: "link-error",
info: "link-info",
link: "link-link",
neutral: "link-neutral",
primary: "link-primary",
secondary: "link-secondary",
success: "link-success",
warning: "link-warning",
},
hover: {
true: "link-hover",
},
},
});
import type { To, LinkProps as RouterLinkProps } from "react-router-dom";
import { type VariantProps } from "@mbao01/common/libs";
import { getLinkClasses } from "./constant";
export type LinkVariant =
| "default"
| "neutral"
| "primary"
| "secondary"
| "accent"
| "link"
| "info"
| "success"
| "warning"
| "error";
export type LinkProps = Omit<RouterLinkProps, "to"> & {
href: To;
hover?: boolean;
variant?: LinkVariant;
};
} & VariantProps<typeof getLinkClasses>;
export * from "@mbao01/common";
export * from "./components/Breadcrumbs";
export * from "./components/Link";

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc