@magento/venia-ui 9.6.0-beta.1 → 9.7.0-alpha.1

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 (55) hide show
  1. package/i18n/en_US.json +1 -0
  2. package/lib/components/Accordion/__tests__/__snapshots__/accordion.spec.js.snap +2 -0
  3. package/lib/components/Accordion/section.js +1 -0
  4. package/lib/components/AddToCartDialog/__tests__/__snapshots__/addToCartDialog.spec.js.snap +11 -0
  5. package/lib/components/AddToCartDialog/__tests__/addToCartDialog.spec.js +1 -0
  6. package/lib/components/AddToCartDialog/addToCartDialog.js +4 -1
  7. package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/priceAdjustments.spec.js.snap +2 -0
  8. package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +22 -0
  9. package/lib/components/CartPage/ProductListing/EditModal/__tests__/productForm.spec.js +1 -0
  10. package/lib/components/CartPage/ProductListing/EditModal/productForm.js +2 -0
  11. package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/product.spec.js.snap +3 -0
  12. package/lib/components/CategoryTree/categoryBranch.js +3 -3
  13. package/lib/components/CategoryTree/categoryLeaf.js +3 -3
  14. package/lib/components/CategoryTree/categoryTree.js +4 -4
  15. package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +2 -0
  16. package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +1 -3
  17. package/lib/components/FilterSidebar/filterSidebar.js +0 -1
  18. package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +0 -6
  19. package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +0 -2
  20. package/lib/components/Gallery/gallery.js +1 -6
  21. package/lib/components/Gallery/item.js +3 -9
  22. package/lib/components/Header/__tests__/__snapshots__/accountTrigger.spec.js.snap +1 -0
  23. package/lib/components/Header/accountTrigger.js +1 -0
  24. package/lib/components/LegacyMiniCart/__tests__/__snapshots__/kebab.spec.js.snap +2 -0
  25. package/lib/components/LegacyMiniCart/kebab.js +2 -1
  26. package/lib/components/LegacyMiniCart/kebab.module.css +0 -1
  27. package/lib/components/Logo/logo.js +1 -0
  28. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +3 -0
  29. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +2 -0
  30. package/lib/components/MegaMenu/megaMenuItem.js +4 -0
  31. package/lib/components/Navigation/navigation.js +2 -2
  32. package/lib/components/Pagination/navButton.module.css +5 -0
  33. package/lib/components/Pagination/tile.module.css +0 -1
  34. package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +576 -298
  35. package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +16 -0
  36. package/lib/components/ProductFullDetail/productFullDetail.js +37 -20
  37. package/lib/components/ProductFullDetail/productFullDetail.module.css +3 -0
  38. package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +51 -0
  39. package/lib/components/ProductOptions/__tests__/__snapshots__/tile.spec.js.snap +28 -0
  40. package/lib/components/ProductOptions/__tests__/swatch.spec.js +52 -0
  41. package/lib/components/ProductOptions/__tests__/tile.spec.js +48 -0
  42. package/lib/components/ProductOptions/option.js +5 -1
  43. package/lib/components/ProductOptions/options.js +12 -2
  44. package/lib/components/ProductOptions/swatch.js +27 -5
  45. package/lib/components/ProductOptions/swatch.module.css +17 -0
  46. package/lib/components/ProductOptions/swatchList.js +25 -4
  47. package/lib/components/ProductOptions/tile.js +24 -5
  48. package/lib/components/ProductOptions/tile.module.css +20 -0
  49. package/lib/components/ProductOptions/tileList.js +25 -2
  50. package/lib/components/ProductSort/__tests__/__snapshots__/productSort.spec.js.snap +0 -1
  51. package/lib/components/ProductSort/productSort.js +0 -1
  52. package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +28 -9
  53. package/lib/components/SearchPage/searchPage.js +6 -6
  54. package/lib/components/SortedByContainer/sortedByContainer.js +1 -1
  55. package/package.json +2 -2
@@ -52,6 +52,7 @@ exports[`it disables the add to cart button when the talon indicates 1`] = `
52
52
  className="options"
53
53
  >
54
54
  <require('../ProductOptions')
55
+ isEverythingOutOfStock={false}
55
56
  onSelectionChange={[MockFunction]}
56
57
  options={
57
58
  Array [
@@ -79,6 +80,7 @@ exports[`it disables the add to cart button when the talon indicates 1`] = `
79
80
  },
80
81
  ]
81
82
  }
83
+ outOfStockVariants={Array []}
82
84
  />
83
85
  </section>
84
86
  <section
