@cisri/shadcn 1.0.0
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/README.md +26 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +467 -0
- package/dist/ui/button.d.ts +12 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/checkbox.d.ts +5 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/dialog.d.ts +20 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/input.d.ts +6 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/popover.d.ts +8 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/scroll-area.d.ts +6 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/select.d.ts +10 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/skeleton.d.ts +4 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/textarea.d.ts +6 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/package.json +88 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @cisri/shadcn
|
|
2
|
+
|
|
3
|
+
Shared shadcn/ui primitives for `@cisri/*` business components. Re-exports the inlined shadcn atoms (Button, Input, Select, Checkbox, Table, Textarea, Dialog, ScrollArea, Separator, Skeleton) so every business package imports them from a single dependency — avoiding duplicate bundling of the atom wrappers.
|
|
4
|
+
|
|
5
|
+
> 本包是各业务组件包的**统一原子依赖**:业务包 `dependencies` 依赖 `@cisri/shadcn: workspace:*`,构建时 external,由使用方解析到同一实例。原始 shadcn 原子不再内联到各业务包 `src/ui/`。
|
|
6
|
+
|
|
7
|
+
## Peer Dependencies
|
|
8
|
+
|
|
9
|
+
本组件依赖以下库,请确保你的项目已安装:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add react react-dom @radix-ui/react-checkbox @radix-ui/react-dialog @radix-ui/react-scroll-area @radix-ui/react-select @radix-ui/react-separator @radix-ui/react-slot class-variance-authority lucide-react
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`clsx` / `tailwind-merge` 由 `@cisri/core` 间接依赖(`cn`),按其说明安装。
|
|
16
|
+
|
|
17
|
+
## Tailwind 配置
|
|
18
|
+
|
|
19
|
+
确保 `tailwind.config.ts` 的 `content` 同时扫描业务包与 `@cisri/shadcn` 的产物,否则原子类名不会被扫描到:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
content: [
|
|
23
|
+
'./node_modules/@cisri/shadcn/dist/**/*.{js,cjs}',
|
|
24
|
+
'./node_modules/@cisri/*/dist/**/*.{js,cjs}',
|
|
25
|
+
];
|
|
26
|
+
```
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),Y=require("react"),Z=require("@radix-ui/react-slot"),$=require("class-variance-authority"),r=require("@cisri/core"),ee=require("@radix-ui/react-checkbox"),p=require("lucide-react"),te=require("@radix-ui/react-dialog"),ae=require("@radix-ui/react-label"),oe=require("@radix-ui/react-popover"),re=require("@radix-ui/react-scroll-area"),se=require("@radix-ui/react-select"),ne=require("@radix-ui/react-separator"),ie=require("@radix-ui/react-switch");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=d(Y),f=d(ee),l=d(te),h=d(ae),u=d(oe),m=d(re),i=d(se),y=d(ne),b=d(ie),v=$.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),w=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...c},U)=>{const W=n?Z.Slot:"button";return o.jsx(W,{className:r.cn(v({variant:t,size:a,className:e})),ref:U,...c})});w.displayName="Button";const N=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Root,{ref:a,className:r.cn("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:o.jsx(f.Indicator,{className:r.cn("flex items-center justify-center text-current"),children:o.jsx(p.Check,{className:"h-4 w-4"})})}));N.displayName=f.Root.displayName;const j=s.createContext(!1);function le(){typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&(s.useContext(j)||console.warn("[@cisri/json-schema-selector / Dialog] DialogContent must be rendered inside a Dialog component. Ensure you are using the Dialog exported from @cisri/json-schema-selector."))}const R=({children:e,...t})=>o.jsx(l.Root,{...t,children:o.jsx(j.Provider,{value:!0,children:e})});R.displayName=l.Root.displayName;const de=l.Trigger,T=l.Portal,ce=l.Close,g=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Overlay,{ref:a,className:r.cn("fixed inset-0 z-50 bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));g.displayName=l.Overlay.displayName;const C=s.forwardRef(({className:e,children:t,...a},n)=>(le(),o.jsxs(T,{children:[o.jsx(g,{}),o.jsxs(l.Content,{ref:n,className:r.cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-4xl translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,o.jsxs(l.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[o.jsx(p.X,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));C.displayName=l.Content.displayName;const S=({className:e,...t})=>o.jsx("div",{className:r.cn("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});S.displayName="DialogHeader";const D=({className:e,...t})=>o.jsx("div",{className:r.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});D.displayName="DialogFooter";const P=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Title,{ref:a,className:r.cn("text-lg font-semibold leading-none tracking-tight",e),...t}));P.displayName=l.Title.displayName;const k=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Description,{ref:a,className:r.cn("text-sm text-muted-foreground",e),...t}));k.displayName=l.Description.displayName;const _=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r.cn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...a}));_.displayName="Input";const z=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Root,{ref:a,className:r.cn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));z.displayName=h.Root.displayName;const me=u.Root,ue=u.Trigger,pe=u.Anchor,q=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},c)=>o.jsx(u.Portal,{children:o.jsx(u.Content,{ref:c,align:t,sideOffset:a,className:r.cn("z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...n})}));q.displayName=u.Content.displayName;const I=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(m.Root,{ref:n,className:r.cn("relative overflow-hidden",e),...a,children:[o.jsx(m.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(x,{}),o.jsx(m.Corner,{})]}));I.displayName=m.Root.displayName;const x=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(m.ScrollAreaScrollbar,{ref:n,orientation:t,className:r.cn("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(m.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));x.displayName=m.ScrollAreaScrollbar.displayName;const fe=i.Root,be=i.Group,ge=i.Value,A=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(i.Trigger,{ref:n,className:r.cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span>]:line-clamp-1",e),...a,children:[t,o.jsx(i.Icon,{asChild:!0,children:o.jsx(p.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));A.displayName=i.Trigger.displayName;const O=s.forwardRef(({className:e,children:t,position:a="popper",...n},c)=>o.jsx(i.Portal,{children:o.jsx(i.Content,{ref:c,className:r.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:o.jsx(i.Viewport,{className:r.cn("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));O.displayName=i.Content.displayName;const V=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(i.Item,{ref:n,className:r.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(p.Check,{className:"h-4 w-4"})})}),o.jsx(i.ItemText,{children:t})]}));V.displayName=i.Item.displayName;const H=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},c)=>o.jsx(y.Root,{ref:c,decorative:a,orientation:t,className:r.cn("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));H.displayName=y.Root.displayName;function xe({className:e,...t}){return o.jsx("div",{className:r.cn("animate-pulse rounded-md bg-muted",e),...t})}const B=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Root,{className:r.cn("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:a,children:o.jsx(b.Thumb,{className:r.cn("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));B.displayName=b.Root.displayName;const F=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:r.cn("w-full caption-bottom text-sm",e),...t})}));F.displayName="Table";const L=s.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:r.cn("[&_tr]:border-b",e),...t}));L.displayName="TableHeader";const E=s.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:r.cn("[&_tr:last-child]:border-0",e),...t}));E.displayName="TableBody";const G=s.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:r.cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));G.displayName="TableFooter";const M=s.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:r.cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));M.displayName="TableRow";const X=s.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:r.cn("h-9 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));X.displayName="TableHead";const J=s.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:r.cn("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));J.displayName="TableCell";const K=s.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:r.cn("mt-4 text-sm text-muted-foreground",e),...t}));K.displayName="TableCaption";const Q=s.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:r.cn("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Q.displayName="Textarea";exports.Button=w;exports.Checkbox=N;exports.Dialog=R;exports.DialogClose=ce;exports.DialogContent=C;exports.DialogDescription=k;exports.DialogFooter=D;exports.DialogHeader=S;exports.DialogOverlay=g;exports.DialogPortal=T;exports.DialogTitle=P;exports.DialogTrigger=de;exports.Input=_;exports.Label=z;exports.Popover=me;exports.PopoverAnchor=pe;exports.PopoverContent=q;exports.PopoverTrigger=ue;exports.ScrollArea=I;exports.ScrollBar=x;exports.Select=fe;exports.SelectContent=O;exports.SelectGroup=be;exports.SelectItem=V;exports.SelectTrigger=A;exports.SelectValue=ge;exports.Separator=H;exports.Skeleton=xe;exports.Switch=B;exports.Table=F;exports.TableBody=E;exports.TableCaption=K;exports.TableCell=J;exports.TableFooter=G;exports.TableHead=X;exports.TableHeader=L;exports.TableRow=M;exports.Textarea=Q;exports.buttonVariants=v;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './ui/button';
|
|
2
|
+
export * from './ui/checkbox';
|
|
3
|
+
export * from './ui/dialog';
|
|
4
|
+
export * from './ui/input';
|
|
5
|
+
export * from './ui/label';
|
|
6
|
+
export * from './ui/popover';
|
|
7
|
+
export * from './ui/scroll-area';
|
|
8
|
+
export * from './ui/select';
|
|
9
|
+
export * from './ui/separator';
|
|
10
|
+
export * from './ui/skeleton';
|
|
11
|
+
export * from './ui/switch';
|
|
12
|
+
export * from './ui/table';
|
|
13
|
+
export * from './ui/textarea';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Slot as v } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as R } from "class-variance-authority";
|
|
5
|
+
import { cn as r } from "@cisri/core";
|
|
6
|
+
import * as p from "@radix-ui/react-checkbox";
|
|
7
|
+
import { Check as b, X as C, ChevronDown as T } from "lucide-react";
|
|
8
|
+
import * as l from "@radix-ui/react-dialog";
|
|
9
|
+
import * as g from "@radix-ui/react-label";
|
|
10
|
+
import * as f from "@radix-ui/react-popover";
|
|
11
|
+
import * as c from "@radix-ui/react-scroll-area";
|
|
12
|
+
import * as n from "@radix-ui/react-select";
|
|
13
|
+
import * as h from "@radix-ui/react-separator";
|
|
14
|
+
import * as u from "@radix-ui/react-switch";
|
|
15
|
+
const k = R(
|
|
16
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
21
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
22
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
23
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
24
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
25
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
default: "h-9 px-4 py-2",
|
|
29
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
30
|
+
lg: "h-10 rounded-md px-8",
|
|
31
|
+
icon: "h-9 w-9"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "default",
|
|
36
|
+
size: "default"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
), D = s.forwardRef(
|
|
40
|
+
({ className: t, variant: e, size: a, asChild: i = !1, ...d }, N) => /* @__PURE__ */ o(
|
|
41
|
+
i ? v : "button",
|
|
42
|
+
{
|
|
43
|
+
className: r(k({ variant: e, size: a, className: t })),
|
|
44
|
+
ref: N,
|
|
45
|
+
...d
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
D.displayName = "Button";
|
|
50
|
+
const S = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
51
|
+
p.Root,
|
|
52
|
+
{
|
|
53
|
+
ref: a,
|
|
54
|
+
className: r(
|
|
55
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
56
|
+
t
|
|
57
|
+
),
|
|
58
|
+
...e,
|
|
59
|
+
children: /* @__PURE__ */ o(
|
|
60
|
+
p.Indicator,
|
|
61
|
+
{
|
|
62
|
+
className: r("flex items-center justify-center text-current"),
|
|
63
|
+
children: /* @__PURE__ */ o(b, { className: "h-4 w-4" })
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
));
|
|
68
|
+
S.displayName = p.Root.displayName;
|
|
69
|
+
const x = s.createContext(!1);
|
|
70
|
+
function P() {
|
|
71
|
+
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && (s.useContext(x) || console.warn(
|
|
72
|
+
"[@cisri/json-schema-selector / Dialog] DialogContent must be rendered inside a Dialog component. Ensure you are using the Dialog exported from @cisri/json-schema-selector."
|
|
73
|
+
));
|
|
74
|
+
}
|
|
75
|
+
const z = ({ children: t, ...e }) => /* @__PURE__ */ o(l.Root, { ...e, children: /* @__PURE__ */ o(x.Provider, { value: !0, children: t }) });
|
|
76
|
+
z.displayName = l.Root.displayName;
|
|
77
|
+
const ne = l.Trigger, I = l.Portal, le = l.Close, y = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
78
|
+
l.Overlay,
|
|
79
|
+
{
|
|
80
|
+
ref: a,
|
|
81
|
+
className: r(
|
|
82
|
+
"fixed inset-0 z-50 bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
83
|
+
t
|
|
84
|
+
),
|
|
85
|
+
...e
|
|
86
|
+
}
|
|
87
|
+
));
|
|
88
|
+
y.displayName = l.Overlay.displayName;
|
|
89
|
+
const j = s.forwardRef(({ className: t, children: e, ...a }, i) => (P(), /* @__PURE__ */ m(I, { children: [
|
|
90
|
+
/* @__PURE__ */ o(y, {}),
|
|
91
|
+
/* @__PURE__ */ m(
|
|
92
|
+
l.Content,
|
|
93
|
+
{
|
|
94
|
+
ref: i,
|
|
95
|
+
className: r(
|
|
96
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-4xl translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
97
|
+
t
|
|
98
|
+
),
|
|
99
|
+
...a,
|
|
100
|
+
children: [
|
|
101
|
+
e,
|
|
102
|
+
/* @__PURE__ */ m(l.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
103
|
+
/* @__PURE__ */ o(C, { className: "h-4 w-4" }),
|
|
104
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
105
|
+
] })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] })));
|
|
110
|
+
j.displayName = l.Content.displayName;
|
|
111
|
+
const A = ({
|
|
112
|
+
className: t,
|
|
113
|
+
...e
|
|
114
|
+
}) => /* @__PURE__ */ o(
|
|
115
|
+
"div",
|
|
116
|
+
{
|
|
117
|
+
className: r(
|
|
118
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
119
|
+
t
|
|
120
|
+
),
|
|
121
|
+
...e
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
A.displayName = "DialogHeader";
|
|
125
|
+
const V = ({
|
|
126
|
+
className: t,
|
|
127
|
+
...e
|
|
128
|
+
}) => /* @__PURE__ */ o(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
className: r(
|
|
132
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
133
|
+
t
|
|
134
|
+
),
|
|
135
|
+
...e
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
V.displayName = "DialogFooter";
|
|
139
|
+
const H = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
140
|
+
l.Title,
|
|
141
|
+
{
|
|
142
|
+
ref: a,
|
|
143
|
+
className: r(
|
|
144
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
145
|
+
t
|
|
146
|
+
),
|
|
147
|
+
...e
|
|
148
|
+
}
|
|
149
|
+
));
|
|
150
|
+
H.displayName = l.Title.displayName;
|
|
151
|
+
const B = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
152
|
+
l.Description,
|
|
153
|
+
{
|
|
154
|
+
ref: a,
|
|
155
|
+
className: r("text-sm text-muted-foreground", t),
|
|
156
|
+
...e
|
|
157
|
+
}
|
|
158
|
+
));
|
|
159
|
+
B.displayName = l.Description.displayName;
|
|
160
|
+
const F = s.forwardRef(
|
|
161
|
+
({ className: t, type: e, ...a }, i) => /* @__PURE__ */ o(
|
|
162
|
+
"input",
|
|
163
|
+
{
|
|
164
|
+
type: e,
|
|
165
|
+
className: r(
|
|
166
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
167
|
+
t
|
|
168
|
+
),
|
|
169
|
+
ref: i,
|
|
170
|
+
...a
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
);
|
|
174
|
+
F.displayName = "Input";
|
|
175
|
+
const O = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
176
|
+
g.Root,
|
|
177
|
+
{
|
|
178
|
+
ref: a,
|
|
179
|
+
className: r(
|
|
180
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
181
|
+
t
|
|
182
|
+
),
|
|
183
|
+
...e
|
|
184
|
+
}
|
|
185
|
+
));
|
|
186
|
+
O.displayName = g.Root.displayName;
|
|
187
|
+
const de = f.Root, ce = f.Trigger, me = f.Anchor, E = s.forwardRef(({ className: t, align: e = "center", sideOffset: a = 4, ...i }, d) => /* @__PURE__ */ o(f.Portal, { children: /* @__PURE__ */ o(
|
|
188
|
+
f.Content,
|
|
189
|
+
{
|
|
190
|
+
ref: d,
|
|
191
|
+
align: e,
|
|
192
|
+
sideOffset: a,
|
|
193
|
+
className: r(
|
|
194
|
+
"z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
195
|
+
t
|
|
196
|
+
),
|
|
197
|
+
...i
|
|
198
|
+
}
|
|
199
|
+
) }));
|
|
200
|
+
E.displayName = f.Content.displayName;
|
|
201
|
+
const _ = s.forwardRef(({ className: t, children: e, ...a }, i) => /* @__PURE__ */ m(
|
|
202
|
+
c.Root,
|
|
203
|
+
{
|
|
204
|
+
ref: i,
|
|
205
|
+
className: r("relative overflow-hidden", t),
|
|
206
|
+
...a,
|
|
207
|
+
children: [
|
|
208
|
+
/* @__PURE__ */ o(c.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
|
|
209
|
+
/* @__PURE__ */ o(w, {}),
|
|
210
|
+
/* @__PURE__ */ o(c.Corner, {})
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
));
|
|
214
|
+
_.displayName = c.Root.displayName;
|
|
215
|
+
const w = s.forwardRef(({ className: t, orientation: e = "vertical", ...a }, i) => /* @__PURE__ */ o(
|
|
216
|
+
c.ScrollAreaScrollbar,
|
|
217
|
+
{
|
|
218
|
+
ref: i,
|
|
219
|
+
orientation: e,
|
|
220
|
+
className: r(
|
|
221
|
+
"flex touch-none select-none transition-colors",
|
|
222
|
+
e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
223
|
+
e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
224
|
+
t
|
|
225
|
+
),
|
|
226
|
+
...a,
|
|
227
|
+
children: /* @__PURE__ */ o(c.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
228
|
+
}
|
|
229
|
+
));
|
|
230
|
+
w.displayName = c.ScrollAreaScrollbar.displayName;
|
|
231
|
+
const fe = n.Root, pe = n.Group, ue = n.Value, G = s.forwardRef(({ className: t, children: e, ...a }, i) => /* @__PURE__ */ m(
|
|
232
|
+
n.Trigger,
|
|
233
|
+
{
|
|
234
|
+
ref: i,
|
|
235
|
+
className: r(
|
|
236
|
+
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span>]:line-clamp-1",
|
|
237
|
+
t
|
|
238
|
+
),
|
|
239
|
+
...a,
|
|
240
|
+
children: [
|
|
241
|
+
e,
|
|
242
|
+
/* @__PURE__ */ o(n.Icon, { asChild: !0, children: /* @__PURE__ */ o(T, { className: "h-4 w-4 opacity-50" }) })
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
));
|
|
246
|
+
G.displayName = n.Trigger.displayName;
|
|
247
|
+
const L = s.forwardRef(({ className: t, children: e, position: a = "popper", ...i }, d) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
|
|
248
|
+
n.Content,
|
|
249
|
+
{
|
|
250
|
+
ref: d,
|
|
251
|
+
className: r(
|
|
252
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
253
|
+
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
254
|
+
t
|
|
255
|
+
),
|
|
256
|
+
position: a,
|
|
257
|
+
...i,
|
|
258
|
+
children: /* @__PURE__ */ o(
|
|
259
|
+
n.Viewport,
|
|
260
|
+
{
|
|
261
|
+
className: r(
|
|
262
|
+
"p-1",
|
|
263
|
+
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
264
|
+
),
|
|
265
|
+
children: e
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
}
|
|
269
|
+
) }));
|
|
270
|
+
L.displayName = n.Content.displayName;
|
|
271
|
+
const X = s.forwardRef(({ className: t, children: e, ...a }, i) => /* @__PURE__ */ m(
|
|
272
|
+
n.Item,
|
|
273
|
+
{
|
|
274
|
+
ref: i,
|
|
275
|
+
className: r(
|
|
276
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
277
|
+
t
|
|
278
|
+
),
|
|
279
|
+
...a,
|
|
280
|
+
children: [
|
|
281
|
+
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(b, { className: "h-4 w-4" }) }) }),
|
|
282
|
+
/* @__PURE__ */ o(n.ItemText, { children: e })
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
));
|
|
286
|
+
X.displayName = n.Item.displayName;
|
|
287
|
+
const q = s.forwardRef(
|
|
288
|
+
({ className: t, orientation: e = "horizontal", decorative: a = !0, ...i }, d) => /* @__PURE__ */ o(
|
|
289
|
+
h.Root,
|
|
290
|
+
{
|
|
291
|
+
ref: d,
|
|
292
|
+
decorative: a,
|
|
293
|
+
orientation: e,
|
|
294
|
+
className: r(
|
|
295
|
+
"shrink-0 bg-border",
|
|
296
|
+
e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
297
|
+
t
|
|
298
|
+
),
|
|
299
|
+
...i
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
);
|
|
303
|
+
q.displayName = h.Root.displayName;
|
|
304
|
+
function be({
|
|
305
|
+
className: t,
|
|
306
|
+
...e
|
|
307
|
+
}) {
|
|
308
|
+
return /* @__PURE__ */ o(
|
|
309
|
+
"div",
|
|
310
|
+
{
|
|
311
|
+
className: r("animate-pulse rounded-md bg-muted", t),
|
|
312
|
+
...e
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
const J = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
317
|
+
u.Root,
|
|
318
|
+
{
|
|
319
|
+
className: r(
|
|
320
|
+
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
321
|
+
t
|
|
322
|
+
),
|
|
323
|
+
...e,
|
|
324
|
+
ref: a,
|
|
325
|
+
children: /* @__PURE__ */ o(
|
|
326
|
+
u.Thumb,
|
|
327
|
+
{
|
|
328
|
+
className: r(
|
|
329
|
+
"pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
330
|
+
)
|
|
331
|
+
}
|
|
332
|
+
)
|
|
333
|
+
}
|
|
334
|
+
));
|
|
335
|
+
J.displayName = u.Root.displayName;
|
|
336
|
+
const K = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ o(
|
|
337
|
+
"table",
|
|
338
|
+
{
|
|
339
|
+
ref: a,
|
|
340
|
+
className: r("w-full caption-bottom text-sm", t),
|
|
341
|
+
...e
|
|
342
|
+
}
|
|
343
|
+
) }));
|
|
344
|
+
K.displayName = "Table";
|
|
345
|
+
const M = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o("thead", { ref: a, className: r("[&_tr]:border-b", t), ...e }));
|
|
346
|
+
M.displayName = "TableHeader";
|
|
347
|
+
const Q = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
348
|
+
"tbody",
|
|
349
|
+
{
|
|
350
|
+
ref: a,
|
|
351
|
+
className: r("[&_tr:last-child]:border-0", t),
|
|
352
|
+
...e
|
|
353
|
+
}
|
|
354
|
+
));
|
|
355
|
+
Q.displayName = "TableBody";
|
|
356
|
+
const U = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
357
|
+
"tfoot",
|
|
358
|
+
{
|
|
359
|
+
ref: a,
|
|
360
|
+
className: r(
|
|
361
|
+
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
362
|
+
t
|
|
363
|
+
),
|
|
364
|
+
...e
|
|
365
|
+
}
|
|
366
|
+
));
|
|
367
|
+
U.displayName = "TableFooter";
|
|
368
|
+
const W = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
369
|
+
"tr",
|
|
370
|
+
{
|
|
371
|
+
ref: a,
|
|
372
|
+
className: r(
|
|
373
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
374
|
+
t
|
|
375
|
+
),
|
|
376
|
+
...e
|
|
377
|
+
}
|
|
378
|
+
));
|
|
379
|
+
W.displayName = "TableRow";
|
|
380
|
+
const Y = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
381
|
+
"th",
|
|
382
|
+
{
|
|
383
|
+
ref: a,
|
|
384
|
+
className: r(
|
|
385
|
+
"h-9 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
386
|
+
t
|
|
387
|
+
),
|
|
388
|
+
...e
|
|
389
|
+
}
|
|
390
|
+
));
|
|
391
|
+
Y.displayName = "TableHead";
|
|
392
|
+
const Z = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
393
|
+
"td",
|
|
394
|
+
{
|
|
395
|
+
ref: a,
|
|
396
|
+
className: r(
|
|
397
|
+
"p-2 align-middle [&:has([role=checkbox])]:pr-0",
|
|
398
|
+
t
|
|
399
|
+
),
|
|
400
|
+
...e
|
|
401
|
+
}
|
|
402
|
+
));
|
|
403
|
+
Z.displayName = "TableCell";
|
|
404
|
+
const $ = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
405
|
+
"caption",
|
|
406
|
+
{
|
|
407
|
+
ref: a,
|
|
408
|
+
className: r("mt-4 text-sm text-muted-foreground", t),
|
|
409
|
+
...e
|
|
410
|
+
}
|
|
411
|
+
));
|
|
412
|
+
$.displayName = "TableCaption";
|
|
413
|
+
const ee = s.forwardRef(
|
|
414
|
+
({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
415
|
+
"textarea",
|
|
416
|
+
{
|
|
417
|
+
className: r(
|
|
418
|
+
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
419
|
+
t
|
|
420
|
+
),
|
|
421
|
+
ref: a,
|
|
422
|
+
...e
|
|
423
|
+
}
|
|
424
|
+
)
|
|
425
|
+
);
|
|
426
|
+
ee.displayName = "Textarea";
|
|
427
|
+
export {
|
|
428
|
+
D as Button,
|
|
429
|
+
S as Checkbox,
|
|
430
|
+
z as Dialog,
|
|
431
|
+
le as DialogClose,
|
|
432
|
+
j as DialogContent,
|
|
433
|
+
B as DialogDescription,
|
|
434
|
+
V as DialogFooter,
|
|
435
|
+
A as DialogHeader,
|
|
436
|
+
y as DialogOverlay,
|
|
437
|
+
I as DialogPortal,
|
|
438
|
+
H as DialogTitle,
|
|
439
|
+
ne as DialogTrigger,
|
|
440
|
+
F as Input,
|
|
441
|
+
O as Label,
|
|
442
|
+
de as Popover,
|
|
443
|
+
me as PopoverAnchor,
|
|
444
|
+
E as PopoverContent,
|
|
445
|
+
ce as PopoverTrigger,
|
|
446
|
+
_ as ScrollArea,
|
|
447
|
+
w as ScrollBar,
|
|
448
|
+
fe as Select,
|
|
449
|
+
L as SelectContent,
|
|
450
|
+
pe as SelectGroup,
|
|
451
|
+
X as SelectItem,
|
|
452
|
+
G as SelectTrigger,
|
|
453
|
+
ue as SelectValue,
|
|
454
|
+
q as Separator,
|
|
455
|
+
be as Skeleton,
|
|
456
|
+
J as Switch,
|
|
457
|
+
K as Table,
|
|
458
|
+
Q as TableBody,
|
|
459
|
+
$ as TableCaption,
|
|
460
|
+
Z as TableCell,
|
|
461
|
+
U as TableFooter,
|
|
462
|
+
Y as TableHead,
|
|
463
|
+
M as TableHeader,
|
|
464
|
+
W as TableRow,
|
|
465
|
+
ee as Textarea,
|
|
466
|
+
k as buttonVariants
|
|
467
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
12
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,cAAc;;;8EA2BnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
5
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,QAAA,MAAM,QAAQ,iKAkBZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogHeader: {
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogFooter: {
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
20
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAuB1D,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,WAAW,CAIjD,CAAC;AAGF,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAC9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAC5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAGH,QAAA,MAAM,aAAa,8JAwBjB,CAAC;AAGH,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAGH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
}
|
|
4
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export { Input };
|
|
6
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAElF,QAAA,MAAM,KAAK,qFAcV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
4
|
+
export { Label };
|
|
5
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAGxD,QAAA,MAAM,KAAK,yJAYT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
8
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAG5D,QAAA,MAAM,OAAO,yCAAwB,CAAC;AACtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAChD,QAAA,MAAM,aAAa,4GAA0B,CAAC;AAE9C,QAAA,MAAM,cAAc,gKAgBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
6
|
+
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/ui/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAGnE,QAAA,MAAM,UAAU,+JAed,CAAC;AAGH,QAAA,MAAM,SAAS,wKAmBb,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectItem, };
|
|
10
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AACpC,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAC1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,aAAa,8JA2BjB,CAAC;AAGH,QAAA,MAAM,UAAU,2JAmBd,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,GACX,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Separator };
|
|
5
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../src/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,SAAS,6JAoBd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,qBAOtC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Switch };
|
|
5
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/ui/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAG3D,QAAA,MAAM,MAAM,8JAkBV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
7
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
11
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,KAAK,iHAWT,CAAC;AAGH,QAAA,MAAM,WAAW,+HAKf,CAAC;AAGH,QAAA,MAAM,SAAS,+HASb,CAAC;AAGH,QAAA,MAAM,WAAW,+HAYf,CAAC;AAGH,QAAA,MAAM,QAAQ,uHAYZ,CAAC;AAGH,QAAA,MAAM,SAAS,2HAYb,CAAC;AAGH,QAAA,MAAM,SAAS,2HAYb,CAAC;AAGH,QAAA,MAAM,YAAY,+HAShB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
}
|
|
4
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
export { Textarea };
|
|
6
|
+
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAE9D,QAAA,MAAM,QAAQ,2FAab,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cisri/shadcn",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared shadcn/ui primitives for @cisri business components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@cisri/core": "1.0.0"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
28
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
29
|
+
"@radix-ui/react-checkbox": "^1.0.0",
|
|
30
|
+
"@radix-ui/react-dialog": "^1.0.0",
|
|
31
|
+
"@radix-ui/react-label": "^2.0.0",
|
|
32
|
+
"@radix-ui/react-popover": "^1.0.0",
|
|
33
|
+
"@radix-ui/react-scroll-area": "^1.0.0",
|
|
34
|
+
"@radix-ui/react-select": "^2.0.0",
|
|
35
|
+
"@radix-ui/react-separator": "^1.0.0",
|
|
36
|
+
"@radix-ui/react-slot": "^1.0.0",
|
|
37
|
+
"@radix-ui/react-switch": "^1.0.0",
|
|
38
|
+
"class-variance-authority": "^0.7.0",
|
|
39
|
+
"lucide-react": "^0.300.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"@radix-ui/react-checkbox": {
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
"@radix-ui/react-dialog": {
|
|
46
|
+
"optional": true
|
|
47
|
+
},
|
|
48
|
+
"@radix-ui/react-label": {
|
|
49
|
+
"optional": true
|
|
50
|
+
},
|
|
51
|
+
"@radix-ui/react-popover": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@radix-ui/react-scroll-area": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"@radix-ui/react-select": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"@radix-ui/react-separator": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"@radix-ui/react-slot": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"@radix-ui/react-switch": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
69
|
+
"class-variance-authority": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"lucide-react": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@types/react": "^18.3.0",
|
|
78
|
+
"@types/react-dom": "^18.3.0",
|
|
79
|
+
"react": "^18.3.1",
|
|
80
|
+
"react-dom": "^18.3.1",
|
|
81
|
+
"typescript": "^5.4.5",
|
|
82
|
+
"vite": "^5.2.11",
|
|
83
|
+
"@vitejs/plugin-react": "^4.2.0"
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "tsc && vite build"
|
|
87
|
+
}
|
|
88
|
+
}
|