mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 11:57:43 +01:00
Add vue 3 package (#293)
* init vue next package * Refactor naming * adjust readme * add typescript support * Fix es module build * Bump alpha version * Fix size property not working * Fix issue with default attributes in this PR * small fixes * Update README.md * Fix peer dep * Add return * update release workflow Co-authored-by: AdamSGit <adamelio@protonmail.com>
This commit is contained in:
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
@@ -137,6 +137,47 @@ jobs:
|
|||||||
name: lucide-vue-package-json
|
name: lucide-vue-package-json
|
||||||
path: packages/lucide-vue/package.json
|
path: packages/lucide-vue/package.json
|
||||||
|
|
||||||
|
lucide-vue-next:
|
||||||
|
if: github.repository == 'lucide-icons/lucide'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: pre-build
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-yarn-
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn --pure-lockfile
|
||||||
|
|
||||||
|
- name: Set Auth Token
|
||||||
|
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set new version
|
||||||
|
run: yarn workspace lucide-vue-next version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: yarn workspace lucide-vue-next build
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: yarn workspace lucide-vue-next test
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: yarn workspace lucide-vue-next publish
|
||||||
|
|
||||||
|
- name: Upload package.json
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: lucide-vue-package-json
|
||||||
|
path: packages/lucide-vue-next/package.json
|
||||||
|
|
||||||
lucide-angular:
|
lucide-angular:
|
||||||
if: github.repository == 'lucide-icons/lucide'
|
if: github.repository == 'lucide-icons/lucide'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -176,7 +217,7 @@ jobs:
|
|||||||
upload-package-jsons:
|
upload-package-jsons:
|
||||||
if: github.repository == 'lucide-icons/lucide'
|
if: github.repository == 'lucide-icons/lucide'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lucide, lucide-react, lucide-vue, lucide-angular]
|
needs: [pre-build, lucide, lucide-react, lucide-vue, lucide-vue-next, lucide-angular]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -187,6 +228,8 @@ jobs:
|
|||||||
mv lucide-package-json/package.json packages/lucide/package.json
|
mv lucide-package-json/package.json packages/lucide/package.json
|
||||||
mv lucide-react-package-json/package.json packages/lucide-react/package.json
|
mv lucide-react-package-json/package.json packages/lucide-react/package.json
|
||||||
mv lucide-vue-package-json/package.json packages/lucide-vue/package.json
|
mv lucide-vue-package-json/package.json packages/lucide-vue/package.json
|
||||||
|
mv lucide-vue-package-json/package.json packages/lucide-vue-next/package.json
|
||||||
|
mv lucide-angular-json/package.json packages/lucide-angular/package.json
|
||||||
|
|
||||||
- name: Commit package.jsons
|
- name: Commit package.jsons
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -27,7 +27,8 @@ We're trying to expanding the icon set as much as possible while keeping it nice
|
|||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Web](#web)
|
* [Web](#web)
|
||||||
* [React](#react)
|
* [React](#react)
|
||||||
* [Vue](#vue)
|
* [Vue 2](#vue-2)
|
||||||
|
* [Vue 3](#vue-3)
|
||||||
* [Angular](#angular)
|
* [Angular](#angular)
|
||||||
* [Figma](#figma)
|
* [Figma](#figma)
|
||||||
* [Contributing](#contributing)
|
* [Contributing](#contributing)
|
||||||
@@ -69,7 +70,7 @@ npm install lucide-react
|
|||||||
|
|
||||||
For more details, see the [documentation](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-react#lucide-react).
|
For more details, see the [documentation](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-react#lucide-react).
|
||||||
|
|
||||||
### Vue
|
### Vue 2
|
||||||
|
|
||||||
Implementation of the lucide icon library for vue applications.
|
Implementation of the lucide icon library for vue applications.
|
||||||
|
|
||||||
@@ -83,6 +84,20 @@ npm install lucide-vue
|
|||||||
|
|
||||||
For more details, see the [documentation](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-vue#lucide-vue).
|
For more details, see the [documentation](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-vue#lucide-vue).
|
||||||
|
|
||||||
|
### Vue 3
|
||||||
|
|
||||||
|
Implementation of the lucide icon library for vue applications.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add lucide-vue-next
|
||||||
|
|
||||||
|
# or
|
||||||
|
|
||||||
|
npm install lucide-vue-next
|
||||||
|
```
|
||||||
|
|
||||||
|
For more details, see the [documentation](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-vue-next#lucide-vue-next).
|
||||||
|
|
||||||
### Angular
|
### Angular
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
@@ -11,8 +11,10 @@ const srcDirectory = path.join(__dirname, '../dist');
|
|||||||
|
|
||||||
// Declare type definitions
|
// Declare type definitions
|
||||||
const typeDefinitions = `\
|
const typeDefinitions = `\
|
||||||
/// <reference types="react" />
|
/// <reference types="vue" />
|
||||||
import { SVGAttributes } from 'react'
|
import { SVGAttributes } from 'vue'
|
||||||
|
|
||||||
|
declare module 'lucide-vue-next'
|
||||||
|
|
||||||
// Create interface extending SVGAttributes
|
// Create interface extending SVGAttributes
|
||||||
export interface LucideProps extends Partial<React.SVGProps<SVGSVGElement>> {
|
export interface LucideProps extends Partial<React.SVGProps<SVGSVGElement>> {
|
||||||
|
|||||||
9
packages/lucide-vue-next/.npmignore
Normal file
9
packages/lucide-vue-next/.npmignore
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
stats
|
||||||
|
node_modules
|
||||||
|
tests
|
||||||
|
scripts
|
||||||
|
build
|
||||||
|
src
|
||||||
|
babel.config.js
|
||||||
|
jest.config.js
|
||||||
|
rollup.config.js
|
||||||
15
packages/lucide-vue-next/LICENSE
Normal file
15
packages/lucide-vue-next/LICENSE
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
ISC License
|
||||||
|
|
||||||
|
Copyright (c) 2020, Lucide Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
107
packages/lucide-vue-next/README.md
Normal file
107
packages/lucide-vue-next/README.md
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
# Lucide Vue Next
|
||||||
|
|
||||||
|
Implementation of the lucide icon library for Vue 3 applications.
|
||||||
|
|
||||||
|
> What is lucide? Read it [here](https://github.com/lucide-icons/lucide#what-is-lucide).
|
||||||
|
|
||||||
|
> :warning: This version of lucide is for Vue 3, For Vue 2 got to [lucide-vue-next](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-vue#lucide-vue)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add lucide-vue-next
|
||||||
|
|
||||||
|
# or
|
||||||
|
|
||||||
|
npm install lucide-vue-next
|
||||||
|
```
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
It's build with ESmodules so it's completely threeshakable.
|
||||||
|
Each icon can be imported as a vue component.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
You can pass additional props to adjust the icon.
|
||||||
|
|
||||||
|
``` vue
|
||||||
|
<template>
|
||||||
|
<Camera
|
||||||
|
color="red"
|
||||||
|
:size="32"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Returns Vue component
|
||||||
|
import { Camera } from 'lucide-vue-next';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "My Component",
|
||||||
|
components: { Camera }
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Props
|
||||||
|
|
||||||
|
| name | type | default
|
||||||
|
| ------------ | -------- | --------
|
||||||
|
| `size` | *Number* | 24
|
||||||
|
| `color` | *String* | currentColor
|
||||||
|
| `strokeWidth`| *Number* | 2
|
||||||
|
| `defaultClass`| *String* | lucide-icon
|
||||||
|
|
||||||
|
### Custom props
|
||||||
|
|
||||||
|
You can also pass custom props that will be added in the svg as attributes.
|
||||||
|
|
||||||
|
``` vue
|
||||||
|
<template>
|
||||||
|
<Camera fill="red" />
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
### One generic icon component
|
||||||
|
|
||||||
|
It is possible to create one generic icon component to load icons.
|
||||||
|
|
||||||
|
> :warning: Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
|
||||||
|
|
||||||
|
#### Icon Component Example
|
||||||
|
|
||||||
|
``` vue
|
||||||
|
<template>
|
||||||
|
<component :is="icon" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import * as icons from "lucide-vue-next";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
icon() {
|
||||||
|
return icons[this.name];
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Then you can use it like this
|
||||||
|
|
||||||
|
``` vue
|
||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<Icon name="Airplay" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
```
|
||||||
14
packages/lucide-vue-next/babel.config.js
Normal file
14
packages/lucide-vue-next/babel.config.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
const mainConfig = require('../../babel.config');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
[
|
||||||
|
'@babel/env',
|
||||||
|
{
|
||||||
|
loose: true,
|
||||||
|
modules: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
|
env: mainConfig.env,
|
||||||
|
};
|
||||||
14
packages/lucide-vue-next/jest.config.js
Normal file
14
packages/lucide-vue-next/jest.config.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
module.exports = {
|
||||||
|
verbose: true,
|
||||||
|
roots: ['<rootDir>/src/', '<rootDir>/tests/'],
|
||||||
|
moduleFileExtensions: ['js'],
|
||||||
|
transform: {
|
||||||
|
'^.+\\.js$': 'babel-jest',
|
||||||
|
'^.+\\.vue$': 'vue-jest',
|
||||||
|
},
|
||||||
|
transformIgnorePatterns: [`/node_modules`],
|
||||||
|
snapshotSerializers: ['jest-serializer-vue'],
|
||||||
|
moduleNameMapper: {
|
||||||
|
'^@/(.*)$': '<rootDir>/src/$1',
|
||||||
|
},
|
||||||
|
};
|
||||||
41
packages/lucide-vue-next/package.json
Normal file
41
packages/lucide-vue-next/package.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "lucide-vue-next",
|
||||||
|
"version": "0.15.17-beta.0",
|
||||||
|
"author": "Eric Fennis",
|
||||||
|
"description": "Lucide Vue 3 Package",
|
||||||
|
"license": "ISC",
|
||||||
|
"homepage": "https://lucide.dev",
|
||||||
|
"bugs": "https://github.com/lucide-icons/lucide/issues",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/lucide-icons/lucide.git",
|
||||||
|
"directory": "packages/lucide-vue-next"
|
||||||
|
},
|
||||||
|
"amdName": "lucide-vue-next",
|
||||||
|
"source": "build/lucide-vue-next.js",
|
||||||
|
"main": "dist/cjs/lucide-vue-next.js",
|
||||||
|
"main:umd": "dist/umd/lucide-vue-next.js",
|
||||||
|
"module": "dist/esm/lucide-vue-next.js",
|
||||||
|
"unpkg": "dist/umd/lucide-vue-next.min.js",
|
||||||
|
"typings": "dist/lucide-vue-next.d.ts",
|
||||||
|
"scripts": {
|
||||||
|
"build": "yarn clean && yarn build:icons && yarn build:es && yarn build:types && yarn build:bundles",
|
||||||
|
"clean": "rm -rf dist && rm -rf ./src/icons/*.js",
|
||||||
|
"build:icons": "yarn --cwd ../../ build:icons --output=../packages/lucide-vue-next/src --templateSrc=../packages/lucide-vue-next/scripts/exportTemplate",
|
||||||
|
"build:es": "babel src -d dist/esm",
|
||||||
|
"build:types": "yarn --cwd ../../ babel-node packages/lucide-vue-next/scripts/buildTypes.js",
|
||||||
|
"build:bundles": "yarn --cwd ../../ rollup -c packages/lucide-vue-next/rollup.config.js",
|
||||||
|
"test": "jest",
|
||||||
|
"test:watch": "jest --watchAll"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/compiler-sfc": "^3.0.0",
|
||||||
|
"@vue/test-utils": "^2.0.0-rc.6",
|
||||||
|
"jest-serializer-vue": "^2.0.2",
|
||||||
|
"vue-jest": "^5.0.0-alpha.7",
|
||||||
|
"vue": "3.0.6"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"vue": "^3.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
47
packages/lucide-vue-next/rollup.config.js
Normal file
47
packages/lucide-vue-next/rollup.config.js
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import plugins from '../../rollup.plugins';
|
||||||
|
import pkg from './package.json';
|
||||||
|
|
||||||
|
const packageName = 'LucideVueNext';
|
||||||
|
const outputFileName = 'lucide-vue-next';
|
||||||
|
const rootDir = 'packages/lucide-vue-next'; // It runs from the root
|
||||||
|
const outputDir = `${rootDir}/dist`;
|
||||||
|
const inputs = [`${rootDir}/src/lucide-vue-next.js`];
|
||||||
|
const bundles = [
|
||||||
|
{
|
||||||
|
format: 'umd',
|
||||||
|
inputs,
|
||||||
|
outputDir,
|
||||||
|
minify: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
format: 'umd',
|
||||||
|
inputs,
|
||||||
|
outputDir,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
format: 'cjs',
|
||||||
|
inputs,
|
||||||
|
outputDir,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const configs = bundles
|
||||||
|
.map(({ inputs, outputDir, format, minify }) =>
|
||||||
|
inputs.map(input => ({
|
||||||
|
input,
|
||||||
|
plugins: plugins(pkg, minify),
|
||||||
|
external: ['vue'],
|
||||||
|
output: {
|
||||||
|
name: packageName,
|
||||||
|
file: `${outputDir}/${format}/${outputFileName}${minify ? '.min' : ''}.js`,
|
||||||
|
format,
|
||||||
|
sourcemap: true,
|
||||||
|
globals: {
|
||||||
|
vue: 'vue',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})),
|
||||||
|
)
|
||||||
|
.flat();
|
||||||
|
|
||||||
|
export default configs;
|
||||||
37
packages/lucide-vue-next/scripts/buildTypes.js
Normal file
37
packages/lucide-vue-next/scripts/buildTypes.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
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');
|
||||||
|
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';
|
||||||
|
declare module 'lucide-vue-next'
|
||||||
|
|
||||||
|
// Create interface extending SVGAttributes
|
||||||
|
export interface SVGProps extends Partial<SVGElement> ${JSON.stringify(defaultAttributes, null, 2)}
|
||||||
|
|
||||||
|
// Generated icons
|
||||||
|
`;
|
||||||
|
|
||||||
|
resetFile(TYPES_FILE_NAME, TARGET_DIR);
|
||||||
|
appendFile(typeDefinitions, TYPES_FILE_NAME, TARGET_DIR);
|
||||||
|
|
||||||
|
const svgFiles = readSvgDirectory(ICONS_DIR);
|
||||||
|
|
||||||
|
svgFiles.forEach(svgFile => {
|
||||||
|
const nameSvg = path.basename(svgFile, '.svg');
|
||||||
|
const componentName = toPascalCase(nameSvg);
|
||||||
|
|
||||||
|
appendFile(
|
||||||
|
`export declare const ${componentName}: (props: SVGProps) => Component;\n`,
|
||||||
|
TYPES_FILE_NAME,
|
||||||
|
TARGET_DIR,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(`Generated ${TYPES_FILE_NAME} file with`, svgFiles.length, 'icons');
|
||||||
7
packages/lucide-vue-next/scripts/exportTemplate.js
Normal file
7
packages/lucide-vue-next/scripts/exportTemplate.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export default ({ componentName, children }) => `
|
||||||
|
import createVueComponent from '../createVueComponent';
|
||||||
|
|
||||||
|
const ${componentName} = createVueComponent('${componentName}Icon', ${JSON.stringify(children)});
|
||||||
|
|
||||||
|
export default ${componentName};
|
||||||
|
`;
|
||||||
19
packages/lucide-vue-next/src/createVueComponent.js
Normal file
19
packages/lucide-vue-next/src/createVueComponent.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import { h } from 'vue';
|
||||||
|
import defaultAttributes from './defaultAttributes';
|
||||||
|
|
||||||
|
const createVueComponent = (iconName, iconNode) => (props, context) =>
|
||||||
|
h(
|
||||||
|
'svg',
|
||||||
|
{
|
||||||
|
...defaultAttributes,
|
||||||
|
...{
|
||||||
|
width: props.size || defaultAttributes.width,
|
||||||
|
height: props.size || defaultAttributes.height,
|
||||||
|
},
|
||||||
|
...context.attrs,
|
||||||
|
...props,
|
||||||
|
},
|
||||||
|
iconNode.map(child => h(...child)),
|
||||||
|
);
|
||||||
|
|
||||||
|
export default createVueComponent;
|
||||||
11
packages/lucide-vue-next/src/defaultAttributes.js
Normal file
11
packages/lucide-vue-next/src/defaultAttributes.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
export default {
|
||||||
|
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',
|
||||||
|
};
|
||||||
1
packages/lucide-vue-next/src/icons/.gitkeep
Normal file
1
packages/lucide-vue-next/src/icons/.gitkeep
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Folder for generated icons
|
||||||
1
packages/lucide-vue-next/src/lucide-vue-next.js
Normal file
1
packages/lucide-vue-next/src/lucide-vue-next.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from './icons';
|
||||||
@@ -0,0 +1,577 @@
|
|||||||
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
|
exports[`Using lucide icon components should add a class to the element 1`] = `
|
||||||
|
VueWrapper {
|
||||||
|
"__app": Object {
|
||||||
|
"_component": Object {
|
||||||
|
"__emits": Object {},
|
||||||
|
"__props": Array [
|
||||||
|
Object {},
|
||||||
|
Array [],
|
||||||
|
],
|
||||||
|
"name": "VTU_ROOT",
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"_container": <div
|
||||||
|
data-v-app=""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="lucide-icon my-icon"
|
||||||
|
fill="none"
|
||||||
|
height="24"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>,
|
||||||
|
"_context": Object {
|
||||||
|
"app": [Circular],
|
||||||
|
"components": Object {
|
||||||
|
"transition": Object {
|
||||||
|
"name": "transition",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"transition-group": Object {
|
||||||
|
"name": "transition-group",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directives": Object {},
|
||||||
|
"mixins": Array [
|
||||||
|
Object {
|
||||||
|
"__emits": null,
|
||||||
|
"__props": Array [],
|
||||||
|
"beforeCreate": [Function],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"provides": Object {},
|
||||||
|
"reload": [Function],
|
||||||
|
},
|
||||||
|
"_props": null,
|
||||||
|
"_uid": 2,
|
||||||
|
"component": [Function],
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directive": [Function],
|
||||||
|
"mixin": [Function],
|
||||||
|
"mount": [Function],
|
||||||
|
"provide": [Function],
|
||||||
|
"unmount": [Function],
|
||||||
|
"use": [Function],
|
||||||
|
"version": "3.0.6",
|
||||||
|
},
|
||||||
|
"__setProps": [Function],
|
||||||
|
"componentVM": Object {
|
||||||
|
"hasOwnProperty": [Function],
|
||||||
|
},
|
||||||
|
"rootVM": Object {},
|
||||||
|
"wrapperElement": <svg
|
||||||
|
class="lucide-icon my-icon"
|
||||||
|
fill="none"
|
||||||
|
height="24"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Using lucide icon components should add a style attribute to the element 1`] = `
|
||||||
|
VueWrapper {
|
||||||
|
"__app": Object {
|
||||||
|
"_component": Object {
|
||||||
|
"__emits": Object {},
|
||||||
|
"__props": Array [
|
||||||
|
Object {},
|
||||||
|
Array [],
|
||||||
|
],
|
||||||
|
"name": "VTU_ROOT",
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"_container": <div
|
||||||
|
data-v-app=""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
fill="none"
|
||||||
|
height="24"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
style="position: absolute;"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>,
|
||||||
|
"_context": Object {
|
||||||
|
"app": [Circular],
|
||||||
|
"components": Object {
|
||||||
|
"transition": Object {
|
||||||
|
"name": "transition",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"transition-group": Object {
|
||||||
|
"name": "transition-group",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directives": Object {},
|
||||||
|
"mixins": Array [
|
||||||
|
Object {
|
||||||
|
"__emits": null,
|
||||||
|
"__props": Array [],
|
||||||
|
"beforeCreate": [Function],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"provides": Object {},
|
||||||
|
"reload": [Function],
|
||||||
|
},
|
||||||
|
"_props": null,
|
||||||
|
"_uid": 3,
|
||||||
|
"component": [Function],
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directive": [Function],
|
||||||
|
"mixin": [Function],
|
||||||
|
"mount": [Function],
|
||||||
|
"provide": [Function],
|
||||||
|
"unmount": [Function],
|
||||||
|
"use": [Function],
|
||||||
|
"version": "3.0.6",
|
||||||
|
},
|
||||||
|
"__setProps": [Function],
|
||||||
|
"componentVM": Object {
|
||||||
|
"hasOwnProperty": [Function],
|
||||||
|
},
|
||||||
|
"rootVM": Object {},
|
||||||
|
"wrapperElement": <svg
|
||||||
|
fill="none"
|
||||||
|
height="24"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
style="position: absolute;"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Using lucide icon components should adjust the size, stroke color and stroke width 1`] = `
|
||||||
|
VueWrapper {
|
||||||
|
"__app": Object {
|
||||||
|
"_component": Object {
|
||||||
|
"__emits": Object {},
|
||||||
|
"__props": Array [
|
||||||
|
Object {},
|
||||||
|
Array [],
|
||||||
|
],
|
||||||
|
"name": "VTU_ROOT",
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"_container": <div
|
||||||
|
data-v-app=""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
fill="none"
|
||||||
|
height="48"
|
||||||
|
size="48"
|
||||||
|
stroke="red"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
strokeWidth="4"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="48"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>,
|
||||||
|
"_context": Object {
|
||||||
|
"app": [Circular],
|
||||||
|
"components": Object {
|
||||||
|
"transition": Object {
|
||||||
|
"name": "transition",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"transition-group": Object {
|
||||||
|
"name": "transition-group",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directives": Object {},
|
||||||
|
"mixins": Array [
|
||||||
|
Object {
|
||||||
|
"__emits": null,
|
||||||
|
"__props": Array [],
|
||||||
|
"beforeCreate": [Function],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"provides": Object {},
|
||||||
|
"reload": [Function],
|
||||||
|
},
|
||||||
|
"_props": null,
|
||||||
|
"_uid": 1,
|
||||||
|
"component": [Function],
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directive": [Function],
|
||||||
|
"mixin": [Function],
|
||||||
|
"mount": [Function],
|
||||||
|
"provide": [Function],
|
||||||
|
"unmount": [Function],
|
||||||
|
"use": [Function],
|
||||||
|
"version": "3.0.6",
|
||||||
|
},
|
||||||
|
"__setProps": [Function],
|
||||||
|
"componentVM": Object {
|
||||||
|
"hasOwnProperty": [Function],
|
||||||
|
},
|
||||||
|
"rootVM": Object {},
|
||||||
|
"wrapperElement": <svg
|
||||||
|
fill="none"
|
||||||
|
height="48"
|
||||||
|
size="48"
|
||||||
|
stroke="red"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
strokeWidth="4"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="48"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Using lucide icon components should render an component 1`] = `
|
||||||
|
VueWrapper {
|
||||||
|
"__app": Object {
|
||||||
|
"_component": Object {
|
||||||
|
"__emits": Object {},
|
||||||
|
"__props": Array [
|
||||||
|
Object {},
|
||||||
|
Array [],
|
||||||
|
],
|
||||||
|
"name": "VTU_ROOT",
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"_container": <div
|
||||||
|
data-v-app=""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
fill="none"
|
||||||
|
height="24"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>,
|
||||||
|
"_context": Object {
|
||||||
|
"app": [Circular],
|
||||||
|
"components": Object {
|
||||||
|
"transition": Object {
|
||||||
|
"name": "transition",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
"transition-group": Object {
|
||||||
|
"name": "transition-group",
|
||||||
|
"props": undefined,
|
||||||
|
"render": [Function],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directives": Object {},
|
||||||
|
"mixins": Array [
|
||||||
|
Object {
|
||||||
|
"__emits": null,
|
||||||
|
"__props": Array [],
|
||||||
|
"beforeCreate": [Function],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"provides": Object {},
|
||||||
|
"reload": [Function],
|
||||||
|
},
|
||||||
|
"_props": null,
|
||||||
|
"_uid": 0,
|
||||||
|
"component": [Function],
|
||||||
|
"config": Object {
|
||||||
|
"errorHandler": undefined,
|
||||||
|
"globalProperties": Object {},
|
||||||
|
"isCustomElement": [Function],
|
||||||
|
"isNativeTag": [Function],
|
||||||
|
"optionMergeStrategies": Object {},
|
||||||
|
"performance": false,
|
||||||
|
"warnHandler": undefined,
|
||||||
|
},
|
||||||
|
"directive": [Function],
|
||||||
|
"mixin": [Function],
|
||||||
|
"mount": [Function],
|
||||||
|
"provide": [Function],
|
||||||
|
"unmount": [Function],
|
||||||
|
"use": [Function],
|
||||||
|
"version": "3.0.6",
|
||||||
|
},
|
||||||
|
"__setProps": [Function],
|
||||||
|
"componentVM": Object {
|
||||||
|
"hasOwnProperty": [Function],
|
||||||
|
},
|
||||||
|
"rootVM": Object {},
|
||||||
|
"wrapperElement": <svg
|
||||||
|
fill="none"
|
||||||
|
height="24"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
width="24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="9"
|
||||||
|
x2="9.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
<line
|
||||||
|
x1="15"
|
||||||
|
x2="15.01"
|
||||||
|
y1="9"
|
||||||
|
y2="9"
|
||||||
|
/>
|
||||||
|
</svg>,
|
||||||
|
}
|
||||||
|
`;
|
||||||
44
packages/lucide-vue-next/tests/lucide-vue-next.spec.js
Normal file
44
packages/lucide-vue-next/tests/lucide-vue-next.spec.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import { mount } from '@vue/test-utils'
|
||||||
|
import { Smile } from '../src/icons'
|
||||||
|
|
||||||
|
describe('Using lucide icon components', () => {
|
||||||
|
it('should render an component', () => {
|
||||||
|
const wrapper = mount(Smile)
|
||||||
|
expect(wrapper).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should adjust the size, stroke color and stroke width', () => {
|
||||||
|
const wrapper = mount(Smile, {
|
||||||
|
propsData: {
|
||||||
|
size: 48,
|
||||||
|
stroke: 'red',
|
||||||
|
strokeWidth: 4
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(wrapper).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
it('should add a class to the element', () => {
|
||||||
|
const wrapper = mount(Smile, {
|
||||||
|
attrs: {
|
||||||
|
class: "lucide-icon my-icon"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(wrapper).toMatchSnapshot();
|
||||||
|
expect(String(wrapper.classes())).toBe(String(['lucide-icon', 'my-icon']))
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should add a style attribute to the element', () => {
|
||||||
|
const wrapper = mount(Smile, {
|
||||||
|
attrs: {
|
||||||
|
style: 'position: absolute',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(wrapper).toMatchSnapshot();
|
||||||
|
expect(wrapper.attributes('style')).toContain('position: absolute')
|
||||||
|
});
|
||||||
|
});
|
||||||
4028
packages/lucide-vue-next/yarn.lock
Normal file
4028
packages/lucide-vue-next/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,8 @@ Implementation of the lucide icon library for Vue applications.
|
|||||||
|
|
||||||
> What is lucide? Read it [here](https://github.com/lucide-icons/lucide#what-is-lucide).
|
> What is lucide? Read it [here](https://github.com/lucide-icons/lucide#what-is-lucide).
|
||||||
|
|
||||||
|
> :warning: This version of lucide is for Vue 2, For Vue 3 got to [lucide-vue-next](https://github.com/lucide-icons/lucide/tree/master/packages/lucide-vue-next#lucide-vue-next)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"build": "yarn clean && yarn build:icons && yarn build:es && yarn build:bundles",
|
"build": "yarn clean && yarn build:icons && yarn build:es && yarn build:bundles",
|
||||||
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
|
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
|
||||||
"build:icons": "yarn --cwd ../../ build:icons --output=../packages/lucide-vue/src --templateSrc=../packages/lucide-vue/scripts/exportTemplate",
|
"build:icons": "yarn --cwd ../../ build:icons --output=../packages/lucide-vue/src --templateSrc=../packages/lucide-vue/scripts/exportTemplate",
|
||||||
"build:es": "yarn --cwd ../../ babel packages/lucide-vue/src -d packages/lucide-vue/dist/esm",
|
"build:es": "babel src -d dist/esm",
|
||||||
"build:bundles": "yarn --cwd ../../ rollup -c packages/lucide-vue/rollup.config.js",
|
"build:bundles": "yarn --cwd ../../ rollup -c packages/lucide-vue/rollup.config.js",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watchAll"
|
"test:watch": "jest --watchAll"
|
||||||
|
|||||||
253
yarn.lock
253
yarn.lock
@@ -391,6 +391,15 @@
|
|||||||
jsesc "^2.5.1"
|
jsesc "^2.5.1"
|
||||||
source-map "^0.5.0"
|
source-map "^0.5.0"
|
||||||
|
|
||||||
|
"@babel/generator@^7.14.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.14.0.tgz#0f35d663506c43e4f10898fbda0d752ec75494be"
|
||||||
|
integrity sha512-C6u00HbmsrNPug6A+CiNl8rEys7TsdcXwg12BHi2ca5rUfAs3+UwZsuDQSXnc+wCElCXMB8gMaJ3YXDdh8fAlg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.14.0"
|
||||||
|
jsesc "^2.5.1"
|
||||||
|
source-map "^0.5.0"
|
||||||
|
|
||||||
"@babel/helper-annotate-as-pure@^7.10.4", "@babel/helper-annotate-as-pure@^7.12.13":
|
"@babel/helper-annotate-as-pure@^7.10.4", "@babel/helper-annotate-as-pure@^7.12.13":
|
||||||
version "7.12.13"
|
version "7.12.13"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.12.13.tgz#0f58e86dfc4bb3b1fcd7db806570e177d439b6ab"
|
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.12.13.tgz#0f58e86dfc4bb3b1fcd7db806570e177d439b6ab"
|
||||||
@@ -547,6 +556,20 @@
|
|||||||
"@babel/traverse" "^7.13.13"
|
"@babel/traverse" "^7.13.13"
|
||||||
"@babel/types" "^7.13.14"
|
"@babel/types" "^7.13.14"
|
||||||
|
|
||||||
|
"@babel/helper-module-transforms@^7.14.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.14.0.tgz#8fcf78be220156f22633ee204ea81f73f826a8ad"
|
||||||
|
integrity sha512-L40t9bxIuGOfpIGA3HNkJhU9qYrf4y5A5LUSw7rGMSn+pcG8dfJ0g6Zval6YJGd2nEjI7oP00fRdnhLKndx6bw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-module-imports" "^7.13.12"
|
||||||
|
"@babel/helper-replace-supers" "^7.13.12"
|
||||||
|
"@babel/helper-simple-access" "^7.13.12"
|
||||||
|
"@babel/helper-split-export-declaration" "^7.12.13"
|
||||||
|
"@babel/helper-validator-identifier" "^7.14.0"
|
||||||
|
"@babel/template" "^7.12.13"
|
||||||
|
"@babel/traverse" "^7.14.0"
|
||||||
|
"@babel/types" "^7.14.0"
|
||||||
|
|
||||||
"@babel/helper-optimise-call-expression@^7.12.13":
|
"@babel/helper-optimise-call-expression@^7.12.13":
|
||||||
version "7.12.13"
|
version "7.12.13"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.13.tgz#5c02d171b4c8615b1e7163f888c1c81c30a2aaea"
|
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.13.tgz#5c02d171b4c8615b1e7163f888c1c81c30a2aaea"
|
||||||
@@ -621,6 +644,11 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed"
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed"
|
||||||
integrity sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==
|
integrity sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==
|
||||||
|
|
||||||
|
"@babel/helper-validator-identifier@^7.14.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz#d26cad8a47c65286b15df1547319a5d0bcf27288"
|
||||||
|
integrity sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==
|
||||||
|
|
||||||
"@babel/helper-validator-option@^7.12.1", "@babel/helper-validator-option@^7.12.11", "@babel/helper-validator-option@^7.12.17":
|
"@babel/helper-validator-option@^7.12.1", "@babel/helper-validator-option@^7.12.11", "@babel/helper-validator-option@^7.12.17":
|
||||||
version "7.12.17"
|
version "7.12.17"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz#d1fbf012e1a79b7eebbfdc6d270baaf8d9eb9831"
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz#d1fbf012e1a79b7eebbfdc6d270baaf8d9eb9831"
|
||||||
@@ -672,6 +700,11 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.11.tgz#f93ebfc99d21c1772afbbaa153f47e7ce2f50b88"
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.11.tgz#f93ebfc99d21c1772afbbaa153f47e7ce2f50b88"
|
||||||
integrity sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==
|
integrity sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==
|
||||||
|
|
||||||
|
"@babel/parser@^7.12.0", "@babel/parser@^7.14.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.0.tgz#2f0ebfed92bcddcc8395b91f1895191ce2760380"
|
||||||
|
integrity sha512-AHbfoxesfBALg33idaTBVUkLnfXtsgvJREf93p4p0Lwsz4ppfE7g1tpEXVm4vrxUcH4DVhAa9Z1m1zqf9WUC7Q==
|
||||||
|
|
||||||
"@babel/parser@^7.12.10", "@babel/parser@^7.12.7", "@babel/parser@^7.13.15":
|
"@babel/parser@^7.12.10", "@babel/parser@^7.12.7", "@babel/parser@^7.13.15":
|
||||||
version "7.13.15"
|
version "7.13.15"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.15.tgz#8e66775fb523599acb6a289e12929fa5ab0954d8"
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.15.tgz#8e66775fb523599acb6a289e12929fa5ab0954d8"
|
||||||
@@ -1108,6 +1141,16 @@
|
|||||||
"@babel/helper-simple-access" "^7.12.13"
|
"@babel/helper-simple-access" "^7.12.13"
|
||||||
babel-plugin-dynamic-import-node "^2.3.3"
|
babel-plugin-dynamic-import-node "^2.3.3"
|
||||||
|
|
||||||
|
"@babel/plugin-transform-modules-commonjs@^7.2.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.14.0.tgz#52bc199cb581e0992edba0f0f80356467587f161"
|
||||||
|
integrity sha512-EX4QePlsTaRZQmw9BsoPeyh5OCtRGIhwfLquhxGp5e32w+dyL8htOcDwamlitmNFK6xBZYlygjdye9dbd9rUlQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-module-transforms" "^7.14.0"
|
||||||
|
"@babel/helper-plugin-utils" "^7.13.0"
|
||||||
|
"@babel/helper-simple-access" "^7.13.12"
|
||||||
|
babel-plugin-dynamic-import-node "^2.3.3"
|
||||||
|
|
||||||
"@babel/plugin-transform-modules-systemjs@^7.12.1", "@babel/plugin-transform-modules-systemjs@^7.13.8":
|
"@babel/plugin-transform-modules-systemjs@^7.12.1", "@babel/plugin-transform-modules-systemjs@^7.13.8":
|
||||||
version "7.13.8"
|
version "7.13.8"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.13.8.tgz#6d066ee2bff3c7b3d60bf28dec169ad993831ae3"
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.13.8.tgz#6d066ee2bff3c7b3d60bf28dec169ad993831ae3"
|
||||||
@@ -1651,6 +1694,20 @@
|
|||||||
debug "^4.1.0"
|
debug "^4.1.0"
|
||||||
globals "^11.1.0"
|
globals "^11.1.0"
|
||||||
|
|
||||||
|
"@babel/traverse@^7.14.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.14.0.tgz#cea0dc8ae7e2b1dec65f512f39f3483e8cc95aef"
|
||||||
|
integrity sha512-dZ/a371EE5XNhTHomvtuLTUyx6UEoJmYX+DT5zBCQN3McHemsuIaKKYqsc/fs26BEkHs/lBZy0J571LP5z9kQA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/code-frame" "^7.12.13"
|
||||||
|
"@babel/generator" "^7.14.0"
|
||||||
|
"@babel/helper-function-name" "^7.12.13"
|
||||||
|
"@babel/helper-split-export-declaration" "^7.12.13"
|
||||||
|
"@babel/parser" "^7.14.0"
|
||||||
|
"@babel/types" "^7.14.0"
|
||||||
|
debug "^4.1.0"
|
||||||
|
globals "^11.1.0"
|
||||||
|
|
||||||
"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.12.17", "@babel/types@^7.13.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
|
"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.12.17", "@babel/types@^7.13.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
|
||||||
version "7.13.0"
|
version "7.13.0"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.0.tgz#74424d2816f0171b4100f0ab34e9a374efdf7f80"
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.0.tgz#74424d2816f0171b4100f0ab34e9a374efdf7f80"
|
||||||
@@ -1660,6 +1717,14 @@
|
|||||||
lodash "^4.17.19"
|
lodash "^4.17.19"
|
||||||
to-fast-properties "^2.0.0"
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
|
"@babel/types@^7.12.0", "@babel/types@^7.14.0":
|
||||||
|
version "7.14.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.0.tgz#3fc3fc74e0cdad878182e5f66cc6bcab1915a802"
|
||||||
|
integrity sha512-O2LVLdcnWplaGxiPBz12d0HcdN8QdxdsWYhz5LSeuukV/5mn2xUUc3gBeU4QBYPJ18g/UToe8F532XJ608prmg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-validator-identifier" "^7.14.0"
|
||||||
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
"@babel/types@^7.12.10", "@babel/types@^7.12.11", "@babel/types@^7.12.7", "@babel/types@^7.13.12", "@babel/types@^7.13.14", "@babel/types@^7.8.6":
|
"@babel/types@^7.12.10", "@babel/types@^7.12.11", "@babel/types@^7.12.7", "@babel/types@^7.13.12", "@babel/types@^7.13.14", "@babel/types@^7.8.6":
|
||||||
version "7.13.14"
|
version "7.13.14"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.14.tgz#c35a4abb15c7cd45a2746d78ab328e362cbace0d"
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.14.tgz#c35a4abb15c7cd45a2746d78ab328e362cbace0d"
|
||||||
@@ -2422,6 +2487,108 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
|
"@vue/compiler-core@3.0.5":
|
||||||
|
version "3.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.0.5.tgz#a6e54cabe9536e74c6513acd2649f311af1d43ac"
|
||||||
|
integrity sha512-iFXwk2gmU/GGwN4hpBwDWWMLvpkIejf/AybcFtlQ5V1ur+5jwfBaV0Y1RXoR6ePfBPJixtKZ3PmN+M+HgMAtfQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/parser" "^7.12.0"
|
||||||
|
"@babel/types" "^7.12.0"
|
||||||
|
"@vue/shared" "3.0.5"
|
||||||
|
estree-walker "^2.0.1"
|
||||||
|
source-map "^0.6.1"
|
||||||
|
|
||||||
|
"@vue/compiler-core@3.0.6":
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.0.6.tgz#265bbe0711a81ab4c1344f8294e22e2d08ca167d"
|
||||||
|
integrity sha512-O7QzQ39DskOoPpEDWRvKwDX7Py9UNT7SvLHvBdIfckGA3OsAEBdiAtuYQNcVmUDeBajm+08v5wyvHWBbWgkilQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/parser" "^7.12.0"
|
||||||
|
"@babel/types" "^7.12.0"
|
||||||
|
"@vue/shared" "3.0.6"
|
||||||
|
estree-walker "^2.0.1"
|
||||||
|
source-map "^0.6.1"
|
||||||
|
|
||||||
|
"@vue/compiler-dom@3.0.5":
|
||||||
|
version "3.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.0.5.tgz#7885a13e6d18f64dde8ebceec052ed2c102696c2"
|
||||||
|
integrity sha512-HSOSe2XSPuCkp20h4+HXSiPH9qkhz6YbW9z9ZtL5vef2T2PMugH7/osIFVSrRZP/Ul5twFZ7MIRlp8tPX6e4/g==
|
||||||
|
dependencies:
|
||||||
|
"@vue/compiler-core" "3.0.5"
|
||||||
|
"@vue/shared" "3.0.5"
|
||||||
|
|
||||||
|
"@vue/compiler-dom@3.0.6":
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.0.6.tgz#f94c3959320a1252915bd02b943f96a7ee3fc951"
|
||||||
|
integrity sha512-q1wfHzYwvDRAhBlx+Qa+n3Bu5nHr1qL/j0UbpNlbQDwIlt9zpvmXUrUCL+i55Bh5lLKvSe+mNo0qlwNEApm+jA==
|
||||||
|
dependencies:
|
||||||
|
"@vue/compiler-core" "3.0.6"
|
||||||
|
"@vue/shared" "3.0.6"
|
||||||
|
|
||||||
|
"@vue/compiler-sfc@^3.0.0":
|
||||||
|
version "3.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.0.5.tgz#3ae08e60244a72faf9598361874fb7bdb5b1d37c"
|
||||||
|
integrity sha512-uOAC4X0Gx3SQ9YvDC7YMpbDvoCmPvP0afVhJoxRotDdJ+r8VO3q4hFf/2f7U62k4Vkdftp6DVni8QixrfYzs+w==
|
||||||
|
dependencies:
|
||||||
|
"@babel/parser" "^7.12.0"
|
||||||
|
"@babel/types" "^7.12.0"
|
||||||
|
"@vue/compiler-core" "3.0.5"
|
||||||
|
"@vue/compiler-dom" "3.0.5"
|
||||||
|
"@vue/compiler-ssr" "3.0.5"
|
||||||
|
"@vue/shared" "3.0.5"
|
||||||
|
consolidate "^0.16.0"
|
||||||
|
estree-walker "^2.0.1"
|
||||||
|
hash-sum "^2.0.0"
|
||||||
|
lru-cache "^5.1.1"
|
||||||
|
magic-string "^0.25.7"
|
||||||
|
merge-source-map "^1.1.0"
|
||||||
|
postcss "^7.0.32"
|
||||||
|
postcss-modules "^3.2.2"
|
||||||
|
postcss-selector-parser "^6.0.4"
|
||||||
|
source-map "^0.6.1"
|
||||||
|
|
||||||
|
"@vue/compiler-ssr@3.0.5":
|
||||||
|
version "3.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.0.5.tgz#7661ad891a0be948726c7f7ad1e425253c587b83"
|
||||||
|
integrity sha512-Wm//Kuxa1DpgjE4P9W0coZr8wklOfJ35Jtq61CbU+t601CpPTK4+FL2QDBItaG7aoUUDCWL5nnxMkuaOgzTBKg==
|
||||||
|
dependencies:
|
||||||
|
"@vue/compiler-dom" "3.0.5"
|
||||||
|
"@vue/shared" "3.0.5"
|
||||||
|
|
||||||
|
"@vue/reactivity@3.0.6":
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.0.6.tgz#7b16f3d5d04cc55028085fff0bb8475cc0e32991"
|
||||||
|
integrity sha512-hX8PnZayNMoljWSYrZW0OclQnRaMoHxvi5eeFVFPDr7+tzBeiftmmozKttxxCLoDxBWX1B4gNc237DIcYU63Lw==
|
||||||
|
dependencies:
|
||||||
|
"@vue/shared" "3.0.6"
|
||||||
|
|
||||||
|
"@vue/runtime-core@3.0.6":
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.0.6.tgz#d16779b5664593f1d25be677fb1b1968024aa532"
|
||||||
|
integrity sha512-x6N38P0DeMyrHiAxCE/rACHTyydOzlg8IyUIPkSJ4rrSkuJnAtFKQicK6fm8NuD21dwdPr8KcZ4Cn4xaqL1JJg==
|
||||||
|
dependencies:
|
||||||
|
"@vue/reactivity" "3.0.6"
|
||||||
|
"@vue/shared" "3.0.6"
|
||||||
|
|
||||||
|
"@vue/runtime-dom@3.0.6":
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.0.6.tgz#e7d6c61913d871f1f020a9a81b558c8fcbeba8c6"
|
||||||
|
integrity sha512-Y6y4Tak9//VXB2mp2NVQxbwC4a5xsnJpotpo8yBAB3qB3L4v4HQLpqxSkwThRwI6Y6Z7dydX/sgfraqLBE8BWg==
|
||||||
|
dependencies:
|
||||||
|
"@vue/runtime-core" "3.0.6"
|
||||||
|
"@vue/shared" "3.0.6"
|
||||||
|
csstype "^2.6.8"
|
||||||
|
|
||||||
|
"@vue/shared@3.0.5":
|
||||||
|
version "3.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.0.5.tgz#c131d88bd6713cc4d93b3bb1372edb1983225ff0"
|
||||||
|
integrity sha512-gYsNoGkWejBxNO6SNRjOh/xKeZ0H0V+TFzaPzODfBjkAIb0aQgBuixC1brandC/CDJy1wYPwSoYrXpvul7m6yw==
|
||||||
|
|
||||||
|
"@vue/shared@3.0.6":
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.0.6.tgz#d65576430fc4ad383dc7c829118798e5169178d4"
|
||||||
|
integrity sha512-c37C60HpelUZIx+SNZVEINSxkFzQYhIXFg5AynnIA4QDBmY4iSPoACfGSwSUTCTKImukPeCgY2oqRJVP3R1Mnw==
|
||||||
|
|
||||||
"@vue/test-utils@^1.1.2":
|
"@vue/test-utils@^1.1.2":
|
||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.3.tgz#747f5683d8d4633c85a385fe2e02c1bb35bec153"
|
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.3.tgz#747f5683d8d4633c85a385fe2e02c1bb35bec153"
|
||||||
@@ -2431,6 +2598,11 @@
|
|||||||
lodash "^4.17.15"
|
lodash "^4.17.15"
|
||||||
pretty "^2.0.0"
|
pretty "^2.0.0"
|
||||||
|
|
||||||
|
"@vue/test-utils@^2.0.0-rc.6":
|
||||||
|
version "2.0.0-rc.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-2.0.0-rc.6.tgz#d0aac24d20450d379e183f70542c0822670b8783"
|
||||||
|
integrity sha512-0cnQBVH589PwgqWpyv1fgCAz+9Ram/MsvN3ZEAEVXi1aPuhUa22EudGc0WezQ9PKwR+L40NrBmt3JBXE2tSRRQ==
|
||||||
|
|
||||||
"@webassemblyjs/ast@1.9.0":
|
"@webassemblyjs/ast@1.9.0":
|
||||||
version "1.9.0"
|
version "1.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964"
|
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964"
|
||||||
@@ -3409,7 +3581,7 @@ blocking-proxy@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
|
|
||||||
bluebird@^3.5.5:
|
bluebird@^3.5.5, bluebird@^3.7.2:
|
||||||
version "3.7.2"
|
version "3.7.2"
|
||||||
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
|
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
|
||||||
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
|
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
|
||||||
@@ -4328,6 +4500,13 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
|
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
|
||||||
integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=
|
integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=
|
||||||
|
|
||||||
|
consolidate@^0.16.0:
|
||||||
|
version "0.16.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/consolidate/-/consolidate-0.16.0.tgz#a11864768930f2f19431660a65906668f5fbdc16"
|
||||||
|
integrity sha512-Nhl1wzCslqXYTJVDyJCu3ODohy9OfBMB5uD2BiBTzd7w+QY0lBzafkR8y8755yMYHAaMD4NuzbAw03/xzfw+eQ==
|
||||||
|
dependencies:
|
||||||
|
bluebird "^3.7.2"
|
||||||
|
|
||||||
constants-browserify@^1.0.0:
|
constants-browserify@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
|
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
|
||||||
@@ -4806,7 +4985,7 @@ cssstyle@^2.3.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
cssom "~0.3.6"
|
cssom "~0.3.6"
|
||||||
|
|
||||||
csstype@^2.5.7:
|
csstype@^2.5.7, csstype@^2.6.8:
|
||||||
version "2.6.16"
|
version "2.6.16"
|
||||||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.16.tgz#544d69f547013b85a40d15bff75db38f34fe9c39"
|
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.16.tgz#544d69f547013b85a40d15bff75db38f34fe9c39"
|
||||||
integrity sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==
|
integrity sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==
|
||||||
@@ -6322,6 +6501,13 @@ gauge@~2.7.3:
|
|||||||
strip-ansi "^3.0.1"
|
strip-ansi "^3.0.1"
|
||||||
wide-align "^1.1.0"
|
wide-align "^1.1.0"
|
||||||
|
|
||||||
|
generic-names@^2.0.1:
|
||||||
|
version "2.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/generic-names/-/generic-names-2.0.1.tgz#f8a378ead2ccaa7a34f0317b05554832ae41b872"
|
||||||
|
integrity sha512-kPCHWa1m9wGG/OwQpeweTwM/PYiQLrUIxXbt/P4Nic3LbGjCP0YwrALHW1uNLKZ0LIMg+RF+XRlj2ekT9ZlZAQ==
|
||||||
|
dependencies:
|
||||||
|
loader-utils "^1.1.0"
|
||||||
|
|
||||||
gensync@^1.0.0-beta.1, gensync@^1.0.0-beta.2:
|
gensync@^1.0.0-beta.1, gensync@^1.0.0-beta.2:
|
||||||
version "1.0.0-beta.2"
|
version "1.0.0-beta.2"
|
||||||
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
|
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
|
||||||
@@ -6651,6 +6837,11 @@ hash-base@^3.0.0:
|
|||||||
readable-stream "^3.6.0"
|
readable-stream "^3.6.0"
|
||||||
safe-buffer "^5.2.0"
|
safe-buffer "^5.2.0"
|
||||||
|
|
||||||
|
hash-sum@^2.0.0:
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/hash-sum/-/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a"
|
||||||
|
integrity sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==
|
||||||
|
|
||||||
hash.js@^1.0.0, hash.js@^1.0.3:
|
hash.js@^1.0.0, hash.js@^1.0.3:
|
||||||
version "1.1.7"
|
version "1.1.7"
|
||||||
resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42"
|
resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42"
|
||||||
@@ -6935,6 +7126,11 @@ iconv-lite@^0.6.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
safer-buffer ">= 2.1.2 < 3.0.0"
|
safer-buffer ">= 2.1.2 < 3.0.0"
|
||||||
|
|
||||||
|
icss-replace-symbols@^1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
|
||||||
|
integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=
|
||||||
|
|
||||||
icss-utils@^4.0.0, icss-utils@^4.1.1:
|
icss-utils@^4.0.0, icss-utils@^4.1.1:
|
||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467"
|
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467"
|
||||||
@@ -8496,6 +8692,11 @@ locate-path@^6.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
p-locate "^5.0.0"
|
p-locate "^5.0.0"
|
||||||
|
|
||||||
|
lodash.camelcase@^4.3.0:
|
||||||
|
version "4.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
|
||||||
|
integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY=
|
||||||
|
|
||||||
lodash.debounce@^4.0.8:
|
lodash.debounce@^4.0.8:
|
||||||
version "4.0.8"
|
version "4.0.8"
|
||||||
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
|
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
|
||||||
@@ -8596,6 +8797,14 @@ lru-cache@^6.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
yallist "^4.0.0"
|
yallist "^4.0.0"
|
||||||
|
|
||||||
|
lucide-react@0.15.11:
|
||||||
|
version "0.15.11"
|
||||||
|
resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.15.11.tgz#34f2d76d1e7fda978f4a8b2d0538b84ecbecf106"
|
||||||
|
integrity sha512-2NOpAVt2ScBkwlRvub7adfmWZX1o+so+3elAtyp5g9jaAKthszAgKZwNEFhB2Gl1tT5CuvVLPsjaRjhnpNjq9w==
|
||||||
|
dependencies:
|
||||||
|
prop-types "^15.7.2"
|
||||||
|
react "^16.5.1"
|
||||||
|
|
||||||
magic-string@0.25.7, magic-string@^0.25.0, magic-string@^0.25.7:
|
magic-string@0.25.7, magic-string@^0.25.0, magic-string@^0.25.7:
|
||||||
version "0.25.7"
|
version "0.25.7"
|
||||||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
|
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
|
||||||
@@ -10190,6 +10399,21 @@ postcss-modules-values@^4.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
icss-utils "^5.0.0"
|
icss-utils "^5.0.0"
|
||||||
|
|
||||||
|
postcss-modules@^3.2.2:
|
||||||
|
version "3.2.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/postcss-modules/-/postcss-modules-3.2.2.tgz#ee390de0f9f18e761e1778dfb9be26685c02c51f"
|
||||||
|
integrity sha512-JQ8IAqHELxC0N6tyCg2UF40pACY5oiL6UpiqqcIFRWqgDYO8B0jnxzoQ0EOpPrWXvcpu6BSbQU/3vSiq7w8Nhw==
|
||||||
|
dependencies:
|
||||||
|
generic-names "^2.0.1"
|
||||||
|
icss-replace-symbols "^1.1.0"
|
||||||
|
lodash.camelcase "^4.3.0"
|
||||||
|
postcss "^7.0.32"
|
||||||
|
postcss-modules-extract-imports "^2.0.0"
|
||||||
|
postcss-modules-local-by-default "^3.0.2"
|
||||||
|
postcss-modules-scope "^2.2.0"
|
||||||
|
postcss-modules-values "^3.0.0"
|
||||||
|
string-hash "^1.1.1"
|
||||||
|
|
||||||
postcss-normalize-charset@^4.0.1:
|
postcss-normalize-charset@^4.0.1:
|
||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4"
|
resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4"
|
||||||
@@ -12106,6 +12330,11 @@ string-argv@0.3.1:
|
|||||||
resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da"
|
resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da"
|
||||||
integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==
|
integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==
|
||||||
|
|
||||||
|
string-hash@^1.1.1:
|
||||||
|
version "1.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b"
|
||||||
|
integrity sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=
|
||||||
|
|
||||||
string-length@^4.0.1:
|
string-length@^4.0.1:
|
||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.1.tgz#4a973bf31ef77c4edbceadd6af2611996985f8a1"
|
resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.1.tgz#4a973bf31ef77c4edbceadd6af2611996985f8a1"
|
||||||
@@ -13152,6 +13381,17 @@ vue-jest@^3.0.7:
|
|||||||
tsconfig "^7.0.0"
|
tsconfig "^7.0.0"
|
||||||
vue-template-es2015-compiler "^1.6.0"
|
vue-template-es2015-compiler "^1.6.0"
|
||||||
|
|
||||||
|
vue-jest@^5.0.0-alpha.7:
|
||||||
|
version "5.0.0-alpha.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/vue-jest/-/vue-jest-5.0.0-alpha.8.tgz#45b12335dbb73c9ab8309f1e24b2fc8781d519f9"
|
||||||
|
integrity sha512-4FqH69T6X6rOglrEui/mDWvOTGB9ammmCXLVdS4s524D4Emx8fBC4sKAPFAUZfbWpYh/7i7xWoPwF4agfyGWwA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/plugin-transform-modules-commonjs" "^7.2.0"
|
||||||
|
chalk "^2.1.0"
|
||||||
|
convert-source-map "^1.6.0"
|
||||||
|
extract-from-css "^0.4.4"
|
||||||
|
tsconfig "^7.0.0"
|
||||||
|
|
||||||
vue-template-compiler@^2.6.12:
|
vue-template-compiler@^2.6.12:
|
||||||
version "2.6.12"
|
version "2.6.12"
|
||||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz#947ed7196744c8a5285ebe1233fe960437fcc57e"
|
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz#947ed7196744c8a5285ebe1233fe960437fcc57e"
|
||||||
@@ -13165,6 +13405,15 @@ vue-template-es2015-compiler@^1.6.0:
|
|||||||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
|
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
|
||||||
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
|
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
|
||||||
|
|
||||||
|
vue@3.0.6:
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/vue/-/vue-3.0.6.tgz#2c16ed4bb66f16d6c6f6eaa3b7d5835a76598049"
|
||||||
|
integrity sha512-fgjbe/+f1EsqG7ZbaFSnxdzQXF2DKoFCdJlPxZZJy9XMtyXS6SY8pGzLi8WYb4zmsPLHvTZz4bHW30kFDk7vfA==
|
||||||
|
dependencies:
|
||||||
|
"@vue/compiler-dom" "3.0.6"
|
||||||
|
"@vue/runtime-dom" "3.0.6"
|
||||||
|
"@vue/shared" "3.0.6"
|
||||||
|
|
||||||
vue@^2.6.12:
|
vue@^2.6.12:
|
||||||
version "2.6.12"
|
version "2.6.12"
|
||||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.12.tgz#f5ebd4fa6bd2869403e29a896aed4904456c9123"
|
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.12.tgz#f5ebd4fa6bd2869403e29a896aed4904456c9123"
|
||||||
|
|||||||
Reference in New Issue
Block a user