@odx/icons 1.0.0 → 1.2.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/CHANGELOG.md +14 -0
- package/README.md +25 -1
- package/core/demo-poster.html +2 -2
- package/core/utils.scss +32 -0
- package/medical/demo-poster.html +2 -2
- package/medical/utils.scss +32 -0
- package/package.json +2 -1
- package/safety/demo-poster.html +5738 -5
- package/safety/font.css +4423 -1
- package/safety/font.eot +0 -0
- package/safety/font.scss +4424 -2
- package/safety/font.svg +2312 -2
- package/safety/font.ttf +0 -0
- package/safety/font.woff +0 -0
- package/safety/font.woff2 +0 -0
- package/safety/iconmap.scss +1050 -1
- package/safety/metadata.json +3277 -1
- package/safety/utils.scss +32 -0
- package/core/mixins.scss +0 -8
- package/medical/mixins.scss +0 -8
- package/safety/mixins.scss +0 -8
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# [1.2.0](https://dev.azure.com/draeger/ODXP/_git/odx-icons/compare/v1.1.0...v1.2.0) (2023-04-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add safety icon set ([b945ab8](https://dev.azure.com/draeger/ODXP/_git/odx-icons/commit/b945ab8ebfbbf2a53ff77fad57e38b451663237a))
|
|
7
|
+
* **icons:** removed core icons from safety set ([3391834](https://dev.azure.com/draeger/ODXP/_git/odx-icons/commit/3391834e586c6a116bad17ff772f39f38b1965d1))
|
|
8
|
+
|
|
9
|
+
# 1.0.0 (2023-04-13)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* correct mixin for css inline icons ([16b08c8](https://dev.azure.com/draeger/ODXP/_git/odx-icons/commit/16b08c8fccabc85d6d26dd8fa36b5ba9f3f2d01b))
|
package/README.md
CHANGED
|
@@ -12,11 +12,35 @@ npm install @odx/icons
|
|
|
12
12
|
|
|
13
13
|
## Use
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
@odx/icons contains multiple icon sets for different types of applications:
|
|
16
|
+
|
|
17
|
+
*core: Icons used across applications of all Dräger entities
|
|
18
|
+
*medical: (Under consstruction) Icons for use in specific applications of the Dräger Medical division
|
|
19
|
+
*safety: Icons for use in specific applications of the Dräger Safety division
|
|
20
|
+
|
|
21
|
+
Import one or more icon sets into your ``styles.scss``, for example:
|
|
16
22
|
|
|
17
23
|
```css
|
|
18
24
|
@import 'node_modules/@odx/icons/core/font.css';
|
|
25
|
+
@import 'node_modules/@odx/icons/medical/font.css';
|
|
26
|
+
@import 'node_modules/@odx/icons/safety/font.css';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
In you HTML template you can now include icons as easy as:
|
|
30
|
+
|
|
19
31
|
```
|
|
32
|
+
<i class="odx-icon" data-icon-set="core" data-icon-name="placeholder">
|
|
33
|
+
<span></span>
|
|
34
|
+
</i>
|
|
35
|
+
|
|
36
|
+
<i class="odx-icon" data-icon-set="safety" data-icon-name="add">
|
|
37
|
+
<span></span>
|
|
38
|
+
</i>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The ``<span>`` elements are needed to display multicolor icons correctly.
|
|
42
|
+
|
|
43
|
+
Demo posters with all icons contained in the icon sets are part of this package.
|
|
20
44
|
|
|
21
45
|
[npm-icon]: https://nodei.co/npm/@odx/icons.svg?downloads=true
|
|
22
46
|
[npm-url]: https://npmjs.org/package/@odx/icons
|
package/core/demo-poster.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<title>@odx/icons 1.
|
|
5
|
+
<title>@odx/icons 1.2.0</title>
|
|
6
6
|
<link rel="stylesheet" type="text/css" href="font.css" media="screen" />
|
|
7
7
|
<style>
|
|
8
8
|
* {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<body>
|
|
92
92
|
<header class="page-header">
|
|
93
93
|
<h1 class="page-title">
|
|
94
|
-
@odx/icons 1.
|
|
94
|
+
@odx/icons 1.2.0
|
|
95
95
|
</h1>
|
|
96
96
|
<div class="icon-count">
|
|
97
97
|
Iconset: core - 294 icons
|
package/core/utils.scss
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'iconmap';
|
|
3
|
+
|
|
4
|
+
@function get-icon-glyph($iconName) {
|
|
5
|
+
@return map.get($map: iconmap.$glyphs, $key: $iconName);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@function get-font-family() {
|
|
9
|
+
@return "odx-icon-core";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// convenience mixin defining inline css icons,
|
|
13
|
+
// including all style-specific font properties,
|
|
14
|
+
// and the ::before. Only works for single-colored icons!
|
|
15
|
+
// To use multicolor icons inline, manually map the glyphs
|
|
16
|
+
// to content in pseudo elements using the "get-icon-glyph" function
|
|
17
|
+
|
|
18
|
+
@mixin icon($iconName) {
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-variant: normal;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
font-family: get-font-family();
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
|
|
29
|
+
&::before {
|
|
30
|
+
content: get-icon-glyph($iconName);
|
|
31
|
+
}
|
|
32
|
+
}
|
package/medical/demo-poster.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<title>@odx/icons 1.
|
|
5
|
+
<title>@odx/icons 1.2.0</title>
|
|
6
6
|
<link rel="stylesheet" type="text/css" href="font.css" media="screen" />
|
|
7
7
|
<style>
|
|
8
8
|
* {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<body>
|
|
92
92
|
<header class="page-header">
|
|
93
93
|
<h1 class="page-title">
|
|
94
|
-
@odx/icons 1.
|
|
94
|
+
@odx/icons 1.2.0
|
|
95
95
|
</h1>
|
|
96
96
|
<div class="icon-count">
|
|
97
97
|
Iconset: medical - 1 icons
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'iconmap';
|
|
3
|
+
|
|
4
|
+
@function get-icon-glyph($iconName) {
|
|
5
|
+
@return map.get($map: iconmap.$glyphs, $key: $iconName);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@function get-font-family() {
|
|
9
|
+
@return "odx-icon-medical";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// convenience mixin defining inline css icons,
|
|
13
|
+
// including all style-specific font properties,
|
|
14
|
+
// and the ::before. Only works for single-colored icons!
|
|
15
|
+
// To use multicolor icons inline, manually map the glyphs
|
|
16
|
+
// to content in pseudo elements using the "get-icon-glyph" function
|
|
17
|
+
|
|
18
|
+
@mixin icon($iconName) {
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-variant: normal;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
font-family: get-font-family();
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
|
|
29
|
+
&::before {
|
|
30
|
+
content: get-icon-glyph($iconName);
|
|
31
|
+
}
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odx/icons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"author": "Drägerwerk AG & Co. KGaA",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
+
"CHANGELOG.md",
|
|
10
11
|
"core",
|
|
11
12
|
"safety",
|
|
12
13
|
"medical"
|