mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-11 13:28:19 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d91fbb588 | ||
|
|
d939a7005d | ||
|
|
2c55c2ab93 | ||
|
|
cb60e31162 | ||
|
|
09cebe178d | ||
|
|
0f3fd12f16 |
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"colebemis",
|
||||
"csandman",
|
||||
"ericfennis",
|
||||
"karsa-mistmere",
|
||||
"lscheibel"
|
||||
],
|
||||
"tags": [
|
||||
"weather",
|
||||
"danger",
|
||||
"warning",
|
||||
"alert",
|
||||
"error",
|
||||
"sync",
|
||||
"network",
|
||||
"exclamation"
|
||||
],
|
||||
"categories": [
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -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="M12 12v4" />
|
||||
<path d="M12 20h.01" />
|
||||
<path d="M17 18h.5a1 1 0 0 0 0-9h-1.79A7 7 0 1 0 7 17.708" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 322 B |
+2
-1
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"danielbayley"
|
||||
"danielbayley",
|
||||
"jguddas"
|
||||
],
|
||||
"tags": [
|
||||
"power",
|
||||
|
||||
+3
-4
@@ -9,11 +9,10 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M14 9c0 .6-.4 1-1 1H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9c.6 0 1 .4 1 1Z" />
|
||||
<path d="M18 6h4" />
|
||||
<path d="M10 18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a3 3 0 0 1-3-3 1 1 0 0 1 1-1z" />
|
||||
<path d="M13 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1l-.81 3.242a1 1 0 0 1-.97.758H8" />
|
||||
<path d="M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3" />
|
||||
<path d="M18 6h4" />
|
||||
<path d="m5 10-2 8" />
|
||||
<path d="M12 10v3c0 .6-.4 1-1 1H8" />
|
||||
<path d="m7 18 2-8" />
|
||||
<path d="M5 22c-1.7 0-3-1.3-3-3 0-.6.4-1 1-1h7c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1Z" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 537 B |
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"ksk3110"
|
||||
],
|
||||
"tags": [
|
||||
"about",
|
||||
"calculate",
|
||||
"maths",
|
||||
"operater"
|
||||
],
|
||||
"categories": [
|
||||
"maths"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<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="M5 15a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0" />
|
||||
<path d="M5 9a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 321 B |
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"EthanHazel",
|
||||
"staffanmowitz",
|
||||
"karsa-mistmere",
|
||||
"jguddas"
|
||||
],
|
||||
"tags": [
|
||||
"toilet",
|
||||
"potty",
|
||||
"bathroom",
|
||||
"washroom"
|
||||
],
|
||||
"categories": [
|
||||
"devices",
|
||||
"home"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<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="M7 12h13a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-.598a.5.5 0 0 0-.424.765l1.544 2.47a.5.5 0 0 1-.424.765H5.402a.5.5 0 0 1-.424-.765L7 18" />
|
||||
<path d="M8 18a5 5 0 0 1-5-5V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 417 B |
@@ -36,7 +36,8 @@
|
||||
},
|
||||
"./icons/*": {
|
||||
"types": "./dist/icons/*.svelte.d.ts",
|
||||
"svelte": "./dist/icons/*.svelte"
|
||||
"svelte": "./dist/icons/*.js",
|
||||
"default": "./dist/icons/*.js"
|
||||
}
|
||||
},
|
||||
"typings": "dist/lucide-svelte.d.ts",
|
||||
@@ -48,7 +49,7 @@
|
||||
"build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:package && pnpm build:license",
|
||||
"copy:license": "cp ../../LICENSE ./LICENSE",
|
||||
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.svelte && rm -f index.js",
|
||||
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --exportFileName=index.ts --iconFileExtension=.svelte --importImportFileExtension=.svelte --withAliases --aliasesFileExtension=.ts --aliasImportFileExtension=.svelte --pretty=false",
|
||||
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --exportFileName=index.ts --iconFileExtension=.svelte --importImportFileExtension=.svelte --separateIconFileExport --separateIconFileExportExtension=.ts --withAliases --aliasesFileExtension=.ts --separateAliasesFile --separateAliasesFileExtension=.ts --aliasImportFileExtension=.ts --pretty=false",
|
||||
"build:package": "svelte-package --input ./src",
|
||||
"build:license": "node ./scripts/appendBlockComments.mjs",
|
||||
"test": "pnpm build:icons && vitest run",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import pkg from '../package.json' assert { type: 'json' };
|
||||
import pkg from '../package.json' with { type: 'json' };
|
||||
|
||||
export function getJSBanner() {
|
||||
return `/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import plugins from '@lucide/rollup-plugins';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import dts from 'rollup-plugin-dts';
|
||||
import pkg from './package.json' assert { type: 'json' };
|
||||
import pkg from './package.json' with { type: 'json' };
|
||||
|
||||
const outputFileName = pkg.name;
|
||||
const outputDir = 'dist';
|
||||
|
||||
Generated
+3
-2
@@ -5072,6 +5072,7 @@ packages:
|
||||
|
||||
acorn-import-assertions@1.9.0:
|
||||
resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==}
|
||||
deprecated: package has been renamed to acorn-import-attributes
|
||||
peerDependencies:
|
||||
acorn: ^8
|
||||
|
||||
@@ -16793,7 +16794,7 @@ snapshots:
|
||||
'@swc-node/sourcemap-support': 0.5.1
|
||||
'@swc/core': 1.7.23
|
||||
colorette: 2.0.20
|
||||
debug: 4.3.6
|
||||
debug: 4.3.7
|
||||
oxc-resolver: 1.11.0
|
||||
pirates: 4.0.6
|
||||
tslib: 2.6.3
|
||||
@@ -25367,7 +25368,7 @@ snapshots:
|
||||
'@tsconfig/node14': 1.0.3
|
||||
'@tsconfig/node16': 1.0.4
|
||||
'@types/node': 20.4.5
|
||||
acorn: 8.14.0
|
||||
acorn: 8.12.1
|
||||
acorn-walk: 8.3.3
|
||||
arg: 4.1.3
|
||||
create-require: 1.1.1
|
||||
|
||||
@@ -14,6 +14,7 @@ export default async function generateAliasesFiles({
|
||||
aliasImportFileExtension,
|
||||
aliasNamesOnly = false,
|
||||
separateAliasesFile = false,
|
||||
separateAliasesFileExtension,
|
||||
showLog = true,
|
||||
}) {
|
||||
const iconsDistDirectory = path.join(outputDirectory, `icons`);
|
||||
@@ -96,8 +97,13 @@ export default async function generateAliasesFiles({
|
||||
: '';
|
||||
|
||||
if (separateAliasesFile) {
|
||||
const output = `export { default } from "./${iconName}"`;
|
||||
const location = path.join(iconsDistDirectory, `${alias.name}${iconFileExtension}`);
|
||||
const output = `export { default } from "./${iconName}${
|
||||
separateAliasesFileExtension ? iconFileExtension : ''
|
||||
}";\n`;
|
||||
const location = path.join(
|
||||
iconsDistDirectory,
|
||||
`${alias.name}${separateAliasesFileExtension ?? iconFileExtension}`,
|
||||
);
|
||||
|
||||
await fs.promises.writeFile(location, output, 'utf-8');
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ export default ({
|
||||
template,
|
||||
showLog = true,
|
||||
iconFileExtension = '.js',
|
||||
separateIconFileExport = false,
|
||||
separateIconFileExportExtension,
|
||||
pretty = true,
|
||||
iconsDir,
|
||||
iconMetaData,
|
||||
@@ -46,6 +48,7 @@ export default ({
|
||||
deprecated,
|
||||
deprecationReason,
|
||||
});
|
||||
|
||||
const output = pretty
|
||||
? prettier.format(elementTemplate, {
|
||||
singleQuote: true,
|
||||
@@ -56,6 +59,16 @@ export default ({
|
||||
: elementTemplate;
|
||||
|
||||
await fs.promises.writeFile(location, output, 'utf-8');
|
||||
|
||||
if (separateIconFileExport) {
|
||||
const output = `export { default } from "./${iconName}${iconFileExtension}";\n`;
|
||||
const location = path.join(
|
||||
iconsDistDirectory,
|
||||
`${iconName}${separateIconFileExportExtension ?? iconFileExtension}`,
|
||||
);
|
||||
|
||||
await fs.promises.writeFile(location, output, 'utf-8');
|
||||
}
|
||||
});
|
||||
|
||||
Promise.all(writeIconFiles)
|
||||
|
||||
@@ -34,6 +34,9 @@ const {
|
||||
aliasNamesOnly = false,
|
||||
withDynamicImports = false,
|
||||
separateAliasesFile = false,
|
||||
separateAliasesFileExtension = undefined,
|
||||
separateIconFileExport = false,
|
||||
separateIconFileExportExtension = undefined,
|
||||
aliasesFileExtension = '.js',
|
||||
aliasImportFileExtension = '',
|
||||
pretty = true,
|
||||
@@ -59,6 +62,8 @@ async function buildIcons() {
|
||||
template: iconFileTemplate,
|
||||
showLog: !silent,
|
||||
iconFileExtension,
|
||||
separateIconFileExport,
|
||||
separateIconFileExportExtension,
|
||||
pretty: JSON.parse(pretty),
|
||||
iconsDir: ICONS_DIR,
|
||||
iconMetaData,
|
||||
@@ -75,6 +80,7 @@ async function buildIcons() {
|
||||
exportModuleNameCasing,
|
||||
aliasImportFileExtension,
|
||||
separateAliasesFile,
|
||||
separateAliasesFileExtension,
|
||||
showLog: !silent,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ async function getAliases(iconDirectory) {
|
||||
const iconJsons = readSvgDirectory(iconDirectory, '.json');
|
||||
const aliasesEntries = await Promise.all(
|
||||
iconJsons.map(async (jsonFile) => {
|
||||
const file = await import(path.join(iconDirectory, jsonFile), { assert: { type: 'json' } });
|
||||
const file = await import(path.join(iconDirectory, jsonFile), { with: { type: 'json' } });
|
||||
return [path.basename(jsonFile, '.json'), file.default];
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -6,7 +6,7 @@ async function getIconMetaData(iconDirectory) {
|
||||
const aliasesEntries = await Promise.all(
|
||||
iconJsons.map(async (jsonFile) => {
|
||||
/** eslint-disable */
|
||||
const file = await import(path.join(iconDirectory, jsonFile), { assert: { type: 'json' } });
|
||||
const file = await import(path.join(iconDirectory, jsonFile), { with: { type: 'json' } });
|
||||
return [path.basename(jsonFile, '.json'), file.default];
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user