@mulylib/icons 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/README.md ADDED
Binary file
@@ -0,0 +1,12 @@
1
+ <vector xmlns:android="http://schemas.android.com/apk/res/android"
2
+ android:width="20dp"
3
+ android:height="20dp"
4
+ android:viewportWidth="20"
5
+ android:viewportHeight="20">
6
+ <path
7
+ android:fillColor="#FF688238"
8
+ android:pathData="M10 9.8c2.19 0 3.96-1.78 3.96-3.97 0-2.18-1.77-3.96-3.96-3.96S6.04 3.66 6.04 5.83C6.04 8.02 7.81 9.8 10 9.8Z"/>
9
+ <path
10
+ android:fillColor="#FF688238"
11
+ android:pathData="M16.46 17.57c-0.02 0.15-0.1 0.3-0.2 0.4-0.12 0.1-0.27 0.15-0.43 0.16H4.17c-0.16 0-0.3-0.06-0.42-0.17-0.12-0.1-0.19-0.24-0.2-0.4 0-0.15-0.4-3.9 1.73-6.3 0.57-0.64 1.29-1.13 2.1-1.43 0.77 0.52 1.69 0.8 2.62 0.8 0.94 0 1.85-0.28 2.63-0.8 0.8 0.3 1.52 0.8 2.1 1.44 2.13 2.39 1.75 6.14 1.73 6.3Z"/>
12
+ </vector>
@@ -0,0 +1,22 @@
1
+ <vector xmlns:android="http://schemas.android.com/apk/res/android"
2
+ android:width="24dp"
3
+ android:height="24dp"
4
+ android:viewportWidth="24"
5
+ android:viewportHeight="24">
6
+ <path
7
+ android:fillColor="#FF808080"
8
+ android:fillType="evenOdd"
9
+ android:pathData="M12.2 3c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3Zm-5 3c0-2.76 2.24-5 5-5s5 2.24 5 5-2.24 5-5 5-5-2.24-5-5Z"/>
10
+ <path
11
+ android:fillColor="#FF808080"
12
+ android:fillType="evenOdd"
13
+ android:pathData="M9.37 8.9H15c1.95 0 3.63 0.97 4.7 2.4 0.33 0.44 0.24 1.07-0.2 1.4-0.44 0.33-1.07 0.24-1.4-0.2-0.73-0.98-1.85-1.6-3.1-1.6H9.43c-1.37 0.09-2.58 0.82-3.3 1.87L6.1 12.8l-0.03 0.04c-0.38 0.45-0.6 0.97-0.68 1.58v0.03l-0.8 4.31C4.49 19.46 5.02 20 5.6 20H14c0.55 0 1 0.45 1 1s-0.45 1-1 1H5.6c-1.81 0-3.28-1.65-2.99-3.55v-0.02l0.8-4.29c0.13-0.95 0.49-1.81 1.1-2.55 1.06-1.52 2.83-2.57 4.83-2.69h0.03Z"/>
14
+ <path
15
+ android:fillColor="#FF808080"
16
+ android:fillType="evenOdd"
17
+ android:pathData="M17.3 13.4c-2.04 0-3.7 1.65-3.7 3.7 0 2.04 1.66 3.7 3.7 3.7s3.7-1.66 3.7-3.7c0-2.05-1.66-3.7-3.7-3.7Zm-5.7 3.7c0-3.15 2.55-5.7 5.7-5.7 3.15 0 5.7 2.55 5.7 5.7 0 3.15-2.55 5.7-5.7 5.7-3.15 0-5.7-2.55-5.7-5.7Z"/>
18
+ <path
19
+ android:fillColor="#FF808080"
20
+ android:fillType="evenOdd"
21
+ android:pathData="M18.3 15.3c0.38-0.4 1.02-0.4 1.4 0 0.4 0.38 0.4 1.02 0 1.4l-2 2c-0.38 0.4-1.02 0.4-1.4 0l-1-1c-0.4-0.38-0.4-1.02 0-1.4 0.38-0.4 1.02-0.4 1.4 0l0.3 0.29 1.3-1.3Z"/>
22
+ </vector>
@@ -0,0 +1,12 @@
1
+ <vector xmlns:android="http://schemas.android.com/apk/res/android"
2
+ android:width="24dp"
3
+ android:height="24dp"
4
+ android:viewportWidth="24"
5
+ android:viewportHeight="24">
6
+ <path
7
+ android:fillColor="#FF808080"
8
+ android:pathData="M17 22H7c-1.7 0-3-1.3-3-3V5c0-1.7 1.3-3 3-3h10c1.7 0 3 1.3 3 3v14c0 1.7-1.3 3-3 3ZM7 4C6.4 4 6 4.4 6 5v14c0 0.6 0.4 1 1 1h10c0.6 0 1-0.4 1-1V5c0-0.6-0.4-1-1-1H7Z"/>
9
+ <path
10
+ android:fillColor="#FF808080"
11
+ android:pathData="M14 6h-4C9.4 6 9 5.6 9 5V2c0-0.6 0.4-1 1-1h4c0.6 0 1 0.4 1 1v3c0 0.6-0.4 1-1 1Z"/>
12
+ </vector>
@@ -0,0 +1,4 @@
1
+ export declare class IconComponent {
2
+ name: string;
3
+ get svg(): string;
4
+ }
@@ -0,0 +1,84 @@
1
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
2
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
5
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
6
+ var _, done = false;
7
+ for (var i = decorators.length - 1; i >= 0; i--) {
8
+ var context = {};
9
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
10
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
11
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
12
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
13
+ if (kind === "accessor") {
14
+ if (result === void 0) continue;
15
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
16
+ if (_ = accept(result.get)) descriptor.get = _;
17
+ if (_ = accept(result.set)) descriptor.set = _;
18
+ if (_ = accept(result.init)) initializers.unshift(_);
19
+ }
20
+ else if (_ = accept(result)) {
21
+ if (kind === "field") initializers.unshift(_);
22
+ else descriptor[key] = _;
23
+ }
24
+ }
25
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
26
+ done = true;
27
+ };
28
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
29
+ var useValue = arguments.length > 2;
30
+ for (var i = 0; i < initializers.length; i++) {
31
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
32
+ }
33
+ return useValue ? value : void 0;
34
+ };
35
+ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
36
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
37
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
38
+ };
39
+ import { Component, Input } from '@angular/core';
40
+ import { ICONS } from './icons';
41
+ let IconComponent = (() => {
42
+ let _classDecorators = [Component({
43
+ selector: 'app-icon',
44
+ standalone: true,
45
+ template: `
46
+ <span class="app-icon" [innerHTML]="svg"></span>
47
+ `,
48
+ styles: [`
49
+ .app-icon svg {
50
+ width: 1em;
51
+ height: 1em;
52
+ fill: currentColor;
53
+ display: inline-block;
54
+ }
55
+ `]
56
+ })];
57
+ let _classDescriptor;
58
+ let _classExtraInitializers = [];
59
+ let _classThis;
60
+ let _name_decorators;
61
+ let _name_initializers = [];
62
+ let _name_extraInitializers = [];
63
+ var IconComponent = _classThis = class {
64
+ get svg() {
65
+ return ICONS[this.name] || '';
66
+ }
67
+ constructor() {
68
+ this.name = __runInitializers(this, _name_initializers, void 0);
69
+ __runInitializers(this, _name_extraInitializers);
70
+ }
71
+ };
72
+ __setFunctionName(_classThis, "IconComponent");
73
+ (() => {
74
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
75
+ _name_decorators = [Input()];
76
+ __esDecorate(null, null, _name_decorators, { kind: "field", name: "name", static: false, private: false, access: { has: obj => "name" in obj, get: obj => obj.name, set: (obj, value) => { obj.name = value; } }, metadata: _metadata }, _name_initializers, _name_extraInitializers);
77
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
78
+ IconComponent = _classThis = _classDescriptor.value;
79
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
80
+ __runInitializers(_classThis, _classExtraInitializers);
81
+ })();
82
+ return IconComponent = _classThis;
83
+ })();
84
+ export { IconComponent };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * AUTO-GENERATED FILE — DO NOT EDIT.
3
+ * Generated from raw-svg/*.svg
4
+ */
5
+ export declare const ICONS: Record<string, string>;
package/dist/icons.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * AUTO-GENERATED FILE — DO NOT EDIT.
3
+ * Generated from raw-svg/*.svg
4
+ */
5
+ export const ICONS = {
6
+ "ic_account": `<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'>
7
+ "ic_active_account": `<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M12.2 3C10.5432 3 9.20001 4.34315 9.20001 6C9.20001 7.65685 10.5432 9 12.2 9C13.8569 9 15.2 7.65685 15.2 6C15.2 4.34315 13.8569 3 12.2 3ZM7.20001 6C7.20001 3.23858 9.43859 1 12.2 1C14.9614 1 17.2 3.23858 17.2 6C17.2 8.76142 14.9614 11 12.2 11C9.43859 11 7.20001 8.76142 7.20001 6Z' fill='#808080'/><path fill-rule='evenodd' clip-rule='evenodd' d='M9.37065 8.89844H15C16.9474 8.89844 18.6316 9.87392 19.7 11.2984C20.0314 11.7403 19.9419 12.3671 19.5 12.6984C19.0582 13.0298 18.4314 12.9403 18.1 12.4984C17.3684 11.523 16.2527 10.8984 15 10.8984H9.43094C8.05977 10.9879 6.84839 11.7187 6.12223 12.7676L6.09682 12.8043L6.06825 12.8386C5.69491 13.2866 5.46938 13.806 5.39231 14.4225L5.38861 14.452L4.58645 18.7637C4.48819 19.4526 5.01754 19.9984 5.60003 19.9984H14C14.5523 19.9984 15 20.4462 15 20.9984C15 21.5507 14.5523 21.9984 14 21.9984H5.60003C3.78623 21.9984 2.31861 20.3512 2.61166 18.4464L2.61404 18.4309L3.41172 14.1434C3.53663 13.1875 3.90023 12.3294 4.50313 11.593C5.57467 10.0685 7.33972 9.0179 9.34131 8.90016L9.37065 8.89844Z' fill='#808080'/><path fill-rule='evenodd' clip-rule='evenodd' d='M17.3 13.3984C15.2565 13.3984 13.6 15.055 13.6 17.0984C13.6 19.1419 15.2565 20.7984 17.3 20.7984C19.3434 20.7984 21 19.1419 21 17.0984C21 15.055 19.3434 13.3984 17.3 13.3984ZM11.6 17.0984C11.6 13.9504 14.152 11.3984 17.3 11.3984C20.448 11.3984 23 13.9504 23 17.0984C23 20.2465 20.448 22.7984 17.3 22.7984C14.152 22.7984 11.6 20.2465 11.6 17.0984Z' fill='#808080'/><path fill-rule='evenodd' clip-rule='evenodd' d='M18.2929 15.2929C18.6834 14.9024 19.3166 14.9024 19.7071 15.2929C20.0976 15.6834 20.0976 16.3166 19.7071 16.7071L17.7071 18.7071C17.3166 19.0976 16.6834 19.0976 16.2929 18.7071L15.2929 17.7071C14.9024 17.3166 14.9024 16.6834 15.2929 16.2929C15.6834 15.9024 16.3166 15.9024 16.7071 16.2929L17 16.5858L18.2929 15.2929Z' fill='#808080'/></svg>`,
8
+ "ic_activity": `<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M17 22H7C5.3 22 4 20.7 4 19V5C4 3.3 5.3 2 7 2H17C18.7 2 20 3.3 20 5V19C20 20.7 18.7 22 17 22ZM7 4C6.4 4 6 4.4 6 5V19C6 19.6 6.4 20 7 20H17C17.6 20 18 19.6 18 19V5C18 4.4 17.6 4 17 4H7Z' fill='#808080'/><path d='M14 6H10C9.4 6 9 5.6 9 5V2C9 1.4 9.4 1 10 1H14C14.6 1 15 1.4 15 2V5C15 5.6 14.6 6 14 6Z' fill='#808080'/></svg>`
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from './icon.component';
2
+ export * from './icons';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './icon.component';
2
+ export * from './icons';
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@mulylib/icons",
3
+ "version": "1.0.0",
4
+ "description": "MAI Icon Library",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "android-drawable"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "prepare": "npm run build",
14
+ "android:generate": "node scripts/generate-android-icons.js",
15
+ "web:generate": "node scripts/generate-web-icons.js"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "peerDependencies": {
21
+ "@angular/core": ">=18.0.0",
22
+ "@angular/common": ">=18.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "@angular/core": "^20.0.0",
26
+ "@angular/common": "^20.0.0",
27
+ "svg2vectordrawable": "^2.9.1",
28
+ "typescript": "^5.0.0"
29
+ },
30
+ "author": "legamuka",
31
+ "license": "ISC"
32
+ }