@mbao01/common 0.0.38 → 0.0.39

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.
@@ -5,7 +5,7 @@ declare const Select: {
5
5
  Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
6
6
  Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
7
7
  Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
8
- variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
8
+ variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
9
9
  outline?: boolean | undefined;
10
10
  wide?: boolean | undefined;
11
11
  size?: "xs" | "sm" | "md" | "lg" | undefined;
@@ -15,7 +15,7 @@ declare const Select: {
15
15
  } & React.RefAttributes<HTMLDivElement>>;
16
16
  Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
17
  Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
- variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
18
+ variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | undefined;
19
19
  outline?: boolean | undefined;
20
20
  wide?: boolean | undefined;
21
21
  size?: "xs" | "sm" | "md" | "lg" | undefined;
@@ -1,11 +1,11 @@
1
1
  export declare const getSelectTriggerClasses: (props?: ({
2
- variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
2
+ variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
3
  outline?: boolean | null | undefined;
4
4
  wide?: boolean | null | undefined;
5
5
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export declare const getSelectItemClasses: (props?: ({
8
- variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
8
+ variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  export declare const getSelectLabelClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
11
11
  export declare const getSelectSeparatorClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "ref" | "size"> & {
3
- variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | "ghost" | undefined;
3
+ variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | "ghost" | undefined;
4
4
  outline?: boolean | undefined;
5
5
  wide?: boolean | undefined;
6
6
  size?: "xs" | "sm" | "md" | "lg" | undefined;
@@ -1,5 +1,5 @@
1
1
  export declare const getTextareaClasses: (props?: ({
2
- variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | "ghost" | null | undefined;
2
+ variant?: "accent" | "default" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | "ghost" | null | undefined;
3
3
  outline?: boolean | null | undefined;
4
4
  wide?: boolean | null | undefined;
5
5
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mbao01/common",
3
3
  "private": false,
4
- "version": "0.0.38",
4
+ "version": "0.0.39",
5
5
  "type": "module",
6
6
  "author": "Ayomide Bakare",
7
7
  "license": "MIT",
@@ -146,5 +146,5 @@
146
146
  "react-dom": "^18.2.0",
147
147
  "typescript": "^5.2.2"
148
148
  },
149
- "gitHead": "5f3422b1162cdb852a5f5b1148bc7df241d52e66"
149
+ "gitHead": "02c3be513cd89851dabe9fa84289a247a8e92630"
150
150
  }
@@ -1,10 +1,11 @@
1
1
  import { cva } from "../../../libs";
2
2
 
3
3
  export const getSelectTriggerClasses = cva(
4
- "select flex items-center justify-between rounded-md text-sm text-left ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
4
+ "select flex items-center justify-between rounded-md text-sm text-left disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-all duration-100",
5
5
  {
6
6
  variants: {
7
7
  variant: {
8
+ default: "bg-transparent",
8
9
  primary: "select-primary",
9
10
  secondary: "select-secondary",
10
11
  accent: "select-accent",
@@ -31,6 +32,16 @@ export const getSelectTriggerClasses = cva(
31
32
  size: undefined,
32
33
  className: "min-h-fit h-10",
33
34
  },
35
+ {
36
+ variant: undefined,
37
+ outline: true,
38
+ className: "border-neutral-content",
39
+ },
40
+ {
41
+ variant: "default",
42
+ outline: true,
43
+ className: "border-base-content",
44
+ },
34
45
  ],
35
46
  }
36
47
  );
@@ -40,6 +51,7 @@ export const getSelectItemClasses = cva(
40
51
  {
41
52
  variants: {
42
53
  variant: {
54
+ default: "focus:bg-transparent focus:text-base-content",
43
55
  primary: "focus:bg-primary focus:text-primary-content",
44
56
  secondary: "focus:bg-secondary focus:text-secondary-content",
45
57
  accent: "focus:bg-accent focus:text-accent-content",
@@ -5,6 +5,7 @@ export const getTextareaClasses = cva(
5
5
  {
6
6
  variants: {
7
7
  variant: {
8
+ default: "bg-transparent",
8
9
  accent: "textarea-accent",
9
10
  error: "textarea-error",
10
11
  ghost: "textarea-ghost",
@@ -32,6 +33,16 @@ export const getTextareaClasses = cva(
32
33
  size: undefined,
33
34
  className: "min-h-fit h-10",
34
35
  },
36
+ {
37
+ variant: undefined,
38
+ outline: true,
39
+ className: "border-neutral-content",
40
+ },
41
+ {
42
+ variant: "default",
43
+ outline: true,
44
+ className: "border-base-content",
45
+ },
35
46
  ],
36
47
  }
37
48
  );