@tallyui/components 3.13.0 → 3.14.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 +275 -27
- package/dist/index.js +1985 -1226
- package/package.json +9 -9
- package/src/cart/cart-columns.tsx +57 -0
- package/src/cart/cart-line.tsx +32 -17
- package/src/cart/index.ts +1 -0
- package/src/checkout/cash-tendered.tsx +5 -7
- package/src/index.ts +18 -2
- package/src/lib/error-text.ts +5 -0
- package/src/order/refund-form.tsx +2 -1
- package/src/product/category-tile.tsx +43 -0
- package/src/product/in-cart-badge.tsx +26 -0
- package/src/product/index.ts +2 -0
- package/src/register/closure-sheet.tsx +2 -1
- package/src/register/handover-slip.tsx +46 -0
- package/src/register/index.ts +2 -0
- package/src/register/movement-sheet.tsx +2 -1
- package/src/register/open-register-card.tsx +2 -1
- package/src/register/register-bar.tsx +57 -11
- package/src/register/register-column.tsx +2 -1
- package/src/register/register-count.tsx +30 -11
- package/src/register/register-panel.tsx +45 -4
- package/src/register/switch-confirm.tsx +102 -0
- package/src/sale/cart.tsx +37 -21
- package/src/sale/catalogue.tsx +34 -5
- package/src/sale/customer-display-screen.tsx +92 -0
- package/src/sale/index.ts +4 -2
- package/src/sale/parked-sales.tsx +2 -1
- package/src/sale/price-form.tsx +28 -4
- package/src/sale/product-filter-bar.tsx +58 -0
- package/src/sale/tender-pane.tsx +179 -0
- package/src/sale/tender.tsx +20 -35
- package/src/shell/app-shell.tsx +71 -0
- package/src/shell/index.ts +4 -0
- package/src/shell/nav-drawer.tsx +130 -0
- package/src/shell/nav-item.tsx +70 -0
- package/src/shell/nav-rail.tsx +58 -0
- package/src/shell/shell-context.ts +18 -0
- package/src/ui/icon/menu-icon.tsx +10 -0
- package/src/sale/split-tender.tsx +0 -81
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { SvgProps } from 'react-native-svg';
|
|
|
9
9
|
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
10
|
export { TextClassContext } from '@tallyui/primitives';
|
|
11
11
|
import { ScaleOverride, ScaleVariables, ScaleStep, Pointer, TypeSetId, ThemeFontFamily, ThemeType } from '@tallyui/theme';
|
|
12
|
-
import { CatalogueView, ProductSortValue, ProductSort, RefundableOrderLine, EarlierRefund, useRegisterSession, RegisterSession, MovementType, AppSettings, useAppSettings, useSale, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, SentOrder, PosOrder, ReceiptData, OutboxState, ParkedOrderSummary, OpenSale, SalesFigures, DatePreset, DayRange } from '@tallyui/pos';
|
|
13
|
-
import { ProductTraits, TraitContext, Money, CustomerTraits, Customer, CustomerInput, OrderRefundPayload, ProductCategory, SyncNotice, StoreSettingsChoices, StoreSettingsChoice } from '@tallyui/core';
|
|
12
|
+
import { CatalogueView, ProductSortValue, ProductSort, RefundableOrderLine, EarlierRefund, useRegisterSession, RegisterSession, MovementType, ApprovalNeeded, SwitchKind, SwitchWarnings, HandoverSlipData, AppSettings, useAppSettings, useSale, TenderState, TenderAction, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, CartQuantityLine, SentOrder, PosOrder, ReceiptData, OutboxState, ParkedOrderSummary, OpenSale, DisplayState, SalesFigures, DatePreset, DayRange } from '@tallyui/pos';
|
|
13
|
+
import { ProductTraits, TraitContext, Money, CustomerTraits, Customer, CustomerInput, OrderRefundPayload, PaymentMethodDescriptor, ProductCategory, SyncNotice, StoreSettingsChoices, StoreSettingsChoice } from '@tallyui/core';
|
|
14
14
|
|
|
15
15
|
declare const textVariants: (props?: ({
|
|
16
16
|
variant?: "link" | "default" | null | undefined;
|
|
@@ -615,24 +615,78 @@ interface ProductVariantPickerProps extends Omit<ViewProps, 'children'> {
|
|
|
615
615
|
}
|
|
616
616
|
declare function ProductVariantPicker({ options, selected, onSelect, className, ...viewProps }: ProductVariantPickerProps): react_jsx_runtime.JSX.Element;
|
|
617
617
|
|
|
618
|
+
interface InCartBadgeProps {
|
|
619
|
+
/** How many of the product the cart holds (e.g. from `cartQuantities`); nothing renders at 0. */
|
|
620
|
+
count: number;
|
|
621
|
+
/** Placement, e.g. `absolute right-2 top-2` for a tile's top-right corner. */
|
|
622
|
+
className?: string;
|
|
623
|
+
testID?: string;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* How many of a product are in the cart: a primary circle with the count, hidden while there are none.
|
|
627
|
+
*
|
|
628
|
+
* Ported from WCPOS v2 `InCartCount`, packages/core/src/screens/main/pos/products/rows/in-cart-count.tsx
|
|
629
|
+
* (MIT, WCPOS), without its count beat.
|
|
630
|
+
*/
|
|
631
|
+
declare function InCartBadge({ count, className, testID }: InCartBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
632
|
+
|
|
633
|
+
interface CategoryTileProps {
|
|
634
|
+
name: string;
|
|
635
|
+
/** The category's photo; without one the tile shows the name's initial on a tint. */
|
|
636
|
+
imageUrl?: string;
|
|
637
|
+
/** Products in the category, shown under the name when above 0. */
|
|
638
|
+
count?: number;
|
|
639
|
+
onPress?: () => void;
|
|
640
|
+
testID?: string;
|
|
641
|
+
className?: string;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* A category as a square tile: its photo full-bleed with the name over the foot, or the name's initial on a
|
|
645
|
+
* tint when there is no photo.
|
|
646
|
+
*
|
|
647
|
+
* Ported from WCPOS v2 `TermTile`, packages/core/src/screens/main/pos/products/browse/term-tile.tsx
|
|
648
|
+
* (MIT, WCPOS): the picture fills the square (`contentFit="cover"`), else a tint; the name bold over two
|
|
649
|
+
* lines with the count under it.
|
|
650
|
+
*/
|
|
651
|
+
declare function CategoryTile({ name, imageUrl, count, onPress, testID, className }: CategoryTileProps): react_jsx_runtime.JSX.Element;
|
|
652
|
+
|
|
618
653
|
interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
619
654
|
name: string;
|
|
620
|
-
/** The variant's chosen options, one "Name: Value"
|
|
655
|
+
/** The variant's chosen options, shown as one "Name: Value · Name: Value" line under the name. */
|
|
621
656
|
attributes?: Record<string, string>;
|
|
622
657
|
quantity: number;
|
|
623
658
|
unitPrice: Money;
|
|
659
|
+
/** The regular unit price; shown struck through above unitPrice only when it is above unitPrice. */
|
|
660
|
+
regularUnitPrice?: Money;
|
|
624
661
|
lineTotal: Money;
|
|
662
|
+
/** Show the Price column (default true); the Cart passes false on a narrow cart or a phone, as CartColumnHeads does. */
|
|
663
|
+
showPrice?: boolean;
|
|
625
664
|
locale?: string;
|
|
626
665
|
className?: string;
|
|
627
666
|
}
|
|
628
667
|
/**
|
|
629
|
-
*
|
|
668
|
+
* A single cart line in the columns of CartColumnHeads: quantity, the name with its attributes, the unit price
|
|
669
|
+
* (with the regular price struck through when it is higher) and the line total.
|
|
630
670
|
*
|
|
631
671
|
* ```tsx
|
|
632
672
|
* <CartLine name="Coffee" quantity={2} unitPrice={unitPrice} lineTotal={lineTotal} />
|
|
633
673
|
* ```
|
|
634
674
|
*/
|
|
635
|
-
declare function CartLine({ name, attributes, quantity, unitPrice, lineTotal, locale, className, ...props }: CartLineProps): react_jsx_runtime.JSX.Element;
|
|
675
|
+
declare function CartLine({ name, attributes, quantity, unitPrice, regularUnitPrice, lineTotal, showPrice, locale, className, ...props }: CartLineProps): react_jsx_runtime.JSX.Element;
|
|
676
|
+
|
|
677
|
+
interface CartColumnHeadsProps extends Omit<ViewProps, 'children'> {
|
|
678
|
+
/** Show the Price head (default true); pass the same value as each CartLine's `showPrice`. */
|
|
679
|
+
showPrice?: boolean;
|
|
680
|
+
className?: string;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* The cart's header row, Qty, Item, Price and Total, over lines laid out by CartLine in the same columns.
|
|
684
|
+
*
|
|
685
|
+
* ```tsx
|
|
686
|
+
* <CartColumnHeads showPrice={showPrice} />
|
|
687
|
+
* ```
|
|
688
|
+
*/
|
|
689
|
+
declare function CartColumnHeads({ showPrice, className, ...props }: CartColumnHeadsProps): JSX.Element;
|
|
636
690
|
|
|
637
691
|
interface CartTotalProps extends Omit<VStackProps, 'children'> {
|
|
638
692
|
subtotal: Money;
|
|
@@ -1145,18 +1199,30 @@ interface RegisterBarProps {
|
|
|
1145
1199
|
onOpenPanel: () => void;
|
|
1146
1200
|
/** Turns the pill into a button (opens the gate/picker or the panel) when given; the plain badge otherwise. */
|
|
1147
1201
|
onPressPill?: () => void;
|
|
1202
|
+
/** The store's name. With `multiRegister` and a bound register the bar reads "Store · Register". */
|
|
1203
|
+
storeName?: string;
|
|
1204
|
+
/** The signed-in cashier: an initials avatar, pressable when `onPress` is given. */
|
|
1205
|
+
cashier?: {
|
|
1206
|
+
name: string;
|
|
1207
|
+
onPress?: () => void;
|
|
1208
|
+
};
|
|
1209
|
+
/** The app's sync state (a badge or a line), drawn before the cashier. */
|
|
1210
|
+
syncStatus?: ReactNode;
|
|
1211
|
+
/** Opens the navigation; inside a phone `AppShell` the shell supplies it. Hidden when neither. */
|
|
1212
|
+
onOpenMenu?: () => void;
|
|
1148
1213
|
className?: string;
|
|
1149
1214
|
}
|
|
1150
1215
|
/**
|
|
1151
|
-
* The till's one status bar:
|
|
1152
|
-
* (LEDGER 48),
|
|
1153
|
-
* 1): WCPOS `next` `3b5331b5c`
|
|
1216
|
+
* The till's one status bar: the menu (phones), the place (the store, and the register for
|
|
1217
|
+
* multi-register stores), one status pill (LEDGER 48), the sync state, the button that opens the
|
|
1218
|
+
* register panel, and the cashier. Port provenance (ADR-032 amendment 1): WCPOS `next` `3b5331b5c`
|
|
1219
|
+
* `register-bar.tsx`; the menu, the place and the cashier from v2 `main` `51e7c4351`
|
|
1220
|
+
* `packages/core/src/screens/main/pos/cart/register-bar.tsx` and `components/bar-controls`, MIT, WCPOS.
|
|
1154
1221
|
*
|
|
1155
|
-
* Dropped for this neutral port: the user
|
|
1156
|
-
* WooCommerce OAuth-return rehosting — all app/backend concerns `useRegisterSession` never
|
|
1157
|
-
* carries. The drawer/menu button is gone too: TallyUI has no fixed navigation shell to open.
|
|
1222
|
+
* Dropped for this neutral port: the user sheet, switch-store, the notification bell and the
|
|
1223
|
+
* WooCommerce OAuth-return rehosting — all app/backend concerns `useRegisterSession` never carries.
|
|
1158
1224
|
*/
|
|
1159
|
-
declare function RegisterBar({ register, registerId, online, registerName, multiRegister, onOpenPanel, onPressPill, className, }: RegisterBarProps): react_jsx_runtime.JSX.Element;
|
|
1225
|
+
declare function RegisterBar({ register, registerId, online, registerName, multiRegister, onOpenPanel, onPressPill, storeName, cashier, syncStatus, onOpenMenu, className, }: RegisterBarProps): react_jsx_runtime.JSX.Element;
|
|
1160
1226
|
|
|
1161
1227
|
/**
|
|
1162
1228
|
* The register bar's status pill: one pill, one place. Port provenance (ADR-032 amendment 1):
|
|
@@ -1223,6 +1289,15 @@ interface RegisterPanelProps {
|
|
|
1223
1289
|
registerName?: string;
|
|
1224
1290
|
open: boolean;
|
|
1225
1291
|
onOpenChange: (open: boolean) => void;
|
|
1292
|
+
/**
|
|
1293
|
+
* The host's gate for a closure the store refused (`register.approvalNeeded`, ADR-082 d7): it
|
|
1294
|
+
* gets the refusal, including `liveAtStore`, and returns a new proof and approver, or `null`
|
|
1295
|
+
* to leave it. Its result goes to `actions.reapproveClosure`. Without it, the card has no button.
|
|
1296
|
+
*/
|
|
1297
|
+
reapprove?: (needed: ApprovalNeeded) => Promise<{
|
|
1298
|
+
approvedBy: string;
|
|
1299
|
+
approval: string;
|
|
1300
|
+
} | null>;
|
|
1226
1301
|
className?: string;
|
|
1227
1302
|
}
|
|
1228
1303
|
/**
|
|
@@ -1234,7 +1309,7 @@ interface RegisterPanelProps {
|
|
|
1234
1309
|
* note): refused-movement Retry and "Unsynced" (no outbox here to refuse a movement), the
|
|
1235
1310
|
* X-report, Z and print/reprint, and the Reports deep link.
|
|
1236
1311
|
*/
|
|
1237
|
-
declare function RegisterPanel({ register, currency, registerName, open, onOpenChange, className }: RegisterPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1312
|
+
declare function RegisterPanel({ register, currency, registerName, open, onOpenChange, reapprove, className }: RegisterPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1238
1313
|
|
|
1239
1314
|
interface RegisterColumnProps {
|
|
1240
1315
|
/** `useRegisterSession`'s return value: decides the picker/open/counting/selling swap. */
|
|
@@ -1273,13 +1348,21 @@ interface RegisterCountProps {
|
|
|
1273
1348
|
/** ISO 4217 code: denomination faces, parsing and display. */
|
|
1274
1349
|
currency: string;
|
|
1275
1350
|
/**
|
|
1276
|
-
* Above `register.varianceThreshold`, Close asks for this first
|
|
1277
|
-
* stays; without it, Close refuses outright with
|
|
1278
|
-
*
|
|
1351
|
+
* Above `register.varianceThreshold`, Close asks for this first, with the count it would close
|
|
1352
|
+
* on. `null` refuses and the count stays; without it, Close refuses outright with
|
|
1353
|
+
* `APPROVAL_REQUIRED_TEXT`. Its `approvedBy`, `approvedByName`, `approval` (the store's opaque
|
|
1354
|
+
* proof, ADR-082) and `approvedVariance` (from `actions.closureVariance`) go to `closeSession`,
|
|
1355
|
+
* which enforces the same gate and puts the approver on the Z. A count edited while this is
|
|
1356
|
+
* pending, or a variance that moved since (the hook's gate), asks again on the next Close.
|
|
1357
|
+
* A zero-argument function still fits.
|
|
1279
1358
|
*/
|
|
1280
|
-
approve?: (
|
|
1359
|
+
approve?: (input: {
|
|
1360
|
+
counted: Record<string, number>;
|
|
1361
|
+
}) => Promise<{
|
|
1281
1362
|
approvedBy: string;
|
|
1282
1363
|
approvedByName?: string;
|
|
1364
|
+
approval?: string;
|
|
1365
|
+
approvedVariance?: Record<string, number>;
|
|
1283
1366
|
} | null>;
|
|
1284
1367
|
className?: string;
|
|
1285
1368
|
}
|
|
@@ -1313,6 +1396,44 @@ interface ClosureSheetProps {
|
|
|
1313
1396
|
*/
|
|
1314
1397
|
declare function ClosureSheet({ register, currency, onPrint, onDone }: ClosureSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
1315
1398
|
|
|
1399
|
+
interface SwitchConfirmProps {
|
|
1400
|
+
kind: SwitchKind;
|
|
1401
|
+
warnings: SwitchWarnings;
|
|
1402
|
+
/** The cashier or register switched to; unused for `signOut`. */
|
|
1403
|
+
targetName?: string;
|
|
1404
|
+
/** The bound register's name, for the descriptions and the sign-out title. */
|
|
1405
|
+
registerName?: string;
|
|
1406
|
+
/** A formatted expected cash amount for the sign-out title; omit while blind. */
|
|
1407
|
+
amount?: string;
|
|
1408
|
+
onConfirm: () => void;
|
|
1409
|
+
onCancel: () => void;
|
|
1410
|
+
/** Sign-out with an open session: renders "Close register", which calls this. */
|
|
1411
|
+
onCloseRegister?: () => void;
|
|
1412
|
+
/** Cashier switch: renders "Print hand-over slip", which calls this. */
|
|
1413
|
+
onPrintHandover?: () => void;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Confirms a cashier switch, a register switch or a sign-out, naming what it leaves behind (v2 parity A12). Port
|
|
1417
|
+
* provenance: WCPOS v2 monorepo `main` 51e7c4351 `packages/core/src/screens/main/pos/cart/switch-confirm.tsx`, with
|
|
1418
|
+
* its English copy (`locales/en/core.json`, `register.*`). Not ported: the store switch and its drawer carry, and
|
|
1419
|
+
* v2's "The POS reloads as …" lines (a TallyUI app's switch is its platform's own). New here: unsent sales add
|
|
1420
|
+
* "anyway" to the confirm, and till updates, parked sales and a partly paid sale are listed too.
|
|
1421
|
+
*/
|
|
1422
|
+
declare function SwitchConfirm({ kind, warnings, targetName, registerName, amount, onConfirm, onCancel, onCloseRegister, onPrintHandover, }: SwitchConfirmProps): react_jsx_runtime.JSX.Element;
|
|
1423
|
+
|
|
1424
|
+
interface HandoverSlipProps {
|
|
1425
|
+
/** `handoverSlip(...)`'s result; `document` is not read here (it is what prints). */
|
|
1426
|
+
slip: Omit<HandoverSlipData, 'document'>;
|
|
1427
|
+
/** ISO 4217 code, for the expected figures. */
|
|
1428
|
+
currency: string;
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* The hand-over slip on screen: what a closing cashier hands the next one (v2's "Hand-over slip", the open session's
|
|
1432
|
+
* X report naming the cashier; WCPOS v2 monorepo `main` 51e7c4351 `switch-confirm.tsx` and `use-session-report.ts`).
|
|
1433
|
+
* No dialog: the host places it, for example in a print preview. No expected figures while blind.
|
|
1434
|
+
*/
|
|
1435
|
+
declare function HandoverSlip({ slip, currency }: HandoverSlipProps): react_jsx_runtime.JSX.Element;
|
|
1436
|
+
|
|
1316
1437
|
interface SettingsRowProps extends Omit<ViewProps, 'children'> {
|
|
1317
1438
|
label: string;
|
|
1318
1439
|
description?: string;
|
|
@@ -1354,7 +1475,7 @@ interface DisplaySettingsProps {
|
|
|
1354
1475
|
declare function DisplaySettings({ settings, setSetting, className }: DisplaySettingsProps): JSX.Element;
|
|
1355
1476
|
|
|
1356
1477
|
/** `taxLabel` names each tax row; VAT isn't universal, so a platform passes its own (medusapos passes `VAT ${rate}%`). */
|
|
1357
|
-
declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, taxClasses, afterSubtotal, couponDiscountMinor }: {
|
|
1478
|
+
declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscounts, taxClasses, afterSubtotal, couponDiscountMinor, orderActions }: {
|
|
1358
1479
|
sale: ReturnType<typeof useSale>;
|
|
1359
1480
|
taxLabel?: (ratePpm: number) => string;
|
|
1360
1481
|
taxClasses?: ReadonlyArray<{
|
|
@@ -1370,12 +1491,17 @@ declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, taxClasses,
|
|
|
1370
1491
|
toMinor: number;
|
|
1371
1492
|
reason?: string;
|
|
1372
1493
|
}) => void;
|
|
1494
|
+
/** v2's quick-discount keys on each line's Price form (e.g. the app's `cart.quickDiscounts` setting); needs `canEditPrice`. */
|
|
1495
|
+
quickDiscounts?: readonly number[];
|
|
1373
1496
|
/** Rows under the totals' Subtotal, e.g. the platform's coupon chips (passed to CartTotal). */
|
|
1374
1497
|
afterSubtotal?: ReactNode;
|
|
1375
1498
|
/** The coupon amount the app itemises in `afterSubtotal` (e.g. Σ `order.display.coupons`), in integer minor units of
|
|
1376
1499
|
* the order's currency, in the display mode. When given, the Discount row shows the other discounts only (the
|
|
1377
1500
|
* totals' discount minus this) and is hidden when they come to 0. Absent: the Discount row is the whole discount. */
|
|
1378
1501
|
couponDiscountMinor?: number;
|
|
1502
|
+
/** Cart's own Order discount and Add charge controls; pass `false` when the app hosts them in its own menu (v2's
|
|
1503
|
+
* cart "+" menu). Applied discounts and charges still show and can be removed. */
|
|
1504
|
+
orderActions?: boolean;
|
|
1379
1505
|
}): react_jsx_runtime.JSX.Element;
|
|
1380
1506
|
|
|
1381
1507
|
/** Phone mode's cart summary (medusapos ADR 0009): the whole bar is one button; the total is the cart's own Total row. */
|
|
@@ -1384,13 +1510,33 @@ declare function CartBar({ sale, onOpen }: {
|
|
|
1384
1510
|
onOpen: () => void;
|
|
1385
1511
|
}): react_jsx_runtime.JSX.Element;
|
|
1386
1512
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1513
|
+
type Sale$1 = ReturnType<typeof useSale>;
|
|
1514
|
+
type TenderProps = {
|
|
1515
|
+
sale: Sale$1;
|
|
1516
|
+
methods?: PaymentMethodDescriptor[];
|
|
1517
|
+
};
|
|
1518
|
+
/** The tender pane with its own reducer, opened on the method `startTender` chose. Renders nothing outside the tender stage. */
|
|
1519
|
+
declare function Tender({ sale, methods }: TenderProps): JSX.Element | null;
|
|
1520
|
+
/** @deprecated Use Tender: the pane now handles split payments. */
|
|
1521
|
+
declare function SplitTender(props: TenderProps): JSX.Element;
|
|
1390
1522
|
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1523
|
+
/**
|
|
1524
|
+
* The tender pane, laid out as WCPOS v2's (monorepo main, packages/core/src/screens/main/pos/checkout/tender/):
|
|
1525
|
+
* BalanceHeadline and LedgerLegs from ledger-pane.tsx, then the method tiles, entry, quick-cash chips,
|
|
1526
|
+
* keypad and commit from tender-pane.tsx's TenderKeypad. Copy is v2's English catalogue. Every figure
|
|
1527
|
+
* comes from pos (useSale's captured-only totals, tenderRounding, quickTenderedAmounts, planLegs).
|
|
1528
|
+
*/
|
|
1529
|
+
|
|
1530
|
+
type Sale = ReturnType<typeof useSale>;
|
|
1531
|
+
interface TenderPaneProps {
|
|
1532
|
+
sale: Sale;
|
|
1533
|
+
/** The tender reducer's state (`tenderReducer` in @tallyui/pos); the host owns the reducer. */
|
|
1534
|
+
state: TenderState;
|
|
1535
|
+
dispatch: (action: TenderAction) => void;
|
|
1536
|
+
/** Defaults to `defaultPaymentMethods()`; only `cash` and `external`, the order.create methods, are offered. */
|
|
1537
|
+
methods?: PaymentMethodDescriptor[];
|
|
1538
|
+
}
|
|
1539
|
+
declare function TenderPane({ sale, state, dispatch, methods }: TenderPaneProps): JSX.Element | null;
|
|
1394
1540
|
|
|
1395
1541
|
/** The cashier's entry as a TallyUI Discount (a percent, or integer minor units), or the inline error to show. */
|
|
1396
1542
|
declare function parseDiscount(type: Discount['type'], text: string, currency: string): Discount | string;
|
|
@@ -1420,12 +1566,14 @@ declare function DiscountChips({ discounts, currency, onRemove, prefix, amounts
|
|
|
1420
1566
|
/** The cashier's entry as integer minor units of `currency` (0 allowed), or the inline error to show. */
|
|
1421
1567
|
declare function parsePrice(text: string, currency: string): number | string;
|
|
1422
1568
|
/** `onApply` returns a refusal to show inline, or null once applied. */
|
|
1423
|
-
declare function PriceForm({ lineName, currency, currentMinor, onApply, onClose }: {
|
|
1569
|
+
declare function PriceForm({ lineName, currency, currentMinor, onApply, onClose, quickDiscounts }: {
|
|
1424
1570
|
lineName: string;
|
|
1425
1571
|
currency: string;
|
|
1426
1572
|
currentMinor: number;
|
|
1427
1573
|
onApply: (amountMinor: number, reason?: string) => string | null;
|
|
1428
1574
|
onClose: () => void;
|
|
1575
|
+
/** Percentages off the current price, as v2's price-keypad keys; the first three valid ones (0 < n ≤ 100) are drawn. */
|
|
1576
|
+
quickDiscounts?: readonly number[];
|
|
1429
1577
|
}): JSX.Element;
|
|
1430
1578
|
|
|
1431
1579
|
interface ChargeFormProps {
|
|
@@ -1451,8 +1599,34 @@ interface ChargeFormProps {
|
|
|
1451
1599
|
/** `onApply` returns a refusal to show inline, or null once applied. */
|
|
1452
1600
|
declare function ChargeForm({ currency, lineTax, taxClasses, shippingTaxFromStore, onApply, onClose }: ChargeFormProps): react_jsx_runtime.JSX.Element;
|
|
1453
1601
|
|
|
1602
|
+
type ProductFilterChip = 'inStock' | 'featured' | 'onSale' | 'category' | 'tag' | 'brand';
|
|
1603
|
+
type TermChip = 'category' | 'tag' | 'brand';
|
|
1604
|
+
interface ProductFilters {
|
|
1605
|
+
inStock: boolean;
|
|
1606
|
+
featured: boolean;
|
|
1607
|
+
onSale: boolean;
|
|
1608
|
+
}
|
|
1609
|
+
/** In Stock starts on, as v2's `stock_status: 'instock'` does while "show out-of-stock products" is off (its default). */
|
|
1610
|
+
declare const DEFAULT_PRODUCT_FILTERS: ProductFilters;
|
|
1611
|
+
declare const PRODUCT_FILTER_CHIPS: readonly ProductFilterChip[];
|
|
1612
|
+
interface ProductFilterBarProps {
|
|
1613
|
+
value: ProductFilters;
|
|
1614
|
+
onChange: (next: ProductFilters) => void;
|
|
1615
|
+
/** Which chips to show, in this order. Default PRODUCT_FILTER_CHIPS. */
|
|
1616
|
+
chips?: readonly ProductFilterChip[];
|
|
1617
|
+
/** Opens the app's term picker; the category, tag and brand chips render only when it is given. */
|
|
1618
|
+
onTermPress?: (chip: TermChip) => void;
|
|
1619
|
+
className?: string;
|
|
1620
|
+
}
|
|
1621
|
+
/**
|
|
1622
|
+
* v2's always-on filter chips above the product grid: In Stock, Featured and On Sale toggle; Category, Tag
|
|
1623
|
+
* and Brand open the app's term picker. Ported from WCPOS v2 `FilterBar`,
|
|
1624
|
+
* packages/core/src/screens/main/pos/products/filter-bar/filter-bar.tsx (MIT, WCPOS).
|
|
1625
|
+
*/
|
|
1626
|
+
declare function ProductFilterBar({ value, onChange, chips, onTermPress, className }: ProductFilterBarProps): react_jsx_runtime.JSX.Element;
|
|
1627
|
+
|
|
1454
1628
|
declare function formatStockSyncTime(time: Date, locale?: string, hour12?: boolean, now?: Date): string;
|
|
1455
|
-
declare function Catalogue<Doc>({ products, traits, currency, onSelect, statusText, statusAccessory, lastSyncedAt, loading, pullError, lastStockCheckAt, hour12, minCodeLength, viewState, defaultViewState, loadViewState, saveViewState, onViewStateError, onStateChange, showViewToggle, items, onQueryChange, showCategoryNav, categories, pickAnyOptions }: {
|
|
1629
|
+
declare function Catalogue<Doc>({ products, traits, currency, onSelect, statusText, statusAccessory, lastSyncedAt, loading, pullError, lastStockCheckAt, hour12, minCodeLength, viewState, defaultViewState, loadViewState, saveViewState, onViewStateError, onStateChange, showViewToggle, items, onQueryChange, showCategoryNav, categories, pickAnyOptions, cartLines, showFilterBar, filterChips, filters: filtersProp, onFiltersChange }: {
|
|
1456
1630
|
products: Doc[];
|
|
1457
1631
|
traits: ProductTraits<Doc>;
|
|
1458
1632
|
currency: string;
|
|
@@ -1502,6 +1676,16 @@ declare function Catalogue<Doc>({ products, traits, currency, onSelect, statusTe
|
|
|
1502
1676
|
onQueryChange?: (query: string) => void;
|
|
1503
1677
|
/** Ask for a value for each of a variant's local "Any" option groups before onSelect (#495); set it only when the store accepts order.create version 6. */
|
|
1504
1678
|
pickAnyOptions?: boolean;
|
|
1679
|
+
/** The open sale's lines (e.g. useSale's order.lineItems); each grid tile shows its product's summed quantity. */
|
|
1680
|
+
cartLines?: readonly CartQuantityLine[];
|
|
1681
|
+
/** Show v2's filter chips under the search box. Default false. */
|
|
1682
|
+
showFilterBar?: boolean;
|
|
1683
|
+
/** Which chips the bar shows. Default ['inStock'], the one Catalogue applies itself. */
|
|
1684
|
+
filterChips?: readonly ProductFilterChip[];
|
|
1685
|
+
/** Controlled filters; changes are reported through onFiltersChange. */
|
|
1686
|
+
filters?: ProductFilters;
|
|
1687
|
+
/** The cashier's next filters (requested filters when controlled). */
|
|
1688
|
+
onFiltersChange?: (filters: ProductFilters) => void;
|
|
1505
1689
|
}): react_jsx_runtime.JSX.Element;
|
|
1506
1690
|
|
|
1507
1691
|
type ReceiptProps = {
|
|
@@ -1618,6 +1802,15 @@ interface OpenSaleTabsProps {
|
|
|
1618
1802
|
*/
|
|
1619
1803
|
declare function OpenSaleTabs({ sales, currency, onSelect, onNew }: OpenSaleTabsProps): JSX.Element;
|
|
1620
1804
|
|
|
1805
|
+
/**
|
|
1806
|
+
* What the customer sees on the second screen, laid out as WCPOS v2's default "Ledger" display
|
|
1807
|
+
* (Pro templates/display.html): idle shows the store; cart and payment show the items on the left and a panel on the
|
|
1808
|
+
* right with the totals, or the payment card.
|
|
1809
|
+
*/
|
|
1810
|
+
declare function CustomerDisplayScreen({ state }: {
|
|
1811
|
+
state: DisplayState;
|
|
1812
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1813
|
+
|
|
1621
1814
|
interface POSLayoutProps extends Omit<ViewProps, 'children'> {
|
|
1622
1815
|
browseSlot: ReactNode;
|
|
1623
1816
|
cartSlot: ReactNode;
|
|
@@ -1696,6 +1889,61 @@ interface StoreSettingsChoiceScreenProps extends Omit<ViewProps, 'children'> {
|
|
|
1696
1889
|
*/
|
|
1697
1890
|
declare function StoreSettingsChoiceScreen({ choices, initial, onSubmit, countryName, locale, title, body, regionLabel, countryLabel, channelLabel, submitLabel, className, ...viewProps }: StoreSettingsChoiceScreenProps): react_jsx_runtime.JSX.Element;
|
|
1698
1891
|
|
|
1892
|
+
interface ShellNavItem {
|
|
1893
|
+
id: string;
|
|
1894
|
+
label: string;
|
|
1895
|
+
/** An icon element drawn in currentColor (`createSvgIcon`), 24 px. */
|
|
1896
|
+
icon: React$1.ReactNode;
|
|
1897
|
+
/** A count or short text on the icon's shoulder; nothing when undefined, 0 or ''. */
|
|
1898
|
+
badge?: number | string;
|
|
1899
|
+
/** `bottom` items sit in the group pinned to the end of the rail or drawer (v2's `marginTop: 'auto'`). */
|
|
1900
|
+
group?: 'top' | 'bottom';
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
interface AppShellProps {
|
|
1904
|
+
navItems: ShellNavItem[];
|
|
1905
|
+
activeId?: string;
|
|
1906
|
+
/** Routing is the app's: it maps the pressed item's id to its own route. */
|
|
1907
|
+
onNavigate: (id: string) => void;
|
|
1908
|
+
/** Drawn above the page (a `RegisterBar`); its menu button opens the drawer on phones. */
|
|
1909
|
+
registerBar?: React$1.ReactNode;
|
|
1910
|
+
children?: React$1.ReactNode;
|
|
1911
|
+
className?: string;
|
|
1912
|
+
testID?: string;
|
|
1913
|
+
}
|
|
1914
|
+
/** The POS frame: the nav rail beside the page on wide windows, a slide-over drawer on phones. */
|
|
1915
|
+
declare function AppShell({ navItems, activeId, onNavigate, registerBar, children, className, testID, }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
1916
|
+
|
|
1917
|
+
interface NavRailProps {
|
|
1918
|
+
items: ShellNavItem[];
|
|
1919
|
+
activeId?: string;
|
|
1920
|
+
onNavigate: (id: string) => void;
|
|
1921
|
+
className?: string;
|
|
1922
|
+
testID?: string;
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* The wide layout's permanent icon column. Its width is 16 spacing units, the `h-12 w-12` item
|
|
1926
|
+
* plus 2 units each side (64 at Regular), so it follows the scale step as v2's does. Icon-only:
|
|
1927
|
+
* the label shows to the right on hover or keyboard focus, v2's web tooltip.
|
|
1928
|
+
*/
|
|
1929
|
+
declare function NavRail({ items, activeId, onNavigate, className, testID }: NavRailProps): react_jsx_runtime.JSX.Element;
|
|
1930
|
+
|
|
1931
|
+
interface NavDrawerProps {
|
|
1932
|
+
open: boolean;
|
|
1933
|
+
onOpenChange: (open: boolean) => void;
|
|
1934
|
+
items: ShellNavItem[];
|
|
1935
|
+
activeId?: string;
|
|
1936
|
+
onNavigate: (id: string) => void;
|
|
1937
|
+
/** Drawn above the items (a store name or logo). */
|
|
1938
|
+
header?: React$1.ReactNode;
|
|
1939
|
+
testID?: string;
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* The phone's navigation: a 200-wide panel that slides over the screen from the left, v2's
|
|
1943
|
+
* `drawerType: 'front'`, with a backdrop that closes it. Pressing the current page only closes it.
|
|
1944
|
+
*/
|
|
1945
|
+
declare function NavDrawer({ open, onOpenChange, items, activeId, onNavigate, header, testID }: NavDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
1946
|
+
|
|
1699
1947
|
/**
|
|
1700
1948
|
* The Sales room's cards over unit 10's figures. Port of WCPOS v2 `screens/main/reports/cards/`
|
|
1701
1949
|
* (`card.tsx`, `primitives.tsx`, `orders.tsx`, `payments.tsx`, `top-products.tsx`,
|
|
@@ -1794,4 +2042,4 @@ interface FontProviderProps {
|
|
|
1794
2042
|
declare function FontProvider({ font, autoTypeSet, loadFonts, children }: FontProviderProps): React$1.JSX.Element;
|
|
1795
2043
|
declare function useFontType(): FontState;
|
|
1796
2044
|
|
|
1797
|
-
export { APPROVAL_REQUIRED_TEXT, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cart, type CartAction, CartBar, CartLine, CartLineActions, type CartLineActionsProps, type CartLineProps, CartNoteInput, type CartNoteInputProps, CartPanel, type CartPanelProps, CartTotal, type CartTotalProps, CashCountInput, type CashCountInputProps, CashTendered, type CashTenderedProps, Catalogue, type CategoryItem, CategoryNav, type CategoryNavProps, ChangeDisplay, type ChangeDisplayProps, ChargeForm, type ChargeFormProps, Checkbox, CheckoutLayout, type CheckoutLayoutProps, type ChipItem, ClosureSheet, type ClosureSheetProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxTrigger, type ConnectionStatus, ConnectorStatus, type ConnectorStatusProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CustomerCard, type CustomerCardProps, CustomerForm, type CustomerFormProps, type CustomerFormValues, CustomerOrderHistory, type CustomerOrderHistoryProps, CustomerPicker, type CustomerPickerProps, CustomerSelect, type CustomerSelectProps, type Denomination, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiscountBadge, type DiscountBadgeProps, DiscountChips, DiscountForm, DisplaySettings, type DisplaySettingsProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterChip, FilterChipGroup, type FilterChipGroupProps, type FilterChipProps, FontProvider, type FontProviderProps, type FontState, type FontStatus, HStack, type HStackProps, HoverCard, HoverCardContent, HoverCardTrigger, Icon, IconButton, type IconButtonProps, type IconProps, Input, InputField, InputRoot, type InputRootProps, InputSlot, Label, type LabelProps, LiveTabScreen, type LiveTabScreenProps, type LiveTabScreenState, Loader, type LoaderProps, MovementSheet, type MovementSheetProps, OpenRegisterCard, type OpenRegisterCardProps, OpenSaleTabs, type OpenSaleTabsProps, OrderCard, type OrderCardProps, OrderDetail, type OrderDetailLineItem, type OrderDetailProps, type OrderHistoryRow, OrderList, type OrderListProps, type OrderStatus, OrderStatusBadge, type OrderStatusBadgeProps, OrderSummary, OrderSummaryLine, type OrderSummaryLineProps, type OrderSummaryPayment, type OrderSummaryProps, OrdersList, POSLayout, type POSLayoutProps, ParkedSales, type ParkedSalesProps, type PaymentMethod, PaymentMethodCard, type PaymentMethodCardProps, PaymentSelector, type PaymentSelectorProps, Popover, PopoverContent, PopoverTrigger, PriceForm, ProductCard, type ProductCardProps, ProductGrid, type ProductGridProps, ProductImage, type ProductImageProps, ProductList, type ProductListProps, ProductPrice, type ProductPriceProps, ProductSku, type ProductSkuProps, ProductStockBadge, type ProductStockBadgeProps, ProductTable, type ProductTableColumn, type ProductTableProps, ProductTitle, type ProductTitleProps, ProductVariantPicker, type ProductVariantPickerProps, Progress, type ProgressProps, QuantityStepper, type QuantityStepperProps, RadioGroup, RadioGroupItem, Receipt, type ReceiptItem, ReceiptPreview, type ReceiptPreviewProps, 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, type SalesCardId, SalesCards, type SalesCardsProps, type SalesFilters, SalesFiltersBar, type SalesFiltersBarProps, SalesHero, type SalesHeroProps, type SalesOption, SalesRoom, type SalesRoomProps, ScaleProvider, type ScaleProviderProps, type ScaleScopeProps, type ScaleState, SearchIcon, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, SettingsGroup, type SettingsGroupProps, SettingsLayout, type SettingsLayoutProps, SettingsRow, type SettingsRowProps, Slider, type SliderProps, SplitTender, StoreSettingsChoiceScreen, type StoreSettingsChoiceScreenProps, type SvgIconProps, Switch, SyncStatus, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tender, Text, type TextProps, Textarea, type TextareaProps, Toast, ToastClose, ToastDescription, type ToastProps, ToastTitle, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipTrigger, type TransactionSummary, VStack, type VStackProps, type VariantOption, ViewToggle, type ViewToggleProps, XIcon, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, createSvgIcon, defaultProductColumns, describeRegisterBarPill, discountLabel, formatStockSyncTime, hstackVariants, iconButtonVariants, iconVariants, injectPrintStyle, loaderVariants, orderReference, parseDiscount, parsePrice, textVariants, toastVariants, toggleTextVariants, toggleVariants, useDefaultProductColumns, useFontType, useInputContext, usePointer, useScale, vstackVariants };
|
|
2045
|
+
export { APPROVAL_REQUIRED_TEXT, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppShell, type AppShellProps, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cart, type CartAction, CartBar, CartColumnHeads, type CartColumnHeadsProps, CartLine, CartLineActions, type CartLineActionsProps, type CartLineProps, CartNoteInput, type CartNoteInputProps, CartPanel, type CartPanelProps, CartTotal, type CartTotalProps, CashCountInput, type CashCountInputProps, CashTendered, type CashTenderedProps, Catalogue, type CategoryItem, CategoryNav, type CategoryNavProps, CategoryTile, type CategoryTileProps, ChangeDisplay, type ChangeDisplayProps, ChargeForm, type ChargeFormProps, Checkbox, CheckoutLayout, type CheckoutLayoutProps, type ChipItem, ClosureSheet, type ClosureSheetProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxTrigger, type ConnectionStatus, ConnectorStatus, type ConnectorStatusProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CustomerCard, type CustomerCardProps, CustomerDisplayScreen, CustomerForm, type CustomerFormProps, type CustomerFormValues, CustomerOrderHistory, type CustomerOrderHistoryProps, CustomerPicker, type CustomerPickerProps, CustomerSelect, type CustomerSelectProps, DEFAULT_PRODUCT_FILTERS, type Denomination, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiscountBadge, type DiscountBadgeProps, DiscountChips, DiscountForm, DisplaySettings, type DisplaySettingsProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterChip, FilterChipGroup, type FilterChipGroupProps, type FilterChipProps, FontProvider, type FontProviderProps, type FontState, type FontStatus, HStack, type HStackProps, HandoverSlip, type HandoverSlipProps, HoverCard, HoverCardContent, HoverCardTrigger, Icon, IconButton, type IconButtonProps, type IconProps, InCartBadge, type InCartBadgeProps, Input, InputField, InputRoot, type InputRootProps, InputSlot, Label, type LabelProps, LiveTabScreen, type LiveTabScreenProps, type LiveTabScreenState, Loader, type LoaderProps, MovementSheet, type MovementSheetProps, NavDrawer, type NavDrawerProps, NavRail, type NavRailProps, OpenRegisterCard, type OpenRegisterCardProps, OpenSaleTabs, type OpenSaleTabsProps, OrderCard, type OrderCardProps, OrderDetail, type OrderDetailLineItem, type OrderDetailProps, type OrderHistoryRow, OrderList, type OrderListProps, type OrderStatus, OrderStatusBadge, type OrderStatusBadgeProps, OrderSummary, OrderSummaryLine, type OrderSummaryLineProps, type OrderSummaryPayment, type OrderSummaryProps, OrdersList, POSLayout, type POSLayoutProps, PRODUCT_FILTER_CHIPS, ParkedSales, type ParkedSalesProps, type PaymentMethod, PaymentMethodCard, type PaymentMethodCardProps, PaymentSelector, type PaymentSelectorProps, Popover, PopoverContent, PopoverTrigger, PriceForm, 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, ProductTitle, type ProductTitleProps, ProductVariantPicker, type ProductVariantPickerProps, Progress, type ProgressProps, QuantityStepper, type QuantityStepperProps, RadioGroup, RadioGroupItem, Receipt, type ReceiptItem, ReceiptPreview, type ReceiptPreviewProps, 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, type SalesCardId, SalesCards, type SalesCardsProps, type SalesFilters, SalesFiltersBar, type SalesFiltersBarProps, SalesHero, type SalesHeroProps, type SalesOption, SalesRoom, type SalesRoomProps, ScaleProvider, type ScaleProviderProps, type ScaleScopeProps, type ScaleState, SearchIcon, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, SettingsGroup, type SettingsGroupProps, SettingsLayout, type SettingsLayoutProps, SettingsRow, type SettingsRowProps, type ShellNavItem, Slider, type SliderProps, SplitTender, StoreSettingsChoiceScreen, type StoreSettingsChoiceScreenProps, type SvgIconProps, Switch, SwitchConfirm, type SwitchConfirmProps, SyncStatus, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tender, TenderPane, type TenderPaneProps, Text, type TextProps, Textarea, type TextareaProps, Toast, ToastClose, ToastDescription, type ToastProps, ToastTitle, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipTrigger, type TransactionSummary, VStack, type VStackProps, type VariantOption, ViewToggle, type ViewToggleProps, XIcon, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, createSvgIcon, defaultProductColumns, describeRegisterBarPill, discountLabel, formatStockSyncTime, hstackVariants, iconButtonVariants, iconVariants, injectPrintStyle, loaderVariants, orderReference, parseDiscount, parsePrice, textVariants, toastVariants, toggleTextVariants, toggleVariants, useDefaultProductColumns, useFontType, useInputContext, usePointer, useScale, vstackVariants };
|