Skip to content

Commit

Permalink
feat(iconsax): new Iconsax component
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Sep 21, 2022
1 parent a952056 commit fe71c52
Show file tree
Hide file tree
Showing 16 changed files with 35,031 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"release": "standard-version",
"build-storybook": "build-storybook",
"build": "build-storybook",
"storybook": "start-storybook -p 6006",
"sb": "yarn storybook",
"dev": "yarn storybook",
"storybook": "yarn storybook -s ./packages/iconsax/src",
"sb": "npm run storybook",
"dev": "npm run storybook",
"dev:playground": "lerna run dev --scope @gits-id/playground --stream",
"build:playground": "lerna run build --scope @gits-id/playground --stream",
"deploy:ui": "firebase deploy --only hosting:ui",
Expand Down
4 changes: 4 additions & 0 deletions packages/iconsax/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
41 changes: 41 additions & 0 deletions packages/iconsax/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Vue Iconsax

## Installation

npm

```
npm i @gits-id/iconsax
```

yarn

```
yarn add @gits-id/iconsax
```

pnpm

```
pnpm i @gits-id/iconsax
```

## Usage

```vue
<script setup lang="ts">
import Iconsax from '@gits-id/iconsax';
</script>
<template>
<Iconsax name="airplane" />
</template>
```

## Documentation

View full documentation [here](https://gits-ui.web.app/?path=/story/components-iconsax--default).

## License

MIT
33 changes: 33 additions & 0 deletions packages/iconsax/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@gits-id/iconsax",
"version": "0.0.0",
"description": "Vue Iconsax",
"scripts": {
"build": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
"prepublishOnly": "npm run build",
"test": "vitest"
},
"keywords": [
"icon",
"gits",
"ui-component",
"iconsax",
"vue"
],
"author": "Warsono <[email protected]>",
"license": "MIT",
"dependencies": {
"vue": "^3.2.31"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-rc.17",
"c8": "^7.11.3",
"vite": "^3.0.0",
"vitest": "^0.12.4"
},
"main": "dist/iconsax.umd.js",
"unpkg": "dist/iconsax.iife.js",
"jsdelivr": "dist/iconsax.iife.js",
"module": "./dist/iconsax.mjs",
"types": "./dist/types/index.d.ts"
}
6 changes: 6 additions & 0 deletions packages/iconsax/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
27 changes: 27 additions & 0 deletions packages/iconsax/src/Iconsax.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {Story} from '@storybook/vue3';
import Iconsax from './Iconsax.vue';

export default {
title: 'Components/Iconsax',
component: Iconsax,
argTypes: {},
args: {
name: 'ic:round-home',
},
};

export const Default: Story<{}> = () => ({
components: {Iconsax},
template: `
<Iconsax name="airplane" />
`,
});
Default.parameters = {
docs: {
source: {
code: `
<Iconsax name="airplane" />
`,
},
},
};
9 changes: 9 additions & 0 deletions packages/iconsax/src/Iconsax.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup lang="ts">
defineProps<{
name: string;
}>();
</script>

<template>
<i :class="`isax isax-${name}`"></i>
</template>
Binary file added packages/iconsax/src/fonts/iconsax.eot
Binary file not shown.
5,763 changes: 5,763 additions & 0 deletions packages/iconsax/src/fonts/iconsax.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/iconsax/src/fonts/iconsax.ttf
Binary file not shown.
Binary file added packages/iconsax/src/fonts/iconsax.woff
Binary file not shown.
1 change: 1 addition & 0 deletions packages/iconsax/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from './Iconsax.vue';
Loading

0 comments on commit fe71c52

Please sign in to comment.