@paytheory/books-ui

0.0.459-0 • Public • Published

books-ui

UI component library for use in pay theory Books web app

Hooks

  • Hooks maintain the application state between pages and components
  • They wrap portions of the application providing context
  • imported via import { BooksHooks } from "@paytheory/books-ui/dist/BooksUI"
  • JSX example
    <BooksHooks.context.menu.Provider value={generateMenu()}>
        <BooksComponents.NavigationDrawer />
    </BooksHooks.context.menu.Provider>

Application Hooks

  • checkout - provides base URL for checkout links
  • menu - provides menu items for the navigation drawer
  • page - provides page meta data
  • parent - provides navigation details for child pages

Application Data Hooks

User Accounts

  • account - basic user account detail (used for user menu)
  • member - detailed user account detail (used for user overview)
  • accounts - list of user accounts

Districts

  • district - district detail
  • districts - district list

Partners

  • partner - partner detail
  • partners - partner list

Payment Items

  • payment-item - payment item detail
  • payment-items - payment item list

Receipts

  • receipt - receipt detail
  • receipts - receipt list

Roles

  • role - role detail
  • roles - role list

Components

  • Components are custom HTML elements that encapsulate pay theory branding and user experience
  • They are composed into pages by our application to deliver our app
  • imported via import { BooksComponents } from "@paytheory/books-ui/dist/BooksUI"
  • JSX example <BooksComponents.BodyHead />

General Use

User Accounts

User Roles

Connections

District

Donation / Payment Item

Partner

Receipts

Sales

USAS Account Codes

Readme

Keywords

none

Package Sidebar

Install

npm i @paytheory/books-ui

Weekly Downloads

9

Version

0.0.459-0

License

UNLICENSED

Unpacked Size

730 kB

Total Files

46

Last publish

Collaborators

  • pt-abel
  • pt-aron
  • pt-austin