@opentrons/components 0.1.1 → 0.1.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__tests__/utils.test.d.ts +1 -0
- package/lib/alerts/AlertItem.d.ts +21 -0
- package/lib/alerts/index.d.ts +1 -0
- package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +1 -0
- package/lib/atoms/CheckboxField/index.d.ts +20 -0
- package/lib/atoms/StepMeter/index.d.ts +6 -0
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -0
- package/lib/atoms/buttons/PrimaryButton.d.ts +1 -0
- package/lib/atoms/buttons/SecondaryButton.d.ts +7 -0
- package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/index.d.ts +3 -0
- package/lib/atoms/index.d.ts +3 -0
- package/lib/barrel.d.ts +3 -0
- package/lib/buttons/Button.d.ts +49 -0
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +9 -0
- package/lib/buttons/FlatButton.d.ts +6 -0
- package/lib/buttons/IconButton.d.ts +15 -0
- package/lib/buttons/OutlineButton.d.ts +9 -0
- package/lib/buttons/index.d.ts +5 -0
- package/lib/controls/ControlInfo.d.ts +6 -0
- package/lib/controls/LabeledButton.d.ts +8 -0
- package/lib/controls/LabeledCheckbox.d.ts +10 -0
- package/lib/controls/LabeledControl.d.ts +7 -0
- package/lib/controls/LabeledRadioGroup.d.ts +8 -0
- package/lib/controls/LabeledSelect.d.ts +9 -0
- package/lib/controls/LabeledToggle.d.ts +11 -0
- package/lib/controls/StackedLabeledControl.d.ts +7 -0
- package/lib/controls/ToggleButton.d.ts +6 -0
- package/lib/controls/index.d.ts +6 -0
- package/lib/forms/DeprecatedCheckboxField.d.ts +33 -0
- package/lib/forms/DropdownField.d.ts +38 -0
- package/lib/forms/FormGroup.d.ts +19 -0
- package/lib/forms/InputField.d.ts +51 -0
- package/lib/forms/RadioGroup.d.ts +29 -0
- package/lib/forms/Select.d.ts +27 -0
- package/lib/forms/SelectField.d.ts +33 -0
- package/lib/forms/ToggleField.d.ts +22 -0
- package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -0
- package/lib/forms/__tests__/DropdownField.test.d.ts +0 -0
- package/lib/forms/__tests__/InputField.test.d.ts +0 -0
- package/lib/forms/__tests__/Select.test.d.ts +0 -0
- package/lib/forms/__tests__/SelectField.test.d.ts +0 -0
- package/lib/forms/__tests__/ToggleField.test.d.ts +0 -0
- package/lib/forms/index.d.ts +8 -0
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +42 -0
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +12 -0
- package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +2 -0
- package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +2 -0
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +13 -0
- package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +21 -0
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +14 -0
- package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +4 -0
- package/lib/hardware-sim/BaseDeck/index.d.ts +5 -0
- package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +11 -0
- package/lib/hardware-sim/Deck/FlexTrash.d.ts +14 -0
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +17 -0
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +11 -0
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +14 -0
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +12 -0
- package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +8 -0
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +21 -0
- package/lib/hardware-sim/Deck/SlotLabels.d.ts +12 -0
- package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +2 -0
- package/lib/hardware-sim/Deck/constants.d.ts +1 -0
- package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +2 -0
- package/lib/hardware-sim/Deck/index.d.ts +9 -0
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +9 -0
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +9 -0
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +9 -0
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +15 -0
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +14 -0
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +15 -0
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +40 -0
- package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/index.d.ts +3 -0
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +10 -0
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +18 -0
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +17 -0
- package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +9 -0
- package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +19 -0
- package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +19 -0
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +12 -0
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +6 -0
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +12 -0
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +5 -0
- package/lib/hardware-sim/Module/MagneticBlock.d.ts +2 -0
- package/lib/hardware-sim/Module/MagneticModule.d.ts +2 -0
- package/lib/hardware-sim/Module/ModuleTag.d.ts +9 -0
- package/lib/hardware-sim/Module/Temperature.d.ts +5 -0
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +7 -0
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +7 -0
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +8 -0
- package/lib/hardware-sim/Module/index.d.ts +18 -0
- package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +4 -0
- package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +4 -0
- package/lib/hardware-sim/Pipette/PipetteRender.d.ts +8 -0
- package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +1 -0
- package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +1 -0
- package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +1 -0
- package/lib/hardware-sim/Pipette/constants.d.ts +7 -0
- package/lib/hardware-sim/Pipette/index.d.ts +1 -0
- package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +6 -0
- package/lib/hardware-sim/ProtocolDeck/index.d.ts +12 -0
- package/lib/hardware-sim/ProtocolDeck/types.d.ts +8 -0
- package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +1 -0
- package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +5 -0
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +11 -0
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +3 -0
- package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +10 -0
- package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +2 -0
- package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +4 -0
- package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +2 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +7 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +19 -0
- package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +2 -0
- package/lib/hardware-sim/index.d.ts +11 -0
- package/lib/hardware-sim/utils.d.ts +3 -0
- package/lib/helix-design-system/colors.d.ts +75 -0
- package/lib/helix-design-system/index.d.ts +1 -0
- package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -0
- package/lib/hooks/__tests__/useDrag.test.d.ts +1 -0
- package/lib/hooks/__tests__/useIdle.test.d.ts +1 -0
- package/lib/hooks/__tests__/useInterval.test.d.ts +0 -0
- package/lib/hooks/__tests__/useLongPress.test.d.ts +1 -0
- package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -0
- package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -0
- package/lib/hooks/__tests__/useScrolling.test.d.ts +1 -0
- package/lib/hooks/__tests__/useSwipe.test.d.ts +1 -0
- package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -0
- package/lib/hooks/__tests__/useToggle.test.d.ts +0 -0
- package/lib/hooks/index.d.ts +12 -0
- package/lib/hooks/useConditionalConfirm.d.ts +40 -0
- package/lib/hooks/useDrag.d.ts +22 -0
- package/lib/hooks/useIdle.d.ts +11 -0
- package/lib/hooks/useInterval.d.ts +11 -0
- package/lib/hooks/useLongPress.d.ts +19 -0
- package/lib/hooks/useMountEffect.d.ts +8 -0
- package/lib/hooks/usePrevious.d.ts +9 -0
- package/lib/hooks/useScrolling.d.ts +8 -0
- package/lib/hooks/useSelectDeckLocation/index.d.ts +17 -0
- package/lib/hooks/useSwipe.d.ts +12 -0
- package/lib/hooks/useTimeout.d.ts +9 -0
- package/lib/hooks/useToggle.d.ts +22 -0
- package/lib/icons/Icon.d.ts +34 -0
- package/lib/icons/ModuleIcon.d.ts +12 -0
- package/lib/icons/NotificationIcon.d.ts +13 -0
- package/lib/icons/icon-data.d.ts +582 -0
- package/lib/icons/index.d.ts +3 -0
- package/lib/images/index.d.ts +1 -0
- package/lib/images/labware/index.d.ts +1 -0
- package/lib/images/labware/measurement-guide/index.d.ts +13 -0
- package/lib/index.d.ts +28 -0
- package/lib/instrument/InfoItem.d.ts +11 -0
- package/lib/instrument/InstrumentDiagram.d.ts +12 -0
- package/lib/instrument/InstrumentGroup.d.ts +12 -0
- package/lib/instrument/InstrumentInfo.d.ts +24 -0
- package/lib/instrument/PipetteSelect.d.ts +20 -0
- package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -0
- package/lib/instrument/index.d.ts +5 -0
- package/lib/interaction-enhancers/ClickOutside.d.ts +18 -0
- package/lib/interaction-enhancers/HandleKeypress.d.ts +27 -0
- package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -0
- package/lib/interaction-enhancers/index.d.ts +4 -0
- package/lib/interaction-enhancers/useHover.d.ts +33 -0
- package/lib/interaction-enhancers/useOnClickOutside.d.ts +5 -0
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +8 -0
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +18 -0
- package/lib/legacy-hardware-sim/index.d.ts +2 -0
- package/lib/lists/ListItem.d.ts +37 -0
- package/lib/lists/SidePanelGroup.d.ts +18 -0
- package/lib/lists/TitledList.d.ts +44 -0
- package/lib/lists/index.d.ts +3 -0
- package/lib/modals/AlertModal.d.ts +27 -0
- package/lib/modals/BaseModal.d.ts +26 -0
- package/lib/modals/ContinueModal.d.ts +10 -0
- package/lib/modals/Modal.d.ts +23 -0
- package/lib/modals/ModalPage.d.ts +16 -0
- package/lib/modals/ModalShell.d.ts +25 -0
- package/lib/modals/Overlay.d.ts +9 -0
- package/lib/modals/SpinnerModal.d.ts +13 -0
- package/lib/modals/SpinnerModalPage.d.ts +11 -0
- package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
- package/lib/modals/index.d.ts +9 -0
- package/lib/molecules/LocationIcon/__tests__/LocationIcon.test.d.ts +1 -0
- package/lib/molecules/LocationIcon/index.d.ts +16 -0
- package/lib/molecules/RoundTab.d.ts +7 -0
- package/lib/molecules/index.d.ts +2 -0
- package/lib/nav/SidePanel.d.ts +6 -0
- package/lib/nav/index.d.ts +1 -0
- package/lib/opentrons-components.js +2 -2
- package/lib/primitives/Box.d.ts +7 -0
- package/lib/primitives/Btn.d.ts +60 -0
- package/lib/primitives/Flex.d.ts +7 -0
- package/lib/primitives/ForeignObject.d.ts +23 -0
- package/lib/primitives/Link.d.ts +11 -0
- package/lib/primitives/Svg.d.ts +23 -0
- package/lib/primitives/Text.d.ts +7 -0
- package/lib/primitives/__tests__/Box.test.d.ts +0 -0
- package/lib/primitives/__tests__/Btn.test.d.ts +0 -0
- package/lib/primitives/__tests__/Flex.test.d.ts +0 -0
- package/lib/primitives/__tests__/Link.test.d.ts +0 -0
- package/lib/primitives/__tests__/Svg.test.d.ts +0 -0
- package/lib/primitives/__tests__/Text.test.d.ts +0 -0
- package/lib/primitives/__tests__/primitives.test.d.ts +0 -0
- package/lib/primitives/__tests__/style-props.test.d.ts +0 -0
- package/lib/primitives/index.d.ts +9 -0
- package/lib/primitives/style-props.d.ts +4 -0
- package/lib/primitives/types.d.ts +96 -0
- package/lib/robot-types.d.ts +1 -0
- package/lib/slotmap/SlotMap.d.ts +12 -0
- package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
- package/lib/slotmap/index.d.ts +1 -0
- package/lib/structure/Card.d.ts +18 -0
- package/lib/structure/LabeledValue.d.ts +12 -0
- package/lib/structure/PageTabs.d.ts +12 -0
- package/lib/structure/Pill.d.ts +18 -0
- package/lib/structure/Splash.d.ts +9 -0
- package/lib/structure/TitleBar.d.ts +17 -0
- package/lib/structure/index.d.ts +6 -0
- package/lib/styles/borders.d.ts +8 -0
- package/lib/styles/colors.d.ts +37 -0
- package/lib/styles/flexbox.d.ts +28 -0
- package/lib/styles/index.d.ts +7 -0
- package/lib/styles/layout.d.ts +20 -0
- package/lib/styles/position.d.ts +5 -0
- package/lib/styles/spacing.d.ts +9 -0
- package/lib/styles/typography.d.ts +36 -0
- package/lib/tabbedNav/NavTab.d.ts +25 -0
- package/lib/tabbedNav/OutsideLinkTab.d.ts +24 -0
- package/lib/tabbedNav/TabbedNavBar.d.ts +7 -0
- package/lib/tabbedNav/index.d.ts +3 -0
- package/lib/testing/utils/index.d.ts +2 -0
- package/lib/testing/utils/matchers.d.ts +6 -0
- package/lib/testing/utils/renderWithProviders.d.ts +10 -0
- package/lib/tooltips/DeprecatedTooltip.d.ts +37 -0
- package/lib/tooltips/HoverTooltip.d.ts +36 -0
- package/lib/tooltips/Tooltip.d.ts +35 -0
- package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -0
- package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -0
- package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -0
- package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -0
- package/lib/tooltips/constants.d.ts +17 -0
- package/lib/tooltips/index.d.ts +8 -0
- package/lib/tooltips/styles.d.ts +12 -0
- package/lib/tooltips/types.d.ts +52 -0
- package/lib/tooltips/useHoverTooltip.d.ts +24 -0
- package/lib/tooltips/usePopper.d.ts +2 -0
- package/lib/tooltips/useTooltip.d.ts +31 -0
- package/lib/ui-style-constants/borders.d.ts +18 -0
- package/lib/ui-style-constants/index.d.ts +4 -0
- package/lib/ui-style-constants/responsiveness.d.ts +1 -0
- package/lib/ui-style-constants/spacing.d.ts +17 -0
- package/lib/ui-style-constants/typography.d.ts +70 -0
- package/lib/utils.d.ts +15 -0
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
3
|
+
export declare type StagingAreaLocation = 'cutoutA3' | 'cutoutB3' | 'cutoutC3' | 'cutoutD3';
|
|
4
|
+
interface StagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
|
|
5
|
+
cutoutId: StagingAreaLocation;
|
|
6
|
+
deckDefinition: DeckDefinition;
|
|
7
|
+
moduleType?: ModuleType;
|
|
8
|
+
fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
|
|
9
|
+
slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
|
|
10
|
+
showExtensions?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function StagingAreaFixture(props: StagingAreaFixtureProps): JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
|
|
3
|
+
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
4
|
+
interface WasteChuteFixtureProps extends React.SVGProps<SVGGElement> {
|
|
5
|
+
cutoutId: typeof WASTE_CHUTE_CUTOUT;
|
|
6
|
+
deckDefinition: DeckDefinition;
|
|
7
|
+
moduleType?: ModuleType;
|
|
8
|
+
fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
|
|
9
|
+
wasteChuteColor?: string;
|
|
10
|
+
showExtensions?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function WasteChuteFixture(props: WasteChuteFixtureProps): JSX.Element | null;
|
|
13
|
+
interface WasteChuteProps {
|
|
14
|
+
wasteIconColor: string;
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* a deck map foreign object representing the physical location of the waste chute connected to the deck
|
|
19
|
+
*/
|
|
20
|
+
export declare function WasteChute(props: WasteChuteProps): JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
|
|
3
|
+
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
4
|
+
interface WasteChuteStagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
|
|
5
|
+
cutoutId: typeof WASTE_CHUTE_CUTOUT;
|
|
6
|
+
deckDefinition: DeckDefinition;
|
|
7
|
+
moduleType?: ModuleType;
|
|
8
|
+
fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
|
|
9
|
+
slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
|
|
10
|
+
wasteChuteColor?: string;
|
|
11
|
+
showExtensions?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function WasteChuteStagingAreaFixture(props: WasteChuteStagingAreaFixtureProps): JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DeckConfiguration } from '@opentrons/shared-data';
|
|
2
|
+
export declare const STANDARD_SLOT_DECK_CONFIG_FIXTURE: DeckConfiguration;
|
|
3
|
+
export declare const EXTENDED_DECK_CONFIG_FIXTURE: DeckConfiguration;
|
|
4
|
+
export declare const WASTE_CHUTE_DECK_CONFIG_FIXTURE: DeckConfiguration;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { RobotType } from '@opentrons/shared-data';
|
|
3
|
+
export interface DeckFromLayersProps {
|
|
4
|
+
robotType: RobotType;
|
|
5
|
+
layerBlocklist: string[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* a component that renders an OT-2 deck from the V3 deck definition layers property
|
|
9
|
+
* takes a robot type prop to protect against an attempted Flex render
|
|
10
|
+
*/
|
|
11
|
+
export declare function DeckFromLayers(props: DeckFromLayersProps): JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RobotType } from '@opentrons/shared-data';
|
|
2
|
+
export declare type TrashCutoutId = 'cutoutA1' | 'cutoutB1' | 'cutoutC1' | 'cutoutD1' | 'cutoutA3' | 'cutoutB3' | 'cutoutC3' | 'cutoutD3';
|
|
3
|
+
interface FlexTrashProps {
|
|
4
|
+
robotType: RobotType;
|
|
5
|
+
trashIconColor: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
trashCutoutId?: TrashCutoutId;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Component to render Opentrons Flex trash
|
|
11
|
+
* For use as a RobotWorkspace child component
|
|
12
|
+
*/
|
|
13
|
+
export declare const FlexTrash: ({ robotType, trashIconColor, backgroundColor, trashCutoutId, }: FlexTrashProps) => JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LoadedModule, LoadedLabware } from '@opentrons/shared-data';
|
|
3
|
+
import type { LabwareDefinition2, LabwareLocation, RobotType, DeckConfiguration } from '@opentrons/shared-data';
|
|
4
|
+
import type { StyleProps } from '../../primitives';
|
|
5
|
+
interface MoveLabwareOnDeckProps extends StyleProps {
|
|
6
|
+
robotType: RobotType;
|
|
7
|
+
movedLabwareDef: LabwareDefinition2;
|
|
8
|
+
initialLabwareLocation: LabwareLocation;
|
|
9
|
+
finalLabwareLocation: LabwareLocation;
|
|
10
|
+
loadedModules: LoadedModule[];
|
|
11
|
+
loadedLabware: LoadedLabware[];
|
|
12
|
+
deckConfig: DeckConfiguration;
|
|
13
|
+
backgroundItems?: React.ReactNode;
|
|
14
|
+
deckFill?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function MoveLabwareOnDeck(props: MoveLabwareOnDeckProps): JSX.Element | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function FixedBase(): JSX.Element;
|
|
3
|
+
export declare function FixedTrash(): JSX.Element;
|
|
4
|
+
export declare function DoorStops(): JSX.Element;
|
|
5
|
+
export declare function MetalFrame(): JSX.Element;
|
|
6
|
+
export declare function RemovableDeckOutline(): JSX.Element;
|
|
7
|
+
export declare function SlotRidges(): JSX.Element;
|
|
8
|
+
export declare function SlotNumbers(): JSX.Element;
|
|
9
|
+
export declare function CalibrationMarkings(): JSX.Element;
|
|
10
|
+
export declare function RemovalHandle(): JSX.Element;
|
|
11
|
+
export declare function ScrewHoles(): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Box } from '../../primitives';
|
|
3
|
+
export interface RobotCoordsForeignDivProps {
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
x?: string | number;
|
|
7
|
+
y?: string | number;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
outerProps?: any;
|
|
10
|
+
innerDivProps?: React.ComponentProps<typeof Box>;
|
|
11
|
+
transformWithSVG?: boolean;
|
|
12
|
+
extraTransform?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const RobotCoordsForeignDiv: (props: RobotCoordsForeignDivProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Flex, ForeignObject } from '../../primitives';
|
|
3
|
+
export interface RobotCoordsForeignObjectProps {
|
|
4
|
+
width: string | number;
|
|
5
|
+
height: string | number;
|
|
6
|
+
x: string | number;
|
|
7
|
+
y: string | number;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
foreignObjectProps?: React.ComponentProps<typeof ForeignObject>;
|
|
10
|
+
flexProps?: React.ComponentProps<typeof Flex>;
|
|
11
|
+
}
|
|
12
|
+
export declare const RobotCoordsForeignObject: (props: RobotCoordsForeignObjectProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface RobotCoordsTextProps extends React.ComponentProps<'text'> {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/** SVG text reflected to use take robot coordinates as props */
|
|
8
|
+
export declare function RobotCoordsText(props: RobotCoordsTextProps): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleProps } from '../../primitives';
|
|
3
|
+
import type { DeckDefinition, DeckSlot } from '@opentrons/shared-data';
|
|
4
|
+
export interface RobotWorkSpaceRenderProps {
|
|
5
|
+
deckSlotsById: {
|
|
6
|
+
[slotId: string]: DeckSlot;
|
|
7
|
+
};
|
|
8
|
+
getRobotCoordsFromDOMCoords: (domX: number, domY: number) => {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface RobotWorkSpaceProps extends StyleProps {
|
|
14
|
+
deckDef?: DeckDefinition;
|
|
15
|
+
viewBox?: string | null;
|
|
16
|
+
children?: (props: RobotWorkSpaceRenderProps) => React.ReactNode;
|
|
17
|
+
deckLayerBlocklist?: string[];
|
|
18
|
+
showDeckLayers?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function RobotWorkSpace(props: RobotWorkSpaceProps): JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RobotType } from '@opentrons/shared-data';
|
|
2
|
+
interface SlotLabelsProps {
|
|
3
|
+
robotType: RobotType;
|
|
4
|
+
color?: string;
|
|
5
|
+
show4thColumn?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Component to render Opentrons Flex slot labels
|
|
9
|
+
* For use as a RobotWorkspace child component
|
|
10
|
+
*/
|
|
11
|
+
export declare const SlotLabels: ({ robotType, color, show4thColumn, }: SlotLabelsProps) => JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ALL_OT2_DECK_LAYERS: readonly ["fixedBase", "fixedTrash", "doorStops", "metalFrame", "removableDeckOutline", "slotRidges", "slotNumbers", "calibrationMarkings", "removalHandle", "screwHoles"];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './DeckFromLayers';
|
|
2
|
+
export * from './FlexTrash';
|
|
3
|
+
export * from './getDeckDefinitions';
|
|
4
|
+
export * from './MoveLabwareOnDeck';
|
|
5
|
+
export * from './RobotCoordsForeignDiv';
|
|
6
|
+
export * from './RobotCoordsForeignObject';
|
|
7
|
+
export * from './RobotCoordsText';
|
|
8
|
+
export * from './RobotWorkSpace';
|
|
9
|
+
export * from './SlotLabels';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
|
+
interface EmptyConfigFixtureProps {
|
|
4
|
+
deckDefinition: DeckDefinition;
|
|
5
|
+
fixtureLocation: CutoutId;
|
|
6
|
+
handleClickAdd: (fixtureLocation: CutoutId) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function EmptyConfigFixture(props: EmptyConfigFixtureProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
|
+
interface StagingAreaConfigFixtureProps {
|
|
4
|
+
deckDefinition: DeckDefinition;
|
|
5
|
+
fixtureLocation: CutoutId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function StagingAreaConfigFixture(props: StagingAreaConfigFixtureProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
|
+
interface TrashBinConfigFixtureProps {
|
|
4
|
+
deckDefinition: DeckDefinition;
|
|
5
|
+
fixtureLocation: CutoutId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function TrashBinConfigFixture(props: TrashBinConfigFixtureProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
|
+
interface WasteChuteConfigFixtureProps {
|
|
4
|
+
deckDefinition: DeckDefinition;
|
|
5
|
+
fixtureLocation: CutoutId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId) => void;
|
|
7
|
+
hasStagingAreas?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function WasteChuteConfigFixture(props: WasteChuteConfigFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These are Flex deck configurator-only values to position a foreign object
|
|
3
|
+
* Position is relative to deck definition slot positions and a custom stroke applied to the single slot fixture SVG
|
|
4
|
+
*/
|
|
5
|
+
export declare const FIXTURE_HEIGHT = 102;
|
|
6
|
+
export declare const SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
|
|
7
|
+
export declare const STAGING_AREA_FIXTURE_WIDTH = 314.5;
|
|
8
|
+
export declare const COLUMN_1_X_ADJUSTMENT = -100;
|
|
9
|
+
export declare const COLUMN_3_X_ADJUSTMENT = -15.5;
|
|
10
|
+
export declare const Y_ADJUSTMENT = -8;
|
|
11
|
+
export declare const STAGING_AREA_DISPLAY_NAME = "Staging area";
|
|
12
|
+
export declare const TRASH_BIN_DISPLAY_NAME = "Trash bin";
|
|
13
|
+
export declare const WASTE_CHUTE_DISPLAY_NAME = "Waste chute";
|
|
14
|
+
export declare const CONFIG_STYLE_READ_ONLY: import("styled-components").FlattenSimpleInterpolation;
|
|
15
|
+
export declare const CONFIG_STYLE_EDITABLE: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CutoutId, DeckConfiguration } from '@opentrons/shared-data';
|
|
3
|
+
interface DeckConfiguratorProps {
|
|
4
|
+
deckConfig: DeckConfiguration;
|
|
5
|
+
handleClickAdd: (cutoutId: CutoutId) => void;
|
|
6
|
+
handleClickRemove: (cutoutId: CutoutId) => void;
|
|
7
|
+
lightFill?: string;
|
|
8
|
+
darkFill?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
showExpansion?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DeckSlot, RobotType } from '@opentrons/shared-data';
|
|
3
|
+
interface LegacyDeckSlotLocationProps extends React.SVGProps<SVGGElement> {
|
|
4
|
+
robotType: RobotType;
|
|
5
|
+
slotName: DeckSlot['id'];
|
|
6
|
+
slotBaseColor?: React.SVGProps<SVGPathElement>['fill'];
|
|
7
|
+
slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
|
|
8
|
+
}
|
|
9
|
+
export declare const OT2_FIXED_TRASH_X_DIMENSION = 172.86;
|
|
10
|
+
export declare const OT2_FIXED_TRASH_Y_DIMENSION = 165.86;
|
|
11
|
+
/**
|
|
12
|
+
* This is a legacy component for rendering an OT-2 deck slot by reference to the V4 deck definition
|
|
13
|
+
*/
|
|
14
|
+
export declare function LegacyDeckSlotLocation(props: LegacyDeckSlotLocationProps): JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { HighlightedWellLabels, WellMouseEvent, WellFill, WellStroke, WellGroup } from './labwareInternals/types';
|
|
4
|
+
import type { CSSProperties } from 'styled-components';
|
|
5
|
+
export declare const WELL_LABEL_OPTIONS: {
|
|
6
|
+
readonly SHOW_LABEL_INSIDE: "SHOW_LABEL_INSIDE";
|
|
7
|
+
readonly SHOW_LABEL_OUTSIDE: "SHOW_LABEL_OUTSIDE";
|
|
8
|
+
};
|
|
9
|
+
export declare type WellLabelOption = keyof typeof WELL_LABEL_OPTIONS;
|
|
10
|
+
export interface LabwareRenderProps {
|
|
11
|
+
/** Labware definition to render */
|
|
12
|
+
definition: LabwareDefinition2;
|
|
13
|
+
/** option to show well labels inside or outside of labware outline */
|
|
14
|
+
wellLabelOption?: WellLabelOption;
|
|
15
|
+
/** wells to highlight */
|
|
16
|
+
highlightedWells?: WellGroup | null;
|
|
17
|
+
/** option for none highlighted wells to be disabled */
|
|
18
|
+
disabledWells?: WellGroup[];
|
|
19
|
+
missingTips?: WellGroup | null;
|
|
20
|
+
/** color to render well labels */
|
|
21
|
+
wellLabelColor?: string;
|
|
22
|
+
/** option to highlight well labels with specified color */
|
|
23
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
24
|
+
selectedWells?: WellGroup | null;
|
|
25
|
+
/** CSS color to fill specified wells */
|
|
26
|
+
wellFill?: WellFill;
|
|
27
|
+
/** CSS color to stroke specified wells */
|
|
28
|
+
wellStroke?: WellStroke;
|
|
29
|
+
/** CSS color to stroke the labware outline */
|
|
30
|
+
labwareStroke?: CSSProperties['stroke'];
|
|
31
|
+
/** adds thicker blue border with blur to labware */
|
|
32
|
+
highlight?: boolean;
|
|
33
|
+
/** Optional callback, called with WellMouseEvent args onMouseEnter */
|
|
34
|
+
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
35
|
+
/** Optional callback, called with WellMouseEvent args onMouseLeave */
|
|
36
|
+
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
37
|
+
gRef?: React.RefObject<SVGGElement>;
|
|
38
|
+
onLabwareClick?: () => void;
|
|
39
|
+
}
|
|
40
|
+
export declare const LabwareRender: (props: LabwareRenderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { CSSProperties } from 'styled-components';
|
|
4
|
+
export interface FilledWellsProps {
|
|
5
|
+
definition: LabwareDefinition2;
|
|
6
|
+
fillByWell: Record<string, CSSProperties['fill']>;
|
|
7
|
+
}
|
|
8
|
+
declare function FilledWellsComponent(props: FilledWellsProps): JSX.Element;
|
|
9
|
+
export declare const FilledWells: React.MemoExoticComponent<typeof FilledWellsComponent>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CSSProperties } from 'styled-components';
|
|
3
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
4
|
+
export interface LabwareOutlineProps {
|
|
5
|
+
/** Labware definition to outline */
|
|
6
|
+
definition?: LabwareDefinition2;
|
|
7
|
+
/** x dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to 127.76 */
|
|
8
|
+
width?: number;
|
|
9
|
+
/** y dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to 85.48 */
|
|
10
|
+
height?: number;
|
|
11
|
+
/** if this labware is a tip rack, darken background and lighten borderx dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to false */
|
|
12
|
+
isTiprack?: boolean;
|
|
13
|
+
/** adds thicker blue border with blur to labware, defaults to false */
|
|
14
|
+
highlight?: boolean;
|
|
15
|
+
/** [legacy] override the border color */
|
|
16
|
+
stroke?: CSSProperties['stroke'];
|
|
17
|
+
}
|
|
18
|
+
export declare function LabwareOutline(props: LabwareOutlineProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { WellMouseEvent } from './types';
|
|
4
|
+
export interface StaticLabwareProps {
|
|
5
|
+
/** Labware definition to render */
|
|
6
|
+
definition: LabwareDefinition2;
|
|
7
|
+
/** Add thicker blurred blue border to labware, defaults to false */
|
|
8
|
+
highlight?: boolean;
|
|
9
|
+
/** Optional callback to be executed when entire labware element is clicked */
|
|
10
|
+
onLabwareClick?: () => void;
|
|
11
|
+
/** Optional callback to be executed when mouse enters a well element */
|
|
12
|
+
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
13
|
+
/** Optional callback to be executed when mouse leaves a well element */
|
|
14
|
+
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare function StaticLabwareComponent(props: StaticLabwareProps): JSX.Element;
|
|
17
|
+
export declare const StaticLabware: React.MemoExoticComponent<typeof StaticLabwareComponent>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { CSSProperties } from 'styled-components';
|
|
4
|
+
export interface StrokedWellProps {
|
|
5
|
+
definition: LabwareDefinition2;
|
|
6
|
+
strokeByWell: Record<string, CSSProperties['stroke']>;
|
|
7
|
+
}
|
|
8
|
+
export declare function StrokedWellsComponent(props: StrokedWellProps): JSX.Element;
|
|
9
|
+
export declare const StrokedWells: React.MemoExoticComponent<typeof StrokedWellsComponent>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { WellGroup } from './types';
|
|
4
|
+
declare type WellContents = 'tipPresent' | 'tipMissing' | 'defaultWell' | 'disabledWell' | 'highlightedWell' | 'selectedWell';
|
|
5
|
+
export interface StyledWellProps {
|
|
6
|
+
wellContents: WellContents;
|
|
7
|
+
definition: LabwareDefinition2;
|
|
8
|
+
wells: WellGroup;
|
|
9
|
+
}
|
|
10
|
+
export declare const STYLE_BY_WELL_CONTENTS: {
|
|
11
|
+
[wellContents in WellContents]: {
|
|
12
|
+
stroke: React.CSSProperties['stroke'];
|
|
13
|
+
fill: React.CSSProperties['fill'];
|
|
14
|
+
strokeWidth: React.CSSProperties['strokeWidth'];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare function StyledWellsComponent(props: StyledWellProps): JSX.Element;
|
|
18
|
+
export declare const StyledWells: React.MemoExoticComponent<typeof StyledWellsComponent>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareWell } from '@opentrons/shared-data';
|
|
3
|
+
import type { WellMouseEvent } from './types';
|
|
4
|
+
import type { StyleProps } from '../../../primitives';
|
|
5
|
+
export declare const INTERACTIVE_WELL_DATA_ATTRIBUTE = "data-wellname";
|
|
6
|
+
export interface WellProps extends StyleProps {
|
|
7
|
+
/** Well Name (eg 'A1') */
|
|
8
|
+
wellName: string;
|
|
9
|
+
/** well object from labware definition */
|
|
10
|
+
well: LabwareWell;
|
|
11
|
+
stroke: React.CSSProperties['stroke'];
|
|
12
|
+
strokeWidth: React.CSSProperties['strokeWidth'];
|
|
13
|
+
fill: React.CSSProperties['fill'];
|
|
14
|
+
/** Optional callback, called with WellMouseEvent args onMouseOver */
|
|
15
|
+
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
16
|
+
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
17
|
+
}
|
|
18
|
+
export declare function WellComponent(props: WellProps): JSX.Element;
|
|
19
|
+
export declare const Well: React.MemoExoticComponent<typeof WellComponent>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WellLabelOption } from '../LabwareRender';
|
|
3
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
4
|
+
import type { HighlightedWellLabels } from './types';
|
|
5
|
+
export interface WellLabelsProps {
|
|
6
|
+
definition: LabwareDefinition2;
|
|
7
|
+
wellLabelOption: WellLabelOption;
|
|
8
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
9
|
+
wellLabelColor?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function WellLabelsComponent(props: WellLabelsProps): JSX.Element;
|
|
12
|
+
export declare const WellLabels: React.MemoExoticComponent<typeof WellLabelsComponent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface WellMouseEvent {
|
|
3
|
+
wellName: string;
|
|
4
|
+
event: React.MouseEvent;
|
|
5
|
+
}
|
|
6
|
+
export declare type WellFill = Record<string, string>;
|
|
7
|
+
export declare type WellStroke = WellFill;
|
|
8
|
+
export declare type WellGroup = Record<string, null>;
|
|
9
|
+
export interface HighlightedWellLabels {
|
|
10
|
+
wells: string[];
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ThermocyclerModuleModel } from '@opentrons/shared-data';
|
|
3
|
+
export interface ThermocyclerVizProps {
|
|
4
|
+
lidMotorState: 'open' | 'closed' | 'unknown';
|
|
5
|
+
blockTargetTemp?: number | null;
|
|
6
|
+
model: ThermocyclerModuleModel;
|
|
7
|
+
}
|
|
8
|
+
export declare function Thermocycler(props: ThermocyclerVizProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ModuleDefinition } from '@opentrons/shared-data';
|
|
3
|
+
import { Thermocycler } from './Thermocycler';
|
|
4
|
+
import { HeaterShaker } from './HeaterShaker';
|
|
5
|
+
import { Temperature } from './Temperature';
|
|
6
|
+
export * from './Thermocycler';
|
|
7
|
+
interface Props {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
def: ModuleDefinition;
|
|
11
|
+
orientation?: 'left' | 'right';
|
|
12
|
+
innerProps?: React.ComponentProps<typeof Thermocycler> | React.ComponentProps<typeof HeaterShaker> | React.ComponentProps<typeof Temperature> | {};
|
|
13
|
+
statusInfo?: React.ReactNode;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
targetSlotId?: string;
|
|
16
|
+
targetDeckId?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Module: (props: Props) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LabwareDefinition2, PipetteName } from '@opentrons/shared-data';
|
|
2
|
+
interface PipetteRenderProps {
|
|
3
|
+
labwareDef: LabwareDefinition2;
|
|
4
|
+
pipetteName: PipetteName;
|
|
5
|
+
usingMetalProbe?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const PipetteRender: (props: PipetteRenderProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|