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 🙏

© 2025 – Pkg Stats / Ryan Hefner

motorsport-ui-kit

v1.19.4

Published

<img src="https://pbs.twimg.com/profile_images/1121644469193826305/3yRCBvAg_400x400.png" width="400" />

Downloads

498

Readme

Motorsport UI-Kit

Rus

Публичный UI Kit компании Motorsport Network.

Установка и использование

Для установки в проект необходимо:

npm i motorsport-ui-kit

Также, необходимо подключить стили библиотеки в любом удобном месте, к примеру в глобальных стилях проекта:

import "motorsport-ui-kit/dist/motorsport-ui-kit.cjs.development.css"

В случае использования компонента LilCards или GallerySlider содержащего слайдер необходимо, также подключить стили библиотеки react-image-gallery:

import "react-image-gallery/styles/scss/image-gallery.scss";

Используемый стек технологий:

  • React
  • Typescript
  • Next JS
  • CSS Modules + SCSS
  • Jest

Список доступных компонентов:

Breadcrumbs, Button, Checkbox, Chips, FileUploader, Input, SelectionControls, Select, Search, Modal, Overlay, LilCards, TextArea, SplitTwoColumns, GallerySlider, Accordion, SnackBar,

Examples with requires props (примеры базового использования, только обязательные props):

  • Breadcrumbs:
<Breadcrumbs
  pathList={[
    {
      href: 'https://google.com',
      name: 'Google home'
    },
    {
      href: 'https://docs.google.com/document/u/0/',
      name: 'Google docs'
    },
    {
      href: 'https://workspace.google.com/products/docs/',
      name: 'Workspace'
    }
  ]}
 />
  • Button:
<Button
    onClick={function that will be executed by clicking}
>
  Default button
</Button>
  • Checkbox:
<Checkbox
  checkboxName="FirstCheckbox"
  label="Remember Me"
  onChange={something function that is ready to accept the returned result onChange act}
/>
  • Chips:
<ChipGroup
  changeFunc={something function that is ready to accept the returned result onChange act}
  chipsData={[
    {
      chipName: 'Buy a Car',
      id: 0
    },
    {
      chipName: 'Sell a Car',
      id: 1
    },
    {
      chipName: 'Donate a Car',
      id: 2
    }
  ]}
/>
  • FileUploader:
<FileUploader
    uploaderName="uploader_name"
    onUploadFile={something function that is ready to accept the returned result onUpload file act} />
  • Input:
<Input
  inputName="input_name"
  onChange={something function that is ready to accept the returned result onChange act}
/>
  • SelectionControls:
<SelectionControls
    name="radio_input"
    onChange={something function that is ready to accept the returned result onChange act}
/>
  • Select:
<Select
    options={[
        {value: "ferrary", label: "Ferrary" },
        { value: "ford", label: "Ford" },
        { value: "bmw", label: "BMW" },
        ]}
    title=""
    iconAfter={something icon for render on the right in select}
    getSelected={something function that is ready to accept the returned result onChange act}
    name="select_name"
/>
  • Search:
<Search searchName="search_name"
    onChange=(value, name, category) => (func which launch by change input's value)
    onEnterDown=(value, name, category) => (func which launch by keydown's Enter)
   />
  • Modal:
<Modal
        isShow
        hideFunc={func which change status for isShowProp}
        modalContent={
          <>
            <h2>Title</h2>
            <h4>Text text text...</h4>
          </>
        }
      />
  • Overlay:
<Overlay isShow type="dark_black" onClick={func which launch by click's event} />
  • LilCards:
<LilCards
          columns={2}
          rows="all"
          cardItems={carts}
          uploadBtn
          uploadBtnProps={{
            uploadFunc: () => func which upload fresh data for new cards render),
            uploadName: "Load More and More",
          }}
        />
  • TextArea:
<TextArea
  textAreaName="text_area_name"
  onChange={something function that is ready to accept the returned result onChange act}
/>
  • SplitTwoColumns:
<SplitTwoColumns>
    <section>Lorem 20 ipsum dolor sit, amet consectetur adipisicing elit. Voluptatum nam numquam corrupti
    illo illum nostrum eligendi ipsam placeat quibusdam inventore.</section>
    <section>Lorem 20 ipsum dolor sit, amet consectetur adipisicing elit. Voluptatum nam numquam corrupti
    illo illum nostrum eligendi ipsam placeat quibusdam inventore.</section>
</SplitTwoColumns>
  • GallerySlider:
<GallerySlider sliderImages={[
  {original: 'img_source', thumbnail: 'img_source'},
  {original: 'img_source', thumbnail: 'img_source'} ... etc.]} />
  • Accordion:
<Accordion list={[{
  id: 0,
  title: "Some title",
  content: "Some content,
}, etc.]}/>
  • SnackBar:
<SnackBar hideFunc={() => {}} message="Something was wrong" show />

Eng

The public UI Kit of the Motorsport Network company.

Installation and use

To install it in the project, you must:

npm i motorsport-ui-kit

Also, you need to connect the library styles in any convenient place, for example, in the global styles of the project:

import "motorsport-ui-kit/dust/motorsport-ui-kit.cs.development.css"

In the case of using the LilCards or GallerySlider component containing a slider, it is also necessary to connect the styles of the react-image-gallery library:

import "react-image-gallery/styles/css/image-gallery.css";

Technology stack used:

  • React
  • Typescript
  • Next JS
  • CSS Modules + CSS
  • Just

List of available components:

Breadcrumbs, Button, Checkbox, Chips, FileUploader, Input, SelectionControls, Select, Search, Modal, Overlay, LilCards, TextArea, SplitTwoColumns, GallerySlider, Accordion, SnackBar,

See the usage examples above.