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

ghn-logistics-css-module

v1.1.7

Published

The module supports to compress, minify all resource of css to be help for the management.

Downloads

3

Readme

Form Label

Structure html form labels

alt text

<label className="text-cap">
    First Name
    <span className="icon-required">(*)</span>
</label>

Form Input

Structure html form Input

<div className="form-group">
    <div className="input-group">
        <input className="form-control" />
    </div>
</div>

Form Select

Structure html form select by React Select

alt text

import Select from 'react-select';

<Select
    value={null}
    onChange={(e)=> null}
    options={[]}
    getOptionLabel={({ name }) => name}
    getOptionValue={({ id }) => id}
    classNamePrefix="custom_select_component"
/>

From Datepicker

Structure html form select by React Datepicker

alt text

import DatePicker from 'react-datepicker';

<Select
    value={null}
    onChange={(e)=> null}
    options={[]}
    getOptionLabel={({ name }) => name}
    getOptionValue={({ id }) => id}
    classNamePrefix="custom_select_component"
/>

Buttons Action

Structure html status order

  • Inherit style button from React Bootstrap

alt text

import { Button } from 'react-boostrap'

<Button variant="info">Info</Button>
<Button variant="primary">Primary</Button>
<Button variant="success">Success</Button>
<Button variant="danger">Danger</Button>
<Button variant="dark">Dark</Button>
<Button variant="light">Light</Button>

Status Order

Structure html status order

alt text

<div className="custom-status new">
    <i className="fa fa-circle" aria-hidden="true"></i> New Status
</div>

Points Trip

Structure html status order

alt text

  • To render stoppoin trip with i is index of the loop
<div key={i} className="wrapper-hub-icon">
    <i className={`icon-stoppoint ${i == 0 ? 'circle': 'pin'}`}></i> Location 
</div>

Tabs

Structure html tabs navigation from React Bootstrap

alt text

import { Nav, Tab, Table} from 'react-bootstrap';

<Tab.Container defaultActiveKey="first">
    <Nav variant="tabs" className="custom-nav-item">
        <Nav.Item>
            <Nav.Link eventKey="first">Tab 1</Nav.Link>
        </Nav.Item>
        <Nav.Item>
            <Nav.Link eventKey="second">Tab 2</Nav.Link>
        </Nav.Item>
    </Nav>
    <Tab.Content className="custom-tab-content transparent-background">
        <Tab.Pane eventKey="first">
            First
        </Tab.Pane>
        <Tab.Pane eventKey="second">
            Second
        </Tab.Pane>
    </Tab.Content>
</Tab.Container>

Tables

Structure html table by from React Bootstrap

alt text

import { Nav, Tab, Table} from 'react-bootstrap';

<Table hover responsive className="custom-table">
    <thead>
        <tr>
            <th>Lorem Ipsum</th>
            <th>Lorem Ipsum</th>
        </tr>
    </thead>
    <tbody>
    {
        lengthOfData > 0 ? data.map(item => 
        <tr key={item.id} className="tr-custom">
            <td>Lorem Ipsum</td>
            <td>Lorem Ipsum</td>
        </tr>
    ): 
        <tr className="text-center" style={{backgroundColor:'transparent'}}> 
            <td colSpan="2" className="section-empty">
                <div className="icon-empty"><p className="text-empty">Not found data</p></div>
            </td>
        </tr>
    }
    </tbody>
</Table>

Paging

Structure html paging by Paging Component

alt text

import Paging from 'paging';

<div className="custom-paging fixed">
    <Paging title="chuyến" paging={{}} numberItem={[]}  />
</div>