jenosize-ui 0.3.0 → 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.
Files changed (181) hide show
  1. package/README.md +5 -5
  2. package/THIRD-PARTY-NOTICES.md +80 -0
  3. package/dist/{GradientPicker-CQm3GT7F.d.ts → GradientPicker-Bv3V3vL_.d.ts} +1 -1
  4. package/dist/{PaymentInput-Cz5jFB3p.d.ts → PaymentInput-s7_s3UDi.d.ts} +1 -1
  5. package/dist/{Select-CXOAMlk7.d.ts → Select-r233iMaU.d.ts} +1 -1
  6. package/dist/{TagInput-CzIrONr-.d.ts → TagInput-w_l9Fp5i.d.ts} +1 -1
  7. package/dist/area-chart.d.ts +2 -2
  8. package/dist/area-chart.js +5 -4
  9. package/dist/avatar.d.ts +1 -1
  10. package/dist/avatar.js +4 -3
  11. package/dist/badge.d.ts +1 -1
  12. package/dist/badge.js +4 -3
  13. package/dist/bar-chart.d.ts +2 -2
  14. package/dist/bar-chart.js +5 -4
  15. package/dist/breadcrumb.d.ts +1 -1
  16. package/dist/breadcrumb.js +4 -3
  17. package/dist/button.d.ts +1 -1
  18. package/dist/button.js +5 -4
  19. package/dist/calendar.d.ts +1 -1
  20. package/dist/calendar.js +7 -6
  21. package/dist/callout.js +6 -5
  22. package/dist/card.js +1 -0
  23. package/dist/carousel.d.ts +1 -1
  24. package/dist/carousel.js +4 -3
  25. package/dist/catalog.json +799 -3
  26. package/dist/checkbox.js +5 -4
  27. package/dist/{chunk-3JQKVC2K.js → chunk-2EUVBRKG.js} +3 -3
  28. package/dist/{chunk-B4OVIE2X.js → chunk-2RRPWOKT.js} +5 -5
  29. package/dist/{chunk-OXNIEIOY.js → chunk-3JFSKCVU.js} +14 -14
  30. package/dist/{chunk-R25NHHYT.js → chunk-3ZZZPT5G.js} +3 -3
  31. package/dist/{chunk-7ZA3QZRP.js → chunk-47EOHGXM.js} +3 -3
  32. package/dist/{chunk-PFAFTLN3.js → chunk-4KRCT3Q2.js} +4 -4
  33. package/dist/{chunk-QTWRR7IS.js → chunk-4P3JA653.js} +7 -7
  34. package/dist/{chunk-ZAWGG4H2.js → chunk-5Z26DU23.js} +6 -6
  35. package/dist/{chunk-BJHLW25G.js → chunk-6CJYVYVN.js} +14 -12
  36. package/dist/{chunk-XWXXKEG6.js → chunk-6Q4VVBFO.js} +3 -3
  37. package/dist/chunk-7JOW3LEH.js +4852 -0
  38. package/dist/{chunk-QSOLK2I2.js → chunk-7RD5RTHU.js} +6 -6
  39. package/dist/{chunk-A4YPUS6C.js → chunk-A36W77MQ.js} +3 -3
  40. package/dist/{chunk-U5X3MLM5.js → chunk-AZFHRLYF.js} +4 -4
  41. package/dist/{chunk-BXQFBFT7.js → chunk-B6LYO33Y.js} +4 -4
  42. package/dist/{chunk-SGMVB7HD.js → chunk-CH2XMCWX.js} +3 -3
  43. package/dist/{chunk-CUONE6LA.js → chunk-D46OKHTH.js} +4 -4
  44. package/dist/{chunk-5SGF47TZ.js → chunk-D4YGYNNY.js} +6 -6
  45. package/dist/{chunk-YGJL7QS7.js → chunk-D7WD4SUC.js} +5 -5
  46. package/dist/{chunk-UJ4WEQHR.js → chunk-EBZNUQ6E.js} +5 -5
  47. package/dist/{chunk-MS6DY4CE.js → chunk-ED5UCYAV.js} +3 -3
  48. package/dist/{chunk-Z6NSOC6T.js → chunk-EDVYLO2N.js} +3 -3
  49. package/dist/{chunk-5XSR757T.js → chunk-EKQLIUV5.js} +4 -4
  50. package/dist/{chunk-BKBINQJZ.js → chunk-EKV3CVTY.js} +4 -4
  51. package/dist/{chunk-IESEBPYA.js → chunk-G7B2QUQP.js} +3 -3
  52. package/dist/{chunk-YKPTUANT.js → chunk-GHRZC5LS.js} +5 -5
  53. package/dist/{chunk-KNW3IUWX.js → chunk-GIC6T647.js} +5 -5
  54. package/dist/{chunk-EXRVOGJ5.js → chunk-GV2KTRRP.js} +6 -6
  55. package/dist/{chunk-Q2KR7PSX.js → chunk-GYL4KOPT.js} +3 -3
  56. package/dist/{chunk-VIKV25VP.js → chunk-HB6UA6EF.js} +4 -4
  57. package/dist/{chunk-YXYZW6WU.js → chunk-HTWGTTSF.js} +19 -6
  58. package/dist/{chunk-3P3QZPHV.js → chunk-IH2F5UNQ.js} +4 -4
  59. package/dist/{chunk-KCM4KEZ2.js → chunk-INYUL4DX.js} +3 -3
  60. package/dist/{chunk-737A4YNC.js → chunk-IUB5TSSH.js} +3 -3
  61. package/dist/{chunk-P2BGR77C.js → chunk-JGGSRKHW.js} +3 -3
  62. package/dist/{chunk-DYRGHXT5.js → chunk-JHHJNIW2.js} +3 -3
  63. package/dist/{chunk-YGFTNICV.js → chunk-KBI442IB.js} +7 -4
  64. package/dist/{chunk-XKTD3X6Z.js → chunk-KNKR5TUM.js} +8 -8
  65. package/dist/{chunk-5ECTNYKU.js → chunk-LKUAVDWP.js} +4 -4
  66. package/dist/{chunk-GDW6NFYN.js → chunk-LPWSP523.js} +3 -3
  67. package/dist/{chunk-44AWXIQK.js → chunk-LY7IJOUF.js} +4 -4
  68. package/dist/{chunk-26XQU3TC.js → chunk-LYWQD5KL.js} +7 -7
  69. package/dist/{chunk-EHML2DLR.js → chunk-N7DLNDER.js} +4 -4
  70. package/dist/{chunk-ESDSTS5N.js → chunk-NDRQETOQ.js} +14 -10
  71. package/dist/{chunk-5GBA6X6A.js → chunk-O7CPRU67.js} +3 -3
  72. package/dist/{chunk-QZHAL4BL.js → chunk-OEYKTHG7.js} +3 -3
  73. package/dist/{chunk-LLUWBQK6.js → chunk-OG3H3RP2.js} +4 -4
  74. package/dist/{chunk-O24HHIQG.js → chunk-PFKPKE6O.js} +5 -5
  75. package/dist/{chunk-GOCO45FF.js → chunk-PRWPFBA5.js} +4 -4
  76. package/dist/{chunk-TCTTZHUS.js → chunk-TDKKZA63.js} +6 -6
  77. package/dist/{chunk-XAQQ4LYL.js → chunk-TDXHBS2C.js} +6 -6
  78. package/dist/{chunk-JZ4HGFWK.js → chunk-THGGU64E.js} +3 -3
  79. package/dist/{chunk-S5LLA36K.js → chunk-URAURI6G.js} +7 -7
  80. package/dist/{chunk-CVCS5G3E.js → chunk-UU6KUS5O.js} +8 -8
  81. package/dist/{chunk-O5EHNNPS.js → chunk-V7KEEDSF.js} +5 -4
  82. package/dist/chunk-VHAA22YE.js +11 -0
  83. package/dist/{chunk-XCFFM2C7.js → chunk-WM6DGNIA.js} +5 -5
  84. package/dist/{chunk-ZF362B2X.js → chunk-WUXMLJEC.js} +4 -4
  85. package/dist/{chunk-YQAYAJ2T.js → chunk-XNXBO44X.js} +4 -4
  86. package/dist/{chunk-SKPKL47Y.js → chunk-XPY3XT7L.js} +13 -13
  87. package/dist/{chunk-7UCKFULR.js → chunk-XVFRDKZJ.js} +4 -4
  88. package/dist/{chunk-L7Z6XGBU.js → chunk-YDD46AX2.js} +4 -4
  89. package/dist/{chunk-MDKVYC6R.js → chunk-YHQJGNXD.js} +6 -6
  90. package/dist/{chunk-CQGMOPLG.js → chunk-YKRE5NIH.js} +5 -5
  91. package/dist/{chunk-ZJIY642R.js → chunk-ZIEGUI25.js} +2 -2
  92. package/dist/{chunk-OIPFTJS6.js → chunk-ZLDWYTDA.js} +3 -3
  93. package/dist/color-input.d.ts +2 -2
  94. package/dist/color-input.js +12 -11
  95. package/dist/color-picker.d.ts +3 -3
  96. package/dist/color-picker.js +10 -9
  97. package/dist/combobox.d.ts +1 -1
  98. package/dist/combobox.js +7 -6
  99. package/dist/data-map.d.ts +1673 -0
  100. package/dist/data-map.js +36 -0
  101. package/dist/date-calendar.d.ts +3 -3
  102. package/dist/date-calendar.js +5 -4
  103. package/dist/date-input.d.ts +1 -1
  104. package/dist/date-input.js +6 -5
  105. package/dist/date-picker.d.ts +3 -3
  106. package/dist/date-picker.js +12 -11
  107. package/dist/{date-types-DrDdF6WJ.d.ts → date-types-CLZek3W2.d.ts} +1 -1
  108. package/dist/dialog.js +7 -6
  109. package/dist/drawer.js +6 -5
  110. package/dist/dropdown-menu.js +3 -2
  111. package/dist/dropzone.d.ts +3 -3
  112. package/dist/dropzone.js +8 -7
  113. package/dist/file-trigger.js +1 -0
  114. package/dist/form.d.ts +6 -6
  115. package/dist/form.js +25 -24
  116. package/dist/header-navigation.d.ts +1 -1
  117. package/dist/header-navigation.js +9 -8
  118. package/dist/helper.js +1 -0
  119. package/dist/illustration.js +1 -0
  120. package/dist/index.d.ts +9 -8
  121. package/dist/index.js +66 -64
  122. package/dist/indicator.js +1 -0
  123. package/dist/inline-banner.js +6 -5
  124. package/dist/input.d.ts +1 -1
  125. package/dist/input.js +6 -5
  126. package/dist/kanban-board.d.ts +1 -1
  127. package/dist/kanban-board.js +5 -4
  128. package/dist/{labels-C992bt7G.d.ts → labels-CuSlirP_.d.ts} +222 -1
  129. package/dist/line-chart.d.ts +2 -2
  130. package/dist/line-chart.js +5 -4
  131. package/dist/number-input.d.ts +1 -1
  132. package/dist/number-input.js +6 -5
  133. package/dist/pagination.d.ts +1 -1
  134. package/dist/pagination.js +8 -7
  135. package/dist/payment-input.d.ts +3 -3
  136. package/dist/payment-input.js +6 -5
  137. package/dist/pie-chart.d.ts +2 -2
  138. package/dist/pie-chart.js +5 -4
  139. package/dist/popover.js +6 -5
  140. package/dist/progress-steps.js +3 -2
  141. package/dist/progress.js +1 -0
  142. package/dist/provider.d.ts +1 -1
  143. package/dist/provider.js +3 -2
  144. package/dist/qr-code.d.ts +1 -1
  145. package/dist/qr-code.js +6 -5
  146. package/dist/radar-chart.d.ts +2 -2
  147. package/dist/radar-chart.js +5 -4
  148. package/dist/radial-chart.d.ts +2 -2
  149. package/dist/radial-chart.js +5 -4
  150. package/dist/radio.js +5 -4
  151. package/dist/rich-text-editor.d.ts +1 -1
  152. package/dist/rich-text-editor.js +19 -18
  153. package/dist/scroll-area.js +1 -0
  154. package/dist/select.d.ts +2 -2
  155. package/dist/select.js +9 -8
  156. package/dist/separator.js +1 -0
  157. package/dist/sidebar-navigation.d.ts +1 -1
  158. package/dist/sidebar-navigation.js +5 -4
  159. package/dist/skeleton.js +1 -0
  160. package/dist/slider.d.ts +1 -1
  161. package/dist/slider.js +5 -4
  162. package/dist/styles.css +1 -1
  163. package/dist/switch.js +1 -0
  164. package/dist/table.d.ts +1 -1
  165. package/dist/table.js +20 -19
  166. package/dist/tabs.js +1 -0
  167. package/dist/tag-input.d.ts +3 -3
  168. package/dist/tag-input.js +8 -7
  169. package/dist/tag.d.ts +1 -1
  170. package/dist/tag.js +4 -3
  171. package/dist/textarea.js +5 -4
  172. package/dist/theme.js +6 -5
  173. package/dist/toast.d.ts +1 -1
  174. package/dist/toast.js +6 -5
  175. package/dist/tooltip.js +1 -0
  176. package/dist/tree.d.ts +1 -1
  177. package/dist/tree.js +4 -3
  178. package/dist/{types-DYFl0CEB.d.ts → types-BoZ6XeLB.d.ts} +1 -1
  179. package/dist/{use-uploads-2E7n0PWT.d.ts → use-uploads-cHo2p7Gn.d.ts} +1 -1
  180. package/dist/verification-code-input.js +6 -5
  181. package/package.json +14 -1
