0.2.1-beta • Published 1 year ago

@global-exchange/ui-kit-library v0.2.1-beta

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

UI Kit Library

Global Exchange set of components to share and reuse between Vue apps.

Installation

UI Kit Library is available as an npm package.

npm install @global-exchange/ui-kit-library

Fonts

UI Kit Library was designed with the Montserrat font in mind. So be sure to include it in your project.

Styles

UI Kit Library has been created according to custom styles. To maintain consistency there are files that must be included: transitions, utilities and reset. So be sure to include them in your project. The files are available in the documentation.

Usage

You can use any of the components as demonstrated in the documentation. Here is a quick example to get you started:

Basic import

At App.vue import the component

<script setup lang='ts'>
import { GENButton } from '@global-exchange/ui-kit-library';
<script>
<template>
<div class='App'>
    <h1 class='App-title'>Welcome to UI Kit Library</h1>
    <section class='App-button'>
      <GEN-Button color='primary' size='medium'> Install </GEN-Button>
    </section>
  </div>
</template>

Import as plugin

At main.js import the library

import { createApp } from "vue";
import App from "./App.vue";
import * as UIKitLibrary from "@global-exchange/ui-kit-library";

const app = createApp(App);
app.config.productionTip = false;
app.use({ install: UIKitLibrary.install });
app.mount("#app");

At App.vue use the component

<template>
  <div class="App">
    <h1 class="App-title">Welcome to UI Kit Library</h1>
    <section class="App-button">
      <GEN-Button color="primary" size="medium">
        Install
      </GEN-Button>
    </section>
  </div>
</template>

Available features

Architecture

ContextCodeApplicationDescription
GenericGENAny application
Touch ScreenTSCTouch screen applications
DISDispenserDispenser application
WebWEBWeb applications

Components

ComponentTypeApplicationUse
BannerGENAll-
BubbleGENAll-
ButtonGENAll-
CardCurrencyTSCAll TSCFor currencies
DataboardTSCAll TSCFor canvas & input
FlagTSCAll TSC-
InputDispenserTSCDIS-
KeyboardTSCAll TSC-
ModalTSCAll TSC-
SelectDispenserTSCDIS-
SelectImageTSCAll TSCFor options with image
SpinnerGENAll-
TableTSCAll TSC-
TableDispenserTSCDIS-

Utilities

UtilityDescription
truncateAmountSeparates the given amount into integer part and decimal part
isDecimalIndicates if the given value is decimal or not
getDataTestAttrTransforms the given element into a selector attribute for testing

License

This project is licensed under the terms of the MIT license.

0.2.1-beta

1 year ago

0.2.0-beta

1 year ago

0.1.0-beta

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago