@amityco/diana-bot
TypeScript icon, indicating that this package has built-in type declarations

1.0.153 • Public • Published

Amity Diana Design System for web

What is it?

This package contains a set of "ready to use" React components for our web products.

How to install it?

  • From npm: npm install @amityco/diana-bot
  • From yarn: yarn add @amityco/diana-bot

How to publish a new version?

In your local machine:

  1. Update the latest develop branch with: git checkout develop && git pull
  2. Release by running: npm run release

How to use it?

Diana Provider

import 'antd/dist/antd.css'; // dont forget this part!

import React from 'react';
import ReactDOM from 'react-dom';

import { DianaProvider } from '@amityco/diana-bot';

import './index.css';
import App from './App';

ReactDOM.render(
  <React.StrictMode>
    <DianaProvider>
      <App />
    </DianaProvider>
  </React.StrictMode>,
  document.getElementById('root')
);

Customisation

Theming

The theme interface is available when importing import { Theme } from '@amityco/diana-bot'. You can pass any partial theme object matching this interface to the Ui-Kit provider to customise the look and feel of our components:

const theme = {
  palette: {
    primary: "#ff0000",
  },
}

// ...

<DianaProvider theme={theme}>{...}</DianaProvider>

Internationalisation

We support english out of the box, but you can also add your own language (as for now we only support LTR languages).

const languages = {
  th: {
    i18nkey: 'hello world',
  },
}

// ...

<DianaProvider languages={languages} locale="th">{...}</DianaProvider>

Debugging locally

  1. In your application folder: npm install @amityco/diana-bot if not already done
  2. In your diana-bot local folder: npm link
  3. In your application folder: npm link @amityco/diana-bot. it will replace files from 2. with folder from 1.
  4. In a separate terminal, go to diana-bot local folder + npm watch to start dev mode
  5. In your application terminal, you can start the watch mode as well and start coding!

After debugging/coding, do:

  1. In your application folder: npm unlink @amityco/diana-bot to remove reference to local folder
  2. On Github: make a PR and/or publish new version of @amityco/diana-bot on npm
  3. In your application folder: install the new version of @amityco/diana-bot with npm i -s @amityco/diana-bot@latest
  4. In your application folder: commit package.json and package-lock!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.1531latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.1531
1.0.1520
1.0.1510
1.0.1500
1.0.1491
1.0.1480
1.0.1450
1.0.1440
1.0.1430
1.0.1420
1.0.1411
1.0.1400
1.0.1380
1.0.1370
1.0.1360
1.0.1350
1.0.1340
1.0.1330
1.0.1320
1.0.1310
1.0.1300
1.0.1290
1.0.1280
1.0.1270
1.0.1264
1.0.1250
1.0.1241
1.0.1230
1.0.1220
1.0.1210
1.0.1200
1.0.1190
1.0.1180
1.0.1170
1.0.1160
1.0.1150
1.0.1140
1.0.1130
1.0.1120
1.0.1110
1.0.1100
1.0.1090
1.0.1080
1.0.1070
1.0.1060
1.0.1050
1.0.1040
1.0.1030
1.0.1020
1.0.1010
1.0.1000
1.0.990
1.0.980
1.0.970
1.0.960
1.0.950
1.0.940
1.0.930
1.0.920
1.0.910
1.0.900
1.0.891
1.0.880
1.0.870
1.0.860
1.0.850
1.0.840
1.0.830
1.0.820
1.0.810
1.0.801
1.0.790
1.0.781
1.0.770
1.0.761
1.0.750
1.0.740
1.0.730
1.0.720
1.0.710
1.0.700
1.0.690
1.0.681
1.0.670
1.0.660
1.0.651
1.0.640
1.0.631
1.0.620
1.0.610
1.0.600
1.0.590
1.0.580
1.0.570
1.0.560
1.0.550
1.0.540
1.0.530
1.0.520
1.0.510
1.0.500
1.0.490
1.0.480
1.0.460
1.0.450
1.0.430
1.0.420
1.0.410
1.0.400
1.0.390
1.0.380
1.0.370
1.0.360
1.0.350
1.0.340
1.0.330
1.0.320
1.0.310
1.0.300
1.0.290
1.0.280
1.0.270
1.0.250
1.0.240
1.0.230
1.0.220
1.0.210
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.101
1.0.90
1.0.80
1.0.70
1.0.20
1.0.60
1.0.50
1.0.40
1.0.30
1.0.11

Package Sidebar

Install

npm i @amityco/diana-bot

Weekly Downloads

17

Version

1.0.153

License

MIT

Unpacked Size

15.4 MB

Total Files

486

Last publish

Collaborators

  • pakkawat
  • touchaponk
  • ekoapp