0.0.26 • Published 4 months ago

@oak-academy/oak-components v0.0.26

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months 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

4 months ago

0.0.25

4 months ago

0.0.26

4 months ago

0.0.23

4 months ago

0.0.22

4 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.19

4 months ago

0.0.18

4 months ago

0.0.17

5 months ago

0.0.10

5 months ago

0.0.11

5 months ago

0.0.12

5 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.15

5 months ago

0.0.9

5 months ago

0.0.16

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago