freemium-ui 2.0.0-beta.0 → 2.0.0-beta.2
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/README.md +51 -26
- package/lib/allPaths-WmpInmc6.js +1 -0
- package/lib/allPaths-ZvyseO3W.js +1 -0
- package/lib/allPathsLoader-Y52NXCsH.js +1 -0
- package/lib/allPathsLoader-tNTtmXiS.js +1 -0
- package/lib/assets/bundle-7im1geMl.css +614 -0
- package/lib/index-4croX9DV.js +1 -0
- package/lib/index-7EbF0dW2.js +1 -0
- package/lib/index-GUn9nFX6.js +53 -0
- package/lib/index-nKZqXJSi.js +53 -0
- package/lib/index-u6cJndUc.js +1 -0
- package/lib/index-y8BjCJFH.js +1 -0
- package/lib/index.d.ts +1063 -741
- package/lib/index.js +1 -833
- package/lib/splitPathsBySizeLoader-4BmQebNp.js +1 -0
- package/lib/splitPathsBySizeLoader-s5khSoTu.js +1 -0
- package/package.json +27 -16
- package/lib/index.esm.js +0 -833
- package/rollup.config.mjs +0 -47
package/README.md
CHANGED
|
@@ -1,46 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">Freemium Ui</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## [DEMO](https://freemium-ui.netlify.app)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[React](https://reactjs.org/) based light weight ui components based on [Styled Components](https://styled-components.com/)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Peer Dependencies to be installed
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
```
|
|
12
|
+
npm install styled-components
|
|
13
|
+
```
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
You will also see any lint errors in the console.
|
|
15
|
+
Install the package
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```
|
|
18
|
+
npm install @freshdesk/freemium-ui
|
|
19
|
+
```
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
+
Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
## Usage
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
25
|
+
Here is a quick example to get you started, **it's all you need**:
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
```jsx
|
|
28
|
+
import React from 'react';
|
|
29
|
+
import ReactDOM from 'react-dom';
|
|
30
|
+
import { Button } from 'freemium-ui';
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
function App() {
|
|
33
|
+
return <Button>Freemium Button</Button>;
|
|
34
|
+
}
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
ReactDOM.render(<App />, document.querySelector('#app'));
|
|
37
|
+
```
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
## Contribution
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
Install Dependencies
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
```
|
|
44
|
+
npm install
|
|
45
|
+
```
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
Start the app using storybook
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
```
|
|
50
|
+
npm run storybook
|
|
51
|
+
```
|
|
43
52
|
|
|
44
|
-
|
|
53
|
+
Build Freemium Ui Core Components
|
|
45
54
|
|
|
46
|
-
|
|
55
|
+
```
|
|
56
|
+
npm run build
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Generate a PAT with `admin:org`, `write:packages`, `read:packages`, `delete:packages`
|
|
60
|
+
|
|
61
|
+
Authenticate to npm github package
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
npm login --registry=https://registry.npmjs.org/
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Publish the package to npm
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
npm publish
|
|
71
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./index-4croX9DV.js"),r=require("./index-u6cJndUc.js"),t=require("./index-GUn9nFX6.js");require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-remove-scroll"),require("@floating-ui/react-dom"),require("react-is"),require("react-day-picker"),require("react-popper"),require("react-transition-group"),require("react-uid"),require("react-innertext"),exports.IconSvgPaths16=e.IconSvgPaths16,exports.IconSvgPaths20=r.IconSvgPaths20,exports.getIconPaths=function(a,i){var c=t.pascalCase(a);return i===t.IconSize.STANDARD?e.IconSvgPaths16[c]:r.IconSvgPaths20[c]},exports.iconNameToPathsRecordKey=function(e){return t.pascalCase(e)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as r}from"./index-7EbF0dW2.js";import{I as t}from"./index-y8BjCJFH.js";import{p as i,I as o}from"./index-nKZqXJSi.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-remove-scroll";import"@floating-ui/react-dom";import"react-is";import"react-day-picker";import"react-popper";import"react-transition-group";import"react-uid";import"react-innertext";function e(e,m){var p=i(e);return m===o.STANDARD?r[p]:t[p]}function m(r){return i(r)}export{r as IconSvgPaths16,t as IconSvgPaths20,e as getIconPaths,m as iconNameToPathsRecordKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t,a as r}from"./index-nKZqXJSi.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-remove-scroll";import"@floating-ui/react-dom";import"react-is";import"react-day-picker";import"react-popper";import"react-transition-group";import"react-uid";import"react-innertext";var i=function(i,o){return t(void 0,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("./allPaths-ZvyseO3W.js")];case 1:return[2,(0,t.sent().getIconPaths)(i,o)]}}))}))};export{i as allPathsLoader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./index-GUn9nFX6.js");require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-remove-scroll"),require("@floating-ui/react-dom"),require("react-is"),require("react-day-picker"),require("react-popper"),require("react-transition-group"),require("react-uid"),require("react-innertext");exports.allPathsLoader=function(r,t){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,Promise.resolve().then((function(){return require("./allPaths-WmpInmc6.js")}))];case 1:return[2,(0,e.sent().getIconPaths)(r,t)]}}))}))};
|