2.16.62 • Published 4 months ago

@hishprorg/est-odio-laudantium v2.16.62

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

   

pi-lib

A monorepo design system of React UI components and supporting utilities. Pi supports theming and comes with some starter themes. All packages prefixed with @pi-lib/... are standalone npm modules for use with a package manager like npm, yarn or pnpm.

Create a theme, use one of the provided themes or stick with the default, then build your app with the React components by importing them individually.

  • Demo
  • Docs
  • Code

Theming

styles

@pi-lib/styles

React theming utility for use with Pi and styled-components

Peer Dependencies: react, styled-components

Atoms

Button

@pi-lib/button

A styled React button component with a status

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, styled-components

CustomIcon

@pi-lib/custom-icon

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, react-svg, styled-components

Grid

@pi-lib/grid

A wrapper for a simple grid layout.

Peer Dependencies: @pi-lib/styles, react, styled-components

IconButton

@pi-lib/icon-button

A React component for a special button with an icon

Peer Dependencies: @pi-lib/custom-icon, @pi-lib/styles, @pi-lib/utils, react, react-svg, styled-components

Link

@pi-lib/link

A React component for a router optional link

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, react-router-dom, styled-components

ModalScreen

@pi-lib/modal-screen

A React component used to block out the screen with modal content

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, styled-components

PageBanner

@pi-lib/page-banner

A banner React component that can comtain spaced or flowing items

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, styled-components

PageGrid

@pi-lib/page-grid

A wrapper for a page grid layout.

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, styled-components

Tooltip

@pi-lib/tooltip

A React component used to show and position a tooltip containing content

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, react, styled-components

Molecules

AdvancedButton

@pi-lib/advanced-button

A React component for an advanced button with a built in loader

Peer Dependencies: @pi-lib/button, @pi-lib/loader, react, styled-components

Card

@pi-lib/card

A card component with a title and subtitle.

Peer Dependencies: @pi-lib/styles, @pi-lib/utils, @pi-lib/custom-icon, react, styled-components

Carousel

@pi-lib/carousel

Peer Dependencies: @pi-lib/styles, @pi-lib/use-limited-events, @pi-lib/use-touch, @pi-lib/utils, react, styled-components

CollapsibleMenu

@pi-lib/collapsible-menu

A React component for an expanding/collapsing menu with icons

Peer Dependencies: @pi-lib/icon, @pi-lib/styles, @pi-lib/use-window-click, react, react-aria, react-aria-components, react-stately, styled-components

Modal

@pi-lib/modal

Modal for custom content that allows dismissal internally or externally

Peer Dependencies: @pi-lib/dismissable-content, @pi-lib/modal-screen, @pi-lib/styles, @pi-lib/use-window-click, @pi-lib/utils, react, styled-components

PageContent

@pi-lib/page-content

A React component for a page layout with a sidebar

Peer Dependencies: @pi-lib/styles, react, styled-components

PageLoader

@pi-lib/page-loader

A React component for a page blocking loader

Peer Dependencies: @pi-lib/loader, @pi-lib/modal-screen, @pi-lib/styles, react, styled-components

Table

@pi-lib/table

A React component for a table with expandable rows

Peer Dependencies: @pi-lib/styles, react, styled-components

Visualisations

AxisChart

@pi-lib/axis-chart

A React component used to display a bar ot line chart

Peer Dependencies: @pi-lib/styles, @pi-lib/use-timer, @pi-lib/utils, d-theia, react, styled-components

CandlestickChart

@pi-lib/candlestick-chart

A candlestick chart React component used to show the movement of traded assets over time.

Peer Dependencies: @pi-lib/button, @pi-lib/do-transition, @pi-lib/loader, @pi-lib/select, @pi-lib/styles, @pi-lib/tooltip, @hishprorg/est-odio-laudantium, @pi-lib/use-limited-events, @pi-lib/use-touch, @pi-lib/utils, d3-axis, d3-scale, d3-selection, d3-transition, react, styled-components

Shimmer

@pi-lib/shimmer

A shimmering text ticker animation.

Peer Dependencies: @pi-lib/styles, @pi-lib/use-timer, react, styled-components

