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

reactdatagrid-package-reusable

v0.0.1

Published

Reusable React Components

Downloads

1

Readme

Getting Started with ptg-react

Install the package

npm i ptg-react

Components available in this package

  1. Calendar

    Import calendar

    import {PtgUiCalendar} from 'ptg-react;

    Properties

    The " ? " represents here that this property is optional

    onChange?: any;
    date?: any;
    selected?: any;
    className: any;
    startDate?: any;
    endDate?: any;
    disabled?: boolean;
    startRef?: any;
    onKeyDown?: any;
    accessKey?: string;

  2. Charts

    • D3 Charts
      Import charts
      import { PtgUiD3Line, PtgUiD3Bar, PtgUiD3Pie } from "ptg-react";

      1. Bar chart
        Properties
        The " ? " represents here that this property is optional. Data array must contain color property for its color in chart.

        data?:any,
        height?:any,
        width?:any,
        source?:any,
        title?:any,
        x_title:string,
        y_title:string,
        start?:any,
        end?:any

      2. Line chart
        Properties
        The " ? " represents here that this property is optional.

        data:any,
        height:any,
        width:any,

      3. Pie chart
        Properties
        The " ? " represents here that this property is optional.

        data: any;
        height?: any;
        width?: any;
        innerRadius?: any;
        outerRadius?: any;
        colorsArray?: any;

    • HighCharts

      • 2D
        Import charts
        import { PtgUiColumn, PtgUiPie,PtgUiLine,PtgUiLineBar,PtgUiStackedColumn } from 'ptg-react';

        1. Column chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any

        2. Line chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any

        3. Linebar chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          subtitle?:any,
          categories?:any

        4. Pie chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any

        5. Stacked Column chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any,
          yTitle?:any,
          categories?:any

      • 3D
        Import charts
        import { PtgUiColumn, PtgUiPie,PtgUiLine,PtgUiLineBar,PtgUiStackedColumn} from 'ptg-react';

        1. Column chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any,
          categories?:any,
          xTitle?:any,
          yTitle?:any

        2. Line chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any,
          categories?:any,
          xTitle?:any,
          yTitle?:any

        3. Pie chart
          Properties
          The " ? " represents here that this property is optional.

          remainingOptions:any,
          highcharts?:any,
          title?:any,
          data?:any,
          categories?:any,
          seriesName?:any,

  3. Data Table

    • Ag grid
      Import Ag Grid
      import { PtgUiAgGrid } from 'ptg-react'; Properties
      The " ? " represents here that this property is optional.

      data:any[],
      autoGroupColumnDef:any,
      columnDefs:any,
      defaultColDef:any,
      rowSelection?:string,
      groupSelectsChildren?:boolean,
      pagination?:boolean,
      paginationPageSize?:number,
      customPagination?: boolean,
      domLayout?:any

    • React table
      Import React Table
      import { PtgUiReactTable } from 'ptg-react'; Properties
      The " ? " represents here that this property is optional.

      data?:any;
      columns?:any;

  4. Download file Import Download
    import { PtgUiDownload } from 'ptg-react'; Properties
    The " ? " represents here that this property is optional.

    columns?: any;
    dataToDownload?: any;
    allowFileTypes?: any;

  • Formats
    1. PDF
    2. Word
    3. Image
    4. Excel
  1. Indeterminate Checkbox Import Indeterminate Checkbox
    import { PtgUiIndeterminateCheckbox } from 'ptg-react'; Properties

    items:any;

  2. Input
    Import input
    import { PtgUiInput } from 'ptg-react'; Properties
    The " ? " represents here that this property is optional.

    type: string;
    value?: any;
    onChange?: any;
    placeholder?: string;
    disabled?: boolean;
    required?: boolean;
    className?: string;
    inputsize?: string;
    name?: string;
    onBlur?: any;
    ref?: any;
    maxlength?: any;
    onKeyUp?: any;
    id?: string;

  3. loader
    Import Loader
    import { PtgUiLoading } from 'ptg-react';

  4. Multi Select
    Import Multi Select
    import { PtgUiMultiSelectbox } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    name?: string,
    selectedValues?: any,
    id?: string,
    className?:string,
    list: { value: any, label: any }[],
    showCheckbox?: boolean,
    placeholder?:string
    singleSelect?: boolean,
    onSelect?:any,

  5. Radio
    Import Radio
    import { PtgUiRadio } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    name?: string;
    value?: string;
    id?: string;
    htmlFor?: string;
    onChange?: (event: React.ChangeEvent) => void;
    list: { id: string; name: string; value: string }[];
    children?: React.ReactNode;
    checked?: boolean;
    accessKey?: string;

  6. Select
    Import Select
    import { PtgUiSelect } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    name?: string;
    value?: string;
    id?: string;
    className?: string;
    list: { label: any; value: any }[];
    onBlur?: any;
    htmlFor?: string;
    onChange?: (event: React.ChangeEvent) => void;

  7. Text Area
    Import Text Area
    import { PtgUiTextArea } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    value?: any;
    onChange?: any;
    placeholder?: string;
    disabled?: boolean;
    hasError?: boolean;
    onFocus?: any;
    dataTest?: string;
    required?: boolean;
    className?: string;
    inputsize?: string;
    name?: string;
    onBlur?: any;
    ref?: any;
    rows?: any;
    cols?: any;
    form?: any;
    maxlength?: any;
    onKeyUp?: any;
    id?: string;

  8. Alert
    Import Alert
    import { PtgUiAlert } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    message?: any; type?: any

  9. Check box
    Import Check box
    import { PtgUiCheckbox } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    id?: string; name?: string; label?: string; value?: string; for?: string; htmlFor?: string; checked?: boolean; onChange?: (event: React.ChangeEvent) => void; className?: string; accessKey?: string;

  10. Accordian
    Import Accordian
    import { PtgUiAccordian } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.

    stories:any

  11. Pipes
    Import Pipes
    import { capitalizeFirstLetter, inrFormat, truncateString, phoneNumber, convertIntoPhoneNumber } from 'ptg-react';
    Properties
    The " ? " represents here that this property is optional.