lldlab-ui 0.2.0 → 0.3.0
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 +50 -1
- package/dist/index.d.ts +247 -75
- package/dist/index.js +303 -126
- package/dist/index.js.map +1 -1
- package/dist/theme.css +19 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,8 +12,9 @@ Design-system components for [LLD Lab](https://lldlab.com), built for React 19 a
|
|
|
12
12
|
|
|
13
13
|
## Table of contents
|
|
14
14
|
|
|
15
|
-
**Quick links:** [Install](#install) · [Setup](#setup) · [Component index](#component-index) · [Mobile navigation](#mobile-navigation) · [Design tokens](#design-tokens) · [Troubleshooting](#troubleshooting)
|
|
15
|
+
**Quick links:** [What's new in 0.3.0](#whats-new-in-030) · [Install](#install) · [Setup](#setup) · [Component index](#component-index) · [Mobile navigation](#mobile-navigation) · [Design tokens](#design-tokens) · [Troubleshooting](#troubleshooting)
|
|
16
16
|
|
|
17
|
+
1. [What's new in 0.3.0](#whats-new-in-030)
|
|
17
18
|
1. [Install](#install)
|
|
18
19
|
2. [Setup](#setup)
|
|
19
20
|
- [1. Styles](#1-styles) · [2. Fonts](#2-fonts) · [3. Icons](#3-icons) · [4. Use it](#4-use-it)
|
|
@@ -37,6 +38,54 @@ Design-system components for [LLD Lab](https://lldlab.com), built for React 19 a
|
|
|
37
38
|
|
|
38
39
|
---
|
|
39
40
|
|
|
41
|
+
## What's new in 0.3.0
|
|
42
|
+
|
|
43
|
+
A fidelity pass against the Stitch mockups. **Visual defaults changed**; the API only grew.
|
|
44
|
+
|
|
45
|
+
**Changed defaults**
|
|
46
|
+
|
|
47
|
+
- Surfaces separate by shadow, not borders: `Card` is `shadow-sm` with no border (add `outlined` for the hairline); `Card.Header` / `Card.Footer` are tinted bars with no rule (add `divider`).
|
|
48
|
+
- `AppBar` floats on a soft shadow (`divider="border"` restores the hairline).
|
|
49
|
+
- Tokens: `rounded` is 2px; `shadow-sm/md/lg/xl` use the lighter Tailwind v3 scale; `fg-brand` is `#2563EB`.
|
|
50
|
+
- `MetricTile`, boxed `ResultRow` and `Badge uppercase` drop their border / extra tracking; `Eyebrow` text takes its tone colour.
|
|
51
|
+
- Nav `Tabs` keep one font weight so the active item never shifts its neighbours.
|
|
52
|
+
|
|
53
|
+
**New props**
|
|
54
|
+
|
|
55
|
+
| Component | Added |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `Card` | `shadow` (none/sm/md/xl), `outlined`, `gap`; `Card.Header`/`Footer`: `divider`, `density` (md/sm), `tone` (default/slate/none) |
|
|
58
|
+
| `AppBar` | `divider` (shadow/border) |
|
|
59
|
+
| `Section` | `paddingTop`, `paddingBottom` (spacing scale), `padding="none"`, `pattern="dots-brand"` |
|
|
60
|
+
| `Split` | `ratio` `7/5`, `5/7`; `breakpoint` (lg/xl); `asideAs` (aside/div) |
|
|
61
|
+
| `GridItem` | new: `span` (responsive column span) |
|
|
62
|
+
| `Show` | `above` / `below` `2xl` |
|
|
63
|
+
| `Heading` | `balance`, `leading="none"` |
|
|
64
|
+
| `Text` | `underline="wavy"` |
|
|
65
|
+
| `Eyebrow` | `variant` `tinted`, `dot` |
|
|
66
|
+
| `Tabs` | `variant` `nav` / `solid` / `label`; item `icon`, `countTone`, `disabled`, `title`, `hideBelow` |
|
|
67
|
+
| `SegmentedControl` | `variant="label"` (compact mono, for toolbars) |
|
|
68
|
+
| `Button` | `size` `xs` / `ms`; `variant` `raised` / `slate` |
|
|
69
|
+
| `IconButton` | `size="ms"` (36px) |
|
|
70
|
+
| `Badge` | `shape="pill"`, `outlined`, `size="xs"`, tones `subtle` / `container` |
|
|
71
|
+
| `TextField` | `variant` (outline/filled/raised), `size` `ms` / `lg`, `width` (auto/full/sm/md/lg), `iconPosition` |
|
|
72
|
+
| `Select` | `variant="raised"`, `size="lg"` |
|
|
73
|
+
| `Kbd` | `variant="raised"` |
|
|
74
|
+
| `Stat` | `variant="tile"`, `iconTone` |
|
|
75
|
+
| `MetricTile` | `variant="centered"` |
|
|
76
|
+
| `Box` | `tone="container"` |
|
|
77
|
+
| `Dot` / `Icon` | `size="lg"` (12px) / `size` `xs` (14px), `ms` (18px) |
|
|
78
|
+
| `Avatar` | `size` `ms` (32px), `ml` (40px) |
|
|
79
|
+
| `SectionHeader` | `divider`, `metaUppercase` |
|
|
80
|
+
| `EmptyState` | `headingLevel` (1–3) |
|
|
81
|
+
| `Checkbox` | `size="sm"` |
|
|
82
|
+
| `CodeBlock` | `bare`; dark blocks are now a dark theme scope |
|
|
83
|
+
| `Countdown` | `variant="chip"` |
|
|
84
|
+
| `StatusBar` | `tone="raised"` |
|
|
85
|
+
| `UmlClass` | `variant="tinted"`, `headerTone`, `columns` |
|
|
86
|
+
|
|
87
|
+
<sub>[↑ Back to top](#table-of-contents)</sub>
|
|
88
|
+
|
|
40
89
|
## Install
|
|
41
90
|
|
|
42
91
|
```bash
|