@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.
- 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/ButtonGroup.doc.d.ts.map +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/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/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- 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/examples/default.html +2 -2
- 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/calloutCard.html +2 -2
- 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/emptyState.html +2 -2
- package/src/surfaces/admin/components/patterns/examples/homepage.html +5 -14
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +7 -16
- package/src/surfaces/admin/components/patterns/examples/index.html +6 -12
- package/src/surfaces/admin/components/patterns/examples/index.jsx +6 -13
- 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/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
|
@@ -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
|
-
| '
|
|
33
|
-
| '
|
|
34
|
-
| '
|
|
35
|
-
| '
|
|
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
|
-
| '
|
|
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
|
-
| '
|
|
64
|
-
| '
|
|
65
|
-
| '
|
|
66
|
-
| '
|
|
67
|
-
| '
|
|
68
|
-
| '
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"PosBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAkCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -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 {
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"TimeField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TimeField/TimeField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAkCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -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};
|