@tallyui/components 3.6.0 → 3.7.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 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
- sessionStatus?: 'open' | 'counting' | 'closed' | null;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tallyui/components",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
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.6.0",
31
- "@tallyui/primitives": "^3.6.0",
32
- "@tallyui/theme": "^3.6.0",
30
+ "@tallyui/core": "^3.7.0",
31
+ "@tallyui/primitives": "^3.7.0",
32
+ "@tallyui/theme": "^3.7.0",
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.6.0"
39
+ "@tallyui/pos": "3.7.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@tallyui/connector-medusa": "3.6.0",
43
- "@tallyui/connector-vendure": "3.6.0",
44
- "@tallyui/connector-woocommerce": "3.6.0",
45
- "@tallyui/mock-api": "3.6.0",
42
+ "@tallyui/connector-medusa": "3.7.0",
43
+ "@tallyui/connector-vendure": "3.7.0",
44
+ "@tallyui/connector-woocommerce": "3.7.0",
45
+ "@tallyui/mock-api": "3.7.0",
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
- sessionStatus?: 'open' | 'counting' | 'closed' | null;
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`). */