@adamosuiteservices/ui 2.11.21 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{button-BzVY7053.js → button-CMWUcYpz.js} +54 -54
- package/dist/button-CmLeuaI0.cjs +75 -0
- package/dist/button-group.cjs +6 -6
- package/dist/button-group.js +20 -20
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{calendar-IAVS_7up.cjs → calendar-DUvRetFW.cjs} +1 -1
- package/dist/{calendar-BIttOd3g.js → calendar-yJWQTCer.js} +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{combobox-DI-WK3Ng.js → combobox-BvjehNR7.js} +89 -86
- package/dist/combobox-CDXlen0X.cjs +40 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/input-otp/index.d.ts +1 -0
- package/dist/components/ui/input-otp/input-otp.d.ts +11 -0
- package/dist/context-menu.cjs +38 -36
- package/dist/context-menu.js +54 -52
- package/dist/date-picker-selector.cjs +1 -1
- package/dist/date-picker-selector.js +4 -4
- package/dist/dropdown-menu.cjs +48 -52
- package/dist/dropdown-menu.js +164 -168
- package/dist/{input-DFvZLcgm.js → input-BCiOr4Fy.js} +7 -6
- package/dist/{input-CWDpI1Ua.cjs → input-Bz5k4w94.cjs} +7 -6
- package/dist/input-group.cjs +5 -5
- package/dist/input-group.js +10 -10
- package/dist/input-otp.cjs +68 -0
- package/dist/input-otp.js +384 -0
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/pagination.cjs +2 -2
- package/dist/pagination.js +4 -3
- package/dist/select.cjs +22 -20
- package/dist/select.js +112 -111
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/styles.css +1 -1
- package/docs/components/ui/button-group.md +986 -984
- package/docs/components/ui/button.md +1156 -1137
- package/docs/components/ui/combobox.md +33 -2
- package/docs/components/ui/command.md +484 -454
- package/docs/components/ui/context-menu.md +574 -540
- package/docs/components/ui/dropdown-menu.md +743 -709
- package/docs/components/ui/input.md +362 -362
- package/docs/components/ui/select.md +357 -352
- package/package.json +8 -3
- package/dist/button-B_VHdPPV.cjs +0 -76
- package/dist/combobox-DplJzBX6.cjs +0 -37
package/dist/context-menu.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),B=require("react"),f=require("./index-BWaO7kQK.cjs"),H=require("./index-cwZN7ZY3.cjs"),F=require("./index-CocSS1YK.cjs"),d=require("./index-8iwAKZIp.cjs"),X=require("./index-CzY-WZXL.cjs"),
|
|
2
|
-
adm:flex adm:cursor-default adm:items-center adm:gap-2
|
|
3
|
-
adm:px-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),B=require("react"),f=require("./index-BWaO7kQK.cjs"),H=require("./index-cwZN7ZY3.cjs"),F=require("./index-CocSS1YK.cjs"),d=require("./index-8iwAKZIp.cjs"),X=require("./index-CzY-WZXL.cjs"),h=require("./icon-DPMQJBkA.cjs"),l=require("./index-DoxiiusW.cjs");function W(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=W(B);var R="ContextMenu",[K]=H.createContextScope(R,[d.createMenuScope]),u=d.createMenuScope(),[Y,b]=K(R),j=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,dir:r,modal:x=!0}=e,[c,i]=s.useState(!1),C=u(t),v=X.useCallbackRef(o),m=s.useCallback(g=>{i(g),v(g)},[v]);return a.jsxRuntimeExports.jsx(Y,{scope:t,open:c,onOpenChange:m,modal:x,children:a.jsxRuntimeExports.jsx(d.Root3,{...C,dir:r,open:c,onOpenChange:m,modal:x,children:n})})};j.displayName=R;var E="ContextMenuTrigger",_=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:o=!1,...r}=e,x=b(E,n),c=u(n),i=s.useRef({x:0,y:0}),C=s.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),v=s.useRef(0),m=s.useCallback(()=>window.clearTimeout(v.current),[]),g=p=>{i.current={x:p.clientX,y:p.clientY},x.onOpenChange(!0)};return s.useEffect(()=>m,[m]),s.useEffect(()=>void(o&&m()),[o,m]),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(d.Anchor2,{...c,virtualRef:C}),a.jsxRuntimeExports.jsx(F.Primitive.span,{"data-state":x.open?"open":"closed","data-disabled":o?"":void 0,...r,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:f.composeEventHandlers(e.onContextMenu,p=>{m(),g(p),p.preventDefault()}),onPointerDown:o?e.onPointerDown:f.composeEventHandlers(e.onPointerDown,M(p=>{m(),v.current=window.setTimeout(()=>g(p),700)})),onPointerMove:o?e.onPointerMove:f.composeEventHandlers(e.onPointerMove,M(m)),onPointerCancel:o?e.onPointerCancel:f.composeEventHandlers(e.onPointerCancel,M(m)),onPointerUp:o?e.onPointerUp:f.composeEventHandlers(e.onPointerUp,M(m))})]})});_.displayName=E;var J="ContextMenuPortal",S=e=>{const{__scopeContextMenu:t,...n}=e,o=u(t);return a.jsxRuntimeExports.jsx(d.Portal,{...o,...n})};S.displayName=J;var N="ContextMenuContent",P=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=b(N,n),x=u(n),c=s.useRef(!1);return a.jsxRuntimeExports.jsx(d.Content2,{...x,...o,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&c.current&&i.preventDefault(),c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!r.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});P.displayName=N;var Q="ContextMenuGroup",I=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Group,{...r,...o,ref:t})});I.displayName=Q;var V="ContextMenuLabel",w=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Label,{...r,...o,ref:t})});w.displayName=V;var Z="ContextMenuItem",y=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Item2,{...r,...o,ref:t})});y.displayName=Z;var ee="ContextMenuCheckboxItem",O=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.CheckboxItem,{...r,...o,ref:t})});O.displayName=ee;var te="ContextMenuRadioGroup",T=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.RadioGroup,{...r,...o,ref:t})});T.displayName=te;var ne="ContextMenuRadioItem",A=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.RadioItem,{...r,...o,ref:t})});A.displayName=ne;var oe="ContextMenuItemIndicator",k=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.ItemIndicator,{...r,...o,ref:t})});k.displayName=oe;var ae="ContextMenuSeparator",G=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Separator,{...r,...o,ref:t})});G.displayName=ae;var re="ContextMenuArrow",se=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Arrow2,{...r,...o,ref:t})});se.displayName=re;var $="ContextMenuSub",D=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,open:r,defaultOpen:x}=e,c=u(t),[i,C]=f.useControllableState({prop:r,defaultProp:x??!1,onChange:o,caller:$});return a.jsxRuntimeExports.jsx(d.Sub,{...c,open:i,onOpenChange:C,children:n})};D.displayName=$;var de="ContextMenuSubTrigger",L=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.SubTrigger,{...r,...o,ref:t})});L.displayName=de;var ue="ContextMenuSubContent",q=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.SubContent,{...r,...o,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});q.displayName=ue;function M(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var ie=j,me=_,z=S,ce=P,xe=I,le=w,pe=y,fe=O,Ce=T,ve=A,U=k,ge=G,Me=D,he=L,Re=q;function be({...e}){return a.jsxRuntimeExports.jsx(ie,{"data-slot":"context-menu",...e})}function je({...e}){return a.jsxRuntimeExports.jsx(me,{"data-slot":"context-menu-trigger",...e})}function Ee({...e}){return a.jsxRuntimeExports.jsx(xe,{"data-slot":"context-menu-group",...e})}function _e({...e}){return a.jsxRuntimeExports.jsx(z,{"data-slot":"context-menu-portal",...e})}function Se({...e}){return a.jsxRuntimeExports.jsx(Me,{"data-slot":"context-menu-sub",...e})}function Ne({...e}){return a.jsxRuntimeExports.jsx(Ce,{"data-slot":"context-menu-radio-group",...e})}function Pe({className:e,inset:t,children:n,...o}){return a.jsxRuntimeExports.jsxs(he,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:l.cn(`
|
|
2
|
+
adm:flex adm:h-10 adm:cursor-default adm:items-center adm:gap-2
|
|
3
|
+
adm:px-3 adm:text-sm adm:outline-hidden adm:select-none
|
|
4
|
+
adm:first:rounded-t-sm
|
|
5
|
+
adm:last:rounded-b-sm
|
|
4
6
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
5
|
-
adm:data-
|
|
7
|
+
adm:data-inset:pl-8
|
|
6
8
|
adm:data-[state=open]:bg-accent
|
|
7
9
|
adm:data-[state=open]:text-accent-foreground
|
|
8
10
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
9
|
-
|
|
10
|
-
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
11
|
-
`,e),...o,children:[n,a.jsxRuntimeExports.jsx(R.Icon,{symbol:"chevron_right",className:`
|
|
11
|
+
`,e),...o,children:[n,a.jsxRuntimeExports.jsx(h.Icon,{symbol:"chevron_right",className:`
|
|
12
12
|
adm:ml-auto adm:shrink-0 adm:text-lg adm:text-muted-foreground
|
|
13
|
-
`})]})}function
|
|
13
|
+
`})]})}function Ie({className:e,...t}){return a.jsxRuntimeExports.jsx(Re,{"data-slot":"context-menu-sub-content",className:l.cn(`
|
|
14
14
|
adm:z-50 adm:min-w-[8rem]
|
|
15
15
|
adm:origin-(--radix-context-menu-content-transform-origin)
|
|
16
|
-
adm:overflow-hidden adm:rounded-md adm:border adm:bg-popover
|
|
16
|
+
adm:overflow-hidden adm:rounded-md adm:border adm:bg-popover
|
|
17
17
|
adm:text-popover-foreground adm:shadow-xs
|
|
18
18
|
adm:data-[side=bottom]:slide-in-from-top-2
|
|
19
19
|
adm:data-[side=left]:slide-in-from-right-2
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
adm:data-[state=closed]:zoom-out-95
|
|
24
24
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
25
25
|
adm:data-[state=open]:zoom-in-95
|
|
26
|
-
`,e),...t})}function
|
|
26
|
+
`,e),...t})}function we({className:e,...t}){return a.jsxRuntimeExports.jsx(z,{children:a.jsxRuntimeExports.jsx(ce,{"data-slot":"context-menu-content",className:l.cn(`
|
|
27
27
|
adm:z-50 adm:max-h-(--radix-context-menu-content-available-height)
|
|
28
28
|
adm:min-w-[8rem]
|
|
29
29
|
adm:origin-(--radix-context-menu-content-transform-origin)
|
|
30
30
|
adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border
|
|
31
|
-
adm:bg-popover adm:
|
|
31
|
+
adm:bg-popover adm:text-popover-foreground adm:shadow-xs
|
|
32
32
|
adm:data-[side=bottom]:slide-in-from-top-2
|
|
33
33
|
adm:data-[side=left]:slide-in-from-right-2
|
|
34
34
|
adm:data-[side=right]:slide-in-from-left-2
|
|
@@ -38,44 +38,46 @@
|
|
|
38
38
|
adm:data-[state=closed]:zoom-out-95
|
|
39
39
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
40
40
|
adm:data-[state=open]:zoom-in-95
|
|
41
|
-
`,e),...t})})}function
|
|
42
|
-
adm:relative adm:flex adm:cursor-default adm:items-center
|
|
43
|
-
adm:
|
|
44
|
-
adm:
|
|
41
|
+
`,e),...t})})}function ye({className:e,inset:t,variant:n="default",...o}){return a.jsxRuntimeExports.jsx(pe,{"data-slot":"context-menu-item","data-inset":t,"data-variant":n,className:l.cn(`
|
|
42
|
+
adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
|
|
43
|
+
adm:gap-2 adm:px-3 adm:text-sm adm:outline-hidden adm:select-none
|
|
44
|
+
adm:first:rounded-t-sm
|
|
45
|
+
adm:last:rounded-b-sm
|
|
45
46
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
46
|
-
adm:data-
|
|
47
|
-
adm:data-
|
|
47
|
+
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
48
|
+
adm:data-inset:pl-8
|
|
48
49
|
adm:data-[variant=destructive]:text-destructive
|
|
49
50
|
adm:data-[variant=destructive]:focus:bg-destructive/10
|
|
50
51
|
adm:data-[variant=destructive]:focus:text-destructive
|
|
51
52
|
adm:dark:data-[variant=destructive]:focus:bg-destructive/20
|
|
52
53
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
53
|
-
adm:[
|
|
54
|
-
|
|
55
|
-
adm:
|
|
56
|
-
|
|
57
|
-
adm:
|
|
58
|
-
adm:rounded-
|
|
59
|
-
adm:
|
|
54
|
+
adm:data-[variant=destructive]:*:[svg]:text-destructive!
|
|
55
|
+
`,e),...o})}function Oe({className:e,children:t,checked:n,...o}){return a.jsxRuntimeExports.jsxs(fe,{"data-slot":"context-menu-checkbox-item",className:l.cn(`
|
|
56
|
+
adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
|
|
57
|
+
adm:gap-2 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
|
|
58
|
+
adm:select-none
|
|
59
|
+
adm:first:rounded-t-sm
|
|
60
|
+
adm:last:rounded-b-sm
|
|
60
61
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
61
|
-
adm:data-
|
|
62
|
+
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
62
63
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
63
|
-
adm:[&_svg:not([class*=size-])]:size-4
|
|
64
64
|
`,e),checked:n,...o,children:[a.jsxRuntimeExports.jsx("span",{className:`
|
|
65
65
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
66
66
|
adm:items-center adm:justify-center
|
|
67
|
-
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(
|
|
68
|
-
adm:relative adm:flex adm:cursor-default adm:items-center
|
|
69
|
-
adm:
|
|
70
|
-
adm:
|
|
67
|
+
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(h.Icon,{symbol:"check",className:"adm:text-lg"})})}),t]})}function Te({className:e,children:t,...n}){return a.jsxRuntimeExports.jsxs(ve,{"data-slot":"context-menu-radio-item",className:l.cn(`
|
|
68
|
+
adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
|
|
69
|
+
adm:gap-2 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
|
|
70
|
+
adm:select-none
|
|
71
|
+
adm:first:rounded-t-sm
|
|
72
|
+
adm:last:rounded-b-sm
|
|
71
73
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
72
|
-
adm:data-
|
|
74
|
+
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
73
75
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
74
|
-
adm:[&_svg:not([class*=size-])]:size-4
|
|
75
76
|
`,e),...n,children:[a.jsxRuntimeExports.jsx("span",{className:`
|
|
76
77
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
77
78
|
adm:items-center adm:justify-center
|
|
78
|
-
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(
|
|
79
|
-
adm:
|
|
80
|
-
adm:
|
|
81
|
-
|
|
79
|
+
`,children:a.jsxRuntimeExports.jsx(U,{children:a.jsxRuntimeExports.jsx(h.Icon,{symbol:"circle",fill:1,className:"adm:text-xs"})})}),t]})}function Ae({className:e,inset:t,...n}){return a.jsxRuntimeExports.jsx(le,{"data-slot":"context-menu-label","data-inset":t,className:l.cn(`
|
|
80
|
+
adm:flex adm:h-10 adm:items-center adm:px-3 adm:text-sm
|
|
81
|
+
adm:font-medium adm:text-foreground
|
|
82
|
+
adm:data-inset:pl-8
|
|
83
|
+
`,e),...n})}function ke({className:e,...t}){return a.jsxRuntimeExports.jsx(ge,{"data-slot":"context-menu-separator",className:l.cn("adm:h-px adm:bg-border",e),...t})}function Ge({className:e,...t}){return a.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:l.cn("adm:ml-auto adm:text-xs adm:tracking-widest adm:text-muted-foreground",e),...t})}exports.ContextMenu=be;exports.ContextMenuCheckboxItem=Oe;exports.ContextMenuContent=we;exports.ContextMenuGroup=Ee;exports.ContextMenuItem=ye;exports.ContextMenuLabel=Ae;exports.ContextMenuPortal=_e;exports.ContextMenuRadioGroup=Ne;exports.ContextMenuRadioItem=Te;exports.ContextMenuSeparator=ke;exports.ContextMenuShortcut=Ge;exports.ContextMenuSub=Se;exports.ContextMenuSubContent=Ie;exports.ContextMenuSubTrigger=Pe;exports.ContextMenuTrigger=je;
|
package/dist/context-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as o } from "./jsx-runtime-BzflLqGi.js";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as C, u as F } from "./index-C0UREtMP.js";
|
|
5
5
|
import { c as X } from "./index-FxyLF8MY.js";
|
|
6
6
|
import { P as H } from "./index-BMWt1NBG.js";
|
|
7
7
|
import { c as b, R as W, A as K, P as Y, C as q, I as J, a as Q, b as V, d as Z, L as ee, S as te, G as ae, e as ne, f as oe, g as re, h as de, i as se } from "./index-wujanfX3.js";
|
|
@@ -59,18 +59,18 @@ var N = "ContextMenuTrigger", P = d.forwardRef(
|
|
|
59
59
|
...r,
|
|
60
60
|
ref: t,
|
|
61
61
|
style: { WebkitTouchCallout: "none", ...e.style },
|
|
62
|
-
onContextMenu: a ? e.onContextMenu :
|
|
62
|
+
onContextMenu: a ? e.onContextMenu : C(e.onContextMenu, (l) => {
|
|
63
63
|
i(), v(l), l.preventDefault();
|
|
64
64
|
}),
|
|
65
|
-
onPointerDown: a ? e.onPointerDown :
|
|
65
|
+
onPointerDown: a ? e.onPointerDown : C(
|
|
66
66
|
e.onPointerDown,
|
|
67
|
-
|
|
67
|
+
g((l) => {
|
|
68
68
|
i(), f.current = window.setTimeout(() => v(l), 700);
|
|
69
69
|
})
|
|
70
70
|
),
|
|
71
|
-
onPointerMove: a ? e.onPointerMove :
|
|
72
|
-
onPointerCancel: a ? e.onPointerCancel :
|
|
73
|
-
onPointerUp: a ? e.onPointerUp :
|
|
71
|
+
onPointerMove: a ? e.onPointerMove : C(e.onPointerMove, g(i)),
|
|
72
|
+
onPointerCancel: a ? e.onPointerCancel : C(e.onPointerCancel, g(i)),
|
|
73
|
+
onPointerUp: a ? e.onPointerUp : C(e.onPointerUp, g(i))
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
] });
|
|
@@ -144,16 +144,16 @@ var ve = "ContextMenuRadioGroup", O = d.forwardRef((e, t) => {
|
|
|
144
144
|
return /* @__PURE__ */ o.jsx(de, { ...r, ...a, ref: t });
|
|
145
145
|
});
|
|
146
146
|
O.displayName = ve;
|
|
147
|
-
var
|
|
147
|
+
var Ce = "ContextMenuRadioItem", T = d.forwardRef((e, t) => {
|
|
148
148
|
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
149
149
|
return /* @__PURE__ */ o.jsx(Z, { ...r, ...a, ref: t });
|
|
150
150
|
});
|
|
151
|
-
T.displayName =
|
|
152
|
-
var
|
|
151
|
+
T.displayName = Ce;
|
|
152
|
+
var ge = "ContextMenuItemIndicator", k = d.forwardRef((e, t) => {
|
|
153
153
|
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
154
154
|
return /* @__PURE__ */ o.jsx(V, { ...r, ...a, ref: t });
|
|
155
155
|
});
|
|
156
|
-
k.displayName =
|
|
156
|
+
k.displayName = ge;
|
|
157
157
|
var he = "ContextMenuSeparator", G = d.forwardRef((e, t) => {
|
|
158
158
|
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
159
159
|
return /* @__PURE__ */ o.jsx(te, { ...r, ...a, ref: t });
|
|
@@ -166,22 +166,22 @@ var Me = "ContextMenuArrow", be = d.forwardRef(
|
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
168
|
be.displayName = Me;
|
|
169
|
-
var
|
|
169
|
+
var $ = "ContextMenuSub", L = (e) => {
|
|
170
170
|
const { __scopeContextMenu: t, children: n, onOpenChange: a, open: r, defaultOpen: c } = e, u = s(t), [m, p] = F({
|
|
171
171
|
prop: r,
|
|
172
172
|
defaultProp: c ?? !1,
|
|
173
173
|
onChange: a,
|
|
174
|
-
caller:
|
|
174
|
+
caller: $
|
|
175
175
|
});
|
|
176
176
|
return /* @__PURE__ */ o.jsx(ne, { ...u, open: m, onOpenChange: p, children: n });
|
|
177
177
|
};
|
|
178
|
-
|
|
179
|
-
var _e = "ContextMenuSubTrigger",
|
|
178
|
+
L.displayName = $;
|
|
179
|
+
var _e = "ContextMenuSubTrigger", D = d.forwardRef((e, t) => {
|
|
180
180
|
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
181
181
|
return /* @__PURE__ */ o.jsx(re, { ...r, ...a, ref: t });
|
|
182
182
|
});
|
|
183
|
-
|
|
184
|
-
var Re = "ContextMenuSubContent",
|
|
183
|
+
D.displayName = _e;
|
|
184
|
+
var Re = "ContextMenuSubContent", U = d.forwardRef((e, t) => {
|
|
185
185
|
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
186
186
|
return /* @__PURE__ */ o.jsx(
|
|
187
187
|
oe,
|
|
@@ -200,11 +200,11 @@ var Re = "ContextMenuSubContent", D = d.forwardRef((e, t) => {
|
|
|
200
200
|
}
|
|
201
201
|
);
|
|
202
202
|
});
|
|
203
|
-
|
|
204
|
-
function
|
|
203
|
+
U.displayName = Re;
|
|
204
|
+
function g(e) {
|
|
205
205
|
return (t) => t.pointerType !== "mouse" ? e(t) : void 0;
|
|
206
206
|
}
|
|
207
|
-
var Ne = R, Pe = P,
|
|
207
|
+
var Ne = R, Pe = P, z = S, Se = w, je = I, we = y, Ie = E, ye = A, Ee = O, Ae = T, B = k, Oe = G, Te = L, ke = D, Ge = U;
|
|
208
208
|
function He({
|
|
209
209
|
...e
|
|
210
210
|
}) {
|
|
@@ -223,7 +223,7 @@ function Ke({
|
|
|
223
223
|
function Ye({
|
|
224
224
|
...e
|
|
225
225
|
}) {
|
|
226
|
-
return /* @__PURE__ */ o.jsx(
|
|
226
|
+
return /* @__PURE__ */ o.jsx(z, { "data-slot": "context-menu-portal", ...e });
|
|
227
227
|
}
|
|
228
228
|
function qe({
|
|
229
229
|
...e
|
|
@@ -254,15 +254,15 @@ function Qe({
|
|
|
254
254
|
"data-inset": t,
|
|
255
255
|
className: x(
|
|
256
256
|
`
|
|
257
|
-
adm:flex adm:cursor-default adm:items-center adm:gap-2
|
|
258
|
-
adm:px-
|
|
257
|
+
adm:flex adm:h-10 adm:cursor-default adm:items-center adm:gap-2
|
|
258
|
+
adm:px-3 adm:text-sm adm:outline-hidden adm:select-none
|
|
259
|
+
adm:first:rounded-t-sm
|
|
260
|
+
adm:last:rounded-b-sm
|
|
259
261
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
260
|
-
adm:data-
|
|
262
|
+
adm:data-inset:pl-8
|
|
261
263
|
adm:data-[state=open]:bg-accent
|
|
262
264
|
adm:data-[state=open]:text-accent-foreground
|
|
263
265
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
264
|
-
adm:[&_svg:not([class*=size-])]:size-4
|
|
265
|
-
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
266
266
|
`,
|
|
267
267
|
e
|
|
268
268
|
),
|
|
@@ -294,7 +294,7 @@ function Ve({
|
|
|
294
294
|
`
|
|
295
295
|
adm:z-50 adm:min-w-[8rem]
|
|
296
296
|
adm:origin-(--radix-context-menu-content-transform-origin)
|
|
297
|
-
adm:overflow-hidden adm:rounded-md adm:border adm:bg-popover
|
|
297
|
+
adm:overflow-hidden adm:rounded-md adm:border adm:bg-popover
|
|
298
298
|
adm:text-popover-foreground adm:shadow-xs
|
|
299
299
|
adm:data-[side=bottom]:slide-in-from-top-2
|
|
300
300
|
adm:data-[side=left]:slide-in-from-right-2
|
|
@@ -315,7 +315,7 @@ function Ze({
|
|
|
315
315
|
className: e,
|
|
316
316
|
...t
|
|
317
317
|
}) {
|
|
318
|
-
return /* @__PURE__ */ o.jsx(
|
|
318
|
+
return /* @__PURE__ */ o.jsx(z, { children: /* @__PURE__ */ o.jsx(
|
|
319
319
|
Se,
|
|
320
320
|
{
|
|
321
321
|
"data-slot": "context-menu-content",
|
|
@@ -325,7 +325,7 @@ function Ze({
|
|
|
325
325
|
adm:min-w-[8rem]
|
|
326
326
|
adm:origin-(--radix-context-menu-content-transform-origin)
|
|
327
327
|
adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border
|
|
328
|
-
adm:bg-popover adm:
|
|
328
|
+
adm:bg-popover adm:text-popover-foreground adm:shadow-xs
|
|
329
329
|
adm:data-[side=bottom]:slide-in-from-top-2
|
|
330
330
|
adm:data-[side=left]:slide-in-from-right-2
|
|
331
331
|
adm:data-[side=right]:slide-in-from-left-2
|
|
@@ -356,20 +356,19 @@ function et({
|
|
|
356
356
|
"data-variant": n,
|
|
357
357
|
className: x(
|
|
358
358
|
`
|
|
359
|
-
adm:relative adm:flex adm:cursor-default adm:items-center
|
|
360
|
-
adm:
|
|
361
|
-
adm:
|
|
359
|
+
adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
|
|
360
|
+
adm:gap-2 adm:px-3 adm:text-sm adm:outline-hidden adm:select-none
|
|
361
|
+
adm:first:rounded-t-sm
|
|
362
|
+
adm:last:rounded-b-sm
|
|
362
363
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
363
|
-
adm:data-
|
|
364
|
-
adm:data-
|
|
364
|
+
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
365
|
+
adm:data-inset:pl-8
|
|
365
366
|
adm:data-[variant=destructive]:text-destructive
|
|
366
367
|
adm:data-[variant=destructive]:focus:bg-destructive/10
|
|
367
368
|
adm:data-[variant=destructive]:focus:text-destructive
|
|
368
369
|
adm:dark:data-[variant=destructive]:focus:bg-destructive/20
|
|
369
370
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
370
|
-
adm:[
|
|
371
|
-
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
372
|
-
adm:data-[variant=destructive]:*:[svg]:!text-destructive
|
|
371
|
+
adm:data-[variant=destructive]:*:[svg]:text-destructive!
|
|
373
372
|
`,
|
|
374
373
|
e
|
|
375
374
|
),
|
|
@@ -389,13 +388,14 @@ function tt({
|
|
|
389
388
|
"data-slot": "context-menu-checkbox-item",
|
|
390
389
|
className: x(
|
|
391
390
|
`
|
|
392
|
-
adm:relative adm:flex adm:cursor-default adm:items-center
|
|
393
|
-
adm:
|
|
394
|
-
adm:
|
|
391
|
+
adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
|
|
392
|
+
adm:gap-2 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
|
|
393
|
+
adm:select-none
|
|
394
|
+
adm:first:rounded-t-sm
|
|
395
|
+
adm:last:rounded-b-sm
|
|
395
396
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
396
|
-
adm:data-
|
|
397
|
+
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
397
398
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
398
|
-
adm:[&_svg:not([class*=size-])]:size-4
|
|
399
399
|
`,
|
|
400
400
|
e
|
|
401
401
|
),
|
|
@@ -409,7 +409,7 @@ function tt({
|
|
|
409
409
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
410
410
|
adm:items-center adm:justify-center
|
|
411
411
|
`,
|
|
412
|
-
children: /* @__PURE__ */ o.jsx(B, { children: /* @__PURE__ */ o.jsx(h, { symbol: "check" }) })
|
|
412
|
+
children: /* @__PURE__ */ o.jsx(B, { children: /* @__PURE__ */ o.jsx(h, { symbol: "check", className: "adm:text-lg" }) })
|
|
413
413
|
}
|
|
414
414
|
),
|
|
415
415
|
t
|
|
@@ -428,13 +428,14 @@ function at({
|
|
|
428
428
|
"data-slot": "context-menu-radio-item",
|
|
429
429
|
className: x(
|
|
430
430
|
`
|
|
431
|
-
adm:relative adm:flex adm:cursor-default adm:items-center
|
|
432
|
-
adm:
|
|
433
|
-
adm:
|
|
431
|
+
adm:relative adm:flex adm:h-10 adm:cursor-default adm:items-center
|
|
432
|
+
adm:gap-2 adm:pr-10 adm:pl-8 adm:text-sm adm:outline-hidden
|
|
433
|
+
adm:select-none
|
|
434
|
+
adm:first:rounded-t-sm
|
|
435
|
+
adm:last:rounded-b-sm
|
|
434
436
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
435
|
-
adm:data-
|
|
437
|
+
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
436
438
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
437
|
-
adm:[&_svg:not([class*=size-])]:size-4
|
|
438
439
|
`,
|
|
439
440
|
e
|
|
440
441
|
),
|
|
@@ -447,7 +448,7 @@ function at({
|
|
|
447
448
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
448
449
|
adm:items-center adm:justify-center
|
|
449
450
|
`,
|
|
450
|
-
children: /* @__PURE__ */ o.jsx(B, { children: /* @__PURE__ */ o.jsx(h, { symbol: "circle", fill: 1, className: "adm:text-
|
|
451
|
+
children: /* @__PURE__ */ o.jsx(B, { children: /* @__PURE__ */ o.jsx(h, { symbol: "circle", fill: 1, className: "adm:text-xs" }) })
|
|
451
452
|
}
|
|
452
453
|
),
|
|
453
454
|
t
|
|
@@ -467,8 +468,9 @@ function nt({
|
|
|
467
468
|
"data-inset": t,
|
|
468
469
|
className: x(
|
|
469
470
|
`
|
|
470
|
-
adm:
|
|
471
|
-
adm:
|
|
471
|
+
adm:flex adm:h-10 adm:items-center adm:px-3 adm:text-sm
|
|
472
|
+
adm:font-medium adm:text-foreground
|
|
473
|
+
adm:data-inset:pl-8
|
|
472
474
|
`,
|
|
473
475
|
e
|
|
474
476
|
),
|
|
@@ -484,7 +486,7 @@ function ot({
|
|
|
484
486
|
Oe,
|
|
485
487
|
{
|
|
486
488
|
"data-slot": "context-menu-separator",
|
|
487
|
-
className: x("adm
|
|
489
|
+
className: x("adm:h-px adm:bg-border", e),
|
|
488
490
|
...t
|
|
489
491
|
}
|
|
490
492
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),x=require("./button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),x=require("./button-CmLeuaI0.cjs"),m=require("./calendar-DUvRetFW.cjs"),R=require("./combobox-CDXlen0X.cjs"),v=require("./input-Bz5k4w94.cjs"),i=require("./popover-cGp_rNLg.cjs"),u=require("react");function d(n,o,l){return m.addDays(n,-o,l)}function g({dateRange:n,onDateRangeChange:o,labels:l,combobox:y,calendar:j}){const[f,b]=u.useState(void 0),[h,r]=u.useState(!1),[c,p]=u.useState(n),a={...{last30Days:"Last 30 days",last7Days:"Last 7 days",last90Days:"Last 90 days",custom:"Custom",placeholder:"Date",cancel:"Cancel",apply:"Apply"},...l},D=s=>{const t=m.startOfDay(new Date);switch(s){case"7_days":return{from:d(t,7),to:t};case"30_days":return{from:d(t,30),to:t};case"90_days":return{from:d(t,90),to:t};default:return{from:void 0,to:void 0}}};return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(R.Combobox,{alwaysShowPlaceholder:!0,selectedFeedback:"check",icon:"calendar_today",options:[{label:a.last7Days,value:"7_days"},{label:a.last30Days,value:"30_days"},{label:a.last90Days,value:"90_days"},{label:a.custom,value:"custom"}],value:f,onValueChange:s=>{if(typeof s=="string")if(s==="custom")r(!0);else{const t=D(s);o(t),p(void 0)}b(s)},labels:{placeholder:a.placeholder},...y}),e.jsxRuntimeExports.jsxs(i.Popover,{open:h,onOpenChange:r,children:[e.jsxRuntimeExports.jsx(i.PopoverAnchor,{asChild:!0,children:e.jsxRuntimeExports.jsx(v.Input,{className:"adm:sr-only adm:w-0"})}),e.jsxRuntimeExports.jsxs(i.PopoverContent,{align:"start",children:[e.jsxRuntimeExports.jsx(m.Calendar,{required:!0,mode:"range",selected:c,onSelect:p,captionLayout:"dropdown",classNames:{root:"adm:p-0!"},...j}),e.jsxRuntimeExports.jsxs("div",{className:"adm:mt-2 adm:flex adm:justify-end adm:gap-2",children:[e.jsxRuntimeExports.jsx(x.Button,{variant:"link",onClick:()=>{r(!1)},children:a.cancel}),e.jsxRuntimeExports.jsx(x.Button,{variant:"link",onClick:()=>{c&&o(c),r(!1)},children:a.apply})]})]})]})]})}exports.DatePickerSelector=g;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { B as u } from "./button-
|
|
3
|
-
import { b, C as j, s as v } from "./calendar-
|
|
4
|
-
import { C } from "./combobox-
|
|
5
|
-
import { I as g } from "./input-
|
|
2
|
+
import { B as u } from "./button-CMWUcYpz.js";
|
|
3
|
+
import { b, C as j, s as v } from "./calendar-yJWQTCer.js";
|
|
4
|
+
import { C } from "./combobox-BvjehNR7.js";
|
|
5
|
+
import { I as g } from "./input-BCiOr4Fy.js";
|
|
6
6
|
import { P as k, c as P, b as w } from "./popover-DcQ18EVl.js";
|
|
7
7
|
import { useState as d } from "react";
|
|
8
8
|
function i(l, o, n) {
|