freemium-ui 2.0.0-beta.57 → 2.0.0-beta.58
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/index.cjs.js +11 -10
- package/index.js +11 -10
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2267,7 +2267,7 @@ modal:!0}))}))``,Au=on(xu)``,ku=on(Hu)``,Tu=on(_u)``,Ru=on(Eu)`
|
|
|
2267
2267
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
2268
2268
|
letter-spacing: 0px;
|
|
2269
2269
|
text-align: left;
|
|
2270
|
-
padding: 0 32px ${({$hasChildren:e})=>e?"
|
|
2270
|
+
padding: 0 32px ${({$hasChildren:e})=>e?"0px":"32px"} 32px;
|
|
2271
2271
|
`,Nu=on.div`
|
|
2272
2272
|
border-top: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2273
2273
|
border-bottom-right-radius: 8px;
|
|
@@ -15845,14 +15845,15 @@ const jj=Ej,$j=Hj,Uj=kj,Yj=Tj,Wj=on(Cj)``;on.div`
|
|
|
15845
15845
|
gap: 16px;
|
|
15846
15846
|
`,e$=on.div`
|
|
15847
15847
|
height: 4px;
|
|
15848
|
-
background-color: ${({theme:e,toastType:t})=>e.colors.text.semantic[t
|
|
15849
|
-
width: 0%;
|
|
15848
|
+
background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
15850
15849
|
border-radius: 4px 4px 0 0;
|
|
15851
|
-
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15850
|
+
|
|
15851
|
+
${({delay:e,windowState:t})=>"none"===e?"width: 100%;":nn`
|
|
15852
|
+
width: 0%;
|
|
15853
|
+
animation: ${Kj} ${e}ms linear
|
|
15854
|
+
${"focus"===t?"running":"paused"};
|
|
15855
|
+
will-change: width;
|
|
15856
|
+
`}
|
|
15856
15857
|
`,t$=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
|
|
15857
15858
|
n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
15858
15859
|
}),[]),{isBrowser:t,isServer:!t}},n$=e=>{const t=document.createElement("div")
|
|
@@ -15880,9 +15881,9 @@ const a=qt(),{updateToasts:o,windowState:i}=e.useContext(hj)??{},l=e.useRef(null
|
|
|
15880
15881
|
"aria-live":"polite",ref:l,toastType:r.type,toastIndex:t,
|
|
15881
15882
|
className:`ToastRoot Toast-${r.id??""}`.trim(),
|
|
15882
15883
|
duration:r.fixed?1/0:r.delay??3e3,onOpenChange:e=>{
|
|
15883
|
-
e||o((e=>e.filter((e=>e.id!==r.id))))}},
|
|
15884
|
+
e||o((e=>e.filter((e=>e.id!==r.id))))}},e.createElement(e$,{
|
|
15884
15885
|
className:"ToastProgress",windowState:i,toastType:r.type,
|
|
15885
|
-
delay
|
|
15886
|
+
delay:!r.fixed&&n?r.delay??3e3:"none"
|
|
15886
15887
|
}),e.createElement(Jj,null,r.customIcon?e.createElement(e.Fragment,null,r.customIcon):e.createElement(e.Fragment,null,"success"===r.type&&e.createElement(r$,{
|
|
15887
15888
|
fill:a.colors.text.semantic.success}),"warning"===r.type&&e.createElement(a$,{
|
|
15888
15889
|
fill:a.colors.text.semantic.warning}),"error"===r.type&&e.createElement(o$,{
|
package/index.js
CHANGED
|
@@ -2266,7 +2266,7 @@ const{__scopeAlertDialog:t,...n}=e,r=Nu(t);return i(Vu,Vn({},r,n,{modal:!0}))
|
|
|
2266
2266
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
2267
2267
|
letter-spacing: 0px;
|
|
2268
2268
|
text-align: left;
|
|
2269
|
-
padding: 0 32px ${({$hasChildren:e})=>e?"
|
|
2269
|
+
padding: 0 32px ${({$hasChildren:e})=>e?"0px":"32px"} 32px;
|
|
2270
2270
|
`,sd=En.div`
|
|
2271
2271
|
border-top: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2272
2272
|
border-bottom-right-radius: 8px;
|
|
@@ -16036,14 +16036,15 @@ const x$=l$,S$=u$,E$=m$,_$=v$,H$=En(r$)``;En.div`
|
|
|
16036
16036
|
gap: 16px;
|
|
16037
16037
|
`,P$=En.div`
|
|
16038
16038
|
height: 4px;
|
|
16039
|
-
background-color: ${({theme:e,toastType:t})=>e.colors.text.semantic[t
|
|
16040
|
-
width: 0%;
|
|
16039
|
+
background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
16041
16040
|
border-radius: 4px 4px 0 0;
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16041
|
+
|
|
16042
|
+
${({delay:e,windowState:t})=>"none"===e?"width: 100%;":Mn`
|
|
16043
|
+
width: 0%;
|
|
16044
|
+
animation: ${V$} ${e}ms linear
|
|
16045
|
+
${"focus"===t?"running":"paused"};
|
|
16046
|
+
will-change: width;
|
|
16047
|
+
`}
|
|
16047
16048
|
`,R$=()=>{const[e,t]=m(!1);return f((()=>{
|
|
16048
16049
|
t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
16049
16050
|
}),[]),{isBrowser:e,isServer:!e}},O$=e=>{const t=document.createElement("div")
|
|
@@ -16071,9 +16072,9 @@ const a=vn(),{updateToasts:o,windowState:i}=t.useContext(Kj)??{},l=t.useRef(null
|
|
|
16071
16072
|
"aria-live":"polite",ref:l,toastType:r.type,toastIndex:e,
|
|
16072
16073
|
className:`ToastRoot Toast-${r.id??""}`.trim(),
|
|
16073
16074
|
duration:r.fixed?1/0:r.delay??3e3,onOpenChange:e=>{
|
|
16074
|
-
e||o((e=>e.filter((e=>e.id!==r.id))))}},
|
|
16075
|
+
e||o((e=>e.filter((e=>e.id!==r.id))))}},t.createElement(P$,{
|
|
16075
16076
|
className:"ToastProgress",windowState:i,toastType:r.type,
|
|
16076
|
-
delay
|
|
16077
|
+
delay:!r.fixed&&n?r.delay??3e3:"none"
|
|
16077
16078
|
}),t.createElement(I$,null,r.customIcon?t.createElement(t.Fragment,null,r.customIcon):t.createElement(t.Fragment,null,"success"===r.type&&t.createElement(N$,{
|
|
16078
16079
|
fill:a.colors.text.semantic.success}),"warning"===r.type&&t.createElement(F$,{
|
|
16079
16080
|
fill:a.colors.text.semantic.warning}),"error"===r.type&&t.createElement(B$,{
|