react-cheminfo 0.40.1 → 0.41.0

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 (48) hide show
  1. package/bin/check-deploy.mjs +3 -1
  2. package/lib/deploy/core/buildGate.d.ts +18 -0
  3. package/lib/deploy/core/buildGate.d.ts.map +1 -0
  4. package/lib/deploy/core/buildGate.js +115 -0
  5. package/lib/deploy/core/buildGate.js.map +1 -0
  6. package/lib/deploy/core/checkDeploy.d.ts +2 -1
  7. package/lib/deploy/core/checkDeploy.d.ts.map +1 -1
  8. package/lib/deploy/core/checkDeploy.js +4 -1
  9. package/lib/deploy/core/checkDeploy.js.map +1 -1
  10. package/lib/deploy/core/index.d.ts +1 -0
  11. package/lib/deploy/core/index.d.ts.map +1 -1
  12. package/lib/deploy/core/index.js +1 -0
  13. package/lib/deploy/core/index.js.map +1 -1
  14. package/lib/deploy/core/publishedImage.d.ts.map +1 -1
  15. package/lib/deploy/core/publishedImage.js +5 -1
  16. package/lib/deploy/core/publishedImage.js.map +1 -1
  17. package/lib/deploy/core/types.d.ts +1 -1
  18. package/lib/deploy/core/types.d.ts.map +1 -1
  19. package/lib/deploy/core/types.js.map +1 -1
  20. package/lib/periodic/ui/ElementCell.d.ts +1 -1
  21. package/lib/periodic/ui/ElementCell.d.ts.map +1 -1
  22. package/lib/periodic/ui/ElementCell.js +12 -11
  23. package/lib/periodic/ui/ElementCell.js.map +1 -1
  24. package/lib/periodic/ui/PeriodicTable.d.ts.map +1 -1
  25. package/lib/periodic/ui/PeriodicTable.js +25 -8
  26. package/lib/periodic/ui/PeriodicTable.js.map +1 -1
  27. package/lib/periodic/ui/PeriodicTableChrome.d.ts.map +1 -1
  28. package/lib/periodic/ui/PeriodicTableChrome.js +3 -2
  29. package/lib/periodic/ui/PeriodicTableChrome.js.map +1 -1
  30. package/lib/periodic/ui/unit.d.ts +41 -0
  31. package/lib/periodic/ui/unit.d.ts.map +1 -0
  32. package/lib/periodic/ui/unit.js +45 -0
  33. package/lib/periodic/ui/unit.js.map +1 -0
  34. package/lib/share/ui/SharePartRow.d.ts.map +1 -1
  35. package/lib/share/ui/SharePartRow.js +2 -1
  36. package/lib/share/ui/SharePartRow.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/deploy/core/buildGate.ts +122 -0
  39. package/src/deploy/core/checkDeploy.ts +5 -1
  40. package/src/deploy/core/index.ts +1 -0
  41. package/src/deploy/core/publishedImage.ts +5 -1
  42. package/src/deploy/core/types.ts +5 -1
  43. package/src/periodic/ui/ElementCell.tsx +14 -12
  44. package/src/periodic/ui/PeriodicTable.tsx +25 -8
  45. package/src/periodic/ui/PeriodicTableChrome.tsx +4 -2
  46. package/src/periodic/ui/unit.ts +48 -0
  47. package/src/share/ui/SharePartRow.tsx +6 -1
  48. package/styles/chrome.css +15 -6
package/styles/chrome.css CHANGED
@@ -341,33 +341,42 @@ button {
341
341
  min-height: 0;
342
342
  flex: 1 1 auto;
343
343
  flex-direction: column;
344
- padding: 12px 16px 0;
344
+ padding: 0 16px;
345
345
  gap: 12px;
346
346
  }
347
347
 
348
348
  /* The ready-made links and the three things one does with the link they write,
349
349
  on one row: the tabs say which link, the buttons act on it. A dialog too
350
- narrow for both wraps the buttons under the tabs rather than cutting them. */
350
+ narrow for both wraps the buttons under the tabs rather than cutting them.
351
+
352
+ The band owns the space between the dialog's header and its rule — the body
353
+ does not pad above it — so the buttons centre in that whole band whether or
354
+ not the site has tabs to put beside them. */
351
355
  .share-dialog__top {
352
356
  display: flex;
353
357
  flex-wrap: wrap;
354
- align-items: flex-end;
355
- justify-content: space-between;
358
+ align-items: center;
359
+ padding: 12px 0;
356
360
  border-bottom: 1px solid var(--border);
357
361
  gap: 8px 16px;
358
362
  }
359
363
 
364
+ /* The tabs end on the rule, where a tab strip's underline has to be, so they
365
+ are pulled through the band's lower half. */
360
366
  .share-dialog__top > .share-presets {
361
367
  flex: 1 1 auto;
362
368
  min-width: 0;
369
+ align-self: flex-end;
370
+ margin-bottom: -12px;
363
371
  }
364
372
 
365
- /* The buttons end on the rule, as the tabs do, so the two read as one row
366
- rather than as a row with something floating over it. */
373
+ /* The buttons keep the right edge on every site: a dialog with no tabs has
374
+ nothing to push them there. */
367
375
  .share-linkbar {
368
376
  display: flex;
369
377
  align-items: center;
370
378
  flex: 0 0 auto;
379
+ margin-left: auto;
371
380
  gap: 8px;
372
381
  }
373
382