freemium-ui 2.0.18 → 2.0.20
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 +24 -23
- package/lib/index.d.ts +1 -0
- package/lib/index.js +24 -23
- package/lib/package.json +1 -1
- package/package.json +11 -11
package/lib/index.cjs.js
CHANGED
|
@@ -1899,7 +1899,7 @@ r=e.slice(0,-2)):3===r.length&&(r=r.replace(/(.)/g,"$1$1"))
|
|
|
1899
1899
|
;const[a,o,i]=[0,2,4].map((e=>parseInt(r.slice(e,e+2),16)))
|
|
1900
1900
|
;return`rgba(${a}, ${o}, ${i}, ${n.toFixed(2)})`},Kc={popover:900,dropdown:900,
|
|
1901
1901
|
mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,
|
|
1902
|
-
snackbar:1400,tooltip:1500},qc={mode:"light",breakpoints:{
|
|
1902
|
+
snackbar:1400,tooltip:1500},qc={mode:"light",direction:"ltr",breakpoints:{
|
|
1903
1903
|
keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},
|
|
1904
1904
|
unit:"px"},colors:{common:{black:Yc.black,white:Yc.white,accent:Uc.A800},text:{
|
|
1905
1905
|
link:Uc.A800,primary:jc.E900,secondary:jc.S700,disabled:jc.S400,
|
|
@@ -1939,24 +1939,25 @@ backgroundFrom:Yc.white,backgroundTo:Yc.white,color:Uc.A800,
|
|
|
1939
1939
|
disabledColor:Uc.A100,activeBackgroundColor:jc.S25,hoverColor:jc.S50,
|
|
1940
1940
|
borderColor:Yc.white,activeBorderColor:jc.S25,disabledBorderColor:Yc.white,
|
|
1941
1941
|
disabledBackgroundFrom:Yc.white,disabledBackgroundTo:Yc.white}}}},Zc={
|
|
1942
|
-
mode:"dark",breakpoints:{keys:["xs","sm","md","lg","xl"],
|
|
1943
|
-
md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{
|
|
1944
|
-
white:Yc.white,accent:Uc.A800},text:{link:Uc.A800,
|
|
1945
|
-
secondary:jc.S300,disabled:jc.S400,placeholder:jc.S300,
|
|
1946
|
-
inverse:Yc.black,semantic:{success:Uc.J400,warning:Uc.C400,
|
|
1947
|
-
info:Uc.A400}},fill:{base:jc.S900,medium:jc.S800,dark:jc.S100,
|
|
1948
|
-
inverse:jc.E100,hover:jc.S700,disabled:jc.S50,hilight:Uc.A50},
|
|
1949
|
-
bg:Uc.P800,border:Uc.P300},warning:{bg:Uc.C800,border:Uc.C300},
|
|
1950
|
-
border:Uc.A300},success:{bg:Uc.J800,border:Uc.J50}},border:{
|
|
1951
|
-
normal:jc.S800,divider:jc.S500,hover:jc.S500,active:Uc.A500,
|
|
1952
|
-
error:Uc.P500},shadow:jc.E50,scrim:jc.E50},typography:{
|
|
1953
|
-
fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{
|
|
1954
|
-
fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",
|
|
1955
|
-
lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,
|
|
1956
|
-
heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},
|
|
1957
|
-
fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{
|
|
1958
|
-
fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",
|
|
1959
|
-
lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,
|
|
1942
|
+
mode:"dark",direction:"ltr",breakpoints:{keys:["xs","sm","md","lg","xl"],
|
|
1943
|
+
values:{xs:0,sm:600,md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{
|
|
1944
|
+
black:Yc.black,white:Yc.white,accent:Uc.A800},text:{link:Uc.A800,
|
|
1945
|
+
primary:jc.S100,secondary:jc.S300,disabled:jc.S400,placeholder:jc.S300,
|
|
1946
|
+
error:Uc.P400,inverse:Yc.black,semantic:{success:Uc.J400,warning:Uc.C400,
|
|
1947
|
+
error:Uc.P400,info:Uc.A400}},fill:{base:jc.S900,medium:jc.S800,dark:jc.S100,
|
|
1948
|
+
surface:Yc.black,inverse:jc.E100,hover:jc.S700,disabled:jc.S50,hilight:Uc.A50},
|
|
1949
|
+
semantic:{error:{bg:Uc.P800,border:Uc.P300},warning:{bg:Uc.C800,border:Uc.C300},
|
|
1950
|
+
info:{bg:Uc.A800,border:Uc.A300},success:{bg:Uc.J800,border:Uc.J50}},border:{
|
|
1951
|
+
light:jc.S800,normal:jc.S800,divider:jc.S500,hover:jc.S500,active:Uc.A500,
|
|
1952
|
+
disabled:jc.S50,error:Uc.P500},shadow:jc.E50,scrim:jc.E50},typography:{
|
|
1953
|
+
fontFamily:Wc,fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{
|
|
1954
|
+
fontSize:"14px",fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",
|
|
1955
|
+
fontWeight:400,lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,
|
|
1956
|
+
lineHeight:1.25},heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},
|
|
1957
|
+
heading2:{fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{
|
|
1958
|
+
fontSize:"24px",fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",
|
|
1959
|
+
fontWeight:400,lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,
|
|
1960
|
+
lineHeight:1}},
|
|
1960
1961
|
shadows:["none",`0px 2px 1px -1px ${Gc(Yc.black,.2)},0px 1px 1px 0px ${Gc(Yc.black,.14)},0px 1px 3px 0px ${Gc(Yc.black,.12)}`,`0px 3px 1px -2px ${Gc(Yc.black,.2)},0px 2px 2px 0px ${Gc(Yc.black,.14)},0px 1px 5px 0px ${Gc(Yc.black,.12)}`,`0px 3px 3px -2px ${Gc(Yc.black,.2)},0px 3px 4px 0px ${Gc(Yc.black,.14)},0px 1px 8px 0px ${Gc(Yc.black,.12)}`],
|
|
1961
1962
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1962
1963
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
@@ -16613,8 +16614,8 @@ onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,$?.(t)},
|
|
|
16613
16614
|
onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,W?.(t)},
|
|
16614
16615
|
enableRowSelection:!0,manualPagination:!0,rowCount:te?-1:C
|
|
16615
16616
|
}),{getPageCount:ie,getRowModel:le,getState:ce,getCanNextPage:se,getCanPreviousPage:ue,getPageOptions:de,previousPage:he,setPageIndex:pe,nextPage:fe,lastPage:me,firstPage:ve}=oe,{rows:ge}=le(),{pagination:{pageIndex:ye,pageSize:be}}=ce(),we=ye*be+(ye<ie()-1?be:ge.length),Ce=oe.getAllColumns().filter((e=>e.getIsVisible())).length+(R?0:1)+(H?1:0),ze=A?.[0].find((e=>e.id===L?.[0]))?.name
|
|
16616
|
-
;return
|
|
16617
|
-
className:"
|
|
16617
|
+
;return e.createElement(DB,{className:"TableContainer"},!w&&e.createElement(RB,{
|
|
16618
|
+
className:"table-actions"
|
|
16618
16619
|
},d&&e.createElement(e.Fragment,null,d),e.createElement(OB,{
|
|
16619
16620
|
className:"table-header-component"},h??null),e.createElement(NB,{
|
|
16620
16621
|
className:"table-header-dropdown-pagination"},V&&e.createElement("div",{
|
|
@@ -16622,8 +16623,8 @@ className:"table-heading-dropdown"},e.createElement("div",{
|
|
|
16622
16623
|
className:"table-sorting-heading"},`${g}:`)," ",e.createElement(s$,{
|
|
16623
16624
|
trigger:e.createElement("div",{className:"table-sorting-value-continer"
|
|
16624
16625
|
},e.createElement("div",null,ze),e.createElement(u$,{fill:X.colors.text.primary
|
|
16625
|
-
})),
|
|
16626
|
-
|
|
16626
|
+
})),options:A||[],value:L,onSelect:e=>{k?.(e??[])}})),e.createElement(FB,{
|
|
16627
|
+
className:"pagination-actions"
|
|
16627
16628
|
},!m&&e.createElement(e.Fragment,null,e.createElement(ma,{variant:"primary",
|
|
16628
16629
|
className:"pagination-text"},l&&!b?e.createElement(vv,{size:"small"
|
|
16629
16630
|
}):e.createElement(e.Fragment,null,n.length>0?`${ye*be+1} - ${we} of ${te?""+(ge.length>0?"Many":"-"):C??ge.length??"-"}`:null)),e.createElement(Ca,{
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1883,7 +1883,7 @@ r=e.slice(0,-2)):3===r.length&&(r=r.replace(/(.)/g,"$1$1"))
|
|
|
1883
1883
|
;const[a,o,i]=[0,2,4].map((e=>parseInt(r.slice(e,e+2),16)))
|
|
1884
1884
|
;return`rgba(${a}, ${o}, ${i}, ${n.toFixed(2)})`},vs={popover:900,dropdown:900,
|
|
1885
1885
|
mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,
|
|
1886
|
-
snackbar:1400,tooltip:1500},gs={mode:"light",breakpoints:{
|
|
1886
|
+
snackbar:1400,tooltip:1500},gs={mode:"light",direction:"ltr",breakpoints:{
|
|
1887
1887
|
keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:900,lg:1200,xl:1536},
|
|
1888
1888
|
unit:"px"},colors:{common:{black:ps.black,white:ps.white,accent:hs.A800},text:{
|
|
1889
1889
|
link:hs.A800,primary:ds.E900,secondary:ds.S700,disabled:ds.S400,
|
|
@@ -1923,24 +1923,25 @@ backgroundFrom:ps.white,backgroundTo:ps.white,color:hs.A800,
|
|
|
1923
1923
|
disabledColor:hs.A100,activeBackgroundColor:ds.S25,hoverColor:ds.S50,
|
|
1924
1924
|
borderColor:ps.white,activeBorderColor:ds.S25,disabledBorderColor:ps.white,
|
|
1925
1925
|
disabledBackgroundFrom:ps.white,disabledBackgroundTo:ps.white}}}},ys={
|
|
1926
|
-
mode:"dark",breakpoints:{keys:["xs","sm","md","lg","xl"],
|
|
1927
|
-
md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{
|
|
1928
|
-
white:ps.white,accent:hs.A800},text:{link:hs.A800,
|
|
1929
|
-
secondary:ds.S300,disabled:ds.S400,placeholder:ds.S300,
|
|
1930
|
-
inverse:ps.black,semantic:{success:hs.J400,warning:hs.C400,
|
|
1931
|
-
info:hs.A400}},fill:{base:ds.S900,medium:ds.S800,dark:ds.S100,
|
|
1932
|
-
inverse:ds.E100,hover:ds.S700,disabled:ds.S50,hilight:hs.A50},
|
|
1933
|
-
bg:hs.P800,border:hs.P300},warning:{bg:hs.C800,border:hs.C300},
|
|
1934
|
-
border:hs.A300},success:{bg:hs.J800,border:hs.J50}},border:{
|
|
1935
|
-
normal:ds.S800,divider:ds.S500,hover:ds.S500,active:hs.A500,
|
|
1936
|
-
error:hs.P500},shadow:ds.E50,scrim:ds.E50},typography:{
|
|
1937
|
-
fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{
|
|
1938
|
-
fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",
|
|
1939
|
-
lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,
|
|
1940
|
-
heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},
|
|
1941
|
-
fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{
|
|
1942
|
-
fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",
|
|
1943
|
-
lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,
|
|
1926
|
+
mode:"dark",direction:"ltr",breakpoints:{keys:["xs","sm","md","lg","xl"],
|
|
1927
|
+
values:{xs:0,sm:600,md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{
|
|
1928
|
+
black:ps.black,white:ps.white,accent:hs.A800},text:{link:hs.A800,
|
|
1929
|
+
primary:ds.S100,secondary:ds.S300,disabled:ds.S400,placeholder:ds.S300,
|
|
1930
|
+
error:hs.P400,inverse:ps.black,semantic:{success:hs.J400,warning:hs.C400,
|
|
1931
|
+
error:hs.P400,info:hs.A400}},fill:{base:ds.S900,medium:ds.S800,dark:ds.S100,
|
|
1932
|
+
surface:ps.black,inverse:ds.E100,hover:ds.S700,disabled:ds.S50,hilight:hs.A50},
|
|
1933
|
+
semantic:{error:{bg:hs.P800,border:hs.P300},warning:{bg:hs.C800,border:hs.C300},
|
|
1934
|
+
info:{bg:hs.A800,border:hs.A300},success:{bg:hs.J800,border:hs.J50}},border:{
|
|
1935
|
+
light:ds.S800,normal:ds.S800,divider:ds.S500,hover:ds.S500,active:hs.A500,
|
|
1936
|
+
disabled:ds.S50,error:hs.P500},shadow:ds.E50,scrim:ds.E50},typography:{
|
|
1937
|
+
fontFamily:fs,fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{
|
|
1938
|
+
fontSize:"14px",fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",
|
|
1939
|
+
fontWeight:400,lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,
|
|
1940
|
+
lineHeight:1.25},heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},
|
|
1941
|
+
heading2:{fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{
|
|
1942
|
+
fontSize:"24px",fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",
|
|
1943
|
+
fontWeight:400,lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,
|
|
1944
|
+
lineHeight:1}},
|
|
1944
1945
|
shadows:["none",`0px 2px 1px -1px ${ms(ps.black,.2)},0px 1px 1px 0px ${ms(ps.black,.14)},0px 1px 3px 0px ${ms(ps.black,.12)}`,`0px 3px 1px -2px ${ms(ps.black,.2)},0px 2px 2px 0px ${ms(ps.black,.14)},0px 1px 5px 0px ${ms(ps.black,.12)}`,`0px 3px 3px -2px ${ms(ps.black,.2)},0px 3px 4px 0px ${ms(ps.black,.14)},0px 1px 8px 0px ${ms(ps.black,.12)}`],
|
|
1945
1946
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1946
1947
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
@@ -15854,8 +15855,8 @@ onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,$?.(t)},
|
|
|
15854
15855
|
onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,W?.(t)},
|
|
15855
15856
|
enableRowSelection:!0,manualPagination:!0,rowCount:te?-1:C
|
|
15856
15857
|
}),{getPageCount:ie,getRowModel:le,getState:ce,getCanNextPage:se,getCanPreviousPage:ue,getPageOptions:de,previousPage:he,setPageIndex:pe,nextPage:fe,lastPage:me,firstPage:ve}=oe,{rows:ge}=le(),{pagination:{pageIndex:ye,pageSize:be}}=ce(),we=ye*be+(ye<ie()-1?be:ge.length),Ce=oe.getAllColumns().filter((e=>e.getIsVisible())).length+(I?0:1)+(H?1:0),ze=A?.[0].find((e=>e.id===L?.[0]))?.name
|
|
15857
|
-
;return
|
|
15858
|
-
className:"
|
|
15858
|
+
;return t.createElement(s$,{className:"TableContainer"},!w&&t.createElement(m$,{
|
|
15859
|
+
className:"table-actions"
|
|
15859
15860
|
},d&&t.createElement(t.Fragment,null,d),t.createElement(y$,{
|
|
15860
15861
|
className:"table-header-component"},h??null),t.createElement(b$,{
|
|
15861
15862
|
className:"table-header-dropdown-pagination"},V&&t.createElement("div",{
|
|
@@ -15863,8 +15864,8 @@ className:"table-heading-dropdown"},t.createElement("div",{
|
|
|
15863
15864
|
className:"table-sorting-heading"},`${g}:`)," ",t.createElement(j$,{
|
|
15864
15865
|
trigger:t.createElement("div",{className:"table-sorting-value-continer"
|
|
15865
15866
|
},t.createElement("div",null,ze),t.createElement(U$,{fill:X.colors.text.primary
|
|
15866
|
-
})),
|
|
15867
|
-
|
|
15867
|
+
})),options:A||[],value:L,onSelect:e=>{k?.(e??[])}})),t.createElement(w$,{
|
|
15868
|
+
className:"pagination-actions"
|
|
15868
15869
|
},!m&&t.createElement(t.Fragment,null,t.createElement(Pa,{variant:"primary",
|
|
15869
15870
|
className:"pagination-text"},l&&!b?t.createElement($v,{size:"small"
|
|
15870
15871
|
}):t.createElement(t.Fragment,null,r.length>0?`${ye*be+1} - ${we} of ${te?""+(ge.length>0?"Many":"-"):C??ge.length??"-"}`:null)),t.createElement(ja,{
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freemium-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "React Ui Components for Freemium Apps",
|
|
5
5
|
"main": "lib/index.cjs.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
41
41
|
"@rollup/plugin-terser": "^0.4.4",
|
|
42
42
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
43
|
-
"@storybook/addon-essentials": "^8.
|
|
44
|
-
"@storybook/addon-interactions": "^8.
|
|
45
|
-
"@storybook/addon-links": "^8.
|
|
46
|
-
"@storybook/addon-onboarding": "^8.
|
|
47
|
-
"@storybook/blocks": "^8.
|
|
48
|
-
"@storybook/preset-create-react-app": "^8.
|
|
49
|
-
"@storybook/preview-api": "^8.
|
|
50
|
-
"@storybook/react": "^8.
|
|
51
|
-
"@storybook/react-webpack5": "^8.
|
|
43
|
+
"@storybook/addon-essentials": "^8.1.10",
|
|
44
|
+
"@storybook/addon-interactions": "^8.1.10",
|
|
45
|
+
"@storybook/addon-links": "^8.1.10",
|
|
46
|
+
"@storybook/addon-onboarding": "^8.1.10",
|
|
47
|
+
"@storybook/blocks": "^8.1.10",
|
|
48
|
+
"@storybook/preset-create-react-app": "^8.1.10",
|
|
49
|
+
"@storybook/preview-api": "^8.1.10",
|
|
50
|
+
"@storybook/react": "^8.1.10",
|
|
51
|
+
"@storybook/react-webpack5": "^8.1.10",
|
|
52
52
|
"@types/node": "^16.18.64",
|
|
53
53
|
"@types/react": "^18.2.73",
|
|
54
54
|
"@types/react-dom": "^18.2.22",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rollup-plugin-dts": "^6.1.0",
|
|
67
67
|
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
68
68
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
69
|
-
"storybook": "^8.
|
|
69
|
+
"storybook": "^8.1.10",
|
|
70
70
|
"webpack": "^5.91.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|