@shopify/polaris-types 1.0.1 → 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.
Files changed (2) hide show
  1. package/dist/polaris.d.ts +1371 -600
  2. package/package.json +10 -4
package/dist/polaris.d.ts CHANGED
@@ -12,13 +12,15 @@ type React = {
12
12
  useMemo: typeof react.useMemo;
13
13
  };
14
14
  type Slots<Props extends object> = (keyof Props)[];
15
+ type ReadOnlyProps<Props extends object> = (keyof Props)[];
15
16
  interface PropConfig<Props extends object> {
16
17
  slots?: Slots<Props>;
18
+ readOnlyProps?: ReadOnlyProps<Props>;
17
19
  }
18
20
  type PropsWithChildren<T> = T extends {
19
21
  children: ReactNode;
20
22
  } ? T : React.PropsWithChildren<T>;
21
- declare function reactWrap$1<Props extends object, ElementType extends HTMLElement>(React: React, tagName: string, { slots }?: PropConfig<Props>): ForwardRefExoticComponent<PropsWithoutRef<PropsWithChildren<Props>> & RefAttributes<ElementType>>;
23
+ declare function reactWrap$1<Props extends object, ElementType extends HTMLElement>(React: React, tagName: string, { slots, readOnlyProps }?: PropConfig<Props>): ForwardRefExoticComponent<PropsWithoutRef<PropsWithChildren<Props>> & RefAttributes<ElementType>>;
22
24
 
23
25
  /**
24
26
  * TODO: Update `any` type here after this is resolved
@@ -200,7 +202,7 @@ interface BackgroundProps {
200
202
  */
201
203
  type ToneKeyword = 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical' | 'accent' | 'custom';
202
204
 
203
- 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", "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", "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", "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", "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-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-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"];
204
206
  type IconType$1 = (typeof privateIconArray)[number];
205
207
 
206
208
  /**
@@ -395,6 +397,14 @@ type AccessibilityRole =
395
397
  *
396
398
  */
397
399
  | 'section'
400
+ /**
401
+ * Used to identify a perceivable section containing content that is relevant to a specific, author-specified purpose and sufficiently important that users will likely want to be able to navigate to the section easily.
402
+ *
403
+ * In an HTML host `region` will render as `<div role="region">`.
404
+ * A region **must** have an accessible name provided via the `accessibilityLabel` property.
405
+ * Learn more about the [`region` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/region_role) in the MDN web docs.
406
+ */
407
+ | 'region'
398
408
  /**
399
409
  * Used to designate a supporting section that relates to the main content.
400
410
  *
@@ -1014,8 +1024,14 @@ interface FieldErrorProps {
1014
1024
  /**
1015
1025
  * Indicate an error to the user. The field will be given a specific stylistic treatment
1016
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.
1017
1033
  */
1018
- error?: string;
1034
+ error?: string | ComponentChildren;
1019
1035
  }
1020
1036
  interface BasicFieldProps extends FieldErrorProps, LabelAccessibilityVisibilityProps {
1021
1037
  /**
@@ -1029,8 +1045,14 @@ interface BasicFieldProps extends FieldErrorProps, LabelAccessibilityVisibilityP
1029
1045
  required?: boolean;
1030
1046
  /**
1031
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.
1032
1054
  */
1033
- label?: string;
1055
+ label?: string | ComponentChildren;
1034
1056
  }
1035
1057
  interface FieldDetailsProps {
1036
1058
  /**
@@ -1039,8 +1061,14 @@ interface FieldDetailsProps {
1039
1061
  * to offer more information or instructions to the user.
1040
1062
  *
1041
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.
1042
1070
  */
1043
- details?: string;
1071
+ details?: string | ComponentChildren;
1044
1072
  }
1045
1073
  interface FieldProps extends BasicFieldProps, InputProps, FocusEventProps, FieldDetailsProps {
1046
1074
  /**
@@ -1184,11 +1212,17 @@ interface BaseOptionProps extends BaseSelectableProps {
1184
1212
  */
1185
1213
  defaultSelected?: boolean;
1186
1214
  }
1187
- interface BaseCheckableProps extends BaseSelectableProps, InteractionProps {
1215
+ interface BaseCheckableProps extends BaseSelectableProps, FocusEventProps, LabelAccessibilityVisibilityProps, InteractionProps {
1188
1216
  /**
1189
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.
1190
1224
  */
1191
- label?: string;
1225
+ label?: string | ComponentChildren;
1192
1226
  /**
1193
1227
  * Whether the control is active.
1194
1228
  *
@@ -1278,6 +1312,38 @@ interface ChipProps$2 extends GlobalProps {
1278
1312
  * @default 'base'
1279
1313
  */
1280
1314
  color?: ColorKeyword;
1315
+ /**
1316
+ * Whether the chip is removable.
1317
+ *
1318
+ * @default false
1319
+ */
1320
+ removable?: boolean;
1321
+ /**
1322
+ * Callback when the chip is removed.
1323
+ */
1324
+ onRemove?: (event: Event) => void;
1325
+ /**
1326
+ * Determines whether the chip is hidden.
1327
+ *
1328
+ * If this property is being set on each framework render (as in 'controlled' usage),
1329
+ * and the chip is `removable`,
1330
+ * ensure you update app state for this property when the `remove` event fires.
1331
+ *
1332
+ * If the chip is not `removable`, it can still be hidden by setting this property.
1333
+ *
1334
+ * @default false
1335
+ */
1336
+ hidden?: boolean;
1337
+ /**
1338
+ * Event handler when the chip has fully hidden.
1339
+ *
1340
+ * The `hidden` property will be `true` when this event fires.
1341
+ *
1342
+ * @implementation If implementations animate the hiding of the chip,
1343
+ * this event must fire after the chip has fully hidden.
1344
+ * We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
1345
+ */
1346
+ onAfterHide?: (event: Event) => void;
1281
1347
  }
1282
1348
 
1283
1349
  interface ChipProps$1 extends ChipProps$2, GlobalProps {
@@ -1390,7 +1456,7 @@ interface ClickableProps$1 extends GlobalProps, BaseBoxProps, BaseClickableProps
1390
1456
  lang?: string;
1391
1457
  }
1392
1458
 
1393
- interface ClickableChipProps$1 extends ChipProps$2, GlobalProps {
1459
+ interface ClickableChipProps$1 extends ChipProps$2, GlobalProps, InteractionProps {
1394
1460
  /**
1395
1461
  * Callback when the chip is clicked.
1396
1462
  */
@@ -1399,40 +1465,9 @@ interface ClickableChipProps$1 extends ChipProps$2, GlobalProps {
1399
1465
  * The URL to link to.
1400
1466
  *
1401
1467
  * - If set, it will navigate to the location specified by `href` after executing the `click` event.
1468
+ * - If a `commandFor` is set, the `command` will be executed instead of the navigation.
1402
1469
  */
1403
1470
  href?: string;
1404
- /**
1405
- * Whether the chip is removable.
1406
- *
1407
- * @default false
1408
- */
1409
- removable?: boolean;
1410
- /**
1411
- * Callback when the chip is removed.
1412
- */
1413
- onRemove?: (event: Event) => void;
1414
- /**
1415
- * Determines whether the chip is hidden.
1416
- *
1417
- * If this property is being set on each framework render (as in 'controlled' usage),
1418
- * and the chip is `removable`,
1419
- * ensure you update app state for this property when the `remove` event fires.
1420
- *
1421
- * If the chip is not `removable`, it can still be hidden by setting this property.
1422
- *
1423
- * @default false
1424
- */
1425
- hidden?: boolean;
1426
- /**
1427
- * Event handler when the chip has fully hidden.
1428
- *
1429
- * The `hidden` property will be `true` when this event fires.
1430
- *
1431
- * @implementation If implementations animate the hiding of the chip,
1432
- * this event must fire after the chip has fully hidden.
1433
- * We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
1434
- */
1435
- onAfterHide?: (event: Event) => void;
1436
1471
  /**
1437
1472
  * Disables the chip, disallowing any interaction.
1438
1473
  *
@@ -2177,7 +2212,7 @@ interface MenuProps$1 extends GlobalProps {
2177
2212
  */
2178
2213
  accessibilityLabel?: string;
2179
2214
  /**
2180
- * 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.
2181
2216
  */
2182
2217
  children?: ComponentChildren;
2183
2218
  }
@@ -2222,7 +2257,20 @@ interface ModalProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMethods
2222
2257
  children?: ComponentChildren;
2223
2258
  }
2224
2259
 
2260
+ type CurrencyCode = 'USD' | 'EUR' | 'GBP' | 'CAD' | 'AFN' | 'ALL' | 'DZD' | 'AOA' | 'ARS' | 'AMD' | 'AWG' | 'AUD' | 'BBD' | 'AZN' | 'BDT' | 'BSD' | 'BHD' | 'BIF' | 'BZD' | 'BMD' | 'BTN' | 'BAM' | 'BRL' | 'BOB' | 'BWP' | 'BND' | 'BGN' | 'MMK' | 'KHR' | 'CVE' | 'KYD' | 'XAF' | 'CLP' | 'CNY' | 'COP' | 'KMF' | 'CDF' | 'CRC' | 'HRK' | 'CZK' | 'DKK' | 'DOP' | 'XCD' | 'EGP' | 'ETB' | 'XPF' | 'FJD' | 'GMD' | 'GHS' | 'GTQ' | 'GYD' | 'GEL' | 'HTG' | 'HNL' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'IDR' | 'ILS' | 'IQD' | 'JMD' | 'JPY' | 'JEP' | 'JOD' | 'KZT' | 'KES' | 'KWD' | 'KGS' | 'LAK' | 'LVL' | 'LBP' | 'LSL' | 'LRD' | 'LTL' | 'MGA' | 'MKD' | 'MOP' | 'MWK' | 'MVR' | 'MXN' | 'MYR' | 'MUR' | 'MDL' | 'MAD' | 'MNT' | 'MZN' | 'NAD' | 'NPR' | 'ANG' | 'NZD' | 'NIO' | 'NGN' | 'NOK' | 'OMR' | 'PAB' | 'PKR' | 'PGK' | 'PYG' | 'PEN' | 'PHP' | 'PLN' | 'QAR' | 'RON' | 'RUB' | 'RWF' | 'WST' | 'SAR' | 'RSD' | 'SCR' | 'SGD' | 'SDG' | 'SYP' | 'ZAR' | 'KRW' | 'SSP' | 'SBD' | 'LKR' | 'SRD' | 'SZL' | 'SEK' | 'CHF' | 'TWD' | 'THB' | 'TZS' | 'TTD' | 'TND' | 'TRY' | 'TMT' | 'UGX' | 'UAH' | 'AED' | 'UYU' | 'UZS' | 'VUV' | 'VND' | 'XOF' | 'YER' | 'ZMW' | 'BYN' | 'BYR' | 'DJF' | 'ERN' | 'FKP' | 'GIP' | 'GNF' | 'IRR' | 'KID' | 'LYD' | 'MRU' | 'SLL' | 'SHP' | 'SOS' | 'STD' | 'STN' | 'TJS' | 'TOP' | 'VED' | 'VEF' | 'VES' | 'XXX';
2225
2261
  interface MoneyFieldProps$1 extends GlobalProps, BaseTextFieldProps, NumberConstraintsProps, AutocompleteProps<MoneyAutocompleteField> {
2262
+ /**
2263
+ * The currency code of the field.
2264
+ *
2265
+ * When set to 'auto', the field will display the currency code of the shop.
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
+ *
2271
+ * @default 'auto'
2272
+ */
2273
+ currencyCode?: CurrencyCode | 'auto';
2226
2274
  }
2227
2275
  type MoneyAutocompleteField = ExtractStrict<AnyAutocompleteField, 'transaction-amount'>;
2228
2276
 
@@ -2234,6 +2282,21 @@ interface NumberFieldProps$1 extends GlobalProps, BaseTextFieldProps, Autocomple
2234
2282
  * @default 'decimal'
2235
2283
  */
2236
2284
  inputMode?: 'decimal' | 'numeric';
2285
+ /**
2286
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred
2287
+ * the field after changing the value.
2288
+ * Also fired after `onInput` on every step when interacting with the controls or the keyboard up and down arrows.
2289
+ *
2290
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
2291
+ */
2292
+ onChange?: (event: Event) => void;
2293
+ /**
2294
+ * Callback when the user makes any changes in the field.
2295
+ * Also fired before `onChange` on every step when interacting with the controls or the keyboard up and down arrows.
2296
+ *
2297
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
2298
+ */
2299
+ onInput?: (event: Event) => void;
2237
2300
  }
2238
2301
  type NumberAutocompleteField = ExtractStrict<AnyAutocompleteField, 'one-time-code' | 'cc-number' | 'cc-csc'>;
2239
2302
 
@@ -2264,6 +2327,12 @@ interface OptionGroupProps$1 extends GlobalProps {
2264
2327
  }
2265
2328
 
2266
2329
  interface OrderedListProps$1 extends GlobalProps {
2330
+ /**
2331
+ * The content of the OrderededList.
2332
+ *
2333
+ * Accepts only `ListItem` components.
2334
+ */
2335
+ children?: ComponentChildren;
2267
2336
  }
2268
2337
 
2269
2338
  interface PageProps$1 extends GlobalProps, ActionSlots {
@@ -2301,11 +2370,17 @@ interface PageProps$1 extends GlobalProps, ActionSlots {
2301
2370
  * @default 'base'
2302
2371
  */
2303
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;
2304
2379
  }
2305
2380
 
2306
2381
  interface ParagraphProps$1 extends GlobalProps, BaseTypographyProps, BlockTypographyProps, AccessibilityVisibilityProps {
2307
2382
  /**
2308
- * The content of the Text.
2383
+ * The content of the Paragraph.
2309
2384
  */
2310
2385
  children?: ComponentChildren;
2311
2386
  /**
@@ -2347,6 +2422,23 @@ interface PopoverProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMetho
2347
2422
  children?: ComponentChildren;
2348
2423
  }
2349
2424
 
2425
+ interface PressButtonProps$1 extends GlobalProps, Pick<ButtonProps$1, 'accessibilityLabel' | 'children' | 'icon' | 'inlineSize' | 'lang' | 'tone' | 'variant' | 'disabled' | 'loading' | 'onClick' | 'onBlur' | 'onFocus'> {
2426
+ /**
2427
+ * Whether the button is pressed.
2428
+ *
2429
+ * @default false
2430
+ */
2431
+ pressed?: boolean;
2432
+ /**
2433
+ * Whether the button is pressed by default.
2434
+ *
2435
+ * @default false
2436
+ *
2437
+ * @implementation `defaultPressed` reflects to the `pressed` attribute.
2438
+ */
2439
+ defaultPressed?: boolean;
2440
+ }
2441
+
2350
2442
  interface QueryContainerProps$1 extends GlobalProps {
2351
2443
  /**
2352
2444
  * The content of the container.
@@ -2368,6 +2460,10 @@ interface QueryContainerProps$1 extends GlobalProps {
2368
2460
  containerName?: string;
2369
2461
  }
2370
2462
 
2463
+ type OverflowKeyword = 'auto' | 'hidden';
2464
+ type ScrollSnapType = 'none' | 'mandatory' | 'proximity';
2465
+ type ScrollAccessibilityRole = 'generic' | 'region';
2466
+
2371
2467
  interface SectionProps$1 extends GlobalProps, ActionSlots {
2372
2468
  /**
2373
2469
  * The content of the Section.
@@ -2499,6 +2595,7 @@ interface PaginationProps {
2499
2595
  */
2500
2596
  loading?: boolean;
2501
2597
  }
2598
+ type ComputedTableVariant = 'list' | 'table';
2502
2599
  interface TableProps$1 extends GlobalProps, PaginationProps {
2503
2600
  /**
2504
2601
  * The content of the Table.
@@ -2511,13 +2608,22 @@ interface TableProps$1 extends GlobalProps, PaginationProps {
2511
2608
  /**
2512
2609
  * Sets the layout of the Table.
2513
2610
  *
2514
- * - `list`: The Table is always displayed as a list.
2515
- * - `table`: The Table is always displayed as a table.
2611
+ * - `list`: The Table is displayed as a list.
2612
+ * - `table`: The Table is displayed as a table.
2516
2613
  * - `auto`: The Table is displayed as a table on wide devices and as a list on narrow devices.
2517
2614
  *
2518
2615
  * @default 'auto'
2519
2616
  */
2520
- variant?: 'list' | 'table' | 'auto';
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;
2521
2627
  }
2522
2628
 
2523
2629
  interface TableBodyProps$1 extends GlobalProps {
@@ -2727,55 +2833,28 @@ interface TooltipProps$1 extends GlobalProps {
2727
2833
  }
2728
2834
 
2729
2835
  interface UnorderedListProps$1 extends GlobalProps {
2836
+ /**
2837
+ * The content of the UnorderededList.
2838
+ *
2839
+ * Accepts only `ListItem` components.
2840
+ */
2841
+ children?: ComponentChildren;
2730
2842
  }
2731
2843
 
2732
2844
  interface URLFieldProps$1 extends GlobalProps, BaseTextFieldProps, MinMaxLengthProps, AutocompleteProps<URLAutocompleteField> {
2733
2845
  }
2734
2846
  type URLAutocompleteField = ExtractStrict<AnyAutocompleteField, 'url' | 'photo' | 'impp' | `${AutocompleteAddressGroup} impp`>;
2735
2847
 
2736
- type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
2737
- currentTarget: HTMLElementTagNameMap[T];
2738
- };
2739
- type CallbackToggleEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends ToggleEvent = ToggleEvent> = TEvent & {
2740
- currentTarget: HTMLElementTagNameMap[TTagName];
2741
- };
2742
- type CallbackEventListener<T extends keyof HTMLElementTagNameMap> = (EventListener & {
2743
- (event: CallbackEvent<T>): void;
2744
- }) | null;
2745
- type FieldReactProps<T extends keyof HTMLElementTagNameMap> = {
2746
- onInput?: ((event: CallbackEvent<T>) => void) | null;
2747
- onChange?: ((event: CallbackEvent<T>) => void) | null;
2748
- onFocus?: ((event: CallbackEvent<T>) => void) | null;
2749
- onBlur?: ((event: CallbackEvent<T>) => void) | null;
2750
- };
2751
- /** Used when an element does not have children. */
2752
- interface PreactBaseElementProps<TClass extends HTMLElement> {
2753
- /** Assigns a unique key to this element. */
2754
- key?: preact.Key;
2755
- /** Assigns a ref (generally from `useRef()`) to this element. */
2756
- ref?: preact.Ref<TClass>;
2757
- /** Assigns this element to a parent's slot. */
2758
- slot?: Lowercase<string>;
2759
- }
2760
- /** Used when an element has children. */
2761
- interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
2762
- children?: preact.ComponentChildren;
2763
- }
2764
-
2765
- interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt' | 'size'>> {
2766
- size: Extract<AvatarProps$1['size'], 'small-200' | 'small' | 'base' | 'large' | 'large-200'>;
2767
- }
2768
-
2769
- declare const tagName$U = "s-avatar";
2770
- interface ReactProps$U extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
2771
- onLoad?: () => void;
2772
- onError?: () => void;
2773
- }
2774
-
2775
2848
  type Styles = string;
2849
+ declare const shadowRootSymbol: unique symbol;
2850
+ declare const flushRenderSymbol: unique symbol;
2776
2851
  type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
2777
2852
  ShadowRoot: (element: any) => ComponentChildren$1;
2778
2853
  styles?: Styles;
2854
+ /**
2855
+ * Only needed once in the root element, to inject global shadow CSS for all components.
2856
+ */
2857
+ globalShadowCSS?: Styles;
2779
2858
  };