@@ -97,32 +99,38 @@ exports[`it disables the add to cart button when the talon indicates 1`] = `
97
99
  <section
98
100
  className="actions"
99
101
  >
100
- <button
101
- className="root_highPriority"
102
- disabled={true}
103
- onClick={[Function]}
104
- onDragStart={[Function]}
105
- onKeyDown={[Function]}
106
- onKeyUp={[Function]}
107
- onMouseDown={[Function]}
108
- onMouseEnter={[Function]}
109
- onMouseLeave={[Function]}
110
- onMouseUp={[Function]}
111
- onTouchCancel={[Function]}
112
- onTouchEnd={[Function]}
113
- onTouchMove={[Function]}
114
- onTouchStart={[Function]}
115
- type="submit"
102
+ <section
103
+ className="actButton"
116
104
  >
117
- <span
118
- className="content"
105
+ <button
106
+ aria-disabled={true}
107
+ aria-label=""
108
+ className="root_highPriority"
109
+ disabled={true}
110
+ onClick={[Function]}
111
+ onDragStart={[Function]}
112
+ onKeyDown={[Function]}
113
+ onKeyUp={[Function]}
114
+ onMouseDown={[Function]}
115
+ onMouseEnter={[Function]}
116
+ onMouseLeave={[Function]}
117
+ onMouseUp={[Function]}
118
+ onTouchCancel={[Function]}
119
+ onTouchEnd={[Function]}
120
+ onTouchMove={[Function]}
121
+ onTouchStart={[Function]}
122
+ type="submit"
119
123
  >
120
- <mock-FormattedMessage
121
- defaultMessage="Add to Cart"
122
- id="productFullDetail.addItemToCart"
123
- />
124
- </span>
125
- </button>
124
+ <span
125
+ className="content"
126
+ >
127
+ <mock-FormattedMessage
128
+ defaultMessage="Add to Cart"
129
+ id="productFullDetail.addItemToCart"
130
+ />
131
+ </span>
132
+ </button>
133
+ </section>
126
134
  <require('../Wishlist/AddToListButton') />
127
135
  </section>
128
136
  <section
@@ -243,32 +251,38 @@ exports[`it does not render options if the product is not a ConfigurableProduct
243
251
  <section
244
252
  className="actions"
245
253
  >
246
- <button
247
- className="root_highPriority"
248
- disabled={false}
249
- onClick={[Function]}
250
- onDragStart={[Function]}
251
- onKeyDown={[Function]}
252
- onKeyUp={[Function]}
253
- onMouseDown={[Function]}
254
- onMouseEnter={[Function]}
255
- onMouseLeave={[Function]}
256
- onMouseUp={[Function]}
257
- onTouchCancel={[Function]}
258
- onTouchEnd={[Function]}
259
- onTouchMove={[Function]}
260
- onTouchStart={[Function]}
261
- type="submit"
254
+ <section
255
+ className="actButton"
262
256
  >
263
- <span
264
- className="content"
257
+ <button
258
+ aria-disabled={false}
259
+ aria-label=""
260
+ className="root_highPriority"
261
+ disabled={false}
262
+ onClick={[Function]}
263
+ onDragStart={[Function]}
264
+ onKeyDown={[Function]}
265
+ onKeyUp={[Function]}
266
+ onMouseDown={[Function]}
267
+ onMouseEnter={[Function]}
268
+ onMouseLeave={[Function]}
269
+ onMouseUp={[Function]}
270
+ onTouchCancel={[Function]}
271
+ onTouchEnd={[Function]}
272
+ onTouchMove={[Function]}
273
+ onTouchStart={[Function]}
274
+ type="submit"
265
275
  >
266
- <mock-FormattedMessage
267
- defaultMessage="Add to Cart"
268
- id="productFullDetail.addItemToCart"
269
- />
270
- </span>
271
- </button>
276
+ <span
277
+ className="content"
278
+ >
279
+ <mock-FormattedMessage
280
+ defaultMessage="Add to Cart"
281
+ id="productFullDetail.addItemToCart"
282
+ />
283
+ </span>
284
+ </button>
285
+ </section>
272
286
  <require('../Wishlist/AddToListButton') />
273
287
  </section>
274
288
  <section
@@ -378,6 +392,7 @@ exports[`it renders an error for an invalid cart 1`] = `
378
392
  className="options"
379
393
  >
380
394
  <require('../ProductOptions')
395
+ isEverythingOutOfStock={false}
381
396
  onSelectionChange={[MockFunction]}
382
397
  options={
383
398
  Array [
@@ -405,6 +420,7 @@ exports[`it renders an error for an invalid cart 1`] = `
405
420
  },
406
421
  ]
407
422
  }
423
+ outOfStockVariants={Array []}
408
424
  />
409
425
  </section>
410
426
  <section
