@raxrai/stylelab-ui 0.1.1 → 0.3.1

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.
package/README.md CHANGED
@@ -8,11 +8,19 @@ A themeable, accessible React UI library with **8 themes**: Minimal, Night, Glas
8
8
 
9
9
  ## Installation
10
10
 
11
+ **Next.js or any existing React app** (you already have React):
12
+
13
+ ```bash
14
+ npm install @raxrai/stylelab-ui
15
+ ```
16
+
17
+ **New project without React** (e.g. empty folder):
18
+
11
19
  ```bash
12
20
  npm install @raxrai/stylelab-ui react react-dom
13
21
  ```
14
22
 
15
- Peer dependencies: **react** and **react-dom** (>=18). Other runtime deps (e.g. class-variance-authority, clsx, tailwind-merge, lucide-react, framer-motion) are bundled, so no extra install is required.
23
+ The package lists **react** and **react-dom** as peer dependencies (>=18). Next.js and Create React App already include them, so you don’t install them again. Other runtime deps (cva, clsx, tailwind-merge, lucide-react, framer-motion) are bundled, so no extra install is required.
16
24
 
17
25
  ### 1. Tailwind + styles
18
26
 
@@ -183,6 +191,7 @@ Implements focus trap and scroll lock when open.
183
191
  | `items` | `{ value, label, disabled? }[]` | — | Options |
184
192
  | `value` / `defaultValue` | `string` | — | Controlled / initial |
185
193
  | `onValueChange`| `(value: string) => void` | — | Selection callback |
194
+ | `disabled` | `boolean` | `false` | When true, does not open; trigger is non-interactive |
186
195
 
187
196
  Keyboard: Enter/Space to open, Arrows to move, Enter to select, Escape to close.
188
197
 
@@ -202,6 +211,27 @@ import { cn, useFocusTrap, useClickOutside, useKeyboardNavigation, getNextListIn
202
211
 
203
212
  ---
204
213
 
214
+ ## Changelog
215
+
216
+ ### [0.3.1]
217
+
218
+ - **Dropdown** — `disabled` prop: when true, the dropdown does not open and the trigger is non-interactive (opacity, cursor, no popover). Use for empty or loading state.
219
+
220
+ ### [0.2.0]
221
+
222
+ - **Navbar** — Optional responsive API: pass `logo`, `items` (`{ href, label }[]`), and `right` (e.g. theme switcher). On small screens nav links become a hamburger menu that opens as an overlay (no layout shift), with the theme’s navbar background; glass and clay use an opaque panel so content doesn’t show through. Desktop shows full nav row. Menu closes on link click or outside click. You can still pass `children` for a custom layout. Exported types: `NavbarItem`, `NavbarProps`.
223
+ - **ThemeProvider** — Restores theme from `localStorage` on mount; `setTheme` persists the new theme. Optional `storageKey` prop (default `"stylelab-theme"`).
224
+ - **Dropdown** — Popover is portaled to `document.body` and positioned with open-up/down logic. Optional `trigger` and `placeholder` (default trigger shows selected/placeholder label). `classNames` for trigger, popover, and item. Theme-aware hover/focus styles. Exported types: `DropdownItem`, `DropdownProps`, `DropdownClassNames`.
225
+ - **Card** — `classNames` for root, header, body, footer. Cyberpunk no longer uses the clip-path “glitch cut” (avoids weird look on different backgrounds); neon border and glow remain. Exported types: `CardProps`, `CardClassNames`.
226
+ - **Badge** — `bgOverride` and `textOverride` (e.g. hex) when you need specific colors.
227
+ - **ProgressBar** — `trackColor` and `activeColor` overrides (e.g. hex).
228
+ - **DashboardShell** — Header, nav links, and mobile panel use theme-based styling (no `dark:`; works with StyleLab themes).
229
+ - **GraphicCard** — In night and cyberpunk themes, content text inherits the card’s text color so children with hardcoded dark text still display correctly.
230
+ - **Docs** — Installation: Next.js/existing React apps install the package only; add `react`/`react-dom` only for new projects without React.
231
+ - **Types** — `StyleLabTheme`, `ComponentName`, `ThemeRecommendation` from `lib/types`; component prop types `NavbarItem`, `NavbarProps`, `CardProps`, `CardClassNames`, `DropdownItem`, `DropdownProps`, `DropdownClassNames` re-exported from the package.
232
+
233
+ ---
234
+
205
235
  ## Links
206
236
 
207
237
  - **Live demo & docs:** [https://stylelab.rajarai.com](https://stylelab.rajarai.com)