Compare commits

...

6 Commits

Author SHA1 Message Date
Christoph Nölke
7964a535b2 add gem icon (#359)
* add gem icon

Co-authored-by: b0b90 <babersheikh@outlook.com>

* Update icons/gem.svg

Remove additional edges of the gem and reduce height.

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>

Co-authored-by: b0b90 <babersheikh@outlook.com>
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2021-10-06 08:35:58 +02:00
Eric Fennis
0e35ba400c Fix Piggybank name 2021-10-03 15:35:15 +02:00
b0b90
f920d52e08 add piggy-bank icon (#350)
* 4 icons added

* Delete rocking-chair.svg

* Delete gem.svg

* Delete landmark.svg

* Update piggy-bank-.svg

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2021-10-03 15:28:37 +02:00
Eric Fennis
ebe64a6c7f Merge branch 'master' of github.com:lucide-icons/lucide 2021-10-03 15:26:34 +02:00
Eric Fennis
2672c011e5 Fix flutter package in release 2021-10-03 15:25:32 +02:00
Eric Fennis
63052c9d9e Fix types 2021-10-03 13:40:23 +02:00
5 changed files with 40 additions and 7 deletions

View File

@@ -336,11 +336,12 @@ jobs:
- name: List lucide-font folder
run: ls lucide-font
- name: Move the ttf file
run: mv lucide-font/lucide.ttf packages/lucide-flutter/assets/Lucide.ttf
- name: Move the assets files
run: mv lucide-font packages/lucide-flutter/assets
- name: Generate exports file
run: dart packages/lucide-flutter/tool/generate_fonts.dart lucide-font/lucide-preview.html
run: dart tool/generate_fonts.dart assets/lucide-preview.html
working-directory: packages/lucide-flutter
- name: Update yaml
run: sed -E 's/(version:)[^\n]*/\1 ${{ needs.pre-build.outputs.VERSION }}/;' pubspec.yaml > pubspec && mv pubspec pubspec.yaml

16
icons/gem.svg Normal file
View File

@@ -0,0 +1,16 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<polygon points="6 3 18 3 22 9 12 22 2 9" />
<path d="m12 22 4-13-3-6" />
<path d="M12 22 8 9l3-6" />
<path d="M2 9h20" />
</svg>

After

Width:  |  Height:  |  Size: 339 B

15
icons/piggy-bank.svg Normal file
View File

@@ -0,0 +1,15 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2h0V5Z" />
<path d="M2 9v1c0 1.1.9 2 2 2h1"/>
<path d="M16 11h0" />
</svg>

After

Width:  |  Height:  |  Size: 404 B

View File

@@ -1,7 +1,6 @@
import path from 'path';
import { readSvgDirectory, resetFile, appendFile, toPascalCase } from '../../../scripts/helpers';
import defaultAttributes from '../src/defaultAttributes';
const TARGET_DIR = path.join(__dirname, '../dist');
const ICONS_DIR = path.resolve(__dirname, '../../../icons');
@@ -9,11 +8,13 @@ const TYPES_FILE_NAME = 'lucide-vue-next.d.ts';
// Generates header of d.ts file include some types and functions
const typeDefinitions = `\
import { Component } from 'vue';
import { SVGAttributes, VNode } from 'vue';
declare module 'lucide-vue-next'
// Create interface extending SVGAttributes
export interface SVGProps extends Partial<SVGElement> ${JSON.stringify(defaultAttributes, null, 2)}
export interface SVGProps extends Partial<SVGAttributes> {
size?: 24 | number
}
// Generated icons
`;
@@ -28,7 +29,7 @@ svgFiles.forEach(svgFile => {
const componentName = toPascalCase(nameSvg);
appendFile(
`export declare const ${componentName}: (props: SVGProps) => Component;\n`,
`export declare const ${componentName}: (props: SVGProps) => FunctionalComponent<SVGProps>;\n`,
TYPES_FILE_NAME,
TARGET_DIR,
);