@@ -423,32 +439,38 @@ exports[`it renders an error for an invalid cart 1`] = `
423
439
  <section
424
440
  className="actions"
425
441
  >
426
- <button
427
- className="root_highPriority"
428
- disabled={false}
429
- onClick={[Function]}
430
- onDragStart={[Function]}
431
- onKeyDown={[Function]}
432
- onKeyUp={[Function]}
433
- onMouseDown={[Function]}
434
- onMouseEnter={[Function]}
435
- onMouseLeave={[Function]}
436
- onMouseUp={[Function]}
437
- onTouchCancel={[Function]}
438
- onTouchEnd={[Function]}
439
- onTouchMove={[Function]}
440
- onTouchStart={[Function]}
441
- type="submit"
442
+ <section
443
+ className="actButton"
442
444
  >
443
- <span
444
- className="content"
445
+ <button
446
+ aria-disabled={false}
447
+ aria-label=""
448
+ className="root_highPriority"
449
+ disabled={false}
450
+ onClick={[Function]}
451
+ onDragStart={[Function]}
452
+ onKeyDown={[Function]}
453
+ onKeyUp={[Function]}
454
+ onMouseDown={[Function]}
455
+ onMouseEnter={[Function]}
456
+ onMouseLeave={[Function]}
457
+ onMouseUp={[Function]}
458
+ onTouchCancel={[Function]}
459
+ onTouchEnd={[Function]}
460
+ onTouchMove={[Function]}
461
+ onTouchStart={[Function]}
462
+ type="submit"
445
463
  >
446
- <mock-FormattedMessage
447
- defaultMessage="Add to Cart"
448
- id="productFullDetail.addItemToCart"
449
- />
450
- </span>
451
- </button>
464
+ <span
465
+ className="content"
466
+ >
467
+ <mock-FormattedMessage
468
+ defaultMessage="Add to Cart"
469
+ id="productFullDetail.addItemToCart"
470
+ />
471
+ </span>
472
+ </button>
473
+ </section>
452
474
  <require('../Wishlist/AddToListButton') />
453
475
  </section>
454
476
  <section
@@ -558,6 +580,7 @@ exports[`it renders an error for an invalid user token when adding to cart 1`] =
558
580
  className="options"
559
581
  >
560
582
  <require('../ProductOptions')
583
+ isEverythingOutOfStock={false}
561
584
  onSelectionChange={[MockFunction]}
562
585
  options={
563
586
  Array [
@@ -585,6 +608,7 @@ exports[`it renders an error for an invalid user token when adding to cart 1`] =
585
608
  },
586
609
  ]
587
610
  }
611
+ outOfStockVariants={Array []}
588
612
  />
589
613
  </section>
590
614
  <section
@@ -603,32 +627,38 @@ exports[`it renders an error for an invalid user token when adding to cart 1`] =
603
627
  <section
604
628
  className="actions"
605
629
  >
606
- <button
607
- className="root_highPriority"
608
- disabled={false}
609
- onClick={[Function]}
610
- onDragStart={[Function]}
611
- onKeyDown={[Function]}
612
- onKeyUp={[Function]}
613
- onMouseDown={[Function]}
614
- onMouseEnter={[Function]}
615
- onMouseLeave={[Function]}
616
- onMouseUp={[Function]}
617
- onTouchCancel={[Function]}
618
- onTouchEnd={[Function]}
619
- onTouchMove={[Function]}
620
- onTouchStart={[Function]}
621
- type="submit"
630
+ <section
631
+ className="actButton"
622
632
  >
623
- <span
624
- className="content"
633
+ <button
634
+ aria-disabled={false}
635
+ aria-label=""
636
+ className="root_highPriority"
637
+ disabled={false}
638
+ onClick={[Function]}
639
+ onDragStart={[Function]}
640
+ onKeyDown={[Function]}
641
+ onKeyUp={[Function]}
642
+ onMouseDown={[Function]}
643
+ onMouseEnter={[Function]}
644
+ onMouseLeave={[Function]}
645
+ onMouseUp={[Function]}
646
+ onTouchCancel={[Function]}
647
+ onTouchEnd={[Function]}
648
+ onTouchMove={[Function]}
649
+ onTouchStart={[Function]}
650
+ type="submit"
625
651
  >
626
- <mock-FormattedMessage
627
- defaultMessage="Add to Cart"
628
- id="productFullDetail.addItemToCart"
629
- />
630
- </span>
631
- </button>
652
+ <span
653
+ className="content"
654
+ >
655
+ <mock-FormattedMessage
656
+ defaultMessage="Add to Cart"
657
+ id="productFullDetail.addItemToCart"
658
+ />
659
+ </span>
660
+ </button>
661
+ </section>
632
662
  <require('../Wishlist/AddToListButton') />
633
663
  </section>
634
664
  <section
@@ -739,6 +769,7 @@ Array [
739
769
  className="options"
740
770
  >
741
771
  <require('../ProductOptions')
772
+ isEverythingOutOfStock={false}
742
773
  onSelectionChange={[MockFunction]}
743
774
  options={
744
775
  Array [
@@ -766,6 +797,7 @@ Array [
766
797
  },
767
798
  ]
768
799
  }
800
+ outOfStockVariants={Array []}
769
801
  />
770
802
  </section>
771
803
  <section
@@ -784,32 +816,38 @@ Array [
784
816
  <section
785
817
  className="actions"
786
818
  >
787
- <button
788
- className="root_highPriority"
789
- disabled={false}
790
- onClick={[Function]}
791
- onDragStart={[Function]}
792
- onKeyDown={[Function]}
793
- onKeyUp={[Function]}
794
- onMouseDown={[Function]}
795
- onMouseEnter={[Function]}
796
- onMouseLeave={[Function]}
797
- onMouseUp={[Function]}
798
- onTouchCancel={[Function]}
799
- onTouchEnd={[Function]}
800
- onTouchMove={[Function]}
801
- onTouchStart={[Function]}
802
- type="submit"
819
+ <section
820
+ className="actButton"
803
821
  >
804
- <span
805
- className="content"
822
+ <button
823
+ aria-disabled={false}
824
+ aria-label=""
825
+ className="root_highPriority"
826
+ disabled={false}
827
+ onClick={[Function]}
828
+ onDragStart={[Function]}
829
+ onKeyDown={[Function]}
830
+ onKeyUp={[Function]}
831
+ onMouseDown={[Function]}
832
+ onMouseEnter={[Function]}
833
+ onMouseLeave={[Function]}
834
+ onMouseUp={[Function]}
835
+ onTouchCancel={[Function]}
836
+ onTouchEnd={[Function]}
837
+ onTouchMove={[Function]}
838
+ onTouchStart={[Function]}
839
+ type="submit"
806
840
  >
807
- <mock-FormattedMessage
808
- defaultMessage="Add to Cart"
809
- id="productFullDetail.addItemToCart"
810
- />
811
- </span>
812
- </button>
841
+ <span
842
+ className="content"
843
+ >
844
+ <mock-FormattedMessage
845
+ defaultMessage="Add to Cart"
846
+ id="productFullDetail.addItemToCart"
847
+ />
848
+ </span>
849
+ </button>
850
+ </section>
813
851
  <require('../Wishlist/AddToListButton') />
814
852
  </section>
815
853
  <section
@@ -916,6 +954,7 @@ exports[`it renders correctly 1`] = `
916
954
  className="options"
