@tallyui/components 4.1.0 → 5.0.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/dist/index.d.ts +133 -50
- package/dist/index.js +2134 -1722
- package/package.json +10 -9
- package/src/cart/cart-columns-form.tsx +1 -1
- package/src/cart/cart-line-strip.tsx +17 -4
- package/src/customer/customer-dropdown.tsx +6 -2
- package/src/customer/customer-editor.tsx +2 -2
- package/src/customer/customer-picker.tsx +15 -12
- package/src/i18n/locales/en/components.json +23 -2
- package/src/index.ts +4 -2
- package/src/layout/settings-layout.tsx +16 -4
- package/src/lib/motion.ts +6 -0
- package/src/order/index.ts +1 -0
- package/src/order/refund-form.tsx +16 -3
- package/src/order/refund-needs-admin-notice.tsx +29 -0
- package/src/product/product-table.tsx +18 -7
- package/src/product/product-variant-picker.tsx +4 -0
- package/src/register/register-count.tsx +1 -1
- package/src/reports/card-panel.tsx +3 -1
- package/src/reports/cards.tsx +1 -0
- package/src/sale/cancel-payment-view.tsx +102 -0
- package/src/sale/cart.tsx +12 -8
- package/src/sale/catalogue-settings-form.tsx +2 -2
- package/src/sale/catalogue.tsx +57 -12
- package/src/sale/charge-form.tsx +21 -3
- package/src/sale/customer-display-screen.tsx +2 -1
- package/src/sale/index.ts +2 -2
- package/src/sale/open-sale-tabs.tsx +23 -3
- package/src/sale/orders-list.tsx +10 -3
- package/src/sale/receipt-sheet.tsx +28 -8
- package/src/sale/receipt.tsx +1 -0
- package/src/sale/sale-error-text.ts +10 -0
- package/src/sale/since-text.ts +6 -3
- package/src/sale/sync-status.tsx +10 -1
- package/src/sale/tender-ledger.tsx +54 -11
- package/src/sale/tender-pane.tsx +106 -38
- package/src/sale/tender.tsx +7 -5
- package/src/sale/void-in-flight.ts +19 -0
- package/src/ui/tabs/index.tsx +1 -1
- package/src/checkout/payment-types.test-d.ts +0 -28
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
/// <reference path="../src/uniwind-env.d.ts" />
|
|
1
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
4
|
import * as React$1 from 'react';
|
|
4
|
-
import { JSX, ReactNode, ComponentType } from 'react';
|
|
5
|
+
import { JSX, ReactNode, ComponentType, ComponentProps } from 'react';
|
|
5
6
|
import * as react_native from 'react-native';
|
|
6
7
|
import { Text as Text$1, ViewProps, View, PressableProps, Role, TextProps as TextProps$1, TextInputProps, TextInput, ScrollView, Pressable, StyleProp, ImageStyle } from 'react-native';
|
|
7
8
|
import { VariantProps } from 'class-variance-authority';
|
|
8
9
|
import { SvgProps } from 'react-native-svg';
|
|
9
10
|
import { Separator as Separator$1, Label as Label$1, Tabs as Tabs$1, Dialog as Dialog$1, AlertDialog as AlertDialog$1, Select as Select$1, Combobox as Combobox$1, DropdownMenu as DropdownMenu$1, ContextMenu as ContextMenu$1, Popover as Popover$1, Tooltip as Tooltip$1, HoverCard as HoverCard$1, Accordion as Accordion$1, Collapsible as Collapsible$1, Checkbox as Checkbox$1, Switch as Switch$1, RadioGroup as RadioGroup$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Progress as Progress$1, Slider as Slider$1, Image } from '@tallyui/primitives';
|
|
10
11
|
export { TextClassContext } from '@tallyui/primitives';
|
|
11
|
-
import { StoreDay, DayRange, CatalogueView, ProductSortValue, ProductSort, ViewfinderStatus, CameraDecoder, RefundableOrderLine, EarlierRefund, OrderFilterValue, useRegisterSession, RegisterSession, MovementType, ApprovalNeeded, SwitchKind, SwitchWarnings, HandoverSlipData, AppSettings, useAppSettings, PairingPhase, PairingError, TillDisplayStatus, TillDisplayEntry, PrinterProfile, TraceAnalysis, TaxDerivation, useSale, TenderState, TenderAction, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, CartQuantityLine, TileFields, CatalogueGridColumns, SentOrder, PosOrder, ReceiptData, OutboxState, ParkedOrderSummary, OpenSale, DisplayState, DisplayClientPhase, SalesFigures, DatePreset } from '@tallyui/pos';
|
|
12
|
+
import { StoreDay, DayRange, CatalogueView, ProductSortValue, ProductSort, ViewfinderStatus, CameraDecoder, RefundableOrderLine, EarlierRefund, OrderFilterValue, useRegisterSession, RegisterSession, MovementType, ApprovalNeeded, SwitchKind, SwitchWarnings, HandoverSlipData, AppSettings, useAppSettings, PairingPhase, PairingError, TillDisplayStatus, TillDisplayEntry, PrinterProfile, TraceAnalysis, TaxDerivation, useSale, Payment, TenderState, TenderAction, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, CartQuantityLine, TileFields, CatalogueGridColumns, SentOrder, PosOrder, ReceiptData, OutboxState, ParkedOrderSummary, OpenSale, DisplayState, DisplayClientPhase, SalesFigures, DatePreset } from '@tallyui/pos';
|
|
12
13
|
import { ScaleOverride, ScaleVariables, ScaleStep, Pointer, TypeSetId, ThemeFontFamily, ThemeType } from '@tallyui/theme';
|
|
13
14
|
import { ProductTraits, TraitContext, VariantOptionGroup, VariantSummary, Money, CustomerTraits, CustomerAddress, Customer, CustomerInput, CustomerPatch, OrderRefundPayload, OrderFilterField, PaymentKind, woocommerceTax, ReceiptTemplate, PaymentMethodDescriptor, MoneyFormat, ProductCategory, SyncNotice, StoreSettingsChoices, StoreSettingsChoice, ConnectivityState } from '@tallyui/core';
|
|
14
15
|
import { TFunction } from 'i18next';
|
|
@@ -911,8 +912,12 @@ interface ProductTableProps extends Omit<ViewProps, 'children'> {
|
|
|
911
912
|
/** With renderExpanded and showThumbnail, a product with more than one variant has its thumbnail toggle its
|
|
912
913
|
* expanded block: a button labelled "Show variations" with aria-expanded. A press calls this, never onSelect. */
|
|
913
914
|
onToggleExpand?: (doc: ProductTableRowDoc) => void;
|
|
914
|
-
/** The block drawn under an expanded row (e.g. its variant rows), indented by the thumbnail column. */
|
|
915
|
+
/** The block drawn under an expanded row (e.g. its variant rows), indented by the thumbnail column when it shows. */
|
|
915
916
|
renderExpanded?: (doc: ProductTableRowDoc) => ReactNode;
|
|
917
|
+
/** v2's "{count} variations" button under the first cell's content, with a chevron and aria-expanded, on a product
|
|
918
|
+
* with more than one variant. A press calls onToggleExpand, never onSelect; needs onToggleExpand and renderExpanded,
|
|
919
|
+
* and makes such rows expandable without showThumbnail. Default false. */
|
|
920
|
+
variationsButton?: boolean;
|
|
916
921
|
/** With no items, draw the header and skeleton rows instead of emptyState, as WCPOS v2's DataTableSkeleton. */
|
|
917
922
|
loading?: boolean;
|
|
918
923
|
className?: string;
|
|
@@ -923,7 +928,7 @@ declare function defaultProductColumns(traits: ProductTraits, context?: TraitCon
|
|
|
923
928
|
declare function useDefaultProductColumns(options?: {
|
|
924
929
|
currencySymbol?: string;
|
|
925
930
|
}): ProductTableColumn[];
|
|
926
|
-
declare function ProductTable({ items, columns, sort, defaultSort, onSortChange, sortItems, onSelect, searchSlot, filterSlot, emptyState, showUnsellable, currencySymbol, showThumbnail, showAddButton, cartQuantity, isExpanded, onToggleExpand, renderExpanded, loading, className, ...viewProps }: ProductTableProps): JSX.Element;
|
|
931
|
+
declare function ProductTable({ items, columns, sort, defaultSort, onSortChange, sortItems, onSelect, searchSlot, filterSlot, emptyState, showUnsellable, currencySymbol, showThumbnail, showAddButton, cartQuantity, isExpanded, onToggleExpand, renderExpanded, variationsButton, loading, className, ...viewProps }: ProductTableProps): JSX.Element;
|
|
927
932
|
|
|
928
933
|
/**
|
|
929
934
|
* WCPOS v2's Products screen read columns: image, product (with its variation count), stock with the Manage switch,
|
|
@@ -963,6 +968,8 @@ declare function CategoryNav({ categories, selectedId, onSelect, orientation, cl
|
|
|
963
968
|
interface VariantOption {
|
|
964
969
|
name: string;
|
|
965
970
|
values: string[];
|
|
971
|
+
/** Values in this group that no variant takes with the other current picks; drawn dimmed, still pressable. */
|
|
972
|
+
dimmed?: string[];
|
|
966
973
|
}
|
|
967
974
|
interface ProductVariantPickerProps extends Omit<ViewProps, 'children'> {
|
|
968
975
|
options: VariantOption[];
|
|
@@ -1857,6 +1864,10 @@ interface RefundFormProps {
|
|
|
1857
1864
|
refundedMinor?: number;
|
|
1858
1865
|
/** Shipping still refundable, with tax; 0 or absent hides the shipping field. */
|
|
1859
1866
|
refundableShippingMinor?: number;
|
|
1867
|
+
/** The order's cash rounding, signed (ADR-094): the sum of its entries, or a WooCommerce order's Rounding fee. The refund that takes every line's whole remaining quantity returns it through adjustmentMinor; default 0. */
|
|
1868
|
+
cashRoundingMinor?: number;
|
|
1869
|
+
/** The cash method's rounding increment (PaymentRounding.incrementMinor). A cash refund that is not a multiple of it shows a one-line notice; the refund itself is not rounded. */
|
|
1870
|
+
cashIncrementMinor?: number;
|
|
1860
1871
|
/** The sale's payment method; omit for a cash sale, which always refunds in cash. */
|
|
1861
1872
|
originalMethod?: {
|
|
1862
1873
|
title: string;
|
|
@@ -1873,7 +1884,7 @@ interface RefundFormProps {
|
|
|
1873
1884
|
onCancel: () => void;
|
|
1874
1885
|
}
|
|
1875
1886
|
/** Ports WCPOS v2 form.tsx, monorepo main 5ac185b0e; the till never prices lines itself (priceRefund). */
|
|
1876
|
-
declare function RefundForm({ lines, refunds, currency, orderReference, orderTotalMinor, refundedMinor, refundableShippingMinor, originalMethod, defaultRestock, online, error, onConfirm, onCancel, }: RefundFormProps): JSX.Element;
|
|
1887
|
+
declare function RefundForm({ lines, refunds, currency, orderReference, orderTotalMinor, refundedMinor, refundableShippingMinor, cashRoundingMinor, cashIncrementMinor, originalMethod, defaultRestock, online, error, onConfirm, onCancel, }: RefundFormProps): JSX.Element;
|
|
1877
1888
|
|
|
1878
1889
|
interface RefundModalProps extends Omit<RefundFormProps, 'onCancel'> {
|
|
1879
1890
|
open: boolean;
|
|
@@ -1882,6 +1893,16 @@ interface RefundModalProps extends Omit<RefundFormProps, 'onCancel'> {
|
|
|
1882
1893
|
/** Ports WCPOS v2 modal.tsx: a bounded panel around the refund form. */
|
|
1883
1894
|
declare function RefundModal({ open, onOpenChange, ...formProps }: RefundModalProps): JSX.Element;
|
|
1884
1895
|
|
|
1896
|
+
type RefundNeedsAdminNoticeProps = {
|
|
1897
|
+
/** The server's needs_admin reason: the outcome's `reason`, or a pending record's `error.data.reason`. */
|
|
1898
|
+
reason: string;
|
|
1899
|
+
/** The server's message: shown under the lead line as plain text, cut to NEEDS_ADMIN_MESSAGE_MAX. */
|
|
1900
|
+
message?: string;
|
|
1901
|
+
/** Resends the same refund envelope (same id); omit to hide the button. */
|
|
1902
|
+
onCheckAgain?: () => void;
|
|
1903
|
+
};
|
|
1904
|
+
declare function RefundNeedsAdminNotice({ reason, message, onCheckAgain }: RefundNeedsAdminNoticeProps): JSX.Element;
|
|
1905
|
+
|
|
1885
1906
|
interface FilterOption {
|
|
1886
1907
|
value: string;
|
|
1887
1908
|
label: string;
|
|
@@ -2545,6 +2566,47 @@ interface TaxBasedOnProps {
|
|
|
2545
2566
|
*/
|
|
2546
2567
|
declare function TaxBasedOn({ derivation, onChangeSetting, onViewAllRates, countryName, className }: TaxBasedOnProps): react_jsx_runtime.JSX.Element;
|
|
2547
2568
|
|
|
2569
|
+
/**
|
|
2570
|
+
* Port of WCPOS v2 (MIT) `packages/core/src/contexts/translations/index.tsx`: one i18next instance per
|
|
2571
|
+
* provider, a locale change applied with `changeLanguage`, v2's init options and `useT`. The regional
|
|
2572
|
+
* fallback (`fr_CA` → `fr`) is v2's `rxdb-backend.ts` `getBaseLanguage`, as `fallbackLng`. There is no
|
|
2573
|
+
* backend: English is bundled and the app passes other languages as `resources`.
|
|
2574
|
+
*/
|
|
2575
|
+
|
|
2576
|
+
/** Catalogues by language code, as the app spells it (`fr`, `fr_CA`, `fr-CA`): key → string. */
|
|
2577
|
+
type Catalogues = Record<string, Record<string, string>>;
|
|
2578
|
+
interface I18nProviderProps {
|
|
2579
|
+
/** The store's locale (`fr_CA` or `fr-CA`). Without one, the device's locale. */
|
|
2580
|
+
locale?: string;
|
|
2581
|
+
/** Other languages' catalogues; English is bundled. May arrive or change after mount. */
|
|
2582
|
+
resources?: Catalogues;
|
|
2583
|
+
children: React$1.ReactNode;
|
|
2584
|
+
}
|
|
2585
|
+
declare function I18nProvider({ locale, resources, children }: I18nProviderProps): React$1.JSX.Element;
|
|
2586
|
+
/** The components' `t`, read from the nearest `I18nProvider`, else English. Interpolation is `{name}`. */
|
|
2587
|
+
declare function useT(): TFunction;
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* The payments ledger, as WCPOS v2's LedgerLegs (monorepo main, packages/core/src/screens/main/pos/checkout/tender/ledger-pane.tsx):
|
|
2591
|
+
* each leg with its status, Next and Cancel payment. `closing` is v2's checkout cart (cart/stilled-cart.tsx): a Payments
|
|
2592
|
+
* heading, the legs, then Total, Paid and a Remaining (or Paid in full) lead row. Internal: TenderPane and Cart render it.
|
|
2593
|
+
*/
|
|
2594
|
+
|
|
2595
|
+
declare function TenderLedger({ sale, methods, closing, confirmVoid, beforeVoid, afterVoid }: {
|
|
2596
|
+
sale: ReturnType<typeof useSale>;
|
|
2597
|
+
methods?: PaymentMethodDescriptor[];
|
|
2598
|
+
closing?: boolean;
|
|
2599
|
+
/** v2's "Cancel this payment?" before a leg is voided (use-tender-flow.ts cancelOne). Default false: Cancel payment voids at once. */
|
|
2600
|
+
confirmVoid?: boolean;
|
|
2601
|
+
/**
|
|
2602
|
+
* Runs before Cancel payment voids the leg (a host journalling each void first, as v2's awaited cancelOnePayment); the
|
|
2603
|
+
* void waits for it. Returning `false` or throwing keeps the leg (the host reports its own error). Absent, the void is immediate.
|
|
2604
|
+
*/
|
|
2605
|
+
beforeVoid?: (leg: Payment) => boolean | void | Promise<boolean | void>;
|
|
2606
|
+
/** Runs after a void that beforeVoid approved, with voidTender's result: false means the leg was kept (voided, locked or finished elsewhere meanwhile), so the host reverses what beforeVoid journalled. Not called without beforeVoid, nor when beforeVoid refuses. */
|
|
2607
|
+
afterVoid?: (leg: Payment, voided: boolean) => void;
|
|
2608
|
+
}): JSX.Element | null;
|
|
2609
|
+
|
|
2548
2610
|
/** `taxLabel` names each tax row; VAT isn't universal, so a platform passes its own (medusapos passes `VAT ${rate}%`). */
|
|
2549
2611
|
declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscounts, taxClasses, afterSubtotal, showTotal, couponDiscountMinor, orderActions, orderDiscountChips, checkout, noteSheet, tenderLedger, picker, lineEditor, lineCommit, columns, chargeTaxSwitch, emptyIcon, emptyText }: {
|
|
2550
2612
|
sale: ReturnType<typeof useSale>;
|
|
@@ -2597,10 +2659,12 @@ declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscou
|
|
|
2597
2659
|
noteSheet?: {
|
|
2598
2660
|
label?: string;
|
|
2599
2661
|
};
|
|
2600
|
-
/** v2's checkout cart (stilled-cart.tsx): while `sale.stage` is tender, the payments ledger (each leg with its status and Cancel payment, then Total, Paid and Remaining) sits under the totals in place of the foot. `methods` names the legs, as on Tender. Pair it with `<Tender ledger={false} />`. `confirmVoid` asks v2's "Cancel this payment?" before a leg is voided (default `false`). */
|
|
2662
|
+
/** v2's checkout cart (stilled-cart.tsx): while `sale.stage` is tender, the payments ledger (each leg with its status and Cancel payment, then Total, Paid and Remaining) sits under the totals in place of the foot. `methods` names the legs, as on Tender. Pair it with `<Tender ledger={false} />`. `confirmVoid` asks v2's "Cancel this payment?" before a leg is voided (default `false`). `beforeVoid` runs before Cancel payment voids a leg, as on TenderLedger. */
|
|
2601
2663
|
tenderLedger?: {
|
|
2602
2664
|
methods?: PaymentMethodDescriptor[];
|
|
2603
2665
|
confirmVoid?: boolean;
|
|
2666
|
+
beforeVoid?: ComponentProps<typeof TenderLedger>['beforeVoid'];
|
|
2667
|
+
afterVoid?: ComponentProps<typeof TenderLedger>['afterVoid'];
|
|
2604
2668
|
};
|
|
2605
2669
|
/** WCPOS v2's split-by-item bill (stilled-cart.tsx): the cart is read-only, and each line whose quantity is a positive
|
|
2606
2670
|
* whole number, whose total is not negative and that has units left unpaid shows this payment's `− n of unpaid +`
|
|
@@ -2635,6 +2699,16 @@ declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscou
|
|
|
2635
2699
|
/** The empty cart's line. Default: v2's "Tap a product to start a sale". */
|
|
2636
2700
|
emptyText?: string;
|
|
2637
2701
|
}): react_jsx_runtime.JSX.Element;
|
|
2702
|
+
/** WCPOS v2's `− n of unpaid +` stepper (tender/unit-stepper.tsx), the one Cart's `picker` draws in each pickable line's
|
|
2703
|
+
* quantity cell, with what the picked units add under it. An app cart built on CartPanel and CartLine passes it as
|
|
2704
|
+
* CartLine's `quantitySlot` (with `picking`), with the same `picker` object Cart takes. */
|
|
2705
|
+
declare function PickStepper({ picker, id, name, unpaid, currency }: {
|
|
2706
|
+
picker: NonNullable<Parameters<typeof Cart>[0]['picker']>;
|
|
2707
|
+
id: string;
|
|
2708
|
+
name: string;
|
|
2709
|
+
unpaid: number;
|
|
2710
|
+
currency: string;
|
|
2711
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2638
2712
|
|
|
2639
2713
|
interface OrderNoteSheetProps {
|
|
2640
2714
|
/** The note as it stands; the sheet edits it live, as v2's autosaved field does. */
|
|
@@ -2672,20 +2746,6 @@ declare function useTender(sale: Sale$2, methods?: PaymentMethodDescriptor[]): {
|
|
|
2672
2746
|
picker: TenderPicker | undefined;
|
|
2673
2747
|
};
|
|
2674
2748
|
|
|
2675
|
-
type Sale$1 = ReturnType<typeof useSale>;
|
|
2676
|
-
type TenderProps = {
|
|
2677
|
-
sale: Sale$1;
|
|
2678
|
-
methods?: PaymentMethodDescriptor[]; /** Passed to TenderPane: `false` leaves the ledger to Cart's `tenderLedger`. Default `true`. */
|
|
2679
|
-
ledger?: boolean; /** Passed to TenderPane: `false` hides Back (v2's phone checkout). Default `true`. */
|
|
2680
|
-
back?: boolean;
|
|
2681
|
-
/** Passed to TenderPane's ledger: v2's "Cancel this payment?" before a leg is voided. Default `false`. */ confirmVoid?: boolean;
|
|
2682
|
-
/** One reducer shared with Cart's `picker` (useTender). Without it, Tender keeps its own reducer, as before. */ tender?: ReturnType<typeof useTender>;
|
|
2683
|
-
};
|
|
2684
|
-
/** The tender pane with its own reducer, opened on the method `startTender` chose. Renders nothing outside the tender stage. */
|
|
2685
|
-
declare function Tender({ sale, methods, ledger, back, confirmVoid, tender }: TenderProps): JSX.Element | null;
|
|
2686
|
-
/** @deprecated Use Tender: the pane now handles split payments. */
|
|
2687
|
-
declare function SplitTender(props: TenderProps): JSX.Element;
|
|
2688
|
-
|
|
2689
2749
|
/**
|
|
2690
2750
|
* The tender pane, laid out as WCPOS v2's (monorepo main, packages/core/src/screens/main/pos/checkout/tender/):
|
|
2691
2751
|
* BalanceHeadline from ledger-pane.tsx, LedgerLegs (now tender-ledger.tsx's TenderLedger), then the method tiles, entry, quick-cash chips,
|
|
@@ -2694,9 +2754,9 @@ declare function SplitTender(props: TenderProps): JSX.Element;
|
|
|
2694
2754
|
* The caption row and the hero figure follow tender-pane.tsx's caption row and AmountFigure (v2 :390-459).
|
|
2695
2755
|
*/
|
|
2696
2756
|
|
|
2697
|
-
type Sale = ReturnType<typeof useSale>;
|
|
2757
|
+
type Sale$1 = ReturnType<typeof useSale>;
|
|
2698
2758
|
interface TenderPaneProps {
|
|
2699
|
-
sale: Sale;
|
|
2759
|
+
sale: Sale$1;
|
|
2700
2760
|
/** The tender reducer's state (`tenderReducer` in @tallyui/pos); the host owns the reducer. */
|
|
2701
2761
|
state: TenderState;
|
|
2702
2762
|
dispatch: (action: TenderAction) => void;
|
|
@@ -2704,11 +2764,31 @@ interface TenderPaneProps {
|
|
|
2704
2764
|
methods?: PaymentMethodDescriptor[];
|
|
2705
2765
|
/** Draws the payments ledger in the pane. Pass `false` when the host shows it in the cart column, as v2 does (Cart's `tenderLedger`). Default `true`. */
|
|
2706
2766
|
ledger?: boolean;
|
|
2707
|
-
/** Draws the Back button
|
|
2767
|
+
/** Draws the Back button: `sale.cancelTender`, or the cancel-payment view first when money was taken here. Pass `false` when the host leaves the tender stage itself, as v2's phone checkout does. Default `true`. */ back?: boolean;
|
|
2708
2768
|
/** Passed to the ledger: v2's "Cancel this payment?" before a leg is voided. Default `false`: Cancel payment voids at once. */
|
|
2709
2769
|
confirmVoid?: boolean;
|
|
2770
|
+
/** Passed to the ledger: runs before Cancel payment voids a leg; the void waits for it, and `false` or a throw keeps the leg. */
|
|
2771
|
+
beforeVoid?: ComponentProps<typeof TenderLedger>['beforeVoid'];
|
|
2772
|
+
/** Passed to the ledger: runs after a void `beforeVoid` approved, with whether the leg was voided; `false` means the host reverses its journal entry. */
|
|
2773
|
+
afterVoid?: ComponentProps<typeof TenderLedger>['afterVoid'];
|
|
2710
2774
|
}
|
|
2711
|
-
declare function TenderPane({ sale, state, dispatch, methods, ledger, back, confirmVoid }: TenderPaneProps): JSX.Element | null;
|
|
2775
|
+
declare function TenderPane({ sale, state, dispatch, methods, ledger, back, confirmVoid, beforeVoid, afterVoid }: TenderPaneProps): JSX.Element | null;
|
|
2776
|
+
|
|
2777
|
+
type Sale = ReturnType<typeof useSale>;
|
|
2778
|
+
type TenderProps = {
|
|
2779
|
+
sale: Sale;
|
|
2780
|
+
methods?: PaymentMethodDescriptor[]; /** Passed to TenderPane: `false` leaves the ledger to Cart's `tenderLedger`. Default `true`. */
|
|
2781
|
+
ledger?: boolean; /** Passed to TenderPane: `false` hides Back (v2's phone checkout). Default `true`. */
|
|
2782
|
+
back?: boolean;
|
|
2783
|
+
/** Passed to TenderPane's ledger: v2's "Cancel this payment?" before a leg is voided. Default `false`. */ confirmVoid?: boolean;
|
|
2784
|
+
/** Passed to TenderPane's ledger and its cancel-payment view: runs before either voids a leg; the void waits for it. */ beforeVoid?: TenderPaneProps['beforeVoid'];
|
|
2785
|
+
/** Passed to TenderPane's ledger and its cancel-payment view: runs after either voids a leg `beforeVoid` approved, with whether it was voided. */ afterVoid?: TenderPaneProps['afterVoid'];
|
|
2786
|
+
/** One reducer shared with Cart's `picker` (useTender). Without it, Tender keeps its own reducer, as before. */ tender?: ReturnType<typeof useTender>;
|
|
2787
|
+
};
|
|
2788
|
+
/** The tender pane with its own reducer, opened on the method `startTender` chose. Renders nothing outside the tender stage. */
|
|
2789
|
+
declare function Tender({ sale, methods, ledger, back, confirmVoid, beforeVoid, afterVoid, tender }: TenderProps): JSX.Element | null;
|
|
2790
|
+
/** @deprecated Use Tender: the pane now handles split payments. */
|
|
2791
|
+
declare function SplitTender(props: TenderProps): JSX.Element;
|
|
2712
2792
|
|
|
2713
2793
|
/** The cashier's entry as a TallyUI Discount (a percent, or integer minor units), or the inline error to show. */
|
|
2714
2794
|
declare function parseDiscount(type: Discount['type'], text: string, currency: string, format?: MoneyFormat): Discount | string;
|
|
@@ -2828,7 +2908,10 @@ interface ChargeFormProps {
|
|
|
2828
2908
|
taxClass?: string;
|
|
2829
2909
|
percent?: number;
|
|
2830
2910
|
amountIncludesTax?: boolean;
|
|
2911
|
+
sku?: string;
|
|
2831
2912
|
};
|
|
2913
|
+
/** On the custom kind, shows v2's "+ SKU" add-row after the tax rows; pressing it shows the SKU field. */
|
|
2914
|
+
sku?: boolean;
|
|
2832
2915
|
/** Shows the amount-unit toggle (currency symbol or %) on the fee kind, as v2's AmountUnitToggle. */
|
|
2833
2916
|
allowPercent?: boolean;
|
|
2834
2917
|
/** The store's tax mode. Given, the fee and shipping kinds show the "Amount Includes Tax" switch (not on a percent fee), which starts at this
|
|
@@ -2842,11 +2925,12 @@ interface ChargeFormProps {
|
|
|
2842
2925
|
taxClass?: string;
|
|
2843
2926
|
percent?: number;
|
|
2844
2927
|
amountIncludesTax?: boolean;
|
|
2928
|
+
sku?: string;
|
|
2845
2929
|
}) => string | null;
|
|
2846
2930
|
onClose: () => void;
|
|
2847
2931
|
}
|
|
2848
2932
|
/** `onApply` returns a refusal to show inline, or null once applied. */
|
|
2849
|
-
declare function ChargeForm({ currency, lineTax, taxClasses, shippingTaxFromStore, shippingNoTax, kind: fixedKind, initial, allowPercent, pricesIncludeTax, onApply, onClose }: ChargeFormProps): react_jsx_runtime.JSX.Element;
|
|
2933
|
+
declare function ChargeForm({ currency, lineTax, taxClasses, shippingTaxFromStore, shippingNoTax, kind: fixedKind, initial, sku, allowPercent, pricesIncludeTax, onApply, onClose }: ChargeFormProps): react_jsx_runtime.JSX.Element;
|
|
2850
2934
|
|
|
2851
2935
|
type ProductFilterChip = 'inStock' | 'featured' | 'onSale' | 'category' | 'tag' | 'brand';
|
|
2852
2936
|
type TermChip = 'category' | 'tag' | 'brand';
|
|
@@ -2985,11 +3069,13 @@ declare function Catalogue<Doc>({ products, traits, currency, onSelect, statusTe
|
|
|
2985
3069
|
/** v2's table row extras in table view: thumbnail leads the row, addButton ends it with the + (> for a product
|
|
2986
3070
|
* with variants) that does what a row press does. With expand and thumbnail, a product with more than one variant
|
|
2987
3071
|
* has its thumbnail show or hide its variants as rows under it: option chips, price, stock and a + that adds that
|
|
2988
|
-
* variant as the list chooser does
|
|
3072
|
+
* variant as the list chooser does; variationsButton adds v2's '{count} variations' button under the name, which shows
|
|
3073
|
+
* or hides the variants as expand does; it needs expand. Default: none. */
|
|
2989
3074
|
tableRow?: {
|
|
2990
3075
|
thumbnail?: boolean;
|
|
2991
3076
|
addButton?: boolean;
|
|
2992
3077
|
expand?: boolean;
|
|
3078
|
+
variationsButton?: boolean;
|
|
2993
3079
|
};
|
|
2994
3080
|
/** v2's rows between the chips and the products (its ListColumn `rows`): notices such as "Price check only until
|
|
2995
3081
|
* the register is open.", rendered under the header and above the grid, table or category tiles. Default none. */
|
|
@@ -3092,7 +3178,7 @@ interface ReceiptSheetEmail {
|
|
|
3092
3178
|
offline?: boolean;
|
|
3093
3179
|
/** Draws "Save email to the customer" (default off). */
|
|
3094
3180
|
saveToCustomer?: boolean;
|
|
3095
|
-
/** Sends or queues the receipt. Returns a refusal to show, or null once sent or queued; the form then
|
|
3181
|
+
/** Sends or queues the receipt. Returns a refusal to show, or null once sent or queued; the form then shows "Email sent", or "Receipt email queued" when offline. */
|
|
3096
3182
|
onSend: (input: {
|
|
3097
3183
|
address: string;
|
|
3098
3184
|
saveToCustomer: boolean;
|
|
@@ -3135,6 +3221,17 @@ interface ReceiptSheetProps {
|
|
|
3135
3221
|
/** The preview. */
|
|
3136
3222
|
children: ReactNode;
|
|
3137
3223
|
}
|
|
3224
|
+
interface ReceiptEmailFormProps {
|
|
3225
|
+
email: ReceiptSheetEmail;
|
|
3226
|
+
/** Called once after `onSend` returns null, with true when `email.offline` was set (queued). */
|
|
3227
|
+
onDone?: (queued: boolean) => void;
|
|
3228
|
+
}
|
|
3229
|
+
/**
|
|
3230
|
+
* v2's email.tsx (MIT, WCPOS) inline, the form ReceiptSheet draws: "Email Address" prefilled from `defaultAddress`,
|
|
3231
|
+
* the save switch (off), the offline notice and Send. After `onSend` returns null it shows "Email sent" or
|
|
3232
|
+
* "Receipt email queued" in its own place and calls `onDone`. Remount it (for example with a new `key`) to send again.
|
|
3233
|
+
*/
|
|
3234
|
+
declare function ReceiptEmailForm({ email, onDone }: ReceiptEmailFormProps): JSX.Element;
|
|
3138
3235
|
declare function ReceiptSheet({ open, onOpenChange, title, templates, templateId, onTemplateChange, printerLabel, printers, printerId, autoPrinterName, onPrinterChange, onPrint, printing, printed, onEmail, email, onDownloadPdf, downloadingPdf, children }: ReceiptSheetProps): JSX.Element;
|
|
3139
3236
|
|
|
3140
3237
|
/** The order reference a visitor sees on the receipt and in Orders (front desk ruling, 2026-10-06): the finalized
|
|
@@ -3305,14 +3402,20 @@ interface CheckoutLayoutProps extends Omit<ViewProps, 'children'> {
|
|
|
3305
3402
|
declare function CheckoutLayout({ summarySlot, paymentSlot, headerSlot, layout: layoutProp, breakpoint, className, ...viewProps }: CheckoutLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3306
3403
|
|
|
3307
3404
|
interface SettingsLayoutProps extends Omit<ViewProps, 'children'> {
|
|
3308
|
-
|
|
3405
|
+
/** A function receives closeNav; call it from an item's onPress so a pick shows that section's content on a narrow screen. */
|
|
3406
|
+
navSlot: ReactNode | ((nav: {
|
|
3407
|
+
closeNav: () => void;
|
|
3408
|
+
}) => ReactNode);
|
|
3309
3409
|
contentSlot: ReactNode;
|
|
3310
3410
|
headerSlot?: ReactNode;
|
|
3311
3411
|
layout?: 'split' | 'stacked';
|
|
3312
3412
|
breakpoint?: number;
|
|
3313
3413
|
className?: string;
|
|
3414
|
+
/** Controls the stacked menu; absent means the layout keeps its own state. */
|
|
3415
|
+
navOpen?: boolean;
|
|
3416
|
+
onNavOpenChange?: (open: boolean) => void;
|
|
3314
3417
|
}
|
|
3315
|
-
declare function SettingsLayout({ navSlot, contentSlot, headerSlot, layout: layoutProp, breakpoint, className, ...viewProps }: SettingsLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3418
|
+
declare function SettingsLayout({ navSlot, contentSlot, headerSlot, layout: layoutProp, breakpoint, className, navOpen, onNavOpenChange, ...viewProps }: SettingsLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3316
3419
|
|
|
3317
3420
|
/** Mirrors `LiveTabState` from `@tallyui/database`, without depending on that package. */
|
|
3318
3421
|
type LiveTabScreenState = 'acquiring' | 'live' | 'parked' | 'blocked';
|
|
@@ -3593,24 +3696,4 @@ interface FontProviderProps {
|
|
|
3593
3696
|
declare function FontProvider({ font, autoTypeSet, loadFonts, children }: FontProviderProps): React$1.JSX.Element;
|
|
3594
3697
|
declare function useFontType(): FontState;
|
|
3595
3698
|
|
|
3596
|
-
|
|
3597
|
-
* Port of WCPOS v2 (MIT) `packages/core/src/contexts/translations/index.tsx`: one i18next instance per
|
|
3598
|
-
* provider, a locale change applied with `changeLanguage`, v2's init options and `useT`. The regional
|
|
3599
|
-
* fallback (`fr_CA` → `fr`) is v2's `rxdb-backend.ts` `getBaseLanguage`, as `fallbackLng`. There is no
|
|
3600
|
-
* backend: English is bundled and the app passes other languages as `resources`.
|
|
3601
|
-
*/
|
|
3602
|
-
|
|
3603
|
-
/** Catalogues by language code, as the app spells it (`fr`, `fr_CA`, `fr-CA`): key → string. */
|
|
3604
|
-
type Catalogues = Record<string, Record<string, string>>;
|
|
3605
|
-
interface I18nProviderProps {
|
|
3606
|
-
/** The store's locale (`fr_CA` or `fr-CA`). Without one, the device's locale. */
|
|
3607
|
-
locale?: string;
|
|
3608
|
-
/** Other languages' catalogues; English is bundled. May arrive or change after mount. */
|
|
3609
|
-
resources?: Catalogues;
|
|
3610
|
-
children: React$1.ReactNode;
|
|
3611
|
-
}
|
|
3612
|
-
declare function I18nProvider({ locale, resources, children }: I18nProviderProps): React$1.JSX.Element;
|
|
3613
|
-
/** The components' `t`, read from the nearest `I18nProvider`, else English. Interpolation is `{name}`. */
|
|
3614
|
-
declare function useT(): TFunction;
|
|
3615
|
-
|
|
3616
|
-
export { APPROVAL_REQUIRED_TEXT, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityHeartbeatIcon, type AddedToCartEvent, AddedToCartToast, type AddedToCartToastProps, AddressEditor, type AddressEditorProps, type AddressEditorValue, AddressFields, type AddressFieldsProps, AlertCircleIcon, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTriangleIcon, AppShell, type AppShellProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarcodeScanningSettings, type BarcodeScanningSettingsProps, type BarcodeScanningValues, Button, type ButtonProps, Calendar, type CalendarProps, CameraScanButton, type CameraScanButtonProps, CameraScannerPanel, type CameraScannerPanelProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cart, type CartAction, CartBar, CartColumnHeads, type CartColumnHeadsProps, type CartColumnId, type CartColumnSettings, CartColumnsForm, type CartColumnsFormProps, CartFoot, type CartFootAction, type CartFootProps, CartLine, CartLineActions, type CartLineActionsProps, type CartLineProps, CartNoteInput, type CartNoteInputProps, CartPanel, type CartPanelProps, CartTotal, type CartTotalProps, CashCountInput, type CashCountInputProps, CashRegisterIcon, CashTendered, type CashTenderedProps, CashierSheet, type CashierSheetCashier, type CashierSheetDrawer, type CashierSheetHandTo, type CashierSheetPlace, type CashierSheetProps, Catalogue, CatalogueSettingsForm, type CatalogueSettingsFormProps, type Catalogues, type CategoryItem, CategoryNav, type CategoryNavProps, CategoryTile, type CategoryTileProps, ChangeDisplay, type ChangeDisplayProps, ChargeForm, type ChargeFormProps, ChartLineIcon, CheckIcon, Checkbox, CheckoutLayout, type CheckoutLayoutProps, ChevronDownIcon, ChevronRightIcon, type ChipItem, ClosureSheet, type ClosureSheetProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, ComboboxTrigger, ConfirmDialog, type ConfirmDialogProps, type ConnectionStatus, ConnectivityToast, type ConnectivityToastProps, ConnectorStatus, type ConnectorStatusProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CustomerCard, type CustomerCardProps, CustomerDisplayPairing, type CustomerDisplayPairingProps, CustomerDisplayScreen, CustomerDisplaySettings, type CustomerDisplaySettingsProps, CustomerDropdown, type CustomerDropdownProps, CustomerEditor, type CustomerEditorProps, CustomerForm, type CustomerFormProps, type CustomerFormValues, CustomerOrderHistory, type CustomerOrderHistoryProps, CustomerPicker, type CustomerPickerProps, CustomerSelect, type CustomerSelectProps, CustomersList, type CustomersListProps, DEFAULT_PRODUCT_FILTERS, DIGIT_ROWS, DateRangeMenu, type DateRangeMenuProps, type Denomination, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiscountBadge, type DiscountBadgeProps, DiscountChips, type DiscountCoupon, DiscountForm, DiscountIcon, DisplaySettings, type DisplaySettingsProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FLASH_DURATION_MS, FilterChip, FilterChipGroup, type FilterChipGroupProps, type FilterChipProps, type FilterOption, FontProvider, type FontProviderProps, type FontState, type FontStatus, GiftIcon, type GridDay, GripIcon, HStack, type HStackProps, HandoverSlip, type HandoverSlipProps, HoverCard, HoverCardContent, HoverCardTrigger, I18nProvider, type I18nProviderProps, Icon, IconButton, type IconButtonProps, type IconProps, InCartBadge, type InCartBadgeProps, InfoCircleIcon, Input, InputField, InputRoot, type InputRootProps, InputSlot, Keypad, type KeypadKey, type KeypadProps, Label, type LabelProps, LinePopover, type LinePopoverProps, ListRow, type ListRowProps, type ListRowSize, LiveTabScreen, type LiveTabScreenProps, type LiveTabScreenState, Loader, type LoaderProps, MessageQuestionIcon, type Month, MovementSheet, type MovementSheetProps, NavDrawer, type NavDrawerProps, NavRail, type NavRailProps, Notice, type NoticeAction, type NoticeProps, OpenRegisterCard, type OpenRegisterCardProps, OpenSaleTabs, type OpenSaleTabsProps, OrderCard, type OrderCardProps, OrderDetail, type OrderDetailLineItem, type OrderDetailProps, type OrderDetailTaxLine, OrderFilterBar, type OrderFilterBarProps, type OrderFilterOption, type OrderHistoryRow, OrderList, type OrderListProps, OrderNoteSheet, type OrderNoteSheetProps, type OrderStatus, OrderStatusBadge, type OrderStatusBadgeProps, OrderSummary, OrderSummaryLine, type OrderSummaryLineProps, type OrderSummaryPayment, type OrderSummaryProps, OrderSyncNotices, type OrderSyncNoticesProps, OrdersList, POSLayout, type POSLayoutProps, PRODUCT_FILTER_CHIPS, ParkedSales, type ParkedSalesProps, type PaymentMethod, PaymentMethodCard, type PaymentMethodCardProps, type PaymentMethodKind, PaymentSelector, type PaymentSelectorMethod, type PaymentSelectorProps, PlusIcon, Popover, PopoverContent, PopoverTrigger, PriceForm, PrinterForm, type PrinterFormDraft, type PrinterFormProps, PrinterIcon, PrintingSettings, type PrintingSettingsProps, ProductCard, type ProductCardProps, ProductFilterBar, type ProductFilterBarProps, type ProductFilterChip, type ProductFilters, ProductGrid, type ProductGridProps, ProductImage, type ProductImageProps, ProductList, type ProductListProps, ProductPrice, type ProductPriceProps, ProductSku, type ProductSkuProps, ProductStockBadge, type ProductStockBadgeProps, ProductTable, type ProductTableColumn, type ProductTableProps, type ProductTermFilter, ProductTitle, type ProductTitleProps, ProductVariantPicker, type ProductVariantPickerProps, Progress, type ProgressProps, QuantityStepper, type QuantityStepperProps, RadioGroup, RadioGroupItem, Receipt, ReceiptIcon, type ReceiptItem, ReceiptPreview, type ReceiptPreviewProps, ReceiptSheet, type ReceiptSheetEmail, type ReceiptSheetProps, type ReceiptSheetTemplate, RefundForm, type RefundFormProps, type RefundFormValue, RefundModal, type RefundModalProps, RegisterBar, type RegisterBarPill, type RegisterBarProps, RegisterColumn, type RegisterColumnProps, RegisterCount, type RegisterCountProps, RegisterOpenClose, type RegisterOpenCloseProps, RegisterPanel, type RegisterPanelProps, RegisterPicker, type RegisterPickerProps, type RegisterPickerRegister, RegisterSummary, type RegisterSummaryProps, SCANNER_DEFAULT_HEIGHT, SCANNER_MAX_HEIGHT, SCANNER_MIN_HEIGHT, SKELETON_MAX_ROWS, type SalesCardId, SalesCardPanel, type SalesCardPanelProps, SalesCards, type SalesCardsProps, type SalesFilters, SalesFiltersBar, type SalesFiltersBarProps, SalesHero, type SalesHeroProps, type SalesOption, type SalesPanelId, SalesRoom, type SalesRoomProps, ScaleProvider, type ScaleProviderProps, type ScaleScopeProps, type ScaleState, ScanIcon, ScannerViewfinder, SearchIcon, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, SettingsGroup, type SettingsGroupProps, SettingsIcon, SettingsLayout, type SettingsLayoutProps, SettingsRow, type SettingsRowProps, type ShellNavItem, ShippingAddressFields, type ShippingAddressFieldsProps, ShoppingCartIcon, Skeleton, type SkeletonProps, Slider, type SliderProps, SplitTender, StatusBadge, type StatusBadgeProps, StoreSettingsChoiceScreen, type StoreSettingsChoiceScreenProps, type SvgIconProps, Switch, SwitchConfirm, type SwitchConfirmProps, SyncStatus, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaxBasedOn, type TaxBasedOnProps, TaxCalculationSettings, type TaxCalculationSettingsProps, Tender, TenderPane, type TenderPaneProps, type TenderPicker, Text, type TextProps, Textarea, type TextareaProps, Toast, ToastClose, ToastDescription, type ToastProps, ToastTitle, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, ToneDisc, type ToneDiscProps, type Tone as ToneDiscTone, Tooltip, TooltipContent, TooltipTrigger, type TransactionSummary, UserIcon, UsersIcon, VStack, type VStackProps, type VariantOption, VariationPicker, type VariationPickerProps, ViewToggle, type ViewToggleProps, type ViewfinderProps, type WeekDay, XIcon, addMonths, avatarInitials, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cartColumnIds, compareDays, createSvgIcon, defaultProductColumns, describeRegisterBarPill, discountLabel, formatStockSyncTime, hstackVariants, iconButtonVariants, iconVariants, injectPrintStyle, loaderVariants, monthGrid, monthOf, orderReference, parseDiscount, parsePrice, pickFigure, pressRangeDay, productsScreenColumns, skeletonCount, statusDotVariants, syncStatusQuiet, tenderLabel, textVariants, toastVariants, toggleTextVariants, toggleVariants, useDefaultProductColumns, useFontType, useInputContext, usePointer, useProductsScreenColumns, useScale, useT, useTender, vstackVariants };
|
|
3699
|
+
export { APPROVAL_REQUIRED_TEXT, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityHeartbeatIcon, type AddedToCartEvent, AddedToCartToast, type AddedToCartToastProps, AddressEditor, type AddressEditorProps, type AddressEditorValue, AddressFields, type AddressFieldsProps, AlertCircleIcon, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTriangleIcon, AppShell, type AppShellProps, Avatar, type AvatarProps, Badge, type BadgeProps, BarcodeScanningSettings, type BarcodeScanningSettingsProps, type BarcodeScanningValues, Button, type ButtonProps, Calendar, type CalendarProps, CameraScanButton, type CameraScanButtonProps, CameraScannerPanel, type CameraScannerPanelProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cart, type CartAction, CartBar, CartColumnHeads, type CartColumnHeadsProps, type CartColumnId, type CartColumnSettings, CartColumnsForm, type CartColumnsFormProps, CartFoot, type CartFootAction, type CartFootProps, CartLine, CartLineActions, type CartLineActionsProps, type CartLineProps, CartNoteInput, type CartNoteInputProps, CartPanel, type CartPanelProps, CartTotal, type CartTotalProps, CashCountInput, type CashCountInputProps, CashRegisterIcon, CashTendered, type CashTenderedProps, CashierSheet, type CashierSheetCashier, type CashierSheetDrawer, type CashierSheetHandTo, type CashierSheetPlace, type CashierSheetProps, Catalogue, CatalogueSettingsForm, type CatalogueSettingsFormProps, type Catalogues, type CategoryItem, CategoryNav, type CategoryNavProps, CategoryTile, type CategoryTileProps, ChangeDisplay, type ChangeDisplayProps, ChargeForm, type ChargeFormProps, ChartLineIcon, CheckIcon, Checkbox, CheckoutLayout, type CheckoutLayoutProps, ChevronDownIcon, ChevronRightIcon, type ChipItem, ClosureSheet, type ClosureSheetProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, ComboboxTrigger, ConfirmDialog, type ConfirmDialogProps, type ConnectionStatus, ConnectivityToast, type ConnectivityToastProps, ConnectorStatus, type ConnectorStatusProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CustomerCard, type CustomerCardProps, CustomerDisplayPairing, type CustomerDisplayPairingProps, CustomerDisplayScreen, CustomerDisplaySettings, type CustomerDisplaySettingsProps, CustomerDropdown, type CustomerDropdownProps, CustomerEditor, type CustomerEditorProps, CustomerForm, type CustomerFormProps, type CustomerFormValues, CustomerOrderHistory, type CustomerOrderHistoryProps, CustomerPicker, type CustomerPickerProps, CustomerSelect, type CustomerSelectProps, CustomersList, type CustomersListProps, DEFAULT_PRODUCT_FILTERS, DIGIT_ROWS, DateRangeMenu, type DateRangeMenuProps, type Denomination, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiscountBadge, type DiscountBadgeProps, DiscountChips, type DiscountCoupon, DiscountForm, DiscountIcon, DisplaySettings, type DisplaySettingsProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FLASH_DURATION_MS, FilterChip, FilterChipGroup, type FilterChipGroupProps, type FilterChipProps, type FilterOption, FontProvider, type FontProviderProps, type FontState, type FontStatus, GiftIcon, type GridDay, GripIcon, HStack, type HStackProps, HandoverSlip, type HandoverSlipProps, HoverCard, HoverCardContent, HoverCardTrigger, I18nProvider, type I18nProviderProps, Icon, IconButton, type IconButtonProps, type IconProps, InCartBadge, type InCartBadgeProps, InfoCircleIcon, Input, InputField, InputRoot, type InputRootProps, InputSlot, Keypad, type KeypadKey, type KeypadProps, Label, type LabelProps, LinePopover, type LinePopoverProps, ListRow, type ListRowProps, type ListRowSize, LiveTabScreen, type LiveTabScreenProps, type LiveTabScreenState, Loader, type LoaderProps, MessageQuestionIcon, type Month, MovementSheet, type MovementSheetProps, NavDrawer, type NavDrawerProps, NavRail, type NavRailProps, Notice, type NoticeAction, type NoticeProps, OpenRegisterCard, type OpenRegisterCardProps, OpenSaleTabs, type OpenSaleTabsProps, OrderCard, type OrderCardProps, OrderDetail, type OrderDetailLineItem, type OrderDetailProps, type OrderDetailTaxLine, OrderFilterBar, type OrderFilterBarProps, type OrderFilterOption, type OrderHistoryRow, OrderList, type OrderListProps, OrderNoteSheet, type OrderNoteSheetProps, type OrderStatus, OrderStatusBadge, type OrderStatusBadgeProps, OrderSummary, OrderSummaryLine, type OrderSummaryLineProps, type OrderSummaryPayment, type OrderSummaryProps, OrderSyncNotices, type OrderSyncNoticesProps, OrdersList, POSLayout, type POSLayoutProps, PRODUCT_FILTER_CHIPS, ParkedSales, type ParkedSalesProps, type PaymentMethod, PaymentMethodCard, type PaymentMethodCardProps, type PaymentMethodKind, PaymentSelector, type PaymentSelectorMethod, type PaymentSelectorProps, PickStepper, PlusIcon, Popover, PopoverContent, PopoverTrigger, PriceForm, PrinterForm, type PrinterFormDraft, type PrinterFormProps, PrinterIcon, PrintingSettings, type PrintingSettingsProps, ProductCard, type ProductCardProps, ProductFilterBar, type ProductFilterBarProps, type ProductFilterChip, type ProductFilters, ProductGrid, type ProductGridProps, ProductImage, type ProductImageProps, ProductList, type ProductListProps, ProductPrice, type ProductPriceProps, ProductSku, type ProductSkuProps, ProductStockBadge, type ProductStockBadgeProps, ProductTable, type ProductTableColumn, type ProductTableProps, type ProductTermFilter, ProductTitle, type ProductTitleProps, ProductVariantPicker, type ProductVariantPickerProps, Progress, type ProgressProps, QuantityStepper, type QuantityStepperProps, RadioGroup, RadioGroupItem, Receipt, ReceiptEmailForm, type ReceiptEmailFormProps, ReceiptIcon, type ReceiptItem, ReceiptPreview, type ReceiptPreviewProps, ReceiptSheet, type ReceiptSheetEmail, type ReceiptSheetProps, type ReceiptSheetTemplate, RefundForm, type RefundFormProps, type RefundFormValue, RefundModal, type RefundModalProps, RefundNeedsAdminNotice, type RefundNeedsAdminNoticeProps, RegisterBar, type RegisterBarPill, type RegisterBarProps, RegisterColumn, type RegisterColumnProps, RegisterCount, type RegisterCountProps, RegisterOpenClose, type RegisterOpenCloseProps, RegisterPanel, type RegisterPanelProps, RegisterPicker, type RegisterPickerProps, type RegisterPickerRegister, RegisterSummary, type RegisterSummaryProps, SCANNER_DEFAULT_HEIGHT, SCANNER_MAX_HEIGHT, SCANNER_MIN_HEIGHT, SKELETON_MAX_ROWS, type SalesCardId, SalesCardPanel, type SalesCardPanelProps, SalesCards, type SalesCardsProps, type SalesFilters, SalesFiltersBar, type SalesFiltersBarProps, SalesHero, type SalesHeroProps, type SalesOption, type SalesPanelId, SalesRoom, type SalesRoomProps, ScaleProvider, type ScaleProviderProps, type ScaleScopeProps, type ScaleState, ScanIcon, ScannerViewfinder, SearchIcon, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, SettingsGroup, type SettingsGroupProps, SettingsIcon, SettingsLayout, type SettingsLayoutProps, SettingsRow, type SettingsRowProps, type ShellNavItem, ShippingAddressFields, type ShippingAddressFieldsProps, ShoppingCartIcon, Skeleton, type SkeletonProps, Slider, type SliderProps, SplitTender, StatusBadge, type StatusBadgeProps, StoreSettingsChoiceScreen, type StoreSettingsChoiceScreenProps, type SvgIconProps, Switch, SwitchConfirm, type SwitchConfirmProps, SyncStatus, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaxBasedOn, type TaxBasedOnProps, TaxCalculationSettings, type TaxCalculationSettingsProps, Tender, TenderPane, type TenderPaneProps, type TenderPicker, Text, type TextProps, Textarea, type TextareaProps, Toast, ToastClose, ToastDescription, type ToastProps, ToastTitle, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, ToneDisc, type ToneDiscProps, type Tone as ToneDiscTone, Tooltip, TooltipContent, TooltipTrigger, type TransactionSummary, UserIcon, UsersIcon, VStack, type VStackProps, type VariantOption, VariationPicker, type VariationPickerProps, ViewToggle, type ViewToggleProps, type ViewfinderProps, type WeekDay, XIcon, addMonths, avatarInitials, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cartColumnIds, compareDays, createSvgIcon, defaultProductColumns, describeRegisterBarPill, discountLabel, formatStockSyncTime, hstackVariants, iconButtonVariants, iconVariants, injectPrintStyle, loaderVariants, monthGrid, monthOf, orderReference, parseDiscount, parsePrice, pickFigure, pressRangeDay, productsScreenColumns, skeletonCount, statusDotVariants, syncStatusQuiet, tenderLabel, textVariants, toastVariants, toggleTextVariants, toggleVariants, useDefaultProductColumns, useFontType, useInputContext, usePointer, useProductsScreenColumns, useScale, useT, useTender, vstackVariants };
|