Skip to content

Commit

Permalink
Merge branch 'main' into feat/react-added-aria-hidden-fallback-for-de…
Browse files Browse the repository at this point in the history
…corative-icons
  • Loading branch information
ericfennis authored Dec 4, 2024
2 parents 195780c + ca50dd8 commit 78b54bb
Show file tree
Hide file tree
Showing 385 changed files with 624 additions and 972 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ When adding new features to for example the icon component for a framework. It i

### Local Testing

To test changes in a local project, you can use `yarn link`, `npm link` or `pnpm link` to link the package. Before you do this make sure you builded the package first.
To test changes in a local project, you can use `yarn link`, `npm link`, `bun link` or `pnpm link` to link the package. Before you do this make sure you builded the package first.

```sh
# in packages/lucide-react
Expand Down
5 changes: 0 additions & 5 deletions categories/currency.json

This file was deleted.

2 changes: 1 addition & 1 deletion categories/money.json → categories/finance.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../category.schema.json",
"title": "Money",
"title": "Finance",
"icon": "piggy-bank"
}
5 changes: 0 additions & 5 deletions categories/furniture.json

This file was deleted.

5 changes: 0 additions & 5 deletions categories/maps.json

This file was deleted.

2 changes: 1 addition & 1 deletion categories/maths.json → categories/math.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../category.schema.json",
"title": "Maths",
"title": "Mathematics",
"icon": "divide"
}
2 changes: 1 addition & 1 deletion categories/notifications.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../category.schema.json",
"title": "Notifications",
"title": "Notification",
"icon": "triangle-alert"
}
26 changes: 7 additions & 19 deletions docs/.vitepress/data/categoriesData.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
"name": "connectivity",
"title": "Connectivity"
},
{
"name": "currency",
"title": "Currency"
},
{
"name": "cursors",
"title": "Cursors"
Expand All @@ -64,12 +60,12 @@
"title": "File icons"
},
{
"name": "food-beverage",
"title": "Food & beverage"
"name": "finance",
"title": "Money"
},
{
"name": "furniture",
"title": "Furniture"
"name": "food-beverage",
"title": "Food & beverage"
},
{
"name": "gaming",
Expand All @@ -88,21 +84,13 @@
"title": "Mail"
},
{
"name": "maps",
"title": "Maps"
},
{
"name": "maths",
"title": "Maths"
"name": "math",
"title": "Math"
},
{
"name": "medical",
"title": "Medical"
},
{
"name": "money",
"title": "Money"
},
{
"name": "multimedia",
"title": "Multimedia"
Expand All @@ -117,7 +105,7 @@
},
{
"name": "notifications",
"title": "Notifications"
"title": "Notification"
},
{
"name": "people",
Expand Down
17 changes: 15 additions & 2 deletions docs/.vitepress/theme/components/icons/IconsOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import CarbonAdOverlay from './CarbonAdOverlay.vue';
const ICON_SIZE = 56;
const ICON_GRID_GAP = 8;
const DEFAULT_GRID_ITEMS = 10 * 160;
const props = defineProps<{
icons: IconEntity[];
Expand Down Expand Up @@ -114,11 +115,23 @@ function handleCloseDrawer() {
/>
</StickyBar>
<NoResults
v-if="list.length === 0"
v-if="list.length === 0 && searchQuery !== ''"
:searchQuery="searchQuery"
@clear="searchQuery = ''"
/>
<div v-bind="wrapperProps" class="icon">
<IconGrid
v-else-if="list.length === 0"
:key="index"
overlayMode
:icons="[...searchResults].splice(0, DEFAULT_GRID_ITEMS)"
:activeIcon="activeIconName"
@setActiveIcon="setActiveIconName"
/>
<div
v-bind="wrapperProps"
class="icon"
v-else
>
<IconGrid
v-for="{ index, data: icons } in list"
:key="index"
Expand Down
32 changes: 32 additions & 0 deletions docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ yarn add lucide
npm install lucide
```

```sh [bun]
bun add lucide
```

:::

