0.9.3 • Published 2 years ago

@zebra-fed/zds-react-desktop v0.9.3

Weekly downloads
7
License
MIT
Repository
bitbucket
Last release
2 years ago

Zebra Design System React Desktop Components

Install

  npm i -s @zebra-fed/zds-react-desktop

Dependencies

-@zebra-fed/icons

Usage

This library is build with theme in mind. To use the library, the entire react application must be wrapped in <StripesTheme>

import { StripesTheme } from '@zebra-fed/zds-react-desktop/StripesTheme';

<StripesTheme>
  <App />
</StripesTheme>;

Dev instructions

To publish to NPM: package.json Increment version number

yarn build
cd build
npm publish

Publish update to NPM

Development

You can easily develop and interact with your components by using Storybook. To run the local server, simply run:

$ yarn start

Navigate to http://localhost:6060 to view your styleguidist. They should automatically update as you develop.

Styleguidist will pick up any Readme from the README.md file in a component folder.

Building a SVG Library for your Application

The <SVGIcon /> component requires the configuration of a iconLibrary passed through to the Stripes theme for it to pick up the symbols. This is configured like such:

import { icons } from '../resources/iconLibrary';
const themeObj = {
  icons: icons,
};

<StripesTheme mode={'dark'} theme={themeObj}>
    // body of your app 
</StripesTheme>

The Stripes project exposes a script that will take a folder of SVG icons, iconography that is specific to your application, and compiles it into a single iconLibrary string that will be ingested into the Stripes theming engine.

The filename of the svg files will be used as the iconid property when referencing the icon in the <SVGIcon /> tag within your app.

The script can be access via:

npm run buildIcons --folder ./resources/default

the argument that follows the --folder string will be the source folder for your svg files. It will recursively search through the folder and compile all svg objects into a single string.

0.6.62-1

2 years ago

0.9.3

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.6.72

2 years ago

0.6.71

2 years ago

0.6.70

2 years ago

0.6.65

2 years ago

0.6.64

2 years ago

0.6.67

2 years ago

0.6.66

2 years ago

0.6.61

2 years ago

0.6.60

2 years ago

0.6.63

2 years ago

0.6.62

2 years ago

0.6.69

2 years ago

0.6.68

2 years ago

0.6.6-e

2 years ago

0.6.58

3 years ago

0.6.57

3 years ago

0.6.59

3 years ago

0.6.54

3 years ago

0.6.53

3 years ago

0.6.56

3 years ago

0.6.55

3 years ago

0.6.52

3 years ago

0.6.51

3 years ago

0.6.50

3 years ago

0.6.47

3 years ago

0.6.49

3 years ago

0.6.43

3 years ago

0.6.45

3 years ago

0.6.44

3 years ago

0.6.46

3 years ago

0.6.42

3 years ago

0.6.41

3 years ago

0.6.40

3 years ago

0.6.39

3 years ago

0.6.34

3 years ago

0.6.36

3 years ago

0.6.35

3 years ago

0.6.38

3 years ago

0.6.37

3 years ago

0.6.32

3 years ago

0.6.31

3 years ago

0.6.33

3 years ago

0.6.30

3 years ago

0.6.23

3 years ago

0.6.29

3 years ago

0.6.28

3 years ago

0.6.25

3 years ago

0.6.24

3 years ago

0.6.27

3 years ago

0.6.26

3 years ago

0.6.21

3 years ago

0.6.20

3 years ago

0.6.22

3 years ago

0.6.10

3 years ago

0.6.12

3 years ago

0.6.18

3 years ago

0.6.17

3 years ago

0.6.19

3 years ago

0.6.14

3 years ago

0.6.13

3 years ago

0.6.16

3 years ago

0.6.15

3 years ago

0.6.9

4 years ago

0.6.8

4 years ago

0.6.7

4 years ago

0.6.6

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.11

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.91

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago