@shopify/ui-extensions 2025.10.0-rc.35 → 2025.10.0-rc.37

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.
Files changed (176) hide show
  1. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  2. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  3. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  4. package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
  5. package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
  6. package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
  7. package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
  8. package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
  9. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +1 -1
  10. package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
  11. package/build/ts/surfaces/admin/components/Chip.d.ts +1 -1
  12. package/build/ts/surfaces/admin/components/Choice.d.ts +2 -11
  13. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
  14. package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
  15. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -1
  16. package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -1
  17. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
  18. package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
  20. package/build/ts/surfaces/admin/components/DropZone.d.ts +1 -1
  21. package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
  22. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  23. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
  24. package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
  25. package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
  26. package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
  27. package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
  28. package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
  29. package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
  30. package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
  31. package/build/ts/surfaces/admin/components/Menu.d.ts +2 -9
  32. package/build/ts/surfaces/admin/components/Modal.d.ts +13 -4
  33. package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
  34. package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
  35. package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
  36. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
  37. package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
  38. package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
  39. package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
  40. package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
  41. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -1
  42. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
  43. package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
  44. package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
  45. package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
  46. package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
  47. package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
  48. package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
  49. package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
  50. package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
  51. package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
  52. package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
  53. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  54. package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
  55. package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
  56. package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
  57. package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
  58. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
  59. package/build/ts/surfaces/admin/components/Tooltip.d.ts +2 -9
  60. package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
  61. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
  62. package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts +4 -0
  63. package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts.map +1 -0
  64. package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts +4 -0
  65. package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts.map +1 -0
  66. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -1
  67. package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts +4 -0
  68. package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts.map +1 -0
  69. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -1
  70. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -1
  71. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts +4 -0
  72. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -0
  73. package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts +4 -0
  74. package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts.map +1 -0
  75. package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts +4 -0
  76. package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts.map +1 -0
  77. package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts +4 -0
  78. package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts.map +1 -0
  79. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -1
  80. package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts +4 -0
  81. package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts.map +1 -0
  82. package/build/ts/surfaces/admin/components/shared.d.ts +1 -1
  83. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
  84. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  85. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +4 -17
  86. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  87. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +5 -0
  88. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -0
  89. package/build/ts/surfaces/point-of-sale/types/money.d.ts +4 -0
  90. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  91. package/build/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +1 -1
  93. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  94. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  95. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  96. package/src/surfaces/admin/components/Avatar.d.ts +1 -1
  97. package/src/surfaces/admin/components/Badge.d.ts +1 -1
  98. package/src/surfaces/admin/components/Banner.d.ts +1 -1
  99. package/src/surfaces/admin/components/Box.d.ts +1 -1
  100. package/src/surfaces/admin/components/Button.d.ts +1 -1
  101. package/src/surfaces/admin/components/ButtonGroup.d.ts +1 -1
  102. package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
  103. package/src/surfaces/admin/components/Chip.d.ts +1 -1
  104. package/src/surfaces/admin/components/Choice.d.ts +2 -11
  105. package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
  106. package/src/surfaces/admin/components/Clickable.d.ts +1 -1
  107. package/src/surfaces/admin/components/ClickableChip.d.ts +1 -1
  108. package/src/surfaces/admin/components/ColorField.d.ts +1 -1
  109. package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
  110. package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
  111. package/src/surfaces/admin/components/Divider.d.ts +1 -1
  112. package/src/surfaces/admin/components/DropZone.d.ts +1 -1
  113. package/src/surfaces/admin/components/EmailField.d.ts +1 -1
  114. package/src/surfaces/admin/components/Form.d.ts +1 -1
  115. package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
  116. package/src/surfaces/admin/components/Grid.d.ts +1 -1
  117. package/src/surfaces/admin/components/GridItem.d.ts +1 -1
  118. package/src/surfaces/admin/components/Heading.d.ts +1 -1
  119. package/src/surfaces/admin/components/Icon.d.ts +1 -1
  120. package/src/surfaces/admin/components/Image.d.ts +1 -1
  121. package/src/surfaces/admin/components/Link.d.ts +1 -1
  122. package/src/surfaces/admin/components/ListItem.d.ts +1 -1
  123. package/src/surfaces/admin/components/Menu.d.ts +2 -9
  124. package/src/surfaces/admin/components/Modal.d.ts +13 -4
  125. package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
  126. package/src/surfaces/admin/components/NumberField.d.ts +1 -1
  127. package/src/surfaces/admin/components/Option.d.ts +1 -1
  128. package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
  129. package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
  130. package/src/surfaces/admin/components/Page.d.ts +1 -1
  131. package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
  132. package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
  133. package/src/surfaces/admin/components/Popover/examples/default.html +2 -2
  134. package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
  135. package/src/surfaces/admin/components/SearchField.d.ts +1 -1
  136. package/src/surfaces/admin/components/Section.d.ts +1 -1
  137. package/src/surfaces/admin/components/Select.d.ts +1 -1
  138. package/src/surfaces/admin/components/Spinner.d.ts +1 -1
  139. package/src/surfaces/admin/components/Stack.d.ts +1 -1
  140. package/src/surfaces/admin/components/Switch.d.ts +1 -1
  141. package/src/surfaces/admin/components/Table.d.ts +1 -1
  142. package/src/surfaces/admin/components/TableBody.d.ts +1 -1
  143. package/src/surfaces/admin/components/TableCell.d.ts +1 -1
  144. package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
  145. package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  146. package/src/surfaces/admin/components/TableRow.d.ts +1 -1
  147. package/src/surfaces/admin/components/Text.d.ts +1 -1
  148. package/src/surfaces/admin/components/TextArea.d.ts +1 -1
  149. package/src/surfaces/admin/components/TextField.d.ts +1 -1
  150. package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
  151. package/src/surfaces/admin/components/Tooltip.d.ts +2 -9
  152. package/src/surfaces/admin/components/URLField.d.ts +1 -1
  153. package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
  154. package/src/surfaces/admin/components/patterns/examples/appCard.html +30 -0
  155. package/src/surfaces/admin/components/patterns/examples/calloutCard.html +35 -0
  156. package/src/surfaces/admin/components/patterns/examples/details.html +11 -5
  157. package/src/surfaces/admin/components/patterns/examples/details.jsx +9 -7
  158. package/src/surfaces/admin/components/patterns/examples/emptyState.html +27 -0
  159. package/src/surfaces/admin/components/patterns/examples/homepage.html +24 -48
  160. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +21 -49
  161. package/src/surfaces/admin/components/patterns/examples/index.html +21 -23
  162. package/src/surfaces/admin/components/patterns/examples/index.jsx +19 -24
  163. package/src/surfaces/admin/components/patterns/examples/indexTable.html +132 -0
  164. package/src/surfaces/admin/components/patterns/examples/interstitialNav.html +72 -0
  165. package/src/surfaces/admin/components/patterns/examples/mediaCard.html +23 -0
  166. package/src/surfaces/admin/components/patterns/examples/metricsCard.html +51 -0
  167. package/src/surfaces/admin/components/patterns/examples/settings.html +90 -49
  168. package/src/surfaces/admin/components/patterns/examples/settings.jsx +92 -47
  169. package/src/surfaces/admin/components/patterns/examples/setupGuide.html +91 -0
  170. package/src/surfaces/admin/components/patterns/index.ab.doc.ts +5 -4
  171. package/src/surfaces/admin/components/shared.d.ts +1 -1
  172. package/src/surfaces/admin/components.d.ts +15 -6
  173. package/src/surfaces/point-of-sale/api.ts +0 -1
  174. package/src/surfaces/point-of-sale/types/cart.ts +4 -18
  175. package/src/surfaces/point-of-sale/types/discount-allocation.ts +5 -0
  176. package/src/surfaces/point-of-sale/types/money.ts +5 -0
