sccoreui 0.0.1 → 1.0.1
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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/App.js +11 -0
- package/dist/App.scss +61 -0
- package/dist/assets/flex.css +20970 -0
- package/dist/assets/fonts/Lato-Black.ttf +0 -0
- package/dist/assets/fonts/Lato-Bold.ttf +0 -0
- package/dist/assets/fonts/Lato-Light.ttf +0 -0
- package/dist/assets/fonts/Lato-Thin.ttf +0 -0
- package/dist/assets/sccoreicons.css +1104 -0
- package/dist/assets/sccoreui.css +7916 -0
- package/dist/assets/svg/add.svg +3 -0
- package/dist/assets/svg/close.svg +3 -0
- package/dist/assets/svg/delete.svg +3 -0
- package/dist/assets/svg/down_arrow.svg +3 -0
- package/dist/assets/svg/edit.svg +3 -0
- package/dist/assets/svg/info.svg +3 -0
- package/dist/assets/svg/input-info.svg +0 -0
- package/dist/assets/theme.css +6291 -0
- package/dist/components/accordion/accordion.js +12 -0
- package/dist/components/button/button.js +13 -0
- package/dist/components/dropdown/dropdown.js +20 -0
- package/dist/components/input/input.js +13 -0
- package/dist/index.js +18 -0
- package/dist/types/App.d.ts +4 -0
- package/dist/types/components/accordion/accordion.d.ts +4 -0
- package/dist/types/components/button/button.d.ts +4 -0
- package/dist/types/components/dropdown/dropdown.d.ts +4 -0
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +44 -57
- package/dist/assets/index-12afa55c.js +0 -129
- package/dist/assets/index-4920d72b.css +0 -6
- package/dist/index.html +0 -15
- package/dist/vite.svg +0 -1
- /package/dist/assets/{Lato-Regular-f43f1c77.ttf → fonts/Lato-Regular.ttf} +0 -0
- /package/dist/assets/{primeicons-ce852338.eot → fonts/primeicons.eot} +0 -0
- /package/dist/assets/{primeicons-2f2c4230.svg → fonts/primeicons.svg} +0 -0
- /package/dist/assets/{primeicons-131bc3bf.ttf → fonts/primeicons.ttf} +0 -0
- /package/dist/assets/{primeicons-90a58d3a.woff → fonts/primeicons.woff} +0 -0
- /package/dist/assets/{primeicons-3824be50.woff2 → fonts/primeicons.woff2} +0 -0
- /package/dist/assets/{back-button-efd99b4f.svg → svg/back-button.svg} +0 -0
- /package/dist/assets/{check-3898839b.svg → svg/check.svg} +0 -0
- /package/dist/assets/{done_all-4488959d.svg → svg/done_all.svg} +0 -0
- /package/dist/assets/{remove-675fc2a7.svg → svg/remove.svg} +0 -0
- /package/dist/assets/{sort-down-arrow-8a60e989.svg → svg/sort-down-arrow.svg} +0 -0
- /package/dist/assets/{sort-up-arrow-55226d75.svg → svg/sort-up-arrow.svg} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Igor Gaponov (gapon2401)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# my-react-typescript-package
|
|
2
|
+
|
|
3
|
+
[![NPM version][npm-image]][npm-url]
|
|
4
|
+
[![Build][github-build]][github-build-url]
|
|
5
|
+
![npm-typescript]
|
|
6
|
+
[![License][github-license]][github-license-url]
|
|
7
|
+
|
|
8
|
+
This repo is the example of the article ["How to create and publish React Typescript npm package with demo and automated build"](https://medium.com/@igaponov/how-to-create-and-publish-react-typescript-npm-package-with-demo-and-automated-build-80c40ec28aca).
|
|
9
|
+
|
|
10
|
+
You can clone it and step by step create your own NPM package and publish it.
|
|
11
|
+
|
|
12
|
+
It is simple React counter.
|
|
13
|
+
|
|
14
|
+
[**Live Demo**](https://gapon2401.github.io/my-react-typescript-package/)
|
|
15
|
+
|
|
16
|
+
## Installation:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install my-react-typescript-package --save-dev
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
or
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
yarn add -D my-react-typescript-package
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage :
|
|
29
|
+
|
|
30
|
+
Add `MyCounter` to your component:
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import React from 'react'
|
|
34
|
+
import ReactDOM from 'react-dom/client'
|
|
35
|
+
import { MyCounter } from 'my-react-typescript-package'
|
|
36
|
+
|
|
37
|
+
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
|
|
38
|
+
root.render(
|
|
39
|
+
<React.StrictMode>
|
|
40
|
+
<div>
|
|
41
|
+
<h2>Default counter</h2>
|
|
42
|
+
<MyCounter />
|
|
43
|
+
</div>
|
|
44
|
+
<hr />
|
|
45
|
+
<div>
|
|
46
|
+
<h2>Counter with predefined value</h2>
|
|
47
|
+
<MyCounter value={5} />
|
|
48
|
+
</div>
|
|
49
|
+
</React.StrictMode>,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[npm-url]: https://www.npmjs.com/package/my-react-typescript-package
|
|
55
|
+
[npm-image]: https://img.shields.io/npm/v/my-react-typescript-package
|
|
56
|
+
[github-license]: https://img.shields.io/github/license/gapon2401/my-react-typescript-package
|
|
57
|
+
[github-license-url]: https://github.com/gapon2401/my-react-typescript-package/blob/master/LICENSE
|
|
58
|
+
[github-build]: https://github.com/gapon2401/my-react-typescript-package/actions/workflows/publish.yml/badge.svg
|
|
59
|
+
[github-build-url]: https://github.com/gapon2401/my-react-typescript-package/actions/workflows/publish.yml
|
|
60
|
+
[npm-typescript]: https://img.shields.io/npm/types/my-react-typescript-package
|
package/dist/App.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
require("./App.scss");
|
|
6
|
+
// import Home from '../pages/home';
|
|
7
|
+
const App = () => {
|
|
8
|
+
return (react_1.default.createElement("div", null,
|
|
9
|
+
react_1.default.createElement("div", null)));
|
|
10
|
+
};
|
|
11
|
+
exports.default = App;
|
package/dist/App.scss
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@import url('./assets/theme.css');
|
|
2
|
+
@import url('./assets/sccoreui.css');
|
|
3
|
+
@import url('./assets/sccoreicons.css');
|
|
4
|
+
@import url('./assets/flex.css');
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--fw-600: 600;
|
|
8
|
+
--fw-400: 400;
|
|
9
|
+
--fs-24: 24px;
|
|
10
|
+
--fs-18: 18px;
|
|
11
|
+
--fs-16: 16px;
|
|
12
|
+
--lh:24px;
|
|
13
|
+
--fs-14:14px;
|
|
14
|
+
--grey-bg:#101828;
|
|
15
|
+
--border-none: border-none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@font-face {
|
|
19
|
+
font-family: 'Lato-400';
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
src: url('./assets/fonts/Lato-Regular.ttf') format('truetype');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: 'Lato-600';
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
src: url('./assets/fonts/Lato-Regular.ttf') format('truetype');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
body {
|
|
32
|
+
margin: 0;
|
|
33
|
+
font-family: 'Lato-400', sans-serif;
|
|
34
|
+
-webkit-font-smoothing: antialiased;
|
|
35
|
+
-moz-osx-font-smoothing: grayscale;
|
|
36
|
+
line-height: var(--lh);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
code {
|
|
40
|
+
font-family: 'Lato-400', monospace;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1 {
|
|
44
|
+
font-size: var(--fs-24);
|
|
45
|
+
font-weight: var(--fw-600);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
h2 {
|
|
49
|
+
font-size: var(--fs-18);
|
|
50
|
+
font-weight: var(--fw-600);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
h3 {
|
|
54
|
+
font-size: var(--fs-16);
|
|
55
|
+
font-weight: var(--fw-400);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// p {
|
|
59
|
+
// font-size: var(--fs-16);
|
|
60
|
+
// font-weight: var(--fw-400);
|
|
61
|
+
// }
|