@tallyui/components 3.17.0 → 3.19.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 +460 -34
- package/dist/index.js +3632 -1898
- package/package.json +9 -9
- package/src/cart/cart-columns.tsx +42 -4
- package/src/cart/cart-line.tsx +42 -18
- package/src/cart/cart-note-input.tsx +10 -2
- package/src/cart/index.ts +1 -1
- package/src/customer/customer-select.tsx +21 -3
- package/src/index.ts +27 -0
- 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/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 +44 -8
- 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/tax/index.ts +1 -0
- package/src/tax/tax-based-on.tsx +196 -0
- 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 +20 -8
- 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/switch/index.tsx +18 -7
- 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>>;
|
|
@@ -631,6 +741,24 @@ interface InCartBadgeProps {
|
|
|
631
741
|
*/
|
|
632
742
|
declare function InCartBadge({ count, className, testID }: InCartBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
633
743
|
|
|
744
|
+
interface VariationPickerProps {
|
|
745
|
+
/** The product name. */
|
|
746
|
+
title: string;
|
|
747
|
+
groups: VariantOptionGroup[];
|
|
748
|
+
variants: VariantSummary[];
|
|
749
|
+
currency: string;
|
|
750
|
+
/** Called with the matched variant and the picks for the variant's "Any" groups (empty when it has none). */
|
|
751
|
+
onAdd: (variant: VariantSummary, anyPicks: Record<string, string>) => void | Promise<void>;
|
|
752
|
+
/** Stock refuses Add when the variant is out of stock and this is true (v2 preventOverselling). Default false. */
|
|
753
|
+
preventOverselling?: boolean;
|
|
754
|
+
testID?: string;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* v2's variations popover body: the cashier picks one value per option group (values no variant allows are
|
|
758
|
+
* dimmed), sees the matched variant's stock, and presses Add; a full match never adds on its own.
|
|
759
|
+
*/
|
|
760
|
+
declare function VariationPicker({ title, groups, variants, currency, onAdd, preventOverselling, testID }: VariationPickerProps): react_jsx_runtime.JSX.Element;
|
|
761
|
+
|
|
634
762
|
interface CategoryTileProps {
|
|
635
763
|
name: string;
|
|
636
764
|
/** The category's photo; without one the tile shows the name's initial on a tint. */
|
|
@@ -651,6 +779,108 @@ interface CategoryTileProps {
|
|
|
651
779
|
*/
|
|
652
780
|
declare function CategoryTile({ name, imageUrl, count, onPress, testID, className }: CategoryTileProps): react_jsx_runtime.JSX.Element;
|
|
653
781
|
|
|
782
|
+
interface CameraScanButtonProps {
|
|
783
|
+
/** The camera scanner is showing: the button then closes it. */
|
|
784
|
+
open: boolean;
|
|
785
|
+
onPress: () => void;
|
|
786
|
+
testID?: string;
|
|
787
|
+
}
|
|
788
|
+
/** Opens and closes the camera scanner panel (v2 pos/products/camera-scan-button.tsx). */
|
|
789
|
+
declare function CameraScanButton({ open, onPress, testID }: CameraScanButtonProps): react_jsx_runtime.JSX.Element;
|
|
790
|
+
|
|
791
|
+
interface ViewfinderProps {
|
|
792
|
+
onDetected: (code: string, symbology?: string) => void;
|
|
793
|
+
onStatus: (status: ViewfinderStatus) => void;
|
|
794
|
+
/** Defaults to the BarcodeDetector global where it exists; an app may pass a ponyfill with the same detect. */
|
|
795
|
+
decoder?: CameraDecoder;
|
|
796
|
+
}
|
|
797
|
+
/** The web camera view: getUserMedia into a <video>, decoded by startDecodeLoop (v2 scanner-viewfinder.web.tsx).
|
|
798
|
+
* Elsewhere it reports 'camera-unavailable' and renders an empty view; a native app passes its own viewfinder
|
|
799
|
+
* (for example one built on expo-camera) to CameraScannerPanel. */
|
|
800
|
+
declare function ScannerViewfinder(props: ViewfinderProps): react_jsx_runtime.JSX.Element;
|
|
801
|
+
|
|
802
|
+
declare const FLASH_DURATION_MS = 350;
|
|
803
|
+
declare const SCANNER_MIN_HEIGHT = 96;
|
|
804
|
+
declare const SCANNER_MAX_HEIGHT = 480;
|
|
805
|
+
declare const SCANNER_DEFAULT_HEIGHT = 176;
|
|
806
|
+
interface CameraScannerPanelProps {
|
|
807
|
+
onClose: () => void;
|
|
808
|
+
/** Panel height; clamped to [96, 480]. Default 176. The app persists it from onHeightChange. */
|
|
809
|
+
height?: number;
|
|
810
|
+
onHeightChange?: (height: number) => void;
|
|
811
|
+
/** Native permission flow; omit on web, where the browser asks on getUserMedia. */
|
|
812
|
+
permission?: {
|
|
813
|
+
granted: boolean;
|
|
814
|
+
request: () => void;
|
|
815
|
+
};
|
|
816
|
+
/** Default ScannerViewfinder; a native app passes its own (for example one built on expo-camera). */
|
|
817
|
+
viewfinder?: ComponentType<ViewfinderProps>;
|
|
818
|
+
decoder?: CameraDecoder;
|
|
819
|
+
/** v2's readiness note (storage, offline, sync starting): the app picks the copy; shown under the status. */
|
|
820
|
+
readiness?: string;
|
|
821
|
+
/** Each decode, passed straight to the viewfinder: the app passes its useCameraScan offer. */
|
|
822
|
+
onDetected: (code: string, symbology?: string) => void;
|
|
823
|
+
/** Called once on mount (the scanner opened): the app passes its useCameraScan reset. */
|
|
824
|
+
onOpen?: () => void;
|
|
825
|
+
/** The app's useCameraScan scanCount: each change after mount flashes the panel. */
|
|
826
|
+
scanCount?: number;
|
|
827
|
+
}
|
|
828
|
+
/** The inline camera scanner (v2 camera-scanner-panel.tsx). It calls no pos hook: the app owns useCameraScan (and
|
|
829
|
+
* its ScanHubProvider) and passes { onDetected: camera.offer, onOpen: camera.reset, scanCount: camera.scanCount },
|
|
830
|
+
* so accepted decodes reach the app's useBarcodeScanner like any device scan. */
|
|
831
|
+
declare function CameraScannerPanel({ onClose, height: heightProp, onHeightChange, permission, viewfinder: Viewfinder, decoder, readiness, onDetected, onOpen, scanCount }: CameraScannerPanelProps): react_jsx_runtime.JSX.Element;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* v2's Cart Settings › Columns: each column's `show` switch and display options. Every field is optional; the
|
|
835
|
+
* defaults are today's look and v2's: Qty, Item, Price and Total show; Image, SKU, `quantity.split` and `name.sku` are off.
|
|
836
|
+
*/
|
|
837
|
+
interface CartColumnSettings {
|
|
838
|
+
/** `split`: a Split link under a quantity above 1. */
|
|
839
|
+
quantity?: {
|
|
840
|
+
show?: boolean;
|
|
841
|
+
split?: boolean;
|
|
842
|
+
};
|
|
843
|
+
/** The line's image, in its own column with no head label. */
|
|
844
|
+
image?: {
|
|
845
|
+
show?: boolean;
|
|
846
|
+
};
|
|
847
|
+
/** `sku`: the SKU on a line under the name. */
|
|
848
|
+
name?: {
|
|
849
|
+
show?: boolean;
|
|
850
|
+
sku?: boolean;
|
|
851
|
+
};
|
|
852
|
+
sku?: {
|
|
853
|
+
show?: boolean;
|
|
854
|
+
};
|
|
855
|
+
/** Still folds on a narrow cart or a phone (`showPrice`). */
|
|
856
|
+
price?: {
|
|
857
|
+
show?: boolean;
|
|
858
|
+
};
|
|
859
|
+
total?: {
|
|
860
|
+
show?: boolean;
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
type CartColumnId = 'quantity' | 'image' | 'name' | 'sku' | 'price' | 'total';
|
|
864
|
+
/** The visible columns, in their fixed order; the heads and every line use it, so they cannot disagree. */
|
|
865
|
+
declare function cartColumnIds(columns?: CartColumnSettings, { showPrice }?: {
|
|
866
|
+
showPrice?: boolean;
|
|
867
|
+
}): CartColumnId[];
|
|
868
|
+
interface CartColumnHeadsProps extends Omit<ViewProps, 'children'> {
|
|
869
|
+
/** Show the Price head (default true); pass the same value as each CartLine's `showPrice`. */
|
|
870
|
+
showPrice?: boolean;
|
|
871
|
+
/** Which columns show (v2's Cart Settings › Columns); pass the same value as each CartLine's `columns`. */
|
|
872
|
+
columns?: CartColumnSettings;
|
|
873
|
+
className?: string;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* The cart's header row, Qty, Item, Price and Total, over lines laid out by CartLine in the same columns.
|
|
877
|
+
*
|
|
878
|
+
* ```tsx
|
|
879
|
+
* <CartColumnHeads showPrice={showPrice} />
|
|
880
|
+
* ```
|
|
881
|
+
*/
|
|
882
|
+
declare function CartColumnHeads({ showPrice, columns, className, ...props }: CartColumnHeadsProps): JSX.Element;
|
|
883
|
+
|
|
654
884
|
interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
655
885
|
name: string;
|
|
656
886
|
/** The variant's chosen options, shown as one "Name: Value · Name: Value" line under the name. */
|
|
@@ -666,6 +896,14 @@ interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
|
666
896
|
quantitySlot?: ReactNode;
|
|
667
897
|
/** Replaces the unit price's text (the struck regular price stays above it). */
|
|
668
898
|
priceSlot?: ReactNode;
|
|
899
|
+
/** Which columns show, as CartColumnHeads' `columns` (v2's Cart Settings › Columns); the default is the look above. */
|
|
900
|
+
columns?: CartColumnSettings;
|
|
901
|
+
/** The SKU, in the SKU column and, with `columns.name.sku`, under the name. */
|
|
902
|
+
sku?: string;
|
|
903
|
+
/** The image in the Image column; without it the cell stays empty at its width. */
|
|
904
|
+
imageUrl?: string;
|
|
905
|
+
/** With `columns.quantity.split` and a quantity above 1, a Split link under the quantity calls this. */
|
|
906
|
+
onSplit?: () => void;
|
|
669
907
|
locale?: string;
|
|
670
908
|
className?: string;
|
|
671
909
|
}
|
|
@@ -677,21 +915,7 @@ interface CartLineProps extends Omit<HStackProps, 'children'> {
|
|
|
677
915
|
* <CartLine name="Coffee" quantity={2} unitPrice={unitPrice} lineTotal={lineTotal} />
|
|
678
916
|
* ```
|
|
679
917
|
*/
|
|
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;
|
|
918
|
+
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
919
|
|
|
696
920
|
interface CartTotalProps extends Omit<VStackProps, 'children'> {
|
|
697
921
|
subtotal: Money;
|
|
@@ -745,10 +969,16 @@ declare function DiscountBadge({ label, className, ...viewProps }: DiscountBadge
|
|
|
745
969
|
interface CartNoteInputProps extends Omit<ViewProps, 'children'> {
|
|
746
970
|
value: string;
|
|
747
971
|
onChangeText: (text: string) => void;
|
|
972
|
+
/**
|
|
973
|
+
* The note's name, shown by the collapsed link, the input's placeholder and
|
|
974
|
+
* its accessibility label. WooCommerce sends the note as `customer_note`, so
|
|
975
|
+
* the customer sees it.
|
|
976
|
+
*/
|
|
977
|
+
label?: string;
|
|
748
978
|
placeholder?: string;
|
|
749
979
|
className?: string;
|
|
750
980
|
}
|
|
751
|
-
declare function CartNoteInput({ value, onChangeText, placeholder, className, ...viewProps }: CartNoteInputProps): react_jsx_runtime.JSX.Element;
|
|
981
|
+
declare function CartNoteInput({ value, onChangeText, label, placeholder, className, ...viewProps }: CartNoteInputProps): react_jsx_runtime.JSX.Element;
|
|
752
982
|
|
|
753
983
|
interface CartAction {
|
|
754
984
|
id: string;
|
|
@@ -878,6 +1108,10 @@ interface CustomerSelectProps<Doc = any> extends Omit<VStackProps, 'children'> {
|
|
|
878
1108
|
placeholder?: string;
|
|
879
1109
|
/** Renders the search input; pass false when the parent renders its own (as CustomerPicker does) */
|
|
880
1110
|
showSearch?: boolean;
|
|
1111
|
+
/** Draws an initials avatar before each row and the selected summary, the way v2's cart dropdown does */
|
|
1112
|
+
showAvatar?: boolean;
|
|
1113
|
+
/** The avatar's tone; defaults to `'primary'`, v2's look (light initials on a solid primary circle) */
|
|
1114
|
+
avatarTone?: 'muted' | 'primary';
|
|
881
1115
|
className?: string;
|
|
882
1116
|
}
|
|
883
1117
|
/**
|
|
@@ -1160,6 +1394,47 @@ interface RefundModalProps extends Omit<RefundFormProps, 'onCancel'> {
|
|
|
1160
1394
|
/** Ports WCPOS v2 modal.tsx: a bounded panel around the refund form. */
|
|
1161
1395
|
declare function RefundModal({ open, onOpenChange, ...formProps }: RefundModalProps): JSX.Element;
|
|
1162
1396
|
|
|
1397
|
+
/**
|
|
1398
|
+
* The Orders screen's filter pills, in WCPOS v2's order: Status, Payment Method, Customer, Cashier, Store / Created
|
|
1399
|
+
* via, Register and Date range, with Clear all. Port of v2 `screens/main/orders/filter-bar.tsx` and its
|
|
1400
|
+
* `filter-bar/*-pill.tsx` (MIT, WCPOS); copy is v2's English (`core.json`). Presentational: the app passes the value,
|
|
1401
|
+
* the connector's `orderFilters` and every option list, so no platform's words live here.
|
|
1402
|
+
*/
|
|
1403
|
+
|
|
1404
|
+
interface OrderFilterOption {
|
|
1405
|
+
value: string;
|
|
1406
|
+
label: string;
|
|
1407
|
+
}
|
|
1408
|
+
type PaymentMethodKind = 'cash' | 'card' | 'stored_value' | 'bank_transfer' | 'other';
|
|
1409
|
+
interface OrderFilterBarProps {
|
|
1410
|
+
value: OrderFilterValue;
|
|
1411
|
+
onChange(next: OrderFilterValue): void;
|
|
1412
|
+
/** The connector's orderFilters. A pill shows only when its field is here (store pill: storeId or createdVia). */
|
|
1413
|
+
fields: readonly OrderFilterField[];
|
|
1414
|
+
/** What Clear all resets to and counts against (v2: cashier + store). Default {}. */
|
|
1415
|
+
initial?: OrderFilterValue;
|
|
1416
|
+
options?: {
|
|
1417
|
+
status?: OrderFilterOption[];
|
|
1418
|
+
/** Grouped by kind in this order, with a separator between groups: cash, card, stored_value, bank_transfer, other. */
|
|
1419
|
+
paymentMethod?: (OrderFilterOption & {
|
|
1420
|
+
kind?: PaymentMethodKind;
|
|
1421
|
+
})[];
|
|
1422
|
+
customer?: OrderFilterOption[];
|
|
1423
|
+
cashier?: OrderFilterOption[];
|
|
1424
|
+
register?: OrderFilterOption[];
|
|
1425
|
+
store?: OrderFilterOption[];
|
|
1426
|
+
createdVia?: OrderFilterOption[];
|
|
1427
|
+
};
|
|
1428
|
+
/** The customer and cashier pills search through these when given; otherwise they filter their options locally. */
|
|
1429
|
+
onCustomerSearch?(text: string): void;
|
|
1430
|
+
onCashierSearch?(text: string): void;
|
|
1431
|
+
/** IANA zone of the store, or 'device'. */
|
|
1432
|
+
timezone: string;
|
|
1433
|
+
now?: () => Date;
|
|
1434
|
+
testID?: string;
|
|
1435
|
+
}
|
|
1436
|
+
declare function OrderFilterBar({ value, onChange, fields, initial, options, onCustomerSearch, onCashierSearch, timezone, now, testID, }: OrderFilterBarProps): JSX.Element;
|
|
1437
|
+
|
|
1163
1438
|
interface Denomination {
|
|
1164
1439
|
label: string;
|
|
1165
1440
|
value: number;
|
|
@@ -1352,17 +1627,29 @@ interface RegisterPanelProps {
|
|
|
1352
1627
|
approval: string;
|
|
1353
1628
|
} | null>;
|
|
1354
1629
|
className?: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* `'dialog'` (the default) is the centred panel; `'side'` is WCPOS v2's right-hand sheet (Paul,
|
|
1632
|
+
* 2026-10-30: "Cashier and Register modal come from the right"): the cash expected, session
|
|
1633
|
+
* sales, the drawer ledger, Other tenders, and a Print X-report / Close register footer.
|
|
1634
|
+
*/
|
|
1635
|
+
presentation?: 'dialog' | 'side';
|
|
1636
|
+
/** `'side'`: the store's name, first in the header line. */
|
|
1637
|
+
storeName?: string;
|
|
1638
|
+
/** `'side'`: builds and prints the X-report (`buildXReportDocument`); a rejection shows "Printing failed. Try again.". Without it, there is no button. */
|
|
1639
|
+
onPrintXReport?: () => void | Promise<void>;
|
|
1640
|
+
/** `'side'`: the clock for the session's age; defaults to `new Date()`. */
|
|
1641
|
+
now?: () => Date;
|
|
1355
1642
|
}
|
|
1356
1643
|
/**
|
|
1357
1644
|
* The register's drawer panel: expected figures, cash movements with Undo, and Close register.
|
|
1358
1645
|
* Port provenance (ADR-032 amendment 1): WCPOS `next` `3b5331b5c` `register-panel.tsx` (LEDGER
|
|
1359
|
-
* 54, 56, 58).
|
|
1646
|
+
* 54, 56, 58); `presentation="side"` follows WCPOS v2's side sheet (TallyUI#716).
|
|
1360
1647
|
*
|
|
1361
1648
|
* Leaves out (registers job c2 or a later job, per `useRegisterSession`'s own "Not ported"
|
|
1362
1649
|
* note): refused-movement Retry and "Unsynced" (no outbox here to refuse a movement), the
|
|
1363
|
-
*
|
|
1650
|
+
* Z, reprint and the print sheet, the last-closure badge, and the Reports deep link.
|
|
1364
1651
|
*/
|
|
1365
|
-
declare function RegisterPanel({ register, currency, registerName, open, onOpenChange, reapprove, className }: RegisterPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1652
|
+
declare function RegisterPanel({ register, currency, registerName, open, onOpenChange, reapprove, className, presentation, storeName, onPrintXReport, now, }: RegisterPanelProps): react_jsx_runtime.JSX.Element | null;
|
|
1366
1653
|
|
|
1367
1654
|
interface RegisterColumnProps {
|
|
1368
1655
|
/** `useRegisterSession`'s return value: decides the picker/open/counting/selling swap. */
|
|
@@ -1527,8 +1814,66 @@ interface DisplaySettingsProps {
|
|
|
1527
1814
|
}
|
|
1528
1815
|
declare function DisplaySettings({ settings, setSetting, className }: DisplaySettingsProps): JSX.Element;
|
|
1529
1816
|
|
|
1817
|
+
type TaxBasedOn$1 = woocommerceTax.TaxBasedOn;
|
|
1818
|
+
interface TaxCalculationSettingsProps {
|
|
1819
|
+
taxBasedOn: TaxBasedOn$1;
|
|
1820
|
+
onTaxBasedOnChange?: (value: TaxBasedOn$1) => void;
|
|
1821
|
+
pricesIncludeTax?: boolean;
|
|
1822
|
+
shippingTaxClass?: string;
|
|
1823
|
+
taxRoundAtSubtotal?: boolean;
|
|
1824
|
+
/** "Set in WooCommerce": a link when given, plain text otherwise. */
|
|
1825
|
+
onOpenStoreTaxSettings?: () => void;
|
|
1826
|
+
className?: string;
|
|
1827
|
+
}
|
|
1828
|
+
declare function TaxCalculationSettings({ taxBasedOn, onTaxBasedOnChange, pricesIncludeTax, shippingTaxClass, taxRoundAtSubtotal, onOpenStoreTaxSettings, className }: TaxCalculationSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* Settings › Customer display (ADR-085 U5, d4, d5, d11, d13): the till's paired displays, pairing one with a code and
|
|
1832
|
+
* its "wants to pair" check (#705), and forgetting one. Props only; the app passes `useTillPairing(pairing)` and
|
|
1833
|
+
* `useTillDisplays(service)` and wires the callbacks to the same `TillPairing`.
|
|
1834
|
+
*/
|
|
1835
|
+
|
|
1836
|
+
interface CustomerDisplaySettingsProps {
|
|
1837
|
+
/** `useTillPairing(pairing)`. */
|
|
1838
|
+
pairing: {
|
|
1839
|
+
phase: PairingPhase;
|
|
1840
|
+
forgetError: PairingError | null;
|
|
1841
|
+
};
|
|
1842
|
+
/** `useTillDisplays(service)`. */
|
|
1843
|
+
displays: {
|
|
1844
|
+
status: TillDisplayStatus;
|
|
1845
|
+
displays: readonly TillDisplayEntry[];
|
|
1846
|
+
};
|
|
1847
|
+
onStartPairing: () => void;
|
|
1848
|
+
onConfirm: (claimId: string) => void;
|
|
1849
|
+
onDecline: (claimId: string) => void;
|
|
1850
|
+
onCancelPairing: () => void;
|
|
1851
|
+
onForget: (displayId: string) => void;
|
|
1852
|
+
/** Formats the code's expiry; default: the device's locale, hours and minutes. */
|
|
1853
|
+
formatTime?: (iso: string) => string;
|
|
1854
|
+
className?: string;
|
|
1855
|
+
}
|
|
1856
|
+
declare function CustomerDisplaySettings({ pairing, displays, onStartPairing, onConfirm, onDecline, onCancelPairing, onForget, formatTime, className, }: CustomerDisplaySettingsProps): JSX.Element;
|
|
1857
|
+
|
|
1858
|
+
interface TaxBasedOnProps {
|
|
1859
|
+
derivation: TaxDerivation;
|
|
1860
|
+
/** "Change in Settings › Tax"; the link shows only when given. */
|
|
1861
|
+
onChangeSetting?: () => void;
|
|
1862
|
+
/** "View all tax rates"; the footer shows only when given. */
|
|
1863
|
+
onViewAllRates?: () => void;
|
|
1864
|
+
/** Country code to display name; defaults to Intl.DisplayNames('en', region) as "{Name} ({CODE})", the code alone if Intl lacks it. */
|
|
1865
|
+
countryName?: (code: string) => string;
|
|
1866
|
+
className?: string;
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* v2's "Tax based on" trigger under the product table, and its popover: how the cart's tax rates were derived, from the
|
|
1870
|
+
* setting, through the address used, to the rates that match it. A popover, not a hover card: a touch screen has no hover.
|
|
1871
|
+
* Rate names show as the store gives them (this package has no HTML-entity decoder yet).
|
|
1872
|
+
*/
|
|
1873
|
+
declare function TaxBasedOn({ derivation, onChangeSetting, onViewAllRates, countryName, className }: TaxBasedOnProps): react_jsx_runtime.JSX.Element;
|
|
1874
|
+
|
|
1530
1875
|
/** `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 }: {
|
|
1876
|
+
declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscounts, taxClasses, afterSubtotal, couponDiscountMinor, orderActions, checkout, lineEditor, columns, emptyIcon, emptyText }: {
|
|
1532
1877
|
sale: ReturnType<typeof useSale>;
|
|
1533
1878
|
taxLabel?: (ratePpm: number) => string;
|
|
1534
1879
|
taxClasses?: ReadonlyArray<{
|
|
@@ -1562,8 +1907,18 @@ declare function Cart({ sale, taxLabel, canEditPrice, onPriceChange, quickDiscou
|
|
|
1562
1907
|
actions?: readonly CartFootAction[];
|
|
1563
1908
|
};
|
|
1564
1909
|
/** `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
|
|
1910
|
+
* cells/price.tsx), the price one with the quick-discount keys and the struck regular price. Popover mode draws no
|
|
1911
|
+
* button row under the line: Discount, Price (narrow cart) and Remove are in the quantity popover, Discount in the
|
|
1912
|
+
* price popover. Default `inline`: the − / + buttons and Price form. */
|
|
1566
1913
|
lineEditor?: 'inline' | 'popover';
|
|
1914
|
+
/** v2's Cart Settings › Columns: which columns show, a Split link under a quantity above 1 (`quantity.split`) and the
|
|
1915
|
+
* SKU under the name (`name.sku`). The defaults are today's cart: Qty, Item, Price (folding as before) and Total. */
|
|
1916
|
+
columns?: CartColumnSettings;
|
|
1917
|
+
/** The empty cart's icon, centred above `emptyText` and hidden from screen readers. Default: v2's cart icon in the
|
|
1918
|
+
* muted colour. Pass `null` for no icon. */
|
|
1919
|
+
emptyIcon?: ReactNode;
|
|
1920
|
+
/** The empty cart's line. Default: v2's "Tap a product to start a sale". */
|
|
1921
|
+
emptyText?: string;
|
|
1567
1922
|
}): react_jsx_runtime.JSX.Element;
|
|
1568
1923
|
|
|
1569
1924
|
/** 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 +2007,22 @@ interface LinePopoverProps {
|
|
|
1652
2007
|
quickDiscounts?: readonly number[];
|
|
1653
2008
|
/** The trigger's text classes (the cell's alignment and tone). */
|
|
1654
2009
|
textClassName?: string;
|
|
2010
|
+
/** Price only: the regular unit price in minor units; shown struck through above the value when it is above `value`. */
|
|
2011
|
+
regularValue?: number;
|
|
2012
|
+
/** Buttons drawn in the open panel above Apply / Cancel, e.g. the cart line's Discount and Remove. Pressing one closes
|
|
2013
|
+
* the popover, then calls its `onPress`. `destructive` draws it in the destructive colour. */
|
|
2014
|
+
actions?: ReadonlyArray<{
|
|
2015
|
+
id: string;
|
|
2016
|
+
label: string;
|
|
2017
|
+
onPress: () => void;
|
|
2018
|
+
destructive?: boolean;
|
|
2019
|
+
}>;
|
|
1655
2020
|
}
|
|
1656
2021
|
/**
|
|
1657
2022
|
* A cart line's quantity or price that opens v2's keypad: the cashier types (or picks a quick discount),
|
|
1658
2023
|
* Apply writes through `onApply`, and Cancel, Escape or a press outside close without writing.
|
|
1659
2024
|
*/
|
|
1660
|
-
declare function LinePopover({ kind, lineName, currency, value, onApply, quickDiscounts, textClassName }: LinePopoverProps): react_jsx_runtime.JSX.Element;
|
|
2025
|
+
declare function LinePopover({ kind, lineName, currency, value, onApply, quickDiscounts, textClassName, regularValue, actions }: LinePopoverProps): react_jsx_runtime.JSX.Element;
|
|
1661
2026
|
|
|
1662
2027
|
interface ChargeFormProps {
|
|
1663
2028
|
currency: string;
|
|
@@ -1670,6 +2035,9 @@ interface ChargeFormProps {
|
|
|
1670
2035
|
label: string;
|
|
1671
2036
|
}>;
|
|
1672
2037
|
shippingTaxFromStore?: boolean;
|
|
2038
|
+
/** Given, the form is that kind only and the kind row is not shown (v2's separate Add Fee / Add Shipping /
|
|
2039
|
+
* Add Miscellaneous Product entries); absent, the form opens on Fee with the row. */
|
|
2040
|
+
kind?: 'fee' | 'shipping' | 'custom';
|
|
1673
2041
|
onApply: (charge: {
|
|
1674
2042
|
kind: 'fee' | 'shipping' | 'custom';
|
|
1675
2043
|
name: string;
|
|
@@ -1680,7 +2048,7 @@ interface ChargeFormProps {
|
|
|
1680
2048
|
onClose: () => void;
|
|
1681
2049
|
}
|
|
1682
2050
|
/** `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;
|
|
2051
|
+
declare function ChargeForm({ currency, lineTax, taxClasses, shippingTaxFromStore, kind: fixedKind, onApply, onClose }: ChargeFormProps): react_jsx_runtime.JSX.Element;
|
|
1684
2052
|
|
|
1685
2053
|
type ProductFilterChip = 'inStock' | 'featured' | 'onSale' | 'category' | 'tag' | 'brand';
|
|
1686
2054
|
type TermChip = 'category' | 'tag' | 'brand';
|
|
@@ -1709,7 +2077,7 @@ interface ProductFilterBarProps {
|
|
|
1709
2077
|
declare function ProductFilterBar({ value, onChange, chips, onTermPress, className }: ProductFilterBarProps): react_jsx_runtime.JSX.Element;
|
|
1710
2078
|
|
|
1711
2079
|
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 }: {
|
|
2080
|
+
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
2081
|
products: Doc[];
|
|
1714
2082
|
traits: ProductTraits<Doc>;
|
|
1715
2083
|
currency: string;
|
|
@@ -1769,6 +2137,16 @@ declare function Catalogue<Doc>({ products, traits, currency, onSelect, statusTe
|
|
|
1769
2137
|
filters?: ProductFilters;
|
|
1770
2138
|
/** The cashier's next filters (requested filters when controlled). */
|
|
1771
2139
|
onFiltersChange?: (filters: ProductFilters) => void;
|
|
2140
|
+
/** v2's Product settings › Variations. 'list' (default) opens the variant list chooser; 'popover' opens a grid tile's
|
|
2141
|
+
* VariationPicker in a popover for a product with option groups. The table view keeps the list chooser. */
|
|
2142
|
+
variationsStyle?: 'list' | 'popover';
|
|
2143
|
+
/** Show v2's camera scan button beside the search box; it opens an inline CameraScannerPanel. Default false.
|
|
2144
|
+
* The button shows only when cameraScanner is passed too. */
|
|
2145
|
+
cameraScan?: boolean;
|
|
2146
|
+
/** Passed to the CameraScannerPanel. The app owns useCameraScan (inside its ScanHubProvider) and passes its wiring
|
|
2147
|
+
* here, { onDetected: camera.offer, onOpen: camera.reset, scanCount: camera.scanCount }, plus height, permission,
|
|
2148
|
+
* viewfinder, decoder and readiness; its useBarcodeScanner then handles camera scans like device scans. */
|
|
2149
|
+
cameraScanner?: Omit<CameraScannerPanelProps, 'onClose'>;
|
|
1772
2150
|
}): react_jsx_runtime.JSX.Element;
|
|
1773
2151
|
|
|
1774
2152
|
type ReceiptProps = {
|
|
@@ -1894,6 +2272,26 @@ declare function CustomerDisplayScreen({ state }: {
|
|
|
1894
2272
|
state: DisplayState;
|
|
1895
2273
|
}): react_jsx_runtime.JSX.Element;
|
|
1896
2274
|
|
|
2275
|
+
/**
|
|
2276
|
+
* The display device's screen (ADR-085 U5, d4, d8, #705): enter the till's code and a name, show the check code while
|
|
2277
|
+
* the cashier confirms, then the sale through `CustomerDisplayScreen`. Props only; the app passes
|
|
2278
|
+
* `useDisplayClient(client)` and wires `onClaim` and `onCancel` to the same `DisplayClient`.
|
|
2279
|
+
*/
|
|
2280
|
+
|
|
2281
|
+
interface CustomerDisplayPairingProps {
|
|
2282
|
+
/** `useDisplayClient(client)`. */
|
|
2283
|
+
client: {
|
|
2284
|
+
phase: DisplayClientPhase;
|
|
2285
|
+
state: DisplayState;
|
|
2286
|
+
};
|
|
2287
|
+
onClaim: (code: string, displayName: string) => void;
|
|
2288
|
+
onCancel: () => void;
|
|
2289
|
+
/** The name field's starting value, e.g. the last name used; default "Customer display". */
|
|
2290
|
+
defaultName?: string;
|
|
2291
|
+
className?: string;
|
|
2292
|
+
}
|
|
2293
|
+
declare function CustomerDisplayPairing({ client, onClaim, onCancel, defaultName, className, }: CustomerDisplayPairingProps): JSX.Element;
|
|
2294
|
+
|
|
1897
2295
|
interface POSLayoutProps extends Omit<ViewProps, 'children'> {
|
|
1898
2296
|
browseSlot: ReactNode;
|
|
1899
2297
|
cartSlot: ReactNode;
|
|
@@ -2043,6 +2441,32 @@ interface SalesCardsProps {
|
|
|
2043
2441
|
}
|
|
2044
2442
|
declare function SalesCards({ figures, currency, onOpenCard }: SalesCardsProps): JSX.Element;
|
|
2045
2443
|
|
|
2444
|
+
/**
|
|
2445
|
+
* The Reports period menu: the date presets beside a range calendar, for a custom range. Port of
|
|
2446
|
+
* WCPOS v2 `screens/main/reports/date-button.tsx` without its Pro licence locks; copy is v2's
|
|
2447
|
+
* English (`core.json`). Presets are worked out in store time by pos `presetRange`.
|
|
2448
|
+
*/
|
|
2449
|
+
|
|
2450
|
+
interface DateRangeMenuProps {
|
|
2451
|
+
value: {
|
|
2452
|
+
preset: DatePreset | 'custom';
|
|
2453
|
+
range: DayRange;
|
|
2454
|
+
};
|
|
2455
|
+
/** Called on a preset row (immediately) and on Done (the custom range). */
|
|
2456
|
+
onChange: (next: {
|
|
2457
|
+
preset: DatePreset | 'custom';
|
|
2458
|
+
range: DayRange;
|
|
2459
|
+
}) => void;
|
|
2460
|
+
/** IANA zone of the store, or 'device'. */
|
|
2461
|
+
timezone: string;
|
|
2462
|
+
/** The clock presets and today are worked out from; defaults to the time of the press. */
|
|
2463
|
+
now?: () => Date;
|
|
2464
|
+
/** The earliest store day the data covers; the calendar's min. Omitted: no min. */
|
|
2465
|
+
earliestDay?: StoreDay;
|
|
2466
|
+
testID?: string;
|
|
2467
|
+
}
|
|
2468
|
+
declare function DateRangeMenu({ value, onChange, timezone, now, earliestDay, testID, }: DateRangeMenuProps): JSX.Element;
|
|
2469
|
+
|
|
2046
2470
|
/**
|
|
2047
2471
|
* The Sales room's filters: the period presets (worked out in store time by pos `presetRange`),
|
|
2048
2472
|
* status, cashier and register. Port of WCPOS v2 `screens/main/reports/date-button.tsx` and the
|
|
@@ -2054,7 +2478,7 @@ interface SalesOption {
|
|
|
2054
2478
|
label: string;
|
|
2055
2479
|
}
|
|
2056
2480
|
interface SalesFilters {
|
|
2057
|
-
preset: DatePreset;
|
|
2481
|
+
preset: DatePreset | 'custom';
|
|
2058
2482
|
range: DayRange;
|
|
2059
2483
|
/** A single day's comparison: the day before or the same weekday last week. */
|
|
2060
2484
|
compare: 'previous' | 'week';
|
|
@@ -2069,11 +2493,13 @@ interface SalesFiltersBarProps {
|
|
|
2069
2493
|
timezone: string;
|
|
2070
2494
|
/** The clock presets are worked out from; defaults to the time of the press. */
|
|
2071
2495
|
now?: () => Date;
|
|
2496
|
+
/** The earliest store day the data covers; the calendar's min. */
|
|
2497
|
+
earliestDay?: StoreDay;
|
|
2072
2498
|
statusOptions: SalesOption[];
|
|
2073
2499
|
cashierOptions: SalesOption[];
|
|
2074
2500
|
registerOptions: SalesOption[];
|
|
2075
2501
|
}
|
|
2076
|
-
declare function SalesFiltersBar({ filters, onFiltersChange, timezone, now, statusOptions, cashierOptions, registerOptions, }: SalesFiltersBarProps): JSX.Element;
|
|
2502
|
+
declare function SalesFiltersBar({ filters, onFiltersChange, timezone, now, earliestDay, statusOptions, cashierOptions, registerOptions, }: SalesFiltersBarProps): JSX.Element;
|
|
2077
2503
|
|
|
2078
2504
|
/**
|
|
2079
2505
|
* The Reports screen's Sales room: filters, hero and cards over one `SalesFigures` result.
|
|
@@ -2145,4 +2571,4 @@ declare function I18nProvider({ locale, resources, children }: I18nProviderProps
|
|
|
2145
2571
|
/** The components' `t`, read from the nearest `I18nProvider`, else English. Interpolation is `{name}`. */
|
|
2146
2572
|
declare function useT(): TFunction;
|
|
2147
2573
|
|
|
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 };
|
|
2574
|
+
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 };
|