@@ -1,4 +1,3 @@
1
-
2
1
  // ===
3
2
  // Settings page pattern
4
3
  // ===
@@ -24,59 +23,81 @@ export default function SettingsPage() {
24
23
  {/* Store Information */}
25
24
  {/* === */}
26
25
  <s-section heading="Store Information">
27
- <s-text-field
28
- label="Store name"
29
- name="store-name"
30
- value="Puzzlify Store"
31
- placeholder="Enter store name"
32
- />
33
- <s-text-field
34
- label="Business address"
35
- name="business-address"
36
- value="123 Main St, Anytown, USA"
37
- placeholder="Enter business address"
38
- />
39
- <s-text-field
40
- label="Store phone"
41
- name="store-phone"
42
- value="+1 (555) 123-4567"
43
- placeholder="Enter phone number"
44
- />
45
- <s-choice-list label="Primary currency" name="currency">
46
- <s-choice label="US Dollar ($)" value="usd" selected></s-choice>
47
- <s-choice label="Canadian Dollar (CAD)" value="cad"></s-choice>
48
- <s-choice label="Euro (€)" value="eur"></s-choice>
49
- </s-choice-list>
26
+ <s-text-field
27
+ label="Store name"
28
+ name="store-name"
29
+ value="Puzzlify Store"
30
+ placeholder="Enter store name"
31
+ />
32
+ <s-text-field
33
+ label="Business address"
34
+ name="business-address"
35
+ value="123 Main St, Anytown, USA"
36
+ placeholder="Enter business address"
37
+ />
38
+ <s-text-field
39
+ label="Store phone"
40
+ name="store-phone"
41
+ value="+1 (555) 123-4567"
42
+ placeholder="Enter phone number"
43
+ />
44
+ <s-choice-list label="Primary currency" name="currency">
45
+ <s-choice value="usd" selected>
46
+ US Dollar ($)
47
+ </s-choice>
48
+ <s-choice value="cad">Canadian Dollar (CAD)</s-choice>
49
+ <s-choice value="eur">Euro (€)</s-choice>
50
+ </s-choice-list>
50
51
  </s-section>
51
52
 
52
53
  {/* === */}
53
54
  {/* Notifications */}
54
55
  {/* === */}
55
56
  <s-section heading="Notifications">
56
- <s-select label="Notification frequency" name="notification-frequency">
57
- <s-option value="immediately" selected>Immediately</s-option>
58
- <s-option value="hourly">Hourly digest</s-option>
59
- <s-option value="daily">Daily digest</s-option>
60
- </s-select>
61
- <s-choice-list label="Notification types" name="notifications-type" multiple>
62
- <s-choice label="New order notifications" value="new-order" selected></s-choice>
63
- <s-choice label="Low stock alerts" value="low-stock"></s-choice>
64
- <s-choice label="Customer review notifications" value="customer-review"></s-choice>
65
- <s-choice label="Shipping updates" value="shipping-updates"></s-choice>
66
- </s-choice-list>
57
+ <s-select
58
+ label="Notification frequency"
59
+ name="notification-frequency"
60
+ >
61
+ <s-option value="immediately" selected>
62
+ Immediately
63
+ </s-option>
64
+ <s-option value="hourly">Hourly digest</s-option>
65
+ <s-option value="daily">Daily digest</s-option>
66
+ </s-select>
67
+ <s-choice-list
68
+ label="Notification types"
69
+ name="notifications-type"
70
+ multiple
71
+ >
72
+ <s-choice value="new-order" selected>
73
+ New order notifications
74
+ </s-choice>
75
+ <s-choice value="low-stock">Low stock alerts</s-choice>
76
+ <s-choice value="customer-review">
77
+ Customer review notifications
78
+ </s-choice>
79
+ <s-choice value="shipping-updates">Shipping updates</s-choice>
80
+ </s-choice-list>
67
81
  </s-section>
68
82
 
69
83
  {/* === */}
70
84
  {/* Preferences */}
71
85
  {/* === */}
72
86
  <s-section heading="Preferences">
73
- <s-stack gap="none" border="base" borderRadius="base" overflow="hidden">
87
+ <s-box
88
+ border="base"
89
+ borderRadius="base"
90
+ >
74
91
  <s-clickable
75
92
  padding="small-100"
76
93
  href="/app/settings/shipping"
77
94
  accessibilityLabel="Configure shipping methods, rates, and fulfillment options"
78
95
  >
79
- <s-grid gridTemplateColumns="1fr auto" alignItems="center" gap="base">
96
+ <s-grid
97
+ gridTemplateColumns="1fr auto"
98
+ alignItems="center"
99
+ gap="base"
100
+ >
80
101
  <s-box>
81
102
  <s-heading>Shipping & fulfillment</s-heading>
82
103
  <s-paragraph color="subdued">
@@ -95,11 +116,16 @@ export default function SettingsPage() {
95
116
  href="/app/settings/products_catalog"
96
117
  accessibilityLabel="Configure product defaults, customer experience, and catalog settings"
97
118
  >
98
- <s-grid gridTemplateColumns="1fr auto" alignItems="center" gap="base">
119
+ <s-grid
120
+ gridTemplateColumns="1fr auto"
121
+ alignItems="center"
122
+ gap="base"
123
+ >
99
124
  <s-box>
100
125
  <s-heading>Products & catalog</s-heading>
101
126
  <s-paragraph color="subdued">
102
- Product defaults, customer experience, and catalog display options.
127
+ Product defaults, customer experience, and catalog display
128
+ options.
103
129
  </s-paragraph>
104
130
  </s-box>
105
131
  <s-icon type="chevron-right"></s-icon>
@@ -114,30 +140,45 @@ export default function SettingsPage() {
114
140
  href="/app/settings/customer_support"
115
141
  accessibilityLabel="Manage customer support settings and help resources"
116
142
  >
117
- <s-grid gridTemplateColumns="1fr auto" alignItems="center" gap="base">
143
+ <s-grid
144
+ gridTemplateColumns="1fr auto"
145
+ alignItems="center"
146
+ gap="base"
147
+ >
118
148
  <s-box>
119
149
  <s-heading>Customer support</s-heading>
120
150
  <s-paragraph color="subdued">
121
- Support settings, help resources, and customer service tools.
151
+ Support settings, help resources, and customer service
152
+ tools.
122
153
  </s-paragraph>
123
154
  </s-box>
124
155
  <s-icon type="chevron-right"></s-icon>
125
156
  </s-grid>
126
157
  </s-clickable>
127
- </s-stack>
158
+ </s-box>
128
159
  </s-section>
129
160
 
130
161
  {/* === */}
131
162
  {/* Tools */}
132
163
  {/* === */}
133
164
  <s-section heading="Tools">
134
- <s-stack gap="none" border="base" borderRadius="base" overflow="hidden">
165
+ <s-stack
166
+ gap="none"
167
+ border="base"
168
+ borderRadius="base"
169
+ overflow="hidden"
170
+ >
135
171
  <s-box padding="small-100">
136
- <s-grid gridTemplateColumns="1fr auto" alignItems="center" gap="base">
172
+ <s-grid
173
+ gridTemplateColumns="1fr auto"
174
+ alignItems="center"
175
+ gap="base"
176
+ >
137
177
  <s-box>
138
178
  <s-heading>Reset app settings</s-heading>
139
179
  <s-paragraph color="subdued">
140
- Reset all settings to their default values. This action cannot be undone.
180
+ Reset all settings to their default values. This action
181
+ cannot be undone.
141
182
  </s-paragraph>
142
183
  </s-box>
143
184
  <s-button tone="critical">Reset</s-button>
@@ -148,7 +189,11 @@ export default function SettingsPage() {
148
189
  </s-box>
149
190
 
150
191
  <s-box padding="small-100">
151
- <s-grid gridTemplateColumns="1fr auto" alignItems="center" gap="base">
192
+ <s-grid
193
+ gridTemplateColumns="1fr auto"
194
+ alignItems="center"
195
+ gap="base"
196
+ >
152
197
  <s-box>
153
198
  <s-heading>Export settings</s-heading>
154
199
  <s-paragraph color="subdued">
@@ -163,4 +208,4 @@ export default function SettingsPage() {
163
208
  </s-page>
164
209
  </form>
165
210
  );
166
- }
211
+ }
@@ -0,0 +1,91 @@
1
+ <s-section>
2
+ <s-grid gap="base">
3
+ <s-grid gap="small-200">
4
+ <s-grid gridTemplateColumns="1fr auto auto" gap="small-300" alignItems="center">
5
+ <s-heading>Setup Guide</s-heading>
6
+ <s-button
7
+ accessibilityLabel="Dismiss Guide"
8
+ variant="tertiary"
9
+ tone="neutral"
10
+ icon="x"
11
+ ></s-button>
12
+ <s-button
13
+ accessibilityLabel="Toggle setup guide"
14
+ variant="tertiary"
15
+ tone="neutral"
16
+ icon="chevron-up"
17
+ ></s-button>
18
+ </s-grid>
19
+ <s-paragraph>
20
+ Use this personalized guide to get your store ready for sales.
21
+ </s-paragraph>
22
+ <s-paragraph tone="subdued">0 out of 3 steps completed</s-paragraph>
23
+ </s-grid>
24
+ <s-box borderRadius="base" border="base" background="base">
25
+ <s-box>
26
+ <s-grid gridTemplateColumns="1fr auto" gap="base" padding="small">
27
+ <s-checkbox
28
+ label="Upload an image for your puzzle"
29
+ ></s-checkbox>
30
+ <s-button
31
+ accessibilityLabel="Toggle step 1 details"
32
+ variant="tertiary"
33
+ icon="chevron-up"
34
+ ></s-button>
35
+ </s-grid>
36
+ <s-box padding="small" paddingBlockStart="none">
37
+ <s-box padding="base" background="subdued" borderRadius="base">
38
+ <s-grid gridTemplateColumns="1fr auto" gap="base" alignItems="center">
39
+ <s-grid gap="small-200">
40
+ <s-paragraph>
41
+ Start by uploading a high-quality image that will be used to create your
42
+ puzzle. For best results, use images that are at least 1200x1200 pixels.
43
+ </s-paragraph>
44
+ <s-stack direction="inline" gap="small-200">
45
+ <s-button variant="primary">
46
+ Upload image
47
+ </s-button>
48
+ <s-button variant="tertiary" tone="neutral"> Image requirements </s-button>
49
+ </s-stack>
50
+ </s-grid>
51
+ <s-box maxBlockSize="80px" maxInlineSize="80px">
52
+ <s-image
53
+ src="https://cdn.shopify.com/s/assets/admin/checkout/settings-customizecart-705f57c725ac05be5a34ec20c05b94298cb8afd10aac7bd9c7ad02030f48cfa0.svg"
54
+ alt="Customize checkout illustration"
55
+ ></s-image>
56
+ </s-box>
57
+ </s-grid>
58
+ </s-box>
59
+ </s-box>
60
+ </s-box>
61
+ <s-divider></s-divider>
62
+ <s-box>
63
+ <s-grid gridTemplateColumns="1fr auto" gap="base" padding="small">
64
+ <s-checkbox
65
+ label="Choose a puzzle template"
66
+ ></s-checkbox>
67
+ <s-button
68
+ accessibilityLabel="Toggle step 2 details"
69
+ variant="tertiary"
70
+ icon="chevron-down"
71
+ ></s-button>
72
+ </s-grid>
73
+ <s-box padding="small" paddingBlockStart="none" style="display: none;"></s-box>
74
+ </s-box>
75
+ <s-divider></s-divider>
76
+ <s-box>
77
+ <s-grid gridTemplateColumns="1fr auto" gap="base" padding="small">
78
+ <s-checkbox
79
+ label="Customize puzzle piece shapes"
80
+ ></s-checkbox>
81
+ <s-button
82
+ accessibilityLabel="Toggle step 3 details"
83
+ variant="tertiary"
84
+ icon="chevron-down"
85
+ ></s-button>
86
+ </s-grid>
87
+ <s-box padding="small" paddingBlockStart="none" style="display: none;"></s-box>
88
+ </s-box>
89
+ </s-box>
90
+ </s-grid>
91
+ </s-section>
@@ -6,10 +6,10 @@ const data: ReferenceEntityTemplateSchema = {
6
6
  'Manage objects efficiently with dynamic table actions.',
7
7
  description: `The index layout lets merchants view and manage all their objects at once in a table format. They can filter, sort and do quick actions on their objects. To prevent tables from becoming visually cluttered, reveal actions only when the row is hovered over or selected
8
8
 
9
- | Used to | Examples |
10
- | -------- | ------- |
11
- | View all objects at once | Products, orders, customers, discounts |
12
- | Perform bulk actions | Delete products, pause/activate campaigns |
9
+ | Used to | Examples |
10
+ | --- | --- |
11
+ | View all objects at once | Products, orders, customers, discounts |
12
+ | Perform bulk actions | Delete products, pause/activate campaigns |
13
13
 
14
14
  ![Preview of the index pattern](/assets/templated-apis-screenshots/admin/patterns/index-example.png)
15
15
 
@@ -47,6 +47,7 @@ const data: ReferenceEntityTemplateSchema = {
47
47
  </style>`,
48
48
  isVisualComponent: true,
49
49
  category: 'Patterns',
50
+ subCategory: 'Templates',
50
51
  thumbnail: '/assets/templated-apis-screenshots/admin/patterns/index.png',
51
52
  defaultExample: {
52
53
  codeblock: {
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.16.0 **/
1
+ /** VERSION: 1.18.0 **/
2
2
 
3
3
  /* eslint-disable @typescript-eslint/ban-types */
4
4
 
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.16.0 **/
1
+ /** VERSION: 1.18.0 **/
2
2
 
3
3
  /* eslint-disable @typescript-eslint/ban-types */
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6041,8 +6041,17 @@ export type RequiredAlignedModalProps = Required<ModalProps$1>;
6041
6041
  export interface ModalProps
6042
6042
  extends Pick<
6043
6043
  RequiredAlignedModalProps,
6044
- 'accessibilityLabel' | 'heading' | 'padding' | 'size'
6044
+ | 'accessibilityLabel'
6045
+ | 'heading'
6046
+ | 'padding'
6047
+ | 'size'
6048
+ | 'hideOverlay'
6049
+ | 'showOverlay'
6050
+ | 'toggleOverlay'
6045
6051
  > {
6052
+ /**
6053
+ * Adjust the size of the Modal.
6054
+ */
6046
6055
  size: Extract<
6047
6056
  ModalProps$1['size'],
6048
6057
  'small-100' | 'small' | 'base' | 'large' | 'large-100'
@@ -6129,13 +6138,13 @@ export interface ModalJSXProps
6129
6138
  *
6130
6139
  * Only a `Button` with a variant of `primary` is allowed.
6131
6140
  */
6132
- primaryAction: ComponentChild;
6141
+ primaryAction?: ComponentChild;
6133
6142
  /**
6134
6143
  * The secondary actions to perform.
6135
6144
  *
6136
6145
  * Only `ButtonGroup` or `Button` with a variant of `secondary` or `auto` are allowed.
6137
6146
  */
6138
- secondaryActions: ComponentChild;
6147
+ secondaryActions?: ComponentChild;
6139
6148
  onHide?: ((event: CallbackEvent<typeof tagName$z>) => void) | null;
6140
6149
  onShow?: ((event: CallbackEvent<typeof tagName$z>) => void) | null;
6141
6150
  onAfterHide?: ((event: CallbackEvent<typeof tagName$z>) => void) | null;
@@ -7853,13 +7862,13 @@ export interface ModalSlots {
7853
7862
  *
7854
7863
  * Only a `Button` with a variant of `primary` is allowed.
7855
7864
  */
7856
- 'primary-action': HTMLElement;
7865
+ 'primary-action'?: HTMLElement;
7857
7866
  /**
7858
7867
  * The secondary actions to perform.
7859
7868
  *
7860
7869
  * Only `ButtonGroup` or `Button` with a variant of `secondary` or `auto` are allowed.
7861
7870
  */
7862
- 'secondary-actions': HTMLElement;
7871
+ 'secondary-actions'?: HTMLElement;
7863
7872
  }
7864
7873
 
7865
7874
  export interface MoneyFieldEvents {
@@ -88,7 +88,6 @@ export type {
88
88
  CustomSale,
89
89
  Address,
90
90
  SellingPlan,
91
- SellingPlanDeliveryInterval,
92
91
  SetLineItemSellingPlanInput,
93
92
  } from './types/cart';
94
93
 
@@ -1,5 +1,6 @@
1
1
  import {CountryCode} from './country-code';
2
2
  import {TaxLine} from './tax-line';
3
+ import {DiscountAllocation} from './discount-allocation';
3
4
 
4
5
  export interface Cart {
5
6
  /**
@@ -40,6 +41,7 @@ export interface LineItem {
40
41
  variantId?: number;
41
42
  productId?: number;
42
43
  discounts: Discount[];
44
+ discountAllocations?: DiscountAllocation[];
43
45
  taxable: boolean;
44
46
  taxLines: TaxLine[];
45
47
  sku?: string;
@@ -75,20 +77,13 @@ export interface SellingPlan {
75
77
  /**
76
78
  * The interval of the selling plan. (DAY, WEEK, MONTH, YEAR).
77
79
  */
78
- deliveryInterval?: SellingPlanDeliveryInterval;
80
+ deliveryInterval?: string;
79
81
  /**
80
82
  * The number of intervals between deliveries.
81
83
  */
82
84
  deliveryIntervalCount?: number;
83
85
  }
84
86
 
85
- export enum SellingPlanDeliveryInterval {
86
- Day = 'DAY',
87
- Week = 'WEEK',
88
- Month = 'MONTH',
89
- Year = 'YEAR',
90
- }
91
-
92
87
  export interface Discount {
93
88
  amount: number;
94
89
  currency?: string;
@@ -173,16 +168,7 @@ export interface SetLineItemSellingPlanInput {
173
168
  sellingPlanId: number;
174
169
  /**
175
170
  * The name of the selling plan to apply to the line item.
176
- */
177
- sellingPlanName: string;
178
- /**
179
- * The interval of the selling plan. (DAY, WEEK, MONTH, YEAR).
180
- * If not provided, POS will try to fetch it from the server after syncing the cart.
181
- */
182
- sellingPlanDeliveryInterval?: SellingPlanDeliveryInterval;
183
- /**
184
- * The number of intervals between deliveries.
185
171
  * If not provided, POS will try to fetch it from the server after syncing the cart.
186
172
  */
187
- sellingPlanDeliveryIntervalCount?: number;
173
+ sellingPlanName?: string;
188
174
  }
@@ -0,0 +1,5 @@
1
+ import type {MoneyV2} from './money';
2
+
3
+ export interface DiscountAllocation {
4
+ allocatedAmount: MoneyV2;
5
+ }
@@ -2,3 +2,8 @@ export interface Money {
2
2
  amount: number;
3
3
  currency: string;
4
4
  }
5
+
6
+ export interface MoneyV2 {
7
+ amount: string;
8
+ currencyCode: string;
9
+ }