icon.gl 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.
@@ -0,0 +1,100 @@
1
+ /**
2
+ * icon.gl
3
+ *
4
+ * @description Icon Library
5
+ * @author Scape Agency (https://www.scape.agency)
6
+ * @version v1.0.0
7
+ * @copyright 2020-2023 Scape Agency (https://www.scape.agency)
8
+ * @website https://www.icon.gl/
9
+ * @repository https://github.com/scape-agency/icon.gl/
10
+ * @license Apache 2.0 License (https://github.com/scape-agency/icon.gl/blob/main/LICENSE)
11
+ */
12
+ /**
13
+ TABLE OF CONTENTS
14
+ ===============================================================================
15
+ 1.
16
+ 2.
17
+ 3.
18
+ */
19
+ .igl_1x {
20
+ font-size: 1em;
21
+ }
22
+
23
+ .igl_2x {
24
+ font-size: 2em;
25
+ }
26
+
27
+ .igl_3x {
28
+ font-size: 3em;
29
+ }
30
+
31
+ .igl_4x {
32
+ font-size: 4em;
33
+ }
34
+
35
+ .igl_5x {
36
+ font-size: 5em;
37
+ }
38
+
39
+ .igl_6x {
40
+ font-size: 6em;
41
+ }
42
+
43
+ .igl_7x {
44
+ font-size: 7em;
45
+ }
46
+
47
+ .igl_8x {
48
+ font-size: 8em;
49
+ }
50
+
51
+ .igl_9x {
52
+ font-size: 9em;
53
+ }
54
+
55
+ .igl_10x {
56
+ font-size: 10em;
57
+ }
58
+
59
+ .igl_icon-interactive:hover {
60
+ color: #0000cc;
61
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
62
+ transform: scale(1.1);
63
+ transition: all 0.3s ease-in-out;
64
+ }
65
+ .igl_icon-interactive:focus {
66
+ outline: 2px solid #6666ff;
67
+ }
68
+ .igl_icon-interactive:active {
69
+ color: #0000e6;
70
+ }
71
+ .igl_icon-interactive:disabled {
72
+ color: gray;
73
+ cursor: not-allowed;
74
+ }
75
+
76
+ .igl_rotate_90 {
77
+ transform: rotate(90deg);
78
+ }
79
+
80
+ .igl_rotate_180 {
81
+ transform: rotate(180deg);
82
+ }
83
+
84
+ .igl_rotate_270 {
85
+ transform: rotate(270deg);
86
+ }
87
+
88
+ .igl_flip-horizontal {
89
+ transform: scale(-1, 1);
90
+ }
91
+
92
+ .igl_flip-vertical {
93
+ transform: scale(1, -1);
94
+ }
95
+
96
+ .igl_flip-both,
97
+ .igl_flip-horizontal.igl_flip-vertical {
98
+ transform: scale(1, -1);
99
+ }
100
+ /*# sourceMappingURL=to.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["%3Cinput%20css%20qQNsV4%3E"],"names":[],"mappings":"AAAA;;;;;;;;;;CAUC;AACD;;;;;;CAMC;AACD;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;EACd,wCAAwC;EACxC,qBAAqB;EACrB,gCAAgC;AAClC;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,uBAAuB;AACzB;;AAEA;;EAEE,uBAAuB;AACzB","file":"to.css","sourcesContent":["/**\n* icon.gl\n*\n* @description Icon Library\n* @author Scape Agency (https://www.scape.agency)\n* @version v1.0.0\n* @copyright 2020-2023 Scape Agency (https://www.scape.agency)\n* @website https://www.icon.gl/\n* @repository https://github.com/scape-agency/icon.gl/\n* @license Apache 2.0 License (https://github.com/scape-agency/icon.gl/blob/main/LICENSE)\n*/\n/**\nTABLE OF CONTENTS\n===============================================================================\n1.\n2.\n3. \n*/\n.igl_1x {\n font-size: 1em;\n}\n\n.igl_2x {\n font-size: 2em;\n}\n\n.igl_3x {\n font-size: 3em;\n}\n\n.igl_4x {\n font-size: 4em;\n}\n\n.igl_5x {\n font-size: 5em;\n}\n\n.igl_6x {\n font-size: 6em;\n}\n\n.igl_7x {\n font-size: 7em;\n}\n\n.igl_8x {\n font-size: 8em;\n}\n\n.igl_9x {\n font-size: 9em;\n}\n\n.igl_10x {\n font-size: 10em;\n}\n\n.igl_icon-interactive:hover {\n color: #0000cc;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n transition: all 0.3s ease-in-out;\n}\n.igl_icon-interactive:focus {\n outline: 2px solid #6666ff;\n}\n.igl_icon-interactive:active {\n color: #0000e6;\n}\n.igl_icon-interactive:disabled {\n color: gray;\n cursor: not-allowed;\n}\n\n.igl_rotate_90 {\n transform: rotate(90deg);\n}\n\n.igl_rotate_180 {\n transform: rotate(180deg);\n}\n\n.igl_rotate_270 {\n transform: rotate(270deg);\n}\n\n.igl_flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.igl_flip-vertical {\n transform: scale(1, -1);\n}\n\n.igl_flip-both,\n.igl_flip-horizontal.igl_flip-vertical {\n transform: scale(1, -1);\n}"]}
@@ -0,0 +1,2 @@
1
+ .igl_1x{font-size:1em}.igl_2x{font-size:2em}.igl_3x{font-size:3em}.igl_4x{font-size:4em}.igl_5x{font-size:5em}.igl_6x{font-size:6em}.igl_7x{font-size:7em}.igl_8x{font-size:8em}.igl_9x{font-size:9em}.igl_10x{font-size:10em}.igl_icon-interactive:hover{box-shadow:0 2px 4px rgba(0,0,0,.2);color:#00c;transform:scale(1.1);transition:all .3s ease-in-out}.igl_icon-interactive:focus{outline:2px solid #66f}.igl_icon-interactive:active{color:#0000e6}.igl_icon-interactive:disabled{color:gray;cursor:not-allowed}.igl_rotate_90{transform:rotate(90deg)}.igl_rotate_180{transform:rotate(180deg)}.igl_rotate_270{transform:rotate(270deg)}.igl_flip-horizontal{transform:scaleX(-1)}.igl_flip-both,.igl_flip-horizontal.igl_flip-vertical,.igl_flip-vertical{transform:scaleY(-1)}
2
+ /*# sourceMappingURL=to.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["%3Cinput%20css%20GR0uaz%3E"],"names":[],"mappings":"AAAA,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,QAAQ,aAAa,CAAC,SAAS,cAAc,CAAC,4BAAuC,mCAAmC,CAA9C,UAAU,CAAqC,oBAAoB,CAAC,8BAA8B,CAAC,4BAA4B,sBAAsB,CAAC,6BAA6B,aAAa,CAAC,+BAA+B,UAAU,CAAC,kBAAkB,CAAC,eAAe,uBAAuB,CAAC,gBAAgB,wBAAwB,CAAC,gBAAgB,wBAAwB,CAAC,qBAAqB,oBAAsB,CAA2C,yEAAsD,oBAAsB","file":"to.css","sourcesContent":[".igl_1x{font-size:1em}.igl_2x{font-size:2em}.igl_3x{font-size:3em}.igl_4x{font-size:4em}.igl_5x{font-size:5em}.igl_6x{font-size:6em}.igl_7x{font-size:7em}.igl_8x{font-size:8em}.igl_9x{font-size:9em}.igl_10x{font-size:10em}.igl_icon-interactive:hover{color:#00c;box-shadow:0 2px 4px rgba(0,0,0,.2);transform:scale(1.1);transition:all .3s ease-in-out}.igl_icon-interactive:focus{outline:2px solid #66f}.igl_icon-interactive:active{color:#0000e6}.igl_icon-interactive:disabled{color:gray;cursor:not-allowed}.igl_rotate_90{transform:rotate(90deg)}.igl_rotate_180{transform:rotate(180deg)}.igl_rotate_270{transform:rotate(270deg)}.igl_flip-horizontal{transform:scale(-1, 1)}.igl_flip-vertical{transform:scale(1, -1)}.igl_flip-both,.igl_flip-horizontal.igl_flip-vertical{transform:scale(1, -1)}"]}
Binary file
Binary file
Binary file
Binary file
package/js/icon.gl.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // Copyright 2020 Scape Agency BV
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"t",{value:!0});
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "icon.gl",
3
+ "version": "0.0.1",
4
+ "description": "icon.gl is a icon library and framework developed by Scape Agency.",
5
+ "keywords": [
6
+ "icon.gl",
7
+ "stylescape",
8
+ "icon",
9
+ "icons",
10
+ "icon-library",
11
+ "font",
12
+ "sprite",
13
+ "svg",
14
+ "sass",
15
+ "scss",
16
+ "woff",
17
+ "woff2",
18
+ "responsive",
19
+ "front-end",
20
+ "framework",
21
+ "web"
22
+ ],
23
+ "license": "Apache-2.0",
24
+ "homepage": "https://www.icon.gl/",
25
+ "main": "index.js",
26
+ "files": [
27
+ "svg/**/*.{svg}",
28
+ "js/**/*.{js,map}",
29
+ "ts/**/*.ts",
30
+ "css/**/*.{css,map}",
31
+ "scss/**/*.{scss}",
32
+ "font/**/*.{eot,otf,ttf,woff,woff2}",
33
+ "!.DS_Store"
34
+ ]
35
+ }
package/ts/index.ts ADDED
@@ -0,0 +1,16 @@
1
+ // Copyright 2020 Scape Agency BV
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+
16
+ export {};
@@ -0,0 +1,50 @@
1
+ // Copyright 2023 Scape Agency BV
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+
16
+ // ============================================================================
17
+ // Import
18
+ // ============================================================================
19
+
20
+ 'use strict';
21
+
22
+ import './style/svg-icon-element.less';
23
+
24
+
25
+ // ============================================================================
26
+ // Classes
27
+ // ============================================================================
28
+
29
+ class SvgIconElement extends HTMLElement {
30
+
31
+ private generateSvgIcon(url: string, id: string): string {
32
+ return `<svg class="si"><use xlink:href="${url}#${id}"></use></svg>`;
33
+ }
34
+
35
+ private setContent(): void {
36
+ const url = this.getAttribute('url') || '';
37
+ const type = this.getAttribute('type') || '';
38
+ this.innerHTML = this.generateSvgIcon(url, type);
39
+ }
40
+
41
+ connectedCallback(): void {
42
+ this.setContent();
43
+ }
44
+
45
+ attributeChangedCallback(): void {
46
+ this.setContent();
47
+ }
48
+ }
49
+
50
+ window.customElements.define('svg-icon', SvgIconElement);