package/dist/catalog.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "package.json#exports",
6
6
  "docs/components/*.md"
7
7
  ],
8
- "componentCount": 63,
8
+ "componentCount": 64,
9
9
  "components": [
10
10
  {
11
11
  "slug": "button",
@@ -1459,7 +1459,7 @@
1459
1459
  "prop": "onValueChange",
1460
1460
  "type": "(value: string | null) => void",
1461
1461
  "default": "—",
1462
- "description": "Fires with the ISO string (or null while incomplete). Always Gregorian."
1462
+ "description": "Fires with the ISO string (or null while incomplete — a year with fewer than 4 digits typed counts as incomplete). Always Gregorian."
1463
1463
  },
1464
1464
  {
1465
1465
  "prop": "min / max",
@@ -8946,7 +8946,7 @@
8946
8946
  }
8947
8947
  ],
8948
8948
  "usage": "import { Carousel } from \"jenosize-ui\";\n\n// A hero banner: fading, autoplaying, overlaid controls.\n<Carousel\n aria-label=\"Featured stories\"\n items={[\n { value: \"launch\", content: <StoryCard story={launch} /> },\n { value: \"hiring\", content: <StoryCard story={hiring} /> },\n { value: \"report\", content: <StoryCard story={report} /> },\n ]}\n effect=\"fade\"\n aspect=\"wide\"\n arrows=\"overlay\"\n indicator=\"dot\"\n indicatorPlacement=\"overlay\"\n autoplay={{ delay: 6000 }}\n loop\n/>;\n\n// A card rail: three at a time, a sliver of the next, controls beside it.\n<Carousel\n aria-label=\"Related products\"\n items={products.map((p) => ({ value: p.id, content: <ProductCard product={p} /> }))}\n slides={{ perView: 3, step: 1, peek: true, gap: \"md\" }}\n arrows=\"outside\"\n indicator=\"line\"\n size=\"sm\"\n/>;\n\n// A product gallery: a synced thumbnail strip, controlled.\n<Carousel\n aria-label=\"Product photos\"\n items={photos.map((p) => ({\n value: p.id,\n content: <img src={p.full} alt={p.alt} />,\n thumb: <img src={p.thumb} alt=\"\" />,\n }))}\n value={photo}\n onValueChange={setPhoto}\n aspect=\"square\"\n thumbnails={{ perView: 6 }}\n/>;\n\n// Lazy slides: a function content is evaluated only once its slide enters view.\n<Carousel aria-label=\"Dashboards\" items={boards.map((b) => ({ value: b.id, content: () => <ExpensiveChart board={b} /> }))} />;",
