@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.
- package/package.json +2 -2
- package/src/hardware-sim/BaseDeck/something.test.tsx +7 -0
- package/src/hardware-sim/Deck/SlotLabels.tsx +1 -1
- package/src/hardware-sim/ProtocolDeck/LabwareInfo.tsx +1 -1
- package/src/hardware-sim/ProtocolDeck/index.tsx +2 -2
- package/src/index.ts +2 -41
- package/src/molecules/DeckInfoLabel/index.tsx +1 -1
- package/src/molecules/DeckLabel/index.tsx +3 -3
- package/lib/__tests__/utils.test.d.ts +0 -1
- package/lib/alerts/AlertItem.d.ts +0 -21
- package/lib/alerts/index.d.ts +0 -1
- package/lib/atoms/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/lib/atoms/Checkbox/index.d.ts +0 -25
- package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +0 -1
- package/lib/atoms/CheckboxField/index.d.ts +0 -20
- package/lib/atoms/Chip/__tests__/Chip.test.d.ts +0 -1
- package/lib/atoms/Chip/index.d.ts +0 -20
- package/lib/atoms/Divider/index.d.ts +0 -5
- package/lib/atoms/InputField/__tests__/InputField.test.d.ts +0 -1
- package/lib/atoms/InputField/index.d.ts +0 -68
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +0 -10
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +0 -7
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +0 -14
- package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +0 -3
- package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +0 -1
- package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +0 -1
- package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +0 -1
- package/lib/atoms/ListButton/index.d.ts +0 -11
- package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +0 -15
- package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +0 -8
- package/lib/atoms/ListItem/ListItemChildren/index.d.ts +0 -2
- package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/lib/atoms/ListItem/index.d.ts +0 -14
- package/lib/atoms/MenuList/MenuItem.d.ts +0 -7
- package/lib/atoms/MenuList/OverflowBtn.d.ts +0 -7
- package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +0 -1
- package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +0 -1
- package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +0 -1
- package/lib/atoms/MenuList/index.d.ts +0 -8
- package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +0 -1
- package/lib/atoms/Snackbar/index.d.ts +0 -7
- package/lib/atoms/StepMeter/index.d.ts +0 -7
- package/lib/atoms/StyledText/LegacyStyledText.d.ts +0 -6
- package/lib/atoms/StyledText/StyledText.d.ts +0 -154
- package/lib/atoms/StyledText/index.d.ts +0 -2
- package/lib/atoms/Tag/__tests__/Tag.test.d.ts +0 -1
- package/lib/atoms/Tag/index.d.ts +0 -14
- package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +0 -1
- package/lib/atoms/Toast/__tests__/Toast.test.d.ts +0 -1
- package/lib/atoms/Toast/index.d.ts +0 -25
- package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +0 -1
- package/lib/atoms/ToggleGroup/index.d.ts +0 -9
- package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +0 -1
- package/lib/atoms/Tooltip/index.d.ts +0 -11
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -1
- package/lib/atoms/buttons/AltPrimaryButton.d.ts +0 -1
- package/lib/atoms/buttons/EmptySelectorButton.d.ts +0 -10
- package/lib/atoms/buttons/LargeButton.d.ts +0 -17
- package/lib/atoms/buttons/PrimaryButton.d.ts +0 -1
- package/lib/atoms/buttons/RadioButton.d.ts +0 -21
- package/lib/atoms/buttons/SecondaryButton.d.ts +0 -7
- package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/index.d.ts +0 -6
- package/lib/atoms/index.d.ts +0 -20
- package/lib/barrel.d.ts +0 -3
- package/lib/buttons/Button.d.ts +0 -50
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -8
- package/lib/buttons/FlatButton.d.ts +0 -5
- package/lib/buttons/IconButton.d.ts +0 -14
- package/lib/buttons/OutlineButton.d.ts +0 -8
- package/lib/buttons/index.d.ts +0 -5
- package/lib/controls/ControlInfo.d.ts +0 -6
- package/lib/controls/LabeledButton.d.ts +0 -8
- package/lib/controls/LabeledCheckbox.d.ts +0 -10
- package/lib/controls/LabeledControl.d.ts +0 -7
- package/lib/controls/LabeledRadioGroup.d.ts +0 -8
- package/lib/controls/LabeledSelect.d.ts +0 -9
- package/lib/controls/LabeledToggle.d.ts +0 -11
- package/lib/controls/StackedLabeledControl.d.ts +0 -7
- package/lib/controls/ToggleButton.d.ts +0 -5
- package/lib/controls/index.d.ts +0 -6
- package/lib/forms/DeprecatedCheckboxField.d.ts +0 -33
- package/lib/forms/DropdownField.d.ts +0 -38
- package/lib/forms/FormGroup.d.ts +0 -19
- package/lib/forms/LegacyInputField.d.ts +0 -51
- package/lib/forms/RadioGroup.d.ts +0 -29
- package/lib/forms/Select.d.ts +0 -26
- package/lib/forms/SelectField.d.ts +0 -33
- package/lib/forms/ToggleField.d.ts +0 -22
- package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -1
- package/lib/forms/__tests__/DropdownField.test.d.ts +0 -1
- package/lib/forms/__tests__/InputField.test.d.ts +0 -1
- package/lib/forms/__tests__/Select.test.d.ts +0 -1
- package/lib/forms/__tests__/SelectField.test.d.ts +0 -1
- package/lib/forms/__tests__/ToggleField.test.d.ts +0 -1
- package/lib/forms/index.d.ts +0 -8
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +0 -49
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +0 -12
- package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +0 -2
- package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +0 -2
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +0 -13
- package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +0 -20
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +0 -14
- package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +0 -4
- package/lib/hardware-sim/BaseDeck/index.d.ts +0 -5
- package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -10
- package/lib/hardware-sim/Deck/FlexTrash.d.ts +0 -14
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -16
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -10
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +0 -14
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +0 -12
- package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +0 -9
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +0 -21
- package/lib/hardware-sim/Deck/SlotLabels.d.ts +0 -12
- package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +0 -1
- package/lib/hardware-sim/Deck/constants.d.ts +0 -1
- package/lib/hardware-sim/Deck/index.d.ts +0 -8
- package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -8
- package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +0 -11
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +0 -12
- package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -11
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +0 -20
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +0 -20
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +0 -15
- package/lib/hardware-sim/Labware/Labware.d.ts +0 -39
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +0 -27
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +0 -46
- package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +0 -20
- package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/index.d.ts +0 -5
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +0 -11
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +0 -21
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +0 -15
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +0 -25
- package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +0 -9
- package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +0 -19
- package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +0 -20
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +0 -12
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +0 -8
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +0 -12
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -4
- package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -1
- package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -1
- package/lib/hardware-sim/Module/ModuleTag.d.ts +0 -9
- package/lib/hardware-sim/Module/PlateReader.d.ts +0 -1
- package/lib/hardware-sim/Module/Temperature.d.ts +0 -4
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -6
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -6
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -7
- package/lib/hardware-sim/Module/index.d.ts +0 -18
- package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +0 -4
- package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +0 -4
- package/lib/hardware-sim/Pipette/PipetteRender.d.ts +0 -8
- package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/constants.d.ts +0 -7
- package/lib/hardware-sim/Pipette/index.d.ts +0 -1
- package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +0 -6
- package/lib/hardware-sim/ProtocolDeck/index.d.ts +0 -14
- package/lib/hardware-sim/ProtocolDeck/types.d.ts +0 -8
- package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +0 -1
- package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +0 -5
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +0 -12
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +0 -3
- package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +0 -10
- package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +0 -2
- package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +0 -4
- package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +0 -3
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +0 -7
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +0 -16
- package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +0 -2
- package/lib/hardware-sim/index.d.ts +0 -11
- package/lib/hardware-sim/utils.d.ts +0 -3
- package/lib/helix-design-system/borders.d.ts +0 -26
- package/lib/helix-design-system/colors.d.ts +0 -86
- package/lib/helix-design-system/index.d.ts +0 -4
- package/lib/helix-design-system/product/index.d.ts +0 -1
- package/lib/helix-design-system/product/typography.d.ts +0 -79
- package/lib/helix-design-system/style.d.ts +0 -1
- package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -1
- package/lib/hooks/__tests__/useDrag.test.d.ts +0 -1
- package/lib/hooks/__tests__/useIdle.test.d.ts +0 -1
- package/lib/hooks/__tests__/useInterval.test.d.ts +0 -1
- package/lib/hooks/__tests__/useLongPress.test.d.ts +0 -1
- package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -1
- package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -1
- package/lib/hooks/__tests__/useScrolling.test.d.ts +0 -1
- package/lib/hooks/__tests__/useSwipe.test.d.ts +0 -1
- package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -1
- package/lib/hooks/__tests__/useToggle.test.d.ts +0 -1
- package/lib/hooks/index.d.ts +0 -13
- package/lib/hooks/useConditionalConfirm.d.ts +0 -41
- package/lib/hooks/useDrag.d.ts +0 -22
- package/lib/hooks/useIdle.d.ts +0 -11
- package/lib/hooks/useInterval.d.ts +0 -11
- package/lib/hooks/useLongPress.d.ts +0 -19
- package/lib/hooks/useMenuHandleClickOutside.d.ts +0 -9
- package/lib/hooks/useMountEffect.d.ts +0 -8
- package/lib/hooks/usePrevious.d.ts +0 -9
- package/lib/hooks/useScrolling.d.ts +0 -1
- package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -18
- package/lib/hooks/useSwipe.d.ts +0 -12
- package/lib/hooks/useTimeout.d.ts +0 -9
- package/lib/hooks/useToggle.d.ts +0 -22
- package/lib/icons/Icon.d.ts +0 -34
- package/lib/icons/ModuleIcon.d.ts +0 -11
- package/lib/icons/NotificationIcon.d.ts +0 -12
- package/lib/icons/icon-data.d.ts +0 -4
- package/lib/icons/index.d.ts +0 -4
- package/lib/images/index.d.ts +0 -1
- package/lib/images/labware/index.d.ts +0 -1
- package/lib/images/labware/measurement-guide/index.d.ts +0 -13
- package/lib/index.d.ts +0 -26
- package/lib/instrument/InstrumentDiagram.d.ts +0 -11
- package/lib/instrument/InstrumentGroup.d.ts +0 -11
- package/lib/instrument/InstrumentInfo.d.ts +0 -18
- package/lib/instrument/PipetteSelect.d.ts +0 -20
- package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +0 -1
- package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -1
- package/lib/instrument/index.d.ts +0 -4
- package/lib/interaction-enhancers/ClickOutside.d.ts +0 -18
- package/lib/interaction-enhancers/HandleKeypress.d.ts +0 -27
- package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -1
- package/lib/interaction-enhancers/index.d.ts +0 -4
- package/lib/interaction-enhancers/useHover.d.ts +0 -33
- package/lib/interaction-enhancers/useOnClickOutside.d.ts +0 -5
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -7
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
- package/lib/legacy-hardware-sim/index.d.ts +0 -2
- package/lib/lists/SidePanelGroup.d.ts +0 -18
- package/lib/lists/TitledList.d.ts +0 -44
- package/lib/lists/index.d.ts +0 -2
- package/lib/modals/AlertModal.d.ts +0 -28
- package/lib/modals/ContinueModal.d.ts +0 -10
- package/lib/modals/LegacyModal.d.ts +0 -24
- package/lib/modals/Modal.d.ts +0 -24
- package/lib/modals/ModalHeader.d.ts +0 -13
- package/lib/modals/ModalShell.d.ts +0 -34
- package/lib/modals/Overlay.d.ts +0 -9
- package/lib/modals/SpinnerModal.d.ts +0 -13
- package/lib/modals/SpinnerModalPage.d.ts +0 -12
- package/lib/modals/__tests__/Modal.test.d.ts +0 -1
- package/lib/modals/__tests__/ModalHeader.test.d.ts +0 -1
- package/lib/modals/__tests__/ModalShell.test.d.ts +0 -1
- package/lib/modals/index.d.ts +0 -9
- package/lib/molecules/Banner/__tests__/Banner.test.d.ts +0 -1
- package/lib/molecules/Banner/index.d.ts +0 -23
- package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +0 -1
- package/lib/molecules/DeckInfoLabel/index.d.ts +0 -19
- package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +0 -1
- package/lib/molecules/DeckLabel/index.d.ts +0 -10
- package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +0 -1
- package/lib/molecules/DropdownMenu/index.d.ts +0 -41
- package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +0 -1
- package/lib/molecules/InfoScreen/index.d.ts +0 -8
- package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +0 -1
- package/lib/molecules/LiquidIcon/index.d.ts +0 -9
- package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +0 -1
- package/lib/molecules/ParametersTable/index.d.ts +0 -10
- package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/lib/molecules/Tabs/index.d.ts +0 -10
- package/lib/molecules/index.d.ts +0 -8
- package/lib/nav/SidePanel.d.ts +0 -6
- package/lib/nav/index.d.ts +0 -1
- package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +0 -1
- package/lib/organisms/DeckLabelSet/index.d.ts +0 -11
- package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +0 -1
- package/lib/organisms/EndUserAgreementFooter/index.d.ts +0 -1
- package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +0 -1
- package/lib/organisms/Toolbox/index.d.ts +0 -20
- package/lib/organisms/index.d.ts +0 -3
- package/lib/primitives/Box.d.ts +0 -7
- package/lib/primitives/Btn.d.ts +0 -59
- package/lib/primitives/Flex.d.ts +0 -7
- package/lib/primitives/ForeignObject.d.ts +0 -23
- package/lib/primitives/Link.d.ts +0 -11
- package/lib/primitives/Svg.d.ts +0 -23
- package/lib/primitives/Text.d.ts +0 -7
- package/lib/primitives/__tests__/Box.test.d.ts +0 -1
- package/lib/primitives/__tests__/Btn.test.d.ts +0 -1
- package/lib/primitives/__tests__/Flex.test.d.ts +0 -1
- package/lib/primitives/__tests__/Link.test.d.ts +0 -1
- package/lib/primitives/__tests__/Svg.test.d.ts +0 -1
- package/lib/primitives/__tests__/Text.test.d.ts +0 -1
- package/lib/primitives/__tests__/primitives.test.d.ts +0 -1
- package/lib/primitives/__tests__/style-props.test.d.ts +0 -1
- package/lib/primitives/index.d.ts +0 -9
- package/lib/primitives/style-props.d.ts +0 -4
- package/lib/primitives/types.d.ts +0 -95
- package/lib/robot-types.d.ts +0 -1
- package/lib/slotmap/OT2SlotMap.d.ts +0 -9
- package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +0 -1
- package/lib/slotmap/index.d.ts +0 -1
- package/lib/structure/Card.d.ts +0 -18
- package/lib/structure/LabeledValue.d.ts +0 -12
- package/lib/structure/Pill.d.ts +0 -18
- package/lib/structure/Splash.d.ts +0 -8
- package/lib/structure/TitleBar.d.ts +0 -17
- package/lib/structure/index.d.ts +0 -5
- package/lib/styles/borders.d.ts +0 -8
- package/lib/styles/colors.d.ts +0 -37
- package/lib/styles/cursor.d.ts +0 -10
- package/lib/styles/flexbox.d.ts +0 -34
- package/lib/styles/index.d.ts +0 -8
- package/lib/styles/layout.d.ts +0 -24
- package/lib/styles/position.d.ts +0 -5
- package/lib/styles/spacing.d.ts +0 -9
- package/lib/styles/typography.d.ts +0 -36
- package/lib/testing/utils/index.d.ts +0 -2
- package/lib/testing/utils/matchers.d.ts +0 -3
- package/lib/testing/utils/renderWithProviders.d.ts +0 -9
- package/lib/tooltips/DeprecatedTooltip.d.ts +0 -37
- package/lib/tooltips/HoverTooltip.d.ts +0 -36
- package/lib/tooltips/LegacyTooltip.d.ts +0 -35
- package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -1
- package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -1
- package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -1
- package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -1
- package/lib/tooltips/constants.d.ts +0 -17
- package/lib/tooltips/index.d.ts +0 -8
- package/lib/tooltips/styles.d.ts +0 -12
- package/lib/tooltips/types.d.ts +0 -52
- package/lib/tooltips/useHoverTooltip.d.ts +0 -24
- package/lib/tooltips/usePopper.d.ts +0 -2
- package/lib/tooltips/useTooltip.d.ts +0 -31
- package/lib/ui-style-constants/index.d.ts +0 -4
- package/lib/ui-style-constants/responsiveness.d.ts +0 -3
- package/lib/ui-style-constants/spacing.d.ts +0 -18
- package/lib/ui-style-constants/typography.d.ts +0 -71
- package/lib/ui-style-constants/viewport.d.ts +0 -15
- package/lib/utils.d.ts +0 -15
- package/src/__tests__/utils.test.ts +0 -27
- package/src/alerts/alerts.module.css +0 -103
- package/src/atoms/Checkbox/__tests__/Checkbox.test.tsx +0 -55
- package/src/atoms/CheckboxField/__tests__/CheckboxField.test.tsx +0 -141
- package/src/atoms/Chip/__tests__/Chip.test.tsx +0 -429
- package/src/atoms/InputField/__tests__/InputField.test.tsx +0 -63
- package/src/atoms/ListButton/__tests__/ListButton.test.tsx +0 -46
- package/src/atoms/ListButton/__tests__/ListButtonAccordion.test.tsx +0 -35
- package/src/atoms/ListButton/__tests__/ListButtonRadioButton.test.tsx +0 -27
- package/src/atoms/ListItem/__tests__/ListItem.test.tsx +0 -61
- package/src/atoms/MenuList/__tests__/MenuItem.test.tsx +0 -50
- package/src/atoms/MenuList/__tests__/MenuList.test.tsx +0 -36
- package/src/atoms/MenuList/__tests__/OverflowBtn.test.tsx +0 -33
- package/src/atoms/Snackbar/__tests__/Snackbar.test.tsx +0 -73
- package/src/atoms/Tag/__tests__/Tag.test.tsx +0 -55
- package/src/atoms/Toast/__tests__/ODDToast.test.tsx +0 -178
- package/src/atoms/Toast/__tests__/Toast.test.tsx +0 -174
- package/src/atoms/ToggleGroup/__tests__/ToggleGroup.test.tsx +0 -28
- package/src/atoms/Tooltip/__tests__/Tooltip.test.tsx +0 -78
- package/src/atoms/buttons/__tests__/AlertPrimaryButton.test.tsx +0 -47
- package/src/atoms/buttons/__tests__/AltPrimaryButton.test.tsx +0 -57
- package/src/atoms/buttons/__tests__/EmptySelectorButton.test.tsx +0 -42
- package/src/atoms/buttons/__tests__/LargeButton.test.tsx +0 -91
- package/src/atoms/buttons/__tests__/PrimaryButton.test.tsx +0 -64
- package/src/atoms/buttons/__tests__/RadioButton.test.tsx +0 -98
- package/src/atoms/buttons/__tests__/SecondaryButton.test.tsx +0 -54
- package/src/buttons/buttons.module.css +0 -428
- package/src/controls/styles.module.css +0 -103
- package/src/forms/Select.module.css +0 -118
- package/src/forms/SelectField.module.css +0 -16
- package/src/forms/__tests__/DeprecatedCheckboxField.test.tsx +0 -5
- package/src/forms/__tests__/DropdownField.test.tsx +0 -5
- package/src/forms/__tests__/InputField.test.tsx +0 -5
- package/src/forms/__tests__/Select.test.tsx +0 -5
- package/src/forms/__tests__/SelectField.test.tsx +0 -5
- package/src/forms/__tests__/ToggleField.test.tsx +0 -5
- package/src/forms/forms.module.css +0 -239
- package/src/hardware-sim/Labware/__tests__/Labware.test.tsx +0 -43
- package/src/hardware-sim/Labware/__tests__/LabwareRender.test.tsx +0 -54
- package/src/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.tsx +0 -66
- package/src/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.tsx +0 -31
- package/src/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.tsx +0 -91
- package/src/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.tsx +0 -16
- package/src/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.tsx +0 -67
- package/src/hardware-sim/Pipette/__tests__/PipetteRender.test.tsx +0 -99
- package/src/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.ts +0 -158
- package/src/hooks/__tests__/useConditionalConfirm.test.tsx +0 -5
- package/src/hooks/__tests__/useDrag.test.ts +0 -46
- package/src/hooks/__tests__/useIdle.test.ts +0 -68
- package/src/hooks/__tests__/useInterval.test.tsx +0 -5
- package/src/hooks/__tests__/useLongPress.test.ts +0 -25
- package/src/hooks/__tests__/useMountEffect.test.tsx +0 -5
- package/src/hooks/__tests__/usePrevious.test.tsx +0 -5
- package/src/hooks/__tests__/useScrolling.test.tsx +0 -46
- package/src/hooks/__tests__/useSwipe.test.tsx +0 -26
- package/src/hooks/__tests__/useTimeout.test.tsx +0 -5
- package/src/hooks/__tests__/useToggle.test.tsx +0 -5
- package/src/index.module.css +0 -9
- package/src/instrument/PipetteSelect.module.css +0 -14
- package/src/instrument/__tests__/InstrumentInfo.test.tsx +0 -55
- package/src/instrument/__tests__/PipetteSelect.test.tsx +0 -4
- package/src/instrument/instrument.module.css +0 -45
- package/src/interaction-enhancers/__tests__/useHover.test.tsx +0 -4
- package/src/legacy-hardware-sim/LabwareNameOverlay.module.css +0 -20
- package/src/legacy-hardware-sim/ModuleItem.module.css +0 -98
- package/src/lists/lists.module.css +0 -171
- package/src/modals/__tests__/Modal.test.tsx +0 -65
- package/src/modals/__tests__/ModalHeader.test.tsx +0 -73
- package/src/modals/__tests__/ModalShell.test.tsx +0 -45
- package/src/modals/modals.module.css +0 -275
- package/src/molecules/Banner/__tests__/Banner.test.tsx +0 -94
- package/src/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.tsx +0 -49
- package/src/molecules/DeckLabel/__tests__/DeckLabel.test.tsx +0 -69
- package/src/molecules/DropdownMenu/__tests__/DropdownMenu.test.tsx +0 -85
- package/src/molecules/InfoScreen/__tests__/InfoScreen.test.tsx +0 -40
- package/src/molecules/LiquidIcon/__tests__/LiquidIcon.test.tsx +0 -50
- package/src/molecules/ParametersTable/__tests__/ParametersTable.test.tsx +0 -126
- package/src/molecules/Tabs/__tests__/Tabs.test.tsx +0 -90
- package/src/nav/SidePanel.module.css +0 -34
- package/src/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.tsx +0 -49
- package/src/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.tsx +0 -21
- package/src/organisms/Toolbox/__tests__/Toolbox.test.tsx +0 -35
- package/src/primitives/__tests__/Box.test.tsx +0 -4
- package/src/primitives/__tests__/Btn.test.tsx +0 -4
- package/src/primitives/__tests__/Flex.test.tsx +0 -4
- package/src/primitives/__tests__/Link.test.tsx +0 -4
- package/src/primitives/__tests__/Svg.test.tsx +0 -4
- package/src/primitives/__tests__/Text.test.tsx +0 -4
- package/src/primitives/__tests__/primitives.test.tsx +0 -4
- package/src/primitives/__tests__/style-props.test.tsx +0 -4
- package/src/slotmap/__tests__/OT2SlotMap.test.tsx +0 -4
- package/src/slotmap/styles.module.css +0 -18
- package/src/structure/Pill.module.css +0 -16
- package/src/structure/Splash.module.css +0 -16
- package/src/structure/structure.module.css +0 -114
- package/src/styles/borders.module.css +0 -20
- package/src/styles/colors.module.css +0 -57
- package/src/styles/index.module.css +0 -8
- package/src/styles/typography.module.css +0 -22
- package/src/tooltips/__tests__/Tooltip.test.tsx +0 -4
- package/src/tooltips/__tests__/useHoverTooltip.test.tsx +0 -4
- package/src/tooltips/__tests__/usePopper.test.tsx +0 -4
- package/src/tooltips/__tests__/useTooltip.test.tsx +0 -4
- package/src/tooltips/tooltips.module.css +0 -72
|
@@ -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
|
-
})
|