@shopify/polaris-types 1.0.4 → 1.0.5
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/dist/polaris.d.ts +401 -117
- package/package.json +2 -2
package/dist/polaris.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ interface BackgroundProps {
|
|
|
202
202
|
*/
|
|
203
203
|
type ToneKeyword = 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical' | 'accent' | 'custom';
|
|
204
204
|
|
|
205
|
-
declare const privateIconArray: readonly ["adjust", "affiliate", "airplane", "alert-bubble", "alert-circle", "alert-diamond", "alert-location", "alert-octagon", "alert-octagon-filled", "alert-triangle", "alert-triangle-filled", "align-horizontal-centers", "app-extension", "apps", "archive", "arrow-down", "arrow-down-circle", "arrow-down-right", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-right", "arrows-in-horizontal", "arrows-out-horizontal", "asterisk", "attachment", "automation", "backspace", "bag", "bank", "barcode", "battery-low", "bill", "blank", "blog", "bolt", "bolt-filled", "book", "book-open", "bug", "bullet", "business-entity", "button", "button-press", "calculator", "calendar", "calendar-check", "calendar-compare", "calendar-list", "calendar-time", "camera", "camera-flip", "caret-down", "caret-left", "caret-right", "caret-up", "cart", "cart-abandoned", "cart-discount", "cart-down", "cart-filled", "cart-sale", "cart-send", "cart-up", "cash-dollar", "cash-euro", "cash-pound", "cash-rupee", "cash-yen", "catalog-product", "categories", "channels", "channels-filled", "chart-cohort", "chart-donut", "chart-funnel", "chart-histogram-first", "chart-histogram-first-last", "chart-histogram-flat", "chart-histogram-full", "chart-histogram-growth", "chart-histogram-last", "chart-histogram-second-last", "chart-horizontal", "chart-line", "chart-popular", "chart-stacked", "chart-vertical", "chat", "chat-new", "chat-referral", "check", "check-circle", "check-circle-filled", "checkbox", "chevron-down", "chevron-down-circle", "chevron-left", "chevron-left-circle", "chevron-right", "chevron-right-circle", "chevron-up", "chevron-up-circle", "circle", "circle-dashed", "clipboard", "clipboard-check", "clipboard-checklist", "clock", "clock-list", "clock-revert", "code", "code-add", "collection", "collection-featured", "collection-list", "collection-reference", "color", "color-none", "compass", "complete", "compose", "confetti", "connect", "content", "contract", "corner-pill", "corner-round", "corner-square", "credit-card", "credit-card-cancel", "credit-card-percent", "credit-card-reader", "credit-card-reader-chip", "credit-card-reader-tap", "credit-card-secure", "credit-card-tap-chip", "crop", "currency-convert", "cursor", "cursor-banner", "cursor-option", "data-presentation", "data-table", "database", "database-add", "database-connect", "delete", "delivered", "delivery", "desktop", "disabled", "disabled-filled", "discount", "discount-add", "discount-automatic", "discount-code", "discount-remove", "dns-settings", "dock-floating", "dock-side", "domain", "domain-landing-page", "domain-new", "domain-redirect", "download", "drag-drop", "drag-handle", "drawer", "duplicate", "edit", "email", "email-follow-up", "email-newsletter", "empty", "enabled", "enter", "envelope", "envelope-soft-pack", "eraser", "exchange", "exit", "export", "external", "eye-check-mark", "eye-dropper", "eye-dropper-list", "eye-first", "eyeglasses", "fav", "favicon", "file", "file-list", "filter", "filter-active", "flag", "flip-horizontal", "flip-vertical", "flower", "folder", "folder-add", "folder-down", "folder-remove", "folder-up", "food", "foreground", "forklift", "forms", "games", "gauge", "geolocation", "gift", "gift-card", "git-branch", "git-commit", "git-repository", "globe", "globe-asia", "globe-europe", "globe-lines", "globe-list", "graduation-hat", "grid", "hashtag", "hashtag-decimal", "hashtag-list", "heart", "hide", "hide-filled", "home", "home-filled", "icons", "identity-card", "image", "image-add", "image-alt", "image-explore", "image-magic", "image-none", "image-with-text-overlay", "images", "import", "in-progress", "incentive", "incoming", "incomplete", "info", "info-filled", "inheritance", "inventory", "inventory-edit", "inventory-list", "inventory-transfer", "inventory-updated", "iq", "key", "keyboard", "keyboard-filled", "keyboard-hide", "keypad", "label-printer", "language", "language-translate", "layout-block", "layout-buy-button", "layout-buy-button-horizontal", "layout-buy-button-vertical", "layout-column-1", "layout-columns-2", "layout-columns-3", "layout-footer", "layout-header", "layout-logo-block", "layout-popup", "layout-rows-2", "layout-section", "layout-sidebar-left", "layout-sidebar-right", "lightbulb", "link", "link-list", "list-bulleted", "list-bulleted-filled", "list-numbered", "live", "live-critical", "live-none", "location", "location-none", "lock", "map", "markets", "markets-euro", "markets-rupee", "markets-yen", "maximize", "measurement-size", "measurement-size-list", "measurement-volume", "measurement-volume-list", "measurement-weight", "measurement-weight-list", "media-receiver", "megaphone", "mention", "menu", "menu-filled", "menu-horizontal", "menu-vertical", "merge", "metafields", "metaobject", "metaobject-list", "metaobject-reference", "microphone", "microphone-muted", "minimize", "minus", "minus-circle", "mobile", "money", "money-none", "money-split", "moon", "nature", "note", "note-add", "notification", "number-one", "order", "order-batches", "order-draft", "order-filled", "order-first", "order-fulfilled", "order-repeat", "order-unfulfilled", "orders-status", "organization", "outdent", "outgoing", "package", "package-cancel", "package-fulfilled", "package-on-hold", "package-reassign", "package-returned", "page", "page-add", "page-attachment", "page-clock", "page-down", "page-heart", "page-list", "page-reference", "page-remove", "page-report", "page-up", "pagination-end", "pagination-start", "paint-brush-flat", "paint-brush-round", "paper-check", "partially-complete", "passkey", "paste", "pause-circle", "payment", "payment-capture", "payout", "payout-dollar", "payout-euro", "payout-pound", "payout-rupee", "payout-yen", "person", "person-add", "person-exit", "person-filled", "person-list", "person-lock", "person-remove", "person-segment", "personalized-text", "phablet", "phone", "phone-down", "phone-down-filled", "phone-in", "phone-out", "pin", "pin-remove", "plan", "play", "play-circle", "plus", "plus-circle", "plus-circle-down", "plus-circle-filled", "plus-circle-up", "point-of-sale", "point-of-sale-register", "price-list", "print", "product", "product-add", "product-cost", "product-filled", "product-list", "product-reference", "product-remove", "product-return", "product-unavailable", "profile", "profile-filled", "question-circle", "question-circle-filled", "radio-control", "receipt", "receipt-dollar", "receipt-euro", "receipt-folded", "receipt-paid", "receipt-pound", "receipt-refund", "receipt-rupee", "receipt-yen", "receivables", "redo", "referral-code", "refresh", "remove-background", "reorder", "replace", "replay", "reset", "return", "reward", "rocket", "rotate-left", "rotate-right", "sandbox", "save", "savings", "scan-qr-code", "search", "search-add", "search-list", "search-recent", "search-resource", "select", "send", "settings", "share", "shield-check-mark", "shield-none", "shield-pending", "shield-person", "shipping-label", "shipping-label-cancel", "shopcodes", "slideshow", "smiley-happy", "smiley-joy", "smiley-neutral", "smiley-sad", "social-ad", "social-post", "sort", "sort-ascending", "sort-descending", "sound", "split", "sports", "star", "star-circle", "star-filled", "star-half", "star-list", "status", "status-active", "stop-circle", "store", "store-import", "store-managed", "store-online", "sun", "table", "table-masonry", "tablet", "target", "tax", "team", "text", "text-align-center", "text-align-left", "text-align-right", "text-block", "text-bold", "text-color", "text-font", "text-font-list", "text-grammar", "text-in-columns", "text-in-rows", "text-indent", "text-indent-remove", "text-italic", "text-quote", "text-title", "text-underline", "text-with-image", "theme", "theme-cart", "theme-edit", "theme-store", "theme-template", "three-d-environment", "thumbs-down", "thumbs-up", "tip-jar", "toggle-off", "toggle-on", "transaction", "transaction-fee-add", "transaction-fee-dollar", "transaction-fee-euro", "transaction-fee-pound", "transaction-fee-rupee", "transaction-fee-yen", "transfer", "transfer-in", "transfer-internal", "transfer-out", "truck", "undo", "unknown-device", "unlock", "upload", "variant", "variant-list", "video", "video-list", "view", "viewport-narrow", "viewport-short", "viewport-tall", "viewport-wide", "wallet", "wand", "watch", "wifi", "work", "work-list", "wrench", "x", "x-circle", "x-circle-filled"];
|
|
205
|
+
declare const privateIconArray: readonly ["adjust", "affiliate", "airplane", "alert-bubble", "alert-circle", "alert-diamond", "alert-location", "alert-octagon", "alert-octagon-filled", "alert-triangle", "alert-triangle-filled", "align-horizontal-centers", "app-extension", "apps", "archive", "arrow-down", "arrow-down-circle", "arrow-down-right", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-right", "arrows-in-horizontal", "arrows-out-horizontal", "asterisk", "attachment", "automation", "backspace", "bag", "bank", "barcode", "battery-low", "bill", "blank", "blog", "bolt", "bolt-filled", "book", "book-open", "brain", "bug", "bullet", "business-entity", "button", "button-press", "calculator", "calendar", "calendar-check", "calendar-compare", "calendar-list", "calendar-time", "camera", "camera-flip", "caret-down", "caret-left", "caret-right", "caret-up", "cart", "cart-abandoned", "cart-discount", "cart-down", "cart-filled", "cart-sale", "cart-send", "cart-up", "cash-dollar", "cash-euro", "cash-pound", "cash-rupee", "cash-yen", "catalog-product", "categories", "channels", "channels-filled", "chart-cohort", "chart-donut", "chart-funnel", "chart-histogram-first", "chart-histogram-first-last", "chart-histogram-flat", "chart-histogram-full", "chart-histogram-growth", "chart-histogram-last", "chart-histogram-second-last", "chart-horizontal", "chart-line", "chart-popular", "chart-stacked", "chart-vertical", "chat", "chat-new", "chat-referral", "check", "check-circle", "check-circle-filled", "checkbox", "chevron-down", "chevron-down-circle", "chevron-left", "chevron-left-circle", "chevron-right", "chevron-right-circle", "chevron-up", "chevron-up-circle", "circle", "circle-dashed", "clipboard", "clipboard-check", "clipboard-checklist", "clock", "clock-list", "clock-revert", "code", "code-add", "collection", "collection-featured", "collection-list", "collection-reference", "color", "color-none", "compass", "complete", "compose", "confetti", "connect", "content", "contract", "corner-pill", "corner-round", "corner-square", "credit-card", "credit-card-cancel", "credit-card-percent", "credit-card-reader", "credit-card-reader-chip", "credit-card-reader-tap", "credit-card-secure", "credit-card-tap-chip", "crop", "currency-convert", "cursor", "cursor-banner", "cursor-option", "data-presentation", "data-table", "database", "database-add", "database-connect", "delete", "delivered", "delivery", "desktop", "disabled", "disabled-filled", "discount", "discount-add", "discount-automatic", "discount-code", "discount-remove", "dns-settings", "dock-floating", "dock-side", "domain", "domain-landing-page", "domain-new", "domain-redirect", "download", "drag-drop", "drag-handle", "drawer", "duplicate", "edit", "email", "email-follow-up", "email-newsletter", "empty", "enabled", "enter", "envelope", "envelope-soft-pack", "eraser", "exchange", "exit", "export", "external", "eye-check-mark", "eye-dropper", "eye-dropper-list", "eye-first", "eyeglasses", "fav", "favicon", "file", "file-list", "filter", "filter-active", "flag", "flip-horizontal", "flip-vertical", "flower", "folder", "folder-add", "folder-down", "folder-remove", "folder-up", "food", "foreground", "forklift", "forms", "games", "gauge", "geolocation", "gift", "gift-card", "git-branch", "git-commit", "git-repository", "globe", "globe-asia", "globe-europe", "globe-lines", "globe-list", "graduation-hat", "grid", "hashtag", "hashtag-decimal", "hashtag-list", "heart", "hide", "hide-filled", "home", "home-filled", "icons", "identity-card", "image", "image-add", "image-alt", "image-explore", "image-magic", "image-none", "image-with-text-overlay", "images", "import", "in-progress", "incentive", "incoming", "incomplete", "info", "info-filled", "inheritance", "inventory", "inventory-edit", "inventory-list", "inventory-transfer", "inventory-updated", "iq", "key", "keyboard", "keyboard-filled", "keyboard-hide", "keypad", "label-printer", "language", "language-translate", "layout-block", "layout-buy-button", "layout-buy-button-horizontal", "layout-buy-button-vertical", "layout-column-1", "layout-columns-2", "layout-columns-3", "layout-footer", "layout-header", "layout-logo-block", "layout-popup", "layout-rows-2", "layout-section", "layout-sidebar-left", "layout-sidebar-right", "layer", "lightbulb", "link", "link-list", "list-bulleted", "list-bulleted-filled", "list-numbered", "live", "live-critical", "live-none", "location", "location-none", "lock", "map", "markets", "markets-euro", "markets-rupee", "markets-yen", "maximize", "measurement-size", "measurement-size-list", "measurement-volume", "measurement-volume-list", "measurement-weight", "measurement-weight-list", "media-receiver", "megaphone", "mention", "menu", "menu-filled", "menu-horizontal", "menu-vertical", "merge", "metafields", "metaobject", "metaobject-list", "metaobject-reference", "microphone", "microphone-muted", "minimize", "minus", "minus-circle", "mobile", "money", "money-none", "money-split", "moon", "nature", "note", "note-add", "notification", "number-one", "order", "order-batches", "order-draft", "order-filled", "order-first", "order-fulfilled", "order-repeat", "order-unfulfilled", "orders-status", "organization", "outdent", "outgoing", "package", "package-cancel", "package-fulfilled", "package-on-hold", "package-reassign", "package-returned", "page", "page-add", "page-attachment", "page-clock", "page-down", "page-heart", "page-list", "page-reference", "page-remove", "page-report", "page-up", "pagination-end", "pagination-start", "paint-brush-flat", "paint-brush-round", "paper-check", "partially-complete", "passkey", "paste", "pause-circle", "payment", "payment-capture", "payout", "payout-dollar", "payout-euro", "payout-pound", "payout-rupee", "payout-yen", "person", "person-add", "person-exit", "person-filled", "person-list", "person-lock", "person-remove", "person-segment", "personalized-text", "phablet", "phone", "phone-down", "phone-down-filled", "phone-in", "phone-out", "pin", "pin-remove", "plan", "play", "play-circle", "plus", "plus-circle", "plus-circle-down", "plus-circle-filled", "plus-circle-up", "point-of-sale", "point-of-sale-register", "price-list", "print", "product", "product-add", "product-cost", "product-filled", "product-list", "product-reference", "product-remove", "product-return", "product-unavailable", "profile", "profile-filled", "question-circle", "question-circle-filled", "radio-control", "receipt", "receipt-dollar", "receipt-euro", "receipt-folded", "receipt-paid", "receipt-pound", "receipt-refund", "receipt-rupee", "receipt-yen", "receivables", "redo", "referral-code", "refresh", "remove-background", "reorder", "replace", "replay", "reset", "return", "reward", "rocket", "rotate-left", "rotate-right", "sandbox", "save", "savings", "scan-qr-code", "search", "search-add", "search-list", "search-recent", "search-resource", "select", "send", "settings", "share", "shield-check-mark", "shield-none", "shield-pending", "shield-person", "shipping-label", "shipping-label-cancel", "shopcodes", "slideshow", "smiley-happy", "smiley-joy", "smiley-neutral", "smiley-sad", "social-ad", "social-post", "sort", "sort-ascending", "sort-descending", "sound", "split", "sports", "star", "star-circle", "star-filled", "star-half", "star-list", "status", "status-active", "stop-circle", "store", "store-import", "store-managed", "store-online", "sun", "table", "table-masonry", "tablet", "target", "tax", "team", "text", "text-align-center", "text-align-left", "text-align-right", "text-block", "text-bold", "text-color", "text-font", "text-font-list", "text-grammar", "text-in-columns", "text-in-rows", "text-indent", "text-indent-remove", "text-italic", "text-quote", "text-title", "text-underline", "text-with-image", "theme", "theme-cart", "theme-edit", "theme-store", "theme-template", "three-d-environment", "thumbs-down", "thumbs-up", "tip-jar", "toggle-off", "toggle-on", "transaction", "transaction-fee-add", "transaction-fee-dollar", "transaction-fee-euro", "transaction-fee-pound", "transaction-fee-rupee", "transaction-fee-yen", "transfer", "transfer-in", "transfer-internal", "transfer-out", "truck", "undo", "unknown-device", "unlock", "upload", "variant", "variant-list", "video", "video-list", "view", "viewport-narrow", "viewport-short", "viewport-tall", "viewport-wide", "wallet", "wand", "watch", "wifi", "work", "work-list", "wrench", "x", "x-circle", "x-circle-filled"];
|
|
206
206
|
type IconType$1 = (typeof privateIconArray)[number];
|
|
207
207
|
|
|
208
208
|
/**
|
|
@@ -1024,8 +1024,14 @@ interface FieldErrorProps {
|
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Indicate an error to the user. The field will be given a specific stylistic treatment
|
|
1026
1026
|
* to communicate problems that have to be resolved immediately.
|
|
1027
|
+
*
|
|
1028
|
+
* @implementation (string) The error is a simple string that will be displayed to the user.
|
|
1029
|
+
*
|
|
1030
|
+
* @implementation (ComponentChildren) Behaves as a slot: any elements passed
|
|
1031
|
+
* are rendered as the error content (subject to surface constraints); there
|
|
1032
|
+
* is no coercion to a string.
|
|
1027
1033
|
*/
|
|
1028
|
-
error?: string;
|
|
1034
|
+
error?: string | ComponentChildren;
|
|
1029
1035
|
}
|
|
1030
1036
|
interface BasicFieldProps extends FieldErrorProps, LabelAccessibilityVisibilityProps {
|
|
1031
1037
|
/**
|
|
@@ -1039,8 +1045,14 @@ interface BasicFieldProps extends FieldErrorProps, LabelAccessibilityVisibilityP
|
|
|
1039
1045
|
required?: boolean;
|
|
1040
1046
|
/**
|
|
1041
1047
|
* Content to use as the field label.
|
|
1048
|
+
*
|
|
1049
|
+
* @implementation (string) The label is a simple string that will be displayed to the user.
|
|
1050
|
+
*
|
|
1051
|
+
* @implementation (ComponentChildren) Behaves as a slot: any elements passed
|
|
1052
|
+
* are rendered as the label content (subject to surface constraints); there
|
|
1053
|
+
* is no coercion to a string.
|
|
1042
1054
|
*/
|
|
1043
|
-
label?: string;
|
|
1055
|
+
label?: string | ComponentChildren;
|
|
1044
1056
|
}
|
|
1045
1057
|
interface FieldDetailsProps {
|
|
1046
1058
|
/**
|
|
@@ -1049,8 +1061,14 @@ interface FieldDetailsProps {
|
|
|
1049
1061
|
* to offer more information or instructions to the user.
|
|
1050
1062
|
*
|
|
1051
1063
|
* This will also be exposed to screen reader users.
|
|
1064
|
+
*
|
|
1065
|
+
* @implementation (string) The details is a simple string that will be displayed to the user.
|
|
1066
|
+
*
|
|
1067
|
+
* @implementation (ComponentChildren) Behaves as a slot: any elements passed
|
|
1068
|
+
* are rendered as the details content (subject to surface constraints); there
|
|
1069
|
+
* is no coercion to a string.
|
|
1052
1070
|
*/
|
|
1053
|
-
details?: string;
|
|
1071
|
+
details?: string | ComponentChildren;
|
|
1054
1072
|
}
|
|
1055
1073
|
interface FieldProps extends BasicFieldProps, InputProps, FocusEventProps, FieldDetailsProps {
|
|
1056
1074
|
/**
|
|
@@ -1194,11 +1212,17 @@ interface BaseOptionProps extends BaseSelectableProps {
|
|
|
1194
1212
|
*/
|
|
1195
1213
|
defaultSelected?: boolean;
|
|
1196
1214
|
}
|
|
1197
|
-
interface BaseCheckableProps extends BaseSelectableProps, InteractionProps {
|
|
1215
|
+
interface BaseCheckableProps extends BaseSelectableProps, FocusEventProps, LabelAccessibilityVisibilityProps, InteractionProps {
|
|
1198
1216
|
/**
|
|
1199
1217
|
* Visual content to use as the control label.
|
|
1218
|
+
*
|
|
1219
|
+
* @implementation (string) The label is a simple string that will be displayed to the user.
|
|
1220
|
+
*
|
|
1221
|
+
* @implementation (ComponentChildren) Behaves as a slot: any elements passed
|
|
1222
|
+
* are rendered as the label content (subject to surface constraints); there
|
|
1223
|
+
* is no coercion to a string.
|
|
1200
1224
|
*/
|
|
1201
|
-
label?: string;
|
|
1225
|
+
label?: string | ComponentChildren;
|
|
1202
1226
|
/**
|
|
1203
1227
|
* Whether the control is active.
|
|
1204
1228
|
*
|
|
@@ -2188,7 +2212,7 @@ interface MenuProps$1 extends GlobalProps {
|
|
|
2188
2212
|
*/
|
|
2189
2213
|
accessibilityLabel?: string;
|
|
2190
2214
|
/**
|
|
2191
|
-
* The children define the actions to render inside the Menu. Only Button components are allowed as children of a Menu, and these Buttons can perform actions (using `onClick`) or link to other parts of the application (using `to`/ `href`). Any other component placed here will be ignored.
|
|
2215
|
+
* The children define the actions to render inside the Menu. Only Button and SearchField components are allowed as children of a Menu, and these Buttons can perform actions (using `onClick`) or link to other parts of the application (using `to`/ `href`). Any other component placed here will be ignored.
|
|
2192
2216
|
*/
|
|
2193
2217
|
children?: ComponentChildren;
|
|
2194
2218
|
}
|
|
@@ -2240,6 +2264,10 @@ interface MoneyFieldProps$1 extends GlobalProps, BaseTextFieldProps, NumberConst
|
|
|
2240
2264
|
*
|
|
2241
2265
|
* When set to 'auto', the field will display the currency code of the shop.
|
|
2242
2266
|
* If no currency code is set for the shop, resolve to 'XXX' the explicit non value.
|
|
2267
|
+
*
|
|
2268
|
+
* This value will match the global currency code of the shop, so if you need to know the currency code of the field,
|
|
2269
|
+
* you can read the value from those APIs.
|
|
2270
|
+
*
|
|
2243
2271
|
* @default 'auto'
|
|
2244
2272
|
*/
|
|
2245
2273
|
currencyCode?: CurrencyCode | 'auto';
|
|
@@ -2342,6 +2370,12 @@ interface PageProps$1 extends GlobalProps, ActionSlots {
|
|
|
2342
2370
|
* @default 'base'
|
|
2343
2371
|
*/
|
|
2344
2372
|
inlineSize?: SizeKeyword;
|
|
2373
|
+
/**
|
|
2374
|
+
* A slot for content that comes before the main content, such as an `s-banner`.
|
|
2375
|
+
*
|
|
2376
|
+
* @implementation surfaces could restrict the content of this slot to certain elements, such as only allowing an `s-banner`.
|
|
2377
|
+
*/
|
|
2378
|
+
supplementalStart?: ComponentChildren;
|
|
2345
2379
|
}
|
|
2346
2380
|
|
|
2347
2381
|
interface ParagraphProps$1 extends GlobalProps, BaseTypographyProps, BlockTypographyProps, AccessibilityVisibilityProps {
|
|
@@ -2561,6 +2595,7 @@ interface PaginationProps {
|
|
|
2561
2595
|
*/
|
|
2562
2596
|
loading?: boolean;
|
|
2563
2597
|
}
|
|
2598
|
+
type ComputedTableVariant = 'list' | 'table';
|
|
2564
2599
|
interface TableProps$1 extends GlobalProps, PaginationProps {
|
|
2565
2600
|
/**
|
|
2566
2601
|
* The content of the Table.
|
|
@@ -2573,13 +2608,22 @@ interface TableProps$1 extends GlobalProps, PaginationProps {
|
|
|
2573
2608
|
/**
|
|
2574
2609
|
* Sets the layout of the Table.
|
|
2575
2610
|
*
|
|
2576
|
-
* - `list`: The Table is
|
|
2577
|
-
* - `table`: The Table is
|
|
2611
|
+
* - `list`: The Table is displayed as a list.
|
|
2612
|
+
* - `table`: The Table is displayed as a table.
|
|
2578
2613
|
* - `auto`: The Table is displayed as a table on wide devices and as a list on narrow devices.
|
|
2579
2614
|
*
|
|
2580
2615
|
* @default 'auto'
|
|
2581
2616
|
*/
|
|
2582
|
-
variant?:
|
|
2617
|
+
variant?: ComputedTableVariant | 'auto';
|
|
2618
|
+
/**
|
|
2619
|
+
* The currently-used variant of the Table.
|
|
2620
|
+
* This is only a getter; you cannot set it.
|
|
2621
|
+
*/
|
|
2622
|
+
computedVariant?: ComputedTableVariant;
|
|
2623
|
+
/**
|
|
2624
|
+
* Event is emitted when the computed variant of the Table changes.
|
|
2625
|
+
*/
|
|
2626
|
+
onComputedVariantChange?: (event: Event) => void;
|
|
2583
2627
|
}
|
|
2584
2628
|
|
|
2585
2629
|
interface TableBodyProps$1 extends GlobalProps {
|
|
@@ -2803,6 +2847,7 @@ type URLAutocompleteField = ExtractStrict<AnyAutocompleteField, 'url' | 'photo'
|
|
|
2803
2847
|
|
|
2804
2848
|
type Styles = string;
|
|
2805
2849
|
declare const shadowRootSymbol: unique symbol;
|
|
2850
|
+
declare const flushRenderSymbol: unique symbol;
|
|
2806
2851
|
type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
2807
2852
|
ShadowRoot: (element: any) => ComponentChildren$1;
|
|
2808
2853
|
styles?: Styles;
|
|
@@ -2828,13 +2873,39 @@ interface ClickOptions {
|
|
|
2828
2873
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
2829
2874
|
* So we give it a type of HTMLElement to avoid typing issues later where it's used, which will only happen in the browser.
|
|
2830
2875
|
*/
|
|
2831
|
-
declare const BaseClass$
|
|
2832
|
-
declare abstract class PreactCustomElement extends BaseClass$
|
|
2876
|
+
declare const BaseClass$2: typeof globalThis.HTMLElement;
|
|
2877
|
+
declare abstract class PreactCustomElement extends BaseClass$2 {
|
|
2833
2878
|
/** @private */
|
|
2834
2879
|
static get observedAttributes(): string[];
|
|
2835
2880
|
/** @private */
|
|
2836
2881
|
[shadowRootSymbol]: ShadowRoot | null;
|
|
2882
|
+
/**
|
|
2883
|
+
* A promise that resolves after the next render completes.
|
|
2884
|
+
* Useful for non-React consumers who need to wait for the shadow DOM
|
|
2885
|
+
* to be populated after setting properties.
|
|
2886
|
+
*/
|
|
2887
|
+
get updateComplete(): Promise<void>;
|
|
2837
2888
|
constructor({ styles, ShadowRoot: renderFunction, delegatesFocus, globalShadowCSS, ...options }: RenderImpl);
|
|
2889
|
+
/**
|
|
2890
|
+
* Flush any pending render synchronously.
|
|
2891
|
+
*
|
|
2892
|
+
* Called by reactWrap's useLayoutEffect after all props are set,
|
|
2893
|
+
* ensuring the shadow DOM is populated before the consumer's
|
|
2894
|
+
* useLayoutEffect fires. The version counter invalidates any
|
|
2895
|
+
* pending microtask so the total render count stays at 1.
|
|
2896
|
+
*
|
|
2897
|
+
* Uses a Symbol key so this method is not callable by external
|
|
2898
|
+
* consumers — only internal code that imports flushRenderSymbol
|
|
2899
|
+
* can invoke it.
|
|
2900
|
+
*
|
|
2901
|
+
* Guarded by #hasPendingRender to avoid spurious Preact re-renders.
|
|
2902
|
+
* React creates a new props object reference on every parent render,
|
|
2903
|
+
* so reactWrap's useLayoutEffect (which depends on [props]) fires
|
|
2904
|
+
* even when no prop *values* changed. Without the guard, every
|
|
2905
|
+
* unrelated parent re-render would trigger a full Preact
|
|
2906
|
+
* reconciliation — proportional to parent re-render frequency.
|
|
2907
|
+
*/
|
|
2908
|
+
[flushRenderSymbol](): void;
|
|
2838
2909
|
/** @private */
|
|
2839
2910
|
setAttribute(name: string, value: string): void;
|
|
2840
2911
|
/** @private */
|
|
@@ -2911,21 +2982,73 @@ declare global {
|
|
|
2911
2982
|
}
|
|
2912
2983
|
}
|
|
2913
2984
|
|
|
2985
|
+
/**
|
|
2986
|
+
* An event object with a strongly-typed `currentTarget` property that references the specific HTML element that triggered the event.
|
|
2987
|
+
*
|
|
2988
|
+
* This type extends the standard DOM `Event` interface and ensures type safety when accessing the element that fired the event.
|
|
2989
|
+
*/
|
|
2914
2990
|
type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
2915
2991
|
currentTarget: HTMLElementTagNameMap[T];
|
|
2916
2992
|
};
|
|
2993
|
+
/**
|
|
2994
|
+
* A toggle event with a strongly-typed `currentTarget` property.
|
|
2995
|
+
* Extends the `ToggleEvent` interface with type-safe access to the element that triggered the toggle.
|
|
2996
|
+
*/
|
|
2917
2997
|
type CallbackToggleEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends ToggleEvent = ToggleEvent> = TEvent & {
|
|
2918
2998
|
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
2919
2999
|
};
|
|
3000
|
+
/**
|
|
3001
|
+
* A function that handles events from UI components.
|
|
3002
|
+
*
|
|
3003
|
+
* This type represents an event listener callback that receives a `CallbackEvent` with a strongly-typed `currentTarget`.
|
|
3004
|
+
* Use this for component event handlers like `click`, `focus`, `blur`, and other DOM events.
|
|
3005
|
+
*
|
|
3006
|
+
* @example
|
|
3007
|
+
* const handleClick: CallbackEventListener<'button'> = (event) => {
|
|
3008
|
+
* console.log('Button clicked:', event.currentTarget);
|
|
3009
|
+
* };
|
|
3010
|
+
*/
|
|
2920
3011
|
type CallbackEventListener<T extends keyof HTMLElementTagNameMap> = (EventListener & {
|
|
2921
3012
|
(event: CallbackEvent<T>): void;
|
|
2922
3013
|
}) | null;
|
|
2923
3014
|
type FieldReactProps<T extends keyof HTMLElementTagNameMap> = {
|
|
3015
|
+
/**
|
|
3016
|
+
* A callback fired when the user makes changes to the field value. This fires before `onChange`.
|
|
3017
|
+
*/
|
|
2924
3018
|
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
3019
|
+
/**
|
|
3020
|
+
* A callback fired when the user has finished editing the field, such as when they blur the field.
|
|
3021
|
+
*/
|
|
2925
3022
|
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
3023
|
+
/**
|
|
3024
|
+
* A callback fired when the field receives focus.
|
|
3025
|
+
*/
|
|
2926
3026
|
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
3027
|
+
/**
|
|
3028
|
+
* A callback fired when the field loses focus.
|
|
3029
|
+
*/
|
|
2927
3030
|
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
2928
3031
|
};
|
|
3032
|
+
/**
|
|
3033
|
+
* Props for field slot content (label, error, details) that accept
|
|
3034
|
+
* either a string or JSX content in the React wrapper.
|
|
3035
|
+
*
|
|
3036
|
+
* Internal use only — not exported publicly. External consumers receive
|
|
3037
|
+
* string-only types via FieldSlotPreactProps.
|
|
3038
|
+
*/
|
|
3039
|
+
type FieldSlotInternalReactProps = {
|
|
3040
|
+
error?: preact.ComponentChildren;
|
|
3041
|
+
details?: preact.ComponentChildren;
|
|
3042
|
+
};
|
|
3043
|
+
/**
|
|
3044
|
+
* Preact JSX string-only versions of field slot props.
|
|
3045
|
+
* Used in Preact module declarations after Omit-ing the ComponentChildren
|
|
3046
|
+
* versions (required by force-omit-react-slots lint rule).
|
|
3047
|
+
*/
|
|
3048
|
+
type FieldSlotPreactProps = {
|
|
3049
|
+
error?: string;
|
|
3050
|
+
details?: string;
|
|
3051
|
+
};
|
|
2929
3052
|
/** Used when an element does not have children. */
|
|
2930
3053
|
interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
2931
3054
|
/** Assigns a unique key to this element. */
|
|
@@ -2959,6 +3082,10 @@ interface PolarisGlobal {
|
|
|
2959
3082
|
moreActions: string;
|
|
2960
3083
|
/** Template for the add value chip. Use `{label}` as the placeholder. */
|
|
2961
3084
|
addValue: string;
|
|
3085
|
+
/** Template for the edit value button in inline layout. Use `{label}` as the placeholder. */
|
|
3086
|
+
editValue: string;
|
|
3087
|
+
/** Label shown when a read-only multi picker field has no values. */
|
|
3088
|
+
none: string;
|
|
2962
3089
|
};
|
|
2963
3090
|
pagination: {
|
|
2964
3091
|
goToNextPage: string;
|
|
@@ -2975,6 +3102,7 @@ interface PolarisGlobal {
|
|
|
2975
3102
|
hueSliderLabel: string;
|
|
2976
3103
|
alphaSliderLabel: string;
|
|
2977
3104
|
thumbDescription: string;
|
|
3105
|
+
thumbLabel: string;
|
|
2978
3106
|
};
|
|
2979
3107
|
colorField: {
|
|
2980
3108
|
colorPreviewDescription: string;
|
|
@@ -3088,7 +3216,7 @@ declare module 'preact' {
|
|
|
3088
3216
|
}
|
|
3089
3217
|
}
|
|
3090
3218
|
|
|
3091
|
-
type IconType = "adjust" | "affiliate" | "airplane" | "alert-bubble" | "alert-circle" | "alert-diamond" | "alert-location" | "alert-octagon" | "alert-octagon-filled" | "alert-triangle" | "align-horizontal-centers" | "app-extension" | "apps" | "archive" | "arrow-down" | "arrow-down-circle" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-right" | "arrows-in-horizontal" | "arrows-out-horizontal" | "asterisk" | "attachment" | "automation" | "backspace" | "bag" | "bank" | "barcode" | "bill" | "blank" | "blog" | "bolt" | "bolt-filled" | "book" | "book-open" | "bug" | "bullet" | "business-entity" | "button" | "button-press" | "calculator" | "calendar" | "calendar-check" | "calendar-compare" | "calendar-list" | "calendar-time" | "camera" | "camera-flip" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "cart" | "cart-abandoned" | "cart-discount" | "cart-down" | "cart-sale" | "cart-up" | "cash-dollar" | "cash-euro" | "cash-pound" | "cash-rupee" | "cash-yen" | "catalog-product" | "categories" | "channels" | "channels-filled" | "chart-cohort" | "chart-donut" | "chart-funnel" | "chart-histogram-first" | "chart-histogram-first-last" | "chart-histogram-flat" | "chart-histogram-full" | "chart-histogram-growth" | "chart-histogram-last" | "chart-histogram-second-last" | "chart-horizontal" | "chart-line" | "chart-popular" | "chart-stacked" | "chart-vertical" | "chat" | "chat-new" | "chat-referral" | "check" | "check-circle" | "check-circle-filled" | "checkbox" | "chevron-down" | "chevron-down-circle" | "chevron-left" | "chevron-left-circle" | "chevron-right" | "chevron-right-circle" | "chevron-up" | "chevron-up-circle" | "circle" | "circle-dashed" | "clipboard" | "clipboard-check" | "clipboard-checklist" | "clock" | "clock-list" | "clock-revert" | "code" | "code-add" | "collection" | "collection-featured" | "collection-list" | "collection-reference" | "color" | "color-none" | "compass" | "compose" | "confetti" | "connect" | "content" | "contract" | "corner-pill" | "corner-round" | "corner-square" | "credit-card" | "credit-card-cancel" | "credit-card-percent" | "credit-card-reader" | "credit-card-reader-chip" | "credit-card-reader-tap" | "credit-card-secure" | "credit-card-tap-chip" | "crop" | "currency-convert" | "cursor" | "cursor-banner" | "cursor-option" | "data-presentation" | "data-table" | "database" | "database-add" | "database-connect" | "delete" | "delivery" | "desktop" | "disabled" | "discount" | "discount-add" | "discount-code" | "dns-settings" | "dock-floating" | "dock-side" | "domain" | "domain-landing-page" | "domain-new" | "domain-redirect" | "download" | "drag-drop" | "drag-handle" | "duplicate" | "edit" | "email" | "email-follow-up" | "email-newsletter" | "enabled" | "enter" | "envelope" | "envelope-soft-pack" | "eraser" | "exchange" | "exit" | "export" | "external" | "eye-check-mark" | "eye-dropper" | "eye-dropper-list" | "eye-first" | "eyeglasses" | "favicon" | "file" | "file-list" | "filter" | "filter-active" | "flag" | "flip-horizontal" | "flip-vertical" | "flower" | "folder" | "folder-add" | "folder-down" | "folder-remove" | "folder-up" | "food" | "foreground" | "forklift" | "forms" | "games" | "gauge" | "gift-card" | "git-branch" | "git-commit" | "git-repository" | "globe" | "globe-asia" | "globe-europe" | "globe-lines" | "globe-list" | "grid" | "hashtag" | "hashtag-decimal" | "hashtag-list" | "heart" | "hide" | "hide-filled" | "home" | "icons" | "identity-card" | "image" | "image-add" | "image-alt" | "image-explore" | "image-magic" | "image-none" | "image-with-text-overlay" | "images" | "import" | "in-progress" | "incentive" | "incoming" | "incomplete" | "info" | "inheritance" | "inventory" | "inventory-updated" | "iq" | "key" | "keyboard" | "keyboard-filled" | "keyboard-hide" | "label-printer" | "language" | "language-translate" | "layout-block" | "layout-buy-button" | "layout-buy-button-horizontal" | "layout-buy-button-vertical" | "layout-column-1" | "layout-columns-2" | "layout-columns-3" | "layout-footer" | "layout-header" | "layout-logo-block" | "layout-popup" | "layout-rows-2" | "layout-section" | "layout-sidebar-left" | "layout-sidebar-right" | "lightbulb" | "link" | "link-list" | "list-bulleted" | "list-numbered" | "live" | "location" | "location-none" | "lock" | "map" | "markets" | "markets-euro" | "markets-rupee" | "markets-yen" | "maximize" | "measurement-size" | "measurement-size-list" | "measurement-volume" | "measurement-volume-list" | "measurement-weight" | "measurement-weight-list" | "media-receiver" | "megaphone" | "mention" | "menu" | "menu-horizontal" | "menu-vertical" | "merge" | "metafields" | "metaobject" | "metaobject-list" | "metaobject-reference" | "microphone" | "microphone-muted" | "minimize" | "minus" | "minus-circle" | "mobile" | "money" | "money-none" | "moon" | "nature" | "note" | "note-add" | "notification" | "number-one" | "order" | "order-batches" | "order-draft" | "order-first" | "order-fulfilled" | "order-repeat" | "order-unfulfilled" | "orders-status" | "organization" | "outdent" | "outgoing" | "package" | "package-fulfilled" | "package-on-hold" | "package-returned" | "page" | "page-add" | "page-attachment" | "page-clock" | "page-down" | "page-heart" | "page-list" | "page-reference" | "page-remove" | "page-report" | "page-up" | "pagination-end" | "pagination-start" | "paint-brush-flat" | "paint-brush-round" | "paper-check" | "passkey" | "paste" | "pause-circle" | "payment" | "payment-capture" | "payout" | "payout-dollar" | "payout-euro" | "payout-pound" | "payout-rupee" | "payout-yen" | "person" | "person-add" | "person-exit" | "person-list" | "person-lock" | "person-remove" | "person-segment" | "personalized-text" | "phone" | "phone-down" | "phone-down-filled" | "phone-in" | "phone-out" | "pin" | "pin-remove" | "plan" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-circle-down" | "plus-circle-filled" | "plus-circle-up" | "point-of-sale" | "price-list" | "print" | "product" | "product-add" | "product-cost" | "product-list" | "product-reference" | "product-remove" | "product-return" | "product-unavailable" | "profile" | "profile-filled" | "question-circle" | "question-circle-filled" | "radio-control" | "receipt" | "receipt-dollar" | "receipt-euro" | "receipt-paid" | "receipt-pound" | "receipt-refund" | "receipt-rupee" | "receipt-yen" | "receivables" | "redo" | "referral-code" | "refresh" | "remove-background" | "replace" | "replay" | "reset" | "return" | "reward" | "rocket" | "rotate-left" | "rotate-right" | "sandbox" | "save" | "search" | "search-add" | "search-list" | "search-recent" | "search-resource" | "select" | "send" | "settings" | "share" | "shield-check-mark" | "shield-none" | "shield-pending" | "shield-person" | "shipping-label" | "shopcodes" | "slideshow" | "smiley-happy" | "smiley-joy" | "smiley-neutral" | "smiley-sad" | "social-ad" | "social-post" | "sort" | "sort-ascending" | "sort-descending" | "sound" | "split" | "sports" | "star" | "star-filled" | "star-list" | "status" | "status-active" | "stop-circle" | "store" | "store-import" | "store-managed" | "store-online" | "sun" | "table" | "table-masonry" | "tablet" | "target" | "tax" | "team" | "text" | "text-align-center" | "text-align-left" | "text-align-right" | "text-block" | "text-bold" | "text-color" | "text-font" | "text-font-list" | "text-grammar" | "text-in-columns" | "text-in-rows" | "text-indent" | "text-italic" | "text-quote" | "text-title" | "text-underline" | "text-with-image" | "theme" | "theme-cart" | "theme-edit" | "theme-store" | "theme-template" | "three-d-environment" | "thumbs-down" | "thumbs-up" | "tip-jar" | "toggle-off" | "toggle-on" | "transaction" | "transaction-fee-dollar" | "transaction-fee-euro" | "transaction-fee-pound" | "transaction-fee-rupee" | "transaction-fee-yen" | "transfer" | "transfer-in" | "transfer-internal" | "transfer-out" | "undo" | "unknown-device" | "unlock" | "upload" | "variant" | "variant-list" | "video" | "video-list" | "view" | "viewport-narrow" | "viewport-short" | "viewport-tall" | "viewport-wide" | "wallet" | "wand" | "watch" | "wifi" | "work" | "work-list" | "wrench" | "x" | "x-circle";
|
|
3219
|
+
type IconType = "adjust" | "affiliate" | "airplane" | "alert-bubble" | "alert-circle" | "alert-diamond" | "alert-location" | "alert-octagon" | "alert-octagon-filled" | "alert-triangle" | "align-horizontal-centers" | "app-extension" | "apps" | "archive" | "arrow-down" | "arrow-down-circle" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-right" | "arrows-in-horizontal" | "arrows-out-horizontal" | "asterisk" | "attachment" | "automation" | "backspace" | "bag" | "bank" | "barcode" | "bill" | "blank" | "blog" | "bolt" | "bolt-filled" | "book" | "book-open" | "brain" | "bug" | "bullet" | "business-entity" | "button" | "button-press" | "calculator" | "calendar" | "calendar-check" | "calendar-compare" | "calendar-list" | "calendar-time" | "camera" | "camera-flip" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "cart" | "cart-abandoned" | "cart-discount" | "cart-down" | "cart-sale" | "cart-up" | "cash-dollar" | "cash-euro" | "cash-pound" | "cash-rupee" | "cash-yen" | "catalog-product" | "categories" | "channels" | "channels-filled" | "chart-cohort" | "chart-donut" | "chart-funnel" | "chart-histogram-first" | "chart-histogram-first-last" | "chart-histogram-flat" | "chart-histogram-full" | "chart-histogram-growth" | "chart-histogram-last" | "chart-histogram-second-last" | "chart-horizontal" | "chart-line" | "chart-popular" | "chart-stacked" | "chart-vertical" | "chat" | "chat-new" | "chat-referral" | "check" | "check-circle" | "check-circle-filled" | "checkbox" | "chevron-down" | "chevron-down-circle" | "chevron-left" | "chevron-left-circle" | "chevron-right" | "chevron-right-circle" | "chevron-up" | "chevron-up-circle" | "circle" | "circle-dashed" | "clipboard" | "clipboard-check" | "clipboard-checklist" | "clock" | "clock-list" | "clock-revert" | "code" | "code-add" | "collection" | "collection-featured" | "collection-list" | "collection-reference" | "color" | "color-none" | "compass" | "compose" | "confetti" | "connect" | "content" | "contract" | "corner-pill" | "corner-round" | "corner-square" | "credit-card" | "credit-card-cancel" | "credit-card-percent" | "credit-card-reader" | "credit-card-reader-chip" | "credit-card-reader-tap" | "credit-card-secure" | "credit-card-tap-chip" | "crop" | "currency-convert" | "cursor" | "cursor-banner" | "cursor-option" | "data-presentation" | "data-table" | "database" | "database-add" | "database-connect" | "delete" | "delivery" | "desktop" | "disabled" | "discount" | "discount-add" | "discount-code" | "dns-settings" | "dock-floating" | "dock-side" | "domain" | "domain-landing-page" | "domain-new" | "domain-redirect" | "download" | "drag-drop" | "drag-handle" | "duplicate" | "edit" | "email" | "email-follow-up" | "email-newsletter" | "enabled" | "enter" | "envelope" | "envelope-soft-pack" | "eraser" | "exchange" | "exit" | "export" | "external" | "eye-check-mark" | "eye-dropper" | "eye-dropper-list" | "eye-first" | "eyeglasses" | "favicon" | "file" | "file-list" | "filter" | "filter-active" | "flag" | "flip-horizontal" | "flip-vertical" | "flower" | "folder" | "folder-add" | "folder-down" | "folder-remove" | "folder-up" | "food" | "foreground" | "forklift" | "forms" | "games" | "gauge" | "gift-card" | "git-branch" | "git-commit" | "git-repository" | "globe" | "globe-asia" | "globe-europe" | "globe-lines" | "globe-list" | "grid" | "hashtag" | "hashtag-decimal" | "hashtag-list" | "heart" | "hide" | "hide-filled" | "home" | "icons" | "identity-card" | "image" | "image-add" | "image-alt" | "image-explore" | "image-magic" | "image-none" | "image-with-text-overlay" | "images" | "import" | "in-progress" | "incentive" | "incoming" | "incomplete" | "info" | "inheritance" | "inventory" | "inventory-updated" | "iq" | "key" | "keyboard" | "keyboard-filled" | "keyboard-hide" | "label-printer" | "language" | "language-translate" | "layer" | "layout-block" | "layout-buy-button" | "layout-buy-button-horizontal" | "layout-buy-button-vertical" | "layout-column-1" | "layout-columns-2" | "layout-columns-3" | "layout-footer" | "layout-header" | "layout-logo-block" | "layout-popup" | "layout-rows-2" | "layout-section" | "layout-sidebar-left" | "layout-sidebar-right" | "lightbulb" | "link" | "link-list" | "list-bulleted" | "list-numbered" | "live" | "location" | "location-none" | "lock" | "map" | "markets" | "markets-euro" | "markets-rupee" | "markets-yen" | "maximize" | "measurement-size" | "measurement-size-list" | "measurement-volume" | "measurement-volume-list" | "measurement-weight" | "measurement-weight-list" | "media-receiver" | "megaphone" | "mention" | "menu" | "menu-horizontal" | "menu-vertical" | "merge" | "metafields" | "metaobject" | "metaobject-list" | "metaobject-reference" | "microphone" | "microphone-muted" | "minimize" | "minus" | "minus-circle" | "mobile" | "money" | "money-none" | "moon" | "nature" | "note" | "note-add" | "notification" | "number-one" | "order" | "order-batches" | "order-draft" | "order-first" | "order-fulfilled" | "order-repeat" | "order-unfulfilled" | "orders-status" | "organization" | "outdent" | "outgoing" | "package" | "package-fulfilled" | "package-on-hold" | "package-returned" | "page" | "page-add" | "page-attachment" | "page-clock" | "page-down" | "page-heart" | "page-list" | "page-reference" | "page-remove" | "page-report" | "page-up" | "pagination-end" | "pagination-start" | "paint-brush-flat" | "paint-brush-round" | "paper-check" | "passkey" | "paste" | "pause-circle" | "payment" | "payment-capture" | "payout" | "payout-dollar" | "payout-euro" | "payout-pound" | "payout-rupee" | "payout-yen" | "person" | "person-add" | "person-exit" | "person-list" | "person-lock" | "person-remove" | "person-segment" | "personalized-text" | "phone" | "phone-down" | "phone-down-filled" | "phone-in" | "phone-out" | "pin" | "pin-remove" | "plan" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-circle-down" | "plus-circle-filled" | "plus-circle-up" | "point-of-sale" | "price-list" | "print" | "product" | "product-add" | "product-cost" | "product-list" | "product-reference" | "product-remove" | "product-return" | "product-unavailable" | "profile" | "profile-filled" | "question-circle" | "question-circle-filled" | "radio-control" | "receipt" | "receipt-dollar" | "receipt-euro" | "receipt-paid" | "receipt-pound" | "receipt-refund" | "receipt-rupee" | "receipt-yen" | "receivables" | "redo" | "referral-code" | "refresh" | "remove-background" | "replace" | "replay" | "reset" | "return" | "reward" | "rocket" | "rotate-left" | "rotate-right" | "sandbox" | "save" | "search" | "search-add" | "search-list" | "search-recent" | "search-resource" | "select" | "send" | "settings" | "share" | "shield-check-mark" | "shield-none" | "shield-pending" | "shield-person" | "shipping-label" | "shopcodes" | "slideshow" | "smiley-happy" | "smiley-joy" | "smiley-neutral" | "smiley-sad" | "social-ad" | "social-post" | "sort" | "sort-ascending" | "sort-descending" | "sound" | "split" | "sports" | "star" | "star-filled" | "star-list" | "status" | "status-active" | "stop-circle" | "store" | "store-import" | "store-managed" | "store-online" | "sun" | "table" | "table-masonry" | "tablet" | "target" | "tax" | "team" | "text" | "text-align-center" | "text-align-left" | "text-align-right" | "text-block" | "text-bold" | "text-color" | "text-font" | "text-font-list" | "text-grammar" | "text-in-columns" | "text-in-rows" | "text-indent" | "text-italic" | "text-quote" | "text-title" | "text-underline" | "text-with-image" | "theme" | "theme-cart" | "theme-edit" | "theme-store" | "theme-template" | "three-d-environment" | "thumbs-down" | "thumbs-up" | "tip-jar" | "toggle-off" | "toggle-on" | "transaction" | "transaction-fee-dollar" | "transaction-fee-euro" | "transaction-fee-pound" | "transaction-fee-rupee" | "transaction-fee-yen" | "transfer" | "transfer-in" | "transfer-internal" | "transfer-out" | "undo" | "unknown-device" | "unlock" | "upload" | "variant" | "variant-list" | "video" | "video-list" | "view" | "viewport-narrow" | "viewport-short" | "viewport-tall" | "viewport-wide" | "wallet" | "wand" | "watch" | "wifi" | "work" | "work-list" | "wrench" | "x" | "x-circle";
|
|
3092
3220
|
|
|
3093
3221
|
interface IconProps extends Required<Pick<IconProps$1, 'type' | 'tone' | 'color' | 'size' | 'interestFor'>> {
|
|
3094
3222
|
/**
|
|
@@ -3567,6 +3695,7 @@ interface PreactCheckboxProps extends Required<Pick<CheckboxProps$1, 'accessibil
|
|
|
3567
3695
|
value: Required<CheckboxProps$1>['value'];
|
|
3568
3696
|
}
|
|
3569
3697
|
declare class PreactCheckboxElement extends PreactInputElement implements PreactCheckboxProps {
|
|
3698
|
+
onblur: CallbackEventListener<'input'>;
|
|
3570
3699
|
get checked(): boolean;
|
|
3571
3700
|
set checked(checked: PreactCheckboxProps['checked']);
|
|
3572
3701
|
/**
|
|
@@ -3589,18 +3718,25 @@ declare class PreactCheckboxElement extends PreactInputElement implements Preact
|
|
|
3589
3718
|
interface CheckboxProps extends PreactCheckboxProps {
|
|
3590
3719
|
indeterminate: Required<CheckboxProps$1>['indeterminate'];
|
|
3591
3720
|
defaultIndeterminate: Required<CheckboxProps$1>['defaultIndeterminate'];
|
|
3721
|
+
labelAccessibilityVisibility: Required<CheckboxProps$1>['labelAccessibilityVisibility'];
|
|
3592
3722
|
}
|
|
3593
3723
|
|
|
3594
3724
|
declare const tagName$Q = "s-checkbox";
|
|
3595
|
-
interface ReactProps$Q extends Partial<CheckboxProps
|
|
3725
|
+
interface ReactProps$Q extends Partial<Omit<CheckboxProps, 'error' | 'details'>>, Pick<CheckboxProps$1, 'id'>, FieldSlotInternalReactProps {
|
|
3596
3726
|
onChange?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
|
|
3597
3727
|
onInput?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
|
|
3728
|
+
onBlur?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
|
|
3598
3729
|
}
|
|
3599
3730
|
|
|
3600
|
-
declare class
|
|
3731
|
+
declare abstract class CheckboxBase extends PreactCheckboxElement implements Pick<CheckboxProps, 'defaultIndeterminate' | 'indeterminate' | 'labelAccessibilityVisibility'> {
|
|
3601
3732
|
get indeterminate(): CheckboxProps["indeterminate"];
|
|
3602
3733
|
set indeterminate(indeterminate: CheckboxProps['indeterminate']);
|
|
3603
3734
|
defaultIndeterminate: CheckboxProps['defaultIndeterminate'];
|
|
3735
|
+
labelAccessibilityVisibility: CheckboxProps['labelAccessibilityVisibility'];
|
|
3736
|
+
constructor(renderImpl: RenderImpl);
|
|
3737
|
+
}
|
|
3738
|
+
|
|
3739
|
+
declare class Checkbox extends CheckboxBase implements CheckboxProps {
|
|
3604
3740
|
constructor();
|
|
3605
3741
|
}
|
|
3606
3742
|
declare global {
|
|
@@ -3611,12 +3747,12 @@ declare global {
|
|
|
3611
3747
|
declare module 'preact' {
|
|
3612
3748
|
namespace createElement.JSX {
|
|
3613
3749
|
interface IntrinsicElements {
|
|
3614
|
-
[tagName$Q]: ReactProps$Q & PreactBaseElementProps<Checkbox>;
|
|
3750
|
+
[tagName$Q]: Omit<ReactProps$Q, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<Checkbox>;
|
|
3615
3751
|
}
|
|
3616
3752
|
}
|
|
3617
3753
|
}
|
|
3618
3754
|
|
|
3619
|
-
interface ChipProps extends Required<Pick<ChipProps$1, 'color' | 'accessibilityLabel'>> {
|
|
3755
|
+
interface ChipProps extends Required<Pick<ChipProps$1, 'color' | 'accessibilityLabel' | 'removable'>> {
|
|
3620
3756
|
}
|
|
3621
3757
|
|
|
3622
3758
|
declare const tagName$P = "s-chip";
|
|
@@ -3631,12 +3767,15 @@ interface ReactProps$P extends Partial<ChipProps>, Pick<ChipProps$1, 'id' | 'chi
|
|
|
3631
3767
|
* Only accepts `Icon` components.
|
|
3632
3768
|
*/
|
|
3633
3769
|
graphic?: ComponentChildren$1;
|
|
3770
|
+
onRemove?: ((event: CallbackEvent<typeof tagName$P>) => void) | null;
|
|
3634
3771
|
}
|
|
3635
3772
|
|
|
3636
3773
|
declare class Chip extends PolarisCustomElement implements ChipProps {
|
|
3637
3774
|
color: ChipProps['color'];
|
|
3638
3775
|
accessibilityLabel: ChipProps['accessibilityLabel'];
|
|
3639
|
-
|
|
3776
|
+
removable: ChipProps['removable'];
|
|
3777
|
+
onremove: CallbackEventListener<typeof tagName$P> | null;
|
|
3778
|
+
constructor(renderImpl?: Omit<RenderImpl, 'globalShadowCSS'>);
|
|
3640
3779
|
}
|
|
3641
3780
|
declare global {
|
|
3642
3781
|
interface HTMLElementTagNameMap {
|
|
@@ -3723,13 +3862,26 @@ interface ReactProps$N extends Partial<ChoiceListProps>, Pick<ChoiceListProps$1,
|
|
|
3723
3862
|
}
|
|
3724
3863
|
|
|
3725
3864
|
declare const internals$3: unique symbol;
|
|
3726
|
-
declare class BaseClass$
|
|
3865
|
+
declare class BaseClass$1 extends PolarisCustomElement {
|
|
3727
3866
|
static formAssociated: boolean;
|
|
3728
3867
|
constructor(renderImpl: RenderImpl);
|
|
3729
3868
|
/** @private */
|
|
3730
3869
|
[internals$3]: ElementInternals;
|
|
3731
3870
|
}
|
|
3732
|
-
declare class ChoiceList extends BaseClass$
|
|
3871
|
+
declare class ChoiceList extends BaseClass$1 implements ChoiceListProps {
|
|
3872
|
+
/**
|
|
3873
|
+
* Wraps change and input event listeners so they only fire when the event
|
|
3874
|
+
* was dispatched directly on this ChoiceList (event.eventPhase === Event.AT_TARGET).
|
|
3875
|
+
*
|
|
3876
|
+
* This prevents form events from elements inside secondary content (e.g.
|
|
3877
|
+
* TextField, native <input>) from being mistakenly treated as ChoiceList
|
|
3878
|
+
* value-change events, while still allowing those events to bubble normally
|
|
3879
|
+
* through the DOM (preserving React's event delegation).
|
|
3880
|
+
* @private
|
|
3881
|
+
*/
|
|
3882
|
+
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
3883
|
+
/** @private */
|
|
3884
|
+
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
3733
3885
|
disabled: ChoiceListProps['disabled'];
|
|
3734
3886
|
name: ChoiceListProps['name'];
|
|
3735
3887
|
error: ChoiceListProps['error'];
|
|
@@ -3823,17 +3975,19 @@ interface ReactProps$L extends Partial<ClickableChipProps>, Pick<ClickableChipPr
|
|
|
3823
3975
|
onAfterHide?: ((event: CallbackEvent<typeof tagName$L>) => void) | null;
|
|
3824
3976
|
}
|
|
3825
3977
|
|
|
3826
|
-
declare const
|
|
3827
|
-
declare class
|
|
3828
|
-
color: ClickableChipProps['color'];
|
|
3978
|
+
declare const ClickableChipBase_base: (abstract new (renderImpl: Omit<RenderImpl, "globalShadowCSS">) => PolarisCustomElement & PreactOverlayControlProps) & Pick<typeof PolarisCustomElement, "prototype" | "observedAttributes">;
|
|
3979
|
+
declare abstract class ClickableChipBase<TTagName extends keyof HTMLElementTagNameMap> extends ClickableChipBase_base implements Pick<ClickableChipProps, 'accessibilityLabel' | 'removable' | 'hidden' | 'disabled' | 'href'> {
|
|
3829
3980
|
accessibilityLabel: ClickableChipProps['accessibilityLabel'];
|
|
3830
3981
|
removable: ClickableChipProps['removable'];
|
|
3831
3982
|
hidden: ClickableChipProps['hidden'];
|
|
3832
3983
|
disabled: ClickableChipProps['disabled'];
|
|
3833
3984
|
href: ClickableChipProps['href'];
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3985
|
+
abstract color: string;
|
|
3986
|
+
constructor(renderImpl: Omit<RenderImpl, 'globalShadowCSS'>);
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
declare class ClickableChip extends ClickableChipBase<typeof tagName$L> implements ClickableChipProps {
|
|
3990
|
+
color: ClickableChipProps['color'];
|
|
3837
3991
|
constructor();
|
|
3838
3992
|
}
|
|
3839
3993
|
declare global {
|
|
@@ -3912,21 +4066,25 @@ declare class PreactFieldElement<Autocomplete extends string = string> extends P
|
|
|
3912
4066
|
type ColorFieldProps = PreactFieldProps<Required<ColorFieldProps$1>['autocomplete']> & Required<Pick<ColorFieldProps$1, 'alpha' | 'value' | 'defaultValue'>>;
|
|
3913
4067
|
|
|
3914
4068
|
declare const tagName$K = "s-color-field";
|
|
3915
|
-
interface ReactProps$K extends Partial<Omit<ColorFieldProps, 'accessory'>>, Pick<ColorFieldProps$1, 'id' | 'alpha' | 'value' | 'defaultValue'>, FieldReactProps<typeof tagName$K
|
|
4069
|
+
interface ReactProps$K extends Partial<Omit<ColorFieldProps, 'accessory' | 'error' | 'details'>>, Pick<ColorFieldProps$1, 'id' | 'alpha' | 'value' | 'defaultValue'>, FieldReactProps<typeof tagName$K>, FieldSlotInternalReactProps {
|
|
3916
4070
|
onInput?: (event: CallbackEvent<typeof tagName$K>) => void;
|
|
3917
4071
|
onChange?: (event: CallbackEvent<typeof tagName$K>) => void;
|
|
3918
4072
|
}
|
|
3919
4073
|
|
|
3920
|
-
declare class
|
|
4074
|
+
declare abstract class ColorFieldBase extends PreactFieldElement<ColorFieldProps['autocomplete']> implements Pick<ColorFieldProps, 'alpha' | 'value'> {
|
|
3921
4075
|
alpha: ColorFieldProps['alpha'];
|
|
3922
4076
|
get value(): string;
|
|
3923
4077
|
set value(value: string);
|
|
3924
4078
|
/** @private */
|
|
3925
4079
|
formResetCallback(): void;
|
|
3926
|
-
constructor();
|
|
4080
|
+
constructor(renderImpl: RenderImpl);
|
|
3927
4081
|
/** @private */
|
|
3928
4082
|
setInternalValue(value: string, normalize: boolean): void;
|
|
3929
4083
|
}
|
|
4084
|
+
|
|
4085
|
+
declare class ColorField extends ColorFieldBase implements ColorFieldProps {
|
|
4086
|
+
constructor();
|
|
4087
|
+
}
|
|
3930
4088
|
declare global {
|
|
3931
4089
|
interface HTMLElementTagNameMap {
|
|
3932
4090
|
[tagName$K]: ColorField;
|
|
@@ -3935,7 +4093,7 @@ declare global {
|
|
|
3935
4093
|
declare module 'preact' {
|
|
3936
4094
|
namespace createElement.JSX {
|
|
3937
4095
|
interface IntrinsicElements {
|
|
3938
|
-
[tagName$K]: ReactProps$K & PreactBaseElementProps<ColorField>;
|
|
4096
|
+
[tagName$K]: Omit<ReactProps$K, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<ColorField>;
|
|
3939
4097
|
}
|
|
3940
4098
|
}
|
|
3941
4099
|
}
|
|
@@ -3950,13 +4108,13 @@ interface ReactProps$J extends Partial<ColorPickerProps>, Pick<ColorPickerProps$
|
|
|
3950
4108
|
}
|
|
3951
4109
|
|
|
3952
4110
|
declare const internals$2: unique symbol;
|
|
3953
|
-
declare class BaseClass
|
|
4111
|
+
declare class BaseClass extends PolarisCustomElement {
|
|
3954
4112
|
static formAssociated: boolean;
|
|
3955
4113
|
constructor(renderImpl: RenderImpl);
|
|
3956
4114
|
/** @private */
|
|
3957
4115
|
[internals$2]: ElementInternals;
|
|
3958
4116
|
}
|
|
3959
|
-
declare class ColorPicker extends BaseClass
|
|
4117
|
+
declare class ColorPicker extends BaseClass implements ColorPickerProps {
|
|
3960
4118
|
alpha: boolean;
|
|
3961
4119
|
onchange: CallbackEventListener<typeof tagName$J> | null;
|
|
3962
4120
|
oninput: CallbackEventListener<typeof tagName$J> | null;
|
|
@@ -3984,7 +4142,7 @@ interface DateFieldProps extends PreactFieldProps<DateAutocompleteField>, Requir
|
|
|
3984
4142
|
}
|
|
3985
4143
|
|
|
3986
4144
|
declare const tagName$I = "s-date-field";
|
|
3987
|
-
interface ReactProps$I extends Partial<DateFieldProps
|
|
4145
|
+
interface ReactProps$I extends Partial<Omit<DateFieldProps, 'error' | 'details'>>, Pick<DateFieldProps$1, 'id'>, FieldSlotInternalReactProps {
|
|
3988
4146
|
onBlur?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
|
|
3989
4147
|
onChange?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
|
|
3990
4148
|
onFocus?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
|
|
@@ -3993,7 +4151,7 @@ interface ReactProps$I extends Partial<DateFieldProps>, Pick<DateFieldProps$1, '
|
|
|
3993
4151
|
onViewChange?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
|
|
3994
4152
|
}
|
|
3995
4153
|
|
|
3996
|
-
declare class
|
|
4154
|
+
declare abstract class DateFieldBase extends PreactFieldElement<DateFieldProps['autocomplete']> implements Pick<DateFieldProps, 'allow' | 'disallow' | 'allowDays' | 'disallowDays' | 'view' | 'defaultView'> {
|
|
3997
4155
|
allow: DateFieldProps['allow'];
|
|
3998
4156
|
disallow: DateFieldProps['disallow'];
|
|
3999
4157
|
allowDays: DateFieldProps['allowDays'];
|
|
@@ -4001,8 +4159,10 @@ declare class DateField extends PreactFieldElement<DateFieldProps['autocomplete'
|
|
|
4001
4159
|
set view(view: string);
|
|
4002
4160
|
get view(): string;
|
|
4003
4161
|
defaultView: DateFieldProps['defaultView'];
|
|
4004
|
-
|
|
4005
|
-
|
|
4162
|
+
constructor(renderImpl: RenderImpl);
|
|
4163
|
+
}
|
|
4164
|
+
|
|
4165
|
+
declare class DateField extends DateFieldBase implements DateFieldProps {
|
|
4006
4166
|
constructor();
|
|
4007
4167
|
}
|
|
4008
4168
|
declare global {
|
|
@@ -4013,7 +4173,7 @@ declare global {
|
|
|
4013
4173
|
declare module 'preact' {
|
|
4014
4174
|
namespace createElement.JSX {
|
|
4015
4175
|
interface IntrinsicElements {
|
|
4016
|
-
[tagName$I]: ReactProps$I & PreactBaseElementProps<DateField>;
|
|
4176
|
+
[tagName$I]: Omit<ReactProps$I, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<DateField>;
|
|
4017
4177
|
}
|
|
4018
4178
|
}
|
|
4019
4179
|
}
|
|
@@ -4033,13 +4193,11 @@ interface ReactProps$H extends Partial<DatePickerProps>, Pick<DatePickerProps$1,
|
|
|
4033
4193
|
|
|
4034
4194
|
declare const internals$1: unique symbol;
|
|
4035
4195
|
declare const dirtyStateSymbol: unique symbol;
|
|
4036
|
-
declare class
|
|
4196
|
+
declare abstract class DatePickerBase<TagName extends 's-date-picker' | 's-internal-date-picker'> extends PolarisCustomElement implements DatePickerProps {
|
|
4037
4197
|
static formAssociated: boolean;
|
|
4038
4198
|
constructor(renderImpl: RenderImpl);
|
|
4039
4199
|
/** @private */
|
|
4040
4200
|
[internals$1]: ElementInternals;
|
|
4041
|
-
}
|
|
4042
|
-
declare class DatePicker extends BaseClass implements DatePickerProps {
|
|
4043
4201
|
defaultView: string;
|
|
4044
4202
|
set view(view: string);
|
|
4045
4203
|
get view(): string;
|
|
@@ -4056,11 +4214,9 @@ declare class DatePicker extends BaseClass implements DatePickerProps {
|
|
|
4056
4214
|
[dirtyStateSymbol]: boolean;
|
|
4057
4215
|
/** @private */
|
|
4058
4216
|
formResetCallback(): void;
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
oninput: CallbackEventListener<typeof tagName$H> | null;
|
|
4063
|
-
onchange: CallbackEventListener<typeof tagName$H> | null;
|
|
4217
|
+
}
|
|
4218
|
+
|
|
4219
|
+
declare class DatePicker extends DatePickerBase<typeof tagName$H> implements DatePickerProps {
|
|
4064
4220
|
constructor();
|
|
4065
4221
|
}
|
|
4066
4222
|
declare global {
|
|
@@ -4109,11 +4265,27 @@ interface DropZoneProps extends Required<Pick<DropZoneProps$1, 'accept' | 'acces
|
|
|
4109
4265
|
declare const tagName$F = "s-drop-zone";
|
|
4110
4266
|
interface ReactProps$F extends Partial<DropZoneProps>, Pick<DropZoneProps$1, 'id'> {
|
|
4111
4267
|
/**
|
|
4112
|
-
* Content to
|
|
4268
|
+
* Content to display inside the drop zone, such as upload instructions, file type icons,
|
|
4269
|
+
* or previews of selected files. When provided, replaces the default upload prompt.
|
|
4113
4270
|
*/
|
|
4114
4271
|
children?: ComponentChildren$1;
|
|
4272
|
+
/**
|
|
4273
|
+
* A callback fired when the user selects files through the file picker or drops valid
|
|
4274
|
+
* files onto the drop zone. Access the selected files through `event.currentTarget.files`.
|
|
4275
|
+
* Use to process uploads, generate previews, or validate file contents.
|
|
4276
|
+
*/
|
|
4115
4277
|
onChange?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
|
|
4278
|
+
/**
|
|
4279
|
+
* A callback fired when files are selected or dropped. Similar to `onChange` but may
|
|
4280
|
+
* fire more frequently during drag operations. Use when you need immediate feedback as
|
|
4281
|
+
* files are being dragged over the drop zone.
|
|
4282
|
+
*/
|
|
4116
4283
|
onInput?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
|
|
4284
|
+
/**
|
|
4285
|
+
* A callback fired when dropped or selected files don't match the `accept` criteria.
|
|
4286
|
+
* Use to display error messages explaining which file types are allowed. Rejected files
|
|
4287
|
+
* are not added to the `files` array.
|
|
4288
|
+
*/
|
|
4117
4289
|
onDropRejected?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
|
|
4118
4290
|
}
|
|
4119
4291
|
|
|
@@ -4169,13 +4341,17 @@ declare module 'preact' {
|
|
|
4169
4341
|
type EmailFieldProps = PreactFieldProps<Required<EmailFieldProps$1>['autocomplete']> & Required<Pick<EmailFieldProps$1, 'maxLength' | 'minLength'>>;
|
|
4170
4342
|
|
|
4171
4343
|
declare const tagName$E = "s-email-field";
|
|
4172
|
-
interface ReactProps$E extends Partial<Omit<EmailFieldProps, 'accessory'>>, Pick<EmailFieldProps$1, 'id'>, FieldReactProps<typeof tagName$E
|
|
4344
|
+
interface ReactProps$E extends Partial<Omit<EmailFieldProps, 'accessory' | 'error' | 'details'>>, Pick<EmailFieldProps$1, 'id'>, FieldReactProps<typeof tagName$E>, FieldSlotInternalReactProps {
|
|
4173
4345
|
}
|
|
4174
4346
|
|
|
4175
|
-
declare class
|
|
4347
|
+
declare abstract class EmailFieldBase extends PreactFieldElement<EmailFieldProps['autocomplete']> implements Pick<EmailFieldProps, 'autocomplete' | 'maxLength' | 'minLength'> {
|
|
4176
4348
|
autocomplete: EmailFieldProps['autocomplete'];
|
|
4177
4349
|
maxLength: EmailFieldProps['maxLength'];
|
|
4178
4350
|
minLength: EmailFieldProps['minLength'];
|
|
4351
|
+
constructor(renderImpl: RenderImpl);
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
declare class EmailField extends EmailFieldBase implements EmailFieldProps {
|
|
4179
4355
|
constructor();
|
|
4180
4356
|
}
|
|
4181
4357
|
declare global {
|
|
@@ -4186,7 +4362,7 @@ declare global {
|
|
|
4186
4362
|
declare module 'preact' {
|
|
4187
4363
|
namespace createElement.JSX {
|
|
4188
4364
|
interface IntrinsicElements {
|
|
4189
|
-
[tagName$E]: ReactProps$E & PreactBaseElementProps<EmailField>;
|
|
4365
|
+
[tagName$E]: Omit<ReactProps$E, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<EmailField>;
|
|
4190
4366
|
}
|
|
4191
4367
|
}
|
|
4192
4368
|
}
|
|
@@ -4613,29 +4789,52 @@ interface ModalProps extends Pick<RequiredAlignedModalProps, 'accessibilityLabel
|
|
|
4613
4789
|
* Adjust the size of the Modal.
|
|
4614
4790
|
*/
|
|
4615
4791
|
size: Extract<ModalProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
4792
|
+
/**
|
|
4793
|
+
* Places the Modal on the block axis on a large screen
|
|
4794
|
+
* @default 'center'
|
|
4795
|
+
*/
|
|
4796
|
+
alignSelf: 'center' | 'start';
|
|
4616
4797
|
}
|
|
4617
4798
|
|
|
4618
4799
|
declare const tagName$v = "s-modal";
|
|
4619
4800
|
interface ReactProps$v extends Partial<ModalProps>, Pick<ModalProps$1, 'id' | 'children'> {
|
|
4620
4801
|
/**
|
|
4621
|
-
* The content
|
|
4802
|
+
* The content displayed within the modal, typically including form fields, informational
|
|
4803
|
+
* text, or interactive elements that require focused user attention.
|
|
4622
4804
|
*/
|
|
4623
4805
|
children?: ComponentChildren$1;
|
|
4624
4806
|
/**
|
|
4625
|
-
* The
|
|
4626
|
-
*
|
|
4627
|
-
*
|
|
4807
|
+
* The main action button displayed in the modal footer, representing the primary action
|
|
4808
|
+
* users should take. Only accepts a button component with a `variant` of `primary`. This action
|
|
4809
|
+
* should align with the modal's main purpose, such as "Save", "Confirm", or "Submit".
|
|
4628
4810
|
*/
|
|
4629
4811
|
primaryAction?: ComponentChildren$1;
|
|
4630
4812
|
/**
|
|
4631
|
-
*
|
|
4632
|
-
*
|
|
4633
|
-
*
|
|
4813
|
+
* Additional action buttons displayed in the modal footer, providing alternative or
|
|
4814
|
+
* supporting actions such as "Cancel" or "Learn more". Only accepts button components
|
|
4815
|
+
* with a `variant` of `secondary` or `auto`. These are visually de-emphasized compared
|
|
4816
|
+
* to the primary action to establish clear hierarchy.
|
|
4634
4817
|
*/
|
|
4635
4818
|
secondaryActions?: ComponentChildren$1;
|
|
4819
|
+
/**
|
|
4820
|
+
* A callback fired when the modal closes.
|
|
4821
|
+
* Use to perform cleanup or trigger side effects when the modal is dismissed.
|
|
4822
|
+
*/
|
|
4636
4823
|
onHide?: ((event: CallbackEvent<typeof tagName$v>) => void) | null;
|
|
4824
|
+
/**
|
|
4825
|
+
* A callback fired when the modal starts to open, before any entrance animation begins.
|
|
4826
|
+
* Use to prepare content or fetch data needed for the modal.
|
|
4827
|
+
*/
|
|
4637
4828
|
onShow?: ((event: CallbackEvent<typeof tagName$v>) => void) | null;
|
|
4829
|
+
/**
|
|
4830
|
+
* A callback fired after the modal has fully closed and any exit animation completes.
|
|
4831
|
+
* Use to reset form state, clear temporary data, or update the page after dismissal.
|
|
4832
|
+
*/
|
|
4638
4833
|
onAfterHide?: ((event: CallbackEvent<typeof tagName$v>) => void) | null;
|
|
4834
|
+
/**
|
|
4835
|
+
* A callback fired after the modal has fully opened and any entrance animation completes.
|
|
4836
|
+
* Use to focus an input field or initialize content once the modal is visible.
|
|
4837
|
+
*/
|
|
4639
4838
|
onAfterShow?: ((event: CallbackEvent<typeof tagName$v>) => void) | null;
|
|
4640
4839
|
}
|
|
4641
4840
|
|
|
@@ -4650,16 +4849,20 @@ declare const focusedElement: unique symbol;
|
|
|
4650
4849
|
declare const rootActivator: unique symbol;
|
|
4651
4850
|
declare const onEscape: unique symbol;
|
|
4652
4851
|
declare const nestedModals: unique symbol;
|
|
4852
|
+
declare const onKeyUp: unique symbol;
|
|
4653
4853
|
declare const onBackdropClick: unique symbol;
|
|
4654
4854
|
declare const abortController: unique symbol;
|
|
4655
4855
|
declare const onChildModalChange: unique symbol;
|
|
4656
4856
|
declare const childrenRerenderObserver: unique symbol;
|
|
4657
4857
|
declare const shadowDomRerenderObserver: unique symbol;
|
|
4858
|
+
declare const focusTrapHandler: unique symbol;
|
|
4859
|
+
declare const ensureDialogRef: unique symbol;
|
|
4658
4860
|
declare abstract class ModalBase<TTagName extends keyof HTMLElementTagNameMap> extends PreactOverlayElement implements Pick<ModalProps, 'accessibilityLabel' | 'heading' | 'padding' | 'size'> {
|
|
4659
4861
|
accessibilityLabel: ModalProps['accessibilityLabel'];
|
|
4660
4862
|
heading: ModalProps['heading'];
|
|
4661
4863
|
padding: ModalProps['padding'];
|
|
4662
4864
|
size: ModalProps['size'];
|
|
4865
|
+
alignSelf: ModalProps['alignSelf'];
|
|
4663
4866
|
/** @private */
|
|
4664
4867
|
[abortController]: AbortController;
|
|
4665
4868
|
/** @private */
|
|
@@ -4674,12 +4877,45 @@ declare abstract class ModalBase<TTagName extends keyof HTMLElementTagNameMap> e
|
|
|
4674
4877
|
[childrenRerenderObserver]: MutationObserver;
|
|
4675
4878
|
/** @private */
|
|
4676
4879
|
[shadowDomRerenderObserver]: MutationObserver;
|
|
4880
|
+
/**
|
|
4881
|
+
* Focus trap keydown handler reference, stored for cleanup.
|
|
4882
|
+
*
|
|
4883
|
+
* The focus trap is managed imperatively here in ModalBase rather than
|
|
4884
|
+
* via a Preact useEffect in foundation.tsx. This is because aftershow
|
|
4885
|
+
* (fired after CSS animations complete) and useEffect (fired after
|
|
4886
|
+
* Preact's async effect scheduling) are independent async chains with
|
|
4887
|
+
* no synchronization — the useEffect could run before or after
|
|
4888
|
+
* aftershow, making tests non-deterministic.
|
|
4889
|
+
*
|
|
4890
|
+
* By attaching the focus trap in the same .then() chain as aftershow,
|
|
4891
|
+
* we guarantee it is active before aftershow dispatches.
|
|
4892
|
+
*
|
|
4893
|
+
* Lifecycle (mirrors the old useEffect's isActiveModal dependency):
|
|
4894
|
+
* - Attached: in aftershow chain, right before aftershow dispatches
|
|
4895
|
+
* - Detached: on dismiss(), disconnectedCallback(), or child modal open
|
|
4896
|
+
* - Re-attached: when all child modals close
|
|
4897
|
+
* @private
|
|
4898
|
+
*/
|
|
4899
|
+
[focusTrapHandler]: ((event: KeyboardEvent) => void) | null;
|
|
4677
4900
|
/** @private */
|
|
4678
4901
|
[onEscape]: (event: KeyboardEvent) => void;
|
|
4679
4902
|
/** @private */
|
|
4903
|
+
[onKeyUp]: (event: KeyboardEvent) => void;
|
|
4904
|
+
/** @private */
|
|
4680
4905
|
[onBackdropClick]: (event: MouseEvent) => void;
|
|
4681
4906
|
/** @private */
|
|
4682
4907
|
[onChildModalChange]: EventListenerOrEventListenerObject;
|
|
4908
|
+
/**
|
|
4909
|
+
* Ensures `this[dialog]` is set by synchronously querying the shadow DOM
|
|
4910
|
+
* and attaching event listeners if needed.
|
|
4911
|
+
* Works around a Safari timing issue where the MutationObserver callback
|
|
4912
|
+
* (which normally sets `this[dialog]`) may not have fired yet when
|
|
4913
|
+
* `show()` / `dismiss()` run — especially when `heading` or
|
|
4914
|
+
* `accessibilityLabel` adds child custom-elements whose own lifecycle
|
|
4915
|
+
* microtasks can delay the observer.
|
|
4916
|
+
* @private
|
|
4917
|
+
*/
|
|
4918
|
+
[ensureDialogRef](): void;
|
|
4683
4919
|
/** @private */
|
|
4684
4920
|
get [isOpen](): boolean;
|
|
4685
4921
|
/** @private */
|
|
@@ -4691,7 +4927,9 @@ declare abstract class ModalBase<TTagName extends keyof HTMLElementTagNameMap> e
|
|
|
4691
4927
|
/** @private */
|
|
4692
4928
|
[hide](): Promise<void>;
|
|
4693
4929
|
showOverlay(): void;
|
|
4694
|
-
hideOverlay(
|
|
4930
|
+
hideOverlay({ force }?: {
|
|
4931
|
+
force?: boolean;
|
|
4932
|
+
}): void;
|
|
4695
4933
|
toggleOverlay(): void;
|
|
4696
4934
|
/** @private */
|
|
4697
4935
|
connectedCallback(): void;
|
|
@@ -4722,15 +4960,19 @@ interface MoneyFieldProps extends Omit<PreactFieldProps, 'value'>, Pick<Required
|
|
|
4722
4960
|
}
|
|
4723
4961
|
|
|
4724
4962
|
declare const tagName$u = "s-money-field";
|
|
4725
|
-
interface ReactProps$u extends Partial<MoneyFieldProps
|
|
4963
|
+
interface ReactProps$u extends Partial<Omit<MoneyFieldProps, 'error' | 'details'>>, FieldReactProps<typeof tagName$u>, Pick<MoneyFieldProps$1, 'id'>, FieldSlotInternalReactProps {
|
|
4726
4964
|
}
|
|
4727
4965
|
|
|
4728
|
-
declare class
|
|
4966
|
+
declare abstract class MoneyFieldBase extends PreactFieldElement<MoneyFieldProps['autocomplete']> implements Pick<MoneyFieldProps, 'max' | 'min' | 'currencyCode' | 'value'> {
|
|
4729
4967
|
max: MoneyFieldProps['max'];
|
|
4730
4968
|
min: MoneyFieldProps['min'];
|
|
4731
4969
|
currencyCode: MoneyFieldProps['currencyCode'];
|
|
4732
4970
|
get value(): string;
|
|
4733
4971
|
set value(value: string);
|
|
4972
|
+
constructor(renderImpl: RenderImpl);
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4975
|
+
declare class MoneyField extends MoneyFieldBase implements MoneyFieldProps {
|
|
4734
4976
|
constructor();
|
|
4735
4977
|
}
|
|
4736
4978
|
declare global {
|
|
@@ -4741,7 +4983,7 @@ declare global {
|
|
|
4741
4983
|
declare module 'preact' {
|
|
4742
4984
|
namespace createElement.JSX {
|
|
4743
4985
|
interface IntrinsicElements {
|
|
4744
|
-
[tagName$u]: ReactProps$u & PreactBaseElementProps<MoneyField>;
|
|
4986
|
+
[tagName$u]: Omit<ReactProps$u, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<MoneyField>;
|
|
4745
4987
|
}
|
|
4746
4988
|
}
|
|
4747
4989
|
}
|
|
@@ -4751,10 +4993,10 @@ interface NumberFieldProps extends Omit<PreactFieldProps<Required<NumberFieldPro
|
|
|
4751
4993
|
}
|
|
4752
4994
|
|
|
4753
4995
|
declare const tagName$t = "s-number-field";
|
|
4754
|
-
interface ReactProps$t extends Partial<NumberFieldProps
|
|
4996
|
+
interface ReactProps$t extends Partial<Omit<NumberFieldProps, 'error' | 'details'>>, Pick<NumberFieldProps$1, 'id'>, FieldReactProps<typeof tagName$t>, FieldSlotInternalReactProps {
|
|
4755
4997
|
}
|
|
4756
4998
|
|
|
4757
|
-
declare class
|
|
4999
|
+
declare abstract class NumberFieldBase extends PreactFieldElement<NumberFieldProps['autocomplete']> implements Pick<NumberFieldProps, 'inputMode' | 'step' | 'max' | 'min' | 'prefix' | 'suffix' | 'value'> {
|
|
4758
5000
|
get value(): string;
|
|
4759
5001
|
set value(value: string);
|
|
4760
5002
|
inputMode: NumberFieldProps['inputMode'];
|
|
@@ -4763,6 +5005,10 @@ declare class NumberField extends PreactFieldElement<NumberFieldProps['autocompl
|
|
|
4763
5005
|
min: NumberFieldProps['min'];
|
|
4764
5006
|
prefix: NumberFieldProps['prefix'];
|
|
4765
5007
|
suffix: NumberFieldProps['suffix'];
|
|
5008
|
+
constructor(renderImpl: RenderImpl);
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
declare class NumberField extends NumberFieldBase implements NumberFieldProps {
|
|
4766
5012
|
constructor();
|
|
4767
5013
|
}
|
|
4768
5014
|
declare global {
|
|
@@ -4773,7 +5019,7 @@ declare global {
|
|
|
4773
5019
|
declare module 'preact' {
|
|
4774
5020
|
namespace createElement.JSX {
|
|
4775
5021
|
interface IntrinsicElements {
|
|
4776
|
-
[tagName$t]: ReactProps$t & PreactBaseElementProps<NumberField>;
|
|
5022
|
+
[tagName$t]: Omit<ReactProps$t, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<NumberField>;
|
|
4777
5023
|
}
|
|
4778
5024
|
}
|
|
4779
5025
|
}
|
|
@@ -4876,32 +5122,32 @@ interface PageProps extends Required<Pick<PageProps$1, 'inlineSize' | 'heading'>
|
|
|
4876
5122
|
declare const tagName$p = "s-page";
|
|
4877
5123
|
interface ReactProps$p extends Partial<PageProps>, Pick<PageProps$1, 'id' | 'children'> {
|
|
4878
5124
|
/**
|
|
4879
|
-
* The content of the
|
|
5125
|
+
* The main content of the page, typically containing the primary information, forms,
|
|
5126
|
+
* or interactive elements that fulfill the page's purpose.
|
|
4880
5127
|
*/
|
|
4881
5128
|
children?: ComponentChildren$1;
|
|
4882
5129
|
/**
|
|
4883
|
-
*
|
|
4884
|
-
*
|
|
4885
|
-
* This slot is only rendered when `inlineSize` is
|
|
5130
|
+
* Supplementary content displayed in a sidebar alongside the main content. Use for
|
|
5131
|
+
* related information, navigation aids, or contextual actions that support the main content.
|
|
5132
|
+
* This slot is only rendered when `inlineSize` is set to `base`.
|
|
4886
5133
|
*/
|
|
4887
5134
|
aside?: ComponentChildren$1;
|
|
4888
5135
|
/**
|
|
4889
|
-
* The
|
|
4890
|
-
*
|
|
4891
|
-
*
|
|
4892
|
-
*
|
|
5136
|
+
* The main action button displayed in the page header, representing the primary action
|
|
5137
|
+
* users can take on this page. Only accepts a single button component with a `variant` of `primary`.
|
|
5138
|
+
* Common examples include "Create", "Save", or "Add".
|
|
4893
5139
|
*/
|
|
4894
5140
|
primaryAction?: ComponentChildren$1;
|
|
4895
5141
|
/**
|
|
4896
|
-
*
|
|
4897
|
-
*
|
|
4898
|
-
*
|
|
5142
|
+
* Additional action buttons displayed in the page header, providing alternative or supporting
|
|
5143
|
+
* actions. Only accepts button group and button components with a `variant` of `secondary`
|
|
5144
|
+
* or `auto`. These are visually de-emphasized compared to the primary action.
|
|
4899
5145
|
*/
|
|
4900
5146
|
secondaryActions?: ComponentChildren$1;
|
|
4901
5147
|
/**
|
|
4902
|
-
*
|
|
4903
|
-
*
|
|
4904
|
-
*
|
|
5148
|
+
* Navigation links that help users understand their location within the app and navigate
|
|
5149
|
+
* back to parent pages. Only accepts link components. Typically displays as a back arrow
|
|
5150
|
+
* or breadcrumb trail in the page header.
|
|
4905
5151
|
*/
|
|
4906
5152
|
breadcrumbActions?: ComponentChildren$1;
|
|
4907
5153
|
}
|
|
@@ -4975,12 +5221,16 @@ declare module 'preact' {
|
|
|
4975
5221
|
type PasswordFieldProps = PreactFieldProps<Required<PasswordFieldProps$1>['autocomplete']> & Required<Pick<PasswordFieldProps$1, 'defaultValue' | 'details' | 'disabled' | 'error' | 'labelAccessibilityVisibility' | 'minLength' | 'maxLength' | 'label' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value'>>;
|
|
4976
5222
|
|
|
4977
5223
|
declare const tagName$n = "s-password-field";
|
|
4978
|
-
interface ReactProps$n extends Partial<PasswordFieldProps
|
|
5224
|
+
interface ReactProps$n extends Partial<Omit<PasswordFieldProps, 'error' | 'details'>>, Pick<PasswordFieldProps$1, 'id'>, FieldReactProps<typeof tagName$n>, FieldSlotInternalReactProps {
|
|
4979
5225
|
}
|
|
4980
5226
|
|
|
4981
|
-
declare class
|
|
5227
|
+
declare abstract class PasswordFieldBase extends PreactFieldElement<PasswordFieldProps['autocomplete']> implements Pick<PasswordFieldProps, 'maxLength' | 'minLength'> {
|
|
4982
5228
|
maxLength: PasswordFieldProps['maxLength'];
|
|
4983
5229
|
minLength: PasswordFieldProps['minLength'];
|
|
5230
|
+
constructor(renderImpl: RenderImpl);
|
|
5231
|
+
}
|
|
5232
|
+
|
|
5233
|
+
declare class PasswordField extends PasswordFieldBase implements PasswordFieldProps {
|
|
4984
5234
|
constructor();
|
|
4985
5235
|
}
|
|
4986
5236
|
declare global {
|
|
@@ -4991,7 +5241,7 @@ declare global {
|
|
|
4991
5241
|
declare module 'preact' {
|
|
4992
5242
|
namespace createElement.JSX {
|
|
4993
5243
|
interface IntrinsicElements {
|
|
4994
|
-
[tagName$n]: ReactProps$n & PreactBaseElementProps<PasswordField>;
|
|
5244
|
+
[tagName$n]: Omit<ReactProps$n, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<PasswordField>;
|
|
4995
5245
|
}
|
|
4996
5246
|
}
|
|
4997
5247
|
}
|
|
@@ -5002,14 +5252,39 @@ interface PopoverProps extends Required<Pick<PopoverProps$1, 'blockSize' | 'inli
|
|
|
5002
5252
|
declare const tagName$m = "s-popover";
|
|
5003
5253
|
interface ReactProps$m extends Partial<PopoverProps>, Pick<PopoverProps$1, 'id' | 'children'> {
|
|
5004
5254
|
/**
|
|
5005
|
-
* The content
|
|
5255
|
+
* The content displayed within the popover, which appears in an overlay positioned relative
|
|
5256
|
+
* to its trigger element. Typically contains menus, action lists, or supplementary information.
|
|
5006
5257
|
*/
|
|
5007
5258
|
children?: ComponentChildren$1;
|
|
5259
|
+
/**
|
|
5260
|
+
* A callback fired immediately when the popover starts to hide, before any exit animation.
|
|
5261
|
+
* Use to perform cleanup or save state before the popover dismisses.
|
|
5262
|
+
*/
|
|
5008
5263
|
onHide?: (event: CallbackEvent<typeof tagName$m>) => void | null;
|
|
5264
|
+
/**
|
|
5265
|
+
* A callback fired immediately when the popover starts to show, before any entrance animation.
|
|
5266
|
+
* Use to prepare content or update positioning logic.
|
|
5267
|
+
*/
|
|
5009
5268
|
onShow?: (event: CallbackEvent<typeof tagName$m>) => void | null;
|
|
5269
|
+
/**
|
|
5270
|
+
* A callback fired after the popover has fully hidden and any exit animation completes.
|
|
5271
|
+
* Use to reset selections or update the trigger button state.
|
|
5272
|
+
*/
|
|
5010
5273
|
onAfterHide?: (event: CallbackEvent<typeof tagName$m>) => void | null;
|
|
5274
|
+
/**
|
|
5275
|
+
* A callback fired after the popover has fully shown and any entrance animation completes.
|
|
5276
|
+
* Use to focus an element inside the popover or announce content to screen readers.
|
|
5277
|
+
*/
|
|
5011
5278
|
onAfterShow?: (event: CallbackEvent<typeof tagName$m>) => void | null;
|
|
5279
|
+
/**
|
|
5280
|
+
* A callback fired when the popover visibility toggles. Use for unified open/close
|
|
5281
|
+
* handling when you don't need separate show and hide logic.
|
|
5282
|
+
*/
|
|
5012
5283
|
onToggle?: (event: CallbackToggleEvent<typeof tagName$m>) => void | null;
|
|
5284
|
+
/**
|
|
5285
|
+
* A callback fired after the popover visibility toggle completes and any animation finishes.
|
|
5286
|
+
* Use for post-transition updates.
|
|
5287
|
+
*/
|
|
5013
5288
|
onAfterToggle?: (event: CallbackToggleEvent<typeof tagName$m>) => void | null;
|
|
5014
5289
|
}
|
|
5015
5290
|
|
|
@@ -5233,7 +5508,7 @@ type SearchFieldProps = PreactFieldProps<
|
|
|
5233
5508
|
Required<TextFieldProps$1>['autocomplete']> & Required<Pick<TextFieldProps$1, 'defaultValue' | 'details' | 'disabled' | 'error' | 'labelAccessibilityVisibility' | 'minLength' | 'maxLength' | 'label' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value'>>;
|
|
5234
5509
|
|
|
5235
5510
|
declare const tagName$i = "s-search-field";
|
|
5236
|
-
interface ReactProps$i extends Partial<SearchFieldProps
|
|
5511
|
+
interface ReactProps$i extends Partial<Omit<SearchFieldProps, 'error' | 'details'>>, Pick<TextFieldProps$1, 'id'>, FieldReactProps<typeof tagName$i>, FieldSlotInternalReactProps {
|
|
5237
5512
|
}
|
|
5238
5513
|
|
|
5239
5514
|
declare abstract class SearchFieldBase extends PreactFieldElement<SearchFieldProps['autocomplete']> implements Pick<SearchFieldProps, 'maxLength' | 'minLength'> {
|
|
@@ -5253,7 +5528,7 @@ declare global {
|
|
|
5253
5528
|
declare module 'preact' {
|
|
5254
5529
|
namespace createElement.JSX {
|
|
5255
5530
|
interface IntrinsicElements {
|
|
5256
|
-
[tagName$i]: ReactProps$i & PreactBaseElementProps<SearchField>;
|
|
5531
|
+
[tagName$i]: Omit<ReactProps$i, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<SearchField>;
|
|
5257
5532
|
}
|
|
5258
5533
|
}
|
|
5259
5534
|
}
|
|
@@ -5306,7 +5581,7 @@ interface SelectProps extends Omit<PreactInputProps, 'value'>, Required<Pick<Sel
|
|
|
5306
5581
|
}
|
|
5307
5582
|
|
|
5308
5583
|
declare const tagName$g = "s-select";
|
|
5309
|
-
interface ReactProps$g extends Partial<SelectProps
|
|
5584
|
+
interface ReactProps$g extends Partial<Omit<SelectProps, 'error' | 'details'>>, Pick<SelectProps$1, 'id' | 'children'>, FieldSlotInternalReactProps {
|
|
5310
5585
|
/**
|
|
5311
5586
|
* The options a user can select from.
|
|
5312
5587
|
*
|
|
@@ -5363,7 +5638,7 @@ declare global {
|
|
|
5363
5638
|
declare module 'preact' {
|
|
5364
5639
|
namespace createElement.JSX {
|
|
5365
5640
|
interface IntrinsicElements {
|
|
5366
|
-
[tagName$g]: ReactProps$g & PreactBaseElementPropsWithChildren<Select>;
|
|
5641
|
+
[tagName$g]: Omit<ReactProps$g, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementPropsWithChildren<Select>;
|
|
5367
5642
|
}
|
|
5368
5643
|
}
|
|
5369
5644
|
}
|
|
@@ -5502,6 +5777,7 @@ declare const tagName$d = "s-switch";
|
|
|
5502
5777
|
interface ReactProps$d extends Partial<SwitchProps>, Pick<SwitchProps$1, 'id'> {
|
|
5503
5778
|
onChange?: ((event: CallbackEvent<typeof tagName$d>) => void) | null;
|
|
5504
5779
|
onInput?: ((event: CallbackEvent<typeof tagName$d>) => void) | null;
|
|
5780
|
+
onBlur?: ((event: CallbackEvent<typeof tagName$d>) => void) | null;
|
|
5505
5781
|
}
|
|
5506
5782
|
|
|
5507
5783
|
declare abstract class SwitchBase extends PreactCheckboxElement implements Pick<SwitchProps, 'labelAccessibilityVisibility'> {
|
|
@@ -5789,13 +6065,17 @@ declare module 'preact' {
|
|
|
5789
6065
|
type TextAreaProps = PreactFieldProps<Required<TextAreaProps$1>['autocomplete']> & Required<Pick<TextAreaProps$1, 'maxLength' | 'minLength' | 'rows'>>;
|
|
5790
6066
|
|
|
5791
6067
|
declare const tagName$5 = "s-text-area";
|
|
5792
|
-
interface ReactProps$5 extends Partial<TextAreaProps
|
|
6068
|
+
interface ReactProps$5 extends Partial<Omit<TextAreaProps, 'error' | 'details'>>, Pick<TextAreaProps$1, 'id'>, FieldReactProps<typeof tagName$5>, FieldSlotInternalReactProps {
|
|
5793
6069
|
}
|
|
5794
6070
|
|
|
5795
|
-
declare class
|
|
6071
|
+
declare abstract class TextAreaBase extends PreactFieldElement<TextAreaProps['autocomplete']> implements Pick<TextAreaProps, 'maxLength' | 'minLength' | 'rows'> {
|
|
5796
6072
|
maxLength: TextAreaProps['maxLength'];
|
|
5797
6073
|
minLength: TextAreaProps['minLength'];
|
|
5798
6074
|
rows: TextAreaProps['rows'];
|
|
6075
|
+
constructor(renderImpl: RenderImpl);
|
|
6076
|
+
}
|
|
6077
|
+
|
|
6078
|
+
declare class TextArea extends TextAreaBase implements TextAreaProps {
|
|
5799
6079
|
constructor();
|
|
5800
6080
|
}
|
|
5801
6081
|
declare global {
|
|
@@ -5806,7 +6086,7 @@ declare global {
|
|
|
5806
6086
|
declare module 'preact' {
|
|
5807
6087
|
namespace createElement.JSX {
|
|
5808
6088
|
interface IntrinsicElements {
|
|
5809
|
-
[tagName$5]: ReactProps$5 & PreactBaseElementProps<TextArea>;
|
|
6089
|
+
[tagName$5]: Omit<ReactProps$5, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<TextArea>;
|
|
5810
6090
|
}
|
|
5811
6091
|
}
|
|
5812
6092
|
}
|
|
@@ -5816,7 +6096,7 @@ type TextFieldProps = PreactFieldProps<
|
|
|
5816
6096
|
Required<TextFieldProps$1>['autocomplete']> & Required<Pick<TextFieldProps$1, 'icon' | 'maxLength' | 'minLength' | 'prefix' | 'suffix'>>;
|
|
5817
6097
|
|
|
5818
6098
|
declare const tagName$4 = "s-text-field";
|
|
5819
|
-
interface ReactProps$4 extends Partial<Omit<TextFieldProps, 'accessory'>>, Pick<TextFieldProps$1, 'id'>, FieldReactProps<typeof tagName$4
|
|
6099
|
+
interface ReactProps$4 extends Partial<Omit<TextFieldProps, 'accessory' | 'error' | 'details'>>, Pick<TextFieldProps$1, 'id'>, FieldReactProps<typeof tagName$4>, FieldSlotInternalReactProps {
|
|
5820
6100
|
/**
|
|
5821
6101
|
* The accessory to display in the text field.
|
|
5822
6102
|
*/
|
|
@@ -5843,7 +6123,7 @@ declare global {
|
|
|
5843
6123
|
declare module 'preact' {
|
|
5844
6124
|
namespace createElement.JSX {
|
|
5845
6125
|
interface IntrinsicElements {
|
|
5846
|
-
[tagName$4]: Omit<ReactProps$4, 'accessory'> & PreactBaseElementPropsWithChildren<TextField>;
|
|
6126
|
+
[tagName$4]: Omit<ReactProps$4, 'accessory' | 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementPropsWithChildren<TextField>;
|
|
5847
6127
|
}
|
|
5848
6128
|
}
|
|
5849
6129
|
}
|
|
@@ -5911,13 +6191,17 @@ declare module 'preact' {
|
|
|
5911
6191
|
type URLFieldProps = PreactFieldProps<Required<URLFieldProps$1>['autocomplete']> & Required<Pick<URLFieldProps$1, 'maxLength' | 'minLength'>>;
|
|
5912
6192
|
|
|
5913
6193
|
declare const tagName$1 = "s-url-field";
|
|
5914
|
-
interface ReactProps$1 extends Partial<Omit<URLFieldProps, 'accessory'>>, Pick<URLFieldProps$1, 'id'>, FieldReactProps<typeof tagName$1
|
|
6194
|
+
interface ReactProps$1 extends Partial<Omit<URLFieldProps, 'accessory' | 'error' | 'details'>>, Pick<URLFieldProps$1, 'id'>, FieldReactProps<typeof tagName$1>, FieldSlotInternalReactProps {
|
|
5915
6195
|
}
|
|
5916
6196
|
|
|
5917
|
-
declare class
|
|
6197
|
+
declare abstract class URLFieldBase extends PreactFieldElement<URLFieldProps['autocomplete']> implements Pick<URLFieldProps, 'autocomplete' | 'maxLength' | 'minLength'> {
|
|
5918
6198
|
autocomplete: URLFieldProps['autocomplete'];
|
|
5919
6199
|
maxLength: URLFieldProps['maxLength'];
|
|
5920
6200
|
minLength: URLFieldProps['minLength'];
|
|
6201
|
+
constructor(renderImpl: RenderImpl);
|
|
6202
|
+
}
|
|
6203
|
+
|
|
6204
|
+
declare class URLField extends URLFieldBase implements URLFieldProps {
|
|
5921
6205
|
constructor();
|
|
5922
6206
|
}
|
|
5923
6207
|
declare global {
|
|
@@ -5928,7 +6212,7 @@ declare global {
|
|
|
5928
6212
|
declare module 'preact' {
|
|
5929
6213
|
namespace createElement.JSX {
|
|
5930
6214
|
interface IntrinsicElements {
|
|
5931
|
-
[tagName$1]: ReactProps$1 & PreactBaseElementProps<URLField>;
|
|
6215
|
+
[tagName$1]: Omit<ReactProps$1, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<URLField>;
|
|
5932
6216
|
}
|
|
5933
6217
|
}
|
|
5934
6218
|
}
|
|
@@ -6115,14 +6399,14 @@ declare global {
|
|
|
6115
6399
|
declare module 'react' {
|
|
6116
6400
|
namespace JSX {
|
|
6117
6401
|
interface IntrinsicElements {
|
|
6118
|
-
[tagName$Q]: ReactProps$Q & ReactBaseElementProps<Checkbox>;
|
|
6402
|
+
[tagName$Q]: Omit<ReactProps$Q, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<Checkbox>;
|
|
6119
6403
|
}
|
|
6120
6404
|
}
|
|
6121
6405
|
}
|
|
6122
6406
|
declare global {
|
|
6123
6407
|
namespace JSX {
|
|
6124
6408
|
interface IntrinsicElements {
|
|
6125
|
-
[tagName$Q]: ReactProps$Q & ReactBaseElementProps<Checkbox>;
|
|
6409
|
+
[tagName$Q]: Omit<ReactProps$Q, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<Checkbox>;
|
|
6126
6410
|
}
|
|
6127
6411
|
}
|
|
6128
6412
|
}
|
|
@@ -6199,14 +6483,14 @@ declare global {
|
|
|
6199
6483
|
declare module 'react' {
|
|
6200
6484
|
namespace JSX {
|
|
6201
6485
|
interface IntrinsicElements {
|
|
6202
|
-
[tagName$K]: ReactProps$K & ReactBaseElementProps<ColorField>;
|
|
6486
|
+
[tagName$K]: Omit<ReactProps$K, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<ColorField>;
|
|
6203
6487
|
}
|
|
6204
6488
|
}
|
|
6205
6489
|
}
|
|
6206
6490
|
declare global {
|
|
6207
6491
|
namespace JSX {
|
|
6208
6492
|
interface IntrinsicElements {
|
|
6209
|
-
[tagName$K]: ReactProps$K & ReactBaseElementProps<ColorField>;
|
|
6493
|
+
[tagName$K]: Omit<ReactProps$K, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<ColorField>;
|
|
6210
6494
|
}
|
|
6211
6495
|
}
|
|
6212
6496
|
}
|
|
@@ -6227,14 +6511,14 @@ declare global {
|
|
|
6227
6511
|
declare module 'react' {
|
|
6228
6512
|
namespace JSX {
|
|
6229
6513
|
interface IntrinsicElements {
|
|
6230
|
-
[tagName$I]: ReactProps$I & ReactBaseElementProps<DateField>;
|
|
6514
|
+
[tagName$I]: Omit<ReactProps$I, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<DateField>;
|
|
6231
6515
|
}
|
|
6232
6516
|
}
|
|
6233
6517
|
}
|
|
6234
6518
|
declare global {
|
|
6235
6519
|
namespace JSX {
|
|
6236
6520
|
interface IntrinsicElements {
|
|
6237
|
-
[tagName$I]: ReactProps$I & ReactBaseElementProps<DateField>;
|
|
6521
|
+
[tagName$I]: Omit<ReactProps$I, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<DateField>;
|
|
6238
6522
|
}
|
|
6239
6523
|
}
|
|
6240
6524
|
}
|
|
@@ -6283,14 +6567,14 @@ declare global {
|
|
|
6283
6567
|
declare module 'react' {
|
|
6284
6568
|
namespace JSX {
|
|
6285
6569
|
interface IntrinsicElements {
|
|
6286
|
-
[tagName$E]: ReactProps$E & ReactBaseElementProps<EmailField>;
|
|
6570
|
+
[tagName$E]: Omit<ReactProps$E, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<EmailField>;
|
|
6287
6571
|
}
|
|
6288
6572
|
}
|
|
6289
6573
|
}
|
|
6290
6574
|
declare global {
|
|
6291
6575
|
namespace JSX {
|
|
6292
6576
|
interface IntrinsicElements {
|
|
6293
|
-
[tagName$E]: ReactProps$E & ReactBaseElementProps<EmailField>;
|
|
6577
|
+
[tagName$E]: Omit<ReactProps$E, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<EmailField>;
|
|
6294
6578
|
}
|
|
6295
6579
|
}
|
|
6296
6580
|
}
|
|
@@ -6423,28 +6707,28 @@ declare global {
|
|
|
6423
6707
|
declare module 'react' {
|
|
6424
6708
|
namespace JSX {
|
|
6425
6709
|
interface IntrinsicElements {
|
|
6426
|
-
[tagName$u]: ReactProps$u & ReactBaseElementProps<MoneyField>;
|
|
6710
|
+
[tagName$u]: Omit<ReactProps$u, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<MoneyField>;
|
|
6427
6711
|
}
|
|
6428
6712
|
}
|
|
6429
6713
|
}
|
|
6430
6714
|
declare global {
|
|
6431
6715
|
namespace JSX {
|
|
6432
6716
|
interface IntrinsicElements {
|
|
6433
|
-
[tagName$u]: ReactProps$u & ReactBaseElementProps<MoneyField>;
|
|
6717
|
+
[tagName$u]: Omit<ReactProps$u, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<MoneyField>;
|
|
6434
6718
|
}
|
|
6435
6719
|
}
|
|
6436
6720
|
}
|
|
6437
6721
|
declare module 'react' {
|
|
6438
6722
|
namespace JSX {
|
|
6439
6723
|
interface IntrinsicElements {
|
|
6440
|
-
[tagName$t]: ReactProps$t & ReactBaseElementProps<NumberField>;
|
|
6724
|
+
[tagName$t]: Omit<ReactProps$t, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<NumberField>;
|
|
6441
6725
|
}
|
|
6442
6726
|
}
|
|
6443
6727
|
}
|
|
6444
6728
|
declare global {
|
|
6445
6729
|
namespace JSX {
|
|
6446
6730
|
interface IntrinsicElements {
|
|
6447
|
-
[tagName$t]: ReactProps$t & ReactBaseElementProps<NumberField>;
|
|
6731
|
+
[tagName$t]: Omit<ReactProps$t, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<NumberField>;
|
|
6448
6732
|
}
|
|
6449
6733
|
}
|
|
6450
6734
|
}
|
|
@@ -6521,14 +6805,14 @@ declare global {
|
|
|
6521
6805
|
declare module 'react' {
|
|
6522
6806
|
namespace JSX {
|
|
6523
6807
|
interface IntrinsicElements {
|
|
6524
|
-
[tagName$n]: ReactProps$n & ReactBaseElementProps<PasswordField>;
|
|
6808
|
+
[tagName$n]: Omit<ReactProps$n, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<PasswordField>;
|
|
6525
6809
|
}
|
|
6526
6810
|
}
|
|
6527
6811
|
}
|
|
6528
6812
|
declare global {
|
|
6529
6813
|
namespace JSX {
|
|
6530
6814
|
interface IntrinsicElements {
|
|
6531
|
-
[tagName$n]: ReactProps$n & ReactBaseElementProps<PasswordField>;
|
|
6815
|
+
[tagName$n]: Omit<ReactProps$n, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<PasswordField>;
|
|
6532
6816
|
}
|
|
6533
6817
|
}
|
|
6534
6818
|
}
|
|
@@ -6591,14 +6875,14 @@ declare global {
|
|
|
6591
6875
|
declare module 'react' {
|
|
6592
6876
|
namespace JSX {
|
|
6593
6877
|
interface IntrinsicElements {
|
|
6594
|
-
[tagName$i]: ReactProps$i & ReactBaseElementProps<SearchField>;
|
|
6878
|
+
[tagName$i]: Omit<ReactProps$i, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<SearchField>;
|
|
6595
6879
|
}
|
|
6596
6880
|
}
|
|
6597
6881
|
}
|
|
6598
6882
|
declare global {
|
|
6599
6883
|
namespace JSX {
|
|
6600
6884
|
interface IntrinsicElements {
|
|
6601
|
-
[tagName$i]: ReactProps$i & ReactBaseElementProps<SearchField>;
|
|
6885
|
+
[tagName$i]: Omit<ReactProps$i, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<SearchField>;
|
|
6602
6886
|
}
|
|
6603
6887
|
}
|
|
6604
6888
|
}
|
|
@@ -6619,14 +6903,14 @@ declare global {
|
|
|
6619
6903
|
declare module 'react' {
|
|
6620
6904
|
namespace JSX {
|
|
6621
6905
|
interface IntrinsicElements {
|
|
6622
|
-
[tagName$g]: ReactProps$g & ReactBaseElementPropsWithChildren<Select>;
|
|
6906
|
+
[tagName$g]: Omit<ReactProps$g, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<Select>;
|
|
6623
6907
|
}
|
|
6624
6908
|
}
|
|
6625
6909
|
}
|
|
6626
6910
|
declare global {
|
|
6627
6911
|
namespace JSX {
|
|
6628
6912
|
interface IntrinsicElements {
|
|
6629
|
-
[tagName$g]: ReactProps$g & ReactBaseElementPropsWithChildren<Select>;
|
|
6913
|
+
[tagName$g]: Omit<ReactProps$g, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<Select>;
|
|
6630
6914
|
}
|
|
6631
6915
|
}
|
|
6632
6916
|
}
|
|
@@ -6773,28 +7057,28 @@ declare global {
|
|
|
6773
7057
|
declare module 'react' {
|
|
6774
7058
|
namespace JSX {
|
|
6775
7059
|
interface IntrinsicElements {
|
|
6776
|
-
[tagName$5]: ReactProps$5 & ReactBaseElementProps<TextArea>;
|
|
7060
|
+
[tagName$5]: Omit<ReactProps$5, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<TextArea>;
|
|
6777
7061
|
}
|
|
6778
7062
|
}
|
|
6779
7063
|
}
|
|
6780
7064
|
declare global {
|
|
6781
7065
|
namespace JSX {
|
|
6782
7066
|
interface IntrinsicElements {
|
|
6783
|
-
[tagName$5]: ReactProps$5 & ReactBaseElementProps<TextArea>;
|
|
7067
|
+
[tagName$5]: Omit<ReactProps$5, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<TextArea>;
|
|
6784
7068
|
}
|
|
6785
7069
|
}
|
|
6786
7070
|
}
|
|
6787
7071
|
declare module 'react' {
|
|
6788
7072
|
namespace JSX {
|
|
6789
7073
|
interface IntrinsicElements {
|
|
6790
|
-
[tagName$4]: Omit<ReactProps$4, 'accessory'> & ReactBaseElementPropsWithChildren<TextField>;
|
|
7074
|
+
[tagName$4]: Omit<ReactProps$4, 'accessory' | 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<TextField>;
|
|
6791
7075
|
}
|
|
6792
7076
|
}
|
|
6793
7077
|
}
|
|
6794
7078
|
declare global {
|
|
6795
7079
|
namespace JSX {
|
|
6796
7080
|
interface IntrinsicElements {
|
|
6797
|
-
[tagName$4]: Omit<ReactProps$4, 'accessory'> & ReactBaseElementPropsWithChildren<TextField>;
|
|
7081
|
+
[tagName$4]: Omit<ReactProps$4, 'accessory' | 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<TextField>;
|
|
6798
7082
|
}
|
|
6799
7083
|
}
|
|
6800
7084
|
}
|
|
@@ -6829,14 +7113,14 @@ declare global {
|
|
|
6829
7113
|
declare module 'react' {
|
|
6830
7114
|
namespace JSX {
|
|
6831
7115
|
interface IntrinsicElements {
|
|
6832
|
-
[tagName$1]: ReactProps$1 & ReactBaseElementProps<URLField>;
|
|
7116
|
+
[tagName$1]: Omit<ReactProps$1, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<URLField>;
|
|
6833
7117
|
}
|
|
6834
7118
|
}
|
|
6835
7119
|
}
|
|
6836
7120
|
declare global {
|
|
6837
7121
|
namespace JSX {
|
|
6838
7122
|
interface IntrinsicElements {
|
|
6839
|
-
[tagName$1]: ReactProps$1 & ReactBaseElementProps<URLField>;
|
|
7123
|
+
[tagName$1]: Omit<ReactProps$1, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<URLField>;
|
|
6840
7124
|
}
|
|
6841
7125
|
}
|
|
6842
7126
|
}
|