freemium-ui 2.0.29 → 2.0.31
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 +11 -11
- package/lib/index.d.ts +4 -1
- package/lib/index.js +11 -11
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -1055,10 +1055,10 @@ shadows:["none",`0px 2px 1px -1px ${Mo(Co.black,.2)},0px 1px 1px 0px ${Mo(Co.bla
|
|
|
1055
1055
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1056
1056
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1057
1057
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1058
|
-
complex:"450ms"}},zIndex:xo,components:{
|
|
1059
|
-
backgroundTo:bo.E900,color:Co.white,
|
|
1060
|
-
|
|
1061
|
-
activeBorderColor:bo.E900,disabledBorderColor:bo.S400,
|
|
1058
|
+
complex:"450ms"}},zIndex:xo,components:{toast:{position:"center"},button:{
|
|
1059
|
+
primary:{backgroundFrom:bo.E800,backgroundTo:bo.E900,color:Co.white,
|
|
1060
|
+
disabledColor:bo.S10,activeBackgroundColor:bo.E800,hoverColor:bo.E900,
|
|
1061
|
+
borderColor:bo.E900,activeBorderColor:bo.E900,disabledBorderColor:bo.S400,
|
|
1062
1062
|
disabledBackgroundFrom:bo.S300,disabledBackgroundTo:bo.S400},secondary:{
|
|
1063
1063
|
backgroundFrom:Co.white,backgroundTo:bo.S25,color:bo.E900,disabledColor:bo.S300,
|
|
1064
1064
|
activeBackgroundColor:bo.S25,hoverColor:bo.S25,borderColor:bo.S100,
|
|
@@ -1096,10 +1096,10 @@ shadows:["none",`0px 2px 1px -1px ${Mo(bo.E900,.2)},0px 1px 1px 0px ${Mo(bo.E900
|
|
|
1096
1096
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1097
1097
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1098
1098
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1099
|
-
complex:"450ms"}},zIndex:xo,components:{
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
activeBorderColor:bo.E50,disabledBorderColor:bo.E50,
|
|
1099
|
+
complex:"450ms"}},zIndex:xo,components:{toast:{position:"center"},button:{
|
|
1100
|
+
primary:{backgroundFrom:bo.E100,backgroundTo:bo.E100,color:Co.black,
|
|
1101
|
+
disabledColor:Co.black,activeBackgroundColor:bo.E50,hoverColor:bo.E50,
|
|
1102
|
+
borderColor:bo.E50,activeBorderColor:bo.E50,disabledBorderColor:bo.E50,
|
|
1103
1103
|
disabledBackgroundFrom:bo.E100,disabledBackgroundTo:bo.E100},secondary:{
|
|
1104
1104
|
backgroundFrom:Co.neutral.dark_mild,backgroundTo:Co.neutral.dark_mild,
|
|
1105
1105
|
color:bo.S100,disabledColor:bo.S500,
|
|
@@ -16725,11 +16725,11 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
|
|
|
16725
16725
|
`,XY=yr(GY)``,JY=yr(UY)`
|
|
16726
16726
|
position: fixed;
|
|
16727
16727
|
top: 16px;
|
|
16728
|
-
left: 50%;
|
|
16729
|
-
transform: translate(-50%, 0);
|
|
16730
16728
|
display: flex;
|
|
16731
16729
|
flex-direction: column;
|
|
16732
|
-
align-items:
|
|
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":"unset"};
|
|
16733
16733
|
margin: 0;
|
|
16734
16734
|
list-style: none;
|
|
16735
16735
|
z-index: ${({theme:e})=>e.zIndex.snackbar||xo.snackbar};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode } from 'react';
|
|
3
|
+
import react__default, { ReactNode, CSSProperties } from 'react';
|
|
4
4
|
import { AccordionSingleProps } from '@radix-ui/react-accordion';
|
|
5
5
|
import * as Popover$1 from '@radix-ui/react-popover';
|
|
6
6
|
import { PortalProps, PopperContentProps } from '@radix-ui/react-popover';
|
|
@@ -1564,6 +1564,9 @@ interface FreemiumUiTheme {
|
|
|
1564
1564
|
transitions: Transitions;
|
|
1565
1565
|
zIndex: ZIndex;
|
|
1566
1566
|
components: {
|
|
1567
|
+
toast: {
|
|
1568
|
+
position: Extract<CSSProperties['alignItems'], 'end' | 'start' | 'center'>;
|
|
1569
|
+
};
|
|
1567
1570
|
button: {
|
|
1568
1571
|
primary: FreemiumUiButtonTheme;
|
|
1569
1572
|
secondary: FreemiumUiButtonTheme;
|
package/lib/index.js
CHANGED
|
@@ -1047,10 +1047,10 @@ shadows:["none",`0px 2px 1px -1px ${Uo(Bo.black,.2)},0px 1px 1px 0px ${Uo(Bo.bla
|
|
|
1047
1047
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1048
1048
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1049
1049
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1050
|
-
complex:"450ms"}},zIndex:Yo,components:{
|
|
1051
|
-
backgroundTo:Fo.E900,color:Bo.white,
|
|
1052
|
-
|
|
1053
|
-
activeBorderColor:Fo.E900,disabledBorderColor:Fo.S400,
|
|
1050
|
+
complex:"450ms"}},zIndex:Yo,components:{toast:{position:"center"},button:{
|
|
1051
|
+
primary:{backgroundFrom:Fo.E800,backgroundTo:Fo.E900,color:Bo.white,
|
|
1052
|
+
disabledColor:Fo.S10,activeBackgroundColor:Fo.E800,hoverColor:Fo.E900,
|
|
1053
|
+
borderColor:Fo.E900,activeBorderColor:Fo.E900,disabledBorderColor:Fo.S400,
|
|
1054
1054
|
disabledBackgroundFrom:Fo.S300,disabledBackgroundTo:Fo.S400},secondary:{
|
|
1055
1055
|
backgroundFrom:Bo.white,backgroundTo:Fo.S25,color:Fo.E900,disabledColor:Fo.S300,
|
|
1056
1056
|
activeBackgroundColor:Fo.S25,hoverColor:Fo.S25,borderColor:Fo.S100,
|
|
@@ -1088,10 +1088,10 @@ shadows:["none",`0px 2px 1px -1px ${Uo(Fo.E900,.2)},0px 1px 1px 0px ${Uo(Fo.E900
|
|
|
1088
1088
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1089
1089
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1090
1090
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1091
|
-
complex:"450ms"}},zIndex:Yo,components:{
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
activeBorderColor:Fo.E50,disabledBorderColor:Fo.E50,
|
|
1091
|
+
complex:"450ms"}},zIndex:Yo,components:{toast:{position:"center"},button:{
|
|
1092
|
+
primary:{backgroundFrom:Fo.E100,backgroundTo:Fo.E100,color:Bo.black,
|
|
1093
|
+
disabledColor:Bo.black,activeBackgroundColor:Fo.E50,hoverColor:Fo.E50,
|
|
1094
|
+
borderColor:Fo.E50,activeBorderColor:Fo.E50,disabledBorderColor:Fo.E50,
|
|
1095
1095
|
disabledBackgroundFrom:Fo.E100,disabledBackgroundTo:Fo.E100},secondary:{
|
|
1096
1096
|
backgroundFrom:Bo.neutral.dark_mild,backgroundTo:Bo.neutral.dark_mild,
|
|
1097
1097
|
color:Fo.S100,disabledColor:Fo.S500,
|
|
@@ -16977,11 +16977,11 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
|
|
|
16977
16977
|
`,TW=Or(AW)``,PW=Or(_W)`
|
|
16978
16978
|
position: fixed;
|
|
16979
16979
|
top: 16px;
|
|
16980
|
-
left: 50%;
|
|
16981
|
-
transform: translate(-50%, 0);
|
|
16982
16980
|
display: flex;
|
|
16983
16981
|
flex-direction: column;
|
|
16984
|
-
align-items:
|
|
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":"unset"};
|
|
16985
16985
|
margin: 0;
|
|
16986
16986
|
list-style: none;
|
|
16987
16987
|
z-index: ${({theme:e})=>e.zIndex.snackbar||Yo.snackbar};
|
package/lib/package.json
CHANGED