Skip to content

Commit

Permalink
Merge branch 'lucide-icons:main' into add-deprecated-badge
Browse files Browse the repository at this point in the history
  • Loading branch information
epifaniofrancisco authored Nov 17, 2024
2 parents b691614 + f238fe1 commit 1268dba
Show file tree
Hide file tree
Showing 31 changed files with 203 additions and 38 deletions.
4 changes: 1 addition & 3 deletions docs/.vitepress/theme/components/home/HomeIconCustomizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,14 @@ watch(absoluteStrokeWidth, (enabled) => {
margin-top: 32px;
padding: 0;
background: none;
max-width: 280px;
}
@media (min-width: 640px) {
.card {
display: grid;
grid-template-columns: 8fr 10fr;
}
/*
/*
.card-column {
flex: 1;
} */
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/packages/lucide-svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Implementation of the lucide icon library for svelte applications.
::: code-group

```sh [pnpm]
pnpm install lucide-svelte
pnpm add lucide-svelte
```

```sh [yarn]
Expand Down
3 changes: 2 additions & 1 deletion icons/bath.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "../icon.schema.json",
"contributors": [
"karsa-mistmere",
"ericfennis"
"ericfennis",
"jamiemlaw"
],
"tags": [
"amenities",
Expand Down
10 changes: 5 additions & 5 deletions icons/bath.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions icons/cloud-alert.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
15 changes: 15 additions & 0 deletions icons/cloud-alert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion icons/cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion icons/drill.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
"danielbayley",
"jguddas"
],
"tags": [
"power",
Expand Down
7 changes: 3 additions & 4 deletions icons/drill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions icons/equal-approximately.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"ksk3110"
],
"tags": [
"about",
"calculate",
"maths",
"operater"
],
"categories": [
"maths"
]
}
14 changes: 14 additions & 0 deletions icons/equal-approximately.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/hard-hat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion icons/heading-4.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"ericfennis"
"ericfennis",
"jguddas"
],
"tags": [
"h4",
Expand Down
6 changes: 3 additions & 3 deletions icons/heading-4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions icons/laptop-minimal-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"ericfennis",
"jguddas"
],
"tags": [
"computer",
"screen",
"remote",
"success",
"done",
"todo",
"tick",
"complete",
"task"
],
"categories": [
"devices",
"notifications"
]
}
15 changes: 15 additions & 0 deletions icons/laptop-minimal-check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion icons/puzzle.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "../icon.schema.json",
"contributors": [
"karsa-mistmere",
"ericfennis"
"ericfennis",
"jamiemlaw"
],
"tags": [
"component",
Expand Down
2 changes: 1 addition & 1 deletion icons/puzzle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/school.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions icons/toilet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"EthanHazel",
"staffanmowitz",
"karsa-mistmere",
"jguddas"
],
"tags": [
"toilet",
"potty",
"bathroom",
"washroom"
],
"categories": [
"devices",
"home"
]
}
14 changes: 14 additions & 0 deletions icons/toilet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/vegan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions packages/lucide-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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=.js --pretty=false",
"build:package": "svelte-package --input ./src",
"build:license": "node ./scripts/appendBlockComments.mjs",
"test": "pnpm build:icons && vitest run",
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide-svelte/scripts/license.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg from '../package.json' assert { type: 'json' };
import pkg from '../package.json' with { type: 'json' };

export function getJSBanner() {
return `/**
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 3 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions tools/build-icons/building/aliases/generateAliasesFiles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default async function generateAliasesFiles({
aliasImportFileExtension,
aliasNamesOnly = false,
separateAliasesFile = false,
separateAliasesFileExtension,
showLog = true,
}) {
const iconsDistDirectory = path.join(outputDirectory, `icons`);
Expand Down Expand Up @@ -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');
}
Expand Down
Loading

0 comments on commit 1268dba

Please sign in to comment.