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

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 (213) hide show
  1. package/build/ts/shared.d.ts +24 -4
  2. package/build/ts/shared.d.ts.map +1 -1
  3. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  4. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  5. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  6. package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
  7. package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
  8. package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
  9. package/build/ts/surfaces/admin/components/Box.d.ts +8 -1
  10. package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
  11. package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
  12. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +14 -2
  13. package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
  14. package/build/ts/surfaces/admin/components/Chip.d.ts +1 -1
  15. package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
  16. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
  17. package/build/ts/surfaces/admin/components/Clickable.d.ts +8 -1
  18. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -1
  20. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
  21. package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts +2 -2
  22. package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
  23. package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
  24. package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
  25. package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
  26. package/build/ts/surfaces/admin/components/DropZone.d.ts +1 -1
  27. package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
  28. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  29. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
  30. package/build/ts/surfaces/admin/components/Grid.d.ts +20 -1
  31. package/build/ts/surfaces/admin/components/GridItem.d.ts +8 -1
  32. package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
  33. package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
  34. package/build/ts/surfaces/admin/components/Image.d.ts +8 -1
  35. package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
  36. package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
  37. package/build/ts/surfaces/admin/components/Menu.d.ts +1 -1
  38. package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts +4 -0
  39. package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -0
  40. package/build/ts/surfaces/admin/components/Modal.d.ts +1 -1
  41. package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -3
  42. package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -3
  43. package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
  44. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
  45. package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
  46. package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
  47. package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
  48. package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
  49. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
  50. package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
  51. package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
  52. package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
  53. package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
  54. package/build/ts/surfaces/admin/components/Stack.d.ts +14 -1
  55. package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
  56. package/build/ts/surfaces/admin/components/Table.d.ts +3 -2
  57. package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
  58. package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
  59. package/build/ts/surfaces/admin/components/TableHeader.d.ts +3 -2
  60. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  61. package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
  62. package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
  63. package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
  64. package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
  65. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
  66. package/build/ts/surfaces/admin/components/Tooltip.d.ts +1 -1
  67. package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
  68. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
  69. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
  70. package/build/ts/surfaces/admin/components/shared.d.ts +245 -222
  71. package/build/ts/surfaces/admin/docs-types.d.ts +4 -0
  72. package/build/ts/surfaces/admin/docs-types.d.ts.map +1 -1
  73. package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +2 -2
  74. package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -1
  75. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +29 -29
  76. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
  77. package/build/ts/surfaces/customer-account/api/shared.d.ts +6 -6
  78. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
  79. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +6 -6
  80. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
  81. package/build/ts/surfaces/customer-account/api.d.ts +1 -1
  82. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
  83. package/build/ts/surfaces/customer-account/preact/subscription.d.ts +2 -2
  84. package/build/ts/surfaces/customer-account/preact/subscription.d.ts.map +1 -1
  85. package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +1 -1
  86. package/build/ts/surfaces/point-of-sale/components/Box.d.ts +82 -8
  87. package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +111 -30
  88. package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts +4 -0
  89. package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -0
  90. package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
  91. package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +1 -4
  92. package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +82 -8
  93. package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +1 -38
  94. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts +4 -0
  95. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -0
  96. package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
  97. package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +321 -150
  98. package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +2 -0
  99. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +2 -0
  100. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.block.render.d.ts +1 -0
  101. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +2 -0
  102. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.block.render.d.ts +1 -0
  103. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +2 -0
  104. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.block.render.d.ts +1 -0
  105. package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +2 -0
  106. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +2 -0
  107. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.block.render.d.ts +1 -0
  108. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +2 -0
  109. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.block.render.d.ts +1 -0
  110. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +2 -0
  111. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.block.render.d.ts +1 -0
  112. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +2 -0
  113. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.block.render.d.ts +1 -0
  114. package/build/tsconfig.tsbuildinfo +1 -1
  115. package/package.json +2 -2
  116. package/src/docs/shared/components/Modal.ts +1 -1
  117. package/src/shared.ts +25 -4
  118. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  119. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  120. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  121. package/src/surfaces/admin/components/Avatar.d.ts +1 -1
  122. package/src/surfaces/admin/components/Badge.d.ts +1 -1
  123. package/src/surfaces/admin/components/Banner.d.ts +1 -1
  124. package/src/surfaces/admin/components/Box.d.ts +8 -1
  125. package/src/surfaces/admin/components/Button.d.ts +1 -1
  126. package/src/surfaces/admin/components/ButtonGroup/examples/default.html +2 -2
  127. package/src/surfaces/admin/components/ButtonGroup.d.ts +14 -2
  128. package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
  129. package/src/surfaces/admin/components/Chip.d.ts +1 -1
  130. package/src/surfaces/admin/components/Choice.d.ts +1 -1
  131. package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
  132. package/src/surfaces/admin/components/Clickable.d.ts +8 -1
  133. package/src/surfaces/admin/components/ClickableChip.d.ts +1 -1
  134. package/src/surfaces/admin/components/ColorField.d.ts +3 -1
  135. package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
  136. package/src/surfaces/admin/components/DateField.d.ts +1 -1
  137. package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
  138. package/src/surfaces/admin/components/Divider.d.ts +1 -1
  139. package/src/surfaces/admin/components/DropZone.d.ts +1 -1
  140. package/src/surfaces/admin/components/EmailField.d.ts +1 -1
  141. package/src/surfaces/admin/components/Form.d.ts +1 -1
  142. package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
  143. package/src/surfaces/admin/components/Grid.d.ts +20 -1
  144. package/src/surfaces/admin/components/GridItem.d.ts +8 -1
  145. package/src/surfaces/admin/components/Heading.d.ts +1 -1
  146. package/src/surfaces/admin/components/Icon.d.ts +1 -1
  147. package/src/surfaces/admin/components/Image.d.ts +8 -1
  148. package/src/surfaces/admin/components/Link.d.ts +1 -1
  149. package/src/surfaces/admin/components/ListItem.d.ts +1 -1
  150. package/src/surfaces/admin/components/Menu.d.ts +1 -1
  151. package/src/surfaces/admin/components/Modal/examples/default.html +23 -0
  152. package/src/surfaces/admin/components/Modal.d.ts +1 -1
  153. package/src/surfaces/admin/components/MoneyField.d.ts +1 -3
  154. package/src/surfaces/admin/components/NumberField.d.ts +1 -3
  155. package/src/surfaces/admin/components/Option.d.ts +1 -1
  156. package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
  157. package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
  158. package/src/surfaces/admin/components/Page.d.ts +1 -1
  159. package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
  160. package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
  161. package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
  162. package/src/surfaces/admin/components/SearchField.d.ts +1 -1
  163. package/src/surfaces/admin/components/Section.d.ts +1 -1
  164. package/src/surfaces/admin/components/Select.d.ts +1 -1
  165. package/src/surfaces/admin/components/Spinner.d.ts +1 -1
  166. package/src/surfaces/admin/components/Stack.d.ts +14 -1
  167. package/src/surfaces/admin/components/Switch.d.ts +1 -1
  168. package/src/surfaces/admin/components/Table.d.ts +3 -2
  169. package/src/surfaces/admin/components/TableBody.d.ts +1 -1
  170. package/src/surfaces/admin/components/TableCell.d.ts +1 -1
  171. package/src/surfaces/admin/components/TableHeader.d.ts +3 -2
  172. package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  173. package/src/surfaces/admin/components/TableRow.d.ts +1 -1
  174. package/src/surfaces/admin/components/Text.d.ts +1 -1
  175. package/src/surfaces/admin/components/TextArea.d.ts +1 -1
  176. package/src/surfaces/admin/components/TextField.d.ts +1 -1
  177. package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
  178. package/src/surfaces/admin/components/Tooltip.d.ts +1 -1
  179. package/src/surfaces/admin/components/URLField.d.ts +1 -1
  180. package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
  181. package/src/surfaces/admin/components/patterns/examples/calloutCard.html +2 -2
  182. package/src/surfaces/admin/components/patterns/examples/details.html +5 -11
  183. package/src/surfaces/admin/components/patterns/examples/details.jsx +4 -13
  184. package/src/surfaces/admin/components/patterns/examples/emptyState.html +2 -2
  185. package/src/surfaces/admin/components/patterns/examples/homepage.html +5 -14
  186. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +7 -16
  187. package/src/surfaces/admin/components/patterns/examples/index.html +6 -12
  188. package/src/surfaces/admin/components/patterns/examples/index.jsx +6 -13
  189. package/src/surfaces/admin/components/patterns/examples/indexTable.html +4 -9
  190. package/src/surfaces/admin/components/patterns/examples/mediaCard.html +1 -1
  191. package/src/surfaces/admin/components/patterns/examples/settings.html +1 -2
  192. package/src/surfaces/admin/components/patterns/examples/settings.jsx +2 -6
  193. package/src/surfaces/admin/components/shared.d.ts +245 -222
  194. package/src/surfaces/admin/components.d.ts +293 -228
  195. package/src/surfaces/admin/docs-types.ts +8 -1
  196. package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +2 -2
  197. package/src/surfaces/customer-account/api/order-status/order-status.ts +29 -29
  198. package/src/surfaces/customer-account/api/shared.ts +6 -6
  199. package/src/surfaces/customer-account/api/standard-api/standard-api.ts +6 -6
  200. package/src/surfaces/customer-account/api.ts +1 -1
  201. package/src/surfaces/customer-account/preact/subscription.ts +3 -3
  202. package/src/surfaces/point-of-sale/components/Badge.d.ts +1 -1
  203. package/src/surfaces/point-of-sale/components/Box.d.ts +82 -8
  204. package/src/surfaces/point-of-sale/components/Icon.d.ts +111 -30
  205. package/src/surfaces/point-of-sale/components/PosBlock/examples/default.html +11 -0
  206. package/src/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
  207. package/src/surfaces/point-of-sale/components/SearchField.d.ts +1 -4
  208. package/src/surfaces/point-of-sale/components/Stack.d.ts +82 -8
  209. package/src/surfaces/point-of-sale/components/Tile.d.ts +1 -38
  210. package/src/surfaces/point-of-sale/components/TimeField/examples/default.html +12 -0
  211. package/src/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
  212. package/src/surfaces/point-of-sale/components/components-shared.d.ts +321 -150
  213. package/src/surfaces/point-of-sale/components.d.ts +1041 -530
