@booki-aui/react 0.0.0-stage → 0.2.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 (320) hide show
  1. package/CHANGELOG.md +122 -0
  2. package/LICENSE +21 -0
  3. package/README.md +16 -2
  4. package/dist/access.d.ts +43 -0
  5. package/dist/access.js +15 -0
  6. package/dist/access.js.map +1 -0
  7. package/dist/account-picker.d.ts +40 -0
  8. package/dist/account-picker.js +25 -0
  9. package/dist/account-picker.js.map +1 -0
  10. package/dist/accounting-period-select.d.ts +34 -0
  11. package/dist/accounting-period-select.js +23 -0
  12. package/dist/accounting-period-select.js.map +1 -0
  13. package/dist/activity-timeline.d.ts +37 -0
  14. package/dist/activity-timeline.js +19 -0
  15. package/dist/activity-timeline.js.map +1 -0
  16. package/dist/aged-balances.d.ts +62 -0
  17. package/dist/aged-balances.js +31 -0
  18. package/dist/aged-balances.js.map +1 -0
  19. package/dist/agent-cursor.d.ts +34 -0
  20. package/dist/agent-cursor.js +14 -0
  21. package/dist/agent-cursor.js.map +1 -0
  22. package/dist/agent-presence.d.ts +110 -0
  23. package/dist/agent-presence.js +15 -0
  24. package/dist/agent-presence.js.map +1 -0
  25. package/dist/aging-chart.d.ts +41 -0
  26. package/dist/aging-chart.js +19 -0
  27. package/dist/aging-chart.js.map +1 -0
  28. package/dist/amount-field.d.ts +46 -0
  29. package/dist/amount-field.js +19 -0
  30. package/dist/amount-field.js.map +1 -0
  31. package/dist/amount-input.d.ts +18 -0
  32. package/dist/amount-input.js +12 -0
  33. package/dist/amount-input.js.map +1 -0
  34. package/dist/approval-chain.d.ts +36 -0
  35. package/dist/approval-chain.js +22 -0
  36. package/dist/approval-chain.js.map +1 -0
  37. package/dist/approval-gate.d.ts +19 -0
  38. package/dist/approval-gate.js +10 -0
  39. package/dist/approval-gate.js.map +1 -0
  40. package/dist/attestation-status.d.ts +31 -0
  41. package/dist/attestation-status.js +22 -0
  42. package/dist/attestation-status.js.map +1 -0
  43. package/dist/audit-findings.d.ts +40 -0
  44. package/dist/audit-findings.js +28 -0
  45. package/dist/audit-findings.js.map +1 -0
  46. package/dist/audit-trail.d.ts +22 -0
  47. package/dist/audit-trail.js +10 -0
  48. package/dist/audit-trail.js.map +1 -0
  49. package/dist/audit-workpaper.d.ts +56 -0
  50. package/dist/audit-workpaper.js +35 -0
  51. package/dist/audit-workpaper.js.map +1 -0
  52. package/dist/bank-account-input.d.ts +36 -0
  53. package/dist/bank-account-input.js +22 -0
  54. package/dist/bank-account-input.js.map +1 -0
  55. package/dist/bank-reconciliation.d.ts +38 -0
  56. package/dist/bank-reconciliation.js +20 -0
  57. package/dist/bank-reconciliation.js.map +1 -0
  58. package/dist/bar-chart.d.ts +38 -0
  59. package/dist/bar-chart.js +19 -0
  60. package/dist/bar-chart.js.map +1 -0
  61. package/dist/booki-agent.d.ts +153 -0
  62. package/dist/booki-agent.js +27 -0
  63. package/dist/booki-agent.js.map +1 -0
  64. package/dist/cashflow-waterfall.d.ts +36 -0
  65. package/dist/cashflow-waterfall.js +17 -0
  66. package/dist/cashflow-waterfall.js.map +1 -0
  67. package/dist/change-details-CWpEgc80.d.ts +14 -0
  68. package/dist/chunk-2HM7YSBC.js +92 -0
  69. package/dist/chunk-2HM7YSBC.js.map +1 -0
  70. package/dist/chunk-35QKOOAI.js +27 -0
  71. package/dist/chunk-35QKOOAI.js.map +1 -0
  72. package/dist/chunk-37GDU76M.js +86 -0
  73. package/dist/chunk-37GDU76M.js.map +1 -0
  74. package/dist/chunk-4EVVT6ME.js +136 -0
  75. package/dist/chunk-4EVVT6ME.js.map +1 -0
  76. package/dist/chunk-4GQUOBOG.js +132 -0
  77. package/dist/chunk-4GQUOBOG.js.map +1 -0
  78. package/dist/chunk-4KWEZTO5.js +86 -0
  79. package/dist/chunk-4KWEZTO5.js.map +1 -0
  80. package/dist/chunk-4WC76FUE.js +242 -0
  81. package/dist/chunk-4WC76FUE.js.map +1 -0
  82. package/dist/chunk-62G3T2AA.js +230 -0
  83. package/dist/chunk-62G3T2AA.js.map +1 -0
  84. package/dist/chunk-663UXACN.js +334 -0
  85. package/dist/chunk-663UXACN.js.map +1 -0
  86. package/dist/chunk-6CVPNV7N.js +106 -0
  87. package/dist/chunk-6CVPNV7N.js.map +1 -0
  88. package/dist/chunk-6HWFMC7V.js +140 -0
  89. package/dist/chunk-6HWFMC7V.js.map +1 -0
  90. package/dist/chunk-7MYFKLPB.js +301 -0
  91. package/dist/chunk-7MYFKLPB.js.map +1 -0
  92. package/dist/chunk-7YTOVA5F.js +312 -0
  93. package/dist/chunk-7YTOVA5F.js.map +1 -0
  94. package/dist/chunk-AIGQPM4Y.js +311 -0
  95. package/dist/chunk-AIGQPM4Y.js.map +1 -0
  96. package/dist/chunk-AKC6N4QO.js +414 -0
  97. package/dist/chunk-AKC6N4QO.js.map +1 -0
  98. package/dist/chunk-BZIOOU4I.js +421 -0
  99. package/dist/chunk-BZIOOU4I.js.map +1 -0
  100. package/dist/chunk-CDTDN4LY.js +212 -0
  101. package/dist/chunk-CDTDN4LY.js.map +1 -0
  102. package/dist/chunk-EDWQSKY7.js +161 -0
  103. package/dist/chunk-EDWQSKY7.js.map +1 -0
  104. package/dist/chunk-EKIWL37F.js +488 -0
  105. package/dist/chunk-EKIWL37F.js.map +1 -0
  106. package/dist/chunk-F3C77WLR.js +116 -0
  107. package/dist/chunk-F3C77WLR.js.map +1 -0
  108. package/dist/chunk-FBV7BFEQ.js +84 -0
  109. package/dist/chunk-FBV7BFEQ.js.map +1 -0
  110. package/dist/chunk-GVP2N3K6.js +89 -0
  111. package/dist/chunk-GVP2N3K6.js.map +1 -0
  112. package/dist/chunk-HKYEHBQT.js +19 -0
  113. package/dist/chunk-HKYEHBQT.js.map +1 -0
  114. package/dist/chunk-HQYIFZZT.js +169 -0
  115. package/dist/chunk-HQYIFZZT.js.map +1 -0
  116. package/dist/chunk-HT6HGOLM.js +151 -0
  117. package/dist/chunk-HT6HGOLM.js.map +1 -0
  118. package/dist/chunk-ISPUO3AQ.js +244 -0
  119. package/dist/chunk-ISPUO3AQ.js.map +1 -0
  120. package/dist/chunk-JPUVGWLO.js +207 -0
  121. package/dist/chunk-JPUVGWLO.js.map +1 -0
  122. package/dist/chunk-JWFGUI7A.js +73 -0
  123. package/dist/chunk-JWFGUI7A.js.map +1 -0
  124. package/dist/chunk-K72VT6RJ.js +57 -0
  125. package/dist/chunk-K72VT6RJ.js.map +1 -0
  126. package/dist/chunk-KLDUGI7L.js +150 -0
  127. package/dist/chunk-KLDUGI7L.js.map +1 -0
  128. package/dist/chunk-M2WLQIFE.js +40 -0
  129. package/dist/chunk-M2WLQIFE.js.map +1 -0
  130. package/dist/chunk-M3MCIKF2.js +143 -0
  131. package/dist/chunk-M3MCIKF2.js.map +1 -0
  132. package/dist/chunk-MBLQSZHE.js +77 -0
  133. package/dist/chunk-MBLQSZHE.js.map +1 -0
  134. package/dist/chunk-N7GIVDUU.js +191 -0
  135. package/dist/chunk-N7GIVDUU.js.map +1 -0
  136. package/dist/chunk-NMHTPP6I.js +62 -0
  137. package/dist/chunk-NMHTPP6I.js.map +1 -0
  138. package/dist/chunk-NNP6GNEW.js +65 -0
  139. package/dist/chunk-NNP6GNEW.js.map +1 -0
  140. package/dist/chunk-OTD7VUEC.js +35 -0
  141. package/dist/chunk-OTD7VUEC.js.map +1 -0
  142. package/dist/chunk-OXHKA3UZ.js +30 -0
  143. package/dist/chunk-OXHKA3UZ.js.map +1 -0
  144. package/dist/chunk-OYERLEER.js +21 -0
  145. package/dist/chunk-OYERLEER.js.map +1 -0
  146. package/dist/chunk-PFY3VJ2T.js +231 -0
  147. package/dist/chunk-PFY3VJ2T.js.map +1 -0
  148. package/dist/chunk-PUMSFFEU.js +228 -0
  149. package/dist/chunk-PUMSFFEU.js.map +1 -0
  150. package/dist/chunk-QE7KUQOI.js +84 -0
  151. package/dist/chunk-QE7KUQOI.js.map +1 -0
  152. package/dist/chunk-QGT7VI6I.js +35 -0
  153. package/dist/chunk-QGT7VI6I.js.map +1 -0
  154. package/dist/chunk-QGYS5HS3.js +214 -0
  155. package/dist/chunk-QGYS5HS3.js.map +1 -0
  156. package/dist/chunk-QPSBRSBH.js +167 -0
  157. package/dist/chunk-QPSBRSBH.js.map +1 -0
  158. package/dist/chunk-ROXGVKR2.js +59 -0
  159. package/dist/chunk-ROXGVKR2.js.map +1 -0
  160. package/dist/chunk-RPONJDFZ.js +310 -0
  161. package/dist/chunk-RPONJDFZ.js.map +1 -0
  162. package/dist/chunk-RTCKV4H2.js +65 -0
  163. package/dist/chunk-RTCKV4H2.js.map +1 -0
  164. package/dist/chunk-SHZFZRHV.js +259 -0
  165. package/dist/chunk-SHZFZRHV.js.map +1 -0
  166. package/dist/chunk-SOXPKIQK.js +91 -0
  167. package/dist/chunk-SOXPKIQK.js.map +1 -0
  168. package/dist/chunk-SR2HEE4U.js +76 -0
  169. package/dist/chunk-SR2HEE4U.js.map +1 -0
  170. package/dist/chunk-SX3U6DRW.js +462 -0
  171. package/dist/chunk-SX3U6DRW.js.map +1 -0
  172. package/dist/chunk-T4U2CT35.js +175 -0
  173. package/dist/chunk-T4U2CT35.js.map +1 -0
  174. package/dist/chunk-TSX6BD72.js +251 -0
  175. package/dist/chunk-TSX6BD72.js.map +1 -0
  176. package/dist/chunk-U6PR3V2Q.js +123 -0
  177. package/dist/chunk-U6PR3V2Q.js.map +1 -0
  178. package/dist/chunk-U7NPK4WO.js +135 -0
  179. package/dist/chunk-U7NPK4WO.js.map +1 -0
  180. package/dist/chunk-W6TKXS75.js +55 -0
  181. package/dist/chunk-W6TKXS75.js.map +1 -0
  182. package/dist/chunk-WDME4U42.js +14 -0
  183. package/dist/chunk-WDME4U42.js.map +1 -0
  184. package/dist/chunk-WS2YJSNS.js +62 -0
  185. package/dist/chunk-WS2YJSNS.js.map +1 -0
  186. package/dist/chunk-Y5EYY6WJ.js +174 -0
  187. package/dist/chunk-Y5EYY6WJ.js.map +1 -0
  188. package/dist/chunk-YBMO3W5O.js +191 -0
  189. package/dist/chunk-YBMO3W5O.js.map +1 -0
  190. package/dist/chunk-YOOWFGCU.js +90 -0
  191. package/dist/chunk-YOOWFGCU.js.map +1 -0
  192. package/dist/chunk-ZKNVWQDU.js +230 -0
  193. package/dist/chunk-ZKNVWQDU.js.map +1 -0
  194. package/dist/chunk-ZYLWSGWQ.js +29 -0
  195. package/dist/chunk-ZYLWSGWQ.js.map +1 -0
  196. package/dist/chunk-ZYPW7GCI.js +82 -0
  197. package/dist/chunk-ZYPW7GCI.js.map +1 -0
  198. package/dist/client-requests.d.ts +40 -0
  199. package/dist/client-requests.js +25 -0
  200. package/dist/client-requests.js.map +1 -0
  201. package/dist/close-checklist.d.ts +34 -0
  202. package/dist/close-checklist.js +22 -0
  203. package/dist/close-checklist.js.map +1 -0
  204. package/dist/confirm-dialog.d.ts +43 -0
  205. package/dist/confirm-dialog.js +10 -0
  206. package/dist/confirm-dialog.js.map +1 -0
  207. package/dist/country-toggle.d.ts +16 -0
  208. package/dist/country-toggle.js +10 -0
  209. package/dist/country-toggle.js.map +1 -0
  210. package/dist/currency-select.d.ts +32 -0
  211. package/dist/currency-select.js +23 -0
  212. package/dist/currency-select.js.map +1 -0
  213. package/dist/data-table.d.ts +77 -0
  214. package/dist/data-table.js +30 -0
  215. package/dist/data-table.js.map +1 -0
  216. package/dist/deal-pipeline.d.ts +46 -0
  217. package/dist/deal-pipeline.js +25 -0
  218. package/dist/deal-pipeline.js.map +1 -0
  219. package/dist/document-signoff.d.ts +45 -0
  220. package/dist/document-signoff.js +21 -0
  221. package/dist/document-signoff.js.map +1 -0
  222. package/dist/evidence-list.d.ts +35 -0
  223. package/dist/evidence-list.js +21 -0
  224. package/dist/evidence-list.js.map +1 -0
  225. package/dist/exception-banner.d.ts +15 -0
  226. package/dist/exception-banner.js +10 -0
  227. package/dist/exception-banner.js.map +1 -0
  228. package/dist/expense-claim.d.ts +43 -0
  229. package/dist/expense-claim.js +31 -0
  230. package/dist/expense-claim.js.map +1 -0
  231. package/dist/financial-date-field.d.ts +27 -0
  232. package/dist/financial-date-field.js +17 -0
  233. package/dist/financial-date-field.js.map +1 -0
  234. package/dist/fixed-asset-register.d.ts +59 -0
  235. package/dist/fixed-asset-register.js +31 -0
  236. package/dist/fixed-asset-register.js.map +1 -0
  237. package/dist/forecast-chart.d.ts +38 -0
  238. package/dist/forecast-chart.js +19 -0
  239. package/dist/forecast-chart.js.map +1 -0
  240. package/dist/form-props-Ct7zeZBH.d.ts +25 -0
  241. package/dist/funnel-chart.d.ts +27 -0
  242. package/dist/funnel-chart.js +17 -0
  243. package/dist/funnel-chart.js.map +1 -0
  244. package/dist/iban-input.d.ts +27 -0
  245. package/dist/iban-input.js +16 -0
  246. package/dist/iban-input.js.map +1 -0
  247. package/dist/index.d.ts +644 -0
  248. package/dist/index.js +1082 -0
  249. package/dist/index.js.map +1 -0
  250. package/dist/invoice-editor.d.ts +38 -0
  251. package/dist/invoice-editor.js +26 -0
  252. package/dist/invoice-editor.js.map +1 -0
  253. package/dist/invoice-number-input.d.ts +25 -0
  254. package/dist/invoice-number-input.js +17 -0
  255. package/dist/invoice-number-input.js.map +1 -0
  256. package/dist/kpi-stat.d.ts +34 -0
  257. package/dist/kpi-stat.js +15 -0
  258. package/dist/kpi-stat.js.map +1 -0
  259. package/dist/ledger-table.d.ts +85 -0
  260. package/dist/ledger-table.js +41 -0
  261. package/dist/ledger-table.js.map +1 -0
  262. package/dist/locale.d.ts +22 -0
  263. package/dist/locale.js +13 -0
  264. package/dist/locale.js.map +1 -0
  265. package/dist/money-amount.d.ts +15 -0
  266. package/dist/money-amount.js +10 -0
  267. package/dist/money-amount.js.map +1 -0
  268. package/dist/organization-number-input.d.ts +25 -0
  269. package/dist/organization-number-input.js +17 -0
  270. package/dist/organization-number-input.js.map +1 -0
  271. package/dist/payment-batch.d.ts +58 -0
  272. package/dist/payment-batch.js +31 -0
  273. package/dist/payment-batch.js.map +1 -0
  274. package/dist/payment-confirm.d.ts +19 -0
  275. package/dist/payment-confirm.js +11 -0
  276. package/dist/payment-confirm.js.map +1 -0
  277. package/dist/payment-reference-input.d.ts +27 -0
  278. package/dist/payment-reference-input.js +17 -0
  279. package/dist/payment-reference-input.js.map +1 -0
  280. package/dist/period-lock.d.ts +28 -0
  281. package/dist/period-lock.js +18 -0
  282. package/dist/period-lock.js.map +1 -0
  283. package/dist/recurring-revenue.d.ts +37 -0
  284. package/dist/recurring-revenue.js +18 -0
  285. package/dist/recurring-revenue.js.map +1 -0
  286. package/dist/sca-prompt.d.ts +16 -0
  287. package/dist/sca-prompt.js +10 -0
  288. package/dist/sca-prompt.js.map +1 -0
  289. package/dist/sheet-stack.d.ts +34 -0
  290. package/dist/sheet-stack.js +20 -0
  291. package/dist/sheet-stack.js.map +1 -0
  292. package/dist/stage-duration.d.ts +33 -0
  293. package/dist/stage-duration.js +16 -0
  294. package/dist/stage-duration.js.map +1 -0
  295. package/dist/supplier-invoice-inbox.d.ts +66 -0
  296. package/dist/supplier-invoice-inbox.js +38 -0
  297. package/dist/supplier-invoice-inbox.js.map +1 -0
  298. package/dist/tax-code-select.d.ts +33 -0
  299. package/dist/tax-code-select.js +23 -0
  300. package/dist/tax-code-select.js.map +1 -0
  301. package/dist/text-link.d.ts +33 -0
  302. package/dist/text-link.js +13 -0
  303. package/dist/text-link.js.map +1 -0
  304. package/dist/toasts.d.ts +53 -0
  305. package/dist/toasts.js +17 -0
  306. package/dist/toasts.js.map +1 -0
  307. package/dist/trend-chart.d.ts +43 -0
  308. package/dist/trend-chart.js +19 -0
  309. package/dist/trend-chart.js.map +1 -0
  310. package/dist/vat-return.d.ts +54 -0
  311. package/dist/vat-return.js +23 -0
  312. package/dist/vat-return.js.map +1 -0
  313. package/dist/voucher-composer.d.ts +69 -0
  314. package/dist/voucher-composer.js +15 -0
  315. package/dist/voucher-composer.js.map +1 -0
  316. package/dist/voucher-lines.d.ts +11 -0
  317. package/dist/voucher-lines.js +10 -0
  318. package/dist/voucher-lines.js.map +1 -0
  319. package/docs/llms.txt +214 -0
  320. package/package.json +308 -3
