@triptease/tt-icon 1.1.18 → 1.1.19
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/src/types.d.ts +3 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +2 -2
package/dist/src/types.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import IconManifest from '@triptease/icons/manifest.json';
|
|
3
|
+
type IconName = keyof typeof IconManifest;
|
|
2
4
|
interface TTIconAttributes {
|
|
3
5
|
id?: string;
|
|
4
6
|
style?: React.CSSProperties;
|
|
5
7
|
[key: `data-${string}`]: string | undefined;
|
|
6
|
-
name
|
|
8
|
+
name: IconName;
|
|
7
9
|
label?: string;
|
|
8
10
|
color?: string;
|
|
9
11
|
size?: number;
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\nimport type {} from '@triptease/html-jsx'; // Stops declare module from erroring\n\ninterface TTIconAttributes {\n id?: string;\n style?: React.CSSProperties;\n [key: `data-${string}`]: string | undefined;\n name
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\nimport type {} from '@triptease/html-jsx'; // Stops declare module from erroring\nimport IconManifest from '@triptease/icons/manifest.json' with { type: 'json' };\n\ntype IconName = keyof typeof IconManifest;\n\ninterface TTIconAttributes {\n id?: string;\n style?: React.CSSProperties;\n [key: `data-${string}`]: string | undefined;\n name: IconName;\n label?: string;\n color?: string;\n size?: number;\n}\n\ndeclare global {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-icon': TTIconAttributes & { class?: string };\n }\n }\n\n namespace React {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-icon': TTIconAttributes & { className?: string; ref?: React.Ref<unknown> };\n }\n }\n }\n}\n\ndeclare module '@triptease/html-jsx' {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-icon': TTIconAttributes & { class?: string };\n }\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent tt-icon following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "@triptease",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.19",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/src/index.js",
|
|
9
9
|
"module": "dist/src/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@triptease/html-jsx": "^0.2.6",
|
|
32
|
-
"@triptease/icons": "1.3.
|
|
32
|
+
"@triptease/icons": "1.3.12",
|
|
33
33
|
"lit": "^3.1.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|