@roy-ui/ui 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +109 -0
  2. package/package.json +44 -2
package/README.md ADDED
@@ -0,0 +1,109 @@
1
+ # @roy-ui/ui
2
+
3
+ > Free, animated React components built with TypeScript. Zero config, RSC-safe, sub-12 KB.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@roy-ui/ui?logo=npm&label=npm&color=cb3837)](https://www.npmjs.com/package/@roy-ui/ui)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@roy-ui/ui?logo=npm&label=downloads&color=cb3837)](https://www.npmjs.com/package/@roy-ui/ui)
7
+ [![bundle size](https://img.shields.io/bundlephobia/minzip/@roy-ui/ui?logo=esbuild&label=min%2Bgzip&color=8DD6F9)](https://bundlephobia.com/package/@roy-ui/ui)
8
+ [![types](https://img.shields.io/npm/types/@roy-ui/ui?color=3178C6&logo=typescript&logoColor=white)](https://www.npmjs.com/package/@roy-ui/ui)
9
+ [![license](https://img.shields.io/npm/l/@roy-ui/ui?color=22c55e)](https://github.com/DibbayajyotiRoy/RoyUI/blob/main/LICENSE)
10
+
11
+ <a href="https://github.com/DibbayajyotiRoy/RoyUI/blob/main/apps/docs/lib/demo/linkedin2.mp4">
12
+ <img
13
+ src="https://raw.githubusercontent.com/DibbayajyotiRoy/RoyUI/main/apps/docs/lib/demo/demo.gif"
14
+ alt="Roy UI components demo — gradient button, popover, text morph, made-by badge"
15
+ width="720" />
16
+ </a>
17
+
18
+ <sub>Click the GIF for the full-quality video.</sub>
19
+
20
+ ---
21
+
22
+ ## What is it?
23
+
24
+ `@roy-ui/ui` is an open-source React component library focused on animated, micro-interactive UI primitives — gradient buttons, popovers, text-morph effects, attribution badges — written in TypeScript, shipped as tree-shakable ESM, and fully compatible with React Server Components, Next.js 15, Vite, Remix, and any modern React 18+ runtime.
25
+
26
+ - **Zero runtime config** — install, import, render.
27
+ - **Tree-shakable ESM** with first-class TypeScript types and source maps.
28
+ - **Self-contained CSS** — no Tailwind plugin, no PostCSS, no theme provider.
29
+ - **RSC-safe** — components are correctly marked `"use client"` inside the bundle.
30
+ - **Tiny** — the whole library is under 12 KB minified + gzipped.
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ npm install @roy-ui/ui
36
+ # or
37
+ pnpm add @roy-ui/ui
38
+ # or
39
+ yarn add @roy-ui/ui
40
+ # or
41
+ bun add @roy-ui/ui
42
+ ```
43
+
44
+ Requires React 18 or newer.
45
+
46
+ ## Quick start
47
+
48
+ ```tsx
49
+ import {
50
+ GradientButton,
51
+ Popover,
52
+ TextMorph,
53
+ MadeBy,
54
+ } from '@roy-ui/ui';
55
+
56
+ export default function Hero() {
57
+ return (
58
+ <main>
59
+ <TextMorph value="Hello, world." />
60
+
61
+ <GradientButton loading={false}>
62
+ Get started
63
+ </GradientButton>
64
+
65
+ <Popover label="Help" title="Need a hand?" align="right" width="md">
66
+ <p>Read the docs, ping the maintainer, or open an issue.</p>
67
+ </Popover>
68
+
69
+ <MadeBy
70
+ name="Dibbayajyoti"
71
+ href="https://github.com/DibbayajyotiRoy"
72
+ position="bottom-right"
73
+ />
74
+ </main>
75
+ );
76
+ }
77
+ ```
78
+
79
+ Using the **Next.js App Router**? Import directly from a Server Component — the interactive bits inside `@roy-ui/ui` carry their own `"use client"` boundary.
80
+
81
+ ## Components
82
+
83
+ | Component | What it does |
84
+ | --- | --- |
85
+ | **`GradientButton`** | Animated blue–cyan gradient button with a built-in spinner. Props: `loading`, `loadingLabel`, `fullWidth`. |
86
+ | **`Popover`** | Accessible click-to-open popover with corner alignment (`left`/`right`) and width presets (`sm`/`md`/`lg`/number). |
87
+ | **`TextMorph`** | Character-by-character text diff animation. Great for live counters, currency tickers, and status text. |
88
+ | **`MadeBy`** | Floating "Made by ___" attribution badge with corner positioning. |
89
+
90
+ ## Why use this?
91
+
92
+ | | `@roy-ui/ui` | Radix / Headless UI | shadcn/ui |
93
+ | --- | --- | --- | --- |
94
+ | Ships visual styles | Yes | No | Yes (copy-paste) |
95
+ | One install (no CLI, no copy) | Yes | Yes | No |
96
+ | RSC-safe out of the box | Yes | Manual | Yes |
97
+ | Tailwind required | No | No | Yes |
98
+ | Animation built in | Yes | No | Sometimes |
99
+
100
+ ## Links
101
+
102
+ - **Source code:** https://github.com/DibbayajyotiRoy/RoyUI
103
+ - **Issues:** https://github.com/DibbayajyotiRoy/RoyUI/issues
104
+ - **Releases:** https://github.com/DibbayajyotiRoy/RoyUI/releases
105
+ - **Demo video:** https://github.com/DibbayajyotiRoy/RoyUI/blob/main/apps/docs/lib/demo/linkedin2.mp4
106
+
107
+ ## License
108
+
109
+ [MIT](https://github.com/DibbayajyotiRoy/RoyUI/blob/main/LICENSE) © [Dibbayajyoti Roy](https://github.com/DibbayajyotiRoy)
package/package.json CHANGED
@@ -1,7 +1,49 @@
1
1
  {
2
2
  "name": "@roy-ui/ui",
3
- "version": "0.0.2",
4
- "description": "Open source React component library",
3
+ "version": "0.0.4",
4
+ "description": "Free, animated React components built with TypeScript. Zero config, RSC-safe, sub-12 KB. Gradient button, popover, text morph and more.",
5
+ "keywords": [
6
+ "react",
7
+ "react-components",
8
+ "react-component-library",
9
+ "react-ui",
10
+ "react-ui-library",
11
+ "ui",
12
+ "ui-library",
13
+ "ui-kit",
14
+ "component-library",
15
+ "components",
16
+ "design-system",
17
+ "typescript",
18
+ "esm",
19
+ "tree-shakable",
20
+ "nextjs",
21
+ "next",
22
+ "react-server-components",
23
+ "rsc",
24
+ "use-client",
25
+ "animation",
26
+ "animated",
27
+ "micro-interactions",
28
+ "gradient",
29
+ "gradient-button",
30
+ "button",
31
+ "popover",
32
+ "tooltip",
33
+ "text-animation",
34
+ "text-morph",
35
+ "text-effect",
36
+ "made-by",
37
+ "attribution-badge",
38
+ "frontend",
39
+ "open-source",
40
+ "free",
41
+ "tailwind-friendly"
42
+ ],
43
+ "author": {
44
+ "name": "Dibbayajyoti Roy",
45
+ "url": "https://github.com/DibbayajyotiRoy"
46
+ },
5
47
  "license": "MIT",
6
48
  "type": "module",
7
49
  "repository": {