Skip to content

Commit 230478e

Browse files
committed
Add notes for Badge, Button, Tile, Section and versions re: POS 10.x
1 parent 6fc3438 commit 230478e

File tree

8 files changed

+35
-10
lines changed

8 files changed

+35
-10
lines changed

packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/Button.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const generateCodeBlockForButton = (title: string, fileName: string) =>
66

77
const data: ReferenceEntityTemplateSchema = {
88
name: 'Button',
9-
description:
10-
'Buttons enable the merchant to initiate actions, like "add", "save", or "next".',
9+
description: `Buttons enable the merchant to initiate actions, like "add", "save", or "next".
10+
> Note:
11+
> The \`plain\` \`ButtonType\` is no longer supported as of POS 10.0.0 and defaults to \`basic\`.`,
1112
isVisualComponent: true,
1213
type: 'component',
1314
definitions: [

packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/List.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import {generateCodeBlock} from '../helpers/generateCodeBlock';
33

44
const data: ReferenceEntityTemplateSchema = {
55
name: 'List',
6-
description:
7-
'The list is a scrollable component in which the list rows are rendered.',
6+
description: `The list is a scrollable component in which the list rows are rendered.
7+
> Note:
8+
> List items no longer have dividers as of POS 10.0.0.`,
89
isVisualComponent: true,
910
type: 'component',
1011
definitions: [

packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/Section.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const generateCodeBlockForComponent = (title: string, fileName: string) =>
66

77
const data: ReferenceEntityTemplateSchema = {
88
name: 'Section',
9-
description:
10-
'A component used to group other components together in a card-like UI. Usually, sections will be used inside a ScrollView.',
9+
description: `A component used to group other components together in a card-like UI. Usually, sections will be used inside a ScrollView.
10+
> Note:
11+
> Section no longer has a border as of POS 10.0.0.`,
1112
isVisualComponent: true,
1213
type: 'component',
1314
definitions: [

packages/ui-extensions/docs/surfaces/point-of-sale/reference/components/Tile.doc.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const generateCodeBlockForTile = (title: string, fileName: string) =>
66

77
const data: ReferenceEntityTemplateSchema = {
88
name: 'Tile',
9-
description:
10-
'Tiles are customizable buttons that allow staff to complete actions quickly. Think of them as shortcuts--adding a 10% discount to an order, for example. Tiles provide contextual information and let merchants quickly access workflows, actions, and information from the smart grid and the top of detail pages. They’re dynamic and can change based on surrounding context, such as what’s in the cart.',
9+
description: `Tiles are customizable buttons that allow staff to complete actions quickly. Think of them as shortcuts--adding a 10% discount to an order, for example. Tiles provide contextual information and let merchants quickly access workflows, actions, and information from the smart grid and the top of detail pages. They’re dynamic and can change based on surrounding context, such as what’s in the cart.
10+
> Note:
11+
> The appearance of \`destructive\` has been updated as of POS 10.0.0 to appear as an active state.`,
1112
isVisualComponent: true,
1213
type: 'component',
1314
definitions: [

packages/ui-extensions/docs/surfaces/point-of-sale/staticPages/pages/versions.doc.ts

+12
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ Refer to the [migration guide](/docs/api/pos-ui-extensions/migrating) for more i
6060
- Removed in POS version: N/A
6161
- Release day: N/A
6262
63+
## Important Fixes
64+
65+
- **POS 10.2.0**:
66+
67+
- Fixed a sizing issue with the \`Button\` component.
68+
- Fixed an issue where the \`Section\` component was displaying a divider between child components.
69+
70+
- **POS 10.0.0**:
71+
72+
- Removed \`email\`, \`firstName\`, \`lastName\`, and \`note\` from the [Customer](/docs/api/pos-ui-extensions/apis/cart-api#customer) object.
73+
- POS UI Extensions components automatically use our new POS visual design language.
74+
6375
### Features
6476
6577
**Developer Preview**:

packages/ui-extensions/src/surfaces/point-of-sale/render/components/Badge/Badge.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type BadgeStatus = 'empty' | 'partial' | 'complete';
1313
* @property text - The text displayed inside the badge.
1414
* @property variant - The appearance and function of the badge.
1515
* @property status - A circle icon displaying the status of the badge.
16+
* @deprecated status - No longer supported as of POS 10.0.0.
1617
*/
1718
export interface BadgeProps {
1819
/**
@@ -27,6 +28,7 @@ export interface BadgeProps {
2728

2829
/**
2930
* A circle icon displaying the status of the badge.
31+
* @deprecated No longer supported as of POS 10.0.0.
3032
*/
3133
status?: BadgeStatus;
3234
}

packages/ui-extensions/src/surfaces/point-of-sale/render/components/Button/Button.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import {createRemoteComponent} from '@remote-ui/core';
22

3-
export type ButtonType = 'primary' | 'basic' | 'destructive' | 'plain';
3+
export type ButtonType =
4+
| 'primary'
5+
| 'basic'
6+
| 'destructive'
7+
/** @deprecated No longer supported as of POS 10.0.0. */
8+
| 'plain';
49

510
/**
611
* @property `title` the text set on the `Button`.
@@ -18,6 +23,7 @@ export interface ButtonProps {
1823
title?: string;
1924
/**
2025
* The type of `Button` to render. Determines the appearance of the button.
26+
* Note: The 'plain' type is deprecated as of POS 10.0.0.
2127
*/
2228
type?: ButtonType;
2329
/**

packages/ui-extensions/src/surfaces/point-of-sale/render/components/Tile/Tile.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {createRemoteComponent} from '@remote-ui/core';
44
* @property `title` the text set on the main label of the tile.
55
* @property `subtitle` the text set on the secondary label of the tile.
66
* @property `enabled` sets whether or not the tile can be tapped.
7-
* @property `destructive` sets whether or not the tile is in a red destructive appearance.
7+
* @property `destructive` sets whether or not the tile has a destructive appearance and active state as of POS
8+
* 10.0.0.
89
* @property `badgeValue` the number value displayed in the top right corner of the tile.
910
* @property `onPress` the callback that is executed when the tile is tapped.
1011
*/

0 commit comments

Comments
 (0)