@sykoramaros/marosh-components 0.0.2 → 0.0.3

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,5 +1,8 @@
1
+ import { ClassValue } from 'clsx';
1
2
  import { JSX } from 'react/jsx-runtime';
2
3
 
4
+ export declare function cn(...inputs: ClassValue[]): string;
5
+
3
6
  export declare const CustomButton: ({ children, className, }: {
4
7
  children: React.ReactNode;
5
8
  className?: string;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),d=require("@radix-ui/react-slot"),u=require("class-variance-authority"),c=require("clsx"),l=require("tailwind-merge");function i(...e){return l.twMerge(c.clsx(e))}const g=u.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 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",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",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",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function v({className:e,variant:t="default",size:n="default",asChild:s=!1,...a}){const o=s?d.Slot:"button";return r.jsx(o,{"data-slot":"button","data-variant":t,"data-size":n,className:i(g({variant:t,size:n,className:e})),...a})}const b=({children:e,className:t})=>r.jsx(r.Fragment,{children:r.jsx(v,{className:i(t),children:e})});exports.CustomButton=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("clsx"),u=require("tailwind-merge"),r=require("react/jsx-runtime"),c=require("@radix-ui/react-slot"),l=require("class-variance-authority");function n(...e){return u.twMerge(d.clsx(e))}const g=l.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 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",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",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",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function v({className:e,variant:t="default",size:i="default",asChild:s=!1,...a}){const o=s?c.Slot:"button";return r.jsx(o,{"data-slot":"button","data-variant":t,"data-size":i,className:n(g({variant:t,size:i,className:e})),...a})}const b=({children:e,className:t})=>r.jsx(r.Fragment,{children:r.jsx(v,{className:n(t),children:e})});exports.CustomButton=b;exports.cn=n;
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { jsx as t, Fragment as s } from "react/jsx-runtime";
2
- import { Slot as d } from "@radix-ui/react-slot";
3
- import { cva as u } from "class-variance-authority";
4
- import { clsx as c } from "clsx";
5
- import { twMerge as g } from "tailwind-merge";
1
+ import { clsx as s } from "clsx";
2
+ import { twMerge as d } from "tailwind-merge";
3
+ import { jsx as t, Fragment as u } from "react/jsx-runtime";
4
+ import { Slot as c } from "@radix-ui/react-slot";
5
+ import { cva as g } from "class-variance-authority";
6
6
  function n(...e) {
7
- return g(c(e));
7
+ return d(s(e));
8
8
  }
9
- const v = u(
9
+ const v = g(
10
10
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 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",
11
11
  {
12
12
  variants: {
@@ -41,7 +41,7 @@ function l({
41
41
  ...a
42
42
  }) {
43
43
  return /* @__PURE__ */ t(
44
- o ? d : "button",
44
+ o ? c : "button",
45
45
  {
46
46
  "data-slot": "button",
47
47
  "data-variant": r,
@@ -54,8 +54,9 @@ function l({
54
54
  const k = ({
55
55
  children: e,
56
56
  className: r
57
- }) => /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(l, { className: n(r), children: e }) });
57
+ }) => /* @__PURE__ */ t(u, { children: /* @__PURE__ */ t(l, { className: n(r), children: e }) });
58
58
  export {
59
- k as CustomButton
59
+ k as CustomButton,
60
+ n as cn
60
61
  };
61
62
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sykoramaros/marosh-components",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",