@shopify/ui-extensions 2025.10.0-rc.34 → 2025.10.0-rc.36
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/docs/shared/components/MoneyField.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 +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +6 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +2 -11
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +6 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker.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 +1 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -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 +1 -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/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +20 -10
- package/build/ts/surfaces/admin/components/Modal.d.ts +231 -0
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- 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 +13 -5
- 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/QueryContainer.doc.d.ts.map +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 +21 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
- 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 +1 -1
- 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/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +20 -13
- 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/appCard.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/shared.d.ts +45 -2
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +2 -0
- 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/types/cart.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/MoneyField.ts +1 -2
- 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 +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/ButtonGroup.d.ts +1 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +6 -1
- package/src/surfaces/admin/components/Choice.d.ts +2 -11
- package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +1 -1
- package/src/surfaces/admin/components/ClickableChip.d.ts +6 -1
- package/src/surfaces/admin/components/ColorField.d.ts +1 -1
- package/src/surfaces/admin/components/ColorPicker.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 +1 -1
- package/src/surfaces/admin/components/GridItem.d.ts +1 -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 +1 -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 +20 -10
- package/src/surfaces/admin/components/Modal.d.ts +231 -0
- package/src/surfaces/admin/components/MoneyField/examples/default.html +0 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- 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/examples/default.html +3 -3
- package/src/surfaces/admin/components/Page.d.ts +13 -5
- 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/Popover/examples/default.html +2 -2
- 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 +21 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +4 -2
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table.d.ts +1 -1
- 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 +1 -1
- 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 +20 -13
- 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/appCard.html +30 -0
- package/src/surfaces/admin/components/patterns/examples/calloutCard.html +35 -0
- package/src/surfaces/admin/components/patterns/examples/details.html +11 -5
- package/src/surfaces/admin/components/patterns/examples/details.jsx +9 -7
- package/src/surfaces/admin/components/patterns/examples/emptyState.html +27 -0
- package/src/surfaces/admin/components/patterns/examples/homepage.html +24 -48
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +21 -49
- package/src/surfaces/admin/components/patterns/examples/index.html +21 -23
- package/src/surfaces/admin/components/patterns/examples/index.jsx +19 -24
- package/src/surfaces/admin/components/patterns/examples/indexTable.html +132 -0
- package/src/surfaces/admin/components/patterns/examples/interstitialNav.html +72 -0
- package/src/surfaces/admin/components/patterns/examples/mediaCard.html +23 -0
- package/src/surfaces/admin/components/patterns/examples/metricsCard.html +51 -0
- package/src/surfaces/admin/components/patterns/examples/settings.html +90 -49
- package/src/surfaces/admin/components/patterns/examples/settings.jsx +92 -47
- package/src/surfaces/admin/components/patterns/examples/setupGuide.html +91 -0
- package/src/surfaces/admin/components/patterns/index.ab.doc.ts +5 -4
- package/src/surfaces/admin/components/shared.d.ts +45 -2
- package/src/surfaces/admin/components.d.ts +481 -209
- package/src/surfaces/point-of-sale/api.ts +1 -0
- package/src/surfaces/point-of-sale/types/cart.ts +2 -0
- package/src/surfaces/point-of-sale/types/discount-allocation.ts +5 -0
- package/src/surfaces/point-of-sale/types/money.ts +5 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<s-button commandFor="product-options-popover">Product options</s-button>
|
|
2
2
|
|
|
3
|
-
<s-popover id="product-options-popover"
|
|
4
|
-
<s-stack direction="
|
|
3
|
+
<s-popover id="product-options-popover">
|
|
4
|
+
<s-stack direction="block">
|
|
5
5
|
<s-button variant="tertiary">Import</s-button>
|
|
6
6
|
<s-button variant="tertiary">Export</s-button>
|
|
7
7
|
</s-stack>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.18.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
9
|
import type {
|
|
10
10
|
TextFieldProps,
|
|
11
|
+
IconProps$1,
|
|
11
12
|
SelectProps$1,
|
|
12
13
|
ComponentChild,
|
|
14
|
+
IconType,
|
|
13
15
|
} from './shared.d.ts';
|
|
14
16
|
|
|
15
17
|
export type Styles = string;
|
|
@@ -116,6 +118,23 @@ declare class PreactInputElement
|
|
|
116
118
|
constructor(renderImpl: RenderImpl);
|
|
117
119
|
}
|
|
118
120
|
|
|
121
|
+
export interface IconProps
|
|
122
|
+
extends Pick<
|
|
123
|
+
IconProps$1,
|
|
124
|
+
'type' | 'tone' | 'color' | 'size' | 'interestFor'
|
|
125
|
+
> {
|
|
126
|
+
/**
|
|
127
|
+
* Specifies the type of icon that will be displayed.
|
|
128
|
+
*/
|
|
129
|
+
type: '' | IconType | 'empty';
|
|
130
|
+
tone: Extract<
|
|
131
|
+
IconProps$1['tone'],
|
|
132
|
+
'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'
|
|
133
|
+
>;
|
|
134
|
+
color: Extract<IconProps$1['color'], 'base' | 'subdued'>;
|
|
135
|
+
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
136
|
+
}
|
|
137
|
+
|
|
119
138
|
export interface SelectProps
|
|
120
139
|
extends Omit<PreactInputProps, 'value'>,
|
|
121
140
|
Required<
|
|
@@ -133,6 +152,7 @@ export interface SelectProps
|
|
|
133
152
|
>
|
|
134
153
|
> {
|
|
135
154
|
value: Required<SelectProps$1>['value'];
|
|
155
|
+
icon: IconProps['type'];
|
|
136
156
|
}
|
|
137
157
|
|
|
138
158
|
declare const usedFirstOptionSymbol: unique symbol;
|
|
@@ -6,11 +6,13 @@ export type StandardComponents =
|
|
|
6
6
|
| 'Button'
|
|
7
7
|
| 'ButtonGroup'
|
|
8
8
|
| 'Checkbox'
|
|
9
|
+
| 'Chip'
|
|
9
10
|
| 'Choice'
|
|
10
11
|
| 'ChoiceList'
|
|
11
|
-
| 'Chip'
|
|
12
|
-
| 'ClickableChip'
|
|
13
12
|
| 'Clickable'
|
|
13
|
+
| 'ClickableChip'
|
|
14
|
+
| 'ColorField'
|
|
15
|
+
| 'ColorPicker'
|
|
14
16
|
| 'DateField'
|
|
15
17
|
| 'DatePicker'
|
|
16
18
|
| 'Divider'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.18.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -7,20 +7,12 @@
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
9
|
import type {
|
|
10
|
+
ComponentChild,
|
|
10
11
|
TooltipProps$1,
|
|
11
|
-
ComponentChildren,
|
|
12
12
|
InteractionProps,
|
|
13
|
-
ComponentChild,
|
|
14
13
|
} from './shared.d.ts';
|
|
15
14
|
|
|
16
|
-
export interface TooltipProps extends Required<Pick<TooltipProps$1, 'id'>> {
|
|
17
|
-
/**
|
|
18
|
-
* The content of the Tooltip.
|
|
19
|
-
*
|
|
20
|
-
* @implementation Accepts s-text, s-paragraph, and raw text content
|
|
21
|
-
*/
|
|
22
|
-
children: ComponentChildren;
|
|
23
|
-
}
|
|
15
|
+
export interface TooltipProps extends Required<Pick<TooltipProps$1, 'id'>> {}
|
|
24
16
|
|
|
25
17
|
/** Used when an element does not have children. */
|
|
26
18
|
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
@@ -100,11 +92,21 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
100
92
|
/**
|
|
101
93
|
* Shared symbols for overlay control functionality.
|
|
102
94
|
* These symbols are used by components that implement overlay behavior
|
|
103
|
-
* (like Popover, Tooltip, etc.) to communicate with the overlay control system.
|
|
95
|
+
* (like Popover, Tooltip, Modal, etc.) to communicate with the overlay control system.
|
|
96
|
+
*/
|
|
97
|
+
/**
|
|
98
|
+
* Symbol used to invoke the method for overlay commands, e.g. `--show`, `--hide`, etc.
|
|
104
99
|
*/
|
|
105
100
|
declare const overlayCommand: unique symbol;
|
|
101
|
+
/**
|
|
102
|
+
* Symbol used to track the open or closed state of the overlay.
|
|
103
|
+
*/
|
|
106
104
|
declare const overlayHidden: unique symbol;
|
|
105
|
+
/**
|
|
106
|
+
* Symbol used to track the element that opened the overlay. In some cases, like tooltips and popovers, the overlay is positioned against this element. In all cases, focus should be restored to this element when the overlay is closed.
|
|
107
|
+
*/
|
|
107
108
|
declare const overlayActivator: unique symbol;
|
|
109
|
+
declare const overlayHideFrameId: unique symbol;
|
|
108
110
|
|
|
109
111
|
declare class PreactOverlayElement extends PreactCustomElement {
|
|
110
112
|
constructor(renderImpl: RenderImpl);
|
|
@@ -113,7 +115,12 @@ declare class PreactOverlayElement extends PreactCustomElement {
|
|
|
113
115
|
/** @private */
|
|
114
116
|
[overlayActivator]: HTMLElement | null | undefined;
|
|
115
117
|
/** @private */
|
|
116
|
-
[
|
|
118
|
+
[overlayHideFrameId]?: number;
|
|
119
|
+
/** @private */
|
|
120
|
+
[overlayCommand](
|
|
121
|
+
command: InteractionProps['command'],
|
|
122
|
+
overlayActivatorEl: HTMLElement | null | undefined,
|
|
123
|
+
): void;
|
|
117
124
|
}
|
|
118
125
|
|
|
119
126
|
declare class Tooltip extends PreactOverlayElement implements TooltipProps {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<s-clickable
|
|
2
|
+
href="https://apps.shopify.com/planet"
|
|
3
|
+
border="base"
|
|
4
|
+
borderRadius="base"
|
|
5
|
+
padding="base"
|
|
6
|
+
inlineSize="100%"
|
|
7
|
+
accessibilityLabel="Download Shopify Planet"
|
|
8
|
+
>
|
|
9
|
+
<s-grid gridTemplateColumns="auto 1fr auto" alignItems="stretch" gap="base">
|
|
10
|
+
<s-thumbnail
|
|
11
|
+
size="small"
|
|
12
|
+
src="https://cdn.shopify.com/app-store/listing_images/87176a11f3714753fdc2e1fc8bbf0415/icon/CIqiqqXsiIADEAE=.png"
|
|
13
|
+
alt="Shopify Planet icon"
|
|
14
|
+
></s-thumbnail>
|
|
15
|
+
<s-box>
|
|
16
|
+
<s-heading>Shopify Planet</s-heading>
|
|
17
|
+
<s-paragraph>Free</s-paragraph>
|
|
18
|
+
<s-paragraph>
|
|
19
|
+
Offer carbon-neutral shipping and showcase your commitment.
|
|
20
|
+
</s-paragraph>
|
|
21
|
+
</s-box>
|
|
22
|
+
<s-stack justifyContent="start">
|
|
23
|
+
<s-button
|
|
24
|
+
href="https://apps.shopify.com/planet"
|
|
25
|
+
icon="download"
|
|
26
|
+
accessibilityLabel="Download Shopify Planet"
|
|
27
|
+
></s-button>
|
|
28
|
+
</s-stack>
|
|
29
|
+
</s-grid>
|
|
30
|
+
</s-clickable>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<s-section>
|
|
2
|
+
<s-grid gridTemplateColumns="1fr auto" gap="small-400" alignItems="start">
|
|
3
|
+
<s-grid
|
|
4
|
+
gridTemplateColumns="@container (inline-size <= 480px) 1fr, auto auto"
|
|
5
|
+
gap="base"
|
|
6
|
+
alignItems="center"
|
|
7
|
+
>
|
|
8
|
+
<s-grid gap="small-200">
|
|
9
|
+
<s-heading>Ready to create your custom puzzle?</s-heading>
|
|
10
|
+
<s-paragraph>
|
|
11
|
+
Start by uploading an image to your gallery or choose from one of our templates.
|
|
12
|
+
</s-paragraph>
|
|
13
|
+
<s-button-group>
|
|
14
|
+
<s-button> Upload image </s-button>
|
|
15
|
+
<s-button tone="neutral" variant="tertiary"> Browse templates </s-button>
|
|
16
|
+
</s-button-group>
|
|
17
|
+
</s-grid>
|
|
18
|
+
<s-stack alignItems="center">
|
|
19
|
+
<s-box maxInlineSize="200px" borderRadius="base" overflow="hidden">
|
|
20
|
+
<s-image
|
|
21
|
+
src="https://cdn.shopify.com/static/images/polaris/patterns/callout.png"
|
|
22
|
+
alt="Customize checkout illustration"
|
|
23
|
+
aspectRatio="1/0.5"
|
|
24
|
+
></s-image>
|
|
25
|
+
</s-box>
|
|
26
|
+
</s-stack>
|
|
27
|
+
</s-grid>
|
|
28
|
+
<s-button
|
|
29
|
+
icon="x"
|
|
30
|
+
tone="neutral"
|
|
31
|
+
variant="tertiary"
|
|
32
|
+
accessibilityLabel="Dismiss card"
|
|
33
|
+
></s-button>
|
|
34
|
+
</s-grid>
|
|
35
|
+
</s-section>
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<script src="https://cdn.shopify.com/shopifycloud/
|
|
6
|
+
<script src="https://cdn.shopify.com/shopifycloud/polaris.js"></script>
|
|
7
7
|
<title>Pattern</title>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<!-- === -->
|
|
11
11
|
<!-- Details page pattern -->
|
|
12
12
|
<!-- === -->
|
|
13
|
-
<form data-save-bar
|
|
13
|
+
<form data-save-bar>
|
|
14
14
|
<s-page>
|
|
15
15
|
<!-- === -->
|
|
16
16
|
<!-- Title Bar -->
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
maxBlockSize="40px"
|
|
106
106
|
>
|
|
107
107
|
<s-image
|
|
108
|
+
alt="16-pieces puzzle template"
|
|
108
109
|
src="https://cdn.shopify.com/static/images/polaris/patterns/16-pieces.png"
|
|
109
110
|
></s-image>
|
|
110
111
|
</s-box>
|
|
@@ -138,6 +139,7 @@
|
|
|
138
139
|
maxBlockSize="40px"
|
|
139
140
|
>
|
|
140
141
|
<s-image
|
|
142
|
+
alt="9-pieces puzzle template"
|
|
141
143
|
src="https://cdn.shopify.com/static/images/polaris/patterns/9-pieces.png"
|
|
142
144
|
></s-image>
|
|
143
145
|
</s-box>
|
|
@@ -216,8 +218,12 @@
|
|
|
216
218
|
<s-list-item>Pieces can be rotated</s-list-item>
|
|
217
219
|
<s-list-item>No time limit</s-list-item>
|
|
218
220
|
<s-list-item>
|
|
219
|
-
|
|
220
|
-
|
|
221
|
+
<s-stack direction="inline" gap="small">
|
|
222
|
+
<s-text>Current status:</s-text>
|
|
223
|
+
<s-badge color="base" tone="success">
|
|
224
|
+
Active
|
|
225
|
+
</s-badge>
|
|
226
|
+
</s-stack>
|
|
221
227
|
</s-list-item>
|
|
222
228
|
</s-unordered-list>
|
|
223
229
|
</s-section>
|
|
@@ -225,4 +231,4 @@
|
|
|
225
231
|
</s-page>
|
|
226
232
|
</form>
|
|
227
233
|
</body>
|
|
228
|
-
</html>
|
|
234
|
+
</html>
|
|
@@ -125,7 +125,7 @@ export default function DetailsPage() {
|
|
|
125
125
|
maxInlineSize="40px"
|
|
126
126
|
maxBlockSize="40px"
|
|
127
127
|
>
|
|
128
|
-
<s-image src="https://cdn.shopify.com/static/images/polaris/patterns/16-pieces.png"></s-image>
|
|
128
|
+
<s-image alt="16-pieces puzzle template" src="https://cdn.shopify.com/static/images/polaris/patterns/16-pieces.png"></s-image>
|
|
129
129
|
</s-box>
|
|
130
130
|
16-pieces puzzle
|
|
131
131
|
</s-stack>
|
|
@@ -160,7 +160,7 @@ export default function DetailsPage() {
|
|
|
160
160
|
maxInlineSize="40px"
|
|
161
161
|
maxBlockSize="40px"
|
|
162
162
|
>
|
|
163
|
-
<s-image src="https://cdn.shopify.com/static/images/polaris/patterns/9-pieces.png"></s-image>
|
|
163
|
+
<s-image alt="9-pieces puzzle template" src="https://cdn.shopify.com/static/images/polaris/patterns/9-pieces.png"></s-image>
|
|
164
164
|
</s-box>
|
|
165
165
|
9-pieces puzzle
|
|
166
166
|
</s-stack>
|
|
@@ -248,10 +248,12 @@ export default function DetailsPage() {
|
|
|
248
248
|
<s-list-item>Pieces can be rotated</s-list-item>
|
|
249
249
|
<s-list-item>No time limit</s-list-item>
|
|
250
250
|
<s-list-item>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
<s-stack direction="inline" gap="small">
|
|
252
|
+
<s-text>Current status:</s-text>
|
|
253
|
+
<s-badge color="base" tone="success">
|
|
254
|
+
Active
|
|
255
|
+
</s-badge>
|
|
256
|
+
</s-stack>
|
|
255
257
|
</s-list-item>
|
|
256
258
|
</s-unordered-list>
|
|
257
259
|
</s-section>
|
|
@@ -259,4 +261,4 @@ export default function DetailsPage() {
|
|
|
259
261
|
</s-page>
|
|
260
262
|
</form>
|
|
261
263
|
);
|
|
262
|
-
}
|
|
264
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<s-section accessibilityLabel="Empty state section">
|
|
2
|
+
<s-grid gap="base" justifyItems="center" paddingBlock="large-400">
|
|
3
|
+
<s-box maxInlineSize="200px" maxBlockSize="200px">
|
|
4
|
+
<s-image
|
|
5
|
+
aspectRatio="1/0.5"
|
|
6
|
+
src="https://cdn.shopify.com/static/images/polaris/patterns/callout.png"
|
|
7
|
+
alt="A stylized graphic of four characters, each holding a puzzle piece"
|
|
8
|
+
/>
|
|
9
|
+
</s-box>
|
|
10
|
+
<s-grid
|
|
11
|
+
justifyItems="center"
|
|
12
|
+
maxInlineSize="450px"
|
|
13
|
+
gap="base"
|
|
14
|
+
>
|
|
15
|
+
<s-stack alignItems="center">
|
|
16
|
+
<s-heading>Start creating puzzles</s-heading>
|
|
17
|
+
<s-paragraph>
|
|
18
|
+
Create and manage your collection of puzzles for players to enjoy.
|
|
19
|
+
</s-paragraph>
|
|
20
|
+
</s-stack>
|
|
21
|
+
<s-button-group>
|
|
22
|
+
<s-button aria-label="Learn more about creating puzzles"> Learn more </s-button>
|
|
23
|
+
<s-button variant="primary" aria-label="Add a new puzzle"> Create puzzle </s-button>
|
|
24
|
+
</s-button-group>
|
|
25
|
+
</s-grid>
|
|
26
|
+
</s-grid>
|
|
27
|
+
</s-section>
|