@omniviewdev/ui 0.1.10 → 0.2.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.
Files changed (39) hide show
  1. package/dist/AppTheme-BakZ7ezV.cjs +1 -0
  2. package/dist/AppTheme-wAxlNjgN.js +291 -0
  3. package/dist/Select-Dg7Xdulg.js +282 -0
  4. package/dist/Select-mxLKNk8-.cjs +1 -0
  5. package/dist/buttons/ActionMenu.d.ts +3 -1
  6. package/dist/buttons.cjs +1 -1
  7. package/dist/buttons.js +102 -101
  8. package/dist/charts.cjs +1 -1
  9. package/dist/charts.js +1 -1
  10. package/dist/editors/CodeEditor.d.ts +4 -1
  11. package/dist/editors/DiffViewer.d.ts +17 -1
  12. package/dist/editors/index.d.ts +1 -1
  13. package/dist/editors/themes.d.ts +13 -0
  14. package/dist/editors.cjs +26 -26
  15. package/dist/editors.js +4194 -4096
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.js +175 -163
  18. package/dist/inputs.cjs +1 -1
  19. package/dist/inputs.js +1 -1
  20. package/dist/navigation.cjs +1 -1
  21. package/dist/navigation.js +66 -57
  22. package/dist/theme/AppTheme.d.ts +11 -2
  23. package/dist/theme/customizations/dataDisplay.d.ts +11 -0
  24. package/dist/theme/customizations/feedback.d.ts +6 -0
  25. package/dist/theme/customizations/inputs.d.ts +7 -0
  26. package/dist/theme/customizations/navigation.d.ts +7 -0
  27. package/dist/theme/index.d.ts +10 -5
  28. package/dist/theme/registry/init.d.ts +1 -0
  29. package/dist/theme/registry/registry.d.ts +9 -0
  30. package/dist/theme/registry/types.d.ts +19 -0
  31. package/dist/theme/registry/variants/default/index.d.ts +2 -0
  32. package/dist/theme/registry/variants/solarized/index.d.ts +2 -0
  33. package/dist/theme/registry/variants/solarized/palettes.d.ts +147 -0
  34. package/dist/theme.cjs +1 -1
  35. package/dist/theme.js +1250 -1275
  36. package/dist/tokens.css +116 -0
  37. package/package.json +1 -1
  38. package/dist/Select-CnRBSc5w.cjs +0 -1
  39. package/dist/Select-DTUF31OP.js +0 -206
