@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,82 @@
1
+ "use client";
2
+ import {
3
+ FormValue
4
+ } from "./chunk-OYERLEER.js";
5
+ import {
6
+ useBookiLocaleOptional
7
+ } from "./chunk-GVP2N3K6.js";
8
+
9
+ // src/tax-code-select.tsx
10
+ import { createParts } from "@ui-sdk/react/primitive";
11
+ import { taxCodeSelect } from "@booki-aui/primitives/tax-code-select";
12
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
+ var TAGS = {
14
+ root: "div",
15
+ trigger: "button",
16
+ list: "div",
17
+ option: "div",
18
+ select: "select"
19
+ };
20
+ var parts = createParts(taxCodeSelect, TAGS);
21
+ var TaxCodeSelectRoot = parts.Root;
22
+ var TaxCodeSelectTrigger = parts.Trigger;
23
+ var TaxCodeSelectList = parts.List;
24
+ var TaxCodeSelectOption = parts.Option;
25
+ var TaxCodeSelectControl = parts.Select;
26
+ function TaxCodeSelect({
27
+ value,
28
+ defaultValue,
29
+ codes: codesProp,
30
+ onValueChange,
31
+ name,
32
+ id,
33
+ disabled,
34
+ readOnly,
35
+ required,
36
+ className,
37
+ ...props
38
+ }) {
39
+ const { profile } = useBookiLocaleOptional();
40
+ const codes = codesProp ?? profile.tax.codes;
41
+ const fallback = defaultValue ?? codes.find((c) => c.percent === profile.tax.defaultPercent)?.code ?? codes[0]?.code;
42
+ return /* @__PURE__ */ jsx(
43
+ TaxCodeSelectRoot,
44
+ {
45
+ ...value !== void 0 ? { value } : { defaultValue: fallback },
46
+ codes,
47
+ label: profile.tax.label,
48
+ onValueChange: (code) => {
49
+ onValueChange?.(
50
+ code,
51
+ codes.find((entry) => entry.code === code)
52
+ );
53
+ },
54
+ disabled,
55
+ readOnly,
56
+ className,
57
+ "aria-label": profile.tax.label,
58
+ ...props,
59
+ children: (state) => /* @__PURE__ */ jsxs(Fragment, { children: [
60
+ /* @__PURE__ */ jsx(TaxCodeSelectTrigger, { id, "aria-required": required || void 0, children: (trigger) => /* @__PURE__ */ jsx("span", { "data-slot": "tax-code-select-value", children: trigger.text || "\u2013" }) }),
61
+ /* @__PURE__ */ jsx(TaxCodeSelectList, { children: codes.map((code) => /* @__PURE__ */ jsx(TaxCodeSelectOption, { value: code.code, label: code.label, children: code.label }, code.code)) }),
62
+ /* @__PURE__ */ jsxs(TaxCodeSelectControl, { tabIndex: -1, children: [
63
+ state.value === "" ? /* @__PURE__ */ jsx("option", { value: "", children: "\u2013" }) : null,
64
+ codes.map((code) => /* @__PURE__ */ jsx("option", { value: code.code, children: code.label }, code.code))
65
+ ] }),
66
+ /* @__PURE__ */ jsx(FormValue, { name, value: state.value, disabled })
67
+ ] })
68
+ },
69
+ value === void 0 ? codes.map((c) => c.code).join("|") : void 0
70
+ );
71
+ }
72
+
73
+ export {
74
+ taxCodeSelect,
75
+ TaxCodeSelectRoot,
76
+ TaxCodeSelectTrigger,
77
+ TaxCodeSelectList,
78
+ TaxCodeSelectOption,
79
+ TaxCodeSelectControl,
80
+ TaxCodeSelect
81
+ };
82
+ //# sourceMappingURL=chunk-ZYPW7GCI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tax-code-select.tsx"],"sourcesContent":["import type { TaxCode } from \"@booki-aui/core/locale\";\nimport { createParts, type Parts } from \"@ui-sdk/react/primitive\";\nimport type { ComponentProps } from \"react\";\nimport { FormValue, type BookiFormProps } from \"./form-props.js\";\nimport { useBookiLocaleOptional } from \"./locale.js\";\nimport { taxCodeSelect } from \"@booki-aui/primitives/tax-code-select\";\n\nconst TAGS = {\n root: \"div\",\n trigger: \"button\",\n list: \"div\",\n option: \"div\",\n select: \"select\",\n} as const;\n// Typed by name, so the declarations refer to the definition instead of spelling it out per part.\nconst parts: Parts<typeof taxCodeSelect, typeof TAGS> = createParts(taxCodeSelect, TAGS);\n\nconst TaxCodeSelectRoot: (typeof parts)[\"Root\"] = parts.Root;\n/** The select-only combobox a person opens. */\nconst TaxCodeSelectTrigger: (typeof parts)[\"Trigger\"] = parts.Trigger;\nconst TaxCodeSelectList: (typeof parts)[\"List\"] = parts.List;\nconst TaxCodeSelectOption: (typeof parts)[\"Option\"] = parts.Option;\n/** The native `<select>` fallback, shown by @booki-aui/styles on touch screens. */\nconst TaxCodeSelectControl: (typeof parts)[\"Select\"] = parts.Select;\n\nexport type TaxCodeSelectProps = {\n value?: string;\n defaultValue?: string;\n codes?: TaxCode[];\n onValueChange?: (code: string, tax?: TaxCode) => void;\n className?: string;\n} & BookiFormProps &\n Omit<ComponentProps<\"div\">, \"onChange\" | \"defaultValue\" | \"children\" | \"id\">;\n\nfunction TaxCodeSelect({\n value,\n defaultValue,\n codes: codesProp,\n onValueChange,\n name,\n id,\n disabled,\n readOnly,\n required,\n className,\n ...props\n}: TaxCodeSelectProps) {\n const { profile } = useBookiLocaleOptional();\n const codes = codesProp ?? profile.tax.codes;\n const fallback = defaultValue ?? codes.find((c) => c.percent === profile.tax.defaultPercent)?.code ?? codes[0]?.code;\n\n return (\n <TaxCodeSelectRoot\n // Uncontrolled, a new list of codes (another country) starts over at its\n // default, so the value never names a code the list no longer has.\n key={value === undefined ? codes.map((c) => c.code).join(\"|\") : undefined}\n {...(value !== undefined ? { value } : { defaultValue: fallback })}\n codes={codes}\n label={profile.tax.label}\n onValueChange={(code: string) => {\n onValueChange?.(\n code,\n codes.find((entry) => entry.code === code),\n );\n }}\n disabled={disabled}\n readOnly={readOnly}\n className={className}\n aria-label={profile.tax.label}\n {...props}\n >\n {(state: { value: string }) => (\n <>\n <TaxCodeSelectTrigger id={id} aria-required={required || undefined}>\n {(trigger: { text: string }) => <span data-slot=\"tax-code-select-value\">{trigger.text || \"–\"}</span>}\n </TaxCodeSelectTrigger>\n <TaxCodeSelectList>\n {codes.map((code) => (\n <TaxCodeSelectOption key={code.code} value={code.code} label={code.label}>\n {code.label}\n </TaxCodeSelectOption>\n ))}\n </TaxCodeSelectList>\n <TaxCodeSelectControl tabIndex={-1}>\n {state.value === \"\" ? <option value=\"\">–</option> : null}\n {codes.map((code) => (\n <option key={code.code} value={code.code}>\n {code.label}\n </option>\n ))}\n </TaxCodeSelectControl>\n <FormValue name={name} value={state.value} disabled={disabled} />\n </>\n )}\n </TaxCodeSelectRoot>\n );\n}\n\nexport {\n TaxCodeSelect,\n TaxCodeSelectRoot,\n TaxCodeSelectTrigger,\n TaxCodeSelectList,\n TaxCodeSelectOption,\n TaxCodeSelectControl,\n taxCodeSelect,\n};\n"],"mappings":";;;;;;;;;AACA,SAAS,mBAA+B;AAIxC,SAAS,qBAAqB;AAmEtB,mBAEoC,KASlC,YAXF;AAjER,IAAM,OAAO;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AACV;AAEA,IAAM,QAAkD,YAAY,eAAe,IAAI;AAEvF,IAAM,oBAA4C,MAAM;AAExD,IAAM,uBAAkD,MAAM;AAC9D,IAAM,oBAA4C,MAAM;AACxD,IAAM,sBAAgD,MAAM;AAE5D,IAAM,uBAAiD,MAAM;AAW7D,SAAS,cAAc;AAAA,EACrB;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAuB;AACrB,QAAM,EAAE,QAAQ,IAAI,uBAAuB;AAC3C,QAAM,QAAQ,aAAa,QAAQ,IAAI;AACvC,QAAM,WAAW,gBAAgB,MAAM,KAAK,CAAC,MAAM,EAAE,YAAY,QAAQ,IAAI,cAAc,GAAG,QAAQ,MAAM,CAAC,GAAG;AAEhH,SACE;AAAA,IAAC;AAAA;AAAA,MAIE,GAAI,UAAU,SAAY,EAAE,MAAM,IAAI,EAAE,cAAc,SAAS;AAAA,MAChE;AAAA,MACA,OAAO,QAAQ,IAAI;AAAA,MACnB,eAAe,CAAC,SAAiB;AAC/B;AAAA,UACE;AAAA,UACA,MAAM,KAAK,CAAC,UAAU,MAAM,SAAS,IAAI;AAAA,QAC3C;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,cAAY,QAAQ,IAAI;AAAA,MACvB,GAAG;AAAA,MAEH,WAAC,UACA,iCACE;AAAA,4BAAC,wBAAqB,IAAQ,iBAAe,YAAY,QACtD,WAAC,YAA8B,oBAAC,UAAK,aAAU,yBAAyB,kBAAQ,QAAQ,UAAI,GAC/F;AAAA,QACA,oBAAC,qBACE,gBAAM,IAAI,CAAC,SACV,oBAAC,uBAAoC,OAAO,KAAK,MAAM,OAAO,KAAK,OAChE,eAAK,SADkB,KAAK,IAE/B,CACD,GACH;AAAA,QACA,qBAAC,wBAAqB,UAAU,IAC7B;AAAA,gBAAM,UAAU,KAAK,oBAAC,YAAO,OAAM,IAAG,oBAAC,IAAY;AAAA,UACnD,MAAM,IAAI,CAAC,SACV,oBAAC,YAAuB,OAAO,KAAK,MACjC,eAAK,SADK,KAAK,IAElB,CACD;AAAA,WACH;AAAA,QACA,oBAAC,aAAU,MAAY,OAAO,MAAM,OAAO,UAAoB;AAAA,SACjE;AAAA;AAAA,IArCG,UAAU,SAAY,MAAM,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI;AAAA,EAuClE;AAEJ;","names":[]}
@@ -0,0 +1,40 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { ClientRequest } from '@booki-aui/core/client-request';
4
+ export { ClientRecipient, ClientRequest, ClientRequestStatus } from '@booki-aui/core/client-request';
5
+ import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
6
+ import { Parts } from '@ui-sdk/react/primitive';
7
+ import { clientRequests } from '@booki-aui/primitives/client-requests';
8
+ export { clientRequests } from '@booki-aui/primitives/client-requests';
9
+
10
+ declare const TAGS: {
11
+ readonly root: "div";
12
+ readonly send: "button";
13
+ readonly remind: "button";
14
+ readonly accept: "button";
15
+ readonly reason: "textarea";
16
+ readonly reject: "button";
17
+ };
18
+ declare const parts: Parts<typeof clientRequests, typeof TAGS>;
19
+ declare const ClientRequestsRoot: (typeof parts)["Root"];
20
+ declare const ClientRequestsSend: (typeof parts)["Send"];
21
+ declare const ClientRequestsRemind: (typeof parts)["Remind"];
22
+ declare const ClientRequestsAccept: (typeof parts)["Accept"];
23
+ declare const ClientRequestsReason: (typeof parts)["Reason"];
24
+ declare const ClientRequestsReject: (typeof parts)["Reject"];
25
+ type ClientRequestsProps = {
26
+ requests?: ClientRequest[];
27
+ defaultRequests?: ClientRequest[];
28
+ /** Today as YYYY-MM-DD, for what is overdue. */
29
+ today?: string;
30
+ actor?: string;
31
+ agentActor?: string;
32
+ onRequestsChange?: (requests: ClientRequest[], details: BookiChangeDetails) => void;
33
+ nameOf?: (id: string) => ReactNode;
34
+ className?: string;
35
+ "aria-label"?: string;
36
+ };
37
+ /** Composed list: each request, who it is for, its due date and answer, and a person's buttons. */
38
+ declare function ClientRequests({ requests, defaultRequests, today, actor, agentActor, onRequestsChange, nameOf, className, "aria-label": ariaLabel, }: ClientRequestsProps): react.JSX.Element;
39
+
40
+ export { ClientRequests, ClientRequestsAccept, type ClientRequestsProps, ClientRequestsReason, ClientRequestsReject, ClientRequestsRemind, ClientRequestsRoot, ClientRequestsSend };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import {
3
+ ClientRequests,
4
+ ClientRequestsAccept,
5
+ ClientRequestsReason,
6
+ ClientRequestsReject,
7
+ ClientRequestsRemind,
8
+ ClientRequestsRoot,
9
+ ClientRequestsSend,
10
+ clientRequests
11
+ } from "./chunk-ISPUO3AQ.js";
12
+ import "./chunk-K72VT6RJ.js";
13
+ import "./chunk-GVP2N3K6.js";
14
+ import "./chunk-HKYEHBQT.js";
15
+ export {
16
+ ClientRequests,
17
+ ClientRequestsAccept,
18
+ ClientRequestsReason,
19
+ ClientRequestsReject,
20
+ ClientRequestsRemind,
21
+ ClientRequestsRoot,
22
+ ClientRequestsSend,
23
+ clientRequests
24
+ };
25
+ //# sourceMappingURL=client-requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,34 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { CloseTask } from '@booki-aui/core/close';
4
+ export { CloseTask } from '@booki-aui/core/close';
5
+ import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
6
+ import { Parts } from '@ui-sdk/react/primitive';
7
+ import { closeChecklist } from '@booki-aui/primitives/close-checklist';
8
+ export { closeChecklist } from '@booki-aui/primitives/close-checklist';
9
+
10
+ declare const TAGS: {
11
+ readonly root: "div";
12
+ readonly complete: "button";
13
+ readonly signOff: "button";
14
+ readonly reopen: "button";
15
+ };
16
+ declare const parts: Parts<typeof closeChecklist, typeof TAGS>;
17
+ declare const CloseChecklistRoot: (typeof parts)["Root"];
18
+ declare const CloseChecklistComplete: (typeof parts)["Complete"];
19
+ declare const CloseChecklistSignOff: (typeof parts)["SignOff"];
20
+ declare const CloseChecklistReopen: (typeof parts)["Reopen"];
21
+ type CloseChecklistProps = {
22
+ tasks?: CloseTask[];
23
+ defaultTasks?: CloseTask[];
24
+ actor?: string;
25
+ agentActor?: string;
26
+ onTasksChange?: (tasks: CloseTask[], details: BookiChangeDetails) => void;
27
+ nameOf?: (id: string) => ReactNode;
28
+ className?: string;
29
+ "aria-label"?: string;
30
+ };
31
+ /** Composed checklist: every task, what it waits for, who did it, and its buttons. */
32
+ declare function CloseChecklist({ tasks, defaultTasks, actor, agentActor, onTasksChange, nameOf, className, "aria-label": ariaLabel, }: CloseChecklistProps): react.JSX.Element;
33
+
34
+ export { CloseChecklist, CloseChecklistComplete, type CloseChecklistProps, CloseChecklistReopen, CloseChecklistRoot, CloseChecklistSignOff };
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import {
3
+ CloseChecklist,
4
+ CloseChecklistComplete,
5
+ CloseChecklistReopen,
6
+ CloseChecklistRoot,
7
+ CloseChecklistSignOff,
8
+ closeChecklist
9
+ } from "./chunk-F3C77WLR.js";
10
+ import "./chunk-U7NPK4WO.js";
11
+ import "./chunk-K72VT6RJ.js";
12
+ import "./chunk-GVP2N3K6.js";
13
+ import "./chunk-HKYEHBQT.js";
14
+ export {
15
+ CloseChecklist,
16
+ CloseChecklistComplete,
17
+ CloseChecklistReopen,
18
+ CloseChecklistRoot,
19
+ CloseChecklistSignOff,
20
+ closeChecklist
21
+ };
22
+ //# sourceMappingURL=close-checklist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,43 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ type ConfirmDialogProps = {
5
+ /** The question, like "Post voucher 1042?". */
6
+ title: ReactNode;
7
+ /** What agreeing does, and whether it can be undone. */
8
+ description?: ReactNode;
9
+ /** What is being decided: amounts, accounts, the voucher. Shown between the question and the answer. */
10
+ children?: ReactNode;
11
+ /** The button that opens it. Leave out to open it with `open` / `defaultOpen`. */
12
+ trigger?: ReactNode;
13
+ open?: boolean;
14
+ defaultOpen?: boolean;
15
+ onOpenChange?: (open: boolean) => void;
16
+ /**
17
+ * Runs when the person agrees. A returned Promise keeps the dialog open,
18
+ * marks the button pending and shows a rejection's message in the dialog.
19
+ */
20
+ onConfirm: () => unknown;
21
+ confirmLabel?: ReactNode;
22
+ cancelLabel?: ReactNode;
23
+ /** "danger" for what cannot be undone: deleting, releasing a payment. */
24
+ tone?: "default" | "danger";
25
+ /** A word the person types before the button works, like the voucher number. */
26
+ confirmWord?: string;
27
+ /**
28
+ * The sentence an agent's bridge hears when it tries the decision. Every
29
+ * confirm dialog is a person's decision: the answer (and the typed word)
30
+ * sit inside `data-agent-confirm`, so an agent can read the question and
31
+ * cancel, never agree.
32
+ */
33
+ personOnly?: string;
34
+ className?: string;
35
+ };
36
+ /**
37
+ * A question a person answers before something happens: post, pay, release,
38
+ * delete. Cancel is free for anyone; agreeing is a person's, whatever an
39
+ * agent's role. The answer can run async work and stays open until it is done.
40
+ */
41
+ declare function ConfirmDialog({ title, description, children, trigger, open, defaultOpen, onOpenChange, onConfirm, confirmLabel, cancelLabel, tone, confirmWord, personOnly, className, }: ConfirmDialogProps): react.JSX.Element;
42
+
43
+ export { ConfirmDialog, type ConfirmDialogProps };
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import {
3
+ ConfirmDialog
4
+ } from "./chunk-U6PR3V2Q.js";
5
+ import "./chunk-GVP2N3K6.js";
6
+ import "./chunk-HKYEHBQT.js";
7
+ export {
8
+ ConfirmDialog
9
+ };
10
+ //# sourceMappingURL=confirm-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,16 @@
1
+ import * as react from 'react';
2
+ import { CountryCode } from '@booki-aui/core/locale';
3
+
4
+ type CountryToggleProps = {
5
+ className?: string;
6
+ value?: CountryCode;
7
+ onValueChange?: (country: CountryCode) => void;
8
+ /** The countries to offer. Defaults to Norway and the United States. */
9
+ options?: {
10
+ code: CountryCode;
11
+ label: string;
12
+ }[];
13
+ };
14
+ declare function CountryToggle({ className, value, onValueChange, options }: CountryToggleProps): react.JSX.Element;
15
+
16
+ export { CountryToggle, type CountryToggleProps };
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import {
3
+ CountryToggle
4
+ } from "./chunk-M2WLQIFE.js";
5
+ import "./chunk-GVP2N3K6.js";
6
+ import "./chunk-HKYEHBQT.js";
7
+ export {
8
+ CountryToggle
9
+ };
10
+ //# sourceMappingURL=country-toggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,32 @@
1
+ import * as react from 'react';
2
+ import { ComponentProps } from 'react';
3
+ import { Parts } from '@ui-sdk/react/primitive';
4
+ import { B as BookiFormProps } from './form-props-Ct7zeZBH.js';
5
+ import { currencySelect } from '@booki-aui/primitives/currency-select';
6
+ export { currencySelect } from '@booki-aui/primitives/currency-select';
7
+
8
+ declare const TAGS: {
9
+ readonly root: "div";
10
+ readonly trigger: "button";
11
+ readonly list: "div";
12
+ readonly option: "div";
13
+ readonly select: "select";
14
+ };
15
+ declare const parts: Parts<typeof currencySelect, typeof TAGS>;
16
+ declare const CurrencySelectRoot: (typeof parts)["Root"];
17
+ /** The select-only combobox a person opens. */
18
+ declare const CurrencySelectTrigger: (typeof parts)["Trigger"];
19
+ declare const CurrencySelectList: (typeof parts)["List"];
20
+ declare const CurrencySelectOption: (typeof parts)["Option"];
21
+ /** The native `<select>` fallback, shown by @booki-aui/styles on touch screens. */
22
+ declare const CurrencySelectControl: (typeof parts)["Select"];
23
+ type CurrencySelectProps = {
24
+ value?: string;
25
+ defaultValue?: string;
26
+ currencies?: readonly string[];
27
+ onValueChange?: (currency: string) => void;
28
+ className?: string;
29
+ } & BookiFormProps & Omit<ComponentProps<"div">, "onChange" | "defaultValue" | "children" | "id">;
30
+ declare function CurrencySelect({ value, defaultValue, currencies, onValueChange, name, id, disabled, readOnly, required, className, ...props }: CurrencySelectProps): react.JSX.Element;
31
+
32
+ export { CurrencySelect, CurrencySelectControl, CurrencySelectList, CurrencySelectOption, type CurrencySelectProps, CurrencySelectRoot, CurrencySelectTrigger };
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ import {
3
+ CurrencySelect,
4
+ CurrencySelectControl,
5
+ CurrencySelectList,
6
+ CurrencySelectOption,
7
+ CurrencySelectRoot,
8
+ CurrencySelectTrigger,
9
+ currencySelect
10
+ } from "./chunk-JWFGUI7A.js";
11
+ import "./chunk-OYERLEER.js";
12
+ import "./chunk-GVP2N3K6.js";
13
+ import "./chunk-HKYEHBQT.js";
14
+ export {
15
+ CurrencySelect,
16
+ CurrencySelectControl,
17
+ CurrencySelectList,
18
+ CurrencySelectOption,
19
+ CurrencySelectRoot,
20
+ CurrencySelectTrigger,
21
+ currencySelect
22
+ };
23
+ //# sourceMappingURL=currency-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,77 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { TableQuery } from '@booki-aui/core/table';
4
+ export { ColumnKind, SortDirection, TableColumn, TableQuery } from '@booki-aui/core/table';
5
+ import { Parts } from '@ui-sdk/react/primitive';
6
+ import { AnyRow, DataTableColumn as DataTableColumn$1, dataTable } from '@booki-aui/primitives/data-table';
7
+ export { dataTable } from '@booki-aui/primitives/data-table';
8
+
9
+ /** A column: the shared definition from `@booki-aui/core/table`, plus how a person sees the cell. */
10
+ type DataTableColumn<Row> = DataTableColumn$1<Row, ReactNode>;
11
+ declare const TAGS: {
12
+ readonly root: "div";
13
+ readonly search: "input";
14
+ readonly column: "input";
15
+ readonly sort: "button";
16
+ readonly select: "input";
17
+ readonly selectpage: "input";
18
+ readonly prev: "button";
19
+ readonly next: "button";
20
+ readonly pagesize: "select";
21
+ };
22
+ declare const parts: Parts<typeof dataTable, typeof TAGS>;
23
+ declare const DataTableRoot: (typeof parts)["Root"];
24
+ declare const DataTableSearch: (typeof parts)["Search"];
25
+ declare const DataTableColumnToggle: (typeof parts)["Column"];
26
+ declare const DataTableSort: (typeof parts)["Sort"];
27
+ declare const DataTableSelect: (typeof parts)["Select"];
28
+ declare const DataTableSelectPage: (typeof parts)["Selectpage"];
29
+ declare const DataTablePrev: (typeof parts)["Prev"];
30
+ declare const DataTableNext: (typeof parts)["Next"];
31
+ declare const DataTablePageSize: (typeof parts)["Pagesize"];
32
+ type DataTableProps<Row extends AnyRow> = {
33
+ rows: Row[];
34
+ columns: DataTableColumn<Row>[];
35
+ rowKey?: keyof Row & string;
36
+ query?: TableQuery;
37
+ defaultQuery?: Partial<TableQuery>;
38
+ onQueryChange?: (query: TableQuery, details?: {
39
+ reason: string;
40
+ source?: string;
41
+ }) => void;
42
+ selected?: string[];
43
+ defaultSelected?: string[];
44
+ onSelectedChange?: (selected: string[], details?: {
45
+ reason: string;
46
+ source?: string;
47
+ }) => void;
48
+ /** Show row checkboxes. Off by default. */
49
+ selectable?: boolean;
50
+ loading?: boolean;
51
+ loadError?: string;
52
+ pageSize?: number;
53
+ pageSizes?: number[];
54
+ snapshotRows?: number;
55
+ /** Currency for money columns; defaults to the locale profile's. */
56
+ currency?: string;
57
+ /** Shown when there are no rows at all (not when a search matches none). */
58
+ empty?: ReactNode;
59
+ /** Extra controls at the end of the toolbar. */
60
+ toolbar?: ReactNode;
61
+ /** Hide the CSV button. */
62
+ noExport?: boolean;
63
+ /** Hide the search box. */
64
+ noSearch?: boolean;
65
+ /** Filename for the CSV, without extension. */
66
+ exportName?: string;
67
+ className?: string;
68
+ "aria-label": string;
69
+ };
70
+ /**
71
+ * Composed table: toolbar (search, columns, CSV), the table with sortable
72
+ * headers, totals, and pages. Every part is a ui-sdk part with a stable
73
+ * `data-slot`, so it can be styled or replaced; columns carry their own `cell`.
74
+ */
75
+ declare function DataTable<Row extends AnyRow>({ rows, columns, rowKey, query, defaultQuery, onQueryChange, selected, defaultSelected, onSelectedChange, selectable, loading, loadError, pageSize, pageSizes, snapshotRows, currency, empty, toolbar, noExport, noSearch, exportName, className, "aria-label": ariaLabel, }: DataTableProps<Row>): react.JSX.Element;
76
+
77
+ export { DataTable, type DataTableColumn, DataTableColumnToggle, DataTableNext, DataTablePageSize, DataTablePrev, type DataTableProps, DataTableRoot, DataTableSearch, DataTableSelect, DataTableSelectPage, DataTableSort };
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import {
3
+ DataTable,
4
+ DataTableColumnToggle,
5
+ DataTableNext,
6
+ DataTablePageSize,
7
+ DataTablePrev,
8
+ DataTableRoot,
9
+ DataTableSearch,
10
+ DataTableSelect,
11
+ DataTableSelectPage,
12
+ DataTableSort,
13
+ dataTable
14
+ } from "./chunk-TSX6BD72.js";
15
+ import "./chunk-GVP2N3K6.js";
16
+ import "./chunk-HKYEHBQT.js";
17
+ export {
18
+ DataTable,
19
+ DataTableColumnToggle,
20
+ DataTableNext,
21
+ DataTablePageSize,
22
+ DataTablePrev,
23
+ DataTableRoot,
24
+ DataTableSearch,
25
+ DataTableSelect,
26
+ DataTableSelectPage,
27
+ DataTableSort,
28
+ dataTable
29
+ };
30
+ //# sourceMappingURL=data-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,46 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { PipelineStage, Deal } from '@booki-aui/core/pipeline';
4
+ export { CurrencyTotals, Deal, DealOutcome, DealValueStatus, PipelineStage, StageSummary } from '@booki-aui/core/pipeline';
5
+ import { Parts } from '@ui-sdk/react/primitive';
6
+ import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
7
+ import { PipelineOwner, dealPipeline } from '@booki-aui/primitives/deal-pipeline';
8
+ export { PipelineOwner, dealPipeline } from '@booki-aui/primitives/deal-pipeline';
9
+
10
+ declare const TAGS: {
11
+ readonly root: "div";
12
+ readonly move: "select";
13
+ readonly won: "button";
14
+ readonly reason: "textarea";
15
+ readonly lost: "button";
16
+ readonly reopen: "button";
17
+ };
18
+ declare const parts: Parts<typeof dealPipeline, typeof TAGS>;
19
+ declare const DealPipelineRoot: (typeof parts)["Root"];
20
+ /** A person's stage picker on one deal: `value` is the deal id. */
21
+ declare const DealPipelineMove: (typeof parts)["Move"];
22
+ declare const DealPipelineWon: (typeof parts)["Won"];
23
+ declare const DealPipelineReason: (typeof parts)["Reason"];
24
+ declare const DealPipelineLost: (typeof parts)["Lost"];
25
+ declare const DealPipelineReopen: (typeof parts)["Reopen"];
26
+ type DealPipelineProps = {
27
+ stages: PipelineStage[];
28
+ deals?: Deal[];
29
+ defaultDeals?: Deal[];
30
+ /** Who may own a deal; the agent's `setOwner` takes only these. */
31
+ owners?: PipelineOwner[];
32
+ /** Today as YYYY-MM-DD, for deals past their expected close. */
33
+ today?: string;
34
+ /** Days in one stage before a deal is called stale. Defaults to 30. */
35
+ staleDays?: number;
36
+ actor?: string;
37
+ onDealsChange?: (deals: Deal[], details: BookiChangeDetails) => void;
38
+ /** A person's name for an id in `closedBy`. */
39
+ nameOf?: (id: string) => ReactNode;
40
+ className?: string;
41
+ "aria-label"?: string;
42
+ };
43
+ /** Composed board: one column per stage with its totals, a card per deal, and a person's won and lost buttons. */
44
+ declare function DealPipeline({ stages, deals, defaultDeals, owners, today, staleDays, actor, onDealsChange, nameOf, className, "aria-label": ariaLabel, }: DealPipelineProps): react.JSX.Element;
45
+
46
+ export { DealPipeline, DealPipelineLost, DealPipelineMove, type DealPipelineProps, DealPipelineReason, DealPipelineReopen, DealPipelineRoot, DealPipelineWon };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import {
3
+ DealPipeline,
4
+ DealPipelineLost,
5
+ DealPipelineMove,
6
+ DealPipelineReason,
7
+ DealPipelineReopen,
8
+ DealPipelineRoot,
9
+ DealPipelineWon,
10
+ dealPipeline
11
+ } from "./chunk-PUMSFFEU.js";
12
+ import "./chunk-K72VT6RJ.js";
13
+ import "./chunk-GVP2N3K6.js";
14
+ import "./chunk-HKYEHBQT.js";
15
+ export {
16
+ DealPipeline,
17
+ DealPipelineLost,
18
+ DealPipelineMove,
19
+ DealPipelineReason,
20
+ DealPipelineReopen,
21
+ DealPipelineRoot,
22
+ DealPipelineWon,
23
+ dealPipeline
24
+ };
25
+ //# sourceMappingURL=deal-pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,45 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { SignableDocument, SignoffLevel } from '@booki-aui/core/document-signoff';
4
+ export { SignableDocument, SignoffLevel, SignoffMark } from '@booki-aui/core/document-signoff';
5
+ import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
6
+ import { Parts } from '@ui-sdk/react/primitive';
7
+ import { documentSignoff } from '@booki-aui/primitives/document-signoff';
8
+ export { documentSignoff } from '@booki-aui/primitives/document-signoff';
9
+
10
+ declare const TAGS: {
11
+ readonly root: "div";
12
+ readonly sign: "button";
13
+ readonly reason: "textarea";
14
+ readonly withdraw: "button";
15
+ };
16
+ declare const parts: Parts<typeof documentSignoff, typeof TAGS>;
17
+ declare const DocumentSignoffRoot: (typeof parts)["Root"];
18
+ declare const DocumentSignoffSign: (typeof parts)["Sign"];
19
+ declare const DocumentSignoffReason: (typeof parts)["Reason"];
20
+ declare const DocumentSignoffWithdraw: (typeof parts)["Withdraw"];
21
+ type DocumentSignoffProps = {
22
+ document?: SignableDocument;
23
+ defaultDocument?: SignableDocument;
24
+ onDocumentChange?: (document: SignableDocument, details: BookiChangeDetails) => void;
25
+ /** The levels this document uses, in order. Default all three. */
26
+ levels?: SignoffLevel[];
27
+ actor?: string;
28
+ actorName?: string;
29
+ minReason?: number;
30
+ /** Refuse a signature while the document has open points. Default false: they go with the signature. */
31
+ blockOpenPoints?: boolean;
32
+ nameOf?: (id: string) => ReactNode;
33
+ /** A signing time as the person reads it. */
34
+ formatTime?: (iso: string) => string;
35
+ className?: string;
36
+ "aria-label"?: string;
37
+ };
38
+ /**
39
+ * The sign-off line that ends a working paper: each level, who signed which
40
+ * version, what changed since, and a person's buttons. A role that may not
41
+ * sign sees why, never a disabled button.
42
+ */
43
+ declare function DocumentSignoff({ document, defaultDocument, onDocumentChange, levels: used, actor, actorName, minReason, blockOpenPoints, nameOf, formatTime, className, "aria-label": ariaLabel, }: DocumentSignoffProps): react.JSX.Element;
44
+
45
+ export { DocumentSignoff, type DocumentSignoffProps, DocumentSignoffReason, DocumentSignoffRoot, DocumentSignoffSign, DocumentSignoffWithdraw };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import {
3
+ DocumentSignoff,
4
+ DocumentSignoffReason,
5
+ DocumentSignoffRoot,
6
+ DocumentSignoffSign,
7
+ DocumentSignoffWithdraw,
8
+ documentSignoff
9
+ } from "./chunk-T4U2CT35.js";
10
+ import "./chunk-K72VT6RJ.js";
11
+ import "./chunk-GVP2N3K6.js";
12
+ import "./chunk-HKYEHBQT.js";
13
+ export {
14
+ DocumentSignoff,
15
+ DocumentSignoffReason,
16
+ DocumentSignoffRoot,
17
+ DocumentSignoffSign,
18
+ DocumentSignoffWithdraw,
19
+ documentSignoff
20
+ };
21
+ //# sourceMappingURL=document-signoff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}