@odx/icons 4.0.0-rc.28 → 4.0.0-rc.29
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/dist/generated/core.d.ts +386 -386
- package/dist/generated/core.js +386 -386
- package/dist/generated/dangerous-goods.d.ts +10 -10
- package/dist/generated/dangerous-goods.js +10 -10
- package/dist/generated/medical.d.ts +36 -36
- package/dist/generated/medical.js +36 -36
- package/dist/generated/safety.d.ts +675 -675
- package/dist/generated/safety.js +675 -675
- package/dist/generated/uib-legacy.d.ts +858 -858
- package/dist/generated/uib-legacy.js +858 -858
- package/dist/src/main.d.ts +9 -3
- package/dist/src/main.js +16 -15
- package/package.json +10 -3
package/dist/src/main.d.ts
CHANGED
|
@@ -2,13 +2,19 @@ import { type ExtractAssetName, type ExtractAssetSet, OdxAssetElement } from '@o
|
|
|
2
2
|
declare global {
|
|
3
3
|
export interface _OdxIcon {
|
|
4
4
|
}
|
|
5
|
-
export type OdxIconName = keyof _OdxIcon | ExtractAssetName<keyof _OdxIcon>;
|
|
6
|
-
export type OdxIconSet = ExtractAssetSet<keyof _OdxIcon>;
|
|
7
5
|
interface HTMLElementTagNameMap {
|
|
8
6
|
'odx-icon': OdxIconElement;
|
|
9
7
|
}
|
|
10
8
|
}
|
|
11
|
-
export
|
|
9
|
+
export type OdxIconName = keyof _OdxIcon | ExtractAssetName<keyof _OdxIcon>;
|
|
10
|
+
export type OdxIconSet = ExtractAssetSet<keyof _OdxIcon>;
|
|
11
|
+
export interface OdxIconElement {
|
|
12
|
+
set name(value: OdxIconName);
|
|
13
|
+
get name(): OdxIconName;
|
|
14
|
+
set set(value: OdxIconSet);
|
|
15
|
+
get set(): OdxIconSet;
|
|
16
|
+
}
|
|
17
|
+
export declare class OdxIconElement extends OdxAssetElement {
|
|
12
18
|
static readonly assetAttributes: [{
|
|
13
19
|
readonly name: "color";
|
|
14
20
|
readonly values: ["currentColor"];
|
package/dist/src/main.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { OdxAssetElement, registerAssetElement } from '@odx/assets-utils';
|
|
2
|
-
const styles = `
|
|
3
|
-
:host {
|
|
4
|
-
--rotate: 0deg;
|
|
5
|
-
|
|
6
|
-
transform-origin: 50% 50%;
|
|
7
|
-
transform: rotate(var(--rotate));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host([size="xs"]) { --size: var(--odx-size-100, 16px); }
|
|
11
|
-
:host([size="sm"]) { --size: var(--odx-size-125, 20px); }
|
|
12
|
-
:host([size="md"]) { --size: var(--odx-size-150, 24px); }
|
|
13
|
-
:host([size="lg"]) { --size: var(--odx-size-200, 32px); }
|
|
14
|
-
:host([size="xl"]) { --size: var(--odx-size-225, 36px); }
|
|
15
|
-
`;
|
|
16
2
|
export class OdxIconElement extends OdxAssetElement {
|
|
17
3
|
static assetAttributes = [
|
|
18
4
|
{ name: 'color', values: ['currentColor'], attributes: ['fill', 'stroke'] },
|
|
19
5
|
];
|
|
20
|
-
static styles = [
|
|
6
|
+
static styles = [
|
|
7
|
+
`
|
|
8
|
+
:host {
|
|
9
|
+
--rotate: 0deg;
|
|
10
|
+
|
|
11
|
+
transform-origin: 50% 50%;
|
|
12
|
+
transform: rotate(var(--rotate));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([size="xs"]) { --size: var(--odx-size-100, 16px); }
|
|
16
|
+
:host([size="sm"]) { --size: var(--odx-size-125, 20px); }
|
|
17
|
+
:host([size="md"]) { --size: var(--odx-size-150, 24px); }
|
|
18
|
+
:host([size="lg"]) { --size: var(--odx-size-200, 32px); }
|
|
19
|
+
:host([size="xl"]) { --size: var(--odx-size-225, 36px); }
|
|
20
|
+
`,
|
|
21
|
+
];
|
|
21
22
|
namespace = 'odx-icon';
|
|
22
23
|
defaultSet = 'core';
|
|
23
24
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odx/icons",
|
|
3
3
|
"description": "A library of icon assets for ODX",
|
|
4
|
-
"version": "4.0.0-rc.
|
|
4
|
+
"version": "4.0.0-rc.29",
|
|
5
5
|
"author": "Drägerwerk AG & Co.KGaA",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://odx.draeger.com",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"LICENSE",
|
|
11
|
+
"!*.tsbuildinfo",
|
|
12
|
+
"!*.map",
|
|
13
|
+
"main.scss",
|
|
14
|
+
"generated/all.scss"
|
|
15
|
+
],
|
|
9
16
|
"type": "module",
|
|
10
17
|
"scripts": {
|
|
11
18
|
"build": "rm -rf dist && tsc --build",
|
|
@@ -14,7 +21,7 @@
|
|
|
14
21
|
"generate-assets": "npx generate-assets && biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
|
|
15
22
|
},
|
|
16
23
|
"dependencies": {
|
|
17
|
-
"@odx/assets-utils": "^1.3.
|
|
24
|
+
"@odx/assets-utils": "^1.3.1"
|
|
18
25
|
},
|
|
19
26
|
"devDependencies": {
|
|
20
27
|
"@odx/assets-cli": "*",
|