jenosize-ui 0.1.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 (182) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +100 -0
  3. package/THIRD-PARTY-NOTICES.md +163 -0
  4. package/dist/Button-Bt7pzM4R.d.ts +82 -0
  5. package/dist/PaymentInput-CKPIPNWH.d.ts +141 -0
  6. package/dist/Select-CVbEQ2Ep.d.ts +118 -0
  7. package/dist/TagInput-CTJYOB4J.d.ts +90 -0
  8. package/dist/avatar.d.ts +161 -0
  9. package/dist/avatar.js +11 -0
  10. package/dist/badge.d.ts +109 -0
  11. package/dist/badge.js +10 -0
  12. package/dist/breadcrumb.d.ts +58 -0
  13. package/dist/breadcrumb.js +7 -0
  14. package/dist/button.d.ts +54 -0
  15. package/dist/button.js +14 -0
  16. package/dist/calendar.d.ts +368 -0
  17. package/dist/calendar.js +21 -0
  18. package/dist/callout.d.ts +70 -0
  19. package/dist/callout.js +16 -0
  20. package/dist/card-nWicloNi.d.ts +80 -0
  21. package/dist/card.d.ts +2 -0
  22. package/dist/card.js +7 -0
  23. package/dist/checkbox.d.ts +133 -0
  24. package/dist/checkbox.js +11 -0
  25. package/dist/chunk-24TO7E32.js +42 -0
  26. package/dist/chunk-3Y5X7B5C.js +146 -0
  27. package/dist/chunk-4OLULPQG.js +202 -0
  28. package/dist/chunk-4P2NBLBW.js +103 -0
  29. package/dist/chunk-52IFGFTL.js +11 -0
  30. package/dist/chunk-5FATN5YD.js +115 -0
  31. package/dist/chunk-5NOBSXJN.js +297 -0
  32. package/dist/chunk-5RAPA22E.js +106 -0
  33. package/dist/chunk-7EUAMHMU.js +16 -0
  34. package/dist/chunk-7EWQKTNQ.js +1336 -0
  35. package/dist/chunk-7HOIZ3UO.js +110 -0
  36. package/dist/chunk-7IU5TMFL.js +452 -0
  37. package/dist/chunk-7JBNLEJ7.js +29 -0
  38. package/dist/chunk-7S2TBALK.js +23 -0
  39. package/dist/chunk-BJUZVYQC.js +188 -0
  40. package/dist/chunk-BVJWBYIG.js +66 -0
  41. package/dist/chunk-CME4DIML.js +65 -0
  42. package/dist/chunk-CYPPEUX5.js +73 -0
  43. package/dist/chunk-D5BTFSL7.js +71 -0
  44. package/dist/chunk-D6TPWNRK.js +387 -0
  45. package/dist/chunk-DJSXIAFH.js +66 -0
  46. package/dist/chunk-DRZCJCBO.js +46 -0
  47. package/dist/chunk-DWKILXHE.js +17 -0
  48. package/dist/chunk-E7ZSWBAK.js +70 -0
  49. package/dist/chunk-EDSK6FEH.js +8 -0
  50. package/dist/chunk-F2K7VJUV.js +114 -0
  51. package/dist/chunk-F6NLE6XJ.js +40 -0
  52. package/dist/chunk-FHHAPGCR.js +32 -0
  53. package/dist/chunk-FXIBGTS5.js +14 -0
  54. package/dist/chunk-GCVA3OIV.js +72 -0
  55. package/dist/chunk-GFOAJVW5.js +336 -0
  56. package/dist/chunk-GRLSUQQE.js +136 -0
  57. package/dist/chunk-GTHJWR3Q.js +77 -0
  58. package/dist/chunk-HMUZE6EK.js +67 -0
  59. package/dist/chunk-I7WU4GTY.js +503 -0
  60. package/dist/chunk-J2BCKBHC.js +151 -0
  61. package/dist/chunk-J36M3KRX.js +1315 -0
  62. package/dist/chunk-J7ZQQFPT.js +113 -0
  63. package/dist/chunk-JP26LPCY.js +234 -0
  64. package/dist/chunk-JTNFJLIY.js +1046 -0
  65. package/dist/chunk-JVJRHBTD.js +50 -0
  66. package/dist/chunk-JYGR44ZC.js +133 -0
  67. package/dist/chunk-KDLPXXD2.js +173 -0
  68. package/dist/chunk-KMSYEE23.js +224 -0
  69. package/dist/chunk-KNYKWUYX.js +52 -0
  70. package/dist/chunk-LME57Z6J.js +138 -0
  71. package/dist/chunk-MFJP5FA7.js +20 -0
  72. package/dist/chunk-MKC5HNA7.js +1692 -0
  73. package/dist/chunk-MQGD2OUF.js +39 -0
  74. package/dist/chunk-MUFHLP4S.js +566 -0
  75. package/dist/chunk-O2LG3PNI.js +74 -0
  76. package/dist/chunk-O4GRKO3I.js +66 -0
  77. package/dist/chunk-OHUFNYGN.js +791 -0
  78. package/dist/chunk-PWKWNDBS.js +243 -0
  79. package/dist/chunk-QA74ITR4.js +103 -0
  80. package/dist/chunk-R6RGJF4L.js +170 -0
  81. package/dist/chunk-S7NNXWIN.js +7 -0
  82. package/dist/chunk-SV56BSUQ.js +162 -0
  83. package/dist/chunk-T7FCG7XV.js +435 -0
  84. package/dist/chunk-THC2ISYP.js +57 -0
  85. package/dist/chunk-VWC72TR3.js +115 -0
  86. package/dist/chunk-W46K56XU.js +216 -0
  87. package/dist/chunk-W5GGOUUI.js +75 -0
  88. package/dist/chunk-WEUJYDCV.js +269 -0
  89. package/dist/chunk-WFY7DKQD.js +279 -0
  90. package/dist/chunk-WZQFC7ZN.js +448 -0
  91. package/dist/chunk-Z3ETJN5G.js +136 -0
  92. package/dist/chunk-ZOOX3TUB.js +192 -0
  93. package/dist/chunk-ZSNJ6UA3.js +42 -0
  94. package/dist/chunk-ZZA2LUTL.js +130 -0
  95. package/dist/chunk-ZZT2E5VT.js +24 -0
  96. package/dist/color-CtSxc1Rh.d.ts +6 -0
  97. package/dist/combobox.d.ts +184 -0
  98. package/dist/combobox.js +21 -0
  99. package/dist/date-input.d.ts +83 -0
  100. package/dist/date-input.js +16 -0
  101. package/dist/date-picker.d.ts +249 -0
  102. package/dist/date-picker.js +29 -0
  103. package/dist/date-utils-7hTFTXNK.d.ts +34 -0
  104. package/dist/date-vMJBKAFK.d.ts +22 -0
  105. package/dist/dialog.d.ts +86 -0
  106. package/dist/dialog.js +15 -0
  107. package/dist/drawer.d.ts +77 -0
  108. package/dist/drawer.js +14 -0
  109. package/dist/dropdown-menu.d.ts +218 -0
  110. package/dist/dropdown-menu.js +10 -0
  111. package/dist/file-trigger.d.ts +42 -0
  112. package/dist/file-trigger.js +3 -0
  113. package/dist/form.d.ts +487 -0
  114. package/dist/form.js +1179 -0
  115. package/dist/header-navigation.d.ts +74 -0
  116. package/dist/header-navigation.js +23 -0
  117. package/dist/icons/app.d.ts +48 -0
  118. package/dist/icons/app.js +282 -0
  119. package/dist/icons/flag.d.ts +817 -0
  120. package/dist/icons/flag.js +58336 -0
  121. package/dist/icons/integration.d.ts +36 -0
  122. package/dist/icons/integration.js +531 -0
  123. package/dist/icons/payment.d.ts +116 -0
  124. package/dist/icons/payment.js +2418 -0
  125. package/dist/icons.d.ts +2013 -0
  126. package/dist/icons.js +2012 -0
  127. package/dist/illustration.d.ts +48 -0
  128. package/dist/illustration.js +4 -0
  129. package/dist/index.d.ts +68 -0
  130. package/dist/index.js +73 -0
  131. package/dist/indicator.d.ts +51 -0
  132. package/dist/indicator.js +7 -0
  133. package/dist/input.d.ts +66 -0
  134. package/dist/input.js +15 -0
  135. package/dist/multi-value-CJb_tnvi.d.ts +8 -0
  136. package/dist/nav-Bla0o_-1.d.ts +98 -0
  137. package/dist/number-input.d.ts +80 -0
  138. package/dist/number-input.js +15 -0
  139. package/dist/options-CPEIgjtd.d.ts +68 -0
  140. package/dist/overflow-Df0h42Oi.d.ts +29 -0
  141. package/dist/pagination.d.ts +77 -0
  142. package/dist/pagination.js +17 -0
  143. package/dist/payment-input.d.ts +7 -0
  144. package/dist/payment-input.js +15 -0
  145. package/dist/popover.d.ts +60 -0
  146. package/dist/popover.js +14 -0
  147. package/dist/progress.d.ts +87 -0
  148. package/dist/progress.js +5 -0
  149. package/dist/radio.d.ts +77 -0
  150. package/dist/radio.js +12 -0
  151. package/dist/select.d.ts +68 -0
  152. package/dist/select.js +24 -0
  153. package/dist/shared-BNXAdgh2.d.ts +9 -0
  154. package/dist/shared-BYXJPnsN.d.ts +11 -0
  155. package/dist/shared-Dc-GgA16.d.ts +42 -0
  156. package/dist/sidebar-navigation.d.ts +129 -0
  157. package/dist/sidebar-navigation.js +15 -0
  158. package/dist/styles.css +2 -0
  159. package/dist/switch.d.ts +23 -0
  160. package/dist/switch.js +7 -0
  161. package/dist/table.d.ts +692 -0
  162. package/dist/table.js +44 -0
  163. package/dist/tabs.d.ts +111 -0
  164. package/dist/tabs.js +8 -0
  165. package/dist/tag-input.d.ts +12 -0
  166. package/dist/tag-input.js +19 -0
  167. package/dist/tag.d.ts +98 -0
  168. package/dist/tag.js +9 -0
  169. package/dist/textarea.d.ts +40 -0
  170. package/dist/textarea.js +12 -0
  171. package/dist/theme-script.d.ts +29 -0
  172. package/dist/theme-script.js +15 -0
  173. package/dist/theme.css +929 -0
  174. package/dist/theme.d.ts +71 -0
  175. package/dist/theme.js +15 -0
  176. package/dist/toast.d.ts +242 -0
  177. package/dist/toast.js +15 -0
  178. package/dist/tooltip.d.ts +70 -0
  179. package/dist/tooltip.js +6 -0
  180. package/dist/tree.d.ts +308 -0
  181. package/dist/tree.js +11 -0
  182. package/package.json +352 -0
