@tamer4lynx/tamer-icons 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.
- package/README.md +44 -0
- package/android/build.gradle.kts +28 -0
- package/android/src/main/assets/fonts/MaterialIcons-Regular.ttf +0 -0
- package/android/src/main/assets/fonts/MaterialSymbolsOutlined.ttf +0 -0
- package/android/src/main/assets/fonts/fa-solid-900.ttf +0 -0
- package/android/src/main/assets/fonts/material-codepoints.txt +4206 -0
- package/android/src/main/kotlin/com/nanofuxion/tamericons/IconCodepoints.kt +60 -0
- package/android/src/main/kotlin/com/nanofuxion/tamericons/IconDrawable.kt +92 -0
- package/android/src/main/kotlin/com/nanofuxion/tamericons/IconElement.kt +162 -0
- package/dist/fontawesome-codepoints.d.ts +2 -0
- package/dist/fontawesome-codepoints.d.ts.map +1 -0
- package/dist/fontawesome-codepoints.js +20 -0
- package/dist/fonts.css +13 -0
- package/dist/fonts.d.ts +7 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +6 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/material-codepoints.d.ts +2 -0
- package/dist/material-codepoints.d.ts.map +1 -0
- package/dist/material-codepoints.js +56 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +43 -0
- package/dist/tamer.config.d.ts +5 -0
- package/dist/tamer.config.d.ts.map +1 -0
- package/dist/tamer.config.js +4 -0
- package/fonts/MaterialIcons-Regular.ttf +0 -0
- package/fonts/MaterialSymbolsOutlined.ttf +0 -0
- package/fonts/fa-solid-900.ttf +0 -0
- package/ios/tamericons/tamericons/Classes/TamerIconElement.h +10 -0
- package/ios/tamericons/tamericons/Classes/TamerIconElement.m +307 -0
- package/ios/tamericons/tamericons/Resources/MaterialSymbolsOutlined.ttf +0 -0
- package/ios/tamericons/tamericons/Resources/fa-solid-900.ttf +0 -0
- package/ios/tamericons/tamericons/Resources/material-codepoints.txt +4206 -0
- package/ios/tamericons/tamericons.podspec +26 -0
- package/lynx.ext.json +17 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# tamer-icons
|
|
2
|
+
|
|
3
|
+
Icon fonts for Lynx: Material Icons, Font Awesome. Tfont, Icon component.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @tamer4lynx/tamer-icons
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Add to your app's dependencies and run `t4l link`.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Icon, Tfont, type IconSet } from '@tamer4lynx/tamer-icons'
|
|
17
|
+
|
|
18
|
+
// Material Icons (default)
|
|
19
|
+
<Icon name="home" size={24} color="#333" />
|
|
20
|
+
|
|
21
|
+
// Font Awesome
|
|
22
|
+
<Icon name="fa-home" set="fontawesome" size={24} />
|
|
23
|
+
|
|
24
|
+
// Custom icon font (register via Tfont)
|
|
25
|
+
<Tfont src="https://..." family="MyIcons" />
|
|
26
|
+
<Icon name="custom-icon" set="material" size={32} />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
| Component | Props | Description |
|
|
32
|
+
|-----------|-------|-------------|
|
|
33
|
+
| `Icon` | `name`, `set?`, `size?`, `color?`, `style?` | Renders icon. `set`: `'material'` \| `'fontawesome'` \| `'fa'` |
|
|
34
|
+
| `Tfont` | `src`, `family`, `weight?`, `style?` | Registers custom icon font |
|
|
35
|
+
|
|
36
|
+
| Export | Description |
|
|
37
|
+
|--------|-------------|
|
|
38
|
+
| `MATERIAL_ICONS_URL` | Material Icons font URL |
|
|
39
|
+
| `FONTAWESOME_SOLID_URL` | Font Awesome solid URL |
|
|
40
|
+
| `MATERIAL_CODEPOINTS` | Material icon codepoint map |
|
|
41
|
+
|
|
42
|
+
## Platform
|
|
43
|
+
|
|
44
|
+
Uses **lynx.ext.json**. Run `t4l link` after adding to your app. Requires native `<icon>` element support.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
plugins {
|
|
2
|
+
id("com.android.library")
|
|
3
|
+
id("org.jetbrains.kotlin.android")
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
android {
|
|
7
|
+
namespace = "com.nanofuxion.tamericons"
|
|
8
|
+
compileSdk = 35
|
|
9
|
+
|
|
10
|
+
defaultConfig {
|
|
11
|
+
minSdk = 28
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
compileOptions {
|
|
15
|
+
sourceCompatibility = JavaVersion.VERSION_17
|
|
16
|
+
targetCompatibility = JavaVersion.VERSION_17
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
kotlinOptions {
|
|
20
|
+
jvmTarget = "17"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
dependencies {
|
|
25
|
+
compileOnly("org.lynxsdk.lynx:lynx:3.3.1")
|
|
26
|
+
compileOnly("org.lynxsdk.lynx:lynx-jssdk:3.3.1")
|
|
27
|
+
implementation("androidx.core:core-ktx:1.10.1")
|
|
28
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|