2780
2859
  interface ActivationEventEsque {
2781
2860
  shiftKey: boolean;
@@ -2794,11 +2873,39 @@ interface ClickOptions {
2794
2873
  * While this class could be used in both Node and the browser, the constructor will only be used in the browser.
2795
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.
2796
2875
  */
2797
- declare const BaseClass$4: typeof globalThis.HTMLElement;
2798
- declare abstract class PreactCustomElement extends BaseClass$4 {
2876
+ declare const BaseClass$2: typeof globalThis.HTMLElement;
2877
+ declare abstract class PreactCustomElement extends BaseClass$2 {
2799
2878
  /** @private */
2800
2879
  static get observedAttributes(): string[];
2801
- constructor({ styles, ShadowRoot: renderFunction, delegatesFocus, ...options }: RenderImpl);
2880
+ /** @private */
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>;
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;
2802
2909
  /** @private */
2803
2910
  setAttribute(name: string, value: string): void;
2804
2911
  /** @private */
@@ -2826,71 +2933,338 @@ declare abstract class PreactCustomElement extends BaseClass$4 {
2826
2933
  click({ sourceEvent }?: ClickOptions): void;
2827
2934
  }
2828
2935
 
2829
- declare class Avatar extends PreactCustomElement implements AvatarProps {
2830
- initials: AvatarProps['initials'];
2831
- src: AvatarProps['src'];
2832
- size: AvatarProps['size'];
2833
- alt: AvatarProps['alt'];
2834
- onload: CallbackEventListener<typeof tagName$U> | null;
2835
- onerror: OnErrorEventHandler;
2836
- constructor();
2837
- }
2838
- declare global {
2839
- interface HTMLElementTagNameMap {
2840
- [tagName$U]: Avatar;
2841
- }
2842
- }
2843
- declare module 'preact' {
2844
- namespace createElement.JSX {
2845
- interface IntrinsicElements {
2846
- [tagName$U]: ReactProps$U & PreactBaseElementProps<Avatar>;
2847
- }
2848
- }
2936
+ interface Context<T> {
2937
+ readonly defaultValue: T;
2849
2938
  }
2850
-
2851
- type IconType = "adjust" | "affiliate" | "airplane" | "alert-bubble" | "alert-circle" | "alert-diamond" | "alert-location" | "alert-octagon" | "alert-octagon-filled" | "alert-triangle" | "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" | "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" | "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-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" | "minimize" | "minus" | "minus-circle" | "mobile" | "money" | "money-none" | "moon" | "nature" | "note" | "note-add" | "notification" | "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-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" | "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" | "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-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" | "view" | "viewport-narrow" | "viewport-short" | "viewport-tall" | "viewport-wide" | "wallet" | "wand" | "watch" | "wifi" | "work" | "work-list" | "wrench" | "x" | "x-circle";
2852
-
2853
- interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' | 'size' | 'interestFor'> {
2854
- /**
2855
- * Specifies the type of icon that will be displayed.
2856
- */
2857
- type: '' | IconType | 'empty';
2858
- tone: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'>;
2859
- color: Extract<IconProps$1['color'], 'base' | 'subdued'>;
2860
- size: Extract<IconProps$1['size'], 'small' | 'base'>;
2939
+ declare class AddedContext<T> extends EventTarget {
2940
+ constructor(defaultValue: T);
2941
+ get value(): T;
2942
+ set value(value: T);
2861
2943
  }
2862
2944
 
2863
- interface BadgeProps extends Pick<BadgeProps$1, 'color' | 'icon' | 'size' | 'tone'> {
2864
- color: Extract<BadgeProps$1['color'], 'base' | 'strong'>;
2865
- icon: IconProps['type'] | '';
2866
- size: Extract<BadgeProps$1['size'], 'base' | 'large' | 'large-100'>;
2867
- tone: Extract<BadgeProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'>;
2945
+ /**
2946
+ * A callback which is provided by a context requester and is called with the value satisfying the request.
2947
+ * This callback can be called multiple times by context providers as the requested value is changed.
2948
+ */
2949
+ type ContextCallback<T> = (value: T) => void;
2950
+ /**
2951
+ * An event fired by a context requester to signal it desires a named context.
2952
+ *
2953
+ * A provider should inspect the `context` property of the event to determine if it has a value that can
2954
+ * satisfy the request, calling the `callback` with the requested value if so.
2955
+ */
2956
+ declare class ContextRequestEvent<T> extends Event {
2957
+ readonly context: Context<T>;
2958
+ readonly callback: ContextCallback<T>;
2959
+ constructor(context: Context<T>, callback: ContextCallback<T>);
2868
2960
  }
2869
-
2870
- declare const tagName$T = "s-badge";
2871
- interface ReactProps$T extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id' | 'children'> {
2872
- /**
2873
- * The content of the Badge.
2874
- */
2875
- children?: ComponentChildren$1;
2961
+ declare global {
2962
+ interface HTMLElementEventMap {
2963
+ /**
2964
+ * A 'context-request' event can be emitted by any element which desires
2965
+ * a context value to be injected by an external provider.
2966
+ */
2967
+ 'context-request': ContextRequestEvent<unknown>;
2968
+ }
2876
2969
  }
2877
2970
 
2878
- declare class Badge extends PreactCustomElement implements BadgeProps {
2879
- color: BadgeProps['color'];
2880
- icon: BadgeProps['icon'];
2881
- size: BadgeProps['size'];
2882
- tone: BadgeProps['tone'];
2883
- constructor();
2884
- }
2971
+ type ReactKey = string & {
2972
+ __reactKey: boolean;
2973
+ };
2974
+ type AltKey = string & {
2975
+ __altKey: boolean;
2976
+ };
2977
+ type Props = Record<string, unknown>;
2885
2978
  declare global {
2886
- interface HTMLElementTagNameMap {
2887
- [tagName$T]: Badge;
2979
+ interface HTMLElement {
2980
+ [reactKey: ReactKey]: Props;
2981
+ [altKey: AltKey]: Props;
2982
+ }
2983
+ }
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
+ */
2990
+ type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
2991
+ currentTarget: HTMLElementTagNameMap[T];
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
+ */
2997
+ type CallbackToggleEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends ToggleEvent = ToggleEvent> = TEvent & {
2998
+ currentTarget: HTMLElementTagNameMap[TTagName];
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
+ */
3011
+ type CallbackEventListener<T extends keyof HTMLElementTagNameMap> = (EventListener & {
3012
+ (event: CallbackEvent<T>): void;
3013
+ }) | null;
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
+ */
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
+ */
3022
+ onChange?: ((event: CallbackEvent<T>) => void) | null;
3023
+ /**
3024
+ * A callback fired when the field receives focus.
3025
+ */
3026
+ onFocus?: ((event: CallbackEvent<T>) => void) | null;
3027
+ /**
3028
+ * A callback fired when the field loses focus.
3029
+ */
3030
+ onBlur?: ((event: CallbackEvent<T>) => void) | null;
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
+ };
3052
+ /** Used when an element does not have children. */
3053
+ interface PreactBaseElementProps<TClass extends HTMLElement> {
3054
+ /** Assigns a unique key to this element. */
3055
+ key?: preact.Key;
3056
+ /** Assigns a ref (generally from `useRef()`) to this element. */
3057
+ ref?: preact.Ref<TClass>;
3058
+ /** Assigns this element to a parent's slot. */
3059
+ slot?: Lowercase<string>;
3060
+ }
3061
+ /** Used when an element has children. */
3062
+ interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
3063
+ children?: preact.ComponentChildren;
3064
+ }
3065
+
3066
+ interface PolarisGlobal {
3067
+ /**
3068
+ * The shop's currency code, which may differ from the user's currency.
3069
+ */
3070
+ currencyCode: string;
3071
+ /**
3072
+ * The user's locale, which may differ from the shop's locale.
3073
+ */
3074
+ locale: string;
3075
+ translations: {
3076
+ loading: string;
3077
+ actions: {
3078
+ dismiss: string;
3079
+ clear: string;
3080
+ addFiles: string;
3081
+ removeChip: string;
3082
+ moreActions: string;
3083
+ /** Template for the add value chip. Use `{label}` as the placeholder. */
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;
3089
+ };
3090
+ pagination: {
3091
+ goToNextPage: string;
3092
+ goToPreviousPage: string;
3093
+ };
3094
+ datePicker: {
3095
+ label: string;
3096
+ rangeInstructions: string;
3097
+ singleInstructions: string;
3098
+ previousMonth: string;
3099
+ nextMonth: string;
3100
+ };
3101
+ colorPicker: {
3102
+ hueSliderLabel: string;
3103
+ alphaSliderLabel: string;
3104
+ thumbDescription: string;
3105
+ thumbLabel: string;
3106
+ };
3107
+ colorField: {
3108
+ colorPreviewDescription: string;
3109
+ };
3110
+ secondaryActions: {
3111
+ overflowAccessibilityLabel: string;
3112
+ };
3113
+ breadcrumbs: {
3114
+ overflowAccessibilityLabel: string;
3115
+ };
3116
+ modal: {
3117
+ unsavedChanges: string;
3118
+ close: string;
3119
+ };
3120
+ dropZone: {
3121
+ fileTypeNotReady: string;
3122
+ dropFilesToUpload: string;
3123
+ };
3124
+ passwordField: {
3125
+ hidePassword: string;
3126
+ showPassword: string;
3127
+ };
3128
+ menu: {
3129
+ searchFieldLabel: string;
3130
+ searchFieldPlaceholder: string;
3131
+ };
3132
+ };
3133
+ }
3134
+ declare global {
3135
+ var polaris: PolarisGlobal;
3136
+ }
3137
+
3138
+ interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt' | 'size'>> {
3139
+ size: Extract<AvatarProps$1['size'], 'small-200' | 'small' | 'base' | 'large' | 'large-200'>;
3140
+ }
3141
+
3142
+ declare const tagName$W = "s-avatar";
3143
+ interface ReactProps$W extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
3144
+ onLoad?: () => void;
3145
+ onError?: () => void;
3146
+ }
3147
+
3148
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/togglePopover) */
3149
+ interface PopoverTogglePopoverOptions {
3150
+ force?: boolean;
3151
+ source?: HTMLElement;
3152
+ }
3153
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/showPopover) */
3154
+ interface PopoverShowPopoverOptions {
3155
+ source?: HTMLElement;
3156
+ }
3157
+ interface PopoverToggleTargetElementInvoker {
3158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
3159
+ popoverTargetAction: string;
3160
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
3161
+ popoverTargetElement: Element | null;
3162
+ }
3163
+
3164
+ declare global {
3165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
3166
+ interface ToggleEvent extends Event {
3167
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
3168
+ readonly newState: string;
3169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
3170
+ readonly oldState: string;
3171
+ }
3172
+ interface HTMLElement {
3173
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */
3174
+ popover: string | null;
3175
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */
3176
+ hidePopover(): void;
3177
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
3178
+ showPopover(options?: PopoverShowPopoverOptions): void;
3179
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
3180
+ togglePopover(force?: boolean): boolean;
3181
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
3182
+ togglePopover(options?: PopoverTogglePopoverOptions): boolean;
3183
+ }
3184
+ interface HTMLButtonElement extends PopoverToggleTargetElementInvoker {
3185
+ }
3186
+ interface HTMLInputElement extends PopoverToggleTargetElementInvoker {
3187
+ }
3188
+ interface Window {
3189
+ ToggleEvent: ToggleEvent;
3190
+ }
3191
+ }
3192
+
3193
+ declare class PolarisCustomElement extends PreactCustomElement {
3194
+ constructor(renderImpl: Omit<RenderImpl, 'globalShadowCSS'>);
3195
+ }
3196
+
3197
+ declare class Avatar extends PolarisCustomElement implements AvatarProps {
3198
+ initials: AvatarProps['initials'];
3199
+ src: AvatarProps['src'];
3200
+ size: AvatarProps['size'];
3201
+ alt: AvatarProps['alt'];
3202
+ onload: CallbackEventListener<typeof tagName$W> | null;
3203
+ onerror: OnErrorEventHandler;
3204
+ constructor();
3205
+ }
3206
+ declare global {
3207
+ interface HTMLElementTagNameMap {
3208
+ [tagName$W]: Avatar;
2888
3209
  }
2889
3210
  }
2890
3211
  declare module 'preact' {
2891
3212
  namespace createElement.JSX {
2892
3213
  interface IntrinsicElements {
2893
- [tagName$T]: ReactProps$T & PreactBaseElementPropsWithChildren<Badge>;
3214
+ [tagName$W]: ReactProps$W & PreactBaseElementProps<Avatar>;
3215
+ }
3216
+ }
3217
+ }
3218
+
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";
3220
+
3221
+ interface IconProps extends Required<Pick<IconProps$1, 'type' | 'tone' | 'color' | 'size' | 'interestFor'>> {
3222
+ /**
3223
+ * Specifies the type of icon that will be displayed.
3224
+ */
3225
+ type: '' | IconType | 'empty';
3226
+ tone: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'>;
3227
+ color: Extract<IconProps$1['color'], 'base' | 'subdued'>;
3228
+ size: Extract<IconProps$1['size'], 'small' | 'base'>;
3229
+ }
3230
+
3231
+ interface BadgeProps extends Pick<BadgeProps$1, 'color' | 'icon' | 'size' | 'tone'> {
3232
+ color: Extract<BadgeProps$1['color'], 'base' | 'strong'>;
3233
+ icon: IconProps['type'] | '';
3234
+ size: Extract<BadgeProps$1['size'], 'base' | 'large' | 'large-100'>;
3235
+ tone: Extract<BadgeProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'>;
3236
+ }
3237
+
3238
+ declare const tagName$V = "s-badge";
3239
+ interface ReactProps$V extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id' | 'children'> {
3240
+ /**
3241
+ * The content of the Badge.
3242
+ */
3243
+ children?: ComponentChildren$1;
3244
+ }
3245
+
3246
+ declare abstract class BadgeBase extends PolarisCustomElement implements Pick<BadgeProps, 'color' | 'size'> {
3247
+ color: BadgeProps['color'];
3248
+ size: BadgeProps['size'];
3249
+ abstract tone: string;
3250
+ abstract icon: string;
3251
+ constructor(renderImpl: Omit<RenderImpl, 'globalShadowCSS'>);
3252
+ }
3253
+
3254
+ declare class Badge extends BadgeBase implements BadgeProps {
3255
+ icon: BadgeProps['icon'];
3256
+ tone: BadgeProps['tone'];
3257
+ constructor();
3258
+ }
3259
+ declare global {
3260
+ interface HTMLElementTagNameMap {
3261
+ [tagName$V]: Badge;
3262
+ }
3263
+ }
3264
+ declare module 'preact' {
3265
+ namespace createElement.JSX {
3266
+ interface IntrinsicElements {
3267
+ [tagName$V]: ReactProps$V & PreactBaseElementPropsWithChildren<Badge>;
2894
3268
  }
2895
3269
  }
2896
3270
  }
@@ -2900,8 +3274,8 @@ interface BannerProps extends Pick<RequiredBannerProps, 'heading' | 'dismissible
2900
3274
  tone: Extract<RequiredBannerProps['tone'], 'auto' | 'critical' | 'warning' | 'success' | 'info'>;
2901
3275
  }
2902
3276
 
