@clasing/ui 2.0.9 → 2.1.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/dist/{button-t0WrANXO.cjs → button-B-JHlR-n.cjs} +1 -1
- package/dist/{button-DiOH2ngV.js → button-ozL8afps.js} +1 -1
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +1 -1
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.d.ts +1 -1
- package/dist/components/context-menu.es.js +37 -36
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.es.js +13 -12
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.d.ts +1 -1
- package/dist/components/hover-card.es.js +12 -11
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.d.ts +1 -1
- package/dist/components/menubar.es.js +3 -2
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +1 -1
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +2 -2
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.es.js +42 -41
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{input-B6wjJM4O.js → input-B5HLfVv0.js} +1 -1
- package/dist/{input-Dpz3zGIU.cjs → input-BqT_fuUN.cjs} +1 -1
- package/dist/popover-DifOajI4.cjs +1 -0
- package/dist/{popover-C6pozFVL.js → popover-Dvf9oQaX.js} +9 -8
- package/dist/tooltip-C9FWg102.cjs +1 -0
- package/dist/{tooltip-CUaxcngn.js → tooltip-CGSL9pFZ.js} +5 -4
- package/package.json +1 -1
- package/dist/popover-BnLx2OY6.cjs +0 -1
- package/dist/tooltip-BvdeurjC.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-DSjHHn1r.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-DSjHHn1r.cjs"),i=require("@radix-ui/react-hover-card");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const a=s(i);function c({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"hover-card",...t})}function l({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"hover-card-trigger",...t})}function u({className:t,align:r="center",sideOffset:e=4,collisionPadding:n=24,...d}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"hover-card-portal",children:o.jsxRuntimeExports.jsx(a.Content,{"data-slot":"hover-card-content",align:r,sideOffset:e,className:o.cn("bg-popover text-popover-foreground 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 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...d})})}exports.HoverCard=c;exports.HoverCardContent=u;exports.HoverCardTrigger=l;
|
|
@@ -2,5 +2,5 @@ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function HoverCardContent({ className, align, sideOffset, collisionPadding, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { j as o, c as
|
|
2
|
-
import * as
|
|
3
|
-
function
|
|
1
|
+
import { j as o, c as i } from "../index-DBpnlzOP.js";
|
|
2
|
+
import * as a from "@radix-ui/react-hover-card";
|
|
3
|
+
function l({
|
|
4
4
|
...t
|
|
5
5
|
}) {
|
|
6
|
-
return /* @__PURE__ */ o.jsx(
|
|
6
|
+
return /* @__PURE__ */ o.jsx(a.Root, { "data-slot": "hover-card", ...t });
|
|
7
7
|
}
|
|
8
8
|
function m({
|
|
9
9
|
...t
|
|
10
10
|
}) {
|
|
11
|
-
return /* @__PURE__ */ o.jsx(
|
|
11
|
+
return /* @__PURE__ */ o.jsx(a.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
12
12
|
}
|
|
13
13
|
function c({
|
|
14
14
|
className: t,
|
|
15
|
-
align:
|
|
15
|
+
align: e = "center",
|
|
16
16
|
sideOffset: r = 4,
|
|
17
|
+
collisionPadding: n = 24,
|
|
17
18
|
...d
|
|
18
19
|
}) {
|
|
19
|
-
return /* @__PURE__ */ o.jsx(
|
|
20
|
-
|
|
20
|
+
return /* @__PURE__ */ o.jsx(a.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx(
|
|
21
|
+
a.Content,
|
|
21
22
|
{
|
|
22
23
|
"data-slot": "hover-card-content",
|
|
23
|
-
align:
|
|
24
|
+
align: e,
|
|
24
25
|
sideOffset: r,
|
|
25
|
-
className:
|
|
26
|
+
className: i(
|
|
26
27
|
"bg-popover text-popover-foreground 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 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
27
28
|
t
|
|
28
29
|
),
|
|
@@ -31,7 +32,7 @@ function c({
|
|
|
31
32
|
) });
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
l as HoverCard,
|
|
35
36
|
c as HoverCardContent,
|
|
36
37
|
m as HoverCardTrigger
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-BqT_fuUN.cjs");exports.Input=t.Input;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-DSjHHn1r.cjs"),d=require("@radix-ui/react-menubar"),s=require("../icon-component-DTlgy__B.cjs");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-DSjHHn1r.cjs"),d=require("@radix-ui/react-menubar"),s=require("../icon-component-DTlgy__B.cjs");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const r=c(d);function m({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Root,{"data-slot":"menubar",className:t.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...n})}function l({...e}){return t.jsxRuntimeExports.jsx(r.Menu,{"data-slot":"menubar-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(r.Group,{"data-slot":"menubar-group",...e})}function i({...e}){return t.jsxRuntimeExports.jsx(r.Portal,{"data-slot":"menubar-portal",...e})}function x({...e}){return t.jsxRuntimeExports.jsx(r.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function b({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"menubar-trigger",className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex items-center rounded-sm px-2 py-1 font-medium outline-hidden select-none",e),...n})}function f({className:e,align:n="start",alignOffset:a=-4,sideOffset:o=8,...u}){return t.jsxRuntimeExports.jsx(i,{children:t.jsxRuntimeExports.jsx(r.Content,{"data-slot":"menubar-content",align:n,alignOffset:a,sideOffset:o,className:t.cn("bg-popover text-popover-foreground data-[state=open]:animate-in 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 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...u})})}function g({className:e,inset:n,variant:a="default",...o}){return t.jsxRuntimeExports.jsx(r.Item,{"data-slot":"menubar-item","data-inset":n,"data-variant":a,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function j({className:e,children:n,checked:a,...o}){return t.jsxRuntimeExports.jsxs(r.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:a,...o,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),n]})}function v({className:e,children:n,...a}){return t.jsxRuntimeExports.jsxs(r.RadioItem,{"data-slot":"menubar-radio-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCircle",className:"size-2 fill-current"})})}),n]})}function h({className:e,inset:n,...a}){return t.jsxRuntimeExports.jsx(r.Label,{"data-slot":"menubar-label","data-inset":n,className:t.cn("paragraph-sm px-2 py-1.5 font-medium data-[inset]:pl-8",e),...a})}function M({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"menubar-separator",className:t.cn("bg-border -mx-1 my-1 h-px",e),...n})}function R({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:t.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",e),...n})}function E({...e}){return t.jsxRuntimeExports.jsx(r.Sub,{"data-slot":"menubar-sub",...e})}function N({className:e,inset:n,children:a,...o}){return t.jsxRuntimeExports.jsxs(r.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":n,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none data-[inset]:pl-8",e),...o,children:[a,t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconChevronRight",className:"ml-auto h-4 w-4"})]})}function I({className:e,collisionPadding:n=24,...a}){return t.jsxRuntimeExports.jsx(r.SubContent,{"data-slot":"menubar-sub-content",className:t.cn("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...a})}exports.Menubar=m;exports.MenubarCheckboxItem=j;exports.MenubarContent=f;exports.MenubarGroup=p;exports.MenubarItem=g;exports.MenubarLabel=h;exports.MenubarMenu=l;exports.MenubarPortal=i;exports.MenubarRadioGroup=x;exports.MenubarRadioItem=v;exports.MenubarSeparator=M;exports.MenubarShortcut=R;exports.MenubarSub=E;exports.MenubarSubContent=I;exports.MenubarSubTrigger=N;exports.MenubarTrigger=b;
|
|
@@ -22,5 +22,5 @@ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPri
|
|
|
22
22
|
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
23
23
|
inset?: boolean;
|
|
24
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function MenubarSubContent({ className, collisionPadding, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
|
|
@@ -222,7 +222,8 @@ function y({
|
|
|
222
222
|
}
|
|
223
223
|
function k({
|
|
224
224
|
className: e,
|
|
225
|
-
|
|
225
|
+
collisionPadding: a = 24,
|
|
226
|
+
...r
|
|
226
227
|
}) {
|
|
227
228
|
return /* @__PURE__ */ t.jsx(
|
|
228
229
|
n.SubContent,
|
|
@@ -232,7 +233,7 @@ function k({
|
|
|
232
233
|
"bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
233
234
|
e
|
|
234
235
|
),
|
|
235
|
-
...
|
|
236
|
+
...r
|
|
236
237
|
}
|
|
237
238
|
);
|
|
238
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),I=require("../badge-oQqEF2X5.cjs"),m=require("../command-CHisYTN-.cjs"),N=require("../popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),I=require("../badge-oQqEF2X5.cjs"),m=require("../command-CHisYTN-.cjs"),N=require("../popover-DifOajI4.cjs"),n=require("react"),v=require("../icon-component-DTlgy__B.cjs"),V=n.createContext(null);function k({children:t,values:r,defaultValues:i,onValuesChange:u,isLoading:d,onSearchChange:c,loadingText:f="Loading...",noResultsText:a="No results found"}){const[h,p]=n.useState(!1),[y,j]=n.useState(new Set(r??i)),[b,x]=n.useState(new Map),[S,E]=n.useState("");function o(s){const g=R=>{const C=new Set(R);return C.has(s)?C.delete(s):C.add(s),C};j(g),u?.([...g(y)])}const l=n.useCallback((s,g)=>{x(R=>R.get(s)===g?R:new Map(R).set(s,g))},[]),w=n.useCallback(s=>{E(s),c?.(s)},[c]);return e.jsxRuntimeExports.jsx(V,{value:{open:h,setOpen:p,selectedValues:r?new Set(r):y,toggleValue:o,items:b,onItemAdded:l,isLoading:d,searchValue:S,onSearchChange:w,loadingText:f,noResultsText:a},children:e.jsxRuntimeExports.jsx(N.Popover,{open:h,onOpenChange:p,children:t})})}function z({className:t,children:r,size:i="md",...u}){const{open:d}=M();return e.jsxRuntimeExports.jsx(N.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{...u,role:u.role??"combobox","aria-expanded":u["aria-expanded"]??d,"data-size":i,className:e.cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',i==="sm"&&"label-md h-8 px-2 py-1",i==="md"&&"label-lg h-12 px-3 py-1",i==="lg"&&"label-xl h-16 px-4 py-2",t),children:[r,e.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconSelector",className:"size-4 shrink-0 opacity-50"})]})})}function P({placeholder:t,clickToRemove:r=!0,className:i,overflowBehavior:u="wrap-when-open",...d}){const{selectedValues:c,toggleValue:f,items:a,open:h}=M(),[p,y]=n.useState(0),j=n.useRef(null),b=n.useRef(null),x=n.useRef(new Set),S=u==="wrap"||u==="wrap-when-open"&&h;n.useEffect(()=>{S&&x.current.forEach(o=>o.style.removeProperty("display"))},[S]);const E=n.useCallback(()=>{if(j.current==null)return;const o=j.current,l=b.current;l!=null&&(l.style.display="none"),x.current.forEach(s=>s.style.removeProperty("display"));let w=0;for(let s=x.current.size-1;s>=0;s--){const g=[...x.current][s];if(o.scrollWidth<=o.clientWidth)break;w=x.current.size-s,g.style.display="none",l?.style.removeProperty("display")}y(w)},[]);return n.useEffect(()=>{if(j.current==null)return;const o=new ResizeObserver(E);return o.observe(j.current),()=>o.disconnect()},[E]),n.useLayoutEffect(()=>{E()},[c,E]),c.size===0&&t?e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:t}):e.jsxRuntimeExports.jsxs("div",{...d,ref:j,className:e.cn("flex min-h-[1.75rem] w-full gap-1.5 overflow-hidden",S&&"flex-wrap",i),children:[[...c].filter(o=>a.has(o)).map(o=>e.jsxRuntimeExports.jsxs(I.Badge,{ref:l=>{if(l!=null)return x.current.add(l),()=>{x.current.delete(l)}},variant:"outline",className:"group flex items-center gap-1",onClick:r?l=>{l.stopPropagation(),f(o)}:void 0,children:[a.get(o),r&&e.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconX",className:"text-muted-foreground group-hover:text-destructive size-2"})]},o)),e.jsxRuntimeExports.jsxs(I.Badge,{style:{display:p>0&&!S?"block":"none"},variant:"outline",ref:b,children:["+",p]})]})}function q({search:t=!0,children:r,...i}){const{isLoading:u,onSearchChange:d,searchValue:c,noResultsText:f}=M(),a=typeof t=="object"?!0:t;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:e.jsxRuntimeExports.jsx(m.Command,{children:e.jsxRuntimeExports.jsx(m.CommandList,{children:r})})}),e.jsxRuntimeExports.jsx(N.PopoverContent,{className:"min-w-[var(--radix-popover-trigger-width)] p-0",children:e.jsxRuntimeExports.jsxs(m.Command,{...i,children:[a?e.jsxRuntimeExports.jsx(m.CommandInput,{placeholder:typeof t=="object"?t.placeholder:void 0,value:c,onValueChange:d}):e.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),e.jsxRuntimeExports.jsx(m.CommandList,{children:u?e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center py-6",children:[e.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconLoader2",className:"text-muted-foreground size-4 animate-spin"}),e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground ml-2 text-sm",children:u})]}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[a&&e.jsxRuntimeExports.jsx(m.CommandEmpty,{children:f}),r]})})]})})]})}function O({value:t,children:r,badgeLabel:i,onSelect:u,...d}){const{toggleValue:c,selectedValues:f,onItemAdded:a}=M(),h=f.has(t);return n.useEffect(()=>{a(t,i??r)},[t,r,a,i]),e.jsxRuntimeExports.jsxs(m.CommandItem,{...d,value:t,onSelect:p=>{c(p),u?.(p)},children:[e.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconCheck",className:e.cn("mr-2 size-4",h?"opacity-100":"opacity-0")}),r]})}function L(t){return e.jsxRuntimeExports.jsx(m.CommandGroup,{...t})}function _(t){return e.jsxRuntimeExports.jsx(m.CommandSeparator,{...t})}function M(){const t=n.useContext(V);if(t==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return t}exports.MultiSelect=k;exports.MultiSelectContent=q;exports.MultiSelectGroup=L;exports.MultiSelectItem=O;exports.MultiSelectSeparator=_;exports.MultiSelectTrigger=z;exports.MultiSelectValue=P;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e, c as z } from "../index-DBpnlzOP.js";
|
|
2
2
|
import { B as E } from "../badge-Ds17GJH4.js";
|
|
3
3
|
import { C as P, f as R, d as _, b as A, c as L, e as F, g as W } from "../command-CGUB58ej.js";
|
|
4
|
-
import { P as G, b as T, c as B } from "../popover-
|
|
4
|
+
import { P as G, b as T, c as B } from "../popover-Dvf9oQaX.js";
|
|
5
5
|
import { createContext as X, useState as y, useCallback as I, useEffect as k, useRef as V, useLayoutEffect as q, useContext as D } from "react";
|
|
6
6
|
import { I as N } from "../icon-component-DGImZz3K.js";
|
|
7
7
|
const O = X(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),c=require("../command-CHisYTN-.cjs"),N=require("../input-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),c=require("../command-CHisYTN-.cjs"),N=require("../input-BqT_fuUN.cjs"),x=require("../popover-DifOajI4.cjs"),S=require("../scroll-area-CJpVshOm.cjs"),I=require("react"),w=require("react-phone-number-input"),P=require("react-phone-number-input/flags"),q=require("react-phone-number-input/locale/en"),O=require("react-phone-number-input/locale/es"),_=require("react-phone-number-input/locale/fr"),h=require("../icon-component-DTlgy__B.cjs");function b(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=b(I),R=b(w),y=d.forwardRef(({className:n,onChange:t,value:o,size:r="md",rounded:s="default",locale:l="en",...i},p)=>e.jsxRuntimeExports.jsx(R.default,{ref:p,className:e.cn("flex",n),flagComponent:f,countrySelectComponent:T,inputComponent:C,smartCaret:!1,labels:l==="es"?O:l==="fr"?_:q,value:o||void 0,onChange:u=>t?.(u||""),countrySelectProps:{size:r,rounded:s},numberInputProps:{size:r,rounded:s},...i}));y.displayName="PhoneInput";const C=d.forwardRef(({className:n,rounded:t="default",error:o,touched:r,size:s,...l},i)=>{const{"data-country":p,...u}=l;return e.jsxRuntimeExports.jsx(N.Input,{size:s,className:e.cn("w-full",{"border-destructive":o&&r,"border-blue-800":r&&!o,"rounded-s-none rounded-e-lg":t!=="full","rounded-s-none rounded-e-full":t==="full","rounded-e-sm":s==="sm","rounded-e-md":s==="md","rounded-e-lg":s==="lg"},n),...u,ref:i})});C.displayName="InputComponent";const T=({disabled:n,value:t,options:o,onChange:r,size:s="md",rounded:l="default",error:i,touched:p})=>{const u=d.useRef(null),[E,j]=d.useState(""),[v,g]=d.useState(!1);return e.jsxRuntimeExports.jsxs(x.Popover,{open:v,modal:!0,onOpenChange:a=>{g(a),a&&j("")},children:[e.jsxRuntimeExports.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:paragraph-sm md:paragraph-sm paragraph-md flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":i&&p,"outline-blue-800":p&&!i,"label-md h-8 rounded-s-sm px-2 py-1":s==="sm","label-lg h-12 rounded-s-md px-3 py-1":s==="md","label-xl h-16 rounded-s-lg px-4 py-2":s==="lg"}),disabled:n,children:[e.jsxRuntimeExports.jsx(f,{country:t,countryName:t,disabled:n}),e.jsxRuntimeExports.jsx(h.IconComponent,{iconName:"IconChevronDown",className:e.cn("-mr-2 size-4 opacity-50",n?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(x.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(c.Command,{children:[e.jsxRuntimeExports.jsx(c.CommandInput,{value:E,onValueChange:a=>{j(a),setTimeout(()=>{if(u.current){const m=u.current.querySelector("[data-radix-scroll-area-viewport]");m&&(m.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(c.CommandList,{children:e.jsxRuntimeExports.jsxs(S.ScrollArea,{ref:u,className:"h-72",children:[e.jsxRuntimeExports.jsx(c.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(c.CommandGroup,{children:o.map(({value:a,label:m})=>a?e.jsxRuntimeExports.jsx(k,{country:a,countryName:m,selectedCountry:t,onChange:r,onSelectComplete:()=>g(!1)},a):null)})]})})]})})]})},k=({country:n,countryName:t,selectedCountry:o,onChange:r,onSelectComplete:s})=>{const l=()=>{r(n),s()};return e.jsxRuntimeExports.jsxs(c.CommandItem,{className:"gap-2",onSelect:l,children:[e.jsxRuntimeExports.jsx(f,{country:n,countryName:t}),e.jsxRuntimeExports.jsx("span",{className:"paragraph-sm flex-1",children:t}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 paragraph-sm",children:`+${R.getCountryCallingCode(n)}`}),e.jsxRuntimeExports.jsx(h.IconComponent,{iconName:"IconCheck",className:`ml-auto size-4 ${n===o?"opacity-100":"opacity-0"}`})]})},f=({country:n,countryName:t,disabled:o})=>{const r=P[n];return e.jsxRuntimeExports.jsx("span",{className:e.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":o}),children:r&&e.jsxRuntimeExports.jsx(r,{title:t})})};exports.PhoneInput=y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e, c } from "../index-DBpnlzOP.js";
|
|
2
2
|
import { C as N, d as v, f as I, b as S, c as w, e as P } from "../command-CGUB58ej.js";
|
|
3
|
-
import { I as R } from "../input-
|
|
4
|
-
import { P as O, c as E, b as T } from "../popover-
|
|
3
|
+
import { I as R } from "../input-B5HLfVv0.js";
|
|
4
|
+
import { P as O, c as E, b as T } from "../popover-Dvf9oQaX.js";
|
|
5
5
|
import { S as V } from "../scroll-area-Dj0Szbw6.js";
|
|
6
6
|
import * as p from "react";
|
|
7
7
|
import * as h from "react-phone-number-input";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-DifOajI4.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
|
|
@@ -2,6 +2,6 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, collisionPadding, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),d=require("@radix-ui/react-select"),a=require("../icon-component-DTlgy__B.cjs");function u(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return s.default=t,Object.freeze(s)}const n=u(d);function p({...t}){return e.jsxRuntimeExports.jsx(n.Root,{"data-slot":"select",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(n.Group,{"data-slot":"select-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(n.Value,{"data-slot":"select-value",...t})}function g({className:t,size:s="md",children:o,...r}){return e.jsxRuntimeExports.jsxs(n.Trigger,{"data-slot":"select-trigger","data-size":s,className:e.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',s==="sm"&&"label-md h-8 px-2 py-1",s==="md"&&"label-lg h-12 px-3 py-1",s==="lg"&&"label-xl h-16 px-4 py-2",t),...r,children:[o,e.jsxRuntimeExports.jsx(n.Icon,{asChild:!0,children:e.jsxRuntimeExports.jsx(a.IconComponent,{iconName:"IconChevronDown",className:"size-4 opacity-50"})})]})}function f({className:t,children:s,position:o="popper",collisionPadding:r=24,...c}){return e.jsxRuntimeExports.jsx(n.Portal,{children:e.jsxRuntimeExports.jsxs(n.Content,{"data-slot":"select-content",className:e.cn("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="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",t),position:o,...c,children:[e.jsxRuntimeExports.jsx(l,{}),e.jsxRuntimeExports.jsx(n.Viewport,{className:e.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),e.jsxRuntimeExports.jsx(i,{})]})})}function j({className:t,...s}){return e.jsxRuntimeExports.jsx(n.Label,{"data-slot":"select-label",className:e.cn("text-muted-foreground paragraph-xs px-2 py-1.5",t),...s})}function b({className:t,children:s,...o}){return e.jsxRuntimeExports.jsxs(n.Item,{"data-slot":"select-item",className:e.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...o,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(n.ItemIndicator,{children:e.jsxRuntimeExports.jsx(a.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),e.jsxRuntimeExports.jsx(n.ItemText,{children:s})]})}function v({className:t,...s}){return e.jsxRuntimeExports.jsx(n.Separator,{"data-slot":"select-separator",className:e.cn("bg-border pointer-events-none -mx-1 my-1 h-px",t),...s})}function l({className:t,...s}){return e.jsxRuntimeExports.jsx(n.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(a.IconComponent,{iconName:"IconChevronUp",className:"size-4"})})}function i({className:t,...s}){return e.jsxRuntimeExports.jsx(n.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(a.IconComponent,{iconName:"IconChevronDown",className:"size-4"})})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=x;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=i;exports.SelectScrollUpButton=l;exports.SelectSeparator=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -6,7 +6,7 @@ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPri
|
|
|
6
6
|
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
7
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, collisionPadding, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { j as e, c as
|
|
1
|
+
import { j as e, c as o } from "../index-DBpnlzOP.js";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
3
|
import { I as n } from "../icon-component-DGImZz3K.js";
|
|
4
|
-
function
|
|
4
|
+
function m({
|
|
5
5
|
...t
|
|
6
6
|
}) {
|
|
7
7
|
return /* @__PURE__ */ e.jsx(s.Root, { "data-slot": "select", ...t });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function x({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ e.jsx(s.Group, { "data-slot": "select-group", ...t });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function g({
|
|
15
15
|
...t
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ e.jsx(s.Value, { "data-slot": "select-value", ...t });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function f({
|
|
20
20
|
className: t,
|
|
21
21
|
size: a = "md",
|
|
22
|
-
children:
|
|
22
|
+
children: r,
|
|
23
23
|
...l
|
|
24
24
|
}) {
|
|
25
25
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -27,7 +27,7 @@ function g({
|
|
|
27
27
|
{
|
|
28
28
|
"data-slot": "select-trigger",
|
|
29
29
|
"data-size": a,
|
|
30
|
-
className:
|
|
30
|
+
className: o(
|
|
31
31
|
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
32
32
|
a === "xs" && 'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
|
|
33
33
|
a === "sm" && "label-md h-8 px-2 py-1",
|
|
@@ -37,7 +37,7 @@ function g({
|
|
|
37
37
|
),
|
|
38
38
|
...l,
|
|
39
39
|
children: [
|
|
40
|
-
|
|
40
|
+
r,
|
|
41
41
|
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
42
42
|
n,
|
|
43
43
|
{
|
|
@@ -49,41 +49,42 @@ function g({
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function h({
|
|
53
53
|
className: t,
|
|
54
54
|
children: a,
|
|
55
|
-
position:
|
|
56
|
-
|
|
55
|
+
position: r = "popper",
|
|
56
|
+
collisionPadding: l = 24,
|
|
57
|
+
...i
|
|
57
58
|
}) {
|
|
58
59
|
return /* @__PURE__ */ e.jsx(s.Portal, { children: /* @__PURE__ */ e.jsxs(
|
|
59
60
|
s.Content,
|
|
60
61
|
{
|
|
61
62
|
"data-slot": "select-content",
|
|
62
|
-
className:
|
|
63
|
+
className: o(
|
|
63
64
|
"bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
64
|
-
|
|
65
|
+
r === "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",
|
|
65
66
|
t
|
|
66
67
|
),
|
|
67
|
-
position:
|
|
68
|
-
...
|
|
68
|
+
position: r,
|
|
69
|
+
...i,
|
|
69
70
|
children: [
|
|
70
|
-
/* @__PURE__ */ e.jsx(
|
|
71
|
+
/* @__PURE__ */ e.jsx(c, {}),
|
|
71
72
|
/* @__PURE__ */ e.jsx(
|
|
72
73
|
s.Viewport,
|
|
73
74
|
{
|
|
74
|
-
className:
|
|
75
|
+
className: o(
|
|
75
76
|
"p-1",
|
|
76
|
-
|
|
77
|
+
r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
77
78
|
),
|
|
78
79
|
children: a
|
|
79
80
|
}
|
|
80
81
|
),
|
|
81
|
-
/* @__PURE__ */ e.jsx(
|
|
82
|
+
/* @__PURE__ */ e.jsx(d, {})
|
|
82
83
|
]
|
|
83
84
|
}
|
|
84
85
|
) });
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function v({
|
|
87
88
|
className: t,
|
|
88
89
|
...a
|
|
89
90
|
}) {
|
|
@@ -91,7 +92,7 @@ function h({
|
|
|
91
92
|
s.Label,
|
|
92
93
|
{
|
|
93
94
|
"data-slot": "select-label",
|
|
94
|
-
className:
|
|
95
|
+
className: o(
|
|
95
96
|
"text-muted-foreground paragraph-xs px-2 py-1.5",
|
|
96
97
|
t
|
|
97
98
|
),
|
|
@@ -99,20 +100,20 @@ function h({
|
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function b({
|
|
103
104
|
className: t,
|
|
104
105
|
children: a,
|
|
105
|
-
...
|
|
106
|
+
...r
|
|
106
107
|
}) {
|
|
107
108
|
return /* @__PURE__ */ e.jsxs(
|
|
108
109
|
s.Item,
|
|
109
110
|
{
|
|
110
111
|
"data-slot": "select-item",
|
|
111
|
-
className:
|
|
112
|
+
className: o(
|
|
112
113
|
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
113
114
|
t
|
|
114
115
|
),
|
|
115
|
-
...
|
|
116
|
+
...r,
|
|
116
117
|
children: [
|
|
117
118
|
/* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(n, { iconName: "IconCheck", className: "size-4" }) }) }),
|
|
118
119
|
/* @__PURE__ */ e.jsx(s.ItemText, { children: a })
|
|
@@ -120,7 +121,7 @@ function v({
|
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function j({
|
|
124
125
|
className: t,
|
|
125
126
|
...a
|
|
126
127
|
}) {
|
|
@@ -128,12 +129,12 @@ function b({
|
|
|
128
129
|
s.Separator,
|
|
129
130
|
{
|
|
130
131
|
"data-slot": "select-separator",
|
|
131
|
-
className:
|
|
132
|
+
className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
132
133
|
...a
|
|
133
134
|
}
|
|
134
135
|
);
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
+
function c({
|
|
137
138
|
className: t,
|
|
138
139
|
...a
|
|
139
140
|
}) {
|
|
@@ -141,7 +142,7 @@ function i({
|
|
|
141
142
|
s.ScrollUpButton,
|
|
142
143
|
{
|
|
143
144
|
"data-slot": "select-scroll-up-button",
|
|
144
|
-
className:
|
|
145
|
+
className: o(
|
|
145
146
|
"flex cursor-default items-center justify-center py-1",
|
|
146
147
|
t
|
|
147
148
|
),
|
|
@@ -150,7 +151,7 @@ function i({
|
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function d({
|
|
154
155
|
className: t,
|
|
155
156
|
...a
|
|
156
157
|
}) {
|
|
@@ -158,7 +159,7 @@ function c({
|
|
|
158
159
|
s.ScrollDownButton,
|
|
159
160
|
{
|
|
160
161
|
"data-slot": "select-scroll-down-button",
|
|
161
|
-
className:
|
|
162
|
+
className: o(
|
|
162
163
|
"flex cursor-default items-center justify-center py-1",
|
|
163
164
|
t
|
|
164
165
|
),
|
|
@@ -168,14 +169,14 @@ function c({
|
|
|
168
169
|
);
|
|
169
170
|
}
|
|
170
171
|
export {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
172
|
+
m as Select,
|
|
173
|
+
h as SelectContent,
|
|
174
|
+
x as SelectGroup,
|
|
175
|
+
b as SelectItem,
|
|
176
|
+
v as SelectLabel,
|
|
177
|
+
d as SelectScrollDownButton,
|
|
178
|
+
c as SelectScrollUpButton,
|
|
179
|
+
j as SelectSeparator,
|
|
180
|
+
f as SelectTrigger,
|
|
181
|
+
g as SelectValue
|
|
181
182
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-C9FWg102.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
|
|
@@ -3,5 +3,5 @@ import * as React from 'react';
|
|
|
3
3
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, collisionPadding, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r, c as u } from "./index-DBpnlzOP.js";
|
|
2
2
|
import { c as b } from "./index-CwXB7YIx.js";
|
|
3
3
|
import * as x from "react";
|
|
4
|
-
import { B as g } from "./button-
|
|
4
|
+
import { B as g } from "./button-ozL8afps.js";
|
|
5
5
|
import { I as p } from "./icon-component-DGImZz3K.js";
|
|
6
6
|
const m = b(
|
|
7
7
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-DSjHHn1r.cjs"),m=require("./index-BVmT9wZC.cjs"),f=require("react"),b=require("./button-
|
|
1
|
+
"use strict";const t=require("./index-DSjHHn1r.cjs"),m=require("./index-BVmT9wZC.cjs"),f=require("react"),b=require("./button-B-JHlR-n.cjs"),u=require("./icon-component-DTlgy__B.cjs");function g(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}return e.default=n,Object.freeze(e)}const v=g(f),c=m.cva("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm h-7 px-2 py-1",sm:"label-md h-8 px-2 py-1",md:"label-lg h-12 px-3 py-1",lg:"label-xl h-16 px-4 py-2"}},defaultVariants:{size:"md"}});function j({className:n,type:e,size:r,iconName:i,iconPosition:a="left",...d}){const[o,p]=v.useState(!1),s=i?(l=>typeof l=="string"?{name:l}:l)(i):void 0,x=()=>{p(!o)};return!s&&e!=="password"?t.jsxRuntimeExports.jsx("input",{type:e,"data-slot":"input",className:t.cn(c({size:r}),"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",n),...d}):t.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[s&&a==="left"&&t.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2",children:t.jsxRuntimeExports.jsx(u.IconComponent,{iconName:s.name,stroke:s.stroke,size:20})}),t.jsxRuntimeExports.jsx("input",{type:e==="password"?o?"text":"password":e,"data-slot":"input",className:t.cn(c({size:r}),"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",s&&a==="left"?"pl-10":"",s&&a==="right"||e==="password"?"pr-10":"",n),...d}),e==="password"&&t.jsxRuntimeExports.jsx(b.Button,{variant:"inverse",type:"button",size:r==="xs"||r==="sm"?"xs":"md",tabIndex:-1,"aria-label":o?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2",onClick:x,iconName:o?"IconEyeOff":"IconEye"}),s&&a==="right"&&e!=="password"&&t.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2",children:t.jsxRuntimeExports.jsx(u.IconComponent,{iconName:s.name,stroke:s.stroke,size:20})})]})}exports.Input=j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-DSjHHn1r.cjs"),s=require("@radix-ui/react-popover");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return r.default=t,Object.freeze(r)}const n=d(s);function p({...t}){return e.jsxRuntimeExports.jsx(n.Root,{"data-slot":"popover",...t})}function c({...t}){return e.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"popover-trigger",...t})}function u({className:t,align:r="center",sideOffset:o=4,collisionPadding:i=24,...a}){return e.jsxRuntimeExports.jsx(n.Portal,{children:e.jsxRuntimeExports.jsx(n.Content,{"data-slot":"popover-content",align:r,sideOffset:o,className:e.cn("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...a})})}function l({...t}){return e.jsxRuntimeExports.jsx(n.Anchor,{"data-slot":"popover-anchor",...t})}exports.Popover=p;exports.PopoverAnchor=l;exports.PopoverContent=u;exports.PopoverTrigger=c;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { j as t, c as i } from "./index-DBpnlzOP.js";
|
|
2
2
|
import * as e from "@radix-ui/react-popover";
|
|
3
|
-
function
|
|
3
|
+
function p({
|
|
4
4
|
...o
|
|
5
5
|
}) {
|
|
6
6
|
return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "popover", ...o });
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function m({
|
|
9
9
|
...o
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function c({
|
|
14
14
|
className: o,
|
|
15
15
|
align: a = "center",
|
|
16
16
|
sideOffset: r = 4,
|
|
17
|
+
collisionPadding: d = 24,
|
|
17
18
|
...n
|
|
18
19
|
}) {
|
|
19
20
|
return /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
@@ -30,14 +31,14 @@ function m({
|
|
|
30
31
|
}
|
|
31
32
|
) });
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function l({
|
|
34
35
|
...o
|
|
35
36
|
}) {
|
|
36
37
|
return /* @__PURE__ */ t.jsx(e.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
37
38
|
}
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
p as P,
|
|
41
|
+
l as a,
|
|
42
|
+
c as b,
|
|
43
|
+
m as c
|
|
43
44
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./index-DSjHHn1r.cjs"),l=require("@radix-ui/react-tooltip");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const i=d(l);function s({delayDuration:t=0,...e}){return o.jsxRuntimeExports.jsx(i.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function p({...t}){return o.jsxRuntimeExports.jsx(s,{children:o.jsxRuntimeExports.jsx(i.Root,{"data-slot":"tooltip",...t})})}function c({...t}){return o.jsxRuntimeExports.jsx(i.Trigger,{"data-slot":"tooltip-trigger",...t})}function u({className:t,sideOffset:e=0,collisionPadding:r=24,children:n,...a}){return o.jsxRuntimeExports.jsx(i.Portal,{children:o.jsxRuntimeExports.jsxs(i.Content,{"data-slot":"tooltip-content",sideOffset:e,className:o.cn("text-neutral-1000 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 paragraph-sm z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg bg-white px-3 py-1.5 text-balance shadow-sm",t),...a,children:[n,o.jsxRuntimeExports.jsx(i.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-white fill-white"})]})})}exports.Tooltip=p;exports.TooltipContent=u;exports.TooltipProvider=s;exports.TooltipTrigger=c;
|