jenosize-ui 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +183 -63
  2. package/THIRD-PARTY-NOTICES.md +15 -0
  3. package/dist/GradientPicker-CQm3GT7F.d.ts +144 -0
  4. package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-Cz5jFB3p.d.ts} +1 -1
  5. package/dist/{Select-Dt5ARIH8.d.ts → Select-CXOAMlk7.d.ts} +15 -1
  6. package/dist/{TagInput-BaBeve6L.d.ts → TagInput-CzIrONr-.d.ts} +1 -1
  7. package/dist/area-chart.d.ts +2 -2
  8. package/dist/area-chart.js +7 -6
  9. package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
  10. package/dist/avatar.d.ts +1 -1
  11. package/dist/avatar.js +12 -11
  12. package/dist/badge.d.ts +1 -1
  13. package/dist/badge.js +6 -6
  14. package/dist/bar-chart.d.ts +2 -2
  15. package/dist/bar-chart.js +7 -6
  16. package/dist/breadcrumb.d.ts +1 -1
  17. package/dist/breadcrumb.js +4 -4
  18. package/dist/button.d.ts +1 -1
  19. package/dist/button.js +11 -10
  20. package/dist/calendar.d.ts +1 -1
  21. package/dist/calendar.js +16 -15
  22. package/dist/callout.d.ts +4 -2
  23. package/dist/callout.js +12 -11
  24. package/dist/card.d.ts +59 -3
  25. package/dist/card.js +4 -4
  26. package/dist/carousel.d.ts +169 -0
  27. package/dist/carousel.js +9 -0
  28. package/dist/catalog.json +11180 -0
  29. package/dist/checkbox.js +8 -7
  30. package/dist/{chunk-MVG5MABV.js → chunk-26XQU3TC.js} +8 -8
  31. package/dist/{chunk-X2X7Q7NW.js → chunk-2R3QWWOT.js} +3 -3
  32. package/dist/{chunk-AIARANKE.js → chunk-3JQKVC2K.js} +4 -4
  33. package/dist/chunk-3P3QZPHV.js +109 -0
  34. package/dist/{chunk-GLKFFA7N.js → chunk-44AWXIQK.js} +5 -5
  35. package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
  36. package/dist/{chunk-5XPMY2LF.js → chunk-5ECTNYKU.js} +5 -5
  37. package/dist/{chunk-6B6BWTXC.js → chunk-5GBA6X6A.js} +5 -5
  38. package/dist/{chunk-UGKELBNC.js → chunk-5SGF47TZ.js} +9 -9
  39. package/dist/{chunk-POQTE7JI.js → chunk-5XSR757T.js} +7 -7
  40. package/dist/{chunk-GZMDZF2V.js → chunk-6FGLABYH.js} +3 -3
  41. package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
  42. package/dist/{chunk-SKRR3ZMP.js → chunk-737A4YNC.js} +3 -3
  43. package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
  44. package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
  45. package/dist/{chunk-54SIZR63.js → chunk-7UCKFULR.js} +7 -7
  46. package/dist/{chunk-LQURV7HQ.js → chunk-7ZA3QZRP.js} +4 -4
  47. package/dist/{chunk-X2VMIBK5.js → chunk-A4YPUS6C.js} +4 -4
  48. package/dist/{chunk-5ZEUTSCV.js → chunk-B4OVIE2X.js} +6 -6
  49. package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
  50. package/dist/{chunk-667ZHY3T.js → chunk-BJHLW25G.js} +85 -538
  51. package/dist/{chunk-ULGCGKOE.js → chunk-BKBINQJZ.js} +4 -4
  52. package/dist/{chunk-CFFWYXDW.js → chunk-BXQFBFT7.js} +5 -5
  53. package/dist/{chunk-I6WMNXC7.js → chunk-CQGMOPLG.js} +6 -6
  54. package/dist/{chunk-FNQJJO63.js → chunk-CUONE6LA.js} +4 -4
  55. package/dist/{chunk-FFMTYQXE.js → chunk-CVCS5G3E.js} +43 -21
  56. package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
  57. package/dist/{chunk-A323V6AI.js → chunk-DYRGHXT5.js} +3 -3
  58. package/dist/{chunk-T4ZFZTY6.js → chunk-EHML2DLR.js} +4 -4
  59. package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
  60. package/dist/{chunk-E2YZ7IMT.js → chunk-ESDSTS5N.js} +6 -6
  61. package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
  62. package/dist/chunk-EXRVOGJ5.js +325 -0
  63. package/dist/{chunk-YHBI52P2.js → chunk-GDW6NFYN.js} +3 -3
  64. package/dist/chunk-GOCO45FF.js +619 -0
  65. package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
  66. package/dist/{chunk-PO2TYK3C.js → chunk-GWYDOZGQ.js} +3 -3
  67. package/dist/{chunk-LO22VQL5.js → chunk-HNNNJP3A.js} +4 -4
  68. package/dist/{chunk-ZZSNTCCL.js → chunk-IESEBPYA.js} +4 -4
  69. package/dist/{chunk-3H444OJA.js → chunk-JZ4HGFWK.js} +3 -3
  70. package/dist/chunk-KBQJIVUB.js +33 -0
  71. package/dist/{chunk-CKMWBVRR.js → chunk-KCM4KEZ2.js} +4 -4
  72. package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
  73. package/dist/{chunk-FH7Z7SGQ.js → chunk-KNW3IUWX.js} +12 -11
  74. package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
  75. package/dist/{chunk-LYXPJERB.js → chunk-L7Z6XGBU.js} +5 -5
  76. package/dist/{chunk-ZHAT2XZ4.js → chunk-LLUWBQK6.js} +10 -10
  77. package/dist/{chunk-QHH6AUR3.js → chunk-MDKVYC6R.js} +7 -7
  78. package/dist/{chunk-22M75A3N.js → chunk-MS6DY4CE.js} +14 -11
  79. package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
  80. package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
  81. package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
  82. package/dist/{chunk-ZMFY7WAY.js → chunk-O24HHIQG.js} +41 -39
  83. package/dist/{chunk-NKG4N6HA.js → chunk-O5EHNNPS.js} +4 -4
  84. package/dist/{chunk-5DP7W5HX.js → chunk-OIPFTJS6.js} +3 -3
  85. package/dist/{chunk-U4WSJAYK.js → chunk-OXNIEIOY.js} +20 -20
  86. package/dist/chunk-P2BGR77C.js +344 -0
  87. package/dist/{chunk-CGHYXWTT.js → chunk-PFAFTLN3.js} +4 -4
  88. package/dist/{chunk-4RBIWI2Q.js → chunk-Q2KR7PSX.js} +3 -3
  89. package/dist/{chunk-7GUPNTAH.js → chunk-QSOLK2I2.js} +7 -7
  90. package/dist/chunk-QTWRR7IS.js +1129 -0
  91. package/dist/{chunk-OLLD2BZN.js → chunk-QZHAL4BL.js} +3 -3
  92. package/dist/{chunk-OACWA4TC.js → chunk-R25NHHYT.js} +6 -6
  93. package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
  94. package/dist/{chunk-S5TEWPWW.js → chunk-S5LLA36K.js} +10 -10
  95. package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
  96. package/dist/{chunk-KHGW72BM.js → chunk-SGMVB7HD.js} +3 -3
  97. package/dist/{chunk-FKVPAEJ6.js → chunk-SKJC2KYD.js} +4 -3
  98. package/dist/chunk-SKPKL47Y.js +5671 -0
  99. package/dist/{chunk-6MMBQVRO.js → chunk-TCTTZHUS.js} +9 -9
  100. package/dist/chunk-U5X3MLM5.js +67 -0
  101. package/dist/chunk-UHSGD4CD.js +364 -0
  102. package/dist/chunk-UJ4WEQHR.js +525 -0
  103. package/dist/{chunk-6H4LNWQ7.js → chunk-VDFWWWLL.js} +9 -4
  104. package/dist/{chunk-5KSD4WKN.js → chunk-VIKV25VP.js} +5 -5
  105. package/dist/chunk-WJB5GWAZ.js +20 -0
  106. package/dist/{chunk-HHYEAFCL.js → chunk-XAQQ4LYL.js} +11 -11
  107. package/dist/{chunk-4VGEJG4M.js → chunk-XCFFM2C7.js} +9 -9
  108. package/dist/chunk-XKTD3X6Z.js +183 -0
  109. package/dist/{chunk-GQRSABRN.js → chunk-XWXXKEG6.js} +4 -4
  110. package/dist/chunk-YGFTNICV.js +110 -0
  111. package/dist/{chunk-T5574MXM.js → chunk-YGJL7QS7.js} +8 -8
  112. package/dist/{chunk-SB3DG572.js → chunk-YKPTUANT.js} +6 -6
  113. package/dist/{chunk-YQYVGWIC.js → chunk-YQAYAJ2T.js} +33 -11
  114. package/dist/chunk-YXYZW6WU.js +998 -0
  115. package/dist/{chunk-IQNVSQRK.js → chunk-Z6NSOC6T.js} +5 -5
  116. package/dist/{chunk-BBKE4W3B.js → chunk-ZAWGG4H2.js} +7 -7
  117. package/dist/{chunk-BFVJHH7S.js → chunk-ZF362B2X.js} +5 -5
  118. package/dist/{chunk-RJTVCA62.js → chunk-ZJIY642R.js} +3 -3
  119. package/dist/color-input.d.ts +93 -0
  120. package/dist/color-input.js +35 -0
  121. package/dist/color-picker.d.ts +268 -0
  122. package/dist/color-picker.js +28 -0
  123. package/dist/color-value-DYzChVOW.d.ts +129 -0
  124. package/dist/combobox.d.ts +1 -1
  125. package/dist/combobox.js +13 -12
  126. package/dist/date-calendar.d.ts +49 -0
  127. package/dist/date-calendar.js +12 -0
  128. package/dist/date-input.d.ts +1 -1
  129. package/dist/date-input.js +11 -10
  130. package/dist/date-picker.d.ts +15 -131
  131. package/dist/date-picker.js +26 -22
  132. package/dist/date-types-DrDdF6WJ.d.ts +100 -0
  133. package/dist/dialog.d.ts +1 -1
  134. package/dist/dialog.js +10 -10
  135. package/dist/drawer.d.ts +1 -1
  136. package/dist/drawer.js +9 -9
  137. package/dist/dropdown-menu.d.ts +1 -1
  138. package/dist/dropdown-menu.js +6 -6
  139. package/dist/dropzone.d.ts +3 -3
  140. package/dist/dropzone.js +17 -16
  141. package/dist/form.d.ts +15 -5
  142. package/dist/form.js +75 -36
  143. package/dist/header-navigation.d.ts +2 -2
  144. package/dist/header-navigation.js +21 -20
  145. package/dist/helper.d.ts +1 -1
  146. package/dist/index.d.ts +25 -11
  147. package/dist/index.js +92 -79
  148. package/dist/indicator.js +4 -4
  149. package/dist/inline-banner.d.ts +68 -0
  150. package/dist/inline-banner.js +20 -0
  151. package/dist/input.d.ts +1 -1
  152. package/dist/input.js +10 -9
  153. package/dist/kanban-board.d.ts +2 -2
  154. package/dist/kanban-board.js +16 -15
  155. package/dist/labels-C992bt7G.d.ts +1160 -0
  156. package/dist/line-chart.d.ts +2 -2
  157. package/dist/line-chart.js +7 -6
  158. package/dist/mcp.js +231 -0
  159. package/dist/number-input.d.ts +1 -1
  160. package/dist/number-input.js +10 -9
  161. package/dist/pagination.d.ts +1 -1
  162. package/dist/pagination.js +14 -13
  163. package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
  164. package/dist/payment-input.d.ts +3 -3
  165. package/dist/payment-input.js +10 -9
  166. package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
  167. package/dist/pie-chart.d.ts +2 -2
  168. package/dist/pie-chart.js +7 -6
  169. package/dist/popover.d.ts +65 -4
  170. package/dist/popover.js +9 -9
  171. package/dist/progress-steps.js +4 -4
  172. package/dist/progress.js +3 -3
  173. package/dist/provider.d.ts +1 -1
  174. package/dist/provider.js +3 -3
  175. package/dist/qr-code.d.ts +227 -0
  176. package/dist/qr-code.js +19 -0
  177. package/dist/radar-chart.d.ts +2 -2
  178. package/dist/radar-chart.js +7 -6
  179. package/dist/radial-chart.d.ts +2 -2
  180. package/dist/radial-chart.js +7 -6
  181. package/dist/radio.js +8 -7
  182. package/dist/rich-text-editor.d.ts +624 -0
  183. package/dist/rich-text-editor.js +51 -0
  184. package/dist/rich-text-highlight.d.ts +11 -0
  185. package/dist/rich-text-highlight.js +65 -0
  186. package/dist/rich-text-sanitize.d.ts +17 -0
  187. package/dist/rich-text-sanitize.js +176 -0
  188. package/dist/scroll-area.js +2 -2
  189. package/dist/select.d.ts +2 -2
  190. package/dist/select.js +17 -16
  191. package/dist/separator.js +2 -2
  192. package/dist/shared-CGf2D8ZX.d.ts +20 -0
  193. package/dist/sidebar-navigation.d.ts +76 -27
  194. package/dist/sidebar-navigation.js +16 -15
  195. package/dist/sidebar-state.d.ts +76 -0
  196. package/dist/sidebar-state.js +27 -0
  197. package/dist/skeleton.js +2 -2
  198. package/dist/slider.d.ts +321 -0
  199. package/dist/slider.js +13 -0
  200. package/dist/styles.css +1 -1
  201. package/dist/switch.d.ts +1 -1
  202. package/dist/switch.js +2 -2
  203. package/dist/table.d.ts +3 -19
  204. package/dist/table.js +34 -33
  205. package/dist/tabs.js +2 -2
  206. package/dist/tag-input.d.ts +3 -3
  207. package/dist/tag-input.js +13 -12
  208. package/dist/tag.d.ts +1 -1
  209. package/dist/tag.js +4 -4
  210. package/dist/textarea.js +8 -7
  211. package/dist/theme.css +965 -0
  212. package/dist/theme.js +12 -11
  213. package/dist/toast.d.ts +1 -1
  214. package/dist/toast.js +12 -11
  215. package/dist/tooltip.js +4 -3
  216. package/dist/tree.d.ts +1 -1
  217. package/dist/tree.js +6 -6
  218. package/dist/{types-DR9rAEy1.d.ts → types-DYFl0CEB.d.ts} +1 -1
  219. package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-2E7n0PWT.d.ts} +1 -1
  220. package/dist/verification-code-input.js +10 -9
  221. package/package.json +92 -8
  222. package/dist/chunk-BLIZ3CL3.js +0 -49
  223. package/dist/labels-DPrh0se9.d.ts +0 -627
  224. package/dist/panel-El4oI68p.d.ts +0 -9
  225. package/dist/shared-BYXJPnsN.d.ts +0 -11
