elegant-lib 0.0.1 → 0.0.2

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/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import "react";
2
2
  import "class-variance-authority";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import { ButtonProps } from "@base-ui/react";
4
5
 
5
6
  //#region src/components/ui/button.d.ts
6
-
7
- declare function Button(): react_jsx_runtime0.JSX.Element;
7
+ type Props = ButtonProps;
8
+ declare function Button(props: Props): react_jsx_runtime0.JSX.Element;
8
9
  //#endregion
9
10
  export { Button };
package/dist/index.js CHANGED
@@ -11,16 +11,20 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
11
11
  variants: {
12
12
  variant: {
13
13
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
14
- destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
14
+ contained: "bg-primary text-primary-foreground hover:bg-primary/90",
15
+ primary: "bg-primary text-primary-foreground hover:bg-primary/90",
16
+ error: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
17
+ info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info/20 dark:focus-visible:ring-info/40 dark:bg-info/60",
18
+ warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40 dark:bg-warning/60",
15
19
  outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
16
20
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
17
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
18
- link: "text-primary underline-offset-4 hover:underline"
21
+ text: "text-primary underline-offset-4 hover:underline"
19
22
  },
20
23
  size: {
21
24
  default: "h-9 px-4 py-2 has-[>svg]:px-3",
22
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
23
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
25
+ medium: "h-9 px-4 py-2 has-[>svg]:px-3",
26
+ small: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
27
+ large: "h-10 rounded-md px-6 has-[>svg]:px-4",
24
28
  icon: "size-9",
25
29
  "icon-sm": "size-8",
26
30
  "icon-lg": "size-10"
@@ -31,9 +35,10 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
31
35
  size: "default"
32
36
  }
33
37
  });
34
- function Button() {
38
+ function Button(props) {
35
39
  return /* @__PURE__ */ jsx(MuiButton, {
36
- variant: "contained",
40
+ ...props,
41
+ variant: "",
37
42
  children: "Hello world"
38
43
  });
39
44
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elegant-lib",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "A starter for creating a React component library.",
6
6
  "author": "Author Name <author.name@mail.com>",
7
7
  "license": "MIT",