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

adewale-ui-toolbox

v1.1.6

Published

custom ui for fast and reusable development

Downloads

501

Readme

Custom NPM packages for reusable and useful UI components

Version - V1.1.6

DOCUMENTATION

DEMO Drag-to-reorder


import {DragToReOrder} from "adewale-ui-toolbox";

export default function DragComponent() {
  const [dataset, setDataset] = useState<
    { id: string; image?: string; text?: string; inputFieldText?: string }[]
  >([
    { id: "rand-1", image: "https://placehold.co/40x40/0fb/fff?text=1" },
    { id: "rand-2", image: "https://placehold.co/40x40/0fb/fff?text=2" },
    { id: "rand-3", image: "https://placehold.co/40x40/0fb/fff?text=3" },
    { id: "rand-4", image: "https://placehold.co/40x40/0fb/fff?text=4" },
    { id: "rand-5", image: "https://placehold.co/40x40/0fb/fff?text=5" },
    {
      id: "rand-6",
      image: "https://placehold.co/40x40/0fb/fff?text=6",
    },
  ]);
  return (
      <DragToReOrder
        data={dataset}
        setData={setDataset}
        allowDelete={true}
        inputConfigration={{
          allowField: true,
          rows: 2,
        }}
      />
  );
}

Props

classnames Props Hierarchy


    <div className={classnames?.parentContainer} ...>
        <div className={classnames?.childContainer} ... >
            <img className={classnames?.image} .../>
            <span className={classnames?.text}></span>
            <button className={classnames?.binButton} ... >
              <BinIcon className={classnames?.binIcon} />
            </button>
            <button className={ classnames?.binButton} ...
              <InputFieldIcon className={`${classnames?.inputIcon} ${classnames?.enableInputIcon}`}
            </button>
            <textarea
              rows={inputConfigration?.rows || 1}
              className={classnames?.input }
            />
        </div>
    </div>

Calendar-view

DEMO

DEMO Image Carousel


import {ImageCarousel} from "adewale-ui-toolbox";

export default function DragComponent() {
  const images = [
    {
      url: "https://...",
      child: <CarouselContent />,
    },
    {
      url: "https://...",
    },
    {
      url: "https://...",
    },
  ];
  return (
      <ImageCarousel
        images={images?.map((item) => ({
          url: item?.url,
          child: item?.child,
        }))}
          autoTransitionOptions={{ allow: true, seconds: 8 }}
      />
  );
}
function CarouselContent() {
  return (
    <div className="">
      <h6>Latest News & Updates</h6>
      <p>
        Turpis interdum nunc varius ornare dignissim pretium. Massa ornare quis
        aliquet sed vitae. Sed velit nisi, fermentum erat. Fringilla purus, erat
        fringilla tincidunt quisque non. Pellentesque in ut tellus.
      </p>
    </div>
  );
}

What is new?

27.10.24 - Image carousel hover animation stop 21.10.24 - Image carousel auto scroll (optional feature) 20.10.24 - Image carousel ui component added

19.10.224 - Added drag to reorder component with the characteristics to enable input fields, allow images or just text with purely customizable CSS functionality or default CSS