equestrian-ui-kit 0.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/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": true,
4
+ "jsxSingleQuote": true,
5
+ "bracketSpacing": true,
6
+ "trailingComma": "all",
7
+ "printWidth": 160,
8
+ "tabWidth": 4,
9
+ "arrowParens": "always",
10
+ "endOfLine": "lf"
11
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 surpri6e
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,3 @@
1
+ # Equestrian UI kit
2
+
3
+ This repository was created for use in another repository as UI kit.
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IText {
3
+ children: React.ReactNode;
4
+ color: 'black' | 'darkGray';
5
+ isParagraph?: boolean;
6
+ className?: string;
7
+ }
8
+ declare const Text: React.FC<IText>;
9
+ export default Text;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const Text_module_scss_1 = __importDefault(require("./Text.module.scss"));
8
+ const Text = ({ children, color, isParagraph, className }) => {
9
+ const colorStyle = color === 'black' ? Text_module_scss_1.default.textBlack : Text_module_scss_1.default.textDarkGray;
10
+ const isParagraphStyle = isParagraph ? Text_module_scss_1.default.textParagraph : '';
11
+ const classNameStyle = className ? className : '';
12
+ return <p className={[colorStyle, isParagraphStyle, classNameStyle].join(' ')}>{children}</p>;
13
+ };
14
+ exports.default = Text;
@@ -0,0 +1,24 @@
1
+ @import '../../styles.scss';
2
+ @import '../../vars.scss';
3
+
4
+ .text {
5
+ font-family: 'Onest', sans-serif;
6
+
7
+ font-weight: 400;
8
+ font-size: 16px;
9
+ line-height: 27px;
10
+
11
+ display: inline;
12
+ }
13
+
14
+ .textBlack {
15
+ color: $black;
16
+ }
17
+
18
+ .textDarkGray {
19
+ color: $darkGray;
20
+ }
21
+
22
+ .textParagraph {
23
+ display: block;
24
+ }
@@ -0,0 +1,4 @@
1
+ declare module '*.module.scss' {
2
+ const content: Record<string, string>;
3
+ export default content;
4
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import Text from './components/Text/Text';
2
+ export { Text };
package/lib/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Text = void 0;
7
+ const Text_1 = __importDefault(require("./components/Text/Text"));
8
+ exports.Text = Text_1.default;
@@ -0,0 +1,108 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Onest&display=swap');
2
+ @import url('https://fonts.googleapis.com/css2?family=Onest:wght@500&display=swap');
3
+ @import url('https://fonts.googleapis.com/css2?family=Onest:wght@700&display=swap');
4
+
5
+ * {
6
+ padding: 0px;
7
+ margin: 0px;
8
+ border: none;
9
+ }
10
+
11
+ *,
12
+ *::before,
13
+ *::after {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ a,
18
+ a:link,
19
+ a:visited {
20
+ text-decoration: none;
21
+ }
22
+
23
+ a:hover {
24
+ text-decoration: none;
25
+ }
26
+
27
+ aside,
28
+ nav,
29
+ footer,
30
+ header,
31
+ section,
32
+ main {
33
+ display: block;
34
+ }
35
+
36
+ h1,
37
+ h2,
38
+ h3,
39
+ h4,
40
+ h5,
41
+ h6,
42
+ p {
43
+ font-size: inherit;
44
+ font-weight: inherit;
45
+ }
46
+
47
+ ul,
48
+ ul li {
49
+ list-style: none;
50
+ }
51
+
52
+ img {
53
+ vertical-align: top;
54
+ }
55
+
56
+ img,
57
+ svg {
58
+ max-width: 100%;
59
+ height: auto;
60
+ }
61
+
62
+ address {
63
+ font-style: normal;
64
+ }
65
+
66
+ input,
67
+ textarea,
68
+ button,
69
+ select {
70
+ font-family: inherit;
71
+ font-size: inherit;
72
+ color: inherit;
73
+ background-color: transparent;
74
+ }
75
+
76
+ input::-ms-clear {
77
+ display: none;
78
+ }
79
+
80
+ textarea {
81
+ resize: vertical;
82
+ }
83
+
84
+ button,
85
+ input[type='submit'] {
86
+ display: inline-block;
87
+ box-shadow: none;
88
+ background-color: transparent;
89
+ background: none;
90
+ cursor: pointer;
91
+ }
92
+
93
+ button::-moz-focus-inner {
94
+ padding: 0;
95
+ border: 0;
96
+ }
97
+
98
+ label {
99
+ cursor: pointer;
100
+ }
101
+
102
+ legend {
103
+ display: block;
104
+ }
105
+
106
+ input[type='file'] {
107
+ max-width: 100%;
108
+ }
package/lib/vars.scss ADDED
@@ -0,0 +1,9 @@
1
+ $white: #ffffff;
2
+ $black: #000000;
3
+ $gold: #a18a68;
4
+
5
+ $darkGray: #707070;
6
+ $gray: #d8d8d8;
7
+ $lightGray: #efefef;
8
+
9
+ $red: #d82700;
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "equestrian-ui-kit",
3
+ "version": "0.0.1",
4
+ "description": "The UI kit for main project.",
5
+ "main": "lib/index.js",
6
+ "type": "commonjs",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/surpri6e/equestrian-ui-kit.git"
10
+ },
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "deploy": "npm publish",
14
+ "format": "npx prettier 'lib/**/*.{js,ts,json,jsx,tsx,scss}' --write"
15
+ },
16
+ "author": "surpri6e",
17
+ "license": "MIT",
18
+ "devDependencies": {
19
+ "@types/node": "^20.14.2",
20
+ "@types/react": "^19.2.10",
21
+ "prettier": "^3.3.2"
22
+ },
23
+ "dependencies": {
24
+ "react": "^19.2.4",
25
+ "react-router-dom": "^7.13.0",
26
+ "sass": "^1.97.3",
27
+ "scss": "^0.2.4",
28
+ "typescript": "^5.4.5"
29
+ },
30
+ "keywords": [
31
+ "equestrian"
32
+ ],
33
+ "bugs": {
34
+ "url": "https://github.com/surpri6e/equestrian-ui-kit/issues"
35
+ },
36
+ "homepage": "https://github.com/surpri6e/equestrian-ui-kit#readme"
37
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES6",
4
+ "module": "CommonJS",
5
+ "declaration": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "strict": true,
9
+ "skipLibCheck": true,
10
+ "jsx": "preserve"
11
+ }
12
+ }