freemium-ui 2.0.19 → 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 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"],values:{xs:0,sm:600,
1943
- md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{black:Yc.black,
1944
- white:Yc.white,accent:Uc.A800},text:{link:Uc.A800,primary:jc.S100,
1945
- secondary:jc.S300,disabled:jc.S400,placeholder:jc.S300,error:Uc.P400,
1946
- inverse:Yc.black,semantic:{success:Uc.J400,warning:Uc.C400,error:Uc.P400,
1947
- info:Uc.A400}},fill:{base:jc.S900,medium:jc.S800,dark:jc.S100,surface:Yc.black,
1948
- inverse:jc.E100,hover:jc.S700,disabled:jc.S50,hilight:Uc.A50},semantic:{error:{
1949
- bg:Uc.P800,border:Uc.P300},warning:{bg:Uc.C800,border:Uc.C300},info:{bg:Uc.A800,
1950
- border:Uc.A300},success:{bg:Uc.J800,border:Uc.J50}},border:{light:jc.S800,
1951
- normal:jc.S800,divider:jc.S500,hover:jc.S500,active:Uc.A500,disabled:jc.S50,
1952
- error:Uc.P500},shadow:jc.E50,scrim:jc.E50},typography:{fontFamily:Wc,
1953
- fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{fontSize:"14px",
1954
- fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",fontWeight:400,
1955
- lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,lineHeight:1.25},
1956
- heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},heading2:{
1957
- fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{fontSize:"24px",
1958
- fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",fontWeight:400,
1959
- lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,lineHeight:1}},
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)",
package/lib/index.d.ts CHANGED
@@ -1465,6 +1465,7 @@ interface FreemiumUiButtonTheme {
1465
1465
  }
1466
1466
  interface FreemiumUiTheme {
1467
1467
  mode: 'light' | 'dark';
1468
+ direction: 'ltr' | 'rtl';
1468
1469
  breakpoints: Breakpoints;
1469
1470
  colors: Colors;
1470
1471
  typography: FuiTypography;
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"],values:{xs:0,sm:600,
1927
- md:900,lg:1200,xl:1536},unit:"px"},colors:{common:{black:ps.black,
1928
- white:ps.white,accent:hs.A800},text:{link:hs.A800,primary:ds.S100,
1929
- secondary:ds.S300,disabled:ds.S400,placeholder:ds.S300,error:hs.P400,
1930
- inverse:ps.black,semantic:{success:hs.J400,warning:hs.C400,error:hs.P400,
1931
- info:hs.A400}},fill:{base:ds.S900,medium:ds.S800,dark:ds.S100,surface:ps.black,
1932
- inverse:ds.E100,hover:ds.S700,disabled:ds.S50,hilight:hs.A50},semantic:{error:{
1933
- bg:hs.P800,border:hs.P300},warning:{bg:hs.C800,border:hs.C300},info:{bg:hs.A800,
1934
- border:hs.A300},success:{bg:hs.J800,border:hs.J50}},border:{light:ds.S800,
1935
- normal:ds.S800,divider:ds.S500,hover:ds.S500,active:hs.A500,disabled:ds.S50,
1936
- error:hs.P500},shadow:ds.E50,scrim:ds.E50},typography:{fontFamily:fs,
1937
- fontWeight:{bold:700,"semi-bold":600,regular:400},primary:{fontSize:"14px",
1938
- fontWeight:400,lineHeight:1.5},secondary:{fontSize:"12px",fontWeight:400,
1939
- lineHeight:1.5},heading:{fontSize:"16px",fontWeight:400,lineHeight:1.25},
1940
- heading1:{fontSize:"44px",fontWeight:400,lineHeight:1.25},heading2:{
1941
- fontSize:"32px",fontWeight:400,lineHeight:1.25},heading3:{fontSize:"24px",
1942
- fontWeight:400,lineHeight:1.25},heading4:{fontSize:"18px",fontWeight:400,
1943
- lineHeight:1.25},caption:{fontSize:"12px",fontWeight:400,lineHeight:1}},
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)",
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
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.19",
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.0.9",
44
- "@storybook/addon-interactions": "^8.0.9",
45
- "@storybook/addon-links": "^8.0.9",
46
- "@storybook/addon-onboarding": "^8.0.9",
47
- "@storybook/blocks": "^8.0.9",
48
- "@storybook/preset-create-react-app": "^8.0.9",
49
- "@storybook/preview-api": "^8.0.9",
50
- "@storybook/react": "^8.0.9",
51
- "@storybook/react-webpack5": "^8.0.9",
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.0.9",
69
+ "storybook": "^8.1.10",
70
70
  "webpack": "^5.91.0"
71
71
  },
72
72
  "scripts": {
package/dist/README.md DELETED
@@ -1,86 +0,0 @@
1
- <h1 align="center">Freemium Ui</h1>
2
-
3
- ## [DEMO](https://freemium-ui.netlify.app)
4
-
5
- [React](https://reactjs.org/) based light weight ui components based on [Styled Components](https://styled-components.com/)
6
-
7
- ## Installation
8
-
9
- Peer Dependencies to be installed
10
-
11
- ```
12
- npm install styled-components
13
- ```
14
-
15
- Install the package
16
-
17
- ```
18
- npm install freemium-ui
19
- ```
20
-
21
- Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
22
-
23
- ## Usage
24
-
25
- Here is a quick example to get you started, **it's all you need**:
26
-
27
- ```jsx
28
- import React from 'react';
29
- import ReactDOM from 'react-dom';
30
- import { Button } from 'freemium-ui';
31
- // import { Button } from 'freemium-ui/Button';
32
-
33
- function App() {
34
- return <Button>Freemium Button</Button>;
35
- }
36
-
37
- ReactDOM.render(<App />, document.querySelector('#app'));
38
- ```
39
-
40
- ## Contribution
41
-
42
- Install Dependencies
43
-
44
- ```
45
- npm install
46
- ```
47
-
48
- Start the app using storybook
49
-
50
- ```
51
- npm run storybook
52
- ```
53
-
54
- Build Freemium Ui Core Components
55
-
56
- ```
57
- npm run build
58
- ```
59
-
60
- JavaScript heap out of memory could lead to build failure. Check the [official docs](https://rollupjs.org/troubleshooting/#error-javascript-heap-out-of-memory). Or execute any of the required below config
61
-
62
- ```
63
- export NODE_OPTIONS="--max-old-space-size=8192"
64
- export NODE_OPTIONS="--max-old-space-size=12288"
65
- export NODE_OPTIONS="--max-old-space-size=16384"
66
- ```
67
-
68
- To check the heap size in MB
69
-
70
- ```
71
- node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
72
- ```
73
-
74
- Generate a PAT with `admin:org`, `write:packages`, `read:packages`, `delete:packages`
75
-
76
- Authenticate to npm github package
77
-
78
- ```
79
- npm login --registry=https://registry.npmjs.org/
80
- ```
81
-
82
- Publish the package to npm
83
-
84
- ```
85
- npm publish
86
- ```