package/dist/inputs.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),ue=require("react"),hs=require("@mui/material/OutlinedInput"),on=require("@mui/material/InputAdornment"),kt=require("@mui/material/IconButton"),ea=require("@mui/icons-material/Search"),ta=require("@mui/icons-material/Close"),na=require("./SearchInput-CFBBNdI2.cjs"),Et=require("@mui/material/TextField"),je=require("./types.cjs"),We=require("@mui/material/Box"),st=require("@mui/material/Typography"),oa=require("./Select-CnRBSc5w.cjs"),ra=require("@mui/material/Autocomplete"),sa=require("@mui/material/CircularProgress"),ia=require("@mui/material/Checkbox"),Do=require("@mui/material/FormControlLabel"),aa=require("@mui/material/RadioGroup"),la=require("@mui/material/Radio"),kn=require("@mui/material/FormControl"),ca=require("@mui/material/FormLabel"),ys=require("@mui/material/FormHelperText"),ua=require("@mui/material/Switch"),da=require("@mui/material/Slider"),bs=require("@mui/material/Chip"),gs=require("@mui/material/Popper"),xs=require("@mui/material/Paper"),To=require("@mui/material/MenuItem"),fa=require("@mui/material/ClickAwayListener"),Ge=require("@mui/material/Button"),pa=require("@mui/icons-material/Add"),ma=require("@mui/icons-material/Delete"),ko=require("@mui/material/Divider"),ha=require("@mui/material/Collapse"),ya=require("@mui/icons-material/ExpandMore"),ba=require("@mui/material/Popover"),h=require("./_commonjsHelpers-D3HyQheV.cjs"),j=require("@mui/material/styles"),yr=require("date-fns/addDays"),ga=require("date-fns/addSeconds"),xa=require("date-fns/addMinutes"),va=require("date-fns/addHours"),Sa=require("date-fns/addWeeks"),Pa=require("date-fns/addMonths"),Ca=require("date-fns/addYears"),br=require("date-fns/endOfDay"),wa=require("date-fns/endOfWeek"),gr=require("date-fns/endOfYear"),to=require("date-fns/format"),Da=require("date-fns/getDate"),Ta=require("date-fns/getDaysInMonth"),ka=require("date-fns/getHours"),Ea=require("date-fns/getMinutes"),Oa=require("date-fns/getMonth"),Ma=require("date-fns/getSeconds"),Ra=require("date-fns/getMilliseconds"),Ia=require("date-fns/getWeek"),Va=require("date-fns/getYear"),no=require("date-fns/isAfter"),oo=require("date-fns/isBefore"),_a=require("date-fns/isEqual"),Na=require("date-fns/isSameDay"),Fa=require("date-fns/isSameYear"),ja=require("date-fns/isSameMonth"),Aa=require("date-fns/isSameHour"),La=require("date-fns/isValid"),$a=require("date-fns/parse"),Ba=require("date-fns/setDate"),Wa=require("date-fns/setHours"),qa=require("date-fns/setMinutes"),Ha=require("date-fns/setMonth"),za=require("date-fns/setSeconds"),Ya=require("date-fns/setMilliseconds"),Ua=require("date-fns/setYear"),Ka=require("date-fns/startOfDay"),Ga=require("date-fns/startOfMonth"),Qa=require("date-fns/endOfMonth"),Xa=require("date-fns/startOfWeek"),Za=require("date-fns/startOfYear"),Ja=require("date-fns/isWithinInterval"),el=require("date-fns/locale/en-US"),vs=require("@mui/material/useMediaQuery"),xr=require("@mui/material/Tab"),vr=require("@mui/material/Tabs"),gt=require("@mui/material/utils"),En=require("@mui/material/Fade"),fn=require("react-dom"),tl=require("@mui/material/ButtonBase"),nl=require("@mui/material/DialogActions"),ol=require("@mui/material/List"),rl=require("@mui/material/ListItem"),Ss=require("@mui/material/MenuList"),bt=require("@mui/material/version"),sl=require("@mui/material/InputLabel"),il=require("@mui/material/Grow"),al=require("@mui/material/Unstable_TrapFocus"),ll=require("@mui/material/DialogContent"),ro=require("@mui/material/Dialog");function cl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const g=cl(ue);function ul({value:e,onChange:t,debounce:o=500,placeholder:r="Search",...s}){const[i,a]=ue.useState(e),l=()=>{t("")};return ue.useEffect(()=>{a(e)},[e]),ue.useEffect(()=>{const c=setTimeout(()=>{t(i)},o);return()=>{clearTimeout(c)}},[i]),y.jsx(hs,{...s,value:i,size:"small",placeholder:r,type:"text",autoComplete:"off",onChange:c=>{a(c.target.value)},startAdornment:y.jsx(on,{position:"start",children:y.jsx(ea,{fontSize:"small"})}),endAdornment:i?y.jsx(on,{position:"end",children:y.jsx(kt,{size:"small",onClick:l,edge:"end",children:y.jsx(ta,{fontSize:"small"})})}):void 0,sx:{flexGrow:1,maxWidth:500,minWidth:300,minHeight:36},inputProps:{autoCorrect:"off",autoComplete:"off"}})}function Ps({value:e="",onChange:t,size:o="md",color:r="neutral",readOnly:s=!1,monospace:i=!1,debounced:a=!1,debounceMs:l=300,label:c,helperText:u,error:d,placeholder:m,fullWidth:p,startAdornment:b,endAdornment:v,disabled:f,type:x,variant:P="outlined",autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,inputProps:M,sx:N}){const[R,D]=ue.useState(e),I=ue.useRef(null);ue.useEffect(()=>{D(e)},[e]);const A=ue.useCallback(q=>{const E=q.target.value;a?(D(E),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>t?.(E),l)):(D(E),t?.(E))},[a,l,t]);ue.useEffect(()=>()=>{I.current&&clearTimeout(I.current)},[]);const L=je.toMuiInputSize(o),$=je.toMuiColor(r),F=typeof d=="string"?!!d:d,se=typeof d=="string"?d:void 0;return y.jsx(Et,{value:R,onChange:A,size:L,color:$==="default"||$==="inherit"?void 0:$,variant:P,label:c,helperText:se??u,error:F,placeholder:m,fullWidth:p,disabled:f,type:x,autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,slotProps:{input:{readOnly:s,startAdornment:b?y.jsx(on,{position:"start",children:b}):void 0,endAdornment:v?y.jsx(on,{position:"end",children:v}):void 0,sx:i?{fontFamily:"var(--ov-font-mono)"}:void 0},htmlInput:M},style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},sx:N})}Ps.displayName="TextField";function Cs({value:e,onChange:t,size:o="md",color:r="neutral",autosize:s=!1,maxLength:i,showCount:a=!1,rows:l=3,minRows:c,maxRows:u=8,label:d,helperText:m,error:p,placeholder:b,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(o),C=je.toMuiColor(r),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0,S=a&&i?`${e.length} / ${i}`:a?`${e.length}`:void 0;return y.jsxs(We,{sx:x,children:[y.jsx(Et,{value:e,onChange:_=>{const V=i?_.target.value.slice(0,i):_.target.value;t(V)},size:P,color:C==="default"||C==="inherit"?void 0:C,label:d,helperText:T??m,error:w,placeholder:b,fullWidth:v,disabled:f,multiline:!0,minRows:c??l,maxRows:s?u:l,style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},slotProps:{htmlInput:{maxLength:i}}}),S&&y.jsx(st,{variant:"caption",sx:{display:"block",textAlign:"right",mt:.25,color:"var(--ov-fg-faint)",fontSize:"var(--ov-text-xs)"},children:S})]})}Cs.displayName="TextArea";function ws({options:e,value:t,onChange:o,size:r="md",color:s="neutral",creatable:i=!1,loading:a=!1,groupBy:l,renderOption:c,label:u,helperText:d,placeholder:m,error:p,multiple:b=!1,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(r),C=je.toMuiColor(s),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0;return y.jsx(ra,{options:e,value:t,onChange:(S,_)=>o(_),getOptionLabel:S=>typeof S=="string"?S:S.label,isOptionEqualToValue:(S,_)=>S.value===_.value,multiple:b,freeSolo:i,loading:a,disabled:f,groupBy:l,size:P,fullWidth:v,renderOption:c?(S,_)=>ue.createElement("li",{...S,key:_.value},c(_)):void 0,renderInput:S=>y.jsx(Et,{...S,label:u,placeholder:m,helperText:T??d,error:w,color:C==="default"||C==="inherit"?void 0:C,slotProps:{input:{...S.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[a&&y.jsx(sa,{color:"inherit",size:16}),S.InputProps.endAdornment]})}}}),style:{"--ov-input-height":je.INPUT_HEIGHTS[r]},sx:x})}ws.displayName="Autocomplete";function Ds({checked:e,onChange:t,size:o="sm",color:r="primary",indeterminate:s=!1,label:i,disabled:a,sx:l}){const c=je.toMuiSize(o),u=je.toMuiColor(r),d=y.jsx(ia,{checked:e,onChange:(m,p)=>t(p),size:c,color:u==="default"||u==="inherit"?"primary":u,indeterminate:s,disabled:a});return i?y.jsx(Do,{control:d,label:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):y.jsx("span",{style:void 0,children:d})}Ds.displayName="Checkbox";function Ts({options:e,value:t,onChange:o,size:r="sm",color:s="primary",layout:i="column",label:a,sx:l}){const c=je.toMuiSize(r),u=je.toMuiColor(s);return y.jsxs(kn,{sx:l,children:[a&&y.jsx(ca,{sx:{fontSize:"var(--ov-text-sm)",fontWeight:500,mb:.5},children:a}),y.jsx(aa,{value:t,onChange:(d,m)=>o(m),row:i==="row",children:e.map(d=>y.jsx(Do,{value:d.value,disabled:d.disabled,control:y.jsx(la,{size:c,color:u==="default"||u==="inherit"?"primary":u}),label:d.description?y.jsxs("span",{children:[y.jsx("span",{children:d.label}),y.jsx(ys,{sx:{m:0,mt:-.25},children:d.description})]}):d.label,sx:{"& .MuiFormControlLabel-label":{fontSize:r==="xs"||r==="sm"?"var(--ov-text-sm)":void 0}}},d.value))})]})}Ts.displayName="RadioGroup";const dl={xs:{width:32,height:18,thumb:14,translate:14},sm:{width:36,height:20,thumb:16,translate:16},md:{width:44,height:24,thumb:20,translate:20},lg:{width:52,height:28,thumb:24,translate:24},xl:{width:60,height:32,thumb:28,translate:28}};function ks({checked:e,onChange:t,size:o="md",color:r="primary",label:s,labelPlacement:i="end",disabled:a,sx:l}){const c=je.toMuiColor(r),u=dl[o],d=o!=="md"?{width:u.width,height:u.height,"& .MuiSwitch-switchBase.Mui-checked":{transform:`translateX(${u.translate}px)`},"& .MuiSwitch-thumb":{width:u.thumb,height:u.thumb}}:{},m=y.jsx(ua,{checked:e,onChange:(p,b)=>t(b),color:c==="default"||c==="inherit"?"primary":c,disabled:a,sx:d});return s?y.jsx(Do,{control:m,label:s,labelPlacement:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):m}ks.displayName="Switch";function Es({value:e,onChange:t,size:o="sm",color:r="primary",marks:s,showValue:i=!1,min:a=0,max:l=100,step:c=1,disabled:u,sx:d}){const m=je.toMuiSize(o),p=je.toMuiColor(r);return y.jsx(da,{value:e,onChange:(b,v)=>t(v),size:m,color:p==="default"||p==="inherit"?"primary":p,marks:s,valueLabelDisplay:i?"auto":"off",min:a,max:l,step:c,disabled:u,sx:d})}Es.displayName="Slider";function Os({value:e,onChange:t,suggestions:o,maxTags:r,creatable:s=!0,size:i="sm",placeholder:a="Add tag...",sx:l}){const[c,u]=ue.useState(""),[d,m]=ue.useState(!1),p=ue.useRef(null),b=ue.useRef(null),v=je.toMuiSize(i),f=ue.useCallback(w=>{const T=w.trim();T&&(e.includes(T)||r&&e.length>=r||!s&&o&&!o.includes(T)||(t([...e,T]),u(""),m(!1)))},[e,t,r,s,o]),x=ue.useCallback(w=>{t(e.filter(T=>T!==w))},[e,t]),P=w=>{w.key==="Enter"||w.key===","?(w.preventDefault(),f(c)):w.key==="Backspace"&&!c&&e.length>0&&x(e[e.length-1])},C=o?.filter(w=>w.toLowerCase().includes(c.toLowerCase())&&!e.includes(w));return y.jsx(fa,{onClickAway:()=>m(!1),children:y.jsxs(We,{ref:b,sx:l,children:[y.jsxs(We,{sx:{display:"flex",flexWrap:"wrap",gap:.5,alignItems:"center",border:"1px solid var(--ov-border-default)",borderRadius:"var(--ov-radius-md, 6px)",padding:"4px 8px",bgcolor:"var(--ov-bg-surface)",minHeight:v==="small"?36:40,"&:focus-within":{borderColor:"var(--ov-accent)"}},children:[e.map(w=>y.jsx(bs,{label:w,size:"small",onDelete:()=>x(w),sx:{fontSize:"var(--ov-text-xs)"}},w)),y.jsx(hs,{inputRef:p,value:c,onChange:w=>{u(w.target.value),o&&m(!0)},onKeyDown:P,onFocus:()=>{o&&c&&m(!0)},placeholder:e.length===0?a:"",size:"small",sx:{flex:1,minWidth:80,height:"auto",backgroundColor:"transparent !important","& fieldset":{border:"none"},"& input":{p:"2px 0",fontSize:"var(--ov-text-sm)"}}})]}),d&&C&&C.length>0&&y.jsx(gs,{open:!0,anchorEl:b.current,placement:"bottom-start",style:{zIndex:1300,width:b.current?.clientWidth},children:y.jsx(xs,{sx:{mt:.5,maxHeight:200,overflow:"auto",border:"1px solid var(--ov-border-default)"},children:C.map(w=>y.jsx(To,{onClick:()=>f(w),sx:{fontSize:"var(--ov-text-sm)"},children:w},w))})})]})})}Os.displayName="TagInput";let fl=0;function gn(){return`kv-${fl++}`}function pl(e){return Object.entries(e).map(([t,o])=>({id:gn(),key:t,value:o}))}function ml(e){const t={};for(const o of e)o.key&&(t[o.key]=o.value);return t}function Ms({value:e,onChange:t,addLabel:o="Add",readOnly:r=!1,validateKey:s,validateValue:i,size:a="sm",sx:l}){const[c,u]=ue.useState(()=>{const f=pl(e);return f.length>0?f:[{id:gn(),key:"",value:""}]}),d=je.toMuiSize(a),m=ue.useCallback(f=>{u(f),t(ml(f))},[t]),p=(f,x,P)=>{m(c.map(C=>C.id===f?{...C,[x]:P}:C))},b=f=>{const x=c.filter(P=>P.id!==f);m(x.length>0?x:[{id:gn(),key:"",value:""}])},v=()=>{m([...c,{id:gn(),key:"",value:""}])};return y.jsxs(We,{sx:l,children:[c.map(f=>{const x=s?s(f.key):void 0,P=i?i(f.value):void 0;return y.jsxs(We,{sx:{display:"flex",gap:1,mb:1,alignItems:"center"},children:[y.jsx(Et,{value:f.key,onChange:C=>p(f.id,"key",C.target.value),size:d,placeholder:"Key",error:!!x,helperText:x,disabled:r,sx:{flex:1}}),y.jsx(Et,{value:f.value,onChange:C=>p(f.id,"value",C.target.value),size:d,placeholder:"Value",error:!!P,helperText:P,disabled:r,sx:{flex:1}}),!r&&y.jsx(kt,{size:"small",onClick:()=>b(f.id),sx:{color:"var(--ov-fg-faint)","&:hover":{color:"var(--ov-danger-default)"}},children:y.jsx(ma,{fontSize:"small"})})]},f.id)}),!r&&y.jsx(Ge,{size:d,onClick:v,startIcon:y.jsx(pa,{}),sx:{color:"var(--ov-fg-muted)",textTransform:"none",fontWeight:500,fontSize:"var(--ov-text-sm)"},children:o})]})}Ms.displayName="KeyValueEditor";function Rs({label:e,required:t=!1,error:o,helperText:r,children:s,layout:i="vertical",sx:a}){const l=i==="horizontal";return y.jsxs(We,{sx:{mb:2,...l&&{display:"grid",gridTemplateColumns:"1fr 2fr",gap:2,alignItems:"start"},...typeof a=="object"&&!Array.isArray(a)?a:{}},children:[y.jsxs(st,{component:"label",variant:"body2",sx:{fontWeight:500,color:"var(--ov-fg-default)",fontSize:"var(--ov-text-sm)",mb:l?0:.5,pt:l?1:0,display:"block"},children:[e,t&&y.jsx(We,{component:"span",sx:{color:"var(--ov-danger-default)",ml:.25},children:"*"})]}),y.jsxs(We,{children:[s,(o||r)&&y.jsx(st,{variant:"caption",sx:{display:"block",mt:.5,fontSize:"var(--ov-text-xs)",color:o?"var(--ov-danger-default)":"var(--ov-fg-faint)"},children:typeof o=="string"?o:r})]})]})}Rs.displayName="FormField";function Is({title:e,description:t,collapsible:o=!1,defaultCollapsed:r=!1,children:s,sx:i}){const[a,l]=ue.useState(r);return y.jsxs(We,{sx:{mb:3,...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[y.jsx(ko,{sx:{mb:2}}),y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1,mb:t?.5:1.5,cursor:o?"pointer":void 0},onClick:o?()=>l(c=>!c):void 0,children:[y.jsx(st,{variant:"subtitle1",sx:{fontWeight:600,color:"var(--ov-fg-base)",fontSize:"var(--ov-text-base)"},children:e}),o&&y.jsx(kt,{size:"small",sx:{transform:a?"rotate(-90deg)":"rotate(0deg)",transition:"transform 200ms"},children:y.jsx(ya,{fontSize:"small"})})]}),t&&y.jsx(st,{variant:"body2",sx:{color:"var(--ov-fg-muted)",mb:1.5,maxWidth:600,lineHeight:1.5},children:t}),o?y.jsx(ha,{in:!a,children:s}):s]})}Is.displayName="FormSection";const hl=["#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#6366f1","#8b5cf6","#ec4899","#f43f5e","#0ea5e9","#06b6d4","#10b981","#84cc16","#a3e635","#fbbf24","#fb923c","#f87171","#a78bfa","#c084fc"];function Vs({value:e,onChange:t,presets:o=hl,allowCustom:r=!0,sx:s}){const[i,a]=ue.useState(e);return y.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:1,...s},children:[y.jsx(We,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 28px)",gap:"6px"},children:o.map(l=>y.jsx(We,{onClick:()=>{t(l),a(l)},sx:{width:28,height:28,borderRadius:"4px",bgcolor:l,cursor:"pointer",border:e===l?"2px solid var(--ov-fg-base)":"2px solid transparent","&:hover":{transform:"scale(1.1)"},transition:"transform 0.1s, border 0.1s"}},l))}),r&&y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1},children:[y.jsx(We,{sx:{width:28,height:28,borderRadius:"4px",bgcolor:i,border:"1px solid var(--ov-border-default)",flexShrink:0}}),y.jsx(Et,{value:i,onChange:l=>{a(l.target.value),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(l.target.value)&&t(l.target.value)},size:"small",placeholder:"#000000",slotProps:{input:{sx:{fontFamily:"var(--ov-font-mono)",fontSize:"0.8125rem"}}},sx:{flex:1,maxWidth:120}})]})]})}Vs.displayName="ColorPicker";var pn={exports:{}},mn={exports:{}},xe={};var Sr;function yl(){if(Sr)return xe;Sr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var _=S.$$typeof;switch(_){case t:switch(S=S.type,S){case c:case u:case r:case i:case s:case m:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case v:case b:case a:return S;default:return _}}case o:return _}}}function T(S){return w(S)===u}return xe.AsyncMode=c,xe.ConcurrentMode=u,xe.ContextConsumer=l,xe.ContextProvider=a,xe.Element=t,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=v,xe.Memo=b,xe.Portal=o,xe.Profiler=i,xe.StrictMode=s,xe.Suspense=m,xe.isAsyncMode=function(S){return T(S)||w(S)===c},xe.isConcurrentMode=T,xe.isContextConsumer=function(S){return w(S)===l},xe.isContextProvider=function(S){return w(S)===a},xe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},xe.isForwardRef=function(S){return w(S)===d},xe.isFragment=function(S){return w(S)===r},xe.isLazy=function(S){return w(S)===v},xe.isMemo=function(S){return w(S)===b},xe.isPortal=function(S){return w(S)===o},xe.isProfiler=function(S){return w(S)===i},xe.isStrictMode=function(S){return w(S)===s},xe.isSuspense=function(S){return w(S)===m},xe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===s||S===m||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===b||S.$$typeof===a||S.$$typeof===l||S.$$typeof===d||S.$$typeof===x||S.$$typeof===P||S.$$typeof===C||S.$$typeof===f)},xe.typeOf=w,xe}var ve={};var Pr;function bl(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===s||k===m||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===b||k.$$typeof===a||k.$$typeof===l||k.$$typeof===d||k.$$typeof===x||k.$$typeof===P||k.$$typeof===C||k.$$typeof===f)}function T(k){if(typeof k=="object"&&k!==null){var ae=k.$$typeof;switch(ae){case t:var ne=k.type;switch(ne){case c:case u:case r:case i:case s:case m:return ne;default:var ce=ne&&ne.$$typeof;switch(ce){case l:case d:case v:case b:case a:return ce;default:return ae}}case o:return ae}}}var S=c,_=u,V=l,B=a,M=t,N=d,R=r,D=v,I=b,A=o,L=i,$=s,F=m,se=!1;function q(k){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(k)||T(k)===c}function E(k){return T(k)===u}function O(k){return T(k)===l}function H(k){return T(k)===a}function ee(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===d}function Q(k){return T(k)===r}function X(k){return T(k)===v}function Z(k){return T(k)===b}function re(k){return T(k)===o}function te(k){return T(k)===i}function z(k){return T(k)===s}function U(k){return T(k)===m}ve.AsyncMode=S,ve.ConcurrentMode=_,ve.ContextConsumer=V,ve.ContextProvider=B,ve.Element=M,ve.ForwardRef=N,ve.Fragment=R,ve.Lazy=D,ve.Memo=I,ve.Portal=A,ve.Profiler=L,ve.StrictMode=$,ve.Suspense=F,ve.isAsyncMode=q,ve.isConcurrentMode=E,ve.isContextConsumer=O,ve.isContextProvider=H,ve.isElement=ee,ve.isForwardRef=Y,ve.isFragment=Q,ve.isLazy=X,ve.isMemo=Z,ve.isPortal=re,ve.isProfiler=te,ve.isStrictMode=z,ve.isSuspense=U,ve.isValidElementType=w,ve.typeOf=T})()),ve}var Cr;function _s(){return Cr||(Cr=1,process.env.NODE_ENV==="production"?mn.exports=yl():mn.exports=bl()),mn.exports}var so,wr;function gl(){if(wr)return so;wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return so=s()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var p=0;p<u.length;p++)o.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},so}var io,Dr;function Eo(){if(Dr)return io;Dr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return io=e,io}var ao,Tr;function Ns(){return Tr||(Tr=1,ao=Function.call.bind(Object.prototype.hasOwnProperty)),ao}var lo,kr;function xl(){if(kr)return lo;kr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Eo(),o={},r=Ns();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var m;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=i[d](a,d,c,l,null,t)}catch(v){m=v}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in o)){o[m.message]=!0;var b=u?u():"";e("Failed "+l+" type: "+m.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},lo=s,lo}var co,Er;function vl(){if(Er)return co;Er=1;var e=_s(),t=gl(),o=Eo(),r=Ns(),s=xl(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return co=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(E){var O=E&&(u&&E[u]||E[d]);if(typeof O=="function")return O}var p="<<anonymous>>",b={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:C(),arrayOf:w,element:T(),elementType:S(),instanceOf:_,node:N(),objectOf:B,oneOf:V,oneOfType:M,shape:D,exact:I};function v(E,O){return E===O?E!==0||1/E===1/O:E!==E&&O!==O}function f(E,O){this.message=E,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function x(E){if(process.env.NODE_ENV!=="production")var O={},H=0;function ee(Q,X,Z,re,te,z,U){if(re=re||p,z=z||Z,U!==o){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=re+":"+Z;!O[ae]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[ae]=!0,H++)}}return X[Z]==null?Q?X[Z]===null?new f("The "+te+" `"+z+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+te+" `"+z+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:E(X,Z,re,te,z)}var Y=ee.bind(null,!1);return Y.isRequired=ee.bind(null,!0),Y}function P(E){function O(H,ee,Y,Q,X,Z){var re=H[ee],te=$(re);if(te!==E){var z=F(re);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return x(O)}function C(){return x(a)}function w(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Z=H[ee];if(!Array.isArray(Z)){var re=$(Z);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var te=0;te<Z.length;te++){var z=E(Z,te,Y,Q,X+"["+te+"]",o);if(z instanceof Error)return z}return null}return x(O)}function T(){function E(O,H,ee,Y,Q){var X=O[H];if(!l(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return x(E)}function S(){function E(O,H,ee,Y,Q){var X=O[H];if(!e.isValidElementType(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return x(E)}function _(E){function O(H,ee,Y,Q,X){if(!(H[ee]instanceof E)){var Z=E.name||p,re=q(H[ee]);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+Z+"`."))}return null}return x(O)}function V(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function O(H,ee,Y,Q,X){for(var Z=H[ee],re=0;re<E.length;re++)if(v(Z,E[re]))return null;var te=JSON.stringify(E,function(U,k){var ae=F(k);return ae==="symbol"?String(k):k});return new f("Invalid "+Q+" `"+X+"` of value `"+String(Z)+"` "+("supplied to `"+Y+"`, expected one of "+te+"."))}return x(O)}function B(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var te in Z)if(r(Z,te)){var z=E(Z,te,Y,Q,X+"."+te,o);if(z instanceof Error)return z}return null}return x(O)}function M(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<E.length;O++){var H=E[O];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(H)+" at index "+O+"."),a}function ee(Y,Q,X,Z,re){for(var te=[],z=0;z<E.length;z++){var U=E[z],k=U(Y,Q,X,Z,re,o);if(k==null)return null;k.data&&r(k.data,"expectedType")&&te.push(k.data.expectedType)}var ae=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new f("Invalid "+Z+" `"+re+"` supplied to "+("`"+X+"`"+ae+"."))}return x(ee)}function N(){function E(O,H,ee,Y,Q){return A(O[H])?null:new f("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return x(E)}function R(E,O,H,ee,Y){return new f((E||"React class")+": "+O+" type `"+H+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function D(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var te in E){var z=E[te];if(typeof z!="function")return R(Y,Q,X,te,F(z));var U=z(Z,te,Y,Q,X+"."+te,o);if(U)return U}return null}return x(O)}function I(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var te=t({},H[ee],E);for(var z in te){var U=E[z];if(r(E,z)&&typeof U!="function")return R(Y,Q,X,z,F(U));if(!U)return new f("Invalid "+Q+" `"+X+"` key `"+z+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(H[ee],null," ")+`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),ue=require("react"),hs=require("@mui/material/OutlinedInput"),on=require("@mui/material/InputAdornment"),kt=require("@mui/material/IconButton"),ea=require("@mui/icons-material/Search"),ta=require("@mui/icons-material/Close"),na=require("./SearchInput-CFBBNdI2.cjs"),Et=require("@mui/material/TextField"),je=require("./types.cjs"),We=require("@mui/material/Box"),st=require("@mui/material/Typography"),oa=require("./Select-mxLKNk8-.cjs"),ra=require("@mui/material/Autocomplete"),sa=require("@mui/material/CircularProgress"),ia=require("@mui/material/Checkbox"),Do=require("@mui/material/FormControlLabel"),aa=require("@mui/material/RadioGroup"),la=require("@mui/material/Radio"),kn=require("@mui/material/FormControl"),ca=require("@mui/material/FormLabel"),ys=require("@mui/material/FormHelperText"),ua=require("@mui/material/Switch"),da=require("@mui/material/Slider"),bs=require("@mui/material/Chip"),gs=require("@mui/material/Popper"),xs=require("@mui/material/Paper"),To=require("@mui/material/MenuItem"),fa=require("@mui/material/ClickAwayListener"),Ge=require("@mui/material/Button"),pa=require("@mui/icons-material/Add"),ma=require("@mui/icons-material/Delete"),ko=require("@mui/material/Divider"),ha=require("@mui/material/Collapse"),ya=require("@mui/icons-material/ExpandMore"),ba=require("@mui/material/Popover"),h=require("./_commonjsHelpers-D3HyQheV.cjs"),j=require("@mui/material/styles"),yr=require("date-fns/addDays"),ga=require("date-fns/addSeconds"),xa=require("date-fns/addMinutes"),va=require("date-fns/addHours"),Sa=require("date-fns/addWeeks"),Pa=require("date-fns/addMonths"),Ca=require("date-fns/addYears"),br=require("date-fns/endOfDay"),wa=require("date-fns/endOfWeek"),gr=require("date-fns/endOfYear"),to=require("date-fns/format"),Da=require("date-fns/getDate"),Ta=require("date-fns/getDaysInMonth"),ka=require("date-fns/getHours"),Ea=require("date-fns/getMinutes"),Oa=require("date-fns/getMonth"),Ma=require("date-fns/getSeconds"),Ra=require("date-fns/getMilliseconds"),Ia=require("date-fns/getWeek"),Va=require("date-fns/getYear"),no=require("date-fns/isAfter"),oo=require("date-fns/isBefore"),_a=require("date-fns/isEqual"),Na=require("date-fns/isSameDay"),Fa=require("date-fns/isSameYear"),ja=require("date-fns/isSameMonth"),Aa=require("date-fns/isSameHour"),La=require("date-fns/isValid"),$a=require("date-fns/parse"),Ba=require("date-fns/setDate"),Wa=require("date-fns/setHours"),qa=require("date-fns/setMinutes"),Ha=require("date-fns/setMonth"),za=require("date-fns/setSeconds"),Ya=require("date-fns/setMilliseconds"),Ua=require("date-fns/setYear"),Ka=require("date-fns/startOfDay"),Ga=require("date-fns/startOfMonth"),Qa=require("date-fns/endOfMonth"),Xa=require("date-fns/startOfWeek"),Za=require("date-fns/startOfYear"),Ja=require("date-fns/isWithinInterval"),el=require("date-fns/locale/en-US"),vs=require("@mui/material/useMediaQuery"),xr=require("@mui/material/Tab"),vr=require("@mui/material/Tabs"),gt=require("@mui/material/utils"),En=require("@mui/material/Fade"),fn=require("react-dom"),tl=require("@mui/material/ButtonBase"),nl=require("@mui/material/DialogActions"),ol=require("@mui/material/List"),rl=require("@mui/material/ListItem"),Ss=require("@mui/material/MenuList"),bt=require("@mui/material/version"),sl=require("@mui/material/InputLabel"),il=require("@mui/material/Grow"),al=require("@mui/material/Unstable_TrapFocus"),ll=require("@mui/material/DialogContent"),ro=require("@mui/material/Dialog");function cl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const g=cl(ue);function ul({value:e,onChange:t,debounce:o=500,placeholder:r="Search",...s}){const[i,a]=ue.useState(e),l=()=>{t("")};return ue.useEffect(()=>{a(e)},[e]),ue.useEffect(()=>{const c=setTimeout(()=>{t(i)},o);return()=>{clearTimeout(c)}},[i]),y.jsx(hs,{...s,value:i,size:"small",placeholder:r,type:"text",autoComplete:"off",onChange:c=>{a(c.target.value)},startAdornment:y.jsx(on,{position:"start",children:y.jsx(ea,{fontSize:"small"})}),endAdornment:i?y.jsx(on,{position:"end",children:y.jsx(kt,{size:"small",onClick:l,edge:"end",children:y.jsx(ta,{fontSize:"small"})})}):void 0,sx:{flexGrow:1,maxWidth:500,minWidth:300,minHeight:36},inputProps:{autoCorrect:"off",autoComplete:"off"}})}function Ps({value:e="",onChange:t,size:o="md",color:r="neutral",readOnly:s=!1,monospace:i=!1,debounced:a=!1,debounceMs:l=300,label:c,helperText:u,error:d,placeholder:m,fullWidth:p,startAdornment:b,endAdornment:v,disabled:f,type:x,variant:P="outlined",autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,inputProps:M,sx:N}){const[R,D]=ue.useState(e),I=ue.useRef(null);ue.useEffect(()=>{D(e)},[e]);const A=ue.useCallback(q=>{const E=q.target.value;a?(D(E),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>t?.(E),l)):(D(E),t?.(E))},[a,l,t]);ue.useEffect(()=>()=>{I.current&&clearTimeout(I.current)},[]);const L=je.toMuiInputSize(o),$=je.toMuiColor(r),F=typeof d=="string"?!!d:d,se=typeof d=="string"?d:void 0;return y.jsx(Et,{value:R,onChange:A,size:L,color:$==="default"||$==="inherit"?void 0:$,variant:P,label:c,helperText:se??u,error:F,placeholder:m,fullWidth:p,disabled:f,type:x,autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,slotProps:{input:{readOnly:s,startAdornment:b?y.jsx(on,{position:"start",children:b}):void 0,endAdornment:v?y.jsx(on,{position:"end",children:v}):void 0,sx:i?{fontFamily:"var(--ov-font-mono)"}:void 0},htmlInput:M},style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},sx:N})}Ps.displayName="TextField";function Cs({value:e,onChange:t,size:o="md",color:r="neutral",autosize:s=!1,maxLength:i,showCount:a=!1,rows:l=3,minRows:c,maxRows:u=8,label:d,helperText:m,error:p,placeholder:b,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(o),C=je.toMuiColor(r),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0,S=a&&i?`${e.length} / ${i}`:a?`${e.length}`:void 0;return y.jsxs(We,{sx:x,children:[y.jsx(Et,{value:e,onChange:_=>{const V=i?_.target.value.slice(0,i):_.target.value;t(V)},size:P,color:C==="default"||C==="inherit"?void 0:C,label:d,helperText:T??m,error:w,placeholder:b,fullWidth:v,disabled:f,multiline:!0,minRows:c??l,maxRows:s?u:l,style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},slotProps:{htmlInput:{maxLength:i}}}),S&&y.jsx(st,{variant:"caption",sx:{display:"block",textAlign:"right",mt:.25,color:"var(--ov-fg-faint)",fontSize:"var(--ov-text-xs)"},children:S})]})}Cs.displayName="TextArea";function ws({options:e,value:t,onChange:o,size:r="md",color:s="neutral",creatable:i=!1,loading:a=!1,groupBy:l,renderOption:c,label:u,helperText:d,placeholder:m,error:p,multiple:b=!1,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(r),C=je.toMuiColor(s),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0;return y.jsx(ra,{options:e,value:t,onChange:(S,_)=>o(_),getOptionLabel:S=>typeof S=="string"?S:S.label,isOptionEqualToValue:(S,_)=>S.value===_.value,multiple:b,freeSolo:i,loading:a,disabled:f,groupBy:l,size:P,fullWidth:v,renderOption:c?(S,_)=>ue.createElement("li",{...S,key:_.value},c(_)):void 0,renderInput:S=>y.jsx(Et,{...S,label:u,placeholder:m,helperText:T??d,error:w,color:C==="default"||C==="inherit"?void 0:C,slotProps:{input:{...S.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[a&&y.jsx(sa,{color:"inherit",size:16}),S.InputProps.endAdornment]})}}}),style:{"--ov-input-height":je.INPUT_HEIGHTS[r]},sx:x})}ws.displayName="Autocomplete";function Ds({checked:e,onChange:t,size:o="sm",color:r="primary",indeterminate:s=!1,label:i,disabled:a,sx:l}){const c=je.toMuiSize(o),u=je.toMuiColor(r),d=y.jsx(ia,{checked:e,onChange:(m,p)=>t(p),size:c,color:u==="default"||u==="inherit"?"primary":u,indeterminate:s,disabled:a});return i?y.jsx(Do,{control:d,label:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):y.jsx("span",{style:void 0,children:d})}Ds.displayName="Checkbox";function Ts({options:e,value:t,onChange:o,size:r="sm",color:s="primary",layout:i="column",label:a,sx:l}){const c=je.toMuiSize(r),u=je.toMuiColor(s);return y.jsxs(kn,{sx:l,children:[a&&y.jsx(ca,{sx:{fontSize:"var(--ov-text-sm)",fontWeight:500,mb:.5},children:a}),y.jsx(aa,{value:t,onChange:(d,m)=>o(m),row:i==="row",children:e.map(d=>y.jsx(Do,{value:d.value,disabled:d.disabled,control:y.jsx(la,{size:c,color:u==="default"||u==="inherit"?"primary":u}),label:d.description?y.jsxs("span",{children:[y.jsx("span",{children:d.label}),y.jsx(ys,{sx:{m:0,mt:-.25},children:d.description})]}):d.label,sx:{"& .MuiFormControlLabel-label":{fontSize:r==="xs"||r==="sm"?"var(--ov-text-sm)":void 0}}},d.value))})]})}Ts.displayName="RadioGroup";const dl={xs:{width:32,height:18,thumb:14,translate:14},sm:{width:36,height:20,thumb:16,translate:16},md:{width:44,height:24,thumb:20,translate:20},lg:{width:52,height:28,thumb:24,translate:24},xl:{width:60,height:32,thumb:28,translate:28}};function ks({checked:e,onChange:t,size:o="md",color:r="primary",label:s,labelPlacement:i="end",disabled:a,sx:l}){const c=je.toMuiColor(r),u=dl[o],d=o!=="md"?{width:u.width,height:u.height,"& .MuiSwitch-switchBase.Mui-checked":{transform:`translateX(${u.translate}px)`},"& .MuiSwitch-thumb":{width:u.thumb,height:u.thumb}}:{},m=y.jsx(ua,{checked:e,onChange:(p,b)=>t(b),color:c==="default"||c==="inherit"?"primary":c,disabled:a,sx:d});return s?y.jsx(Do,{control:m,label:s,labelPlacement:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):m}ks.displayName="Switch";function Es({value:e,onChange:t,size:o="sm",color:r="primary",marks:s,showValue:i=!1,min:a=0,max:l=100,step:c=1,disabled:u,sx:d}){const m=je.toMuiSize(o),p=je.toMuiColor(r);return y.jsx(da,{value:e,onChange:(b,v)=>t(v),size:m,color:p==="default"||p==="inherit"?"primary":p,marks:s,valueLabelDisplay:i?"auto":"off",min:a,max:l,step:c,disabled:u,sx:d})}Es.displayName="Slider";function Os({value:e,onChange:t,suggestions:o,maxTags:r,creatable:s=!0,size:i="sm",placeholder:a="Add tag...",sx:l}){const[c,u]=ue.useState(""),[d,m]=ue.useState(!1),p=ue.useRef(null),b=ue.useRef(null),v=je.toMuiSize(i),f=ue.useCallback(w=>{const T=w.trim();T&&(e.includes(T)||r&&e.length>=r||!s&&o&&!o.includes(T)||(t([...e,T]),u(""),m(!1)))},[e,t,r,s,o]),x=ue.useCallback(w=>{t(e.filter(T=>T!==w))},[e,t]),P=w=>{w.key==="Enter"||w.key===","?(w.preventDefault(),f(c)):w.key==="Backspace"&&!c&&e.length>0&&x(e[e.length-1])},C=o?.filter(w=>w.toLowerCase().includes(c.toLowerCase())&&!e.includes(w));return y.jsx(fa,{onClickAway:()=>m(!1),children:y.jsxs(We,{ref:b,sx:l,children:[y.jsxs(We,{sx:{display:"flex",flexWrap:"wrap",gap:.5,alignItems:"center",border:"1px solid var(--ov-border-default)",borderRadius:"var(--ov-radius-md, 6px)",padding:"4px 8px",bgcolor:"var(--ov-bg-surface)",minHeight:v==="small"?36:40,"&:focus-within":{borderColor:"var(--ov-accent)"}},children:[e.map(w=>y.jsx(bs,{label:w,size:"small",onDelete:()=>x(w),sx:{fontSize:"var(--ov-text-xs)"}},w)),y.jsx(hs,{inputRef:p,value:c,onChange:w=>{u(w.target.value),o&&m(!0)},onKeyDown:P,onFocus:()=>{o&&c&&m(!0)},placeholder:e.length===0?a:"",size:"small",sx:{flex:1,minWidth:80,height:"auto",backgroundColor:"transparent !important","& fieldset":{border:"none"},"& input":{p:"2px 0",fontSize:"var(--ov-text-sm)"}}})]}),d&&C&&C.length>0&&y.jsx(gs,{open:!0,anchorEl:b.current,placement:"bottom-start",style:{zIndex:1300,width:b.current?.clientWidth},children:y.jsx(xs,{sx:{mt:.5,maxHeight:200,overflow:"auto",border:"1px solid var(--ov-border-default)"},children:C.map(w=>y.jsx(To,{onClick:()=>f(w),sx:{fontSize:"var(--ov-text-sm)"},children:w},w))})})]})})}Os.displayName="TagInput";let fl=0;function gn(){return`kv-${fl++}`}function pl(e){return Object.entries(e).map(([t,o])=>({id:gn(),key:t,value:o}))}function ml(e){const t={};for(const o of e)o.key&&(t[o.key]=o.value);return t}function Ms({value:e,onChange:t,addLabel:o="Add",readOnly:r=!1,validateKey:s,validateValue:i,size:a="sm",sx:l}){const[c,u]=ue.useState(()=>{const f=pl(e);return f.length>0?f:[{id:gn(),key:"",value:""}]}),d=je.toMuiSize(a),m=ue.useCallback(f=>{u(f),t(ml(f))},[t]),p=(f,x,P)=>{m(c.map(C=>C.id===f?{...C,[x]:P}:C))},b=f=>{const x=c.filter(P=>P.id!==f);m(x.length>0?x:[{id:gn(),key:"",value:""}])},v=()=>{m([...c,{id:gn(),key:"",value:""}])};return y.jsxs(We,{sx:l,children:[c.map(f=>{const x=s?s(f.key):void 0,P=i?i(f.value):void 0;return y.jsxs(We,{sx:{display:"flex",gap:1,mb:1,alignItems:"center"},children:[y.jsx(Et,{value:f.key,onChange:C=>p(f.id,"key",C.target.value),size:d,placeholder:"Key",error:!!x,helperText:x,disabled:r,sx:{flex:1}}),y.jsx(Et,{value:f.value,onChange:C=>p(f.id,"value",C.target.value),size:d,placeholder:"Value",error:!!P,helperText:P,disabled:r,sx:{flex:1}}),!r&&y.jsx(kt,{size:"small",onClick:()=>b(f.id),sx:{color:"var(--ov-fg-faint)","&:hover":{color:"var(--ov-danger-default)"}},children:y.jsx(ma,{fontSize:"small"})})]},f.id)}),!r&&y.jsx(Ge,{size:d,onClick:v,startIcon:y.jsx(pa,{}),sx:{color:"var(--ov-fg-muted)",textTransform:"none",fontWeight:500,fontSize:"var(--ov-text-sm)"},children:o})]})}Ms.displayName="KeyValueEditor";function Rs({label:e,required:t=!1,error:o,helperText:r,children:s,layout:i="vertical",sx:a}){const l=i==="horizontal";return y.jsxs(We,{sx:{mb:2,...l&&{display:"grid",gridTemplateColumns:"1fr 2fr",gap:2,alignItems:"start"},...typeof a=="object"&&!Array.isArray(a)?a:{}},children:[y.jsxs(st,{component:"label",variant:"body2",sx:{fontWeight:500,color:"var(--ov-fg-default)",fontSize:"var(--ov-text-sm)",mb:l?0:.5,pt:l?1:0,display:"block"},children:[e,t&&y.jsx(We,{component:"span",sx:{color:"var(--ov-danger-default)",ml:.25},children:"*"})]}),y.jsxs(We,{children:[s,(o||r)&&y.jsx(st,{variant:"caption",sx:{display:"block",mt:.5,fontSize:"var(--ov-text-xs)",color:o?"var(--ov-danger-default)":"var(--ov-fg-faint)"},children:typeof o=="string"?o:r})]})]})}Rs.displayName="FormField";function Is({title:e,description:t,collapsible:o=!1,defaultCollapsed:r=!1,children:s,sx:i}){const[a,l]=ue.useState(r);return y.jsxs(We,{sx:{mb:3,...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[y.jsx(ko,{sx:{mb:2}}),y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1,mb:t?.5:1.5,cursor:o?"pointer":void 0},onClick:o?()=>l(c=>!c):void 0,children:[y.jsx(st,{variant:"subtitle1",sx:{fontWeight:600,color:"var(--ov-fg-base)",fontSize:"var(--ov-text-base)"},children:e}),o&&y.jsx(kt,{size:"small",sx:{transform:a?"rotate(-90deg)":"rotate(0deg)",transition:"transform 200ms"},children:y.jsx(ya,{fontSize:"small"})})]}),t&&y.jsx(st,{variant:"body2",sx:{color:"var(--ov-fg-muted)",mb:1.5,maxWidth:600,lineHeight:1.5},children:t}),o?y.jsx(ha,{in:!a,children:s}):s]})}Is.displayName="FormSection";const hl=["#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#6366f1","#8b5cf6","#ec4899","#f43f5e","#0ea5e9","#06b6d4","#10b981","#84cc16","#a3e635","#fbbf24","#fb923c","#f87171","#a78bfa","#c084fc"];function Vs({value:e,onChange:t,presets:o=hl,allowCustom:r=!0,sx:s}){const[i,a]=ue.useState(e);return y.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:1,...s},children:[y.jsx(We,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 28px)",gap:"6px"},children:o.map(l=>y.jsx(We,{onClick:()=>{t(l),a(l)},sx:{width:28,height:28,borderRadius:"4px",bgcolor:l,cursor:"pointer",border:e===l?"2px solid var(--ov-fg-base)":"2px solid transparent","&:hover":{transform:"scale(1.1)"},transition:"transform 0.1s, border 0.1s"}},l))}),r&&y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1},children:[y.jsx(We,{sx:{width:28,height:28,borderRadius:"4px",bgcolor:i,border:"1px solid var(--ov-border-default)",flexShrink:0}}),y.jsx(Et,{value:i,onChange:l=>{a(l.target.value),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(l.target.value)&&t(l.target.value)},size:"small",placeholder:"#000000",slotProps:{input:{sx:{fontFamily:"var(--ov-font-mono)",fontSize:"0.8125rem"}}},sx:{flex:1,maxWidth:120}})]})]})}Vs.displayName="ColorPicker";var pn={exports:{}},mn={exports:{}},xe={};var Sr;function yl(){if(Sr)return xe;Sr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var _=S.$$typeof;switch(_){case t:switch(S=S.type,S){case c:case u:case r:case i:case s:case m:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case v:case b:case a:return S;default:return _}}case o:return _}}}function T(S){return w(S)===u}return xe.AsyncMode=c,xe.ConcurrentMode=u,xe.ContextConsumer=l,xe.ContextProvider=a,xe.Element=t,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=v,xe.Memo=b,xe.Portal=o,xe.Profiler=i,xe.StrictMode=s,xe.Suspense=m,xe.isAsyncMode=function(S){return T(S)||w(S)===c},xe.isConcurrentMode=T,xe.isContextConsumer=function(S){return w(S)===l},xe.isContextProvider=function(S){return w(S)===a},xe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},xe.isForwardRef=function(S){return w(S)===d},xe.isFragment=function(S){return w(S)===r},xe.isLazy=function(S){return w(S)===v},xe.isMemo=function(S){return w(S)===b},xe.isPortal=function(S){return w(S)===o},xe.isProfiler=function(S){return w(S)===i},xe.isStrictMode=function(S){return w(S)===s},xe.isSuspense=function(S){return w(S)===m},xe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===s||S===m||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===b||S.$$typeof===a||S.$$typeof===l||S.$$typeof===d||S.$$typeof===x||S.$$typeof===P||S.$$typeof===C||S.$$typeof===f)},xe.typeOf=w,xe}var ve={};var Pr;function bl(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===s||k===m||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===b||k.$$typeof===a||k.$$typeof===l||k.$$typeof===d||k.$$typeof===x||k.$$typeof===P||k.$$typeof===C||k.$$typeof===f)}function T(k){if(typeof k=="object"&&k!==null){var ae=k.$$typeof;switch(ae){case t:var ne=k.type;switch(ne){case c:case u:case r:case i:case s:case m:return ne;default:var ce=ne&&ne.$$typeof;switch(ce){case l:case d:case v:case b:case a:return ce;default:return ae}}case o:return ae}}}var S=c,_=u,V=l,B=a,M=t,N=d,R=r,D=v,I=b,A=o,L=i,$=s,F=m,se=!1;function q(k){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(k)||T(k)===c}function E(k){return T(k)===u}function O(k){return T(k)===l}function H(k){return T(k)===a}function ee(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===d}function Q(k){return T(k)===r}function X(k){return T(k)===v}function Z(k){return T(k)===b}function re(k){return T(k)===o}function te(k){return T(k)===i}function z(k){return T(k)===s}function U(k){return T(k)===m}ve.AsyncMode=S,ve.ConcurrentMode=_,ve.ContextConsumer=V,ve.ContextProvider=B,ve.Element=M,ve.ForwardRef=N,ve.Fragment=R,ve.Lazy=D,ve.Memo=I,ve.Portal=A,ve.Profiler=L,ve.StrictMode=$,ve.Suspense=F,ve.isAsyncMode=q,ve.isConcurrentMode=E,ve.isContextConsumer=O,ve.isContextProvider=H,ve.isElement=ee,ve.isForwardRef=Y,ve.isFragment=Q,ve.isLazy=X,ve.isMemo=Z,ve.isPortal=re,ve.isProfiler=te,ve.isStrictMode=z,ve.isSuspense=U,ve.isValidElementType=w,ve.typeOf=T})()),ve}var Cr;function _s(){return Cr||(Cr=1,process.env.NODE_ENV==="production"?mn.exports=yl():mn.exports=bl()),mn.exports}var so,wr;function gl(){if(wr)return so;wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return so=s()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var p=0;p<u.length;p++)o.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},so}var io,Dr;function Eo(){if(Dr)return io;Dr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return io=e,io}var ao,Tr;function Ns(){return Tr||(Tr=1,ao=Function.call.bind(Object.prototype.hasOwnProperty)),ao}var lo,kr;function xl(){if(kr)return lo;kr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Eo(),o={},r=Ns();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var m;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=i[d](a,d,c,l,null,t)}catch(v){m=v}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in o)){o[m.message]=!0;var b=u?u():"";e("Failed "+l+" type: "+m.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},lo=s,lo}var co,Er;function vl(){if(Er)return co;Er=1;var e=_s(),t=gl(),o=Eo(),r=Ns(),s=xl(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return co=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(E){var O=E&&(u&&E[u]||E[d]);if(typeof O=="function")return O}var p="<<anonymous>>",b={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:C(),arrayOf:w,element:T(),elementType:S(),instanceOf:_,node:N(),objectOf:B,oneOf:V,oneOfType:M,shape:D,exact:I};function v(E,O){return E===O?E!==0||1/E===1/O:E!==E&&O!==O}function f(E,O){this.message=E,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function x(E){if(process.env.NODE_ENV!=="production")var O={},H=0;function ee(Q,X,Z,re,te,z,U){if(re=re||p,z=z||Z,U!==o){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=re+":"+Z;!O[ae]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[ae]=!0,H++)}}return X[Z]==null?Q?X[Z]===null?new f("The "+te+" `"+z+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+te+" `"+z+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:E(X,Z,re,te,z)}var Y=ee.bind(null,!1);return Y.isRequired=ee.bind(null,!0),Y}function P(E){function O(H,ee,Y,Q,X,Z){var re=H[ee],te=$(re);if(te!==E){var z=F(re);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return x(O)}function C(){return x(a)}function w(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Z=H[ee];if(!Array.isArray(Z)){var re=$(Z);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var te=0;te<Z.length;te++){var z=E(Z,te,Y,Q,X+"["+te+"]",o);if(z instanceof Error)return z}return null}return x(O)}function T(){function E(O,H,ee,Y,Q){var X=O[H];if(!l(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return x(E)}function S(){function E(O,H,ee,Y,Q){var X=O[H];if(!e.isValidElementType(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return x(E)}function _(E){function O(H,ee,Y,Q,X){if(!(H[ee]instanceof E)){var Z=E.name||p,re=q(H[ee]);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+Z+"`."))}return null}return x(O)}function V(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function O(H,ee,Y,Q,X){for(var Z=H[ee],re=0;re<E.length;re++)if(v(Z,E[re]))return null;var te=JSON.stringify(E,function(U,k){var ae=F(k);return ae==="symbol"?String(k):k});return new f("Invalid "+Q+" `"+X+"` of value `"+String(Z)+"` "+("supplied to `"+Y+"`, expected one of "+te+"."))}return x(O)}function B(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var te in Z)if(r(Z,te)){var z=E(Z,te,Y,Q,X+"."+te,o);if(z instanceof Error)return z}return null}return x(O)}function M(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<E.length;O++){var H=E[O];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(H)+" at index "+O+"."),a}function ee(Y,Q,X,Z,re){for(var te=[],z=0;z<E.length;z++){var U=E[z],k=U(Y,Q,X,Z,re,o);if(k==null)return null;k.data&&r(k.data,"expectedType")&&te.push(k.data.expectedType)}var ae=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new f("Invalid "+Z+" `"+re+"` supplied to "+("`"+X+"`"+ae+"."))}return x(ee)}function N(){function E(O,H,ee,Y,Q){return A(O[H])?null:new f("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return x(E)}function R(E,O,H,ee,Y){return new f((E||"React class")+": "+O+" type `"+H+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function D(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var te in E){var z=E[te];if(typeof z!="function")return R(Y,Q,X,te,F(z));var U=z(Z,te,Y,Q,X+"."+te,o);if(U)return U}return null}return x(O)}function I(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var te=t({},H[ee],E);for(var z in te){var U=E[z];if(r(E,z)&&typeof U!="function")return R(Y,Q,X,z,F(U));if(!U)return new f("Invalid "+Q+" `"+X+"` key `"+z+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(H[ee],null," ")+`
2
2
  Valid keys: `+JSON.stringify(Object.keys(E),null," "));var k=U(Z,z,Y,Q,X+"."+z,o);if(k)return k}return null}return x(O)}function A(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(A);if(E===null||l(E))return!0;var O=m(E);if(O){var H=O.call(E),ee;if(O!==E.entries){for(;!(ee=H.next()).done;)if(!A(ee.value))return!1}else for(;!(ee=H.next()).done;){var Y=ee.value;if(Y&&!A(Y[1]))return!1}}else return!1;return!0;default:return!1}}function L(E,O){return E==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function $(E){var O=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":L(O,E)?"symbol":O}function F(E){if(typeof E>"u"||E===null)return""+E;var O=$(E);if(O==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return O}function se(E){var O=F(E);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function q(E){return!E.constructor||!E.constructor.name?p:E.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},co}var uo,Or;function Sl(){if(Or)return uo;Or=1;var e=Eo();function t(){}function o(){}return o.resetWarningCache=t,uo=function(){function r(a,l,c,u,d,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,resetWarningCache:t};return i.PropTypes=i,i},uo}var Mr;function Pl(){if(Mr)return pn.exports;if(Mr=1,process.env.NODE_ENV!=="production"){var e=_s(),t=!0;pn.exports=vl()(e.isElement,t)}else pn.exports=Sl()();return pn.exports}var Cl=Pl();const n=h.getDefaultExportFromCjs(Cl),wl=["localeText"],xn=g.createContext(null);process.env.NODE_ENV!=="production"&&(xn.displayName="PickerAdapterContext");const On=function(t){const{localeText:o}=t,r=h._objectWithoutPropertiesLoose(t,wl),{adapter:s,localeText:i}=g.useContext(xn)??{adapter:void 0,localeText:void 0},a=j.useThemeProps({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:p}=a,b=g.useMemo(()=>h._extends({},p,i,o),[p,i,o]),v=g.useMemo(()=>{if(!c)return s||null;const P=new c({locale:m,formats:u,instance:d});if(!P.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
3
3
  `));return P},[c,m,u,d,s]),f=g.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=g.useMemo(()=>({utils:v,adapter:v,defaultDates:f,localeText:b}),[f,v,b]);return y.jsx(xn.Provider,{value:x,children:l})};process.env.NODE_ENV!=="production"&&(On.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(On.propTypes={adapterLocale:n.any,children:n.node,dateAdapter:n.func,dateFormats:n.shape({dayOfMonth:n.string,dayOfMonthFull:n.string,fullDate:n.string,fullTime12h:n.string,fullTime24h:n.string,hours12h:n.string,hours24h:n.string,keyboardDate:n.string,keyboardDateTime12h:n.string,keyboardDateTime24h:n.string,meridiem:n.string,minutes:n.string,month:n.string,monthShort:n.string,normalDate:n.string,normalDateWithWeekday:n.string,seconds:n.string,shortDate:n.string,weekday:n.string,weekdayShort:n.string,year:n.string}),dateLibInstance:n.any,localeText:n.object});const Dl={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Tl={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class kl{isMUIAdapter=!0;isTimezoneCompatible=!1;formatTokenMap=Dl;escapedCharacters={start:"'",end:"'"};constructor(t){const{locale:o,formats:r,longFormatters:s,lib:i}=t;this.locale=o,this.formats=h._extends({},Tl,r),this.longFormatters=s,this.lib=i||"date-fns"}date=t=>typeof t>"u"?new Date:t===null?null:new Date(t);getInvalidDate=()=>new Date("Invalid Date");getTimezone=()=>"default";setTimezone=t=>t;toJsDate=t=>t;getCurrentLocaleCode=()=>this.locale.code;is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"}));expandFormat=t=>{const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return t.match(o).map(r=>{const s=r[0];if(s==="p"||s==="P"){const i=this.longFormatters[s];return i(r,this.locale.formatLong)}return r}).join("")};formatNumber=t=>t;getDayOfWeek=t=>t.getDay()+1}class El extends kl{constructor({locale:t,formats:o}={}){if(process.env.NODE_ENV!=="production"){if(typeof yr.addDays!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead."].join(`
4
4
  `));if(!to.longFormatters)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:t??el.enUS,formats:o,longFormatters:to.longFormatters})}parse=(t,o)=>t===""?null:$a.parse(t,o,new Date,{locale:this.locale});isValid=t=>t==null?!1:La.isValid(t);format=(t,o)=>this.formatByString(t,this.formats[o]);formatByString=(t,o)=>to.format(t,o,{locale:this.locale});isEqual=(t,o)=>t===null&&o===null?!0:t===null||o===null?!1:_a.isEqual(t,o);isSameYear=(t,o)=>Fa.isSameYear(t,o);isSameMonth=(t,o)=>ja.isSameMonth(t,o);isSameDay=(t,o)=>Na.isSameDay(t,o);isSameHour=(t,o)=>Aa.isSameHour(t,o);isAfter=(t,o)=>no.isAfter(t,o);isAfterYear=(t,o)=>no.isAfter(t,gr.endOfYear(o));isAfterDay=(t,o)=>no.isAfter(t,br.endOfDay(o));isBefore=(t,o)=>oo.isBefore(t,o);isBeforeYear=(t,o)=>oo.isBefore(t,this.startOfYear(o));isBeforeDay=(t,o)=>oo.isBefore(t,this.startOfDay(o));isWithinRange=(t,[o,r])=>Ja.isWithinInterval(t,{start:o,end:r});startOfYear=t=>Za.startOfYear(t);startOfMonth=t=>Ga.startOfMonth(t);startOfWeek=t=>Xa.startOfWeek(t,{locale:this.locale});startOfDay=t=>Ka.startOfDay(t);endOfYear=t=>gr.endOfYear(t);endOfMonth=t=>Qa.endOfMonth(t);endOfWeek=t=>wa.endOfWeek(t,{locale:this.locale});endOfDay=t=>br.endOfDay(t);addYears=(t,o)=>Ca.addYears(t,o);addMonths=(t,o)=>Pa.addMonths(t,o);addWeeks=(t,o)=>Sa.addWeeks(t,o);addDays=(t,o)=>yr.addDays(t,o);addHours=(t,o)=>va.addHours(t,o);addMinutes=(t,o)=>xa.addMinutes(t,o);addSeconds=(t,o)=>ga.addSeconds(t,o);getYear=t=>Va.getYear(t);getMonth=t=>Oa.getMonth(t);getDate=t=>Da.getDate(t);getHours=t=>ka.getHours(t);getMinutes=t=>Ea.getMinutes(t);getSeconds=t=>Ma.getSeconds(t);getMilliseconds=t=>Ra.getMilliseconds(t);setYear=(t,o)=>Ua.setYear(t,o);setMonth=(t,o)=>Ha.setMonth(t,o);setDate=(t,o)=>Ba.setDate(t,o);setHours=(t,o)=>Wa.setHours(t,o);setMinutes=(t,o)=>qa.setMinutes(t,o);setSeconds=(t,o)=>za.setSeconds(t,o);setMilliseconds=(t,o)=>Ya.setMilliseconds(t,o);getDaysInMonth=t=>Ta.getDaysInMonth(t);getWeekArray=t=>{const o=this.startOfWeek(this.startOfMonth(t)),r=this.endOfWeek(this.endOfMonth(t));let s=0,i=o;const a=[];for(;this.isBefore(i,r);){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a};getWeekNumber=t=>Ia.getWeek(t,{locale:this.locale});getYearRange=([t,o])=>{const r=this.startOfYear(t),s=this.endOfYear(o),i=[];let a=r;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i}}const ht=n.oneOfType([n.func,n.object]);function rt(e,t,o){return typeof e=="function"?e(t,o):e}const ut=(e,t)=>e.length!==t.length?!1:t.every(o=>e.includes(o)),Ol=({openTo:e,defaultOpenTo:t,views:o,defaultViews:r})=>{const s=o??r;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:s,openTo:i}},vn=(e,t,o)=>{let r=t;return r=e.setHours(r,e.getHours(o)),r=e.setMinutes(r,e.getMinutes(o)),r=e.setSeconds(r,e.getSeconds(o)),r=e.setMilliseconds(r,e.getMilliseconds(o)),r},rn=({date:e,disableFuture:t,disablePast:o,maxDate:r,minDate:s,isDateDisabled:i,adapter:a,timezone:l})=>{const c=vn(a,a.date(void 0,l),e);o&&a.isBefore(s,c)&&(s=c),t&&a.isAfter(r,c)&&(r=c);let u=e,d=e;for(a.isBefore(e,s)&&(u=s,d=null),a.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&a.isAfter(u,r)&&(u=null),d&&a.isBefore(d,s)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},Ml=(e,t)=>e.isValid(t)?t:null,Sn=(e,t,o)=>t==null||!e.isValid(t)?o:t,Rl=(e,t,o)=>!e.isValid(t)&&t!=null&&!e.isValid(o)&&o!=null?!0:e.isEqual(t,o),Oo=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const s=r[r.length-1];r.push(e.addMonths(s,1))}return r},Mo=(e,t,o)=>o==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Jt=(e,t)=>{const o=e.setHours(e.date(),t==="am"?2:14);return e.format(o,"meridiem")},Fs=["year","month","day"],Wt=e=>Fs.includes(e),Rr=(e,{format:t,views:o},r)=>{if(t!=null)return t;const s=e.formats;return ut(o,["year"])?s.year:ut(o,["month"])?s.month:ut(o,["day"])?s.dayOfMonth:ut(o,["month","year"])?`${s.month} ${s.year}`:ut(o,["day","month"])?`${s.month} ${s.dayOfMonth}`:s.keyboardDate},Il=(e,t)=>{const o=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(o,r))},js=["hours","minutes","seconds"],Vl=["hours","minutes","seconds","meridiem"],sn=e=>js.includes(e),Ft=e=>Vl.includes(e),_l=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,yo=(e,t,o)=>o&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Nl=(e,t,o,r)=>{const s=yo(r.getHours(e),t,o);return r.setHours(e,s)},Ir=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Mn=(e,t)=>(o,r)=>e?t.isAfter(o,r):Ir(o,t)>Ir(r,t),Vr=(e,{format:t,views:o,ampm:r})=>{if(t!=null)return t;const s=e.formats;return ut(o,["hours"])?r?`${s.hours12h} ${s.meridiem}`:s.hours24h:ut(o,["minutes"])?s.minutes:ut(o,["seconds"])?s.seconds:ut(o,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:ut(o,["hours","minutes","seconds"])?r?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:r?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},ot={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Fl=e=>Math.max(...e.map(t=>ot[t.type]??1)),Kt=(e,t,o)=>{if(t===ot.year)return e.startOfYear(o);if(t===ot.month)return e.startOfMonth(o);if(t===ot.day)return e.startOfDay(o);let r=o;return t<ot.minutes&&(r=e.setMinutes(r,0)),t<ot.seconds&&(r=e.setSeconds(r,0)),t<ot.milliseconds&&(r=e.setMilliseconds(r,0)),r},jl=({props:e,adapter:t,granularity:o,timezone:r,getTodayDate:s})=>{let i=s?s():Kt(t,o,Mo(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Kt(t,o,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Kt(t,o,e.maxDate));const a=Mn(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Kt(t,o,e.disableIgnoringDatePartForTimeValidation?e.minTime:vn(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Kt(t,o,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vn(t,i,e.maxTime))),i},Ro=(e,t)=>{const o=e.formatTokenMap[t];if(o==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
package/dist/inputs.js CHANGED
@@ -11,7 +11,7 @@ import It from "@mui/material/TextField";
11
11
  import { INPUT_HEIGHTS as Vo, toMuiInputSize as No, toMuiColor as Nt, toMuiSize as mn } from "./types.js";
12
12
  import We from "@mui/material/Box";
13
13
  import at from "@mui/material/Typography";
14
- import { S as dy } from "./Select-DTUF31OP.js";
14
+ import { S as dy } from "./Select-Dg7Xdulg.js";
15
15
  import ia from "@mui/material/Autocomplete";
16
16
  import aa from "@mui/material/CircularProgress";
17
17
  import la from "@mui/material/Checkbox";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./TabPanel-CkUSl6Bt.cjs"),e=require("react/jsx-runtime"),j=require("react"),x=require("@mui/material/Box"),W=require("@mui/material/Collapse"),S=require("@mui/material/Typography"),E=require("@mui/material/Checkbox"),O=require("@mui/material/CircularProgress"),k=require("react-icons/lu"),V=require("@mui/material/Breadcrumbs"),P=require("@mui/material/Link"),R=require("@mui/material/Stepper"),X=require("@mui/material/Step"),_=require("@mui/material/StepLabel"),F=require("@mui/material/Pagination"),T=require("@mui/material/IconButton"),C=require("./types.cjs");function D({node:r,depth:s,selected:d,onSelect:a,expanded:i,onToggle:t,checkboxes:u,lazyLoad:p,onLoadChildren:f,loadingNodes:m,setLoadingNodes:g,dynamicChildren:b,setDynamicChildren:n}){const h=i.has(r.id),l=d===r.id,o=b.get(r.id)??r.children,y=o&&o.length>0||p&&!b.has(r.id),v=m.has(r.id),w=async()=>{if(p&&!b.has(r.id)&&f){g(c=>new Set(c).add(r.id));try{const c=await f(r.id);n(z=>new Map(z).set(r.id,c))}finally{g(c=>{const z=new Set(c);return z.delete(r.id),z})}}t(r.id)};return e.jsxs(x,{children:[e.jsxs(x,{onClick:()=>{r.disabled||a?.(r.id)},sx:{display:"flex",alignItems:"center",gap:.5,py:.25,px:1,pl:s*2+1,cursor:r.disabled?"default":"pointer",opacity:r.disabled?.5:1,borderRadius:"4px",bgcolor:l?"var(--ov-accent-subtle)":"transparent",color:l?"var(--ov-accent-fg)":"var(--ov-fg-default)","&:hover":{bgcolor:l?"var(--ov-accent-subtle)":"var(--ov-state-hover)"},fontSize:"0.8125rem"},children:[y?e.jsx(x,{onClick:c=>{c.stopPropagation(),w()},sx:{display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0},children:v?e.jsx(O,{size:12}):h?e.jsx(k.LuChevronDown,{size:14}):e.jsx(k.LuChevronRight,{size:14})}):e.jsx(x,{sx:{width:14,flexShrink:0}}),u&&e.jsx(E,{size:"small",checked:l,disabled:r.disabled,onClick:c=>c.stopPropagation(),onChange:()=>a?.(r.id),sx:{p:0}}),r.icon&&e.jsx(x,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:r.icon}),e.jsx(S,{variant:"body2",sx:{flex:1,fontSize:"inherit",color:"inherit"},noWrap:!0,children:r.label}),r.badge]}),y&&o&&e.jsx(W,{in:h,unmountOnExit:!0,children:o.map(c=>e.jsx(D,{node:c,depth:s+1,selected:d,onSelect:a,expanded:i,onToggle:t,checkboxes:u,lazyLoad:p,onLoadChildren:f,loadingNodes:m,setLoadingNodes:g,dynamicChildren:b,setDynamicChildren:n},c.id))})]})}function M({nodes:r,selected:s,onSelect:d,expanded:a,onToggle:i,checkboxes:t=!1,lazyLoad:u=!1,onLoadChildren:p,sx:f}){const[m,g]=j.useState(new Set),[b,n]=j.useState(new Set),[h,l]=j.useState(new Map),o=a?new Set(a):m,y=j.useCallback(v=>{i?i(v):g(w=>{const c=new Set(w);return c.has(v)?c.delete(v):c.add(v),c})},[i]);return e.jsx(x,{sx:f,children:r.map(v=>e.jsx(D,{node:v,depth:0,selected:s,onSelect:d,expanded:o,onToggle:y,checkboxes:t,lazyLoad:u,onLoadChildren:p,loadingNodes:b,setLoadingNodes:n,dynamicChildren:h,setDynamicChildren:l},v.id))})}M.displayName="TreeView";function I({items:r,separator:s,maxItems:d,sx:a}){return e.jsx(V,{separator:s??"/",maxItems:d,sx:{fontSize:"0.8125rem",color:"var(--ov-fg-muted)",...typeof a=="object"&&!Array.isArray(a)?a:{}},children:r.map((i,t)=>{const u=t===r.length-1,p=e.jsxs(x,{sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[i.icon,e.jsx("span",{children:i.label})]});return u?e.jsx(S,{variant:"body2",sx:{fontSize:"inherit",color:"var(--ov-fg-base)",fontWeight:500},children:p},t):i.onClick?e.jsx(P,{component:"button",variant:"body2",onClick:i.onClick,underline:"hover",sx:{fontSize:"inherit",cursor:"pointer",color:"inherit"},children:p},t):i.href?e.jsx(P,{href:i.href,variant:"body2",underline:"hover",sx:{fontSize:"inherit",color:"inherit"},children:p},t):e.jsx(S,{variant:"body2",sx:{fontSize:"inherit",color:"inherit"},children:p},t)})})}I.displayName="Breadcrumbs";function A({steps:r,activeStep:s,orientation:d="horizontal",variant:a="linear",sx:i}){return e.jsx(R,{activeStep:s,orientation:d,nonLinear:a==="nonLinear",sx:i,children:r.map((t,u)=>e.jsx(X,{children:e.jsx(_,{icon:t.icon,optional:t.optional?e.jsx(S,{variant:"caption",sx:{color:"var(--ov-fg-muted)"},children:"Optional"}):t.description?e.jsx(S,{variant:"caption",sx:{color:"var(--ov-fg-muted)"},children:t.description}):void 0,children:t.label})},u))})}A.displayName="Stepper";function L({count:r,page:s,onChange:d,variant:a="full",size:i="md",sx:t}){if(a==="compact"){const u=C.toMuiSize(i);return e.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1,...typeof t=="object"&&!Array.isArray(t)?t:{}},children:[e.jsx(T,{size:u,disabled:s<=1,onClick:()=>d(s-1),children:e.jsx(k.LuChevronLeft,{})}),e.jsxs(x,{sx:{fontSize:"0.8125rem",color:"var(--ov-fg-default)"},children:[s," / ",r]}),e.jsx(T,{size:u,disabled:s>=r,onClick:()=>d(s+1),children:e.jsx(k.LuChevronRight,{})})]})}return e.jsx(F,{count:r,page:s,onChange:(u,p)=>d(p),size:C.toMuiSize(i),sx:t})}L.displayName="Pagination";function B({tabs:r,activeId:s,onSelect:d,onClose:a,onReorder:i,onAdd:t,onContextMenu:u,maxTabWidth:p=180,sx:f}){const m=j.useCallback((n,h)=>{n.dataTransfer.setData("text/plain",String(h)),n.dataTransfer.effectAllowed="move"},[]),g=j.useCallback((n,h)=>{n.preventDefault();const l=parseInt(n.dataTransfer.getData("text/plain"),10);if(isNaN(l)||l===h||!i)return;const o=[...r],[y]=o.splice(l,1);o.splice(h,0,y),i(o)},[r,i]),b=j.useCallback(n=>{n.preventDefault(),n.dataTransfer.dropEffect="move"},[]);return e.jsxs(x,{sx:{display:"flex",alignItems:"end",height:36,overflow:"auto",bgcolor:"var(--ov-bg-surface)",borderBottom:"1px solid var(--ov-border-default)",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},...typeof f=="object"&&!Array.isArray(f)?f:{}},children:[r.map((n,h)=>{const l=n.id===s;return e.jsxs(x,{draggable:!!i,onDragStart:o=>m(o,h),onDragOver:b,onDrop:o=>g(o,h),onContextMenu:o=>{u&&(o.preventDefault(),u(n.id,o))},onClick:()=>d(n.id),sx:{display:"flex",alignItems:"center",gap:.75,maxWidth:p,height:l?35:32,px:1.5,cursor:"pointer",flexShrink:0,borderBottom:l?"2px solid var(--ov-accent)":"2px solid transparent",bgcolor:l?"var(--ov-bg-base)":"transparent",color:l?"var(--ov-fg-base)":"var(--ov-fg-muted)","&:hover":{bgcolor:l?"var(--ov-bg-base)":"var(--ov-state-hover)","& .tab-close":{opacity:1}}},children:[n.icon&&e.jsx(x,{sx:{display:"flex",flexShrink:0,fontSize:14},children:n.icon}),e.jsx(S,{noWrap:!0,sx:{fontSize:"var(--ov-text-xs)",fontWeight:l?500:400,flex:1,minWidth:0},children:n.label}),n.closable!==!1&&a&&e.jsx(T,{className:"tab-close",size:"small",onClick:o=>{o.stopPropagation(),a(n.id)},sx:{p:"1px",opacity:l?.7:0,color:"inherit","&:hover":{opacity:1,bgcolor:"var(--ov-state-hover)"}},children:e.jsx(k.LuX,{size:12})})]},n.id)}),t&&e.jsx(T,{size:"small",onClick:t,sx:{mx:.5,p:"4px",color:"var(--ov-fg-muted)","&:hover":{bgcolor:"var(--ov-state-hover)"}},children:e.jsx(k.LuPlus,{size:14})})]})}B.displayName="DraggableTabs";function N({children:r,value:s,activeValue:d,sx:a}){const i=s===d;return e.jsx(x,{role:"tabpanel",hidden:!i,sx:{display:i?"block":"none",flex:1,overflow:"auto",...typeof a=="object"&&!Array.isArray(a)?a:{}},children:r})}N.displayName="PersistentTabPanel";exports.TabPanel=q.TabPanel;exports.Tabs=q.Tabs;exports.Breadcrumbs=I;exports.DraggableTabs=B;exports.Pagination=L;exports.PersistentTabPanel=N;exports.Stepper=A;exports.TreeView=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./TabPanel-CkUSl6Bt.cjs"),e=require("react/jsx-runtime"),j=require("react"),x=require("@mui/material/Box"),W=require("@mui/material/Collapse"),S=require("@mui/material/Typography"),E=require("@mui/material/Checkbox"),O=require("@mui/material/CircularProgress"),k=require("react-icons/lu"),V=require("@mui/material/Breadcrumbs"),P=require("@mui/material/Link"),R=require("@mui/material/Stepper"),X=require("@mui/material/Step"),_=require("@mui/material/StepLabel"),F=require("@mui/material/Pagination"),T=require("@mui/material/IconButton"),C=require("./types.cjs");function D({node:r,depth:s,selected:d,onSelect:a,expanded:i,onToggle:n,checkboxes:u,lazyLoad:p,onLoadChildren:f,loadingNodes:m,setLoadingNodes:g,dynamicChildren:b,setDynamicChildren:t}){const h=i.has(r.id),l=d===r.id,o=b.get(r.id)??r.children,y=o&&o.length>0||p&&!b.has(r.id),v=m.has(r.id),w=async()=>{if(p&&!b.has(r.id)&&f){g(c=>new Set(c).add(r.id));try{const c=await f(r.id);t(z=>new Map(z).set(r.id,c))}finally{g(c=>{const z=new Set(c);return z.delete(r.id),z})}}n(r.id)};return e.jsxs(x,{children:[e.jsxs(x,{onClick:()=>{r.disabled||a?.(r.id)},sx:{display:"flex",alignItems:"center",gap:.5,py:.25,px:1,pl:s*2+1,cursor:r.disabled?"default":"pointer",opacity:r.disabled?.5:1,borderRadius:"4px",bgcolor:l?"var(--ov-accent-subtle)":"transparent",color:l?"var(--ov-accent-fg)":"var(--ov-fg-default)","&:hover":{bgcolor:l?"var(--ov-accent-subtle)":"var(--ov-state-hover)"},fontSize:"0.8125rem"},children:[y?e.jsx(x,{onClick:c=>{c.stopPropagation(),w()},sx:{display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0},children:v?e.jsx(O,{size:12}):h?e.jsx(k.LuChevronDown,{size:14}):e.jsx(k.LuChevronRight,{size:14})}):e.jsx(x,{sx:{width:14,flexShrink:0}}),u&&e.jsx(E,{size:"small",checked:l,disabled:r.disabled,onClick:c=>c.stopPropagation(),onChange:()=>a?.(r.id),sx:{p:0}}),r.icon&&e.jsx(x,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:r.icon}),e.jsx(S,{variant:"body2",sx:{flex:1,fontSize:"inherit",color:"inherit"},noWrap:!0,children:r.label}),r.badge]}),y&&o&&e.jsx(W,{in:h,unmountOnExit:!0,children:o.map(c=>e.jsx(D,{node:c,depth:s+1,selected:d,onSelect:a,expanded:i,onToggle:n,checkboxes:u,lazyLoad:p,onLoadChildren:f,loadingNodes:m,setLoadingNodes:g,dynamicChildren:b,setDynamicChildren:t},c.id))})]})}function M({nodes:r,selected:s,onSelect:d,expanded:a,onToggle:i,checkboxes:n=!1,lazyLoad:u=!1,onLoadChildren:p,sx:f}){const[m,g]=j.useState(new Set),[b,t]=j.useState(new Set),[h,l]=j.useState(new Map),o=a?new Set(a):m,y=j.useCallback(v=>{i?i(v):g(w=>{const c=new Set(w);return c.has(v)?c.delete(v):c.add(v),c})},[i]);return e.jsx(x,{sx:f,children:r.map(v=>e.jsx(D,{node:v,depth:0,selected:s,onSelect:d,expanded:o,onToggle:y,checkboxes:n,lazyLoad:u,onLoadChildren:p,loadingNodes:b,setLoadingNodes:t,dynamicChildren:h,setDynamicChildren:l},v.id))})}M.displayName="TreeView";function I({items:r,separator:s,maxItems:d,sx:a}){return e.jsx(V,{separator:s??"/",maxItems:d,sx:{fontSize:"0.8125rem",color:"var(--ov-fg-muted)",...typeof a=="object"&&!Array.isArray(a)?a:{}},children:r.map((i,n)=>{const u=n===r.length-1,p=e.jsxs(x,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[i.icon,e.jsx("span",{children:i.label})]});return u?e.jsx(S,{component:"span",variant:"body2",sx:{fontSize:"inherit",color:"var(--ov-fg-base)",fontWeight:500},children:p},n):i.onClick?e.jsx(P,{component:"button",variant:"body2",onClick:i.onClick,underline:"hover",sx:{fontSize:"inherit",cursor:"pointer",color:"inherit"},children:p},n):i.href?e.jsx(P,{href:i.href,variant:"body2",underline:"hover",sx:{fontSize:"inherit",color:"inherit"},children:p},n):e.jsx(S,{component:"span",variant:"body2",sx:{fontSize:"inherit",color:"inherit"},children:p},n)})})}I.displayName="Breadcrumbs";function A({steps:r,activeStep:s,orientation:d="horizontal",variant:a="linear",sx:i}){return e.jsx(R,{activeStep:s,orientation:d,nonLinear:a==="nonLinear",sx:i,children:r.map((n,u)=>e.jsx(X,{children:e.jsx(_,{icon:n.icon,optional:n.optional?e.jsx(S,{variant:"caption",sx:{color:"var(--ov-fg-muted)"},children:"Optional"}):n.description?e.jsx(S,{variant:"caption",sx:{color:"var(--ov-fg-muted)"},children:n.description}):void 0,children:n.label})},u))})}A.displayName="Stepper";function L({count:r,page:s,onChange:d,variant:a="full",size:i="md",sx:n}){if(a==="compact"){const u=C.toMuiSize(i);return e.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1,...typeof n=="object"&&!Array.isArray(n)?n:{}},children:[e.jsx(T,{size:u,disabled:s<=1,onClick:()=>d(s-1),children:e.jsx(k.LuChevronLeft,{})}),e.jsxs(x,{sx:{fontSize:"0.8125rem",color:"var(--ov-fg-default)"},children:[s," / ",r]}),e.jsx(T,{size:u,disabled:s>=r,onClick:()=>d(s+1),children:e.jsx(k.LuChevronRight,{})})]})}return e.jsx(F,{count:r,page:s,onChange:(u,p)=>d(p),size:C.toMuiSize(i),sx:n})}L.displayName="Pagination";function B({tabs:r,activeId:s,onSelect:d,onClose:a,onReorder:i,onAdd:n,onContextMenu:u,maxTabWidth:p=180,sx:f}){const m=j.useCallback((t,h)=>{t.dataTransfer.setData("text/plain",String(h)),t.dataTransfer.effectAllowed="move"},[]),g=j.useCallback((t,h)=>{t.preventDefault();const l=parseInt(t.dataTransfer.getData("text/plain"),10);if(isNaN(l)||l===h||!i)return;const o=[...r],[y]=o.splice(l,1);o.splice(h,0,y),i(o)},[r,i]),b=j.useCallback(t=>{t.preventDefault(),t.dataTransfer.dropEffect="move"},[]);return e.jsxs(x,{sx:{display:"flex",alignItems:"end",height:36,overflow:"auto",bgcolor:"var(--ov-bg-surface)",borderBottom:"1px solid var(--ov-border-default)",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},...typeof f=="object"&&!Array.isArray(f)?f:{}},children:[r.map((t,h)=>{const l=t.id===s;return e.jsxs(x,{draggable:!!i,onDragStart:o=>m(o,h),onDragOver:b,onDrop:o=>g(o,h),onContextMenu:o=>{u&&(o.preventDefault(),u(t.id,o))},onClick:()=>d(t.id),sx:{display:"flex",alignItems:"center",gap:.75,maxWidth:p,height:l?35:32,px:1.5,cursor:"pointer",flexShrink:0,borderBottom:l?"2px solid var(--ov-accent)":"2px solid transparent",bgcolor:l?"var(--ov-bg-base)":"transparent",color:l?"var(--ov-fg-base)":"var(--ov-fg-muted)","&:hover":{bgcolor:l?"var(--ov-bg-base)":"var(--ov-state-hover)","& .tab-close":{opacity:1}}},children:[t.icon&&e.jsx(x,{sx:{display:"flex",flexShrink:0,fontSize:14},children:t.icon}),e.jsx(S,{noWrap:!0,sx:{fontSize:"var(--ov-text-xs)",fontWeight:l?500:400,flex:1,minWidth:0},children:t.label}),t.closable!==!1&&a&&e.jsx(T,{className:"tab-close",size:"small",onClick:o=>{o.stopPropagation(),a(t.id)},sx:{p:"1px",opacity:l?.7:0,color:"inherit","&:hover":{opacity:1,bgcolor:"var(--ov-state-hover)"}},children:e.jsx(k.LuX,{size:12})})]},t.id)}),n&&e.jsx(T,{size:"small",onClick:n,sx:{mx:.5,p:"4px",color:"var(--ov-fg-muted)","&:hover":{bgcolor:"var(--ov-state-hover)"}},children:e.jsx(k.LuPlus,{size:14})})]})}B.displayName="DraggableTabs";function N({children:r,value:s,activeValue:d,sx:a}){const i=s===d;return e.jsx(x,{role:"tabpanel",hidden:!i,sx:{display:i?"block":"none",flex:1,overflow:"auto",...typeof a=="object"&&!Array.isArray(a)?a:{}},children:r})}N.displayName="PersistentTabPanel";exports.TabPanel=q.TabPanel;exports.Tabs=q.Tabs;exports.Breadcrumbs=I;exports.DraggableTabs=B;exports.Pagination=L;exports.PersistentTabPanel=N;exports.Stepper=A;exports.TreeView=M;
@@ -1,4 +1,4 @@
1
- import { T as vr, a as ur } from "./TabPanel-DLHbgKpl.js";
1
+ import { T as vr, a as mr } from "./TabPanel-DLHbgKpl.js";
2
2
  import { jsx as e, jsxs as x } from "react/jsx-runtime";
3
3
  import { useState as D, useCallback as w } from "react";
4
4
  import h from "@mui/material/Box";
@@ -17,24 +17,24 @@ import T from "@mui/material/IconButton";
17
17
  import { toMuiSize as I } from "./types.js";
18
18
  function A({
19
19
  node: r,
20
- depth: n,
20
+ depth: a,
21
21
  selected: p,
22
- onSelect: a,
22
+ onSelect: n,
23
23
  expanded: i,
24
24
  onToggle: t,
25
25
  checkboxes: d,
26
26
  lazyLoad: f,
27
- onLoadChildren: u,
27
+ onLoadChildren: m,
28
28
  loadingNodes: y,
29
29
  setLoadingNodes: b,
30
30
  dynamicChildren: g,
31
31
  setDynamicChildren: o
32
32
  }) {
33
- const v = i.has(r.id), s = p === r.id, l = g.get(r.id) ?? r.children, S = l && l.length > 0 || f && !g.has(r.id), m = y.has(r.id), C = async () => {
34
- if (f && !g.has(r.id) && u) {
33
+ const v = i.has(r.id), s = p === r.id, l = g.get(r.id) ?? r.children, S = l && l.length > 0 || f && !g.has(r.id), u = y.has(r.id), C = async () => {
34
+ if (f && !g.has(r.id) && m) {
35
35
  b((c) => new Set(c).add(r.id));
36
36
  try {
37
- const c = await u(r.id);
37
+ const c = await m(r.id);
38
38
  o((z) => new Map(z).set(r.id, c));
39
39
  } finally {
40
40
  b((c) => {
@@ -50,7 +50,7 @@ function A({
50
50
  h,
51
51
  {
52
52
  onClick: () => {
53
- r.disabled || a?.(r.id);
53
+ r.disabled || n?.(r.id);
54
54
  },
55
55
  sx: {
56
56
  display: "flex",
@@ -58,7 +58,7 @@ function A({
58
58
  gap: 0.5,
59
59
  py: 0.25,
60
60
  px: 1,
61
- pl: n * 2 + 1,
61
+ pl: a * 2 + 1,
62
62
  cursor: r.disabled ? "default" : "pointer",
63
63
  opacity: r.disabled ? 0.5 : 1,
64
64
  borderRadius: "4px",
@@ -77,7 +77,7 @@ function A({
77
77
  c.stopPropagation(), C();
78
78
  },
79
79
  sx: { display: "flex", alignItems: "center", cursor: "pointer", flexShrink: 0 },
80
- children: m ? /* @__PURE__ */ e(L, { size: 12 }) : v ? /* @__PURE__ */ e(W, { size: 14 }) : /* @__PURE__ */ e(M, { size: 14 })
80
+ children: u ? /* @__PURE__ */ e(L, { size: 12 }) : v ? /* @__PURE__ */ e(W, { size: 14 }) : /* @__PURE__ */ e(M, { size: 14 })
81
81
  }
82
82
  ) : /* @__PURE__ */ e(h, { sx: { width: 14, flexShrink: 0 } }),
83
83
  d && /* @__PURE__ */ e(
@@ -87,7 +87,7 @@ function A({
87
87
  checked: s,
88
88
  disabled: r.disabled,
89
89
  onClick: (c) => c.stopPropagation(),
90
- onChange: () => a?.(r.id),
90
+ onChange: () => n?.(r.id),
91
91
  sx: { p: 0 }
92
92
  }
93
93
  ),
@@ -101,14 +101,14 @@ function A({
101
101
  A,
102
102
  {
103
103
  node: c,
104
- depth: n + 1,
104
+ depth: a + 1,
105
105
  selected: p,
106
- onSelect: a,
106
+ onSelect: n,
107
107
  expanded: i,
108
108
  onToggle: t,
109
109
  checkboxes: d,
110
110
  lazyLoad: f,
111
- onLoadChildren: u,
111
+ onLoadChildren: m,
112
112
  loadingNodes: y,
113
113
  setLoadingNodes: b,
114
114
  dynamicChildren: g,
@@ -120,30 +120,30 @@ function A({
120
120
  }
121
121
  function G({
122
122
  nodes: r,
123
- selected: n,
123
+ selected: a,
124
124
  onSelect: p,
125
- expanded: a,
125
+ expanded: n,
126
126
  onToggle: i,
127
127
  checkboxes: t = !1,
128
128
  lazyLoad: d = !1,
129
129
  onLoadChildren: f,
130
- sx: u
130
+ sx: m
131
131
  }) {
132
- const [y, b] = D(/* @__PURE__ */ new Set()), [g, o] = D(/* @__PURE__ */ new Set()), [v, s] = D(/* @__PURE__ */ new Map()), l = a ? new Set(a) : y, S = w(
133
- (m) => {
134
- i ? i(m) : b((C) => {
132
+ const [y, b] = D(/* @__PURE__ */ new Set()), [g, o] = D(/* @__PURE__ */ new Set()), [v, s] = D(/* @__PURE__ */ new Map()), l = n ? new Set(n) : y, S = w(
133
+ (u) => {
134
+ i ? i(u) : b((C) => {
135
135
  const c = new Set(C);
136
- return c.has(m) ? c.delete(m) : c.add(m), c;
136
+ return c.has(u) ? c.delete(u) : c.add(u), c;
137
137
  });
138
138
  },
139
139
  [i]
140
140
  );
141
- return /* @__PURE__ */ e(h, { sx: u, children: r.map((m) => /* @__PURE__ */ e(
141
+ return /* @__PURE__ */ e(h, { sx: m, children: r.map((u) => /* @__PURE__ */ e(
142
142
  A,
143
143
  {
144
- node: m,
144
+ node: u,
145
145
  depth: 0,
146
- selected: n,
146
+ selected: a,
147
147
  onSelect: p,
148
148
  expanded: l,
149
149
  onToggle: S,
@@ -155,32 +155,41 @@ function G({
155
155
  dynamicChildren: v,
156
156
  setDynamicChildren: s
157
157
  },
158
- m.id
158
+ u.id
159
159
  )) });
160
160
  }
161
161
  G.displayName = "TreeView";
162
162
  function H({
163
163
  items: r,
164
- separator: n,
164
+ separator: a,
165
165
  maxItems: p,
166
- sx: a
166
+ sx: n
167
167
  }) {
168
168
  return /* @__PURE__ */ e(
169
169
  V,
170
170
  {
171
- separator: n ?? "/",
171
+ separator: a ?? "/",
172
172
  maxItems: p,
173
173
  sx: {
174
174
  fontSize: "0.8125rem",
175
175
  color: "var(--ov-fg-muted)",
176
- ...typeof a == "object" && !Array.isArray(a) ? a : {}
176
+ ...typeof n == "object" && !Array.isArray(n) ? n : {}
177
177
  },
178
178
  children: r.map((i, t) => {
179
- const d = t === r.length - 1, f = /* @__PURE__ */ x(h, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: [
179
+ const d = t === r.length - 1, f = /* @__PURE__ */ x(h, { component: "span", sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: [
180
180
  i.icon,
181
181
  /* @__PURE__ */ e("span", { children: i.label })
182
182
  ] });
183
- return d ? /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: "inherit", color: "var(--ov-fg-base)", fontWeight: 500 }, children: f }, t) : i.onClick ? /* @__PURE__ */ e(
183
+ return d ? /* @__PURE__ */ e(
184
+ k,
185
+ {
186
+ component: "span",
187
+ variant: "body2",
188
+ sx: { fontSize: "inherit", color: "var(--ov-fg-base)", fontWeight: 500 },
189
+ children: f
190
+ },
191
+ t
192
+ ) : i.onClick ? /* @__PURE__ */ e(
184
193
  P,
185
194
  {
186
195
  component: "button",
@@ -191,7 +200,7 @@ function H({
191
200
  children: f
192
201
  },
193
202
  t
194
- ) : i.href ? /* @__PURE__ */ e(P, { href: i.href, variant: "body2", underline: "hover", sx: { fontSize: "inherit", color: "inherit" }, children: f }, t) : /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: "inherit", color: "inherit" }, children: f }, t);
203
+ ) : i.href ? /* @__PURE__ */ e(P, { href: i.href, variant: "body2", underline: "hover", sx: { fontSize: "inherit", color: "inherit" }, children: f }, t) : /* @__PURE__ */ e(k, { component: "span", variant: "body2", sx: { fontSize: "inherit", color: "inherit" }, children: f }, t);
195
204
  })
196
205
  }
197
206
  );
@@ -199,17 +208,17 @@ function H({
199
208
  H.displayName = "Breadcrumbs";
200
209
  function J({
201
210
  steps: r,
202
- activeStep: n,
211
+ activeStep: a,
203
212
  orientation: p = "horizontal",
204
- variant: a = "linear",
213
+ variant: n = "linear",
205
214
  sx: i
206
215
  }) {
207
216
  return /* @__PURE__ */ e(
208
217
  X,
209
218
  {
210
- activeStep: n,
219
+ activeStep: a,
211
220
  orientation: p,
212
- nonLinear: a === "nonLinear",
221
+ nonLinear: n === "nonLinear",
213
222
  sx: i,
214
223
  children: r.map((t, d) => /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
215
224
  q,
@@ -225,26 +234,26 @@ function J({
225
234
  J.displayName = "Stepper";
226
235
  function K({
227
236
  count: r,
228
- page: n,
237
+ page: a,
229
238
  onChange: p,
230
- variant: a = "full",
239
+ variant: n = "full",
231
240
  size: i = "md",
232
241
  sx: t
233
242
  }) {
234
- if (a === "compact") {
243
+ if (n === "compact") {
235
244
  const d = I(i);
236
245
  return /* @__PURE__ */ x(h, { sx: { display: "flex", alignItems: "center", gap: 1, ...typeof t == "object" && !Array.isArray(t) ? t : {} }, children: [
237
246
  /* @__PURE__ */ e(
238
247
  T,
239
248
  {
240
249
  size: d,
241
- disabled: n <= 1,
242
- onClick: () => p(n - 1),
250
+ disabled: a <= 1,
251
+ onClick: () => p(a - 1),
243
252
  children: /* @__PURE__ */ e(j, {})
244
253
  }
245
254
  ),
246
255
  /* @__PURE__ */ x(h, { sx: { fontSize: "0.8125rem", color: "var(--ov-fg-default)" }, children: [
247
- n,
256
+ a,
248
257
  " / ",
249
258
  r
250
259
  ] }),
@@ -252,8 +261,8 @@ function K({
252
261
  T,
253
262
  {
254
263
  size: d,
255
- disabled: n >= r,
256
- onClick: () => p(n + 1),
264
+ disabled: a >= r,
265
+ onClick: () => p(a + 1),
257
266
  children: /* @__PURE__ */ e(M, {})
258
267
  }
259
268
  )
@@ -263,7 +272,7 @@ function K({
263
272
  F,
264
273
  {
265
274
  count: r,
266
- page: n,
275
+ page: a,
267
276
  onChange: (d, f) => p(f),
268
277
  size: I(i),
269
278
  sx: t
@@ -273,14 +282,14 @@ function K({
273
282
  K.displayName = "Pagination";
274
283
  function Q({
275
284
  tabs: r,
276
- activeId: n,
285
+ activeId: a,
277
286
  onSelect: p,
278
- onClose: a,
287
+ onClose: n,
279
288
  onReorder: i,
280
289
  onAdd: t,
281
290
  onContextMenu: d,
282
291
  maxTabWidth: f = 180,
283
- sx: u
292
+ sx: m
284
293
  }) {
285
294
  const y = w((o, v) => {
286
295
  o.dataTransfer.setData("text/plain", String(v)), o.dataTransfer.effectAllowed = "move";
@@ -305,11 +314,11 @@ function Q({
305
314
  borderBottom: "1px solid var(--ov-border-default)",
306
315
  scrollbarWidth: "none",
307
316
  "&::-webkit-scrollbar": { display: "none" },
308
- ...typeof u == "object" && !Array.isArray(u) ? u : {}
317
+ ...typeof m == "object" && !Array.isArray(m) ? m : {}
309
318
  },
310
319
  children: [
311
320
  r.map((o, v) => {
312
- const s = o.id === n;
321
+ const s = o.id === a;
313
322
  return /* @__PURE__ */ x(
314
323
  h,
315
324
  {
@@ -353,13 +362,13 @@ function Q({
353
362
  children: o.label
354
363
  }
355
364
  ),
356
- o.closable !== !1 && a && /* @__PURE__ */ e(
365
+ o.closable !== !1 && n && /* @__PURE__ */ e(
357
366
  T,
358
367
  {
359
368
  className: "tab-close",
360
369
  size: "small",
361
370
  onClick: (l) => {
362
- l.stopPropagation(), a(o.id);
371
+ l.stopPropagation(), n(o.id);
363
372
  },
364
373
  sx: {
365
374
  p: "1px",
@@ -396,11 +405,11 @@ function Q({
396
405
  Q.displayName = "DraggableTabs";
397
406
  function U({
398
407
  children: r,
399
- value: n,
408
+ value: a,
400
409
  activeValue: p,
401
- sx: a
410
+ sx: n
402
411
  }) {
403
- const i = n === p;
412
+ const i = a === p;
404
413
  return /* @__PURE__ */ e(
405
414
  h,
406
415
  {
@@ -410,7 +419,7 @@ function U({
410
419
  display: i ? "block" : "none",
411
420
  flex: 1,
412
421
  overflow: "auto",
413
- ...typeof a == "object" && !Array.isArray(a) ? a : {}
422
+ ...typeof n == "object" && !Array.isArray(n) ? n : {}
414
423
  },
415
424
  children: r
416
425
  }
@@ -424,6 +433,6 @@ export {
424
433
  U as PersistentTabPanel,
425
434
  J as Stepper,
426
435
  vr as TabPanel,
427
- ur as Tabs,
436
+ mr as Tabs,
428
437
  G as TreeView
429
438
  };
@@ -1,6 +1,14 @@
1
1
  import { ThemeOptions } from '@mui/material/styles';
2
2
  import { ReactNode } from 'react';
3
+ import { ThemeVariant } from './registry/types';
4
+ export type { ThemeVariant } from './registry/types';
3
5
  export type ColorMode = 'light' | 'dark' | 'system';
6
+ interface ThemeVariantContextValue {
7
+ variant: ThemeVariant;
8
+ colorMode: ColorMode;
9
+ }
10
+ export declare const ThemeVariantContext: import('react').Context<ThemeVariantContextValue>;
11
+ export declare function useThemeVariant(): ThemeVariantContextValue;
4
12
  interface AppThemeProps {
5
13
  children: ReactNode;
6
14
  /** Additional component overrides to merge into the theme */
@@ -9,6 +17,7 @@ interface AppThemeProps {
9
17
  disableCustomTheme?: boolean;
10
18
  /** Default color mode. Defaults to 'dark'. */
11
19
  defaultMode?: ColorMode;
20
+ /** Theme variant. Defaults to 'default'. */
21
+ variant?: ThemeVariant;
12
22
  }
13
- export default function AppTheme({ children, disableCustomTheme, themeComponents, defaultMode, }: AppThemeProps): import("react/jsx-runtime").JSX.Element;
14
- export {};
23
+ export default function AppTheme({ children, disableCustomTheme, themeComponents, defaultMode, variant, }: AppThemeProps): import("react/jsx-runtime").JSX.Element;