package/dist/progress.js CHANGED
@@ -1,6 +1,6 @@
1
- "use client";export { Progress } from './chunk-33TOK7ES.js';
2
- import './chunk-MCQG4H6T.js';
1
+ "use client";export { Progress } from './chunk-DCKVNHV5.js';
2
+ import './chunk-6T3QAO5K.js';
3
3
  import './chunk-ZSNJ6UA3.js';
4
- import './chunk-QDYE5LVT.js';
4
+ import './chunk-SF3HCW4G.js';
5
5
  //# sourceMappingURL=progress.js.map
6
6
  //# sourceMappingURL=progress.js.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { i as LibraryLabels } from './labels-DPrh0se9.js';
2
+ import { k as LibraryLabels } from './labels-C992bt7G.js';
3
3
  import { W as WeekStart } from './date-vMJBKAFK.js';
4
4
  import { Locale } from 'date-fns';
5
5
  import { E as Era } from './date-utils-7hTFTXNK.js';
package/dist/provider.js CHANGED
@@ -1,7 +1,7 @@
1
- "use client";export { JenosizeUIProvider } from './chunk-AIARANKE.js';
1
+ "use client";export { JenosizeUIProvider } from './chunk-3JQKVC2K.js';
2
2
  import './chunk-5AZKP4KZ.js';