917
955
  >
918
956
  <require('../ProductOptions')
957
+ isEverythingOutOfStock={false}
919
958
  onSelectionChange={[MockFunction]}
920
959
  options={
921
960
  Array [
@@ -943,6 +982,7 @@ exports[`it renders correctly 1`] = `
943
982
  },
944
983
  ]
945
984
  }
985
+ outOfStockVariants={Array []}
946
986
  />
947
987
  </section>
948
988
  <section
@@ -961,32 +1001,38 @@ exports[`it renders correctly 1`] = `
961
1001
  <section
962
1002
  className="actions"
963
1003
  >
964
- <button
965
- className="root_highPriority"
966
- disabled={false}
967
- onClick={[Function]}
968
- onDragStart={[Function]}
969
- onKeyDown={[Function]}
970
- onKeyUp={[Function]}
971
- onMouseDown={[Function]}
972
- onMouseEnter={[Function]}
973
- onMouseLeave={[Function]}
974
- onMouseUp={[Function]}
975
- onTouchCancel={[Function]}
976
- onTouchEnd={[Function]}
977
- onTouchMove={[Function]}
978
- onTouchStart={[Function]}
979
- type="submit"
1004
+ <section
1005
+ className="actButton"
980
1006
  >
981
- <span
982
- className="content"
1007
+ <button
1008
+ aria-disabled={false}
1009
+ aria-label=""
1010
+ className="root_highPriority"
1011
+ disabled={false}
1012
+ onClick={[Function]}
1013
+ onDragStart={[Function]}
1014
+ onKeyDown={[Function]}
1015
+ onKeyUp={[Function]}
1016
+ onMouseDown={[Function]}
1017
+ onMouseEnter={[Function]}
1018
+ onMouseLeave={[Function]}
1019
+ onMouseUp={[Function]}
1020
+ onTouchCancel={[Function]}
1021
+ onTouchEnd={[Function]}
1022
+ onTouchMove={[Function]}
1023
+ onTouchStart={[Function]}
1024
+ type="submit"
983
1025
  >
984
- <mock-FormattedMessage
985
- defaultMessage="Add to Cart"
986
- id="productFullDetail.addItemToCart"
987
- />
988
- </span>
989
- </button>
1026
+ <span
1027
+ className="content"
1028
+ >
1029
+ <mock-FormattedMessage
1030
+ defaultMessage="Add to Cart"
1031
+ id="productFullDetail.addItemToCart"
1032
+ />
1033
+ </span>
1034
+ </button>
1035
+ </section>
990
1036
  <require('../Wishlist/AddToListButton') />
991
1037
  </section>
992
1038
  <section
@@ -1092,6 +1138,7 @@ exports[`it renders field level errors for quantity - message 1 1`] = `
1092
1138
  className="options"
1093
1139
  >
1094
1140
  <require('../ProductOptions')
1141
+ isEverythingOutOfStock={false}
1095
1142
  onSelectionChange={[MockFunction]}
1096
1143
  options={
1097
1144
  Array [
@@ -1119,6 +1166,7 @@ exports[`it renders field level errors for quantity - message 1 1`] = `
1119
1166
  },
1120
1167
  ]
1121
1168
  }
1169
+ outOfStockVariants={Array []}
1122
1170
  />
1123
1171
  </section>
1124
1172
  <section
@@ -1137,32 +1185,38 @@ exports[`it renders field level errors for quantity - message 1 1`] = `
1137
1185
  <section
1138
1186
  className="actions"
1139
1187
  >
1140
- <button
1141
- className="root_highPriority"
1142
- disabled={false}
1143
- onClick={[Function]}
1144
- onDragStart={[Function]}
1145
- onKeyDown={[Function]}
1146
- onKeyUp={[Function]}
1147
- onMouseDown={[Function]}
1148
- onMouseEnter={[Function]}
1149
- onMouseLeave={[Function]}
1150
- onMouseUp={[Function]}
1151
- onTouchCancel={[Function]}
1152
- onTouchEnd={[Function]}
1153
- onTouchMove={[Function]}
1154
- onTouchStart={[Function]}
1155
- type="submit"
1188
+ <section
1189
+ className="actButton"
1156
1190
  >
1157
- <span
1158
- className="content"
1191
+ <button
1192
+ aria-disabled={false}
1193
+ aria-label=""
1194
+ className="root_highPriority"
1195
+ disabled={false}
1196
+ onClick={[Function]}
1197
+ onDragStart={[Function]}
1198
+ onKeyDown={[Function]}
1199
+ onKeyUp={[Function]}
1200
+ onMouseDown={[Function]}
1201
+ onMouseEnter={[Function]}
1202
+ onMouseLeave={[Function]}
1203
+ onMouseUp={[Function]}
1204
+ onTouchCancel={[Function]}
1205
+ onTouchEnd={[Function]}
1206
+ onTouchMove={[Function]}
1207
+ onTouchStart={[Function]}
1208
+ type="submit"
1159
1209
  >
1160
- <mock-FormattedMessage
1161
- defaultMessage="Add to Cart"
1162
- id="productFullDetail.addItemToCart"
1163
- />
1164
- </span>
1165
- </button>
1210
+ <span
1211
+ className="content"
1212
+ >
1213
+ <mock-FormattedMessage
1214
+ defaultMessage="Add to Cart"
1215
+ id="productFullDetail.addItemToCart"
1216
+ />
1217
+ </span>
1218
+ </button>
1219
+ </section>
1166
1220
  <require('../Wishlist/AddToListButton') />
1167
1221
  </section>
1168
1222
  <section
@@ -1268,6 +1322,7 @@ exports[`it renders field level errors for quantity - message 2 1`] = `
1268
1322
  className="options"