8949
- "variants": "- **`arrows`** — **`overlay`** (absolutely positioned over the media, the hero case) · `outside`\n (flanking the viewport, so nothing covers content — the rail case) · `below` (beside the indicator)\n · `none`. **There are two arrow boxes and the placement picks one.** `overlay` is the only one over\n the caller's media, and it wears the on-media chip — `bg-on-color` fill, `backdrop-blur-xs`,\n `text-fg-secondary` glyph, no ring and no shadow. `outside` and `below` sit on the page, where a\n 90%-opaque on-media surface would be an invisible smudge, so they keep the house utility-button\n box: `bg-primary` fill, a `ring-1 ring-inset ring-primary` **ring** (never a border — a border\n grows the box 2px), `shadow-skeuomorphic`, and the same `text-fg-secondary` glyph. Disabled at the\n ends unless `loop`.\n **Every floating control is positioned against the MEDIA, never against the root** — the root also\n holds the thumbnail strip and the footer row, so measuring against it centred the overlay arrows on\n media-plus-footer (~15px low horizontally) and, on a vertical axis, pushed `next` clean out of the\n media and onto the dot strip. `outside`'s gutter therefore lives on its own box **around** the\n media (`px-10`/`12`/`14`, or `py-*` when the axis is vertical), so the arrows land in the gutter by\n `inset-0` alone and the footer row comes after it rather than underneath it.\n- **`indicator`** — **`dot`** (a row of circles) · `line` (a row of bars, **all equal width** — the\n active one changes colour, it does not grow) · `none`. Rest `bg-quaternary`, active\n `bg-fg-brand-primary_alt`.\n- **`indicatorPlacement`** — **`outside`** · `overlay`, which additionally draws the framed pill\n (`bg-on-color backdrop-blur rounded-full`) so the strip reads on an unknown photo. Under\n `indicator=\"line\"` the framed strip is **bounded** (`w-36`/`w-40`/`w-44`) rather than full width:\n a full-bleed pill made `overlay` and `below` render as the same horizontal band.\n **THE STRIP MIRRORS THE AXIS IT REPORTS ON, at both placements.** A dot row read left to right\n under a track that travels top to bottom describes the wrong journey, and `line` is worse than\n wrong there: a bar NAMES the axis it divides, so horizontal bars under a vertical carousel divide a\n width nothing scrolls along. So on a vertical axis the strip is a **column** — `outside` puts it\n beside the media (and `arrows=\"below\"` stacks with it, up · dots · down, which is the same row read\n on the other axis; `line` then takes `h-full` where horizontal takes `w-full`), `overlay` rails it\n down the media's right edge, vertically centred, with `line` bounded on the height\n (`h-36`/`h-40`/`h-44`) rather than the width.\n\n The rail is not a taste call: bottom-centre is where a vertical carousel parks its `next` arrow, so\n the pill and the chevron painted on top of each other, and no inset fixes it because both controls\n legitimately want the end of the axis they travel along. The strip is the one that can move — an\n indicator is a position READOUT, so it reads correctly beside the travel, where an arrow that says\n \"down\" has to sit at the bottom. **`outside` was spelled `below` until 2026-08-20**: once the strip\n follows the axis, a member called `below` renders to the right on half the carousels there are, and\n `outside` is the word `arrows` already uses for \"off the media\", so one component now has one\n vocabulary for the two strips it draws.\n\n- **`size`** — `sm` (6px dot / 4px bar) · **`md`** (8px / 6px) · `lg` (10px / 8px). The ladder also\n drives the arrow buttons and the strip gap. `md` and `lg` are Untitled UI's two steps renamed so\n that the default is always called `md`; `sm` is ours, minted for a carousel inside a `<Card>`, where\n the 8px dot reads oversized.\n- **`aspect`** — **`auto`** (the viewport tracks the active slide's height) · `square` · `video`\n (16/9) · `banner` (8/5, the frame Untitled UI's own carousel demos use) · `wide` (21/9) ·\n `portrait` (3/4).\n- **`effect`** — **`none`** · `fade` · `scale`\n (off-page slides shrink slightly, a depth cue for a centred rail). **The unit is the PAGE, not the\n slide:** every slide the current snap shows sits at full size and everything off it is shrunk 8%,\n so at `slides.perView: 2` both visible cards are full size. Measuring it per slide instead is a\n category error above `perView: 1` — a snap index is not a slide index (see `engine.ts` § the snap ↔\n item map), and the earlier version shrank the card ON SCREEN beside the active one while leaving the\n off-screen one full size. Shown, not owned, is the second half of it: `containScroll: \"trimSnaps\"`\n makes the last page overlap its predecessor, so its slides belong to two pages and scaling by\n ownership would render one full-size card between two shrunk ones. And it is the whole ARC a slide\n is on screen for, not the nearest page that shows it: a card visible on both sides of a turn holds\n full size for every frame of it, where measuring to the nearest page dips it to 0.95 at the midpoint\n and back — a shrink-and-recover on a card that never left the window.\n- **`fade` carries a rail, and what it fades is a PAGE — every column of it.** A page is what it\n SHOWS, which is not what the snap OWNS: seven slides at `perView: 3` give the registry `[6]` for\n page 3 while the window is `[4,5,6]`, and `embla-carousel-fade` paints from the registry — so that\n page lit ONE card and left two thirds of the viewport bare, with the `arrows=\"overlay\"` chip (a\n surface built for media) stranded on the page background beside it. Trimming or not trimming the\n snap only chose which edge the hole sat on. **The component lays the page out itself instead**\n (`Carousel.tsx` § effect: \"fade\"), from the same `visibleIndexes` window that drives `inert` and the\n scale ramp — one shared translate per page, so the browser's own pitch is preserved exactly and a\n variable-width rail lands right for the same reason a uniform one does.\n- **A turn cross-fades two LAYERS, and every element on screen rides one ramp.** Filling a ragged page\n means page 3 shows `[4,5,6]` where page 2 showed `[3,4,5]` — an overlap, and a shared card is the SAME\n DOM node, so it cannot be in two columns at once. The page being left is painted at `1 - r`, the page\n arriving at `r`, and a carried card's arriving half is a **stand-in** — a `cloneNode(true)` in an\n `inert` overlay (`data-carousel=\"fade-layer\"`) sitting at the column it arrives at, while the real\n node fades out where it stands. The real node changes column in the single frame `r` reaches 1, where\n the stand-in it replaces is pixel-identical to it, and the stand-in is removed in that same frame. The\n stand-in is the ARRIVING half deliberately: it is created at `opacity: 0`, so it can never pop, and\n **at rest there are none and no overlay in the DOM at all** — a pixel baseline and a consumer's\n snapshot see the markup that shipped before stand-ins existed. A clone carries attributes, not live\n state, so ids are stripped from the subtree (a duplicated id would point a real `aria-labelledby` at a\n ghost) and any `<canvas>` bitmap is copied across. The ramp is INTERPOLATED off the plugin's own\n progress rather than a CSS transition, so a drag drives it as truthfully as a press.\n- **The two layers composite ADDITIVELY, and that is what makes the window's ink constant.** Every\n participant carries `mix-blend-mode: plus-lighter` inside an `isolation: isolate` viewport, because\n two stacked elements at complementary opacity are NOT a cross-fade: source-over gives\n `αo = r + (1 − r)²`, which is **0.75 at the midpoint** — the page background comes through 25% and the\n whole window washes out and back. `plus-lighter` is CSS's spelling of the Porter-Duff PLUS operator,\n so it adds premultiplied colour AND alpha (`αo = min(1, r + (1 − r)) = 1`) and the composite is\n `r·B + (1 − r)·A` exactly, every pixel and every frame. `isolate` is not optional beside it — with no\n group to add into, the cards would add to the page and the viewport would bloom. A browser too old for\n the value ignores the declaration and gets the 25% dip, which is what every other cross-fade on the\n web already does. Measured per frame on the sink at `perView: 3`, the window's ink is **3.00 on every\n frame of every turn**, disjoint or overlapping.\n- **Two shapes came before it, and the second is why the ink is now measured.** The shared cards first\n **GLIDED at `opacity: 1`** — defensible (a card that never leaves the screen has nothing to fade to)\n and lost to what the turn looks like: one card dissolved, one appeared, and two slid sideways,\n reported 2026-08-20 as \"2 move and only 1 fade\". They then did **both halves of the turn**\n (`|1 − 2r|`), which reads as a blink, and the per-frame trace says why: at frame 12 of the\n `[3,4,5]` → `[4,5,6]` turn the leaving card was at 0.51 and the arriving one at 0.49 — a correct\n cross-fade — while the two carried cards had already finished a whole out-and-in at **0.01**, so the\n window's ink fell from 3.00 to **1.02** and refilled (\"sometimes flashing\", and \"the fade of each item\n is not fired at the same time\" — both literally true). Two more defects in that one expression:\n `|1 − 2r|` doubles the rate of a ramp that is itself ease-out, so the halves were **12 frames out\n against 38 back**; and the column switch it existed to hide fired at **9% opacity, not 0** — the ramp\n moves ~0.09 per frame there — i.e. a faint card sliding 227px sideways. Two things only a browser can\n see went with the glide: its 48 distinct transforms across one turn, and a FLICKER — the plugin writes\n `1 - r` onto every slide the leaving page's registry claims, i.e. onto those same shared cards, so they\n were sampling 0.13 while our rule claimed to hold them at 1. All of it is gated in\n `tests/visual/carousel-gestures.spec.ts`; jsdom has no rAF contest and could not have caught any of it.\n- **Two settings are pinned under `fade`, with a dev warning naming them.** **`slides.step` takes\n `slides.perView`**: at `step: 1` the registry is `[[0],[1],[2,3,4]]`, so a page is not a page and\n page 1 held one card. **`slides.peek` is ignored**: its sliver promises a card that slides in, and\n here the neighbour is at `opacity: 0`, so it would narrow every slide to advertise nothing.\n- **`loop` is the one fading rail still painted by the plugin alone**, so it is the one that can still\n show a partial page: a wrapped window (`[6,0,1]`) needs the loop shift the plugin has already\n cleared out of its slide looper, which is a third layout rather than a branch. A dev warning fires\n for exactly that shape — `loop` + `perView > 1` + a count that does not divide.\n- **`drag`** — **`snap`** (drag, then settle on a slide) · `free` (momentum, no snap) · `none`.\n- **`align`** — **`start`** · `center` · `end`. No visible effect at one slide per view.\n- **`orientation`** — **`horizontal`** · `vertical`.",
8949
+ "variants": "- **`arrows`** — **`overlay`** (absolutely positioned over the media, the hero case) · `outside`\n (flanking the viewport, so nothing covers content — the rail case) · `below` (beside the indicator)\n · `none`. **There are two arrow boxes and the placement picks one.** `overlay` is the only one over\n the caller's media, and it wears the on-media chip — `bg-on-color` fill, `backdrop-blur-xs`,\n `text-fg-secondary` glyph, no ring and no shadow. `outside` and `below` sit on the page, where a\n 90%-opaque on-media surface would be an invisible smudge, so they keep the house utility-button\n box: `bg-primary` fill, a `ring-1 ring-inset ring-primary` **ring** (never a border — a border\n grows the box 2px), `shadow-skeuomorphic`, and the same `text-fg-secondary` glyph. Disabled at the\n ends unless `loop`.\n **Every floating control is positioned against the MEDIA, never against the root** — the root also\n holds the thumbnail strip and the footer row, so measuring against it centred the overlay arrows on\n media-plus-footer (~15px low horizontally) and, on a vertical axis, pushed `next` clean out of the\n media and onto the dot strip. `outside`'s gutter therefore lives on its own box **around** the\n media (`px-10`/`12`/`14`, or `py-*` when the axis is vertical), so the arrows land in the gutter by\n `inset-0` alone and the footer row comes after it rather than underneath it.\n- **`indicator`** — **`dot`** (a row of circles) · `line` (a row of bars, **all equal width** — the\n active one changes colour, it does not grow) · `none`. Rest `bg-quaternary`, active\n `bg-fg-brand-primary_alt`.\n- **`indicatorPlacement`** — **`outside`** · `overlay`, which additionally draws the framed pill\n (`bg-on-color backdrop-blur rounded-full`) so the strip reads on an unknown photo. Under\n `indicator=\"line\"` the framed strip is **bounded** (`w-36`/`w-40`/`w-44`) rather than full width:\n a full-bleed pill made `overlay` and `below` render as the same horizontal band.\n **THE STRIP MIRRORS THE AXIS IT REPORTS ON, at both placements.** A dot row read left to right\n under a track that travels top to bottom describes the wrong journey, and `line` is worse than\n wrong there: a bar NAMES the axis it divides, so horizontal bars under a vertical carousel divide a\n width nothing scrolls along. So on a vertical axis the strip is a **column** — `outside` puts it\n beside the media (and `arrows=\"below\"` stacks with it, up · dots · down, which is the same row read\n on the other axis; `line` then takes `h-full` where horizontal takes `w-full`), `overlay` rails it\n down the media's right edge, vertically centred, with `line` bounded on the height\n (`h-36`/`h-40`/`h-44`) rather than the width.\n\n The rail is not a taste call: bottom-centre is where a vertical carousel parks its `next` arrow, so\n the pill and the chevron painted on top of each other, and no inset fixes it because both controls\n legitimately want the end of the axis they travel along. The strip is the one that can move — an\n indicator is a position READOUT, so it reads correctly beside the travel, where an arrow that says\n \"down\" has to sit at the bottom. **`outside` was spelled `below` until 2026-08-20**: once the strip\n follows the axis, a member called `below` renders to the right on half the carousels there are, and\n `outside` is the word `arrows` already uses for \"off the media\", so one component now has one\n vocabulary for the two strips it draws.\n\n- **`size`** — `sm` (6px dot / 4px bar) · **`md`** (8px / 6px) · `lg` (10px / 8px). The ladder also\n drives the arrow buttons and the strip gap. `md` and `lg` are Untitled UI's two steps renamed so\n that the default is always called `md`; `sm` is ours, minted for a carousel inside a `<Card>`, where\n the 8px dot reads oversized.\n- **`aspect`** — **`auto`** (the viewport tracks the active slide's height) · `square` · `video`\n (16/9) · `banner` (8/5, the frame Untitled UI's own carousel demos use) · `wide` (21/9) ·\n `portrait` (3/4).\n- **`effect`** — **`none`** · `fade` · `scale`\n (off-page slides shrink slightly, a depth cue for a centred rail). **The unit is the PAGE, not the\n slide:** every slide the current snap shows sits at full size and everything off it is shrunk 8%,\n so at `slides.perView: 2` both visible cards are full size. Measuring it per slide instead is a\n category error above `perView: 1` — a snap index is not a slide index (see `engine.ts` § the snap ↔\n item map), and the earlier version shrank the card ON SCREEN beside the active one while leaving the\n off-screen one full size. Shown, not owned, is the second half of it: `containScroll: \"trimSnaps\"`\n makes the last page overlap its predecessor, so its slides belong to two pages and scaling by\n ownership would render one full-size card between two shrunk ones. And it is the whole ARC a slide\n is on screen for, not the nearest page that shows it: a card visible on both sides of a turn holds\n full size for every frame of it, where measuring to the nearest page dips it to 0.95 at the midpoint\n and back — a shrink-and-recover on a card that never left the window.\n- **`fade` carries a rail, and what it fades is a PAGE — every column of it.** A page is what it\n SHOWS, which is not what the snap OWNS: seven slides at `perView: 3` give the registry `[6]` for\n page 3 while the window is `[4,5,6]`, and `embla-carousel-fade` paints from the registry — so that\n page lit ONE card and left two thirds of the viewport bare, with the `arrows=\"overlay\"` chip (a\n surface built for media) stranded on the page background beside it. Trimming or not trimming the\n snap only chose which edge the hole sat on. **The component lays the page out itself instead**\n (`Carousel.tsx` § effect: \"fade\"), from the same `visibleIndexes` window that drives `inert` and the\n scale ramp — one shared translate per page, so the browser's own pitch is preserved exactly and a\n variable-width rail lands right for the same reason a uniform one does.\n- **A turn cross-fades two LAYERS, and every element on screen rides one ramp.** Filling a ragged page\n means page 3 shows `[4,5,6]` where page 2 showed `[3,4,5]` — an overlap, and a shared card is the SAME\n DOM node, so it cannot be in two columns at once. The page being left is painted at `1 - r`, the page\n arriving at `r`, and a carried card's arriving half is a **stand-in** — a `cloneNode(true)` in an\n `inert` overlay (`data-carousel=\"fade-layer\"`) sitting at the column it arrives at, while the real\n node fades out where it stands. The real node changes column in the single frame `r` reaches 1, where\n the stand-in it replaces is pixel-identical to it, and the stand-in is removed in that same frame. The\n stand-in is the ARRIVING half deliberately: it is created at `opacity: 0`, so it can never pop, and\n **at rest there are none and no overlay in the DOM at all** — a pixel baseline and a consumer's\n snapshot see the markup that shipped before stand-ins existed. A clone carries attributes, not live\n state, so ids are stripped from the subtree (a duplicated id would point a real `aria-labelledby` at a\n ghost) and any `<canvas>` bitmap is copied across. The ramp is INTERPOLATED off the plugin's own\n progress rather than a CSS transition, so a drag drives it as truthfully as a press. **A column is\n measured in the flex CONTAINER's space and the overlay hangs off the viewport**, which are two boxes\n a half-gutter apart (`GAP_X`/`GAP_Y` inset the container by the gutter each slide's own padding pays\n back), so the delta is measured once and rides the overlay. Without it every stand-in painted 4px\n right of its column at the default gap — not a wrong size, and read as one: a column carrying its\n leaving card and the arriving stand-in 4px apart under `plus-lighter` has EDGES that walk through\n the dissolve and snap back. Gated per frame in `tests/visual/carousel-gestures.spec.ts`.\n- **The two layers composite ADDITIVELY, and that is what makes the window's ink constant.** Every\n participant carries `mix-blend-mode: plus-lighter` inside an `isolation: isolate` viewport, because\n two stacked elements at complementary opacity are NOT a cross-fade: source-over gives\n `αo = r + (1 − r)²`, which is **0.75 at the midpoint** — the page background comes through 25% and the\n whole window washes out and back. `plus-lighter` is CSS's spelling of the Porter-Duff PLUS operator,\n so it adds premultiplied colour AND alpha (`αo = min(1, r + (1 − r)) = 1`) and the composite is\n `r·B + (1 − r)·A` exactly, every pixel and every frame. `isolate` is not optional beside it — with no\n group to add into, the cards would add to the page and the viewport would bloom. A browser too old for\n the value ignores the declaration and gets the 25% dip, which is what every other cross-fade on the\n web already does. Measured per frame on the sink at `perView: 3`, the window's ink is **3.00 on every\n frame of every turn**, disjoint or overlapping.\n- **Two shapes came before it, and the second is why the ink is now measured.** The shared cards first\n **GLIDED at `opacity: 1`** — defensible (a card that never leaves the screen has nothing to fade to)\n and lost to what the turn looks like: one card dissolved, one appeared, and two slid sideways,\n reported 2026-08-20 as \"2 move and only 1 fade\". They then did **both halves of the turn**\n (`|1 − 2r|`), which reads as a blink, and the per-frame trace says why: at frame 12 of the\n `[3,4,5]` → `[4,5,6]` turn the leaving card was at 0.51 and the arriving one at 0.49 — a correct\n cross-fade — while the two carried cards had already finished a whole out-and-in at **0.01**, so the\n window's ink fell from 3.00 to **1.02** and refilled (\"sometimes flashing\", and \"the fade of each item\n is not fired at the same time\" — both literally true). Two more defects in that one expression:\n `|1 − 2r|` doubles the rate of a ramp that is itself ease-out, so the halves were **12 frames out\n against 38 back**; and the column switch it existed to hide fired at **9% opacity, not 0** — the ramp\n moves ~0.09 per frame there — i.e. a faint card sliding 227px sideways. Two things only a browser can\n see went with the glide: its 48 distinct transforms across one turn, and a FLICKER — the plugin writes\n `1 - r` onto every slide the leaving page's registry claims, i.e. onto those same shared cards, so they\n were sampling 0.13 while our rule claimed to hold them at 1. All of it is gated in\n `tests/visual/carousel-gestures.spec.ts`; jsdom has no rAF contest and could not have caught any of it.\n- **Two settings are pinned under `fade`, with a dev warning naming them.** **`slides.step` takes\n `slides.perView`**: at `step: 1` the registry is `[[0],[1],[2,3,4]]`, so a page is not a page and\n page 1 held one card. **`slides.peek` is ignored**: its sliver promises a card that slides in, and\n here the neighbour is at `opacity: 0`, so it would narrow every slide to advertise nothing.\n- **`loop` is the one fading rail still painted by the plugin alone**, so it is the one that can still\n show a partial page: a wrapped window (`[6,0,1]`) needs the loop shift the plugin has already\n cleared out of its slide looper, which is a third layout rather than a branch. A dev warning fires\n for exactly that shape — `loop` + `perView > 1` + a count that does not divide.\n- **`drag`** — **`snap`** (drag, then settle on a slide) · `free` (momentum, no snap) · `none`.\n- **`align`** — **`start`** · `center` · `end`. No visible effect at one slide per view.\n- **`orientation`** — **`horizontal`** · `vertical`.",
8950
8950
  "states": "Every one of these is owed in **light and `.dark`**.\n\n| Part | State | Visual |\n| ----------------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Arrow (`overlay`) | rest / focus-visible / disabled | `bg-on-color` + `backdrop-blur-xs`, `text-fg-secondary` glyph; no hover fill (the reference styles none); `outline-focus-ring` at 2px offset 2; disabled is `opacity-50`, never hidden |\n| Arrow (page) | rest / hover / focus-visible / disabled | `bg-primary` → `bg-secondary` wash; `outline-focus-ring` at 2px offset 2; disabled drops to `text-fg-disabled` and is `disabled`, never hidden — a control that vanishes at the end moves the layout |\n| Indicator button | rest | `bg-quaternary` |\n| Indicator button | hover | `bg-fg-quaternary_hover` — a constant across themes, so it steps darker in light and lighter in dark |\n| Indicator button | active | `bg-fg-brand-primary_alt` — brand in light, neutral-300 in dark. Every bar is `flex-1`; none grows |\n| Indicator button | focus-visible | `outline-focus-ring`, 2px, offset 2. The active one is **never disabled** — disabling it would pull it out of the tab order |\n| Slide | in view | interactive |\n| Slide | out of view | `inert` — not `aria-hidden`, which would break announcement of a partly visible slide and would do nothing about focus |\n| Pause button | playing ⇄ paused | the **label** flips Pause ⇄ Play. No `aria-pressed`: a toggle that changes both announces twice |\n| Whole control | 1 slide | arrows and indicator suppressed — there is nowhere to go |\n| Whole control | 0 slides | renders nothing |\n| Whole control | reduced motion | autoplay never starts, the button reads Play, and the scroll duration is 0 — a jump cut, not a slow crawl |",
