alif-ui 1.0.0

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.txt ADDED
@@ -0,0 +1,5 @@
1
+ Copyright <2024> <Alif Bank>
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
+
5
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ <div style="text-align: center; padding: 10px; margin-top: 20px">
2
+ <img width="200" src="public/alif-logo-ui.svg" alt="Alif logo">
3
+ </div>
4
+
5
+ <hr>
6
+
7
+ <p style="text-align: center">
8
+ alif UI is a React component library that implements Alif's Design System
9
+ </p>
10
+
11
+ # Installation
12
+
13
+ <hr>
14
+
15
+ ```bash
16
+ npm install alif-ui
17
+ ```
18
+ ```bash
19
+ yarn add alif-ui
20
+ ```
21
+
22
+ # Documentation
23
+
24
+ <hr>
25
+
26
+ Visit [https://aui.alif.tj](https://aui.alif.tj) to view the full documentation.
@@ -0,0 +1,7 @@
1
+ <svg width="96" height="34" viewBox="0 0 96 34" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.8596 8.2763H14.42L8.48409 22.8502H12.2854L16.6256 11.5953L20.973 22.8502H24.7672L18.8596 8.2763Z" fill="#00AF66"/>
3
+ <path d="M15.037 33.5662H14.9945C12.7605 33.3463 10.6117 32.6584 8.66139 31.6159C4.92394 29.5663 1.9666 26.1054 0.682955 21.6872C-0.621962 17.2831 0.00212861 12.7584 2.0517 9.04223C3.09422 7.11322 4.52679 5.38279 6.25013 3.99986L6.29268 3.97858C8.86706 1.86518 12.023 0.460976 15.4413 0.0212758C15.4626 0.0212758 15.5619 0 15.5831 0L17.0299 3.5176C16.9873 3.5176 16.888 3.53888 16.8668 3.53888C13.8101 3.72327 10.9946 4.86507 8.72522 6.6948C8.68267 6.73735 8.64721 6.75862 8.60466 6.79408C8.54083 6.83663 8.50537 6.87209 8.44154 6.93592H8.42027C8.39899 6.9572 8.39899 6.9572 8.37771 6.97847C7.09407 8.04226 6.02319 9.333 5.24307 10.7798C3.6332 13.6945 3.15095 17.2334 4.17928 20.673C5.18634 24.1339 7.49831 26.8217 10.4131 28.4316C11.9591 29.2755 13.6683 29.8004 15.4555 29.9564C19.3348 30.2755 22.9942 29.0344 25.8097 26.7366C25.9515 26.6161 26.0721 26.4955 26.2139 26.3962L27.6394 29.9138C24.1644 32.5804 19.7248 33.9846 15.037 33.5662Z" fill="#00AF66"/>
4
+ <path d="M51.4685 6.27534H48.6742V22.601H51.4685V6.27534ZM55.3478 9.55182C56.3548 9.55182 57.0995 8.80717 57.0995 7.78593C57.0995 6.77887 56.3548 6.03422 55.3478 6.03422C54.3194 6.03422 53.5393 6.77887 53.5393 7.78593C53.5393 8.81426 54.3052 9.55182 55.3478 9.55182ZM56.7165 10.9418H53.901V22.601H56.7165V10.9418ZM65.0992 8.34619C65.6027 8.34619 66.2268 8.48803 66.9715 8.80717L67.8579 6.61576C66.8154 6.09095 65.7658 5.82855 64.7233 5.82855C61.9504 5.82855 60.0781 7.4597 60.0781 10.3887V10.9348H58.2271V13.3035H60.0781V22.5939H62.8723V13.3035H66.5105V10.9348H62.8723V10.4738C62.8652 9.09085 63.6524 8.34619 65.0992 8.34619Z" fill="#1A1A1A"/>
5
+ <path d="M43.6673 16.7714C43.6673 17.7785 43.3482 18.6011 42.7028 19.3032C42.0575 19.9841 41.0575 20.3316 40.0504 20.3316C39.0434 20.3316 38.2207 19.9912 37.5753 19.3032C36.9513 18.6224 36.6321 17.7785 36.6321 16.7714C36.6321 15.7644 36.9513 14.9204 37.5753 14.2609C38.2207 13.5588 39.0434 13.2184 40.0504 13.2184C41.0575 13.2184 42.0575 13.5588 42.7028 14.2609C43.3482 14.9417 43.6673 15.7644 43.6673 16.7714ZM43.6035 12.0269C42.561 11.1191 41.2915 10.6582 39.8022 10.6582C38.1569 10.6582 36.5683 11.2397 35.4832 12.3886C34.3769 13.5162 33.8379 14.9843 33.8379 16.7076C33.8379 18.4593 34.384 19.9415 35.4832 21.1117C36.5683 22.296 38.1356 22.8776 39.8022 22.8776C41.327 22.8776 42.4546 22.4379 43.6035 21.5088V22.5939H46.2559V10.9418H43.6035V12.0269Z" fill="#1A1A1A"/>
6
+ <path d="M73.285 16.376V6.104H75.421V16.304C75.421 17.376 75.613 18.288 75.997 19.04C76.381 19.792 76.909 20.352 77.581 20.72C78.269 21.088 79.053 21.272 79.933 21.272C81.277 21.272 82.365 20.848 83.197 20C84.029 19.152 84.445 17.92 84.445 16.304V6.104H86.581V16.376C86.581 17.864 86.293 19.128 85.717 20.168C85.141 21.192 84.349 21.968 83.341 22.496C82.349 23.008 81.213 23.264 79.933 23.264C78.653 23.264 77.509 23.008 76.501 22.496C75.509 21.968 74.725 21.192 74.149 20.168C73.573 19.128 73.285 17.864 73.285 16.376ZM92.8144 6.104V23H90.6784V6.104H92.8144Z" fill="#1A1A1A"/>
7
+ </svg>
@@ -0,0 +1 @@
1
+ console.log("Test");
@@ -0,0 +1 @@
1
+ (function(e){typeof define=="function"&&define.amd?define(e):e()})(function(){"use strict";console.log("Test")});
Binary file
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/lib/main.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "alif-ui",
3
+ "description": "alif UI components pack for React",
4
+ "keywords": [
5
+ "ui kit react",
6
+ "alif ui",
7
+ "react alif ui kit",
8
+ "ui",
9
+ "react",
10
+ "typescript",
11
+ "design system"
12
+ ],
13
+ "author": "Alif Bank's frontend team",
14
+ "homepage": "https://github.com/alifcapital/alif-ui#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/alifcapital/alif-ui.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/alifcapital/alif-ui/issues"
21
+ },
22
+ "license": "ISC",
23
+ "private": false,
24
+ "version": "1.0.0",
25
+ "type": "module",
26
+ "files": ["dist"],
27
+ "main": "./dist/alif-ui.umd.js",
28
+ "module": "./dist/alif-ui.es.js",
29
+ "types": "./dist/main.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "import": "./dist/alif-ui.es.js",
33
+ "require": "./dist/alif-ui.umd.js"
34
+ }
35
+ },
36
+ "scripts": {
37
+ "start": "vite",
38
+ "build": "tsc && vite build",
39
+ "preview": "vite preview",
40
+ "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
41
+ "lint:fix": "eslint --fix --no-error-on-unmatched-pattern 'src/**/*.{jsx,ts,tsx}'",
42
+ "format": "prettier --no-error-on-unmatched-pattern --write src/**/*.{jsx,ts,tsx}",
43
+ "prepare": "husky"
44
+ },
45
+ "dependencies": {
46
+ "react": "^18.2.0",
47
+ "react-dom": "^18.2.0"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "^20.11.24",
51
+ "@types/react": "^18.2.56",
52
+ "@types/react-dom": "^18.2.19",
53
+ "@typescript-eslint/eslint-plugin": "^7.0.2",
54
+ "@typescript-eslint/parser": "^7.0.2",
55
+ "@vitejs/plugin-react": "^4.2.1",
56
+ "eslint": "^8.57.0",
57
+ "eslint-config-prettier": "^9.1.0",
58
+ "eslint-plugin-import": "^2.29.1",
59
+ "eslint-plugin-jsx-a11y": "^6.8.0",
60
+ "eslint-plugin-prettier": "^5.1.3",
61
+ "eslint-plugin-unused-imports": "^3.1.0",
62
+ "husky": "^9.0.11",
63
+ "lint-staged": "^15.2.2",
64
+ "prettier": "^3.2.5",
65
+ "typescript": "^5.2.2",
66
+ "vite": "^5.1.4",
67
+ "vite-plugin-dts": "^3.7.3",
68
+ "vite-plugin-linter": "^2.1.1",
69
+ "vite-tsconfig-paths": "^4.3.1"
70
+ }
71
+ }