@@ -22,50 +22,131 @@ export interface BaseElementProps<TClass = HTMLElement> {
22
22
  declare const tagName = 's-icon';
23
23
  export type SupportedIconNames = Extract<
24
24
  IconProps['type'],
25
+ | 'alert-circle'
26
+ | 'apps'
25
27
  | 'arrow-down'
26
28
  | 'arrow-left'
27
29
  | 'arrow-right'
28
30
  | 'arrow-up'
29
- | 'apps'
30
- | 'analytics'
31
31
  | 'backspace'
32
- | 'call'
33
- | 'cancel'
34
- | 'cash'
35
- | 'checkmark'
32
+ | 'barcode'
33
+ | 'battery-low'
34
+ | 'bolt-filled'
35
+ | 'bullet'
36
+ | 'camera-flip'
37
+ | 'caret-down'
38
+ | 'caret-up'
36
39
  | 'cart'
40
+ | 'cart-down'
37
41
  | 'cart-filled'
42
+ | 'cart-send'
43
+ | 'cart-up'
44
+ | 'chart-line'
45
+ | 'chart-vertical'
38
46
  | 'check'
39
- | 'check-circle'
40
- | 'alert-circle'
41
- | 'info'
42
- | 'phone'
43
- | 'edit'
44
- | 'delete'
45
- | 'settings'
46
- | 'search'
47
- | 'print'
48
- | 'refresh'
49
- | 'help'
50
- | 'plus'
51
- | 'minus'
52
- | 'email'
53
- | 'gift-card'
54
- | 'discount'
55
- | 'receipt'
47
+ | 'check-circle-filled'
56
48
  | 'chevron-down'
57
49
  | 'chevron-left'
58
50
  | 'chevron-right'
59
51
  | 'chevron-up'
60
- | 'menu'
52
+ | 'circle'
53
+ | 'clipboard-checklist'
54
+ | 'clock'
55
+ | 'collection'
56
+ | 'credit-card'
57
+ | 'credit-card-reader'
58
+ | 'delete'
59
+ | 'delivery'
60
+ | 'desktop'
61
+ | 'disabled'
62
+ | 'disabled-filled'
63
+ | 'discount'
64
+ | 'discount-add'
65
+ | 'discount-automatic'
66
+ | 'discount-code'
67
+ | 'discount-remove'
68
+ | 'drag-handle'
69
+ | 'drawer'
70
+ | 'duplicate'
71
+ | 'edit'
72
+ | 'email'
73
+ | 'exchange'
74
+ | 'external'
75
+ | 'flag'
76
+ | 'gift-card'
77
+ | 'graduation-hat'
78
+ | 'grid'
79
+ | 'hide-filled'
61
80
  | 'home'
81
+ | 'home-filled'
82
+ | 'image'
83
+ | 'images'
84
+ | 'info'
85
+ | 'inventory'
86
+ | 'inventory-edit'
87
+ | 'inventory-list'
88
+ | 'inventory-transfer'
89
+ | 'keyboard-hide'
90
+ | 'keypad'
91
+ | 'link'
92
+ | 'list-bulleted'
93
+ | 'list-bulleted-filled'
94
+ | 'live'
95
+ | 'live-critical'
96
+ | 'live-none'
62
97
  | 'location'
63
- | 'time'
64
- | 'calendar'
65
- | 'products'
66
- | 'orders'
67
- | 'customers'
68
- | 'collection'
98
+ | 'lock'
99
+ | 'maximize'
100
+ | 'menu'
101
+ | 'menu-filled'
102
+ | 'menu-horizontal'
103
+ | 'minimize'
104
+ | 'minus'
105
+ | 'mobile'
106
+ | 'money'
107
+ | 'money-split'
108
+ | 'note'
109
+ | 'order'
110
+ | 'order-draft'
111
+ | 'order-filled'
112
+ | 'package'
113
+ | 'package-cancel'
114
+ | 'package-reassign'
115
+ | 'payment'
116
+ | 'person'
117
+ | 'person-add'
118
+ | 'person-filled'
119
+ | 'phablet'
120
+ | 'phone-out'
121
+ | 'play-circle'
122
+ | 'plus'
123
+ | 'point-of-sale'
124
+ | 'point-of-sale-register'
125
+ | 'print'
126
+ | 'product'
127
+ | 'product-filled'
128
+ | 'profile'
129
+ | 'question-circle-filled'
130
+ | 'receipt'
131
+ | 'refresh'
132
+ | 'return'
133
+ | 'scan-qr-code'
134
+ | 'search'
135
+ | 'send'
136
+ | 'settings'
137
+ | 'shipping-label-cancel'
138
+ | 'sort'
139
+ | 'star-circle'
140
+ | 'star-filled'
141
+ | 'store'
142
+ | 'tablet'
143
+ | 'transaction-fee-add'
144
+ | 'unlock'
145
+ | 'variant'
146
+ | 'view'
147
+ | 'wallet'
148
+ | 'x'
149
+ | 'x-circle'
69
150
  >;
70
151
  export interface IconJSXProps
71
152
  extends Pick<IconProps, 'tone' | 'color' | 'size'> {
@@ -0,0 +1,11 @@
1
+ <s-pos-block>
2
+ <s-button
3
+ slot="secondary-actions"
4
+ onClick={onActionClick}
5
+ >
6
+ Action
7
+ </s-button>
8
+ <s-box padding="base">
9
+ <s-text>Label</s-text>
10
+ </s-box>
11
+ </s-pos-block>
@@ -0,0 +1,64 @@
1
+ /** VERSION: undefined **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
+ /// <reference lib="DOM" />
11
+ import type {
12
+ SectionProps,
13
+ Key,
14
+ Ref,
15
+ ComponentChild,
16
+ } from './components-shared.d.ts';
17
+
18
+ export type ComponentChildren = any;
19
+ /**
20
+ * Used when an element does not have children.
21
+ */
22
+ export interface BaseElementProps<TClass = HTMLElement> {
23
+ key?: Key;
24
+ ref?: Ref<TClass>;
25
+ slot?: Lowercase<string>;
26
+ }
27
+ /**
28
+ * Used when an element has children.
29
+ */
30
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
31
+ extends BaseElementProps<TClass> {
32
+ children?: ComponentChildren;
33
+ }
34
+
35
+ declare const tagName = 's-pos-block';
36
+ export interface PosBlockJSXProps extends Pick<SectionProps, 'children'> {
37
+ secondaryActions?: ComponentChild;
38
+ /**
39
+ * Adds title text displayed at the top left of the section
40
+ *
41
+ * **Mobile surfaces:** Uses the standard POS Design System heading style for a section (not h2).
42
+ *
43
+ * @default undefined
44
+ */
45
+ heading?: string;
46
+ }
47
+ declare global {
48
+ interface HTMLElementTagNameMap {
49
+ [tagName]: PosBlockJSXProps;
50
+ }
51
+ }
52
+ declare module 'preact' {
53
+ namespace createElement.JSX {
54
+ interface IntrinsicElements {
55
+ [tagName]: Omit<PosBlockJSXProps, 'secondaryActions'> &
56
+ BaseElementPropsWithChildren<
57
+ Omit<PosBlockJSXProps, 'secondaryActions'>
58
+ >;
59
+ }
60
+ }
61
+ }
62
+
63
+ export {tagName};
64
+ export type {PosBlockJSXProps};
@@ -38,10 +38,7 @@ export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
38
38
 
39
39
  declare const tagName = 's-search-field';
40
40
  export interface SearchFieldJSXProps
41
- extends Pick<
42
- SearchFieldProps,
43
- 'disabled' | 'defaultValue' | 'placeholder' | 'value'
44
- > {
41
+ extends Pick<SearchFieldProps, 'disabled' | 'placeholder' | 'value'> {
45
42
  onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
46
43
  onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
47
44
  onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
@@ -8,7 +8,14 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {StackProps, Key, Ref} from './components-shared.d.ts';
11
+ import type {
12
+ StackProps,
13
+ SizeKeyword,
14
+ MaybeAllValuesShorthandProperty,
15
+ MaybeTwoValuesShorthandProperty,
16
+ Key,
17
+ Ref,
18
+ } from './components-shared.d.ts';
12
19
 
13
20
  export type ComponentChildren = any;
14
21
  /**
@@ -28,6 +35,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
28
35
  }
29
36
 
30
37
  declare const tagName = 's-stack';
38
+ export type PaddingKeyword = SizeKeyword | 'none';
31
39
  export type PickedProps = Pick<
32
40
  StackProps,
33
41
  | 'alignItems'
@@ -42,16 +50,82 @@ export type PickedProps = Pick<
42
50
  | 'minInlineSize'
43
51
  | 'inlineSize'
44
52
  | 'justifyContent'
45
- | 'padding'
46
- | 'paddingBlock'
47
- | 'paddingBlockStart'
48
- | 'paddingBlockEnd'
49
- | 'paddingInline'
50
- | 'paddingInlineStart'
51
- | 'paddingInlineEnd'
52
53
  | 'rowGap'
53
54
  >;
54
55
  export interface StackJSXProps extends PickedProps {
56
+ /**
57
+ * Adjust the padding of all edges.
58
+ *
59
+ * [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
60
+ * supported. Note that, contrary to the CSS, it uses flow-relative values and the order is:
61
+ *
62
+ * - 4 values: `block-start inline-end block-end inline-start`
63
+ * - 3 values: `block-start inline block-end`
64
+ * - 2 values: `block inline`
65
+ *
66
+ * For example:
67
+ * - `large` means block-start, inline-end, block-end and inline-start paddings are `large`.
68
+ * - `large none` means block-start and block-end paddings are `large`, inline-start and inline-end paddings are `none`.
69
+ * - `large none large` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `none`.
70
+ * - `large none large small` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `small`.
71
+ *
72
+ * A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
73
+ *
74
+ * @default 'none'
75
+ */
76
+ padding?: MaybeAllValuesShorthandProperty<PaddingKeyword>;
77
+ /**
78
+ * Adjust the block-padding.
79
+ *
80
+ * - `large none` means block-start padding is `large`, block-end padding is `none`.
81
+ *
82
+ * This overrides the block value of `padding`.
83
+ *
84
+ * @default '' - meaning no override
85
+ */
86
+ paddingBlock?: MaybeTwoValuesShorthandProperty<PaddingKeyword | ''>;
87
+ /**
88
+ * Adjust the block-start padding.
89
+ *
90
+ * This overrides the block-start value of `paddingBlock`.
91
+ *
92
+ * @default '' - meaning no override
93
+ */
94
+ paddingBlockStart?: PaddingKeyword | '';
95
+ /**
96
+ * Adjust the block-end padding.
97
+ *
98
+ * This overrides the block-end value of `paddingBlock`.
99
+ *
100
+ * @default '' - meaning no override
101
+ */
102
+ paddingBlockEnd?: PaddingKeyword | '';
103
+ /**
104
+ * Adjust the inline padding.
105
+ *
106
+ * - `large none` means inline-start padding is `large`, inline-end padding is `none`.
107
+ *
108
+ * This overrides the inline value of `padding`.
109
+ *
110
+ * @default '' - meaning no override
111
+ */
112
+ paddingInline?: MaybeTwoValuesShorthandProperty<PaddingKeyword | ''>;
113
+ /**
114
+ * Adjust the inline-start padding.
115
+ *
116
+ * This overrides the inline-start value of `paddingInline`.
117
+ *
118
+ * @default '' - meaning no override
119
+ */
120
+ paddingInlineStart?: PaddingKeyword | '';
121
+ /**
122
+ * Adjust the inline-end padding.
123
+ *
124
+ * This overrides the inline-end value of `paddingInline`.
125
+ *
126
+ * @default '' - meaning no override
127
+ */
128
+ paddingInlineEnd?: PaddingKeyword | '';
55
129
  children?: ComponentChildren;
56
130
  /**
57
131
  * Adjust the block size.
@@ -8,12 +8,7 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {
12
- Key,
13
- Ref,
14
- BaseClickableProps,
15
- GlobalProps,
16
- } from './components-shared.d.ts';
11
+ import type {TileProps, Key, Ref} from './components-shared.d.ts';
17
12
 
18
13
  export type ComponentChildren = any;
19
14
  /**
@@ -41,38 +36,6 @@ export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
41
36
  target: HTMLElementTagNameMap[T] | null;
42
37
  }
43
38
 
44
- export interface TileProps
45
- extends GlobalProps,
46
- Pick<BaseClickableProps, 'onClick' | 'disabled'> {
47
- /**
48
- * The primary text displayed on the Tile.
49
- *
50
- * @default ''
51
- */
52
- heading?: string;
53
- /**
54
- * Secondary supporting text displayed below the heading.
55
- *
56
- * @default ''
57
- */
58
- subheading?: string;
59
- /**
60
- * A numeric indicator rendered within the Tile (for example, a count or a step number).
61
- *
62
- * - When provided, the indicator is displayed inside the tile.
63
- * - Intended for small integers. Implementations may clamp, truncate, or abbreviate larger values.
64
- * - Omit to render the tile without a numeric indicator.
65
- *
66
- */
67
- itemCount?: number;
68
- /**
69
- * Changes the visual appearance of the Tile.
70
- *
71
- * @default 'auto'
72
- */
73
- tone?: 'accent' | 'auto' | 'neutral';
74
- }
75
-
76
39
  declare const tagName = 's-tile';
77
40
  export interface TileJSXProps
78
41
  extends Pick<
@@ -0,0 +1,12 @@
1
+ <s-time-field
2
+ label="Time"
3
+ value="11:42"
4
+ details="Select a time">
5
+ </s-time-field>
6
+
7
+ <s-time-field
8
+ label="Time"
9
+ value="11:42"
10
+ details="Select a time"
11
+ error="Time out of range">
12
+ </s-time-field>
@@ -0,0 +1,65 @@
1
+ /** VERSION: undefined **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
+ /// <reference lib="DOM" />
11
+ import type {TimeFieldProps, Key, Ref} from './components-shared.d.ts';
12
+
13
+ export type ComponentChildren = any;
14
+ /**
15
+ * Used when an element does not have children.
16
+ */
17
+ export interface BaseElementProps<TClass = HTMLElement> {
18
+ key?: Key;
19
+ ref?: Ref<TClass>;
20
+ slot?: Lowercase<string>;
21
+ }
22
+ /**
23
+ * Used when an element has children.
24
+ */
25
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
26
+ extends BaseElementProps<TClass> {
27
+ children?: ComponentChildren;
28
+ }
29
+ export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
30
+ currentTarget: HTMLElementTagNameMap[T];
31
+ bubbles?: boolean;
32
+ cancelable?: boolean;
33
+ composed?: boolean;
34
+ detail?: any;
35
+ eventPhase: number;
36
+ target: HTMLElementTagNameMap[T] | null;
37
+ }
38
+
39
+ declare const tagName = 's-time-field';
40
+ export interface TimeFieldJSXProps
41
+ extends Pick<
42
+ TimeFieldProps,
43
+ 'id' | 'label' | 'disabled' | 'value' | 'error' | 'details'
44
+ > {
45
+ onBlur?: (event: CallbackEvent<typeof tagName>) => void | null;
46
+ onFocus?: (event: CallbackEvent<typeof tagName>) => void | null;
47
+ onInput?: (event: CallbackEvent<typeof tagName>) => void | null;
48
+ onChange?: (event: CallbackEvent<typeof tagName>) => void | null;
49
+ }
50
+ declare global {
51
+ interface HTMLElementTagNameMap {
52
+ [tagName]: TimeFieldJSXProps;
53
+ }
54
+ }
55
+ declare module 'preact' {
56
+ namespace createElement.JSX {
57
+ interface IntrinsicElements {
58
+ [tagName]: TimeFieldJSXProps &
59
+ BaseElementPropsWithChildren<TimeFieldJSXProps>;
60
+ }
61
+ }
62
+ }
63
+
64
+ export {tagName};
65
+ export type {TimeFieldJSXProps};