8951
8951
  "accessibility": "**Region, not a tablist.** The root is\n`<section aria-roledescription=\"carousel\" aria-label=…>`, per APG. A name is required and its absence\nis a dev warning.\n\n**It is deliberately not a tablist.** Slides carry `aria-roledescription=\"slide\"` and are not\ntabpanels; `tablist` would imply roving focus with automatic activation, a different interaction\nmodel; and a screen reader announcing \"tab 3 of 7\" for a dot strip is simply false. So the indicator\nis a `role=\"group\"` of ordinary buttons, each named \"Go to slide 3 of 7\" and carrying `aria-current`\nwhen active.\n\n**Two labels, because there are two countable things.** A pip is named `goToSlide` — \"Go to slide 3 of\n7\" — while one press moves one slide. Once it moves several (`slides.perView > 1` or `step > 1`) the\npips count pages, so they take **`goToPage`** (\"Go to page 2 of 3\") instead: a pip that advances three\nslides is not \"slide 2 of 7\" to anybody. `goToSlide` keeps the **thumbnail** strip permanently, which\nstays one thumb per slide — a picture of slide 3 is not a picture of page 2 — and keeps the pips of\nevery carousel where the two counts agree, so a default `perView: 1` carousel says exactly what it\nalways said. The **live region** stays per slide too (\"4 of 4\"), because it reads a position in the\ncontent, not a control.\n\n**Out-of-view slides are `inert`, not `aria-hidden`.** `aria-hidden` breaks announcement of a\npartially visible slide and does nothing about focus. `inert` is what stops `Tab` escaping into an\noff-screen slide's link — the classic carousel bug.\n\n**The live region** is a visually-hidden sibling of the viewport reading \"3 of 7\". Its politeness is\nconditional: `polite` when autoplay is off or paused, and **`off` while autoplaying**, because an\nauto-rotating carousel must not announce on every tick. It also announces the pause and resume.\n\n**Keyboard.** `←`/`→` (or `↑`/`↓` when vertical) move one step; `Home`/`End` jump to the first and last\nslide. The keys are handled **only** when the event originates on the viewport or on one of the\ncarousel's own controls — never when it comes from inside slide content, so an `<input>`, a `<select>`\nor a `contenteditable` in a slide keeps its own arrow keys.\n\n**Focus order** is live region → prev, next, pause → slides → indicator, with `arrows=\"overlay\"`\npainting the first two over the media. Controls-before-content is APG's arrangement, and\nprev-then-next matches visual left-to-right, so 1.3.2 holds.\n\n**WCAG 2.2.2 (Pause, Stop, Hide).** Autoplay moves content for more than five seconds, so a mechanism\nis mandatory and it must be keyboard-operable and persistent — hover-pause alone does not discharge\nit. The carousel therefore renders a **visible** pause button by default, whose label flips Pause ⇄\nPlay. `pauseOnHover` and `pauseOnFocus` pause on top of it but are not the mechanism.\n`prefers-reduced-motion` stops autoplay starting at all. `autoplay.control: \"none\"` exists for the\ncaller who renders their own control, and warns, because the type cannot check that they did.",
