freemium-ui 2.0.2 → 2.0.3
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/lib/index.cjs.js +388 -388
- package/lib/index.d.ts +1 -0
- package/lib/index.js +952 -952
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -1857,16 +1857,120 @@ const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n
|
|
|
1857
1857
|
})),Tc=e.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...a}=t,o=_c(r)
|
|
1858
1858
|
;return e.createElement(zc,un({},o,a,{ref:n}))})),Rc=e.forwardRef(((t,n)=>{
|
|
1859
1859
|
const{__scopeDropdownMenu:r,...a}=t,o=_c(r)
|
|
1860
|
-
;return e.createElement(Mc,un({},o,a,{ref:n}))
|
|
1861
|
-
|
|
1860
|
+
;return e.createElement(Mc,un({},o,a,{ref:n}))})),Pc={elephant:"#12344d",
|
|
1861
|
+
smoke:"#ebeff3",milk:"#ffffff",E900:"#12344d",E800:"#264966",E700:"#345c7c",
|
|
1862
|
+
E600:"#447093",E500:"#527fa5",E400:"#6b92b6",E300:"#83a6c8",E200:"#a2c0de",
|
|
1863
|
+
E100:"#bedbf5",E50:"#dff0ff",S900:"#27313a",S800:"#384551",S700:"#475867",
|
|
1864
|
+
S600:"#576c7d",S500:"#647a8e",S400:"#7b8e9f",S300:"#92a2b1",S200:"#b1bdc8",
|
|
1865
|
+
S100:"#cfd7df",S75:"#e6e8eb",S50:"#ebeff3",S25:"#f5f7f9",S10:"#f7f9fa"},Ic={
|
|
1866
|
+
jungle:"#005c3f",J900:"#005c3f",J800:"#00795b",J700:"#008969",J600:"#009a79",
|
|
1867
|
+
J500:"#00a886",J400:"#1cb697",J300:"#4dc4aa",J200:"#82d5c2",J100:"#b4e5da",
|
|
1868
|
+
J50:"#e0f5f1",azure:"#2c5cc5",A900:"#283da5",A800:"#2c5cc5",A700:"#2e6ed8",
|
|
1869
|
+
A600:"#2f80eb",A500:"#2e8efa",A400:"#459ffc",A300:"#64b0fc",A200:"#90c6fe",
|
|
1870
|
+
A100:"#bbdcfe",A50:"#e5f2fd",persimmon:"#e43538",P900:"#c82124",P800:"#d72d30",
|
|
1871
|
+
P700:"#e43538",P600:"#f73f3e",P500:"#ff473e",P400:"#ff5959",P300:"#f2797b",
|
|
1872
|
+
P200:"#f89fa1",P100:"#ffd0d6",P50:"#ffecf0",casablanca:"#e86f25",C900:"#d7461f",
|
|
1873
|
+
C800:"#e16023",C700:"#e86f25",C600:"#ef7e27",C500:"#f48928",C400:"#f69a3c",
|
|
1874
|
+
C300:"#f8ab59",C200:"#fac386",C100:"#fddbb5",C50:"#fef1e1"},Oc={black:"#000000",
|
|
1875
|
+
white:"#ffffff"
|
|
1876
|
+
},Nc="-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial, sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'",Fc=(e,t=1)=>{
|
|
1877
|
+
let n=t,r=e.replace(/^#/,"")
|
|
1878
|
+
;8===e.length||4===e.length?(n=parseInt(e.slice(-2),16)/255,
|
|
1879
|
+
r=e.slice(0,-2)):3===r.length&&(r=r.replace(/(.)/g,"$1$1"))
|
|
1880
|
+
;const[a,o,i]=[0,2,4].map((e=>parseInt(r.slice(e,e+2),16)))
|
|
1881
|
+
;return`rgba(${a}, ${o}, ${i}, ${n.toFixed(2)})`},Bc={mode:"light",breakpoints:{
|
|
1882
|
+
keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},
|
|
1883
|
+
unit:"px"},colors:{common:{black:Oc.black,white:Oc.white,accent:Ic.A800},text:{
|
|
1884
|
+
link:Ic.A800,primary:Pc.E900,secondary:Pc.S700,disabled:Pc.S400,
|
|
1885
|
+
placeholder:Pc.S300,error:Ic.P800,inverse:Oc.white,semantic:{success:Ic.J500,
|
|
1886
|
+
warning:Ic.C500,error:Ic.P500,info:Ic.A500}},fill:{base:Pc.S25,medium:Pc.S50,
|
|
1887
|
+
dark:Pc.S100,surface:Oc.white,inverse:Pc.E900,hover:Pc.S50,disabled:Pc.S50,
|
|
1888
|
+
hilight:Ic.A50},semantic:{error:{bg:Ic.P50,border:Ic.P100},warning:{bg:Ic.C50,
|
|
1889
|
+
border:Ic.C100},info:{bg:Ic.A50,border:Ic.A100},success:{bg:Ic.J50,
|
|
1890
|
+
border:Ic.J100}},border:{light:Pc.S50,normal:Pc.S100,divider:Pc.S100,
|
|
1891
|
+
hover:Pc.S300,active:Ic.A800,disabled:Pc.S50,error:Ic.P800},shadow:Pc.E900,
|
|
1892
|
+
scrim:Pc.E900},typography:{fontFamily:Nc,fontWeight:{bold:700,"semi-bold":600,
|
|
1893
|
+
regular:400},primary:{fontSize:"14px",fontWeight:400,lineHeight:1.5},secondary:{
|
|
1894
|
+
fontSize:"12px",fontWeight:400,lineHeight:1.5},heading:{fontSize:"16px",
|
|
1895
|
+
fontWeight:400,lineHeight:1.25},heading1:{fontSize:"44px",fontWeight:400,
|
|
1896
|
+
lineHeight:1.25},heading2:{fontSize:"32px",fontWeight:400,lineHeight:1.25},
|
|
1897
|
+
heading3:{fontSize:"24px",fontWeight:400,lineHeight:1.25},heading4:{
|
|
1898
|
+
fontSize:"18px",fontWeight:400,lineHeight:1.25},caption:{fontSize:"12px",
|
|
1899
|
+
fontWeight:400,lineHeight:1}},
|
|
1900
|
+
shadows:["none","0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)","0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)","0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)"],
|
|
1901
|
+
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1902
|
+
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1903
|
+
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1904
|
+
complex:"450ms"}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,
|
|
1905
|
+
drawer:1200,modal:1300,snackbar:1400,tooltip:1500},components:{button:{primary:{
|
|
1906
|
+
backgroundFrom:Pc.E800,backgroundTo:Pc.E900,color:Oc.white,disabledColor:Pc.S10,
|
|
1907
|
+
activeBackgroundColor:Pc.E800,hoverColor:Pc.E900,borderColor:Pc.E900,
|
|
1908
|
+
activeBorderColor:Pc.E900,disabledBorderColor:Pc.S400,
|
|
1909
|
+
disabledBackgroundFrom:Pc.S300,disabledBackgroundTo:Pc.S400},secondary:{
|
|
1910
|
+
backgroundFrom:Oc.white,backgroundTo:Pc.S25,color:Pc.E900,disabledColor:Pc.S300,
|
|
1911
|
+
activeBackgroundColor:Pc.S25,hoverColor:Pc.S25,borderColor:Pc.S100,
|
|
1912
|
+
activeBorderColor:Pc.S25,disabledBorderColor:Pc.S100,
|
|
1913
|
+
disabledBackgroundFrom:Pc.S50,disabledBackgroundTo:Pc.S50},danger:{
|
|
1914
|
+
backgroundFrom:Ic.P800,backgroundTo:Ic.P900,color:Oc.white,
|
|
1915
|
+
disabledColor:Ic.P100,activeBackgroundColor:Ic.P800,hoverColor:Ic.P900,
|
|
1916
|
+
borderColor:Ic.P900,activeBorderColor:Ic.P200,disabledBorderColor:Ic.P300,
|
|
1917
|
+
disabledBackgroundFrom:Ic.P200,disabledBackgroundTo:Ic.P300},link:{
|
|
1918
|
+
backgroundFrom:Oc.white,backgroundTo:Oc.white,color:Ic.A800,
|
|
1919
|
+
disabledColor:Ic.A100,activeBackgroundColor:Pc.S25,hoverColor:Pc.S50,
|
|
1920
|
+
borderColor:Oc.white,activeBorderColor:Pc.S25,disabledBorderColor:Oc.white,
|
|
1921
|
+
disabledBackgroundFrom:Oc.white,disabledBackgroundTo:Oc.white}}}},jc={
|
|
1922
|
+
mode:"dark",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,
|
|
1923
|
+
md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{black:Oc.black,
|
|
1924
|
+
white:Oc.white,accent:Ic.A800},text:{link:Ic.A800,primary:Pc.S100,
|
|
1925
|
+
secondary:Pc.S300,disabled:Pc.S400,placeholder:Pc.S300,error:Ic.P400,
|
|
1926
|
+
inverse:Oc.black,semantic:{success:Ic.J400,warning:Ic.C400,error:Ic.P400,
|
|
1927
|
+
info:Ic.A400}},fill:{base:Pc.S900,medium:Pc.S800,dark:Pc.S100,surface:Oc.black,
|
|
1928
|
+
inverse:Pc.E100,hover:Pc.S700,disabled:Pc.S50,hilight:Ic.A50},semantic:{error:{
|
|
1929
|
+
bg:Ic.P800,border:Ic.P300},warning:{bg:Ic.C800,border:Ic.C300},info:{bg:Ic.A800,
|
|
1930
|
+
border:Ic.A300},success:{bg:Ic.J800,border:Ic.J50}},border:{light:Pc.S800,
|
|
1931
|
+
normal:Pc.S800,divider:Pc.S500,hover:Pc.S500,active:Ic.A500,disabled:Pc.S50,
|
|
1932
|
+
error:Ic.P500},shadow:Pc.E50,scrim:Pc.E50},typography:{fontFamily:Nc,
|
|
1933
|
+
fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{fontSize:"14px",
|
|
1934
|
+
fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",fontWeight:400,
|
|
1935
|
+
lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,lineHeight:1.25},
|
|
1936
|
+
heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},heading2:{
|
|
1937
|
+
fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{fontSize:"24px",
|
|
1938
|
+
fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",fontWeight:400,
|
|
1939
|
+
lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,lineHeight:1}},
|
|
1940
|
+
shadows:["none",`0px 2px 1px -1px ${Fc(Oc.black,.2)},0px 1px 1px 0px ${Fc(Oc.black,.14)},0px 1px 3px 0px ${Fc(Oc.black,.12)}`,`0px 3px 1px -2px ${Fc(Oc.black,.2)},0px 2px 2px 0px ${Fc(Oc.black,.14)},0px 1px 5px 0px ${Fc(Oc.black,.12)}`,`0px 3px 3px -2px ${Fc(Oc.black,.2)},0px 3px 4px 0px ${Fc(Oc.black,.14)},0px 1px 8px 0px ${Fc(Oc.black,.12)}`],
|
|
1941
|
+
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1942
|
+
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1943
|
+
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1944
|
+
complex:"450ms"}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,
|
|
1945
|
+
drawer:1200,modal:1300,snackbar:1400,tooltip:1500},components:{button:{primary:{
|
|
1946
|
+
backgroundFrom:Ic.A400,backgroundTo:Ic.A400,color:Oc.white,disabledColor:Ic.A50,
|
|
1947
|
+
activeBackgroundColor:Ic.A400,hoverColor:Ic.A500,borderColor:Ic.A500,
|
|
1948
|
+
activeBorderColor:Ic.A500,disabledBorderColor:Ic.A50,
|
|
1949
|
+
disabledBackgroundFrom:Ic.A50,disabledBackgroundTo:Ic.A50},secondary:{
|
|
1950
|
+
backgroundFrom:Pc.S500,backgroundTo:Pc.S500,color:Pc.S100,disabledColor:Pc.S800,
|
|
1951
|
+
activeBackgroundColor:Pc.S800,hoverColor:Pc.S800,borderColor:Pc.S800,
|
|
1952
|
+
activeBorderColor:Pc.S800,disabledBorderColor:Pc.S800,
|
|
1953
|
+
disabledBackgroundFrom:Pc.S800,disabledBackgroundTo:Pc.S800},danger:{
|
|
1954
|
+
backgroundFrom:Ic.P800,backgroundTo:Ic.P900,color:Oc.white,
|
|
1955
|
+
disabledColor:Ic.P100,activeBackgroundColor:Ic.P800,hoverColor:Ic.P900,
|
|
1956
|
+
borderColor:Ic.P900,activeBorderColor:Ic.P200,disabledBorderColor:Ic.P300,
|
|
1957
|
+
disabledBackgroundFrom:Ic.P100,disabledBackgroundTo:Ic.P100},link:{
|
|
1958
|
+
backgroundFrom:Oc.white,backgroundTo:Oc.white,color:Ic.A800,
|
|
1959
|
+
disabledColor:Ic.A100,activeBackgroundColor:Pc.S25,hoverColor:Pc.S50,
|
|
1960
|
+
borderColor:Oc.white,activeBorderColor:Pc.S25,disabledBorderColor:Oc.white,
|
|
1961
|
+
disabledBackgroundFrom:Oc.white,disabledBackgroundTo:Oc.white}}}}
|
|
1962
|
+
;var $c=Object.freeze({__proto__:null,dark:jc,hextoRGB:Fc,light:Bc})
|
|
1963
|
+
;const Uc=on(Vc)``,Yc=on(Lc)``,Wc=on(Ac)``,Gc=on(Rc)`
|
|
1862
1964
|
fill: ${({theme:e})=>e.colors.border.light};
|
|
1863
|
-
`,
|
|
1965
|
+
`,Kc=on(kc)`
|
|
1864
1966
|
padding: 8px;
|
|
1865
1967
|
z-index: 1000;
|
|
1866
|
-
border-radius:
|
|
1968
|
+
border-radius: 6px;
|
|
1867
1969
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
1868
1970
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
1869
|
-
box-shadow:
|
|
1971
|
+
box-shadow:
|
|
1972
|
+
${({theme:e})=>Fc(e.colors.shadow,.06)} 0px 2px 3px,
|
|
1973
|
+
${({theme:e})=>Fc(e.colors.shadow,.16)} 0px 4px 20px;
|
|
1870
1974
|
&[data-side='top'],
|
|
1871
1975
|
&[data-side='top'] {
|
|
1872
1976
|
animation-name: ${ua};
|
|
@@ -1886,7 +1990,7 @@ const{__scopeDropdownMenu:r,...a}=t,o=_c(r)
|
|
|
1886
1990
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
1887
1991
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
1888
1992
|
will-change: transform, opacity;
|
|
1889
|
-
`,
|
|
1993
|
+
`,qc=on(Tc)`
|
|
1890
1994
|
padding: 8px 12px;
|
|
1891
1995
|
border-radius: 4px;
|
|
1892
1996
|
display: flex;
|
|
@@ -1904,55 +2008,55 @@ const{__scopeDropdownMenu:r,...a}=t,o=_c(r)
|
|
|
1904
2008
|
&:hover {
|
|
1905
2009
|
background: ${({disabled:e,theme:t})=>e?t.colors.fill.disabled:t.colors.fill.hilight};
|
|
1906
2010
|
}
|
|
1907
|
-
`;function
|
|
2011
|
+
`;function Zc(t){const n=e.useRef({value:t,previous:t})
|
|
1908
2012
|
;return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,
|
|
1909
2013
|
n.current.value=t),n.current.previous)),[t])}
|
|
1910
|
-
const
|
|
2014
|
+
const Xc="Radio",[Qc,Jc]=dn(Xc),[es,ts]=Qc(Xc),ns=e.forwardRef(((t,n)=>{
|
|
1911
2015
|
const{__scopeRadio:r,name:a,checked:o=!1,required:i,disabled:l,value:c="on",onCheck:s,...u}=t,[d,h]=e.useState(null),p=fn(n,(e=>h(e))),f=e.useRef(!1),m=!d||Boolean(d.closest("form"))
|
|
1912
|
-
;return e.createElement(
|
|
2016
|
+
;return e.createElement(es,{scope:r,checked:o,disabled:l
|
|
1913
2017
|
},e.createElement(xn.button,un({type:"button",role:"radio","aria-checked":o,
|
|
1914
|
-
"data-state":
|
|
2018
|
+
"data-state":os(o),"data-disabled":l?"":void 0,disabled:l,value:c},u,{ref:p,
|
|
1915
2019
|
onClick:Cn(t.onClick,(e=>{
|
|
1916
2020
|
o||null==s||s(),m&&(f.current=e.isPropagationStopped(),
|
|
1917
|
-
f.current||e.stopPropagation())}))})),m&&e.createElement(
|
|
2021
|
+
f.current||e.stopPropagation())}))})),m&&e.createElement(as,{control:d,
|
|
1918
2022
|
bubbles:!f.current,name:a,value:c,checked:o,required:i,disabled:l,style:{
|
|
1919
|
-
transform:"translateX(-100%)"}}))})),
|
|
1920
|
-
const{__scopeRadio:r,forceMount:a,...o}=t,i=
|
|
2023
|
+
transform:"translateX(-100%)"}}))})),rs=e.forwardRef(((t,n)=>{
|
|
2024
|
+
const{__scopeRadio:r,forceMount:a,...o}=t,i=ts("RadioIndicator",r)
|
|
1921
2025
|
;return e.createElement(_n,{present:a||i.checked},e.createElement(xn.span,un({
|
|
1922
|
-
"data-state":
|
|
1923
|
-
})),
|
|
1924
|
-
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=
|
|
2026
|
+
"data-state":os(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:n})))
|
|
2027
|
+
})),as=t=>{
|
|
2028
|
+
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=Zc(r),c=fi(n)
|
|
1925
2029
|
;return e.useEffect((()=>{
|
|
1926
2030
|
const e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
1927
2031
|
;if(l!==r&&n){const t=new Event("click",{bubbles:a})
|
|
1928
2032
|
;n.call(e,r),e.dispatchEvent(t)}}),[l,r,a]),e.createElement("input",un({
|
|
1929
2033
|
type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{
|
|
1930
2034
|
...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))}
|
|
1931
|
-
;function
|
|
1932
|
-
const
|
|
1933
|
-
const{__scopeRadioGroup:r,name:a,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:s,dir:u,loop:d=!0,onValueChange:h,...p}=t,f=
|
|
1934
|
-
prop:i,defaultProp:o,onChange:h});return e.createElement(
|
|
2035
|
+
;function os(e){return e?"checked":"unchecked"}
|
|
2036
|
+
const is=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ls="RadioGroup",[cs,ss]=dn(ls,[$i,Jc]),us=$i(),ds=Jc(),[hs,ps]=cs(ls),fs=e.forwardRef(((t,n)=>{
|
|
2037
|
+
const{__scopeRadioGroup:r,name:a,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:s,dir:u,loop:d=!0,onValueChange:h,...p}=t,f=us(r),m=Gn(u),[v,g]=Mn({
|
|
2038
|
+
prop:i,defaultProp:o,onChange:h});return e.createElement(hs,{scope:r,name:a,
|
|
1935
2039
|
required:l,disabled:c,value:v,onValueChange:g},e.createElement(Xi,un({asChild:!0
|
|
1936
2040
|
},f,{orientation:s,dir:m,loop:d}),e.createElement(xn.div,un({role:"radiogroup",
|
|
1937
2041
|
"aria-required":l,"aria-orientation":s,"data-disabled":c?"":void 0,dir:m},p,{
|
|
1938
|
-
ref:n}))))})),
|
|
1939
|
-
const{__scopeRadioGroup:r,disabled:a,...o}=t,i=
|
|
1940
|
-
;return e.useEffect((()=>{const e=e=>{
|
|
2042
|
+
ref:n}))))})),ms=fs,vs=e.forwardRef(((t,n)=>{
|
|
2043
|
+
const{__scopeRadioGroup:r,disabled:a,...o}=t,i=ps("RadioGroupItem",r),l=i.disabled||a,c=us(r),s=ds(r),u=e.useRef(null),d=fn(n,u),h=i.value===o.value,p=e.useRef(!1)
|
|
2044
|
+
;return e.useEffect((()=>{const e=e=>{is.includes(e.key)&&(p.current=!0)
|
|
1941
2045
|
},t=()=>p.current=!1
|
|
1942
2046
|
;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),
|
|
1943
2047
|
()=>{
|
|
1944
2048
|
document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)
|
|
1945
2049
|
}}),[]),e.createElement(Qi,un({asChild:!0},c,{focusable:!l,active:h
|
|
1946
|
-
}),e.createElement(
|
|
2050
|
+
}),e.createElement(ns,un({disabled:l,required:i.required,checked:h},s,o,{
|
|
1947
2051
|
name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:Cn((e=>{
|
|
1948
2052
|
"Enter"===e.key&&e.preventDefault()})),onFocus:Cn(o.onFocus,(()=>{var e
|
|
1949
2053
|
;p.current&&(null===(e=u.current)||void 0===e||e.click())}))})))
|
|
1950
|
-
})),
|
|
1951
|
-
;return e.createElement(
|
|
2054
|
+
})),gs=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,...a}=t,o=ds(r)
|
|
2055
|
+
;return e.createElement(rs,un({},o,a,{ref:n}))})),ys=on.div``,bs=on(ms)`
|
|
1952
2056
|
display: flex;
|
|
1953
2057
|
gap: 8px;
|
|
1954
2058
|
width: 100%;
|
|
1955
|
-
`,
|
|
2059
|
+
`,ws=on.div`
|
|
1956
2060
|
width: 14px;
|
|
1957
2061
|
height: 14px;
|
|
1958
2062
|
border-radius: 50%;
|
|
@@ -1963,13 +2067,13 @@ name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:Cn((e=>{
|
|
|
1963
2067
|
display: grid;
|
|
1964
2068
|
place-content: center;
|
|
1965
2069
|
background-color: ${({theme:e})=>e.colors.common.accent};
|
|
1966
|
-
`,
|
|
2070
|
+
`,Cs=on(gs)`
|
|
1967
2071
|
display: block;
|
|
1968
2072
|
width: 6px;
|
|
1969
2073
|
height: 6px;
|
|
1970
2074
|
border-radius: 50%;
|
|
1971
2075
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
1972
|
-
`,
|
|
2076
|
+
`,zs=on(vs)`
|
|
1973
2077
|
padding: 0;
|
|
1974
2078
|
margin: 0;
|
|
1975
2079
|
outline: none;
|
|
@@ -1996,7 +2100,7 @@ name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:Cn((e=>{
|
|
|
1996
2100
|
box-shadow: 0 0 0 3px ${({theme:e})=>e.colors.border.hover}30;
|
|
1997
2101
|
}
|
|
1998
2102
|
}
|
|
1999
|
-
`,
|
|
2103
|
+
`,Ms=on.div`
|
|
2000
2104
|
display: flex;
|
|
2001
2105
|
border-radius: 4px;
|
|
2002
2106
|
flex: 1;
|
|
@@ -2024,21 +2128,21 @@ name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:Cn((e=>{
|
|
|
2024
2128
|
0px 0px 0px 1px;
|
|
2025
2129
|
border-color: ${({theme:e,$isErrored:t})=>t?e.colors.border.error:e.colors.border.active};
|
|
2026
2130
|
}
|
|
2027
|
-
`,
|
|
2131
|
+
`,xs=on.span`
|
|
2028
2132
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
2029
2133
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
2030
2134
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
2031
2135
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
2032
2136
|
white-space: nowrap;
|
|
2033
2137
|
overflow: hidden;
|
|
2034
|
-
`,
|
|
2138
|
+
`,Es=on.span`
|
|
2035
2139
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
2036
2140
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
2037
2141
|
line-height: ${({theme:e})=>e.typography.secondary.lineHeight};
|
|
2038
2142
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
2039
2143
|
white-space: normal;
|
|
2040
2144
|
margin: 4px 0;
|
|
2041
|
-
`,
|
|
2145
|
+
`,Ss=on.label`
|
|
2042
2146
|
padding: 12px 12px 12px 6px;
|
|
2043
2147
|
flex: 1;
|
|
2044
2148
|
display: flex;
|
|
@@ -2050,43 +2154,43 @@ name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:Cn((e=>{
|
|
|
2050
2154
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
2051
2155
|
white-space: nowrap;
|
|
2052
2156
|
overflow: hidden;
|
|
2053
|
-
`,
|
|
2157
|
+
`,_s=on.span`
|
|
2054
2158
|
color: ${({theme:e})=>e.colors.text.error};
|
|
2055
2159
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2056
2160
|
font-size: 12px;
|
|
2057
2161
|
font-weight: 400;
|
|
2058
2162
|
line-height: 20px;
|
|
2059
|
-
`,
|
|
2163
|
+
`,Hs=t=>e.createElement(_s,{"aria-live":"polite",role:"status",...t,
|
|
2060
2164
|
className:`input-helper ${t.className??""}`.trim()
|
|
2061
|
-
},t.children),
|
|
2165
|
+
},t.children),Ds="Checkbox",[Vs,Ls]=dn(Ds),[As,ks]=Vs(Ds),Ts=e.forwardRef(((t,n)=>{
|
|
2062
2166
|
const{__scopeCheckbox:r,name:a,checked:o,defaultChecked:i,required:l,disabled:c,value:s="on",onCheckedChange:u,...d}=t,[h,p]=e.useState(null),f=fn(n,(e=>p(e))),m=e.useRef(!1),v=!h||Boolean(h.closest("form")),[g=!1,y]=Mn({
|
|
2063
2167
|
prop:o,defaultProp:i,onChange:u}),b=e.useRef(g);return e.useEffect((()=>{
|
|
2064
2168
|
const e=null==h?void 0:h.form;if(e){const t=()=>y(b.current)
|
|
2065
2169
|
;return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}
|
|
2066
|
-
}),[h,y]),e.createElement(
|
|
2170
|
+
}),[h,y]),e.createElement(As,{scope:r,state:g,disabled:c
|
|
2067
2171
|
},e.createElement(xn.button,un({type:"button",role:"checkbox",
|
|
2068
|
-
"aria-checked":
|
|
2172
|
+
"aria-checked":Ps(g)?"mixed":g,"aria-required":l,"data-state":Is(g),
|
|
2069
2173
|
"data-disabled":c?"":void 0,disabled:c,value:s},d,{ref:f,
|
|
2070
2174
|
onKeyDown:Cn(t.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),
|
|
2071
2175
|
onClick:Cn(t.onClick,(e=>{
|
|
2072
|
-
y((e=>!!
|
|
2073
|
-
m.current||e.stopPropagation())}))})),v&&e.createElement(
|
|
2176
|
+
y((e=>!!Ps(e)||!e)),v&&(m.current=e.isPropagationStopped(),
|
|
2177
|
+
m.current||e.stopPropagation())}))})),v&&e.createElement(Rs,{control:h,
|
|
2074
2178
|
bubbles:!m.current,name:a,value:s,checked:g,required:l,disabled:c,style:{
|
|
2075
|
-
transform:"translateX(-100%)"}}))})),
|
|
2076
|
-
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=
|
|
2179
|
+
transform:"translateX(-100%)"}}))})),Rs=t=>{
|
|
2180
|
+
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=Zc(r),c=fi(n)
|
|
2077
2181
|
;return e.useEffect((()=>{
|
|
2078
2182
|
const e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
2079
2183
|
;if(l!==r&&n){const t=new Event("click",{bubbles:a})
|
|
2080
|
-
;e.indeterminate=
|
|
2184
|
+
;e.indeterminate=Ps(r),n.call(e,!Ps(r)&&r),e.dispatchEvent(t)}
|
|
2081
2185
|
}),[l,r,a]),e.createElement("input",un({type:"checkbox","aria-hidden":!0,
|
|
2082
|
-
defaultChecked:!
|
|
2083
|
-
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function
|
|
2084
|
-
return"indeterminate"===e}function
|
|
2085
|
-
return
|
|
2086
|
-
const
|
|
2087
|
-
const{__scopeCheckbox:r,forceMount:a,...o}=t,i=
|
|
2088
|
-
;return e.createElement(_n,{present:a||
|
|
2089
|
-
},e.createElement(xn.span,un({"data-state":
|
|
2186
|
+
defaultChecked:!Ps(r)&&r},o,{tabIndex:-1,ref:i,style:{...t.style,...c,
|
|
2187
|
+
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ps(e){
|
|
2188
|
+
return"indeterminate"===e}function Is(e){
|
|
2189
|
+
return Ps(e)?"indeterminate":e?"checked":"unchecked"}
|
|
2190
|
+
const Os=Ts,Ns=on(e.forwardRef(((t,n)=>{
|
|
2191
|
+
const{__scopeCheckbox:r,forceMount:a,...o}=t,i=ks("CheckboxIndicator",r)
|
|
2192
|
+
;return e.createElement(_n,{present:a||Ps(i.state)||!0===i.state
|
|
2193
|
+
},e.createElement(xn.span,un({"data-state":Is(i.state),
|
|
2090
2194
|
"data-disabled":i.disabled?"":void 0},o,{ref:n,style:{pointerEvents:"none",
|
|
2091
2195
|
...t.style}})))})))`
|
|
2092
2196
|
display: grid;
|
|
@@ -2101,10 +2205,10 @@ const{__scopeCheckbox:r,forceMount:a,...o}=t,i=Es("CheckboxIndicator",r)
|
|
|
2101
2205
|
display: none;
|
|
2102
2206
|
}
|
|
2103
2207
|
}
|
|
2104
|
-
`,
|
|
2208
|
+
`,Fs=on.div`
|
|
2105
2209
|
display: flex;
|
|
2106
2210
|
align-items: center;
|
|
2107
|
-
`,
|
|
2211
|
+
`,Bs=on(Os)`
|
|
2108
2212
|
margin: 0;
|
|
2109
2213
|
padding: 0;
|
|
2110
2214
|
width: 14px;
|
|
@@ -2133,41 +2237,41 @@ const{__scopeCheckbox:r,forceMount:a,...o}=t,i=Es("CheckboxIndicator",r)
|
|
|
2133
2237
|
box-shadow: 0 0 0 3px ${({theme:e})=>e.colors.border.hover}30;
|
|
2134
2238
|
}
|
|
2135
2239
|
}
|
|
2136
|
-
`,
|
|
2137
|
-
const l=qt();return e.createElement(
|
|
2240
|
+
`,js=({isRequired:t,isErrored:n,className:r,readOnly:a,label:o,...i})=>{
|
|
2241
|
+
const l=qt();return e.createElement(Fs,null,e.createElement(Bs,{
|
|
2138
2242
|
className:`CheckboxRoot ${r??""}`.trim(),required:t,"aria-invalid":n,
|
|
2139
2243
|
"aria-label":o||"Checkbox","aria-required":t,"aria-readonly":a,
|
|
2140
|
-
"aria-disabled":i.disabled,...i},e.createElement(
|
|
2244
|
+
"aria-disabled":i.disabled,...i},e.createElement(Ns,{
|
|
2141
2245
|
className:"CheckboxIndicator"},"indeterminate"===i.checked?e.createElement(Dr,{
|
|
2142
2246
|
className:"toggle-indeterminate",width:8,height:6,fill:l.colors.common.accent
|
|
2143
2247
|
}):e.createElement(xr,{className:"toggle-on",width:8,height:6,
|
|
2144
2248
|
fill:l.colors.common.accent}))),o&&e.createElement(Br,{
|
|
2145
2249
|
className:"CheckboxLabel",htmlFor:i.id},o,o&&t&&e.createElement(jr,null,"*")))
|
|
2146
|
-
}
|
|
2147
|
-
forceMount:void 0})
|
|
2148
|
-
const r=
|
|
2250
|
+
},$s="Dialog",[Us,Ys]=dn($s),[Ws,Gs]=Us($s),Ks="DialogPortal",[qs,Zs]=Us(Ks,{
|
|
2251
|
+
forceMount:void 0}),Xs="DialogOverlay",Qs=e.forwardRef(((t,n)=>{
|
|
2252
|
+
const r=Zs(Xs,t.__scopeDialog),{forceMount:a=r.forceMount,...o}=t,i=Gs(Xs,t.__scopeDialog)
|
|
2149
2253
|
;return i.modal?e.createElement(_n,{present:a||i.open
|
|
2150
|
-
},e.createElement(
|
|
2151
|
-
const{__scopeDialog:r,...a}=t,o=
|
|
2254
|
+
},e.createElement(Js,un({},o,{ref:n}))):null})),Js=e.forwardRef(((t,n)=>{
|
|
2255
|
+
const{__scopeDialog:r,...a}=t,o=Gs(Xs,r);return e.createElement(Nl,{as:mn,
|
|
2152
2256
|
allowPinchZoom:!0,shards:[o.contentRef]},e.createElement(xn.div,un({
|
|
2153
|
-
"data-state":
|
|
2154
|
-
})),
|
|
2155
|
-
const r=
|
|
2257
|
+
"data-state":du(o.open)},a,{ref:n,style:{pointerEvents:"auto",...a.style}})))
|
|
2258
|
+
})),eu="DialogContent",tu=e.forwardRef(((t,n)=>{
|
|
2259
|
+
const r=Zs(eu,t.__scopeDialog),{forceMount:a=r.forceMount,...o}=t,i=Gs(eu,t.__scopeDialog)
|
|
2156
2260
|
;return e.createElement(_n,{present:a||i.open
|
|
2157
|
-
},i.modal?e.createElement(
|
|
2158
|
-
})))})),
|
|
2159
|
-
const r=
|
|
2261
|
+
},i.modal?e.createElement(nu,un({},o,{ref:n})):e.createElement(ru,un({},o,{ref:n
|
|
2262
|
+
})))})),nu=e.forwardRef(((t,n)=>{
|
|
2263
|
+
const r=Gs(eu,t.__scopeDialog),a=e.useRef(null),o=fn(n,r.contentRef,a)
|
|
2160
2264
|
;return e.useEffect((()=>{const e=a.current;if(e)return ol(e)
|
|
2161
|
-
}),[]),e.createElement(
|
|
2265
|
+
}),[]),e.createElement(au,un({},t,{ref:o,trapFocus:r.open,
|
|
2162
2266
|
disableOutsidePointerEvents:!0,onCloseAutoFocus:Cn(t.onCloseAutoFocus,(e=>{var t
|
|
2163
2267
|
;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),
|
|
2164
2268
|
onPointerDownOutside:Cn(t.onPointerDownOutside,(e=>{
|
|
2165
2269
|
const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey
|
|
2166
2270
|
;(2===t.button||n)&&e.preventDefault()})),
|
|
2167
2271
|
onFocusOutside:Cn(t.onFocusOutside,(e=>e.preventDefault()))}))
|
|
2168
|
-
})),
|
|
2169
|
-
const r=
|
|
2170
|
-
;return e.createElement(
|
|
2272
|
+
})),ru=e.forwardRef(((t,n)=>{
|
|
2273
|
+
const r=Gs(eu,t.__scopeDialog),a=e.useRef(!1),o=e.useRef(!1)
|
|
2274
|
+
;return e.createElement(au,un({},t,{ref:n,trapFocus:!1,
|
|
2171
2275
|
disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,i
|
|
2172
2276
|
;(null===(n=t.onCloseAutoFocus)||void 0===n||n.call(t,e),
|
|
2173
2277
|
e.defaultPrevented)||(a.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),
|
|
@@ -2177,58 +2281,58 @@ e.defaultPrevented||(a.current=!0,
|
|
|
2177
2281
|
"pointerdown"===e.detail.originalEvent.type&&(o.current=!0));const l=e.target
|
|
2178
2282
|
;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(l))&&e.preventDefault(),
|
|
2179
2283
|
"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}}))
|
|
2180
|
-
})),
|
|
2181
|
-
const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=t,c=
|
|
2284
|
+
})),au=e.forwardRef(((t,n)=>{
|
|
2285
|
+
const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=t,c=Gs(eu,r),s=fn(n,e.useRef(null))
|
|
2182
2286
|
;return Ia(),e.createElement(e.Fragment,null,e.createElement(ja,{asChild:!0,
|
|
2183
2287
|
loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:i
|
|
2184
2288
|
},e.createElement(Va,un({role:"dialog",id:c.contentId,
|
|
2185
2289
|
"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,
|
|
2186
|
-
"data-state":
|
|
2187
|
-
})),
|
|
2188
|
-
const{__scopeDialog:r,...a}=t,o=
|
|
2189
|
-
id:o.titleId},a,{ref:n}))})),
|
|
2190
|
-
const{__scopeDialog:r,...a}=t,o=
|
|
2191
|
-
id:o.descriptionId},a,{ref:n}))})),
|
|
2192
|
-
const{__scopeDialog:r,...a}=t,o=
|
|
2290
|
+
"data-state":du(c.open)},l,{ref:s,onDismiss:()=>c.onOpenChange(!1)}))),!1)
|
|
2291
|
+
})),ou="DialogTitle",iu=e.forwardRef(((t,n)=>{
|
|
2292
|
+
const{__scopeDialog:r,...a}=t,o=Gs(ou,r);return e.createElement(xn.h2,un({
|
|
2293
|
+
id:o.titleId},a,{ref:n}))})),lu="DialogDescription",cu=e.forwardRef(((t,n)=>{
|
|
2294
|
+
const{__scopeDialog:r,...a}=t,o=Gs(lu,r);return e.createElement(xn.p,un({
|
|
2295
|
+
id:o.descriptionId},a,{ref:n}))})),su="DialogClose",uu=e.forwardRef(((t,n)=>{
|
|
2296
|
+
const{__scopeDialog:r,...a}=t,o=Gs(su,r);return e.createElement(xn.button,un({
|
|
2193
2297
|
type:"button"},a,{ref:n,onClick:Cn(t.onClick,(()=>o.onOpenChange(!1)))}))}))
|
|
2194
|
-
;function
|
|
2298
|
+
;function du(e){return e?"open":"closed"}const[hu,pu]=function(t,n){
|
|
2195
2299
|
const r=e.createContext(n);function a(t){
|
|
2196
2300
|
const{children:n,...a}=t,o=e.useMemo((()=>a),Object.values(a))
|
|
2197
2301
|
;return e.createElement(r.Provider,{value:o},n)}
|
|
2198
2302
|
return a.displayName=t+"Provider",[a,function(a){const o=e.useContext(r)
|
|
2199
2303
|
;if(o)return o;if(void 0!==n)return n
|
|
2200
2304
|
;throw new Error(`\`${a}\` must be used within \`${t}\``)}]
|
|
2201
|
-
}("DialogTitleWarning",{contentName:
|
|
2305
|
+
}("DialogTitleWarning",{contentName:eu,titleName:ou,docsSlug:"dialog"}),fu=t=>{
|
|
2202
2306
|
const{__scopeDialog:n,children:r,open:a,defaultOpen:o,onOpenChange:i,modal:l=!0}=t,c=e.useRef(null),s=e.useRef(null),[u=!1,d]=Mn({
|
|
2203
|
-
prop:a,defaultProp:o,onChange:i});return e.createElement(
|
|
2307
|
+
prop:a,defaultProp:o,onChange:i});return e.createElement(Ws,{scope:n,
|
|
2204
2308
|
triggerRef:c,contentRef:s,contentId:Ln(),titleId:Ln(),descriptionId:Ln(),open:u,
|
|
2205
2309
|
onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:l},r)
|
|
2206
|
-
},
|
|
2207
|
-
;return e.createElement(
|
|
2310
|
+
},mu=t=>{const{__scopeDialog:n,forceMount:r,children:a,container:o}=t,i=Gs(Ks,n)
|
|
2311
|
+
;return e.createElement(qs,{scope:n,forceMount:r
|
|
2208
2312
|
},e.Children.map(a,(t=>e.createElement(_n,{present:r||i.open
|
|
2209
2313
|
},e.createElement(Ri,{asChild:!0,container:o},t)))))
|
|
2210
|
-
},
|
|
2211
|
-
const{__scopeAlertDialog:r,...a}=t,o=
|
|
2212
|
-
ref:n}))})),
|
|
2213
|
-
const{__scopeAlertDialog:r,children:a,...o}=t,i=
|
|
2214
|
-
;return e.createElement(
|
|
2215
|
-
},e.createElement(
|
|
2314
|
+
},vu=Qs,gu=tu,yu=iu,bu=cu,wu=uu,[Cu,zu]=dn("AlertDialog",[Ys]),Mu=Ys(),xu=e.forwardRef(((t,n)=>{
|
|
2315
|
+
const{__scopeAlertDialog:r,...a}=t,o=Mu(r);return e.createElement(vu,un({},o,a,{
|
|
2316
|
+
ref:n}))})),Eu="AlertDialogContent",[Su,_u]=Cu(Eu),Hu=e.forwardRef(((t,n)=>{
|
|
2317
|
+
const{__scopeAlertDialog:r,children:a,...o}=t,i=Mu(r),l=fn(n,e.useRef(null)),c=e.useRef(null)
|
|
2318
|
+
;return e.createElement(hu,{contentName:Eu,titleName:Du,docsSlug:"alert-dialog"
|
|
2319
|
+
},e.createElement(Su,{scope:r,cancelRef:c},e.createElement(gu,un({
|
|
2216
2320
|
role:"alertdialog"},i,o,{ref:l,onOpenAutoFocus:Cn(o.onOpenAutoFocus,(e=>{var t
|
|
2217
2321
|
;e.preventDefault(),null===(t=c.current)||void 0===t||t.focus({preventScroll:!0
|
|
2218
2322
|
})})),onPointerDownOutside:e=>e.preventDefault(),
|
|
2219
2323
|
onInteractOutside:e=>e.preventDefault()}),e.createElement(gn,null,a),!1)))
|
|
2220
|
-
})),
|
|
2221
|
-
const{__scopeAlertDialog:r,...a}=t,o=
|
|
2222
|
-
ref:n}))})),
|
|
2223
|
-
;return e.createElement(
|
|
2224
|
-
const{__scopeAlertDialog:n,...r}=t,a=
|
|
2225
|
-
},
|
|
2226
|
-
const{__scopeAlertDialog:r,...a}=t,o=
|
|
2227
|
-
ref:n}))})),
|
|
2228
|
-
const{__scopeAlertDialog:r,...a}=t,{cancelRef:o}=
|
|
2229
|
-
;return e.createElement(
|
|
2230
|
-
const{__scopeAlertDialog:n,...r}=t,a=
|
|
2231
|
-
modal:!0}))}))``,
|
|
2324
|
+
})),Du="AlertDialogTitle",Vu=e.forwardRef(((t,n)=>{
|
|
2325
|
+
const{__scopeAlertDialog:r,...a}=t,o=Mu(r);return e.createElement(yu,un({},o,a,{
|
|
2326
|
+
ref:n}))})),Lu=e.forwardRef(((t,n)=>{const{__scopeAlertDialog:r,...a}=t,o=Mu(r)
|
|
2327
|
+
;return e.createElement(bu,un({},o,a,{ref:n}))})),Au=t=>{
|
|
2328
|
+
const{__scopeAlertDialog:n,...r}=t,a=Mu(n);return e.createElement(mu,un({},a,r))
|
|
2329
|
+
},ku=xu,Tu=Hu,Ru=e.forwardRef(((t,n)=>{
|
|
2330
|
+
const{__scopeAlertDialog:r,...a}=t,o=Mu(r);return e.createElement(wu,un({},o,a,{
|
|
2331
|
+
ref:n}))})),Pu=e.forwardRef(((t,n)=>{
|
|
2332
|
+
const{__scopeAlertDialog:r,...a}=t,{cancelRef:o}=_u("AlertDialogCancel",r),i=Mu(r),l=fn(n,o)
|
|
2333
|
+
;return e.createElement(wu,un({},i,a,{ref:l}))})),Iu=Vu,Ou=Lu,Nu=on((t=>{
|
|
2334
|
+
const{__scopeAlertDialog:n,...r}=t,a=Mu(n);return e.createElement(fu,un({},a,r,{
|
|
2335
|
+
modal:!0}))}))``,Fu=on(Au)``,Bu=on(Pu)``,ju=on(Ru)``,$u=on(ku)`
|
|
2232
2336
|
background-color: ${({theme:e})=>e.colors.common.black}40;
|
|
2233
2337
|
position: fixed;
|
|
2234
2338
|
inset: 0;
|
|
@@ -2241,7 +2345,7 @@ modal:!0}))}))``,Au=on(xu)``,ku=on(Hu)``,Tu=on(_u)``,Ru=on(Eu)`
|
|
|
2241
2345
|
&[data-state='closed'] {
|
|
2242
2346
|
animation-name: ${Qr};
|
|
2243
2347
|
}
|
|
2244
|
-
`,
|
|
2348
|
+
`,Uu=on(Tu)`
|
|
2245
2349
|
background: white;
|
|
2246
2350
|
box-shadow: 0 2px 18px 0 rgba(18, 52, 77, 0.2);
|
|
2247
2351
|
outline: none;
|
|
@@ -2266,7 +2370,7 @@ modal:!0}))}))``,Au=on(xu)``,ku=on(Hu)``,Tu=on(_u)``,Ru=on(Eu)`
|
|
|
2266
2370
|
&[data-state='closed'] {
|
|
2267
2371
|
animation-name: ${na};
|
|
2268
2372
|
}
|
|
2269
|
-
`,
|
|
2373
|
+
`,Yu=on(Iu)`
|
|
2270
2374
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
2271
2375
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2272
2376
|
font-size: ${({theme:e})=>e.typography.heading4.fontSize};
|
|
@@ -2275,7 +2379,7 @@ modal:!0}))}))``,Au=on(xu)``,ku=on(Hu)``,Tu=on(_u)``,Ru=on(Eu)`
|
|
|
2275
2379
|
margin: 0;
|
|
2276
2380
|
padding: 32px 32px
|
|
2277
2381
|
${({$hasdescription:e})=>e?"0px":"16px"} 32px;
|
|
2278
|
-
`,
|
|
2382
|
+
`,Wu=on(Ou)`
|
|
2279
2383
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2280
2384
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
2281
2385
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
@@ -2283,7 +2387,7 @@ modal:!0}))}))``,Au=on(xu)``,ku=on(Hu)``,Tu=on(_u)``,Ru=on(Eu)`
|
|
|
2283
2387
|
letter-spacing: 0px;
|
|
2284
2388
|
text-align: left;
|
|
2285
2389
|
padding: 0 32px 0px 32px;
|
|
2286
|
-
`,
|
|
2390
|
+
`,Gu=on.div`
|
|
2287
2391
|
border-top: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2288
2392
|
border-bottom-right-radius: 8px;
|
|
2289
2393
|
border-bottom-left-radius: 8px;
|
|
@@ -2292,9 +2396,9 @@ modal:!0}))}))``,Au=on(xu)``,ku=on(Hu)``,Tu=on(_u)``,Ru=on(Eu)`
|
|
|
2292
2396
|
padding: 16px;
|
|
2293
2397
|
gap: 12px;
|
|
2294
2398
|
justify-content: flex-end;
|
|
2295
|
-
`,
|
|
2399
|
+
`,Ku={right:{x:"0",right:"0",top:"0"},left:{x:"0",left:"0",top:"0"}},qu={
|
|
2296
2400
|
small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
2297
|
-
},
|
|
2401
|
+
},Zu=cn`
|
|
2298
2402
|
from {
|
|
2299
2403
|
opacity: 1;
|
|
2300
2404
|
transform: translate(0px, 0px);
|
|
@@ -2303,7 +2407,7 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
2303
2407
|
opacity: 0;
|
|
2304
2408
|
transform: translate(100%, 0px);
|
|
2305
2409
|
}
|
|
2306
|
-
|
|
2410
|
+
`,Xu=cn`
|
|
2307
2411
|
from {
|
|
2308
2412
|
opacity: 0;
|
|
2309
2413
|
transform: translate(100%, 0px);
|
|
@@ -2312,7 +2416,7 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
2312
2416
|
opacity: 1;
|
|
2313
2417
|
transform: translate(0px, 0px);
|
|
2314
2418
|
}
|
|
2315
|
-
`,
|
|
2419
|
+
`,Qu=on(vu)`
|
|
2316
2420
|
background-color: ${({theme:e})=>e.colors.common.black}40;
|
|
2317
2421
|
position: fixed;
|
|
2318
2422
|
inset: 0;
|
|
@@ -2325,11 +2429,11 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
2325
2429
|
&[data-state='closed'] {
|
|
2326
2430
|
animation-name: ${Qr};
|
|
2327
2431
|
}
|
|
2328
|
-
`,
|
|
2432
|
+
`,Ju=on(gu)`
|
|
2329
2433
|
background-color: ${({theme:e})=>e.colors.fill.surface};
|
|
2330
2434
|
box-shadow: 0 2px 18px 0 rgba(18, 52, 77, 0.2);
|
|
2331
2435
|
outline: none;
|
|
2332
|
-
max-width: ${({size:e})=>
|
|
2436
|
+
max-width: ${({size:e})=>qu[e]};
|
|
2333
2437
|
height: ${({isFullHeight:e})=>e?"100vh":"unset"};
|
|
2334
2438
|
position: fixed;
|
|
2335
2439
|
right: 0;
|
|
@@ -2337,19 +2441,19 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
2337
2441
|
z-index: 120;
|
|
2338
2442
|
display: flex;
|
|
2339
2443
|
flex-direction: column;
|
|
2340
|
-
top: ${({placement:e})=>
|
|
2341
|
-
bottom: ${({placement:e})=>
|
|
2342
|
-
left: ${({placement:e})=>
|
|
2343
|
-
right: ${({placement:e})=>
|
|
2444
|
+
top: ${({placement:e})=>Ku[e].top};
|
|
2445
|
+
bottom: ${({placement:e})=>Ku[e].bottom};
|
|
2446
|
+
left: ${({placement:e})=>Ku[e].left};
|
|
2447
|
+
right: ${({placement:e})=>Ku[e].right};
|
|
2344
2448
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
2345
2449
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
2346
2450
|
&[data-state='open'] {
|
|
2347
|
-
animation-name: ${
|
|
2451
|
+
animation-name: ${Xu};
|
|
2348
2452
|
}
|
|
2349
2453
|
&[data-state='closed'] {
|
|
2350
|
-
animation-name: ${
|
|
2454
|
+
animation-name: ${Zu};
|
|
2351
2455
|
}
|
|
2352
|
-
`,
|
|
2456
|
+
`,ed=on.button`
|
|
2353
2457
|
display: grid;
|
|
2354
2458
|
place-content: center;
|
|
2355
2459
|
position: absolute;
|
|
@@ -2362,21 +2466,21 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
2362
2466
|
left: -24px;
|
|
2363
2467
|
top: 0px;
|
|
2364
2468
|
cursor: pointer;
|
|
2365
|
-
`,
|
|
2469
|
+
`,td=on(wu)``,nd=on(fu)``,rd=on(mu)``;function ad(e,[t,n]){
|
|
2366
2470
|
return Math.min(n,Math.max(t,e))}
|
|
2367
|
-
const
|
|
2471
|
+
const od=e.forwardRef(((t,n)=>e.createElement(xn.span,un({},t,{ref:n,style:{
|
|
2368
2472
|
position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,
|
|
2369
2473
|
overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",
|
|
2370
2474
|
...t.style}
|
|
2371
|
-
})))),
|
|
2372
|
-
const{__scopeSelect:r,disabled:a=!1,...o}=t,i=
|
|
2373
|
-
const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=
|
|
2475
|
+
})))),id=od,ld=[" ","Enter","ArrowUp","ArrowDown"],cd=[" ","Enter"],sd="Select",[ud,dd,hd]=wn(sd),[pd,fd]=dn(sd,[hd,gi]),md=gi(),[vd,gd]=pd(sd),[yd,bd]=pd(sd),wd=e.forwardRef(((t,n)=>{
|
|
2476
|
+
const{__scopeSelect:r,disabled:a=!1,...o}=t,i=md(r),l=gd("SelectTrigger",r),c=l.disabled||a,s=fn(n,l.onTriggerChange),u=dd(r),[d,h,p]=Jd((e=>{
|
|
2477
|
+
const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=eh(t,e,n)
|
|
2374
2478
|
;void 0!==r&&l.onValueChange(r.value)})),f=()=>{c||(l.onOpenChange(!0),p())}
|
|
2375
2479
|
;return e.createElement(Ai,un({asChild:!0},i),e.createElement(xn.button,un({
|
|
2376
2480
|
type:"button",role:"combobox","aria-controls":l.contentId,
|
|
2377
2481
|
"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",
|
|
2378
2482
|
dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,
|
|
2379
|
-
"data-disabled":c?"":void 0,"data-placeholder"
|
|
2483
|
+
"data-disabled":c?"":void 0,"data-placeholder":Xd(l.value)?"":void 0},o,{ref:s,
|
|
2380
2484
|
onClick:Cn(o.onClick,(e=>{e.currentTarget.focus()})),
|
|
2381
2485
|
onPointerDown:Cn(o.onPointerDown,(e=>{const t=e.target
|
|
2382
2486
|
;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),
|
|
@@ -2384,22 +2488,22 @@ onPointerDown:Cn(o.onPointerDown,(e=>{const t=e.target
|
|
|
2384
2488
|
x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),
|
|
2385
2489
|
onKeyDown:Cn(o.onKeyDown,(e=>{const t=""!==d.current
|
|
2386
2490
|
;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),
|
|
2387
|
-
t&&" "===e.key||
|
|
2388
|
-
})),
|
|
2389
|
-
const{__scopeSelect:r,className:a,style:o,children:i,placeholder:l="",...c}=t,s=
|
|
2491
|
+
t&&" "===e.key||ld.includes(e.key)&&(f(),e.preventDefault())}))})))
|
|
2492
|
+
})),Cd=e.forwardRef(((t,n)=>{
|
|
2493
|
+
const{__scopeSelect:r,className:a,style:o,children:i,placeholder:l="",...c}=t,s=gd("SelectValue",r),{onValueNodeHasChildrenChange:u}=s,d=void 0!==i,h=fn(n,s.onValueNodeChange)
|
|
2390
2494
|
;return Sn((()=>{u(d)}),[u,d]),e.createElement(xn.span,un({},c,{ref:h,style:{
|
|
2391
|
-
pointerEvents:"none"}})
|
|
2392
|
-
})),
|
|
2495
|
+
pointerEvents:"none"}}),Xd(s.value)?e.createElement(e.Fragment,null,l):i)
|
|
2496
|
+
})),zd=e.forwardRef(((t,n)=>{const{__scopeSelect:r,children:a,...o}=t
|
|
2393
2497
|
;return e.createElement(xn.span,un({"aria-hidden":!0},o,{ref:n}),a||"▼")
|
|
2394
|
-
})),
|
|
2395
|
-
const a=
|
|
2498
|
+
})),Md="SelectContent",xd=e.forwardRef(((n,r)=>{
|
|
2499
|
+
const a=gd(Md,n.__scopeSelect),[o,i]=e.useState();if(Sn((()=>{
|
|
2396
2500
|
i(new DocumentFragment)}),[]),!a.open){const r=o
|
|
2397
|
-
;return r?t.createPortal(e.createElement(
|
|
2398
|
-
},e.createElement(
|
|
2501
|
+
;return r?t.createPortal(e.createElement(Sd,{scope:n.__scopeSelect
|
|
2502
|
+
},e.createElement(ud.Slot,{scope:n.__scopeSelect
|
|
2399
2503
|
},e.createElement("div",null,n.children))),r):null}
|
|
2400
|
-
return e.createElement(
|
|
2401
|
-
})),
|
|
2402
|
-
const{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:c,sideOffset:s,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:m,hideWhenDetached:v,avoidCollisions:g,...y}=t,b=
|
|
2504
|
+
return e.createElement(Hd,un({},n,{ref:r}))
|
|
2505
|
+
})),Ed=10,[Sd,_d]=pd(Md),Hd=e.forwardRef(((t,n)=>{
|
|
2506
|
+
const{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:c,sideOffset:s,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:m,hideWhenDetached:v,avoidCollisions:g,...y}=t,b=gd(Md,r),[w,C]=e.useState(null),[z,M]=e.useState(null),x=fn(n,(e=>C(e))),[E,S]=e.useState(null),[_,H]=e.useState(null),D=dd(r),[V,L]=e.useState(!1),A=e.useRef(!1)
|
|
2403
2507
|
;e.useEffect((()=>{if(w)return ol(w)}),[w]),Ia();const k=e.useCallback((e=>{
|
|
2404
2508
|
const[t,...n]=D().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement
|
|
2405
2509
|
;for(const n of e){if(n===a)return;if(null==n||n.scrollIntoView({block:"nearest"
|
|
@@ -2422,16 +2526,16 @@ document.removeEventListener("pointerup",n,{capture:!0})}}
|
|
|
2422
2526
|
;return window.addEventListener("blur",e),
|
|
2423
2527
|
window.addEventListener("resize",e),()=>{
|
|
2424
2528
|
window.removeEventListener("blur",e),window.removeEventListener("resize",e)}
|
|
2425
|
-
}),[R]);const[I,O]=
|
|
2426
|
-
const t=D().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=
|
|
2529
|
+
}),[R]);const[I,O]=Jd((e=>{
|
|
2530
|
+
const t=D().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=eh(t,e,n)
|
|
2427
2531
|
;r&&setTimeout((()=>r.ref.current.focus()))})),N=e.useCallback(((e,t,n)=>{
|
|
2428
2532
|
const r=!A.current&&!n
|
|
2429
2533
|
;(void 0!==b.value&&b.value===t||r)&&(S(e),r&&(A.current=!0))
|
|
2430
2534
|
}),[b.value]),F=e.useCallback((()=>null==w?void 0:w.focus()),[w]),B=e.useCallback(((e,t,n)=>{
|
|
2431
2535
|
const r=!A.current&&!n;(void 0!==b.value&&b.value===t||r)&&H(e)
|
|
2432
|
-
}),[b.value]),j="popper"===a?
|
|
2536
|
+
}),[b.value]),j="popper"===a?Vd:Dd,$=j===Vd?{side:c,sideOffset:s,align:u,
|
|
2433
2537
|
alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:m,
|
|
2434
|
-
hideWhenDetached:v,avoidCollisions:g}:{};return e.createElement(
|
|
2538
|
+
hideWhenDetached:v,avoidCollisions:g}:{};return e.createElement(Sd,{scope:r,
|
|
2435
2539
|
content:w,viewport:z,onViewportChange:M,itemRefCallback:N,selectedItem:E,
|
|
2436
2540
|
onItemLeave:F,itemTextRefCallback:B,focusSelectedItem:T,selectedItemText:_,
|
|
2437
2541
|
position:a,isPositioned:V,searchRef:I},e.createElement(Nl,{as:mn,
|
|
@@ -2452,32 +2556,32 @@ let t=D().filter((e=>!e.disabled)).map((e=>e.ref.current))
|
|
|
2452
2556
|
;if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),
|
|
2453
2557
|
["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n)
|
|
2454
2558
|
;t=t.slice(r+1)}setTimeout((()=>k(t))),e.preventDefault()}}))}))))))
|
|
2455
|
-
})),
|
|
2456
|
-
const{__scopeSelect:r,onPlaced:a,...o}=t,i=
|
|
2559
|
+
})),Dd=e.forwardRef(((t,n)=>{
|
|
2560
|
+
const{__scopeSelect:r,onPlaced:a,...o}=t,i=gd(Md,r),l=_d(Md,r),[c,s]=e.useState(null),[u,d]=e.useState(null),h=fn(n,(e=>d(e))),p=dd(r),f=e.useRef(!1),m=e.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=l,w=e.useCallback((()=>{
|
|
2457
2561
|
if(i.trigger&&i.valueNode&&c&&u&&v&&g&&y){
|
|
2458
2562
|
const e=i.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=y.getBoundingClientRect()
|
|
2459
2563
|
;if("rtl"!==i.dir){
|
|
2460
|
-
const a=r.left-t.left,o=n.left-a,i=e.left-o,l=e.width+i,s=Math.max(l,t.width),u=window.innerWidth-
|
|
2564
|
+
const a=r.left-t.left,o=n.left-a,i=e.left-o,l=e.width+i,s=Math.max(l,t.width),u=window.innerWidth-Ed,d=ad(o,[Ed,u-s])
|
|
2461
2565
|
;c.style.minWidth=l+"px",c.style.left=d+"px"}else{
|
|
2462
|
-
const a=t.right-r.right,o=window.innerWidth-n.right-a,i=window.innerWidth-e.right-o,l=e.width+i,s=Math.max(l,t.width),u=window.innerWidth-
|
|
2566
|
+
const a=t.right-r.right,o=window.innerWidth-n.right-a,i=window.innerWidth-e.right-o,l=e.width+i,s=Math.max(l,t.width),u=window.innerWidth-Ed,d=ad(o,[Ed,u-s])
|
|
2463
2567
|
;c.style.minWidth=l+"px",c.style.right=d+"px"}
|
|
2464
|
-
const o=p(),l=window.innerHeight-2*
|
|
2568
|
+
const o=p(),l=window.innerHeight-2*Ed,s=v.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+m+s+parseInt(d.paddingBottom,10)+b,C=Math.min(5*g.offsetHeight,w),z=window.getComputedStyle(v),M=parseInt(z.paddingTop,10),x=parseInt(z.paddingBottom,10),E=e.top+e.height/2-Ed,S=l-E,_=g.offsetHeight/2,H=h+m+(g.offsetTop+_),D=w-H
|
|
2465
2569
|
;if(H<=E){const e=g===o[o.length-1].ref.current;c.style.bottom="0px"
|
|
2466
2570
|
;const t=u.clientHeight-v.offsetTop-v.offsetHeight,n=H+Math.max(S,_+(e?x:0)+t+b)
|
|
2467
2571
|
;c.style.height=n+"px"}else{const e=g===o[0].ref.current;c.style.top="0px"
|
|
2468
2572
|
;const t=Math.max(E,h+v.offsetTop+(e?M:0)+_)+D
|
|
2469
2573
|
;c.style.height=t+"px",v.scrollTop=H-E+v.offsetTop}
|
|
2470
|
-
c.style.margin=`${
|
|
2574
|
+
c.style.margin=`${Ed}px 0`,c.style.minHeight=C+"px",
|
|
2471
2575
|
c.style.maxHeight=l+"px",null==a||a(),requestAnimationFrame((()=>f.current=!0))}
|
|
2472
2576
|
}),[p,i.trigger,i.valueNode,c,u,v,g,y,i.dir,a]);Sn((()=>w()),[w])
|
|
2473
2577
|
;const[C,z]=e.useState();Sn((()=>{u&&z(window.getComputedStyle(u).zIndex)}),[u])
|
|
2474
2578
|
;const M=e.useCallback((e=>{e&&!0===m.current&&(w(),null==b||b(),m.current=!1)
|
|
2475
|
-
}),[w,b]);return e.createElement(
|
|
2579
|
+
}),[w,b]);return e.createElement(Ld,{scope:r,contentWrapper:c,
|
|
2476
2580
|
shouldExpandOnScrollRef:f,onScrollButtonChange:M},e.createElement("div",{ref:s,
|
|
2477
2581
|
style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}
|
|
2478
2582
|
},e.createElement(xn.div,un({},o,{ref:h,style:{boxSizing:"border-box",
|
|
2479
|
-
maxHeight:"100%",...o.style}}))))})),
|
|
2480
|
-
const{__scopeSelect:r,align:a="start",collisionPadding:o=
|
|
2583
|
+
maxHeight:"100%",...o.style}}))))})),Vd=e.forwardRef(((t,n)=>{
|
|
2584
|
+
const{__scopeSelect:r,align:a="start",collisionPadding:o=Ed,...i}=t,l=md(r)
|
|
2481
2585
|
;return e.createElement(ki,un({},l,i,{ref:n,align:a,collisionPadding:o,style:{
|
|
2482
2586
|
boxSizing:"border-box",...i.style,
|
|
2483
2587
|
"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)",
|
|
@@ -2485,35 +2589,35 @@ boxSizing:"border-box",...i.style,
|
|
|
2485
2589
|
"--radix-select-content-available-height":"var(--radix-popper-available-height)",
|
|
2486
2590
|
"--radix-select-trigger-width":"var(--radix-popper-anchor-width)",
|
|
2487
2591
|
"--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))
|
|
2488
|
-
})),[
|
|
2489
|
-
const{__scopeSelect:r,...a}=t,o=
|
|
2592
|
+
})),[Ld,Ad]=pd(Md,{}),kd="SelectViewport",Td=e.forwardRef(((t,n)=>{
|
|
2593
|
+
const{__scopeSelect:r,...a}=t,o=_d(kd,r),i=Ad(kd,r),l=fn(n,o.onViewportChange),c=e.useRef(0)
|
|
2490
2594
|
;return e.createElement(e.Fragment,null,e.createElement("style",{
|
|
2491
2595
|
dangerouslySetInnerHTML:{
|
|
2492
2596
|
__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
2493
|
-
}}),e.createElement(
|
|
2597
|
+
}}),e.createElement(ud.Slot,{scope:r},e.createElement(xn.div,un({
|
|
2494
2598
|
"data-radix-select-viewport":"",role:"presentation"},a,{ref:l,style:{
|
|
2495
2599
|
position:"relative",flex:1,overflow:"auto",...a.style},
|
|
2496
2600
|
onScroll:Cn(a.onScroll,(e=>{
|
|
2497
2601
|
const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i
|
|
2498
2602
|
;if(null!=r&&r.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){
|
|
2499
|
-
const r=window.innerHeight-2*
|
|
2603
|
+
const r=window.innerHeight-2*Ed,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o)
|
|
2500
2604
|
;if(i<r){const a=i+e,o=Math.min(r,a),l=a-o
|
|
2501
2605
|
;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,
|
|
2502
2606
|
n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))}))))
|
|
2503
|
-
})),[
|
|
2504
|
-
const{__scopeSelect:r,...a}=t,o=Ln();return e.createElement(
|
|
2607
|
+
})),[Rd,Pd]=pd("SelectGroup"),Id=e.forwardRef(((t,n)=>{
|
|
2608
|
+
const{__scopeSelect:r,...a}=t,o=Ln();return e.createElement(Rd,{scope:r,id:o
|
|
2505
2609
|
},e.createElement(xn.div,un({role:"group","aria-labelledby":o},a,{ref:n})))
|
|
2506
|
-
})),
|
|
2610
|
+
})),Od=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...a}=t,o=Pd("SelectLabel",r)
|
|
2507
2611
|
;return e.createElement(xn.div,un({id:o.id},a,{ref:n}))
|
|
2508
|
-
})),
|
|
2509
|
-
const{__scopeSelect:r,value:a,disabled:o=!1,textValue:i,...l}=t,c=
|
|
2612
|
+
})),Nd="SelectItem",[Fd,Bd]=pd(Nd),jd=e.forwardRef(((t,n)=>{
|
|
2613
|
+
const{__scopeSelect:r,value:a,disabled:o=!1,textValue:i,...l}=t,c=gd(Nd,r),s=_d(Nd,r),u=c.value===a,[d,h]=e.useState(null!=i?i:""),[p,f]=e.useState(!1),m=fn(n,(e=>{
|
|
2510
2614
|
var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,a,o)
|
|
2511
2615
|
})),v=Ln(),g=()=>{o||(c.onValueChange(a),c.onOpenChange(!1))}
|
|
2512
2616
|
;if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.")
|
|
2513
|
-
;return e.createElement(
|
|
2617
|
+
;return e.createElement(Fd,{scope:r,value:a,disabled:o,textId:v,isSelected:u,
|
|
2514
2618
|
onItemTextChange:e.useCallback((e=>{h((t=>{var n
|
|
2515
2619
|
;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))
|
|
2516
|
-
}),[])},e.createElement(
|
|
2620
|
+
}),[])},e.createElement(ud.ItemSlot,{scope:r,value:a,disabled:o,textValue:d
|
|
2517
2621
|
},e.createElement(xn.div,un({role:"option","aria-labelledby":v,
|
|
2518
2622
|
"data-highlighted":p?"":void 0,"aria-selected":u&&p,
|
|
2519
2623
|
"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,
|
|
@@ -2524,10 +2628,10 @@ onPointerUp:Cn(l.onPointerUp,g),onPointerMove:Cn(l.onPointerMove,(e=>{var t
|
|
|
2524
2628
|
preventScroll:!0})})),onPointerLeave:Cn(l.onPointerLeave,(e=>{var t
|
|
2525
2629
|
;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))
|
|
2526
2630
|
})),onKeyDown:Cn(l.onKeyDown,(e=>{var t
|
|
2527
|
-
;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(
|
|
2631
|
+
;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(cd.includes(e.key)&&g(),
|
|
2528
2632
|
" "===e.key&&e.preventDefault())}))}))))
|
|
2529
|
-
}))
|
|
2530
|
-
const{__scopeSelect:a,className:o,style:i,...l}=n,c=
|
|
2633
|
+
})),$d="SelectItemText",Ud=e.forwardRef(((n,r)=>{
|
|
2634
|
+
const{__scopeSelect:a,className:o,style:i,...l}=n,c=gd($d,a),s=_d($d,a),u=Bd($d,a),d=bd($d,a),[h,p]=e.useState(null),f=fn(r,(e=>p(e)),u.onItemTextChange,(e=>{
|
|
2531
2635
|
var t
|
|
2532
2636
|
;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,u.value,u.disabled)
|
|
2533
2637
|
})),m=null==h?void 0:h.textContent,v=e.useMemo((()=>e.createElement("option",{
|
|
@@ -2537,27 +2641,27 @@ key:u.value,value:u.value,disabled:u.disabled
|
|
|
2537
2641
|
()=>y(v))),[g,y,v]),e.createElement(e.Fragment,null,e.createElement(xn.span,un({
|
|
2538
2642
|
id:u.textId},l,{ref:f
|
|
2539
2643
|
})),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(l.children,c.valueNode):null)
|
|
2540
|
-
})),
|
|
2541
|
-
;return
|
|
2644
|
+
})),Yd=e.forwardRef(((t,n)=>{const{__scopeSelect:r,...a}=t
|
|
2645
|
+
;return Bd("SelectItemIndicator",r).isSelected?e.createElement(xn.span,un({
|
|
2542
2646
|
"aria-hidden":!0},a,{ref:n})):null
|
|
2543
|
-
})),
|
|
2544
|
-
const r=
|
|
2647
|
+
})),Wd="SelectScrollUpButton",Gd=e.forwardRef(((t,n)=>{
|
|
2648
|
+
const r=_d(Wd,t.__scopeSelect),a=Ad(Wd,t.__scopeSelect),[o,i]=e.useState(!1),l=fn(n,a.onScrollButtonChange)
|
|
2545
2649
|
;return Sn((()=>{if(r.viewport&&r.isPositioned){const e=r.viewport;function t(){
|
|
2546
2650
|
const t=e.scrollTop>0;i(t)}
|
|
2547
2651
|
return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}
|
|
2548
|
-
}),[r.viewport,r.isPositioned]),o?e.createElement(
|
|
2652
|
+
}),[r.viewport,r.isPositioned]),o?e.createElement(Zd,un({},t,{ref:l,
|
|
2549
2653
|
onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r
|
|
2550
2654
|
;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null
|
|
2551
|
-
})),
|
|
2552
|
-
const r=
|
|
2655
|
+
})),Kd="SelectScrollDownButton",qd=e.forwardRef(((t,n)=>{
|
|
2656
|
+
const r=_d(Kd,t.__scopeSelect),a=Ad(Kd,t.__scopeSelect),[o,i]=e.useState(!1),l=fn(n,a.onScrollButtonChange)
|
|
2553
2657
|
;return Sn((()=>{if(r.viewport&&r.isPositioned){const e=r.viewport;function t(){
|
|
2554
2658
|
const t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;i(n)}
|
|
2555
2659
|
return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}
|
|
2556
|
-
}),[r.viewport,r.isPositioned]),o?e.createElement(
|
|
2660
|
+
}),[r.viewport,r.isPositioned]),o?e.createElement(Zd,un({},t,{ref:l,
|
|
2557
2661
|
onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r
|
|
2558
2662
|
;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null
|
|
2559
|
-
})),
|
|
2560
|
-
const{__scopeSelect:r,onAutoScroll:a,...o}=t,i=
|
|
2663
|
+
})),Zd=e.forwardRef(((t,n)=>{
|
|
2664
|
+
const{__scopeSelect:r,onAutoScroll:a,...o}=t,i=_d("SelectScrollButton",r),l=e.useRef(null),c=dd(r),s=e.useCallback((()=>{
|
|
2561
2665
|
null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[])
|
|
2562
2666
|
;return e.useEffect((()=>()=>s()),[s]),Sn((()=>{var e
|
|
2563
2667
|
;const t=c().find((e=>e.ref.current===document.activeElement))
|
|
@@ -2568,145 +2672,42 @@ null===l.current&&(l.current=window.setInterval(a,50))})),
|
|
|
2568
2672
|
onPointerMove:Cn(o.onPointerMove,(()=>{var e
|
|
2569
2673
|
;null===(e=i.onItemLeave)||void 0===e||e.call(i),
|
|
2570
2674
|
null===l.current&&(l.current=window.setInterval(a,50))})),
|
|
2571
|
-
onPointerLeave:Cn(o.onPointerLeave,(()=>{s()}))}))}));function
|
|
2572
|
-
return""===e||void 0===e}const
|
|
2573
|
-
const{value:r,...a}=t,o=e.useRef(null),i=fn(n,o),l=
|
|
2675
|
+
onPointerLeave:Cn(o.onPointerLeave,(()=>{s()}))}))}));function Xd(e){
|
|
2676
|
+
return""===e||void 0===e}const Qd=e.forwardRef(((t,n)=>{
|
|
2677
|
+
const{value:r,...a}=t,o=e.useRef(null),i=fn(n,o),l=Zc(r)
|
|
2574
2678
|
;return e.useEffect((()=>{
|
|
2575
2679
|
const e=o.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set
|
|
2576
2680
|
;if(l!==r&&n){const t=new Event("change",{bubbles:!0})
|
|
2577
|
-
;n.call(e,r),e.dispatchEvent(t)}}),[l,r]),e.createElement(
|
|
2578
|
-
},e.createElement("select",un({},a,{ref:i,defaultValue:r})))}));function
|
|
2681
|
+
;n.call(e,r),e.dispatchEvent(t)}}),[l,r]),e.createElement(od,{asChild:!0
|
|
2682
|
+
},e.createElement("select",un({},a,{ref:i,defaultValue:r})))}));function Jd(t){
|
|
2579
2683
|
const n=zn(t),r=e.useRef(""),a=e.useRef(0),o=e.useCallback((e=>{
|
|
2580
2684
|
const t=r.current+e;n(t),function e(t){
|
|
2581
2685
|
r.current=t,window.clearTimeout(a.current),
|
|
2582
2686
|
""!==t&&(a.current=window.setTimeout((()=>e("")),1e3))}(t)
|
|
2583
2687
|
}),[n]),i=e.useCallback((()=>{r.current="",window.clearTimeout(a.current)}),[])
|
|
2584
2688
|
;return e.useEffect((()=>()=>window.clearTimeout(a.current)),[]),[r,o,i]}
|
|
2585
|
-
function
|
|
2689
|
+
function eh(e,t,n){
|
|
2586
2690
|
const r=t.length>1&&Array.from(t).every((e=>e===t[0])),a=r?t[0]:t,o=n?e.indexOf(n):-1
|
|
2587
2691
|
;let i=function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(e,Math.max(o,0))
|
|
2588
2692
|
;1===a.length&&(i=i.filter((e=>e!==n)))
|
|
2589
2693
|
;const l=i.find((e=>e.textValue.toLowerCase().startsWith(a.toLowerCase())))
|
|
2590
|
-
;return l!==n?l:void 0}
|
|
2591
|
-
const{__scopeSelect:n,children:r,open:a,defaultOpen:o,onOpenChange:i,value:l,defaultValue:c,onValueChange:s,dir:u,name:d,autoComplete:h,disabled:p,required:f}=t,m=
|
|
2694
|
+
;return l!==n?l:void 0}Qd.displayName="BubbleSelect";const th=t=>{
|
|
2695
|
+
const{__scopeSelect:n,children:r,open:a,defaultOpen:o,onOpenChange:i,value:l,defaultValue:c,onValueChange:s,dir:u,name:d,autoComplete:h,disabled:p,required:f}=t,m=md(n),[v,g]=e.useState(null),[y,b]=e.useState(null),[w,C]=e.useState(!1),z=Gn(u),[M=!1,x]=Mn({
|
|
2592
2696
|
prop:a,defaultProp:o,onChange:i}),[E,S]=Mn({prop:l,defaultProp:c,onChange:s
|
|
2593
2697
|
}),_=e.useRef(null),H=!v||Boolean(v.closest("form")),[D,V]=e.useState(new Set),L=Array.from(D).map((e=>e.props.value)).join(";")
|
|
2594
|
-
;return e.createElement(Li,m,e.createElement(
|
|
2698
|
+
;return e.createElement(Li,m,e.createElement(vd,{required:f,scope:n,trigger:v,
|
|
2595
2699
|
onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,
|
|
2596
2700
|
onValueNodeHasChildrenChange:C,contentId:Ln(),value:E,onValueChange:S,open:M,
|
|
2597
2701
|
onOpenChange:x,dir:z,triggerPointerDownPosRef:_,disabled:p
|
|
2598
|
-
},e.createElement(
|
|
2702
|
+
},e.createElement(ud.Provider,{scope:n},e.createElement(yd,{
|
|
2599
2703
|
scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{
|
|
2600
2704
|
V((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{V((t=>{
|
|
2601
|
-
const n=new Set(t);return n.delete(e),n}))}),[])},r)),H?e.createElement(
|
|
2705
|
+
const n=new Set(t);return n.delete(e),n}))}),[])},r)),H?e.createElement(Qd,{
|
|
2602
2706
|
key:L,"aria-hidden":!0,required:f,tabIndex:-1,name:d,autoComplete:h,value:E,
|
|
2603
2707
|
onChange:e=>S(e.target.value),disabled:p},void 0===E?e.createElement("option",{
|
|
2604
2708
|
value:""}):null,Array.from(D)):null))
|
|
2605
|
-
},
|
|
2606
|
-
},t)),
|
|
2607
|
-
elephant:"#12344d",smoke:"#ebeff3",milk:"#ffffff",E900:"#12344d",E800:"#264966",
|
|
2608
|
-
E700:"#345c7c",E600:"#447093",E500:"#527fa5",E400:"#6b92b6",E300:"#83a6c8",
|
|
2609
|
-
E200:"#a2c0de",E100:"#bedbf5",E50:"#dff0ff",S900:"#27313a",S800:"#384551",
|
|
2610
|
-
S700:"#475867",S600:"#576c7d",S500:"#647a8e",S400:"#7b8e9f",S300:"#92a2b1",
|
|
2611
|
-
S200:"#b1bdc8",S100:"#cfd7df",S75:"#e6e8eb",S50:"#ebeff3",S25:"#f5f7f9",
|
|
2612
|
-
S10:"#f7f9fa"},ch={jungle:"#005c3f",J900:"#005c3f",J800:"#00795b",
|
|
2613
|
-
J700:"#008969",J600:"#009a79",J500:"#00a886",J400:"#1cb697",J300:"#4dc4aa",
|
|
2614
|
-
J200:"#82d5c2",J100:"#b4e5da",J50:"#e0f5f1",azure:"#2c5cc5",A900:"#283da5",
|
|
2615
|
-
A800:"#2c5cc5",A700:"#2e6ed8",A600:"#2f80eb",A500:"#2e8efa",A400:"#459ffc",
|
|
2616
|
-
A300:"#64b0fc",A200:"#90c6fe",A100:"#bbdcfe",A50:"#e5f2fd",persimmon:"#e43538",
|
|
2617
|
-
P900:"#c82124",P800:"#d72d30",P700:"#e43538",P600:"#f73f3e",P500:"#ff473e",
|
|
2618
|
-
P400:"#ff5959",P300:"#f2797b",P200:"#f89fa1",P100:"#ffd0d6",P50:"#ffecf0",
|
|
2619
|
-
casablanca:"#e86f25",C900:"#d7461f",C800:"#e16023",C700:"#e86f25",
|
|
2620
|
-
C600:"#ef7e27",C500:"#f48928",C400:"#f69a3c",C300:"#f8ab59",C200:"#fac386",
|
|
2621
|
-
C100:"#fddbb5",C50:"#fef1e1"},sh={black:"#000000",white:"#ffffff"
|
|
2622
|
-
},uh="-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial, sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'",dh=(e,t=1)=>{
|
|
2623
|
-
let n=t,r=e.replace(/^#/,"")
|
|
2624
|
-
;8===e.length||4===e.length?(n=parseInt(e.slice(-2),16)/255,
|
|
2625
|
-
r=e.slice(0,-2)):3===r.length&&(r=r.replace(/(.)/g,"$1$1"))
|
|
2626
|
-
;const[a,o,i]=[0,2,4].map((e=>parseInt(r.slice(e,e+2),16)))
|
|
2627
|
-
;return`rgba(${a}, ${o}, ${i}, ${n.toFixed(2)})`},hh={mode:"light",breakpoints:{
|
|
2628
|
-
keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},
|
|
2629
|
-
unit:"px"},colors:{common:{black:sh.black,white:sh.white,accent:ch.A800},text:{
|
|
2630
|
-
link:ch.A800,primary:lh.E900,secondary:lh.S700,disabled:lh.S400,
|
|
2631
|
-
placeholder:lh.S300,error:ch.P800,inverse:sh.white,semantic:{success:ch.J500,
|
|
2632
|
-
warning:ch.C500,error:ch.P500,info:ch.A500}},fill:{base:lh.S25,medium:lh.S50,
|
|
2633
|
-
dark:lh.S100,surface:sh.white,inverse:lh.E900,hover:lh.S50,disabled:lh.S50,
|
|
2634
|
-
hilight:ch.A50},semantic:{error:{bg:ch.P50,border:ch.P100},warning:{bg:ch.C50,
|
|
2635
|
-
border:ch.C100},info:{bg:ch.A50,border:ch.A100},success:{bg:ch.J50,
|
|
2636
|
-
border:ch.J100}},border:{light:lh.S50,normal:lh.S100,divider:lh.S100,
|
|
2637
|
-
hover:lh.S300,active:ch.A800,disabled:lh.S50,error:ch.P800},shadow:lh.E900,
|
|
2638
|
-
scrim:lh.E900},typography:{fontFamily:uh,fontWeight:{bold:700,"semi-bold":600,
|
|
2639
|
-
regular:400},primary:{fontSize:"14px",fontWeight:400,lineHeight:1.5},secondary:{
|
|
2640
|
-
fontSize:"12px",fontWeight:400,lineHeight:1.5},heading:{fontSize:"16px",
|
|
2641
|
-
fontWeight:400,lineHeight:1.25},heading1:{fontSize:"44px",fontWeight:400,
|
|
2642
|
-
lineHeight:1.25},heading2:{fontSize:"32px",fontWeight:400,lineHeight:1.25},
|
|
2643
|
-
heading3:{fontSize:"24px",fontWeight:400,lineHeight:1.25},heading4:{
|
|
2644
|
-
fontSize:"18px",fontWeight:400,lineHeight:1.25},caption:{fontSize:"12px",
|
|
2645
|
-
fontWeight:400,lineHeight:1}},
|
|
2646
|
-
shadows:["none","0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)","0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)","0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)"],
|
|
2647
|
-
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2648
|
-
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
2649
|
-
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
2650
|
-
complex:"450ms"}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,
|
|
2651
|
-
drawer:1200,modal:1300,snackbar:1400,tooltip:1500},components:{button:{primary:{
|
|
2652
|
-
backgroundFrom:lh.E800,backgroundTo:lh.E900,color:sh.white,disabledColor:lh.S10,
|
|
2653
|
-
activeBackgroundColor:lh.E800,hoverColor:lh.E900,borderColor:lh.E900,
|
|
2654
|
-
activeBorderColor:lh.E900,disabledBorderColor:lh.S400,
|
|
2655
|
-
disabledBackgroundFrom:lh.S300,disabledBackgroundTo:lh.S400},secondary:{
|
|
2656
|
-
backgroundFrom:sh.white,backgroundTo:lh.S25,color:lh.E900,disabledColor:lh.S300,
|
|
2657
|
-
activeBackgroundColor:lh.S25,hoverColor:lh.S25,borderColor:lh.S100,
|
|
2658
|
-
activeBorderColor:lh.S25,disabledBorderColor:lh.S100,
|
|
2659
|
-
disabledBackgroundFrom:lh.S50,disabledBackgroundTo:lh.S50},danger:{
|
|
2660
|
-
backgroundFrom:ch.P800,backgroundTo:ch.P900,color:sh.white,
|
|
2661
|
-
disabledColor:ch.P100,activeBackgroundColor:ch.P800,hoverColor:ch.P900,
|
|
2662
|
-
borderColor:ch.P900,activeBorderColor:ch.P200,disabledBorderColor:ch.P300,
|
|
2663
|
-
disabledBackgroundFrom:ch.P200,disabledBackgroundTo:ch.P300},link:{
|
|
2664
|
-
backgroundFrom:sh.white,backgroundTo:sh.white,color:ch.A800,
|
|
2665
|
-
disabledColor:ch.A100,activeBackgroundColor:lh.S25,hoverColor:lh.S50,
|
|
2666
|
-
borderColor:sh.white,activeBorderColor:lh.S25,disabledBorderColor:sh.white,
|
|
2667
|
-
disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}},ph={
|
|
2668
|
-
mode:"dark",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,
|
|
2669
|
-
md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{black:sh.black,
|
|
2670
|
-
white:sh.white,accent:ch.A800},text:{link:ch.A800,primary:lh.S100,
|
|
2671
|
-
secondary:lh.S300,disabled:lh.S400,placeholder:lh.S300,error:ch.P400,
|
|
2672
|
-
inverse:sh.black,semantic:{success:ch.J400,warning:ch.C400,error:ch.P400,
|
|
2673
|
-
info:ch.A400}},fill:{base:lh.S900,medium:lh.S800,dark:lh.S100,surface:sh.black,
|
|
2674
|
-
inverse:lh.E100,hover:lh.S700,disabled:lh.S50,hilight:ch.A50},semantic:{error:{
|
|
2675
|
-
bg:ch.P800,border:ch.P300},warning:{bg:ch.C800,border:ch.C300},info:{bg:ch.A800,
|
|
2676
|
-
border:ch.A300},success:{bg:ch.J800,border:ch.J50}},border:{light:lh.S800,
|
|
2677
|
-
normal:lh.S800,divider:lh.S500,hover:lh.S500,active:ch.A500,disabled:lh.S50,
|
|
2678
|
-
error:ch.P500},shadow:lh.E50,scrim:lh.E50},typography:{fontFamily:uh,
|
|
2679
|
-
fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{fontSize:"14px",
|
|
2680
|
-
fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",fontWeight:400,
|
|
2681
|
-
lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,lineHeight:1.25},
|
|
2682
|
-
heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},heading2:{
|
|
2683
|
-
fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{fontSize:"24px",
|
|
2684
|
-
fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",fontWeight:400,
|
|
2685
|
-
lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,lineHeight:1}},
|
|
2686
|
-
shadows:["none",`0px 2px 1px -1px ${dh(sh.black,.2)},0px 1px 1px 0px ${dh(sh.black,.14)},0px 1px 3px 0px ${dh(sh.black,.12)}`,`0px 3px 1px -2px ${dh(sh.black,.2)},0px 2px 2px 0px ${dh(sh.black,.14)},0px 1px 5px 0px ${dh(sh.black,.12)}`,`0px 3px 3px -2px ${dh(sh.black,.2)},0px 3px 4px 0px ${dh(sh.black,.14)},0px 1px 8px 0px ${dh(sh.black,.12)}`],
|
|
2687
|
-
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2688
|
-
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
2689
|
-
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
2690
|
-
complex:"450ms"}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,
|
|
2691
|
-
drawer:1200,modal:1300,snackbar:1400,tooltip:1500},components:{button:{primary:{
|
|
2692
|
-
backgroundFrom:ch.A400,backgroundTo:ch.A400,color:sh.white,disabledColor:ch.A50,
|
|
2693
|
-
activeBackgroundColor:ch.A400,hoverColor:ch.A500,borderColor:ch.A500,
|
|
2694
|
-
activeBorderColor:ch.A500,disabledBorderColor:ch.A50,
|
|
2695
|
-
disabledBackgroundFrom:ch.A50,disabledBackgroundTo:ch.A50},secondary:{
|
|
2696
|
-
backgroundFrom:lh.S500,backgroundTo:lh.S500,color:lh.S100,disabledColor:lh.S800,
|
|
2697
|
-
activeBackgroundColor:lh.S800,hoverColor:lh.S800,borderColor:lh.S800,
|
|
2698
|
-
activeBorderColor:lh.S800,disabledBorderColor:lh.S800,
|
|
2699
|
-
disabledBackgroundFrom:lh.S800,disabledBackgroundTo:lh.S800},danger:{
|
|
2700
|
-
backgroundFrom:ch.P800,backgroundTo:ch.P900,color:sh.white,
|
|
2701
|
-
disabledColor:ch.P100,activeBackgroundColor:ch.P800,hoverColor:ch.P900,
|
|
2702
|
-
borderColor:ch.P900,activeBorderColor:ch.P200,disabledBorderColor:ch.P300,
|
|
2703
|
-
disabledBackgroundFrom:ch.P100,disabledBackgroundTo:ch.P100},link:{
|
|
2704
|
-
backgroundFrom:sh.white,backgroundTo:sh.white,color:ch.A800,
|
|
2705
|
-
disabledColor:ch.A100,activeBackgroundColor:lh.S25,hoverColor:lh.S50,
|
|
2706
|
-
borderColor:sh.white,activeBorderColor:lh.S25,disabledBorderColor:sh.white,
|
|
2707
|
-
disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
2708
|
-
;var fh=Object.freeze({__proto__:null,dark:ph,hextoRGB:dh,light:hh})
|
|
2709
|
-
;const mh=on(zr)`
|
|
2709
|
+
},nh=wd,rh=Cd,ah=zd,oh=t=>e.createElement(Ri,un({asChild:!0
|
|
2710
|
+
},t)),ih=xd,lh=Td,ch=Id,sh=Od,uh=jd,dh=Ud,hh=Yd,ph=Gd,fh=qd,mh=on(zr)`
|
|
2710
2711
|
transform: rotate(${({$isOpen:e})=>e?"0deg":"-180deg"});
|
|
2711
2712
|
transition: transform 0.2s ease-in-out;
|
|
2712
2713
|
`,vh=on.div`
|
|
@@ -2770,8 +2771,8 @@ disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
|
2770
2771
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2771
2772
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
2772
2773
|
box-shadow:
|
|
2773
|
-
${({theme:e})=>
|
|
2774
|
-
${({theme:e})=>
|
|
2774
|
+
${({theme:e})=>Fc(e.colors.shadow,.06)} 0px 2px 3px,
|
|
2775
|
+
${({theme:e})=>Fc(e.colors.shadow,.16)} 0px 4px 20px;
|
|
2775
2776
|
max-height: 200px;
|
|
2776
2777
|
`,bh=on.li`
|
|
2777
2778
|
padding: 8px 12px;
|
|
@@ -2802,9 +2803,9 @@ disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
|
2802
2803
|
height: 100%;
|
|
2803
2804
|
`,Mh=on.div``,xh=on.div`
|
|
2804
2805
|
height: ${({theme:e})=>`calc(1.5 * ${e.typography.primary.fontSize})`};
|
|
2805
|
-
`,Eh=on(
|
|
2806
|
+
`,Eh=on(th)``,Sh=on(ch)``,_h=on(rh)`
|
|
2806
2807
|
flex: 1;
|
|
2807
|
-
`,Hh=on(
|
|
2808
|
+
`,Hh=on(oh)``,Dh=on(uh)`
|
|
2808
2809
|
padding: 8px 12px;
|
|
2809
2810
|
border-radius: 4px;
|
|
2810
2811
|
display: flex;
|
|
@@ -2836,7 +2837,7 @@ disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
|
2836
2837
|
border-left: unset;
|
|
2837
2838
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2838
2839
|
margin: 0;
|
|
2839
|
-
`,Lh=on(
|
|
2840
|
+
`,Lh=on(sh)`
|
|
2840
2841
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2841
2842
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
2842
2843
|
line-height: ${({theme:e})=>e.typography.secondary.lineHeight};
|
|
@@ -2845,7 +2846,7 @@ disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
|
2845
2846
|
display: flex;
|
|
2846
2847
|
gap: 8px;
|
|
2847
2848
|
align-items: center;
|
|
2848
|
-
`,Ah=on(
|
|
2849
|
+
`,Ah=on(ih)`
|
|
2849
2850
|
padding: 8px;
|
|
2850
2851
|
overflow: auto;
|
|
2851
2852
|
list-style: none;
|
|
@@ -2854,8 +2855,8 @@ disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
|
2854
2855
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2855
2856
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
2856
2857
|
box-shadow:
|
|
2857
|
-
${({theme:e})=>
|
|
2858
|
-
${({theme:e})=>
|
|
2858
|
+
${({theme:e})=>Fc(e.colors.shadow,.06)} 0px 2px 3px,
|
|
2859
|
+
${({theme:e})=>Fc(e.colors.shadow,.16)} 0px 4px 20px;
|
|
2859
2860
|
width: ${({$matchButtonWidth:e})=>e?"var(--radix-select-trigger-width)":"auto"};
|
|
2860
2861
|
max-height: min(var(--radix-select-content-available-height), 232px);
|
|
2861
2862
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
@@ -2866,27 +2867,27 @@ disabledBackgroundFrom:sh.white,disabledBackgroundTo:sh.white}}}}
|
|
|
2866
2867
|
&[data-state='closed'] {
|
|
2867
2868
|
animation-name: ${Qr};
|
|
2868
2869
|
}
|
|
2869
|
-
`,kh=on(
|
|
2870
|
+
`,kh=on(dh)`
|
|
2870
2871
|
display: flex;
|
|
2871
2872
|
align-items: center;
|
|
2872
|
-
`,Th=on(
|
|
2873
|
+
`,Th=on(lh)`
|
|
2873
2874
|
scrollbar-width: thin !important;
|
|
2874
|
-
`,Rh=on(
|
|
2875
|
+
`,Rh=on(hh)``;on(ph)`
|
|
2875
2876
|
display: grid;
|
|
2876
2877
|
place-content: center;
|
|
2877
2878
|
margin-bottom: 8px;
|
|
2878
|
-
`,on(
|
|
2879
|
+
`,on(fh)`
|
|
2879
2880
|
display: grid;
|
|
2880
2881
|
place-content: center;
|
|
2881
2882
|
margin-top: 8px;
|
|
2882
2883
|
transform: rotate(-180deg);
|
|
2883
|
-
`;const Ph=on(
|
|
2884
|
+
`;const Ph=on(ah)`
|
|
2884
2885
|
cursor: pointer;
|
|
2885
2886
|
transform: rotate(-180deg);
|
|
2886
2887
|
transition: transform 0.2s ease-in-out;
|
|
2887
2888
|
display: grid;
|
|
2888
2889
|
place-content: center;
|
|
2889
|
-
`,Ih=on(
|
|
2890
|
+
`,Ih=on(nh)`
|
|
2890
2891
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2891
2892
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
2892
2893
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
@@ -3902,7 +3903,7 @@ className:"input-basic"},a&&e.createElement("div",{className:"start-adornment"
|
|
|
3902
3903
|
}),s&&(p||0)>0&&e.createElement("div",{className:"end-max-length"
|
|
3903
3904
|
},`${"string"==typeof v.value?v.value.length:`${v.value||""}`.length}/${p||0}`),i&&e.createElement("div",{
|
|
3904
3905
|
className:"end-adornment"},i)),o&&e.createElement("div",{className:"end-label"
|
|
3905
|
-
},o)),c&&h&&e.createElement(
|
|
3906
|
+
},o)),c&&h&&e.createElement(Hs,null,h)))),tv=e.forwardRef((({label:t,inline:n,startLabel:r,startAdornment:a,endLabel:o,endAdornment:i,isRequired:l,isErrored:c,showCount:s,inputStyle:u,style:d,errorText:h,maxLength:p,...f},m)=>e.createElement(Jm,{
|
|
3906
3907
|
$inline:n,$isErrored:c,disabled:f.disabled,style:d},e.createElement(Fr,{
|
|
3907
3908
|
htmlFor:f.id,className:"input-label"
|
|
3908
3909
|
},t,t&&l&&e.createElement(jr,null,"*")),e.createElement(Qm,{
|
|
@@ -3914,7 +3915,7 @@ maxLength:p,...f,"aria-invalid":c,ref:m,style:u
|
|
|
3914
3915
|
}),s&&(p||0)>0&&e.createElement(Xm,{isTa:!0,className:"end-max-length"
|
|
3915
3916
|
},`${"string"==typeof f.value?f.value.length:`${f.value||""}`.length}/${p||0}`),i&&e.createElement("div",{
|
|
3916
3917
|
className:"end-adornment"},i)),o&&e.createElement("div",{className:"end-label"
|
|
3917
|
-
},o)),c&&h&&e.createElement(
|
|
3918
|
+
},o)),c&&h&&e.createElement(Hs,null,h)))),nv={mini:2,small:2.5,medium:4,big:5
|
|
3918
3919
|
},rv={slow:1,medium:.7,fast:.4},av={mini:12,small:16,medium:24,big:32},ov=cn`
|
|
3919
3920
|
to { transform: rotate(360deg); }
|
|
3920
3921
|
`,iv=on.div`
|
|
@@ -3957,52 +3958,51 @@ const a="string"==typeof t?t:t?.[r],o=t?.[r]??""
|
|
|
3957
3958
|
;return o&&""!==o||console.warn("No value for item",t),
|
|
3958
3959
|
e.createElement(e.Fragment,null,m?m(t,{key:a,value:o??a,disabled:!!t.disabled,
|
|
3959
3960
|
showTick:h}):e.createElement(dv,{key:a,value:o||a,disabled:!!t.disabled,
|
|
3960
|
-
showTick:h},p(t,"list-item")))})))))))))),w&&z&&e.createElement(
|
|
3961
|
-
},uv=({itemIdentifier:t="id",label:n,id:r,items:a=[],placeholder:o,readOnly:i=!1,disabled:l=!1,isRequired:c=!1,hideClear:s=!1,itemToString:u,name:d,filterKey:h,width:p,customValues:f,onCustomValueAdd:m,itemComponent:v,emptyItemsText:g,getCustomMessage:y,style:b,onChange:w,useComboboxProps:C,isErrored:z,errorText:M,defaultSelectedItem:x,isMenuLoading:E})=>{
|
|
3962
|
-
const
|
|
3963
|
-
id:r,selectedItem:x,items:
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
},itemToString:e=>e?u(e,"downshift"):"",...C}),B=!l&&!i&&D
|
|
3961
|
+
showTick:h},p(t,"list-item")))})))))))))),w&&z&&e.createElement(Hs,null,z))
|
|
3962
|
+
},uv=({itemIdentifier:t="id",label:n,id:r,items:a=[],placeholder:o,readOnly:i=!1,disabled:l=!1,isRequired:c=!1,hideClear:s=!1,itemToString:u,name:d,filterKey:h,width:p,customValues:f,onCustomValueAdd:m,itemComponent:v,emptyItemsText:g,getCustomMessage:y,style:b,onChange:w,useComboboxProps:C,isErrored:z,errorText:M,defaultSelectedItem:x,isMenuLoading:E,clearInputOnselect:S=!1})=>{
|
|
3963
|
+
const _=qt(),[H,D]=e.useState(a),{isOpen:V,selectedItem:L,getToggleButtonProps:A,getLabelProps:k,getMenuProps:T,openMenu:R,highlightedIndex:P,setHighlightedIndex:I,setInputValue:O,inputValue:N,getItemProps:F,getInputProps:B}=wm({
|
|
3964
|
+
id:r,selectedItem:x,items:H,onSelectedItemChange:({selectedItem:e})=>{
|
|
3965
|
+
w?.(e??null)},onIsOpenChange:({isOpen:e})=>{
|
|
3966
|
+
if(e&&(""===N||L&&h&&(N||"").toLowerCase()===`${L?.[h||t]||""}`.toLowerCase()))D(a),
|
|
3967
|
+
I(L?a.indexOf(L):-1);else{const t=L?u(L):"";L&&!e&&t!==N&&O(t)}e||D(a),S&&O("")
|
|
3968
|
+
},onInputValueChange:({inputValue:e})=>{
|
|
3969
|
+
V&&(""===e||L&&h&&(e||"").toLowerCase()===`${L?.[h||t]||""}`.toLowerCase())?D(a):D((n=>n.filter((n=>!e||("string"==typeof n?n:n?.[h||t]).toLowerCase().includes(e.toLowerCase())))))
|
|
3970
|
+
},itemToString:e=>e?u(e,"downshift"):"",...C}),j=!l&&!i&&V
|
|
3971
3971
|
;return e.createElement(vh,{width:p},e.createElement(Fr,{
|
|
3972
|
-
className:"input-label",...
|
|
3973
|
-
},n,n&&c&&e.createElement(jr,null,"*")),e.createElement(ev,{...
|
|
3972
|
+
className:"input-label",...k({disabled:l,readOnly:i})
|
|
3973
|
+
},n,n&&c&&e.createElement(jr,null,"*")),e.createElement(ev,{...B({name:d,
|
|
3974
3974
|
readOnly:i,disabled:l}),placeholder:o,
|
|
3975
|
-
endAdornment:e.createElement(zh,null,!l&&!i&&!s&&
|
|
3976
|
-
"aria-label":"close",onClick:e=>{
|
|
3977
|
-
style:{borderRadius:"50%"}},e.createElement(Mr,{fill:
|
|
3978
|
-
})),e.createElement($r,{...
|
|
3979
|
-
})},e.createElement(mh,{$isOpen:
|
|
3980
|
-
}))),style:b}),!i&&!l&&e.createElement(yh,{$isOpen:
|
|
3975
|
+
endAdornment:e.createElement(zh,null,!l&&!i&&!s&&L&&e.createElement($r,{
|
|
3976
|
+
"aria-label":"close",onClick:e=>{O(""),w?.(null),R(),e.stopPropagation()},
|
|
3977
|
+
style:{borderRadius:"50%"}},e.createElement(Mr,{fill:_.colors.text.primary
|
|
3978
|
+
})),e.createElement($r,{...A({disabled:l,readOnly:i,"aria-label":"toggle-button"
|
|
3979
|
+
})},e.createElement(mh,{$isOpen:j,fill:_.colors.text.primary,width:8,height:8
|
|
3980
|
+
}))),style:b}),!i&&!l&&e.createElement(yh,{$isOpen:V,...T({disabled:l,readOnly:i
|
|
3981
3981
|
})
|
|
3982
|
-
},E?e.createElement(Ch,null,e.createElement(lv,null)):e.createElement(e.Fragment,null,
|
|
3983
|
-
onClick:e=>{e.stopPropagation(),m&&m({inputValue:
|
|
3984
|
-
},y?.(
|
|
3985
|
-
},g||"No items")),
|
|
3986
|
-
;return e.createElement(e.Fragment,{key:a},v?v(n,{isHilighted:
|
|
3987
|
-
isSelected:
|
|
3988
|
-
$isHilighted:
|
|
3989
|
-
},u(n),
|
|
3990
|
-
})))),z&&M&&e.createElement(
|
|
3982
|
+
},E?e.createElement(Ch,null,e.createElement(lv,null)):e.createElement(e.Fragment,null,V&&0===H.length&&e.createElement(e.Fragment,null,f?e.createElement(bh,null,e.createElement(wh,{
|
|
3983
|
+
onClick:e=>{e.stopPropagation(),m&&m({inputValue:N,customValues:!0}),O("")}
|
|
3984
|
+
},y?.(N)||"Click to add")):e.createElement(bh,{readOnly:!0
|
|
3985
|
+
},g||"No items")),V&&H.map(((n,r)=>{const a="string"==typeof n?n:n?.[t]
|
|
3986
|
+
;return e.createElement(e.Fragment,{key:a},v?v(n,{isHilighted:P===r,
|
|
3987
|
+
isSelected:L===n,key:a,...F({item:n,index:r})}):e.createElement(bh,{
|
|
3988
|
+
$isHilighted:P===r,$isSelected:L===n,key:a,...F({item:n,index:r})
|
|
3989
|
+
},u(n),L===n&&e.createElement(xr,{fill:_.colors.common.accent})))
|
|
3990
|
+
})))),z&&M&&e.createElement(Hs,null,M))
|
|
3991
3991
|
},dv=e.forwardRef((({children:t,showTick:n=!0,...r},a)=>{const o=qt()
|
|
3992
3992
|
;return e.createElement(Dh,{className:"SelectItem",...r,ref:a
|
|
3993
3993
|
},e.createElement(kh,{className:"SelectItemText"},t),n&&e.createElement(Rh,{
|
|
3994
3994
|
className:"SelectItemIndicator"},e.createElement(xr,{fill:o.colors.common.accent
|
|
3995
3995
|
})))})),hv=t=>{
|
|
3996
3996
|
const{isOpen:n,trigger:r,closeMenuCallback:a,idAccessor:o="id",nameAccessor:i="name",onSelect:l,itemComponent:c,showArrow:s=!1,options:u=[],value:d,side:h="bottom",align:p="center",sideOffset:f=4,alignOffset:m,arrowPadding:v,avoidCollisions:g}=t
|
|
3997
|
-
;return e.createElement(
|
|
3998
|
-
},e.createElement(
|
|
3999
|
-
},e.createElement(Zr,null,r)),e.createElement(
|
|
3997
|
+
;return e.createElement(Uc,{open:n,onOpenChange:e=>{e||a?.()}
|
|
3998
|
+
},e.createElement(Yc,{asChild:!0
|
|
3999
|
+
},e.createElement(Zr,null,r)),e.createElement(Wc,null,e.createElement(Kc,{
|
|
4000
4000
|
side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:v,avoidCollisions:g,
|
|
4001
4001
|
className:"DropdownMenuContent"},u.map((t=>c?c(t,{disabled:t?.disabled,
|
|
4002
4002
|
className:"DropdownMenuItem",key:t?.[o],onSelect:()=>l?.(t),
|
|
4003
|
-
isSelected:d?.[o]===t?.[o]}):e.createElement(
|
|
4003
|
+
isSelected:d?.[o]===t?.[o]}):e.createElement(qc,{id:t?.[o],disabled:t?.disabled,
|
|
4004
4004
|
className:"DropdownMenuItem",key:t?.[o],onSelect:()=>l?.(t),
|
|
4005
|
-
$isSelected:d?.[o]===t?.[o]},t?.[i]))),s&&e.createElement(
|
|
4005
|
+
$isSelected:d?.[o]===t?.[o]},t?.[i]))),s&&e.createElement(Gc,{
|
|
4006
4006
|
className:"DropdownMenuArrow"}))))},pv={"top-center":{from:{left:"50%",
|
|
4007
4007
|
top:"16px",y:"-8px",x:"-50%"},enter:{left:"50%",top:"16px",y:"0",x:"-50%"},
|
|
4008
4008
|
leave:{left:"50%",top:"16px",y:"8px",x:"-50%"}},"top-left":{from:{left:"16px",
|
|
@@ -4086,7 +4086,7 @@ medium:"600px",large:"800px","x-large":"1200px"},mv={"top-center":cn`
|
|
|
4086
4086
|
to {
|
|
4087
4087
|
transform: translate(0, 0);
|
|
4088
4088
|
}
|
|
4089
|
-
`},vv=on(
|
|
4089
|
+
`},vv=on(fu)``,gv=on(mu)``,yv=on(vu)`
|
|
4090
4090
|
background-color: ${({theme:e})=>e.colors.common.black}40;
|
|
4091
4091
|
position: fixed;
|
|
4092
4092
|
inset: 0;
|
|
@@ -4099,7 +4099,7 @@ medium:"600px",large:"800px","x-large":"1200px"},mv={"top-center":cn`
|
|
|
4099
4099
|
&[data-state='closed'] {
|
|
4100
4100
|
animation-name: ${Qr};
|
|
4101
4101
|
}
|
|
4102
|
-
`,bv=on(
|
|
4102
|
+
`,bv=on(gu)`
|
|
4103
4103
|
background-color: white;
|
|
4104
4104
|
border-radius: 8px;
|
|
4105
4105
|
box-shadow: 0 2px 18px 0 rgba(18, 52, 77, 0.2);
|
|
@@ -12922,11 +12922,11 @@ className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&b(!0)}
|
|
|
12922
12922
|
},n)),e.createElement(EI,null,e.createElement(CI,{forceMount:!0,
|
|
12923
12923
|
className:"PopoverContent",onMouseLeave:()=>{a&&(b(!1),d?.())},
|
|
12924
12924
|
onInteractOutside:()=>{b(!1),d?.()},side:w,align:o,sideOffset:8,
|
|
12925
|
-
avoidCollisions:l,...h},t,r&&e.createElement(zI,null))))},HI=on.div``,DI=on(
|
|
12925
|
+
avoidCollisions:l,...h},t,r&&e.createElement(zI,null))))},HI=on.div``,DI=on(ms)`
|
|
12926
12926
|
display: flex;
|
|
12927
12927
|
flex-direction: column;
|
|
12928
12928
|
gap: 4px;
|
|
12929
|
-
`,VI=on(
|
|
12929
|
+
`,VI=on(gs)`
|
|
12930
12930
|
display: flex;
|
|
12931
12931
|
align-items: center;
|
|
12932
12932
|
justify-content: center;
|
|
@@ -12941,7 +12941,7 @@ avoidCollisions:l,...h},t,r&&e.createElement(zI,null))))},HI=on.div``,DI=on(ls)`
|
|
|
12941
12941
|
border-radius: 50%;
|
|
12942
12942
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
12943
12943
|
}
|
|
12944
|
-
`,LI=on(
|
|
12944
|
+
`,LI=on(vs)`
|
|
12945
12945
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
12946
12946
|
width: 14px;
|
|
12947
12947
|
height: 14px;
|
|
@@ -15624,7 +15624,7 @@ onClick:()=>{const e={};t.getAllColumns().forEach((t=>{e[t.id]=t.getIsVisible()
|
|
|
15624
15624
|
},"Reset")),e.createElement(jB,null,e.createElement(UB,null,e.createElement(ev,{
|
|
15625
15625
|
startAdornment:e.createElement(ZB,{viewBox:"0 0 18px 18px"}),
|
|
15626
15626
|
placeholder:"Search columns"}),e.createElement(fa,{weight:"semi-bold"
|
|
15627
|
-
},"Choose columns"),e.createElement(YB,null,t.getAllColumns().filter((e=>!XB.includes(e.id))).map((n=>e.createElement(
|
|
15627
|
+
},"Choose columns"),e.createElement(YB,null,t.getAllColumns().filter((e=>!XB.includes(e.id))).map((n=>e.createElement(js,{
|
|
15628
15628
|
key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
|
|
15629
15629
|
onCheckedChange:e=>{const r=t.getAllColumns().find((e=>e.id===n.id));a((t=>({
|
|
15630
15630
|
...t,[n.id]:!0===e
|
|
@@ -15751,7 +15751,7 @@ onFocusFromOutsideViewport:()=>{Uj(v({tabbingDirection:"forwards"}))}
|
|
|
15751
15751
|
ref:p}))),m&&e.createElement(Dj,{ref:d,onFocusFromOutsideViewport:()=>{Uj(v({
|
|
15752
15752
|
tabbingDirection:"backwards"}))}}))})),Dj=e.forwardRef(((t,n)=>{
|
|
15753
15753
|
const{__scopeToast:r,onFocusFromOutsideViewport:a,...o}=t,i=Mj("ToastFocusProxy",r)
|
|
15754
|
-
;return e.createElement(
|
|
15754
|
+
;return e.createElement(od,un({"aria-hidden":!0,tabIndex:0},o,{ref:n,style:{
|
|
15755
15755
|
position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget
|
|
15756
15756
|
;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&a()}}))
|
|
15757
15757
|
})),Vj="Toast",Lj=e.forwardRef(((t,n)=>{
|
|
@@ -15828,7 +15828,7 @@ const{__scopeToast:n,children:r,...a}=t,o=Mj(Vj,n),[i,l]=e.useState(!1),[c,s]=e.
|
|
|
15828
15828
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
15829
15829
|
}((()=>l(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
15830
15830
|
;return()=>window.clearTimeout(e)}),[]),c?null:e.createElement(Ri,{asChild:!0
|
|
15831
|
-
},e.createElement(
|
|
15831
|
+
},e.createElement(od,a,i&&e.createElement(e.Fragment,null,o.label," ",r)))
|
|
15832
15832
|
},Pj=e.forwardRef(((t,n)=>{const{__scopeToast:r,...a}=t
|
|
15833
15833
|
;return e.createElement(xn.div,un({},a,{ref:n}))})),Ij=e.forwardRef(((t,n)=>{
|
|
15834
15834
|
const{altText:r,...a}=t;return r?e.createElement(Nj,{altText:r,asChild:!0
|
|
@@ -16045,7 +16045,7 @@ y((e=>!e)),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation()
|
|
|
16045
16045
|
}))})),v&&e.createElement(y$,{control:h,bubbles:!m.current,name:a,value:s,
|
|
16046
16046
|
checked:g,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))
|
|
16047
16047
|
})),y$=t=>{
|
|
16048
|
-
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=
|
|
16048
|
+
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=Zc(r),c=fi(n)
|
|
16049
16049
|
;return e.useEffect((()=>{
|
|
16050
16050
|
const e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
16051
16051
|
;if(l!==r&&n){const t=new Event("click",{bubbles:a})
|
|
@@ -16199,7 +16199,7 @@ style:{...c.style,
|
|
|
16199
16199
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
16200
16200
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
16201
16201
|
}),e.createElement(gn,null,a),e.createElement(U$,{scope:r,isInside:!0
|
|
16202
|
-
},e.createElement(
|
|
16202
|
+
},e.createElement(id,{id:s.contentId,role:"tooltip"},o||a))))}));const G$=t=>{
|
|
16203
16203
|
const{__scopeTooltip:n,delayDuration:r=D$,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
|
|
16204
16204
|
;return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)
|
|
16205
16205
|
}),[]),e.createElement(L$,{scope:n,isOpenDelayed:l,delayDuration:r,
|
|
@@ -16292,55 +16292,55 @@ fill:h.colors.text.semantic[r]
|
|
|
16292
16292
|
target:"_blank",rel:"noreferrer",href:o?.href??"#"
|
|
16293
16293
|
},o.linkText)),s&&e.createElement($r,{onClick:()=>{m(!1),t?.()}
|
|
16294
16294
|
},e.createElement(Mr,{fill:h.colors.text.primary}))):null
|
|
16295
|
-
},exports.BoxedRadio=({options:t,defaultValue:n,idAccessor:r="id",onChange:a,isErrored:o,errorText:i,disabled:l=!1,getTextContent:c,className:s,id:u,isRequired:d,readOnly:h,itemComponent:p,label:f,value:m,customIndicator:v,...g})=>e.createElement(
|
|
16295
|
+
},exports.BoxedRadio=({options:t,defaultValue:n,idAccessor:r="id",onChange:a,isErrored:o,errorText:i,disabled:l=!1,getTextContent:c,className:s,id:u,isRequired:d,readOnly:h,itemComponent:p,label:f,value:m,customIndicator:v,...g})=>e.createElement(ys,{
|
|
16296
16296
|
className:"StyledBoxedRadio"},f&&e.createElement(Fr,{htmlFor:u,
|
|
16297
16297
|
className:"input-label"
|
|
16298
|
-
},f,f&&d&&e.createElement(jr,null,"*")),e.createElement(
|
|
16298
|
+
},f,f&&d&&e.createElement(jr,null,"*")),e.createElement(bs,{defaultValue:n,
|
|
16299
16299
|
value:m,onValueChange:e=>a?.(e),"aria-readonly":h,id:u,"aria-label":f,
|
|
16300
16300
|
"aria-labelledby":u,"aria-invalid":o,
|
|
16301
16301
|
className:`BoxedRadioGroupRoot ${s??""}`.trim(),...g},t?.map((t=>{
|
|
16302
|
-
const n=c?.(t,"name")??"",a=c?.(t,"description")??"";return e.createElement(
|
|
16302
|
+
const n=c?.(t,"name")??"",a=c?.(t,"description")??"";return e.createElement(Ms,{
|
|
16303
16303
|
$isErrored:!1,disabled:t.disabled||l,key:t?.[r],
|
|
16304
16304
|
className:("BoxedRadioContainer "+(m===t?.[r]?"selected":"")).trim()
|
|
16305
|
-
},e.createElement(
|
|
16306
|
-
value:t?.[r],id:t?.[r],"aria-label":n,hasDescription:!!a},e.createElement(
|
|
16305
|
+
},e.createElement(zs,{className:"BoxedRadioGroupItem",disabled:t.disabled||l,
|
|
16306
|
+
value:t?.[r],id:t?.[r],"aria-label":n,hasDescription:!!a},e.createElement(ws,{
|
|
16307
16307
|
hasDescription:!!a,className:"BoxedRadioGroupIndicatorHolder"
|
|
16308
|
-
},v??e.createElement(
|
|
16309
|
-
}))),e.createElement(
|
|
16310
|
-
},p?p(t):e.createElement(e.Fragment,null,a?e.createElement(
|
|
16308
|
+
},v??e.createElement(Cs,{className:"BoxedRadioGroupIndicator"
|
|
16309
|
+
}))),e.createElement(Ss,{className:"BoxedRadioLabel",htmlFor:t?.[r]
|
|
16310
|
+
},p?p(t):e.createElement(e.Fragment,null,a?e.createElement(xs,{
|
|
16311
16311
|
className:"BoxedRadioLabelHeading"
|
|
16312
|
-
},n):e.createElement(e.Fragment,null,n),a&&e.createElement(
|
|
16312
|
+
},n):e.createElement(e.Fragment,null,n),a&&e.createElement(Es,{
|
|
16313
16313
|
className:"BoxedRadioLabelDescription"},a))))
|
|
16314
|
-
}))),o&&i&&e.createElement(
|
|
16314
|
+
}))),o&&i&&e.createElement(Hs,null,i)),
|
|
16315
16315
|
exports.Button=wa,exports.ButtonDropdown=({size:t="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>e.createElement("div",{
|
|
16316
16316
|
style:{display:"flex"}},e.createElement(Ma,{id:g,name:y,size:t,variant:n,
|
|
16317
16317
|
inline:a,disabled:v||r,"aria-disabled":v||r,onClick:e=>c?.(o,e),
|
|
16318
16318
|
"aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0
|
|
16319
|
-
},e.createElement("span",null,o?.[l]??s?.[0]?.[l]??"")),e.createElement(
|
|
16319
|
+
},e.createElement("span",null,o?.[l]??s?.[0]?.[l]??"")),e.createElement(Uc,null,e.createElement(Yc,{
|
|
16320
16320
|
asChild:!0},e.createElement(xa,{id:`${g}-more`,name:`${y}-more`,size:t,
|
|
16321
16321
|
variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
|
|
16322
16322
|
"aria-label":"Additional options"},e.createElement(za,{variant:n
|
|
16323
|
-
}))),e.createElement(
|
|
16323
|
+
}))),e.createElement(Wc,null,e.createElement(Kc,{side:u,sideOffset:d,align:h,
|
|
16324
16324
|
alignOffset:p,arrowPadding:f,avoidCollisions:m,className:"DropdownMenuContent"
|
|
16325
|
-
},(s?.filter((e=>e?.[i]!==o?.[i]))??[]).map((t=>e.createElement(
|
|
16325
|
+
},(s?.filter((e=>e?.[i]!==o?.[i]))??[]).map((t=>e.createElement(qc,{id:t?.[i],
|
|
16326
16326
|
disabled:t?.disabled,className:"DropdownMenuItem",key:t?.[i],onSelect:()=>c?.(t)
|
|
16327
16327
|
},t?.[l]))))))),
|
|
16328
16328
|
exports.CardActions=Wr,exports.CardContent=Yr,exports.CardDescription=Kr,
|
|
16329
16329
|
exports.CardText=qr,
|
|
16330
|
-
exports.CardTitle=Gr,exports.Checkbox=
|
|
16330
|
+
exports.CardTitle=Gr,exports.Checkbox=js,exports.Checkmark=_r,
|
|
16331
16331
|
exports.ChevronUp=zr,
|
|
16332
|
-
exports.Confirmation=({isOpen:t,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,clickOutToClose:d=!1,bodyStyles:h,contentStyles:p,footerStyles:f,width:m="520px"})=>e.createElement(
|
|
16332
|
+
exports.Confirmation=({isOpen:t,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,clickOutToClose:d=!1,bodyStyles:h,contentStyles:p,footerStyles:f,width:m="520px"})=>e.createElement(Nu,{
|
|
16333
16333
|
open:t,onOpenChange:e=>{e||o?.("root")}
|
|
16334
|
-
},e.createElement(
|
|
16334
|
+
},e.createElement(Fu,null,e.createElement($u,{forceMount:!0,style:h,
|
|
16335
16335
|
className:"AlertDialogOverlay",onClick:e=>{d&&o?.("overlay",e)}
|
|
16336
|
-
}),e.createElement(
|
|
16337
|
-
width:m}},n&&e.createElement(
|
|
16338
|
-
className:"AlertDialogTitle"},n),r&&e.createElement(
|
|
16336
|
+
}),e.createElement(Uu,{forceMount:!0,className:"AlertDialogContent",style:{...p,
|
|
16337
|
+
width:m}},n&&e.createElement(Yu,{$hasdescription:!!r,
|
|
16338
|
+
className:"AlertDialogTitle"},n),r&&e.createElement(Wu,{$hasChildren:!!l,
|
|
16339
16339
|
className:"AlertDialogDescription"
|
|
16340
|
-
},r),l?e.createElement(e.Fragment,null,l):null,e.createElement(
|
|
16341
|
-
},i&&e.createElement(
|
|
16340
|
+
},r),l?e.createElement(e.Fragment,null,l):null,e.createElement(Gu,{style:f
|
|
16341
|
+
},i&&e.createElement(Bu,{asChild:!0},e.createElement(wa,{variant:"secondary",
|
|
16342
16342
|
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:e=>{
|
|
16343
|
-
e.preventDefault(),o?.("button",e)},"aria-label":i},i)),u&&e.createElement(
|
|
16343
|
+
e.preventDefault(),o?.("button",e)},"aria-label":i},i)),u&&e.createElement(ju,{
|
|
16344
16344
|
asChild:!0},e.createElement(wa,{variant:"primary","aria-disabled":s,disabled:s,
|
|
16345
16345
|
onClick:e=>{e.preventDefault(),a?.(e)},"aria-label":u
|
|
16346
16346
|
},u)))))),exports.CrossIcon=Mr,exports.DatePicker=t=>{
|
|
@@ -16355,7 +16355,7 @@ fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:n||u,name:r,id:c,
|
|
|
16355
16355
|
Dropdown:t=>e.createElement(QP,{...t,disabled:s})}},showActionsBar:!0,
|
|
16356
16356
|
popoverProps:{minimal:!1,placement:"bottom-start",usePortal:!0},
|
|
16357
16357
|
parseDate:e=>e?Ov(e).toDate():new Date,formatDate:e=>e?Ov(e).format(u):"",...d
|
|
16358
|
-
}),i&&l&&e.createElement(
|
|
16358
|
+
}),i&&l&&e.createElement(Hs,null,l))},exports.DateRangePicker=t=>{
|
|
16359
16359
|
const{placeholder:n,name:r,isRequired:a,label:o,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD",...d}=t
|
|
16360
16360
|
;return e.createElement(qP,{id:`date-picker-container-${c??""}`.trim(),
|
|
16361
16361
|
"aria-invalid":i},o&&e.createElement(Fr,{htmlFor:t.id,className:"input-label"
|
|
@@ -16369,7 +16369,7 @@ Dropdown:t=>e.createElement(QP,{...t,disabled:s})}},
|
|
|
16369
16369
|
footerElement:e.createElement(KP,null,e.createElement(GP,{onClick:()=>{
|
|
16370
16370
|
d.onChange?.([null,null])}},"Clear")),popoverProps:{minimal:!1,
|
|
16371
16371
|
placement:"bottom-start",usePortal:!0},parseDate:e=>e?Ov(e).toDate():new Date,
|
|
16372
|
-
formatDate:e=>e?Ov(e).format(u):"",...d}),i&&l&&e.createElement(
|
|
16372
|
+
formatDate:e=>e?Ov(e).format(u):"",...d}),i&&l&&e.createElement(Hs,null,l))
|
|
16373
16373
|
},exports.DateTimePicker=t=>{
|
|
16374
16374
|
const{placeholder:n,name:r,isRequired:a,label:o,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD hh:mm A",...d}=t
|
|
16375
16375
|
;return e.createElement(qP,{id:`datetime-picker-container-${c??""}`.trim(),
|
|
@@ -16384,7 +16384,7 @@ Dropdown:t=>e.createElement(QP,{...t,disabled:s})}},showActionsBar:!0,
|
|
|
16384
16384
|
timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
|
|
16385
16385
|
showTimezoneSelect:!1,disableTimezoneSelect:!0,popoverProps:{minimal:!1,
|
|
16386
16386
|
placement:"bottom-start",usePortal:!0},parseDate:e=>e?Ov(e).toDate():new Date,
|
|
16387
|
-
formatDate:e=>e?Ov(e).format(u):"",...d}),i&&l&&e.createElement(
|
|
16387
|
+
formatDate:e=>e?Ov(e).format(u):"",...d}),i&&l&&e.createElement(Hs,null,l))
|
|
16388
16388
|
},exports.DateTimeRangePicker=t=>{
|
|
16389
16389
|
const{placeholder:n,name:r,isRequired:a,label:o,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD hh:mm A",...d}=t
|
|
16390
16390
|
;return e.createElement(qP,{id:`date-picker-container-${c??""}`.trim(),
|
|
@@ -16400,16 +16400,16 @@ timePickerProps:{useAmPm:!0,showArrowButtons:!1},
|
|
|
16400
16400
|
footerElement:e.createElement(KP,null,e.createElement(GP,{onClick:()=>{
|
|
16401
16401
|
d.onChange?.([null,null])}},"Clear")),popoverProps:{minimal:!1,
|
|
16402
16402
|
placement:"bottom-start",usePortal:!0},parseDate:e=>e?Ov(e).toDate():new Date,
|
|
16403
|
-
formatDate:e=>e?Ov(e).format(u):"",...d}),i&&l&&e.createElement(
|
|
16403
|
+
formatDate:e=>e?Ov(e).format(u):"",...d}),i&&l&&e.createElement(Hs,null,l))
|
|
16404
16404
|
},exports.Drawer=({isOpen:t,children:n,hideDismissIcon:r,customClass:a="",size:o="default",isFullHeight:i=!0,placement:l="right",clickOutToClose:c=!1,onDismiss:s})=>{
|
|
16405
|
-
const u=qt();return e.createElement(
|
|
16406
|
-
},e.createElement(
|
|
16407
|
-
className:"DialogOverlay",onClick:()=>{c&&s?.()}}),e.createElement(
|
|
16405
|
+
const u=qt();return e.createElement(nd,{open:t,onOpenChange:e=>{e||s?.()}
|
|
16406
|
+
},e.createElement(rd,null,e.createElement(Qu,{forceMount:!0,
|
|
16407
|
+
className:"DialogOverlay",onClick:()=>{c&&s?.()}}),e.createElement(Ju,{
|
|
16408
16408
|
forceMount:!0,className:`DialogContent ${a??""}`.trim(),isFullHeight:i,size:o,
|
|
16409
|
-
placement:l},!r&&e.createElement(
|
|
16409
|
+
placement:l},!r&&e.createElement(td,{asChild:!0},e.createElement(ed,{
|
|
16410
16410
|
"aria-label":"Close"},e.createElement(Mr,{fill:u.colors.text.inverse}))),n)))
|
|
16411
16411
|
},exports.Dropdown=cv,
|
|
16412
|
-
exports.DropdownInputItem=bh,exports.DropdownItem=dv,exports.DropdownMenuItem=
|
|
16412
|
+
exports.DropdownInputItem=bh,exports.DropdownItem=dv,exports.DropdownMenuItem=qc,
|
|
16413
16413
|
exports.ErrorIcon=Sr,
|
|
16414
16414
|
exports.FreshLink=Ur,exports.IconButton=$r,exports.InfoIcon=Hr,exports.Input=ev,
|
|
16415
16415
|
exports.InputLabel=Br,
|
|
@@ -16465,7 +16465,7 @@ const a="string"==typeof n?`${n}${r}`.trim():`${n?.[t]??""}${r}`.trim(),o=$.map(
|
|
|
16465
16465
|
;return e.createElement(bh,{$isHilighted:J===r,$isSelected:o,key:a,...ee({
|
|
16466
16466
|
item:n,index:r})
|
|
16467
16467
|
},V?V(n):e.createElement(e.Fragment,null,u?.(n)??"",o&&e.createElement(xr,{
|
|
16468
|
-
fill:O.colors.common.accent})))})))),S&&H&&e.createElement(
|
|
16468
|
+
fill:O.colors.common.accent})))})))),S&&H&&e.createElement(Hs,null,H))
|
|
16469
16469
|
},exports.Popover=_I,
|
|
16470
16470
|
exports.PopoverClose=SI,exports.PopoverTrigger=xI,exports.Radio=({checked:t,className:n,disabled:r,id:a,isRequired:o,label:i,name:l,readOnly:c,...s})=>e.createElement(DI,{
|
|
16471
16471
|
className:`RadioGroupRoot ${n??""}`.trim(),id:a,name:l,
|
|
@@ -16487,19 +16487,19 @@ className:"RadioGroupItem",disabled:t.disabled,value:t?.[r],id:t?.[r],
|
|
|
16487
16487
|
"aria-label":t?.[a]},e.createElement(VI,{className:"RadioGroupIndicator"
|
|
16488
16488
|
})),e.createElement(Br,{className:"RadioLabel",disabled:t.disabled,
|
|
16489
16489
|
htmlFor:t?.[r]
|
|
16490
|
-
},t?.[a]))))),c&&s&&e.createElement(
|
|
16491
|
-
exports.RadixSelectItem=
|
|
16490
|
+
},t?.[a]))))),c&&s&&e.createElement(Hs,null,s)),exports.RadixMenuItem=Tc,
|
|
16491
|
+
exports.RadixSelectItem=uh,
|
|
16492
16492
|
exports.Reorder=CF,exports.RequiredIndicator=jr,exports.StyledLabel=Fr,
|
|
16493
16493
|
exports.Table=t=>{
|
|
16494
16494
|
const{data:n,columns:a,showFooter:o=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,showTableOnLoading:g,hideLoaderOnTopPagination:y,hideActions:b,count:w,pageIndex:C=0,pageSize:z=20,enablePreviousPage:M,enableNextPage:x,hideColumnSettings:E=!0,hideBottomPagination:S,rowMenuOptions:_,onPreviousPageClick:H,onNextPageClick:D,disableRowSelect:V,hideSelectAllInTable:L,onSelectAllRows:A,onRowSelect:k,onMenuOptionSelect:T,onRowClick:R,columnOrder:P,setColumnOrder:I,setHiddenColumns:O,hiddenColumns:N,selectedRowIds:F={},setSelectedRowIds:B,dataKey:j="id",cellPropGetter:$,setPageIndex:U,rowPropGetter:Y}=t,W=qt(),[G,K]=e.useState(!v),q={
|
|
16495
16495
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
16496
16496
|
display:e=>e,group:e=>e},Z=-1===w||void 0===w,X=e.useMemo((()=>[...V?[]:[{
|
|
16497
16497
|
id:"select",
|
|
16498
|
-
header:({table:t})=>L?e.createElement("div",null):e.createElement(
|
|
16498
|
+
header:({table:t})=>L?e.createElement("div",null):e.createElement(js,{
|
|
16499
16499
|
checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
|
|
16500
16500
|
indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
|
|
16501
16501
|
t.toggleAllPageRowsSelected(!0===e),A?.(!0===e)}}),
|
|
16502
|
-
cell:({row:t})=>e.createElement(
|
|
16502
|
+
cell:({row:t})=>e.createElement(js,{checked:t.getIsSelected(),
|
|
16503
16503
|
disabled:!t.getCanSelect(),indeterminate:t.getIsSomeSelected(),
|
|
16504
16504
|
onCheckedChange:e=>{t.toggleSelected(!0===e),k?.(t.original,!0===e)}})
|
|
16505
16505
|
}],...a.map((e=>q.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
@@ -16592,7 +16592,7 @@ exports.TabsList=pj,exports.TabsRoot=dj,
|
|
|
16592
16592
|
exports.TabsTrigger=fj,exports.Tag=Tv,exports.TextArea=tv,
|
|
16593
16593
|
exports.ThemeProvider=t=>e.createElement(Zt,{theme:t.theme
|
|
16594
16594
|
},e.createElement(d$,null,t.children)),
|
|
16595
|
-
exports.Themes
|
|
16595
|
+
exports.Themes=$c,exports.TickIcon=xr,exports.TimePicker=t=>{
|
|
16596
16596
|
const{isRequired:n,label:r,isErrored:a,errorText:o,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u="",onChange:d}=t
|
|
16597
16597
|
;return e.createElement(UP,{id:`datetime-picker-container-${i??""}`.trim()
|
|
16598
16598
|
},r&&e.createElement(Fr,{htmlFor:t.id,className:"input-label"
|
|
@@ -16627,7 +16627,7 @@ itemToString:e=>e?.name??"",placeholder:"--",style:{marginLeft:"4px"},
|
|
|
16627
16627
|
showTick:!1,defaultSelectedItem:u?JP.find((e=>e.id===Ov(u).format("A"))):null,
|
|
16628
16628
|
width:"65px",itemIdentifier:"id",items:JP,onChange:e=>{
|
|
16629
16629
|
const t=Ov(new Date(u)).hour(Ov(u).hour()+("AM"===e?.id?-12:12))
|
|
16630
|
-
;d?.(t.toISOString())}})),a&&o&&e.createElement(
|
|
16630
|
+
;d?.(t.toISOString())}})),a&&o&&e.createElement(Hs,null,o))
|
|
16631
16631
|
},exports.ToastProvider=d$,
|
|
16632
16632
|
exports.Toggle=({handleChange:t,hasIcon:n=!1,on:r,isErrored:a,isRequired:o,size:i="md",thumbProps:l,...c})=>{
|
|
16633
16633
|
const s=qt();return e.createElement(z$,{checked:r,onCheckedChange:e=>{t?.(e)},
|