@tallyui/components 3.18.0 → 3.20.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 +473 -37
- package/dist/index.js +3656 -1905
- package/package.json +9 -9
- package/src/cart/cart-columns.tsx +42 -4
- package/src/cart/cart-foot.tsx +2 -2
- package/src/cart/cart-line.tsx +42 -18
- package/src/cart/cart-note-input.tsx +10 -2
- package/src/cart/cart-panel.tsx +4 -1
- package/src/cart/cart-total.tsx +8 -5
- package/src/cart/index.ts +1 -1
- package/src/customer/customer-select.tsx +21 -3
- package/src/index.ts +27 -0
- package/src/input/search-input.tsx +1 -1
- package/src/order/index.ts +1 -0
- package/src/order/order-filter-bar.tsx +247 -0
- package/src/product/camera-scan-button.tsx +28 -0
- package/src/product/camera-scanner-panel.tsx +156 -0
- package/src/product/index.ts +5 -0
- package/src/product/product-table.tsx +14 -4
- package/src/product/scanner-viewfinder.tsx +76 -0
- package/src/product/variation-picker.tsx +128 -0
- package/src/register/register-bar.tsx +2 -6
- package/src/register/register-panel.tsx +47 -24
- package/src/register/register-side-sheet.tsx +175 -0
- package/src/reports/date-range-menu.tsx +109 -0
- package/src/reports/filters-bar.tsx +11 -21
- package/src/reports/hero.tsx +8 -4
- package/src/reports/index.ts +1 -0
- package/src/sale/cart.tsx +49 -10
- package/src/sale/catalogue.tsx +98 -21
- package/src/sale/charge-form.tsx +12 -6
- package/src/sale/customer-display-pairing.tsx +111 -0
- package/src/sale/index.ts +1 -0
- package/src/sale/line-popover.tsx +17 -1
- package/src/sale/order-reference.ts +1 -1
- package/src/sale/orders-list.tsx +1 -1
- package/src/settings/customer-display-settings.tsx +163 -0
- package/src/settings/index.ts +2 -0
- package/src/settings/tax-calculation-settings.tsx +97 -0
- package/src/shell/nav-drawer.tsx +1 -1
- package/src/tax/index.ts +1 -0
- package/src/tax/tax-based-on.tsx +196 -0
- package/src/ui/alert-dialog/index.tsx +1 -1
- package/src/ui/avatar/index.tsx +22 -4
- package/src/ui/button/index.tsx +1 -1
- package/src/ui/calendar/index.tsx +119 -0
- package/src/ui/calendar/month-grid.ts +40 -0
- package/src/ui/combobox/index.tsx +1 -1
- package/src/ui/dialog/index.tsx +21 -9
- package/src/ui/icon/chevron-down-icon.tsx +4 -0
- package/src/ui/icon/grip-icon.tsx +10 -0
- package/src/ui/icon/scan-icon.tsx +13 -0
- package/src/ui/icon/shopping-cart-icon.tsx +10 -0
- package/src/ui/icon-button/index.tsx +1 -1
- package/src/ui/index.ts +11 -1
- package/src/ui/input/index.tsx +1 -1
- package/src/ui/select/index.tsx +22 -4
- package/src/ui/slider/index.tsx +2 -2
- package/src/ui/switch/index.tsx +19 -8
- package/src/ui/textarea/index.tsx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import { ReactNode,
|
|
4
|
+
import { JSX, ReactNode, ComponentType } from 'react';
|
|
5
5
|
import * as react_native from 'react-native';
|
|
6
6
|
import { Text as Text$1, ViewProps, View, PressableProps, TextProps as TextProps$1, TextInputProps, TextInput, Pressable, StyleProp, ImageStyle } from 'react-native';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
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
|
+
import { StoreDay, DayRange, CatalogueView, ProductSortValue, ProductSort, ViewfinderStatus, CameraDecoder, RefundableOrderLine, EarlierRefund, OrderFilterValue, useRegisterSession, RegisterSession, MovementType, ApprovalNeeded, SwitchKind, SwitchWarnings, HandoverSlipData, AppSettings, useAppSettings, PairingPhase, PairingError, TillDisplayStatus, TillDisplayEntry, TaxDerivation, useSale, TenderState, TenderAction, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, CartQuantityLine, SentOrder, PosOrder, ReceiptData, OutboxState, ParkedOrderSummary, OpenSale, DisplayState, DisplayClientPhase, SalesFigures, DatePreset } from '@tallyui/pos';
|
|
11
12
|
import { ScaleOverride, ScaleVariables, ScaleStep, Pointer, TypeSetId, ThemeFontFamily, ThemeType } from '@tallyui/theme';
|
|
12
|
-
import {
|
|
13
|
-
import { ProductTraits, TraitContext, Money, CustomerTraits, Customer, CustomerInput, OrderRefundPayload, PaymentMethodDescriptor, ProductCategory, SyncNotice, StoreSettingsChoices, StoreSettingsChoice } from '@tallyui/core';
|
|
13
|
+
import { ProductTraits, TraitContext, VariantOptionGroup, VariantSummary, Money, CustomerTraits, Customer, CustomerInput, OrderRefundPayload, OrderFilterField, woocommerceTax, PaymentMethodDescriptor, ProductCategory, SyncNotice, StoreSettingsChoices, StoreSettingsChoice } from '@tallyui/core';
|
|
14
14
|
import { TFunction } from 'i18next';
|
|
15
15
|
|
|
16
16
|
declare const textVariants: (props?: ({
|
|
@@ -67,11 +67,33 @@ declare const SearchIcon: {
|
|
|
67
67
|
displayName: string;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
declare const ShoppingCartIcon: {
|
|
71
|
+
({ size, color, strokeWidth, accessibilityLabel, ...props }: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
72
|
+
displayName: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
70
75
|
declare const XIcon: {
|
|
71
76
|
({ size, color, strokeWidth, accessibilityLabel, ...props }: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
72
77
|
displayName: string;
|
|
73
78
|
};
|
|
74
79
|
|
|
80
|
+
/** A scan frame (four corners) with a centre line. */
|
|
81
|
+
declare const ScanIcon: {
|
|
82
|
+
({ size, color, strokeWidth, accessibilityLabel, ...props }: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/** A horizontal grip of two lines. */
|
|
87
|
+
declare const GripIcon: {
|
|
88
|
+
({ size, color, strokeWidth, accessibilityLabel, ...props }: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
displayName: string;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
declare const ChevronDownIcon: {
|
|
93
|
+
({ size, color, strokeWidth, accessibilityLabel, ...props }: SvgIconProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
displayName: string;
|
|
95
|
+
};
|
|
96
|
+
|
|
75
97
|
declare const loaderVariants: (props?: ({
|
|
76
98
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
77
99
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -96,8 +118,15 @@ type AvatarProps = ViewProps & VariantProps<typeof avatarVariants> & {
|
|
|
96
118
|
src?: string;
|
|
97
119
|
alt?: string;
|
|
98
120
|
fallback?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The fallback's colours. `'primary'` is v2's look (light initials on a solid primary circle),
|
|
123
|
+
* used by the Customers table and the customer dropdown.
|
|
124
|
+
*/
|
|
125
|
+
tone?: 'muted' | 'primary';
|
|
99
126
|
};
|
|
100
|
-
|
|
127
|
+
/** Up to two words of `name`, the first letter of each, upper case. */
|
|
128
|
+
declare function avatarInitials(name: string): string;
|
|
129
|
+
declare function Avatar({ className, size, src, alt, fallback, tone, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
101
130
|
|
|
102
131
|
declare const buttonVariants: (props?: ({
|
|
103
132
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
@@ -178,7 +207,14 @@ declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<Dialog$1.Tri
|
|
|
178
207
|
declare const DialogPortal: typeof Dialog$1.Portal;
|
|
179
208
|
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<Dialog$1.CloseProps, "ref"> & React$1.RefAttributes<View>>;
|
|
180
209
|
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<Dialog$1.OverlayProps, "ref"> & React$1.RefAttributes<View>, "ref"> & React$1.RefAttributes<View>>;
|
|
181
|
-
|
|
210
|
+
/** Where the content sits: centred (the default), or a full-height sheet on the right edge, full width on a phone. */
|
|
211
|
+
declare const SIDE_CLASS: {
|
|
212
|
+
readonly center: "fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border border-border bg-background p-6 shadow-lg";
|
|
213
|
+
readonly right: "fixed right-0 top-0 bottom-0 z-50 h-full w-full max-w-lg gap-4 rounded-none border-l border-border bg-background p-6 shadow-lg";
|
|
214
|
+
};
|
|
215
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<Omit<Dialog$1.ContentProps, "ref"> & React$1.RefAttributes<View>, "ref"> & {
|
|
216
|
+
side?: keyof typeof SIDE_CLASS;
|
|
217
|
+
} & React$1.RefAttributes<View>>;
|
|
182
218
|
declare function DialogHeader({ className, ...props }: React$1.ComponentPropsWithoutRef<typeof View>): react_jsx_runtime.JSX.Element;
|
|
183
219
|
declare function DialogFooter({ className, ...props }: React$1.ComponentPropsWithoutRef<typeof View>): react_jsx_runtime.JSX.Element;
|
|
184
220
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<Omit<Dialog$1.TitleProps, "ref"> & React$1.RefAttributes<Text$1>, "ref"> & React$1.RefAttributes<Text$1>>;
|
|
@@ -199,7 +235,13 @@ declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
199
235
|
declare const Select: typeof Select$1.Root;
|
|
200
236
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<Omit<Select$1.GroupProps, "ref"> & React$1.RefAttributes<View>>;
|
|
201
237
|
declare const SelectValue: React$1.ForwardRefExoticComponent<Omit<Select$1.ValueProps, "ref"> & React$1.RefAttributes<react_native.Text>>;
|
|
202
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<Select$1.TriggerProps, "ref"> & React$1.RefAttributes<View>, "ref"> &
|
|
238
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<Select$1.TriggerProps, "ref"> & React$1.RefAttributes<View>, "ref"> & {
|
|
239
|
+
/**
|
|
240
|
+
* Draws a down chevron at the right, the v2 way. Pass `false` when the children draw their
|
|
241
|
+
* own, or for a trigger that needs none. Skipped under `asChild`, whose one child owns the content.
|
|
242
|
+
*/
|
|
243
|
+
chevron?: boolean;
|
|
244
|
+
} & React$1.RefAttributes<View>>;
|
|
203
245
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<Omit<Select$1.ContentProps, "ref"> & React$1.RefAttributes<View>, "ref"> & React$1.RefAttributes<View>>;
|
|
204
246
|
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<Omit<Select$1.LabelProps, "ref"> & React$1.RefAttributes<react_native.Text>, "ref"> & React$1.RefAttributes<react_native.Text>>;
|
|
205
247
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<Omit<Select$1.ItemProps, "ref"> & React$1.RefAttributes<View>, "ref"> & React$1.RefAttributes<View>>;
|
|
@@ -258,6 +300,60 @@ declare const Popover: typeof Popover$1.Root;
|
|
|
258
300
|
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<Omit<Popover$1.TriggerProps, "ref"> & React$1.RefAttributes<react_native.View>>;
|
|
259
301
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<Omit<Popover$1.ContentProps, "ref"> & React$1.RefAttributes<react_native.View>, "ref"> & React$1.RefAttributes<react_native.View>>;
|
|
260
302
|
|
|
303
|
+
/**
|
|
304
|
+
* The calendar's date math, on store days (`yyyy-MM-dd`) and months (`yyyy-MM`). Everything is UTC
|
|
305
|
+
* day arithmetic, as pos `presetRange` does, so no `Date` is ever read in the device zone.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
type Month = string;
|
|
309
|
+
/** 0 = Sunday, as `Date.getUTCDay`. */
|
|
310
|
+
type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
311
|
+
interface GridDay {
|
|
312
|
+
day: StoreDay;
|
|
313
|
+
inMonth: boolean;
|
|
314
|
+
}
|
|
315
|
+
declare const monthOf: (day: StoreDay) => Month;
|
|
316
|
+
declare function addMonths(month: Month, n: number): Month;
|
|
317
|
+
declare const compareDays: (a: StoreDay, b: StoreDay) => number;
|
|
318
|
+
/** The weeks of `month`, each 7 days from `weekStartsOn`; leading and trailing days belong to the neighbouring months. */
|
|
319
|
+
declare function monthGrid(month: Month, weekStartsOn: WeekDay): GridDay[][];
|
|
320
|
+
/** v2's two-tap rule. `anchor` is the first tap of a range still being picked, or null. */
|
|
321
|
+
declare function pressRangeDay(anchor: StoreDay | null, day: StoreDay): {
|
|
322
|
+
range: DayRange;
|
|
323
|
+
anchor: StoreDay | null;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* A month calendar with single and range selection, `min`/`max` bounds and a week start. WCPOS v2
|
|
328
|
+
* wraps react-native-calendars (`components/src/calendar/calendar-impl.tsx`); this is a plain grid
|
|
329
|
+
* of Pressables with theme token classes instead, so it adds no dependency. Days are store days.
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
interface CalendarBaseProps {
|
|
333
|
+
min?: StoreDay;
|
|
334
|
+
max?: StoreDay;
|
|
335
|
+
/** Default 1 (Monday), as v2 hard-codes. */
|
|
336
|
+
weekStartsOn?: WeekDay;
|
|
337
|
+
/** The month shown first; defaults to the month of the value's start, else of `today`. */
|
|
338
|
+
initialMonth?: Month;
|
|
339
|
+
/** Today as a store day, for the today mark and the default month; the caller works it out in store time. */
|
|
340
|
+
today: StoreDay;
|
|
341
|
+
/** BCP 47 tag for the month and weekday names via Intl, default 'en-GB'. */
|
|
342
|
+
locale?: string;
|
|
343
|
+
testID?: string;
|
|
344
|
+
className?: string;
|
|
345
|
+
}
|
|
346
|
+
type CalendarProps = (CalendarBaseProps & {
|
|
347
|
+
mode: 'single';
|
|
348
|
+
value: StoreDay | null;
|
|
349
|
+
onChange: (day: StoreDay) => void;
|
|
350
|
+
}) | (CalendarBaseProps & {
|
|
351
|
+
mode: 'range';
|
|
352
|
+
value: DayRange | null;
|
|
353
|
+
onChange: (range: DayRange) => void;
|
|
354
|
+
});
|
|
355
|
+
declare function Calendar(props: CalendarProps): JSX.Element;
|
|
356
|
+
|
|
261
357
|
declare const Tooltip: typeof Tooltip$1.Root;
|
|
262
358
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<Tooltip$1.TriggerProps, "ref"> & React$1.RefAttributes<react_native.View>>;
|
|
263
359
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<Omit<Tooltip$1.ContentProps, "ref"> & React$1.RefAttributes<react_native.View>, "ref"> & React$1.RefAttributes<react_native.View>>;
|
|
@@ -277,7 +373,21 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<Omit<Omit<Co
|
|
|
277
373
|
|
|
278
374
|
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<Omit<Checkbox$1.RootProps, "ref"> & React$1.RefAttributes<View>, "ref"> & React$1.RefAttributes<View>>;
|
|
279
375
|
|
|
280
|
-
declare const
|
|
376
|
+
declare const sizes: {
|
|
377
|
+
readonly default: {
|
|
378
|
+
readonly track: "h-6 w-11";
|
|
379
|
+
readonly thumb: "h-5 w-5";
|
|
380
|
+
readonly on: "translate-x-5";
|
|
381
|
+
};
|
|
382
|
+
readonly sm: {
|
|
383
|
+
readonly track: "h-5 w-9";
|
|
384
|
+
readonly thumb: "h-4 w-4";
|
|
385
|
+
readonly on: "translate-x-4";
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<Omit<Switch$1.RootProps, "ref"> & React$1.RefAttributes<react_native.View>, "ref"> & {
|
|
389
|
+
size?: keyof typeof sizes;
|
|
390
|
+
} & React$1.RefAttributes<react_native.View>>;
|
|
281
391
|
|
|
282
392
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<Omit<RadioGroup$1.RootProps, "ref"> & React$1.RefAttributes<View>, "ref"> & React$1.RefAttributes<View>>;
|
|
283
393
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<Omit<RadioGroup$1.ItemProps, "ref"> & React$1.RefAttributes<View>, "ref"> & React$1.RefAttributes<View>>;
|
|
@@ -547,6 +657,10 @@ interface ProductTableColumn<Doc = any> {
|
|
|
547
657
|
id: string;
|
|
548
658
|
/** Header label. */
|
|
549
659
|
header: string;
|
|
660
|
+
/** Places the head and the cells' content; default left (WCPOS v2 column-style). */
|
|
661
|
+
align?: 'left' | 'center' | 'right';
|
|
662
|
+
/** Draws no head label; `header` stays the head's accessible name (v2's image column). */
|
|
663
|
+
hideHeader?: boolean;
|
|
550
664
|
render: (doc: Doc) => ReactNode;
|
|
551
665
|
/** The value the header sort orders by; omit to make the column unsortable. */
|
|
552
666
|
sortValue?: (doc: Doc) => ProductSortValue;
|
|
@@ -631,6 +745,24 @@ interface InCartBadgeProps {
|
|
|
631
745
|
*/
|
|
632
746
|
declare function InCartBadge({ count, className, testID }: InCartBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
633
747
|
|
|
748
|
+
interface VariationPickerProps {
|
|
749
|
+
/** The product name. */
|
|
750
|
+
title: string;
|
|
751
|
+
groups: VariantOptionGroup[];
|
|
752
|
+
variants: VariantSummary[];
|
|
753
|
+
currency: string;
|
|
754
|
+
/** Called with the matched variant and the picks for the variant's "Any" groups (empty when it has none). */
|
|
755
|
+
onAdd: (variant: VariantSummary, anyPicks: Record<string, string>) => void | Promise<void>;
|
|
756
|
+
/** Stock refuses Add when the variant is out of stock and this is true (v2 preventOverselling). Default false. */
|
|
757
|
+
preventOverselling?: boolean;
|
|
758
|
+
testID?: string;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* v2's variations popover body: the cashier picks one value per option group (values no variant allows are
|
|
762
|
+
* dimmed), sees the matched variant's stock, and presses Add; a full match never adds on its own.
|
|
763
|
+
*/
|
|
764
|
+
declare function VariationPicker({ title, groups, variants, currency, onAdd, preventOverselling, testID }: VariationPickerProps): react_jsx_runtime.JSX.Element;
|
|
765
|
+
|
|
634
766
|
interface CategoryTileProps {
|
|
635
767
|
name: string;
|
|
636
768
|
/** The category's photo; without one the tile shows the name's initial on a tint. */
|
|
@@ -651,6 +783,108 @@ interface CategoryTileProps {
|
|
|
651
783
|
*/
|
|
652
784
|
declare function CategoryTile({ name, imageUrl, count, onPress, testID, className }: CategoryTileProps): react_jsx_runtime.JSX.Element;
|
|
653
785
|
|
|
786
|
+
interface CameraScanButtonProps {
|
|
787
|
+
/** The camera scanner is showing: the button then closes it. */
|
|
788
|
+
open: boolean;
|
|
789
|
+
onPress: () => void;
|
|
790
|
+
testID?: string;
|
|
791
|
+
}
|
|
792
|
+
/** Opens and closes the camera scanner panel (v2 pos/products/camera-scan-button.tsx). */
|
|
793
|
+
declare function CameraScanButton({ open, onPress, testID }: CameraScanButtonProps): react_jsx_runtime.JSX.Element;
|
|
794
|
+
|
|
795
|
+
interface ViewfinderProps {
|
|
796
|
+
onDetected: (code: string, symbology?: string) => void;
|
|
797
|
+
onStatus: (status: ViewfinderStatus) => void;
|
|
798
|
+
/** Defaults to the BarcodeDetector global where it exists; an app may pass a ponyfill with the same detect. */
|
|
799
|
+
decoder?: CameraDecoder;
|
|
800
|
+
}
|
|
801
|
+
/** The web camera view: getUserMedia into a <video>, decoded by startDecodeLoop (v2 scanner-viewfinder.web.tsx).
|
|
802
|
+
* Elsewhere it reports 'camera-unavailable' and renders an empty view; a native app passes its own viewfinder
|
|
803
|
+
* (for example one built on expo-camera) to CameraScannerPanel. */
|
|
804
|
+
declare function ScannerViewfinder(props: ViewfinderProps): react_jsx_runtime.JSX.Element;
|
|
805
|
+
|
|
806
|
+
declare const FLASH_DURATION_MS = 350;
|
|
807
|
+
declare const SCANNER_MIN_HEIGHT = 96;
|
|
808
|
+
declare const SCANNER_MAX_HEIGHT = 480;
|
|
809
|
+
declare const SCANNER_DEFAULT_HEIGHT = 176;
|
|
810
|
+
interface CameraScannerPanelProps {
|
|
811
|
+
onClose: () => void;
|
|
812
|
+
/** Panel height; clamped to [96, 480]. Default 176. The app persists it from onHeightChange. */
|
|
813
|
+
height?: number;
|
|
814
|
+
onHeightChange?: (height: number) => void;
|
|
815
|
+
/** Native permission flow; omit on web, where the browser asks on getUserMedia. */
|
|
816
|
+
permission?: {
|
|
817
|
+
granted: boolean;
|
|
818
|
+
request: () => void;
|
|
819
|
+
};
|
|
820
|
+
/** Default ScannerViewfinder; a native app passes its own (for example one built on expo-camera). */
|
|
821
|
+
viewfinder?: ComponentType<ViewfinderProps>;
|
|
822
|
+
decoder?: CameraDecoder;
|
|
823
|
+
/** v2's readiness note (storage, offline, sync starting): the app picks the copy; shown under the status. */
|
|
824
|
+
readiness?: string;
|
|
825
|
+
/** Each decode, passed straight to the viewfinder: the app passes its useCameraScan offer. */
|
|
826
|
+
onDetected: (code: string, symbology?: string) => void;
|
|
827
|
+
/** Called once on mount (the scanner opened): the app passes its useCameraScan reset. */
|
|
828
|
+
onOpen?: () => void;
|
|
829
|
+
/** The app's useCameraScan scanCount: each change after mount flashes the panel. */
|
|
830
|
+
scanCount?: number;
|
|
831
|
+
}
|
|
832
|
+
/** The inline camera scanner (v2 camera-scanner-panel.tsx). It calls no pos hook: the app owns useCameraScan (and
|
|
833
|
+
* its ScanHubProvider) and passes { onDetected: camera.offer, onOpen: camera.reset, scanCount: camera.scanCount },
|
|
834
|
+
* so accepted decodes reach the app's useBarcodeScanner like any device scan. */
|
|
835
|
+
declare function CameraScannerPanel({ onClose, height: heightProp, onHeightChange, permission, viewfinder: Viewfinder, decoder, readiness, onDetected, onOpen, scanCount }: CameraScannerPanelProps): react_jsx_runtime.JSX.Element;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* v2's Cart Settings › Columns: each column's `show` switch and display options. Every field is optional; the
|
|
839
|
+
* defaults are today's look and v2's: Qty, Item, Price and Total show; Image, SKU, `quantity.split` and `name.sku` are off.
|
|
840
|
+
*/
|
|
841
|
+
interface CartColumnSettings {
|
|
842
|
+
/** `split`: a Split link under a quantity above 1. */
|
|
843
|
+
quantity?: {
|
|
844
|
+
show?: boolean;
|
|
845
|
+
split?: boolean;
|
|
846
|
+
};
|
|
847
|
+
/** The line's image, in its own column with no head label. */
|
|
848
|
+
image?: {
|
|
849
|
+
show?: boolean;
|
|
850
|
+
};
|
|
851
|
+
/** `sku`: the SKU on a line under the name. */
|
|
852
|
+
name?: {
|
|
853
|
+
show?: boolean;
|
|
854
|
+
sku?: boolean;
|
|
855
|
+
};
|
|
856
|
+
sku?: {
|
|
857
|
+
show?: boolean;
|
|
858
|
+
};
|
|
859
|
+
/** Still folds on a narrow cart or a phone (`showPrice`). */
|
|
860
|
+
price?: {
|
|
861
|
+
show?: boolean;
|
|
862
|
+
};
|
|
863
|
+
total?: {
|
|
864
|
+
show?: boolean;
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
type CartColumnId = 'quantity' | 'image' | 'name' | 'sku' | 'price' | 'total';
|
|
868
|
+
/** The visible columns, in their fixed order; the heads and every line use it, so they cannot disagree. */
|
|
869
|
+
declare function cartColumnIds(columns?: CartColumnSettings, { showPrice }?: {
|
|
870
|
+
showPrice?: boolean;
|
|
871
|
+
}): CartColumnId[];
|
|
872
|
+
interface CartColumnHeadsProps extends Omit<ViewProps, 'children'> {
|
|
873
|
+
/** Show the Price head (default true); pass the same value as each CartLine's `showPrice`. */
|
|
874
|
+
showPrice?: boolean;
|
|
875
|
+
/** Which columns show (v2's Cart Settings › Columns); pass the same value as each CartLine's `columns`. */
|
|
876
|
+
columns?: CartColumnSettings;
|
|
877
|
+
className?: string;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* The cart's header row, Qty, Item, Price and Total, over lines laid out by CartLine in the same columns.
|
|
881
|
+
*
|
|
882
|
+
* ```tsx
|
|
883
|
+
* <CartColumnHeads showPrice={showPrice} />
|
|
884
|
+
* ```
|
|
885
|
+
*/
|
|
886
|
+
declare function CartColumnHeads({ showPrice, columns, className, ...props }: CartColumnHeadsProps): JSX.Element;
|
|
887
|
+
|
|
654
888
|
interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
655
889
|
name: string;
|
|
656
890
|
/** The variant's chosen options, shown as one "Name: Value · Name: Value" line under the name. */
|
|
@@ -666,6 +900,14 @@ interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
|
666
900
|
quantitySlot?: ReactNode;
|
|
667
901
|
/** Replaces the unit price's text (the struck regular price stays above it). */
|
|
668
902
|
priceSlot?: ReactNode;
|
|
903
|
+
/** Which columns show, as CartColumnHeads' `columns` (v2's Cart Settings › Columns); the default is the look above. */
|
|
904
|
+
columns?: CartColumnSettings;
|
|
905
|
+
/** The SKU, in the SKU column and, with `columns.name.sku`, under the name. */
|
|
906
|
+
sku?: string;
|
|
907
|
+
/** The image in the Image column; without it the cell stays empty at its width. */
|
|
908
|
+
imageUrl?: string;
|
|
909
|
+
/** With `columns.quantity.split` and a quantity above 1, a Split link under the quantity calls this. */
|
|
910
|
+
onSplit?: () => void;
|
|
669
911
|
locale?: string;
|
|
670
912
|
className?: string;
|
|
671
913
|
}
|
|
@@ -677,21 +919,7 @@ interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
|
677
919
|
* <CartLine name="Coffee" quantity={2} unitPrice={unitPrice} lineTotal={lineTotal} />
|
|
678
920
|
* ```
|
|
679
921
|
*/
|
|
680
|
-
declare function CartLine({ name, attributes, quantity, unitPrice, regularUnitPrice, lineTotal, showPrice, quantitySlot, priceSlot, locale, className, ...props }: CartLineProps): react_jsx_runtime.JSX.Element;
|
|
681
|
-
|
|
682
|
-
interface CartColumnHeadsProps extends Omit<ViewProps, 'children'> {
|
|
683
|
-
/** Show the Price head (default true); pass the same value as each CartLine's `showPrice`. */
|
|
684
|
-
showPrice?: boolean;
|
|
685
|
-
className?: string;
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
* The cart's header row, Qty, Item, Price and Total, over lines laid out by CartLine in the same columns.
|
|
689
|
-
*
|
|
690
|
-
* ```tsx
|
|
691
|
-
* <CartColumnHeads showPrice={showPrice} />
|
|
692
|
-
* ```
|
|
693
|
-
*/
|
|
694
|
-
declare function CartColumnHeads({ showPrice, className, ...props }: CartColumnHeadsProps): JSX.Element;
|
|
922
|
+
declare function CartLine({ name, attributes, quantity, unitPrice, regularUnitPrice, lineTotal, showPrice, quantitySlot, priceSlot, columns, sku, imageUrl, onSplit, locale, className, ...props }: CartLineProps): react_jsx_runtime.JSX.Element;
|
|
695
923
|
|
|
696
924
|
interface CartTotalProps extends Omit<VStackProps, 'children'> {
|
|
697
925
|
subtotal: Money;
|
|
@@ -707,15 +935,17 @@ interface CartTotalProps extends Omit<VStackProps, 'children'> {
|
|
|
707
935
|
className?: string;
|
|
708
936
|
/** Rows rendered directly under Subtotal, e.g. a platform's coupon chips. */
|
|
709
937
|
afterSubtotal?: ReactNode;
|
|
938
|
+
/** Draws the Total row. Pass `false` when the total shows elsewhere, e.g. v2's Checkout button. Default `true`. */
|
|
939
|
+
showTotal?: boolean;
|
|
710
940
|
}
|
|
711
941
|
/**
|
|
712
|
-
* Displays a cart summary: subtotal, optional discount, optional tax, and
|
|
942
|
+
* Displays a cart summary: subtotal, optional discount, optional tax, and an optional Total row, in the receipt's order.
|
|
713
943
|
*
|
|
714
944
|
* ```tsx
|
|
715
945
|
* <CartTotal subtotal={subtotal} discount={discount} taxLines={taxLines} total={total} />
|
|
716
946
|
* ```
|
|
717
947
|
*/
|
|
718
|
-
declare function CartTotal({ subtotal, taxLines, discount, total, taxInclusive, locale, className, afterSubtotal, ...props }: CartTotalProps): react_jsx_runtime.JSX.Element;
|
|
948
|
+
declare function CartTotal({ subtotal, taxLines, discount, total, taxInclusive, locale, className, afterSubtotal, showTotal, ...props }: CartTotalProps): react_jsx_runtime.JSX.Element;
|
|
719
949
|
|
|
720
950
|
interface CartPanelProps<T> extends Omit<VStackProps, 'children'> {
|
|
721
951
|
/** Cart line items to render */
|
|
@@ -730,11 +960,13 @@ interface CartPanelProps<T> extends Omit<VStackProps, 'children'> {
|
|
|
730
960
|
afterItems?: ReactNode;
|
|
731
961
|
/** Footer slot (e.g. totals, checkout button) */
|
|
732
962
|
footer?: ReactNode;
|
|
963
|
+
/** Classes for the footer's wrapper (default `border-t border-border px-3 py-2`). */
|
|
964
|
+
footerClassName?: string;
|
|
733
965
|
/** Content shown when items is empty */
|
|
734
966
|
emptyState?: ReactNode;
|
|
735
967
|
className?: string;
|
|
736
968
|
}
|
|
737
|
-
declare function CartPanel<T>({ items, renderItem, keyExtractor, header, afterItems, footer, emptyState, className, ...props }: CartPanelProps<T>): JSX.Element;
|
|
969
|
+
declare function CartPanel<T>({ items, renderItem, keyExtractor, header, afterItems, footer, footerClassName, emptyState, className, ...props }: CartPanelProps<T>): JSX.Element;
|
|
738
970
|
|
|
739
971
|
interface DiscountBadgeProps extends Omit<ViewProps, 'children'> {
|
|
740
972
|
label: string;
|
|
@@ -745,10 +977,16 @@ declare function DiscountBadge({ label, className, ...viewProps }: DiscountBadge
|
|
|
745
977
|
interface CartNoteInputProps extends Omit<ViewProps, 'children'> {
|
|
746
978
|
value: string;
|
|
747
979
|
onChangeText: (text: string) => void;
|
|
980
|
+
/**
|
|
981
|
+
* The note's name, shown by the collapsed link, the input's placeholder and
|
|
982
|
+
* its accessibility label. WooCommerce sends the note as `customer_note`, so
|
|
983
|
+
* the customer sees it.
|
|
984
|
+
*/
|
|
985
|
+
label?: string;
|
|
748
986
|
placeholder?: string;
|
|
749
987
|
className?: string;
|
|
750
988
|
}
|
|
751
|
-
declare function CartNoteInput({ value, onChangeText, placeholder, className, ...viewProps }: CartNoteInputProps): react_jsx_runtime.JSX.Element;
|
|
989
|
+
declare function CartNoteInput({ value, onChangeText, label, placeholder, className, ...viewProps }: CartNoteInputProps): react_jsx_runtime.JSX.Element;
|
|
752
990
|
|
|
753
991
|
interface CartAction {
|
|
754
992
|
id: string;
|
|
@@ -878,6 +1116,10 @@ interface CustomerSelectProps<Doc = any> extends Omit<VStackProps, 'children'> {
|
|
|
878
1116
|
placeholder?: string;
|
|
879
1117
|
/** Renders the search input; pass false when the parent renders its own (as CustomerPicker does) */
|
|
880
1118
|
showSearch?: boolean;
|
|
1119
|
+
/** Draws an initials avatar before each row and the selected summary, the way v2's cart dropdown does */
|
|
1120
|
+
showAvatar?: boolean;
|
|
1121
|
+
/** The avatar's tone; defaults to `'primary'`, v2's look (light initials on a solid primary circle) */
|
|
1122
|
+
avatarTone?: 'muted' | 'primary';
|
|
881
1123
|
className?: string;
|
|
882
1124
|
}
|
|
883
1125
|
/**
|
|
@@ -1160,6 +1402,47 @@ interface RefundModalProps extends Omit<RefundFormProps, 'onCancel'> {
|
|
|
1160
1402
|
/** Ports WCPOS v2 modal.tsx: a bounded panel around the refund form. */
|
|
1161
1403
|
declare function RefundModal({ open, onOpenChange, ...formProps }: RefundModalProps): JSX.Element;
|
|
1162
1404
|
|
|
1405
|
+
/**
|
|
1406
|
+
* The Orders screen's filter pills, in WCPOS v2's order: Status, Payment Method, Customer, Cashier, Store / Created
|
|
1407
|
+
* via, Register and Date range, with Clear all. Port of v2 `screens/main/orders/filter-bar.tsx` and its
|
|
1408
|
+
* `filter-bar/*-pill.tsx` (MIT, WCPOS); copy is v2's English (`core.json`). Presentational: the app passes the value,
|
|
1409
|
+
* the connector's `orderFilters` and every option list, so no platform's words live here.
|
|
1410
|
+
*/
|
|
1411
|
+
|
|
1412
|
+
interface OrderFilterOption {
|
|
1413
|
+
value: string;
|
|
1414
|
+
label: string;
|
|
1415
|
+
}
|
|
1416
|
+
type PaymentMethodKind = 'cash' | 'card' | 'stored_value' | 'bank_transfer' | 'other';
|
|
1417
|
+
interface OrderFilterBarProps {
|
|
1418
|
+
value: OrderFilterValue;
|
|
1419
|
+
onChange(next: OrderFilterValue): void;
|
|
1420
|
+
/** The connector's orderFilters. A pill shows only when its field is here (store pill: storeId or createdVia). */
|
|
1421
|
+
fields: readonly OrderFilterField[];
|
|
1422
|
+
/** What Clear all resets to and counts against (v2: cashier + store). Default {}. */
|
|
1423
|
+
initial?: OrderFilterValue;
|
|
1424
|
+
options?: {
|
|
1425
|
+
status?: OrderFilterOption[];
|
|
1426
|
+
/** Grouped by kind in this order, with a separator between groups: cash, card, stored_value, bank_transfer, other. */
|
|
1427
|
+
paymentMethod?: (OrderFilterOption & {
|
|
1428
|
+
kind?: PaymentMethodKind;
|
|
1429
|
+
})[];
|
|
1430
|
+
customer?: OrderFilterOption[];
|
|
1431
|
+
cashier?: OrderFilterOption[];
|
|
1432
|
+
register?: OrderFilterOption[];
|
|
1433
|
+
store?: OrderFilterOption[];
|
|
1434
|
+
createdVia?: OrderFilterOption[];
|
|
1435
|
+
};
|
|
1436
|
+
/** The customer and cashier pills search through these when given; otherwise they filter their options locally. */
|
|
1437
|
+
onCustomerSearch?(text: string): void;
|
|
1438
|
+
onCashierSearch?(text: string): void;
|
|
1439
|
+
/** IANA zone of the store, or 'device'. */
|
|
1440
|
+
timezone: string;
|
|
1441
|
+
now?: () => Date;
|
|
1442
|
+
testID?: string;
|
|
1443
|
+
}
|
|
1444
|
+
declare function OrderFilterBar({ value, onChange, fields, initial, options, onCustomerSearch, onCashierSearch, timezone, now, testID, }: OrderFilterBarProps): JSX.Element;
|
|
1445
|
+
|
|
1163
1446
|
interface Denomination {
|
|
1164
1447
|
label: string;
|
|
1165
1448
|
value: number;
|
|
@@ -1352,17 +1635,29 @@ interface RegisterPanelProps {
|
|
|
1352
1635
|
approval: string;
|
|
1353
1636
|
} | null>;
|
|
1354
1637
|
className?: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* `'dialog'` (the default) is the centred panel; `'side'` is WCPOS v2's right-hand sheet (Paul,
|
|
1640
|
+
* 2026-10-30: "Cashier and Register modal come from the right"): the cash expected, session
|
|
1641
|
+
* sales, the drawer ledger, Other tenders, and a Print X-report / Close register footer.
|
|
1642
|
+
*/
|
|
1643
|
+
presentation?: 'dialog' | 'side';
|
|
1644
|
+
/** `'side'`: the store's name, first in the header line. */
|
|
1645
|
+
storeName?: string;
|
|
1646
|
+
/** `'side'`: builds and prints the X-report (`buildXReportDocument`); a rejection shows "Printing failed. Try again.". Without it, there is no button. */
|
|
1647
|
+
onPrintXReport?: () => void | Promise<void>;
|
|
1648
|
+
/** `'side'`: the clock for the session's age; defaults to `new Date()`. */
|
|
1649
|
+
now?: () => Date;
|
|
1355
1650
|
}
|
|
1356
1651
|
/**
|
|
1357
1652
|
* The register's drawer panel: expected figures, cash movements with Undo, and Close register.
|
|
1358
1653
|
* Port provenance (ADR-032 amendment 1): WCPOS `next` `3b5331b5c` `register-panel.tsx` (LEDGER
|
|
1359
|
-
* 54, 56, 58).
|
|
1654
|
+
* 54, 56, 58); `presentation="side"` follows WCPOS v2's side sheet (TallyUI#716).
|
|
1360
1655
|
*
|
|
1361
1656
|
* Leaves out (registers job c2 or a later job, per `useRegisterSession`'s own "Not ported"
|
|
1362
1657
|
* note): refused-movement Retry and "Unsynced" (no outbox here to refuse a movement), the
|
|
1363
|
-
*
|
|
1658
|
+
* Z, reprint and the print sheet, the last-closure badge, and the Reports deep link.
|
|
1364
1659
|
*/
|
|
1365
|
-
declare function RegisterPanel({ register, currency, registerName, open, onOpenChange, reapprove, className }: RegisterPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1660
|
+
declare function RegisterPanel({ register, currency, registerName, open, onOpenChange, reapprove, className, presentation, storeName, onPrintXReport, now, }: RegisterPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1366
1661
|
|
|
1367
1662
|
interface RegisterColumnProps {
|
|
1368
1663
|
/** `useRegisterSession`'s return value: decides the picker/open/counting/selling swap. */
|
|
@@ -1527,8 +1822,66 @@ interface DisplaySettingsProps {
|
|
|
1527
1822
|
}
|
|
1528
1823
|
declare function DisplaySettings({ settings, setSetting, className }: DisplaySettingsProps): JSX.Element;
|
|
1529
1824
|
|
|
1825
|
+
type TaxBasedOn$1 = woocommerceTax.TaxBasedOn;
|
|
1826
|
+
interface TaxCalculationSettingsProps {
|
|
1827
|
+
taxBasedOn: TaxBasedOn$1;
|
|
1828
|
+
onTaxBasedOnChange?: (value: TaxBasedOn$1) => void;
|
|
1829
|
+
pricesIncludeTax?: boolean;
|
|
1830
|
+
shippingTaxClass?: string;
|
|
1831
|
+
taxRoundAtSubtotal?: boolean;
|
|
1832
|
+
/** "Set in WooCommerce": a link when given, plain text otherwise. */
|
|
1833
|
+
onOpenStoreTaxSettings?: () => void;
|
|
1834
|
+
className?: string;
|
|
1835
|
+
}
|
|
1836
|
+
declare function TaxCalculationSettings({ taxBasedOn, onTaxBasedOnChange, pricesIncludeTax, shippingTaxClass, taxRoundAtSubtotal, onOpenStoreTaxSettings, className }: TaxCalculationSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Settings › Customer display (ADR-085 U5, d4, d5, d11, d13): the till's paired displays, pairing one with a code and
|
|
1840
|
+
* its "wants to pair" check (#705), and forgetting one. Props only; the app passes `useTillPairing(pairing)` and
|
|
1841
|
+
* `useTillDisplays(service)` and wires the callbacks to the same `TillPairing`.
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
interface CustomerDisplaySettingsProps {
|
|
1845
|
+
/** `useTillPairing(pairing)`. */
|
|
1846
|
+
pairing: {
|
|
1847
|
+
phase: PairingPhase;
|
|
1848
|
+
forgetError: PairingError | null;
|
|
1849
|
+
};
|
|
1850
|
+
/** `useTillDisplays(service)`. */
|
|
1851
|
+
displays: {
|
|
1852
|
+
status: TillDisplayStatus;
|
|
1853
|
+
displays: readonly TillDisplayEntry[];
|
|
1854
|
+
};
|
|
1855
|
+
onStartPairing: () => void;
|
|
1856
|
+
onConfirm: (claimId: string) => void;
|
|
1857
|
+
onDecline: (claimId: string) => void;
|
|
1858
|
+
onCancelPairing: () => void;
|
|
1859
|
+
onForget: (displayId: string) => void;
|
|
1860
|
+
/** Formats the code's expiry; default: the device's locale, hours and minutes. */
|
|
1861
|
+
formatTime?: (iso: string) => string;
|
|
1862
|
+
className?: string;
|
|
1863
|
+
}
|
|
1864
|
+
declare function CustomerDisplaySettings({ pairing, displays, onStartPairing, onConfirm, onDecline, onCancelPairing, onForget, formatTime, className, }: CustomerDisplaySettingsProps): JSX.Element;
|
|
1865
|
+
|
|
1866
|
+
interface TaxBasedOnProps {
|
|
1867
|
+
derivation: TaxDerivation;
|
|
1868
|
+
/** "Change in Settings › Tax"; the link shows only when given. */
|
|
1869
|
+
onChangeSetting?: () => void;
|
|
1870
|
+
/** "View all tax rates"; the footer shows only when given. */
|
|
1871
|
+
onViewAllRates?: () => void;
|
|
1872
|
+
/** Country code to display name; defaults to Intl.DisplayNames('en', region) as "{Name} ({CODE})", the code alone if Intl lacks it. */
|
|
1873
|
+
countryName?: (code: string) => string;
|
|
1874
|
+
className?: string;
|
|
1875
|
+
}
|
|
1876
|
+
/**
|
|
1877
|
+
* v2's "Tax based on" trigger under the product table, and its popover: how the cart's tax rates were derived, from the
|
|
1878
|
+
* setting, through the address used, to the rates that match it. A popover, not a hover card: a touch screen has no hover.
|
|
1879
|
+
* Rate names show as the store gives them (this package has no HTML-entity decoder yet).
|
|
1880
|
+
*/
|
|
1881
|
+
declare function TaxBasedOn({ derivation, onChangeSetting, onViewAllRates, countryName, className }: TaxBasedOnProps): react_jsx_runtime.JSX.Element;
|
|
1882
|
+
|
|
1530
1883
|
/** `taxLabel` names each tax row; VAT isn't universal, so a platform passes its own (medusapos passes `VAT ${rate}%`). */
|
|
1531
|
-
declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscounts, taxClasses, afterSubtotal, couponDiscountMinor, orderActions, checkout, lineEditor }: {
|
|
1884
|
+
declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscounts, taxClasses, afterSubtotal, showTotal, couponDiscountMinor, orderActions, checkout, lineEditor, columns, emptyIcon, emptyText }: {
|
|
1532
1885
|
sale: ReturnType<typeof useSale>;
|
|
1533
1886
|
taxLabel?: (ratePpm: number) => string;
|
|
1534
1887
|
taxClasses?: ReadonlyArray<{
|
|
@@ -1548,6 +1901,8 @@ declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscou
|
|
|
1548
1901
|
quickDiscounts?: readonly number[];
|
|
1549
1902
|
/** Rows under the totals' Subtotal, e.g. the platform's coupon chips (passed to CartTotal). */
|
|
1550
1903
|
afterSubtotal?: ReactNode;
|
|
1904
|
+
/** Draws the totals' Total row. Pass `false` for v2's cart, where the total is on the Checkout button (`checkout`). Default `true`. */
|
|
1905
|
+
showTotal?: boolean;
|
|
1551
1906
|
/** The coupon amount the app itemises in `afterSubtotal` (e.g. Σ `order.display.coupons`), in integer minor units of
|
|
1552
1907
|
* the order's currency, in the display mode. When given, the Discount row shows the other discounts only (the
|
|
1553
1908
|
* totals' discount minus this) and is hidden when they come to 0. Absent: the Discount row is the whole discount. */
|
|
@@ -1562,8 +1917,18 @@ declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscou
|
|
|
1562
1917
|
actions?: readonly CartFootAction[];
|
|
1563
1918
|
};
|
|
1564
1919
|
/** `popover`: tapping a line's quantity or price opens v2's keypad (WCPOS cart cells/quantity-keypad.tsx and
|
|
1565
|
-
* cells/price.tsx), the price one with the quick-discount keys
|
|
1920
|
+
* cells/price.tsx), the price one with the quick-discount keys and the struck regular price. Popover mode draws no
|
|
1921
|
+
* button row under the line: Discount, Price (narrow cart) and Remove are in the quantity popover, Discount in the
|
|
1922
|
+
* price popover. Default `inline`: the − / + buttons and Price form. */
|
|
1566
1923
|
lineEditor?: 'inline' | 'popover';
|
|
1924
|
+
/** v2's Cart Settings › Columns: which columns show, a Split link under a quantity above 1 (`quantity.split`) and the
|
|
1925
|
+
* SKU under the name (`name.sku`). The defaults are today's cart: Qty, Item, Price (folding as before) and Total. */
|
|
1926
|
+
columns?: CartColumnSettings;
|
|
1927
|
+
/** The empty cart's icon, centred above `emptyText` and hidden from screen readers. Default: v2's cart icon in the
|
|
1928
|
+
* muted colour. Pass `null` for no icon. */
|
|
1929
|
+
emptyIcon?: ReactNode;
|
|
1930
|
+
/** The empty cart's line. Default: v2's "Tap a product to start a sale". */
|
|
1931
|
+
emptyText?: string;
|
|
1567
1932
|
}): react_jsx_runtime.JSX.Element;
|
|
1568
1933
|
|
|
1569
1934
|
/** Phone mode's cart summary (medusapos ADR 0009): the whole bar is one button; the total is the cart's own Total row. */
|
|
@@ -1652,12 +2017,22 @@ interface LinePopoverProps {
|
|
|
1652
2017
|
quickDiscounts?: readonly number[];
|
|
1653
2018
|
/** The trigger's text classes (the cell's alignment and tone). */
|
|
1654
2019
|
textClassName?: string;
|
|
2020
|
+
/** Price only: the regular unit price in minor units; shown struck through above the value when it is above `value`. */
|
|
2021
|
+
regularValue?: number;
|
|
2022
|
+
/** Buttons drawn in the open panel above Apply / Cancel, e.g. the cart line's Discount and Remove. Pressing one closes
|
|
2023
|
+
* the popover, then calls its `onPress`. `destructive` draws it in the destructive colour. */
|
|
2024
|
+
actions?: ReadonlyArray<{
|
|
2025
|
+
id: string;
|
|
2026
|
+
label: string;
|
|
2027
|
+
onPress: () => void;
|
|
2028
|
+
destructive?: boolean;
|
|
2029
|
+
}>;
|
|
1655
2030
|
}
|
|
1656
2031
|
/**
|
|
1657
2032
|
* A cart line's quantity or price that opens v2's keypad: the cashier types (or picks a quick discount),
|
|
1658
2033
|
* Apply writes through `onApply`, and Cancel, Escape or a press outside close without writing.
|
|
1659
2034
|
*/
|
|
1660
|
-
declare function LinePopover({ kind, lineName, currency, value, onApply, quickDiscounts, textClassName }: LinePopoverProps): react_jsx_runtime.JSX.Element;
|
|
2035
|
+
declare function LinePopover({ kind, lineName, currency, value, onApply, quickDiscounts, textClassName, regularValue, actions }: LinePopoverProps): react_jsx_runtime.JSX.Element;
|
|
1661
2036
|
|
|
1662
2037
|
interface ChargeFormProps {
|
|
1663
2038
|
currency: string;
|
|
@@ -1670,6 +2045,9 @@ interface ChargeFormProps {
|
|
|
1670
2045
|
label: string;
|
|
1671
2046
|
}>;
|
|
1672
2047
|
shippingTaxFromStore?: boolean;
|
|
2048
|
+
/** Given, the form is that kind only and the kind row is not shown (v2's separate Add Fee / Add Shipping /
|
|
2049
|
+
* Add Miscellaneous Product entries); absent, the form opens on Fee with the row. */
|
|
2050
|
+
kind?: 'fee' | 'shipping' | 'custom';
|
|
1673
2051
|
onApply: (charge: {
|
|
1674
2052
|
kind: 'fee' | 'shipping' | 'custom';
|
|
1675
2053
|
name: string;
|
|
@@ -1680,7 +2058,7 @@ interface ChargeFormProps {
|
|
|
1680
2058
|
onClose: () => void;
|
|
1681
2059
|
}
|
|
1682
2060
|
/** `onApply` returns a refusal to show inline, or null once applied. */
|
|
1683
|
-
declare function ChargeForm({ currency, lineTax, taxClasses, shippingTaxFromStore, onApply, onClose }: ChargeFormProps): react_jsx_runtime.JSX.Element;
|
|
2061
|
+
declare function ChargeForm({ currency, lineTax, taxClasses, shippingTaxFromStore, kind: fixedKind, onApply, onClose }: ChargeFormProps): react_jsx_runtime.JSX.Element;
|
|
1684
2062
|
|
|
1685
2063
|
type ProductFilterChip = 'inStock' | 'featured' | 'onSale' | 'category' | 'tag' | 'brand';
|
|
1686
2064
|
type TermChip = 'category' | 'tag' | 'brand';
|
|
@@ -1709,7 +2087,7 @@ interface ProductFilterBarProps {
|
|
|
1709
2087
|
declare function ProductFilterBar({ value, onChange, chips, onTermPress, className }: ProductFilterBarProps): react_jsx_runtime.JSX.Element;
|
|
1710
2088
|
|
|
1711
2089
|
declare function formatStockSyncTime(time: Date, locale?: string, hour12?: boolean, now?: Date): string;
|
|
1712
|
-
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 }: {
|
|
2090
|
+
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, variationsStyle, cameraScan, cameraScanner }: {
|
|
1713
2091
|
products: Doc[];
|
|
1714
2092
|
traits: ProductTraits<Doc>;
|
|
1715
2093
|
currency: string;
|
|
@@ -1769,6 +2147,16 @@ declare function Catalogue<Doc>({ products, traits, currency, onSelect, statusTe
|
|
|
1769
2147
|
filters?: ProductFilters;
|
|
1770
2148
|
/** The cashier's next filters (requested filters when controlled). */
|
|
1771
2149
|
onFiltersChange?: (filters: ProductFilters) => void;
|
|
2150
|
+
/** v2's Product settings › Variations. 'list' (default) opens the variant list chooser; 'popover' opens a grid tile's
|
|
2151
|
+
* VariationPicker in a popover for a product with option groups. The table view keeps the list chooser. */
|
|
2152
|
+
variationsStyle?: 'list' | 'popover';
|
|
2153
|
+
/** Show v2's camera scan button beside the search box; it opens an inline CameraScannerPanel. Default false.
|
|
2154
|
+
* The button shows only when cameraScanner is passed too. */
|
|
2155
|
+
cameraScan?: boolean;
|
|
2156
|
+
/** Passed to the CameraScannerPanel. The app owns useCameraScan (inside its ScanHubProvider) and passes its wiring
|
|
2157
|
+
* here, { onDetected: camera.offer, onOpen: camera.reset, scanCount: camera.scanCount }, plus height, permission,
|
|
2158
|
+
* viewfinder, decoder and readiness; its useBarcodeScanner then handles camera scans like device scans. */
|
|
2159
|
+
cameraScanner?: Omit<CameraScannerPanelProps, 'onClose'>;
|
|
1772
2160
|
}): react_jsx_runtime.JSX.Element;
|
|
1773
2161
|
|
|
1774
2162
|
type ReceiptProps = {
|
|
@@ -1894,6 +2282,26 @@ declare function CustomerDisplayScreen({ state }: {
|
|
|
1894
2282
|
state: DisplayState;
|
|
1895
2283
|
}): react_jsx_runtime.JSX.Element;
|
|
1896
2284
|
|
|
2285
|
+
/**
|
|
2286
|
+
* The display device's screen (ADR-085 U5, d4, d8, #705): enter the till's code and a name, show the check code while
|
|
2287
|
+
* the cashier confirms, then the sale through `CustomerDisplayScreen`. Props only; the app passes
|
|
2288
|
+
* `useDisplayClient(client)` and wires `onClaim` and `onCancel` to the same `DisplayClient`.
|
|
2289
|
+
*/
|
|
2290
|
+
|
|
2291
|
+
interface CustomerDisplayPairingProps {
|
|
2292
|
+
/** `useDisplayClient(client)`. */
|
|
2293
|
+
client: {
|
|
2294
|
+
phase: DisplayClientPhase;
|
|
2295
|
+
state: DisplayState;
|
|
2296
|
+
};
|
|
2297
|
+
onClaim: (code: string, displayName: string) => void;
|
|
2298
|
+
onCancel: () => void;
|
|
2299
|
+
/** The name field's starting value, e.g. the last name used; default "Customer display". */
|
|
2300
|
+
defaultName?: string;
|
|
2301
|
+
className?: string;
|
|
2302
|
+
}
|
|
2303
|
+
declare function CustomerDisplayPairing({ client, onClaim, onCancel, defaultName, className, }: CustomerDisplayPairingProps): JSX.Element;
|
|
2304
|
+
|
|
1897
2305
|
interface POSLayoutProps extends Omit<ViewProps, 'children'> {
|
|
1898
2306
|
browseSlot: ReactNode;
|
|
1899
2307
|
cartSlot: ReactNode;
|
|
@@ -2043,6 +2451,32 @@ interface SalesCardsProps {
|
|
|
2043
2451
|
}
|
|
2044
2452
|
declare function SalesCards({ figures, currency, onOpenCard }: SalesCardsProps): JSX.Element;
|
|
2045
2453
|
|
|
2454
|
+
/**
|
|
2455
|
+
* The Reports period menu: the date presets beside a range calendar, for a custom range. Port of
|
|
2456
|
+
* WCPOS v2 `screens/main/reports/date-button.tsx` without its Pro licence locks; copy is v2's
|
|
2457
|
+
* English (`core.json`). Presets are worked out in store time by pos `presetRange`.
|
|
2458
|
+
*/
|
|
2459
|
+
|
|
2460
|
+
interface DateRangeMenuProps {
|
|
2461
|
+
value: {
|
|
2462
|
+
preset: DatePreset | 'custom';
|
|
2463
|
+
range: DayRange;
|
|
2464
|
+
};
|
|
2465
|
+
/** Called on a preset row (immediately) and on Done (the custom range). */
|
|
2466
|
+
onChange: (next: {
|
|
2467
|
+
preset: DatePreset | 'custom';
|
|
2468
|
+
range: DayRange;
|
|
2469
|
+
}) => void;
|
|
2470
|
+
/** IANA zone of the store, or 'device'. */
|
|
2471
|
+
timezone: string;
|
|
2472
|
+
/** The clock presets and today are worked out from; defaults to the time of the press. */
|
|
2473
|
+
now?: () => Date;
|
|
2474
|
+
/** The earliest store day the data covers; the calendar's min. Omitted: no min. */
|
|
2475
|
+
earliestDay?: StoreDay;
|
|
2476
|
+
testID?: string;
|
|
2477
|
+
}
|
|
2478
|
+
declare function DateRangeMenu({ value, onChange, timezone, now, earliestDay, testID, }: DateRangeMenuProps): JSX.Element;
|
|
2479
|
+
|
|
2046
2480
|
/**
|
|
2047
2481
|
* The Sales room's filters: the period presets (worked out in store time by pos `presetRange`),
|
|
2048
2482
|
* status, cashier and register. Port of WCPOS v2 `screens/main/reports/date-button.tsx` and the
|
|
@@ -2054,7 +2488,7 @@ interface SalesOption {
|
|
|
2054
2488
|
label: string;
|
|
2055
2489
|
}
|
|
2056
2490
|
interface SalesFilters {
|
|
2057
|
-
preset: DatePreset;
|
|
2491
|
+
preset: DatePreset | 'custom';
|
|
2058
2492
|
range: DayRange;
|
|
2059
2493
|
/** A single day's comparison: the day before or the same weekday last week. */
|
|
2060
2494
|
compare: 'previous' | 'week';
|
|
@@ -2069,11 +2503,13 @@ interface SalesFiltersBarProps {
|
|
|
2069
2503
|
timezone: string;
|
|
2070
2504
|
/** The clock presets are worked out from; defaults to the time of the press. */
|
|
2071
2505
|
now?: () => Date;
|
|
2506
|
+
/** The earliest store day the data covers; the calendar's min. */
|
|
2507
|
+
earliestDay?: StoreDay;
|
|
2072
2508
|
statusOptions: SalesOption[];
|
|
2073
2509
|
cashierOptions: SalesOption[];
|
|
2074
2510
|
registerOptions: SalesOption[];
|
|
2075
2511
|
}
|
|
2076
|
-
declare function SalesFiltersBar({ filters, onFiltersChange, timezone, now, statusOptions, cashierOptions, registerOptions, }: SalesFiltersBarProps): JSX.Element;
|
|
2512
|
+
declare function SalesFiltersBar({ filters, onFiltersChange, timezone, now, earliestDay, statusOptions, cashierOptions, registerOptions, }: SalesFiltersBarProps): JSX.Element;
|
|
2077
2513
|
|
|
2078
2514
|
/**
|
|
2079
2515
|
* The Reports screen's Sales room: filters, hero and cards over one `SalesFigures` result.
|
|
@@ -2145,4 +2581,4 @@ declare function I18nProvider({ locale, resources, children }: I18nProviderProps
|
|
|
2145
2581
|
/** The components' `t`, read from the nearest `I18nProvider`, else English. Interpolation is `{name}`. */
|
|
2146
2582
|
declare function useT(): TFunction;
|
|
2147
2583
|
|
|
2148
|
-
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, CartFoot, type CartFootAction, type CartFootProps, CartLine, CartLineActions, type CartLineActionsProps, type CartLineProps, CartNoteInput, type CartNoteInputProps, CartPanel, type CartPanelProps, CartTotal, type CartTotalProps, CashCountInput, type CashCountInputProps, CashTendered, type CashTenderedProps, Catalogue, type Catalogues, 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, DIGIT_ROWS, 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, I18nProvider, type I18nProviderProps, Icon, IconButton, type IconButtonProps, type IconProps, InCartBadge, type InCartBadgeProps, Input, InputField, InputRoot, type InputRootProps, InputSlot, Keypad, type KeypadKey, type KeypadProps, Label, type LabelProps, LinePopover, type LinePopoverProps, 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, useT, vstackVariants };
|
|
2584
|
+
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, Calendar, type CalendarProps, CameraScanButton, type CameraScanButtonProps, CameraScannerPanel, type CameraScannerPanelProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cart, type CartAction, CartBar, CartColumnHeads, type CartColumnHeadsProps, type CartColumnSettings, CartFoot, type CartFootAction, type CartFootProps, CartLine, CartLineActions, type CartLineActionsProps, type CartLineProps, CartNoteInput, type CartNoteInputProps, CartPanel, type CartPanelProps, CartTotal, type CartTotalProps, CashCountInput, type CashCountInputProps, CashTendered, type CashTenderedProps, Catalogue, type Catalogues, type CategoryItem, CategoryNav, type CategoryNavProps, CategoryTile, type CategoryTileProps, ChangeDisplay, type ChangeDisplayProps, ChargeForm, type ChargeFormProps, Checkbox, CheckoutLayout, type CheckoutLayoutProps, ChevronDownIcon, 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, CustomerDisplayPairing, type CustomerDisplayPairingProps, CustomerDisplayScreen, CustomerDisplaySettings, type CustomerDisplaySettingsProps, CustomerForm, type CustomerFormProps, type CustomerFormValues, CustomerOrderHistory, type CustomerOrderHistoryProps, CustomerPicker, type CustomerPickerProps, CustomerSelect, type CustomerSelectProps, DEFAULT_PRODUCT_FILTERS, DIGIT_ROWS, DateRangeMenu, type DateRangeMenuProps, 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, FLASH_DURATION_MS, FilterChip, FilterChipGroup, type FilterChipGroupProps, type FilterChipProps, FontProvider, type FontProviderProps, type FontState, type FontStatus, type GridDay, GripIcon, HStack, type HStackProps, HandoverSlip, type HandoverSlipProps, HoverCard, HoverCardContent, HoverCardTrigger, I18nProvider, type I18nProviderProps, Icon, IconButton, type IconButtonProps, type IconProps, InCartBadge, type InCartBadgeProps, Input, InputField, InputRoot, type InputRootProps, InputSlot, Keypad, type KeypadKey, type KeypadProps, Label, type LabelProps, LinePopover, type LinePopoverProps, LiveTabScreen, type LiveTabScreenProps, type LiveTabScreenState, Loader, type LoaderProps, type Month, MovementSheet, type MovementSheetProps, NavDrawer, type NavDrawerProps, NavRail, type NavRailProps, OpenRegisterCard, type OpenRegisterCardProps, OpenSaleTabs, type OpenSaleTabsProps, OrderCard, type OrderCardProps, OrderDetail, type OrderDetailLineItem, type OrderDetailProps, OrderFilterBar, type OrderFilterBarProps, type OrderFilterOption, 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, type PaymentMethodKind, 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, SCANNER_DEFAULT_HEIGHT, SCANNER_MAX_HEIGHT, SCANNER_MIN_HEIGHT, 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, ScanIcon, ScannerViewfinder, 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, ShoppingCartIcon, 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, TaxBasedOn, type TaxBasedOnProps, TaxCalculationSettings, type TaxCalculationSettingsProps, 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, 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, pressRangeDay, textVariants, toastVariants, toggleTextVariants, toggleVariants, useDefaultProductColumns, useFontType, useInputContext, usePointer, useScale, useT, vstackVariants };
|