@shopify/ui-extensions 2025.10.0-rc.33 → 2025.10.0-rc.35
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 +1 -1
- 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 +28 -11
- package/build/ts/surfaces/admin/components/Modal.d.ts +222 -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.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 +28 -14
- 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/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/pin-pad.d.ts +7 -2
- package/build/ts/surfaces/point-of-sale/types/pin-pad.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 +1 -1
- 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 +28 -11
- package/src/surfaces/admin/components/Modal.d.ts +222 -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/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 +28 -14
- 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/shared.d.ts +45 -2
- package/src/surfaces/admin/components.d.ts +472 -209
- package/src/surfaces/point-of-sale/api.ts +1 -0
- package/src/surfaces/point-of-sale/types/pin-pad.ts +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.16.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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type StandardComponents = 'Avatar' | 'Badge' | 'Banner' | 'Box' | 'Button' | 'ButtonGroup' | 'Checkbox' | 'Choice' | 'ChoiceList' | '
|
|
1
|
+
export type StandardComponents = 'Avatar' | 'Badge' | 'Banner' | 'Box' | 'Button' | 'ButtonGroup' | 'Checkbox' | 'Chip' | 'Choice' | 'ChoiceList' | 'Clickable' | 'ClickableChip' | 'ColorField' | 'ColorPicker' | 'DateField' | 'DatePicker' | 'Divider' | 'EmailField' | 'Grid' | 'GridItem' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'Menu' | 'MoneyField' | 'NumberField' | 'Option' | 'OptionGroup' | 'OrderedList' | 'Paragraph' | 'PasswordField' | 'QueryContainer' | 'Section' | 'Select' | 'Spinner' | 'Stack' | 'Table' | 'TableBody' | 'TableCell' | 'TableHeader' | 'TableHeaderRow' | 'TableRow' | 'Text' | 'TextArea' | 'TextField' | 'Thumbnail' | 'Tooltip' | 'UnorderedList' | 'URLField';
|
|
2
2
|
export default StandardComponents;
|
|
3
3
|
//# sourceMappingURL=StandardComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/admin/components/StandardComponents.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,aAAa,GACb,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,
|
|
1
|
+
{"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/admin/components/StandardComponents.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,aAAa,GACb,UAAU,GACV,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,eAAe,GACf,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,MAAM,GACN,UAAU,GACV,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,aAAa,GACb,aAAa,GACb,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,WAAW,GACX,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,UAAU,GACV,MAAM,GACN,UAAU,GACV,WAAW,GACX,WAAW,GACX,SAAS,GACT,eAAe,GACf,UAAU,CAAC;AAEf,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Tooltip/Tooltip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Tooltip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Tooltip/Tooltip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,kCAuBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.16.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 {
|
|
@@ -135,7 +142,14 @@ declare module 'preact' {
|
|
|
135
142
|
declare const tagName = 's-tooltip';
|
|
136
143
|
export interface TooltipJSXProps
|
|
137
144
|
extends Partial<TooltipProps>,
|
|
138
|
-
Pick<TooltipProps$1, 'id'> {
|
|
145
|
+
Pick<TooltipProps$1, 'id'> {
|
|
146
|
+
/**
|
|
147
|
+
* The content of the Tooltip.
|
|
148
|
+
*
|
|
149
|
+
* Only accepts `Text`, `Paragraph` components, and raw `textContent`.
|
|
150
|
+
*/
|
|
151
|
+
children: ComponentChild;
|
|
152
|
+
}
|
|
139
153
|
|
|
140
154
|
export {Tooltip};
|
|
141
155
|
export type {TooltipJSXProps};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.16.0 **/
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* TODO: Update `any` type here after this is resolved
|
|
9
9
|
* https://github.com/Shopify/ui-api-design/issues/139
|
|
10
10
|
*/
|
|
11
|
-
type ComponentChildren = any;
|
|
11
|
+
export type ComponentChildren = any;
|
|
12
12
|
export type StringChildren = string;
|
|
13
13
|
export interface GlobalProps {
|
|
14
14
|
/**
|
|
@@ -2979,6 +2979,49 @@ interface MenuProps$1 extends GlobalProps {
|
|
|
2979
2979
|
*/
|
|
2980
2980
|
children?: ComponentChildren;
|
|
2981
2981
|
}
|
|
2982
|
+
interface ModalProps$1
|
|
2983
|
+
extends GlobalProps,
|
|
2984
|
+
BaseOverlayProps,
|
|
2985
|
+
BaseOverlayMethods,
|
|
2986
|
+
ActionSlots {
|
|
2987
|
+
/**
|
|
2988
|
+
* A label that describes the purpose of the modal. When set,
|
|
2989
|
+
* it will be announced to users using assistive technologies and will
|
|
2990
|
+
* provide them with more context.
|
|
2991
|
+
*
|
|
2992
|
+
* This overrides the `heading` prop for screen readers.
|
|
2993
|
+
*/
|
|
2994
|
+
accessibilityLabel?: string;
|
|
2995
|
+
/**
|
|
2996
|
+
* A title that describes the content of the Modal.
|
|
2997
|
+
*
|
|
2998
|
+
*/
|
|
2999
|
+
heading?: string;
|
|
3000
|
+
/**
|
|
3001
|
+
* Adjust the padding around the Modal content.
|
|
3002
|
+
*
|
|
3003
|
+
* `base`: applies padding that is appropriate for the element.
|
|
3004
|
+
*
|
|
3005
|
+
* `none`: removes all padding from the element. This can be useful when elements inside the Modal need to span
|
|
3006
|
+
* to the edge of the Modal. For example, a full-width image. In this case, rely on `Box` with a padding of 'base'
|
|
3007
|
+
* to bring back the desired padding for the rest of the content.
|
|
3008
|
+
*
|
|
3009
|
+
* @default 'base'
|
|
3010
|
+
*/
|
|
3011
|
+
padding?: 'base' | 'none';
|
|
3012
|
+
/**
|
|
3013
|
+
* Adjust the size of the Modal.
|
|
3014
|
+
*
|
|
3015
|
+
* `max`: expands the Modal to its maximum size as defined by the host application, on both the horizontal and vertical axes.
|
|
3016
|
+
*
|
|
3017
|
+
* @default 'base'
|
|
3018
|
+
*/
|
|
3019
|
+
size?: SizeKeyword | 'max';
|
|
3020
|
+
/**
|
|
3021
|
+
* The content of the Modal.
|
|
3022
|
+
*/
|
|
3023
|
+
children?: ComponentChildren;
|
|
3024
|
+
}
|
|
2982
3025
|
interface MoneyFieldProps$1
|
|
2983
3026
|
extends GlobalProps,
|
|
2984
3027
|
BaseTextFieldProps,
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -10,6 +10,8 @@ import "../components/Choice.d.ts";
|
|
|
10
10
|
import "../components/ChoiceList.d.ts";
|
|
11
11
|
import "../components/Clickable.d.ts";
|
|
12
12
|
import "../components/ClickableChip.d.ts";
|
|
13
|
+
import "../components/ColorField.d.ts";
|
|
14
|
+
import "../components/ColorPicker.d.ts";
|
|
13
15
|
import "../components/DateField.d.ts";
|
|
14
16
|
import "../components/DatePicker.d.ts";
|
|
15
17
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|
|
@@ -11,6 +11,8 @@ import "../components/Choice.d.ts";
|
|
|
11
11
|
import "../components/ChoiceList.d.ts";
|
|
12
12
|
import "../components/Clickable.d.ts";
|
|
13
13
|
import "../components/ClickableChip.d.ts";
|
|
14
|
+
import "../components/ColorField.d.ts";
|
|
15
|
+
import "../components/ColorPicker.d.ts";
|
|
14
16
|
import "../components/DateField.d.ts";
|
|
15
17
|
import "../components/DatePicker.d.ts";
|
|
16
18
|
import "../components/Divider.d.ts";
|