@tallyui/components 3.6.0 → 3.7.1
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
CHANGED
|
@@ -8,7 +8,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 { CatalogueView, ProductSortValue, ProductSort, useRegisterSession, MovementType, useSale, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, SentOrder, PosOrder, OutboxState, ParkedOrderSummary } from '@tallyui/pos';
|
|
11
|
+
import { CatalogueView, ProductSortValue, ProductSort, useRegisterSession, RegisterSession, MovementType, useSale, AppliedDiscount, Discount, CatalogueEntry, CatalogueViewState, SentOrder, PosOrder, OutboxState, ParkedOrderSummary } from '@tallyui/pos';
|
|
12
12
|
import { ProductTraits, TraitContext, Money, CustomerTraits, Customer, CustomerInput, ProductCategory, SyncNotice, StoreSettingsChoices, StoreSettingsChoice } from '@tallyui/core';
|
|
13
13
|
|
|
14
14
|
declare const textVariants: (props?: ({
|
|
@@ -1093,6 +1093,7 @@ declare function RegisterBar({ register, registerId, online, registerName, multi
|
|
|
1093
1093
|
* register name (`multiRegister` decides whether that's shown at all) and the status pill.
|
|
1094
1094
|
* Copy is plain English (no i18n keys, ADR-064's neutral-copy rule).
|
|
1095
1095
|
*/
|
|
1096
|
+
|
|
1096
1097
|
type RegisterBarPill = 'Choose a register' | 'Close not finished' | 'Offline' | 'Approval needed' | 'Counting' | 'Overdue' | 'Register closed';
|
|
1097
1098
|
/**
|
|
1098
1099
|
* Priority, matching WCPOS's ordering: choosing a register outranks everything (LEDGER 48);
|
|
@@ -1104,7 +1105,8 @@ declare function describeRegisterBarPill({ registerId, online, sessionStatus, ov
|
|
|
1104
1105
|
/** The register this till is bound to, or `null` when it isn't bound yet. */
|
|
1105
1106
|
registerId: string | null;
|
|
1106
1107
|
online: boolean;
|
|
1107
|
-
|
|
1108
|
+
/** `conflict` and `superseded` (ADR-078 decision 9) get no pill of their own yet; step 3b decides theirs. */
|
|
1109
|
+
sessionStatus?: RegisterSession['status'] | null;
|
|
1108
1110
|
overdue?: boolean;
|
|
1109
1111
|
approvalRequired?: boolean;
|
|
1110
1112
|
/** The store uses register sessions at all (`useRegisterSession`'s `enabled`). */
|
package/dist/index.js
CHANGED
|
@@ -1490,11 +1490,15 @@ var Slider = React32.forwardRef(function Slider2({ className, ...props }, ref) {
|
|
|
1490
1490
|
SliderPrimitive.Root,
|
|
1491
1491
|
{
|
|
1492
1492
|
ref,
|
|
1493
|
-
className: cn33(
|
|
1493
|
+
className: cn33(
|
|
1494
|
+
"relative flex h-5 w-full touch-none select-none items-center",
|
|
1495
|
+
props.disabled && "web:cursor-not-allowed opacity-50",
|
|
1496
|
+
className
|
|
1497
|
+
),
|
|
1494
1498
|
...props,
|
|
1495
1499
|
children: [
|
|
1496
1500
|
/* @__PURE__ */ jsx36(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx36(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
1497
|
-
/* @__PURE__ */ jsx36(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" })
|
|
1501
|
+
/* @__PURE__ */ jsx36(SliderPrimitive.Thumb, { className: "absolute top-0 -ml-2.5 block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" })
|
|
1498
1502
|
]
|
|
1499
1503
|
}
|
|
1500
1504
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tallyui/components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Universal POS UI components for Tally UI",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"directory": "packages/components"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@tallyui/core": "^3.
|
|
31
|
-
"@tallyui/primitives": "^3.
|
|
32
|
-
"@tallyui/theme": "^3.
|
|
30
|
+
"@tallyui/core": "^3.7.1",
|
|
31
|
+
"@tallyui/primitives": "^3.7.1",
|
|
32
|
+
"@tallyui/theme": "^3.7.1",
|
|
33
33
|
"react": ">=18",
|
|
34
34
|
"react-native": ">=0.74",
|
|
35
35
|
"react-native-svg": ">=15"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"class-variance-authority": "^0.7.1",
|
|
39
|
-
"@tallyui/pos": "3.
|
|
39
|
+
"@tallyui/pos": "3.7.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tallyui/connector-medusa": "3.
|
|
43
|
-
"@tallyui/connector-vendure": "3.
|
|
44
|
-
"@tallyui/connector-woocommerce": "3.
|
|
45
|
-
"@tallyui/mock-api": "3.
|
|
42
|
+
"@tallyui/connector-medusa": "3.7.1",
|
|
43
|
+
"@tallyui/connector-vendure": "3.7.1",
|
|
44
|
+
"@tallyui/connector-woocommerce": "3.7.1",
|
|
45
|
+
"@tallyui/mock-api": "3.7.1",
|
|
46
46
|
"@types/react": ">=18",
|
|
47
47
|
"react": "^19.2.4",
|
|
48
48
|
"react-native-svg": "15.12.1",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* Copy is plain English (no i18n keys, ADR-064's neutral-copy rule).
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
import type { RegisterSession } from '@tallyui/pos';
|
|
15
|
+
|
|
14
16
|
export type RegisterBarPill =
|
|
15
17
|
| 'Choose a register'
|
|
16
18
|
| 'Close not finished'
|
|
@@ -38,7 +40,8 @@ export function describeRegisterBarPill({
|
|
|
38
40
|
/** The register this till is bound to, or `null` when it isn't bound yet. */
|
|
39
41
|
registerId: string | null;
|
|
40
42
|
online: boolean;
|
|
41
|
-
|
|
43
|
+
/** `conflict` and `superseded` (ADR-078 decision 9) get no pill of their own yet; step 3b decides theirs. */
|
|
44
|
+
sessionStatus?: RegisterSession['status'] | null;
|
|
42
45
|
overdue?: boolean;
|
|
43
46
|
approvalRequired?: boolean;
|
|
44
47
|
/** The store uses register sessions at all (`useRegisterSession`'s `enabled`). */
|
package/src/ui/slider/index.tsx
CHANGED
|
@@ -12,13 +12,17 @@ const Slider = React.forwardRef<
|
|
|
12
12
|
return (
|
|
13
13
|
<SliderPrimitive.Root
|
|
14
14
|
ref={ref}
|
|
15
|
-
className={cn(
|
|
15
|
+
className={cn(
|
|
16
|
+
'relative flex h-5 w-full touch-none select-none items-center',
|
|
17
|
+
props.disabled && 'web:cursor-not-allowed opacity-50',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
16
20
|
{...props}
|
|
17
21
|
>
|
|
18
22
|
<SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
|
|
19
23
|
<SliderPrimitive.Range className="absolute h-full bg-primary" />
|
|
20
24
|
</SliderPrimitive.Track>
|
|
21
|
-
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" />
|
|
25
|
+
<SliderPrimitive.Thumb className="absolute top-0 -ml-2.5 block h-5 w-5 rounded-full border-2 border-primary bg-background web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2" />
|
|
22
26
|
</SliderPrimitive.Root>
|
|
23
27
|
);
|
|
24
28
|
});
|