@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.
- package/CHANGELOG.md +122 -0
- package/LICENSE +21 -0
- package/README.md +16 -2
- package/dist/access.d.ts +43 -0
- package/dist/access.js +15 -0
- package/dist/access.js.map +1 -0
- package/dist/account-picker.d.ts +40 -0
- package/dist/account-picker.js +25 -0
- package/dist/account-picker.js.map +1 -0
- package/dist/accounting-period-select.d.ts +34 -0
- package/dist/accounting-period-select.js +23 -0
- package/dist/accounting-period-select.js.map +1 -0
- package/dist/activity-timeline.d.ts +37 -0
- package/dist/activity-timeline.js +19 -0
- package/dist/activity-timeline.js.map +1 -0
- package/dist/aged-balances.d.ts +62 -0
- package/dist/aged-balances.js +31 -0
- package/dist/aged-balances.js.map +1 -0
- package/dist/agent-cursor.d.ts +34 -0
- package/dist/agent-cursor.js +14 -0
- package/dist/agent-cursor.js.map +1 -0
- package/dist/agent-presence.d.ts +110 -0
- package/dist/agent-presence.js +15 -0
- package/dist/agent-presence.js.map +1 -0
- package/dist/aging-chart.d.ts +41 -0
- package/dist/aging-chart.js +19 -0
- package/dist/aging-chart.js.map +1 -0
- package/dist/amount-field.d.ts +46 -0
- package/dist/amount-field.js +19 -0
- package/dist/amount-field.js.map +1 -0
- package/dist/amount-input.d.ts +18 -0
- package/dist/amount-input.js +12 -0
- package/dist/amount-input.js.map +1 -0
- package/dist/approval-chain.d.ts +36 -0
- package/dist/approval-chain.js +22 -0
- package/dist/approval-chain.js.map +1 -0
- package/dist/approval-gate.d.ts +19 -0
- package/dist/approval-gate.js +10 -0
- package/dist/approval-gate.js.map +1 -0
- package/dist/attestation-status.d.ts +31 -0
- package/dist/attestation-status.js +22 -0
- package/dist/attestation-status.js.map +1 -0
- package/dist/audit-findings.d.ts +40 -0
- package/dist/audit-findings.js +28 -0
- package/dist/audit-findings.js.map +1 -0
- package/dist/audit-trail.d.ts +22 -0
- package/dist/audit-trail.js +10 -0
- package/dist/audit-trail.js.map +1 -0
- package/dist/audit-workpaper.d.ts +56 -0
- package/dist/audit-workpaper.js +35 -0
- package/dist/audit-workpaper.js.map +1 -0
- package/dist/bank-account-input.d.ts +36 -0
- package/dist/bank-account-input.js +22 -0
- package/dist/bank-account-input.js.map +1 -0
- package/dist/bank-reconciliation.d.ts +38 -0
- package/dist/bank-reconciliation.js +20 -0
- package/dist/bank-reconciliation.js.map +1 -0
- package/dist/bar-chart.d.ts +38 -0
- package/dist/bar-chart.js +19 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/booki-agent.d.ts +153 -0
- package/dist/booki-agent.js +27 -0
- package/dist/booki-agent.js.map +1 -0
- package/dist/cashflow-waterfall.d.ts +36 -0
- package/dist/cashflow-waterfall.js +17 -0
- package/dist/cashflow-waterfall.js.map +1 -0
- package/dist/change-details-CWpEgc80.d.ts +14 -0
- package/dist/chunk-2HM7YSBC.js +92 -0
- package/dist/chunk-2HM7YSBC.js.map +1 -0
- package/dist/chunk-35QKOOAI.js +27 -0
- package/dist/chunk-35QKOOAI.js.map +1 -0
- package/dist/chunk-37GDU76M.js +86 -0
- package/dist/chunk-37GDU76M.js.map +1 -0
- package/dist/chunk-4EVVT6ME.js +136 -0
- package/dist/chunk-4EVVT6ME.js.map +1 -0
- package/dist/chunk-4GQUOBOG.js +132 -0
- package/dist/chunk-4GQUOBOG.js.map +1 -0
- package/dist/chunk-4KWEZTO5.js +86 -0
- package/dist/chunk-4KWEZTO5.js.map +1 -0
- package/dist/chunk-4WC76FUE.js +242 -0
- package/dist/chunk-4WC76FUE.js.map +1 -0
- package/dist/chunk-62G3T2AA.js +230 -0
- package/dist/chunk-62G3T2AA.js.map +1 -0
- package/dist/chunk-663UXACN.js +334 -0
- package/dist/chunk-663UXACN.js.map +1 -0
- package/dist/chunk-6CVPNV7N.js +106 -0
- package/dist/chunk-6CVPNV7N.js.map +1 -0
- package/dist/chunk-6HWFMC7V.js +140 -0
- package/dist/chunk-6HWFMC7V.js.map +1 -0
- package/dist/chunk-7MYFKLPB.js +301 -0
- package/dist/chunk-7MYFKLPB.js.map +1 -0
- package/dist/chunk-7YTOVA5F.js +312 -0
- package/dist/chunk-7YTOVA5F.js.map +1 -0
- package/dist/chunk-AIGQPM4Y.js +311 -0
- package/dist/chunk-AIGQPM4Y.js.map +1 -0
- package/dist/chunk-AKC6N4QO.js +414 -0
- package/dist/chunk-AKC6N4QO.js.map +1 -0
- package/dist/chunk-BZIOOU4I.js +421 -0
- package/dist/chunk-BZIOOU4I.js.map +1 -0
- package/dist/chunk-CDTDN4LY.js +212 -0
- package/dist/chunk-CDTDN4LY.js.map +1 -0
- package/dist/chunk-EDWQSKY7.js +161 -0
- package/dist/chunk-EDWQSKY7.js.map +1 -0
- package/dist/chunk-EKIWL37F.js +488 -0
- package/dist/chunk-EKIWL37F.js.map +1 -0
- package/dist/chunk-F3C77WLR.js +116 -0
- package/dist/chunk-F3C77WLR.js.map +1 -0
- package/dist/chunk-FBV7BFEQ.js +84 -0
- package/dist/chunk-FBV7BFEQ.js.map +1 -0
- package/dist/chunk-GVP2N3K6.js +89 -0
- package/dist/chunk-GVP2N3K6.js.map +1 -0
- package/dist/chunk-HKYEHBQT.js +19 -0
- package/dist/chunk-HKYEHBQT.js.map +1 -0
- package/dist/chunk-HQYIFZZT.js +169 -0
- package/dist/chunk-HQYIFZZT.js.map +1 -0
- package/dist/chunk-HT6HGOLM.js +151 -0
- package/dist/chunk-HT6HGOLM.js.map +1 -0
- package/dist/chunk-ISPUO3AQ.js +244 -0
- package/dist/chunk-ISPUO3AQ.js.map +1 -0
- package/dist/chunk-JPUVGWLO.js +207 -0
- package/dist/chunk-JPUVGWLO.js.map +1 -0
- package/dist/chunk-JWFGUI7A.js +73 -0
- package/dist/chunk-JWFGUI7A.js.map +1 -0
- package/dist/chunk-K72VT6RJ.js +57 -0
- package/dist/chunk-K72VT6RJ.js.map +1 -0
- package/dist/chunk-KLDUGI7L.js +150 -0
- package/dist/chunk-KLDUGI7L.js.map +1 -0
- package/dist/chunk-M2WLQIFE.js +40 -0
- package/dist/chunk-M2WLQIFE.js.map +1 -0
- package/dist/chunk-M3MCIKF2.js +143 -0
- package/dist/chunk-M3MCIKF2.js.map +1 -0
- package/dist/chunk-MBLQSZHE.js +77 -0
- package/dist/chunk-MBLQSZHE.js.map +1 -0
- package/dist/chunk-N7GIVDUU.js +191 -0
- package/dist/chunk-N7GIVDUU.js.map +1 -0
- package/dist/chunk-NMHTPP6I.js +62 -0
- package/dist/chunk-NMHTPP6I.js.map +1 -0
- package/dist/chunk-NNP6GNEW.js +65 -0
- package/dist/chunk-NNP6GNEW.js.map +1 -0
- package/dist/chunk-OTD7VUEC.js +35 -0
- package/dist/chunk-OTD7VUEC.js.map +1 -0
- package/dist/chunk-OXHKA3UZ.js +30 -0
- package/dist/chunk-OXHKA3UZ.js.map +1 -0
- package/dist/chunk-OYERLEER.js +21 -0
- package/dist/chunk-OYERLEER.js.map +1 -0
- package/dist/chunk-PFY3VJ2T.js +231 -0
- package/dist/chunk-PFY3VJ2T.js.map +1 -0
- package/dist/chunk-PUMSFFEU.js +228 -0
- package/dist/chunk-PUMSFFEU.js.map +1 -0
- package/dist/chunk-QE7KUQOI.js +84 -0
- package/dist/chunk-QE7KUQOI.js.map +1 -0
- package/dist/chunk-QGT7VI6I.js +35 -0
- package/dist/chunk-QGT7VI6I.js.map +1 -0
- package/dist/chunk-QGYS5HS3.js +214 -0
- package/dist/chunk-QGYS5HS3.js.map +1 -0
- package/dist/chunk-QPSBRSBH.js +167 -0
- package/dist/chunk-QPSBRSBH.js.map +1 -0
- package/dist/chunk-ROXGVKR2.js +59 -0
- package/dist/chunk-ROXGVKR2.js.map +1 -0
- package/dist/chunk-RPONJDFZ.js +310 -0
- package/dist/chunk-RPONJDFZ.js.map +1 -0
- package/dist/chunk-RTCKV4H2.js +65 -0
- package/dist/chunk-RTCKV4H2.js.map +1 -0
- package/dist/chunk-SHZFZRHV.js +259 -0
- package/dist/chunk-SHZFZRHV.js.map +1 -0
- package/dist/chunk-SOXPKIQK.js +91 -0
- package/dist/chunk-SOXPKIQK.js.map +1 -0
- package/dist/chunk-SR2HEE4U.js +76 -0
- package/dist/chunk-SR2HEE4U.js.map +1 -0
- package/dist/chunk-SX3U6DRW.js +462 -0
- package/dist/chunk-SX3U6DRW.js.map +1 -0
- package/dist/chunk-T4U2CT35.js +175 -0
- package/dist/chunk-T4U2CT35.js.map +1 -0
- package/dist/chunk-TSX6BD72.js +251 -0
- package/dist/chunk-TSX6BD72.js.map +1 -0
- package/dist/chunk-U6PR3V2Q.js +123 -0
- package/dist/chunk-U6PR3V2Q.js.map +1 -0
- package/dist/chunk-U7NPK4WO.js +135 -0
- package/dist/chunk-U7NPK4WO.js.map +1 -0
- package/dist/chunk-W6TKXS75.js +55 -0
- package/dist/chunk-W6TKXS75.js.map +1 -0
- package/dist/chunk-WDME4U42.js +14 -0
- package/dist/chunk-WDME4U42.js.map +1 -0
- package/dist/chunk-WS2YJSNS.js +62 -0
- package/dist/chunk-WS2YJSNS.js.map +1 -0
- package/dist/chunk-Y5EYY6WJ.js +174 -0
- package/dist/chunk-Y5EYY6WJ.js.map +1 -0
- package/dist/chunk-YBMO3W5O.js +191 -0
- package/dist/chunk-YBMO3W5O.js.map +1 -0
- package/dist/chunk-YOOWFGCU.js +90 -0
- package/dist/chunk-YOOWFGCU.js.map +1 -0
- package/dist/chunk-ZKNVWQDU.js +230 -0
- package/dist/chunk-ZKNVWQDU.js.map +1 -0
- package/dist/chunk-ZYLWSGWQ.js +29 -0
- package/dist/chunk-ZYLWSGWQ.js.map +1 -0
- package/dist/chunk-ZYPW7GCI.js +82 -0
- package/dist/chunk-ZYPW7GCI.js.map +1 -0
- package/dist/client-requests.d.ts +40 -0
- package/dist/client-requests.js +25 -0
- package/dist/client-requests.js.map +1 -0
- package/dist/close-checklist.d.ts +34 -0
- package/dist/close-checklist.js +22 -0
- package/dist/close-checklist.js.map +1 -0
- package/dist/confirm-dialog.d.ts +43 -0
- package/dist/confirm-dialog.js +10 -0
- package/dist/confirm-dialog.js.map +1 -0
- package/dist/country-toggle.d.ts +16 -0
- package/dist/country-toggle.js +10 -0
- package/dist/country-toggle.js.map +1 -0
- package/dist/currency-select.d.ts +32 -0
- package/dist/currency-select.js +23 -0
- package/dist/currency-select.js.map +1 -0
- package/dist/data-table.d.ts +77 -0
- package/dist/data-table.js +30 -0
- package/dist/data-table.js.map +1 -0
- package/dist/deal-pipeline.d.ts +46 -0
- package/dist/deal-pipeline.js +25 -0
- package/dist/deal-pipeline.js.map +1 -0
- package/dist/document-signoff.d.ts +45 -0
- package/dist/document-signoff.js +21 -0
- package/dist/document-signoff.js.map +1 -0
- package/dist/evidence-list.d.ts +35 -0
- package/dist/evidence-list.js +21 -0
- package/dist/evidence-list.js.map +1 -0
- package/dist/exception-banner.d.ts +15 -0
- package/dist/exception-banner.js +10 -0
- package/dist/exception-banner.js.map +1 -0
- package/dist/expense-claim.d.ts +43 -0
- package/dist/expense-claim.js +31 -0
- package/dist/expense-claim.js.map +1 -0
- package/dist/financial-date-field.d.ts +27 -0
- package/dist/financial-date-field.js +17 -0
- package/dist/financial-date-field.js.map +1 -0
- package/dist/fixed-asset-register.d.ts +59 -0
- package/dist/fixed-asset-register.js +31 -0
- package/dist/fixed-asset-register.js.map +1 -0
- package/dist/forecast-chart.d.ts +38 -0
- package/dist/forecast-chart.js +19 -0
- package/dist/forecast-chart.js.map +1 -0
- package/dist/form-props-Ct7zeZBH.d.ts +25 -0
- package/dist/funnel-chart.d.ts +27 -0
- package/dist/funnel-chart.js +17 -0
- package/dist/funnel-chart.js.map +1 -0
- package/dist/iban-input.d.ts +27 -0
- package/dist/iban-input.js +16 -0
- package/dist/iban-input.js.map +1 -0
- package/dist/index.d.ts +644 -0
- package/dist/index.js +1082 -0
- package/dist/index.js.map +1 -0
- package/dist/invoice-editor.d.ts +38 -0
- package/dist/invoice-editor.js +26 -0
- package/dist/invoice-editor.js.map +1 -0
- package/dist/invoice-number-input.d.ts +25 -0
- package/dist/invoice-number-input.js +17 -0
- package/dist/invoice-number-input.js.map +1 -0
- package/dist/kpi-stat.d.ts +34 -0
- package/dist/kpi-stat.js +15 -0
- package/dist/kpi-stat.js.map +1 -0
- package/dist/ledger-table.d.ts +85 -0
- package/dist/ledger-table.js +41 -0
- package/dist/ledger-table.js.map +1 -0
- package/dist/locale.d.ts +22 -0
- package/dist/locale.js +13 -0
- package/dist/locale.js.map +1 -0
- package/dist/money-amount.d.ts +15 -0
- package/dist/money-amount.js +10 -0
- package/dist/money-amount.js.map +1 -0
- package/dist/organization-number-input.d.ts +25 -0
- package/dist/organization-number-input.js +17 -0
- package/dist/organization-number-input.js.map +1 -0
- package/dist/payment-batch.d.ts +58 -0
- package/dist/payment-batch.js +31 -0
- package/dist/payment-batch.js.map +1 -0
- package/dist/payment-confirm.d.ts +19 -0
- package/dist/payment-confirm.js +11 -0
- package/dist/payment-confirm.js.map +1 -0
- package/dist/payment-reference-input.d.ts +27 -0
- package/dist/payment-reference-input.js +17 -0
- package/dist/payment-reference-input.js.map +1 -0
- package/dist/period-lock.d.ts +28 -0
- package/dist/period-lock.js +18 -0
- package/dist/period-lock.js.map +1 -0
- package/dist/recurring-revenue.d.ts +37 -0
- package/dist/recurring-revenue.js +18 -0
- package/dist/recurring-revenue.js.map +1 -0
- package/dist/sca-prompt.d.ts +16 -0
- package/dist/sca-prompt.js +10 -0
- package/dist/sca-prompt.js.map +1 -0
- package/dist/sheet-stack.d.ts +34 -0
- package/dist/sheet-stack.js +20 -0
- package/dist/sheet-stack.js.map +1 -0
- package/dist/stage-duration.d.ts +33 -0
- package/dist/stage-duration.js +16 -0
- package/dist/stage-duration.js.map +1 -0
- package/dist/supplier-invoice-inbox.d.ts +66 -0
- package/dist/supplier-invoice-inbox.js +38 -0
- package/dist/supplier-invoice-inbox.js.map +1 -0
- package/dist/tax-code-select.d.ts +33 -0
- package/dist/tax-code-select.js +23 -0
- package/dist/tax-code-select.js.map +1 -0
- package/dist/text-link.d.ts +33 -0
- package/dist/text-link.js +13 -0
- package/dist/text-link.js.map +1 -0
- package/dist/toasts.d.ts +53 -0
- package/dist/toasts.js +17 -0
- package/dist/toasts.js.map +1 -0
- package/dist/trend-chart.d.ts +43 -0
- package/dist/trend-chart.js +19 -0
- package/dist/trend-chart.js.map +1 -0
- package/dist/vat-return.d.ts +54 -0
- package/dist/vat-return.js +23 -0
- package/dist/vat-return.js.map +1 -0
- package/dist/voucher-composer.d.ts +69 -0
- package/dist/voucher-composer.js +15 -0
- package/dist/voucher-composer.js.map +1 -0
- package/dist/voucher-lines.d.ts +11 -0
- package/dist/voucher-lines.js +10 -0
- package/dist/voucher-lines.js.map +1 -0
- package/docs/llms.txt +214 -0
- package/package.json +308 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { paymentReference } from '@booki-aui/primitives/payment-reference-input';
|
|
6
|
+
export { paymentReference } from '@booki-aui/primitives/payment-reference-input';
|
|
7
|
+
|
|
8
|
+
declare const TAGS: {
|
|
9
|
+
readonly root: "div";
|
|
10
|
+
readonly input: "input";
|
|
11
|
+
};
|
|
12
|
+
declare const parts: Parts<typeof paymentReference, typeof TAGS>;
|
|
13
|
+
declare const PaymentReferenceRoot: (typeof parts)["Root"];
|
|
14
|
+
declare const PaymentReferenceField: (typeof parts)["Input"];
|
|
15
|
+
type PaymentReferenceInputProps = {
|
|
16
|
+
/** Controlled value. Omit it (and use `defaultValue`) to let the field hold its own state. */
|
|
17
|
+
value?: string;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
onValueChange?: (value: string) => void;
|
|
20
|
+
/** A memo or invoice reference reads "[redacted]" to an agent too. A KID always does. */
|
|
21
|
+
secretReference?: boolean;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
} & Omit<BookiFormProps, "required"> & Omit<ComponentProps<"div">, "onChange" | "defaultValue" | "children" | "id">;
|
|
25
|
+
declare function PaymentReferenceInput({ value, defaultValue, onValueChange, secretReference, required, name, id, disabled, readOnly, className, ...props }: PaymentReferenceInputProps): react.JSX.Element;
|
|
26
|
+
|
|
27
|
+
export { PaymentReferenceField, PaymentReferenceInput, type PaymentReferenceInputProps, PaymentReferenceRoot };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
PaymentReferenceField,
|
|
4
|
+
PaymentReferenceInput,
|
|
5
|
+
PaymentReferenceRoot,
|
|
6
|
+
paymentReference
|
|
7
|
+
} from "./chunk-FBV7BFEQ.js";
|
|
8
|
+
import "./chunk-OYERLEER.js";
|
|
9
|
+
import "./chunk-GVP2N3K6.js";
|
|
10
|
+
import "./chunk-HKYEHBQT.js";
|
|
11
|
+
export {
|
|
12
|
+
PaymentReferenceField,
|
|
13
|
+
PaymentReferenceInput,
|
|
14
|
+
PaymentReferenceRoot,
|
|
15
|
+
paymentReference
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=payment-reference-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
3
|
+
import { PeriodState } from '@booki-aui/core/period-lock';
|
|
4
|
+
export { PeriodState, PeriodStatus } from '@booki-aui/core/period-lock';
|
|
5
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
6
|
+
import { periodLock } from '@booki-aui/primitives/period-lock';
|
|
7
|
+
export { periodLock } from '@booki-aui/primitives/period-lock';
|
|
8
|
+
|
|
9
|
+
declare const TAGS: {
|
|
10
|
+
readonly root: "div";
|
|
11
|
+
readonly set: "button";
|
|
12
|
+
};
|
|
13
|
+
declare const parts: Parts<typeof periodLock, typeof TAGS>;
|
|
14
|
+
declare const PeriodLockRoot: (typeof parts)["Root"];
|
|
15
|
+
declare const PeriodLockSet: (typeof parts)["Set"];
|
|
16
|
+
type PeriodLockProps = {
|
|
17
|
+
/** The period codes to list, e.g. `["2026-01", "2026-02"]`. */
|
|
18
|
+
codes: string[];
|
|
19
|
+
periods?: PeriodState[];
|
|
20
|
+
defaultPeriods?: PeriodState[];
|
|
21
|
+
onPeriodsChange?: (periods: PeriodState[], details: BookiChangeDetails) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
"aria-label"?: string;
|
|
24
|
+
};
|
|
25
|
+
/** Composed period list: each period, its status, and the buttons that change it. */
|
|
26
|
+
declare function PeriodLock({ codes, periods, defaultPeriods, onPeriodsChange, className, "aria-label": ariaLabel, }: PeriodLockProps): react.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { PeriodLock, type PeriodLockProps, PeriodLockRoot, PeriodLockSet };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
PeriodLock,
|
|
4
|
+
PeriodLockRoot,
|
|
5
|
+
PeriodLockSet,
|
|
6
|
+
periodLock
|
|
7
|
+
} from "./chunk-SOXPKIQK.js";
|
|
8
|
+
import "./chunk-U7NPK4WO.js";
|
|
9
|
+
import "./chunk-K72VT6RJ.js";
|
|
10
|
+
import "./chunk-GVP2N3K6.js";
|
|
11
|
+
import "./chunk-HKYEHBQT.js";
|
|
12
|
+
export {
|
|
13
|
+
PeriodLock,
|
|
14
|
+
PeriodLockRoot,
|
|
15
|
+
PeriodLockSet,
|
|
16
|
+
periodLock
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=period-lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
3
|
+
import { RecurringAgreement, RecurringView, Details, RecurringMovement, recurringRevenue } from '@booki-aui/primitives/recurring-revenue';
|
|
4
|
+
export { RecurringAgreement, RecurringMovement, RecurringView, recurringRevenue } from '@booki-aui/primitives/recurring-revenue';
|
|
5
|
+
|
|
6
|
+
declare const TAGS: {
|
|
7
|
+
readonly root: "div";
|
|
8
|
+
readonly view: "button";
|
|
9
|
+
readonly movement: "button";
|
|
10
|
+
};
|
|
11
|
+
declare const parts: Parts<typeof recurringRevenue, typeof TAGS>;
|
|
12
|
+
declare const RecurringRevenueRoot: (typeof parts)["Root"];
|
|
13
|
+
declare const RecurringRevenueView: (typeof parts)["View"];
|
|
14
|
+
declare const RecurringRevenueMovement: (typeof parts)["Movement"];
|
|
15
|
+
type RecurringRevenueProps = {
|
|
16
|
+
agreements: RecurringAgreement[];
|
|
17
|
+
/** The bridge's start and end, YYYY-MM-DD. */
|
|
18
|
+
from: string;
|
|
19
|
+
to: string;
|
|
20
|
+
/** Defaults to the first currency the agreements are in. */
|
|
21
|
+
currency?: string;
|
|
22
|
+
view?: RecurringView;
|
|
23
|
+
defaultView?: RecurringView;
|
|
24
|
+
onViewChange?: (view: RecurringView, details: Details) => void;
|
|
25
|
+
drill?: RecurringMovement | null;
|
|
26
|
+
defaultDrill?: RecurringMovement | null;
|
|
27
|
+
onDrill?: (movement: RecurringMovement, details: Details) => void;
|
|
28
|
+
/** A customer's name for an id. */
|
|
29
|
+
nameOf?: (customerId: string) => string;
|
|
30
|
+
title?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
"aria-label"?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Composed bridge: opening MRR or ARR, a bar per movement, closing, and who is behind the movement drilled into. */
|
|
35
|
+
declare function RecurringRevenue({ agreements, from, to, currency, view, defaultView, onViewChange, drill, defaultDrill, onDrill, nameOf, title, className, "aria-label": ariaLabel, }: RecurringRevenueProps): react.JSX.Element;
|
|
36
|
+
|
|
37
|
+
export { RecurringRevenue, RecurringRevenueMovement, type RecurringRevenueProps, RecurringRevenueRoot, RecurringRevenueView };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
RecurringRevenue,
|
|
4
|
+
RecurringRevenueMovement,
|
|
5
|
+
RecurringRevenueRoot,
|
|
6
|
+
RecurringRevenueView,
|
|
7
|
+
recurringRevenue
|
|
8
|
+
} from "./chunk-N7GIVDUU.js";
|
|
9
|
+
import "./chunk-GVP2N3K6.js";
|
|
10
|
+
import "./chunk-HKYEHBQT.js";
|
|
11
|
+
export {
|
|
12
|
+
RecurringRevenue,
|
|
13
|
+
RecurringRevenueMovement,
|
|
14
|
+
RecurringRevenueRoot,
|
|
15
|
+
RecurringRevenueView,
|
|
16
|
+
recurringRevenue
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=recurring-revenue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type ScaPromptProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
brand?: string;
|
|
7
|
+
openLabel?: string;
|
|
8
|
+
pendingLabel?: string;
|
|
9
|
+
doneLabel?: string;
|
|
10
|
+
onComplete?: () => void | Promise<void>;
|
|
11
|
+
onCancel?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
declare function ScaPrompt({ title, description, brand, openLabel, pendingLabel, doneLabel, onComplete, onCancel, className, }: ScaPromptProps): react.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { ScaPrompt, type ScaPromptProps };
|
|
@@ -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 { StackSheet, SheetPlacement } from '@booki-aui/core/sheet-stack';
|
|
4
|
+
export { SheetPlacement, StackSheet } from '@booki-aui/core/sheet-stack';
|
|
5
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
6
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
7
|
+
import { sheetStack } from '@booki-aui/primitives/sheet-stack';
|
|
8
|
+
export { sheetStack } from '@booki-aui/primitives/sheet-stack';
|
|
9
|
+
|
|
10
|
+
declare const TAGS: {
|
|
11
|
+
readonly root: "div";
|
|
12
|
+
readonly back: "button";
|
|
13
|
+
readonly crumb: "button";
|
|
14
|
+
readonly close: "button";
|
|
15
|
+
};
|
|
16
|
+
declare const parts: Parts<typeof sheetStack, typeof TAGS>;
|
|
17
|
+
declare const SheetStackRoot: (typeof parts)["Root"];
|
|
18
|
+
declare const SheetStackBack: (typeof parts)["Back"];
|
|
19
|
+
declare const SheetStackCrumb: (typeof parts)["Crumb"];
|
|
20
|
+
declare const SheetStackClose: (typeof parts)["Close"];
|
|
21
|
+
type SheetStackProps = {
|
|
22
|
+
sheets?: StackSheet[];
|
|
23
|
+
defaultSheets?: StackSheet[];
|
|
24
|
+
onSheetsChange?: (sheets: StackSheet[], details: BookiChangeDetails) => void;
|
|
25
|
+
/** The person's choice for a sheet that may dock. Default "beside". */
|
|
26
|
+
dock?: "beside" | "over";
|
|
27
|
+
/** What each sheet shows. Only the top sheet takes input; the rest are inert. */
|
|
28
|
+
renderSheet: (sheet: StackSheet, place: SheetPlacement) => ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
"aria-label"?: string;
|
|
31
|
+
};
|
|
32
|
+
declare function SheetStack({ sheets, defaultSheets, onSheetsChange, dock, renderSheet, className, "aria-label": ariaLabel, }: SheetStackProps): react.JSX.Element;
|
|
33
|
+
|
|
34
|
+
export { SheetStack, SheetStackBack, SheetStackClose, SheetStackCrumb, type SheetStackProps, SheetStackRoot };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
SheetStack,
|
|
4
|
+
SheetStackBack,
|
|
5
|
+
SheetStackClose,
|
|
6
|
+
SheetStackCrumb,
|
|
7
|
+
SheetStackRoot,
|
|
8
|
+
sheetStack
|
|
9
|
+
} from "./chunk-4EVVT6ME.js";
|
|
10
|
+
import "./chunk-GVP2N3K6.js";
|
|
11
|
+
import "./chunk-HKYEHBQT.js";
|
|
12
|
+
export {
|
|
13
|
+
SheetStack,
|
|
14
|
+
SheetStackBack,
|
|
15
|
+
SheetStackClose,
|
|
16
|
+
SheetStackCrumb,
|
|
17
|
+
SheetStackRoot,
|
|
18
|
+
sheetStack
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=sheet-stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { PipelineStage } from '@booki-aui/core/pipeline';
|
|
4
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
5
|
+
import { StageStay, Details, stageDuration } from '@booki-aui/primitives/stage-duration';
|
|
6
|
+
export { StageDuration, StageStay, stageDuration } from '@booki-aui/primitives/stage-duration';
|
|
7
|
+
|
|
8
|
+
declare const TAGS: {
|
|
9
|
+
readonly root: "div";
|
|
10
|
+
readonly stage: "button";
|
|
11
|
+
};
|
|
12
|
+
declare const parts: Parts<typeof stageDuration, typeof TAGS>;
|
|
13
|
+
declare const StageDurationRoot: (typeof parts)["Root"];
|
|
14
|
+
declare const StageDurationStage: (typeof parts)["Stage"];
|
|
15
|
+
type StageDurationProps = {
|
|
16
|
+
stays: StageStay[];
|
|
17
|
+
stages: PipelineStage[];
|
|
18
|
+
/** Target days per stage id. */
|
|
19
|
+
targets?: Record<string, number>;
|
|
20
|
+
today?: string;
|
|
21
|
+
drill?: string | null;
|
|
22
|
+
defaultDrill?: string | null;
|
|
23
|
+
onDrill?: (stageId: string, details: Details) => void;
|
|
24
|
+
/** A deal's name for an id. */
|
|
25
|
+
nameOf?: (dealId: string) => ReactNode;
|
|
26
|
+
title?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
"aria-label"?: string;
|
|
29
|
+
};
|
|
30
|
+
/** Composed chart: per open stage a bar of the median stay, the longest, its target, and the deals over it. */
|
|
31
|
+
declare function StageDurationChart({ stays, stages, targets, today, drill, defaultDrill, onDrill, nameOf, title, className, "aria-label": ariaLabel, }: StageDurationProps): react.JSX.Element;
|
|
32
|
+
|
|
33
|
+
export { StageDurationChart, type StageDurationProps, StageDurationRoot, StageDurationStage };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
StageDurationChart,
|
|
4
|
+
StageDurationRoot,
|
|
5
|
+
StageDurationStage,
|
|
6
|
+
stageDuration
|
|
7
|
+
} from "./chunk-QPSBRSBH.js";
|
|
8
|
+
import "./chunk-GVP2N3K6.js";
|
|
9
|
+
import "./chunk-HKYEHBQT.js";
|
|
10
|
+
export {
|
|
11
|
+
StageDurationChart,
|
|
12
|
+
StageDurationRoot,
|
|
13
|
+
StageDurationStage,
|
|
14
|
+
stageDuration
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=stage-duration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
3
|
+
import { TableQuery } from '@booki-aui/core/table';
|
|
4
|
+
import { SupplierInvoice, BookedSupplierInvoice } from '@booki-aui/core/supplier-invoice';
|
|
5
|
+
export { BookedSupplierInvoice, SupplierInvoice, SupplierInvoiceCoding, SupplierInvoiceField, SupplierInvoiceStatus } from '@booki-aui/core/supplier-invoice';
|
|
6
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
7
|
+
import { supplierInvoiceInbox } from '@booki-aui/primitives/supplier-invoice-inbox';
|
|
8
|
+
export { InvoiceTotals, SupplierInvoiceSummary, supplierInvoiceInbox } from '@booki-aui/primitives/supplier-invoice-inbox';
|
|
9
|
+
|
|
10
|
+
declare const TAGS: {
|
|
11
|
+
readonly root: "div";
|
|
12
|
+
readonly select: "button";
|
|
13
|
+
readonly cell: "input";
|
|
14
|
+
readonly account: "select";
|
|
15
|
+
readonly confirm: "button";
|
|
16
|
+
readonly approve: "button";
|
|
17
|
+
readonly reject: "button";
|
|
18
|
+
readonly search: "input";
|
|
19
|
+
readonly statusfilter: "select";
|
|
20
|
+
readonly sort: "button";
|
|
21
|
+
readonly prev: "button";
|
|
22
|
+
readonly next: "button";
|
|
23
|
+
};
|
|
24
|
+
declare const parts: Parts<typeof supplierInvoiceInbox, typeof TAGS>;
|
|
25
|
+
declare const SupplierInvoiceInboxRoot: (typeof parts)["Root"];
|
|
26
|
+
declare const SupplierInvoiceInboxSelect: (typeof parts)["Select"];
|
|
27
|
+
declare const SupplierInvoiceInboxCell: (typeof parts)["Cell"];
|
|
28
|
+
declare const SupplierInvoiceInboxAccount: (typeof parts)["Account"];
|
|
29
|
+
declare const SupplierInvoiceInboxConfirm: (typeof parts)["Confirm"];
|
|
30
|
+
declare const SupplierInvoiceInboxApprove: (typeof parts)["Approve"];
|
|
31
|
+
declare const SupplierInvoiceInboxReject: (typeof parts)["Reject"];
|
|
32
|
+
declare const SupplierInvoiceInboxSearch: (typeof parts)["Search"];
|
|
33
|
+
declare const SupplierInvoiceInboxStatusFilter: (typeof parts)["Statusfilter"];
|
|
34
|
+
declare const SupplierInvoiceInboxSort: (typeof parts)["Sort"];
|
|
35
|
+
declare const SupplierInvoiceInboxPrev: (typeof parts)["Prev"];
|
|
36
|
+
declare const SupplierInvoiceInboxNext: (typeof parts)["Next"];
|
|
37
|
+
type SupplierInvoiceInboxProps = {
|
|
38
|
+
invoices?: SupplierInvoice[];
|
|
39
|
+
defaultInvoices?: SupplierInvoice[];
|
|
40
|
+
booked?: BookedSupplierInvoice[];
|
|
41
|
+
chart?: string[];
|
|
42
|
+
threshold?: number;
|
|
43
|
+
actor?: string;
|
|
44
|
+
agentActor?: string;
|
|
45
|
+
/** The company's rule for approving without a person: true, or a sentence saying why not. Enables the agent's approveUnderRule. */
|
|
46
|
+
rule?: (invoice: SupplierInvoice) => boolean | string;
|
|
47
|
+
/** The rule's name in the record: approved by `rule:<ruleName>`. */
|
|
48
|
+
ruleName?: string;
|
|
49
|
+
onInvoicesChange?: (invoices: SupplierInvoice[], details: BookiChangeDetails) => void;
|
|
50
|
+
/** Invoices a person sees per page. Defaults to 100. */
|
|
51
|
+
pageSize?: number;
|
|
52
|
+
/** The sort, search, filters and page of the list, when the app owns it. */
|
|
53
|
+
query?: TableQuery;
|
|
54
|
+
defaultQuery?: Partial<TableQuery>;
|
|
55
|
+
onQueryChange?: (query: TableQuery) => void;
|
|
56
|
+
className?: string;
|
|
57
|
+
"aria-label"?: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Composed inbox: the list (search, status filter, sortable headers, gross per
|
|
61
|
+
* currency over every match, pages, CSV), one open invoice with its fields and
|
|
62
|
+
* coding, and approve / reject.
|
|
63
|
+
*/
|
|
64
|
+
declare function SupplierInvoiceInbox({ invoices, defaultInvoices, booked, chart, threshold, actor, agentActor, rule, ruleName, onInvoicesChange, pageSize, query, defaultQuery, onQueryChange, className, "aria-label": ariaLabel, }: SupplierInvoiceInboxProps): react.JSX.Element;
|
|
65
|
+
|
|
66
|
+
export { SupplierInvoiceInbox, SupplierInvoiceInboxAccount, SupplierInvoiceInboxApprove, SupplierInvoiceInboxCell, SupplierInvoiceInboxConfirm, SupplierInvoiceInboxNext, SupplierInvoiceInboxPrev, type SupplierInvoiceInboxProps, SupplierInvoiceInboxReject, SupplierInvoiceInboxRoot, SupplierInvoiceInboxSearch, SupplierInvoiceInboxSelect, SupplierInvoiceInboxSort, SupplierInvoiceInboxStatusFilter };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
SupplierInvoiceInbox,
|
|
4
|
+
SupplierInvoiceInboxAccount,
|
|
5
|
+
SupplierInvoiceInboxApprove,
|
|
6
|
+
SupplierInvoiceInboxCell,
|
|
7
|
+
SupplierInvoiceInboxConfirm,
|
|
8
|
+
SupplierInvoiceInboxNext,
|
|
9
|
+
SupplierInvoiceInboxPrev,
|
|
10
|
+
SupplierInvoiceInboxReject,
|
|
11
|
+
SupplierInvoiceInboxRoot,
|
|
12
|
+
SupplierInvoiceInboxSearch,
|
|
13
|
+
SupplierInvoiceInboxSelect,
|
|
14
|
+
SupplierInvoiceInboxSort,
|
|
15
|
+
SupplierInvoiceInboxStatusFilter,
|
|
16
|
+
supplierInvoiceInbox
|
|
17
|
+
} from "./chunk-SX3U6DRW.js";
|
|
18
|
+
import "./chunk-K72VT6RJ.js";
|
|
19
|
+
import "./chunk-ZYLWSGWQ.js";
|
|
20
|
+
import "./chunk-GVP2N3K6.js";
|
|
21
|
+
import "./chunk-HKYEHBQT.js";
|
|
22
|
+
export {
|
|
23
|
+
SupplierInvoiceInbox,
|
|
24
|
+
SupplierInvoiceInboxAccount,
|
|
25
|
+
SupplierInvoiceInboxApprove,
|
|
26
|
+
SupplierInvoiceInboxCell,
|
|
27
|
+
SupplierInvoiceInboxConfirm,
|
|
28
|
+
SupplierInvoiceInboxNext,
|
|
29
|
+
SupplierInvoiceInboxPrev,
|
|
30
|
+
SupplierInvoiceInboxReject,
|
|
31
|
+
SupplierInvoiceInboxRoot,
|
|
32
|
+
SupplierInvoiceInboxSearch,
|
|
33
|
+
SupplierInvoiceInboxSelect,
|
|
34
|
+
SupplierInvoiceInboxSort,
|
|
35
|
+
SupplierInvoiceInboxStatusFilter,
|
|
36
|
+
supplierInvoiceInbox
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=supplier-invoice-inbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { TaxCode } from '@booki-aui/core/locale';
|
|
4
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
5
|
+
import { B as BookiFormProps } from './form-props-Ct7zeZBH.js';
|
|
6
|
+
import { taxCodeSelect } from '@booki-aui/primitives/tax-code-select';
|
|
7
|
+
export { taxCodeSelect } from '@booki-aui/primitives/tax-code-select';
|
|
8
|
+
|
|
9
|
+
declare const TAGS: {
|
|
10
|
+
readonly root: "div";
|
|
11
|
+
readonly trigger: "button";
|
|
12
|
+
readonly list: "div";
|
|
13
|
+
readonly option: "div";
|
|
14
|
+
readonly select: "select";
|
|
15
|
+
};
|
|
16
|
+
declare const parts: Parts<typeof taxCodeSelect, typeof TAGS>;
|
|
17
|
+
declare const TaxCodeSelectRoot: (typeof parts)["Root"];
|
|
18
|
+
/** The select-only combobox a person opens. */
|
|
19
|
+
declare const TaxCodeSelectTrigger: (typeof parts)["Trigger"];
|
|
20
|
+
declare const TaxCodeSelectList: (typeof parts)["List"];
|
|
21
|
+
declare const TaxCodeSelectOption: (typeof parts)["Option"];
|
|
22
|
+
/** The native `<select>` fallback, shown by @booki-aui/styles on touch screens. */
|
|
23
|
+
declare const TaxCodeSelectControl: (typeof parts)["Select"];
|
|
24
|
+
type TaxCodeSelectProps = {
|
|
25
|
+
value?: string;
|
|
26
|
+
defaultValue?: string;
|
|
27
|
+
codes?: TaxCode[];
|
|
28
|
+
onValueChange?: (code: string, tax?: TaxCode) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
} & BookiFormProps & Omit<ComponentProps<"div">, "onChange" | "defaultValue" | "children" | "id">;
|
|
31
|
+
declare function TaxCodeSelect({ value, defaultValue, codes: codesProp, onValueChange, name, id, disabled, readOnly, required, className, ...props }: TaxCodeSelectProps): react.JSX.Element;
|
|
32
|
+
|
|
33
|
+
export { TaxCodeSelect, TaxCodeSelectControl, TaxCodeSelectList, TaxCodeSelectOption, type TaxCodeSelectProps, TaxCodeSelectRoot, TaxCodeSelectTrigger };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
TaxCodeSelect,
|
|
4
|
+
TaxCodeSelectControl,
|
|
5
|
+
TaxCodeSelectList,
|
|
6
|
+
TaxCodeSelectOption,
|
|
7
|
+
TaxCodeSelectRoot,
|
|
8
|
+
TaxCodeSelectTrigger,
|
|
9
|
+
taxCodeSelect
|
|
10
|
+
} from "./chunk-ZYPW7GCI.js";
|
|
11
|
+
import "./chunk-OYERLEER.js";
|
|
12
|
+
import "./chunk-GVP2N3K6.js";
|
|
13
|
+
import "./chunk-HKYEHBQT.js";
|
|
14
|
+
export {
|
|
15
|
+
TaxCodeSelect,
|
|
16
|
+
TaxCodeSelectControl,
|
|
17
|
+
TaxCodeSelectList,
|
|
18
|
+
TaxCodeSelectOption,
|
|
19
|
+
TaxCodeSelectRoot,
|
|
20
|
+
TaxCodeSelectTrigger,
|
|
21
|
+
taxCodeSelect
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=tax-code-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, AnchorHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
/** The book of a docs page: an open book with lines on it. */
|
|
5
|
+
declare function DocsIcon({ size }: {
|
|
6
|
+
size?: number;
|
|
7
|
+
}): react.JSX.Element;
|
|
8
|
+
/** GitHub's mark (the Invertocat), as GitHub publishes it, for links to a repository. */
|
|
9
|
+
declare function GitHubIcon({ size }: {
|
|
10
|
+
size?: number;
|
|
11
|
+
}): react.JSX.Element;
|
|
12
|
+
declare const ICONS: {
|
|
13
|
+
readonly docs: typeof DocsIcon;
|
|
14
|
+
readonly github: typeof GitHubIcon;
|
|
15
|
+
};
|
|
16
|
+
type TextLinkProps = {
|
|
17
|
+
/** A named icon before the text, or your own element. */
|
|
18
|
+
icon?: keyof typeof ICONS | ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Render your own link element (a router's Link) with the text link's look:
|
|
21
|
+
* `<TextLink asChild><Link to="/docs">Docs</Link></TextLink>`.
|
|
22
|
+
*/
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
26
|
+
/**
|
|
27
|
+
* A text link in Booki's look: ink text, an underline that firms up on hover,
|
|
28
|
+
* and an optional icon before it. Display only: a link is navigation, not an
|
|
29
|
+
* agent action, so it has no primitive and no agent actions.
|
|
30
|
+
*/
|
|
31
|
+
declare function TextLink({ icon, asChild, children, ...props }: TextLinkProps): react.JSX.Element;
|
|
32
|
+
|
|
33
|
+
export { DocsIcon, GitHubIcon, TextLink, type TextLinkProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/toasts.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ToastRegion } from '@ui-sdk/react/toast';
|
|
3
|
+
export { createToaster, toast } from '@ui-sdk/react/toast';
|
|
4
|
+
import { createBookiHistory, AgentBridge } from './booki-agent.js';
|
|
5
|
+
import '@ui-sdk/core/history';
|
|
6
|
+
import '@ui-sdk/react/history';
|
|
7
|
+
import '@ui-sdk/react/agent';
|
|
8
|
+
import '@booki-aui/primitives/agent-policy';
|
|
9
|
+
import '@booki-aui/core/msg';
|
|
10
|
+
import './audit-trail.js';
|
|
11
|
+
|
|
12
|
+
/** What a Booki toast carries beyond its text. */
|
|
13
|
+
type BookiToastData = {
|
|
14
|
+
/** Something an agent did: the toast wears the agent's mark. */
|
|
15
|
+
agent?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Any toaster from `createToaster()`, as the region takes it. */
|
|
18
|
+
type Toaster = NonNullable<Parameters<typeof ToastRegion>[0]["toaster"]>;
|
|
19
|
+
type BookiToastsProps = {
|
|
20
|
+
/** The queue to show. Default: the shared `toast()`. */
|
|
21
|
+
toaster?: Toaster;
|
|
22
|
+
side?: "top" | "bottom";
|
|
23
|
+
align?: "start" | "center" | "end";
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Where receipts land: "Voucher 1042 posted", "Payment run sent". Put it once
|
|
28
|
+
* near the root. A toast an agent caused carries the agent's mark, in words
|
|
29
|
+
* and in its colour. Timers pause while the pointer or focus is on them and
|
|
30
|
+
* while the page is hidden; F6 moves focus to them and back.
|
|
31
|
+
*/
|
|
32
|
+
declare function BookiToasts({ toaster, side, align, className }: BookiToastsProps): react.JSX.Element;
|
|
33
|
+
type AgentToastOptions = {
|
|
34
|
+
/** The queue to use. Default: the shared `toast()`. */
|
|
35
|
+
toaster?: Toaster;
|
|
36
|
+
/**
|
|
37
|
+
* The history to describe and undo from. Default: one this hook records
|
|
38
|
+
* with `createBookiHistory`. Undo puts the page back to just before that
|
|
39
|
+
* change, so later changes are undone with it.
|
|
40
|
+
*/
|
|
41
|
+
history?: ReturnType<typeof createBookiHistory>;
|
|
42
|
+
/** How long each receipt shows, in ms. Default 6000. */
|
|
43
|
+
duration?: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* A receipt for every change an agent makes on the page: "Agent set Amount
|
|
47
|
+
* to 1 250,00", with Undo. A person sees what the agent did as it happens,
|
|
48
|
+
* not only in the audit trail. Redacted changes (bank details) are described
|
|
49
|
+
* without their value and cannot be undone.
|
|
50
|
+
*/
|
|
51
|
+
declare function useAgentToasts(agent: AgentBridge | null | undefined, options?: AgentToastOptions): void;
|
|
52
|
+
|
|
53
|
+
export { type AgentToastOptions, type BookiToastData, BookiToasts, type BookiToastsProps, useAgentToasts };
|
package/dist/toasts.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
BookiToasts,
|
|
4
|
+
createToaster,
|
|
5
|
+
toast,
|
|
6
|
+
useAgentToasts
|
|
7
|
+
} from "./chunk-4GQUOBOG.js";
|
|
8
|
+
import "./chunk-SHZFZRHV.js";
|
|
9
|
+
import "./chunk-GVP2N3K6.js";
|
|
10
|
+
import "./chunk-HKYEHBQT.js";
|
|
11
|
+
export {
|
|
12
|
+
BookiToasts,
|
|
13
|
+
createToaster,
|
|
14
|
+
toast,
|
|
15
|
+
useAgentToasts
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=toasts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|