8952
8952
  "fixedByDesign": "- **No compound parts, and no engine passthrough.** No `Carousel.Root`/`.Item`/`.PrevTrigger`, and no\n `opts` / `plugins` / `setApi`. Naming the engine in a public type is what turns its next major into a\n twenty-file change instead of a one-file change.\n- **No `useCarousel()` hook.** A carousel's whole state is one active slide, which the ordinary\n controlled triple already owns; the thumbnail strip derives from the same `items` and the same\n `value`, so there is no second channel to reconcile; and a hook cannot be called in a `.map()`,\n which a grid of product cards each carrying a carousel needs. **Revisit trigger, recorded so it is\n not re-derived:** if a second _top-level_ component ever needs the same engine instance — a\n `<CarouselThumbnails>` placed in a page header, a `<CarouselProgress>` in a sticky bar — that is when\n a hook becomes honest. Same trigger `StepPanel` records.\n- **No `index` prop.** Slides are keyed by `value`. See Anatomy.\n- **Not a tablist.** Written down so it is not \"fixed\" later by someone reading the dot strip as tabs.\n- **The indicator is not drawn from the rule vocabulary** (`src/lib/rule.ts`). A rule is an **edge** —\n a gradient `background-image` on three inheriting custom properties, which by its own documentation\n cannot follow a radius. An indicator bar is a **filled foreground mark**: a state-dependent fill, a\n `rounded-full` corner, and a `<button>`. Drawing it from `--rule-image` would be a category error.\n- **No dot/line variant on `<Pagination>`.** That component's spec already says so, and it stays true:\n what ships here is a carousel indicator, owned by the carousel.\n- **No right-to-left mode.** There is not one `rtl:` variant, one logical-property utility or one\n `dir=` anywhere in `src/`. Shipping one RTL component in a physically-laid-out library is a promise\n every sibling breaks the moment it sits beside one. RTL is a library-wide pass, not a carousel\n feature.\n- **No auto-scroll (a continuous marquee).** It has no snap, so there is no current slide to announce,\n no indicator state and no rest position. It fails 2.2.2 harder than autoplay, because it never rests.\n- **No wheel-gesture capture.** Hijacking the wheel over a page that also scrolls is scroll-jacking and\n breaks trackpad paging.\n- **No scrollbar and no progress bar.** The `line` indicator already reports position, discretely and\n more precisely; two position readouts on one carousel contradict each other. Scrollbars belong to\n `<ScrollArea>`.\n- **No parallax, and no per-state class hooks.** Parallax needs a second element inside each slide that\n only the caller can author — structural freedom this API does not grant. A \"class names\" mechanism is\n a per-internal `className` hook, which the house rules forbid outright; our own effects read the same\n information through a CSS custom property we own.\n- **No `breakpoints`, `duration` or `skipSnaps` props.** A media-query→options map is an arbitrary CSS\n grammar in a public type. Drive `slides.perView` from your own media query instead — the engine\n re-initialises when options change, so it is fully reactive. Motion timing is the house's. And a drag\n that skips snaps makes the announced position unpredictable.\n- **No iOS-style picker mode.** That is a form control — it produces a value — and belongs with Select\n and DateInput.\n- **No `viewportClassName` / `indicatorClassName`.** `className` is the one hook and it is layout only.\n- **Seamless: no.** A carousel is a layout region; it is never placed inside an `<Input>` add-on slot,\n so it has no host box to defer to.",
@@ -9253,6 +9253,802 @@
9253
9253
  ]
9254
9254
  }
9255
9255
  },
