@sakaniui/react 0.16.0 → 0.17.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/AGENTS.md +6 -1
- package/CHANGELOG.md +35 -0
- package/dist/{TopBar-PpauzgVl.js → TopBar-BGg5THg1.js} +2234 -1812
- package/dist/TopBar-CXA2RJsK.cjs +1 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +1784 -1784
- package/dist/components/AreaChart/AreaChart.d.ts +5 -0
- package/dist/components/BarChart/BarChart.d.ts +5 -0
- package/dist/components/BarChart/index.d.ts +1 -1
- package/dist/components/DonutChart/DonutChart.d.ts +5 -0
- package/dist/components/FunnelChart/FunnelChart.d.ts +9 -0
- package/dist/components/HeatmapChart/HeatmapChart.d.ts +5 -0
- package/dist/components/LineChart/LineChart.d.ts +5 -0
- package/dist/components/PieChart/PieChart.d.ts +5 -0
- package/dist/components/RadarChart/RadarChart.d.ts +11 -0
- package/dist/components/RadialChart/RadialChart.d.ts +5 -0
- package/dist/emoji-index.json +1 -1
- package/dist/icon-index.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2923 -2399
- package/dist/lib/ChartLoading.d.ts +15 -0
- package/dist/lib/ChartTooltip.d.ts +18 -0
- package/dist/lib/useChartEntrance.d.ts +9 -0
- package/dist/lib/useReducedMotion.d.ts +6 -0
- package/dist/manifest.json +212 -10
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/dist/TopBar-BgW6DlPo.cjs +0 -1
package/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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@sakaniui/react` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.17.1
|
|
6
|
+
|
|
7
|
+
- **Fixed: the marketing and e-commerce blocks collapsed inside a shrink-to-fit parent.** In 0.16.0 the blocks that follow their
|
|
8
|
+
container (`HeroBlock`, `FeatureGridBlock`, `LogoCloudBlock`, `CtaBannerBlock`, `PricingTableBlock`, `TestimonialBlock`,
|
|
9
|
+
`FaqBlock`, `BlogListingBlock`, `CareersBlock`, `TeamSectionBlock`, `ProductDetailBlock`, `ProductGridBlock`,
|
|
10
|
+
`CheckoutFlowBlock`) had their width changed from the Figma frame width to `100%` up to it. That is right in a page, but where the
|
|
11
|
+
parent sizes itself to its content (a docs preview that scales a block to fit, a flex child, a centred story) a percentage
|
|
12
|
+
width with container sizing resolves to nothing: the hero became a one-word-wide column and the section previews were
|
|
13
|
+
mis-aligned and unlike Figma. The root is the Figma width again (`width: <frame width>`), capped by its container
|
|
14
|
+
(`max-width: 100%`), so it keeps its design size where it can and still narrows on a phone.
|
|
15
|
+
|
|
16
|
+
## 0.17.0
|
|
17
|
+
|
|
18
|
+
### Charts: loading states, and a richer look you opt into
|
|
19
|
+
|
|
20
|
+
- **Every chart takes `loading`.** It draws the chart's own silhouette instead (a radar web, a funnel band, bars, a line,
|
|
21
|
+
a ring, a heatmap grid) in the surface's subtle fill, breathing in a soft stagger, with a light gliding through the
|
|
22
|
+
funnel and sweeping round the radar and the rings. It keeps the chart's height, so nothing below moves when the data
|
|
23
|
+
arrives, and it is announced as a busy status.
|
|
24
|
+
- **`appearance="rich"` on every chart** (the default stays the Figma look, unchanged):
|
|
25
|
+
- Entrances, once, when the chart appears or its loading ends: bars grow out of their baseline in a stagger, lines and
|
|
26
|
+
areas draw in, the radar grows out of the centre (and morphs when the data changes), pies, donuts and radials turn
|
|
27
|
+
into place, heatmap cells arrive as a wave, the funnel wipes in. Hovering never replays them. Off for
|
|
28
|
+
`prefers-reduced-motion`.
|
|
29
|
+
- 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
|
|
30
|
+
dashed; bars get a faint column behind them. Lines, area edges and radar shapes glow faintly in their own colour.
|
|
31
|
+
- A frosted tooltip card with a hairline edge.
|
|
32
|
+
- `RadarChart`: hover a spoke for a crosshair, a dot on each series and a card with the values and the gap between two
|
|
33
|
+
series ("Berlin 46 −20"); `interactive={false}` turns it off.
|
|
34
|
+
- `FunnelChart`: a header with each stage's value and share of the start, a drop-off chip at every step, and `flow`:
|
|
35
|
+
dots streaming through the band, thinning where the funnel does (the share that carries on past a step is the
|
|
36
|
+
data's), running only while on screen. `formatValue` sets how values are written (compact by default).
|
|
37
|
+
- `ChartAppearance` is exported. `AreaChart`'s gradients are per chart, so two area charts on one page no longer share
|
|
38
|
+
(and repaint) each other's fills.
|
|
39
|
+
|
|
5
40
|
## 0.16.0
|
|
6
41
|
|
|
7
42
|
- **`WorkingIndicator` (and `ChainOfThought`'s working line) shows the `ChatOrb` instead of the sparkle.** While the agent works, the
|