3
3
  import './chunk-YIHKQ63K.js';
4
- import './chunk-RJTVCA62.js';
5
- import './chunk-QDYE5LVT.js';
4
+ import './chunk-ZJIY642R.js';
5
+ import './chunk-SF3HCW4G.js';
6
6
  //# sourceMappingURL=provider.js.map
7
7
  //# sourceMappingURL=provider.js.map
@@ -0,0 +1,227 @@
1
+ import * as React from 'react';
2
+ import { Q as QrCodeLabels } from './labels-C992bt7G.js';
3
+ import { A as AtLeastOne } from './at-least-one-BZ2dsck-.js';
4
+
5
+ /**
6
+ * **The only file in `src/` allowed to name `uqr`.**
7
+ *
8
+ * Same posture `src/components/chart/primitives.ts` holds with recharts, `date-picker/day-picker.tsx`
9
+ * with react-day-picker and `table/use-table.ts` with @tanstack/react-table: a real dependency does the
10
+ * hard part, and none of its vocabulary reaches a public type, a prop, a doc example or a playground
11
+ * snippet. The gate:
12
+ *
13
+ * ```bash
14
+ * grep -rn "uqr" src/ --include='*.ts' --include='*.tsx' \
15
+ * | grep -v "src/components/qr-code/encode.ts"
16
+ * # must return nothing but comments
17
+ * ```
18
+ *
19
+ * What `uqr` gives us that nothing else does: `types[][]`, which labels every module Data / Position /
20
+ * Timing / Alignment / Function / Border. That is what makes the logo hole PROVABLE rather than
21
+ * eyeballed — see {@link coversLocatorPattern}, and the measurement written down above it — and it is
22
+ * also what lets the finder eyes be lifted out of the module loop and drawn as their own shape.
23
+ *
24
+ * What we do NOT take from it: `renderSVG`. The visuals are 100% ours (AGENTS §1).
25
+ */
26
+ /** Error correction. L ~7% · M ~15% · Q ~25% · H ~30% of the code recoverable. */
27
+ type QrEcc = "L" | "M" | "Q" | "H";
28
+ /** The shape every DARK module is drawn as. See {@link MODULE_RADIUS} for why each is safe. */
29
+ type QrModuleShape = "square" | "rounded" | "dot";
30
+ /** The shape the three finder eyes are drawn as. See {@link EYE_RADIUS}. */
31
+ type QrEyeShape = "square" | "rounded" | "circle";
32
+ /**
33
+ * The mark's footprint, as a fraction of the **code's** width — not of the image's.
34
+ *
35
+ * Keying it to the image was measured and is wrong: the quiet zone is a fixed 8 modules while the code
36
+ * grows from 21 to 177, so one fraction of the whole image covers 18% of a version-1 code and 5.9% of a
37
+ * version-40 one. Against the code it is constant: 0.24 (plus the bleed, plus the odd-parity nudge)
38
+ * covers 6.5%–13% of the MODULES at every version 1–40.
39
+ *
40
+ * **Module percentage is the flattering unit, and this comment used to stop there.** A QR codeword is a
41
+ * 2-wide × 4-tall block and Reed–Solomon recovers whole codewords, so erasing one bit destroys eight.
42
+ * Walking the zigzag placement, version 3's hole is 9.6% of the modules and **70% of level H's codeword
43
+ * budget** — the number that actually decides whether a code survives. That is why {@link LOGO_ASPECT_MAX}
44
+ * is 2 rather than the 3.57 at which the hole first reaches a timing pattern: RS runs out first.
45
+ *
46
+ * **A closed union rather than a number, and the reason is the paragraph above.** This constant used to
47
+ * be a scalar, justified by "no number a caller picks can be validated against a payload that has not
48
+ * been encoded yet" — which stopped being true the moment {@link codewordBudget} was written. The value
49
+ * IS encoded by the time a hole is cut, so the cost of any footprint is now measurable. What survives of
50
+ * the old argument is that a caller cannot pick it WELL: the binding number is a share of a codeword
51
+ * budget that moves with version, level and aspect all at once, so three measured steps beat a slider
52
+ * nobody can aim. Over budget warns and never shrinks — a clamp hides the mistake.
53
+ *
54
+ * **The steps are 0.18 / 0.24 / 0.28, and the top one was set by DECODING, not by this arithmetic.**
55
+ * That distinction is the most important thing in this comment, because the obvious method is wrong:
56
+ *
57
+ * `lg` was first set to 0.30 on a budget argument — three distinct footprints at every version, worst
58
+ * case 100% at version 3. Swept through zxing-wasm (294 combinations of version × size × aspect, real
59
+ * rasterized pixels) it produced codes that **do not decode at all**, most reproducibly at version 13,
60
+ * where it measures **45% of budget**. Meanwhile the highest ratio that decoded cleanly was **110%**. So
61
+ * across the range this file can produce, the budget ratio does not order the outcomes: it is necessary,
62
+ * not sufficient, and a step chosen to satisfy it is not thereby safe.
63
+ *
64
+ * Why the ratio under-reads: it counts codewords the hole destroys against a level's NOMINAL share, and
65
+ * Reed–Solomon does not work on a symbol-wide pool. A symbol is split into interleaved blocks with a
66
+ * per-block correction capacity, so a large contiguous hole can exhaust one block while the total still
67
+ * looks affordable — and above that, a mark is also erasing ALIGNMENT patterns, which
68
+ * {@link coversLocatorPattern} deliberately tolerates because decoders predict their positions, but
69
+ * which stop being free once enough of the grid around them is gone.
70
+ *
71
+ * At 0.28 the sweep has exactly one failure in 294: version 3 at aspect 2, which measures 110% and is
72
+ * reported by {@link QrGeometry.budgetExceeded}. Every other combination decodes. That is the shape the
73
+ * two mechanisms are meant to have — the STEP keeps a caller inside the safe region, and the WARNING
74
+ * covers the corner where a short value and a wide mark still collide.
75
+ *
76
+ * Budget spent at level H with a square mark, for reference (and note what it does not predict):
77
+ *
78
+ * | version | `sm` | `md` | `lg` |
79
+ * | ------- | ---- | ---- | ---- |
80
+ * | 3 | 57% | 71% | 100% |
81
+ * | 4 | 57% | 80% | 80% |
82
+ * | 5 | 38% | 53% | 78% |
83
+ * | 6 | 33% | 55% | 55% |
84
+ * | 10 | 24% | 42% | 49% |
85
+ *
86
+ * **The cost paid for 0.28, deliberately: `lg` collapses onto `md` at some versions** — 4 and 6 in that
87
+ * table, because a hole is snapped to an odd module count and neighbouring fractions land on the same
88
+ * integer. So `size="lg"` sometimes renders exactly what `md` does. That was the argument FOR 0.30 and
89
+ * it lost, because "the step is occasionally a no-op" is a disappointment and "the code does not scan"
90
+ * is a defect. Read the collapse as the quantization refusing to sell room the version does not have.
91
+ */
92
+ type QrLogoSize = "sm" | "md" | "lg";
93
+ /** The shape the punched hole is cut as. See {@link LOGO_SHAPE_RADIUS}. */
94
+ type QrLogoShape = "square" | "circle";
95
+
96
+ type QrFormat = "png" | "svg";
97
+ interface QrDownloadOptions {
98
+ /** One button per entry, in the order given. @default ["png"] */
99
+ formats?: readonly QrFormat[];
100
+ /** Basename, no extension — the format supplies it. @default "qr-code" */
101
+ fileName?: string;
102
+ /** The PNG raster's edge in px, snapped DOWN to a whole number of pixels per module. On an `svg` it
103
+ * sets the file's intrinsic display size only, because a vector has no resolution. @default 1024 */
104
+ pixelSize?: number;
105
+ }
106
+ /**
107
+ * A centre mark.
108
+ *
109
+ * A bare node is drawn on the 24×24 grid the icon catalogue uses and gets a SQUARE hole at the `md`
110
+ * footprint. The object form takes two independent settings:
111
+ *
112
+ * - **`aspect`** widens the hole to that ratio — a wordmark at `aspect: 2` is drawn on 48×24 — while
113
+ * holding its AREA, so a wider mark is also a shorter one and never covers more of the code.
114
+ * - **`size`** changes the area itself. Three measured steps; see `QrLogoSize`.
115
+ * - **`shape`** cuts the hole as a box or a disc — a PILL wherever the aspect is not 1. A round mark in a
116
+ * round hole renders at exactly the size a square hole gives it and destroys ~21% fewer codewords,
117
+ * because the corners it never used stop being erased. There is deliberately no soft-box step between
118
+ * the two: a shallow radius on a WHITE-on-white hole flips no module at all below 13 modules wide, so
119
+ * it was a third spelling of `square`; see `LOGO_SHAPE_RADIUS`.
120
+ *
121
+ * They compound, and the budget warning is what reports the combination going too far.
122
+ *
123
+ * **`aspect` and `shape` are both DECLARED rather than measured, and `shape` is the one nothing can
124
+ * check.** `warnAspectOverflow` reports a mark drawn wider than the box its declaration cleared — but it
125
+ * measures a bounding BOX, and a box cannot tell round ink from square. So a square mark declared
126
+ * `shape: "circle"` puts its corners where the code still lives and no warning exists to catch it. The
127
+ * alternative, insetting the mark to the disc's inscribed square, shrinks every honest round mark by 29%
128
+ * to police a caller error — the clamp-hides-the-mistake posture this component rejects everywhere else.
129
+ */
130
+ type QrLogo = React.ReactNode | {
131
+ node: React.ReactNode;
132
+ aspect?: number;
133
+ size?: QrLogoSize;
134
+ shape?: QrLogoShape;
135
+ };
136
+ /**
137
+ * **The pair `ecc` × `logo` is CLOSED at the type: a mark rides on `Q` or `H` only.**
138
+ *
139
+ * Not a preference, and not a "worse setting" — `L`/`M` with a mark is a code no scanner reads. Measured
140
+ * over 15,552 configurations: `L` · `sm` needs a ~120-character value before a marked code survives at
141
+ * all, so every normal 30–80 character URL is in the dead zone, and `L` · `lg` never decodes — 324 of 324,
142
+ * at every length up to 1,200. `M` buys ~15% against the same hole and lands in the same place.
143
+ *
144
+ * It was a dev warning, which is the wrong instrument twice over: a warning is dev-only (a production
145
+ * build ships the dead code in silence), and it addresses whoever is READING the console rather than
146
+ * whoever is writing the call. The two props are answering one question — "how much damage can this code
147
+ * absorb, and how much am I spending on a mark?" — so the answer belongs in one type. The runtime half is
148
+ * in {@link buildQrGeometry}: a mark that arrives at `L`/`M` anyway (a JS caller, an `as any`, props built
149
+ * from a fetched config) is DROPPED and the bare, scannable code renders.
150
+ *
151
+ * Written as a union rather than as `ecc`-narrowing-`logo` because TypeScript has no dependent optional
152
+ * property; the `logo?: never` arm is what makes the illegal pair an error at the call site instead of at
153
+ * a lint step nobody runs.
154
+ */
155
+ type QrLogoLimit = {
156
+ ecc?: Extract<QrEcc, "Q" | "H">;
157
+ logo?: QrLogo;
158
+ } | {
159
+ ecc: Extract<QrEcc, "L" | "M">;
160
+ logo?: never;
161
+ };
162
+ interface QrCodeProps {
163
+ /** The encoded string. Empty, or past the level's capacity, renders an empty plate and dev warns. */
164
+ value: string;
165
+ /** `"L"` and `"M"` cannot carry a `logo` — see {@link QrLogoLimit}.
166
+ * @default "H" — see docs/components/qr-code.md § Error correction */
167
+ ecc?: QrEcc;
168
+ /** A centre mark, drawn INSIDE the svg so it survives the download. Self-contained nodes only.
169
+ * Requires `ecc` `"Q"` or `"H"` (the default) — see {@link QrLogoLimit}. */
170
+ logo?: QrLogo;
171
+ /** The dark colour, as a 3- or 6-digit hex. The plate is always `#ffffff` — see the note on the
172
+ * component. Dev warns below 45% symbol contrast. @default "#000000" */
173
+ color?: `#${string}`;
174
+ /** The three finder RINGS — the 7×7 squares at the corners. Held to the same contrast floor as
175
+ * `color`, because a finder is located BEFORE error correction exists. @default `color` */
176
+ eyeColor?: `#${string}`;
177
+ /** The finders' 3×3 centres. @default `eyeColor` */
178
+ pupilColor?: `#${string}`;
179
+ /** The shape every dark module is drawn as. @default "square" */
180
+ modules?: QrModuleShape;
181
+ /** The shape the three finder eyes are drawn as. @default "square" */
182
+ eyes?: QrEyeShape;
183
+ /** @default false */
184
+ download?: false | AtLeastOne<QrDownloadOptions>;
185
+ /** Overrides the generated accessible name, and removes the `sr-only` copy of the value. */
186
+ "aria-label"?: string;
187
+ labels?: QrCodeLabels;
188
+ /** Layout/spacing only. Bound the WIDTH — `max-w-56`, `w-40`. */
189
+ className?: string;
190
+ }
191
+ /**
192
+ * A QR code drawn as an SVG at print-grade error correction, with an optional centre mark.
193
+ *
194
+ * Built on `uqr` for the module matrix and nothing else — the geometry, the paint and the download are
195
+ * ours. There are no parts and no engine vocabulary in any prop.
196
+ *
197
+ * **The plate is `#ffffff` in both themes, and the dark colour is a literal rather than a token.** A QR
198
+ * is decoded by a camera: a semantic role would invert in `.dark` and stop it scanning, and a downloaded
199
+ * `.svg` is opened with no stylesheet for a `var()` to resolve against — which is also why `color` is a
200
+ * hex rather than a role. Precedent: `payment-input/card-icons.tsx`, where a brand mark's colour is an
201
+ * attribute rather than a style.
202
+ */
203
+ declare function QrCode({ value, ecc, logo, color, eyeColor, pupilColor, modules, eyes, download, "aria-label": ariaLabel, labels, className, }: QrCodeProps & QrLogoLimit): React.JSX.Element;
204
+
205
+ interface QrToFileOptions {
206
+ /** @default "H" */
207
+ ecc?: QrEcc;
208
+ /** The document's intrinsic edge in px, snapped DOWN to a whole number of pixels per module.
209
+ * @default 1024 */
210
+ pixelSize?: number;
211
+ /** The dark colour, as a 3- or 6-digit hex. The plate is always `#ffffff`. @default "#000000" */
212
+ color?: `#${string}`;
213
+ /** The three finder rings. @default `color` */
214
+ eyeColor?: `#${string}`;
215
+ /** The finders' 3×3 centres. @default `eyeColor` */
216
+ pupilColor?: `#${string}`;
217
+ /** @default "square" */
218
+ modules?: QrModuleShape;
219
+ /** @default "square" */
220
+ eyes?: QrEyeShape;
221
+ }
222
+ /** A complete standalone `<svg>` document. Pure, synchronous, server-safe. */
223
+ declare function qrToSvgString(value: string, options?: QrToFileOptions): string;
224
+ /** The same geometry rasterized. Browser only — it draws to a canvas. */
225
+ declare function qrToPngBlob(value: string, options?: QrToFileOptions): Promise<Blob>;
226
+
227
+ export { QrCode, type QrCodeProps, type QrDownloadOptions, type QrEcc, type QrEyeShape, type QrFormat, type QrLogo, type QrLogoLimit, type QrLogoShape, type QrLogoSize, type QrModuleShape, type QrToFileOptions, qrToPngBlob, qrToSvgString };
@@ -0,0 +1,19 @@
1
+ "use client";export { QrCode, qrToPngBlob, qrToSvgString } from './chunk-UJ4WEQHR.js';
2
+ import './chunk-UHSGD4CD.js';
3
+ import './chunk-R25NHHYT.js';
4
+ import './chunk-PFAFTLN3.js';
5
+ import './chunk-MVF7FA4D.js';
6
+ import './chunk-6T3QAO5K.js';
7
+ import './chunk-DWKILXHE.js';
8
+ import './chunk-GPHGPY6T.js';
9
+ import './chunk-52IFGFTL.js';
10
+ import './chunk-KTWTYK5U.js';
11
+ import './chunk-7LSUUEAF.js';
12
+ import './chunk-O4GRKO3I.js';
13
+ import './chunk-YGFTNICV.js';
14
+ import './chunk-ZSNJ6UA3.js';
15
+ import './chunk-ZJIY642R.js';
16
+ import './chunk-SF3HCW4G.js';
17
+ import './chunk-3ZEEGXYF.js';
18
+ //# sourceMappingURL=qr-code.js.map
19
+ //# sourceMappingURL=qr-code.js.map
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { C as ChartLabels } from './labels-DPrh0se9.js';
3
- import { f as ChartSeries, e as ChartPalette, d as ChartLegendPlacement } from './types-DR9rAEy1.js';
2
+ import { C as ChartLabels } from './labels-C992bt7G.js';
3
+ import { f as ChartSeries, e as ChartPalette, d as ChartLegendPlacement } from './types-DYFl0CEB.js';
4
4
  import { T as TooltipTone } from './tooltip-surface-C2I9o2QM.js';