9256
+ {
9257
+ "slug": "data-map",
9258
+ "title": "Data map",
9259
+ "status": "ready",
9260
+ "import": "jenosize-ui/data-map",
9261
+ "playground": "/components/data-map",
9262
+ "specPath": "docs/components/data-map.md",
9263
+ "spec": {
9264
+ "summary": "Replaces `ChoroplethMap` and `PinMap`, which are removed. Their whole surface is now one",
9265
+ "import": null,
9266
+ "props": [
9267
+ {
9268
+ "for": null,
9269
+ "columns": [
9270
+ "Prop",
9271
+ "Type",
9272
+ "Default",
9273
+ "Notes"
9274
+ ],
9275
+ "rows": [
9276
+ {
9277
+ "prop": "view",
9278
+ "type": "UseMapViewResult",
9279
+ "default": "—",
9280
+ "notes": "**Required.** The one state channel. An optional instance would be a second owner"
9281
+ },
9282
+ {
9283
+ "prop": "source",
9284
+ "type": "MapTileSource",
9285
+ "default": "OpenFreeMap TileJSON",
9286
+ "notes": "The ground. See _Choosing a tile source_ — the default has no SLA"
9287
+ },
9288
+ {
9289
+ "prop": "legend",
9290
+ "type": "\"stacked\" | \"compact\" | \"none\" | { layout?, collapse? }",
9291
+ "default": "\"stacked\"",
9292
+ "notes": "**Two independent axes in one prop.** layout: \"stacked\" = a labelled row per class · \"compact\" = one ramp strip with its two ends labelled. collapse: \"none\" (no toggle) · \"open\" · \"closed\". A bare string is that layout with no collapse; {} is a type error (AtLeastOne)"
9293
+ },
9294
+ {
9295
+ "prop": "controls",
9296
+ "type": "readonly MapControl[]",
9297
+ "default": "[\"zoom\", \"reset\", \"fitData\", \"layers\"]",
9298
+ "notes": "\"zoom\" | \"reset\" | \"fitData\" | \"layers\" | \"fullscreen\" | \"scale\". Ours, for design consistency — see _Fixed by design_"
9299
+ },
9300
+ {
9301
+ "prop": "transport",
9302
+ "type": "\"bar\" | \"none\"",
9303
+ "default": "\"bar\"",
9304
+ "notes": "The time axis's own chrome — play/pause + a scrubber, drawn only when useMapView({ time }) is configured. \"none\" for a page that builds its own transport"
9305
+ },
9306
+ {
9307
+ "prop": "textAlternative",
9308
+ "type": "\"sr-only\" | \"visible\" | \"responsive\" | \"none\"",
9309
+ "default": "\"sr-only\"",
9310
+ "notes": "\"responsive\" is sr-only on a mouse and visible on a coarse pointer"
9311
+ },
9312
+ {
9313
+ "prop": "fallback",
9314
+ "type": "\"text\" | \"none\" | { image, alt }",
9315
+ "default": "\"text\"",
9316
+ "notes": "What renders with no WebGL. A static image is coherent only when YOU supply it"
9317
+ },
9318
+ {
9319
+ "prop": "gestures",
9320
+ "type": "\"cooperative\" | \"direct\"",
9321
+ "default": "\"cooperative\"",
9322
+ "notes": "\"cooperative\" — a wheel scrolls the PAGE unless ⌘/Ctrl is held; \"direct\" — the map takes every gesture. A union, not a boolean: false is a second real mode, not an off switch"
9323
+ },
9324
+ {
9325
+ "prop": "attribution",
9326
+ "type": "string",
9327
+ "default": "—",
9328
+ "notes": "YOUR credit line, for your data. The GROUND's is derived from source and is not this prop: a tilejson/tiles ground always prints OSM/ODbL, a geojson one prints nothing. This used to default to the OSM line, so a map drawing the caller's own GeoJSON credited OpenStreetMap for it"
9329
+ },
9330
+ {
9331
+ "prop": "labels",
9332
+ "type": "MapLabels",
9333
+ "default": "—",
9334
+ "notes": "Per-instance copy overrides; wins over <JenosizeUIProvider labels>"
9335
+ },
9336
+ {
9337
+ "prop": "onReady",
9338
+ "type": "(handle: MapHandle) => void",
9339
+ "default": "—",
9340
+ "notes": "The narrow house handle — camera, fit, hit test, redraw. Deliberately NOT the MapLibre instance"
9341
+ }
9342
+ ]
9343
+ },
9344
+ {
9345
+ "for": null,
9346
+ "columns": [
9347
+ "Prop",
9348
+ "Type",
9349
+ "Notes"
9350
+ ],
9351
+ "rows": [
9352
+ {
9353
+ "prop": "layers",
9354
+ "type": "readonly [MapLayer, ...MapLayer[]]",
9355
+ "notes": "The layer list, ordered back-to-front. A NON-EMPTY tuple: a map with zero layers is not a thing, and the type says so. Required unless a one-layer shorthand is given"
9356
+ },
9357
+ {
9358
+ "prop": "choropleth",
9359
+ "type": "MapChoroplethLayerSpec<Row>",
9360
+ "notes": "**One-layer shorthand** — the spec, un-built and un-wrapped. See below; one of the six replaces layers"
9361
+ },
9362
+ {
9363
+ "prop": "points",
9364
+ "type": "MapPointsLayerSpec<Row>",
9365
+ "notes": "One-layer shorthand"
9366
+ },
9367
+ {
9368
+ "prop": "heatmap",
9369
+ "type": "MapHeatmapLayerSpec<Row>",
9370
+ "notes": "One-layer shorthand"
9371
+ },
9372
+ {
9373
+ "prop": "lines",
9374
+ "type": "MapLinesLayerSpec<Row>",
9375
+ "notes": "One-layer shorthand"
9376
+ },
9377
+ {
9378
+ "prop": "areas",
9379
+ "type": "MapAreasLayerSpec",
9380
+ "notes": "One-layer shorthand"
9381
+ },
9382
+ {
9383
+ "prop": "raster",
9384
+ "type": "MapRasterLayerSpec",
9385
+ "notes": "One-layer shorthand"
9386
+ },
9387
+ {
9388
+ "prop": "camera",
9389
+ "type": "AtLeastOne<MapCameraOptions>",
9390
+ "notes": "Seed, bounds and framing intent. {} is a type error — an empty object is a second spelling of the default"
9391
+ },
9392
+ {
9393
+ "prop": "selection",
9394
+ "type": "false | AtLeastOne<MapSelectionOptions>",
9395
+ "notes": "false turns selection off entirely"
9396
+ },
9397
+ {
9398
+ "prop": "time",
9399
+ "type": "false | AtLeastOne<MapTimeOptions>",
9400
+ "notes": "The time axis. The hook holds WHICH frame"
9401
+ },
9402
+ {
9403
+ "prop": "onDrill",
9404
+ "type": "(frames: readonly DrillFrame[]) => void",
9405
+ "notes": "Fired after the drill **settles**, so a caller mirroring into a URL never records a speculative frame"
9406
+ },
9407
+ {
9408
+ "prop": "onSelect",
9409
+ "type": "(refs: readonly MapFeatureRef[]) => void",
9410
+ "notes": "Cross-filter OUT to the page. The highest value-per-line on the whole API"
9411
+ },
9412
+ {
9413
+ "prop": "onCameraSettle",
9414
+ "type": "(camera: CameraPosition, bbox: BoundsTuple) => void",
9415
+ "notes": "Viewport cross-filter. Fired on SETTLE, never per frame"
9416
+ },
9417
+ {
9418
+ "prop": "onLayerToggle",
9419
+ "type": "(layerId: string, visible: boolean) => void",
9420
+ "notes": "Mirrors what the layers control writes"
9421
+ }
9422
+ ]
9423
+ },
9424
+ {
9425
+ "for": null,
9426
+ "columns": [
9427
+ "Prop",
9428
+ "Type",
9429
+ "Notes"
9430
+ ],
9431
+ "rows": [
9432
+ {
9433
+ "prop": "layers",
9434
+ "type": "readonly MapLayerState[]",
9435
+ "notes": "Live per-layer state — **objects, not ids**: a bare string array is an open type, and the object carries what you want anyway"
9436
+ },
9437
+ {
9438
+ "prop": "camera",
9439
+ "type": "CameraPosition",
9440
+ "notes": "Where the camera is now"
9441
+ },
9442
+ {
9443
+ "prop": "bbox",
9444
+ "type": "BoundsTuple",
9445
+ "notes": "[west, south, east, north] currently in view"
9446
+ },
9447
+ {
9448
+ "prop": "selected",
9449
+ "type": "readonly MapFeatureRef[]",
9450
+ "notes": "Always layer-qualified — with N layers a bare feature id is ambiguous"
9451
+ },
9452
+ {
9453
+ "prop": "drill",
9454
+ "type": "MapDrillState",
9455
+ "notes": "frames, level, settledDepth, canDrillUp, loading"
9456
+ },
9457
+ {
9458
+ "prop": "time",
9459
+ "type": "MapTimeState | undefined",
9460
+ "notes": "Present only when time is configured"
9461
+ },
9462
+ {
9463
+ "prop": "status",
9464
+ "type": "\"loading\" | \"ready\" | \"unsupported\" | \"error\"",
9465
+ "notes": "unsupported is permanent and offers no retry"
9466
+ },
9467
+ {
9468
+ "prop": "setLayerVisible",
9469
+ "type": "(layerId, visible) => void",
9470
+ "notes": "What the layers control writes"
9471
+ },
9472
+ {
9473
+ "prop": "setLayerOpacity",
9474
+ "type": "(layerId, opacity) => void",
9475
+ "notes": "Four steps, not a number"
9476
+ },
9477
+ {
9478
+ "prop": "select",
9479
+ "type": "(refs) => void",
9480
+ "notes": "Also fires onSelect"
9481
+ },
9482
+ {
9483
+ "prop": "clearSelection",
9484
+ "type": "() => void",
9485
+ "notes": "—"
9486
+ },
9487
+ {
9488
+ "prop": "drillInto",
9489
+ "type": "(ref) => void",
9490
+ "notes": "No-op at the deepest level, rather than pushing a frame nothing can load"
9491
+ },
9492
+ {
9493
+ "prop": "drillUp",
9494
+ "type": "() => void",
9495
+ "notes": "Cancels a speculative drill rather than over-shooting past it"
9496
+ },
9497
+ {
9498
+ "prop": "setFrame",
9499
+ "type": "(key) => void",
9500
+ "notes": "Stops playback: a scrub is a deliberate act"
9501
+ },
9502
+ {
9503
+ "prop": "setPlaying",
9504
+ "type": "(playing) => void",
9505
+ "notes": "—"
9506
+ },
9507
+ {
9508
+ "prop": "setCamera",
9509
+ "type": "(move: CameraMove) => void",
9510
+ "notes": "Honours prefers-reduced-motion"
9511
+ },
9512
+ {
9513
+ "prop": "fitTo",
9514
+ "type": "(target: MapFitTarget, options?: MapFitOptions) => void",
9515
+ "notes": "\"data\" · { layerId } · { bounds } · { refs }. **CONTAINS** and animates by default; camera.fit/camera.intro do NOT travel here"
9516
+ },
9517
+ {
9518
+ "prop": "resetView",
9519
+ "type": "() => void",
9520
+ "notes": "Puts it BACK: drill trail to its root, layer overrides dropped, camera to the OPENING frame. Not a data fit — see _reset is not fit_"
9521
+ },
9522
+ {
9523
+ "prop": "internal",
9524
+ "type": "MapViewInternal",
9525
+ "notes": "**Not part of the contract.** The seam <DataMap> uses to install the engine; reaching for it is past the line we draw"
9526
+ }
9527
+ ]
9528
+ },
9529
+ {
9530
+ "for": null,
9531
+ "columns": [
9532
+ "Prop",
9533
+ "Type",
9534
+ "Notes"
9535
+ ],
9536
+ "rows": [
9537
+ {
9538
+ "prop": "center",
9539
+ "type": "LngLatTuple",
9540
+ "notes": "—"
9541
+ },
9542
+ {
9543
+ "prop": "zoom",
9544
+ "type": "number",
9545
+ "notes": "MapLibre's continuous 0–24 scale; a bad value is dev-warned rather than silently clamped"
9546
+ },
9547
+ {
9548
+ "prop": "bounds",
9549
+ "type": "BoundsTuple",
9550
+ "notes": "Frame a box instead of naming a centre"
9551
+ },
9552
+ {
9553
+ "prop": "zoomRange",
9554
+ "type": "MapZoomRange",
9555
+ "notes": "{ min, max }. One object, because state:check compares top-level names"
9556
+ },
9557
+ {
9558
+ "prop": "fit",
9559
+ "type": "\"contain\" | \"cover\" | \"none\"",
9560
+ "notes": "The OPENING frame's framing, restored by resetView — **not** inherited by fitTo. \"cover\" fills the canvas and crops; \"none\" leaves the camera where you put it. @default \"contain\""
9561
+ },
9562
+ {
9563
+ "prop": "intro",
9564
+ "type": "\"instant\" | \"fly\"",
9565
+ "notes": "How the OPENING frame arrives, and only that one. @default \"instant\""
9566
+ }
9567
+ ]
9568
+ },
9569
+ {
9570
+ "for": null,
9571
+ "columns": [
9572
+ "Prop",
9573
+ "Type",
9574
+ "Notes"
9575
+ ],
9576
+ "rows": [
9577
+ {
9578
+ "prop": "intro",
9579
+ "type": "\"instant\" | \"fly\"",
9580
+ "notes": "How this ONE move looks. @default \"fly\" — a fit a reader asked for is a move they need to see"
9581
+ },
9582
+ {
9583
+ "prop": "fit",
9584
+ "type": "\"contain\" | \"cover\"",
9585
+ "notes": "@default \"contain\". Does NOT inherit camera.fit — see _reset is not fit to data_. \"none\" is not a member: a fit fits"
9586
+ }
9587
+ ]
9588
+ },
9589
+ {
9590
+ "for": null,
9591
+ "columns": [
9592
+ "Prop",
9593
+ "Type",
9594
+ "Notes"
9595
+ ],
9596
+ "rows": [
9597
+ {
9598
+ "prop": "mode",
9599
+ "type": "\"single\" | \"multiple\"",
9600
+ "notes": "@default \"single\""
9601
+ },
9602
+ {
9603
+ "prop": "selected",
9604
+ "type": "readonly MapFeatureRef[]",
9605
+ "notes": "CONTROLLED selection — a table row hovering a region"
9606
+ },
9607
+ {
9608
+ "prop": "emphasis",
9609
+ "type": "\"outline\" | \"isolate\"",
9610
+ "notes": "\"isolate\" dims everything not selected. @default \"outline\""
9611
+ }
9612
+ ]
9613
+ },
9614
+ {
9615
+ "for": null,
9616
+ "columns": [
9617
+ "Prop",
9618
+ "Type",
9619
+ "Notes"
9620
+ ],
9621
+ "rows": [
9622
+ {
9623
+ "prop": "frames",
9624
+ "type": "readonly MapTimeFrame[]",
9625
+ "notes": "{ key, label } — **already-formatted** labels. The map never parses a date"
9626
+ },
9627
+ {
9628
+ "prop": "defaultFrame",
9629
+ "type": "string",
9630
+ "notes": "@default the first frame"
9631
+ },
9632
+ {
9633
+ "prop": "playback",
9634
+ "type": "false | AtLeastOne<{ fps, loop }>",
9635
+ "notes": "@default fps: 2, loop: true"
9636
+ }
9637
+ ]
9638
+ },
9639
+ {
9640
+ "for": null,
9641
+ "columns": [
9642
+ "Prop",
9643
+ "Type",
9644
+ "Notes"
9645
+ ],
9646
+ "rows": [
9647
+ {
9648
+ "prop": "id",
9649
+ "type": "string",
9650
+ "notes": "**One string, five jobs**: React key, feature-state scope, legend section, a11y section, toggle row. Must be unique"
9651
+ },
9652
+ {
9653
+ "prop": "label",
9654
+ "type": "string",
9655
+ "notes": "CONTENT, so it is a prop and never a label. Falls back to the kind's own word from the cascade"
9656
+ },
9657
+ {
9658
+ "prop": "visible",
9659
+ "type": "boolean",
9660
+ "notes": "**INITIAL** visibility only — the live value is view.layers[i].visible. @default true"
9661
+ },
9662
+ {
9663
+ "prop": "opacity",
9664
+ "type": "\"full\" | \"strong\" | \"medium\" | \"faint\"",
9665
+ "notes": "Four steps, not a 0..1 number: a layer's opacity is a ladder, not a knob. @default \"full\""
9666
+ },
9667
+ {
9668
+ "prop": "interactive",
9669
+ "type": "boolean",
9670
+ "notes": "Hit-testable. @default true, and false for raster — imagery must not swallow clicks aimed at the data drawn on it"
9671
+ },
9672
+ {
9673
+ "prop": "legend",
9674
+ "type": "\"auto\" | \"expanded\" | \"none\"",
9675
+ "notes": "@default \"auto\". \"expanded\" pins THIS section to the full labelled rows while the rest of the stack rides the compact strip"
9676
+ }
9677
+ ]
9678
+ },
9679
+ {
9680
+ "for": null,
9681
+ "columns": [
9682
+ "Prop",
9683
+ "Type",
9684
+ "Notes"
9685
+ ],
9686
+ "rows": [
9687
+ {
9688
+ "prop": "features",
9689
+ "type": "MapGeoJson | MapLevels",
9690
+ "notes": "A static collection, or { levels, load } — the drilling wire. **Nothing in it is administrative**"
9691
+ },
9692
+ {
9693
+ "prop": "rows",
9694
+ "type": "readonly Row[]",
9695
+ "notes": "Your own domain objects. Not Options, no value/label"
9696
+ },
9697
+ {
9698
+ "prop": "joinOn",
9699
+ "type": "{ feature: string; row: (row) => string }",
9700
+ "notes": "feature does double duty: the join key AND, through promoteId, the feature id hover and selection address"
9701
+ },
9702
+ {
9703
+ "prop": "scale",
9704
+ "type": "MapScale<Row>",
9705
+ "notes": "**Required** — it carries the value accessor. See _Scales_"
9706
+ },
9707
+ {
9708
+ "prop": "outline",
9709
+ "type": "\"none\" | \"hairline\" | \"strong\"",
9710
+ "notes": "@default \"hairline\""
9711
+ },
9712
+ {
9713
+ "prop": "labelFeatures",
9714
+ "type": "\"none\" | \"all\" | \"top\"",
9715
+ "notes": "\"top\" labels only the top class, which is what a real thematic map does at country zoom. @default \"none\""
9716
+ },
9717
+ {
9718
+ "prop": "name",
9719
+ "type": "(feature: JoinFeature) => string",
9720
+ "notes": "The region's display name — breadcrumb, accessible table, popup title. @default the name property"
9721
+ },
9722
+ {
9723
+ "prop": "renderPopup",
9724
+ "type": "(feature, rows: readonly Row[]) => ReactNode",
9725
+ "notes": "rows is PLURAL (a feature may own several) and **empty for an unjoined feature** — a real state that must render"
9726
+ },
9727
+ {
9728
+ "prop": "renderTooltip",
9729
+ "type": "(feature, rows: readonly Row[]) => ReactNode",
9730
+ "notes": "The HOVER readout's body. Optional in the strongest sense: with none, the map already names the region and prints its formatted value, derived from the same name and scale the legend reads"
9731
+ },
9732
+ {
9733
+ "prop": "onUnmatched",
9734
+ "type": "(keys: readonly string[]) => void",
9735
+ "notes": "Which rows matched nothing (\"Buriram\" vs \"Buri Ram\"). Fires from an effect, on CHANGE — [] included"
9736
+ },
9737
+ {
9738
+ "prop": "frame",
9739
+ "type": "(row: Row) => string",
9740
+ "notes": "The time axis. An accessor, so the library reserves no field name in your rows"
9741
+ }
9742
+ ]
9743
+ },
9744
+ {
9745
+ "for": null,
9746
+ "columns": [
9747
+ "Prop",
9748
+ "Type",
9749
+ "Notes"
9750
+ ],
9751
+ "rows": [
9752
+ {
9753
+ "prop": "rows",
9754
+ "type": "readonly Row[]",
9755
+ "notes": "—"
9756
+ },
9757
+ {
9758
+ "prop": "key",
9759
+ "type": "(row: Row) => string",
9760
+ "notes": "Stable identity, and what makes **live diffing** work: re-pass rows and markers MOVE rather than remount"
9761
+ },
9762
+ {
9763
+ "prop": "position",
9764
+ "type": "(row: Row) => LngLatTuple",
9765
+ "notes": "—"
9766
+ },
9767
+ {
9768
+ "prop": "name",
9769
+ "type": "(row: Row) => string",
9770
+ "notes": "What this point is CALLED — the pin's text and its accessible name"
9771
+ },
9772
+ {
9773
+ "prop": "marker",
9774
+ "type": "\"dot\" | \"ring\" | \"pin\" | \"teardrop\" | \"label\" | \"icon\" | \"avatar\"",
9775
+ "notes": "@default \"pin\""
9776
+ },
9777
+ {
9778
+ "prop": "size",
9779
+ "type": "{ value: (row) => number; range?: \"sm\" | \"md\" | \"lg\" }",
9780
+ "notes": "Graduated symbols. Radius interpolates on the SQUARE ROOT — a circle's AREA is what the eye reads"
9781
+ },
9782
+ {
9783
+ "prop": "tone",
9784
+ "type": "MapTone | ((row) => MapTone)",
9785
+ "notes": "The library's own closed colour union. You never name a colour"
9786
+ },
9787
+ {
9788
+ "prop": "toneLabels",
9789
+ "type": "Partial<Record<MapTone, string>>",
9790
+ "notes": "**Your word for each tone you paint** — what makes a colour encoding readable. A tone function paints as many colours as your data has cases and the map cannot know that red means \"closing\", so without this the marks appear in NO legend; supply it and the layer gets its own key. Dev-warns when a layer paints more than one tone without it. A single fixed tone needs no entry — one colour that never varies encodes nothing"
9791
+ },
9792
+ {
9793
+ "prop": "renderMarker",
9794
+ "type": "(row: Row) => ReactNode",
9795
+ "notes": "A node you compose. Its presence **forces** mode: \"dom\""
9796
+ },
9797
+ {
9798
+ "prop": "renderPopup",
9799
+ "type": "(row: Row) => ReactNode",
9800
+ "notes": "—"
9801
+ },
9802
+ {
9803
+ "prop": "renderTooltip",
9804
+ "type": "(row: Row) => ReactNode",
9805
+ "notes": "The HOVER readout's body. With none, the map names the point from name and prints its size magnitude"
9806
+ },
9807
+ {
9808
+ "prop": "cluster",
9809
+ "type": "false | AtLeastOne<MapClusterOptions>",
9810
+ "notes": "{} is a type error — a switch travels with its settings"
9811
+ },
9812
+ {
9813
+ "prop": "mode",
9814
+ "type": "\"auto\" | \"dom\" | \"gl\"",
9815
+ "notes": "@default \"auto\" — DOM below ~300 rows, WebGL above. See _Scale_"
9816
+ },
9817
+ {
9818
+ "prop": "frame",
9819
+ "type": "(row: Row) => string",
9820
+ "notes": "The time axis"
9821
+ }
9822
+ ]
9823
+ },
9824
+ {
9825
+ "for": null,
9826
+ "columns": [
9827
+ "Prop",
9828
+ "Type",
9829
+ "Notes"
9830
+ ],
9831
+ "rows": [
9832
+ {
9833
+ "prop": "radius",
9834
+ "type": "number",
9835
+ "notes": "The merge distance in CSS pixels — a screen measure whose whole positive range is meaningful. @default 48, 64 on touch"
9836
+ },
9837
+ {
9838
+ "prop": "maxZoom",
9839
+ "type": "number",
9840
+ "notes": "Above this, nothing clusters. @default 14"
9841
+ },
9842
+ {
9843
+ "prop": "sizeBy",
9844
+ "type": "\"none\" | \"count\"",
9845
+ "notes": "Three sizes AND three tints by count. @default \"count\" — a cluster of 3 and of 300 must not render identically"
9846
+ },
9847
+ {
9848
+ "prop": "coincident",
9849
+ "type": "\"stack\" | \"spiderfy\"",
9850
+ "notes": "What happens to pins on the SAME coordinate, which zooming can never separate. \"stack\" leaves them piled and the ones underneath permanently unreachable; \"spiderfy\" fans them onto a short radius with leader lines. @default \"stack\""
9851
+ }
9852
+ ]
9853
+ },
9854
+ {
9855
+ "for": null,
9856
+ "columns": [
9857
+ "Prop",
9858
+ "Type",
9859
+ "Notes"
9860
+ ],
9861
+ "rows": [
9862
+ {
9863
+ "prop": "rows",
9864
+ "type": "readonly Row[]",
9865
+ "notes": "—"
9866
+ },
9867
+ {
9868
+ "prop": "position",
9869
+ "type": "(row: Row) => LngLatTuple",
9870
+ "notes": "—"
9871
+ },
9872
+ {
9873
+ "prop": "weight",
9874
+ "type": "(row: Row) => number",
9875
+ "notes": "@default 1 per row"
9876
+ },
9877
+ {
9878
+ "prop": "radius",
9879
+ "type": "\"tight\" | \"medium\" | \"wide\"",
9880
+ "notes": "Ours, not MapLibre's pixel number, which is zoom-relative. @default \"medium\""
9881
+ },
9882
+ {
9883
+ "prop": "ramp",
9884
+ "type": "readonly string[]",
9885
+ "notes": "@default the house heat ramp — multi-hue, because a density gradient has no swatch to match"
9886
+ },
9887
+ {
9888
+ "prop": "frame",
9889
+ "type": "(row: Row) => string",
9890
+ "notes": "The time axis"
9891
+ }
9892
+ ]
9893
+ },
9894
+ {
9895
+ "for": null,
9896
+ "columns": [
9897
+ "Prop",
9898
+ "Type",
9899
+ "Notes"
9900
+ ],
9901
+ "rows": [
9902
+ {
9903
+ "prop": "rows",
9904
+ "type": "readonly Row[]",
9905
+ "notes": "—"
9906
+ },
9907
+ {
9908
+ "prop": "key",
9909
+ "type": "(row: Row) => string",
9910
+ "notes": "—"
9911
+ },
9912
+ {
9913
+ "prop": "path",
9914
+ "type": "(row: Row) => readonly LngLatTuple[]",
9915
+ "notes": "—"
9916
+ },
9917
+ {
9918
+ "prop": "name",
9919
+ "type": "(row: Row) => string",
9920
+ "notes": "—"
9921
+ },
9922
+ {
9923
+ "prop": "tone",
9924
+ "type": "MapTone | ((row) => MapTone)",
9925
+ "notes": "—"
9926
+ },
9927
+ {
9928
+ "prop": "toneLabels",
9929
+ "type": "Partial<Record<MapTone, string>>",
9930
+ "notes": "Your word for each tone this layer paints — see pointsLayer. Without it a multi-tone layer appears in no legend"
9931
+ },
9932
+ {
9933
+ "prop": "weight",
9934
+ "type": "\"hairline\" | \"sm\" | \"md\" | \"lg\"",
9935
+ "notes": "@default \"md\""
9936
+ },
9937
+ {
9938
+ "prop": "texture",
9939
+ "type": "\"line\" | \"dot\" | \"dashed\"",
9940
+ "notes": "The house rule vocabulary reused **by name**. Not the same paint — a gradient cannot follow a corner, a dash can"
9941
+ },
9942
+ {
9943
+ "prop": "arrows",
9944
+ "type": "\"none\" | \"forward\"",
9945
+ "notes": "Direction, as repeated glyphs along the line. A union beside texture and curve, the spec's other two decoration axes, which both name their off state. @default \"none\""
9946
+ },
9947
+ {
9948
+ "prop": "curve",
9949
+ "type": "\"none\" | \"arc\"",
9950
+ "notes": "An arc for origin–destination flows"
9951
+ },
9952
+ {
9953
+ "prop": "renderPopup",
9954
+ "type": "(row: Row) => ReactNode",
9955
+ "notes": "—"
9956
+ },
9957
+ {
9958
+ "prop": "frame",
9959
+ "type": "(row: Row) => string",
9960
+ "notes": "The time axis"
9961
+ }
9962
+ ]
9963
+ },
9964
+ {
9965
+ "for": null,
9966
+ "columns": [
9967
+ "Prop",
9968
+ "Type",
9969
+ "Notes"
9970
+ ],
9971
+ "rows": [
9972
+ {
9973
+ "prop": "features",
9974
+ "type": "MapGeoJson",
9975
+ "notes": "—"
9976
+ },
9977
+ {
9978
+ "prop": "tone",
9979
+ "type": "MapTone | ((feature: JoinFeature) => MapTone)",
9980
+ "notes": "—"
9981
+ },
9982
+ {
9983
+ "prop": "toneLabels",
9984
+ "type": "Partial<Record<MapTone, string>>",
9985
+ "notes": "Your word for each tone this layer paints — see pointsLayer"
9986
+ },
9987
+ {
9988
+ "prop": "fill",
9989
+ "type": "\"solid\" | \"wash\" | \"none\"",
9990
+ "notes": "@default \"wash\" — an areas layer is usually ON something"
9991
+ },
9992
+ {
9993
+ "prop": "outline",
9994
+ "type": "\"none\" | \"hairline\" | \"strong\"",
9995
+ "notes": "@default \"hairline\""
9996
+ },
9997
+ {
9998
+ "prop": "name",
9999
+ "type": "(feature: JoinFeature) => string",
10000
+ "notes": "@default the name property"
10001
+ },
10002
+ {
10003
+ "prop": "renderPopup",
10004
+ "type": "(feature: JoinFeature) => ReactNode",
10005
+ "notes": "—"
10006
+ }
10007
+ ]
10008
+ },
10009
+ {
10010
+ "for": null,
10011
+ "columns": [
10012
+ "Prop",
10013
+ "Type",
10014
+ "Notes"
10015
+ ],
10016
+ "rows": [
10017
+ {
10018
+ "prop": "source",
10019
+ "type": "MapRasterSource",
10020
+ "notes": "{ kind: \"tilejson\" } · { kind: \"tiles\" } · { kind: \"image\", url, corners }"
10021
+ },
10022
+ {
10023
+ "prop": "attribution",
10024
+ "type": "string",
10025
+ "notes": "A raster overlay carries its own credit, printed beside the basemap's"
10026
+ }
10027
+ ]
10028
+ }
10029
+ ],
10030
+ "usage": "import { DataMap, useMapView } from \"jenosize-ui\";\n\nconst view = useMapView({\n points: { id: \"stores\", label: \"Stores\", rows, key: (row) => row.id, position: (row) => [row.lng, row.lat] },\n});\n\n<DataMap view={view} className=\"h-96\" />;",
10031
+ "variants": "### Scales — how a row becomes a colour\n\nThe accessor lives **inside** the scale, because a categorical map's accessor returns a string and a\nsequential map's returns a number. One top-level `value` would be either loose (`number | string`) or\ndead in one of the two modes; this makes both illegal states unrepresentable.\n\n| `kind` | Answers | Extra fields | Legend |\n| ------------- | ----------------------- | ----------------------------------------------- | ------------------------------- |\n| `sequential` | how much? | `ramp`, `bins` | a ramp of ranges |\n| `steps` | which band? | `edges`, `ramp` | the same, with your own edges |\n| `diverging` | which way, and how far? | `center`, `ramp`, `bins` | ranges around a pinned midpoint |\n| `categorical` | which one? | `categories: { value, label, tone?, color? }[]` | a swatch per value |\n\nThe three quantitative kinds also take `aggregate` (`sum` · `mean` · `min` · `max` · `count` — for a\nfeature that owns several rows), `rate` (`{ per, denominator }` — and the denominator rides into the\nlegend, or the map lies quietly) and `formatValue`.\n\n#### A category's colour — `color` › `tone` › the palette\n\nThe chart family's contract (`ChartSeries.color` overrides `palette[i]`), on the map's engine:\n\n| A category says | It paints |\n| --------------- | ------------------------------------------------------------------------------------------------------ |\n| nothing | the palette by POSITION — `brand` · `info` · `success` · `warning` · `error` · `neutral`, then repeats |\n| `tone` | that house tone, already paired for both themes |\n| `color` | that colour verbatim; it wins over `tone` |\n\nThe index is the category's place in the **declared** list, never among the ones that survived the\njoin — otherwise a category matching nothing would silently re-colour every category after it. Past\nsix unspecified categories the palette repeats and `dev-warn` says so; a caller who named a colour\nfor every one of twelve has done nothing wrong and is not warned.\n\n**`color` takes a RESOLVED colour, and this is the one rule that inverts against the chart family.**\nA chart's colour lands in `style={{ color }}` and the browser resolves it, so `token(\"utility-blue-600\")`\nis the recommended spelling there. A MapLibre paint property is JSON handed to WebGL: it resolves no\ncustom property, and its parser (verified against `maplibre-gl` 6.4) understands only hex,\n`rgb()`/`rgba()`, `hsl()`/`hsla()` and the CSS named colours. `var()`, `token()`, `oklch()`, `hwb()`\nand `color-mix()` are all dropped **silently** — the layer keeps its default, nothing throws and no\ngate can see it, which is the whole reason the house palette is generated to hex. So those are\ndev-warned, at both places a caller's colour reaches the engine: a `category.color` and a\n`scale.ramp` / heatmap `ramp` entry. `CSS.supports` cannot carry that check on its own —\n`oklch(…)` passes it in every current browser and still paints nothing here.\n\n**A choropleth of raw counts draws a population map every time.** That is the #1 cartographic\nanti-pattern; `rate` is the fix, and a delta belongs on `diverging`, never on a sequential ramp.\n\n### Sizes\n\n`DataMap` has no `size`. A map's size is its container's, and `className` is where you say it.",
10032
+ "states": "Three, and conflating them is what produces a bad fallback.\n\n| State | What renders |\n| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **server** | the sized container, the named region, and **the full text alternative** — the projection is a pure function of the layers, so the page has real content before any JS runs |\n| **no WebGL2** | permanent, so no retry is offered. The text alternative is promoted to **visible** with one sentence saying why |\n| **level error** | a card with a retry, because a failed fetch genuinely can succeed on a second try |\n\nPer-layer: `loading` never flashes on a cache hit, and a toggled-off layer is `hidden` in the text\nalternative — **not** `sr-only`. The two spellings mean different things.",
10033
+ "accessibility": "**A WebGL canvas is opaque to assistive tech, and `axe` passes a labelled `<canvas>`.** So the axe\nassertion in `DataMap.test.tsx` is necessary and nowhere near sufficient, and the text alternative is\nnot polish — it is the only rendering of the data that exists for a screen reader, a search index or a\nserver.\n\n- `role=\"region\"` + `aria-roledescription=\"map\"`, **never** `role=\"img\"`: an `img` is a single\n indivisible graphic, so a focusable marker inside one is a `nested-interactive` violation.\n- Your own `aria-label` **wins outright**. Those three attributes exist only so a caller can say what\n an element is called.\n- **One `<section>` per layer**, then a decision by **budget, not by kind**: ≤ 200 rows enumerate (a\n semantic `<table>` for a choropleth, a `<ul>` otherwise); above it, a summary carrying the count and\n the range, the **ten extremes**, and a `<details>` that mounts the rest on demand. `<details>` works\n with no JavaScript, which is what makes the server render real content.\n- A heatmap always summarises (no features to enumerate); a raster says it has no data (claiming\n otherwise is a false green); a hidden layer is `hidden`.\n- **DOM markers are real tab stops** — that is the whole reason `mode: \"dom\"` exists as a mode. A\n WebGL circle cannot be one, and `\"auto\"` makes that trade on the reader's behalf only once the count\n makes focus impractical anyway.\n- A live region announces every level change, layer toggle and frame change, because the canvas\n repaints and says nothing.\n- Every control clears **44 px on a coarse pointer** (`pointer-coarse:p-3`), and every mark carries a\n transparent 44 px hit pad under its own geometry — the standard separation of mark from target, and\n the only way a 9 px dot is both correct and tappable.\n- `prefers-reduced-motion` collapses every camera animation to a jump, and a `fitBounds` to `linear`\n — the arc is precisely what reduced motion objects to.\n- The map **opens static**, which is `camera.intro`'s `\"instant\"` default and the same code path\n reduced motion has always taken. `intro: \"fly\"` opts back in, and reduced motion still overrides it.\n- **The opening frame is computed before the first paint, not after `load`.** A fitted map used to\n open at the engine's own `[0, 0]` zoom 1 — the middle of the Atlantic — and be corrected once the\n style had loaded, so the canvas held a flat sheet of water for ~280ms and then cut to the map. The\n bbox now reaches MapLibre's constructor, which resolves it before anything paints; the fit after\n `load` remains as the refinement for chrome that is only measurable once it has rendered, and for\n data that arrives from a `load` function later.",
10034
+ "fixedByDesign": "- **No `paint` / `layout` / `filter` / `beforeId` / `sourceLayer`, and no `mapStyle`.** The generated\n style IS the product: it is what makes one basemap match your tokens in both themes with no JSON to\n maintain. A raw paint hatch would reopen every colour decision at every call site.\n- **No public parts.** See _Anatomy_.\n- **MapLibre's own controls are not mounted** — `NavigationControl`, `GeolocateControl`,\n `FullscreenControl`, `ScaleControl`, `AttributionControl`. The reason is **design consistency**: one\n focus ring, one icon set, one token vocabulary — so the CAPABILITY is not refused, only the vendor's\n widget: `controls: [\"fullscreen\"]` and `controls: [\"scale\"]` are ours and are drawn by\n `src/components/data-map/controls.tsx` and `scale-bar.tsx`. _(It is **not** that MapLibre's strings\n are unreachable — it ships `MapOptions.locale`, a table of 26 namespaced ids, and we now pass it,\n which is what fixed a Thai app rendering an English cooperative-gesture overlay.)_\n- **No bundled geometry.** Zero bytes, and that is what makes the hierarchy walk universal rather than\n working for exactly one country. It is also why the package is small.\n- **No image export**, and `preserveDrawingBuffer` stays `false`. It must be decided at construction,\n so every map would pay for a feature used rarely. Deferred, not rejected — a per-map opt-in that\n fails loudly rather than producing a blank PNG is the version worth revisiting.\n- **No 3D** — no `fill-extrusion`, terrain, hillshade, globe, `pitch` or `bearing` beyond the camera's\n own. Zero of 38 surveyed business use-cases needed it.\n- **No non-Mercator projection.** A consequence: a floor plan is mapped into a small lat/lng box. The\n distortion is negligible (0.0034% across a 0.008° box at 13.74 °N — under 0.04 px on a 1,000 px\n image), but the **aspect** is not: a `Δlng × Δlat` box renders with its height stretched by\n `1 / cos(lat)`, so compute the corners from the image's aspect rather than guessing them.",
10035
+ "doDont": "- **Do** bound the height in `className`. A map has no intrinsic size, and a 0px container renders a\n 0px canvas with no error.\n- **Do** give every layer a stable `id` and every points layer a real `key`. One is five jobs; the\n other is what makes a live poll move a marker instead of rebuilding it.\n- **Do** set `source` before you ship. The default has no SLA.\n- **Don't** paint raw counts. Use `rate`, or you have drawn a population map.\n- **Don't** re-bin per frame in a time series. Pass the whole series, or hold `edges` constant.\n- **Don't** treat `\"no data\"` as zero. It is a third outcome and the component keeps all three\n distinguishable in paint, in the legend and in the table.\n- **Don't** reach for `view.internal`. It is the engine seam, not an API.",
10036
+ "sections": [
10037
+ "Anatomy",
10038
+ "Usage",
10039
+ "Props",
10040
+ "Variants",
10041
+ "States",
10042
+ "Tokens used",
10043
+ "Accessibility",
10044
+ "`reset` is not `fit to data`",
10045
+ "Fixed by design (what we deliberately do NOT expose)",
10046
+ "Scale — where each strategy stops being the right answer",
10047
+ "Known limits",
10048
+ "Do / Don't"
10049
+ ]
10050
+ }
10051
+ },
9256
10052
  {
9257
10053
  "slug": "calendar",
9258
10054
  "title": "Event calendar",