Catalog npm
Back to packageRELEASE DETAILS

0.0.0-240918.70422

npm

@01works/react-ui

Basic UI Set

reactui
Published18 Sept 2024
Direct dependencies20
Transitive dependenciesNot calculated

README

Current package documentation

@01works/react-ui

Design System for Dashboard

Getting Started

Installation

npm i @01works/react-ui
# or
pnpm add @01works/react-ui
# or
yarn add @01works/react-ui
# or
bun add @01works/react-ui

Components

Button

import { Button } from '@01works/react-ui'

export const Component = () => {
  const onClick = () => {
    console.log('click')
  }

  return (
    <>
      <Button onClick={onClick} color="black" size="small" shape="square">
        Button
      </Button>
    </>
  )
}

ToggleField

import { ToggleField } from '@01works/react-ui'

export const Component = () => {
  const [pressed, setPressed] = useState(false)

  return (
    <ToggleField
      label="ToggleField"
      labelBasis={120}
      pressed={pressed}
      onChange={setPressed}
    />
  )
}

TextField

import { TextField } from '@01works/react-ui'

export const Component = () => {
  return (
    <TextField
      label="TextField"
      labelBasis={120}
      placeholder="Placeholder"
      color="white"
      type="text"
    />
  )
}

TextAreaField

import { TextAreaField } from '@01works/react-ui'

export const Component = () => {
  return (
    <TextAreaField
      label="TextAreaField"
      labelBasis={120}
      placeholder="Placeholder"
      size="small"
      color="white"
    />
  )
}

SelectField

import { SelectField } from '@01works/react-ui'

export const Component = () => {
  return (
    <SelectField
      label="SelectField"
      labelBasis={120}
      placeholder="Placeholder"
      color="white"
      options={[
        { label: 'Option 1', value: 'option1' },
        { label: 'Option 2', value: 'option2' },
        { label: 'Option 3', value: 'option3' },
      ]}
    />
  )
}

ColorField

import { ColorField } from '@01works/react-ui'

export const Component = () => {
  return (
    <ColorField
      label="ColorField"
      color="white"
    />
  )
}

SliderField

import { SliderField } from '@01works/react-ui'

export const Component = () => {
  const [value, setValue] = useState([50])

  return (
    <SliderField
      label="SliderField"
      labelBasis={120}
      min={0}
      max={100}
      step={1}
      value={value}
      onValueChange={(value: number[]) => setValue(value)}
    />
  )
}

ImageField

import { ImageField } from '@01works/react-ui'

export const Component = () => {
  const [value, setValue] = useState<ImageFieldValue>(null)

  return (
    <ImageField
      label="ImageField"
      value={value}
      setValue={(value: ImageFieldValue) => setValue(value)}
    />
  )
}

Accordion

import { Accordion } from '@01works/react-ui'

export const Component = () => {
  return (
    <Accordion
      label="Accordion"
    >
      <div>Accordion</div>
    </Accordion>
  )
}

Dialog

import { Dialog } from '@01works/react-ui'

export const Component = () => {
  return (
    <Dialog
      trigger={<Button>Open Dialog</Button>}
      title="Dialog"
      description="Dialog"
      button={{
        cancel: 'Cancel',
        submit: 'Submit',
        onSubmit: () => console.log('submit'),
      }}
    >
      <div>Dialog</div>
    </Dialog>
  )
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 22

Native requirements
20 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
clsx
Environment
{
  "local_name": "clsx",
  "alias": false,
  "peer_metadata": null
}
2.1.1runtime
uuid
Environment
{
  "local_name": "uuid",
  "alias": false,
  "peer_metadata": null
}
10.0.0runtime
framer-motion
Environment
{
  "local_name": "framer-motion",
  "alias": false,
  "peer_metadata": null
}
11.3.28runtime
tailwind-merge
Environment
{
  "local_name": "tailwind-merge",
  "alias": false,
  "peer_metadata": null
}
2.5.2runtime
tailwindcss-animate
Environment
{
  "local_name": "tailwindcss-animate",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
@radix-ui/react-dialog
Environment
{
  "local_name": "@radix-ui/react-dialog",
  "alias": false,
  "peer_metadata": null
}
^1.1.1runtime
@radix-ui/react-select
Environment
{
  "local_name": "@radix-ui/react-select",
  "alias": false,
  "peer_metadata": null
}
2.1.1runtime
@radix-ui/react-slider
Environment
{
  "local_name": "@radix-ui/react-slider",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
@radix-ui/react-toggle
Environment
{
  "local_name": "@radix-ui/react-toggle",
  "alias": false,
  "peer_metadata": null
}
1.1.0runtime
react-medium-image-zoom
Environment
{
  "local_name": "react-medium-image-zoom",
  "alias": false,
  "peer_metadata": null
}
^5.2.9runtime
class-variance-authority
Environment
{
  "local_name": "class-variance-authority",
  "alias": false,
  "peer_metadata": null
}
0.7.0runtime
@radix-ui/react-accordion
Environment
{
  "local_name": "@radix-ui/react-accordion",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
browser-image-compression
Environment
{
  "local_name": "browser-image-compression",
  "alias": false,
  "peer_metadata": null
}
2.0.2runtime
next
Environment
{
  "local_name": "next",
  "alias": false,
  "peer_metadata": null
}
14.2.7development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^18.3.1development
postcss
Environment
{
  "local_name": "postcss",
  "alias": false,
  "peer_metadata": null
}
^8.4.42development
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
18.3.1development
@types/uuid
Environment
{
  "local_name": "@types/uuid",
  "alias": false,
  "peer_metadata": null
}
^10.0.0development
tailwindcss
Environment
{
  "local_name": "tailwindcss",
  "alias": false,
  "peer_metadata": null
}
3.4.10development
autoprefixer
Environment
{
  "local_name": "autoprefixer",
  "alias": false,
  "peer_metadata": null
}
^10.4.20development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^18.3.1peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
18.3.1peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "4084ed271626dfcca1cb8cf96bc73ff2889a4c1d",
  "tarball": "https://registry.npmjs.org/@01works/react-ui/-/react-ui-0.0.0-240918.70422.tgz",
  "fileCount": 234,
  "integrity": "sha512-37Y0rAVwEKBQLFsK1mFOnFBpdjAI/hS5Y7L17WNKOW1+UG+Kvkx2N0L+8FtTMFNKwaK10Tw4hwbaGbuyJ+cavg==",
  "signatures": [
    {
      "sig": "MEYCIQD4kDwwTrJ1UXNu8sT9qi964JWsUbmFoEZKTKLjB0Ay8AIhAPIo49l9SAI+U6gQUbKcBk+YOhQaCk+p1okZbY/9qLgA",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 1933424
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:59 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d29b405874748653b6f17b06dc81c94293a56e16ba3cc6470ff1c178c2bd2d4a

Other collected versions

0.0.0-241123.16524623 Nov0.0.0-241123.15491723 Nov0.0.0-241123.8491323 Nov0.0.0-241123.8440623 Nov0.0.0-241122.23131422 Nov0.0.0-241120.8495220 NovView all collected versions →