@@ -0,0 +1,644 @@
1
+ export { BookiLocaleContextValue, BookiLocaleProvider, BookiLocaleProviderProps, useBookiLocale, useBookiLocaleOptional } from './locale.js';
2
+ export { MoneyAmount, MoneyAmountProps } from './money-amount.js';
3
+ export { DocsIcon, GitHubIcon, TextLink, TextLinkProps } from './text-link.js';
4
+ export { AmountField, AmountFieldCurrency, AmountFieldInput, AmountFieldProps, AmountFieldRoot } from './amount-field.js';
5
+ export { AmountInput, AmountInputProps } from './amount-input.js';
6
+ export { CurrencySelect, CurrencySelectControl, CurrencySelectList, CurrencySelectOption, CurrencySelectProps, CurrencySelectRoot, CurrencySelectTrigger } from './currency-select.js';
7
+ export { BankAccountInput, BankAccountInputProps, BankAccountRoot } from './bank-account-input.js';
8
+ export { PaymentReferenceInput, PaymentReferenceInputProps, PaymentReferenceRoot } from './payment-reference-input.js';
9
+ export { OrganizationNumberInput, OrganizationNumberInputProps, OrganizationNumberRoot } from './organization-number-input.js';
10
+ export { IbanInput, IbanInputProps, IbanRoot } from './iban-input.js';
11
+ export { FinancialDateField, FinancialDateFieldProps, FinancialDateRoot } from './financial-date-field.js';
12
+ export { AccountingPeriodControl, AccountingPeriodList, AccountingPeriodOption, AccountingPeriodRoot, AccountingPeriodSelect, AccountingPeriodSelectProps, AccountingPeriodTrigger } from './accounting-period-select.js';
13
+ export { InvoiceNumberInput, InvoiceNumberInputProps, InvoiceNumberRoot } from './invoice-number-input.js';
14
+ export { AttestationStatus, AttestationStatusProps, AttestationStatusRoot } from './attestation-status.js';
15
+ export { B as BookiFormProps } from './form-props-Ct7zeZBH.js';
16
+ export { VoucherLines, VoucherLinesProps } from './voucher-lines.js';
17
+ export { VoucherComposer, VoucherComposerProps, VoucherComposerRoot } from './voucher-composer.js';
18
+ export { BankReconciliation, BankReconciliationApprove, BankReconciliationMatch, BankReconciliationProps, BankReconciliationReject, BankReconciliationRoot } from './bank-reconciliation.js';
19
+ export { AccountPicker, AccountPickerControl, AccountPickerEmpty, AccountPickerInput, AccountPickerList, AccountPickerOption, AccountPickerProps, AccountPickerRoot } from './account-picker.js';
20
+ export { TaxCodeSelect, TaxCodeSelectControl, TaxCodeSelectList, TaxCodeSelectOption, TaxCodeSelectProps, TaxCodeSelectRoot, TaxCodeSelectTrigger } from './tax-code-select.js';
21
+ export { PaymentConfirm, PaymentConfirmProps } from './payment-confirm.js';
22
+ export { ScaPrompt, ScaPromptProps } from './sca-prompt.js';
23
+ export { ApprovalGate, ApprovalGateProps } from './approval-gate.js';
24
+ export { ExceptionBanner, ExceptionBannerProps } from './exception-banner.js';
25
+ export { AuditEvent, AuditTrail, AuditTrailProps } from './audit-trail.js';
26
+ export { CountryToggle, CountryToggleProps } from './country-toggle.js';
27
+ export { AgentBridge, AttachAuditOptions, AttachAuditPush, BOOKI_HISTORY_KEYS, BookiHistoryOptions, CreateBookiAgentOptions, RegisterToolsOptions, attachAudit, createBookiAgent, createBookiHistory, createHistory, isHistoryRestoring, proposeChanges, registerTools } from './booki-agent.js';
28
+ export { AgentActivity, AgentPresence, AgentPresenceController, AgentPresenceProps, AgentProposal, AgentProposalProps, ProposedChange, attachAgentPresence, useAgentProposal } from './agent-presence.js';
29
+ export { AgentCursor, AgentCursorProps, narrateNorwegian } from './agent-cursor.js';
30
+ export { ApprovalChain, ApprovalChainApprove, ApprovalChainEscalate, ApprovalChainProps, ApprovalChainReject, ApprovalChainRoot } from './approval-chain.js';
31
+ export { PeriodLock, PeriodLockProps, PeriodLockRoot, PeriodLockSet } from './period-lock.js';
32
+ export { CloseChecklist, CloseChecklistComplete, CloseChecklistProps, CloseChecklistReopen, CloseChecklistRoot, CloseChecklistSignOff } from './close-checklist.js';
33
+ export { InvoiceEditor, InvoiceEditorAdd, InvoiceEditorCell, InvoiceEditorFinalize, InvoiceEditorProps, InvoiceEditorRemove, InvoiceEditorRoot, InvoiceEditorTax } from './invoice-editor.js';
34
+ export { PaymentBatch, PaymentBatchApprove, PaymentBatchProps, PaymentBatchRelease, PaymentBatchRemove, PaymentBatchRoot } from './payment-batch.js';
35
+ export { BookiAccess, BookiAccessProvider, BookiAccessProviderProps, useBookiAccess } from './access.js';
36
+ export { SupplierInvoiceInbox, SupplierInvoiceInboxAccount, SupplierInvoiceInboxApprove, SupplierInvoiceInboxCell, SupplierInvoiceInboxConfirm, SupplierInvoiceInboxNext, SupplierInvoiceInboxPrev, SupplierInvoiceInboxProps, SupplierInvoiceInboxReject, SupplierInvoiceInboxRoot, SupplierInvoiceInboxSearch, SupplierInvoiceInboxSelect, SupplierInvoiceInboxSort, SupplierInvoiceInboxStatusFilter } from './supplier-invoice-inbox.js';
37
+ export { EvidenceList, EvidenceListKind, EvidenceListLink, EvidenceListProps, EvidenceListRemove, EvidenceListRoot } from './evidence-list.js';
38
+ export { ExpenseClaim, ExpenseClaimAccept, ExpenseClaimAdd, ExpenseClaimApprove, ExpenseClaimCell, ExpenseClaimPick, ExpenseClaimProps, ExpenseClaimReject, ExpenseClaimRemove, ExpenseClaimRoot, ExpenseClaimSubmit } from './expense-claim.js';
39
+ export { LedgerTable, LedgerTableBack, LedgerTableCrumb, LedgerTableDocument, LedgerTableFrom, LedgerTableLineAccount, LedgerTableList, LedgerTableNext, LedgerTablePrevious, LedgerTableProps, LedgerTableRoot, LedgerTableRow, LedgerTableSearch, LedgerTableSort, LedgerTableTo, LedgerTableVoucher } from './ledger-table.js';
40
+ export { AgedBalances, AgedBalancesBack, AgedBalancesBucket, AgedBalancesDate, AgedBalancesNext, AgedBalancesParty, AgedBalancesPrev, AgedBalancesProps, AgedBalancesRoot, AgedBalancesSearch, AgedBalancesSort } from './aged-balances.js';
41
+ export { VatReturn, VatReturnBack, VatReturnBoxButton, VatReturnProps, VatReturnReady, VatReturnRoot, VatReturnSubmit } from './vat-return.js';
42
+ export { AuditWorkpaper, AuditWorkpaperCell, AuditWorkpaperConclusion, AuditWorkpaperDraw, AuditWorkpaperMethod, AuditWorkpaperPrepare, AuditWorkpaperProps, AuditWorkpaperResult, AuditWorkpaperReview, AuditWorkpaperRoot, AuditWorkpaperSampler, AuditWorkpaperTick, AuditWorkpaperWithdraw } from './audit-workpaper.js';
43
+ export { AuditFindings, AuditFindingsConfirm, AuditFindingsProps, AuditFindingsReason, AuditFindingsReopen, AuditFindingsRoot, AuditFindingsWithdraw } from './audit-findings.js';
44
+ export { DocumentSignoff, DocumentSignoffProps, DocumentSignoffReason, DocumentSignoffRoot, DocumentSignoffSign, DocumentSignoffWithdraw } from './document-signoff.js';
45
+ export { SheetStack, SheetStackBack, SheetStackClose, SheetStackCrumb, SheetStackProps, SheetStackRoot } from './sheet-stack.js';
46
+ export { ConfirmDialog, ConfirmDialogProps } from './confirm-dialog.js';
47
+ export { AgentToastOptions, BookiToastData, BookiToasts, BookiToastsProps, useAgentToasts } from './toasts.js';
48
+ export { ClientRequests, ClientRequestsAccept, ClientRequestsProps, ClientRequestsReason, ClientRequestsReject, ClientRequestsRemind, ClientRequestsRoot, ClientRequestsSend } from './client-requests.js';
49
+ export { DealPipeline, DealPipelineLost, DealPipelineMove, DealPipelineProps, DealPipelineReason, DealPipelineReopen, DealPipelineRoot, DealPipelineWon } from './deal-pipeline.js';
50
+ export { ActivityTimeline, ActivityTimelineComplete, ActivityTimelineProps, ActivityTimelineRemove, ActivityTimelineRoot } from './activity-timeline.js';
51
+ export { FunnelChart, FunnelChartProps, FunnelChartRoot, FunnelChartStep } from './funnel-chart.js';
52
+ export { ForecastChart, ForecastChartGrouping, ForecastChartPeriod, ForecastChartProps, ForecastChartRoot } from './forecast-chart.js';
53
+ export { RecurringRevenue, RecurringRevenueMovement, RecurringRevenueProps, RecurringRevenueRoot, RecurringRevenueView } from './recurring-revenue.js';
54
+ export { StageDurationChart, StageDurationProps, StageDurationRoot, StageDurationStage } from './stage-duration.js';
55
+ export { FixedAssetRegister, FixedAssetRegisterBack, FixedAssetRegisterCell, FixedAssetRegisterConfirm, FixedAssetRegisterDiscard, FixedAssetRegisterDispose, FixedAssetRegisterOpen, FixedAssetRegisterPeriod, FixedAssetRegisterPropose, FixedAssetRegisterProps, FixedAssetRegisterRoot } from './fixed-asset-register.js';
56
+ export { DataTable, DataTableColumn, DataTableColumnToggle, DataTableNext, DataTablePageSize, DataTablePrev, DataTableProps, DataTableRoot, DataTableSearch, DataTableSelect, DataTableSelectPage, DataTableSort } from './data-table.js';
57
+ export { TrendChart, TrendChartPoint, TrendChartProps, TrendChartRange, TrendChartRoot } from './trend-chart.js';
58
+ export { BarChart, BarChartBar, BarChartMore, BarChartProps, BarChartRoot } from './bar-chart.js';
59
+ export { KpiStat, KpiStatProps, KpiStatRoot } from './kpi-stat.js';
60
+ export { AgingChart, AgingChartBucket, AgingChartClear, AgingChartProps, AgingChartRoot } from './aging-chart.js';
61
+ export { CashflowWaterfall, CashflowWaterfallProps, CashflowWaterfallRoot, CashflowWaterfallStep } from './cashflow-waterfall.js';
62
+ import { ReactNode, ReactElement } from 'react';
63
+ import * as _ui_sdk_core from '@ui-sdk/core';
64
+ export { createChange, definePrimitive } from '@ui-sdk/core';
65
+ export { PartProps, Parts, PrimitiveHandle, createParts, usePart, usePrimitive } from '@ui-sdk/react/primitive';
66
+ export { AgentDecision, AgentDecisionRow, AgentPolicyOptions, actAndRecord, isAllowed, withRecordedAct } from '@booki-aui/primitives/agent-policy';
67
+ export { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
68
+ export { personOnly } from '@booki-aui/primitives/person-only';
69
+ export { AccountOption, DimensionOption, VoucherLine } from '@booki-aui/core/voucher';
70
+ export { Activity, ActivityKind } from '@booki-aui/core/activity';
71
+ export { Actor, Deed, DutyRule, Entity, Permission, Role } from '@booki-aui/core/permissions';
72
+ export { AgedItem, AgingBucket, AgingRow, OpenItem, OpenItemKind, OverdueParty } from '@booki-aui/core/aging';
73
+ export { AgedParty, AgingTotals, agedBalances } from '@booki-aui/primitives/aged-balances';
74
+ export { AgentCursorController, AgentCursorOptions, AgentCursorPhase, AgentCursorState, AgentCursorStep, createAgentCursor } from '@booki-aui/primitives/agent-cursor';
75
+ export { AgingBucketTotal, AgingChartDrilled, agingChart } from '@booki-aui/primitives/aging-chart';
76
+ export { ApprovalDecision, ApprovalLevel, ApprovalRequest } from '@booki-aui/core/approval';
77
+ export { AssetRow, fixedAssetRegister } from '@booki-aui/primitives/fixed-asset-register';
78
+ export { Attachment, AttachmentFile, AttachmentKind, AttachmentRegion } from '@booki-aui/core/attachments';
79
+ export { AttestationStatusValue, attestationStatus } from '@booki-aui/primitives/attestation-status';
80
+ export { BankAccountValue, bankAccount } from '@booki-aui/primitives/bank-account-input';
81
+ export { BankLine, OpenPost, ReconciliationMatch } from '@booki-aui/core/reconciliation';
82
+ export { BarItem, BarRow, barChart } from '@booki-aui/primitives/bar-chart';
83
+ export { BookedSupplierInvoice, SupplierInvoice, SupplierInvoiceCoding, SupplierInvoiceField, SupplierInvoiceStatus } from '@booki-aui/core/supplier-invoice';
84
+ export { CashflowStep, cashflowWaterfall } from '@booki-aui/primitives/cashflow-waterfall';
85
+ export { ChartRange, PeriodValue, WaterfallStep } from '@booki-aui/primitives/chart-math';
86
+ export { ClientRecipient, ClientRequest, ClientRequestStatus } from '@booki-aui/core/client-request';
87
+ export { CloseTask } from '@booki-aui/core/close';
88
+ export { ColumnKind, SortDirection, TableColumn, TableQuery } from '@booki-aui/core/table';
89
+ export { CurrencyTotals, Deal, DealOutcome, DealValueStatus, PipelineStage, StageSummary } from '@booki-aui/core/pipeline';
90
+ export { DepreciationRun, Disposal, FixedAsset, RunAccount, ScheduleEntry } from '@booki-aui/core/fixed-assets';
91
+ export { DrawSampleOptions, auditWorkpaper } from '@booki-aui/primitives/audit-workpaper';
92
+ export { ExpenseClaim as ExpenseClaimData, ExpenseLine, ExpenseLineInput, ExpensePolicy, ExpenseRule, PolicyException } from '@booki-aui/core/expense';
93
+ export { ExpenseExceptionState, expenseClaim } from '@booki-aui/primitives/expense-claim';
94
+ export { FINDING_BASES, FINDING_CATEGORIES, Finding, FindingBasis, FindingCategory, FindingStatus } from '@booki-aui/core/findings';
95
+ export { FindingEvidence, auditFindings } from '@booki-aui/primitives/audit-findings';
96
+ export { ForecastGrouping, ForecastPeriod, forecastChart } from '@booki-aui/primitives/forecast-chart';
97
+ export { FunnelStep, FunnelStepInput, funnelChart } from '@booki-aui/primitives/funnel-chart';
98
+ export { Invoice, InvoiceLine, TaxCategory } from '@booki-aui/core/invoice';
99
+ export { InvoiceLinePatch, invoiceEditor } from '@booki-aui/primitives/invoice-editor';
100
+ export { InvoiceTotals, SupplierInvoiceSummary, supplierInvoiceInbox } from '@booki-aui/primitives/supplier-invoice-inbox';
101
+ export { KpiGood, kpiStat } from '@booki-aui/primitives/kpi-stat';
102
+ export { LedgerDocument, LedgerView, LedgerVoucherRef, LedgerVoucherSummary, ledgerTable } from '@booki-aui/primitives/ledger-table';
103
+ export { LedgerEntry } from '@booki-aui/core/ledger';
104
+ export { Materiality, MaterialityInput, PopulationItem, SampleMethod, SampleSummary, TestResult, TickMark, Workpaper, WorkpaperItem } from '@booki-aui/core/audit';
105
+ export { PaymentBatch as PaymentBatchData, PaymentItem } from '@booki-aui/core/payment-batch';
106
+ export { PaymentSummary, paymentBatch } from '@booki-aui/primitives/payment-batch';
107
+ export { PeriodState, PeriodStatus } from '@booki-aui/core/period-lock';
108
+ export { PipelineOwner, dealPipeline } from '@booki-aui/primitives/deal-pipeline';
109
+ export { RecurringAgreement, RecurringMovement, RecurringView, recurringRevenue } from '@booki-aui/primitives/recurring-revenue';
110
+ export { SheetPlacement, StackSheet } from '@booki-aui/core/sheet-stack';
111
+ export { SignableDocument, SignoffLevel, SignoffMark } from '@booki-aui/core/document-signoff';
112
+ export { StageDuration, StageStay, stageDuration } from '@booki-aui/primitives/stage-duration';
113
+ export { TimelinePerson, activityTimeline } from '@booki-aui/primitives/activity-timeline';
114
+ export { TrendDrilled, TrendSeries, TrendSeriesSnapshot, trendChart } from '@booki-aui/primitives/trend-chart';
115
+ export { VatBoxSummary, VatReturnSubmission, vatReturn } from '@booki-aui/primitives/vat-return';
116
+ export { VatReturnFiling, VatReturnSchema, VatReturnStatus, VatTransaction } from '@booki-aui/core/vat-return';
117
+ export { RowError as VoucherRowError, voucherComposer } from '@booki-aui/primitives/voucher-composer';
118
+ export { accountPicker } from '@booki-aui/primitives/account-picker';
119
+ export { accountingPeriod } from '@booki-aui/primitives/accounting-period-select';
120
+ export { amountField } from '@booki-aui/primitives/amount-field';
121
+ export { approvalChain } from '@booki-aui/primitives/approval-chain';
122
+ export { bankReconciliation } from '@booki-aui/primitives/bank-reconciliation';
123
+ export { clientRequests } from '@booki-aui/primitives/client-requests';
124
+ export { closeChecklist } from '@booki-aui/primitives/close-checklist';
125
+ export { createToaster, toast } from '@ui-sdk/react/toast';
126
+ export { currencySelect } from '@booki-aui/primitives/currency-select';
127
+ export { dataTable } from '@booki-aui/primitives/data-table';
128
+ export { describeEntry, stageChanges } from '@ui-sdk/react/history';
129
+ export { documentSignoff } from '@booki-aui/primitives/document-signoff';
130
+ export { evidenceList } from '@booki-aui/primitives/evidence-list';
131
+ export { financialDate } from '@booki-aui/primitives/financial-date-field';
132
+ export { ibanInput } from '@booki-aui/primitives/iban-input';
133
+ export { invoiceNumber } from '@booki-aui/primitives/invoice-number-input';
134
+ export { organizationNumber } from '@booki-aui/primitives/organization-number-input';
135
+ export { paymentReference } from '@booki-aui/primitives/payment-reference-input';
136
+ export { periodLock } from '@booki-aui/primitives/period-lock';
137
+ export { sheetStack } from '@booki-aui/primitives/sheet-stack';
138
+ export { taxCodeSelect } from '@booki-aui/primitives/tax-code-select';
139
+ import '@booki-aui/core/locale';
140
+ import '@booki-aui/core/money';
141
+ import '@booki-aui/core/financial-date';
142
+ import '@booki-aui/core/period';
143
+ import '@ui-sdk/core/history';
144
+ import '@ui-sdk/react/agent';
145
+ import '@booki-aui/core/msg';
146
+ import '@booki-aui/primitives/access';
147
+
148
+ /**
149
+ * The amount kind of `useBookiField`: a field the product already has, held
150
+ * as integer minor units. Its snapshot key is `minor`, so no number can be
151
+ * read as major units. One definition per file: the contract and ergonomics
152
+ * tests read each file's first `actions` and `controlled` lists.
153
+ *
154
+ * Renders as `<div role="group" data-slot="field-amount">`.
155
+ */
156
+ type BookiFieldAmountOptions = {
157
+ /** Integer minor units; `null` is empty, with `allowEmpty`. */
158
+ value?: number | null;
159
+ /** The field may hold no amount: the snapshot reads `minor: null`, and `setMinor(null)` empties it. */
160
+ allowEmpty?: boolean;
161
+ currency?: string;
162
+ minMinor?: number;
163
+ maxMinor?: number;
164
+ disabled?: boolean;
165
+ readOnly?: boolean;
166
+ onValueChange?: (minor: number | null, details: {
167
+ reason: string;
168
+ source?: string;
169
+ }) => void;
170
+ };
171
+ type BookiFieldAmountState = {
172
+ /** Minor units, or null while the field is empty (with `allowEmpty`). */
173
+ minor: number | null;
174
+ allowEmpty: boolean;
175
+ currency: string;
176
+ minMinor: number;
177
+ maxMinor: number | undefined;
178
+ refusal: string | null;
179
+ disabled: boolean;
180
+ readOnly: boolean;
181
+ };
182
+ declare const bookiFieldAmount: ((initialOptions: BookiFieldAmountOptions & {
183
+ id: string;
184
+ }) => {
185
+ types: {
186
+ options: BookiFieldAmountOptions;
187
+ state: BookiFieldAmountState;
188
+ api: {
189
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
190
+ setMinor: (minor: unknown, event?: Event) => boolean;
191
+ showRefusal: (message: string | null) => void;
192
+ };
193
+ slots: {
194
+ root: _ui_sdk_core.SlotDefinition<BookiFieldAmountState, {
195
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
196
+ setMinor: (minor: unknown, event?: Event) => boolean;
197
+ showRefusal: (message: string | null) => void;
198
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
199
+ minor: number | null;
200
+ refusal: string | null;
201
+ }>>;
202
+ };
203
+ };
204
+ name: string;
205
+ id: string;
206
+ get: () => BookiFieldAmountState;
207
+ subscribe: (listener: _ui_sdk_core.Listener) => () => void;
208
+ readonly api: {
209
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
210
+ setMinor: (minor: unknown, event?: Event) => boolean;
211
+ showRefusal: (message: string | null) => void;
212
+ };
213
+ part: <S extends "root">(slot: S, props?: _ui_sdk_core.SlotProps<{
214
+ root: _ui_sdk_core.SlotDefinition<BookiFieldAmountState, {
215
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
216
+ setMinor: (minor: unknown, event?: Event) => boolean;
217
+ showRefusal: (message: string | null) => void;
218
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
219
+ minor: number | null;
220
+ refusal: string | null;
221
+ }>>;
222
+ }[S]> | undefined, rendering?: boolean) => _ui_sdk_core.Part<BookiFieldAmountState, {
223
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
224
+ setMinor: (minor: unknown, event?: Event) => boolean;
225
+ showRefusal: (message: string | null) => void;
226
+ }, _ui_sdk_core.SlotProps<{
227
+ root: _ui_sdk_core.SlotDefinition<BookiFieldAmountState, {
228
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
229
+ setMinor: (minor: unknown, event?: Event) => boolean;
230
+ showRefusal: (message: string | null) => void;
231
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
232
+ minor: number | null;
233
+ refusal: string | null;
234
+ }>>;
235
+ }[S]>>;
236
+ use: (feature: _ui_sdk_core.Feature<{
237
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
238
+ setMinor: (minor: unknown, event?: Event) => boolean;
239
+ showRefusal: (message: string | null) => void;
240
+ }>) => void;
241
+ preview(next: BookiFieldAmountOptions & {
242
+ id: string;
243
+ }): BookiFieldAmountState | undefined;
244
+ view<T>(state: BookiFieldAmountState, read: () => T, around?: Record<string, object>): T;
245
+ setOptions(next: BookiFieldAmountOptions & {
246
+ id: string;
247
+ }): void;
248
+ startState: (next: BookiFieldAmountOptions & {
249
+ id: string;
250
+ }) => BookiFieldAmountState;
251
+ follow(current: () => BookiFieldAmountOptions & {
252
+ id: string;
253
+ }): (state?: BookiFieldAmountState | undefined, before?: BookiFieldAmountOptions | undefined) => Partial<BookiFieldAmountState> | undefined;
254
+ destroy(): void;
255
+ }) & {
256
+ options: Record<string, _ui_sdk_core.PropSpec> | undefined;
257
+ slots: {
258
+ root: _ui_sdk_core.SlotDefinition<BookiFieldAmountState, {
259
+ /** Agent and product path: integer minor units. Throws a sentence that says what is allowed. */
260
+ setMinor: (minor: unknown, event?: Event) => boolean;
261
+ showRefusal: (message: string | null) => void;
262
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
263
+ minor: number | null;
264
+ refusal: string | null;
265
+ }>>;
266
+ };
267
+ };
268
+
269
+ /**
270
+ * The code kind of `useBookiField`: a select the product already has, whose
271
+ * value is one of a closed list. The snapshot lists the items of a short list
272
+ * and none of a long one; `query({ within })` searches all of them.
273
+ *
274
+ * The list helpers are those of `@booki-aui/primitives/offered` (`shownItems`,
275
+ * `itemsHint`, `refuseUnknown`). That module has no subpath export, so they
276
+ * are written out here from the same `@booki-aui/core/closest` helpers.
277
+ *
278
+ * Renders as `<div role="group" data-slot="field-code">`.
279
+ */
280
+ type BookiFieldCodeItem = {
281
+ value: string;
282
+ label: string;
283
+ };
284
+ type BookiFieldCodeOptions = {
285
+ value?: string;
286
+ options?: BookiFieldCodeItem[];
287
+ /** The field may hold no code: `setCode("")` or `setCode(null)` clears it. */
288
+ allowEmpty?: boolean;
289
+ /**
290
+ * Values only a person may choose, such as a deal's won and lost stages. An
291
+ * agent's `setCode` to one of them is refused; a person's change (with its
292
+ * DOM event) goes through.
293
+ */
294
+ personOnly?: string[];
295
+ disabled?: boolean;
296
+ readOnly?: boolean;
297
+ onValueChange?: (code: string, details: {
298
+ reason: string;
299
+ source?: string;
300
+ }) => void;
301
+ };
302
+ type BookiFieldCodeState = {
303
+ code: string;
304
+ /** Every item, which the agent's `query` searches. */
305
+ options: BookiFieldCodeItem[];
306
+ /** The items the snapshot shows: all of a short list, none of a long one. */
307
+ items: BookiFieldCodeItem[];
308
+ itemsHint: string;
309
+ allowEmpty: boolean;
310
+ /** The values only a person may choose. */
311
+ personOnly: string[];
312
+ refusal: string | null;
313
+ disabled: boolean;
314
+ readOnly: boolean;
315
+ };
316
+ declare const bookiFieldCode: ((initialOptions: BookiFieldCodeOptions & {
317
+ id: string;
318
+ }) => {
319
+ types: {
320
+ options: BookiFieldCodeOptions;
321
+ state: BookiFieldCodeState;
322
+ api: {
323
+ /**
324
+ * Agent and product path: one of the options, by its `value` or its label (any case).
325
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
326
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
327
+ */
328
+ setCode: (code: string | null, event?: Event) => boolean;
329
+ items: () => BookiFieldCodeItem[];
330
+ showRefusal: (message: string | null) => void;
331
+ };
332
+ slots: {
333
+ root: _ui_sdk_core.SlotDefinition<BookiFieldCodeState, {
334
+ /**
335
+ * Agent and product path: one of the options, by its `value` or its label (any case).
336
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
337
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
338
+ */
339
+ setCode: (code: string | null, event?: Event) => boolean;
340
+ items: () => BookiFieldCodeItem[];
341
+ showRefusal: (message: string | null) => void;
342
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
343
+ code: string;
344
+ refusal: string | null;
345
+ }>>;
346
+ };
347
+ };
348
+ name: string;
349
+ id: string;
350
+ get: () => BookiFieldCodeState;
351
+ subscribe: (listener: _ui_sdk_core.Listener) => () => void;
352
+ readonly api: {
353
+ /**
354
+ * Agent and product path: one of the options, by its `value` or its label (any case).
355
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
356
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
357
+ */
358
+ setCode: (code: string | null, event?: Event) => boolean;
359
+ items: () => BookiFieldCodeItem[];
360
+ showRefusal: (message: string | null) => void;
361
+ };
362
+ part: <S extends "root">(slot: S, props?: _ui_sdk_core.SlotProps<{
363
+ root: _ui_sdk_core.SlotDefinition<BookiFieldCodeState, {
364
+ /**
365
+ * Agent and product path: one of the options, by its `value` or its label (any case).
366
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
367
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
368
+ */
369
+ setCode: (code: string | null, event?: Event) => boolean;
370
+ items: () => BookiFieldCodeItem[];
371
+ showRefusal: (message: string | null) => void;
372
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
373
+ code: string;
374
+ refusal: string | null;
375
+ }>>;
376
+ }[S]> | undefined, rendering?: boolean) => _ui_sdk_core.Part<BookiFieldCodeState, {
377
+ /**
378
+ * Agent and product path: one of the options, by its `value` or its label (any case).
379
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
380
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
381
+ */
382
+ setCode: (code: string | null, event?: Event) => boolean;
383
+ items: () => BookiFieldCodeItem[];
384
+ showRefusal: (message: string | null) => void;
385
+ }, _ui_sdk_core.SlotProps<{
386
+ root: _ui_sdk_core.SlotDefinition<BookiFieldCodeState, {
387
+ /**
388
+ * Agent and product path: one of the options, by its `value` or its label (any case).
389
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
390
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
391
+ */
392
+ setCode: (code: string | null, event?: Event) => boolean;
393
+ items: () => BookiFieldCodeItem[];
394
+ showRefusal: (message: string | null) => void;
395
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
396
+ code: string;
397
+ refusal: string | null;
398
+ }>>;
399
+ }[S]>>;
400
+ use: (feature: _ui_sdk_core.Feature<{
401
+ /**
402
+ * Agent and product path: one of the options, by its `value` or its label (any case).
403
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
404
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
405
+ */
406
+ setCode: (code: string | null, event?: Event) => boolean;
407
+ items: () => BookiFieldCodeItem[];
408
+ showRefusal: (message: string | null) => void;
409
+ }>) => void;
410
+ preview(next: BookiFieldCodeOptions & {
411
+ id: string;
412
+ }): BookiFieldCodeState | undefined;
413
+ view<T>(state: BookiFieldCodeState, read: () => T, around?: Record<string, object>): T;
414
+ setOptions(next: BookiFieldCodeOptions & {
415
+ id: string;
416
+ }): void;
417
+ startState: (next: BookiFieldCodeOptions & {
418
+ id: string;
419
+ }) => BookiFieldCodeState;
420
+ follow(current: () => BookiFieldCodeOptions & {
421
+ id: string;
422
+ }): (state?: BookiFieldCodeState | undefined, before?: BookiFieldCodeOptions | undefined) => Partial<BookiFieldCodeState> | undefined;
423
+ destroy(): void;
424
+ }) & {
425
+ options: Record<string, _ui_sdk_core.PropSpec> | undefined;
426
+ slots: {
427
+ root: _ui_sdk_core.SlotDefinition<BookiFieldCodeState, {
428
+ /**
429
+ * Agent and product path: one of the options, by its `value` or its label (any case).
430
+ * With `allowEmpty`, "" or null clears it. Throws a sentence that lists each option as `value (label)`.
431
+ * A value in `personOnly` is refused unless the call carries a person's DOM event.
432
+ */
433
+ setCode: (code: string | null, event?: Event) => boolean;
434
+ items: () => BookiFieldCodeItem[];
435
+ showRefusal: (message: string | null) => void;
436
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
437
+ code: string;
438
+ refusal: string | null;
439
+ }>>;
440
+ };
441
+ };
442
+
443
+ /**
444
+ * The date kind of `useBookiField`: a date field the product already has,
445
+ * held as an ISO `YYYY-MM-DD` string.
446
+ *
447
+ * `isIsoDate` is that of `@booki-aui/core/iso-date`, which has no subpath export,
448
+ * so it is written out here: a date must match the pattern and read back the
449
+ * same, so "2026-02-30" is refused.
450
+ *
451
+ * Renders as `<div role="group" data-slot="field-date">`.
452
+ */
453
+ type BookiFieldDateOptions = {
454
+ value?: string;
455
+ disabled?: boolean;
456
+ readOnly?: boolean;
457
+ onValueChange?: (date: string, details: {
458
+ reason: string;
459
+ source?: string;
460
+ }) => void;
461
+ };
462
+ type BookiFieldDateState = {
463
+ date: string;
464
+ refusal: string | null;
465
+ disabled: boolean;
466
+ readOnly: boolean;
467
+ };
468
+ declare const bookiFieldDate: ((initialOptions: BookiFieldDateOptions & {
469
+ id: string;
470
+ }) => {
471
+ types: {
472
+ options: BookiFieldDateOptions;
473
+ state: BookiFieldDateState;
474
+ api: {
475
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
476
+ setDate: (value: string, event?: Event) => boolean;
477
+ showRefusal: (message: string | null) => void;
478
+ };
479
+ slots: {
480
+ root: _ui_sdk_core.SlotDefinition<BookiFieldDateState, {
481
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
482
+ setDate: (value: string, event?: Event) => boolean;
483
+ showRefusal: (message: string | null) => void;
484
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
485
+ date: string;
486
+ refusal: string | null;
487
+ }>>;
488
+ };
489
+ };
490
+ name: string;
491
+ id: string;
492
+ get: () => BookiFieldDateState;
493
+ subscribe: (listener: _ui_sdk_core.Listener) => () => void;
494
+ readonly api: {
495
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
496
+ setDate: (value: string, event?: Event) => boolean;
497
+ showRefusal: (message: string | null) => void;
498
+ };
499
+ part: <S extends "root">(slot: S, props?: _ui_sdk_core.SlotProps<{
500
+ root: _ui_sdk_core.SlotDefinition<BookiFieldDateState, {
501
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
502
+ setDate: (value: string, event?: Event) => boolean;
503
+ showRefusal: (message: string | null) => void;
504
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
505
+ date: string;
506
+ refusal: string | null;
507
+ }>>;
508
+ }[S]> | undefined, rendering?: boolean) => _ui_sdk_core.Part<BookiFieldDateState, {
509
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
510
+ setDate: (value: string, event?: Event) => boolean;
511
+ showRefusal: (message: string | null) => void;
512
+ }, _ui_sdk_core.SlotProps<{
513
+ root: _ui_sdk_core.SlotDefinition<BookiFieldDateState, {
514
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
515
+ setDate: (value: string, event?: Event) => boolean;
516
+ showRefusal: (message: string | null) => void;
517
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
518
+ date: string;
519
+ refusal: string | null;
520
+ }>>;
521
+ }[S]>>;
522
+ use: (feature: _ui_sdk_core.Feature<{
523
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
524
+ setDate: (value: string, event?: Event) => boolean;
525
+ showRefusal: (message: string | null) => void;
526
+ }>) => void;
527
+ preview(next: BookiFieldDateOptions & {
528
+ id: string;
529
+ }): BookiFieldDateState | undefined;
530
+ view<T>(state: BookiFieldDateState, read: () => T, around?: Record<string, object>): T;
531
+ setOptions(next: BookiFieldDateOptions & {
532
+ id: string;
533
+ }): void;
534
+ startState: (next: BookiFieldDateOptions & {
535
+ id: string;
536
+ }) => BookiFieldDateState;
537
+ follow(current: () => BookiFieldDateOptions & {
538
+ id: string;
539
+ }): (state?: BookiFieldDateState | undefined, before?: BookiFieldDateOptions | undefined) => Partial<BookiFieldDateState> | undefined;
540
+ destroy(): void;
541
+ }) & {
542
+ options: Record<string, _ui_sdk_core.PropSpec> | undefined;
543
+ slots: {
544
+ root: _ui_sdk_core.SlotDefinition<BookiFieldDateState, {
545
+ /** Agent and product path: an ISO date that exists. Throws a sentence that says the format. */
546
+ setDate: (value: string, event?: Event) => boolean;
547
+ showRefusal: (message: string | null) => void;
548
+ }, _ui_sdk_core.BaseSlotProps, NoInfer<{
549
+ date: string;
550
+ refusal: string | null;
551
+ }>>;
552
+ };
553
+ };
554
+
555
+ /**
556
+ * Gives a field the product already has Booki's typed agent actions and rules,
557
+ * without replacing it. The product's own input or select is what `render`
558
+ * returns; the hook keeps the value, refuses what is not allowed, and tells the
559
+ * agent what it may set.
560
+ *
561
+ * const field = useBookiField({ kind: "code", value, options, label: "Kostnadssted", onValueChange }, ({ value, change, refusal }) => (
562
+ * <>
563
+ * <select value={value} onChange={(e) => change(e.target.value, e.nativeEvent)}>…</select>
564
+ * {refusal ? <p>{refusal}</p> : null}
565
+ * </>
566
+ * ))
567
+ *
568
+ * For an amount, keep what the person types as text and parse it with
569
+ * `parseToMinor` from `@booki-aui/core/money`: the install guide has the example.
570
+ *
571
+ * A person's change calls `change(next, event)`, which is the same function the
572
+ * agent's action calls: a refusal comes back as `false` and is shown as
573
+ * `refusal`. `onValueChange` hears every change and its `details.source` is
574
+ * `"agent"` for the agent's.
575
+ */
576
+ type FieldDetails = {
577
+ reason: string;
578
+ source?: string;
579
+ };
580
+ type BookiFieldAmountBase = {
581
+ kind: "amount";
582
+ currency?: string;
583
+ minMinor?: number;
584
+ maxMinor?: number;
585
+ label: string;
586
+ disabled?: boolean;
587
+ readOnly?: boolean;
588
+ };
589
+ /** An amount field that always holds an amount. */
590
+ type BookiFieldAmountFilledArgs = BookiFieldAmountBase & {
591
+ /** Integer minor units, like 12500 for 125.00 NOK. */
592
+ value: number;
593
+ allowEmpty?: false;
594
+ onValueChange?: (minor: number, details: FieldDetails) => void;
595
+ };
596
+ /** An amount field that may be empty: the snapshot reads `minor: null`, and `setMinor(null)` empties it. */
597
+ type BookiFieldAmountEmptyArgs = BookiFieldAmountBase & {
598
+ /** Integer minor units, or `null` for empty. */
599
+ value: number | null;
600
+ allowEmpty: true;
601
+ onValueChange?: (minor: number | null, details: FieldDetails) => void;
602
+ };
603
+ type BookiFieldAmountArgs = BookiFieldAmountFilledArgs | BookiFieldAmountEmptyArgs;
604
+ type BookiFieldCodeArgs = {
605
+ kind: "code";
606
+ value: string;
607
+ options: BookiFieldCodeItem[];
608
+ /** The field may hold no code: `setCode("")` or `setCode(null)` clears it to `""`. */
609
+ allowEmpty?: boolean;
610
+ /** Values only a person may choose (a deal's won and lost stages): an agent's `setCode` to one is refused. */
611
+ personOnly?: string[];
612
+ onValueChange?: (code: string, details: FieldDetails) => void;
613
+ label: string;
614
+ disabled?: boolean;
615
+ readOnly?: boolean;
616
+ };
617
+ type BookiFieldDateArgs = {
618
+ kind: "date";
619
+ /** ISO `YYYY-MM-DD`, or `""` for none. */
620
+ value: string;
621
+ onValueChange?: (date: string, details: FieldDetails) => void;
622
+ label: string;
623
+ disabled?: boolean;
624
+ readOnly?: boolean;
625
+ };
626
+ type BookiFieldArgs = BookiFieldAmountArgs | BookiFieldCodeArgs | BookiFieldDateArgs;
627
+ type BookiFieldRender<T> = {
628
+ /** The value the field holds. */
629
+ value: T;
630
+ /** A person's change: returns false, and sets `refusal`, when it is not allowed. */
631
+ change: (next: T, event?: Event) => boolean;
632
+ /** The sentence for why the last change was refused, or null. Show it next to the field. */
633
+ refusal: string | null;
634
+ };
635
+ /**
636
+ * A field the product already has, with Booki's agent actions and rules. `render`
637
+ * returns the product's own field; `change` and `refusal` are what it needs.
638
+ */
639
+ declare function useBookiField(options: BookiFieldAmountEmptyArgs, render: (field: BookiFieldRender<number | null>) => ReactNode): ReactElement;
640
+ declare function useBookiField(options: BookiFieldAmountFilledArgs, render: (field: BookiFieldRender<number>) => ReactNode): ReactElement;
641
+ declare function useBookiField(options: BookiFieldCodeArgs, render: (field: BookiFieldRender<string>) => ReactNode): ReactElement;
642
+ declare function useBookiField(options: BookiFieldDateArgs, render: (field: BookiFieldRender<string>) => ReactNode): ReactElement;
643
+
644
+ export { type BookiFieldAmountArgs, type BookiFieldAmountEmptyArgs, type BookiFieldAmountFilledArgs, type BookiFieldArgs, type BookiFieldCodeArgs, type BookiFieldDateArgs, type BookiFieldRender, bookiFieldAmount, bookiFieldCode, bookiFieldDate, useBookiField };