npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pangeatech/ui-library

v0.0.8

Published

## Overview

Downloads

11

Readme

PangeaTech UI Library

Overview

The PangeaTech UI Library is a custom React component library designed to streamline the development of applications across Pangea. It provides a set of reusable and customizable UI components to enhance productivity and maintain consistency across projects.

Installation

To install the library, use the following command:

npm i @pangeatech/ui-library

Usage

Importing Components

You can import individual components from the library as needed. Here are examples for the Button and TextField components:

Button Component

import React from 'react';
import { Button } from '@pangeatech/ui-library';

const App = () => {
  const handleButtonClick = () => {
    console.log('Button clicked!');
  };

  return (
    <Button variant="contained" color="primary" onClick={handleButtonClick}>
      Click Me
    </Button>
  );
};

export default App;

TextField Component

import React, { useState } from 'react';
import { TextField } from '@pangeatech/ui-library';

const App = () => {
  const [textFieldValue, setTextFieldValue] = useState('');
  const [textFieldError, setTextFieldError] = useState('');

  const handleTextFieldChange = (event) => {
    setTextFieldValue(event.target.value);
    if (event.target.value === '') {
      setTextFieldError('This field is required');
    } else {
      setTextFieldError('');
    }
  };

  return (
    <TextField
      label="Example TextField"
      value={textFieldValue}
      onChange={handleTextFieldChange}
      error={!!textFieldError}
      helperText={textFieldError ? 'This field is required' : ''}
      variant="outlined"
    />
  );
};

export default App;

Importing Pages

You can also import entire pages from the library:

import React from 'react';
import { AuthPage } from '@pangeatech/ui-library/pages';

const App = () => {

  const handleSubmit=(data: any) => {
      
  }
  return (
    <div>
      <AuthPage mode='login' onSubmit={handleSubmit} 
      />
    </div>
  );
};

export default App;

Exported Modules

The library exports the following modules which can be used in your React projects:

  • Main Module:

    import { Slider, TextField } from '@pangeatech/ui-library';
  • Pages Module:

    import { AuthPage } from '@pangeatech/ui-library/pages';
  • Styles:

    import '@pangeatech/ui-library/styles.css';

Props and Component Testing

To check the props or test the components, you can use the following link: Component Props and Testing. Use the control tab to view component props.

Storybook

For a comprehensive view of all components and their usage, you can refer to the Storybook documentation. Install Storybook CLI using:

npx @storybook/cli

To start Storybook, use the following command:

npm run storybook

Development

To run the repo:

npm run dev

For Build:

npm run build

For local Testing of the package:

  1. Run the build command.
 npm run build 
  1. Run:
npm pack
  1. Copy the path of .tgz file eg: "D:**\pangeatech-ui-library-0.0.*.tgz"

  2. Go to the terminal of your react project and run:

npm i "D:\*\*\pangeatech-ui-library-0.0.*.tgz"