package/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jenosize
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ This package redistributes third-party artwork under separate permissive
26
+ licences. Their copyright notices and licence texts are reproduced in
27
+ THIRD-PARTY-NOTICES.md, which is distributed with this package and forms part
28
+ of the licence conditions above.
package/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # jenosize-ui
2
+
3
+ An **opinionated** React component library. Every interactive component ships **fixed styling that
4
+ is ours**, built on a best-in-slot **headless primitive** ([Base UI](https://base-ui.com) —
5
+ `@base-ui/react`); behavior + accessibility come from the primitive, the look comes from us.
6
+
7
+ It is **opinionated, not flexible**: few fixed variants, strong defaults, no arbitrary color/style
8
+ props. `className` is for layout/spacing only. Published to npm as **`jenosize-ui`** (MIT), and
9
+ still installable as a **git dependency** pinned by tag.
10
+
11
+ **ESM-only, Node ≥ 22.** There is no `main`, no `types`, and no `require` export condition — the
12
+ package resolves through `exports` alone. A CJS `require()`, or any tool that ignores `exports`,
13
+ resolves nothing.
14
+
15
+ - **Specs:** [`docs/`](./docs/) — the per-component contracts, theme tokens, and typography.
16
+ - **Implementation plan:** [`docs/IMPLEMENTATION-PLAN.md`](./docs/IMPLEMENTATION-PLAN.md).
17
+ - **Install guide:** [`docs/install.md`](./docs/install.md).
18
+
19
+ ## Components (36)
20
+
21
+ `Avatar` · `Badge` · `Breadcrumb` · `Button` · `Calendar` · `Callout` · `Card` · `Checkbox` ·
22
+ `Combobox` · `DateInput` · `DatePicker` · `Dialog` · `Drawer` · `DropdownMenu` · `FileTrigger` ·
23
+ `HeaderNavigation` · `Illustration` · `Indicator` · `Input` · `NumberInput` · `Pagination` ·
24
+ `PaymentInput` · `Popover` · `Progress` · `RadioGroup` · `Select` · `SidebarNavigation` · `Switch` ·
25
+ `Table` · `Tabs` · `Tag` · `TagInput` · `Textarea` · `Toast` · `Tooltip` · `Tree`
26
+
27
+ Plus a **~1,900-icon catalogue** on its own subpaths (`jenosize-ui/icons` + `/payment` `/app`
28
+ `/integration` `/flag` `/file`) and a **form layer** on `jenosize-ui/form`. One spec per component in
29
+ [`docs/components/`](./docs/components/); `pnpm index:check` keeps this list honest.
30
+
31
+ ## Quick start
32
+
33
+ ```bash
34
+ # install from npm + peers
35
+ pnpm add jenosize-ui
36
+ pnpm add react react-dom @base-ui/react
37
+ pnpm add -D tailwindcss @tailwindcss/postcss # or @tailwindcss/vite
38
+ # nothing else — the hidden engines (react-hook-form, @tanstack/react-table, date-fns,
39
+ # @date-fns/tz, react-day-picker) are real dependencies and come with the library.
40
+ # The icon catalogue needs nothing extra — lucide-react is a plain dependency.
41
+ ```
42
+
43
+ ```css
44
+ /* app/global.css — Tailwind v4 (CSS-first, no tailwind.config.js) */
45
+ @import "tailwindcss";
46
+ @import "jenosize-ui/theme.css"; /* @theme tokens + .dark remap */
47
+ @source "../node_modules/jenosize-ui/dist"; /* let Tailwind scan the lib */
48
+ /* …or skip @source and use the precompiled bundle: @import "jenosize-ui/styles.css"; */
49
+ ```
50
+
51
+ ```tsx
52
+ import { Button } from "jenosize-ui";
53
+
54
+ export default function Page() {
55
+ return (
56
+ <main className="min-h-dvh bg-primary p-8 text-primary">
57
+ <Button variant="primary">Get started</Button>
58
+ </main>
59
+ );
60
+ }
61
+ ```
62
+
63
+ Toggle dark mode by putting `class="dark"` on `<html>`.
64
+
65
+ ## Develop
66
+
67
+ ```bash
68
+ pnpm install
69
+ pnpm hooks:install # once per clone — activates the pre-commit/pre-push gates
70
+ pnpm dev # Vite playground at http://localhost:5173
71
+ pnpm typecheck # tsc --noEmit
72
+ pnpm build # ESM .js + .d.ts + theme.css + styles.css → dist/
73
+ ```
74
+
75
+ Releasing (maintainer): `pnpm release <patch|minor|major> --push --npm` runs the full gate suite,
76
+ bumps + changelogs, commits the built `dist/` onto the tag (never onto `main`), pushes branch + tag,
77
+ then publishes to npm. That local step **is** the publisher — there is no CI in the loop; see
78
+ [`docs/install.md` §c](./docs/install.md).
79
+
80
+ `--npm` is opt-in and refused alongside `--skip-checks` or without `--push`: a git push is
81
+ retryable, an npm publish is a one-way door.
82
+
83
+ Add **`--npm-tag next`** to publish a version that is installable by name but is **not** what a bare
84
+ `pnpm add jenosize-ui` resolves to — the way to test the real tarball before it becomes everyone's
85
+ default. Promote it with `npm dist-tag add jenosize-ui@<version> latest`.
86
+
87
+ ## License
88
+
89
+ MIT — see [`LICENSE`](./LICENSE).
90
+
91
+ This package redistributes third-party artwork (national flags, payment/app/integration brand
92
+ marks, and four illustrations) under separate permissive licences. Their copyright notices and
93
+ full licence texts are in [`THIRD-PARTY-NOTICES.md`](./THIRD-PARTY-NOTICES.md), which ships inside
94
+ the package. The Tier-2 core icon catalogue (`jenosize-ui/icons`) contains **no** glyph data — it
95
+ re-exports lucide-react (ISC), which installs automatically as a plain dependency, so there is no
96
+ optional peer to install and no upstream terms for a consumer to accept. See
97
+ [`docs/icon-policy.md`](./docs/icon-policy.md) § Licensing.
98
+
99
+ The brand marks and flags are third-party trademarks. MIT grants copyright permission, never
100
+ trademark rights, and their inclusion implies no affiliation or endorsement.
@@ -0,0 +1,163 @@
1
+ # Third-party notices
2
+
3
+ `jenosize-ui` is MIT-licensed (see `LICENSE`). It **redistributes** third-party artwork inside its
4
+ published `dist/` bundles under the permissive licences reproduced below. Each licence requires its
5
+ copyright notice to travel with every copy of the work — this file is that notice, and it ships
6
+ inside the npm package.
7
+
8
+ Provenance was established by measurement, not by memory: every `d` attribute in `src/` was scored
9
+ by character-trigram similarity against each upstream corpus. The audit method and per-glyph result
10
+ are recorded in `docs/icon-policy.md` § Tier-1 provenance.
11
+
12
+ | Upstream | Licence | What this package redistributes |
13
+ | ---------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14
+ | [flag-icons](https://github.com/lipis/flag-icons) | MIT | 271 national flags — `src/components/icons/flag/`, shipped as `dist/icons/flag.js` |
15
+ | [Untitled UI React](https://github.com/untitleduico/react) | MIT | 94 brand marks (`icons/payment`, `icons/app`, `icons/integration`), the `PaymentInput` card marks, four illustrations, and a handful of chrome shapes — see §2 |
16
+ | [Lucide](https://github.com/lucide-icons/lucide) | ISC | ~15 stroke glyphs in the internal Tier-1 set `src/components/icons/house.tsx` |
17
+ | [Feather](https://github.com/feathericons/feather) | MIT | the subset of the Lucide glyphs above that Lucide itself derives from Feather |
18
+
19
+ **Not redistributed.** `@untitledui/icons` and `@untitledui/file-icons` are **optional peer
20
+ dependencies**, re-exported by name only — `jenosize-ui/icons` contains no glyph geometry, and
21
+ nothing from those packages is present in `dist`. A consumer who installs them is bound by Untitled
22
+ UI's own licence terms (<https://www.untitledui.com/license>), which are **not** MIT despite that
23
+ package's npm metadata. See `docs/icon-policy.md` § Licensing.
24
+
25
+ **Trademarks.** The payment, app and integration marks (Visa, Mastercard, American Express, JCB,
26
+ UnionPay, Figma, GitHub, Claude, ChatGPT, and others) and the national flags are trademarks or
27
+ state emblems of their respective owners. The MIT and ISC licences below grant **copyright**
28
+ permission only; they grant no trademark rights. Their inclusion here implies no affiliation with,
29
+ sponsorship by, or endorsement from any of those owners. Anyone redistributing or displaying these
30
+ marks is responsible for complying with the owner's own brand-usage terms.
31
+
32
+ ---
33
+
34
+ ## 1. flag-icons
35
+
36
+ Redistributed: the 271 country flags in `src/components/icons/flag/` (4x3 and 1x1), generated by
37
+ `scripts/gen-icons.mjs` from `flag-icons@7.5.0` and inlined into `dist/icons/flag.js`.
38
+
39
+ ```
40
+ The MIT License (MIT)
41
+
42
+ Copyright (c) 2013 Panayiotis Lipiridis
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
45
+ this software and associated documentation files (the "Software"), to deal in
46
+ the Software without restriction, including without limitation the rights to
47
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
48
+ of the Software, and to permit persons to whom the Software is furnished to do
49
+ so, subject to the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be included in all
52
+ copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60
+ SOFTWARE.
61
+ ```
62
+
63
+ ## 2. Untitled UI React (`untitleduico/react`)
64
+
65
+ This is the **open-source MIT repository**, which is a different work from the `@untitledui/icons`
66
+ npm package (see "Not redistributed" above). Geometry re-expressed from it, verified at 1.00
67
+ similarity against the named upstream file:
68
+
69
+ - `src/components/icons/{payment,app,integration}/` — 94 brand marks, from
70
+ `components/foundations/{payment,social,integration}-icons/` → `dist/icons/{payment,app,integration}.js`
71
+ - `src/components/payment-input/card-icons.tsx` — the card brand marks, from
72
+ `components/foundations/payment-icons/`
73
+ - `src/components/illustration/art/{box,cloud,credit-card,documents}.tsx` — from
74
+ `components/shared-assets/illustrations/`
75
+ - `src/components/indicator/Indicator.tsx` — the presence-dot gloss, from
76
+ `components/base/avatar/base-components/avatar-online-indicator.tsx`
77
+ - `src/components/tooltip/Tooltip.tsx` — the arrow wedge, from `components/base/tooltip/tooltip.tsx`
78
+ - `src/components/icons/house.tsx` — `SpinnerIcon` (from `components/base/buttons/button.tsx`),
79
+ `DashSmIcon` and `CheckSmIcon` (from the checkbox)
80
+
81
+ Colour role names, ramp values and the type scale in `src/styles/theme.css` are also held to this
82
+ repository's token set. Every value was read from this MIT checkout; none was taken from Untitled
83
+ UI PRO or from their Figma UI kit, which are separately licensed and were never used here.
84
+
85
+ ```
86
+ MIT License
87
+
88
+ Copyright (c) 2025 Untitled UI
89
+
90
+ Permission is hereby granted, free of charge, to any person obtaining a copy
91
+ of this software and associated documentation files (the "Software"), to deal
92
+ in the Software without restriction, including without limitation the rights
93
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
94
+ copies of the Software, and to permit persons to whom the Software is
95
+ furnished to do so, subject to the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be included in all
98
+ copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
102
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
103
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
104
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
105
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
106
+ SOFTWARE.
107
+ ```
108
+
109
+ ## 3. Lucide
110
+
111
+ `lucide-react` is the source of every icon this library draws — the 2,007-icon public catalogue
112
+ (`src/components/icons/core/`) and the chrome set (`src/components/icons/house.tsx`) are both typed
113
+ re-exports of it. It is declared as a `dependency`, so the geometry is installed alongside rather
114
+ than copied into `dist`.
115
+
116
+ ```
117
+ ISC License
118
+
119
+ Copyright (c) 2026 Lucide Icons and Contributors
120
+
121
+ Permission to use, copy, modify, and/or distribute this software for any
122
+ purpose with or without fee is hereby granted, provided that the above
123
+ copyright notice and this permission notice appear in all copies.
124
+
125
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
126
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
127
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
128
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
129
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
130
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
131
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
132
+ ```
133
+
134
+ ## 4. Feather
135
+
136
+ Lucide's own licence records that a number of its icons derive from the Feather project, and
137
+ several of the glyphs listed in §3 are in that set — `arrow-right`, `alert-triangle`, `check`,
138
+ `chevron-down`, `chevron-left`, `chevron-right`, `chevron-up`, `help-circle`, `info`, `minus`,
139
+ `sidebar`, `x-circle`. Feather's notice therefore travels too.
140
+
141
+ ```
142
+ The MIT License (MIT)
143
+
144
+ Copyright (c) 2013-present Cole Bemis
145
+
146
+ Permission is hereby granted, free of charge, to any person obtaining a copy
147
+ of this software and associated documentation files (the "Software"), to deal
148
+ in the Software without restriction, including without limitation the rights
149
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
150
+ copies of the Software, and to permit persons to whom the Software is
151
+ furnished to do so, subject to the following conditions:
152
+
153
+ The above copyright notice and this permission notice shall be included in all
154
+ copies or substantial portions of the Software.
155
+
156
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
158
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
159
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
160
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
161
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
162
+ SOFTWARE.
163
+ ```
@@ -0,0 +1,82 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import * as React from 'react';
3
+ import { S as SemanticColor } from './color-CtSxc1Rh.js';
4
+ import { O as OverflowMode } from './overflow-Df0h42Oi.js';
5
+
6
+ /** Emphasis / shape — orthogonal to `color` (the tone). `primary` = solid fill ·
7
+ * `secondary` = outlined white box · `tertiary` = ghost · `link` = inline text. */
8
+ type ButtonVariant = "primary" | "secondary" | "tertiary" | "link";
9
+ type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
10
+ interface ButtonProps extends useRender.ComponentProps<"button"> {
11
+ /** Emphasis / shape. @default "primary" */
12
+ variant?: ButtonVariant;
13
+ /**
14
+ * Semantic tone — one of the library's six (`neutral`/`brand`/`success`/`warning`/
15
+ * `error`/`info`). Orthogonal to `variant`: `<Button color="error">` is the old
16
+ * "destructive", `<Button variant="secondary" color="error">` the old
17
+ * "secondary-destructive", `<Button variant="link" color="neutral">` the old
18
+ * "link-gray". Its **default is variant-aware** — `brand` for the brand-forward
19
+ * `primary`/`link`, `neutral` for the quiet `secondary`/`tertiary` — so a bare
20
+ * `<Button variant="…">` keeps its familiar look. Pass `color` to override.
21
+ */
22
+ color?: SemanticColor;
23
+ /**
24
+ * Control size. For box variants this drives height/padding/text/icon size.
25
+ * For link variants (no box) only the text size, gap, and underline offset
26
+ * scale — links have no height/padding. @default "md"
27
+ */
28
+ size?: ButtonSize;
29
+ /** Icon before the label; also the icon source when `iconOnly`. */
30
+ leading?: React.ReactNode;
31
+ /** Icon after the label. Ignored when `iconOnly`. */
32
+ trailing?: React.ReactNode;
33
+ /** Square button showing only `leading`. Requires `aria-label`. @default false */
34
+ iconOnly?: boolean;
35
+ /**
36
+ * Loading state: sets `aria-busy`, disables interaction, keeps full opacity with
37
+ * the hover fill, hides the content (`invisible` — width stays stable), and
38
+ * centers a spinner. See {@link showTextWhileLoading} for the inline mode.
39
+ * @default false
40
+ */
41
+ loading?: boolean;
42
+ /**
43
+ * Opt-in inline loading mode: keeps the label visible and shows the spinner
44
+ * in-flow in the leading slot (icons are hidden) instead of hiding everything
45
+ * behind a centered spinner. @default false
46
+ */
47
+ showTextWhileLoading?: boolean;
48
+ /**
49
+ * Drops the label span's 2px horizontal padding (`px-0.5`) for tight
50
+ * compositions (e.g. inside input groups). Link variants always omit it.
51
+ * @default false
52
+ */
53
+ noTextPadding?: boolean;
54
+ /** Stretches to `w-full` of the container. @default false */
55
+ fullWidth?: boolean;
56
+ /**
57
+ * What the label does when it is wider than the button — see {@link OverflowMode}.
58
+ *
59
+ * Defaults to **`truncate`**, which only bites when the button is actually BOUNDED
60
+ * (`fullWidth` inside a narrow parent, a `max-w-*`, or `className="min-w-0"` in a flex row).
61
+ * Unbounded, a button still sizes to its label exactly as before — the default costs nothing
62
+ * and removes the failure where a too-long label painted OUTSIDE the button's own background
63
+ * (white-on-white, indistinguishable from a clipped box).
64
+ *
65
+ * `wrap` releases the fixed height to `min-h-*` + matching padding so the second line has
66
+ * somewhere to go, and left-aligns the label (a centred ragged block reads worse than a
67
+ * centred single line). Ignored when `iconOnly` — there is no visible label to lay out.
68
+ * @default "truncate"
69
+ */
70
+ overflow?: OverflowMode;
71
+ /**
72
+ * Drop this button's own box (radius/shadow/ring/bg + the offset focus outline) so it sits
73
+ * FLUSH inside an `<Input>` add-on slot. Inside a slot it auto-adds the size-matched divider +
74
+ * bleed + `self-stretch` and defers focus to the host's ring; standalone it keeps an inset
75
+ * focus ring. Intended for the box variants (primarily `secondary`). See `docs/seamless-policy.md`.
76
+ * @default false
77
+ */
78
+ seamless?: boolean;
79
+ }
80
+ declare function Button(props: ButtonProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
81
+
82
+ export { Button as B, type ButtonProps as a, type ButtonSize as b, type ButtonVariant as c };
@@ -0,0 +1,141 @@
1
+ import * as React from 'react';
2
+
3
+ type CardType = "visa" | "mastercard" | "amex" | "unionpay" | "jcb" | "unknown";
4
+ /** Default digit cap — mirrors UUI's public, overridable `maxLength = 19` default.
5
+ * 19 digits covers the longest real PANs (17–19-digit UnionPay); override per call
6
+ * (or via `PaymentInput`'s `maxDigits` prop) for stricter caps. */
7
+ declare const DEFAULT_MAX_DIGITS = 19;
8
+ /** Strip everything that isn't a digit. */
9
+ declare function onlyDigits(raw: string): string;
10
+ /** Detect the card brand by testing the whole number against the brand patterns. */
11
+ declare function detectCardType(raw: string): CardType;
12
+ /** Strip to digits, cap to `maxDigits` (default 19), and group by the DETECTED brand's
13
+ * printed spacing (Amex 4-6-5, everything else 4-4-4-4 — see {@link CARD_GROUPS}). */
14
+ declare function formatCardNumber(raw: string, maxDigits?: number): string;
15
+ /** The Luhn (mod-10) checksum every real card number satisfies. Digits only; a string with
16
+ * fewer than two digits is never valid. */
17
+ declare function luhnValid(raw: string): boolean;
18
+ /**
19
+ * `true` when no LONGER valid length is still reachable for this number's brand — so a verdict
20
+ * about it (notably a Luhn failure) is final rather than a guess about a half-typed number.
21
+ *
22
+ * This is the distinction {@link CARD_LENGTHS} alone cannot make. A Mastercard has one length, so
23
+ * at 16 digits it is settled and a checksum error is certain. A Visa has 13/16/19, so at 13 the
24
+ * number may simply be on its way to 16 — the same digits that would be "wrong" are "unfinished".
25
+ * `maxDigits` bounds what is reachable, so a Visa-only checkout with `maxDigits={16}` settles at 16
26
+ * and gets its instant verdict back.
27
+ *
28
+ * A number at no valid length at all is not settled either: there is nothing to be final about.
29
+ */
30
+ declare function isLengthSettled(raw: string, maxDigits?: number): boolean;
31
+ /** `true` when the number has reached a complete length for its detected brand. Mid-typing
32
+ * numbers — and any `unknown` brand, whose length we can't know — are never "complete". */
33
+ declare function isCompleteCardNumber(raw: string, maxDigits?: number): boolean;
34
+ /** `true` only when a number is COMPLETE for its brand and its Luhn checksum is wrong — the
35
+ * "you mistyped a digit" signal. Never true mid-typing, and never for a {@link LUHN_EXEMPT}
36
+ * brand, so it can drive `invalid` without false positives. */
37
+ declare function hasChecksumError(raw: string, maxDigits?: number): boolean;
38
+ interface CardNumberEdit {
39
+ /** The reformatted value. */
40
+ value: string;
41
+ /** Where the caret must be put back — count-of-digits-preserving, not end-of-string. */
42
+ caret: number;
43
+ }
44
+ /**
45
+ * Reformat after a user edit and say where the caret belongs.
46
+ *
47
+ * Re-masking on every keystroke is what makes a card field usable, and it is also what
48
+ * makes naive implementations throw the caret to the end of the number the moment you edit
49
+ * anywhere but the tail. The fix is to count DIGITS before the caret (separators move, digits
50
+ * don't) and restore the caret after that same digit once the value is regrouped.
51
+ *
52
+ * `inputType` (from the native `InputEvent`) handles the other half of the problem: a
53
+ * Backspace that lands on a separator deletes only that space, which the formatter puts
54
+ * straight back — so the key press appears to do nothing. When we detect that no digit was
55
+ * lost, we remove the adjacent digit instead, which is what the user meant.
56
+ */
57
+ declare function applyCardNumberEdit(rawValue: string, caret: number, previous: string, maxDigits?: number, inputType?: string): CardNumberEdit;
58
+
59
+ type PaymentInputSize = "sm" | "md" | "lg";
60
+ interface PaymentInputChangeMeta {
61
+ cardType: CardType;
62
+ /** Digits only (no spaces). */
63
+ digits: string;
64
+ /** `false` only when `acceptedBrands` is set and a concrete brand outside it is detected. */
65
+ accepted: boolean;
66
+ }
67
+ interface PaymentInputProps<A extends readonly CardType[] = readonly CardType[]> {
68
+ /** Control height/padding/text size. @default "md" */
69
+ size?: PaymentInputSize;
70
+ /** Controlled card number (any format; re-grouped on render). */
71
+ value?: string;
72
+ /** Uncontrolled initial card number. */
73
+ defaultValue?: string;
74
+ /** Fires with the formatted value + detected brand/digits on every edit. */
75
+ onValueChange?: (value: string, meta: PaymentInputChangeMeta) => void;
76
+ /** Visible label (`Field.Label`), auto-associated with the control. */
77
+ label?: string;
78
+ /** Help-circle tooltip after the label (title line). @see tooltipDescription */
79
+ tooltip?: string;
80
+ /** Optional secondary line under {@link tooltip} in the tooltip surface. */
81
+ tooltipDescription?: string;
82
+ /** Helper text under the field (`Field.Description`). Hidden while an `error` shows. */
83
+ hint?: React.ReactNode;
84
+ /** Error state: red border + error ring and `aria-invalid`. @default false */
85
+ invalid?: boolean;
86
+ /** Optional error message (`Field.Error`). A truthy `error` also implies `invalid`.
87
+ * Takes precedence over any `acceptedBrands` brand error. */
88
+ error?: string;
89
+ /** Restrict accepted card brands. When set and the detected brand is not in the
90
+ * list, the field becomes invalid and shows `brandError`. A parent-supplied
91
+ * `error` always wins. @default undefined (accept all) */
92
+ acceptedBrands?: A;
93
+ /** Leading logo shown while no brand is detected (empty field or a number that
94
+ * hasn't matched yet). Display only — auto-detection still wins once a brand is
95
+ * identified while typing. Constrained to `acceptedBrands` (+ `"unknown"`) when that
96
+ * is passed as a literal; otherwise any `CardType`. @default "unknown" */
97
+ defaultBrand?: A[number] | "unknown";
98
+ /** Message shown when the detected brand is not in `acceptedBrands`.
99
+ * @default "This card type isn't accepted." */
100
+ brandError?: string;
101
+ /** Message shown when a **complete** number fails its Luhn checksum — a mistyped digit.
102
+ * Never shown mid-typing, and never for UnionPay (whose PANs are not guaranteed to satisfy
103
+ * Luhn). A parent `error` and an `acceptedBrands` rejection both take precedence.
104
+ * @default "Check the card number — a digit looks wrong." */
105
+ luhnError?: string;
106
+ /** Maximum number of digits accepted/formatted. @default 19 — UUI's overridable
107
+ * `maxLength` parity; the default covers 17–19-digit UnionPay PANs. */
108
+ maxDigits?: number;
109
+ /** Marks the field required for form submission. @default false */
110
+ required?: boolean;
111
+ /** Suppress the visual `*` while keeping `required` semantics (UUI parity). @default false */
112
+ hideRequiredIndicator?: boolean;
113
+ /** Disables the field. @default false */
114
+ disabled?: boolean;
115
+ /** Whether the field column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
116
+ * the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
117
+ * way. Bound the field with a width in `className` (`w-64`, `max-w-56`). @default true */
118
+ fullWidth?: boolean;
119
+ /** Fade the overflowing edge of the number as a scroll hint instead of a hard clip. @default false */
120
+ scrollFade?: boolean;
121
+ /** Placeholder shown when empty. @default "1234 1234 1234 1234" */
122
+ placeholder?: string;
123
+ /** Name of the input (form integration). */
124
+ name?: string;
125
+ /** Id of the underlying input. */
126
+ id?: string;
127
+ /** Start slot: a **node** renders as an icon, a **string** as a muted text affix. Sits to the LEFT
128
+ * of the brand mark, which shifts right (the ordering rule — `src/components/field/shell.tsx`). */
129
+ leading?: React.ReactNode;
130
+ /** End slot: a **node** renders as an icon; a **string** as a muted text affix. */
131
+ trailing?: React.ReactNode;
132
+ /** Bordered/interactive segment flush to the START edge. @see InputAddon */
133
+ leadingAddon?: React.ReactNode;
134
+ /** Bordered/interactive segment flush to the END edge. @see InputAddon */
135
+ trailingAddon?: React.ReactNode;
136
+ /** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
137
+ className?: string;
138
+ }
139
+ declare function PaymentInput<const A extends readonly CardType[] = readonly CardType[]>(props: PaymentInputProps<A>): React.JSX.Element;
140
+
141
+ export { type CardNumberEdit as C, DEFAULT_MAX_DIGITS as D, PaymentInput as P, type CardType as a, type PaymentInputChangeMeta as b, type PaymentInputProps as c, type PaymentInputSize as d, applyCardNumberEdit as e, detectCardType as f, formatCardNumber as g, hasChecksumError as h, isCompleteCardNumber as i, isLengthSettled as j, luhnValid as l, onlyDigits as o };
@@ -0,0 +1,118 @@
1
+ import { Select as Select$1 } from '@base-ui/react/select';
2
+ import * as React from 'react';
3
+ import { M as MultiDisplay } from './multi-value-CJb_tnvi.js';
4
+ import { O as OptionList, L as ListboxOption, a as ListboxAction } from './options-CPEIgjtd.js';
5
+
6
+ type SelectSize = "sm" | "md" | "lg";
7
+ /** How the trigger renders the selected value(s) when `multiple` — the shared list-family
8
+ * contract (`field/multi-value.tsx`), identical on `Combobox`. */
9
+ type SelectDisplay = MultiDisplay;
10
+ /** Trailing/leading selection marker on each row. Defaults to `checkbox` for
11
+ * multi-select (Untitled UI `/multi-select`) and `checkmark` for single. */
12
+ type SelectIndicator = "checkmark" | "checkbox";
13
+ /** Which edge the checkbox marker sits on (checkbox mode only — the checkmark
14
+ * is always trailing, exactly like Untitled UI's `SelectItem`). */
15
+ type SelectIndicatorAlign = "left" | "right";
16
+ type SelectOption<V extends string = string> = ListboxOption<V>;
17
+ interface SelectRootProps<Value extends string = string, Multiple extends boolean | undefined = false> extends Omit<Select$1.Root.Props<Value, Multiple>, "onValueChange" | "items" | "value" | "defaultValue"> {
18
+ /** The current selection. **Checked against `options`:** `Value` is inferred from the values you
19
+ * passed there, so a value that isn't one of them is a compile error rather than a silent
20
+ * no-selection at runtime. `NoInfer` is what makes that work — without it TypeScript would infer
21
+ * `Value` from this prop TOO and widen the union to include the typo. Widened `options` (e.g.
22
+ * `const OPTS: SelectOption[]`) leave `Value = string`, i.e. unchanged behaviour.
23
+ * See `docs/type-safety-policy.md`. */
24
+ value?: (Multiple extends true ? NoInfer<Value>[] : NoInfer<Value>) | null;
25
+ /** Uncontrolled initial selection — checked against `options` exactly like {@link value}. */
26
+ defaultValue?: (Multiple extends true ? NoInfer<Value>[] : NoInfer<Value>) | null;
27
+ /** Fires when the selection changes (`value` is an array when `multiple`). */
28
+ onValueChange?: (value: (Multiple extends true ? Value[] : Value) | (Multiple extends true ? never : null), event: Event) => void;
29
+ /** Layout/spacing only on the field column (margin, width, flex/grid placement), merged via
30
+ * `cn()` — the same contract as every other Field control, and the ONLY class hook (there is
31
+ * no `triggerClassName`). The trigger FILLS the column, so a width utility here sizes it: a
32
+ * `w-*` pins it, a `max-w-*` caps it, a `min-w-*` floors it. Never restyles internals. */
33
+ className?: string;
34
+ /** Whether the field column (label + trigger + hint) takes `w-full` — the same contract as every
35
+ * other Field control, so a Select behaves inside a flex row / grid cell exactly like an Input
36
+ * does. Only OBSERVABLE where the parent would otherwise let the column shrink-to-fit; in a
37
+ * plain block container it fills either way. Bound it with a width in `className` (`w-40`).
38
+ * @default true */
39
+ fullWidth?: boolean;
40
+ /** The rows to render — a flat list or nested `{ label, options }` groups; also the
41
+ * mirror source for the trigger and the multi-select chips. */
42
+ options?: OptionList<SelectOption<Value>>;
43
+ /** Density of trigger + items; shared with descendants via context. @default "md" */
44
+ size?: SelectSize;
45
+ /** Per-row selection marker. @default `multiple ? "checkbox" : "checkmark"` */
46
+ selectionIndicator?: SelectIndicator;
47
+ /** Which edge the `checkbox` marker sits on (checkbox mode only — the checkmark
48
+ * is always trailing, as in Untitled UI's `SelectItem`). @default "left" */
49
+ selectionIndicatorAlign?: SelectIndicatorAlign;
50
+ /** Visible label above the trigger (`Field.Label`, associated via `aria-labelledby`). */
51
+ label?: string;
52
+ /** Suppress the visual required `*` while keeping `required` semantics (UUI parity). */
53
+ hideRequiredIndicator?: boolean;
54
+ /** Help-circle tooltip after the label (title line). @see tooltipDescription */
55
+ tooltip?: string;
56
+ /** Optional secondary line under {@link tooltip} in the tooltip surface. */
57
+ tooltipDescription?: string;
58
+ /** Helper text under the trigger (`Field.Description`). Hidden while an `error` shows. */
59
+ hint?: React.ReactNode;
60
+ /** Error state: red border + error ring and `aria-invalid`. @default false */
61
+ invalid?: boolean;
62
+ /** Optional error message (Base UI `Field.Error`). A truthy `error` also implies `invalid`. */
63
+ error?: string;
64
+ /** Drop the trigger's own box so it sits FLUSH inside an `<Input>` add-on slot. Bypasses the
65
+ * field chrome — no `label`/`hint`/`error`; use `aria-label`. See `docs/seamless-policy.md`.
66
+ * @default false */
67
+ seamless?: boolean;
68
+ }
69
+ /** A pinned footer action row (create / see-all / manage / bulk / load-more) — shared with
70
+ * Combobox via {@link ListboxAction}. The component owns the look + keyboard focus. */
71
+ type SelectAction = ListboxAction;
72
+ interface SelectProps<Value extends string = string, Multiple extends boolean | undefined = false> extends Omit<SelectRootProps<Value, Multiple>, "children"> {
73
+ /** The rows to render — a flat list or nested `{ label, options }` groups. */
74
+ options: OptionList<SelectOption<Value>>;
75
+ /** Text shown (in `--color-text-quaternary`) when nothing is selected. @default "Select…" */
76
+ placeholder?: string;
77
+ /** Multi-select trigger layout — the same contract as `Combobox`: `"tags"` renders one
78
+ * (view-only) pill per selected value, `"count"` a compact `"N selected"` summary.
79
+ * @default "tags" */
80
+ display?: SelectDisplay;
81
+ /** Trailing muted text next to the count (count display only). */
82
+ supportingText?: React.ReactNode;
83
+ /** Row cap for `display="tags"` — the same contract as `TagInput` and `Combobox`: unset = pills
84
+ * wrap and the trigger grows · `1` = one row, scrolling sideways at a fixed bar height ·
85
+ * `n>1` = wrap into n rows, the excess scrolling vertically. Both scroll modes use an edge fade
86
+ * (no visible scrollbar — the row sits inside a `<button>`). */
87
+ maxRows?: number;
88
+ /** Bounded action row(s) pinned under the options — the opinionated replacement for a
89
+ * free-form footer. Each is a brand-styled, keyboard-reachable button (create, "see all",
90
+ * manage, bulk, …). Rendered in order after the options. */
91
+ actions?: SelectAction[];
92
+ /** A muted, non-interactive status line pinned in the footer above the actions
93
+ * (e.g. `"Showing 10 of 240"` — pairs with a "Load more" action). */
94
+ meta?: React.ReactNode;
95
+ /** Start slot: a **node** renders as an icon, a **string** as a muted text affix. */
96
+ leading?: React.ReactNode;
97
+ /** End slot; sits OUTSIDE the chevron, which shifts inward (the ordering rule —
98
+ * `src/components/field/shell.tsx`). */
99
+ trailing?: React.ReactNode;
100
+ /** Bordered/interactive segment flush to the START edge — a unit, a `<NativeSelect seamless>`, or
101
+ * an icon `<Button seamless>`. Wrap static content in `<InputAddon>`. @see InputAddon */
102
+ leadingAddon?: React.ReactNode;
103
+ /** Bordered/interactive segment flush to the END edge. @see InputAddon */
104
+ trailingAddon?: React.ReactNode;
105
+ /** Copy shown in the popup when `options` yields no rows (an empty array, or groups
106
+ * whose `options` are all empty). Accepts a node, so an empty-state CTA (e.g. an
107
+ * "Invite by email" button) is valid — it renders beside, not inside, the listbox. */
108
+ emptyMessage?: React.ReactNode;
109
+ }
110
+ declare function SelectFlat<Value extends string = string, Multiple extends boolean | undefined = false>(props: SelectProps<Value, Multiple>): React.JSX.Element;
111
+ declare namespace SelectFlat {
112
+ var displayName: string;
113
+ }
114
+ /** Data-first, flat-only Select: `<Select options=… label=… onValueChange=… />` is
115
+ * the entire public API — no compound parts (see docs/api-policy.md). */
116
+ declare const Select: typeof SelectFlat;
117
+
118
+ export { Select as S, type SelectAction as a, type SelectDisplay as b, type SelectIndicator as c, type SelectIndicatorAlign as d, type SelectOption as e, type SelectProps as f, type SelectRootProps as g, type SelectSize as h };