freemium-ui 2.0.30 → 2.0.32

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 CHANGED
@@ -16703,7 +16703,7 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16703
16703
  animation-duration: ${({theme:e})=>e.transitions.duration.standard};
16704
16704
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
16705
16705
  will-change: transform, opacity;
16706
- position: absolute;
16706
+ position: relative;
16707
16707
  order: ${({toastIndex:e})=>e+1};
16708
16708
  background: ${({theme:e})=>e.colors.fill.surface};
16709
16709
  border: 1px solid ${({theme:e})=>e.colors.border.light};
@@ -16723,17 +16723,20 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16723
16723
  color: ${({theme:e})=>e.colors.text.primary};
16724
16724
  flex: 1;
16725
16725
  `,XY=yr(GY)``,JY=yr(UY)`
16726
- position: fixed;
16726
+ position: absolute;
16727
16727
  top: 16px;
16728
16728
  display: flex;
16729
16729
  flex-direction: column;
16730
16730
  align-items: ${({theme:e})=>e.components.toast.position};
16731
+ right: ${({theme:e})=>"end"===e.components.toast.position?"16px":"unset"};
16732
+ left: ${({theme:e})=>"start"===e.components.toast.position?"16px":"center"===e.components.toast.position?"50%":"unset"};
16733
+ transform: ${({theme:e})=>"center"===e.components.toast.position?"translate(-50%, 0)":"unset"};
16731
16734
  margin: 0;
16732
16735
  list-style: none;
16733
16736
  z-index: ${({theme:e})=>e.zIndex.snackbar||xo.snackbar};
16734
16737
  outline: none;
16735
16738
  width: -webkit-fill-available;
16736
- padding: 0 16px;
16739
+ padding: 0;
16737
16740
  &:hover {
16738
16741
  gap: 8px;
16739
16742
  li[data-state='open']:nth-last-of-type(1) {
package/lib/index.d.ts CHANGED
@@ -1565,7 +1565,7 @@ interface FreemiumUiTheme {
1565
1565
  zIndex: ZIndex;
1566
1566
  components: {
1567
1567
  toast: {
1568
- position: CSSProperties['alignItems'];
1568
+ position: Extract<CSSProperties['alignItems'], 'end' | 'start' | 'center'>;
1569
1569
  };
1570
1570
  button: {
1571
1571
  primary: FreemiumUiButtonTheme;
package/lib/index.js CHANGED
@@ -16955,7 +16955,7 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
16955
16955
  animation-duration: ${({theme:e})=>e.transitions.duration.standard};
16956
16956
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
16957
16957
  will-change: transform, opacity;
16958
- position: absolute;
16958
+ position: relative;
16959
16959
  order: ${({toastIndex:e})=>e+1};
16960
16960
  background: ${({theme:e})=>e.colors.fill.surface};
16961
16961
  border: 1px solid ${({theme:e})=>e.colors.border.light};
@@ -16975,17 +16975,20 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
16975
16975
  color: ${({theme:e})=>e.colors.text.primary};
16976
16976
  flex: 1;
16977
16977
  `,TW=Or(AW)``,PW=Or(_W)`
16978
- position: fixed;
16978
+ position: absolute;
16979
16979
  top: 16px;
16980
16980
  display: flex;
16981
16981
  flex-direction: column;
16982
16982
  align-items: ${({theme:e})=>e.components.toast.position};
16983
+ right: ${({theme:e})=>"end"===e.components.toast.position?"16px":"unset"};
16984
+ left: ${({theme:e})=>"start"===e.components.toast.position?"16px":"center"===e.components.toast.position?"50%":"unset"};
16985
+ transform: ${({theme:e})=>"center"===e.components.toast.position?"translate(-50%, 0)":"unset"};
16983
16986
  margin: 0;
16984
16987
  list-style: none;
16985
16988
  z-index: ${({theme:e})=>e.zIndex.snackbar||Yo.snackbar};
16986
16989
  outline: none;
16987
16990
  width: -webkit-fill-available;
16988
- padding: 0 16px;
16991
+ padding: 0;
16989
16992
  &:hover {
16990
16993
  gap: 8px;
16991
16994
  li[data-state='open']:nth-last-of-type(1) {
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.js",