@sakaniui/mcp 0.15.0 → 0.17.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/data/AGENTS.md CHANGED
@@ -251,7 +251,12 @@ lists its other names under `aliases` in `manifest.json`, and `search_components
251
251
  `get_component("Table")` for code that does). **StatCard** — one headline metric with trend. **ListItem** — a
252
252
  row in a list. **Charts** — pick by question: trend over time → Line/Area; compare categories → Bar;
253
253
  part of whole → Pie/Donut (few slices only); progress to a target → Radial; compare several measures →
254
- Radar; drop-off → Funnel; intensity across two dimensions → Heatmap.
254
+ Radar; drop-off → Funnel; intensity across two dimensions → Heatmap. Every chart takes `loading` (pass it
255
+ while the data is on its way: the chart draws its own silhouette and keeps its height, so nothing below
256
+ moves) and `appearance="rich"` (an entrance when it appears, a soft lift and glow on hover, a frosted
257
+ tooltip; the radar gets a spoke crosshair, the funnel a stat header, drop-off chips and a stream of dots).
258
+ `appearance` defaults to the Figma look: reach for `rich` on a marketing or dashboard surface, not in a
259
+ dense table cell.
255
260
  - **Map / MapMarker / MapPopup / MapClusterLayer** — an interactive tile map with no map library. Put `MapMarker`
256
261
  (`pin`, `dot`, `cluster`) and `MapPopup` children inside `Map`, placed by `[latitude, longitude]` (latitude
257
262
  first). Give every marker a `label`; a marker with `onClick` is a button and `selected` is yours to set. The
package/data/CHANGELOG.md CHANGED
@@ -2,6 +2,75 @@
2
2
 
3
3
  All notable changes to `@sakaniui/react` are documented here.
4
4
 
5
+ ## 0.17.0
6
+
7
+ ### Charts: loading states, and a richer look you opt into
8
+
9
+ - **Every chart takes `loading`.** It draws the chart's own silhouette instead (a radar web, a funnel band, bars, a line,
10
+ a ring, a heatmap grid) in the surface's subtle fill, breathing in a soft stagger, with a light gliding through the
11
+ funnel and sweeping round the radar and the rings. It keeps the chart's height, so nothing below moves when the data
12
+ arrives, and it is announced as a busy status.
13
+ - **`appearance="rich"` on every chart** (the default stays the Figma look, unchanged):
14
+ - Entrances, once, when the chart appears or its loading ends: bars grow out of their baseline in a stagger, lines and
15
+ areas draw in, the radar grows out of the centre (and morphs when the data changes), pies, donuts and radials turn
16
+ into place, heatmap cells arrive as a wave, the funnel wipes in. Hovering never replays them. Off for
17
+ `prefers-reduced-motion`.
18
+ - Hover: the hovered bar, slice or cell lifts with a soft shadow (the other bars no longer dim or flicker as the pointer crosses between bars); line and area points get a halo; the cursor line is
19
+ dashed; bars get a faint column behind them. Lines, area edges and radar shapes glow faintly in their own colour.
20
+ - A frosted tooltip card with a hairline edge.
21
+ - `RadarChart`: hover a spoke for a crosshair, a dot on each series and a card with the values and the gap between two
22
+ series ("Berlin 46 −20"); `interactive={false}` turns it off.
23
+ - `FunnelChart`: a header with each stage's value and share of the start, a drop-off chip at every step, and `flow`:
24
+ dots streaming through the band, thinning where the funnel does (the share that carries on past a step is the
25
+ data's), running only while on screen. `formatValue` sets how values are written (compact by default).
26
+ - `ChartAppearance` is exported. `AreaChart`'s gradients are per chart, so two area charts on one page no longer share
27
+ (and repaint) each other's fills.
28
+
29
+ ## 0.16.0
30
+
31
+ - **`WorkingIndicator` (and `ChainOfThought`'s working line) shows the `ChatOrb` instead of the sparkle.** While the agent works, the
32
+ orb's eyes read each new line of thought: they turn to the newest step, sweep along its text left to right, and rest, then do the
33
+ same for the next one. `WorkingIndicator` takes `lookAt` (an element) to do this on its own; `ChainOfThought` sets it for you.
34
+ - **`ChatOrb` takes `lookAt`**: an element for the eyes to read instead of following the pointer (pass `null` to go back to it). The
35
+ orb also has a hairline edge in the text colour now, so a white ball keeps an edge on a light surface.
36
+
37
+ ### Phones, touch and slow connections
38
+
39
+ A pass over every component and block at 320, 390, 768 and 1280px, with touch emulated and on a throttled 3G connection.
40
+ Desktop layouts are unchanged.
41
+
42
+ - **Hover no longer sticks after a tap.** On a touch screen a tap left the hover look behind (a grey button, a lifted card) until you
43
+ tapped somewhere else. Hover styles now apply only where the device can hover (`@media (hover: hover)`), across 59 stylesheets;
44
+ `:active` still gives press feedback. The flowing hover highlight (`HoverGroup`, menus, lists, Command Menu) ignores touch too.
45
+ Hover rules that reveal something hidden (a tooltip, a table's drag handle) are unchanged, so a tap still reveals them.
46
+ - **No zoom when you tap into a field on iPhone.** iOS Safari zooms the page into any field under 16px and doesn't zoom back. On a
47
+ touch screen the text in `Input`, `Textarea`, `SidebarSearch`, `ChatComposer`, `CodeSnippet` (editable), `QuantitySelector`,
48
+ `Calendar`'s month and year, and the auth blocks' fields and code boxes is 16px. Mouse layouts keep their 13-14px.
49
+ - **Bigger touch targets, same drawing.** Small controls get an invisible 32px hit area on a touch screen: the `TopBar` icons, password
50
+ and balance toggles, `FilterChip` and `Tags` remove, `SidebarPromo` dismiss, `AttachmentChip` remove, and `Map`'s popup close and dot
51
+ markers.
52
+ - **A tap anywhere on a field focuses it.** `Input`'s frame (and the auth blocks' password frames) is taller than the text line inside; a
53
+ tap on its padding or icon used to do nothing.
54
+ - **Blocks fit a phone.** Blocks that held their Figma width (1040-1784px) now fill their container up to it and reflow below it: the
55
+ marketing blocks (Hero, Pricing, Team, Testimonial, Logo Cloud, Feature Grid, Blog Listing, Careers, CTA Banner, FAQ), Product Detail,
56
+ Product Grid, Checkout Flow, Shopping Cart, Order Confirmation, the Billing cards, Data Table (toolbar) and Section Footer. They follow
57
+ their own width (container queries), so they also adapt in a side panel or a docs preview.
58
+ - **AI Chat and AI Welcome on a phone:** below 720px the sidebar becomes a drawer opened from a menu button; the composer options no
59
+ longer wrap and the recent-work cards scroll sideways.
60
+ - **Components at 320px:** `Toast`, `Stepper`, `Pagination`, `SegmentedControl`, `HeatmapChart`, `CheckoutSteps`, `ProductGallery`
61
+ thumbnails, `MobileNavigationMenu`, `FirstPageHeading`, `SubFeature`, `Checkbox` labels (they wrap now) and `Skeleton` no longer
62
+ overflow a small phone.
63
+ - **Liquid glass:**
64
+ - `LiquidBackdrop` takes `placeholder`, painted under the photo until it loads. The default is a muted mid-tone, so light labels stay
65
+ readable while a photo crawls in over 3G instead of vanishing on a blank page. `LiquidDashboardBlock` passes it on as
66
+ `backgroundPlaceholder` (its story uses a 1 KB blurred copy of the photo).
67
+ - `LiquidDashboardBlock` no longer jumps on load: its sidebar collapsed to the rail with its width transition on first paint. Its top bar
68
+ keeps the title clear of the icons beside the rail on a phone.
69
+ - The Liquid Glass showcase and playground stories fit phones and tablets.
70
+ - **Icons and emoji ship one module each.** `@sakaniui/react/icons` and `@sakaniui/react/emoji` were each one large module (1.9 MB and
71
+ 8.9 MB). Rollup and esbuild kept only what an app imported, but Next.js didn't, and shipped both whole, about 1.4 MB gzipped per page,
72
+ seven seconds on 3G. Same import paths; CommonJS unchanged.
73
+
5
74
  ## 0.15.0
6
75
 
7
76
  - **New: the AI conversation parts**, built from the new *AI Components* and *AI Blocks* pages in Figma. Presentational, with no AI SDK: