Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Qvant-lab/qui-max
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesytim committed Jun 23, 2021
2 parents 7c88974 + 4e4ff0d commit 2e53fa8
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<img src="https://img.shields.io/badge/vue-3.x-brightgreen">
<img alt="npm type definitions" src="https://img.shields.io/npm/types/@qvant/qui-max">
<a href="https://github.com/storybooks/storybook" target="_blank"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg"></a>
<img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@qvant/qui-max?color=brightgreen">
<span class="badge-npmversion"><a href="https://npmjs.org/package/@qvant/qui-max" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@qvant/qui-max.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/@qvant/qui-max" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@qvant/qui-max.svg" alt="NPM downloads" /></a></span>
<!--/BADGES--></p>
<img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@qvant/qui-max?color=brightgreen">
<span class="badge-npmversion"><a href="https://npmjs.org/package/@qvant/qui-max" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@qvant/qui-max.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/@qvant/qui-max" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@qvant/qui-max.svg" alt="NPM downloads" /></a></span>
</p>


<p align="center" class="unchanged rich-diff-level-one">
Expand All @@ -18,6 +18,8 @@

A component's library helping us build great products for our customers.

[Storybook (live demo)](https://qvant-lab.github.io/qui-max/)

What is it?

- 🔩 30+ Vue 3 components
Expand Down
163 changes: 163 additions & 0 deletions stories/intro.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
import { Meta, Story } from '@storybook/addon-docs/blocks';

<Meta title="Intro" />

<div
style={{
margin: '0 auto 40px',
maxWidth: '600px',
textAlign: 'center'
}}
>
<img src="https://github.com/Qvant-lab/qui/raw/master/.readme-assets/qui-logo.svg" />

<div style={{ marginTop: '16px' }}>
<span class="badge-shields">
<span><img src="https://img.shields.io/badge/vue-3.x-brightgreen"/></span>
<span><img alt="npm type definitions" src="https://img.shields.io/npm/types/@qvant/qui-max"/></span>
<span><a href="https://github.com/storybooks/storybook" target="_blank"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg"/></a></span>
<span><img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@qvant/qui-max?color=brightgreen"/></span>
<span class="badge-npmversion"><a href="https://npmjs.org/package/@qvant/qui-max" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@qvant/qui-max.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/@qvant/qui-max" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@qvant/qui-max.svg" alt="NPM downloads" /></a></span>
</span>
</div>

</div>

# Qui Max is a Vue 3 Design System for Web

A component's library helping us build great products for our customers.

What is it?

- 🔩 30+ Vue 3 components
- 🔥 Fully written with Composition API
- 🔑 Typescript
- 📦 icons pack
- 🏳️‍🌈 colors & grid
- 🥷 neumorphism styles
- 📚 storybook sandbox

Some examples below:

![buttons](https://github.com/Qvant-lab/qui/raw/master/.readme-assets/buttons.jpg)
![inputs](https://github.com/Qvant-lab/qui/raw/master/.readme-assets/inputs.gif)
![icons](https://github.com/Qvant-lab/qui/raw/master/.readme-assets/icons.gif)
![tables](https://github.com/Qvant-lab/qui/raw/master/.readme-assets/tables.jpg)
![other](https://github.com/Qvant-lab/qui/raw/master/.readme-assets/other.jpg)

## Install

```bash
npm install @qvant/qui-max -S
yarn add @qvant/qui-max
```

You can import Qui entirely, or just import what you need. Let's start with fully import.

## Quick setup

In main.js:

```js
import { createApp } from 'vue';
import Qui from '@qvant/qui-max';
import '@qvant/qui-max/styles';

const app = createApp(App);
// Setup all components
app.use(Qui, { useAllComponents: true });
// that's it! All components will be imported with styles
```

in YourComponent.vue: (Example)

```vue
<template>
<q-input v-model="value" />
</template>
<script>
import { ref } from 'vue';
export default {
setup() {
const value = ref('');
return { value };
}
};
</script>
```

Configure setup:

- import styles separately to avoid unused css
- set customI18nMessages to support any language for components
- change zIndex of appeared components (e.g Dialogs, Notifications, Dropdowns etc.)
- control setup of components

In main.js:

```js
import { createApp } from 'vue';
import Qui, { QButton } from '@qvant/qui-max';
// import required styles
import '@qvant/qui-max/css/main';
import '@qvant/qui-max/fonts';
import '@qvant/qui-max/icons';
// import the only styles of component you gonna use
import '@qvant/qui-max/css/q-button';
app.use(Qui, {
useAllComponents: false,
localization: {
locale: 'en', // Russian language by default, you can set `en` for English
customI18nMessages: {
// rewrite default texts, see the source: src/qComponents/constants/locales
en: {
QDatepicker: {
placeholder: 'Pick your birthday!'
}
}
},
zIndexCounter: 3000 // zIndexCounter is being used by some components, (e.g QPopover, QSelect, QDialog ...etc), 2000 by default
}
});
app.use(QButton);
```

Now you have implemented Vue and Qui Max to your project, and it's time to write your code.
Please refer to each component's [Stories](https://qvant-lab.github.io/qui-max/) to learn how to use them.

## Supported languages

- Russian
- English
- Also you can use any language by setting texts for components via 'customI18nMessages' property in the Qui instance. See the example above.

## Browser Support

Modern browsers are recomended

- safari: >11
- chrome: >=61
- firefox: >=58
- opera: >=62
- edge: >=16
- yandex: >=18
- ie: ? (we don't know :) and will not support it)

## Development

Clone repository and run storybook

```bash
yarn storybook
npm run storybook
```

## LICENSE

MIT

0 comments on commit 2e53fa8

Please sign in to comment.