# @plesiosaurus/ui

> A simple & animate-full UI component library built with vanilla-extract.🍦🩵

Latest version **0.7.0** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @plesiosaurus/ui
pnpm add @plesiosaurus/ui
yarn add @plesiosaurus/ui
bun add @plesiosaurus/ui
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2023-12-21 |
| First published | 2023-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=21.2.0 |
| Dependencies | 9 |
| Unpacked size | 214.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Team Issei Absence |
| Maintainers | saku-1101, tosaken1116 |

## Links

- npm: https://www.npmjs.com/package/@plesiosaurus/ui
- npm.io page: https://npm.io/package/@plesiosaurus/ui

## Dependencies (9)

- [hygen](https://npm.io/package/hygen.md) ^6.2.11
- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [lucide-react](https://npm.io/package/lucide-react.md) ^0.297.0
- [modern-normalize](https://npm.io/package/modern-normalize.md) ^2.0.0
- [@floating-ui/react](https://npm.io/package/@floating-ui/react.md) ^0.26.4
- [@vanilla-extract/css](https://npm.io/package/@vanilla-extract/css.md) ^1.14.0
- [@vanilla-extract/dynamic](https://npm.io/package/@vanilla-extract/dynamic.md) ^2.1.0
- [@vanilla-extract/sprinkles](https://npm.io/package/@vanilla-extract/sprinkles.md) ^1.6.1

## Recent versions

- 0.7.0 (latest) — 2023-12-21
- 0.6.3 — 2023-12-17
- 0.6.2 — 2023-12-17
- 0.6.1 — 2023-12-17
- 0.6.0 — 2023-12-17
- 0.5.7 — 2023-12-17
- 0.5.6 — 2023-12-17
- 0.5.5 — 2023-12-16
- 0.5.4 — 2023-12-16
- 0.5.3 — 2023-12-16
- 0.5.2 — 2023-12-16
- 0.5.1 — 2023-12-16
- 0.5.0 — 2023-12-16
- 0.4.1 — 2023-12-16
- 0.4.0 — 2023-12-16

## README

# @plesiosaurus/ui

A simple & animate-full UI component library built with vanilla-extract.🩵
Perfectly Working with all React-made projects!

**❄️🍦It's Fully Vanilla Flavour React component library!!🍦❄️**

## 🦖 Configurations - It's a tiny little step before you go ahead!

- Simply add `"resolvePackageJsonExports": false,` in `compilerOptions` in `tsconfig.json` property like this:

```json
   "compilerOptions": {
      // ...
      "resolvePackageJsonExports": false,
      // ...
   },
```

... then you're good to go!
You got a fully-typed React UI Component.

## 🏹Usage

In your app, you're able to use @plesiosaurus/ui Components like so:

```ts
import { Button } from '@plesiosaurus/ui'

function App() {
  return (
    <div>
      <Button
        state='secondary'
        animationProps={{
          hover: {
            key: 'bgColorFade',
            option: {
              duration: '0.3s',
              delay: '0s',
              afterColor: 'secondary',
            },
          },
        }}
      >
        Label
      </Button>
    </div>
  )
}

export default App
```

As it's fully typed, you got a tweet from your IDE if you're missing something necessary.
<img width="1007" alt="image" src="https://github.com/tosaken1116/Plesiosaurus/assets/74392116/caf2e3af-35a7-499c-a364-5d69c4a10722">

Don't worry if you're not sure what variants are available.@plesiosaurus/ui Components allow you to know what you can put in there!
<img width="852" alt="image-1" src="https://github.com/tosaken1116/Plesiosaurus/assets/74392116/e86057f1-d453-410d-a597-1f37c9cdf073">

Hooray🌟 Now, @plesiosaurus/ui Components are in your hands!

https://github.com/tosaken1116/Plesiosaurus/assets/74392116/e5fe38cf-148c-4edd-a2bf-2eada5572b14

## 🌈Technical Features

### 🌳Fully tree shakeable

Only necessary code ends up in the final application. When you import a component, it only includes the necessary JS and CSS styles. It's pretty cool, isn't it?

> 必要なコードだけが最終的なアプリケーションに含まれます。コンポーネントをインポートすると、必要な JS と CSS スタイルのみが含まれます。

### 🐣Compiled CSS modules

The components are styled with [vanilla-extract](https://vanilla-extract.style/). When building the library, these styles will get transformed to normal CSS style sheets. This means that the consuming application will **not even be required to support vanilla-extract!**

> コンポーネントは vanilla-extract を使用してスタイルが付けられています。ライブラリをビルドすると、これらのスタイルは通常の CSS スタイルシートに変換されます。つまり、消費するアプリケーションは vanilla-extract をサポートする必要さえありません！

As a bonus compiling the vanilla-extract avoids a compatibility issue and the package can be consumed in both, environments that support named imports for vanilla-extract, and environments that don't. That means **using compiled CSS allows for obtaining the minimal CSS in both environments that support named imports and those that do not!**

> さらに、vanilla-extract をコンパイルすることで互換性の問題を回避できます。パッケージは vanilla-extract の名前付きインポートをサポートする環境とサポートしない環境の両方で使用できるからです。コンパイルされた CSS を使用すると、名前付きインポートをサポートする環境とそうでない環境の両方で最小限の CSS を取得できます！

### 🦖TypeScript

To include type definitions in our UI library, we successfully developed the library using a statically typed language such as TypeScript. We exported type definition to `@plesiosaurus/ui/types/**.d.ts` files (files with the .d.ts extension) as part of the build process. **This enables users to benefit from features like code completion and type checking when using the UI library.**

> UI ライブラリに型定義を含めるために、TypeScript などの静的型付け言語を使用してライブラリを開発しました。ビルドプロセスの一環として、型定義を`@plesiosaurus/ui/types/**.d.ts` ファイル（.d.ts 拡張子のファイル）にエクスポートしました。これにより、UI ライブラリを使用する際にコード補完や型チェックのような機能を利用できるようになります。

## 📛 Catalog

[Component Documentation on Storybook](https://6554b17cdf2d7f453e222014-awwkotauff.chromatic.com/)

---
_Source: https://npm.io/package/@plesiosaurus/ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
