@omniviewdev/ui 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppTheme-BakZ7ezV.cjs +1 -0
- package/dist/AppTheme-wAxlNjgN.js +291 -0
- package/dist/Select-BqA47TdK.cjs +1 -0
- package/dist/Select-D61fKI8Y.js +276 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +1 -1
- package/dist/editors/index.d.ts +1 -1
- package/dist/editors/themes.d.ts +13 -0
- package/dist/editors.cjs +26 -26
- package/dist/editors.js +3860 -3791
- package/dist/inputs.cjs +1 -1
- package/dist/inputs.js +1 -1
- package/dist/theme/AppTheme.d.ts +11 -2
- package/dist/theme/customizations/dataDisplay.d.ts +11 -0
- package/dist/theme/customizations/feedback.d.ts +6 -0
- package/dist/theme/customizations/inputs.d.ts +7 -0
- package/dist/theme/customizations/navigation.d.ts +7 -0
- package/dist/theme/index.d.ts +10 -5
- package/dist/theme/registry/init.d.ts +1 -0
- package/dist/theme/registry/registry.d.ts +9 -0
- package/dist/theme/registry/types.d.ts +19 -0
- package/dist/theme/registry/variants/default/index.d.ts +2 -0
- package/dist/theme/registry/variants/solarized/index.d.ts +2 -0
- package/dist/theme/registry/variants/solarized/palettes.d.ts +147 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +1250 -1275
- package/dist/tokens.css +116 -0
- package/package.json +1 -1
- package/dist/Select-CnRBSc5w.cjs +0 -1
- 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-BqA47TdK.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-
|
|
14
|
+
import { S as dy } from "./Select-D61fKI8Y.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";
|
package/dist/theme/AppTheme.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { Components, Theme } from '@mui/material/styles';
|
|
2
|
+
type ColorScale = Record<number, string>;
|
|
3
|
+
interface DataDisplayPalettes {
|
|
4
|
+
gray: ColorScale;
|
|
5
|
+
brand: ColorScale;
|
|
6
|
+
green: ColorScale;
|
|
7
|
+
orange: ColorScale;
|
|
8
|
+
red: ColorScale;
|
|
9
|
+
purple: ColorScale;
|
|
10
|
+
}
|
|
11
|
+
export declare function createDataDisplayCustomizations(palettes?: Partial<DataDisplayPalettes>): Components<Theme>;
|
|
2
12
|
export declare const dataDisplayCustomizations: Components<Theme>;
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { Components, Theme } from '@mui/material/styles';
|
|
2
|
+
type ColorScale = Record<number, string>;
|
|
3
|
+
interface FeedbackPalettes {
|
|
4
|
+
gray: ColorScale;
|
|
5
|
+
}
|
|
6
|
+
export declare function createFeedbackCustomizations(palettes?: Partial<FeedbackPalettes>): Components<Theme>;
|
|
2
7
|
export declare const feedbackCustomizations: Components<Theme>;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { Components, Theme } from '@mui/material/styles';
|
|
2
|
+
type ColorScale = Record<number, string>;
|
|
3
|
+
interface InputPalettes {
|
|
4
|
+
gray: ColorScale;
|
|
5
|
+
brand: ColorScale;
|
|
6
|
+
}
|
|
7
|
+
export declare function createInputsCustomizations(palettes?: Partial<InputPalettes>): Components<Theme>;
|
|
2
8
|
export declare const inputsCustomizations: Components<Theme>;
|
|
9
|
+
export {};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { Components, Theme } from '@mui/material/styles';
|
|
2
|
+
type ColorScale = Record<number, string>;
|
|
3
|
+
interface NavigationPalettes {
|
|
4
|
+
gray: ColorScale;
|
|
5
|
+
brand: ColorScale;
|
|
6
|
+
}
|
|
7
|
+
export declare function createNavigationCustomizations(palettes?: Partial<NavigationPalettes>): Components<Theme>;
|
|
2
8
|
export declare const navigationCustomizations: Components<Theme>;
|
|
9
|
+
export {};
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
* 2. CSS Custom Properties (tokens.css, applyTheme/resetTheme) — controls custom component styling
|
|
7
7
|
*/
|
|
8
8
|
export { default as AppTheme } from './AppTheme';
|
|
9
|
-
export type { ColorMode } from './AppTheme';
|
|
9
|
+
export type { ColorMode, ThemeVariant } from './AppTheme';
|
|
10
|
+
export { ThemeVariantContext, useThemeVariant } from './AppTheme';
|
|
11
|
+
export { ThemeRegistry } from './registry/registry';
|
|
12
|
+
export { initThemeRegistry } from './registry/init';
|
|
13
|
+
export type { ThemeDefinition, ThemePalettes } from './registry/types';
|
|
10
14
|
export { brand, gray, green, orange, red, purple, getDesignTokens, typography, shape, customShadows, } from './primitives';
|
|
11
|
-
export { inputsCustomizations } from './customizations/inputs';
|
|
12
|
-
export { navigationCustomizations } from './customizations/navigation';
|
|
13
|
-
export { feedbackCustomizations } from './customizations/feedback';
|
|
14
|
-
export { dataDisplayCustomizations } from './customizations/dataDisplay';
|
|
15
|
+
export { inputsCustomizations, createInputsCustomizations } from './customizations/inputs';
|
|
16
|
+
export { navigationCustomizations, createNavigationCustomizations } from './customizations/navigation';
|
|
17
|
+
export { feedbackCustomizations, createFeedbackCustomizations } from './customizations/feedback';
|
|
18
|
+
export { dataDisplayCustomizations, createDataDisplayCustomizations } from './customizations/dataDisplay';
|
|
19
|
+
export { solarizedGray, solarizedBrand, solarizedGreen, solarizedOrange, solarizedRed, solarizedPurple, getSolarizedDesignTokens, solarizedCustomShadows, } from './registry/variants/solarized/palettes';
|
|
15
20
|
export interface OmniviewTheme {
|
|
16
21
|
name: string;
|
|
17
22
|
type: "dark" | "light";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initThemeRegistry(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ThemeDefinition, ThemeVariant } from './types';
|
|
2
|
+
declare class ThemeRegistryClass {
|
|
3
|
+
private themes;
|
|
4
|
+
register(variant: string, definition: ThemeDefinition): void;
|
|
5
|
+
get(variant: ThemeVariant | string): ThemeDefinition;
|
|
6
|
+
getVariants(): string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ThemeRegistry: ThemeRegistryClass;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PaletteMode, Shadows, ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
export type ThemeVariant = 'default' | 'solarized';
|
|
3
|
+
export type ColorScale = Record<number, string>;
|
|
4
|
+
export interface ThemePalettes {
|
|
5
|
+
gray: ColorScale;
|
|
6
|
+
brand: ColorScale;
|
|
7
|
+
green: ColorScale;
|
|
8
|
+
orange: ColorScale;
|
|
9
|
+
red: ColorScale;
|
|
10
|
+
purple: ColorScale;
|
|
11
|
+
}
|
|
12
|
+
export interface ThemeDefinition {
|
|
13
|
+
palettes: ThemePalettes;
|
|
14
|
+
getDesignTokens: (mode: PaletteMode) => {
|
|
15
|
+
palette: object;
|
|
16
|
+
};
|
|
17
|
+
getShadows: (mode: PaletteMode) => Shadows;
|
|
18
|
+
getCustomizations: () => NonNullable<ThemeOptions['components']>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { PaletteMode, Shadows } from '@mui/material/styles';
|
|
2
|
+
/**
|
|
3
|
+
* Gray scale aligned with the solarized-dark --ov-scale-gray-* tokens.
|
|
4
|
+
* 50 = lightest (base2), 900 = darkest (base03).
|
|
5
|
+
*/
|
|
6
|
+
export declare const solarizedGray: {
|
|
7
|
+
50: string;
|
|
8
|
+
100: string;
|
|
9
|
+
200: string;
|
|
10
|
+
300: string;
|
|
11
|
+
400: string;
|
|
12
|
+
500: string;
|
|
13
|
+
600: string;
|
|
14
|
+
700: string;
|
|
15
|
+
800: string;
|
|
16
|
+
900: string;
|
|
17
|
+
};
|
|
18
|
+
/** Brand — 10-step scale around Solarized Blue (#268BD2). */
|
|
19
|
+
export declare const solarizedBrand: {
|
|
20
|
+
50: string;
|
|
21
|
+
100: string;
|
|
22
|
+
200: string;
|
|
23
|
+
300: string;
|
|
24
|
+
400: string;
|
|
25
|
+
500: string;
|
|
26
|
+
600: string;
|
|
27
|
+
700: string;
|
|
28
|
+
800: string;
|
|
29
|
+
900: string;
|
|
30
|
+
};
|
|
31
|
+
/** Green — 10-step scale. Cooler green (less yellow/orange) for Solarized harmony. */
|
|
32
|
+
export declare const solarizedGreen: {
|
|
33
|
+
50: string;
|
|
34
|
+
100: string;
|
|
35
|
+
200: string;
|
|
36
|
+
300: string;
|
|
37
|
+
400: string;
|
|
38
|
+
500: string;
|
|
39
|
+
600: string;
|
|
40
|
+
700: string;
|
|
41
|
+
800: string;
|
|
42
|
+
900: string;
|
|
43
|
+
};
|
|
44
|
+
/** Orange — 10-step scale around Solarized Yellow (#B58900). Darker chip values for stronger contrast with green. */
|
|
45
|
+
export declare const solarizedOrange: {
|
|
46
|
+
50: string;
|
|
47
|
+
100: string;
|
|
48
|
+
200: string;
|
|
49
|
+
300: string;
|
|
50
|
+
400: string;
|
|
51
|
+
500: string;
|
|
52
|
+
600: string;
|
|
53
|
+
700: string;
|
|
54
|
+
800: string;
|
|
55
|
+
900: string;
|
|
56
|
+
};
|
|
57
|
+
/** Red — 10-step scale around Solarized Red (#DC322F). */
|
|
58
|
+
export declare const solarizedRed: {
|
|
59
|
+
50: string;
|
|
60
|
+
100: string;
|
|
61
|
+
200: string;
|
|
62
|
+
300: string;
|
|
63
|
+
400: string;
|
|
64
|
+
500: string;
|
|
65
|
+
600: string;
|
|
66
|
+
700: string;
|
|
67
|
+
800: string;
|
|
68
|
+
900: string;
|
|
69
|
+
};
|
|
70
|
+
/** Purple — 10-step scale around Solarized Violet (#6C71C4). */
|
|
71
|
+
export declare const solarizedPurple: {
|
|
72
|
+
50: string;
|
|
73
|
+
100: string;
|
|
74
|
+
200: string;
|
|
75
|
+
300: string;
|
|
76
|
+
400: string;
|
|
77
|
+
500: string;
|
|
78
|
+
600: string;
|
|
79
|
+
700: string;
|
|
80
|
+
800: string;
|
|
81
|
+
900: string;
|
|
82
|
+
};
|
|
83
|
+
export declare const getSolarizedDesignTokens: (mode: PaletteMode) => {
|
|
84
|
+
palette: {
|
|
85
|
+
mode: PaletteMode;
|
|
86
|
+
primary: {
|
|
87
|
+
light: string;
|
|
88
|
+
dark: string;
|
|
89
|
+
main: string;
|
|
90
|
+
contrastText: string;
|
|
91
|
+
};
|
|
92
|
+
info: {
|
|
93
|
+
contrastText: string;
|
|
94
|
+
light: string;
|
|
95
|
+
main: string;
|
|
96
|
+
dark: string;
|
|
97
|
+
};
|
|
98
|
+
warning: {
|
|
99
|
+
light: string;
|
|
100
|
+
main: string;
|
|
101
|
+
dark: string;
|
|
102
|
+
};
|
|
103
|
+
error: {
|
|
104
|
+
light: string;
|
|
105
|
+
main: string;
|
|
106
|
+
dark: string;
|
|
107
|
+
};
|
|
108
|
+
success: {
|
|
109
|
+
light: string;
|
|
110
|
+
main: string;
|
|
111
|
+
dark: string;
|
|
112
|
+
};
|
|
113
|
+
secondary: {
|
|
114
|
+
light: string;
|
|
115
|
+
main: string;
|
|
116
|
+
dark: string;
|
|
117
|
+
contrastText: string;
|
|
118
|
+
};
|
|
119
|
+
grey: {
|
|
120
|
+
50: string;
|
|
121
|
+
100: string;
|
|
122
|
+
200: string;
|
|
123
|
+
300: string;
|
|
124
|
+
400: string;
|
|
125
|
+
500: string;
|
|
126
|
+
600: string;
|
|
127
|
+
700: string;
|
|
128
|
+
800: string;
|
|
129
|
+
900: string;
|
|
130
|
+
};
|
|
131
|
+
divider: string;
|
|
132
|
+
background: {
|
|
133
|
+
default: string;
|
|
134
|
+
paper: string;
|
|
135
|
+
};
|
|
136
|
+
text: {
|
|
137
|
+
primary: string;
|
|
138
|
+
secondary: string;
|
|
139
|
+
};
|
|
140
|
+
action: {
|
|
141
|
+
hover: string;
|
|
142
|
+
selected: string;
|
|
143
|
+
};
|
|
144
|
+
baseShadow: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export declare const solarizedCustomShadows: (mode: PaletteMode) => Shadows;
|