1.1.15 • Published 4 years ago

@arcopypaste/ui v1.1.15

Weekly downloads
5
License
ISC
Repository
-
Last release
4 years ago

UI components Library

Setup

yarn install

Dev

yarn start

How to switch between dark and light mode?

  1. Manually change the background color in styleguide.config.js
  2. Change the theme in src/Wrapper.js

Build

To build the UI, you need to link it to the desktop React and Material UI instances.

To do so, go to the following folders in the desktop project and run 'yarn link' in each

set -e
cd desktop
cd node_modules
    cd react && yarn link && cd ..
    cd react-dom && yarn link && cd ..
    cd @material-ui
        cd core/ && yarn link && cd ..
        cd styles/ && yarn link && cd ..
        cd system/ && yarn link && cd ..
        cd types/ && yarn link && cd ..
        cd utils/ && yarn link && cd ..
        cd lab/ && yarn link && cd ..
        cd icons/ && yarn link && cd ..
    cd ..
cd ..

Then go to the UI main folder and run

yarn link react
yarn link react-dom
yarn link @material-ui/core
yarn link @material-ui/styles
yarn link @material-ui/system
yarn link @material-ui/types
yarn link @material-ui/utils
yarn link @material-ui/icons
yarn link @material-ui/lab

This is needed only once.

Finally run "yarn run build" and you should be good to go.

Publish

yarn publish --no-git-tag-version

Then in ../desktop unlink the UI and point to the published package:

yarn unlink @arcopypaste/ui
yarn add @arcopypaste/ui
yarn link @arcopypaste/ui
1.1.15

4 years ago

1.1.14

4 years ago

1.1.12

4 years ago

1.1.13

4 years ago

1.1.11

4 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago