@opentrons/components 0.1.6-alpha.18 → 0.1.6-alpha.19

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 (459) hide show
  1. package/package.json +2 -2
  2. package/src/hardware-sim/BaseDeck/something.test.tsx +7 -0
  3. package/src/hardware-sim/Deck/SlotLabels.tsx +1 -1
  4. package/src/hardware-sim/ProtocolDeck/LabwareInfo.tsx +1 -1
  5. package/src/hardware-sim/ProtocolDeck/index.tsx +2 -2
  6. package/src/index.ts +2 -41
  7. package/src/molecules/DeckInfoLabel/index.tsx +1 -1
  8. package/src/molecules/DeckLabel/index.tsx +3 -3
  9. package/lib/__tests__/utils.test.d.ts +0 -1
  10. package/lib/alerts/AlertItem.d.ts +0 -21
  11. package/lib/alerts/index.d.ts +0 -1
  12. package/lib/atoms/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
  13. package/lib/atoms/Checkbox/index.d.ts +0 -25
  14. package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +0 -1
  15. package/lib/atoms/CheckboxField/index.d.ts +0 -20
  16. package/lib/atoms/Chip/__tests__/Chip.test.d.ts +0 -1
  17. package/lib/atoms/Chip/index.d.ts +0 -20
  18. package/lib/atoms/Divider/index.d.ts +0 -5
  19. package/lib/atoms/InputField/__tests__/InputField.test.d.ts +0 -1
  20. package/lib/atoms/InputField/index.d.ts +0 -68
  21. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +0 -10
  22. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +0 -7
  23. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +0 -14
  24. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +0 -3
  25. package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +0 -1
  26. package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +0 -1
  27. package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +0 -1
  28. package/lib/atoms/ListButton/index.d.ts +0 -11
  29. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +0 -15
  30. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +0 -8
  31. package/lib/atoms/ListItem/ListItemChildren/index.d.ts +0 -2
  32. package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +0 -1
  33. package/lib/atoms/ListItem/index.d.ts +0 -14
  34. package/lib/atoms/MenuList/MenuItem.d.ts +0 -7
  35. package/lib/atoms/MenuList/OverflowBtn.d.ts +0 -7
  36. package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +0 -1
  37. package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +0 -1
  38. package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +0 -1
  39. package/lib/atoms/MenuList/index.d.ts +0 -8
  40. package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +0 -1
  41. package/lib/atoms/Snackbar/index.d.ts +0 -7
  42. package/lib/atoms/StepMeter/index.d.ts +0 -7
  43. package/lib/atoms/StyledText/LegacyStyledText.d.ts +0 -6
  44. package/lib/atoms/StyledText/StyledText.d.ts +0 -154
  45. package/lib/atoms/StyledText/index.d.ts +0 -2
  46. package/lib/atoms/Tag/__tests__/Tag.test.d.ts +0 -1
  47. package/lib/atoms/Tag/index.d.ts +0 -14
  48. package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +0 -1
  49. package/lib/atoms/Toast/__tests__/Toast.test.d.ts +0 -1
  50. package/lib/atoms/Toast/index.d.ts +0 -25
  51. package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +0 -1
  52. package/lib/atoms/ToggleGroup/index.d.ts +0 -9
  53. package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +0 -1
  54. package/lib/atoms/Tooltip/index.d.ts +0 -11
  55. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -1
  56. package/lib/atoms/buttons/AltPrimaryButton.d.ts +0 -1
  57. package/lib/atoms/buttons/EmptySelectorButton.d.ts +0 -10
  58. package/lib/atoms/buttons/LargeButton.d.ts +0 -17
  59. package/lib/atoms/buttons/PrimaryButton.d.ts +0 -1
  60. package/lib/atoms/buttons/RadioButton.d.ts +0 -21
  61. package/lib/atoms/buttons/SecondaryButton.d.ts +0 -7
  62. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
  63. package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +0 -1
  64. package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +0 -1
  65. package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +0 -1
  66. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +0 -1
  67. package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +0 -1
  68. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +0 -1
  69. package/lib/atoms/buttons/index.d.ts +0 -6
  70. package/lib/atoms/index.d.ts +0 -20
  71. package/lib/barrel.d.ts +0 -3
  72. package/lib/buttons/Button.d.ts +0 -50
  73. package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -8
  74. package/lib/buttons/FlatButton.d.ts +0 -5
  75. package/lib/buttons/IconButton.d.ts +0 -14
  76. package/lib/buttons/OutlineButton.d.ts +0 -8
  77. package/lib/buttons/index.d.ts +0 -5
  78. package/lib/controls/ControlInfo.d.ts +0 -6
  79. package/lib/controls/LabeledButton.d.ts +0 -8
  80. package/lib/controls/LabeledCheckbox.d.ts +0 -10
  81. package/lib/controls/LabeledControl.d.ts +0 -7
  82. package/lib/controls/LabeledRadioGroup.d.ts +0 -8
  83. package/lib/controls/LabeledSelect.d.ts +0 -9
  84. package/lib/controls/LabeledToggle.d.ts +0 -11
  85. package/lib/controls/StackedLabeledControl.d.ts +0 -7
  86. package/lib/controls/ToggleButton.d.ts +0 -5
  87. package/lib/controls/index.d.ts +0 -6
  88. package/lib/forms/DeprecatedCheckboxField.d.ts +0 -33
  89. package/lib/forms/DropdownField.d.ts +0 -38
  90. package/lib/forms/FormGroup.d.ts +0 -19
  91. package/lib/forms/LegacyInputField.d.ts +0 -51
  92. package/lib/forms/RadioGroup.d.ts +0 -29
  93. package/lib/forms/Select.d.ts +0 -26
  94. package/lib/forms/SelectField.d.ts +0 -33
  95. package/lib/forms/ToggleField.d.ts +0 -22
  96. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -1
  97. package/lib/forms/__tests__/DropdownField.test.d.ts +0 -1
  98. package/lib/forms/__tests__/InputField.test.d.ts +0 -1
  99. package/lib/forms/__tests__/Select.test.d.ts +0 -1
  100. package/lib/forms/__tests__/SelectField.test.d.ts +0 -1
  101. package/lib/forms/__tests__/ToggleField.test.d.ts +0 -1
  102. package/lib/forms/index.d.ts +0 -8
  103. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +0 -49
  104. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +0 -12
  105. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +0 -2
  106. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +0 -2
  107. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +0 -13
  108. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +0 -20
  109. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +0 -14
  110. package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +0 -4
  111. package/lib/hardware-sim/BaseDeck/index.d.ts +0 -5
  112. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -10
  113. package/lib/hardware-sim/Deck/FlexTrash.d.ts +0 -14
  114. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -16
  115. package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -10
  116. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +0 -14
  117. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +0 -12
  118. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +0 -9
  119. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +0 -21
  120. package/lib/hardware-sim/Deck/SlotLabels.d.ts +0 -12
  121. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +0 -1
  122. package/lib/hardware-sim/Deck/constants.d.ts +0 -1
  123. package/lib/hardware-sim/Deck/index.d.ts +0 -8
  124. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +0 -10
  125. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -8
  126. package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +0 -10
  127. package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +0 -11
  128. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -10
  129. package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +0 -12
  130. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +0 -10
  131. package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +0 -10
  132. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -10
  133. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -11
  134. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +0 -20
  135. package/lib/hardware-sim/DeckConfigurator/index.d.ts +0 -20
  136. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +0 -15
  137. package/lib/hardware-sim/Labware/Labware.d.ts +0 -39
  138. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -1
  139. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -1
  140. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -1
  141. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +0 -1
  142. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
  143. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +0 -1
  144. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
  145. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +0 -27
  146. package/lib/hardware-sim/Labware/LabwareRender.d.ts +0 -46
  147. package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +0 -20
  148. package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +0 -1
  149. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +0 -1
  150. package/lib/hardware-sim/Labware/index.d.ts +0 -5
  151. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +0 -11
  152. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +0 -21
  153. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +0 -15
  154. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +0 -25
  155. package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +0 -9
  156. package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +0 -19
  157. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +0 -20
  158. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +0 -12
  159. package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +0 -1
  160. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +0 -1
  161. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +0 -1
  162. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +0 -8
  163. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +0 -12
  164. package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -4
  165. package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -1
  166. package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -1
  167. package/lib/hardware-sim/Module/ModuleTag.d.ts +0 -9
  168. package/lib/hardware-sim/Module/PlateReader.d.ts +0 -1
  169. package/lib/hardware-sim/Module/Temperature.d.ts +0 -4
  170. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -6
  171. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -6
  172. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -7
  173. package/lib/hardware-sim/Module/index.d.ts +0 -18
  174. package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +0 -4
  175. package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +0 -4
  176. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +0 -8
  177. package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +0 -1
  178. package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +0 -1
  179. package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +0 -1
  180. package/lib/hardware-sim/Pipette/constants.d.ts +0 -7
  181. package/lib/hardware-sim/Pipette/index.d.ts +0 -1
  182. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +0 -6
  183. package/lib/hardware-sim/ProtocolDeck/index.d.ts +0 -14
  184. package/lib/hardware-sim/ProtocolDeck/types.d.ts +0 -8
  185. package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +0 -1
  186. package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +0 -5
  187. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +0 -12
  188. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +0 -3
  189. package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +0 -10
  190. package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +0 -2
  191. package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +0 -4
  192. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +0 -3
  193. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +0 -7
  194. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +0 -16
  195. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +0 -2
  196. package/lib/hardware-sim/index.d.ts +0 -11
  197. package/lib/hardware-sim/utils.d.ts +0 -3
  198. package/lib/helix-design-system/borders.d.ts +0 -26
  199. package/lib/helix-design-system/colors.d.ts +0 -86
  200. package/lib/helix-design-system/index.d.ts +0 -4
  201. package/lib/helix-design-system/product/index.d.ts +0 -1
  202. package/lib/helix-design-system/product/typography.d.ts +0 -79
  203. package/lib/helix-design-system/style.d.ts +0 -1
  204. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -1
  205. package/lib/hooks/__tests__/useDrag.test.d.ts +0 -1
  206. package/lib/hooks/__tests__/useIdle.test.d.ts +0 -1
  207. package/lib/hooks/__tests__/useInterval.test.d.ts +0 -1
  208. package/lib/hooks/__tests__/useLongPress.test.d.ts +0 -1
  209. package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -1
  210. package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -1
  211. package/lib/hooks/__tests__/useScrolling.test.d.ts +0 -1
  212. package/lib/hooks/__tests__/useSwipe.test.d.ts +0 -1
  213. package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -1
  214. package/lib/hooks/__tests__/useToggle.test.d.ts +0 -1
  215. package/lib/hooks/index.d.ts +0 -13
  216. package/lib/hooks/useConditionalConfirm.d.ts +0 -41
  217. package/lib/hooks/useDrag.d.ts +0 -22
  218. package/lib/hooks/useIdle.d.ts +0 -11
  219. package/lib/hooks/useInterval.d.ts +0 -11
  220. package/lib/hooks/useLongPress.d.ts +0 -19
  221. package/lib/hooks/useMenuHandleClickOutside.d.ts +0 -9
  222. package/lib/hooks/useMountEffect.d.ts +0 -8
  223. package/lib/hooks/usePrevious.d.ts +0 -9
  224. package/lib/hooks/useScrolling.d.ts +0 -1
  225. package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -18
  226. package/lib/hooks/useSwipe.d.ts +0 -12
  227. package/lib/hooks/useTimeout.d.ts +0 -9
  228. package/lib/hooks/useToggle.d.ts +0 -22
  229. package/lib/icons/Icon.d.ts +0 -34
  230. package/lib/icons/ModuleIcon.d.ts +0 -11
  231. package/lib/icons/NotificationIcon.d.ts +0 -12
  232. package/lib/icons/icon-data.d.ts +0 -4
  233. package/lib/icons/index.d.ts +0 -4
  234. package/lib/images/index.d.ts +0 -1
  235. package/lib/images/labware/index.d.ts +0 -1
  236. package/lib/images/labware/measurement-guide/index.d.ts +0 -13
  237. package/lib/index.d.ts +0 -26
  238. package/lib/instrument/InstrumentDiagram.d.ts +0 -11
  239. package/lib/instrument/InstrumentGroup.d.ts +0 -11
  240. package/lib/instrument/InstrumentInfo.d.ts +0 -18
  241. package/lib/instrument/PipetteSelect.d.ts +0 -20
  242. package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +0 -1
  243. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -1
  244. package/lib/instrument/index.d.ts +0 -4
  245. package/lib/interaction-enhancers/ClickOutside.d.ts +0 -18
  246. package/lib/interaction-enhancers/HandleKeypress.d.ts +0 -27
  247. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -1
  248. package/lib/interaction-enhancers/index.d.ts +0 -4
  249. package/lib/interaction-enhancers/useHover.d.ts +0 -33
  250. package/lib/interaction-enhancers/useOnClickOutside.d.ts +0 -5
  251. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -7
  252. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
  253. package/lib/legacy-hardware-sim/index.d.ts +0 -2
  254. package/lib/lists/SidePanelGroup.d.ts +0 -18
  255. package/lib/lists/TitledList.d.ts +0 -44
  256. package/lib/lists/index.d.ts +0 -2
  257. package/lib/modals/AlertModal.d.ts +0 -28
  258. package/lib/modals/ContinueModal.d.ts +0 -10
  259. package/lib/modals/LegacyModal.d.ts +0 -24
  260. package/lib/modals/Modal.d.ts +0 -24
  261. package/lib/modals/ModalHeader.d.ts +0 -13
  262. package/lib/modals/ModalShell.d.ts +0 -34
  263. package/lib/modals/Overlay.d.ts +0 -9
  264. package/lib/modals/SpinnerModal.d.ts +0 -13
  265. package/lib/modals/SpinnerModalPage.d.ts +0 -12
  266. package/lib/modals/__tests__/Modal.test.d.ts +0 -1
  267. package/lib/modals/__tests__/ModalHeader.test.d.ts +0 -1
  268. package/lib/modals/__tests__/ModalShell.test.d.ts +0 -1
  269. package/lib/modals/index.d.ts +0 -9
  270. package/lib/molecules/Banner/__tests__/Banner.test.d.ts +0 -1
  271. package/lib/molecules/Banner/index.d.ts +0 -23
  272. package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +0 -1
  273. package/lib/molecules/DeckInfoLabel/index.d.ts +0 -19
  274. package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +0 -1
  275. package/lib/molecules/DeckLabel/index.d.ts +0 -10
  276. package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +0 -1
  277. package/lib/molecules/DropdownMenu/index.d.ts +0 -41
  278. package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +0 -1
  279. package/lib/molecules/InfoScreen/index.d.ts +0 -8
  280. package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +0 -1
  281. package/lib/molecules/LiquidIcon/index.d.ts +0 -9
  282. package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +0 -1
  283. package/lib/molecules/ParametersTable/index.d.ts +0 -10
  284. package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +0 -1
  285. package/lib/molecules/Tabs/index.d.ts +0 -10
  286. package/lib/molecules/index.d.ts +0 -8
  287. package/lib/nav/SidePanel.d.ts +0 -6
  288. package/lib/nav/index.d.ts +0 -1
  289. package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +0 -1
  290. package/lib/organisms/DeckLabelSet/index.d.ts +0 -11
  291. package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +0 -1
  292. package/lib/organisms/EndUserAgreementFooter/index.d.ts +0 -1
  293. package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +0 -1
  294. package/lib/organisms/Toolbox/index.d.ts +0 -20
  295. package/lib/organisms/index.d.ts +0 -3
  296. package/lib/primitives/Box.d.ts +0 -7
  297. package/lib/primitives/Btn.d.ts +0 -59
  298. package/lib/primitives/Flex.d.ts +0 -7
  299. package/lib/primitives/ForeignObject.d.ts +0 -23
  300. package/lib/primitives/Link.d.ts +0 -11
  301. package/lib/primitives/Svg.d.ts +0 -23
  302. package/lib/primitives/Text.d.ts +0 -7
  303. package/lib/primitives/__tests__/Box.test.d.ts +0 -1
  304. package/lib/primitives/__tests__/Btn.test.d.ts +0 -1
  305. package/lib/primitives/__tests__/Flex.test.d.ts +0 -1
  306. package/lib/primitives/__tests__/Link.test.d.ts +0 -1
  307. package/lib/primitives/__tests__/Svg.test.d.ts +0 -1
  308. package/lib/primitives/__tests__/Text.test.d.ts +0 -1
  309. package/lib/primitives/__tests__/primitives.test.d.ts +0 -1
  310. package/lib/primitives/__tests__/style-props.test.d.ts +0 -1
  311. package/lib/primitives/index.d.ts +0 -9
  312. package/lib/primitives/style-props.d.ts +0 -4
  313. package/lib/primitives/types.d.ts +0 -95
  314. package/lib/robot-types.d.ts +0 -1
  315. package/lib/slotmap/OT2SlotMap.d.ts +0 -9
  316. package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +0 -1
  317. package/lib/slotmap/index.d.ts +0 -1
  318. package/lib/structure/Card.d.ts +0 -18
  319. package/lib/structure/LabeledValue.d.ts +0 -12
  320. package/lib/structure/Pill.d.ts +0 -18
  321. package/lib/structure/Splash.d.ts +0 -8
  322. package/lib/structure/TitleBar.d.ts +0 -17
  323. package/lib/structure/index.d.ts +0 -5
  324. package/lib/styles/borders.d.ts +0 -8
  325. package/lib/styles/colors.d.ts +0 -37
  326. package/lib/styles/cursor.d.ts +0 -10
  327. package/lib/styles/flexbox.d.ts +0 -34
  328. package/lib/styles/index.d.ts +0 -8
  329. package/lib/styles/layout.d.ts +0 -24
  330. package/lib/styles/position.d.ts +0 -5
  331. package/lib/styles/spacing.d.ts +0 -9
  332. package/lib/styles/typography.d.ts +0 -36
  333. package/lib/testing/utils/index.d.ts +0 -2
  334. package/lib/testing/utils/matchers.d.ts +0 -3
  335. package/lib/testing/utils/renderWithProviders.d.ts +0 -9
  336. package/lib/tooltips/DeprecatedTooltip.d.ts +0 -37
  337. package/lib/tooltips/HoverTooltip.d.ts +0 -36
  338. package/lib/tooltips/LegacyTooltip.d.ts +0 -35
  339. package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -1
  340. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -1
  341. package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -1
  342. package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -1
  343. package/lib/tooltips/constants.d.ts +0 -17
  344. package/lib/tooltips/index.d.ts +0 -8
  345. package/lib/tooltips/styles.d.ts +0 -12
  346. package/lib/tooltips/types.d.ts +0 -52
  347. package/lib/tooltips/useHoverTooltip.d.ts +0 -24
  348. package/lib/tooltips/usePopper.d.ts +0 -2
  349. package/lib/tooltips/useTooltip.d.ts +0 -31
  350. package/lib/ui-style-constants/index.d.ts +0 -4
  351. package/lib/ui-style-constants/responsiveness.d.ts +0 -3
  352. package/lib/ui-style-constants/spacing.d.ts +0 -18
  353. package/lib/ui-style-constants/typography.d.ts +0 -71
  354. package/lib/ui-style-constants/viewport.d.ts +0 -15
  355. package/lib/utils.d.ts +0 -15
  356. package/src/__tests__/utils.test.ts +0 -27
  357. package/src/alerts/alerts.module.css +0 -103
  358. package/src/atoms/Checkbox/__tests__/Checkbox.test.tsx +0 -55
  359. package/src/atoms/CheckboxField/__tests__/CheckboxField.test.tsx +0 -141
  360. package/src/atoms/Chip/__tests__/Chip.test.tsx +0 -429
  361. package/src/atoms/InputField/__tests__/InputField.test.tsx +0 -63
  362. package/src/atoms/ListButton/__tests__/ListButton.test.tsx +0 -46
  363. package/src/atoms/ListButton/__tests__/ListButtonAccordion.test.tsx +0 -35
  364. package/src/atoms/ListButton/__tests__/ListButtonRadioButton.test.tsx +0 -27
  365. package/src/atoms/ListItem/__tests__/ListItem.test.tsx +0 -61
  366. package/src/atoms/MenuList/__tests__/MenuItem.test.tsx +0 -50
  367. package/src/atoms/MenuList/__tests__/MenuList.test.tsx +0 -36
  368. package/src/atoms/MenuList/__tests__/OverflowBtn.test.tsx +0 -33
  369. package/src/atoms/Snackbar/__tests__/Snackbar.test.tsx +0 -73
  370. package/src/atoms/Tag/__tests__/Tag.test.tsx +0 -55
  371. package/src/atoms/Toast/__tests__/ODDToast.test.tsx +0 -178
  372. package/src/atoms/Toast/__tests__/Toast.test.tsx +0 -174
  373. package/src/atoms/ToggleGroup/__tests__/ToggleGroup.test.tsx +0 -28
  374. package/src/atoms/Tooltip/__tests__/Tooltip.test.tsx +0 -78
  375. package/src/atoms/buttons/__tests__/AlertPrimaryButton.test.tsx +0 -47
  376. package/src/atoms/buttons/__tests__/AltPrimaryButton.test.tsx +0 -57
  377. package/src/atoms/buttons/__tests__/EmptySelectorButton.test.tsx +0 -42
  378. package/src/atoms/buttons/__tests__/LargeButton.test.tsx +0 -91
  379. package/src/atoms/buttons/__tests__/PrimaryButton.test.tsx +0 -64
  380. package/src/atoms/buttons/__tests__/RadioButton.test.tsx +0 -98
  381. package/src/atoms/buttons/__tests__/SecondaryButton.test.tsx +0 -54
  382. package/src/buttons/buttons.module.css +0 -428
  383. package/src/controls/styles.module.css +0 -103
  384. package/src/forms/Select.module.css +0 -118
  385. package/src/forms/SelectField.module.css +0 -16
  386. package/src/forms/__tests__/DeprecatedCheckboxField.test.tsx +0 -5
  387. package/src/forms/__tests__/DropdownField.test.tsx +0 -5
  388. package/src/forms/__tests__/InputField.test.tsx +0 -5
  389. package/src/forms/__tests__/Select.test.tsx +0 -5
  390. package/src/forms/__tests__/SelectField.test.tsx +0 -5
  391. package/src/forms/__tests__/ToggleField.test.tsx +0 -5
  392. package/src/forms/forms.module.css +0 -239
  393. package/src/hardware-sim/Labware/__tests__/Labware.test.tsx +0 -43
  394. package/src/hardware-sim/Labware/__tests__/LabwareRender.test.tsx +0 -54
  395. package/src/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.tsx +0 -66
  396. package/src/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.tsx +0 -31
  397. package/src/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.tsx +0 -91
  398. package/src/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.tsx +0 -16
  399. package/src/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.tsx +0 -67
  400. package/src/hardware-sim/Pipette/__tests__/PipetteRender.test.tsx +0 -99
  401. package/src/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.ts +0 -158
  402. package/src/hooks/__tests__/useConditionalConfirm.test.tsx +0 -5
  403. package/src/hooks/__tests__/useDrag.test.ts +0 -46
  404. package/src/hooks/__tests__/useIdle.test.ts +0 -68
  405. package/src/hooks/__tests__/useInterval.test.tsx +0 -5
  406. package/src/hooks/__tests__/useLongPress.test.ts +0 -25
  407. package/src/hooks/__tests__/useMountEffect.test.tsx +0 -5
  408. package/src/hooks/__tests__/usePrevious.test.tsx +0 -5
  409. package/src/hooks/__tests__/useScrolling.test.tsx +0 -46
  410. package/src/hooks/__tests__/useSwipe.test.tsx +0 -26
  411. package/src/hooks/__tests__/useTimeout.test.tsx +0 -5
  412. package/src/hooks/__tests__/useToggle.test.tsx +0 -5
  413. package/src/index.module.css +0 -9
  414. package/src/instrument/PipetteSelect.module.css +0 -14
  415. package/src/instrument/__tests__/InstrumentInfo.test.tsx +0 -55
  416. package/src/instrument/__tests__/PipetteSelect.test.tsx +0 -4
  417. package/src/instrument/instrument.module.css +0 -45
  418. package/src/interaction-enhancers/__tests__/useHover.test.tsx +0 -4
  419. package/src/legacy-hardware-sim/LabwareNameOverlay.module.css +0 -20
  420. package/src/legacy-hardware-sim/ModuleItem.module.css +0 -98
  421. package/src/lists/lists.module.css +0 -171
  422. package/src/modals/__tests__/Modal.test.tsx +0 -65
  423. package/src/modals/__tests__/ModalHeader.test.tsx +0 -73
  424. package/src/modals/__tests__/ModalShell.test.tsx +0 -45
  425. package/src/modals/modals.module.css +0 -275
  426. package/src/molecules/Banner/__tests__/Banner.test.tsx +0 -94
  427. package/src/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.tsx +0 -49
  428. package/src/molecules/DeckLabel/__tests__/DeckLabel.test.tsx +0 -69
  429. package/src/molecules/DropdownMenu/__tests__/DropdownMenu.test.tsx +0 -85
  430. package/src/molecules/InfoScreen/__tests__/InfoScreen.test.tsx +0 -40
  431. package/src/molecules/LiquidIcon/__tests__/LiquidIcon.test.tsx +0 -50
  432. package/src/molecules/ParametersTable/__tests__/ParametersTable.test.tsx +0 -126
  433. package/src/molecules/Tabs/__tests__/Tabs.test.tsx +0 -90
  434. package/src/nav/SidePanel.module.css +0 -34
  435. package/src/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.tsx +0 -49
  436. package/src/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.tsx +0 -21
  437. package/src/organisms/Toolbox/__tests__/Toolbox.test.tsx +0 -35
  438. package/src/primitives/__tests__/Box.test.tsx +0 -4
  439. package/src/primitives/__tests__/Btn.test.tsx +0 -4
  440. package/src/primitives/__tests__/Flex.test.tsx +0 -4
  441. package/src/primitives/__tests__/Link.test.tsx +0 -4
  442. package/src/primitives/__tests__/Svg.test.tsx +0 -4
  443. package/src/primitives/__tests__/Text.test.tsx +0 -4
  444. package/src/primitives/__tests__/primitives.test.tsx +0 -4
  445. package/src/primitives/__tests__/style-props.test.tsx +0 -4
  446. package/src/slotmap/__tests__/OT2SlotMap.test.tsx +0 -4
  447. package/src/slotmap/styles.module.css +0 -18
  448. package/src/structure/Pill.module.css +0 -16
  449. package/src/structure/Splash.module.css +0 -16
  450. package/src/structure/structure.module.css +0 -114
  451. package/src/styles/borders.module.css +0 -20
  452. package/src/styles/colors.module.css +0 -57
  453. package/src/styles/index.module.css +0 -8
  454. package/src/styles/typography.module.css +0 -22
  455. package/src/tooltips/__tests__/Tooltip.test.tsx +0 -4
  456. package/src/tooltips/__tests__/useHoverTooltip.test.tsx +0 -4
  457. package/src/tooltips/__tests__/usePopper.test.tsx +0 -4
  458. package/src/tooltips/__tests__/useTooltip.test.tsx +0 -4
  459. package/src/tooltips/tooltips.module.css +0 -72
@@ -1,5 +0,0 @@
1
- import { describe, it } from 'vitest'
2
-
3
- describe('DeprecatedCheckboxField', () => {
4
- it.todo('replace deprecated enzyme test')
5
- })
@@ -1,5 +0,0 @@
1
- import { describe, it } from 'vitest'
2
-
3
- describe('DropdownField', () => {
4
- it.todo('replace deprecated enzyme test')
5
- })
@@ -1,5 +0,0 @@
1
- import { describe, it } from 'vitest'
2
-
3
- describe('InputField', () => {
4
- it.todo('replace deprecated enzyme test')
5
- })
@@ -1,5 +0,0 @@
1
- import { describe, it } from 'vitest'
2
-
3
- describe('Select', () => {
4
- it.todo('replace deprecated enzyme test')
5
- })
@@ -1,5 +0,0 @@
1
- import { describe, it } from 'vitest'
2
-
3
- describe('SelectField', () => {
4
- it.todo('replace deprecated enzyme test')
5
- })
@@ -1,5 +0,0 @@
1
- import { describe, it } from 'vitest'
2
-
3
- describe('ToggleField', () => {
4
- it.todo('replace deprecated enzyme test')
5
- })
@@ -1,239 +0,0 @@
1
- @import '../index.module.css';
2
-
3
- .accessibly_hidden {
4
- position: absolute;
5
- overflow: hidden;
6
- clip: rect(0 0 0 0);
7
- height: 1px;
8
- width: 1px;
9
- margin: -1px;
10
- padding: 0;
11
- border: 0;
12
- }
13
-
14
- .form_field {
15
- font-size: var(--fs-body-1); /* from legacy --font-form-default */
16
- font-weight: var(--fw-regular); /* from legacy --font-form-default */
17
- color: var(--c-font-dark); /* from legacy --font-form-default */
18
- display: flex;
19
- align-items: center;
20
- line-height: 1;
21
- }
22
-
23
- .label_text {
24
- flex: 0 0 auto;
25
- padding: 0 0.5rem;
26
-
27
- &:empty {
28
- padding: 0;
29
- }
30
- }
31
-
32
- .form_group_label {
33
- font-size: var(--fs-body-1); /* from legacy --font-form-default */
34
- color: var(--c-font-dark); /* from legacy --font-form-default */
35
- font-weight: var(--fw-semibold);
36
- margin-bottom: 0.15rem;
37
- text-transform: capitalize;
38
-
39
- &::after {
40
- content: ':';
41
- }
42
- }
43
-
44
- .form_group_label_pipette_settings_slideout {
45
- font-weight: var(--fw-semibold);
46
- margin-bottom: 0.5rem;
47
- text-transform: capitalize;
48
- font-size: 13px;
49
- color: #16212d;
50
- }
51
-
52
- .checkbox_icon {
53
- /* Icon for radiobutton and for checkbox */
54
- width: 1.25rem;
55
- min-width: 1.25rem;
56
- color: var(--c-font-dark);
57
- display: flex;
58
- justify-content: center;
59
- align-items: center;
60
-
61
- &:not(.checkbox_disabled):hover {
62
- cursor: pointer;
63
- }
64
-
65
- &.error {
66
- color: var(--c-warning-dark);
67
- }
68
- }
69
-
70
- .checkbox_icon.checked {
71
- color: var(--c-blue);
72
- }
73
-
74
- .toggle_icon {
75
- /* Icon for radiobutton and for checkbox */
76
- display: block;
77
- width: 2rem;
78
- min-width: 2rem;
79
- color: var(--c-font-dark);
80
-
81
- &:not(.toggle_disabled):hover {
82
- cursor: pointer;
83
- }
84
- }
85
-
86
- .dropdown_disabled,
87
- .checkbox_disabled,
88
- .toggle_disabled {
89
- opacity: 0.5;
90
- }
91
-
92
- .input_field_container {
93
- width: 100%;
94
- }
95
-
96
- .input_field {
97
- display: flex;
98
- flex: 1 1;
99
- background-color: var(--c-light-gray);
100
- border-radius: var(--bd-radius-form-field);
101
- padding: 0.25rem 0.25rem 0.25rem 0.5rem;
102
-
103
- & input {
104
- font-size: var(--fs-body-1); /* from legacy --font-form-default */
105
- font-weight: var(--fw-regular); /* from legacy --font-form-default */
106
- color: var(--c-font-dark); /* from legacy --font-form-default */
107
- background-color: inherit;
108
- border-radius: inherit;
109
- border: none;
110
- flex: 1 1 auto;
111
- width: 100%;
112
- height: 1rem;
113
-
114
- /* TODO: Ian 2018-09-14 Firefox has 1px padding on input element,
115
- * but I can't figure out how to fix it in Firefox without breaking it in Chrome.
116
- * Better CSS reset for inputs needed?
117
- */
118
-
119
- /* padding: 1px; */
120
- }
121
-
122
- & input:focus {
123
- outline: none;
124
- }
125
-
126
- & input::placeholder {
127
- color: var(--c-med-gray);
128
- }
129
-
130
- &:focus-within {
131
- background-color: var(--c-white);
132
- box-shadow: 0 0.125rem 0.25rem 0 color-mod(var(--c-black) alpha(0.5));
133
- }
134
-
135
- & .suffix {
136
- font-size: var(--fs-body-1); /* from legacy --font-form-default */
137
- color: var(--c-font-dark); /* from legacy --font-form-default */
138
- font-weight: var(--fw-semibold);
139
- display: inline-block;
140
- flex: 1 0;
141
- text-align: right;
142
- align-self: center;
143
- }
144
- }
145
-
146
- .input_caption {
147
- font-size: var(--fs-caption); /* from legacy --font-form-caption */
148
- font-weight: var(--fw-semibold); /* from legacy --font-form-caption */
149
- color: var(--c-med-gray); /* from legacy --font-form-caption */
150
- line-height: 1.2;
151
-
152
- & .right {
153
- float: right;
154
- }
155
- }
156
-
157
- .inline {
158
- display: flex;
159
-
160
- & .label_text {
161
- padding-right: 1.5rem;
162
- }
163
- }
164
-
165
- .inline_item {
166
- flex: 1;
167
- }
168
-
169
- .error div,
170
- .error span {
171
- color: var(--c-warning-dark);
172
- }
173
-
174
- .error select,
175
- .error .input_field {
176
- background-color: var(--c-warning-light);
177
- }
178
-
179
- .dropdown {
180
- background-color: var(--c-light-gray);
181
- }
182
-
183
- .dropdown_field {
184
- position: relative;
185
-
186
- & select {
187
- font-size: var(--fs-body-1); /* from legacy --font-form-default */
188
- font-weight: var(--fw-regular); /* from legacy --font-form-default */
189
- color: var(--c-font-dark); /* from legacy --font-form-default */
190
- border: 0;
191
- padding: 0.25rem 0.5rem;
192
- outline: none;
193
- height: 1.5rem;
194
- border-radius: var(--bd-radius-form-field);
195
- font-family: inherit;
196
- width: 100%;
197
- appearance: none;
198
- overflow: hidden;
199
-
200
- &:focus {
201
- background-color: var(--c-white);
202
- box-shadow: 0 0.125rem 0.25rem 0 color-mod(var(--c-black) alpha(0.5));
203
- }
204
- }
205
-
206
- & .dropdown_icon {
207
- position: absolute;
208
- top: 0.2rem;
209
- right: 0.25rem;
210
- width: 1.25rem;
211
- pointer-events: none;
212
-
213
- & svg {
214
- color: var(--c-dark-gray);
215
- }
216
- }
217
- }
218
-
219
- .error_icon {
220
- display: inline-block;
221
- width: 1.5rem;
222
- min-width: 1.5rem;
223
- padding-right: 0.5rem;
224
- }
225
-
226
- .disabled {
227
- /* Disable mouse interaction. NOTE: User can still tab to focus a field */
228
- pointer-events: none;
229
-
230
- & .form_group_label {
231
- color: var(--c-light-gray);
232
- }
233
-
234
- /* stylelint-disable no-descending-specificity */
235
- & input,
236
- & .suffix {
237
- color: var(--c-med-gray);
238
- }
239
- }
@@ -1,43 +0,0 @@
1
- import { describe, it, vi, beforeEach } from 'vitest'
2
- import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/vitest'
4
- import { fixture12Trough } from '@opentrons/shared-data'
5
- import {
6
- LabwareOutline,
7
- LabwareWellLabelsComponent as LabwareWellLabels,
8
- } from '../labwareInternals'
9
- import { Labware } from '../Labware'
10
- import type { LabwareDefinition2 } from '@opentrons/shared-data'
11
-
12
- vi.mock('../labwareInternals')
13
-
14
- const troughFixture12 = fixture12Trough as LabwareDefinition2
15
-
16
- describe('Labware', () => {
17
- beforeEach(() => {
18
- vi.mocked(LabwareOutline).mockReturnValue(<div>mock labware outline</div>)
19
- })
20
-
21
- it('should render a labware outline', () => {
22
- const props = { definition: troughFixture12 }
23
- render(
24
- <svg>
25
- <Labware {...props} />
26
- </svg>
27
- )
28
- screen.getByText('mock labware outline')
29
- })
30
- it('should render well labels', () => {
31
- const props = {
32
- definition: troughFixture12,
33
- showLabels: true,
34
- }
35
- vi.mocked(LabwareWellLabels).mockReturnValue(<div>mock well labels</div>)
36
- render(
37
- <svg>
38
- <Labware {...props} />
39
- </svg>
40
- )
41
- screen.getByText('mock well labels')
42
- })
43
- })
@@ -1,54 +0,0 @@
1
- import { describe, it, vi, beforeEach } from 'vitest'
2
- import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/vitest'
4
- import { fixture12Trough } from '@opentrons/shared-data'
5
- import {
6
- StaticLabwareComponent as StaticLabware,
7
- WellLabelsComponent as WellLabels,
8
- StrokedWellsComponent as StrokedWells,
9
- } from '../labwareInternals'
10
- import { LabwareRender, WELL_LABEL_OPTIONS } from '../LabwareRender'
11
- import type { LabwareDefinition2 } from '@opentrons/shared-data'
12
-
13
- vi.mock('../labwareInternals')
14
-
15
- const troughFixture12 = fixture12Trough as LabwareDefinition2
16
-
17
- describe('LabwareRender', () => {
18
- beforeEach(() => {
19
- vi.mocked(StaticLabware).mockReturnValue(<div>mock static labware</div>)
20
- })
21
-
22
- it('should render a static labware component', () => {
23
- const props = { definition: troughFixture12 }
24
- render(
25
- <svg>
26
- <LabwareRender {...props} />
27
- </svg>
28
- )
29
- screen.getByText('mock static labware')
30
- })
31
- it('should render stroked wells', () => {
32
- const props = { definition: troughFixture12, wellStroke: { A1: 'blue' } }
33
- vi.mocked(StrokedWells).mockReturnValue(<div>mock stroked wells</div>)
34
- render(
35
- <svg>
36
- <LabwareRender {...props} />
37
- </svg>
38
- )
39
- screen.getByText('mock stroked wells')
40
- })
41
- it('should render well labels', () => {
42
- const props = {
43
- definition: troughFixture12,
44
- wellLabelOption: WELL_LABEL_OPTIONS.SHOW_LABEL_INSIDE,
45
- }
46
- vi.mocked(WellLabels).mockReturnValue(<div>mock well labels</div>)
47
- render(
48
- <svg>
49
- <LabwareRender {...props} />
50
- </svg>
51
- )
52
- screen.getByText('mock well labels')
53
- })
54
- })
@@ -1,66 +0,0 @@
1
- import { describe, it, expect } from 'vitest'
2
- import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/vitest'
4
- import { fixture12Trough as _fixture12Trough } from '@opentrons/shared-data'
5
- import { LabwareWellLabels } from '../LabwareWellLabels'
6
-
7
- import type { LabwareDefinition2 } from '@opentrons/shared-data'
8
-
9
- const troughFixture12 = _fixture12Trough as LabwareDefinition2
10
-
11
- describe('LabwareWellLabels', () => {
12
- it('should render well labels', () => {
13
- const props = {
14
- definition: troughFixture12,
15
- }
16
- render(
17
- <svg>
18
- <LabwareWellLabels {...props} />
19
- </svg>
20
- )
21
-
22
- screen.getByText('A')
23
- new Array(12)
24
- .fill(null)
25
- .forEach((_, index) => screen.getByText(`${index + 1}`))
26
- })
27
- it('should highlight the well labels with the given color', () => {
28
- expect.assertions(13) // there should be 13 highlighted well labels
29
- const props = {
30
- definition: troughFixture12,
31
- highlightedWellLabels: {
32
- wells: Object.keys(troughFixture12.wells as Record<string, unknown>),
33
- color: 'blue',
34
- },
35
- }
36
- render(
37
- <svg>
38
- <LabwareWellLabels {...props} />
39
- </svg>
40
- )
41
- const letterWellLabel = screen.getByText('A')
42
- expect(letterWellLabel.getAttribute('fill')).toBe('blue')
43
- new Array(12).fill(null).forEach((_, index) => {
44
- const numberWellLabel = screen.getByText(`${index + 1}`)
45
- expect(numberWellLabel.getAttribute('fill')).toBe('blue')
46
- })
47
- })
48
- it('should color the well labels', () => {
49
- expect.assertions(13) // there should be 13 well labels
50
- const props = {
51
- definition: troughFixture12,
52
- wellLabelColor: 'red',
53
- }
54
- render(
55
- <svg>
56
- <LabwareWellLabels {...props} />
57
- </svg>
58
- )
59
- const letterWellLabel = screen.getByText('A')
60
- expect(letterWellLabel.getAttribute('fill')).toBe('red')
61
- new Array(12).fill(null).forEach((_, index) => {
62
- const numberWellLabel = screen.getByText(`${index + 1}`)
63
- expect(numberWellLabel.getAttribute('fill')).toBe('red')
64
- })
65
- })
66
- })
@@ -1,31 +0,0 @@
1
- import { describe, it, vi } from 'vitest'
2
- import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/vitest'
4
- import { fixture12Trough } from '@opentrons/shared-data'
5
- import { StrokedWells } from '../StrokedWells'
6
- import { WellComponent as Well } from '../Well'
7
- import type { LabwareDefinition2 } from '@opentrons/shared-data'
8
-
9
- vi.mock('../Well')
10
-
11
- const troughFixture12 = fixture12Trough as LabwareDefinition2
12
-
13
- describe('StrokedWells', () => {
14
- it('should render a series of wells with the given stroke', () => {
15
- vi.mocked(Well).mockImplementation(({ stroke, wellName }) =>
16
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
17
- {
18
- return <div>{`well ${wellName} with stroke ${stroke}`}</div>
19
- }
20
- )
21
-
22
- render(
23
- <StrokedWells
24
- definition={troughFixture12}
25
- strokeByWell={{ A1: 'blue', A2: 'blue' }}
26
- />
27
- )
28
- screen.getByText('well A1 with stroke blue')
29
- screen.getByText('well A2 with stroke blue')
30
- })
31
- })
@@ -1,91 +0,0 @@
1
- import { describe, it, expect } from 'vitest'
2
- import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/vitest'
4
- import { fixture12Trough as _fixture12Trough } from '@opentrons/shared-data'
5
- import { WellLabels } from '../WellLabels'
6
- import { WELL_LABEL_OPTIONS } from '../../LabwareRender'
7
- import type { LabwareDefinition2 } from '@opentrons/shared-data'
8
-
9
- const troughFixture12 = _fixture12Trough as LabwareDefinition2
10
-
11
- describe('WellLabels', () => {
12
- it('should render well labels outside of the labware', () => {
13
- expect.assertions(14)
14
- const props = {
15
- definition: troughFixture12,
16
- wellLabelOption: WELL_LABEL_OPTIONS.SHOW_LABEL_INSIDE,
17
- }
18
- render(
19
- <svg>
20
- <WellLabels {...props} />
21
- </svg>
22
- )
23
- const wellLabels = screen.getAllByTestId('WellsLabels_show_inside')
24
- expect(wellLabels.length).toBe(13) // 1 label for the single "A" row + 12 labels for the trough columns
25
- expect(wellLabels[0]).toHaveTextContent('A')
26
- // assertions for each of the numbered columns, skipping the first well label which has the letter row
27
- new Array(12)
28
- .fill(null)
29
- .forEach((_, index) =>
30
- expect(wellLabels[index + 1]).toHaveTextContent(`${index + 1}`)
31
- )
32
- })
33
- it('should render well labels inside of the labware', () => {
34
- expect.assertions(14)
35
- const props = {
36
- definition: troughFixture12,
37
- wellLabelOption: WELL_LABEL_OPTIONS.SHOW_LABEL_OUTSIDE,
38
- }
39
- render(
40
- <svg>
41
- <WellLabels {...props} />
42
- </svg>
43
- )
44
- const wellLabels = screen.getAllByTestId('WellsLabels_show_outside')
45
- expect(wellLabels.length).toBe(13) // 1 label for the single "A" row + 12 labels for the trough columns
46
- expect(wellLabels[0]).toHaveTextContent('A')
47
- // assertions for each of the numbered columns, skipping the first well label which has the letter row
48
- new Array(12)
49
- .fill(null)
50
- .forEach((_, index) =>
51
- expect(wellLabels[index + 1]).toHaveTextContent(`${index + 1}`)
52
- )
53
- })
54
- it('should highlight the well labels with the given color', () => {
55
- expect.assertions(13) // there should be 13 highlighted well labels
56
- const props = {
57
- definition: troughFixture12,
58
- wellLabelOption: WELL_LABEL_OPTIONS.SHOW_LABEL_OUTSIDE,
59
- highlightedWellLabels: {
60
- wells: Object.keys(troughFixture12.wells),
61
- color: 'blue',
62
- },
63
- }
64
- render(
65
- <svg>
66
- <WellLabels {...props} />
67
- </svg>
68
- )
69
- const wellLabels = screen.getAllByTestId('WellsLabels_show_outside')
70
- wellLabels.forEach(wellLabel =>
71
- expect(wellLabel.getAttribute('fill')).toBe('blue')
72
- )
73
- })
74
- it('should color the well labels', () => {
75
- expect.assertions(13) // there should be 13 highlighted well labels
76
- const props = {
77
- definition: troughFixture12,
78
- wellLabelOption: WELL_LABEL_OPTIONS.SHOW_LABEL_OUTSIDE,
79
- wellLabelColor: 'red',
80
- }
81
- render(
82
- <svg>
83
- <WellLabels {...props} />
84
- </svg>
85
- )
86
- const wellLabels = screen.getAllByTestId('WellsLabels_show_outside')
87
- wellLabels.forEach(wellLabel =>
88
- expect(wellLabel.getAttribute('fill')).toBe('red')
89
- )
90
- })
91
- })
@@ -1,16 +0,0 @@
1
- import { describe, it, expect, vi, beforeEach } from 'vitest'
2
- import { render } from '@testing-library/react'
3
- import { EightEmanatingNozzles } from '../EightEmanatingNozzles'
4
- import { EmanatingNozzle } from '../EmanatingNozzle'
5
-
6
- vi.mock('../EmanatingNozzle')
7
-
8
- describe('EightEmanatingNozzles', () => {
9
- beforeEach(() => {
10
- vi.mocked(EmanatingNozzle).mockReturnValue(<div>mock emanating nozzle</div>)
11
- })
12
- it('should render eight emanating nozzles', () => {
13
- render(<EightEmanatingNozzles cx={5} initialCy={10} />)
14
- expect(EmanatingNozzle).toHaveBeenCalledTimes(8)
15
- })
16
- })
@@ -1,67 +0,0 @@
1
- import { describe, it, expect } from 'vitest'
2
- import { render, screen } from '@testing-library/react'
3
- import { C_SELECTED_DARK, C_TRANSPARENT } from '../../../styles'
4
- import { EmanatingNozzle } from '../EmanatingNozzle'
5
- import { SINGLE_CHANNEL_PIPETTE_HEIGHT } from '../constants'
6
-
7
- describe('EmanatingNozzle', () => {
8
- it('should render an small origin circle', () => {
9
- render(
10
- <svg>
11
- <EmanatingNozzle cx={5} cy={10} />
12
- </svg>
13
- )
14
- const originCircle = screen.getByTestId('origin_circle')
15
- expect(originCircle).toHaveAttribute('cx', '5')
16
- expect(originCircle).toHaveAttribute('cy', '10')
17
- expect(originCircle).toHaveAttribute('r', '0.5')
18
- expect(originCircle).toHaveAttribute('stroke', C_SELECTED_DARK)
19
- expect(originCircle).toHaveAttribute('fill', C_SELECTED_DARK)
20
- })
21
- it('should render a medium sized animating circle', () => {
22
- render(
23
- <svg>
24
- <EmanatingNozzle cx={5} cy={10} />
25
- </svg>
26
- )
27
- const emanatingCircle = screen.getByTestId('emanating_circle')
28
- expect(emanatingCircle).toHaveAttribute('cx', '5')
29
- expect(emanatingCircle).toHaveAttribute('cy', '10')
30
- expect(emanatingCircle).toHaveAttribute('r', '0.5')
31
- expect(emanatingCircle).toHaveAttribute('stroke', C_SELECTED_DARK)
32
- expect(emanatingCircle).toHaveAttribute('fill', C_TRANSPARENT)
33
- })
34
- it('should render a medium sized animating circle that grows', () => {
35
- render(
36
- <svg>
37
- <EmanatingNozzle cx={5} cy={10} />
38
- </svg>
39
- )
40
- const radiusAnimation = screen.getByTestId('radius_animation')
41
- expect(radiusAnimation).toHaveAttribute('attributeName', 'r')
42
- expect(radiusAnimation).toHaveAttribute('from', '5')
43
- expect(radiusAnimation).toHaveAttribute(
44
- 'to',
45
- (SINGLE_CHANNEL_PIPETTE_HEIGHT / 2).toString()
46
- )
47
- expect(radiusAnimation).toHaveAttribute('begin', '0')
48
- expect(radiusAnimation).toHaveAttribute('dur', '1.1')
49
- expect(radiusAnimation).toHaveAttribute('calcMode', 'ease-out')
50
- expect(radiusAnimation).toHaveAttribute('repeatCount', 'indefinite')
51
- })
52
- it('should render a medium sized animating circle that fades out', () => {
53
- render(
54
- <svg>
55
- <EmanatingNozzle cx={5} cy={10} />
56
- </svg>
57
- )
58
- const opacityAnimation = screen.getByTestId('opacity_animation')
59
- expect(opacityAnimation).toHaveAttribute('attributeName', 'opacity')
60
- expect(opacityAnimation).toHaveAttribute('from', '0.7')
61
- expect(opacityAnimation).toHaveAttribute('to', '0')
62
- expect(opacityAnimation).toHaveAttribute('begin', '0')
63
- expect(opacityAnimation).toHaveAttribute('dur', '1.1')
64
- expect(opacityAnimation).toHaveAttribute('calcMode', 'linear')
65
- expect(opacityAnimation).toHaveAttribute('repeatCount', 'indefinite')
66
- })
67
- })