@shopify/ui-extensions 2026.4.0 → 2026.4.1
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/surfaces/admin/api/generated/generated.d.ts +62 -0
- package/build/ts/surfaces/admin/api/generated/generated.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api.d.ts +1 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +2 -6
- package/build/ts/surfaces/checkout/components/Badge.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Banner.d.ts +2 -6
- package/build/ts/surfaces/checkout/components/Box.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Button.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Chip.d.ts +3 -11
- package/build/ts/surfaces/checkout/components/Choice.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +4 -15
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +8 -9
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +9 -14
- package/build/ts/surfaces/checkout/components/DateField.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Details.d.ts +7 -16
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/Form.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Grid.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Heading.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Link.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +3 -6
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/Option.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +12 -4
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/PressButton.d.ts +2 -8
- package/build/ts/surfaces/checkout/components/Progress.d.ts +3 -5
- package/build/ts/surfaces/checkout/components/ScrollBox.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Select.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Stack.d.ts +1 -3
- package/build/ts/surfaces/checkout/components/Summary.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/Switch.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/Text.d.ts +18 -5
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +2 -9
- package/build/ts/surfaces/checkout/components/TextField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/Time.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +3 -14
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +126 -127
- package/build/ts/surfaces/checkout/components/components.d.ts +9 -11
- package/build/ts/surfaces/customer-account/api/docs.d.ts +10 -16
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +7 -9
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +1 -2
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Announcement.d.ts +2 -6
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +2 -6
- package/build/ts/surfaces/customer-account/components/Box.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Button.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +3 -11
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +4 -15
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +8 -9
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +9 -14
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Details.d.ts +7 -16
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/Form.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Link.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +3 -6
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/Option.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +12 -4
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/PressButton.d.ts +2 -8
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +3 -5
- package/build/ts/surfaces/customer-account/components/ScrollBox.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Select.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +1 -3
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/Text.d.ts +18 -5
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +2 -9
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/Time.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +1 -4
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +3 -14
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +126 -127
- package/build/ts/surfaces/customer-account/components/components.d.ts +9 -11
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/api/generated/generated.ts +76 -0
- package/src/surfaces/admin/api.ts +6 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
- package/src/surfaces/checkout/api/standard/standard.ts +2 -2
- package/src/surfaces/checkout/components/Abbreviation.d.ts +1 -4
- package/src/surfaces/checkout/components/Announcement.d.ts +2 -6
- package/src/surfaces/checkout/components/Badge.d.ts +1 -3
- package/src/surfaces/checkout/components/Banner.d.ts +2 -6
- package/src/surfaces/checkout/components/Box.d.ts +1 -3
- package/src/surfaces/checkout/components/Button.d.ts +2 -8
- package/src/surfaces/checkout/components/Checkbox.d.ts +2 -9
- package/src/surfaces/checkout/components/Chip.d.ts +3 -11
- package/src/surfaces/checkout/components/Choice.d.ts +2 -8
- package/src/surfaces/checkout/components/ChoiceList.d.ts +2 -9
- package/src/surfaces/checkout/components/Clickable.d.ts +2 -8
- package/src/surfaces/checkout/components/ClickableChip.d.ts +4 -15
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +2 -8
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +8 -9
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +9 -14
- package/src/surfaces/checkout/components/DateField.d.ts +2 -9
- package/src/surfaces/checkout/components/DatePicker.d.ts +2 -9
- package/src/surfaces/checkout/components/Details.d.ts +7 -16
- package/src/surfaces/checkout/components/DropZone.d.ts +2 -9
- package/src/surfaces/checkout/components/EmailField.d.ts +3 -14
- package/src/surfaces/checkout/components/Form.d.ts +2 -9
- package/src/surfaces/checkout/components/Grid.d.ts +1 -3
- package/src/surfaces/checkout/components/GridItem.d.ts +1 -3
- package/src/surfaces/checkout/components/Heading.d.ts +1 -4
- package/src/surfaces/checkout/components/Link.d.ts +2 -8
- package/src/surfaces/checkout/components/ListItem.d.ts +1 -4
- package/src/surfaces/checkout/components/MapMarker.d.ts +3 -6
- package/src/surfaces/checkout/components/MoneyField.d.ts +2 -9
- package/src/surfaces/checkout/components/NumberField.d.ts +3 -14
- package/src/surfaces/checkout/components/Option.d.ts +1 -4
- package/src/surfaces/checkout/components/OrderedList.d.ts +1 -4
- package/src/surfaces/checkout/components/Paragraph.d.ts +12 -4
- package/src/surfaces/checkout/components/PasswordField.d.ts +3 -14
- package/src/surfaces/checkout/components/PhoneField.d.ts +3 -14
- package/src/surfaces/checkout/components/PressButton.d.ts +2 -8
- package/src/surfaces/checkout/components/Progress.d.ts +3 -5
- package/src/surfaces/checkout/components/ScrollBox.d.ts +1 -3
- package/src/surfaces/checkout/components/Select.d.ts +2 -9
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +1 -4
- package/src/surfaces/checkout/components/Spinner.d.ts +1 -3
- package/src/surfaces/checkout/components/Stack.d.ts +1 -3
- package/src/surfaces/checkout/components/Summary.d.ts +1 -4
- package/src/surfaces/checkout/components/Switch.d.ts +2 -9
- package/src/surfaces/checkout/components/Text.d.ts +18 -5
- package/src/surfaces/checkout/components/TextArea.d.ts +2 -9
- package/src/surfaces/checkout/components/TextField.d.ts +3 -14
- package/src/surfaces/checkout/components/Time.d.ts +1 -4
- package/src/surfaces/checkout/components/UnorderedList.d.ts +1 -4
- package/src/surfaces/checkout/components/UrlField.d.ts +3 -14
- package/src/surfaces/checkout/components/components-shared.d.ts +126 -127
- package/src/surfaces/checkout/components/components.d.ts +9 -11
- package/src/surfaces/customer-account/api/docs.ts +10 -16
- package/src/surfaces/customer-account/api/order-status/order-status.ts +7 -9
- package/src/surfaces/customer-account/api/shared.ts +1 -2
|
@@ -38,19 +38,12 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
|
|
|
38
38
|
}) | null;
|
|
39
39
|
|
|
40
40
|
declare const tagName = "s-select";
|
|
41
|
-
/**
|
|
42
|
-
* Configure the following properties on the select component.
|
|
43
|
-
* @publicDocs
|
|
44
|
-
*/
|
|
41
|
+
/** @publicDocs */
|
|
45
42
|
export interface SelectElementProps extends Pick<SelectProps$1, 'autocomplete' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value'> {
|
|
46
43
|
}
|
|
47
44
|
export interface SelectEvents extends Pick<SelectProps$1, 'onBlur' | 'onChange' | 'onFocus'> {
|
|
48
45
|
}
|
|
49
|
-
/**
|
|
50
|
-
* The select component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
|
|
51
|
-
*
|
|
52
|
-
* @publicDocs
|
|
53
|
-
*/
|
|
46
|
+
/** @publicDocs */
|
|
54
47
|
export interface SelectElementEvents {
|
|
55
48
|
/**
|
|
56
49
|
* A callback fired when the select loses focus.
|
|
@@ -20,10 +20,7 @@ export interface BaseElementProps<TClass = HTMLElement> {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
declare const tagName = "s-skeleton-paragraph";
|
|
23
|
-
/**
|
|
24
|
-
* The element props interface for the SkeletonParagraph component.
|
|
25
|
-
* @publicDocs
|
|
26
|
-
*/
|
|
23
|
+
/** @publicDocs */
|
|
27
24
|
export interface SkeletonParagraphElementProps extends SkeletonParagraphProps$1 {
|
|
28
25
|
}
|
|
29
26
|
export interface SkeletonParagraphElement extends SkeletonParagraphElementProps, Omit<HTMLElement, 'id'> {
|
|
@@ -20,9 +20,7 @@ export interface BaseElementProps<TClass = HTMLElement> {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
declare const tagName = "s-spinner";
|
|
23
|
-
/**
|
|
24
|
-
* @publicDocs
|
|
25
|
-
*/
|
|
23
|
+
/** @publicDocs */
|
|
26
24
|
export interface SpinnerElementProps extends SpinnerProps$1 {
|
|
27
25
|
/**
|
|
28
26
|
* A label that describes the purpose of the spinner for assistive technologies like screen readers. Provide an `accessibilityLabel` when there is no visible text that conveys a loading state.
|
|
@@ -46,9 +46,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
declare const tagName = "s-stack";
|
|
49
|
-
/**
|
|
50
|
-
* @publicDocs
|
|
51
|
-
*/
|
|
49
|
+
/** @publicDocs */
|
|
52
50
|
export interface StackElementProps extends Pick<StackProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'alignContent' | 'alignItems' | 'background' | 'blockSize' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'columnGap' | 'direction' | 'display' | 'gap' | 'id' | 'inlineSize' | 'justifyContent' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'rowGap'> {
|
|
53
51
|
/**
|
|
54
52
|
* The semantic meaning of the stack's content, used by assistive technologies.
|
|
@@ -11,10 +11,7 @@
|
|
|
11
11
|
import type {SummaryProps$1} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
13
|
declare const tagName = "s-summary";
|
|
14
|
-
/**
|
|
15
|
-
* The element props interface for the Summary component.
|
|
16
|
-
* @publicDocs
|
|
17
|
-
*/
|
|
14
|
+
/** @publicDocs */
|
|
18
15
|
export interface SummaryElementProps extends Pick<SummaryProps$1, 'id'> {
|
|
19
16
|
}
|
|
20
17
|
export interface SummaryElement extends SummaryElementProps, Omit<HTMLElement, 'id'> {
|
|
@@ -32,20 +32,13 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
|
|
|
32
32
|
}) | null;
|
|
33
33
|
|
|
34
34
|
declare const tagName = "s-switch";
|
|
35
|
-
/**
|
|
36
|
-
* Configure the following properties on the switch component.
|
|
37
|
-
* @publicDocs
|
|
38
|
-
*/
|
|
35
|
+
/** @publicDocs */
|
|
39
36
|
export interface SwitchElementProps extends Pick<SwitchProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'id' | 'label' | 'name' | 'value'> {
|
|
40
37
|
command?: Extract<SwitchProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
41
38
|
}
|
|
42
39
|
export interface SwitchEvents extends Pick<SwitchProps$1, 'onChange'> {
|
|
43
40
|
}
|
|
44
|
-
/**
|
|
45
|
-
* The switch component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
|
|
46
|
-
*
|
|
47
|
-
* @publicDocs
|
|
48
|
-
*/
|
|
41
|
+
/** @publicDocs */
|
|
49
42
|
export interface SwitchElementEvents {
|
|
50
43
|
/**
|
|
51
44
|
* A callback fired when the switch value changes.
|
|
@@ -26,14 +26,27 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
declare const tagName = "s-text";
|
|
29
|
-
/**
|
|
30
|
-
* The element props interface for the Text component.
|
|
31
|
-
* @publicDocs
|
|
32
|
-
*/
|
|
29
|
+
/** @publicDocs */
|
|
33
30
|
export interface TextElementProps extends Pick<TextProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'display' | 'id' | 'lang' | 'tone' | 'type'> {
|
|
34
31
|
color?: Extract<TextProps$1['color'], 'subdued' | 'base'>;
|
|
35
32
|
tone?: Extract<TextProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
36
|
-
|
|
33
|
+
/**
|
|
34
|
+
* The semantic type and styling treatment for the text content.
|
|
35
|
+
*
|
|
36
|
+
* Other presentation properties on `s-text` override the default styling.
|
|
37
|
+
*
|
|
38
|
+
* - `address`: A semantic type that indicates the text is contact information. Typically used for addresses.
|
|
39
|
+
* - `redundant`: A semantic type that indicates the text is no longer accurate or no longer relevant. One such use-case is discounted prices.
|
|
40
|
+
* - `mark`: A semantic type that indicates the text is marked or highlighted and relevant to the user's current action.
|
|
41
|
+
* - `emphasis`: A semantic type that indicates emphatic stress. Typically for words that have a stressed emphasis compared to surrounding text.
|
|
42
|
+
* - `offset`: A semantic type that indicates an offset from the normal prose of the text.
|
|
43
|
+
* - `strong`: A semantic type that indicates strong importance, seriousness, or urgency.
|
|
44
|
+
* - `small`: A semantic type that indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
|
|
45
|
+
* - `generic`: No additional semantics or styling is applied.
|
|
46
|
+
*
|
|
47
|
+
* @default 'generic'
|
|
48
|
+
*/
|
|
49
|
+
type?: Extract<TextProps$1['type'], 'address' | 'redundant' | 'mark' | 'emphasis' | 'offset' | 'strong' | 'small' | 'generic'>;
|
|
37
50
|
}
|
|
38
51
|
export interface TextElement extends TextElementProps, Omit<HTMLElement, 'id' | 'dir' | 'lang'> {
|
|
39
52
|
}
|
|
@@ -32,10 +32,7 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
|
|
|
32
32
|
}) | null;
|
|
33
33
|
|
|
34
34
|
declare const tagName = "s-text-area";
|
|
35
|
-
/**
|
|
36
|
-
* Configure the following properties on the text area component.
|
|
37
|
-
* @publicDocs
|
|
38
|
-
*/
|
|
35
|
+
/** @publicDocs */
|
|
39
36
|
export interface TextAreaElementProps extends Pick<TextAreaProps$1, 'id' | 'label' | 'name' | 'required' | 'value' | 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'readOnly' | 'rows' | 'maxLength' | 'minLength' | 'labelAccessibilityVisibility'> {
|
|
40
37
|
/**
|
|
41
38
|
* @deprecated Use `label` instead.
|
|
@@ -45,11 +42,7 @@ export interface TextAreaElementProps extends Pick<TextAreaProps$1, 'id' | 'labe
|
|
|
45
42
|
}
|
|
46
43
|
export interface TextAreaEvents extends Pick<TextAreaProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
47
44
|
}
|
|
48
|
-
/**
|
|
49
|
-
* The text area component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
|
|
50
|
-
*
|
|
51
|
-
* @publicDocs
|
|
52
|
-
*/
|
|
45
|
+
/** @publicDocs */
|
|
53
46
|
export interface TextAreaElementEvents {
|
|
54
47
|
/**
|
|
55
48
|
* A callback fired when the text area loses focus.
|
|
@@ -68,10 +68,7 @@ declare module 'preact' {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
declare const tagName = "s-text-field";
|
|
71
|
-
/**
|
|
72
|
-
* Configure the following properties on the text field component.
|
|
73
|
-
* @publicDocs
|
|
74
|
-
*/
|
|
71
|
+
/** @publicDocs */
|
|
75
72
|
export interface TextFieldElementProps extends Pick<TextFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'icon' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
76
73
|
icon?: IconProps['type'];
|
|
77
74
|
/**
|
|
@@ -82,11 +79,7 @@ export interface TextFieldElementProps extends Pick<TextFieldProps$1, 'autocompl
|
|
|
82
79
|
}
|
|
83
80
|
export interface TextFieldEvents extends Pick<TextFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
84
81
|
}
|
|
85
|
-
/**
|
|
86
|
-
* The text field component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
|
|
87
|
-
*
|
|
88
|
-
* @publicDocs
|
|
89
|
-
*/
|
|
82
|
+
/** @publicDocs */
|
|
90
83
|
export interface TextFieldElementEvents {
|
|
91
84
|
/**
|
|
92
85
|
* A callback fired when the text field loses focus.
|
|
@@ -113,11 +106,7 @@ export interface TextFieldElementEvents {
|
|
|
113
106
|
*/
|
|
114
107
|
input?: CallbackEventListener<typeof tagName>;
|
|
115
108
|
}
|
|
116
|
-
/**
|
|
117
|
-
* The text field component supports slots for additional content placement within the component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
|
|
118
|
-
*
|
|
119
|
-
* @publicDocs
|
|
120
|
-
*/
|
|
109
|
+
/** @publicDocs */
|
|
121
110
|
export interface TextFieldElementSlots {
|
|
122
111
|
/**
|
|
123
112
|
* Additional interactive content displayed within the field. Accepts button and clickable components with text content only. Other component types or complex layouts are not supported.
|
|
@@ -26,10 +26,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
declare const tagName = "s-time";
|
|
29
|
-
/**
|
|
30
|
-
* The element props interface for the Time component.
|
|
31
|
-
* @publicDocs
|
|
32
|
-
*/
|
|
29
|
+
/** @publicDocs */
|
|
33
30
|
export interface TimeElementProps extends Pick<TimeProps$1, 'dateTime' | 'id'> {
|
|
34
31
|
}
|
|
35
32
|
export interface TimeElement extends TimeElementProps, Omit<HTMLElement, 'id'> {
|
|
@@ -26,10 +26,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
declare const tagName = "s-unordered-list";
|
|
29
|
-
/**
|
|
30
|
-
* The element props interface for the UnorderedList component.
|
|
31
|
-
* @publicDocs
|
|
32
|
-
*/
|
|
29
|
+
/** @publicDocs */
|
|
33
30
|
export interface UnorderedListElementProps extends UnorderedListProps$1 {
|
|
34
31
|
}
|
|
35
32
|
export interface UnorderedListElement extends UnorderedListElementProps, Omit<HTMLElement, 'id'> {
|
|
@@ -38,19 +38,12 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
|
|
|
38
38
|
}) | null;
|
|
39
39
|
|
|
40
40
|
declare const tagName = "s-url-field";
|
|
41
|
-
/**
|
|
42
|
-
* Configure the following properties on the URL field component.
|
|
43
|
-
* @publicDocs
|
|
44
|
-
*/
|
|
41
|
+
/** @publicDocs */
|
|
45
42
|
export interface URLFieldElementProps extends Pick<URLFieldProps, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'readOnly' | 'required' | 'value'> {
|
|
46
43
|
}
|
|
47
44
|
export interface UrlFieldEvents extends Pick<URLFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
48
45
|
}
|
|
49
|
-
/**
|
|
50
|
-
* The URL field component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
|
|
51
|
-
*
|
|
52
|
-
* @publicDocs
|
|
53
|
-
*/
|
|
46
|
+
/** @publicDocs */
|
|
54
47
|
export interface URLFieldElementEvents {
|
|
55
48
|
/**
|
|
56
49
|
* A callback fired when the URL field loses focus.
|
|
@@ -77,11 +70,7 @@ export interface URLFieldElementEvents {
|
|
|
77
70
|
*/
|
|
78
71
|
input?: CallbackEventListener<typeof tagName>;
|
|
79
72
|
}
|
|
80
|
-
/**
|
|
81
|
-
* The URL field component supports slots for additional content placement within the component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
|
|
82
|
-
*
|
|
83
|
-
* @publicDocs
|
|
84
|
-
*/
|
|
73
|
+
/** @publicDocs */
|
|
85
74
|
export interface URLFieldElementSlots {
|
|
86
75
|
/**
|
|
87
76
|
* Additional interactive content displayed within the field. Accepts button and clickable components with text content only. Other component types or complex layouts are not supported.
|