1269
1323
  >
1270
1324
  <require('../ProductOptions')
1325
+ isEverythingOutOfStock={false}
1271
1326
  onSelectionChange={[MockFunction]}
1272
1327
  options={
1273
1328
  Array [
@@ -1295,6 +1350,7 @@ exports[`it renders field level errors for quantity - message 2 1`] = `
1295
1350
  },
1296
1351
  ]
1297
1352
  }
1353
+ outOfStockVariants={Array []}
1298
1354
  />
1299
1355
  </section>
1300
1356
  <section
@@ -1313,32 +1369,38 @@ exports[`it renders field level errors for quantity - message 2 1`] = `
1313
1369
  <section
1314
1370
  className="actions"
1315
1371
  >
1316
- <button
1317
- className="root_highPriority"
1318
- disabled={false}
1319
- onClick={[Function]}
1320
- onDragStart={[Function]}
1321
- onKeyDown={[Function]}
1322
- onKeyUp={[Function]}
1323
- onMouseDown={[Function]}
1324
- onMouseEnter={[Function]}
1325
- onMouseLeave={[Function]}
1326
- onMouseUp={[Function]}
1327
- onTouchCancel={[Function]}
1328
- onTouchEnd={[Function]}
1329
- onTouchMove={[Function]}
1330
- onTouchStart={[Function]}
1331
- type="submit"
1372
+ <section
1373
+ className="actButton"
1332
1374
  >
1333
- <span
1334
- className="content"
1375
+ <button
1376
+ aria-disabled={false}
1377
+ aria-label=""
1378
+ className="root_highPriority"
1379
+ disabled={false}
1380
+ onClick={[Function]}
1381
+ onDragStart={[Function]}
1382
+ onKeyDown={[Function]}
1383
+ onKeyUp={[Function]}
1384
+ onMouseDown={[Function]}
1385
+ onMouseEnter={[Function]}
1386
+ onMouseLeave={[Function]}
1387
+ onMouseUp={[Function]}
1388
+ onTouchCancel={[Function]}
1389
+ onTouchEnd={[Function]}
1390
+ onTouchMove={[Function]}
1391
+ onTouchStart={[Function]}
1392
+ type="submit"
1335
1393
  >
1336
- <mock-FormattedMessage
1337
- defaultMessage="Add to Cart"
1338
- id="productFullDetail.addItemToCart"
1339
- />
1340
- </span>
1341
- </button>
1394
+ <span
1395
+ className="content"
1396
+ >
1397
+ <mock-FormattedMessage
1398
+ defaultMessage="Add to Cart"
1399
+ id="productFullDetail.addItemToCart"
1400
+ />
1401
+ </span>
1402
+ </button>
1403
+ </section>
1342
1404
  <require('../Wishlist/AddToListButton') />
1343
1405
  </section>
1344
1406
  <section
@@ -1444,6 +1506,7 @@ exports[`it renders field level errors for quantity - message 3 1`] = `
1444
1506
  className="options"
1445
1507
  >
1446
1508
  <require('../ProductOptions')
1509
+ isEverythingOutOfStock={false}
1447
1510
  onSelectionChange={[MockFunction]}
1448
1511
  options={
1449
1512
  Array [
@@ -1471,6 +1534,7 @@ exports[`it renders field level errors for quantity - message 3 1`] = `
1471
1534
  },
1472
1535
  ]
1473
1536
  }
1537
+ outOfStockVariants={Array []}
1474
1538
  />
1475
1539
  </section>
1476
1540
  <section
@@ -1489,42 +1553,48 @@ exports[`it renders field level errors for quantity - message 3 1`] = `
1489
1553
  <section
1490
1554
  className="actions"
1491
1555
  >
1492
- <button
1493
- className="root_highPriority"
1494
- disabled={false}
1495
- onClick={[Function]}
1496
- onDragStart={[Function]}
1497
- onKeyDown={[Function]}
1498
- onKeyUp={[Function]}
1499
- onMouseDown={[Function]}
1500
- onMouseEnter={[Function]}
1501
- onMouseLeave={[Function]}
1502
- onMouseUp={[Function]}
1503
- onTouchCancel={[Function]}
1504
- onTouchEnd={[Function]}
1505
- onTouchMove={[Function]}
1506
- onTouchStart={[Function]}
1507
- type="submit"
1508
- >
1509
- <span
1510
- className="content"
1511
- >
1512
- <mock-FormattedMessage
1513
- defaultMessage="Add to Cart"
1514
- id="productFullDetail.addItemToCart"
1515
- />
1516
- </span>
1517
- </button>
1518
- <require('../Wishlist/AddToListButton') />
1519
- </section>
1520
- <section
1521
- className="description"
1522
- >
1523
- <span
1524
- className="descriptionTitle"
1556
+ <section
1557
+ className="actButton"
1525
1558
  >
1526
- <mock-FormattedMessage
1527
- defaultMessage="Description"
1559
+ <button
1560
+ aria-disabled={false}
1561
+ aria-label=""
1562
+ className="root_highPriority"
1563
+ disabled={false}
1564
+ onClick={[Function]}
1565
+ onDragStart={[Function]}
1566
+ onKeyDown={[Function]}
1567
+ onKeyUp={[Function]}
1568
+ onMouseDown={[Function]}
1569
+ onMouseEnter={[Function]}
1570
+ onMouseLeave={[Function]}
1571
+ onMouseUp={[Function]}
1572
+ onTouchCancel={[Function]}
1573
+ onTouchEnd={[Function]}
1574
+ onTouchMove={[Function]}
1575
+ onTouchStart={[Function]}
1576
+ type="submit"
1577
+ >
1578
+ <span
1579
+ className="content"
1580
+ >
1581
+ <mock-FormattedMessage
1582
+ defaultMessage="Add to Cart"
1583
+ id="productFullDetail.addItemToCart"
1584
+ />
1585
+ </span>
1586
+ </button>
1587
+ </section>
1588
+ <require('../Wishlist/AddToListButton') />
1589
+ </section>
1590
+ <section
1591
+ className="description"
1592
+ >
1593
+ <span
1594
+ className="descriptionTitle"
1595
+ >
1596
+ <mock-FormattedMessage
1597
+ defaultMessage="Description"
1528
1598
  id="productFullDetail.description"
1529
1599
  />
1530
1600
  </span>
@@ -1624,6 +1694,7 @@ exports[`it renders form level errors 1`] = `
1624
1694
  className="options"
1625
1695
  >
1626
1696
  <require('../ProductOptions')
1697
+ isEverythingOutOfStock={false}
1627
1698
  onSelectionChange={[MockFunction]}
