@xuefx/ui 1.0.0 → 1.0.1

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.es.js CHANGED
@@ -89,6 +89,9 @@ const x = i.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__
89
89
  ));
90
90
  x.displayName = "AlertDescription";
91
91
  export {
92
+ p as Alert,
93
+ x as AlertDescription,
94
+ b as AlertTitle,
92
95
  g as Button,
93
96
  a as cn
94
97
  };
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(e,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("@xuefx/ui-theme/styles.css"),require("react/jsx-runtime"),require("react"),require("class-variance-authority"),require("clsx"),require("tailwind-merge")):typeof define=="function"&&define.amd?define(["exports","@xuefx/ui-theme/styles.css","react/jsx-runtime","react","class-variance-authority","clsx","tailwind-merge"],a):(e=typeof globalThis<"u"?globalThis:e||self,a(e.ImxUI={},null,e.jsxRuntime,e.React,e.classVarianceAuthority,e.clsx,e.tailwindMerge))})(this,function(e,a,o,d,c,f,v){"use strict";function s(...t){return v.twMerge(f.clsx(t))}const g=c.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=d.forwardRef(({className:t,variant:r,size:n,type:i="button",children:u,...y},h)=>o.jsx("button",{ref:h,type:i,className:s(g({variant:r,size:n,className:t})),...y,children:u}));l.displayName="Button";const m=c.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),p=d.forwardRef(({className:t,variant:r,children:n,...i},u)=>o.jsx("div",{ref:u,role:"alert",className:s(m({variant:r,className:t})),...i,children:n}));p.displayName="Alert";const x=d.forwardRef(({className:t,children:r,...n},i)=>o.jsx("h5",{ref:i,className:s("mb-1 font-medium leading-none tracking-tight",t),...n,children:r}));x.displayName="AlertTitle";const b=d.forwardRef(({className:t,children:r,...n},i)=>o.jsx("div",{ref:i,className:s("text-sm [&_p]:leading-relaxed",t),...n,children:r}));b.displayName="AlertDescription",e.Button=l,e.cn=s,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("@xuefx/ui-theme/styles.css"),require("react/jsx-runtime"),require("react"),require("class-variance-authority"),require("clsx"),require("tailwind-merge")):typeof define=="function"&&define.amd?define(["exports","@xuefx/ui-theme/styles.css","react/jsx-runtime","react","class-variance-authority","clsx","tailwind-merge"],a):(e=typeof globalThis<"u"?globalThis:e||self,a(e.ImxUI={},null,e.jsxRuntime,e.React,e.classVarianceAuthority,e.clsx,e.tailwindMerge))})(this,function(e,a,o,d,c,m,p){"use strict";function s(...t){return p.twMerge(m.clsx(t))}const x=c.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=d.forwardRef(({className:t,variant:r,size:n,type:i="button",children:u,...y},h)=>o.jsx("button",{ref:h,type:i,className:s(x({variant:r,size:n,className:t})),...y,children:u}));l.displayName="Button";const b=c.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),f=d.forwardRef(({className:t,variant:r,children:n,...i},u)=>o.jsx("div",{ref:u,role:"alert",className:s(b({variant:r,className:t})),...i,children:n}));f.displayName="Alert";const v=d.forwardRef(({className:t,children:r,...n},i)=>o.jsx("h5",{ref:i,className:s("mb-1 font-medium leading-none tracking-tight",t),...n,children:r}));v.displayName="AlertTitle";const g=d.forwardRef(({className:t,children:r,...n},i)=>o.jsx("div",{ref:i,className:s("text-sm [&_p]:leading-relaxed",t),...n,children:r}));g.displayName="AlertDescription",e.Alert=f,e.AlertDescription=g,e.AlertTitle=v,e.Button=l,e.cn=s,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuefx/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "React UI component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
@@ -12,11 +12,9 @@
12
12
  },
13
13
  "./style.css": "./dist/style.css"
14
14
  },
15
- "files": ["dist"],
16
- "scripts": {
17
- "build": "vite build",
18
- "dev": "vite build --watch"
19
- },
15
+ "files": [
16
+ "dist"
17
+ ],
20
18
  "keywords": [],
21
19
  "author": "",
22
20
  "license": "ISC",
@@ -24,9 +22,13 @@
24
22
  "class-variance-authority": "^0.7.1",
25
23
  "clsx": "^2.1.1",
26
24
  "tailwind-merge": "^3.6.0",
27
- "@xuefx/ui-theme": "workspace:^"
25
+ "@xuefx/ui-theme": "^1.0.0"
28
26
  },
29
27
  "devDependencies": {
30
28
  "tailwindcss": "^3.4.17"
29
+ },
30
+ "scripts": {
31
+ "build": "vite build",
32
+ "dev": "vite build --watch"
31
33
  }
32
- }
34
+ }