@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyField.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/MoneyField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"MoneyField.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/MoneyField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAMX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Chip/Chip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Chip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Chip/Chip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,kCA4BX,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 */
|
|
@@ -113,6 +113,11 @@ declare const tagName = 's-chip';
|
|
|
113
113
|
export interface ChipJSXProps
|
|
114
114
|
extends Partial<ChipProps>,
|
|
115
115
|
Pick<ChipProps$1, 'id'> {
|
|
116
|
+
/**
|
|
117
|
+
* The graphic to display in the chip.
|
|
118
|
+
*
|
|
119
|
+
* Only accepts `Icon` components.
|
|
120
|
+
*/
|
|
116
121
|
graphic?: ComponentChild;
|
|
117
122
|
}
|
|
118
123
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickableChip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/ClickableChip/ClickableChip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ClickableChip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/ClickableChip/ClickableChip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,kCAmCX,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 */
|
|
@@ -141,6 +141,11 @@ declare const tagName = 's-clickable-chip';
|
|
|
141
141
|
export interface ClickableChipJSXProps
|
|
142
142
|
extends Partial<ClickableChipProps>,
|
|
143
143
|
Pick<ClickableChipProps$1, 'id'> {
|
|
144
|
+
/**
|
|
145
|
+
* The graphic to display in the clickable chip.
|
|
146
|
+
*
|
|
147
|
+
* Only accepts `Icon` components.
|
|
148
|
+
*/
|
|
144
149
|
graphic?: ComponentChild;
|
|
145
150
|
onClick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
146
151
|
onRemove?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Menu/Menu.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Menu.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Menu/Menu.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AAGpE,QAAA,MAAM,IAAI,EAAE,kCA4BX,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,18 +7,13 @@
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
9
|
import type {
|
|
10
|
-
MenuProps$1,
|
|
11
10
|
ComponentChild,
|
|
11
|
+
MenuProps$1,
|
|
12
12
|
InteractionProps,
|
|
13
13
|
} from './shared.d.ts';
|
|
14
14
|
|
|
15
15
|
export interface MenuProps
|
|
16
|
-
extends Required<Pick<MenuProps$1, 'id' | 'accessibilityLabel'>> {
|
|
17
|
-
/**
|
|
18
|
-
* @implementation only accepts `s-button` and `s-section`
|
|
19
|
-
*/
|
|
20
|
-
children?: ComponentChild;
|
|
21
|
-
}
|
|
16
|
+
extends Required<Pick<MenuProps$1, 'id' | 'accessibilityLabel'>> {}
|
|
22
17
|
|
|
23
18
|
export type Styles = string;
|
|
24
19
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
@@ -83,11 +78,21 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
83
78
|
/**
|
|
84
79
|
* Shared symbols for overlay control functionality.
|
|
85
80
|
* These symbols are used by components that implement overlay behavior
|
|
86
|
-
* (like Popover, Tooltip, etc.) to communicate with the overlay control system.
|
|
81
|
+
* (like Popover, Tooltip, Modal, etc.) to communicate with the overlay control system.
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* Symbol used to invoke the method for overlay commands, e.g. `--show`, `--hide`, etc.
|
|
87
85
|
*/
|
|
88
86
|
declare const overlayCommand: unique symbol;
|
|
87
|
+
/**
|
|
88
|
+
* Symbol used to track the open or closed state of the overlay.
|
|
89
|
+
*/
|
|
89
90
|
declare const overlayHidden: unique symbol;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
90
94
|
declare const overlayActivator: unique symbol;
|
|
95
|
+
declare const overlayHideFrameId: unique symbol;
|
|
91
96
|
|
|
92
97
|
declare class PreactOverlayElement extends PreactCustomElement {
|
|
93
98
|
constructor(renderImpl: RenderImpl);
|
|
@@ -96,7 +101,12 @@ declare class PreactOverlayElement extends PreactCustomElement {
|
|
|
96
101
|
/** @private */
|
|
97
102
|
[overlayActivator]: HTMLElement | null | undefined;
|
|
98
103
|
/** @private */
|
|
99
|
-
[
|
|
104
|
+
[overlayHideFrameId]?: number;
|
|
105
|
+
/** @private */
|
|
106
|
+
[overlayCommand](
|
|
107
|
+
command: InteractionProps['command'],
|
|
108
|
+
overlayActivatorEl: HTMLElement | null | undefined,
|
|
109
|
+
): void;
|
|
100
110
|
}
|
|
101
111
|
|
|
102
112
|
declare class Menu extends PreactOverlayElement implements MenuProps {
|
|
@@ -127,7 +137,14 @@ declare module 'preact' {
|
|
|
127
137
|
declare const tagName = 's-menu';
|
|
128
138
|
export interface MenuJSXProps
|
|
129
139
|
extends Partial<MenuProps>,
|
|
130
|
-
Pick<MenuProps$1, 'id'> {
|
|
140
|
+
Pick<MenuProps$1, 'id'> {
|
|
141
|
+
/**
|
|
142
|
+
* The Menu items.
|
|
143
|
+
*
|
|
144
|
+
* Only accepts `Button` and `Section` components.
|
|
145
|
+
*/
|
|
146
|
+
children?: ComponentChild;
|
|
147
|
+
}
|
|
131
148
|
|
|
132
149
|
export {Menu};
|
|
133
150
|
export type {MenuJSXProps};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/** VERSION: 1.16.0 **/
|
|
2
|
+
/* eslint-disable import/extensions */
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
5
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
|
+
/// <reference lib="DOM" />
|
|
9
|
+
import type {
|
|
10
|
+
ModalProps$1,
|
|
11
|
+
ComponentChild,
|
|
12
|
+
InteractionProps,
|
|
13
|
+
} from './shared.d.ts';
|
|
14
|
+
|
|
15
|
+
export type RequiredAlignedModalProps = Required<ModalProps$1>;
|
|
16
|
+
export interface ModalProps
|
|
17
|
+
extends Pick<
|
|
18
|
+
RequiredAlignedModalProps,
|
|
19
|
+
'accessibilityLabel' | 'heading' | 'padding' | 'size'
|
|
20
|
+
> {
|
|
21
|
+
size: Extract<
|
|
22
|
+
ModalProps$1['size'],
|
|
23
|
+
'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
24
|
+
>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[T];
|
|
29
|
+
};
|
|
30
|
+
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
31
|
+
| (EventListener & {
|
|
32
|
+
(event: CallbackEvent<T>): void;
|
|
33
|
+
})
|
|
34
|
+
| null;
|
|
35
|
+
|
|
36
|
+
export type Styles = string;
|
|
37
|
+
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
38
|
+
ShadowRoot: (element: any) => ComponentChild;
|
|
39
|
+
styles?: Styles;
|
|
40
|
+
};
|
|
41
|
+
export interface ActivationEventEsque {
|
|
42
|
+
shiftKey: boolean;
|
|
43
|
+
metaKey: boolean;
|
|
44
|
+
ctrlKey: boolean;
|
|
45
|
+
button: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ClickOptions {
|
|
48
|
+
/**
|
|
49
|
+
* The event you want to influence the synthetic click.
|
|
50
|
+
*/
|
|
51
|
+
sourceEvent?: ActivationEventEsque;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Base class for creating custom elements with Preact.
|
|
55
|
+
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
56
|
+
* So we give it a type of HTMLElement to avoid typing issues later where it's used, which will only happen in the browser.
|
|
57
|
+
*/
|
|
58
|
+
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
59
|
+
declare abstract class PreactCustomElement extends BaseClass {
|
|
60
|
+
/** @private */
|
|
61
|
+
static get observedAttributes(): string[];
|
|
62
|
+
constructor({
|
|
63
|
+
styles,
|
|
64
|
+
ShadowRoot: renderFunction,
|
|
65
|
+
delegatesFocus,
|
|
66
|
+
...options
|
|
67
|
+
}: RenderImpl);
|
|
68
|
+
|
|
69
|
+
/** @private */
|
|
70
|
+
setAttribute(name: string, value: string): void;
|
|
71
|
+
/** @private */
|
|
72
|
+
attributeChangedCallback(name: string): void;
|
|
73
|
+
/** @private */
|
|
74
|
+
connectedCallback(): void;
|
|
75
|
+
/** @private */
|
|
76
|
+
disconnectedCallback(): void;
|
|
77
|
+
/** @private */
|
|
78
|
+
adoptedCallback(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Queue a run of the render function.
|
|
81
|
+
* You shouldn't need to call this manually - it should be handled by changes to @property values.
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
queueRender(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.
|
|
87
|
+
*
|
|
88
|
+
* For example, if the `sourceEvent` was a middle click, or has particular keys held down,
|
|
89
|
+
* components will attempt to produce the desired behavior on links, such as opening the page in the background tab.
|
|
90
|
+
* @private
|
|
91
|
+
* @param options
|
|
92
|
+
*/
|
|
93
|
+
click({sourceEvent}?: ClickOptions): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Shared symbols for overlay control functionality.
|
|
98
|
+
* These symbols are used by components that implement overlay behavior
|
|
99
|
+
* (like Popover, Tooltip, Modal, etc.) to communicate with the overlay control system.
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* Symbol used to invoke the method for overlay commands, e.g. `--show`, `--hide`, etc.
|
|
103
|
+
*/
|
|
104
|
+
declare const overlayCommand: unique symbol;
|
|
105
|
+
/**
|
|
106
|
+
* Symbol used to track the open or closed state of the overlay.
|
|
107
|
+
*/
|
|
108
|
+
declare const overlayHidden: unique symbol;
|
|
109
|
+
/**
|
|
110
|
+
* 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.
|
|
111
|
+
*/
|
|
112
|
+
declare const overlayActivator: unique symbol;
|
|
113
|
+
declare const overlayHideFrameId: unique symbol;
|
|
114
|
+
|
|
115
|
+
declare class PreactOverlayElement extends PreactCustomElement {
|
|
116
|
+
constructor(renderImpl: RenderImpl);
|
|
117
|
+
/** @private */
|
|
118
|
+
[overlayHidden]: boolean;
|
|
119
|
+
/** @private */
|
|
120
|
+
[overlayActivator]: HTMLElement | null | undefined;
|
|
121
|
+
/** @private */
|
|
122
|
+
[overlayHideFrameId]?: number;
|
|
123
|
+
/** @private */
|
|
124
|
+
[overlayCommand](
|
|
125
|
+
command: InteractionProps['command'],
|
|
126
|
+
overlayActivatorEl: HTMLElement | null | undefined,
|
|
127
|
+
): void;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare const hasOpenChildModal: unique symbol;
|
|
131
|
+
|
|
132
|
+
declare const open: unique symbol;
|
|
133
|
+
declare const show: unique symbol;
|
|
134
|
+
declare const hide: unique symbol;
|
|
135
|
+
declare const dialog: unique symbol;
|
|
136
|
+
declare const onEscape: unique symbol;
|
|
137
|
+
declare const nestedModals: unique symbol;
|
|
138
|
+
declare const onBackdropClick: unique symbol;
|
|
139
|
+
declare const abortController: unique symbol;
|
|
140
|
+
declare const onChildModalChange: unique symbol;
|
|
141
|
+
declare const childrenRerenderObserver: unique symbol;
|
|
142
|
+
declare class Modal extends PreactOverlayElement implements ModalProps {
|
|
143
|
+
accessor accessibilityLabel: ModalProps['accessibilityLabel'];
|
|
144
|
+
accessor heading: ModalProps['heading'];
|
|
145
|
+
accessor padding: ModalProps['padding'];
|
|
146
|
+
accessor size: ModalProps['size'];
|
|
147
|
+
accessor onhide: CallbackEventListener<typeof tagName> | null;
|
|
148
|
+
accessor onshow: CallbackEventListener<typeof tagName> | null;
|
|
149
|
+
accessor onafterhide: CallbackEventListener<typeof tagName> | null;
|
|
150
|
+
accessor onaftershow: CallbackEventListener<typeof tagName> | null;
|
|
151
|
+
/** @private */
|
|
152
|
+
[abortController]: AbortController;
|
|
153
|
+
/** @private */
|
|
154
|
+
[dialog]: HTMLDialogElement | null;
|
|
155
|
+
/** @private */
|
|
156
|
+
[nestedModals]: Map<Modal, boolean>;
|
|
157
|
+
/** @private */
|
|
158
|
+
[childrenRerenderObserver]: MutationObserver;
|
|
159
|
+
/** @private */
|
|
160
|
+
[onEscape]: (event: KeyboardEvent) => void;
|
|
161
|
+
/** @private */
|
|
162
|
+
[onBackdropClick]: (event: MouseEvent) => void;
|
|
163
|
+
/** @private */
|
|
164
|
+
[onChildModalChange]: EventListenerOrEventListenerObject;
|
|
165
|
+
/** @private */
|
|
166
|
+
get [open](): boolean;
|
|
167
|
+
/** @private */
|
|
168
|
+
get [hasOpenChildModal](): boolean;
|
|
169
|
+
/** @private */
|
|
170
|
+
[show](): Promise<void>;
|
|
171
|
+
/** @private */
|
|
172
|
+
[hide](): Promise<void>;
|
|
173
|
+
showOverlay(): void;
|
|
174
|
+
hideOverlay(): void;
|
|
175
|
+
toggleOverlay(): void;
|
|
176
|
+
/** @private */
|
|
177
|
+
connectedCallback(): void;
|
|
178
|
+
/** @private */
|
|
179
|
+
disconnectedCallback(): void;
|
|
180
|
+
constructor();
|
|
181
|
+
}
|
|
182
|
+
declare global {
|
|
183
|
+
interface HTMLElementTagNameMap {
|
|
184
|
+
[tagName]: Modal;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
declare module 'preact' {
|
|
188
|
+
namespace createElement.JSX {
|
|
189
|
+
interface IntrinsicElements {
|
|
190
|
+
[tagName]: Omit<
|
|
191
|
+
HTMLAttributes<HTMLElement>,
|
|
192
|
+
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
193
|
+
> &
|
|
194
|
+
ModalJSXProps;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare const tagName = 's-modal';
|
|
200
|
+
export interface ModalJSXProps
|
|
201
|
+
extends Partial<ModalProps>,
|
|
202
|
+
Pick<ModalProps$1, 'id' | 'children'> {
|
|
203
|
+
/**
|
|
204
|
+
* The primary action to perform.
|
|
205
|
+
*
|
|
206
|
+
* Only a `Button` with a variant of `primary` is allowed.
|
|
207
|
+
*/
|
|
208
|
+
primaryAction: ComponentChild;
|
|
209
|
+
/**
|
|
210
|
+
* The secondary actions to perform.
|
|
211
|
+
*
|
|
212
|
+
* Only `ButtonGroup` or `Button` with a variant of `secondary` or `auto` are allowed.
|
|
213
|
+
*/
|
|
214
|
+
secondaryActions: ComponentChild;
|
|
215
|
+
onHide?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
216
|
+
onShow?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
217
|
+
onAfterHide?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
218
|
+
onAfterShow?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export {Modal};
|
|
222
|
+
export type {ModalJSXProps};
|
|
@@ -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 */
|
|
@@ -118,16 +118,24 @@ export interface PageJSXProps extends Partial<PageProps> {
|
|
|
118
118
|
*/
|
|
119
119
|
aside?: ComponentChild;
|
|
120
120
|
/**
|
|
121
|
-
* The primary action
|
|
122
|
-
*
|
|
121
|
+
* The primary action for the page.
|
|
122
|
+
*
|
|
123
|
+
* Only accepts a single `Button` component with a `variant` of `primary`.
|
|
123
124
|
*
|
|
124
125
|
*/
|
|
125
126
|
primaryAction?: ComponentChild;
|
|
126
127
|
/**
|
|
127
|
-
* Secondary actions
|
|
128
|
-
*
|
|
128
|
+
* Secondary actions for the page.
|
|
129
|
+
*
|
|
130
|
+
* Only accepts `ButtonGroup` and `Button` components with a `variant` of `secondary` or `auto`.
|
|
129
131
|
*/
|
|
130
132
|
secondaryActions?: ComponentChild;
|
|
133
|
+
/**
|
|
134
|
+
* Navigations back actions for the page.
|
|
135
|
+
*
|
|
136
|
+
* Only accepts `Link` components.
|
|
137
|
+
*/
|
|
138
|
+
breadcrumbActions?: ComponentChild;
|
|
131
139
|
}
|
|
132
140
|
|
|
133
141
|
export {Page};
|