@tamer4lynx/tamer-icons 0.0.1 → 0.0.2

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.
@@ -1,4 +1,3 @@
1
- import { jsx as _jsx } from "@lynx-js/react/jsx-runtime";
2
1
  export { MATERIAL_ICONS_URL, FONTAWESOME_SOLID_URL } from './fonts';
3
2
  export { MATERIAL_CODEPOINTS } from './material-codepoints';
4
3
  const px = (value) => `${Math.round(value)}px`;
@@ -8,9 +7,9 @@ export function Tfont(props) {
8
7
  }
9
8
  export function Icon(props) {
10
9
  const { name, set = 'material', size = 24, color, style, ...rest } = props;
11
- return (_jsx("icon", { icon: name, set: set, size: size, iconColor: color, style: {
10
+ return (<icon icon={name} set={set} size={size} iconColor={color} style={{
12
11
  width: px(size),
13
12
  height: px(size),
14
13
  ...style,
15
- }, ...rest }));
14
+ }} {...rest}/>);
16
15
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@tamer4lynx/tamer-icons",
3
3
  "publishConfig": { "access": "public", "tag": "prerelease" },
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "description": "Icon fonts for Lynx: Material Icons, Font Awesome. Tfont, GoogleIcons, FontAwesome components.",
7
- "main": "dist/index.js",
7
+ "main": "dist/index.jsx",
8
8
  "types": "dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "default": "./dist/index.js"
12
+ "import": "./dist/index.jsx",
13
+ "default": "./dist/index.jsx"
14
14
  },
15
15
  "./tamer.config": {
16
16
  "types": "./dist/tamer.config.d.ts",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "scripts": {
28
28
  "fetch-fonts": "node scripts/fetch-fonts.mjs",
29
- "build": "npm run fetch-fonts && node scripts/generate-codepoints.mjs && npm run copy-android-fonts && tsc",
29
+ "build": "npm run fetch-fonts && node scripts/generate-codepoints.mjs && npm run copy-android-fonts && rm -rf dist && tsc",
30
30
  "copy-android-fonts": "mkdir -p android/src/main/assets/fonts && cp fonts/*.ttf android/src/main/assets/fonts/ 2>/dev/null || true",
31
31
  "prepare": "npm run build"
32
32
  },
package/dist/fonts.css DELETED
@@ -1,13 +0,0 @@
1
- @font-face {
2
- font-family: 'Material Symbols Outlined';
3
- src: url('../fonts/MaterialSymbolsOutlined.ttf') format('truetype');
4
- font-weight: 100 700;
5
- font-style: normal;
6
- }
7
-
8
- @font-face {
9
- font-family: 'Font Awesome 6 Free';
10
- src: url('../fonts/fa-solid-900.ttf') format('truetype');
11
- font-weight: 900;
12
- font-style: normal;
13
- }