5
5
 
6
6
  interface RadarChartProps<T extends object> {
@@ -1,9 +1,10 @@
1
- "use client";export { RadarChart } from './chunk-GLKFFA7N.js';
2
- import './chunk-OLLD2BZN.js';
3
- import './chunk-22M75A3N.js';
4
- import './chunk-AFYXSZGW.js';
1
+ "use client";export { RadarChart } from './chunk-44AWXIQK.js';
2
+ import './chunk-QZHAL4BL.js';
3
+ import './chunk-MS6DY4CE.js';
4
+ import './chunk-7LSUUEAF.js';
5
5
  import './chunk-ZSNJ6UA3.js';
6
- import './chunk-RJTVCA62.js';
7
- import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZJIY642R.js';
7
+ import './chunk-SF3HCW4G.js';
8
+ import './chunk-3ZEEGXYF.js';
8
9
  //# sourceMappingURL=radar-chart.js.map
9
10
  //# sourceMappingURL=radar-chart.js.map
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { C as ChartLabels } from './labels-DPrh0se9.js';
3
- import { c as ChartDatum, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-DR9rAEy1.js';
2
+ import { C as ChartLabels } from './labels-C992bt7G.js';
3
+ import { c as ChartDatum, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-DYFl0CEB.js';
4
4
  import { T as TooltipTone } from './tooltip-surface-C2I9o2QM.js';
5
5
 
6
6
  interface RadialChartProps {
@@ -1,9 +1,10 @@
1
- "use client";export { RadialChart } from './chunk-ULGCGKOE.js';
2
- import './chunk-OLLD2BZN.js';
3
- import './chunk-22M75A3N.js';
4
- import './chunk-AFYXSZGW.js';
1
+ "use client";export { RadialChart } from './chunk-BKBINQJZ.js';
2
+ import './chunk-QZHAL4BL.js';
3
+ import './chunk-MS6DY4CE.js';
4
+ import './chunk-7LSUUEAF.js';
5
5
  import './chunk-ZSNJ6UA3.js';
6
- import './chunk-RJTVCA62.js';
7
- import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZJIY642R.js';
7
+ import './chunk-SF3HCW4G.js';
8
+ import './chunk-3ZEEGXYF.js';
8
9
  //# sourceMappingURL=radial-chart.js.map
9
10
  //# sourceMappingURL=radial-chart.js.map
package/dist/radio.js CHANGED
@@ -1,14 +1,15 @@
1
- "use client";export { RadioGroup } from './chunk-ZZSNTCCL.js';
1
+ "use client";export { RadioGroup } from './chunk-IESEBPYA.js';
2
2
  import './chunk-7JBNLEJ7.js';
3
3
  import './chunk-D7EE5GWU.js';
4
4
  import './chunk-45Y2ZGNK.js';
5
- import './chunk-5KSD4WKN.js';
6
- import './chunk-KZP6B6B3.js';
7
- import './chunk-AFYXSZGW.js';
5
+ import './chunk-VIKV25VP.js';
6
+ import './chunk-KTWTYK5U.js';
7
+ import './chunk-7LSUUEAF.js';
8
8
  import './chunk-O4GRKO3I.js';
9
- import './chunk-BLIZ3CL3.js';
9
+ import './chunk-YGFTNICV.js';
10
10
  import './chunk-ZSNJ6UA3.js';
11
- import './chunk-RJTVCA62.js';
12
- import './chunk-QDYE5LVT.js';
11
+ import './chunk-ZJIY642R.js';
12
+ import './chunk-SF3HCW4G.js';
13
+ import './chunk-3ZEEGXYF.js';
13
14
  //# sourceMappingURL=radio.js.map
14
15
  //# sourceMappingURL=radio.js.map