2903
- declare const tagName$S = "s-banner";
2904
- interface ReactProps$S extends Partial<BannerProps>, Pick<BannerProps$1, 'id' | 'children'> {
3277
+ declare const tagName$U = "s-banner";
3278
+ interface ReactProps$U extends Partial<BannerProps>, Pick<BannerProps$1, 'id' | 'children'> {
2905
3279
  /**
2906
3280
  * The content of the Banner.
2907
3281
  */
@@ -2912,28 +3286,28 @@ interface ReactProps$S extends Partial<BannerProps>, Pick<BannerProps$1, 'id' |
2912
3286
  * Only Buttons with the `variant` of "secondary" or "auto" are permitted. A maximum of two `s-button` components are allowed.
2913
3287
  */
2914
3288
  secondaryActions?: ComponentChildren$1;
2915
- onDismiss?: ((event: CallbackEvent<typeof tagName$S>) => void) | null;
2916
- onAfterHide?: ((event: CallbackEvent<typeof tagName$S>) => void) | null;
3289
+ onDismiss?: ((event: CallbackEvent<typeof tagName$U>) => void) | null;
3290
+ onAfterHide?: ((event: CallbackEvent<typeof tagName$U>) => void) | null;
2917
3291
  }
2918
3292
 
2919
- declare class Banner extends PreactCustomElement implements BannerProps {
3293
+ declare class Banner extends PolarisCustomElement implements BannerProps {
2920
3294
  heading: BannerProps['heading'];
2921
3295
  tone: BannerProps['tone'];
2922
3296
  hidden: BannerProps['hidden'];
2923
3297
  dismissible: BannerProps['dismissible'];
2924
- ondismiss: CallbackEventListener<typeof tagName$S> | null;
2925
- onafterhide: CallbackEventListener<typeof tagName$S> | null;
3298
+ ondismiss: CallbackEventListener<typeof tagName$U> | null;
3299
+ onafterhide: CallbackEventListener<typeof tagName$U> | null;
2926
3300
  constructor();
2927
3301
  }
2928
3302
  declare global {
2929
3303
  interface HTMLElementTagNameMap {
2930
- [tagName$S]: Banner;
3304
+ [tagName$U]: Banner;
2931
3305
  }
2932
3306
  }
2933
3307
  declare module 'preact' {
2934
3308
  namespace createElement.JSX {
2935
3309
  interface IntrinsicElements {
2936
- [tagName$S]: Omit<ReactProps$S, 'secondaryActions'> & PreactBaseElementPropsWithChildren<Banner>;
3310
+ [tagName$U]: Omit<ReactProps$U, 'secondaryActions'> & PreactBaseElementPropsWithChildren<Banner>;
2937
3311
  }
2938
3312
  }
2939
3313
  }
@@ -3127,15 +3501,15 @@ interface BoxProps extends Pick<RequiredBoxProps, 'accessibilityLabel' | 'access
3127
3501
  maxInlineSize: SizeUnitsOrNone;
3128
3502
  }
3129
3503
 
3130
- declare const tagName$R = "s-box";
3131
- interface ReactProps$R extends Partial<BoxProps>, Pick<BoxProps$1, 'id' | 'children'> {
3504
+ declare const tagName$T = "s-box";
3505
+ interface ReactProps$T extends Partial<BoxProps>, Pick<BoxProps$1, 'id' | 'children'> {
3132
3506
  /**
3133
3507
  * The content of the Box.
3134
3508
  */
3135
3509
  children?: ComponentChildren$1;
3136
3510
  }
3137
3511
 
3138
- declare class BoxElement extends PreactCustomElement implements BoxProps {
3512
+ declare class BoxElement extends PolarisCustomElement implements BoxProps {
3139
3513
  constructor(renderImpl: RenderImpl);
3140
3514
  accessibilityRole: BoxProps['accessibilityRole'];
3141
3515
  background: BoxProps['background'];
@@ -3168,13 +3542,13 @@ declare class Box extends BoxElement implements BoxProps {
3168
3542
  }
3169
3543
  declare global {
3170
3544
  interface HTMLElementTagNameMap {
3171
- [tagName$R]: Box;
3545
+ [tagName$T]: Box;
3172
3546
  }
3173
3547
  }
3174
3548
  declare module 'preact' {
3175
3549
  namespace createElement.JSX {
3176
3550
  interface IntrinsicElements {
3177
- [tagName$R]: ReactProps$R & PreactBaseElementPropsWithChildren<Box>;
3551
+ [tagName$T]: ReactProps$T & PreactBaseElementPropsWithChildren<Box>;
3178
3552
  }
3179
3553
  }
3180
3554
  }
@@ -3182,21 +3556,21 @@ declare module 'preact' {
3182
3556
  type ButtonOnlyProps = Extract<ButtonProps$1, {
3183
3557
  type?: unknown;
3184
3558
  }>;
3185
- type ButtonBaseProps = Required<Pick<ButtonOnlyProps, 'accessibilityLabel' | 'disabled' | 'command' | 'commandFor' | 'icon' | 'interestFor' | 'lang' | 'loading' | 'type' | 'tone' | 'variant' | 'target' | 'href' | 'download'>>;
3559
+ type ButtonBaseProps = Required<Pick<ButtonOnlyProps, 'accessibilityLabel' | 'disabled' | 'command' | 'commandFor' | 'icon' | 'interestFor' | 'lang' | 'loading' | 'type' | 'tone' | 'variant' | 'target' | 'href' | 'download' | 'inlineSize'>>;
3186
3560
  interface ButtonProps extends ButtonBaseProps {
3187
3561
  tone: Extract<ButtonProps$1['tone'], 'neutral' | 'critical' | 'auto'>;
3188
3562
  icon: IconProps['type'];
3189
3563
  }
3190
3564
 
3191
- declare const tagName$Q = "s-button";
3192
- interface ReactProps$Q extends Partial<ButtonProps>, Pick<ButtonProps$1, 'id' | 'children'> {
3565
+ declare const tagName$S = "s-button";
3566
+ interface ReactProps$S extends Partial<ButtonProps>, Pick<ButtonProps$1, 'id' | 'children'> {
3193
3567
  /**
3194
3568
  * The content of the Button.
3195
3569
  */
3196
3570
  children?: ComponentChildren$1;
3197
- onClick?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
3198
- onFocus?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
3199
- onBlur?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
3571
+ onClick?: ((event: CallbackEvent<typeof tagName$S>) => void) | null;
3572
+ onFocus?: ((event: CallbackEvent<typeof tagName$S>) => void) | null;
3573
+ onBlur?: ((event: CallbackEvent<typeof tagName$S>) => void) | null;
3200
3574
  }
3201
3575
 
3202
3576
  interface PreactOverlayControlProps extends Pick<InteractionProps, 'commandFor' | 'interestFor'> {
@@ -3223,32 +3597,37 @@ interface PreactOverlayControlProps extends Pick<InteractionProps, 'commandFor'
3223
3597
  interestFor: Extract<InteractionProps['interestFor'], string>;
3224
3598
  }
3225
3599
 
3226
- declare const Button_base: (abstract new (args_0: RenderImpl) => PreactCustomElement & PreactOverlayControlProps) & Pick<typeof PreactCustomElement, "prototype" | "observedAttributes">;
3227
- declare class Button extends Button_base implements ButtonProps {
3600
+ declare const ButtonBase_base: (abstract new (renderImpl: Omit<RenderImpl, "globalShadowCSS">) => PolarisCustomElement & PreactOverlayControlProps) & Pick<typeof PolarisCustomElement, "prototype" | "observedAttributes">;
3601
+ declare abstract class ButtonBase<TTagName extends keyof HTMLElementTagNameMap> extends ButtonBase_base implements Pick<ButtonProps, 'disabled' | 'loading' | 'target' | 'href' | 'download' | 'type' | 'accessibilityLabel' | 'inlineSize'> {
3228
3602
  disabled: ButtonProps['disabled'];
3229
- icon: ButtonProps['icon'];
3230
3603
  loading: ButtonProps['loading'];
3231
- variant: ButtonProps['variant'];
3232
- tone: ButtonProps['tone'];
3233
3604
  target: ButtonProps['target'];
3234
3605
  href: ButtonProps['href'];
3235
3606
  download: ButtonProps['download'];
3236
- onclick: CallbackEventListener<typeof tagName$Q> | null;
3237
- onblur: CallbackEventListener<typeof tagName$Q> | null;
3238
- onfocus: CallbackEventListener<typeof tagName$Q> | null;
3239
3607
  type: ButtonProps['type'];
3240
3608
  accessibilityLabel: ButtonProps['accessibilityLabel'];
3609
+ inlineSize: ButtonProps['inlineSize'];
3610
+ abstract icon: string;
3611
+ abstract variant: string;
3612
+ abstract tone: string;
3613
+ constructor(renderImpl: RenderImpl);
3614
+ }
3615
+
3616
+ declare class Button extends ButtonBase<typeof tagName$S> implements ButtonProps {
3617
+ icon: ButtonProps['icon'];
3618
+ variant: ButtonProps['variant'];
3619
+ tone: ButtonProps['tone'];
3241
3620
  constructor();
3242
3621
  }
3243
3622
  declare global {
3244
3623
  interface HTMLElementTagNameMap {
3245
- [tagName$Q]: Button;
3624
+ [tagName$S]: Button;
3246
3625
  }
3247
3626
  }
3248
3627
  declare module 'preact' {
3249
3628
  namespace createElement.JSX {
3250
3629
  interface IntrinsicElements {
3251
- [tagName$Q]: ReactProps$Q & PreactBaseElementPropsWithChildren<Button>;
3630
+ [tagName$S]: ReactProps$S & PreactBaseElementPropsWithChildren<Button>;
3252
3631
  }
3253
3632
  }
3254
3633
  }
@@ -3256,8 +3635,8 @@ declare module 'preact' {
3256
3635
  interface ButtonGroupProps extends Required<Pick<ButtonGroupProps$1, 'gap' | 'accessibilityLabel'>> {
3257
3636
  }
3258
3637
 
3259
- declare const tagName$P = "s-button-group";
3260
- interface ReactProps$P extends Partial<ButtonGroupProps>, Pick<ButtonGroupProps$1, 'id' | 'children'> {
3638
+ declare const tagName$R = "s-button-group";
3639
+ interface ReactProps$R extends Partial<ButtonGroupProps>, Pick<ButtonGroupProps$1, 'id' | 'children'> {
3261
3640
  /**
3262
3641
  * The content of the ButtonGroup.
3263
3642
  */
@@ -3270,32 +3649,37 @@ interface ReactProps$P extends Partial<ButtonGroupProps>, Pick<ButtonGroupProps$
3270
3649
  primaryAction?: ComponentChildren$1;
3271
3650
  /**
3272
3651
  * Secondary action buttons for the group.
3273
- * Accepts Button elements with a `variant` of `secondary` or `auto`.
3652
+ * Accepts Button or PressButton elements with a `variant` of `secondary` or `auto`.
3274
3653
  */
3275
3654
  secondaryActions?: ComponentChildren$1;
3276
3655
  }
3277
3656
 
3278
- declare class ButtonGroup extends PreactCustomElement implements ButtonGroupProps {
3657
+ declare abstract class ButtonGroupBase extends PolarisCustomElement implements Pick<ButtonGroupProps, 'gap' | 'accessibilityLabel'> {
3279
3658
  gap: ButtonGroupProps['gap'];
3280
3659
  accessibilityLabel: ButtonGroupProps['accessibilityLabel'];
3660
+ constructor(renderImpl: RenderImpl);
3661
+ disconnectedCallback(): void;
3662
+ }
3663
+
3664
+ declare class ButtonGroup extends ButtonGroupBase implements ButtonGroupProps {
3281
3665
  constructor();
3282
3666
  }
3283
3667
  declare global {
3284
3668
  interface HTMLElementTagNameMap {
3285
- [tagName$P]: ButtonGroup;
3669
+ [tagName$R]: ButtonGroup;
3286
3670
  }
3287
3671
  }
3288
3672
  declare module 'preact' {
3289
3673
  namespace createElement.JSX {
3290
3674
  interface IntrinsicElements {
3291
- [tagName$P]: Omit<ReactProps$P, 'primaryAction' | 'secondaryActions'> & PreactBaseElementPropsWithChildren<ButtonGroup>;
3675
+ [tagName$R]: Omit<ReactProps$R, 'primaryAction' | 'secondaryActions'> & PreactBaseElementPropsWithChildren<ButtonGroup>;
3292
3676
  }
3293
3677
  }
3294
3678
  }
3295
3679
 
3296
3680
  declare const internals$4: unique symbol;
3297
3681
  type PreactInputProps = Required<Pick<TextFieldProps$1, 'disabled' | 'id' | 'name' | 'value'>>;
3298
- declare class PreactInputElement extends PreactCustomElement implements PreactInputProps {
3682
+ declare class PreactInputElement extends PolarisCustomElement implements PreactInputProps {
3299
3683
  static formAssociated: boolean;
3300
3684
  /** @private */
3301
3685
  [internals$4]: ElementInternals;
@@ -3311,6 +3695,7 @@ interface PreactCheckboxProps extends Required<Pick<CheckboxProps$1, 'accessibil
3311
3695
  value: Required<CheckboxProps$1>['value'];
3312
3696
  }
3313
3697
  declare class PreactCheckboxElement extends PreactInputElement implements PreactCheckboxProps {
3698
+ onblur: CallbackEventListener<'input'>;
3314
3699
  get checked(): boolean;
3315
3700
  set checked(checked: PreactCheckboxProps['checked']);
3316
3701
  /**
@@ -3333,38 +3718,45 @@ declare class PreactCheckboxElement extends PreactInputElement implements Preact
3333
3718
  interface CheckboxProps extends PreactCheckboxProps {
3334
3719
  indeterminate: Required<CheckboxProps$1>['indeterminate'];
3335
3720
  defaultIndeterminate: Required<CheckboxProps$1>['defaultIndeterminate'];
3721
+ labelAccessibilityVisibility: Required<CheckboxProps$1>['labelAccessibilityVisibility'];
3336
3722
  }
3337
3723
 
3338
- declare const tagName$O = "s-checkbox";
3339
- interface ReactProps$O extends Partial<CheckboxProps>, Pick<CheckboxProps$1, 'id'> {
3340
- onChange?: ((event: CallbackEvent<typeof tagName$O>) => void) | null;
3341
- onInput?: ((event: CallbackEvent<typeof tagName$O>) => void) | null;
3724
+ declare const tagName$Q = "s-checkbox";
3725
+ interface ReactProps$Q extends Partial<Omit<CheckboxProps, 'error' | 'details'>>, Pick<CheckboxProps$1, 'id'>, FieldSlotInternalReactProps {
3726
+ onChange?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
3727
+ onInput?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
3728
+ onBlur?: ((event: CallbackEvent<typeof tagName$Q>) => void) | null;
3342
3729
  }
3343
3730
 
3344
- declare class Checkbox extends PreactCheckboxElement implements CheckboxProps {
3731
+ declare abstract class CheckboxBase extends PreactCheckboxElement implements Pick<CheckboxProps, 'defaultIndeterminate' | 'indeterminate' | 'labelAccessibilityVisibility'> {
3345
3732
  get indeterminate(): CheckboxProps["indeterminate"];
3346
3733
  set indeterminate(indeterminate: CheckboxProps['indeterminate']);
3347
3734
  defaultIndeterminate: CheckboxProps['defaultIndeterminate'];
3735
+ labelAccessibilityVisibility: CheckboxProps['labelAccessibilityVisibility'];
3736
+ constructor(renderImpl: RenderImpl);
3737
+ }
3738
+
3739
+ declare class Checkbox extends CheckboxBase implements CheckboxProps {
3348
3740
  constructor();
3349
3741
  }
3350
3742
  declare global {
3351
3743
  interface HTMLElementTagNameMap {
3352
- [tagName$O]: Checkbox;
3744
+ [tagName$Q]: Checkbox;
3353
3745
  }
3354
3746
  }
3355
3747
  declare module 'preact' {
3356
3748
  namespace createElement.JSX {
3357
3749
  interface IntrinsicElements {
3358
- [tagName$O]: ReactProps$O & PreactBaseElementProps<Checkbox>;
3750
+ [tagName$Q]: Omit<ReactProps$Q, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<Checkbox>;
3359
3751
  }
3360
3752
  }
3361
3753
  }
3362
3754
 
3363
- interface ChipProps extends Required<Pick<ChipProps$1, 'color' | 'accessibilityLabel'>> {
3755
+ interface ChipProps extends Required<Pick<ChipProps$1, 'color' | 'accessibilityLabel' | 'removable'>> {
3364
3756
  }
3365
3757
 
3366
- declare const tagName$N = "s-chip";
3367
- interface ReactProps$N extends Partial<ChipProps>, Pick<ChipProps$1, 'id' | 'children'> {
3758
+ declare const tagName$P = "s-chip";
3759
+ interface ReactProps$P extends Partial<ChipProps>, Pick<ChipProps$1, 'id' | 'children'> {
3368
3760
  /**
3369
3761
  * The content of the Chip.
3370
3762
  */
@@ -3375,22 +3767,25 @@ interface ReactProps$N extends Partial<ChipProps>, Pick<ChipProps$1, 'id' | 'chi
3375
3767
  * Only accepts `Icon` components.
3376
3768
  */
3377
3769
  graphic?: ComponentChildren$1;
3770
+ onRemove?: ((event: CallbackEvent<typeof tagName$P>) => void) | null;
3378
3771
  }
3379
3772
 
3380
- declare class Chip extends PreactCustomElement implements ChipProps {
3773
+ declare class Chip extends PolarisCustomElement implements ChipProps {
3381
3774
  color: ChipProps['color'];
3382
3775
  accessibilityLabel: ChipProps['accessibilityLabel'];
3383
- constructor();
3776
+ removable: ChipProps['removable'];
3777
+ onremove: CallbackEventListener<typeof tagName$P> | null;
3778
+ constructor(renderImpl?: Omit<RenderImpl, 'globalShadowCSS'>);
3384
3779
  }
3385
3780
  declare global {
3386
3781
  interface HTMLElementTagNameMap {
3387
- [tagName$N]: Chip;
3782
+ [tagName$P]: Chip;
3388
3783
  }
3389
3784
  }
3390
3785
  declare module 'preact' {
3391
3786
  namespace createElement.JSX {
3392
3787
  interface IntrinsicElements {
3393
- [tagName$N]: Omit<ReactProps$N, 'graphic'> & PreactBaseElementPropsWithChildren<Chip>;
3788
+ [tagName$P]: Omit<ReactProps$P, 'graphic'> & PreactBaseElementPropsWithChildren<Chip>;
3394
3789
  }
3395
3790
  }
3396
3791
  }
@@ -3398,8 +3793,8 @@ declare module 'preact' {
3398
3793
  interface ChoiceProps extends Required<Pick<ChoiceProps$1, 'selected' | 'defaultSelected' | 'disabled' | 'accessibilityLabel' | 'value'>> {
3399
3794
  }
3400
3795
 
3401
- declare const tagName$M = "s-choice";
3402
- interface ReactProps$M extends Partial<ChoiceProps>, Pick<ChoiceProps$1, 'id' | 'children' | 'details'> {
3796
+ declare const tagName$O = "s-choice";
3797
+ interface ReactProps$O extends Partial<ChoiceProps>, Pick<ChoiceProps$1, 'id' | 'children' | 'details'> {
3403
3798
  /**
3404
3799
  * Content to use as the choice label.
3405
3800
  *
@@ -3417,9 +3812,15 @@ interface ReactProps$M extends Partial<ChoiceProps>, Pick<ChoiceProps$1, 'id' |
3417
3812
  * @implementation this content should be linked to the input with an `aria-describedby` attribute.
3418
3813
  */
3419
3814
  details?: ComponentChildren$1;
3815
+ /**
3816
+ * Additional content to display below the choice label.
3817
+ * Can include rich content like TextFields, Buttons, or other interactive components.
3818
+ * Event handlers on React components are preserved.
3819
+ */
3820
+ secondaryContent?: ComponentChildren$1;
3420
3821
  }
3421
3822
 
3422
- declare class Choice extends PreactCustomElement implements ChoiceProps {
3823
+ declare class Choice extends PolarisCustomElement implements ChoiceProps {
3423
3824
  disabled: ChoiceProps['disabled'];
3424
3825
  get selected(): boolean;
3425
3826
  set selected(selected: ChoiceProps['selected']);
@@ -3434,13 +3835,13 @@ declare class Choice extends PreactCustomElement implements ChoiceProps {
3434
3835
  }
3435
3836
  declare global {
3436
3837
  interface HTMLElementTagNameMap {
3437
- [tagName$M]: Choice;
3838
+ [tagName$O]: Choice;
3438
3839
  }
3439
3840
  }
3440
3841
  declare module 'preact' {
3441
3842
  namespace createElement.JSX {
3442
3843
  interface IntrinsicElements {
3443
- [tagName$M]: Omit<ReactProps$M, 'details'> & PreactBaseElementPropsWithChildren<Choice>;
3844
+ [tagName$O]: Omit<ReactProps$O, 'details' | 'secondaryContent'> & PreactBaseElementPropsWithChildren<Choice>;
3444
3845
  }
3445
3846
  }
3446
3847
  }
@@ -3448,34 +3849,47 @@ declare module 'preact' {
3448
3849
  interface ChoiceListProps extends Required<Pick<ChoiceListProps$1, 'details' | 'disabled' | 'error' | 'label' | 'labelAccessibilityVisibility' | 'multiple' | 'name' | 'values'>> {
3449
3850
  }
3450
3851
 
3451
- declare const tagName$L = "s-choice-list";
3452
- interface ReactProps$L extends Partial<ChoiceListProps>, Pick<ChoiceListProps$1, 'id' | 'children'> {
3852
+ declare const tagName$N = "s-choice-list";
3853
+ interface ReactProps$N extends Partial<ChoiceListProps>, Pick<ChoiceListProps$1, 'id' | 'children'> {
3453
3854
  /**
3454
3855
  * The choices a user can select from.
3455
3856
  *
3456
3857
  * Accepts `Choice` components.
3457
3858
  */
3458
3859
  children?: ComponentChildren$1;
3459
- onChange?: ((event: CallbackEvent<typeof tagName$L>) => void) | null;
3460
- onInput?: ((event: CallbackEvent<typeof tagName$L>) => void) | null;
3860
+ onChange?: ((event: CallbackEvent<typeof tagName$N>) => void) | null;
3861
+ onInput?: ((event: CallbackEvent<typeof tagName$N>) => void) | null;
3461
3862
  }
3462
3863
 
3463
3864
  declare const internals$3: unique symbol;
3464
- declare class BaseClass$3 extends PreactCustomElement {
3865
+ declare class BaseClass$1 extends PolarisCustomElement {
3465
3866
  static formAssociated: boolean;
3466
3867
  constructor(renderImpl: RenderImpl);
3467
3868
  /** @private */
3468
3869
  [internals$3]: ElementInternals;
3469
3870
  }
3470
- declare class ChoiceList extends BaseClass$3 implements ChoiceListProps {
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;
3471
3885
  disabled: ChoiceListProps['disabled'];
3472
3886
  name: ChoiceListProps['name'];
3473
3887
  error: ChoiceListProps['error'];
3474
3888
  details: ChoiceListProps['details'];
3475
3889
  multiple: ChoiceListProps['multiple'];
3476
3890
  label: ChoiceListProps['label'];
3477
- onchange: CallbackEventListener<typeof tagName$L> | null;
3478
- oninput: CallbackEventListener<typeof tagName$L> | null;
3891
+ onchange: CallbackEventListener<typeof tagName$N> | null;
3892
+ oninput: CallbackEventListener<typeof tagName$N> | null;
3479
3893
  labelAccessibilityVisibility: ChoiceListProps['labelAccessibilityVisibility'];
3480
3894
  get values(): ChoiceListProps["values"];
3481
3895
  set values(values: ChoiceListProps['values']);
@@ -3489,13 +3903,13 @@ declare class ChoiceList extends BaseClass$3 implements ChoiceListProps {
3489
3903
  }
3490
3904
  declare global {
3491
3905
  interface HTMLElementTagNameMap {
3492
- [tagName$L]: ChoiceList;
3906
+ [tagName$N]: ChoiceList;
3493
3907
  }
3494
3908
  }
3495
3909
  declare module 'preact' {
3496
3910
  namespace createElement.JSX {
3497
3911
  interface IntrinsicElements {
3498
- [tagName$L]: ReactProps$L & PreactBaseElementPropsWithChildren<ChoiceList>;
3912
+ [tagName$N]: ReactProps$N & PreactBaseElementPropsWithChildren<ChoiceList>;
3499
3913
  }
3500
3914
  }
3501
3915
  }
@@ -3504,15 +3918,15 @@ type ClickableBaseProps = Required<Pick<ClickableProps$1, 'command' | 'commandFo
3504
3918
  interface ClickableProps extends Required<BoxProps>, ClickableBaseProps {
3505
3919
  }
3506
3920
 
3507
- declare const tagName$K = "s-clickable";
3508
- interface ReactProps$K extends Partial<ClickableProps>, Pick<ClickableProps$1, 'id' | 'children'> {
3921
+ declare const tagName$M = "s-clickable";
3922
+ interface ReactProps$M extends Partial<ClickableProps>, Pick<ClickableProps$1, 'id' | 'children'> {
3509
3923
  /**
3510
3924
  * The content of the Clickable.
3511
3925
  */
3512
3926
  children?: ComponentChildren$1;
3513
- onClick?: ((event: CallbackEvent<typeof tagName$K>) => void) | null;
3514
- onFocus?: ((event: CallbackEvent<typeof tagName$K>) => void) | null;
3515
- onBlur?: ((event: CallbackEvent<typeof tagName$K>) => void) | null;
3927
+ onClick?: ((event: CallbackEvent<typeof tagName$M>) => void) | null;
3928
+ onFocus?: ((event: CallbackEvent<typeof tagName$M>) => void) | null;
3929
+ onBlur?: ((event: CallbackEvent<typeof tagName$M>) => void) | null;
3516
3930
  }
3517
3931
 
3518
3932
  declare const Clickable_base: (abstract new (renderImpl: RenderImpl) => BoxElement & PreactOverlayControlProps) & Pick<typeof BoxElement, "prototype" | "observedAttributes">;
@@ -3522,30 +3936,30 @@ declare class Clickable extends Clickable_base implements ClickableProps {
3522
3936
  target: ClickableProps['target'];
3523
3937
  href: ClickableProps['href'];
3524
3938
  download: ClickableProps['download'];
3525
- onclick: CallbackEventListener<typeof tagName$K> | null;
3526
- onblur: CallbackEventListener<typeof tagName$K> | null;
3527
- onfocus: CallbackEventListener<typeof tagName$K> | null;
3939
+ onclick: CallbackEventListener<typeof tagName$M> | null;
3940
+ onblur: CallbackEventListener<typeof tagName$M> | null;
3941
+ onfocus: CallbackEventListener<typeof tagName$M> | null;
3528
3942
  type: ClickableProps['type'];
3529
3943
  constructor();
3530
3944
  }
3531
3945
  declare global {
3532
3946
  interface HTMLElementTagNameMap {
3533
- [tagName$K]: Clickable;
3947
+ [tagName$M]: Clickable;
3534
3948
  }
3535
3949
  }
3536
3950
  declare module 'preact' {
3537
3951
  namespace createElement.JSX {
3538
3952
  interface IntrinsicElements {
3539
- [tagName$K]: ReactProps$K & PreactBaseElementPropsWithChildren<Clickable>;
3953
+ [tagName$M]: ReactProps$M & PreactBaseElementPropsWithChildren<Clickable>;
3540
3954
  }
3541
3955
  }
3542
3956
  }
3543
3957
 
3544
- interface ClickableChipProps extends Required<Pick<ClickableChipProps$1, 'color' | 'accessibilityLabel' | 'removable' | 'hidden' | 'href' | 'disabled'>> {
3958
+ interface ClickableChipProps extends Required<Pick<ClickableChipProps$1, 'color' | 'accessibilityLabel' | 'removable' | 'hidden' | 'href' | 'disabled' | 'command' | 'commandFor' | 'interestFor'>> {
3545
3959
  }
3546
3960
 
3547
- declare const tagName$J = "s-clickable-chip";
3548
- interface ReactProps$J extends Partial<ClickableChipProps>, Pick<ClickableChipProps$1, 'id' | 'children'> {
3961
+ declare const tagName$L = "s-clickable-chip";
3962
+ interface ReactProps$L extends Partial<ClickableChipProps>, Pick<ClickableChipProps$1, 'id' | 'children'> {
3549
3963
  /**
3550
3964
  * The content of the clickable chip.
3551
3965
  */
@@ -3556,32 +3970,35 @@ interface ReactProps$J extends Partial<ClickableChipProps>, Pick<ClickableChipPr
3556
3970
  * Only accepts `Icon` components.
3557
3971
  */
3558
3972
  graphic?: ComponentChildren$1;
3559
- onClick?: ((event: CallbackEvent<typeof tagName$J>) => void) | null;
3560
- onRemove?: ((event: CallbackEvent<typeof tagName$J>) => void) | null;
3561
- onAfterHide?: ((event: CallbackEvent<typeof tagName$J>) => void) | null;
3973
+ onClick?: ((event: CallbackEvent<typeof tagName$L>) => void) | null;
3974
+ onRemove?: ((event: CallbackEvent<typeof tagName$L>) => void) | null;
3975
+ onAfterHide?: ((event: CallbackEvent<typeof tagName$L>) => void) | null;
3562
3976
  }
3563
3977
 
3564
- declare class ClickableChip extends PreactCustomElement implements ClickableChipProps {
3565
- 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'> {
3566
3980
  accessibilityLabel: ClickableChipProps['accessibilityLabel'];
3567
3981
  removable: ClickableChipProps['removable'];
3568
3982
  hidden: ClickableChipProps['hidden'];
3569
3983
  disabled: ClickableChipProps['disabled'];
3570
3984
  href: ClickableChipProps['href'];
3571
- onclick: CallbackEventListener<typeof tagName$J> | null;
3572
- onremove: CallbackEventListener<typeof tagName$J> | null;
3573
- onafterhide: CallbackEventListener<typeof tagName$J> | null;
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'];
3574
3991
  constructor();
3575
3992
  }
3576
3993
  declare global {
3577
3994
  interface HTMLElementTagNameMap {
3578
- [tagName$J]: ClickableChip;
3995
+ [tagName$L]: ClickableChip;
3579
3996
  }
3580
3997
  }
3581
3998
  declare module 'preact' {
3582
3999
  namespace createElement.JSX {
3583
4000
  interface IntrinsicElements {
3584
- [tagName$J]: Omit<ReactProps$J, 'graphic'> & PreactBaseElementPropsWithChildren<ClickableChip>;
4001
+ [tagName$L]: Omit<ReactProps$L, 'graphic'> & PreactBaseElementPropsWithChildren<ClickableChip>;
3585
4002
  }
3586
4003
  }
3587
4004
  }
@@ -3648,31 +4065,35 @@ declare class PreactFieldElement<Autocomplete extends string = string> extends P
3648
4065
 
3649
4066
  type ColorFieldProps = PreactFieldProps<Required<ColorFieldProps$1>['autocomplete']> & Required<Pick<ColorFieldProps$1, 'alpha' | 'value' | 'defaultValue'>>;
3650
4067
 
3651
- declare const tagName$I = "s-color-field";
3652
- interface ReactProps$I extends Partial<Omit<ColorFieldProps, 'accessory'>>, Pick<ColorFieldProps$1, 'id' | 'alpha' | 'value' | 'defaultValue'>, FieldReactProps<typeof tagName$I> {
3653
- onInput?: (event: CallbackEvent<typeof tagName$I>) => void;
3654
- onChange?: (event: CallbackEvent<typeof tagName$I>) => void;
4068
+ declare const tagName$K = "s-color-field";
4069
+ interface ReactProps$K extends Partial<Omit<ColorFieldProps, 'accessory' | 'error' | 'details'>>, Pick<ColorFieldProps$1, 'id' | 'alpha' | 'value' | 'defaultValue'>, FieldReactProps<typeof tagName$K>, FieldSlotInternalReactProps {
4070
+ onInput?: (event: CallbackEvent<typeof tagName$K>) => void;
4071
+ onChange?: (event: CallbackEvent<typeof tagName$K>) => void;
3655
4072
  }
3656
4073
 
3657
- declare class ColorField extends PreactFieldElement<ColorFieldProps['autocomplete']> implements ColorFieldProps {
4074
+ declare abstract class ColorFieldBase extends PreactFieldElement<ColorFieldProps['autocomplete']> implements Pick<ColorFieldProps, 'alpha' | 'value'> {
3658
4075
  alpha: ColorFieldProps['alpha'];
3659
4076
  get value(): string;
3660
4077
  set value(value: string);
3661
4078
  /** @private */
3662
4079
  formResetCallback(): void;
3663
- constructor();
4080
+ constructor(renderImpl: RenderImpl);
3664
4081
  /** @private */
3665
4082
  setInternalValue(value: string, normalize: boolean): void;
3666
4083
  }
4084
+
4085
+ declare class ColorField extends ColorFieldBase implements ColorFieldProps {
4086
+ constructor();
4087
+ }
3667
4088
  declare global {
3668
4089
  interface HTMLElementTagNameMap {
3669
- [tagName$I]: ColorField;
4090
+ [tagName$K]: ColorField;
3670
4091
  }
3671
4092
  }
3672
4093
  declare module 'preact' {
3673
4094
  namespace createElement.JSX {
3674
4095
  interface IntrinsicElements {
3675
- [tagName$I]: ReactProps$I & PreactBaseElementProps<ColorField>;
4096
+ [tagName$K]: Omit<ReactProps$K, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<ColorField>;
3676
4097
  }
3677
4098
  }
3678
4099
  }
@@ -3680,23 +4101,23 @@ declare module 'preact' {
3680
4101
  interface ColorPickerProps extends Required<Pick<ColorPickerProps$1, 'id' | 'alpha' | 'value' | 'defaultValue' | 'name'>> {
3681
4102
  }
3682
4103
 
3683
- declare const tagName$H = "s-color-picker";
3684
- interface ReactProps$H extends Partial<ColorPickerProps>, Pick<ColorPickerProps$1, 'id' | 'alpha' | 'value' | 'defaultValue' | 'name'> {
3685
- onInput?: (event: CallbackEvent<typeof tagName$H>) => void | null;
3686
- onChange?: (event: CallbackEvent<typeof tagName$H>) => void | null;
4104
+ declare const tagName$J = "s-color-picker";
4105
+ interface ReactProps$J extends Partial<ColorPickerProps>, Pick<ColorPickerProps$1, 'id' | 'alpha' | 'value' | 'defaultValue' | 'name'> {
4106
+ onInput?: (event: CallbackEvent<typeof tagName$J>) => void | null;
4107
+ onChange?: (event: CallbackEvent<typeof tagName$J>) => void | null;
3687
4108
  }
3688
4109
 
3689
4110
  declare const internals$2: unique symbol;
3690
- declare class BaseClass$2 extends PreactCustomElement {
4111
+ declare class BaseClass extends PolarisCustomElement {
3691
4112
  static formAssociated: boolean;
3692
4113
  constructor(renderImpl: RenderImpl);
3693
4114
  /** @private */
3694
4115
  [internals$2]: ElementInternals;
3695
4116
  }
3696
- declare class ColorPicker extends BaseClass$2 implements ColorPickerProps {
4117
+ declare class ColorPicker extends BaseClass implements ColorPickerProps {
3697
4118
  alpha: boolean;
3698
- onchange: CallbackEventListener<typeof tagName$H> | null;
3699
- oninput: CallbackEventListener<typeof tagName$H> | null;
4119
+ onchange: CallbackEventListener<typeof tagName$J> | null;
4120
+ oninput: CallbackEventListener<typeof tagName$J> | null;
3700
4121
  name: string;
3701
4122
  defaultValue: string;
3702
4123
  get value(): string;
@@ -3706,13 +4127,13 @@ declare class ColorPicker extends BaseClass$2 implements ColorPickerProps {
3706
4127
  }
3707
4128
  declare global {
3708
4129
  interface HTMLElementTagNameMap {
3709
- [tagName$H]: ColorPicker;
4130
+ [tagName$J]: ColorPicker;
3710
4131
  }
3711
4132
  }
3712
4133
  declare module 'preact' {
3713
4134
  namespace createElement.JSX {
3714
4135
  interface IntrinsicElements {
3715
- [tagName$H]: ReactProps$H & PreactBaseElementProps<ColorPicker>;
4136
+ [tagName$J]: ReactProps$J & PreactBaseElementProps<ColorPicker>;
3716
4137
  }
3717
4138
  }
3718
4139
  }
@@ -3720,17 +4141,17 @@ declare module 'preact' {
3720
4141
  interface DateFieldProps extends PreactFieldProps<DateAutocompleteField>, Required<Pick<DateFieldProps$1, 'allow' | 'allowDays' | 'disallow' | 'disallowDays' | 'value' | 'defaultValue' | 'view' | 'defaultView'>> {
3721
4142
  }
3722
4143
 
3723
- declare const tagName$G = "s-date-field";
3724
- interface ReactProps$G extends Partial<DateFieldProps>, Pick<DateFieldProps$1, 'id'> {
3725
- onBlur?: ((event: CallbackEvent<typeof tagName$G>) => void) | null;
3726
- onChange?: ((event: CallbackEvent<typeof tagName$G>) => void) | null;
3727
- onFocus?: ((event: CallbackEvent<typeof tagName$G>) => void) | null;
3728
- onInput?: ((event: CallbackEvent<typeof tagName$G>) => void) | null;
3729
- onInvalid?: ((event: CallbackEvent<typeof tagName$G>) => void) | null;
3730
- onViewChange?: ((event: CallbackEvent<typeof tagName$G>) => void) | null;
4144
+ declare const tagName$I = "s-date-field";
4145
+ interface ReactProps$I extends Partial<Omit<DateFieldProps, 'error' | 'details'>>, Pick<DateFieldProps$1, 'id'>, FieldSlotInternalReactProps {
4146
+ onBlur?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
4147
+ onChange?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
4148
+ onFocus?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
4149
+ onInput?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
4150
+ onInvalid?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
4151
+ onViewChange?: ((event: CallbackEvent<typeof tagName$I>) => void) | null;
3731
4152
  }
3732
4153
 
3733
- declare class DateField extends PreactFieldElement<DateFieldProps['autocomplete']> implements DateFieldProps {
4154
+ declare abstract class DateFieldBase extends PreactFieldElement<DateFieldProps['autocomplete']> implements Pick<DateFieldProps, 'allow' | 'disallow' | 'allowDays' | 'disallowDays' | 'view' | 'defaultView'> {
3734
4155
  allow: DateFieldProps['allow'];
3735
4156
  disallow: DateFieldProps['disallow'];
3736
4157
  allowDays: DateFieldProps['allowDays'];
@@ -3738,19 +4159,21 @@ declare class DateField extends PreactFieldElement<DateFieldProps['autocomplete'
3738
4159
  set view(view: string);
3739
4160
  get view(): string;
3740
4161
  defaultView: DateFieldProps['defaultView'];
3741
- onviewchange: CallbackEventListener<typeof tagName$G> | null;
3742
- oninvalid: CallbackEventListener<typeof tagName$G> | null;
4162
+ constructor(renderImpl: RenderImpl);
4163
+ }
4164
+
4165
+ declare class DateField extends DateFieldBase implements DateFieldProps {
3743
4166
  constructor();
3744
4167
  }
3745
4168
  declare global {
3746
4169
  interface HTMLElementTagNameMap {
3747
- [tagName$G]: DateField;
4170
+ [tagName$I]: DateField;
3748
4171
  }
3749
4172
  }
3750
4173
  declare module 'preact' {
3751
4174
  namespace createElement.JSX {
3752
4175
  interface IntrinsicElements {
3753
- [tagName$G]: ReactProps$G & PreactBaseElementProps<DateField>;
4176
+ [tagName$I]: Omit<ReactProps$I, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<DateField>;
3754
4177
  }
3755
4178
  }
3756
4179
  }
@@ -3759,24 +4182,22 @@ interface DatePickerProps extends Required<Pick<DatePickerProps$1, 'defaultView'
3759
4182
  type: Extract<DatePickerProps$1['type'], 'single' | 'range'>;
3760
4183
  }
3761
4184
 
3762
- declare const tagName$F = "s-date-picker";
3763
- interface ReactProps$F extends Partial<DatePickerProps>, Pick<DatePickerProps$1, 'id'> {
3764
- onViewChange?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
3765
- onFocus?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
3766
- onBlur?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
3767
- onInput?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
3768
- onChange?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
4185
+ declare const tagName$H = "s-date-picker";
4186
+ interface ReactProps$H extends Partial<DatePickerProps>, Pick<DatePickerProps$1, 'id'> {
4187
+ onViewChange?: ((event: CallbackEvent<typeof tagName$H>) => void) | null;
4188
+ onFocus?: ((event: CallbackEvent<typeof tagName$H>) => void) | null;
4189
+ onBlur?: ((event: CallbackEvent<typeof tagName$H>) => void) | null;
4190
+ onInput?: ((event: CallbackEvent<typeof tagName$H>) => void) | null;
4191
+ onChange?: ((event: CallbackEvent<typeof tagName$H>) => void) | null;
3769
4192
  }
3770
4193
 
3771
4194
  declare const internals$1: unique symbol;
3772
4195
  declare const dirtyStateSymbol: unique symbol;
3773
- declare class BaseClass$1 extends PreactCustomElement {
4196
+ declare abstract class DatePickerBase<TagName extends 's-date-picker' | 's-internal-date-picker'> extends PolarisCustomElement implements DatePickerProps {
3774
4197
  static formAssociated: boolean;
3775
4198
  constructor(renderImpl: RenderImpl);
3776
4199
  /** @private */
3777
4200
  [internals$1]: ElementInternals;
3778
- }
3779
- declare class DatePicker extends BaseClass$1 implements DatePickerProps {
3780
4201
  defaultView: string;
3781
4202
  set view(view: string);
3782
4203
  get view(): string;
@@ -3793,22 +4214,20 @@ declare class DatePicker extends BaseClass$1 implements DatePickerProps {
3793
4214
  [dirtyStateSymbol]: boolean;
3794
4215
  /** @private */
3795
4216
  formResetCallback(): void;
3796
- onviewchange: CallbackEventListener<typeof tagName$F> | null;
3797
- onfocus: CallbackEventListener<typeof tagName$F> | null;
3798
- onblur: CallbackEventListener<typeof tagName$F> | null;
3799
- oninput: CallbackEventListener<typeof tagName$F> | null;
3800
- onchange: CallbackEventListener<typeof tagName$F> | null;
4217
+ }
4218
+
4219
+ declare class DatePicker extends DatePickerBase<typeof tagName$H> implements DatePickerProps {
3801
4220
  constructor();
3802
4221
  }
3803
4222
  declare global {
3804
4223
  interface HTMLElementTagNameMap {
3805
- [tagName$F]: DatePicker;
4224
+ [tagName$H]: DatePicker;
3806
4225
  }
3807
4226
  }
3808
4227
  declare module 'preact' {
3809
4228
  namespace createElement.JSX {
3810
4229
  interface IntrinsicElements {
3811
- [tagName$F]: ReactProps$F & PreactBaseElementProps<DatePicker>;
4230
+ [tagName$H]: ReactProps$H & PreactBaseElementProps<DatePicker>;
3812
4231
  }
3813
4232
  }
3814
4233
  }
@@ -3818,24 +4237,24 @@ interface DividerProps extends Pick<DividerProps$1, 'direction' | 'color'> {
3818
4237
  color: Extract<DividerProps$1['color'], 'base' | 'strong'>;
3819
4238
  }
3820
4239
 
3821
- declare const tagName$E = "s-divider";
3822
- interface ReactProps$E extends Partial<DividerProps>, Pick<DividerProps$1, 'id'> {
4240
+ declare const tagName$G = "s-divider";
4241
+ interface ReactProps$G extends Partial<DividerProps>, Pick<DividerProps$1, 'id'> {
3823
4242
  }
3824
4243
 
3825
- declare class Divider extends PreactCustomElement implements DividerProps {
4244
+ declare class Divider extends PolarisCustomElement implements DividerProps {
3826
4245
  direction: DividerProps['direction'];
3827
4246
  color: DividerProps['color'];
3828
4247
  constructor();
3829
4248
  }
3830
4249
  declare global {
3831
4250
  interface HTMLElementTagNameMap {
3832
- [tagName$E]: Divider;
4251
+ [tagName$G]: Divider;
3833
4252
  }
3834
4253
  }
3835
4254
  declare module 'preact' {
3836
4255
  namespace createElement.JSX {
3837
4256
  interface IntrinsicElements {
3838
- [tagName$E]: ReactProps$E & PreactBaseElementProps<Divider>;
4257
+ [tagName$G]: ReactProps$G & PreactBaseElementProps<Divider>;
3839
4258
  }
3840
4259
  }
3841
4260
  }
@@ -3843,15 +4262,31 @@ declare module 'preact' {
3843
4262
  interface DropZoneProps extends Required<Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'files' | 'name' | 'error' | 'label' | 'labelAccessibilityVisibility' | 'multiple' | 'required' | 'value'>> {
3844
4263
  }
3845
4264
 
3846
- declare const tagName$D = "s-drop-zone";
3847
- interface ReactProps$D extends Partial<DropZoneProps>, Pick<DropZoneProps$1, 'id'> {
4265
+ declare const tagName$F = "s-drop-zone";
4266
+ interface ReactProps$F extends Partial<DropZoneProps>, Pick<DropZoneProps$1, 'id'> {
3848
4267
  /**
3849
- * Content to include inside the DropZone container
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.
3850
4270
  */
3851
4271
  children?: ComponentChildren$1;
3852
- onChange?: ((event: CallbackEvent<typeof tagName$D>) => void) | null;
3853
- onInput?: ((event: CallbackEvent<typeof tagName$D>) => void) | null;
3854
- onDropRejected?: ((event: CallbackEvent<typeof tagName$D>) => void) | null;
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
+ */
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
+ */
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
+ */
4289
+ onDropRejected?: ((event: CallbackEvent<typeof tagName$F>) => void) | null;
3855
4290
  }
3856
4291
 
3857
4292
  type ReplaceType<TType, TFrom, TTo> = Exclude<TType, TFrom> | TTo;
@@ -3860,13 +4295,8 @@ declare const setFiles: unique symbol;
3860
4295
 
3861
4296
  declare const internals: unique symbol;
3862
4297
  declare const getFileInput: unique symbol;
3863
- declare class BaseClass extends PreactCustomElement {
4298
+ declare abstract class DropZoneBase extends PolarisCustomElement {
3864
4299
  static formAssociated: boolean;
3865
- constructor(renderImpl: RenderImpl);
3866
- /** @private */
3867
- [internals]: ElementInternals;
3868
- }
3869
- declare class DropZone extends BaseClass implements DropZoneProps {
3870
4300
  accept: DropZoneProps['accept'];
3871
4301
  accessibilityLabel: DropZoneProps['accessibilityLabel'];
3872
4302
  disabled: DropZoneProps['disabled'];
@@ -3876,9 +4306,6 @@ declare class DropZone extends BaseClass implements DropZoneProps {
3876
4306
  multiple: DropZoneProps['multiple'];
3877
4307
  name: DropZoneProps['name'];
3878
4308
  required: DropZoneProps['required'];
3879
- onchange: CallbackEventListener<typeof tagName$D>;
3880
- oninput: CallbackEventListener<typeof tagName$D>;
3881
- ondroprejected: CallbackEventListener<typeof tagName$D>;
3882
4309
  get value(): string;
3883
4310
  /** This sets the input value for a file type, which cannot be set programatically, so it can only be reset. */
3884
4311
  set value(value: '' | null);
@@ -3890,42 +4317,52 @@ declare class DropZone extends BaseClass implements DropZoneProps {
3890
4317
  [getFileInput](): ReplaceType<Element | null | undefined, Element, HTMLInputElement>;
3891
4318
  /** @private */
3892
4319
  formResetCallback(): void;
4320
+ /** @private */
4321
+ [internals]: ElementInternals;
4322
+ constructor(renderImpl: RenderImpl);
4323
+ }
4324
+
4325
+ declare class DropZone extends DropZoneBase implements DropZoneProps {
3893
4326
  constructor();
3894
4327
  }
3895
4328
  declare global {
3896
4329
  interface HTMLElementTagNameMap {
3897
- [tagName$D]: DropZone;
4330
+ [tagName$F]: DropZone;
3898
4331
  }
3899
4332
  }
3900
4333
  declare module 'preact' {
3901
4334
  namespace createElement.JSX {
3902
4335
  interface IntrinsicElements {
3903
- [tagName$D]: ReactProps$D & PreactBaseElementProps<DropZone>;
4336
+ [tagName$F]: ReactProps$F & PreactBaseElementPropsWithChildren<DropZone>;
3904
4337
  }
3905
4338
  }
3906
4339
  }
3907
4340
 
3908
4341
  type EmailFieldProps = PreactFieldProps<Required<EmailFieldProps$1>['autocomplete']> & Required<Pick<EmailFieldProps$1, 'maxLength' | 'minLength'>>;
3909
4342
 
3910
- declare const tagName$C = "s-email-field";
3911
- interface ReactProps$C extends Partial<Omit<EmailFieldProps, 'accessory'>>, Pick<EmailFieldProps$1, 'id'>, FieldReactProps<typeof tagName$C> {
4343
+ declare const tagName$E = "s-email-field";
4344
+ interface ReactProps$E extends Partial<Omit<EmailFieldProps, 'accessory' | 'error' | 'details'>>, Pick<EmailFieldProps$1, 'id'>, FieldReactProps<typeof tagName$E>, FieldSlotInternalReactProps {
3912
4345
  }
3913
4346
 
3914
- declare class EmailField extends PreactFieldElement<EmailFieldProps['autocomplete']> implements EmailFieldProps {
4347
+ declare abstract class EmailFieldBase extends PreactFieldElement<EmailFieldProps['autocomplete']> implements Pick<EmailFieldProps, 'autocomplete' | 'maxLength' | 'minLength'> {
3915
4348
  autocomplete: EmailFieldProps['autocomplete'];
3916
4349
  maxLength: EmailFieldProps['maxLength'];
3917
4350
  minLength: EmailFieldProps['minLength'];
4351
+ constructor(renderImpl: RenderImpl);
4352
+ }
4353
+
4354
+ declare class EmailField extends EmailFieldBase implements EmailFieldProps {
3918
4355
  constructor();
3919
4356
  }
3920
4357
  declare global {
3921
4358
  interface HTMLElementTagNameMap {
3922
- [tagName$C]: EmailField;
4359
+ [tagName$E]: EmailField;
3923
4360
  }
3924
4361
  }
3925
4362
  declare module 'preact' {
3926
4363
  namespace createElement.JSX {
3927
4364
  interface IntrinsicElements {
3928
- [tagName$C]: ReactProps$C & PreactBaseElementProps<EmailField>;
4365
+ [tagName$E]: Omit<ReactProps$E, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<EmailField>;
3929
4366
  }
3930
4367
  }
3931
4368
  }
@@ -4026,8 +4463,8 @@ interface GridProps extends BoxProps, Required<Pick<GridProps$1, 'alignItems' |
4026
4463
  gridTemplateRows: ResponsiveGridProps['gridTemplateRows'];
4027
4464
  }
4028
4465
 
4029
- declare const tagName$B = "s-grid";
4030
- interface ReactProps$B extends Partial<GridProps>, Pick<GridProps$1, 'id' | 'children'> {
4466
+ declare const tagName$D = "s-grid";
4467
+ interface ReactProps$D extends Partial<GridProps>, Pick<GridProps$1, 'id' | 'children'> {
4031
4468
  /**
4032
4469
  * The content of the Grid.
4033
4470
  */
@@ -4050,13 +4487,13 @@ declare class Grid extends BoxElement implements GridProps {
4050
4487
  }
4051
4488
  declare global {
4052
4489
  interface HTMLElementTagNameMap {
4053
- [tagName$B]: Grid;
4490
+ [tagName$D]: Grid;
4054
4491
  }
4055
4492
  }
4056
4493
  declare module 'preact' {
4057
4494
  namespace createElement.JSX {
4058
4495
  interface IntrinsicElements {
4059
- [tagName$B]: ReactProps$B & PreactBaseElementPropsWithChildren<Grid>;
4496
+ [tagName$D]: ReactProps$D & PreactBaseElementPropsWithChildren<Grid>;
4060
4497
  }
4061
4498
  }
4062
4499
  }
@@ -4067,8 +4504,8 @@ interface GridItemProps extends BoxProps, Required<Pick<GridItemProps$1, 'gridCo
4067
4504
  gridRow: RequiredGridItemProps['gridRow'];
4068
4505
  }
4069
4506
 
4070
- declare const tagName$A = "s-grid-item";
4071
- interface ReactProps$A extends Partial<GridItemProps>, Pick<GridItemProps$1, 'id' | 'children'> {
4507
+ declare const tagName$C = "s-grid-item";
4508
+ interface ReactProps$C extends Partial<GridItemProps>, Pick<GridItemProps$1, 'id' | 'children'> {
4072
4509
  /**
4073
4510
  * The content of the GridItem.
4074
4511
  */
@@ -4082,13 +4519,13 @@ declare class GridItem extends BoxElement implements GridItemProps {
4082
4519
  }
4083
4520
  declare global {
4084
4521
  interface HTMLElementTagNameMap {
4085
- [tagName$A]: GridItem;
4522
+ [tagName$C]: GridItem;
4086
4523
  }
4087
4524
  }
4088
4525
  declare module 'preact' {
4089
4526
  namespace createElement.JSX {
4090
4527
  interface IntrinsicElements {
4091
- [tagName$A]: ReactProps$A & PreactBaseElementPropsWithChildren<GridItem>;
4528
+ [tagName$C]: ReactProps$C & PreactBaseElementPropsWithChildren<GridItem>;
4092
4529
  }
4093
4530
  }
4094
4531
  }
@@ -4096,54 +4533,64 @@ declare module 'preact' {
4096
4533
  interface HeadingProps extends Required<Pick<HeadingProps$1, 'accessibilityRole' | 'accessibilityVisibility' | 'lineClamp'>> {
4097
4534
  }
4098
4535
 
4099
- declare const tagName$z = "s-heading";
4100
- interface ReactProps$z extends Partial<HeadingProps>, Pick<HeadingProps$1, 'id' | 'children'> {
4536
+ declare const tagName$B = "s-heading";
4537
+ interface ReactProps$B extends Partial<HeadingProps>, Pick<HeadingProps$1, 'id' | 'children'> {
4101
4538
  /**
4102
4539
  * The content of the Heading.
4103
4540
  */
4104
4541
  children?: ComponentChildren$1;
4105
4542
  }
4106
4543
 
4107
- declare class Heading extends PreactCustomElement implements HeadingProps {
4544
+ declare abstract class HeadingBase extends PolarisCustomElement implements Pick<HeadingProps, 'accessibilityRole' | 'accessibilityVisibility' | 'lineClamp'> {
4108
4545
  accessibilityRole: HeadingProps['accessibilityRole'];
4109
4546
  lineClamp: HeadingProps['lineClamp'];
4110
4547
  accessibilityVisibility: HeadingProps['accessibilityVisibility'];
4548
+ constructor(renderImpl: RenderImpl);
4549
+ }
4550
+
4551
+ declare class Heading extends HeadingBase implements HeadingProps {
4111
4552
  constructor();
4112
4553
  }
4113
4554
  declare global {
4114
4555
  interface HTMLElementTagNameMap {
4115
- [tagName$z]: Heading;
4556
+ [tagName$B]: Heading;
4116
4557
  }
4117
4558
  }
4118
4559
  declare module 'preact' {
4119
4560
  namespace createElement.JSX {
4120
4561
  interface IntrinsicElements {
4121
- [tagName$z]: ReactProps$z & PreactBaseElementPropsWithChildren<Heading>;
4562
+ [tagName$B]: ReactProps$B & PreactBaseElementPropsWithChildren<Heading>;
4122
4563
  }
4123
4564
  }
4124
4565
  }
4125
4566
 
4126
- declare const tagName$y = "s-icon";
4127
- interface ReactProps$y extends Partial<IconProps>, Pick<IconProps$1, 'id'> {
4567
+ declare const tagName$A = "s-icon";
4568
+ interface ReactProps$A extends Partial<IconProps>, Pick<IconProps$1, 'id'> {
4128
4569
  }
4129
4570
 
4130
- declare class Icon extends PreactCustomElement implements IconProps {
4571
+ declare abstract class IconBase extends PolarisCustomElement implements Pick<IconProps, 'color' | 'size' | 'interestFor'> {
4131
4572
  color: IconProps['color'];
4573
+ size: IconProps['size'];
4574
+ interestFor: IconProps['interestFor'];
4575
+ abstract tone: string;
4576
+ abstract type: string;
4577
+ constructor(renderImpl: RenderImpl);
4578
+ }
4579
+
4580
+ declare class Icon extends IconBase implements IconProps {
4132
4581
  tone: IconProps['tone'];
4133
4582
  type: IconProps['type'];
4134
- size: IconProps['size'];
4135
- interestFor: string;
4136
4583
  constructor();
4137
4584
  }
4138
4585
  declare global {
4139
4586
  interface HTMLElementTagNameMap {
4140
- [tagName$y]: Icon;
4587
+ [tagName$A]: Icon;
4141
4588
  }
4142
4589
  }
4143
4590
  declare module 'preact' {
4144
4591
  namespace createElement.JSX {
4145
4592
  interface IntrinsicElements {
4146
- [tagName$y]: ReactProps$y & PreactBaseElementProps<Icon>;
4593
+ [tagName$A]: ReactProps$A & PreactBaseElementProps<Icon>;
4147
4594
  }
4148
4595
  }
4149
4596
  }
@@ -4151,13 +4598,13 @@ declare module 'preact' {
4151
4598
  interface ImageProps extends Required<Pick<ImageProps$1, 'alt' | 'loading' | 'src' | 'accessibilityRole' | 'inlineSize' | 'srcSet' | 'sizes' | 'aspectRatio' | 'objectFit'>>, Required<Pick<BoxProps, 'border' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth'>> {
4152
4599
  }
4153
4600
 
4154
- declare const tagName$x = "s-image";
4155
- interface ReactProps$x extends Partial<ImageProps>, Pick<ImageProps$1, 'id'> {
4156
- onError?: ((event: CallbackEvent<typeof tagName$x>) => void) | null;
4157
- onLoad?: ((event: CallbackEvent<typeof tagName$x>) => void) | null;
4601
+ declare const tagName$z = "s-image";
4602
+ interface ReactProps$z extends Partial<ImageProps>, Pick<ImageProps$1, 'id'> {
4603
+ onError?: ((event: CallbackEvent<typeof tagName$z>) => void) | null;
4604
+ onLoad?: ((event: CallbackEvent<typeof tagName$z>) => void) | null;
4158
4605
  }
4159
4606
 
4160
- declare class Image extends PreactCustomElement implements ImageProps {
4607
+ declare class Image extends PolarisCustomElement implements ImageProps {
4161
4608
  src: ImageProps['src'];
4162
4609
  srcSet: ImageProps['srcSet'];
4163
4610
  sizes: ImageProps['sizes'];
@@ -4172,19 +4619,19 @@ declare class Image extends PreactCustomElement implements ImageProps {
4172
4619
  borderStyle: ImageProps['borderStyle'];
4173
4620
  borderColor: ImageProps['borderColor'];
4174
4621
  borderRadius: ImageProps['borderRadius'];
4175
- onload: CallbackEventListener<typeof tagName$x> | null;
4622
+ onload: CallbackEventListener<typeof tagName$z> | null;
4176
4623
  onerror: OnErrorEventHandler;
4177
4624
  constructor();
4178
4625
  }
4179
4626
  declare global {
4180
4627
  interface HTMLElementTagNameMap {
4181
- [tagName$x]: Image;
4628
+ [tagName$z]: Image;
4182
4629
  }
4183
4630
  }
4184
4631
  declare module 'preact' {
4185
4632
  namespace createElement.JSX {
4186
4633
  interface IntrinsicElements {
4187
- [tagName$x]: ReactProps$x & PreactBaseElementProps<Image>;
4634
+ [tagName$z]: ReactProps$z & PreactBaseElementProps<Image>;
4188
4635
  }
4189
4636
  }
4190
4637
  }
@@ -4195,35 +4642,39 @@ interface LinkProps extends LinkBaseProps {
4195
4642
  tone: Extract<RequiredLinkProps['tone'], 'auto' | 'neutral' | 'critical'>;
4196
4643
  }
4197
4644
 
4198
- declare const tagName$w = "s-link";
4199
- interface ReactProps$w extends Partial<LinkProps>, Pick<LinkProps$1, 'id' | 'lang' | 'children'> {
4645
+ declare const tagName$y = "s-link";
4646
+ interface ReactProps$y extends Partial<LinkProps>, Pick<LinkProps$1, 'id' | 'lang' | 'children'> {
4200
4647
  /**
4201
4648
  * The content of the Link.
4202
4649
  */
4203
4650
  children?: ComponentChildren$1;
4204
- onClick?: ((event: CallbackEvent<typeof tagName$w>) => void) | null;
4651
+ onClick?: ((event: CallbackEvent<typeof tagName$y>) => void) | null;
4205
4652
  }
4206
4653
 
4207
- declare const Link_base: (abstract new (args_0: RenderImpl) => PreactCustomElement & PreactOverlayControlProps) & Pick<typeof PreactCustomElement, "prototype" | "observedAttributes">;
4208
- declare class Link extends Link_base implements LinkProps {
4209
- tone: LinkProps['tone'];
4654
+ declare const LinkBase_base: (abstract new (renderImpl: Omit<RenderImpl, "globalShadowCSS">) => PolarisCustomElement & PreactOverlayControlProps) & Pick<typeof PolarisCustomElement, "prototype" | "observedAttributes">;
4655
+ declare abstract class LinkBase<TTagName extends keyof HTMLElementTagNameMap> extends LinkBase_base implements Pick<LinkProps, 'accessibilityLabel' | 'interestFor' | 'href' | 'target' | 'download' | 'lang'> {
4210
4656
  accessibilityLabel: LinkProps['accessibilityLabel'];
4211
4657
  href: LinkProps['href'];
4212
4658
  target: LinkProps['target'];
4213
4659
  download: LinkProps['download'];
4214
4660
  lang: LinkProps['lang'];
4215
- onclick: CallbackEventListener<typeof tagName$w> | null;
4661
+ abstract tone: string;
4662
+ constructor(renderImpl: RenderImpl);
4663
+ }
4664
+
4665
+ declare class Link extends LinkBase<typeof tagName$y> implements LinkProps {
4666
+ tone: LinkProps['tone'];
4216
4667
  constructor();
4217
4668
  }
4218
4669
  declare global {
4219
4670
  interface HTMLElementTagNameMap {
4220
- [tagName$w]: Link;
4671
+ [tagName$y]: Link;
4221
4672
  }
4222
4673
  }
4223
4674
  declare module 'preact' {
4224
4675
  namespace createElement.JSX {
4225
4676
  interface IntrinsicElements {
4226
- [tagName$w]: ReactProps$w & PreactBaseElementPropsWithChildren<Link>;
4677
+ [tagName$y]: ReactProps$y & PreactBaseElementPropsWithChildren<Link>;
4227
4678
  }
4228
4679
  }
4229
4680
  }
@@ -4231,26 +4682,26 @@ declare module 'preact' {
4231
4682
  interface ListItemProps extends ListItemProps$1 {
4232
4683
  }
4233
4684
 
4234
- declare const tagName$v = "s-list-item";
4235
- interface ReactProps$v extends Partial<ListItemProps>, Pick<ListItemProps$1, 'id' | 'children'> {
4685
+ declare const tagName$x = "s-list-item";
4686
+ interface ReactProps$x extends Partial<ListItemProps>, Pick<ListItemProps$1, 'id' | 'children'> {
4236
4687
  /**
4237
4688
  * The content of the ListItem.
4238
4689
  */
4239
4690
  children?: ComponentChildren$1;
4240
4691
  }
4241
4692
 
4242
- declare class ListItem extends PreactCustomElement implements ListItemProps {
4693
+ declare class ListItem extends PolarisCustomElement implements ListItemProps {
4243
4694
  constructor();
4244
4695
  }
4245
4696
  declare global {
4246
4697
  interface HTMLElementTagNameMap {
4247
- [tagName$v]: ListItem;
4698
+ [tagName$x]: ListItem;
4248
4699
  }
4249
4700
  }
4250
4701
  declare module 'preact' {
4251
4702
  namespace createElement.JSX {
4252
4703
  interface IntrinsicElements {
4253
- [tagName$v]: ReactProps$v & PreactBaseElementPropsWithChildren<ListItem>;
4704
+ [tagName$x]: ReactProps$x & PreactBaseElementPropsWithChildren<ListItem>;
4254
4705
  }
4255
4706
  }
4256
4707
  }
@@ -4258,8 +4709,8 @@ declare module 'preact' {
4258
4709
  interface MenuProps extends Required<Pick<MenuProps$1, 'id' | 'accessibilityLabel'>> {
4259
4710
  }
4260
4711
 
4261
- declare const tagName$u = "s-menu";
4262
- interface ReactProps$u extends Partial<MenuProps>, Pick<MenuProps$1, 'id' | 'children'> {
4712
+ declare const tagName$w = "s-menu";
4713
+ interface ReactProps$w extends Partial<MenuProps>, Pick<MenuProps$1, 'id' | 'children'> {
4263
4714
  /**
4264
4715
  * The Menu items.
4265
4716
  *
@@ -4285,12 +4736,15 @@ declare const overlayHideFrameId: unique symbol;
4285
4736
  type PolyfillCommandEventInit = EventInit & {
4286
4737
  source: HTMLElement | null | undefined;
4287
4738
  command: PreactOverlayControlProps['command'];
4739
+ rootActivator?: HTMLElement | null;
4288
4740
  };
4289
4741
  type PolyfillCommandEvent = Event & {
4290
4742
  source: PolyfillCommandEventInit['source'];
4291
4743
  command: PolyfillCommandEventInit['command'];
4292
4744
  /** Have to use `_s_shadowSource` because `source` is retargeted to the shadow host by browsers */
4293
4745
  _s_shadowSource: PolyfillCommandEventInit['source'];
4746
+ /** Root activator for nested overlays (e.g., menu button when modal opened from menu item) */
4747
+ _s_rootActivator?: HTMLElement | null;
4294
4748
  };
4295
4749
  declare global {
4296
4750
  interface GlobalEventHandlersEventMap {
@@ -4298,7 +4752,7 @@ declare global {
4298
4752
  }
4299
4753
  }
4300
4754
 
4301
- declare class PreactOverlayElement extends PreactCustomElement {
4755
+ declare class PreactOverlayElement extends PolarisCustomElement {
4302
4756
  constructor(renderImpl: RenderImpl);
4303
4757
  /** @private */
4304
4758
  [overlayHidden]: boolean;
@@ -4318,13 +4772,13 @@ declare class Menu extends PreactOverlayElement implements MenuProps {
4318
4772
  }
4319
4773
  declare global {
4320
4774
  interface HTMLElementTagNameMap {
4321
- [tagName$u]: Menu;
4775
+ [tagName$w]: Menu;
4322
4776
  }
4323
4777
  }
4324
4778
  declare module 'preact' {
4325
4779
  namespace createElement.JSX {
4326
4780
  interface IntrinsicElements {
4327
- [tagName$u]: ReactProps$u & PreactBaseElementPropsWithChildren<Menu>;
4781
+ [tagName$w]: ReactProps$w & PreactBaseElementPropsWithChildren<Menu>;
4328
4782
  }
4329
4783
  }
4330
4784
  }
@@ -4335,65 +4789,53 @@ interface ModalProps extends Pick<RequiredAlignedModalProps, 'accessibilityLabel
4335
4789
  * Adjust the size of the Modal.
4336
4790
  */
4337
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';
4338
4797
  }
4339
4798
 
4340
- declare const tagName$t = "s-modal";
4341
- interface ReactProps$t extends Partial<ModalProps>, Pick<ModalProps$1, 'id' | 'children'> {
4799
+ declare const tagName$v = "s-modal";
4800
+ interface ReactProps$v extends Partial<ModalProps>, Pick<ModalProps$1, 'id' | 'children'> {
4342
4801
  /**
4343
- * The content of the Modal.
4802
+ * The content displayed within the modal, typically including form fields, informational
4803
+ * text, or interactive elements that require focused user attention.
4344
4804
  */
4345
4805
  children?: ComponentChildren$1;
4346
4806
  /**
4347
- * The primary action to perform.
4348
- *
4349
- * Only a `Button` with a variant of `primary` is allowed.
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".
4350
4810
  */
4351
4811
  primaryAction?: ComponentChildren$1;
4352
4812
  /**
4353
- * The secondary actions to perform.
4354
- *
4355
- * Only `Button` elements with a variant of `secondary` or `auto` are allowed.
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.
4356
4817
  */
4357
4818
  secondaryActions?: ComponentChildren$1;
4358
- onHide?: ((event: CallbackEvent<typeof tagName$t>) => void) | null;
4359
- onShow?: ((event: CallbackEvent<typeof tagName$t>) => void) | null;
4360
- onAfterHide?: ((event: CallbackEvent<typeof tagName$t>) => void) | null;
4361
- onAfterShow?: ((event: CallbackEvent<typeof tagName$t>) => void) | null;
4362
- }
4363
-
4364
- interface Context<T> {
4365
- readonly defaultValue: T;
4366
- }
4367
- declare class AddedContext<T> extends EventTarget {
4368
- constructor(defaultValue: T);
4369
- get value(): T;
4370
- set value(value: T);
4371
- }
4372
-
4373
- /**
4374
- * A callback which is provided by a context requester and is called with the value satisfying the request.
4375
- * This callback can be called multiple times by context providers as the requested value is changed.
4376
- */
4377
- type ContextCallback<T> = (value: T) => void;
4378
- /**
4379
- * An event fired by a context requester to signal it desires a named context.
4380
- *
4381
- * A provider should inspect the `context` property of the event to determine if it has a value that can
4382
- * satisfy the request, calling the `callback` with the requested value if so.
4383
- */
4384
- declare class ContextRequestEvent<T> extends Event {
4385
- readonly context: Context<T>;
4386
- readonly callback: ContextCallback<T>;
4387
- constructor(context: Context<T>, callback: ContextCallback<T>);
4388
- }
4389
- declare global {
4390
- interface HTMLElementEventMap {
4391
- /**
4392
- * A 'context-request' event can be emitted by any element which desires
4393
- * a context value to be injected by an external provider.
4394
- */
4395
- 'context-request': ContextRequestEvent<unknown>;
4396
- }
4819
+ /**
4820
+ * A callback fired when the modal closes.
4821
+ * Use to perform cleanup or trigger side effects when the modal is dismissed.
4822
+ */
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
+ */
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
+ */
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
+ */
4838
+ onAfterShow?: ((event: CallbackEvent<typeof tagName$v>) => void) | null;
4397
4839
  }
4398
4840
 
4399
4841
  declare const hasOpenChildModal: unique symbol;
@@ -4404,22 +4846,23 @@ declare const isOpen: unique symbol;
4404
4846
  declare const dialog: unique symbol;
4405
4847
  declare const dismiss: unique symbol;
4406
4848
  declare const focusedElement: unique symbol;
4849
+ declare const rootActivator: unique symbol;
4407
4850
  declare const onEscape: unique symbol;
4408
4851
  declare const nestedModals: unique symbol;
4852
+ declare const onKeyUp: unique symbol;
4409
4853
  declare const onBackdropClick: unique symbol;
4410
4854
  declare const abortController: unique symbol;
4411
4855
  declare const onChildModalChange: unique symbol;
4412
4856
  declare const childrenRerenderObserver: unique symbol;
4413
4857
  declare const shadowDomRerenderObserver: unique symbol;
4414
- declare class Modal extends PreactOverlayElement implements ModalProps {
4858
+ declare const focusTrapHandler: unique symbol;
4859
+ declare const ensureDialogRef: unique symbol;
4860
+ declare abstract class ModalBase<TTagName extends keyof HTMLElementTagNameMap> extends PreactOverlayElement implements Pick<ModalProps, 'accessibilityLabel' | 'heading' | 'padding' | 'size'> {
4415
4861
  accessibilityLabel: ModalProps['accessibilityLabel'];
4416
4862
  heading: ModalProps['heading'];
4417
4863
  padding: ModalProps['padding'];
4418
4864
  size: ModalProps['size'];
4419
- onhide: CallbackEventListener<typeof tagName$t> | null;
4420
- onshow: CallbackEventListener<typeof tagName$t> | null;
4421
- onafterhide: CallbackEventListener<typeof tagName$t> | null;
4422
- onaftershow: CallbackEventListener<typeof tagName$t> | null;
4865
+ alignSelf: ModalProps['alignSelf'];
4423
4866
  /** @private */
4424
4867
  [abortController]: AbortController;
4425
4868
  /** @private */
@@ -4427,17 +4870,52 @@ declare class Modal extends PreactOverlayElement implements ModalProps {
4427
4870
  /** @private */
4428
4871
  [focusedElement]: HTMLElement | null;
4429
4872
  /** @private */
4430
- [nestedModals]: Map<Modal, boolean>;
4873
+ [rootActivator]: HTMLElement | null;
4874
+ /** @private */
4875
+ [nestedModals]: Map<ModalBase<TTagName>, boolean>;
4431
4876
  /** @private */
4432
4877
  [childrenRerenderObserver]: MutationObserver;
4433
4878
  /** @private */
4434
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;
4435
4900
  /** @private */
4436
4901
  [onEscape]: (event: KeyboardEvent) => void;
4437
4902
  /** @private */
4903
+ [onKeyUp]: (event: KeyboardEvent) => void;
4904
+ /** @private */
4438
4905
  [onBackdropClick]: (event: MouseEvent) => void;
4439
4906
  /** @private */
4440
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;
4441
4919
  /** @private */
4442
4920
  get [isOpen](): boolean;
4443
4921
  /** @private */
@@ -4449,52 +4927,63 @@ declare class Modal extends PreactOverlayElement implements ModalProps {
4449
4927
  /** @private */
4450
4928
  [hide](): Promise<void>;
4451
4929
  showOverlay(): void;
4452
- hideOverlay(): void;
4930
+ hideOverlay({ force }?: {
4931
+ force?: boolean;
4932
+ }): void;
4453
4933
  toggleOverlay(): void;
4454
4934
  /** @private */
4455
4935
  connectedCallback(): void;
4456
4936
  /** @private */
4457
4937
  disconnectedCallback(): void;
4938
+ constructor(renderImpl: RenderImpl, tagName: string);
4939
+ }
4940
+
4941
+ declare class Modal extends ModalBase<typeof tagName$v> implements ModalProps {
4458
4942
  constructor();
4459
4943
  }
4460
4944
  declare global {
4461
4945
  interface HTMLElementTagNameMap {
4462
- [tagName$t]: Modal;
4946
+ [tagName$v]: Modal;
4463
4947
  }
4464
4948
  }
4465
4949
  declare module 'preact' {
4466
4950
  namespace createElement.JSX {
4467
4951
  interface IntrinsicElements {
4468
- [tagName$t]: Omit<ReactProps$t, 'primaryAction' | 'secondaryActions'> & PreactBaseElementPropsWithChildren<Modal>;
4952
+ [tagName$v]: Omit<ReactProps$v, 'primaryAction' | 'secondaryActions'> & PreactBaseElementPropsWithChildren<Modal>;
4469
4953
  }
4470
4954
  }
4471
4955
  }
4472
4956
 
4473
4957
  type RequiredMoneyFieldProps = Required<MoneyFieldProps$1>;
4474
- interface MoneyFieldProps extends Omit<PreactFieldProps, 'value'>, Pick<RequiredMoneyFieldProps, 'max' | 'min'> {
4958
+ interface MoneyFieldProps extends Omit<PreactFieldProps, 'value'>, Pick<RequiredMoneyFieldProps, 'max' | 'min' | 'currencyCode'> {
4475
4959
  value: Required<MoneyFieldProps$1>['value'];
4476
4960
  }
4477
4961
 
4478
- declare const tagName$s = "s-money-field";
4479
- interface ReactProps$s extends Partial<MoneyFieldProps>, FieldReactProps<typeof tagName$s>, Pick<MoneyFieldProps$1, 'id'> {
4962
+ declare const tagName$u = "s-money-field";
4963
+ interface ReactProps$u extends Partial<Omit<MoneyFieldProps, 'error' | 'details'>>, FieldReactProps<typeof tagName$u>, Pick<MoneyFieldProps$1, 'id'>, FieldSlotInternalReactProps {
4480
4964
  }
4481
4965
 
4482
- declare class MoneyField extends PreactFieldElement<MoneyFieldProps['autocomplete']> implements MoneyFieldProps {
4966
+ declare abstract class MoneyFieldBase extends PreactFieldElement<MoneyFieldProps['autocomplete']> implements Pick<MoneyFieldProps, 'max' | 'min' | 'currencyCode' | 'value'> {
4483
4967
  max: MoneyFieldProps['max'];
4484
4968
  min: MoneyFieldProps['min'];
4969
+ currencyCode: MoneyFieldProps['currencyCode'];
4485
4970
  get value(): string;
4486
4971
  set value(value: string);
4972
+ constructor(renderImpl: RenderImpl);
4973
+ }
4974
+
4975
+ declare class MoneyField extends MoneyFieldBase implements MoneyFieldProps {
4487
4976
  constructor();
4488
4977
  }
4489
4978
  declare global {
4490
4979
  interface HTMLElementTagNameMap {
4491
- [tagName$s]: MoneyField;
4980
+ [tagName$u]: MoneyField;
4492
4981
  }
4493
4982
  }
4494
4983
  declare module 'preact' {
4495
4984
  namespace createElement.JSX {
4496
4985
  interface IntrinsicElements {
4497
- [tagName$s]: ReactProps$s & PreactBaseElementProps<MoneyField>;
4986
+ [tagName$u]: Omit<ReactProps$u, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<MoneyField>;
4498
4987
  }
4499
4988
  }
4500
4989
  }
@@ -4503,11 +4992,11 @@ interface NumberFieldProps extends Omit<PreactFieldProps<Required<NumberFieldPro
4503
4992
  value: Required<NumberFieldProps$1>['value'];
4504
4993
  }
4505
4994
 
4506
- declare const tagName$r = "s-number-field";
4507
- interface ReactProps$r extends Partial<NumberFieldProps>, Pick<NumberFieldProps$1, 'id'>, FieldReactProps<typeof tagName$r> {
4995
+ declare const tagName$t = "s-number-field";
4996
+ interface ReactProps$t extends Partial<Omit<NumberFieldProps, 'error' | 'details'>>, Pick<NumberFieldProps$1, 'id'>, FieldReactProps<typeof tagName$t>, FieldSlotInternalReactProps {
4508
4997
  }
4509
4998
 
4510
- declare class NumberField extends PreactFieldElement<NumberFieldProps['autocomplete']> implements NumberFieldProps {
4999
+ declare abstract class NumberFieldBase extends PreactFieldElement<NumberFieldProps['autocomplete']> implements Pick<NumberFieldProps, 'inputMode' | 'step' | 'max' | 'min' | 'prefix' | 'suffix' | 'value'> {
4511
5000
  get value(): string;
4512
5001
  set value(value: string);
4513
5002
  inputMode: NumberFieldProps['inputMode'];
@@ -4516,17 +5005,21 @@ declare class NumberField extends PreactFieldElement<NumberFieldProps['autocompl
4516
5005
  min: NumberFieldProps['min'];
4517
5006
  prefix: NumberFieldProps['prefix'];
4518
5007
  suffix: NumberFieldProps['suffix'];
5008
+ constructor(renderImpl: RenderImpl);
5009
+ }
5010
+
5011
+ declare class NumberField extends NumberFieldBase implements NumberFieldProps {
4519
5012
  constructor();
4520
5013
  }
4521
5014
  declare global {
4522
5015
  interface HTMLElementTagNameMap {
4523
- [tagName$r]: NumberField;
5016
+ [tagName$t]: NumberField;
4524
5017
  }
4525
5018
  }
4526
5019
  declare module 'preact' {
4527
5020
  namespace createElement.JSX {
4528
5021
  interface IntrinsicElements {
4529
- [tagName$r]: ReactProps$r & PreactBaseElementProps<NumberField>;
5022
+ [tagName$t]: Omit<ReactProps$t, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<NumberField>;
4530
5023
  }
4531
5024
  }
4532
5025
  }
@@ -4534,15 +5027,15 @@ declare module 'preact' {
4534
5027
  interface OptionProps extends Required<Pick<OptionProps$1, 'disabled' | 'value' | 'selected' | 'defaultSelected'>> {
4535
5028
  }
4536
5029
 
4537
- declare const tagName$q = "s-option";
4538
- interface ReactProps$q extends Partial<OptionProps>, Pick<OptionProps$1, 'id' | 'children'> {
5030
+ declare const tagName$s = "s-option";
5031
+ interface ReactProps$s extends Partial<OptionProps>, Pick<OptionProps$1, 'id' | 'children'> {
4539
5032
  /**
4540
5033
  * The content to use as the label.
4541
5034
  */
4542
5035
  children?: ComponentChildren$1;
4543
5036
  }
4544
5037
 
4545
- declare class Option extends PreactCustomElement implements OptionProps {
5038
+ declare class Option extends PolarisCustomElement implements OptionProps {
4546
5039
  selected: OptionProps['selected'];
4547
5040
  defaultSelected: OptionProps['defaultSelected'];
4548
5041
  value: OptionProps['value'];
@@ -4551,13 +5044,13 @@ declare class Option extends PreactCustomElement implements OptionProps {
4551
5044
  }
4552
5045
  declare global {
4553
5046
  interface HTMLElementTagNameMap {
4554
- [tagName$q]: Option;
5047
+ [tagName$s]: Option;
4555
5048
  }
4556
5049
  }
4557
5050
  declare module 'preact' {
4558
5051
  namespace createElement.JSX {
4559
5052
  interface IntrinsicElements {
4560
- [tagName$q]: ReactProps$q & PreactBaseElementPropsWithChildren<Option>;
5053
+ [tagName$s]: ReactProps$s & PreactBaseElementPropsWithChildren<Option>;
4561
5054
  }
4562
5055
  }
4563
5056
  }
@@ -4565,8 +5058,8 @@ declare module 'preact' {
4565
5058
  interface OptionGroupProps extends Required<Pick<OptionGroupProps$1, 'disabled' | 'label'>> {
4566
5059
  }
4567
5060
 
4568
- declare const tagName$p = "s-option-group";
4569
- interface ReactProps$p extends Partial<OptionGroupProps>, Pick<OptionGroupProps$1, 'id' | 'children'> {
5061
+ declare const tagName$r = "s-option-group";
5062
+ interface ReactProps$r extends Partial<OptionGroupProps>, Pick<OptionGroupProps$1, 'id' | 'children'> {
4570
5063
  /**
4571
5064
  * The options a user can select from.
4572
5065
  *
@@ -4575,20 +5068,20 @@ interface ReactProps$p extends Partial<OptionGroupProps>, Pick<OptionGroupProps$
4575
5068
  children?: ComponentChildren$1;
4576
5069
  }
4577
5070
 
4578
- declare class OptionGroup extends PreactCustomElement implements OptionGroupProps {
5071
+ declare class OptionGroup extends PolarisCustomElement implements OptionGroupProps {
4579
5072
  disabled: OptionGroupProps['disabled'];
4580
5073
  label: OptionGroupProps['label'];
4581
5074
  constructor();
4582
5075
  }
4583
5076
  declare global {
4584
5077
  interface HTMLElementTagNameMap {
4585
- [tagName$p]: OptionGroup;
5078
+ [tagName$r]: OptionGroup;
4586
5079
  }
4587
5080
  }
4588
5081
  declare module 'preact' {
4589
5082
  namespace createElement.JSX {
4590
5083
  interface IntrinsicElements {
4591
- [tagName$p]: ReactProps$p & PreactBaseElementPropsWithChildren<OptionGroup>;
5084
+ [tagName$r]: ReactProps$r & PreactBaseElementPropsWithChildren<OptionGroup>;
4592
5085
  }
4593
5086
  }
4594
5087
  }
@@ -4596,8 +5089,8 @@ declare module 'preact' {
4596
5089
  interface OrderedListProps extends OrderedListProps$1 {
4597
5090
  }
4598
5091
 
4599
- declare const tagName$o = "s-ordered-list";
4600
- interface ReactProps$o extends Partial<OrderedListProps>, Pick<OrderedListProps$1, 'id'> {
5092
+ declare const tagName$q = "s-ordered-list";
5093
+ interface ReactProps$q extends Partial<OrderedListProps>, Pick<OrderedListProps$1, 'id'> {
4601
5094
  /**
4602
5095
  * The items of the OrderedList.
4603
5096
  *
@@ -4606,18 +5099,18 @@ interface ReactProps$o extends Partial<OrderedListProps>, Pick<OrderedListProps$
4606
5099
  children?: ComponentChildren$1;
4607
5100
  }
4608
5101
 
4609
- declare class OrderedList extends PreactCustomElement implements OrderedListProps {
5102
+ declare class OrderedList extends PolarisCustomElement implements OrderedListProps {
4610
5103
  constructor();
4611
5104
  }
4612
5105
  declare global {
4613
5106
  interface HTMLElementTagNameMap {
4614
- [tagName$o]: OrderedList;
5107
+ [tagName$q]: OrderedList;
4615
5108
  }
4616
5109
  }
4617
5110
  declare module 'preact' {
4618
5111
  namespace createElement.JSX {
4619
5112
  interface IntrinsicElements {
4620
- [tagName$o]: ReactProps$o & PreactBaseElementPropsWithChildren<OrderedList>;
5113
+ [tagName$q]: ReactProps$q & PreactBaseElementPropsWithChildren<OrderedList>;
4621
5114
  }
4622
5115
  }
4623
5116
  }
@@ -4626,113 +5119,129 @@ interface PageProps extends Required<Pick<PageProps$1, 'inlineSize' | 'heading'>
4626
5119
  inlineSize: Extract<PageProps$1['inlineSize'], 'base' | 'large' | 'small'>;
4627
5120
  }
4628
5121
 
4629
- declare const tagName$n = "s-page";
4630
- interface ReactProps$n extends Partial<PageProps>, Pick<PageProps$1, 'id' | 'children'> {
5122
+ declare const tagName$p = "s-page";
5123
+ interface ReactProps$p extends Partial<PageProps>, Pick<PageProps$1, 'id' | 'children'> {
4631
5124
  /**
4632
- * The content of the Page.
5125
+ * The main content of the page, typically containing the primary information, forms,
5126
+ * or interactive elements that fulfill the page's purpose.
4633
5127
  */
4634
5128
  children?: ComponentChildren$1;
4635
5129
  /**
4636
- * The content to display in the aside section of the page.
4637
- *
4638
- * This slot is only rendered when `inlineSize` is "base".
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`.
4639
5133
  */
4640
5134
  aside?: ComponentChildren$1;
4641
5135
  /**
4642
- * The primary action for the page.
4643
- *
4644
- * Only accepts a single `Button` component with a `variant` of `primary`.
4645
- *
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".
4646
5139
  */
4647
5140
  primaryAction?: ComponentChildren$1;
4648
5141
  /**
4649
- * Secondary actions for the page.
4650
- *
4651
- * Only accepts `ButtonGroup` and `Button` components with a `variant` of `secondary` or `auto`.
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.
4652
5145
  */
4653
5146
  secondaryActions?: ComponentChildren$1;
4654
5147
  /**
4655
- * Navigations back actions for the page.
4656
- *
4657
- * Only accepts `Link` components.
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.
4658
5151
  */
4659
5152
  breadcrumbActions?: ComponentChildren$1;
4660
5153
  }
4661
5154
 
4662
- declare class Page extends PreactCustomElement implements PageProps {
5155
+ declare abstract class PageBase extends PolarisCustomElement implements PageProps {
4663
5156
  inlineSize: PageProps['inlineSize'];
4664
5157
  heading: PageProps['heading'];
4665
- constructor();
5158
+ constructor(renderImpl: RenderImpl);
5159
+ /** @private */
4666
5160
  connectedCallback(): void;
5161
+ /** @private */
4667
5162
  disconnectedCallback(): void;
4668
5163
  }
5164
+
5165
+ declare class Page extends PageBase implements PageProps {
5166
+ constructor();
5167
+ }
4669
5168
  declare global {
4670
5169
  interface HTMLElementTagNameMap {
4671
- [tagName$n]: Page;
5170
+ [tagName$p]: Page;
4672
5171
  }
4673
5172
  }
4674
5173
  declare module 'preact' {
4675
5174
  namespace createElement.JSX {
4676
5175
  interface IntrinsicElements {
4677
- [tagName$n]: Omit<ReactProps$n, 'aside' | 'primaryAction' | 'secondaryActions' | 'breadcrumbActions'> & PreactBaseElementPropsWithChildren<Page>;
5176
+ [tagName$p]: Omit<ReactProps$p, 'aside' | 'primaryAction' | 'secondaryActions' | 'breadcrumbActions'> & PreactBaseElementPropsWithChildren<Page>;
4678
5177
  }
4679
5178
  }
4680
5179
  }
4681
5180
 
4682
5181
  interface ParagraphProps extends Required<Pick<ParagraphProps$1, 'accessibilityVisibility' | 'fontVariantNumeric' | 'tone' | 'dir' | 'color' | 'lineClamp'>> {
4683
5182
  color: Extract<ParagraphProps$1['color'], 'base' | 'subdued'>;
5183
+ tone: Extract<ParagraphProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'>;
4684
5184
  }
4685
5185
 
4686
- declare const tagName$m = "s-paragraph";
4687
- interface ReactProps$m extends Partial<ParagraphProps>, Pick<ParagraphProps$1, 'id' | 'children'> {
5186
+ declare const tagName$o = "s-paragraph";
5187
+ interface ReactProps$o extends Partial<ParagraphProps>, Pick<ParagraphProps$1, 'id' | 'children'> {
4688
5188
  /**
4689
5189
  * The content of the Paragraph.
4690
5190
  */
4691
5191
  children?: ComponentChildren$1;
4692
5192
  }
4693
5193
 
4694
- declare class Paragraph extends PreactCustomElement implements ParagraphProps {
5194
+ declare abstract class ParagraphBase extends PolarisCustomElement implements Pick<ParagraphProps, 'fontVariantNumeric' | 'lineClamp' | 'color' | 'dir' | 'accessibilityVisibility'> {
4695
5195
  fontVariantNumeric: ParagraphProps['fontVariantNumeric'];
4696
5196
  lineClamp: ParagraphProps['lineClamp'];
4697
- tone: Extract<ParagraphProps['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'>;
5197
+ abstract tone: string;
4698
5198
  color: ParagraphProps['color'];
4699
5199
  dir: ParagraphProps['dir'];
4700
5200
  accessibilityVisibility: ParagraphProps['accessibilityVisibility'];
5201
+ constructor(renderImpl: RenderImpl);
5202
+ }
5203
+
5204
+ declare class Paragraph extends ParagraphBase implements ParagraphProps {
5205
+ tone: ParagraphProps['tone'];
4701
5206
  constructor();
4702
5207
  }
4703
5208
  declare global {
4704
5209
  interface HTMLElementTagNameMap {
4705
- [tagName$m]: Paragraph;
5210
+ [tagName$o]: Paragraph;
4706
5211
  }
4707
5212
  }
4708
5213
  declare module 'preact' {
4709
5214
  namespace createElement.JSX {
4710
5215
  interface IntrinsicElements {
4711
- [tagName$m]: ReactProps$m & PreactBaseElementPropsWithChildren<Paragraph>;
5216
+ [tagName$o]: ReactProps$o & PreactBaseElementPropsWithChildren<Paragraph>;
4712
5217
  }
4713
5218
  }
4714
5219
  }
4715
5220
 
4716
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'>>;
4717
5222
 
4718
- declare const tagName$l = "s-password-field";
4719
- interface ReactProps$l extends Partial<PasswordFieldProps>, Pick<PasswordFieldProps$1, 'id'>, FieldReactProps<typeof tagName$l> {
5223
+ declare const tagName$n = "s-password-field";
5224
+ interface ReactProps$n extends Partial<Omit<PasswordFieldProps, 'error' | 'details'>>, Pick<PasswordFieldProps$1, 'id'>, FieldReactProps<typeof tagName$n>, FieldSlotInternalReactProps {
4720
5225
  }
4721
5226
 
4722
- declare class PasswordField extends PreactFieldElement<PasswordFieldProps['autocomplete']> implements PasswordFieldProps {
5227
+ declare abstract class PasswordFieldBase extends PreactFieldElement<PasswordFieldProps['autocomplete']> implements Pick<PasswordFieldProps, 'maxLength' | 'minLength'> {
4723
5228
  maxLength: PasswordFieldProps['maxLength'];
4724
5229
  minLength: PasswordFieldProps['minLength'];
5230
+ constructor(renderImpl: RenderImpl);
5231
+ }
5232
+
5233
+ declare class PasswordField extends PasswordFieldBase implements PasswordFieldProps {
4725
5234
  constructor();
4726
5235
  }
4727
5236
  declare global {
4728
5237
  interface HTMLElementTagNameMap {
4729
- [tagName$l]: PasswordField;
5238
+ [tagName$n]: PasswordField;
4730
5239
  }
4731
5240
  }
4732
5241
  declare module 'preact' {
4733
5242
  namespace createElement.JSX {
4734
5243
  interface IntrinsicElements {
4735
- [tagName$l]: ReactProps$l & PreactBaseElementProps<PasswordField>;
5244
+ [tagName$n]: Omit<ReactProps$n, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<PasswordField>;
4736
5245
  }
4737
5246
  }
4738
5247
  }
@@ -4740,18 +5249,43 @@ declare module 'preact' {
4740
5249
  interface PopoverProps extends Required<Pick<PopoverProps$1, 'blockSize' | 'inlineSize' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize'>> {
4741
5250
  }
4742
5251
 
4743
- declare const tagName$k = "s-popover";
4744
- interface ReactProps$k extends Partial<PopoverProps>, Pick<PopoverProps$1, 'id' | 'children'> {
5252
+ declare const tagName$m = "s-popover";
5253
+ interface ReactProps$m extends Partial<PopoverProps>, Pick<PopoverProps$1, 'id' | 'children'> {
4745
5254
  /**
4746
- * The content of the Popover.
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.
4747
5257
  */
4748
5258
  children?: ComponentChildren$1;
4749
- onHide?: (event: CallbackEvent<typeof tagName$k>) => void | null;
4750
- onShow?: (event: CallbackEvent<typeof tagName$k>) => void | null;
4751
- onAfterHide?: (event: CallbackEvent<typeof tagName$k>) => void | null;
4752
- onAfterShow?: (event: CallbackEvent<typeof tagName$k>) => void | null;
4753
- onToggle?: (event: CallbackToggleEvent<typeof tagName$k>) => void | null;
4754
- onAfterToggle?: (event: CallbackToggleEvent<typeof tagName$k>) => void | null;
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
+ */
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
+ */
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
+ */
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
+ */
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
+ */
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
+ */
5288
+ onAfterToggle?: (event: CallbackToggleEvent<typeof tagName$m>) => void | null;
4755
5289
  }
4756
5290
 
4757
5291
  declare class PreactPopoverElement<TTagName extends keyof HTMLElementTagNameMap> extends PreactOverlayElement implements PopoverProps {
@@ -4764,24 +5298,71 @@ declare class PreactPopoverElement<TTagName extends keyof HTMLElementTagNameMap>
4764
5298
  maxInlineSize: BoxProps['maxInlineSize'];
4765
5299
  }
4766
5300
 
4767
- declare class Popover extends PreactPopoverElement<typeof tagName$k> implements PopoverProps {
5301
+ declare class Popover extends PreactPopoverElement<typeof tagName$m> implements PopoverProps {
4768
5302
  constructor();
4769
5303
  }
4770
5304
  declare global {
4771
5305
  interface HTMLElementTagNameMap {
4772
- [tagName$k]: Popover;
5306
+ [tagName$m]: Popover;
4773
5307
  }
4774
5308
  }
4775
5309
  declare module 'preact' {
4776
5310
  namespace createElement.JSX {
4777
5311
  interface IntrinsicElements {
4778
- [tagName$k]: ReactProps$k & PreactBaseElementPropsWithChildren<Popover>;
5312
+ [tagName$m]: ReactProps$m & PreactBaseElementPropsWithChildren<Popover>;
4779
5313
  }
4780
5314
  }
4781
5315
  }
4782
5316
 
4783
- declare const tagName$j = "s-query-container";
4784
- interface ReactProps$j extends Partial<QueryContainerProps$1>, Pick<QueryContainerProps$1, 'id' | 'children'> {
5317
+ type PressButtonBaseProps = Required<Pick<PressButtonProps$1, 'accessibilityLabel' | 'disabled' | 'icon' | 'inlineSize' | 'lang' | 'loading' | 'tone' | 'variant' | 'pressed' | 'defaultPressed'>>;
5318
+ interface PressButtonProps extends PressButtonBaseProps {
5319
+ tone: Extract<PressButtonProps$1['tone'], 'neutral'>;
5320
+ icon: IconProps['type'];
5321
+ variant: Extract<PressButtonProps$1['variant'], 'secondary' | 'tertiary'>;
5322
+ }
5323
+
5324
+ declare const tagName$l = "s-press-button";
5325
+ interface ReactProps$l extends Partial<PressButtonProps>, Pick<PressButtonProps$1, 'children'> {
5326
+ /**
5327
+ * The content of the PressButton.
5328
+ */
5329
+ children?: ComponentChildren$1;
5330
+ onClick?: ((event: CallbackEvent<typeof tagName$l>) => void) | null;
5331
+ onFocus?: ((event: CallbackEvent<typeof tagName$l>) => void) | null;
5332
+ onBlur?: ((event: CallbackEvent<typeof tagName$l>) => void) | null;
5333
+ }
5334
+
5335
+ declare class PressButton extends PolarisCustomElement implements PressButtonProps {
5336
+ disabled: PressButtonProps['disabled'];
5337
+ icon: PressButtonProps['icon'];
5338
+ loading: PressButtonProps['loading'];
5339
+ variant: PressButtonProps['variant'];
5340
+ tone: PressButtonProps['tone'];
5341
+ inlineSize: PressButtonProps['inlineSize'];
5342
+ get pressed(): boolean;
5343
+ set pressed(pressed: PressButtonProps['pressed']);
5344
+ defaultPressed: PressButtonProps['defaultPressed'];
5345
+ onclick: CallbackEventListener<typeof tagName$l> | null;
5346
+ onblur: CallbackEventListener<typeof tagName$l> | null;
5347
+ onfocus: CallbackEventListener<typeof tagName$l> | null;
5348
+ accessibilityLabel: PressButtonProps['accessibilityLabel'];
5349
+ constructor();
5350
+ }
5351
+ declare global {
5352
+ interface HTMLElementTagNameMap {
5353
+ [tagName$l]: PressButton;
5354
+ }
5355
+ }
5356
+ declare module 'preact' {
5357
+ namespace createElement.JSX {
5358
+ interface IntrinsicElements {
5359
+ [tagName$l]: ReactProps$l & PreactBaseElementPropsWithChildren<PressButton>;
5360
+ }
5361
+ }
5362
+ }
5363
+
5364
+ declare const tagName$k = "s-query-container";
5365
+ interface ReactProps$k extends Partial<QueryContainerProps$1>, Pick<QueryContainerProps$1, 'id' | 'children'> {
4785
5366
  /**
4786
5367
  * The content of the container.
4787
5368
  */
@@ -4791,7 +5372,7 @@ interface ReactProps$j extends Partial<QueryContainerProps$1>, Pick<QueryContain
4791
5372
  interface QueryContainerProps extends Required<Pick<QueryContainerProps$1, 'id' | 'containerName'>> {
4792
5373
  }
4793
5374
 
4794
- declare class QueryContainer extends PreactCustomElement implements QueryContainerProps {
5375
+ declare class QueryContainer extends PolarisCustomElement implements QueryContainerProps {
4795
5376
  containerName: QueryContainerProps['containerName'];
4796
5377
  /** @private */
4797
5378
  static globalStylesApplied: boolean;
@@ -4799,13 +5380,123 @@ declare class QueryContainer extends PreactCustomElement implements QueryContain
4799
5380
  }
4800
5381
  declare global {
4801
5382
  interface HTMLElementTagNameMap {
4802
- [tagName$j]: QueryContainer;
5383
+ [tagName$k]: QueryContainer;
4803
5384
  }
4804
5385
  }
4805
5386
  declare module 'preact' {
4806
5387
  namespace createElement.JSX {
4807
5388
  interface IntrinsicElements {
4808
- [tagName$j]: ReactProps$j & PreactBaseElementPropsWithChildren<QueryContainer>;
5389
+ [tagName$k]: ReactProps$k & PreactBaseElementPropsWithChildren<QueryContainer>;
5390
+ }
5391
+ }
5392
+ }
5393
+
5394
+ /**
5395
+ * Base properties shared between ScrollBox and InternalScrollBox.
5396
+ */
5397
+
5398
+ /**
5399
+ * Base properties for ScrollBox components.
5400
+ * Extends BoxProps but overrides overflow and accessibilityRole with scroll-specific types.
5401
+ */
5402
+ interface ScrollBoxBaseProps extends Omit<BoxProps, 'overflow' | 'accessibilityRole'> {
5403
+ /**
5404
+ * Sets the overflow behavior of the element.
5405
+ * @default 'auto'
5406
+ */
5407
+ overflow: MaybeTwoValuesShorthandProperty<OverflowKeyword>;
5408
+ /**
5409
+ * Sets the semantic meaning of the component's content.
5410
+ * @default 'generic'
5411
+ */
5412
+ accessibilityRole: ScrollAccessibilityRole;
5413
+ /**
5414
+ * A label used to describe the scroll container for assistive technologies.
5415
+ */
5416
+ accessibilityLabel: string;
5417
+ /**
5418
+ * Controls scroll snap behavior.
5419
+ * @default 'none'
5420
+ */
5421
+ snapType: ScrollSnapType;
5422
+ /**
5423
+ * Offset for scroll snap alignment points.
5424
+ * @default 'base'
5425
+ */
5426
+ scrollPadding: SpacingKeyword;
5427
+ /**
5428
+ * Scroll margin for the element (CSS-like 1-to-4-value shorthand syntax).
5429
+ * @default '0'
5430
+ */
5431
+ scrollMargin: MaybeAllValuesShorthandProperty<SizeUnits>;
5432
+ }
5433
+ /**
5434
+ * Public ScrollBox properties (same as base for now).
5435
+ */
5436
+ type ScrollBoxProps = ScrollBoxBaseProps;
5437
+
5438
+ declare const tagName$j = "s-scroll-box";
5439
+ interface ReactProps$j extends Partial<ScrollBoxProps>, Pick<BoxProps$1, 'id' | 'children'> {
5440
+ /**
5441
+ * The content of the ScrollBox.
5442
+ */
5443
+ children?: ComponentChildren$1;
5444
+ /**
5445
+ * Callback fired when the scroll container is scrolled.
5446
+ */
5447
+ onscroll?: ((event: CallbackEvent<typeof tagName$j>) => void) | null;
5448
+ /**
5449
+ * Callback fired when the scroll container reaches an edge.
5450
+ */
5451
+ onscrolltoedge?: ((event: CallbackEvent<typeof tagName$j>) => void) | null;
5452
+ }
5453
+
5454
+ declare const getScrollContainer: unique symbol;
5455
+ declare abstract class ScrollBoxBase<TTagName extends keyof HTMLElementTagNameMap> extends PolarisCustomElement implements ScrollBoxBaseProps {
5456
+ overflow: ScrollBoxBaseProps['overflow'];
5457
+ snapType: ScrollBoxBaseProps['snapType'];
5458
+ scrollPadding: ScrollBoxBaseProps['scrollPadding'];
5459
+ scrollMargin: ScrollBoxBaseProps['scrollMargin'];
5460
+ accessibilityRole: ScrollBoxBaseProps['accessibilityRole'];
5461
+ accessibilityLabel: ScrollBoxBaseProps['accessibilityLabel'];
5462
+ background: ScrollBoxBaseProps['background'];
5463
+ blockSize: ScrollBoxBaseProps['blockSize'];
5464
+ minBlockSize: ScrollBoxBaseProps['minBlockSize'];
5465
+ maxBlockSize: ScrollBoxBaseProps['maxBlockSize'];
5466
+ inlineSize: ScrollBoxBaseProps['inlineSize'];
5467
+ minInlineSize: ScrollBoxBaseProps['minInlineSize'];
5468
+ maxInlineSize: ScrollBoxBaseProps['maxInlineSize'];
5469
+ padding: ScrollBoxBaseProps['padding'];
5470
+ paddingBlock: ScrollBoxBaseProps['paddingBlock'];
5471
+ paddingBlockStart: ScrollBoxBaseProps['paddingBlockStart'];
5472
+ paddingBlockEnd: ScrollBoxBaseProps['paddingBlockEnd'];
5473
+ paddingInline: ScrollBoxBaseProps['paddingInline'];
5474
+ paddingInlineStart: ScrollBoxBaseProps['paddingInlineStart'];
5475
+ paddingInlineEnd: ScrollBoxBaseProps['paddingInlineEnd'];
5476
+ border: ScrollBoxBaseProps['border'];
5477
+ borderWidth: ScrollBoxBaseProps['borderWidth'];
5478
+ borderStyle: ScrollBoxBaseProps['borderStyle'];
5479
+ borderColor: ScrollBoxBaseProps['borderColor'];
5480
+ borderRadius: ScrollBoxBaseProps['borderRadius'];
5481
+ display: ScrollBoxBaseProps['display'];
5482
+ accessibilityVisibility: ScrollBoxBaseProps['accessibilityVisibility'];
5483
+ [getScrollContainer](): HTMLElement | null | undefined;
5484
+ constructor(renderImpl: RenderImpl);
5485
+ }
5486
+
5487
+ declare class ScrollBox extends ScrollBoxBase<typeof tagName$j> implements ScrollBoxProps {
5488
+ constructor();
5489
+ adoptedCallback(): void;
5490
+ }
5491
+ declare global {
5492
+ interface HTMLElementTagNameMap {
5493
+ [tagName$j]: ScrollBox;
5494
+ }
5495
+ }
5496
+ declare module 'preact' {
5497
+ namespace createElement.JSX {
5498
+ interface IntrinsicElements {
5499
+ [tagName$j]: ReactProps$j & PreactBaseElementPropsWithChildren<ScrollBox>;
4809
5500
  }
4810
5501
  }
4811
5502
  }
@@ -4817,12 +5508,16 @@ type SearchFieldProps = PreactFieldProps<
4817
5508
  Required<TextFieldProps$1>['autocomplete']> & Required<Pick<TextFieldProps$1, 'defaultValue' | 'details' | 'disabled' | 'error' | 'labelAccessibilityVisibility' | 'minLength' | 'maxLength' | 'label' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value'>>;
4818
5509
 
4819
5510
  declare const tagName$i = "s-search-field";
4820
- interface ReactProps$i extends Partial<SearchFieldProps>, Pick<TextFieldProps$1, 'id'>, FieldReactProps<typeof tagName$i> {
5511
+ interface ReactProps$i extends Partial<Omit<SearchFieldProps, 'error' | 'details'>>, Pick<TextFieldProps$1, 'id'>, FieldReactProps<typeof tagName$i>, FieldSlotInternalReactProps {
4821
5512
  }
4822
5513
 
4823
- declare class SearchField extends PreactFieldElement<SearchFieldProps['autocomplete']> implements SearchFieldProps {
5514
+ declare abstract class SearchFieldBase extends PreactFieldElement<SearchFieldProps['autocomplete']> implements Pick<SearchFieldProps, 'maxLength' | 'minLength'> {
4824
5515
  maxLength: SearchFieldProps['maxLength'];
4825
5516
  minLength: SearchFieldProps['minLength'];
5517
+ constructor(renderImpl: RenderImpl);
5518
+ }
5519
+
5520
+ declare class SearchField extends SearchFieldBase implements SearchFieldProps {
4826
5521
  constructor();
4827
5522
  }
4828
5523
  declare global {
@@ -4833,7 +5528,7 @@ declare global {
4833
5528
  declare module 'preact' {
4834
5529
  namespace createElement.JSX {
4835
5530
  interface IntrinsicElements {
4836
- [tagName$i]: ReactProps$i & PreactBaseElementProps<SearchField>;
5531
+ [tagName$i]: Omit<ReactProps$i, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<SearchField>;
4837
5532
  }
4838
5533
  }
4839
5534
  }
@@ -4853,14 +5548,20 @@ interface ReactProps$h extends Partial<SectionProps>, Pick<SectionProps$1, 'id'
4853
5548
  children?: ComponentChildren$1;
4854
5549
  }
4855
5550
 
4856
- declare class Section extends PreactCustomElement implements SectionProps {
4857
- constructor();
5551
+ declare abstract class SectionBase extends PolarisCustomElement implements SectionProps {
5552
+ constructor(renderImpl: RenderImpl);
4858
5553
  /** @private */
4859
5554
  connectedCallback(): void;
5555
+ /** @private */
5556
+ disconnectedCallback(): void;
4860
5557
  accessibilityLabel: SectionProps['accessibilityLabel'];
4861
5558
  heading: SectionProps['heading'];
4862
5559
  padding: SectionProps['padding'];
4863
5560
  }
5561
+
5562
+ declare class Section extends SectionBase implements SectionProps {
5563
+ constructor();
5564
+ }
4864
5565
  declare global {
4865
5566
  interface HTMLElementTagNameMap {
4866
5567
  [tagName$h]: Section;
@@ -4880,7 +5581,7 @@ interface SelectProps extends Omit<PreactInputProps, 'value'>, Required<Pick<Sel
4880
5581
  }
4881
5582
 
4882
5583
  declare const tagName$g = "s-select";
4883
- interface ReactProps$g extends Partial<SelectProps>, Pick<SelectProps$1, 'id' | 'children'> {
5584
+ interface ReactProps$g extends Partial<Omit<SelectProps, 'error' | 'details'>>, Pick<SelectProps$1, 'id' | 'children'>, FieldSlotInternalReactProps {
4884
5585
  /**
4885
5586
  * The options a user can select from.
4886
5587
  *
@@ -4896,7 +5597,7 @@ interface ReactProps$g extends Partial<SelectProps>, Pick<SelectProps$1, 'id' |
4896
5597
  declare const usedFirstOptionSymbol: unique symbol;
4897
5598
  declare const hasInitialValueSymbol: unique symbol;
4898
5599
 
4899
- declare class Select extends PreactInputElement implements SelectProps {
5600
+ declare abstract class SelectBase extends PreactInputElement implements Pick<SelectProps, 'icon' | 'details' | 'error' | 'label' | 'placeholder' | 'required' | 'labelAccessibilityVisibility'> {
4900
5601
  icon: SelectProps['icon'];
4901
5602
  details: SelectProps['details'];
4902
5603
  error: SelectProps['error'];
@@ -4906,8 +5607,9 @@ declare class Select extends PreactInputElement implements SelectProps {
4906
5607
  labelAccessibilityVisibility: SelectProps['labelAccessibilityVisibility'];
4907
5608
  /** @private */
4908
5609
  connectedCallback(): void;
5610
+ /** @private */
4909
5611
  disconnectedCallback(): void;
4910
- constructor();
5612
+ constructor(renderImpl: RenderImpl);
4911
5613
  /**
4912
5614
  * used to determine if no value or defaultValue was set, in which case the first non-disabled option was used
4913
5615
  *
@@ -4924,6 +5626,10 @@ declare class Select extends PreactInputElement implements SelectProps {
4924
5626
  /** @private */
4925
5627
  formResetCallback(): void;
4926
5628
  }
5629
+
5630
+ declare class Select extends SelectBase implements SelectProps {
5631
+ constructor();
5632
+ }
4927
5633
  declare global {
4928
5634
  interface HTMLElementTagNameMap {
4929
5635
  [tagName$g]: Select;
@@ -4932,7 +5638,7 @@ declare global {
4932
5638
  declare module 'preact' {
4933
5639
  namespace createElement.JSX {
4934
5640
  interface IntrinsicElements {
4935
- [tagName$g]: ReactProps$g & PreactBaseElementPropsWithChildren<Select>;
5641
+ [tagName$g]: Omit<ReactProps$g, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementPropsWithChildren<Select>;
4936
5642
  }
4937
5643
  }
4938
5644
  }
@@ -4945,7 +5651,7 @@ declare const tagName$f = "s-spinner";
4945
5651
  interface ReactProps$f extends Partial<SpinnerProps>, Pick<SpinnerProps$1, 'id'> {
4946
5652
  }
4947
5653
 
4948
- declare class Spinner extends PreactCustomElement implements SpinnerProps {
5654
+ declare class Spinner extends PolarisCustomElement implements SpinnerProps {
4949
5655
  accessibilityLabel: string;
4950
5656
  size: SpinnerProps['size'];
4951
5657
  constructor();
@@ -5071,10 +5777,15 @@ declare const tagName$d = "s-switch";
5071
5777
  interface ReactProps$d extends Partial<SwitchProps>, Pick<SwitchProps$1, 'id'> {
5072
5778
  onChange?: ((event: CallbackEvent<typeof tagName$d>) => void) | null;
5073
5779
  onInput?: ((event: CallbackEvent<typeof tagName$d>) => void) | null;
5780
+ onBlur?: ((event: CallbackEvent<typeof tagName$d>) => void) | null;
5074
5781
  }
5075
5782
 
5076
- declare class Switch extends PreactCheckboxElement implements SwitchProps {
5783
+ declare abstract class SwitchBase extends PreactCheckboxElement implements Pick<SwitchProps, 'labelAccessibilityVisibility'> {
5077
5784
  labelAccessibilityVisibility: SwitchProps['labelAccessibilityVisibility'];
5785
+ constructor(renderImpl: RenderImpl);
5786
+ }
5787
+
5788
+ declare class Switch extends SwitchBase implements SwitchProps {
5078
5789
  constructor();
5079
5790
  }
5080
5791
  declare global {
@@ -5115,8 +5826,11 @@ interface TableHeaderProps extends Pick<TableHeaderProps$1, 'listSlot' | 'format
5115
5826
  declare const actualTableVariantSymbol: unique symbol;
5116
5827
  declare const tableHeadersSharedDataSymbol: unique symbol;
5117
5828
  type ActualTableVariant = 'table' | 'list';
5829
+ declare const elementInternals: unique symbol;
5118
5830
 
5119
- declare class Table extends PreactCustomElement implements TableProps {
5831
+ declare class Table extends PolarisCustomElement implements TableProps {
5832
+ /** @private */
5833
+ [elementInternals]: ElementInternals;
5120
5834
  variant: TableProps['variant'];
5121
5835
  loading: TableProps['loading'];
5122
5836
  paginate: TableProps['paginate'];
@@ -5161,7 +5875,9 @@ interface ReactProps$b extends Partial<TableBodyProps>, Pick<TableBodyProps$1, '
5161
5875
  children?: ComponentChildren$1;
5162
5876
  }
5163
5877
 
5164
- declare class TableBody extends PreactCustomElement implements TableBodyProps {
5878
+ declare class TableBody extends PolarisCustomElement implements TableBodyProps {
5879
+ /** @private */
5880
+ [elementInternals]: ElementInternals;
5165
5881
  constructor();
5166
5882
  }
5167
5883
  declare global {
@@ -5190,7 +5906,9 @@ interface ReactProps$a extends Partial<TableCellProps>, Pick<TableCellProps$1, '
5190
5906
 
5191
5907
  declare const headerFormatSymbol: unique symbol;
5192
5908
 
5193
- declare class TableCell extends PreactCustomElement implements TableCellProps {
5909
+ declare class TableCell extends PolarisCustomElement implements TableCellProps {
5910
+ /** @private */
5911
+ [elementInternals]: ElementInternals;
5194
5912
  constructor();
5195
5913
  /** @private */
5196
5914
  get [headerFormatSymbol](): HeaderFormat;
@@ -5218,7 +5936,9 @@ interface ReactProps$9 extends Partial<TableHeaderProps>, Pick<TableHeaderProps$
5218
5936
  children?: ComponentChildren$1;
5219
5937
  }
5220
5938
 
5221
- declare class TableHeader extends PreactCustomElement implements TableHeaderProps {
5939
+ declare class TableHeader extends PolarisCustomElement implements TableHeaderProps {
5940
+ /** @private */
5941
+ [elementInternals]: ElementInternals;
5222
5942
  listSlot: TableHeaderProps['listSlot'];
5223
5943
  format: TableHeaderProps['format'];
5224
5944
  constructor();
@@ -5247,7 +5967,9 @@ interface ReactProps$8 extends Partial<TableHeaderRowProps>, Pick<TableHeaderRow
5247
5967
  children?: ComponentChildren$1;
5248
5968
  }
5249
5969
 
5250
- declare class TableHeaderRow extends PreactCustomElement implements TableHeaderRowProps {
5970
+ declare class TableHeaderRow extends PolarisCustomElement implements TableHeaderRowProps {
5971
+ /** @private */
5972
+ [elementInternals]: ElementInternals;
5251
5973
  constructor();
5252
5974
  /** @private */
5253
5975
  connectedCallback(): void;
@@ -5278,7 +6000,9 @@ interface ReactProps$7 extends Partial<TableRowProps>, Pick<TableRowProps$1, 'id
5278
6000
  children?: ComponentChildren$1;
5279
6001
  }
5280
6002
 
5281
- declare class TableRow extends PreactCustomElement implements TableRowProps {
6003
+ declare class TableRow extends PolarisCustomElement implements TableRowProps {
6004
+ /** @private */
6005
+ [elementInternals]: ElementInternals;
5282
6006
  constructor();
5283
6007
  clickDelegate: string;
5284
6008
  }
@@ -5298,7 +6022,7 @@ declare module 'preact' {
5298
6022
  interface TextProps extends Required<Pick<TextProps$1, 'accessibilityVisibility' | 'dir' | 'color' | 'type' | 'tone' | 'fontVariantNumeric' | 'interestFor'>> {
5299
6023
  color: Extract<TextProps$1['color'], 'base' | 'subdued'>;
5300
6024
  type: Extract<TextProps$1['type'], 'address' | 'redundant' | 'strong' | 'generic'>;
5301
- tone: Extract<TextProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical' | 'neutral' | 'caution'>;
6025
+ tone: Extract<TextProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'caution' | 'critical'>;
5302
6026
  fontVariantNumeric: Extract<TextProps$1['fontVariantNumeric'], 'auto' | 'normal' | 'tabular-nums'>;
5303
6027
  }
5304
6028
 
@@ -5310,14 +6034,19 @@ interface ReactProps$6 extends Partial<TextProps>, Pick<TextProps$1, 'id' | 'chi
5310
6034
  children?: ComponentChildren$1;
5311
6035
  }
5312
6036
 
5313
- declare class Text extends PreactCustomElement implements TextProps {
6037
+ declare abstract class TextBase extends PolarisCustomElement implements Pick<TextProps, 'fontVariantNumeric' | 'color' | 'type' | 'dir' | 'accessibilityVisibility' | 'interestFor'> {
5314
6038
  fontVariantNumeric: TextProps['fontVariantNumeric'];
5315
6039
  color: TextProps['color'];
5316
- tone: TextProps['tone'];
5317
6040
  type: TextProps['type'];
5318
6041
  dir: TextProps['dir'];
5319
6042
  accessibilityVisibility: TextProps['accessibilityVisibility'];
5320
6043
  interestFor: string;
6044
+ abstract tone: string;
6045
+ constructor(renderImpl: RenderImpl);
6046
+ }
6047
+
6048
+ declare class Text extends TextBase implements TextProps {
6049
+ tone: TextProps['tone'];
5321
6050
  constructor();
5322
6051
  }
5323
6052
  declare global {
@@ -5336,13 +6065,17 @@ declare module 'preact' {
5336
6065
  type TextAreaProps = PreactFieldProps<Required<TextAreaProps$1>['autocomplete']> & Required<Pick<TextAreaProps$1, 'maxLength' | 'minLength' | 'rows'>>;
5337
6066
 
5338
6067
  declare const tagName$5 = "s-text-area";
5339
- interface ReactProps$5 extends Partial<TextAreaProps>, Pick<TextAreaProps$1, 'id'>, FieldReactProps<typeof tagName$5> {
6068
+ interface ReactProps$5 extends Partial<Omit<TextAreaProps, 'error' | 'details'>>, Pick<TextAreaProps$1, 'id'>, FieldReactProps<typeof tagName$5>, FieldSlotInternalReactProps {
5340
6069
  }
5341
6070
 
5342
- declare class TextArea extends PreactFieldElement<TextAreaProps['autocomplete']> implements TextAreaProps {
6071
+ declare abstract class TextAreaBase extends PreactFieldElement<TextAreaProps['autocomplete']> implements Pick<TextAreaProps, 'maxLength' | 'minLength' | 'rows'> {
5343
6072
  maxLength: TextAreaProps['maxLength'];
5344
6073
  minLength: TextAreaProps['minLength'];
5345
6074
  rows: TextAreaProps['rows'];
6075
+ constructor(renderImpl: RenderImpl);
6076
+ }
6077
+
6078
+ declare class TextArea extends TextAreaBase implements TextAreaProps {
5346
6079
  constructor();
5347
6080
  }
5348
6081
  declare global {
@@ -5353,7 +6086,7 @@ declare global {
5353
6086
  declare module 'preact' {
5354
6087
  namespace createElement.JSX {
5355
6088
  interface IntrinsicElements {
5356
- [tagName$5]: ReactProps$5 & PreactBaseElementProps<TextArea>;
6089
+ [tagName$5]: Omit<ReactProps$5, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<TextArea>;
5357
6090
  }
5358
6091
  }
5359
6092
  }
@@ -5363,19 +6096,23 @@ type TextFieldProps = PreactFieldProps<
5363
6096
  Required<TextFieldProps$1>['autocomplete']> & Required<Pick<TextFieldProps$1, 'icon' | 'maxLength' | 'minLength' | 'prefix' | 'suffix'>>;
5364
6097
 
5365
6098
  declare const tagName$4 = "s-text-field";
5366
- 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 {
5367
6100
  /**
5368
6101
  * The accessory to display in the text field.
5369
6102
  */
5370
6103
  accessory?: ComponentChildren$1;
5371
6104
  }
5372
6105
 
5373
- declare class TextField extends PreactFieldElement<TextFieldProps['autocomplete']> implements TextFieldProps {
6106
+ declare abstract class TextFieldBase extends PreactFieldElement<TextFieldProps['autocomplete']> implements Pick<TextFieldProps, 'icon' | 'maxLength' | 'minLength' | 'prefix' | 'suffix'> {
5374
6107
  icon: TextFieldProps['icon'];
5375
6108
  maxLength: TextFieldProps['maxLength'];
5376
6109
  minLength: TextFieldProps['minLength'];
5377
6110
  prefix: TextFieldProps['prefix'];
5378
6111
  suffix: TextFieldProps['suffix'];
6112
+ constructor(renderImpl: RenderImpl);
6113
+ }
6114
+
6115
+ declare class TextField extends TextFieldBase implements TextFieldProps {
5379
6116
  constructor();
5380
6117
  }
5381
6118
  declare global {
@@ -5386,7 +6123,7 @@ declare global {
5386
6123
  declare module 'preact' {
5387
6124
  namespace createElement.JSX {
5388
6125
  interface IntrinsicElements {
5389
- [tagName$4]: Omit<ReactProps$4, 'accessory'> & PreactBaseElementProps<TextField>;
6126
+ [tagName$4]: Omit<ReactProps$4, 'accessory' | 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementPropsWithChildren<TextField>;
5390
6127
  }
5391
6128
  }
5392
6129
  }
@@ -5401,7 +6138,7 @@ interface ReactProps$3 extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, '
5401
6138
  onError?: ((event: CallbackEvent<typeof tagName$3>) => void) | null;
5402
6139
  }
5403
6140
 
5404
- declare class Thumbnail extends PreactCustomElement implements ThumbnailProps {
6141
+ declare class Thumbnail extends PolarisCustomElement implements ThumbnailProps {
5405
6142
  src: ThumbnailProps['src'];
5406
6143
  alt: ThumbnailProps['alt'];
5407
6144
  size: ThumbnailProps['size'];
@@ -5454,13 +6191,17 @@ declare module 'preact' {
5454
6191
  type URLFieldProps = PreactFieldProps<Required<URLFieldProps$1>['autocomplete']> & Required<Pick<URLFieldProps$1, 'maxLength' | 'minLength'>>;
5455
6192
 
5456
6193
  declare const tagName$1 = "s-url-field";
5457
- 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 {
5458
6195
  }
5459
6196
 
5460
- declare class URLField extends PreactFieldElement<URLFieldProps['autocomplete']> implements URLFieldProps {
6197
+ declare abstract class URLFieldBase extends PreactFieldElement<URLFieldProps['autocomplete']> implements Pick<URLFieldProps, 'autocomplete' | 'maxLength' | 'minLength'> {
5461
6198
  autocomplete: URLFieldProps['autocomplete'];
5462
6199
  maxLength: URLFieldProps['maxLength'];
5463
6200
  minLength: URLFieldProps['minLength'];
6201
+ constructor(renderImpl: RenderImpl);
6202
+ }
6203
+
6204
+ declare class URLField extends URLFieldBase implements URLFieldProps {
5464
6205
  constructor();
5465
6206
  }
5466
6207
  declare global {
@@ -5471,7 +6212,7 @@ declare global {
5471
6212
  declare module 'preact' {
5472
6213
  namespace createElement.JSX {
5473
6214
  interface IntrinsicElements {
5474
- [tagName$1]: ReactProps$1 & PreactBaseElementProps<URLField>;
6215
+ [tagName$1]: Omit<ReactProps$1, 'error' | 'details'> & FieldSlotPreactProps & PreactBaseElementProps<URLField>;
5475
6216
  }
5476
6217
  }
5477
6218
  }
@@ -5489,7 +6230,7 @@ interface ReactProps extends Partial<UnorderedListProps>, Pick<UnorderedListProp
5489
6230
  children?: ComponentChildren$1;
5490
6231
  }
5491
6232
 
5492
- declare class UnorderedList extends PreactCustomElement implements UnorderedListProps {
6233
+ declare class UnorderedList extends PolarisCustomElement implements UnorderedListProps {
5493
6234
  constructor();
5494
6235
  }
5495
6236
  declare global {
@@ -5545,7 +6286,9 @@ declare const elements: {
5545
6286
  Paragraph: typeof Paragraph;
5546
6287
  PasswordField: typeof PasswordField;
5547
6288
  Popover: typeof Popover;
6289
+ PressButton: typeof PressButton;
5548
6290
  QueryContainer: typeof QueryContainer;
6291
+ ScrollBox: typeof ScrollBox;
5549
6292
  SearchField: typeof SearchField;
5550
6293
  Section: typeof Section;
5551
6294
  Select: typeof Select;
@@ -5568,550 +6311,578 @@ declare const elements: {
5568
6311
  };
5569
6312
 
5570
6313
  export { elements, reactWrap };
5571
- export type { CallbackEvent, CallbackEventListener };
6314
+ export type { AltKey, CallbackEvent, CallbackEventListener, ReactKey };
6315
+ declare module 'react' {
6316
+ namespace JSX {
6317
+ interface IntrinsicElements {
6318
+ [tagName$W]: ReactProps$W & ReactBaseElementProps<Avatar>;
6319
+ }
6320
+ }
6321
+ }
6322
+ declare global {
6323
+ namespace JSX {
6324
+ interface IntrinsicElements {
6325
+ [tagName$W]: ReactProps$W & ReactBaseElementProps<Avatar>;
6326
+ }
6327
+ }
6328
+ }
6329
+ declare module 'react' {
6330
+ namespace JSX {
6331
+ interface IntrinsicElements {
6332
+ [tagName$V]: ReactProps$V & ReactBaseElementPropsWithChildren<Badge>;
6333
+ }
6334
+ }
6335
+ }
6336
+ declare global {
6337
+ namespace JSX {
6338
+ interface IntrinsicElements {
6339
+ [tagName$V]: ReactProps$V & ReactBaseElementPropsWithChildren<Badge>;
6340
+ }
6341
+ }
6342
+ }
5572
6343
  declare module 'react' {
5573
6344
  namespace JSX {
5574
6345
  interface IntrinsicElements {
5575
- [tagName$U]: ReactProps$U & ReactBaseElementProps<Avatar>;
6346
+ [tagName$U]: Omit<ReactProps$U, 'secondaryActions'> & ReactBaseElementPropsWithChildren<Banner>;
5576
6347
  }
5577
6348
  }
5578
6349
  }
5579
6350
  declare global {
5580
6351
  namespace JSX {
5581
6352
  interface IntrinsicElements {
5582
- [tagName$U]: ReactProps$U & ReactBaseElementProps<Avatar>;
6353
+ [tagName$U]: Omit<ReactProps$U, 'secondaryActions'> & ReactBaseElementPropsWithChildren<Banner>;
5583
6354
  }
5584
6355
  }
5585
6356
  }
5586
6357
  declare module 'react' {
5587
6358
  namespace JSX {
5588
6359
  interface IntrinsicElements {
5589
- [tagName$T]: ReactProps$T & ReactBaseElementPropsWithChildren<Badge>;
6360
+ [tagName$T]: ReactProps$T & ReactBaseElementPropsWithChildren<Box>;
5590
6361
  }
5591
6362
  }
5592
6363
  }
5593
6364
  declare global {
5594
6365
  namespace JSX {
5595
6366
  interface IntrinsicElements {
5596
- [tagName$T]: ReactProps$T & ReactBaseElementPropsWithChildren<Badge>;
6367
+ [tagName$T]: ReactProps$T & ReactBaseElementPropsWithChildren<Box>;
5597
6368
  }
5598
6369
  }
5599
6370
  }
5600
6371
  declare module 'react' {
5601
6372
  namespace JSX {
5602
6373
  interface IntrinsicElements {
5603
- [tagName$S]: Omit<ReactProps$S, 'secondaryActions'> & ReactBaseElementPropsWithChildren<Banner>;
6374
+ [tagName$S]: ReactProps$S & ReactBaseElementPropsWithChildren<Button>;
5604
6375
  }
5605
6376
  }
5606
6377
  }
5607
6378
  declare global {
5608
6379
  namespace JSX {
5609
6380
  interface IntrinsicElements {
5610
- [tagName$S]: Omit<ReactProps$S, 'secondaryActions'> & ReactBaseElementPropsWithChildren<Banner>;
6381
+ [tagName$S]: ReactProps$S & ReactBaseElementPropsWithChildren<Button>;
5611
6382
  }
5612
6383
  }
5613
6384
  }
5614
6385
  declare module 'react' {
5615
6386
  namespace JSX {
5616
6387
  interface IntrinsicElements {
5617
- [tagName$R]: ReactProps$R & ReactBaseElementPropsWithChildren<Box>;
6388
+ [tagName$R]: Omit<ReactProps$R, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<ButtonGroup>;
5618
6389
  }
5619
6390
  }
5620
6391
  }
5621
6392
  declare global {
5622
6393
  namespace JSX {
5623
6394
  interface IntrinsicElements {
5624
- [tagName$R]: ReactProps$R & ReactBaseElementPropsWithChildren<Box>;
6395
+ [tagName$R]: Omit<ReactProps$R, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<ButtonGroup>;
5625
6396
  }
5626
6397
  }
5627
6398
  }
5628
6399
  declare module 'react' {
5629
6400
  namespace JSX {
5630
6401
  interface IntrinsicElements {
5631
- [tagName$Q]: ReactProps$Q & ReactBaseElementPropsWithChildren<Button>;
6402
+ [tagName$Q]: Omit<ReactProps$Q, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<Checkbox>;
5632
6403
  }
5633
6404
  }
5634
6405
  }
5635
6406
  declare global {
5636
6407
  namespace JSX {
5637
6408
  interface IntrinsicElements {
5638
- [tagName$Q]: ReactProps$Q & ReactBaseElementPropsWithChildren<Button>;
6409
+ [tagName$Q]: Omit<ReactProps$Q, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<Checkbox>;
5639
6410
  }
5640
6411
  }
5641
6412
  }
5642
6413
  declare module 'react' {
5643
6414
  namespace JSX {
5644
6415
  interface IntrinsicElements {
5645
- [tagName$P]: Omit<ReactProps$P, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<ButtonGroup>;
6416
+ [tagName$P]: Omit<ReactProps$P, 'graphic'> & ReactBaseElementPropsWithChildren<Chip>;
5646
6417
  }
5647
6418
  }
5648
6419
  }
5649
6420
  declare global {
5650
6421
  namespace JSX {
5651
6422
  interface IntrinsicElements {
5652
- [tagName$P]: Omit<ReactProps$P, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<ButtonGroup>;
6423
+ [tagName$P]: Omit<ReactProps$P, 'graphic'> & ReactBaseElementPropsWithChildren<Chip>;
5653
6424
  }
5654
6425
  }
5655
6426
  }
5656
6427
  declare module 'react' {
5657
6428
  namespace JSX {
5658
6429
  interface IntrinsicElements {
5659
- [tagName$O]: ReactProps$O & ReactBaseElementProps<Checkbox>;
6430
+ [tagName$O]: Omit<ReactProps$O, 'details' | 'secondaryContent'> & ReactBaseElementPropsWithChildren<Choice>;
5660
6431
  }
5661
6432
  }
5662
6433
  }
5663
6434
  declare global {
5664
6435
  namespace JSX {
5665
6436
  interface IntrinsicElements {
5666
- [tagName$O]: ReactProps$O & ReactBaseElementProps<Checkbox>;
6437
+ [tagName$O]: Omit<ReactProps$O, 'details' | 'secondaryContent'> & ReactBaseElementPropsWithChildren<Choice>;
5667
6438
  }
5668
6439
  }
5669
6440
  }
5670
6441
  declare module 'react' {
5671
6442
  namespace JSX {
5672
6443
  interface IntrinsicElements {
5673
- [tagName$N]: Omit<ReactProps$N, 'graphic'> & ReactBaseElementPropsWithChildren<Chip>;
6444
+ [tagName$N]: ReactProps$N & ReactBaseElementPropsWithChildren<ChoiceList>;
5674
6445
  }
5675
6446
  }
5676
6447
  }
5677
6448
  declare global {
5678
6449
  namespace JSX {
5679
6450
  interface IntrinsicElements {
5680
- [tagName$N]: Omit<ReactProps$N, 'graphic'> & ReactBaseElementPropsWithChildren<Chip>;
6451
+ [tagName$N]: ReactProps$N & ReactBaseElementPropsWithChildren<ChoiceList>;
5681
6452
  }
5682
6453
  }
5683
6454
  }
5684
6455
  declare module 'react' {
5685
6456
  namespace JSX {
5686
6457
  interface IntrinsicElements {
5687
- [tagName$M]: Omit<ReactProps$M, 'details'> & ReactBaseElementPropsWithChildren<Choice>;
6458
+ [tagName$M]: ReactProps$M & ReactBaseElementPropsWithChildren<Clickable>;
5688
6459
  }
5689
6460
  }
5690
6461
  }
5691
6462
  declare global {
5692
6463
  namespace JSX {
5693
6464
  interface IntrinsicElements {
5694
- [tagName$M]: Omit<ReactProps$M, 'details'> & ReactBaseElementPropsWithChildren<Choice>;
6465
+ [tagName$M]: ReactProps$M & ReactBaseElementPropsWithChildren<Clickable>;
5695
6466
  }
5696
6467
  }
5697
6468
  }
5698
6469
  declare module 'react' {
5699
6470
  namespace JSX {
5700
6471
  interface IntrinsicElements {
5701
- [tagName$L]: ReactProps$L & ReactBaseElementPropsWithChildren<ChoiceList>;
6472
+ [tagName$L]: Omit<ReactProps$L, 'graphic'> & ReactBaseElementPropsWithChildren<ClickableChip>;
5702
6473
  }
5703
6474
  }
5704
6475
  }
5705
6476
  declare global {
5706
6477
  namespace JSX {
5707
6478
  interface IntrinsicElements {
5708
- [tagName$L]: ReactProps$L & ReactBaseElementPropsWithChildren<ChoiceList>;
6479
+ [tagName$L]: Omit<ReactProps$L, 'graphic'> & ReactBaseElementPropsWithChildren<ClickableChip>;
5709
6480
  }
5710
6481
  }
5711
6482
  }
5712
6483
  declare module 'react' {
5713
6484
  namespace JSX {
5714
6485
  interface IntrinsicElements {
5715
- [tagName$K]: ReactProps$K & ReactBaseElementPropsWithChildren<Clickable>;
6486
+ [tagName$K]: Omit<ReactProps$K, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<ColorField>;
5716
6487
  }
5717
6488
  }
5718
6489
  }
5719
6490
  declare global {
5720
6491
  namespace JSX {
5721
6492
  interface IntrinsicElements {
5722
- [tagName$K]: ReactProps$K & ReactBaseElementPropsWithChildren<Clickable>;
6493
+ [tagName$K]: Omit<ReactProps$K, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<ColorField>;
5723
6494
  }
5724
6495
  }
5725
6496
  }
5726
6497
  declare module 'react' {
5727
6498
  namespace JSX {
5728
6499
  interface IntrinsicElements {
5729
- [tagName$J]: Omit<ReactProps$J, 'graphic'> & ReactBaseElementPropsWithChildren<ClickableChip>;
6500
+ [tagName$J]: ReactProps$J & ReactBaseElementProps<ColorPicker>;
5730
6501
  }
5731
6502
  }
5732
6503
  }
5733
6504
  declare global {
5734
6505
  namespace JSX {
5735
6506
  interface IntrinsicElements {
5736
- [tagName$J]: Omit<ReactProps$J, 'graphic'> & ReactBaseElementPropsWithChildren<ClickableChip>;
6507
+ [tagName$J]: ReactProps$J & ReactBaseElementProps<ColorPicker>;
5737
6508
  }
5738
6509
  }
5739
6510
  }
5740
6511
  declare module 'react' {
5741
6512
  namespace JSX {
5742
6513
  interface IntrinsicElements {
5743
- [tagName$I]: ReactProps$I & ReactBaseElementProps<ColorField>;
6514
+ [tagName$I]: Omit<ReactProps$I, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<DateField>;
5744
6515
  }
5745
6516
  }
5746
6517
  }
5747
6518
  declare global {
5748
6519
  namespace JSX {
5749
6520
  interface IntrinsicElements {
5750
- [tagName$I]: ReactProps$I & ReactBaseElementProps<ColorField>;
6521
+ [tagName$I]: Omit<ReactProps$I, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<DateField>;
5751
6522
  }
5752
6523
  }
5753
6524
  }
5754
6525
  declare module 'react' {
5755
6526
  namespace JSX {
5756
6527
  interface IntrinsicElements {
5757
- [tagName$H]: ReactProps$H & ReactBaseElementProps<ColorPicker>;
6528
+ [tagName$H]: ReactProps$H & ReactBaseElementProps<DatePicker>;
5758
6529
  }
5759
6530
  }
5760
6531
  }
5761
6532
  declare global {
5762
6533
  namespace JSX {
5763
6534
  interface IntrinsicElements {
5764
- [tagName$H]: ReactProps$H & ReactBaseElementProps<ColorPicker>;
6535
+ [tagName$H]: ReactProps$H & ReactBaseElementProps<DatePicker>;
5765
6536
  }
5766
6537
  }
5767
6538
  }
5768
6539
  declare module 'react' {
5769
6540
  namespace JSX {
5770
6541
  interface IntrinsicElements {
5771
- [tagName$G]: ReactProps$G & ReactBaseElementProps<DateField>;
6542
+ [tagName$G]: ReactProps$G & ReactBaseElementProps<Divider>;
5772
6543
  }
5773
6544
  }
5774
6545
  }
5775
6546
  declare global {
5776
6547
  namespace JSX {
5777
6548
  interface IntrinsicElements {
5778
- [tagName$G]: ReactProps$G & ReactBaseElementProps<DateField>;
6549
+ [tagName$G]: ReactProps$G & ReactBaseElementProps<Divider>;
5779
6550
  }
5780
6551
  }
5781
6552
  }
5782
6553
  declare module 'react' {
5783
6554
  namespace JSX {
5784
6555
  interface IntrinsicElements {
5785
- [tagName$F]: ReactProps$F & ReactBaseElementProps<DatePicker>;
6556
+ [tagName$F]: ReactProps$F & ReactBaseElementPropsWithChildren<DropZone>;
5786
6557
  }
5787
6558
  }
5788
6559
  }
5789
6560
  declare global {
5790
6561
  namespace JSX {
5791
6562
  interface IntrinsicElements {
5792
- [tagName$F]: ReactProps$F & ReactBaseElementProps<DatePicker>;
6563
+ [tagName$F]: ReactProps$F & ReactBaseElementPropsWithChildren<DropZone>;
5793
6564
  }
5794
6565
  }
5795
6566
  }
5796
6567
  declare module 'react' {
5797
6568
  namespace JSX {
5798
6569
  interface IntrinsicElements {
5799
- [tagName$E]: ReactProps$E & ReactBaseElementProps<Divider>;
6570
+ [tagName$E]: Omit<ReactProps$E, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<EmailField>;
5800
6571
  }
5801
6572
  }
5802
6573
  }
5803
6574
  declare global {
5804
6575
  namespace JSX {
5805
6576
  interface IntrinsicElements {
5806
- [tagName$E]: ReactProps$E & ReactBaseElementProps<Divider>;
6577
+ [tagName$E]: Omit<ReactProps$E, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<EmailField>;
5807
6578
  }
5808
6579
  }
5809
6580
  }
5810
6581
  declare module 'react' {
5811
6582
  namespace JSX {
5812
6583
  interface IntrinsicElements {
5813
- [tagName$D]: ReactProps$D & ReactBaseElementProps<DropZone>;
6584
+ [tagName$D]: ReactProps$D & ReactBaseElementPropsWithChildren<Grid>;
5814
6585
  }
5815
6586
  }
5816
6587
  }
5817
6588
  declare global {
5818
6589
  namespace JSX {
5819
6590
  interface IntrinsicElements {
5820
- [tagName$D]: ReactProps$D & ReactBaseElementProps<DropZone>;
6591
+ [tagName$D]: ReactProps$D & ReactBaseElementPropsWithChildren<Grid>;
5821
6592
  }
5822
6593
  }
5823
6594
  }
5824
6595
  declare module 'react' {
5825
6596
  namespace JSX {
5826
6597
  interface IntrinsicElements {
5827
- [tagName$C]: ReactProps$C & ReactBaseElementProps<EmailField>;
6598
+ [tagName$C]: ReactProps$C & ReactBaseElementPropsWithChildren<GridItem>;
5828
6599
  }
5829
6600
  }
5830
6601
  }
5831
6602
  declare global {
5832
6603
  namespace JSX {
5833
6604
  interface IntrinsicElements {
5834
- [tagName$C]: ReactProps$C & ReactBaseElementProps<EmailField>;
6605
+ [tagName$C]: ReactProps$C & ReactBaseElementPropsWithChildren<GridItem>;
5835
6606
  }
5836
6607
  }
5837
6608
  }
5838
6609
  declare module 'react' {
5839
6610
  namespace JSX {
5840
6611
  interface IntrinsicElements {
5841
- [tagName$B]: ReactProps$B & ReactBaseElementPropsWithChildren<Grid>;
6612
+ [tagName$B]: ReactProps$B & ReactBaseElementPropsWithChildren<Heading>;
5842
6613
  }
5843
6614
  }
5844
6615
  }
5845
6616
  declare global {
5846
6617
  namespace JSX {
5847
6618
  interface IntrinsicElements {
5848
- [tagName$B]: ReactProps$B & ReactBaseElementPropsWithChildren<Grid>;
6619
+ [tagName$B]: ReactProps$B & ReactBaseElementPropsWithChildren<Heading>;
5849
6620
  }
5850
6621
  }
5851
6622
  }
5852
6623
  declare module 'react' {
5853
6624
  namespace JSX {
5854
6625
  interface IntrinsicElements {
5855
- [tagName$A]: ReactProps$A & ReactBaseElementPropsWithChildren<GridItem>;
6626
+ [tagName$A]: ReactProps$A & ReactBaseElementProps<Icon>;
5856
6627
  }
5857
6628
  }
5858
6629
  }
5859
6630
  declare global {
5860
6631
  namespace JSX {
5861
6632
  interface IntrinsicElements {
5862
- [tagName$A]: ReactProps$A & ReactBaseElementPropsWithChildren<GridItem>;
6633
+ [tagName$A]: ReactProps$A & ReactBaseElementProps<Icon>;
5863
6634
  }
5864
6635
  }
5865
6636
  }
5866
6637
  declare module 'react' {
5867
6638
  namespace JSX {
5868
6639
  interface IntrinsicElements {
5869
- [tagName$z]: ReactProps$z & ReactBaseElementPropsWithChildren<Heading>;
6640
+ [tagName$z]: ReactProps$z & ReactBaseElementProps<Image>;
5870
6641
  }
5871
6642
  }
5872
6643
  }
5873
6644
  declare global {
5874
6645
  namespace JSX {
5875
6646
  interface IntrinsicElements {
5876
- [tagName$z]: ReactProps$z & ReactBaseElementPropsWithChildren<Heading>;
6647
+ [tagName$z]: ReactProps$z & ReactBaseElementProps<Image>;
5877
6648
  }
5878
6649
  }
5879
6650
  }
5880
6651
  declare module 'react' {
5881
6652
  namespace JSX {
5882
6653
  interface IntrinsicElements {
5883
- [tagName$y]: ReactProps$y & ReactBaseElementProps<Icon>;
6654
+ [tagName$y]: ReactProps$y & ReactBaseElementPropsWithChildren<Link>;
5884
6655
  }
5885
6656
  }
5886
6657
  }
5887
6658
  declare global {
5888
6659
  namespace JSX {
5889
6660
  interface IntrinsicElements {
5890
- [tagName$y]: ReactProps$y & ReactBaseElementProps<Icon>;
6661
+ [tagName$y]: ReactProps$y & ReactBaseElementPropsWithChildren<Link>;
5891
6662
  }
5892
6663
  }
5893
6664
  }
5894
6665
  declare module 'react' {
5895
6666
  namespace JSX {
5896
6667
  interface IntrinsicElements {
5897
- [tagName$x]: ReactProps$x & ReactBaseElementProps<Image>;
6668
+ [tagName$x]: ReactProps$x & ReactBaseElementPropsWithChildren<ListItem>;
5898
6669
  }
5899
6670
  }
5900
6671
  }
5901
6672
  declare global {
5902
6673
  namespace JSX {
5903
6674
  interface IntrinsicElements {
5904
- [tagName$x]: ReactProps$x & ReactBaseElementProps<Image>;
6675
+ [tagName$x]: ReactProps$x & ReactBaseElementPropsWithChildren<ListItem>;
5905
6676
  }
5906
6677
  }
5907
6678
  }
5908
6679
  declare module 'react' {
5909
6680
  namespace JSX {
5910
6681
  interface IntrinsicElements {
5911
- [tagName$w]: ReactProps$w & ReactBaseElementPropsWithChildren<Link>;
6682
+ [tagName$w]: ReactProps$w & ReactBaseElementPropsWithChildren<Menu>;
5912
6683
  }
5913
6684
  }
5914
6685
  }
5915
6686
  declare global {
5916
6687
  namespace JSX {
5917
6688
  interface IntrinsicElements {
5918
- [tagName$w]: ReactProps$w & ReactBaseElementPropsWithChildren<Link>;
6689
+ [tagName$w]: ReactProps$w & ReactBaseElementPropsWithChildren<Menu>;
5919
6690
  }
5920
6691
  }
5921
6692
  }
5922
6693
  declare module 'react' {
5923
6694
  namespace JSX {
5924
6695
  interface IntrinsicElements {
5925
- [tagName$v]: ReactProps$v & ReactBaseElementPropsWithChildren<ListItem>;
6696
+ [tagName$v]: Omit<ReactProps$v, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<Modal>;
5926
6697
  }
5927
6698
  }
5928
6699
  }
5929
6700
  declare global {
5930
6701
  namespace JSX {
5931
6702
  interface IntrinsicElements {
5932
- [tagName$v]: ReactProps$v & ReactBaseElementPropsWithChildren<ListItem>;
6703
+ [tagName$v]: Omit<ReactProps$v, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<Modal>;
5933
6704
  }
5934
6705
  }
5935
6706
  }
5936
6707
  declare module 'react' {
5937
6708
  namespace JSX {
5938
6709
  interface IntrinsicElements {
5939
- [tagName$u]: ReactProps$u & ReactBaseElementPropsWithChildren<Menu>;
6710
+ [tagName$u]: Omit<ReactProps$u, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<MoneyField>;
5940
6711
  }
5941
6712
  }
5942
6713
  }
5943
6714
  declare global {
5944
6715
  namespace JSX {
5945
6716
  interface IntrinsicElements {
5946
- [tagName$u]: ReactProps$u & ReactBaseElementPropsWithChildren<Menu>;
6717
+ [tagName$u]: Omit<ReactProps$u, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<MoneyField>;
5947
6718
  }
5948
6719
  }
5949
6720
  }
5950
6721
  declare module 'react' {
5951
6722
  namespace JSX {
5952
6723
  interface IntrinsicElements {
5953
- [tagName$t]: Omit<ReactProps$t, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<Modal>;
6724
+ [tagName$t]: Omit<ReactProps$t, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<NumberField>;
5954
6725
  }
5955
6726
  }
5956
6727
  }
5957
6728
  declare global {
5958
6729
  namespace JSX {
5959
6730
  interface IntrinsicElements {
5960
- [tagName$t]: Omit<ReactProps$t, 'primaryAction' | 'secondaryActions'> & ReactBaseElementPropsWithChildren<Modal>;
6731
+ [tagName$t]: Omit<ReactProps$t, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<NumberField>;
5961
6732
  }
5962
6733
  }
5963
6734
  }
5964
6735
  declare module 'react' {
5965
6736
  namespace JSX {
5966
6737
  interface IntrinsicElements {
5967
- [tagName$s]: ReactProps$s & ReactBaseElementProps<MoneyField>;
6738
+ [tagName$s]: ReactProps$s & ReactBaseElementPropsWithChildren<Option>;
5968
6739
  }
5969
6740
  }
5970
6741
  }
5971
6742
  declare global {
5972
6743
  namespace JSX {
5973
6744
  interface IntrinsicElements {
5974
- [tagName$s]: ReactProps$s & ReactBaseElementProps<MoneyField>;
6745
+ [tagName$s]: ReactProps$s & ReactBaseElementPropsWithChildren<Option>;
5975
6746
  }
5976
6747
  }
5977
6748
  }
5978
6749
  declare module 'react' {
5979
6750
  namespace JSX {
5980
6751
  interface IntrinsicElements {
5981
- [tagName$r]: ReactProps$r & ReactBaseElementProps<NumberField>;
6752
+ [tagName$r]: ReactProps$r & ReactBaseElementPropsWithChildren<OptionGroup>;
5982
6753
  }
5983
6754
  }
5984
6755
  }
5985
6756
  declare global {
5986
6757
  namespace JSX {
5987
6758
  interface IntrinsicElements {
5988
- [tagName$r]: ReactProps$r & ReactBaseElementProps<NumberField>;
6759
+ [tagName$r]: ReactProps$r & ReactBaseElementPropsWithChildren<OptionGroup>;
5989
6760
  }
5990
6761
  }
5991
6762
  }
5992
6763
  declare module 'react' {
5993
6764
  namespace JSX {
5994
6765
  interface IntrinsicElements {
5995
- [tagName$q]: ReactProps$q & ReactBaseElementPropsWithChildren<Option>;
6766
+ [tagName$q]: ReactProps$q & ReactBaseElementPropsWithChildren<OrderedList>;
5996
6767
  }
5997
6768
  }
5998
6769
  }
5999
6770
  declare global {
6000
6771
  namespace JSX {
6001
6772
  interface IntrinsicElements {
6002
- [tagName$q]: ReactProps$q & ReactBaseElementPropsWithChildren<Option>;
6773
+ [tagName$q]: ReactProps$q & ReactBaseElementPropsWithChildren<OrderedList>;
6003
6774
  }
6004
6775
  }
6005
6776
  }
6006
6777
  declare module 'react' {
6007
6778
  namespace JSX {
6008
6779
  interface IntrinsicElements {
6009
- [tagName$p]: ReactProps$p & ReactBaseElementPropsWithChildren<OptionGroup>;
6780
+ [tagName$p]: Omit<ReactProps$p, 'aside' | 'primaryAction' | 'secondaryActions' | 'breadcrumbActions'> & ReactBaseElementPropsWithChildren<Page>;
6010
6781
  }
6011
6782
  }
6012
6783
  }
6013
6784
  declare global {
6014
6785
  namespace JSX {
6015
6786
  interface IntrinsicElements {
6016
- [tagName$p]: ReactProps$p & ReactBaseElementPropsWithChildren<OptionGroup>;
6787
+ [tagName$p]: Omit<ReactProps$p, 'aside' | 'primaryAction' | 'secondaryActions' | 'breadcrumbActions'> & ReactBaseElementPropsWithChildren<Page>;
6017
6788
  }
6018
6789
  }
6019
6790
  }
6020
6791
  declare module 'react' {
6021
6792
  namespace JSX {
6022
6793
  interface IntrinsicElements {
6023
- [tagName$o]: ReactProps$o & ReactBaseElementPropsWithChildren<OrderedList>;
6794
+ [tagName$o]: ReactProps$o & ReactBaseElementPropsWithChildren<Paragraph>;
6024
6795
  }
6025
6796
  }
6026
6797
  }
6027
6798
  declare global {
6028
6799
  namespace JSX {
6029
6800
  interface IntrinsicElements {
6030
- [tagName$o]: ReactProps$o & ReactBaseElementPropsWithChildren<OrderedList>;
6801
+ [tagName$o]: ReactProps$o & ReactBaseElementPropsWithChildren<Paragraph>;
6031
6802
  }
6032
6803
  }
6033
6804
  }
6034
6805
  declare module 'react' {
6035
6806
  namespace JSX {
6036
6807
  interface IntrinsicElements {
6037
- [tagName$n]: Omit<ReactProps$n, 'aside' | 'primaryAction' | 'secondaryActions' | 'breadcrumbActions'> & ReactBaseElementPropsWithChildren<Page>;
6808
+ [tagName$n]: Omit<ReactProps$n, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<PasswordField>;
6038
6809
  }
6039
6810
  }
6040
6811
  }
6041
6812
  declare global {
6042
6813
  namespace JSX {
6043
6814
  interface IntrinsicElements {
6044
- [tagName$n]: Omit<ReactProps$n, 'aside' | 'primaryAction' | 'secondaryActions' | 'breadcrumbActions'> & ReactBaseElementPropsWithChildren<Page>;
6815
+ [tagName$n]: Omit<ReactProps$n, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<PasswordField>;
6045
6816
  }
6046
6817
  }
6047
6818
  }
6048
6819
  declare module 'react' {
6049
6820
  namespace JSX {
6050
6821
  interface IntrinsicElements {
6051
- [tagName$m]: ReactProps$m & ReactBaseElementPropsWithChildren<Paragraph>;
6822
+ [tagName$m]: ReactProps$m & ReactBaseElementPropsWithChildren<Popover>;
6052
6823
  }
6053
6824
  }
6054
6825
  }
6055
6826
  declare global {
6056
6827
  namespace JSX {
6057
6828
  interface IntrinsicElements {
6058
- [tagName$m]: ReactProps$m & ReactBaseElementPropsWithChildren<Paragraph>;
6829
+ [tagName$m]: ReactProps$m & ReactBaseElementPropsWithChildren<Popover>;
6059
6830
  }
6060
6831
  }
6061
6832
  }
6062
6833
  declare module 'react' {
6063
6834
  namespace JSX {
6064
6835
  interface IntrinsicElements {
6065
- [tagName$l]: ReactProps$l & ReactBaseElementProps<PasswordField>;
6836
+ [tagName$l]: ReactProps$l & ReactBaseElementPropsWithChildren<PressButton>;
6066
6837
  }
6067
6838
  }
6068
6839
  }
6069
6840
  declare global {
6070
6841
  namespace JSX {
6071
6842
  interface IntrinsicElements {
6072
- [tagName$l]: ReactProps$l & ReactBaseElementProps<PasswordField>;
6843
+ [tagName$l]: ReactProps$l & ReactBaseElementPropsWithChildren<PressButton>;
6073
6844
  }
6074
6845
  }
6075
6846
  }
6076
6847
  declare module 'react' {
6077
6848
  namespace JSX {
6078
6849
  interface IntrinsicElements {
6079
- [tagName$k]: ReactProps$k & ReactBaseElementPropsWithChildren<Popover>;
6850
+ [tagName$k]: ReactProps$k & ReactBaseElementPropsWithChildren<QueryContainer>;
6080
6851
  }
6081
6852
  }
6082
6853
  }
6083
6854
  declare global {
6084
6855
  namespace JSX {
6085
6856
  interface IntrinsicElements {
6086
- [tagName$k]: ReactProps$k & ReactBaseElementPropsWithChildren<Popover>;
6857
+ [tagName$k]: ReactProps$k & ReactBaseElementPropsWithChildren<QueryContainer>;
6087
6858
  }
6088
6859
  }
6089
6860
  }
6090
6861
  declare module 'react' {
6091
6862
  namespace JSX {
6092
6863
  interface IntrinsicElements {
6093
- [tagName$j]: ReactProps$j & ReactBaseElementPropsWithChildren<QueryContainer>;
6864
+ [tagName$j]: ReactProps$j & ReactBaseElementPropsWithChildren<ScrollBox>;
6094
6865
  }
6095
6866
  }
6096
6867
  }
6097
6868
  declare global {
6098
6869
  namespace JSX {
6099
6870
  interface IntrinsicElements {
6100
- [tagName$j]: ReactProps$j & ReactBaseElementPropsWithChildren<QueryContainer>;
6871
+ [tagName$j]: ReactProps$j & ReactBaseElementPropsWithChildren<ScrollBox>;
6101
6872
  }
6102
6873
  }
6103
6874
  }
6104
6875
  declare module 'react' {
6105
6876
  namespace JSX {
6106
6877
  interface IntrinsicElements {
6107
- [tagName$i]: ReactProps$i & ReactBaseElementProps<SearchField>;
6878
+ [tagName$i]: Omit<ReactProps$i, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<SearchField>;
6108
6879
  }
6109
6880
  }
6110
6881
  }
6111
6882
  declare global {
6112
6883
  namespace JSX {
6113
6884
  interface IntrinsicElements {
6114
- [tagName$i]: ReactProps$i & ReactBaseElementProps<SearchField>;
6885
+ [tagName$i]: Omit<ReactProps$i, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<SearchField>;
6115
6886
  }
6116
6887
  }
6117
6888
  }
@@ -6132,14 +6903,14 @@ declare global {
6132
6903
  declare module 'react' {
6133
6904
  namespace JSX {
6134
6905
  interface IntrinsicElements {
6135
- [tagName$g]: ReactProps$g & ReactBaseElementPropsWithChildren<Select>;
6906
+ [tagName$g]: Omit<ReactProps$g, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<Select>;
6136
6907
  }
6137
6908
  }
6138
6909
  }
6139
6910
  declare global {
6140
6911
  namespace JSX {
6141
6912
  interface IntrinsicElements {
6142
- [tagName$g]: ReactProps$g & ReactBaseElementPropsWithChildren<Select>;
6913
+ [tagName$g]: Omit<ReactProps$g, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<Select>;
6143
6914
  }
6144
6915
  }
6145
6916
  }
@@ -6286,28 +7057,28 @@ declare global {
6286
7057
  declare module 'react' {
6287
7058
  namespace JSX {
6288
7059
  interface IntrinsicElements {
6289
- [tagName$5]: ReactProps$5 & ReactBaseElementProps<TextArea>;
7060
+ [tagName$5]: Omit<ReactProps$5, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<TextArea>;
6290
7061
  }
6291
7062
  }
6292
7063
  }
6293
7064
  declare global {
6294
7065
  namespace JSX {
6295
7066
  interface IntrinsicElements {
6296
- [tagName$5]: ReactProps$5 & ReactBaseElementProps<TextArea>;
7067
+ [tagName$5]: Omit<ReactProps$5, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<TextArea>;
6297
7068
  }
6298
7069
  }
6299
7070
  }
6300
7071
  declare module 'react' {
6301
7072
  namespace JSX {
6302
7073
  interface IntrinsicElements {
6303
- [tagName$4]: Omit<ReactProps$4, 'accessory'> & ReactBaseElementProps<TextField>;
7074
+ [tagName$4]: Omit<ReactProps$4, 'accessory' | 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<TextField>;
6304
7075
  }
6305
7076
  }
6306
7077
  }
6307
7078
  declare global {
6308
7079
  namespace JSX {
6309
7080
  interface IntrinsicElements {
6310
- [tagName$4]: Omit<ReactProps$4, 'accessory'> & ReactBaseElementProps<TextField>;
7081
+ [tagName$4]: Omit<ReactProps$4, 'accessory' | 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementPropsWithChildren<TextField>;
6311
7082
  }
6312
7083
  }
6313
7084
  }
@@ -6342,14 +7113,14 @@ declare global {
6342
7113
  declare module 'react' {
6343
7114
  namespace JSX {
6344
7115
  interface IntrinsicElements {
6345
- [tagName$1]: ReactProps$1 & ReactBaseElementProps<URLField>;
7116
+ [tagName$1]: Omit<ReactProps$1, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<URLField>;
6346
7117
  }
6347
7118
  }
6348
7119
  }
6349
7120
  declare global {
6350
7121
  namespace JSX {
6351
7122
  interface IntrinsicElements {
6352
- [tagName$1]: ReactProps$1 & ReactBaseElementProps<URLField>;
7123
+ [tagName$1]: Omit<ReactProps$1, 'error' | 'details'> & FieldSlotPreactProps & ReactBaseElementProps<URLField>;
6353
7124
  }
6354
7125
  }
6355
7126
  }