For more details, see the [documentation](packages/lucide.md).
Expand All @@ -44,6 +48,10 @@ yarn add lucide-react
npm install lucide-react
```

```sh [bun]
bun add lucide-react
```

:::

For more details, see the [documentation](packages/lucide-react.md).
Expand All @@ -67,6 +75,10 @@ yarn add lucide-vue-next
npm install lucide-vue-next
```

```sh [bun]
bun add lucide-vue-next
```

:::

For more details, see the [documentation](packages/lucide-vue-next.md).
Expand All @@ -90,6 +102,10 @@ yarn add lucide-svelte
npm install lucide-svelte
```

```sh [bun]
bun add lucide-svelte
```

:::

For more details, see the [documentation](packages/lucide-svelte.md).
Expand All @@ -112,6 +128,10 @@ yarn add lucide-solid
npm install lucide-solid
```

```sh [bun]
bun add lucide-solid
```

:::

For more details, see the [documentation](packages/lucide-solid.md).
Expand All @@ -134,6 +154,10 @@ yarn add lucide-angular
npm install lucide-angular
```

```sh [bun]
bun add lucide-angular
```

:::

For more details, see the [documentation](packages/lucide-angular.md).
Expand All @@ -156,6 +180,10 @@ yarn add lucide-preact
npm install lucide-preact
```

```sh [bun]
bun add lucide-preact
```

:::

## Static usage
Expand All @@ -176,6 +204,10 @@ yarn add lucide-static
npm install lucide-static
```

```sh [bun]
bun add lucide-static
```

:::

For more details, see the [documentation](packages/lucide-static.md).
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ yarn add lucide-angular
npm install lucide-angular
```

```sh [bun]
bun add lucide-angular
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-preact.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ yarn add lucide-preact
npm install lucide-preact
```

```sh [bun]
bun add lucide-preact
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ yarn add lucide-react-native
npm install lucide-react-native
```

```sh [bun]
bun add lucide-react-native
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ yarn add lucide-react
npm install lucide-react
```

```sh [bun]
bun add lucide-react
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-solid.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ yarn add lucide-solid
npm install lucide-solid
```

```sh [bun]
bun add lucide-solid
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-static.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ yarn add lucide-static
npm install lucide-static
```

```sh [bun]
bun add lucide-static
```

:::

### CDN
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ yarn add lucide-svelte
npm install lucide-svelte
```

```sh [bun]
bun add lucide-svelte
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-vue-next.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ yarn add lucide-vue-next
npm install lucide-vue-next
```

```sh [bun]
bun add lucide-vue-next
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ yarn add lucide-vue
npm install lucide-vue
```

```sh [bun]
bun add lucide-vue
```

:::

## How to use
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/packages/lucide.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ yarn add lucide
npm install lucide
```

```sh [bun]
bun add lucide
```

:::

### CDN
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@floating-ui/vue": "^1.0.3",
"@headlessui/vue": "^1.7.17",
"@resvg/resvg-wasm": "^2.6.2",
"@vueuse/components": "^10.7.2",
"@vueuse/core": "^10.7.2",
"@vueuse/components": "^12.0.0",
"@vueuse/core": "^12.0.0",
"element-to-path": "^1.2.1",
"fuse.js": "^6.5.3",
"jszip": "^3.7.0",
Expand All @@ -57,6 +57,6 @@
"sitemap": "^7.1.1",
"svg-pathdata": "^6.0.3",
"svgson": "^5.2.1",
"vue": "^3.4.13"
"vue": "^3.5.13"
}
}
9 changes: 3 additions & 6 deletions icon.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,20 @@
"charts",
"communication",
"connectivity",
"currency",
"cursors",
"design",
"development",
"devices",
"emoji",
"files",
"finance",
"food-beverage",
"furniture",
"gaming",
"home",
"layout",
"mail",
"maps",
"maths",
"math",
"medical",
"money",
"multimedia",
"nature",
"navigation",
Expand Down Expand Up @@ -142,7 +139,7 @@
},
"aliasDeprecationReasons": {
"type": "string",
"enum": ["alias.typo", "alias.name"]
"enum": ["alias.typo", "alias.name", "alias.duplicate"]
},
"versionNumber": {
"type": "string",
Expand Down
Loading

0 comments on commit 78b54bb

Please sign in to comment.