1.3.0 • Published 10 months ago

wvs-org-shared-components v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

WVS Org Shared Components

This is a shared component library for use by WVS org. We have made this accessible under MIT license. Please see the License for full details.

Installation

Using npm: npm install wvs-org-shared-components

Usage

Import the component you require:

import React from 'react';
import { Button } from 'wvs-org-shared-components';

function App() {
  return (
    <Button
      disabled={someDisabledState}
      isUpdating={someInUpdatingState}
      onClick={() => console.log('I have been clicked!')}
      small={true}
      updatingText={'Component is updating...'}
      variant={'secondary'}
    >
      Click me!
    </Button>
  );
}

export default App;

Adding to the library

In order to add into the library:

  • Take a copy of an existing component in the /src/components directory
  • Rename and update the component directory, component.tsx, index.ts and styles.tsx
  • Ensure that the new component is included in src/components/index.ts

Once updates are made and you are ready to deploy:

  • Update package.json to increase the version number
  • Have a PR made and merged to main branch
  • Run npm run rollup
  • Run npm publish
  • Run git tag -a vx.x.x -m "Release vx.x.x"
  • Run git push --tags
  • Go here in browser and click "Draft a new release"
  • Select the tag you just pushed
  • Add a release title that matches the version number
  • Complete an explanation of the release, some things to note on this:
    • Add ##What's Changed at top
    • Add ### New Features and include a list below
    • Prepend any items with [Breaking/Deprecation/Feature/Improvement] making sure to order them as shown here
  • Make sure that "Set as the latest release" is selected and press "Publish Release"

Components that are being phased out

The following components are being phased out and should not be used in new projects:

  • CallToAction
  • Content
  • Dialog
  • Hero
  • HeroAspectRatio
  • IframeWrapper
  • Image
  • ImageWrapper

They will continue to be supported in existing projects but will not be updated with new features or bug fixes.

1.3.0

10 months ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.9

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.2

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago

0.0.59

1 year ago

0.0.58

1 year ago

0.0.57

1 year ago

0.0.56

1 year ago

0.0.54

2 years ago

0.0.53

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.3-8.1

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago