@shopify/ui-extensions 2025.10.0-rc.36 → 2025.10.0-rc.38
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/build/ts/shared.d.ts +24 -4
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +8 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +14 -2
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +8 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts +2 -2
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DropZone.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +20 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +8 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +8 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -3
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -3
- package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +14 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +3 -2
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +3 -2
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +245 -222
- package/build/ts/surfaces/admin/docs-types.d.ts +4 -0
- package/build/ts/surfaces/admin/docs-types.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +2 -2
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +29 -29
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +6 -6
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +6 -6
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/preact/subscription.d.ts +2 -2
- package/build/ts/surfaces/customer-account/preact/subscription.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +82 -8
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +111 -30
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +1 -4
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +82 -8
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +1 -38
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +321 -150
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts +2 -17
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/Modal.ts +1 -1
- package/src/shared.ts +25 -4
- package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +8 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/ButtonGroup.d.ts +14 -2
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +1 -1
- package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +8 -1
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/src/surfaces/admin/components/ColorField.d.ts +3 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/src/surfaces/admin/components/DateField.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/DropZone.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +20 -1
- package/src/surfaces/admin/components/GridItem.d.ts +8 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +8 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/Menu.d.ts +1 -1
- package/src/surfaces/admin/components/Modal/examples/default.html +23 -0
- package/src/surfaces/admin/components/Modal.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -3
- package/src/surfaces/admin/components/NumberField.d.ts +1 -3
- package/src/surfaces/admin/components/Option.d.ts +1 -1
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +1 -1
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +14 -1
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table.d.ts +3 -2
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +3 -2
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/src/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/src/surfaces/admin/components/patterns/examples/details.html +5 -11
- package/src/surfaces/admin/components/patterns/examples/details.jsx +4 -13
- package/src/surfaces/admin/components/patterns/examples/homepage.html +3 -12
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +3 -12
- package/src/surfaces/admin/components/patterns/examples/index.html +4 -10
- package/src/surfaces/admin/components/patterns/examples/index.jsx +4 -11
- package/src/surfaces/admin/components/patterns/examples/indexTable.html +4 -9
- package/src/surfaces/admin/components/patterns/examples/mediaCard.html +1 -1
- package/src/surfaces/admin/components/patterns/examples/settings.html +1 -2
- package/src/surfaces/admin/components/patterns/examples/settings.jsx +2 -6
- package/src/surfaces/admin/components/shared.d.ts +245 -222
- package/src/surfaces/admin/components.d.ts +293 -228
- package/src/surfaces/admin/docs-types.ts +8 -1
- package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +2 -2
- package/src/surfaces/customer-account/api/order-status/order-status.ts +29 -29
- package/src/surfaces/customer-account/api/shared.ts +6 -6
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +6 -6
- package/src/surfaces/customer-account/api.ts +1 -1
- package/src/surfaces/customer-account/preact/subscription.ts +3 -3
- package/src/surfaces/point-of-sale/api.ts +0 -1
- package/src/surfaces/point-of-sale/components/Badge.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/Box.d.ts +82 -8
- package/src/surfaces/point-of-sale/components/Icon.d.ts +111 -30
- package/src/surfaces/point-of-sale/components/PosBlock/examples/default.html +11 -0
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +1 -4
- package/src/surfaces/point-of-sale/components/Stack.d.ts +82 -8
- package/src/surfaces/point-of-sale/components/Tile.d.ts +1 -38
- package/src/surfaces/point-of-sale/components/TimeField/examples/default.html +12 -0
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +321 -150
- package/src/surfaces/point-of-sale/components.d.ts +1041 -530
- package/src/surfaces/point-of-sale/types/cart.ts +2 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.19.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -26,7 +26,8 @@ export type HeaderFormat = Extract<
|
|
|
26
26
|
TableHeaderProps$1['format'],
|
|
27
27
|
'base' | 'currency' | 'numeric'
|
|
28
28
|
>;
|
|
29
|
-
export interface TableHeaderProps
|
|
29
|
+
export interface TableHeaderProps
|
|
30
|
+
extends Pick<TableHeaderProps$1, 'listSlot' | 'format'> {
|
|
30
31
|
listSlot: Extract<
|
|
31
32
|
TableHeaderProps$1['listSlot'],
|
|
32
33
|
'primary' | 'secondary' | 'labeled' | 'kicker' | 'inline'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.19.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -12,7 +12,8 @@ export type HeaderFormat = Extract<
|
|
|
12
12
|
TableHeaderProps$1['format'],
|
|
13
13
|
'base' | 'currency' | 'numeric'
|
|
14
14
|
>;
|
|
15
|
-
export interface TableHeaderProps
|
|
15
|
+
export interface TableHeaderProps
|
|
16
|
+
extends Pick<TableHeaderProps$1, 'listSlot' | 'format'> {
|
|
16
17
|
listSlot: Extract<
|
|
17
18
|
TableHeaderProps$1['listSlot'],
|
|
18
19
|
'primary' | 'secondary' | 'labeled' | 'kicker' | 'inline'
|
|
@@ -11,16 +11,10 @@
|
|
|
11
11
|
<!-- Details page pattern -->
|
|
12
12
|
<!-- === -->
|
|
13
13
|
<form data-save-bar>
|
|
14
|
-
<s-page>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<!-- === -->
|
|
19
|
-
<ui-title-bar title="Mountain view">
|
|
20
|
-
<button variant="breadcrumb" href="/app/puzzles">Puzzles</button>
|
|
21
|
-
<button>Duplicate</button>
|
|
22
|
-
<button tone="critical">Delete</button>
|
|
23
|
-
</ui-title-bar>
|
|
14
|
+
<s-page heading="Mountain view">
|
|
15
|
+
<s-link slot="breadcrumb-actions" href="/app/puzzles">Puzzles</s-link>
|
|
16
|
+
<s-button slot="secondary-actions">Duplicate</s-button>
|
|
17
|
+
<s-button slot="secondary-actions">Delete</s-button>
|
|
24
18
|
<!-- === -->
|
|
25
19
|
<!-- Puzzle information -->
|
|
26
20
|
<!-- === -->
|
|
@@ -83,7 +77,7 @@
|
|
|
83
77
|
borderStyle="solid"
|
|
84
78
|
overflow="hidden"
|
|
85
79
|
>
|
|
86
|
-
<s-table
|
|
80
|
+
<s-table border="base" borderRadius="base" borderStyle="solid">
|
|
87
81
|
<s-table-header-row>
|
|
88
82
|
<s-table-header listSlot="primary">Template</s-table-header>
|
|
89
83
|
<s-table-header>
|
|
@@ -16,18 +16,10 @@ export default function DetailsPage() {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<form data-save-bar onSubmit={handleFormSubmit} onReset={handleFormReset}>
|
|
19
|
-
<s-page>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{/* === */}
|
|
24
|
-
<ui-title-bar title="Mountain view">
|
|
25
|
-
<button variant="breadcrumb" href="/app/puzzles">
|
|
26
|
-
Puzzles
|
|
27
|
-
</button>
|
|
28
|
-
<button>Duplicate</button>
|
|
29
|
-
<button tone="critical">Delete</button>
|
|
30
|
-
</ui-title-bar>
|
|
19
|
+
<s-page heading="Mountain view">
|
|
20
|
+
<s-link slot="breadcrumb-actions" href="/app/puzzles">Puzzles</s-link>
|
|
21
|
+
<s-button slot="secondary-actions">Duplicate</s-button>
|
|
22
|
+
<s-button slot="secondary-actions">Delete</s-button>
|
|
31
23
|
{/* === */}
|
|
32
24
|
{/* Puzzle information */}
|
|
33
25
|
{/* === */}
|
|
@@ -96,7 +88,6 @@ export default function DetailsPage() {
|
|
|
96
88
|
overflow="hidden"
|
|
97
89
|
>
|
|
98
90
|
<s-table
|
|
99
|
-
fullwidth
|
|
100
91
|
border="base"
|
|
101
92
|
borderRadius="base"
|
|
102
93
|
borderStyle="solid"
|
|
@@ -63,18 +63,9 @@
|
|
|
63
63
|
<!-- Home page pattern -->
|
|
64
64
|
<!-- === -->
|
|
65
65
|
<s-page>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<!-- Note: ui-title-bar requires AppBridge to render correctly -->
|
|
70
|
-
<!-- === -->
|
|
71
|
-
<ui-title-bar>
|
|
72
|
-
<button variant="primary">Create puzzle</button>
|
|
73
|
-
<section>
|
|
74
|
-
<button>Browse templates</button>
|
|
75
|
-
<button>Import image</button>
|
|
76
|
-
</section>
|
|
77
|
-
</ui-title-bar>
|
|
66
|
+
<s-button slot="primary-action">Create puzzle</s-button>
|
|
67
|
+
<s-button slot="secondary-actions">Browse templates</s-button>
|
|
68
|
+
<s-button slot="secondary-actions">Import image</s-button>
|
|
78
69
|
<!-- === -->
|
|
79
70
|
<!-- Banner -->
|
|
80
71
|
<!-- Use banners sparingly. Only one banner should be visible at a time. -->
|
|
@@ -20,18 +20,9 @@ export default function HomePage() {
|
|
|
20
20
|
const [progress, setProgress] = useState(0);
|
|
21
21
|
return (
|
|
22
22
|
<s-page>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{/* Note: ui-title-bar requires AppBridge to render correctly */}
|
|
27
|
-
{/* === */}
|
|
28
|
-
<ui-title-bar>
|
|
29
|
-
<button variant="primary">Create puzzle</button>
|
|
30
|
-
<section>
|
|
31
|
-
<button>Browse templates</button>
|
|
32
|
-
<button>Import image</button>
|
|
33
|
-
</section>
|
|
34
|
-
</ui-title-bar>
|
|
23
|
+
<s-button slot="primary-action">Create puzzle</s-button>
|
|
24
|
+
<s-button slot="secondary-actions">Browse templates</s-button>
|
|
25
|
+
<s-button slot="secondary-actions">Import image</s-button>
|
|
35
26
|
|
|
36
27
|
{/* === */}
|
|
37
28
|
{/* Banner */}
|
|
@@ -10,16 +10,10 @@
|
|
|
10
10
|
<!-- === -->
|
|
11
11
|
<!-- Index page pattern -->
|
|
12
12
|
<!-- === -->
|
|
13
|
-
<s-page>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<!-- === -->
|
|
18
|
-
<ui-title-bar title="Puzzles">
|
|
19
|
-
<button variant="primary">Create puzzle</button>
|
|
20
|
-
<button>Export puzzles</button>
|
|
21
|
-
<button>Import puzzles</button>
|
|
22
|
-
</ui-title-bar>
|
|
13
|
+
<s-page heading="Puzzles">
|
|
14
|
+
<s-button slot="primary-action" variant="primary">Create puzzle</s-button>
|
|
15
|
+
<s-button slot="secondary-actions" variant="secondary">Export puzzles</s-button>
|
|
16
|
+
<s-button slot="secondary-actions" variant="secondary">Import puzzles</s-button>
|
|
23
17
|
<!-- === -->
|
|
24
18
|
<!-- Empty state -->
|
|
25
19
|
<!-- This should only be visible if the merchant has not created any puzzles yet. -->
|
|
@@ -4,17 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
export default function IndexPage() {
|
|
6
6
|
return (
|
|
7
|
-
<s-page>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{/* === */}
|
|
12
|
-
<ui-title-bar title="Puzzles">
|
|
13
|
-
<button variant="primary">Create puzzle</button>
|
|
14
|
-
<button>Export puzzles</button>
|
|
15
|
-
<button>Import puzzles</button>
|
|
16
|
-
</ui-title-bar>
|
|
17
|
-
|
|
7
|
+
<s-page heading="Puzzles">
|
|
8
|
+
<s-button slot="primary-action" variant="primary">Create puzzle</s-button>
|
|
9
|
+
<s-button slot="secondary-actions" variant="secondary">Export puzzles</s-button>
|
|
10
|
+
<s-button slot="secondary-actions" variant="secondary">Import puzzles</s-button>
|
|
18
11
|
{/* === */}
|
|
19
12
|
{/* Empty state */}
|
|
20
13
|
{/* This should only be visible if the merchant has not created any puzzles yet. */}
|
|
@@ -35,18 +35,13 @@
|
|
|
35
35
|
</s-popover>
|
|
36
36
|
</s-grid>
|
|
37
37
|
<s-table-header-row>
|
|
38
|
-
<s-table-header listSlot="primary">
|
|
39
|
-
<s-stack direction="inline" gap="small-200" alignItems="center">
|
|
40
|
-
<s-checkbox accessibilityLabel="Select all puzzles"></s-checkbox>
|
|
41
|
-
<s-text>Puzzle</s-text>
|
|
42
|
-
</s-stack>
|
|
43
|
-
</s-table-header>
|
|
38
|
+
<s-table-header listSlot="primary">Puzzle</s-table-header>
|
|
44
39
|
<s-table-header format="numeric">Pieces</s-table-header>
|
|
45
40
|
<s-table-header>Created</s-table-header>
|
|
46
41
|
<s-table-header listSlot="secondary">Status</s-table-header>
|
|
47
42
|
</s-table-header-row>
|
|
48
43
|
<s-table-body>
|
|
49
|
-
<s-table-row
|
|
44
|
+
<s-table-row clickDelegate="mountain-view-checkbox">
|
|
50
45
|
<s-table-cell>
|
|
51
46
|
<s-stack direction="inline" gap="small" alignItems="center">
|
|
52
47
|
<s-checkbox id="mountain-view-checkbox"></s-checkbox>
|
|
@@ -73,7 +68,7 @@
|
|
|
73
68
|
<s-badge color="base" tone="success">Active</s-badge>
|
|
74
69
|
</s-table-cell>
|
|
75
70
|
</s-table-row>
|
|
76
|
-
<s-table-row
|
|
71
|
+
<s-table-row clickDelegate="ocean-sunset-checkbox">
|
|
77
72
|
<s-table-cell>
|
|
78
73
|
<s-stack direction="inline" gap="small" alignItems="center">
|
|
79
74
|
<s-checkbox id="ocean-sunset-checkbox"></s-checkbox>
|
|
@@ -100,7 +95,7 @@
|
|
|
100
95
|
<s-badge color="base" tone="success">Active</s-badge>
|
|
101
96
|
</s-table-cell>
|
|
102
97
|
</s-table-row>
|
|
103
|
-
<s-table-row
|
|
98
|
+
<s-table-row clickDelegate="forest-animals-checkbox">
|
|
104
99
|
<s-table-cell>
|
|
105
100
|
<s-stack direction="inline" gap="small" alignItems="center">
|
|
106
101
|
<s-checkbox id="forest-animals-checkbox"></s-checkbox>
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
<!-- Settings page pattern -->
|
|
12
12
|
<!-- === -->
|
|
13
13
|
<form data-save-bar onSubmit="" onReset="">
|
|
14
|
-
<s-page inlineSize="small">
|
|
15
|
-
<ui-title-bar title="Settings"></ui-title-bar>
|
|
14
|
+
<s-page heading="Settings" inlineSize="small">
|
|
16
15
|
<!-- === -->
|
|
17
16
|
<!-- Store Information -->
|
|
18
17
|
<!-- === -->
|
|
@@ -16,9 +16,7 @@ export default function SettingsPage() {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<form data-save-bar onSubmit={handleFormSubmit} onReset={handleFormReset}>
|
|
19
|
-
<s-page inlineSize="small">
|
|
20
|
-
<ui-title-bar title="Settings"></ui-title-bar>
|
|
21
|
-
|
|
19
|
+
<s-page heading="Settings" inlineSize="small">
|
|
22
20
|
{/* === */}
|
|
23
21
|
{/* Store Information */}
|
|
24
22
|
{/* === */}
|
|
@@ -42,9 +40,7 @@ export default function SettingsPage() {
|
|
|
42
40
|
placeholder="Enter phone number"
|
|
43
41
|
/>
|
|
44
42
|
<s-choice-list label="Primary currency" name="currency">
|
|
45
|
-
<s-choice value="usd" selected>
|
|
46
|
-
US Dollar ($)
|
|
47
|
-
</s-choice>
|
|
43
|
+
<s-choice value="usd" selected>US Dollar ($)</s-choice>
|
|
48
44
|
<s-choice value="cad">Canadian Dollar (CAD)</s-choice>
|
|
49
45
|
<s-choice value="eur">Euro (€)</s-choice>
|
|
50
46
|
</s-choice-list>
|