1628
1699
  options={
1629
1700
  Array [
@@ -1651,6 +1722,7 @@ exports[`it renders form level errors 1`] = `
1651
1722
  },
1652
1723
  ]
1653
1724
  }
1725
+ outOfStockVariants={Array []}
1654
1726
  />
1655
1727
  </section>
1656
1728
  <section
@@ -1669,32 +1741,222 @@ exports[`it renders form level errors 1`] = `
1669
1741
  <section
1670
1742
  className="actions"
1671
1743
  >
1672
- <button
1673
- className="root_highPriority"
1674
- disabled={false}
1675
- onClick={[Function]}
1676
- onDragStart={[Function]}
1677
- onKeyDown={[Function]}
1678
- onKeyUp={[Function]}
1679
- onMouseDown={[Function]}
1680
- onMouseEnter={[Function]}
1681
- onMouseLeave={[Function]}
1682
- onMouseUp={[Function]}
1683
- onTouchCancel={[Function]}
1684
- onTouchEnd={[Function]}
1685
- onTouchMove={[Function]}
1686
- onTouchStart={[Function]}
1687
- type="submit"
1744
+ <section
1745
+ className="actButton"
1688
1746
  >
1689
- <span
1690
- className="content"
1747
+ <button
1748
+ aria-disabled={false}
1749
+ aria-label=""
1750
+ className="root_highPriority"
1751
+ disabled={false}
1752
+ onClick={[Function]}
1753
+ onDragStart={[Function]}
1754
+ onKeyDown={[Function]}
1755
+ onKeyUp={[Function]}
1756
+ onMouseDown={[Function]}
1757
+ onMouseEnter={[Function]}
1758
+ onMouseLeave={[Function]}
1759
+ onMouseUp={[Function]}
1760
+ onTouchCancel={[Function]}
1761
+ onTouchEnd={[Function]}
1762
+ onTouchMove={[Function]}
1763
+ onTouchStart={[Function]}
1764
+ type="submit"
1691
1765
  >
1692
- <mock-FormattedMessage
1693
- defaultMessage="Add to Cart"
1694
- id="productFullDetail.addItemToCart"
1695
- />
1766
+ <span
1767
+ className="content"
1768
+ >
1769
+ <mock-FormattedMessage
1770
+ defaultMessage="Add to Cart"
1771
+ id="productFullDetail.addItemToCart"
1772
+ />
1773
+ </span>
1774
+ </button>
1775
+ </section>
1776
+ <require('../Wishlist/AddToListButton') />
1777
+ </section>
1778
+ <section
1779
+ className="description"
1780
+ >
1781
+ <span
1782
+ className="descriptionTitle"
1783
+ >
1784
+ <mock-FormattedMessage
1785
+ defaultMessage="Description"
1786
+ id="productFullDetail.description"
1787
+ />
1788
+ </span>
1789
+ <RichContent
1790
+ html="Powers the Delorean"
1791
+ />
1792
+ </section>
1793
+ <section
1794
+ className="details"
1795
+ >
1796
+ <span
1797
+ className="detailsTitle"
1798
+ >
1799
+ <mock-FormattedMessage
1800
+ defaultMessage="Details"
1801
+ id="productFullDetail.details"
1802
+ />
1803
+ </span>
1804
+ <CustomAttributes
1805
+ customAttributes={
1806
+ Array [
1807
+ Object {
1808
+ "attribute_metadata": Object {
1809
+ "label": "SKU",
1810
+ "ui_input": Object {
1811
+ "ui_input_type": "TEXT",
1812
+ },
1813
+ "uid": "attribute_sku",
1814
+ "used_in_components": Array [
1815
+ "PRODUCT_DETAILS_PAGE",
1816
+ ],
1817
+ },
1818
+ "entered_attribute_value": Object {
1819
+ "value": "BTTF123",
1820
+ },
1821
+ },
1822
+ ]
1823
+ }
1824
+ />
1825
+ </section>
1826
+ </form>
1827
+ `;
1828
+
1829
+ exports[`it renders message with everything out of stock 1`] = `
1830
+ <form
1831
+ className="root"
1832
+ onKeyDown={[Function]}
1833
+ onReset={[Function]}
1834
+ onSubmit={[Function]}
1835
+ >
1836
+ <section
1837
+ className="imageCarousel"
1838
+ >
1839
+ <ProductImageCarousel
1840
+ images={Array []}
1841
+ />
1842
+ </section>
1843
+ <section
1844
+ className="title"
1845
+ >
1846
+ <h1
1847
+ aria-live="polite"
1848
+ className="productName"
1849
+ >
1850
+ Flux Capacitor
1851
+ </h1>
1852
+ <p
1853
+ className="productPrice"
1854
+ >
1855
+ <span>
1856
+ $
1857
+ </span>
1858
+ <span>
1859
+ 3
1860
+ </span>
1861
+ <span>
1862
+ .
1696
1863
  </span>
1697
- </button>
1864
+ <span>
1865
+ 50
1866
+ </span>
1867
+ </p>
1868
+ </section>
1869
+ <FormError
1870
+ classes={
1871
+ Object {
1872
+ "root": "formErrors",
1873
+ }
1874
+ }
1875
+ errors={Array []}
1876
+ />
1877
+ <section
1878
+ className="options"
1879
+ >
1880
+ <require('../ProductOptions')
1881
+ isEverythingOutOfStock={true}
1882
+ onSelectionChange={[MockFunction]}
1883
+ options={
1884
+ Array [
1885
+ Object {
1886
+ "attribute_code": "configurable_option",
1887
+ "attribute_id": "1",
1888
+ "id": 1,
1889
+ "label": "Configurable Option",
1890
+ "values": Array [
1891
+ Object {
1892
+ "default_label": "Option 1",
1893
+ "label": "Option 1",
1894
+ "store_label": "Option 1",
1895
+ "use_default_value": true,
1896
+ "value_index": 1,
1897
+ },
1898
+ Object {
1899
+ "default_label": "Option 2",
1900
+ "label": "Option 2",
1901
+ "store_label": "Option 2",
1902
+ "use_default_value": true,
1903
+ "value_index": 2,
1904
+ },
1905
+ ],
1906
+ },
1907
+ ]
1908
+ }
1909
+ outOfStockVariants={Array []}
1910
+ />
1911
+ </section>
1912
+ <section
1913
+ className="quantity"
1914
+ >
1915
+ <span
1916
+ className="quantityTitle"
1917
+ >
1918
+ <mock-FormattedMessage
1919
+ defaultMessage="Quantity"
1920
+ id="global.quantity"
1921
+ />
1922
+ </span>
1923
+ QuantityStepper
1924
+ </section>
1925
+ <section
1926
+ className="actions"
1927
+ >
1928
+ <section
1929
+ className="actButton"
1930
+ >
1931
+ <button
1932
+ aria-disabled={true}
1933
+ aria-label="This item is currently out of stock"
1934
+ className="root_highPriority"
1935
+ disabled={true}
1936
+ onClick={[Function]}
1937
+ onDragStart={[Function]}
1938
+ onKeyDown={[Function]}
1939
+ onKeyUp={[Function]}
1940
+ onMouseDown={[Function]}
1941
+ onMouseEnter={[Function]}
1942
+ onMouseLeave={[Function]}
1943
+ onMouseUp={[Function]}
1944
+ onTouchCancel={[Function]}
1945
+ onTouchEnd={[Function]}
1946
+ onTouchMove={[Function]}
1947
+ onTouchStart={[Function]}
1948
+ type="submit"
1949
+ >
1950
+ <span
1951
+ className="content"
1952
+ >
1953
+ <mock-FormattedMessage
1954
+ defaultMessage="Add to Cart"
1955
+ id="productFullDetail.addItemToCart"
1956
+ />
1957
+ </span>
1958
+ </button>
1959
+ </section>
1698
1960
  <require('../Wishlist/AddToListButton') />
1699
1961
  </section>
1700
1962
  <section
@@ -1800,6 +2062,7 @@ exports[`it renders message with unsupported product type 1`] = `
1800
2062
  className="options"
1801
2063
  >
1802
2064
  <require('../ProductOptions')
2065
+ isEverythingOutOfStock={false}
1803
2066
  onSelectionChange={[MockFunction]}
1804
2067
  options={
1805
2068
  Array [
@@ -1827,6 +2090,7 @@ exports[`it renders message with unsupported product type 1`] = `
1827
2090
  },
1828
2091
  ]
