@bccampus/ui-components 0.9.20 → 0.9.21

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.
@@ -3,7 +3,7 @@ import { S as Slot } from "../../_chunks/index.js";
3
3
  import { c as cva } from "../../_chunks/index2.js";
4
4
  import { c as cn } from "../../_chunks/utils.js";
5
5
  const tagVariants = cva(
6
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm bg-complement-3 text-white [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",
6
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm font-sans-accent text-sm bg-complement-3 text-white [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",
7
7
  {
8
8
  variants: {
9
9
  variant: {
@@ -12,8 +12,8 @@ const tagVariants = cva(
12
12
  },
13
13
  size: {
14
14
  default: "h-8 px-4 py-1.5 has-[>svg]:px-3",
15
- sm: "h-6 gap-1 px-3 has-[>svg]:px-2.5",
16
- lg: "scroll-mr-6 text-xl/5 font-medium h-16 px-8 has-[>svg]:px-4",
15
+ sm: "gap-1 px-4 py-1 has-[>svg]:px-2.5",
16
+ lg: "scroll-mr-6 text-xl/5 font-medium px-6 py-3 has-[>svg]:px-4",
17
17
  icon: "size-8"
18
18
  }
19
19
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bccampus/ui-components",
3
- "version": "0.9.20",
3
+ "version": "0.9.21",
4
4
  "description": "BCcampus React components",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -1,38 +1,38 @@
1
- import { Slot } from "@radix-ui/react-slot";
2
- import { cva, type VariantProps } from "class-variance-authority";
3
-
4
- import { cn } from "@/lib/utils";
5
-
6
- export type TagVariantsProps = VariantProps<typeof tagVariants>;
7
- export const tagVariants = cva(
8
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm bg-complement-3 text-white [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",
9
- {
10
- variants: {
11
- variant: {
12
- default: "",
13
- button:
14
- "hover:bg-primary transition-all disabled:pointer-events-none disabled:opacity-50 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
15
- },
16
- size: {
17
- default: "h-8 px-4 py-1.5 has-[>svg]:px-3",
18
- sm: "h-6 gap-1 px-3 has-[>svg]:px-2.5",
19
- lg: "scroll-mr-6 text-xl/5 font-medium h-16 px-8 has-[>svg]:px-4",
20
- icon: "size-8",
21
- },
22
- },
23
- defaultVariants: {
24
- variant: "default",
25
- size: "default",
26
- },
27
- },
28
- );
29
-
30
- export interface TagProps extends React.ComponentProps<"div">, TagVariantsProps {
31
- asChild?: boolean;
32
- }
33
-
34
- export function Tag({ className, size, variant, asChild = false, ...props }: TagProps) {
35
- const Comp = asChild ? Slot : "div";
36
-
37
- return <Comp data-slot="tag" className={cn(tagVariants({ variant, size }), className)} {...props} />;
38
- }
1
+ import { Slot } from "@radix-ui/react-slot";
2
+ import { cva, type VariantProps } from "class-variance-authority";
3
+
4
+ import { cn } from "@/lib/utils";
5
+
6
+ export type TagVariantsProps = VariantProps<typeof tagVariants>;
7
+ export const tagVariants = cva(
8
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm font-sans-accent text-sm bg-complement-3 text-white [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default: "",
13
+ button:
14
+ "hover:bg-primary transition-all disabled:pointer-events-none disabled:opacity-50 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
15
+ },
16
+ size: {
17
+ default: "h-8 px-4 py-1.5 has-[>svg]:px-3",
18
+ sm: "gap-1 px-4 py-1 has-[>svg]:px-2.5",
19
+ lg: "scroll-mr-6 text-xl/5 font-medium px-6 py-3 has-[>svg]:px-4",
20
+ icon: "size-8",
21
+ },
22
+ },
23
+ defaultVariants: {
24
+ variant: "default",
25
+ size: "default",
26
+ },
27
+ },
28
+ );
29
+
30
+ export interface TagProps extends React.ComponentProps<"div">, TagVariantsProps {
31
+ asChild?: boolean;
32
+ }
33
+
34
+ export function Tag({ className, size, variant, asChild = false, ...props }: TagProps) {
35
+ const Comp = asChild ? Slot : "div";
36
+
37
+ return <Comp data-slot="tag" className={cn(tagVariants({ variant, size }), className)} {...props} />;
38
+ }