@shopify/ui-extensions 2025.10.0-rc.34 → 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/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
|
@@ -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;
|
|
@@ -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.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,
|