-
Notifications
You must be signed in to change notification settings - Fork 218
Cherry pick wordpress-components components to remove the dependency #8421
Conversation
…les into frontend build
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
assets/js/atomic/blocks/product-elements/add-to-cart/product-types/variable/variation-attributes/attribute-picker.tsx
assets/js/atomic/blocks/product-elements/add-to-cart/product-types/variable/variation-attributes/attribute-select-control.tsx assets/js/base/wordpress-components/alignment-matrix-control/cell.js assets/js/base/wordpress-components/alignment-matrix-control/icon.js assets/js/base/wordpress-components/alignment-matrix-control/index.js assets/js/base/wordpress-components/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js assets/js/base/wordpress-components/alignment-matrix-control/styles/alignment-matrix-control-styles.js assets/js/base/wordpress-components/alignment-matrix-control/utils.js assets/js/base/wordpress-components/angle-picker-control/angle-circle.js assets/js/base/wordpress-components/angle-picker-control/index.js assets/js/base/wordpress-components/autocomplete/autocompleter-ui.js assets/js/base/wordpress-components/autocomplete/get-default-use-items.js assets/js/base/wordpress-components/autocomplete/index.js assets/js/base/wordpress-components/base-control/index.js assets/js/base/wordpress-components/base-field/hook.js assets/js/base/wordpress-components/box-control/all-input-control.js assets/js/base/wordpress-components/box-control/axial-input-controls.js assets/js/base/wordpress-components/box-control/icon.js assets/js/base/wordpress-components/box-control/index.js assets/js/base/wordpress-components/box-control/input-controls.js assets/js/base/wordpress-components/box-control/linked-button.js assets/js/base/wordpress-components/box-control/styles/box-control-icon-styles.js assets/js/base/wordpress-components/box-control/styles/box-control-styles.js assets/js/base/wordpress-components/box-control/styles/box-control-visualizer-styles.js assets/js/base/wordpress-components/box-control/unit-control.js assets/js/base/wordpress-components/box-control/utils.js assets/js/base/wordpress-components/box-control/visualizer.js assets/js/base/wordpress-components/button-group/index.js assets/js/base/wordpress-components/button/deprecated.js assets/js/base/wordpress-components/button/index.js assets/js/base/wordpress-components/card/card-body/component.js assets/js/base/wordpress-components/card/card-body/hook.js assets/js/base/wordpress-components/card/card-divider/hook.js assets/js/base/wordpress-components/card/card-footer/component.js assets/js/base/wordpress-components/card/card-footer/hook.js assets/js/base/wordpress-components/card/card-header/component.js assets/js/base/wordpress-components/card/card-header/hook.js assets/js/base/wordpress-components/card/card-media/hook.js assets/js/base/wordpress-components/card/card/component.js assets/js/base/wordpress-components/card/card/hook.js assets/js/base/wordpress-components/checkbox-control/index.js assets/js/base/wordpress-components/circular-option-picker/index.js assets/js/base/wordpress-components/clipboard-button/index.js assets/js/base/wordpress-components/color-edit/index.js assets/js/base/wordpress-components/color-indicator/index.js assets/js/base/wordpress-components/color-list-picker/index.js assets/js/base/wordpress-components/color-palette/index.js assets/js/base/wordpress-components/color-picker/alpha.js assets/js/base/wordpress-components/color-picker/hue.js assets/js/base/wordpress-components/color-picker/index.js assets/js/base/wordpress-components/color-picker/inputs.js assets/js/base/wordpress-components/color-picker/saturation.js assets/js/base/wordpress-components/color-picker/utils.js assets/js/base/wordpress-components/combobox-control/index.js assets/js/base/wordpress-components/custom-gradient-bar/control-points.js assets/js/base/wordpress-components/custom-gradient-bar/index.js assets/js/base/wordpress-components/custom-gradient-bar/utils.js assets/js/base/wordpress-components/custom-gradient-picker/index.js assets/js/base/wordpress-components/custom-gradient-picker/serializer.js assets/js/base/wordpress-components/custom-gradient-picker/utils.js assets/js/base/wordpress-components/custom-select-control/index.js assets/js/base/wordpress-components/date-time/date.js assets/js/base/wordpress-components/date-time/index.js assets/js/base/wordpress-components/date-time/time.js assets/js/base/wordpress-components/date-time/timezone.js assets/js/base/wordpress-components/dimension-control/index.js assets/js/base/wordpress-components/dimension-control/sizes.js assets/js/base/wordpress-components/disabled/index.js assets/js/base/wordpress-components/divider/component.tsx assets/js/base/wordpress-components/draggable/index.js assets/js/base/wordpress-components/drop-zone/index.js assets/js/base/wordpress-components/drop-zone/provider.js assets/js/base/wordpress-components/dropdown-menu/index.js assets/js/base/wordpress-components/dropdown/index.js assets/js/base/wordpress-components/duotone-picker/custom-duotone-bar.js assets/js/base/wordpress-components/duotone-picker/duotone-picker.js assets/js/base/wordpress-components/duotone-picker/duotone-swatch.js assets/js/base/wordpress-components/duotone-picker/utils.js assets/js/base/wordpress-components/elevation/hook.js assets/js/base/wordpress-components/external-link/index.js assets/js/base/wordpress-components/flex/flex-block/hook.js assets/js/base/wordpress-components/flex/flex-item/hook.js assets/js/base/wordpress-components/flex/flex/component.js assets/js/base/wordpress-components/flex/flex/hook.js assets/js/base/wordpress-components/flyout/flyout-content/component.js assets/js/base/wordpress-components/flyout/flyout/component.js assets/js/base/wordpress-components/flyout/flyout/hook.js assets/js/base/wordpress-components/focusable-iframe/index.js assets/js/base/wordpress-components/font-size-picker/index.js assets/js/base/wordpress-components/form-file-upload/index.js assets/js/base/wordpress-components/form-toggle/index.js assets/js/base/wordpress-components/form-token-field/index.js assets/js/base/wordpress-components/form-token-field/suggestions-list.js assets/js/base/wordpress-components/form-token-field/token-input.js assets/js/base/wordpress-components/form-token-field/token.js assets/js/base/wordpress-components/gradient-picker/index.js assets/js/base/wordpress-components/grid/hook.js assets/js/base/wordpress-components/guide/finish-button.js assets/js/base/wordpress-components/guide/icons.js assets/js/base/wordpress-components/guide/index.js assets/js/base/wordpress-components/guide/page-control.js assets/js/base/wordpress-components/guide/page.js assets/js/base/wordpress-components/h-stack/hook.js assets/js/base/wordpress-components/heading/hook.ts assets/js/base/wordpress-components/higher-order/navigate-regions/index.js assets/js/base/wordpress-components/higher-order/with-constrained-tabbing/index.js assets/js/base/wordpress-components/higher-order/with-fallback-styles/index.js assets/js/base/wordpress-components/higher-order/with-filters/index.js assets/js/base/wordpress-components/higher-order/with-focus-outside/index.js assets/js/base/wordpress-components/higher-order/with-focus-return/index.js assets/js/base/wordpress-components/higher-order/with-notices/index.js assets/js/base/wordpress-components/higher-order/with-spoken-messages/index.js assets/js/base/wordpress-components/icon/index.tsx assets/js/base/wordpress-components/input-control/index.js assets/js/base/wordpress-components/input-control/input-base.js assets/js/base/wordpress-components/input-control/input-field.js assets/js/base/wordpress-components/input-control/label.js assets/js/base/wordpress-components/input-control/state.js assets/js/base/wordpress-components/input-control/styles/input-control-styles.js assets/js/base/wordpress-components/input-control/utils.js assets/js/base/wordpress-components/isolated-event-container/index.js assets/js/base/wordpress-components/keyboard-shortcuts/index.js assets/js/base/wordpress-components/menu-group/index.js assets/js/base/wordpress-components/menu-item/index.js assets/js/base/wordpress-components/menu-items-choice/index.js assets/js/base/wordpress-components/modal/aria-helper.js assets/js/base/wordpress-components/modal/frame.js assets/js/base/wordpress-components/modal/header.js assets/js/base/wordpress-components/modal/index.js assets/js/base/wordpress-components/navigable-container/container.js assets/js/base/wordpress-components/navigable-container/menu.js assets/js/base/wordpress-components/navigable-container/tabbable.js assets/js/base/wordpress-components/navigation/back-button/index.js assets/js/base/wordpress-components/navigation/group/index.js assets/js/base/wordpress-components/navigation/index.js assets/js/base/wordpress-components/navigation/item/base-content.js assets/js/base/wordpress-components/navigation/item/base.js assets/js/base/wordpress-components/navigation/item/index.js assets/js/base/wordpress-components/navigation/item/use-navigation-tree-item.js assets/js/base/wordpress-components/navigation/menu/index.js assets/js/base/wordpress-components/navigation/menu/menu-title-search.js assets/js/base/wordpress-components/navigation/menu/menu-title.js assets/js/base/wordpress-components/navigation/menu/search-no-results-found.js assets/js/base/wordpress-components/navigation/menu/use-navigation-tree-menu.js assets/js/base/wordpress-components/navigation/styles/navigation-styles.js assets/js/base/wordpress-components/navigation/use-create-navigation-tree.js assets/js/base/wordpress-components/navigation/use-navigation-tree-nodes.js assets/js/base/wordpress-components/navigation/utils.js assets/js/base/wordpress-components/notice/index.js assets/js/base/wordpress-components/notice/list.js assets/js/base/wordpress-components/number-control/index.js assets/js/base/wordpress-components/number-control/styles/number-control-styles.js assets/js/base/wordpress-components/panel/body.js assets/js/base/wordpress-components/panel/header.js assets/js/base/wordpress-components/panel/index.js assets/js/base/wordpress-components/panel/row.js assets/js/base/wordpress-components/placeholder/index.js assets/js/base/wordpress-components/popover/index.js assets/js/base/wordpress-components/popover/utils.js assets/js/base/wordpress-components/query-controls/author-select.js assets/js/base/wordpress-components/query-controls/category-select.js assets/js/base/wordpress-components/query-controls/index.js assets/js/base/wordpress-components/query-controls/terms.js assets/js/base/wordpress-components/radio-control/index.js assets/js/base/wordpress-components/radio-group/index.js assets/js/base/wordpress-components/radio/index.js assets/js/base/wordpress-components/range-control/index.js assets/js/base/wordpress-components/range-control/input-range.js assets/js/base/wordpress-components/range-control/mark.js assets/js/base/wordpress-components/range-control/rail.js assets/js/base/wordpress-components/range-control/styles/range-control-styles.js assets/js/base/wordpress-components/range-control/tooltip.js assets/js/base/wordpress-components/range-control/utils.js assets/js/base/wordpress-components/resizable-box/index.js assets/js/base/wordpress-components/resizable-box/resize-tooltip/index.js assets/js/base/wordpress-components/resizable-box/resize-tooltip/label.js assets/js/base/wordpress-components/resizable-box/resize-tooltip/utils.js assets/js/base/wordpress-components/responsive-wrapper/index.js assets/js/base/wordpress-components/sandbox/index.js assets/js/base/wordpress-components/scrollable/hook.js assets/js/base/wordpress-components/search-control/index.js assets/js/base/wordpress-components/select-control/index.js assets/js/base/wordpress-components/select-control/styles/select-control-styles.js assets/js/base/wordpress-components/slot-fill/bubbles-virtually/fill.js assets/js/base/wordpress-components/slot-fill/bubbles-virtually/slot-fill-provider.js assets/js/base/wordpress-components/slot-fill/bubbles-virtually/slot.js assets/js/base/wordpress-components/slot-fill/bubbles-virtually/use-slot.js assets/js/base/wordpress-components/slot-fill/fill.js assets/js/base/wordpress-components/slot-fill/index.js assets/js/base/wordpress-components/slot-fill/provider.js assets/js/base/wordpress-components/slot-fill/slot.js assets/js/base/wordpress-components/slot-fill/use-slot.js assets/js/base/wordpress-components/snackbar/index.js assets/js/base/wordpress-components/snackbar/list.js assets/js/base/wordpress-components/spacer/hook.ts assets/js/base/wordpress-components/style-provider/index.js assets/js/base/wordpress-components/surface/hook.js assets/js/base/wordpress-components/swatch/index.js assets/js/base/wordpress-components/tab-panel/index.js assets/js/base/wordpress-components/text/hook.js assets/js/base/wordpress-components/text/types.ts assets/js/base/wordpress-components/text/utils.js assets/js/base/wordpress-components/textarea-control/index.js assets/js/base/wordpress-components/tip/index.js assets/js/base/wordpress-components/toggle-control/index.js assets/js/base/wordpress-components/toolbar-button/index.js assets/js/base/wordpress-components/toolbar-button/toolbar-button-container.js assets/js/base/wordpress-components/toolbar-context/index.js assets/js/base/wordpress-components/toolbar-dropdown-menu/index.js assets/js/base/wordpress-components/toolbar-group/index.js assets/js/base/wordpress-components/toolbar-group/toolbar-group-collapsed.js assets/js/base/wordpress-components/toolbar-group/toolbar-group-container.js assets/js/base/wordpress-components/toolbar-item/index.js assets/js/base/wordpress-components/toolbar/index.js assets/js/base/wordpress-components/toolbar/toolbar-container.js assets/js/base/wordpress-components/tooltip/index.js assets/js/base/wordpress-components/tree-grid/cell.js assets/js/base/wordpress-components/tree-grid/index.js assets/js/base/wordpress-components/tree-grid/item.js assets/js/base/wordpress-components/tree-grid/roving-tab-index-context.js assets/js/base/wordpress-components/tree-grid/roving-tab-index-item.js assets/js/base/wordpress-components/tree-grid/roving-tab-index.js assets/js/base/wordpress-components/tree-grid/row.js assets/js/base/wordpress-components/tree-select/index.js assets/js/base/wordpress-components/truncate/hook.js assets/js/base/wordpress-components/ui/__storybook-utils/example-grid.js assets/js/base/wordpress-components/ui/__storybook-utils/page.js assets/js/base/wordpress-components/ui/control-group/hook.js assets/js/base/wordpress-components/ui/control-label/hook.js assets/js/base/wordpress-components/ui/form-group/form-group-content.js assets/js/base/wordpress-components/ui/form-group/form-group-context.js assets/js/base/wordpress-components/ui/form-group/use-form-group.js assets/js/base/wordpress-components/ui/item-group/item-group.tsx assets/js/base/wordpress-components/ui/item-group/use-item-group.ts assets/js/base/wordpress-components/ui/item-group/use-item.ts assets/js/base/wordpress-components/ui/spinner/component.js assets/js/base/wordpress-components/ui/tooltip/component.js assets/js/base/wordpress-components/ui/tooltip/content.js assets/js/base/wordpress-components/unit-control/index.js assets/js/base/wordpress-components/unit-control/styles/unit-control-styles.js assets/js/base/wordpress-components/unit-control/unit-select-control.js assets/js/base/wordpress-components/unit-control/utils.js assets/js/base/wordpress-components/v-stack/hook.js assets/js/base/wordpress-components/z-stack/component.tsx assets/js/blocks/cart-checkout-shared/payment-methods/no-payment-methods/index.js assets/js/blocks/checkout/inner-blocks/checkout-shipping-methods-block/no-shipping-placeholder/index.js packages/checkout/components/store-notices-container/store-notices.tsx |
Size Change: +23.2 kB (+2%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
woocommerce-blocks/assets/js/base/wordpress-components/input-control/styles/input-control-styles.js Lines 180 to 192 in db5afe5
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
Lines 59 to 71 in db5afe5
🚀 This comment was generated by the automations bot based on a
|
…ssary by wordpress-components
Continue to update values as "G2" design evolves.Continue to update values as "G2" design evolves. "G2" refers to the movement to advance the interface of the block editor.github.com/WordPress/gutenberg/issues/18667
woocommerce-blocks/assets/js/base/wordpress-components/utils/colors-values.js Lines 17 to 31 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Refactor RangeControl with latest HStack configuration @w...Refactor RangeControl with latest HStack configuration @wordpress/components/ui/hstack
woocommerce-blocks/assets/js/base/wordpress-components/range-control/styles/range-control-styles.js Lines 273 to 285 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
, this unnamed div only shows up when plugins add to slots., this unnamed div only shows up when plugins add to slots. We should remove the fragment.
woocommerce-blocks/assets/js/base/wordpress-components/toolbar-group/style.scss Lines 107 to 119 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
woocommerce-blocks/assets/js/base/wordpress-components/input-control/styles/input-control-styles.js Lines 180 to 192 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
woocommerce-blocks/assets/js/base/wordpress-components/unit-control/styles/unit-control-styles.js Lines 37 to 49 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Refactor click detection to use blur to stop propagation.Refactor click detection to use blur to stop propagation. eslint-disable jsx-a11y/no-static-element-interactions *
woocommerce-blocks/assets/js/base/wordpress-components/combobox-control/index.js Lines 189 to 201 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
does this still apply now that it's a <ul> and not a <div>?does this still apply now that it's a <ul> and not a <div>?
woocommerce-blocks/assets/js/base/wordpress-components/form-token-field/suggestions-list.js Lines 94 to 105 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Refactor click detection to use blur to stop propagation.Refactor click detection to use blur to stop propagation. eslint-disable jsx-a11y/no-static-element-interactions *
woocommerce-blocks/assets/js/base/wordpress-components/form-token-field/index.js Lines 647 to 659 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
ideally this hook shouldn't be needed github.com/WordPres...ideally this hook shouldn't be needed github.com/WordPress/gutenberg/pull/31822#discussion_r633280823
woocommerce-blocks/assets/js/base/wordpress-components/unit-control/utils.js Lines 257 to 270 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
Lines 59 to 71 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
Lines 42 to 52 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
We should extract the tabs styles to the tabs component i...We should extract the tabs styles to the tabs component itself
🚀 This comment was generated by the automations bot based on a
|
We should remove this function ASAP.We should remove this function ASAP. It is kept because focus is lost when we click on the previous and next month buttons. This focus loss closes the date picker popover. Ideally we should add an upstream commit on react-dates to fix this issue.
woocommerce-blocks/assets/js/base/wordpress-components/date-time/date.js Lines 90 to 104 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
, this unnamed div only shows up when plugins add to slots., this unnamed div only shows up when plugins add to slots. We should remove the fragment.
woocommerce-blocks/assets/js/base/wordpress-components/toolbar-group/style.scss Lines 126 to 139 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
, this unnamed div only shows up when plugins add to slots., this unnamed div only shows up when plugins add to slots. We should remove the fragment.
woocommerce-blocks/assets/js/base/wordpress-components/toolbar-group/style.scss Lines 92 to 103 in 3ac8c70
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
woocommerce-blocks/assets/js/base/wordpress-components/input-control/styles/input-control-styles.js Lines 180 to 192 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
ideally this hook shouldn't be needed github.com/WordPres...ideally this hook shouldn't be needed github.com/WordPress/gutenberg/pull/31822#discussion_r633280823
woocommerce-blocks/assets/js/base/wordpress-components/unit-control/utils.js Lines 257 to 270 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
does this still apply now that it's a <ul> and not a <div>?does this still apply now that it's a <ul> and not a <div>?
woocommerce-blocks/assets/js/base/wordpress-components/form-token-field/suggestions-list.js Lines 94 to 105 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
Lines 42 to 52 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
woocommerce-blocks/assets/js/base/wordpress-components/unit-control/styles/unit-control-styles.js Lines 37 to 49 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
Continue to update values as "G2" design evolves.Continue to update values as "G2" design evolves. "G2" refers to the movement to advance the interface of the block editor.github.com/WordPress/gutenberg/issues/18667
woocommerce-blocks/assets/js/base/wordpress-components/utils/colors-values.js Lines 17 to 31 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
Resolve need to use &&& to increase specificity github.co...Resolve need to use &&& to increase specificity github.com/WordPress/gutenberg/issues/18483
Lines 59 to 71 in 11cc431
🚀 This comment was generated by the automations bot based on a
|
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
This path won't be pursuit. |
Fixes #
Accessibility
prefers-reduced-motion
Other Checks
Screenshots
Testing
Automated Tests
User Facing Testing
WooCommerce Visibility
Performance Impact
Changelog