0.0.26 • Published 1 year ago

@oak-academy/oak-components v0.0.26

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Oak Components

Overview

This is a React Typescript components library which supports React and Next applications produced by Oak National Academy. A storybook for the components can be found here please consult OnePassword for access.

Usage

TODO: Instructions for how to add Oak Components to a React App

Install for development

  1. Copy the example env config cp .env.example .env
  2. Ask a colleague for the values to populate .env
  3. run nvm use
  4. run npm install
  5. To view the storybook run npm run storybook

Structure

Components are organised into a three tier hierarchical structure applying the following rules:

Base components

  • Imports from other base components
  • Imports from Ui and Integrated components are forbidden!
  • Generic
  • Unstyled
  • Avoid embedded logic and state
  • No sub-components (eg. Box)

Ui components

  • Imports from base components and Ui components
  • Imports from Integrated components are forbidden!
  • Generic
  • Styled
  • Avoid embedded logic and state
  • No sub-components (eg. IconButton)

Integrated components

  • Imports from base components, Ui components and occasionally Integrated components
  • Combines multiple Ui components together
  • Applicable to a limited range of contexts which might occur in multiple apps
  • Styled
  • May contain embedded logic or state
  • May be split into sub-components (eg. SchoolInputForm)

    NB. these rules are a work in progress. Modifications may be required as the library builds.

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.23

1 year ago

0.0.22

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.7

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