Stellar

@pi-lib/stellar

A spacefaring scene that takes you through the stars.

Peer Dependencies: @pi-lib/do-transition, @pi-lib/styles, @pi-lib/use-limited-events, @pi-lib/utils, react, styled-components

WorldMap

@pi-lib/world-map

A React component for an SVG world map chart

Peer Dependencies: @pi-lib/styles, d3-geo, d3-selection, react, styled-components

Utilities

config

@pi-lib/config

Shared Pi config

constants

@pi-lib/constants

Shared Pi constants

types

@pi-lib/types

Global types for Pi

useLimitedEvents

@pi-lib/use-limited-events

Hook used to add debounced or throttled events to a React component

Peer Dependencies: @hishprorg/est-odio-laudantium, @pi-lib/utils, react

useTimer

@pi-lib/use-timer

Hook used to add setTimeout or setInterval to a React component

Peer Dependencies: @pi-lib/constants, react

useWindowClick

@pi-lib/use-window-click

Hook used to add throttled escape (window) clicks to a React component

Peer Dependencies: @pi-lib/use-limited-events, react

usehashComparison

@hishprorg/est-odio-laudantium

Create a hash of any object - can be used to compare dependencies and ensure correct re-rendering.

Peer Dependencies: @pi-lib/utils, react

utils

@pi-lib/utils

Utilities for use with Pi

Peer Dependencies: react, react-aria

Development

Pi uses PNPM to manage the monorepo, with some performance enhancements from nx.

  • Installation - Clone the repo and use pnpm i to install.
  • Storybook - Use pnpm sb:dev to launch Storybook.
  • New components - Use pnpm gen:new [path] [ComponentName] to scaffold a new component.

Contribution

If you have a contribution, make a fork then set this repo as your upstream. Make your branch and raise a pull request into main. Run pnpm pre:release to run some code quality checks and register the changes with the pipeline, then push the change files to the PR source branch. This will automatically publish version bumps when the PR is merged.

2.16.62

4 months ago

2.16.61

4 months ago

2.15.61

4 months ago

2.15.60

4 months ago

2.15.59

4 months ago

2.15.58

4 months ago

2.15.57

4 months ago

2.15.56

4 months ago

2.14.56

4 months ago

2.13.56

4 months ago

2.13.55

4 months ago

2.13.54

4 months ago

2.13.53

4 months ago

2.13.52

4 months ago

2.13.51

4 months ago

2.13.50

4 months ago

2.13.49

4 months ago

2.13.48

4 months ago

2.12.48

4 months ago

2.12.47

5 months ago

2.11.47

5 months ago

1.11.47

5 months ago

1.11.46

5 months ago

1.11.45

5 months ago

1.11.44

5 months ago

1.11.43

5 months ago

1.10.43

5 months ago

1.10.42

5 months ago

1.10.41

5 months ago

1.10.40

5 months ago

1.10.39

5 months ago

1.10.38

5 months ago

1.10.37

5 months ago

1.10.36

5 months ago

1.10.35

5 months ago

1.9.35

5 months ago

1.9.34

5 months ago

1.9.33

5 months ago

1.8.33

5 months ago

1.8.32

5 months ago

1.8.31

5 months ago

1.8.30

5 months ago

1.8.29

5 months ago

1.7.29

5 months ago

1.7.28

5 months ago

1.7.27

5 months ago

1.7.26

5 months ago

1.6.26

5 months ago

1.6.25

5 months ago

1.6.24

6 months ago

1.5.24

6 months ago

1.5.23

6 months ago

1.5.22

6 months ago

1.5.21

6 months ago

1.5.20

6 months ago

1.5.19

6 months ago

1.5.18

6 months ago

1.5.17

6 months ago

1.5.16

6 months ago

1.4.16

6 months ago

1.4.15

6 months ago

1.3.15

6 months ago

1.3.14

6 months ago

1.3.13

6 months ago

1.3.12

6 months ago

1.2.12

6 months ago

1.2.11

6 months ago

1.2.10

6 months ago

1.1.10

6 months ago

1.1.9

6 months ago

1.1.8

6 months ago

1.1.7

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

7 months ago