Catalog npm
Back to packageRELEASE DETAILS

0.0.0-241123.141221

npm

@01works/react-cont

Design System for Dashboard

componentcontrollerreact
Published23 Nov 2024
Direct dependencies14
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 17

Native requirements
14 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
uuid
Environment
{
  "local_name": "uuid",
  "alias": false,
  "peer_metadata": null
}
10.0.0runtime
zustand
Environment
{
  "local_name": "zustand",
  "alias": false,
  "peer_metadata": null
}
^4.5.5runtime
@01works/tw
Environment
{
  "local_name": "@01works/tw",
  "alias": false,
  "peer_metadata": null
}
0.0.1runtime
framer-motion
Environment
{
  "local_name": "framer-motion",
  "alias": false,
  "peer_metadata": null
}
11.3.28runtime
@01works/utils
Environment
{
  "local_name": "@01works/utils",
  "alias": false,
  "peer_metadata": null
}
0.0.1runtime
@radix-ui/react-slot
Environment
{
  "local_name": "@radix-ui/react-slot",
  "alias": false,
  "peer_metadata": null
}
^1.1.0runtime
@radix-ui/react-popover
Environment
{
  "local_name": "@radix-ui/react-popover",
  "alias": false,
  "peer_metadata": null
}
^1.1.1runtime
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
@01works/react-ui
Environment
{
  "local_name": "@01works/react-ui",
  "alias": false,
  "peer_metadata": null
}
0.0.0-241123.84913development
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
@01works/react-ui
Environment
{
  "local_name": "@01works/react-ui",
  "alias": false,
  "peer_metadata": null
}
0.0.0-241123.84913peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "5ab6d28125a8d9fc142ac5387172fc7763748b46",
  "tarball": "https://registry.npmjs.org/@01works/react-cont/-/react-cont-0.0.0-241123.141221.tgz",
  "fileCount": 82,
  "integrity": "sha512-F1BOqqtr8N7iR2G5AwNE7TL+9KAZIpeXqeUM3otyLJZwUQl0ZK2hZSKWwbPfaqY4ZMMWboF6ON7nBnmvBYGmQw==",
  "signatures": [
    {
      "sig": "MEQCIDevEefBtgbVdmvBwYIYJ3m/AqhgIFYfSKm+S+T2abC0AiBONMjGu4OSfb1pwKkWXWqM1ahKO7vQDWlPT34HuYGM5Q==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 389553
}

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:c81ad339d33e36c41ccce03c37897d075e5e496fed6dfd9540d81eeb78039614

Other collected versions

0.0.0-241228.8391128 Dec0.0.0-241207.256407 Dec0.0.0-241206.2340086 Dec0.0.0-241125.10403325 Nov0.0.0-241125.5412525 Nov0.0.0-241125.5331925 NovView all collected versions →