@shopify/ui-extensions 2025.10.3 → 2025.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Banner.d.ts +6 -2
- package/build/ts/surfaces/admin/components/Box.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Button.d.ts +6 -2
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +6 -2
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +6 -2
- package/build/ts/surfaces/admin/components/Choice.d.ts +10 -2
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +8 -2
- package/build/ts/surfaces/admin/components/Clickable.d.ts +6 -2
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +47 -4
- package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DropZone.d.ts +183 -0
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +7 -2
- package/build/ts/surfaces/admin/components/GridItem.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Heading.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +6 -2
- package/build/ts/surfaces/admin/components/ListItem.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Menu.d.ts +9 -2
- package/build/ts/surfaces/admin/components/Modal.d.ts +6 -2
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Option.d.ts +7 -2
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +9 -2
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +9 -2
- package/build/ts/surfaces/admin/components/Page.d.ts +6 -2
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +7 -2
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +7 -2
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Select.d.ts +8 -2
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +7 -2
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +6 -2
- package/build/ts/surfaces/admin/components/TableBody.d.ts +7 -2
- package/build/ts/surfaces/admin/components/TableCell.d.ts +7 -2
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +7 -2
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +7 -2
- package/build/ts/surfaces/admin/components/TableRow.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Text.d.ts +7 -2
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +7 -2
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +9 -2
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +9 -2
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/footerHelp.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/footerHelp.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts +2 -2
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/resourceList.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/resourceList.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +31 -4
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +1 -0
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +7 -2
- package/src/surfaces/admin/components/Banner.d.ts +6 -2
- package/src/surfaces/admin/components/Box.d.ts +7 -2
- package/src/surfaces/admin/components/Button.d.ts +6 -2
- package/src/surfaces/admin/components/ButtonGroup.d.ts +6 -2
- package/src/surfaces/admin/components/Checkbox/examples/indeterminate-state.jsx +6 -6
- package/src/surfaces/admin/components/Checkbox/examples/validation-example.jsx +3 -3
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +6 -2
- package/src/surfaces/admin/components/Choice.d.ts +10 -2
- package/src/surfaces/admin/components/ChoiceList/examples/validation-example.jsx +1 -1
- package/src/surfaces/admin/components/ChoiceList.d.ts +8 -2
- package/src/surfaces/admin/components/Clickable.d.ts +6 -2
- package/src/surfaces/admin/components/ClickableChip.d.ts +47 -4
- package/src/surfaces/admin/components/ColorField/examples/validation-example.jsx +4 -4
- package/src/surfaces/admin/components/ColorField.d.ts +1 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/src/surfaces/admin/components/DateField/examples/validation-example.jsx +3 -3
- package/src/surfaces/admin/components/DateField.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker/examples/analytics-dashboard.html +1 -1
- package/src/surfaces/admin/components/DatePicker/examples/analytics-dashboard.jsx +3 -3
- package/src/surfaces/admin/components/DatePicker/examples/form-integration.jsx +2 -2
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/DropZone/examples/default.jsx +3 -3
- package/src/surfaces/admin/components/DropZone.d.ts +183 -0
- package/src/surfaces/admin/components/EmailField/examples/validation-example.jsx +3 -3
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +7 -2
- package/src/surfaces/admin/components/GridItem.d.ts +7 -2
- package/src/surfaces/admin/components/Heading.d.ts +7 -2
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +1 -1
- package/src/surfaces/admin/components/Link.d.ts +6 -2
- package/src/surfaces/admin/components/ListItem.d.ts +7 -2
- package/src/surfaces/admin/components/Menu/examples/menu-with-links-and-disabled-items.jsx +1 -1
- package/src/surfaces/admin/components/Menu.d.ts +9 -2
- package/src/surfaces/admin/components/Modal/examples/form-modal.html +2 -3
- package/src/surfaces/admin/components/Modal/examples/form-modal.jsx +1 -2
- package/src/surfaces/admin/components/Modal.d.ts +6 -2
- package/src/surfaces/admin/components/MoneyField/examples/basic-field.jsx +1 -1
- package/src/surfaces/admin/components/MoneyField/examples/basic-usage.html +0 -1
- package/src/surfaces/admin/components/MoneyField/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/MoneyField/examples/currency-formatting-with-form-integration.html +0 -3
- package/src/surfaces/admin/components/MoneyField/examples/currency-formatting-with-form-integration.jsx +4 -7
- package/src/surfaces/admin/components/MoneyField/examples/validation-example.jsx +4 -5
- package/src/surfaces/admin/components/MoneyField/examples/with-validation-limits.html +0 -1
- package/src/surfaces/admin/components/MoneyField/examples/with-validation-limits.jsx +0 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField/examples/basic-usage.jsx +1 -1
- package/src/surfaces/admin/components/NumberField/examples/default.jsx +1 -1
- package/src/surfaces/admin/components/NumberField/examples/multiple-examples.jsx +4 -4
- package/src/surfaces/admin/components/NumberField/examples/with-prefix-and-suffix.jsx +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- package/src/surfaces/admin/components/Option.d.ts +7 -2
- package/src/surfaces/admin/components/OptionGroup.d.ts +9 -2
- package/src/surfaces/admin/components/OrderedList.d.ts +9 -2
- package/src/surfaces/admin/components/Page/examples/large-inline-size-for-wide-content.jsx +1 -1
- package/src/surfaces/admin/components/Page/examples/page-with-heading.jsx +1 -1
- package/src/surfaces/admin/components/Page/examples/small-inline-size-for-focused-content.jsx +1 -1
- package/src/surfaces/admin/components/Page.d.ts +6 -2
- package/src/surfaces/admin/components/Paragraph.d.ts +7 -2
- package/src/surfaces/admin/components/PasswordField/examples/in-form-layout.html +2 -3
- package/src/surfaces/admin/components/PasswordField/examples/in-form-layout.jsx +2 -3
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/Popover/examples/notifications.html +3 -3
- package/src/surfaces/admin/components/Popover/examples/notifications.jsx +3 -3
- package/src/surfaces/admin/components/Popover/examples/table-display-options.html +2 -2
- package/src/surfaces/admin/components/Popover/examples/table-display-options.jsx +3 -7
- package/src/surfaces/admin/components/QueryContainer.d.ts +7 -2
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +7 -2
- package/src/surfaces/admin/components/Select/examples/default.jsx +5 -5
- package/src/surfaces/admin/components/Select.d.ts +8 -2
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +7 -2
- package/src/surfaces/admin/components/StandardComponents.ts +1 -0
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table/examples/default.html +12 -8
- package/src/surfaces/admin/components/Table/examples/default.jsx +13 -9
- package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.html +2 -2
- package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.jsx +2 -2
- package/src/surfaces/admin/components/Table/examples/{advanced-table-with-all-list-slot-types.html → list-variant.html} +16 -6
- package/src/surfaces/admin/components/Table/examples/{advanced-table-with-all-list-slot-types.jsx → list-variant.jsx} +3 -3
- package/src/surfaces/admin/components/Table/examples/with-loading-state.html +26 -3
- package/src/surfaces/admin/components/Table/examples/with-loading-state.jsx +27 -4
- package/src/surfaces/admin/components/Table/examples/with-pagination.html +1 -1
- package/src/surfaces/admin/components/Table/examples/with-pagination.jsx +1 -1
- package/src/surfaces/admin/components/Table.d.ts +6 -2
- package/src/surfaces/admin/components/TableBody.d.ts +7 -2
- package/src/surfaces/admin/components/TableCell.d.ts +7 -2
- package/src/surfaces/admin/components/TableHeader.d.ts +7 -2
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +7 -2
- package/src/surfaces/admin/components/TableRow.d.ts +7 -2
- package/src/surfaces/admin/components/Text.d.ts +7 -2
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField/examples/with-accessory.html +2 -4
- package/src/surfaces/admin/components/TextField/examples/with-accessory.jsx +6 -6
- package/src/surfaces/admin/components/TextField.d.ts +7 -2
- package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/src/surfaces/admin/components/Tooltip.d.ts +9 -2
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +9 -2
- package/src/surfaces/admin/components/patterns/examples/appCard.html +0 -1
- package/src/surfaces/admin/components/patterns/examples/appCard.jsx +0 -1
- package/src/surfaces/admin/components/patterns/examples/details.jsx +20 -28
- package/src/surfaces/admin/components/patterns/examples/emptyState.html +1 -0
- package/src/surfaces/admin/components/patterns/examples/emptyState.jsx +1 -0
- package/src/surfaces/admin/components/patterns/examples/footerHelp.html +3 -0
- package/src/surfaces/admin/components/patterns/examples/footerHelp.jsx +3 -0
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +22 -35
- package/src/surfaces/admin/components/patterns/examples/index.html +1 -0
- package/src/surfaces/admin/components/patterns/examples/index.jsx +7 -14
- package/src/surfaces/admin/components/patterns/examples/indexTable.html +3 -0
- package/src/surfaces/admin/components/patterns/examples/indexTable.jsx +3 -0
- package/src/surfaces/admin/components/patterns/examples/mediaCard.html +1 -1
- package/src/surfaces/admin/components/patterns/examples/mediaCard.jsx +1 -1
- package/src/surfaces/admin/components/patterns/examples/metricsCard.jsx +1 -1
- package/src/surfaces/admin/components/patterns/examples/resourceList.html +58 -0
- package/src/surfaces/admin/components/patterns/examples/resourceList.jsx +58 -0
- package/src/surfaces/admin/components/patterns/examples/settings.jsx +11 -19
- package/src/surfaces/admin/components/patterns/examples/setupGuide.jsx +1 -3
- package/src/surfaces/admin/components/patterns/index.ab.doc.ts +6 -6
- package/src/surfaces/admin/components/shared.d.ts +31 -4
- package/src/surfaces/admin/components/using-polaris-web-components/examples/html-forms.html +1 -1
- package/src/surfaces/admin/components.d.ts +48 -11
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -139,7 +139,12 @@ declare module 'preact' {
|
|
|
139
139
|
declare const tagName = 's-badge';
|
|
140
140
|
export interface BadgeJSXProps
|
|
141
141
|
extends Partial<BadgeProps>,
|
|
142
|
-
Pick<BadgeProps$1, 'id'> {
|
|
142
|
+
Pick<BadgeProps$1, 'id' | 'children'> {
|
|
143
|
+
/**
|
|
144
|
+
* The content of the Badge.
|
|
145
|
+
*/
|
|
146
|
+
children?: ComponentChildren;
|
|
147
|
+
}
|
|
143
148
|
|
|
144
149
|
export {Badge};
|
|
145
150
|
export type {BadgeJSXProps};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -129,7 +129,11 @@ declare module 'preact' {
|
|
|
129
129
|
declare const tagName = 's-banner';
|
|
130
130
|
export interface BannerJSXProps
|
|
131
131
|
extends Partial<BannerProps>,
|
|
132
|
-
Pick<BannerProps$1, 'id'> {
|
|
132
|
+
Pick<BannerProps$1, 'id' | 'children'> {
|
|
133
|
+
/**
|
|
134
|
+
* The content of the Banner.
|
|
135
|
+
*/
|
|
136
|
+
children?: ComponentChildren;
|
|
133
137
|
/**
|
|
134
138
|
* The secondary actions to display at the bottom of the Banner.
|
|
135
139
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -382,7 +382,12 @@ declare module 'preact' {
|
|
|
382
382
|
declare const tagName = 's-box';
|
|
383
383
|
export interface BoxJSXProps
|
|
384
384
|
extends Partial<BoxProps>,
|
|
385
|
-
Pick<BoxProps$1, 'id'> {
|
|
385
|
+
Pick<BoxProps$1, 'id' | 'children'> {
|
|
386
|
+
/**
|
|
387
|
+
* The content of the Box.
|
|
388
|
+
*/
|
|
389
|
+
children?: ComponentChildren;
|
|
390
|
+
}
|
|
386
391
|
|
|
387
392
|
export {Box};
|
|
388
393
|
export type {BoxJSXProps};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -208,7 +208,11 @@ declare module 'preact' {
|
|
|
208
208
|
declare const tagName = 's-button';
|
|
209
209
|
export interface ButtonJSXProps
|
|
210
210
|
extends Partial<ButtonProps>,
|
|
211
|
-
Pick<ButtonProps$1, 'id'> {
|
|
211
|
+
Pick<ButtonProps$1, 'id' | 'children'> {
|
|
212
|
+
/**
|
|
213
|
+
* The content of the Button.
|
|
214
|
+
*/
|
|
215
|
+
children?: ComponentChildren;
|
|
212
216
|
onClick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
213
217
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
214
218
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -114,7 +114,11 @@ declare module 'preact' {
|
|
|
114
114
|
declare const tagName = 's-button-group';
|
|
115
115
|
export interface ButtonGroupJSXProps
|
|
116
116
|
extends Partial<ButtonGroupProps>,
|
|
117
|
-
Pick<ButtonGroupProps$1, 'id'> {
|
|
117
|
+
Pick<ButtonGroupProps$1, 'id' | 'children'> {
|
|
118
|
+
/**
|
|
119
|
+
* The content of the ButtonGroup.
|
|
120
|
+
*/
|
|
121
|
+
children?: ComponentChildren;
|
|
118
122
|
/**
|
|
119
123
|
* The primary action button for the group.
|
|
120
124
|
* Accepts a single Button element with a `variant` of `primary`.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
const [selectedItems, setSelectedItems] = useState([]);
|
|
2
2
|
const items = ['Item 1', 'Item 2', 'Item 3'];
|
|
3
3
|
|
|
4
|
-
const toggleItem = (value, checked) => setSelectedItems(
|
|
4
|
+
const toggleItem = (value, checked) => setSelectedItems(checked ? [...selectedItems, value] : selectedItems.filter(item => item !== value));
|
|
5
5
|
const toggleAll = (checked) => setSelectedItems(checked ? items : []);
|
|
6
6
|
const isSelected = (item) => selectedItems.includes(item);
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
9
|
<s-stack gap="small">
|
|
10
|
-
<s-checkbox
|
|
11
|
-
label="Select all items"
|
|
12
|
-
indeterminate={selectedItems.length
|
|
10
|
+
<s-checkbox
|
|
11
|
+
label="Select all items"
|
|
12
|
+
indeterminate={selectedItems.length !== 0 && selectedItems.length !== items.length}
|
|
13
13
|
checked={selectedItems.length === items.length}
|
|
14
|
-
onChange={e => toggleAll(e.
|
|
14
|
+
onChange={e => toggleAll(e.currentTarget.checked)}
|
|
15
15
|
/>
|
|
16
16
|
<s-divider />
|
|
17
17
|
{items.map(i => (
|
|
18
|
-
<s-checkbox key={i} label={i} checked={isSelected(i)} onChange={e => toggleItem(i, e.
|
|
18
|
+
<s-checkbox key={i} label={i} checked={isSelected(i)} onChange={e => toggleItem(i, e.currentTarget.checked)} />
|
|
19
19
|
))}
|
|
20
20
|
</s-stack>
|
|
21
21
|
);
|
|
@@ -4,15 +4,15 @@ const [error, setError] = useState(errorMessage);
|
|
|
4
4
|
|
|
5
5
|
return (
|
|
6
6
|
<s-section>
|
|
7
|
-
<s-stack gap="base"
|
|
7
|
+
<s-stack gap="base" justifyContent="start">
|
|
8
8
|
<s-text-field label="Name" />
|
|
9
9
|
<s-checkbox
|
|
10
10
|
label="I agree to the terms"
|
|
11
11
|
checked={checked}
|
|
12
12
|
error={error}
|
|
13
13
|
onChange={(e) => {
|
|
14
|
-
setChecked(e.
|
|
15
|
-
setError(e.
|
|
14
|
+
setChecked(e.currentTarget.checked);
|
|
15
|
+
setError(e.currentTarget.checked ? '' : errorMessage);
|
|
16
16
|
}}
|
|
17
17
|
/>
|
|
18
18
|
</s-stack>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -108,7 +108,11 @@ declare module 'preact' {
|
|
|
108
108
|
declare const tagName = 's-chip';
|
|
109
109
|
export interface ChipJSXProps
|
|
110
110
|
extends Partial<ChipProps>,
|
|
111
|
-
Pick<ChipProps$1, 'id'> {
|
|
111
|
+
Pick<ChipProps$1, 'id' | 'children'> {
|
|
112
|
+
/**
|
|
113
|
+
* The content of the Chip.
|
|
114
|
+
*/
|
|
115
|
+
children?: ComponentChildren;
|
|
112
116
|
/**
|
|
113
117
|
* The graphic to display in the chip.
|
|
114
118
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -125,7 +125,15 @@ declare module 'preact' {
|
|
|
125
125
|
declare const tagName = 's-choice';
|
|
126
126
|
export interface ChoiceJSXProps
|
|
127
127
|
extends Partial<ChoiceProps>,
|
|
128
|
-
Pick<ChoiceProps$1, 'id' | 'details'> {
|
|
128
|
+
Pick<ChoiceProps$1, 'id' | 'children' | 'details'> {
|
|
129
|
+
/**
|
|
130
|
+
* Content to use as the choice label.
|
|
131
|
+
*
|
|
132
|
+
* The label is produced by extracting and
|
|
133
|
+
* concatenating the text nodes from the provided content;
|
|
134
|
+
* any markup or element structure is ignored.
|
|
135
|
+
*/
|
|
136
|
+
children?: ComponentChildren;
|
|
129
137
|
/**
|
|
130
138
|
* Additional text to provide context or guidance for the input.
|
|
131
139
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -150,7 +150,13 @@ declare module 'preact' {
|
|
|
150
150
|
declare const tagName = 's-choice-list';
|
|
151
151
|
export interface ChoiceListJSXProps
|
|
152
152
|
extends Partial<ChoiceListProps>,
|
|
153
|
-
Pick<ChoiceListProps$1, 'id'> {
|
|
153
|
+
Pick<ChoiceListProps$1, 'id' | 'children'> {
|
|
154
|
+
/**
|
|
155
|
+
* The choices a user can select from.
|
|
156
|
+
*
|
|
157
|
+
* Accepts `Choice` components.
|
|
158
|
+
*/
|
|
159
|
+
children?: ComponentChildren;
|
|
154
160
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
155
161
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
156
162
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -455,7 +455,11 @@ declare module 'preact' {
|
|
|
455
455
|
declare const tagName = 's-clickable';
|
|
456
456
|
export interface ClickableJSXProps
|
|
457
457
|
extends Partial<ClickableProps>,
|
|
458
|
-
Pick<ClickableProps$1, 'id'> {
|
|
458
|
+
Pick<ClickableProps$1, 'id' | 'children'> {
|
|
459
|
+
/**
|
|
460
|
+
* The content of the Clickable.
|
|
461
|
+
*/
|
|
462
|
+
children?: ComponentChildren;
|
|
459
463
|
onClick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
460
464
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
461
465
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.25.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {
|
|
9
|
+
import type {
|
|
10
|
+
ComponentChildren,
|
|
11
|
+
ClickableChipProps$1,
|
|
12
|
+
InteractionProps,
|
|
13
|
+
} from './shared.d.ts';
|
|
10
14
|
|
|
11
15
|
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
12
16
|
currentTarget: HTMLElementTagNameMap[T];
|
|
@@ -41,6 +45,9 @@ export interface ClickableChipProps
|
|
|
41
45
|
| 'hidden'
|
|
42
46
|
| 'href'
|
|
43
47
|
| 'disabled'
|
|
48
|
+
| 'command'
|
|
49
|
+
| 'commandFor'
|
|
50
|
+
| 'interestFor'
|
|
44
51
|
>
|
|
45
52
|
> {}
|
|
46
53
|
|
|
@@ -104,8 +111,40 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
104
111
|
click({sourceEvent}?: ClickOptions): void;
|
|
105
112
|
}
|
|
106
113
|
|
|
114
|
+
export interface PreactOverlayControlProps
|
|
115
|
+
extends Pick<InteractionProps, 'commandFor' | 'interestFor'> {
|
|
116
|
+
/**
|
|
117
|
+
* Sets the action the [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this clickable is activated.
|
|
118
|
+
*
|
|
119
|
+
* See the documentation of particular components for the actions they support.
|
|
120
|
+
*
|
|
121
|
+
* - `--auto`: a default action for the target component.
|
|
122
|
+
* - `--show`: shows the target component.
|
|
123
|
+
* - `--hide`: hides the target component.
|
|
124
|
+
* - `--toggle`: toggles the target component.
|
|
125
|
+
*
|
|
126
|
+
* @default '--auto'
|
|
127
|
+
*/
|
|
128
|
+
command: Extract<
|
|
129
|
+
InteractionProps['command'],
|
|
130
|
+
'--show' | '--hide' | '--toggle' | '--auto'
|
|
131
|
+
>;
|
|
132
|
+
/**
|
|
133
|
+
* Sets the element the [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this clickable is activated.
|
|
134
|
+
*/
|
|
135
|
+
commandFor: Extract<InteractionProps['commandFor'], string>;
|
|
136
|
+
/**
|
|
137
|
+
* Sets the element the [interestFor](https://open-ui.org/components/interest-invokers.explainer/#the-pitch-in-code) should act on when this clickable is activated.
|
|
138
|
+
*/
|
|
139
|
+
interestFor: Extract<InteractionProps['interestFor'], string>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare const ClickableChip_base: (abstract new (
|
|
143
|
+
args_0: RenderImpl,
|
|
144
|
+
) => PreactCustomElement & PreactOverlayControlProps) &
|
|
145
|
+
Pick<typeof PreactCustomElement, 'prototype' | 'observedAttributes'>;
|
|
107
146
|
declare class ClickableChip
|
|
108
|
-
extends
|
|
147
|
+
extends ClickableChip_base
|
|
109
148
|
implements ClickableChipProps
|
|
110
149
|
{
|
|
111
150
|
accessor color: ClickableChipProps['color'];
|
|
@@ -136,7 +175,11 @@ declare module 'preact' {
|
|
|
136
175
|
declare const tagName = 's-clickable-chip';
|
|
137
176
|
export interface ClickableChipJSXProps
|
|
138
177
|
extends Partial<ClickableChipProps>,
|
|
139
|
-
Pick<ClickableChipProps$1, 'id'> {
|
|
178
|
+
Pick<ClickableChipProps$1, 'id' | 'children'> {
|
|
179
|
+
/**
|
|
180
|
+
* The content of the clickable chip.
|
|
181
|
+
*/
|
|
182
|
+
children?: ComponentChildren;
|
|
140
183
|
/**
|
|
141
184
|
* The graphic to display in the clickable chip.
|
|
142
185
|
*
|
|
@@ -3,7 +3,7 @@ const [error, setError] = useState('Please enter a valid color format');
|
|
|
3
3
|
|
|
4
4
|
return (
|
|
5
5
|
<s-section>
|
|
6
|
-
<s-stack gap="base"
|
|
6
|
+
<s-stack gap="base" justifyContent="start">
|
|
7
7
|
<s-text-field label="Theme name" />
|
|
8
8
|
<s-color-field
|
|
9
9
|
label="Brand color"
|
|
@@ -11,9 +11,9 @@ return (
|
|
|
11
11
|
value={color}
|
|
12
12
|
error={error}
|
|
13
13
|
required
|
|
14
|
-
|
|
15
|
-
setColor(e.
|
|
16
|
-
setError(/^#([0-9A-F]{3}){1,2}$/i.test(e.
|
|
14
|
+
onInput={(e) => {
|
|
15
|
+
setColor(e.currentTarget.value);
|
|
16
|
+
setError(/^#([0-9A-F]{3}){1,2}$/i.test(e.currentTarget.value) ? '' : 'Please enter a valid color format');
|
|
17
17
|
}}
|
|
18
18
|
/>
|
|
19
19
|
</s-stack>
|
|
@@ -3,7 +3,7 @@ const [error, setError] = useState('Event date is required');
|
|
|
3
3
|
|
|
4
4
|
return (
|
|
5
5
|
<s-section>
|
|
6
|
-
<s-stack gap="base"
|
|
6
|
+
<s-stack gap="base" justifyContent="start">
|
|
7
7
|
<s-text-field label="Event name" />
|
|
8
8
|
<s-date-field
|
|
9
9
|
label="Event date"
|
|
@@ -11,8 +11,8 @@ return (
|
|
|
11
11
|
error={error}
|
|
12
12
|
required
|
|
13
13
|
onChange={(e) => {
|
|
14
|
-
setDate(e.
|
|
15
|
-
setError(e.
|
|
14
|
+
setDate(e.currentTarget.value);
|
|
15
|
+
setError(e.currentTarget.value ? '' : 'Event date is required');
|
|
16
16
|
}}
|
|
17
17
|
/>
|
|
18
18
|
</s-stack>
|
|
@@ -26,10 +26,10 @@ return (
|
|
|
26
26
|
view="2025-01"
|
|
27
27
|
value={value}
|
|
28
28
|
onChange={(event) => {
|
|
29
|
-
console.log('Date range changed:', event.
|
|
30
|
-
setValue(event.
|
|
29
|
+
console.log('Date range changed:', event.currentTarget.value);
|
|
30
|
+
setValue(event.currentTarget.value);
|
|
31
31
|
}}
|
|
32
32
|
/>
|
|
33
|
-
<s-text
|
|
33
|
+
<s-text>Selected range: {value}</s-text>
|
|
34
34
|
</s-stack>
|
|
35
35
|
)
|
|
@@ -14,13 +14,13 @@ return (
|
|
|
14
14
|
label="Order number"
|
|
15
15
|
placeholder="Search orders..."
|
|
16
16
|
value={orderNumber}
|
|
17
|
-
onChange={(event) => setOrderNumber(event.
|
|
17
|
+
onChange={(event) => setOrderNumber(event.currentTarget.value)}
|
|
18
18
|
/>
|
|
19
19
|
<s-date-picker
|
|
20
20
|
type="range"
|
|
21
21
|
name="order-date-range"
|
|
22
22
|
value={dateRange}
|
|
23
|
-
onChange={(event) => setDateRange(event.
|
|
23
|
+
onChange={(event) => setDateRange(event.currentTarget.value)}
|
|
24
24
|
view="2024-01"
|
|
25
25
|
/>
|
|
26
26
|
<s-button onClick={handleApplyFilters}>Apply filters</s-button>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
accessibilityLabel="Upload image of type jpg, png, or gif"
|
|
4
4
|
accept=".jpg,.png,.gif"
|
|
5
5
|
multiple
|
|
6
|
-
onInput=
|
|
7
|
-
onChange=
|
|
8
|
-
onDropRejected=
|
|
6
|
+
onInput={(event) => console.log('onInput', event.currentTarget?.value)}
|
|
7
|
+
onChange={(event) => console.log('onChange', event.currentTarget?.value)}
|
|
8
|
+
onDropRejected={(event) => console.log('onDropRejected', event.currentTarget?.value)}
|
|
9
9
|
/>
|