1829
2092
  }
2093
+ outOfStockVariants={Array []}
1830
2094
  />
1831
2095
  </section>
1832
2096
  <section
@@ -2004,32 +2268,38 @@ exports[`out of stock disabled CTA button is rendered if out of stock 1`] = `
2004
2268
  <section
2005
2269
  className="actions"
2006
2270
  >
2007
- <button
2008
- className="root_highPriority"
2009
- disabled={true}
2010
- onClick={[Function]}
2011
- onDragStart={[Function]}
2012
- onKeyDown={[Function]}
2013
- onKeyUp={[Function]}
2014
- onMouseDown={[Function]}
2015
- onMouseEnter={[Function]}
2016
- onMouseLeave={[Function]}
2017
- onMouseUp={[Function]}
2018
- onTouchCancel={[Function]}
2019
- onTouchEnd={[Function]}
2020
- onTouchMove={[Function]}
2021
- onTouchStart={[Function]}
2022
- type="submit"
2271
+ <section
2272
+ className="actButton"
2023
2273
  >
2024
- <span
2025
- className="content"
2274
+ <button
2275
+ aria-disabled={true}
2276
+ aria-label=""
2277
+ className="root_highPriority"
2278
+ disabled={true}
2279
+ onClick={[Function]}
2280
+ onDragStart={[Function]}
2281
+ onKeyDown={[Function]}
2282
+ onKeyUp={[Function]}
2283
+ onMouseDown={[Function]}
2284
+ onMouseEnter={[Function]}
2285
+ onMouseLeave={[Function]}
2286
+ onMouseUp={[Function]}
2287
+ onTouchCancel={[Function]}
2288
+ onTouchEnd={[Function]}
2289
+ onTouchMove={[Function]}
2290
+ onTouchStart={[Function]}
2291
+ type="submit"
2026
2292
  >
2027
- <mock-FormattedMessage
2028
- defaultMessage="Out of Stock"
2029
- id="productFullDetail.itemOutOfStock"
2030
- />
2031
- </span>
2032
- </button>
2293
+ <span
2294
+ className="content"
2295
+ >
2296
+ <mock-FormattedMessage
2297
+ defaultMessage="Add to Cart"
2298
+ id="productFullDetail.addItemToCart"
2299
+ />
2300
+ </span>
2301
+ </button>
2302
+ </section>
2033
2303
  <require('../Wishlist/AddToListButton') />
2034
2304
  </section>
2035
2305
  <section
@@ -2135,6 +2405,7 @@ exports[`renders a WishlistButton with props 1`] = `
2135
2405
  className="options"
2136
2406
  >
2137
2407
  <require('../ProductOptions')
2408
+ isEverythingOutOfStock={false}
2138
2409
  onSelectionChange={[MockFunction]}
2139
2410
  options={
2140
2411
  Array [
@@ -2162,6 +2433,7 @@ exports[`renders a WishlistButton with props 1`] = `
2162
2433
  },
2163
2434
  ]
2164
2435
  }
2436
+ outOfStockVariants={Array []}
2165
2437
  />
2166
2438
  </section>
2167
2439
  <section
@@ -2180,32 +2452,38 @@ exports[`renders a WishlistButton with props 1`] = `
2180
2452
  <section
2181
2453
  className="actions"
2182
2454
  >
2183
- <button
2184
- className="root_highPriority"
2185
- disabled={false}
2186
- onClick={[Function]}
2187
- onDragStart={[Function]}
2188
- onKeyDown={[Function]}
2189
- onKeyUp={[Function]}
2190
- onMouseDown={[Function]}
2191
- onMouseEnter={[Function]}
2192
- onMouseLeave={[Function]}
2193
- onMouseUp={[Function]}
2194
- onTouchCancel={[Function]}
2195
- onTouchEnd={[Function]}
2196
- onTouchMove={[Function]}
2197
- onTouchStart={[Function]}
2198
- type="submit"
2455
+ <section
2456
+ className="actButton"
2199
2457
  >
2200
- <span
2201
- className="content"
2458
+ <button
2459
+ aria-disabled={false}
2460
+ aria-label=""
2461
+ className="root_highPriority"
2462
+ disabled={false}
2463
+ onClick={[Function]}
2464
+ onDragStart={[Function]}
2465
+ onKeyDown={[Function]}
2466
+ onKeyUp={[Function]}
2467
+ onMouseDown={[Function]}
2468
+ onMouseEnter={[Function]}
2469
+ onMouseLeave={[Function]}
2470
+ onMouseUp={[Function]}
2471
+ onTouchCancel={[Function]}
2472
+ onTouchEnd={[Function]}
2473
+ onTouchMove={[Function]}
2474
+ onTouchStart={[Function]}
2475
+ type="submit"
2202
2476
  >
2203
- <mock-FormattedMessage
2204
- defaultMessage="Add to Cart"
2205
- id="productFullDetail.addItemToCart"
2206
- />
2207
- </span>
2208
- </button>
2477
+ <span
2478
+ className="content"
2479
+ >
2480
+ <mock-FormattedMessage
2481
+ defaultMessage="Add to Cart"
2482
+ id="productFullDetail.addItemToCart"
2483
+ />
2484
+ </span>
2485
+ </button>
2486
+ </section>
2209
2487
  <require('../Wishlist/AddToListButton')
2210
2488
  foo="bar"
2211
2489
  />