Fernando Marichal
98162b9d42
Images Product management MVP 1.0 ( #34769 )
...
* Add image section
# Conflicts:
# plugins/woocommerce-admin/client/products/add-product-page.tsx
* Add `keepSpaceWhenDragging` to sortable
# Conflicts:
# packages/js/components/src/sortable/sortable-item.tsx
# packages/js/components/src/sortable/sortable.tsx
# Conflicts:
# packages/js/components/src/sortable/sortable.tsx
* Export ImageGalleryItem
* Add props to `image-gallery`
# Conflicts:
# packages/js/components/src/image-gallery/image-gallery-item.tsx
# packages/js/components/src/image-gallery/image-gallery.tsx
* Changed `media-uploader` label
* Add changelogs
* Fix image-gallery and sortable components
# Conflicts:
# packages/js/components/src/sortable/sortable-item.tsx
# packages/js/components/src/sortable/sortable.tsx
# Conflicts:
# packages/js/components/src/image-gallery/image-gallery.tsx
# packages/js/components/src/sortable/sortable.tsx
* Set gallery min-height
* Add onOrderChange
* Show images section edit-product
# Conflicts:
# plugins/woocommerce-admin/client/products/edit-product-page.tsx
# Conflicts:
# plugins/woocommerce-admin/client/products/edit-product-page.tsx
# Conflicts:
# plugins/woocommerce-admin/client/products/edit-product-page.tsx
* Fix styles
* Fix styles
* Fix image alt
* Fix TS any
* Add prop `onDragOver`
# Conflicts:
# packages/js/components/src/image-gallery/image-gallery.tsx
* Fix styles
* Fix padding
* Fix image area min-height
* Fix subtitle copy
* Fix image margin
* Change `draggedImageId`
* Fix `setDraggedImageId` reset
* Rename `isRemoveZoneVisible`
* Add `CardBody` and remove redundant `setValue`
* Fix card styles
* Remove `getUniqueImages`
* Use url as a key when there is no image id
* Fix `orderedImages`
* Add hover to gallery images
* Fix gallery arrows and set cover problems
* Altering blur handler to prevent toolbar closure on media modal
* Fix toolbar drag and drop
* Add replace fn
* Restoring modal class for blur function
* Fix storybook
* Ensuring onBlur doesn't happen while dragging, resolving issue in Firefox
* Adding expected event object to drag callbacks
* Fix image size
* Fix lint
* Another fix lint
* Update plugins/woocommerce-admin/client/products/sections/images-section.tsx
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
* Fix `draggedImageId` default value
* Fix toolbar icon style
* Rename consts
* Update pnpm-lock.yaml
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joel <dygerati@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-10-12 15:16:22 -03:00
Joel Thiessen
77700eb3cc
Adding toolbar to the Image Gallery component ( #34871 )
2022-10-05 12:07:03 -07:00
Joshua T Flowers
b65d473796
Add Sortable component accessibility ( #34539 )
...
* Add key event handlers
* Track selected item and focus
* Fix selected indexes on up down selection and drop
* Consolidate update item order logic
* Hide horizontal items on drag
* Update naming of ordering persistence
* Announce keyboard events to screen readers
* Consolidate reset method
* Simplify drop index numbers and conditions
* Fix up announcements
* Add tests around new utils
* Fall back for item name in announcement from aria label or alt text
* Update lock file
* Add changelog entry
* Handle PR feedback
* Fix up lock file after rebase
* Update lock file
* Update lock file again
* Update lock file after pnpm7
* Use trunk lock file
* Update lock file with a11y package
* Try new lock file
* Try lock file with pnpm add
* pnpm add from root
* Fix itemToString in SelectControl
* Downgrade a11y to v3.5.0
2022-09-22 12:08:26 -07:00
Joshua T Flowers
43a24bc6c3
Add image gallery component ( #34435 )
...
* Add initial ImageGallery component
* Add changelog entry
* Extract list item component and styles
* Rename SortableList to Sortable
* Add placeholders for dropping items
* Fix drag throttling delays
* Use placeholder component
* Move handles back to sortable
* Add horizontal option to sortable
* Use CSS for placeholder styles
* Remove placeholder component
* Add image gallery styles
* Add last droppable class
* Extract class utils and add tests
* Add list item stories
* Add readmes
* Handle PR feedback
2022-09-06 12:46:32 -07:00