cortex-react-components 1.9.1 → 1.9.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/chunk-4JC2TJML.mjs +4 -0
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/select.mjs +1 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a}from"./chunk-NIQ4466A.mjs";import*as e from"@radix-ui/react-select";import{Check as f,ChevronDown as n,ChevronUp as S}from"lucide-react";import*as l from"react";import{jsx as t,jsxs as m}from"react/jsx-runtime";var h=e.Root,N=e.Group,b=e.Value,u=l.forwardRef(({children:o,className:r,...i},c)=>m(e.Trigger,{className:a("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),ref:c,...i,children:[o,t(e.Icon,{asChild:!0,children:t(n,{className:"h-4 w-4 opacity-50"})})]}));u.displayName=e.Trigger.displayName;var s=l.forwardRef(({className:o,...r},i)=>t(e.ScrollUpButton,{className:a("flex cursor-default items-center justify-center py-1",o),ref:i,...r,children:t(S,{className:"h-4 w-4"})}));s.displayName=e.ScrollUpButton.displayName;var p=l.forwardRef(({className:o,...r},i)=>t(e.ScrollDownButton,{className:a("flex cursor-default items-center justify-center py-1",o),ref:i,...r,children:t(n,{className:"h-4 w-4"})}));p.displayName=e.ScrollDownButton.displayName;var v=l.forwardRef(({children:o,className:r,position:i="popper",...c},d)=>t(e.Portal,{children:m(e.Content,{className:a("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card 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",i==="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",r),position:i,ref:d,...c,children:[t(s,{}),t(e.Viewport,{className:a("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),t(p,{})]})}));v.displayName=e.Content.displayName;var P=l.forwardRef(({className:o,...r},i)=>t(e.Label,{className:a("py-1.5 pl-8 pr-2 text-sm font-semibold",o),ref:i,...r}));P.displayName=e.Label.displayName;var R=l.forwardRef(({children:o,className:r,...i},c)=>m(e.Item,{className:a("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),ref:c,...i,children:[t("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t(e.ItemIndicator,{children:t(f,{className:"h-4 w-4"})})}),t(e.ItemText,{children:o})]}));R.displayName=e.Item.displayName;var y=l.forwardRef(({className:o,...r},i)=>t(e.Separator,{className:a("-mx-1 my-1 h-px bg-muted",o),ref:i,...r}));y.displayName=e.Separator.displayName;export{h as a,N as b,b as c,u as d,s as e,p as f,v as g,P as h,R as i,y as j};
|