@flaqai/ui-flaq 0.2.11 → 0.2.13
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/components/button.js +1 -0
- package/dist/components/dialog.js +1 -0
- package/dist/{index.d.mts → index.d.ts} +3 -3
- package/dist/index.js +1 -0
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/dist/components/button.mjs +0 -1
- package/dist/components/dialog.mjs +0 -1
- package/dist/index.mjs +0 -1
- /package/dist/components/{button.d.mts → button.d.ts} +0 -0
- /package/dist/components/{dialog.d.mts → dialog.d.ts} +0 -0
- /package/dist/lib/{utils.d.mts → utils.d.ts} +0 -0
- /package/dist/lib/{utils.mjs → utils.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cn as e}from"../lib/utils.js";import{cva as t}from"class-variance-authority";import{Slot as n}from"radix-ui";import{jsx as r}from"react/jsx-runtime";const i=t(`inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{default:`h-10 px-4 py-2`,lg:`h-11 px-8`,sm:`h-9 rounded-md px-3`},variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,outline:`border border-input bg-background hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`}}});function a({asChild:t=!1,className:a,size:o,variant:s,...c}){return r(t?n.Root:`button`,{className:e(i({className:a,size:o,variant:s})),"data-slot":`button`,...c})}export{a as Button,i as buttonVariants};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cn as e}from"../lib/utils.js";import{Dialog as t}from"radix-ui";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{X as i}from"lucide-react";const a=t.Root,o=t.Close,s=t.Description,c=t.Title,l=t.Trigger;function u({className:r,...i}){return n(t.Overlay,{className:e(`fixed inset-0 z-50 bg-black/80`,r),"data-slot":`dialog-overlay`,...i})}function d({className:a,children:o,...s}){return r(t.Portal,{children:[n(u,{}),r(t.Content,{className:e(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg sm:rounded-lg`,a),"data-slot":`dialog-content`,...s,children:[o,r(t.Close,{className:`absolute top-4 right-4 rounded-sm opacity-70 hover:opacity-100 focus:ring-2 focus:ring-ring focus:outline-none`,children:[n(i,{className:`size-4`}),n(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function f({className:t,...r}){return n(`div`,{className:e(`flex flex-col space-y-1.5 text-center sm:text-left`,t),"data-slot":`dialog-header`,...r})}export{a as Dialog,o as DialogClose,d as DialogContent,s as DialogDescription,f as DialogHeader,c as DialogTitle,l as DialogTrigger};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, buttonVariants } from "./components/button.
|
|
2
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog.
|
|
3
|
-
import { cn } from "./lib/utils.
|
|
1
|
+
import { Button, buttonVariants } from "./components/button.js";
|
|
2
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog.js";
|
|
3
|
+
import { cn } from "./lib/utils.js";
|
|
4
4
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, buttonVariants, cn };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cn as e}from"./lib/utils.js";import{Button as t,buttonVariants as n}from"./components/button.js";import{Dialog as r,DialogClose as i,DialogContent as a,DialogDescription as o,DialogHeader as s,DialogTitle as c,DialogTrigger as l}from"./components/dialog.js";export{t as Button,r as Dialog,i as DialogClose,a as DialogContent,o as DialogDescription,s as DialogHeader,c as DialogTitle,l as DialogTrigger,n as buttonVariants,e as cn};
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flaqai/ui-flaq",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "Reusable Flaq product UI components and design tokens.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
-
"types": "./dist/index.d.
|
|
20
|
-
"import": "./dist/index.
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
21
|
},
|
|
22
22
|
"./styles.css": "./dist/styles.css"
|
|
23
23
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as e}from"../lib/utils.mjs";import{cva as t}from"class-variance-authority";import{Slot as n}from"radix-ui";import{jsx as r}from"react/jsx-runtime";const i=t(`inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{default:`h-10 px-4 py-2`,lg:`h-11 px-8`,sm:`h-9 rounded-md px-3`},variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,outline:`border border-input bg-background hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`}}});function a({asChild:t=!1,className:a,size:o,variant:s,...c}){return r(t?n.Root:`button`,{className:e(i({className:a,size:o,variant:s})),"data-slot":`button`,...c})}export{a as Button,i as buttonVariants};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as e}from"../lib/utils.mjs";import{Dialog as t}from"radix-ui";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{X as i}from"lucide-react";const a=t.Root,o=t.Close,s=t.Description,c=t.Title,l=t.Trigger;function u({className:r,...i}){return n(t.Overlay,{className:e(`fixed inset-0 z-50 bg-black/80`,r),"data-slot":`dialog-overlay`,...i})}function d({className:a,children:o,...s}){return r(t.Portal,{children:[n(u,{}),r(t.Content,{className:e(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg sm:rounded-lg`,a),"data-slot":`dialog-content`,...s,children:[o,r(t.Close,{className:`absolute top-4 right-4 rounded-sm opacity-70 hover:opacity-100 focus:ring-2 focus:ring-ring focus:outline-none`,children:[n(i,{className:`size-4`}),n(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function f({className:t,...r}){return n(`div`,{className:e(`flex flex-col space-y-1.5 text-center sm:text-left`,t),"data-slot":`dialog-header`,...r})}export{a as Dialog,o as DialogClose,d as DialogContent,s as DialogDescription,f as DialogHeader,c as DialogTitle,l as DialogTrigger};
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as e}from"./lib/utils.mjs";import{Button as t,buttonVariants as n}from"./components/button.mjs";import{Dialog as r,DialogClose as i,DialogContent as a,DialogDescription as o,DialogHeader as s,DialogTitle as c,DialogTrigger as l}from"./components/dialog.mjs";export{t as Button,r as Dialog,i as DialogClose,a as DialogContent,o as DialogDescription,s as DialogHeader,c as DialogTitle,l as DialogTrigger,n as buttonVariants,e as cn};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|