@opentrons/components 0.1.6-alpha.6 → 0.1.6-alpha.8
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/Makefile +4 -0
- 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/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/lib/atoms/Checkbox/index.d.ts +24 -0
- package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +1 -0
- package/lib/atoms/CheckboxField/index.d.ts +20 -0
- package/lib/atoms/Chip/__tests__/Chip.test.d.ts +1 -0
- package/lib/atoms/Chip/index.d.ts +20 -0
- package/lib/atoms/Divider/index.d.ts +5 -0
- package/lib/atoms/InputField/__tests__/InputField.test.d.ts +1 -0
- package/lib/atoms/InputField/index.d.ts +68 -0
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
- package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
- package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
- package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +1 -0
- package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +1 -0
- package/lib/atoms/ListButton/index.d.ts +11 -0
- package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
- package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
- package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
- package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
- package/lib/atoms/ListItem/index.d.ts +14 -0
- package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
- package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
- package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
- package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
- package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
- package/lib/atoms/MenuList/index.d.ts +8 -0
- package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
- package/lib/atoms/Snackbar/index.d.ts +7 -0
- package/lib/atoms/StepMeter/index.d.ts +7 -0
- package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
- package/lib/atoms/StyledText/StyledText.d.ts +154 -0
- package/lib/atoms/StyledText/index.d.ts +2 -0
- package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
- package/lib/atoms/Tag/index.d.ts +13 -0
- package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
- package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
- package/lib/atoms/Toast/index.d.ts +25 -0
- package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
- package/lib/atoms/ToggleGroup/index.d.ts +9 -0
- package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/lib/atoms/Tooltip/index.d.ts +11 -0
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -0
- package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
- package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
- package/lib/atoms/buttons/LargeButton.d.ts +17 -0
- package/lib/atoms/buttons/PrimaryButton.d.ts +1 -0
- package/lib/atoms/buttons/RadioButton.d.ts +21 -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__/AltPrimaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/index.d.ts +6 -0
- package/lib/atoms/index.d.ts +20 -0
- package/lib/barrel.d.ts +3 -0
- package/lib/buttons/Button.d.ts +50 -0
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +8 -0
- package/lib/buttons/FlatButton.d.ts +5 -0
- package/lib/buttons/IconButton.d.ts +14 -0
- package/lib/buttons/OutlineButton.d.ts +8 -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 +5 -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/LegacyInputField.d.ts +51 -0
- package/lib/forms/RadioGroup.d.ts +29 -0
- package/lib/forms/Select.d.ts +26 -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 +1 -0
- package/lib/forms/__tests__/DropdownField.test.d.ts +1 -0
- package/lib/forms/__tests__/InputField.test.d.ts +1 -0
- package/lib/forms/__tests__/Select.test.d.ts +1 -0
- package/lib/forms/__tests__/SelectField.test.d.ts +1 -0
- package/lib/forms/__tests__/ToggleField.test.d.ts +1 -0
- package/lib/forms/index.d.ts +8 -0
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +49 -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 +20 -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 +10 -0
- package/lib/hardware-sim/Deck/FlexTrash.d.ts +14 -0
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +16 -0
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +10 -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 +1 -0
- package/lib/hardware-sim/Deck/constants.d.ts +1 -0
- package/lib/hardware-sim/Deck/index.d.ts +8 -0
- package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +8 -0
- package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +11 -0
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +12 -0
- package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +11 -0
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +20 -0
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +20 -0
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +15 -0
- package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +27 -0
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +46 -0
- package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
- package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/index.d.ts +5 -0
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +11 -0
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +21 -0
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +25 -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 +20 -0
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +12 -0
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -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 +8 -0
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +12 -0
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +4 -0
- package/lib/hardware-sim/Module/MagneticBlock.d.ts +1 -0
- package/lib/hardware-sim/Module/MagneticModule.d.ts +1 -0
- package/lib/hardware-sim/Module/ModuleTag.d.ts +9 -0
- package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
- package/lib/hardware-sim/Module/Temperature.d.ts +4 -0
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +6 -0
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +6 -0
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +7 -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 +14 -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 +12 -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 +3 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +7 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +16 -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/borders.d.ts +26 -0
- package/lib/helix-design-system/colors.d.ts +86 -0
- package/lib/helix-design-system/index.d.ts +4 -0
- package/lib/helix-design-system/product/index.d.ts +1 -0
- package/lib/helix-design-system/product/typography.d.ts +79 -0
- package/lib/helix-design-system/style.d.ts +1 -0
- package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +1 -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 +1 -0
- package/lib/hooks/__tests__/useLongPress.test.d.ts +1 -0
- package/lib/hooks/__tests__/useMountEffect.test.d.ts +1 -0
- package/lib/hooks/__tests__/usePrevious.test.d.ts +1 -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 +1 -0
- package/lib/hooks/__tests__/useToggle.test.d.ts +1 -0
- package/lib/hooks/index.d.ts +13 -0
- package/lib/hooks/useConditionalConfirm.d.ts +41 -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/useMenuHandleClickOutside.d.ts +9 -0
- package/lib/hooks/useMountEffect.d.ts +8 -0
- package/lib/hooks/usePrevious.d.ts +9 -0
- package/lib/hooks/useScrolling.d.ts +1 -0
- package/lib/hooks/useSelectDeckLocation/index.d.ts +18 -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 +11 -0
- package/lib/icons/NotificationIcon.d.ts +12 -0
- package/lib/icons/icon-data.d.ts +4 -0
- package/lib/icons/index.d.ts +4 -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 +26 -0
- package/lib/{index.mjs → index.js} +8783 -6217
- package/lib/instrument/InstrumentDiagram.d.ts +11 -0
- package/lib/instrument/InstrumentGroup.d.ts +11 -0
- package/lib/instrument/InstrumentInfo.d.ts +18 -0
- package/lib/instrument/PipetteSelect.d.ts +20 -0
- package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +1 -0
- package/lib/instrument/__tests__/PipetteSelect.test.d.ts +1 -0
- package/lib/instrument/index.d.ts +4 -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 +1 -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 +7 -0
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +17 -0
- package/lib/legacy-hardware-sim/index.d.ts +2 -0
- package/lib/lists/SidePanelGroup.d.ts +18 -0
- package/lib/lists/TitledList.d.ts +44 -0
- package/lib/lists/index.d.ts +2 -0
- package/lib/modals/AlertModal.d.ts +28 -0
- package/lib/modals/ContinueModal.d.ts +10 -0
- package/lib/modals/LegacyModal.d.ts +24 -0
- package/lib/modals/Modal.d.ts +24 -0
- package/lib/modals/ModalHeader.d.ts +13 -0
- package/lib/modals/ModalShell.d.ts +34 -0
- package/lib/modals/Overlay.d.ts +9 -0
- package/lib/modals/SpinnerModal.d.ts +13 -0
- package/lib/modals/SpinnerModalPage.d.ts +12 -0
- package/lib/modals/__tests__/Modal.test.d.ts +1 -0
- package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
- package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
- package/lib/modals/index.d.ts +9 -0
- package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
- package/lib/molecules/Banner/index.d.ts +23 -0
- package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
- package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
- package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
- package/lib/molecules/DeckLabel/index.d.ts +10 -0
- package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
- package/lib/molecules/DropdownMenu/index.d.ts +41 -0
- package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
- package/lib/molecules/InfoScreen/index.d.ts +6 -0
- package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
- package/lib/molecules/LiquidIcon/index.d.ts +9 -0
- package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +1 -0
- package/lib/molecules/ParametersTable/index.d.ts +10 -0
- package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/lib/molecules/Tabs/index.d.ts +10 -0
- package/lib/molecules/index.d.ts +8 -0
- package/lib/nav/SidePanel.d.ts +6 -0
- package/lib/nav/index.d.ts +1 -0
- package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
- package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
- package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
- package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
- package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
- package/lib/organisms/Toolbox/index.d.ts +20 -0
- package/lib/organisms/index.d.ts +3 -0
- package/lib/primitives/Box.d.ts +7 -0
- package/lib/primitives/Btn.d.ts +59 -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 +1 -0
- package/lib/primitives/__tests__/Btn.test.d.ts +1 -0
- package/lib/primitives/__tests__/Flex.test.d.ts +1 -0
- package/lib/primitives/__tests__/Link.test.d.ts +1 -0
- package/lib/primitives/__tests__/Svg.test.d.ts +1 -0
- package/lib/primitives/__tests__/Text.test.d.ts +1 -0
- package/lib/primitives/__tests__/primitives.test.d.ts +1 -0
- package/lib/primitives/__tests__/style-props.test.d.ts +1 -0
- package/lib/primitives/index.d.ts +9 -0
- package/lib/primitives/style-props.d.ts +4 -0
- package/lib/primitives/types.d.ts +95 -0
- package/lib/robot-types.d.ts +1 -0
- package/lib/slotmap/OT2SlotMap.d.ts +9 -0
- package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +1 -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/Pill.d.ts +18 -0
- package/lib/structure/Splash.d.ts +8 -0
- package/lib/structure/TitleBar.d.ts +17 -0
- package/lib/structure/index.d.ts +5 -0
- package/lib/style.css +3786 -0
- package/lib/styles/borders.d.ts +8 -0
- package/lib/styles/colors.d.ts +37 -0
- package/lib/styles/cursor.d.ts +10 -0
- package/lib/styles/flexbox.d.ts +34 -0
- package/lib/styles/index.d.ts +8 -0
- package/lib/styles/layout.d.ts +24 -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/testing/utils/index.d.ts +2 -0
- package/lib/testing/utils/matchers.d.ts +3 -0
- package/lib/testing/utils/renderWithProviders.d.ts +9 -0
- package/lib/tooltips/DeprecatedTooltip.d.ts +37 -0
- package/lib/tooltips/HoverTooltip.d.ts +36 -0
- package/lib/tooltips/LegacyTooltip.d.ts +35 -0
- package/lib/tooltips/__tests__/Tooltip.test.d.ts +1 -0
- package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +1 -0
- package/lib/tooltips/__tests__/usePopper.test.d.ts +1 -0
- package/lib/tooltips/__tests__/useTooltip.test.d.ts +1 -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/index.d.ts +4 -0
- package/lib/ui-style-constants/responsiveness.d.ts +3 -0
- package/lib/ui-style-constants/spacing.d.ts +18 -0
- package/lib/ui-style-constants/typography.d.ts +71 -0
- package/lib/ui-style-constants/viewport.d.ts +15 -0
- package/lib/utils.d.ts +15 -0
- package/package.json +5 -7
- package/tsconfig.json +5 -2
- package/{vite.config.ts → vite.config.mts} +19 -4
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { CutoutId, DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
3
|
+
interface SingleSlotFixtureProps extends React.SVGProps<SVGGElement> {
|
|
4
|
+
cutoutId: CutoutId;
|
|
5
|
+
deckDefinition: DeckDefinition;
|
|
6
|
+
moduleType?: ModuleType;
|
|
7
|
+
fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
|
|
8
|
+
slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
|
|
9
|
+
showExpansion?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function SingleSlotFixture(props: SingleSlotFixtureProps): JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
3
|
+
export 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,20 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { WASTE_CHUTE_CUTOUT, DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
3
|
+
interface WasteChuteFixtureProps extends React.SVGProps<SVGGElement> {
|
|
4
|
+
cutoutId: typeof WASTE_CHUTE_CUTOUT;
|
|
5
|
+
deckDefinition: DeckDefinition;
|
|
6
|
+
moduleType?: ModuleType;
|
|
7
|
+
fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
|
|
8
|
+
wasteChuteColor?: string;
|
|
9
|
+
showExtensions?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function WasteChuteFixture(props: WasteChuteFixtureProps): JSX.Element | null;
|
|
12
|
+
interface WasteChuteProps {
|
|
13
|
+
wasteIconColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* a deck map foreign object representing the physical location of the waste chute connected to the deck
|
|
18
|
+
*/
|
|
19
|
+
export declare function WasteChute(props: WasteChuteProps): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * 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,10 @@
|
|
|
1
|
+
import type { RobotType } from '@opentrons/shared-data';
|
|
2
|
+
export interface DeckFromLayersProps {
|
|
3
|
+
robotType: RobotType;
|
|
4
|
+
layerBlocklist: string[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* a component that renders an OT-2 deck from the V3 deck definition layers property
|
|
8
|
+
* takes a robot type prop to protect against an attempted Flex render
|
|
9
|
+
*/
|
|
10
|
+
export declare function DeckFromLayers(props: DeckFromLayersProps): JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RobotType } from '@opentrons/shared-data';
|
|
2
|
+
export 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,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LoadedLabware, LoadedModule, LabwareDefinition2, LabwareLocation, RobotType, DeckConfiguration } from '@opentrons/shared-data';
|
|
3
|
+
import type { StyleProps } from '../../primitives';
|
|
4
|
+
interface MoveLabwareOnDeckProps extends StyleProps {
|
|
5
|
+
robotType: RobotType;
|
|
6
|
+
movedLabwareDef: LabwareDefinition2;
|
|
7
|
+
initialLabwareLocation: LabwareLocation;
|
|
8
|
+
finalLabwareLocation: LabwareLocation;
|
|
9
|
+
loadedModules: LoadedModule[];
|
|
10
|
+
loadedLabware: LoadedLabware[];
|
|
11
|
+
deckConfig: DeckConfiguration;
|
|
12
|
+
backgroundItems?: React.ReactNode;
|
|
13
|
+
deckFill?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function MoveLabwareOnDeck(props: MoveLabwareOnDeckProps): JSX.Element | null;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function FixedBase(): JSX.Element;
|
|
2
|
+
export declare function FixedTrash(): JSX.Element;
|
|
3
|
+
export declare function DoorStops(): JSX.Element;
|
|
4
|
+
export declare function MetalFrame(): JSX.Element;
|
|
5
|
+
export declare function RemovableDeckOutline(): JSX.Element;
|
|
6
|
+
export declare function SlotRidges(): JSX.Element;
|
|
7
|
+
export declare function SlotNumbers(): JSX.Element;
|
|
8
|
+
export declare function CalibrationMarkings(): JSX.Element;
|
|
9
|
+
export declare function RemovalHandle(): JSX.Element;
|
|
10
|
+
export declare function ScrewHoles(): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * 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 type * 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 type * 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 type { 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 getDeckDefinitions: import("@vitest/spy").Mock<[], {}>;
|
|
@@ -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,8 @@
|
|
|
1
|
+
export * from './DeckFromLayers';
|
|
2
|
+
export * from './FlexTrash';
|
|
3
|
+
export * from './MoveLabwareOnDeck';
|
|
4
|
+
export * from './RobotCoordsForeignDiv';
|
|
5
|
+
export * from './RobotCoordsForeignObject';
|
|
6
|
+
export * from './RobotCoordsText';
|
|
7
|
+
export * from './RobotWorkSpace';
|
|
8
|
+
export * from './SlotLabels';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface AbsorbanceReaderFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function AbsorbanceReaderFixture(props: AbsorbanceReaderFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface EmptyConfigFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
handleClickAdd: (fixtureLocation: CutoutId) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function EmptyConfigFixture(props: EmptyConfigFixtureProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface HeaterShakerFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function HeaterShakerFixture(props: HeaterShakerFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface MagneticBlockFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
hasStagingArea?: boolean;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function MagneticBlockFixture(props: MagneticBlockFixtureProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface StagingAreaConfigFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function StagingAreaConfigFixture(props: StagingAreaConfigFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface StaticFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* this component allows us to add static labeled fixtures to the center column of a deck
|
|
9
|
+
* config map
|
|
10
|
+
*/
|
|
11
|
+
export declare function StaticFixture(props: StaticFixtureProps): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface TemperatureModuleFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function TemperatureModuleFixture(props: TemperatureModuleFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface ThermocyclerFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function ThermocyclerFixture(props: ThermocyclerFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface TrashBinConfigFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function TrashBinConfigFixture(props: TrashBinConfigFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface WasteChuteConfigFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
hasStagingAreas?: boolean;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function WasteChuteConfigFixture(props: WasteChuteConfigFixtureProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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 THERMOCYCLER_FIXTURE_HEIGHT = 290;
|
|
7
|
+
export declare const COLUMN_1_SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
|
|
8
|
+
export declare const COLUMN_2_SINGLE_SLOT_FIXTURE_WIDTH = 159;
|
|
9
|
+
export declare const COLUMN_3_SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
|
|
10
|
+
export declare const STAGING_AREA_FIXTURE_WIDTH = 314.5;
|
|
11
|
+
export declare const COLUMN_1_X_ADJUSTMENT = -100;
|
|
12
|
+
export declare const COLUMN_2_X_ADJUSTMENT = -15.5;
|
|
13
|
+
export declare const COLUMN_3_X_ADJUSTMENT = -15.5;
|
|
14
|
+
export declare const Y_ADJUSTMENT = -8;
|
|
15
|
+
export declare const STAGING_AREA_DISPLAY_NAME = "Staging area";
|
|
16
|
+
export declare const TRASH_BIN_DISPLAY_NAME = "Trash bin";
|
|
17
|
+
export declare const WASTE_CHUTE_DISPLAY_NAME = "Waste chute";
|
|
18
|
+
export declare const CONFIG_STYLE_READ_ONLY: import("styled-components").FlattenSimpleInterpolation;
|
|
19
|
+
export declare const CONFIG_STYLE_EDITABLE: import("styled-components").FlattenSimpleInterpolation;
|
|
20
|
+
export declare const CONFIG_STYLE_SELECTED: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { CutoutFixtureId, CutoutId, DeckConfiguration } from '@opentrons/shared-data';
|
|
3
|
+
interface DeckConfiguratorProps {
|
|
4
|
+
deckConfig: DeckConfiguration;
|
|
5
|
+
handleClickAdd: (cutoutId: CutoutId) => void;
|
|
6
|
+
handleClickRemove: (cutoutId: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
lightFill?: string;
|
|
8
|
+
darkFill?: string;
|
|
9
|
+
editableCutoutIds?: CutoutId[];
|
|
10
|
+
showExpansion?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
additionalStaticFixtures?: Array<{
|
|
13
|
+
location: CutoutId;
|
|
14
|
+
label: string;
|
|
15
|
+
}>;
|
|
16
|
+
height?: string;
|
|
17
|
+
selectedCutoutId?: CutoutId;
|
|
18
|
+
}
|
|
19
|
+
export declare function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * 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,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { HighlightedWellLabels, WellMouseEvent, WellFill, WellStroke } from './labwareInternals/types';
|
|
4
|
+
export interface LabwareProps {
|
|
5
|
+
/** Labware definition to render */
|
|
6
|
+
definition: LabwareDefinition2;
|
|
7
|
+
/** Opional Prop for labware on heater shakers sitting on right side of the deck */
|
|
8
|
+
shouldRotateAdapterOrientation?: boolean;
|
|
9
|
+
/** boolean to show well labels */
|
|
10
|
+
showLabels?: boolean;
|
|
11
|
+
/** color to render well labels */
|
|
12
|
+
wellLabelColor?: string;
|
|
13
|
+
/** option to highlight well labels with specified color */
|
|
14
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
15
|
+
/** CSS color to fill specified wells */
|
|
16
|
+
wellFill?: WellFill;
|
|
17
|
+
/** CSS color to stroke specified wells */
|
|
18
|
+
wellStroke?: WellStroke;
|
|
19
|
+
/** adds thicker blue border with blur to labware */
|
|
20
|
+
highlight?: boolean;
|
|
21
|
+
/** Optional callback, called with WellMouseEvent args onMouseEnter */
|
|
22
|
+
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
23
|
+
/** Optional callback, called with WellMouseEvent args onMouseLeave */
|
|
24
|
+
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
25
|
+
gRef?: React.RefObject<SVGGElement>;
|
|
26
|
+
onLabwareClick?: () => void;
|
|
27
|
+
/** Hide labware outline */
|
|
28
|
+
hideOutline?: boolean;
|
|
29
|
+
/** Provides well data attribute */
|
|
30
|
+
isInteractive?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* a refactor of the legacy LabwareRender component intended to provide predictable styling
|
|
34
|
+
* initial use in ODD well selection component with ODD-specific well label styling
|
|
35
|
+
* consider adding additional styled wells props if used elsewhere
|
|
36
|
+
* @param props
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const Labware: (props: LabwareProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Opentrons96DeepWellAdapter(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Opentrons96FlatBottomAdapter(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsAluminumFlatBottomPlate(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsAutoclavableDeckRiser(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsFlex96TiprackAdapter(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsToughPCRAutoSealingLid(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsUniversalFlatAdapter(): JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Opentrons96DeepWellAdapter } from './Opentrons96DeepWellAdapter';
|
|
2
|
+
import { Opentrons96FlatBottomAdapter } from './Opentrons96FlatBottomAdapter';
|
|
3
|
+
import { OpentronsUniversalFlatAdapter } from './OpentronsUniversalFlatAdapter';
|
|
4
|
+
import { OpentronsAluminumFlatBottomPlate } from './OpentronsAluminumFlatBottomPlate';
|
|
5
|
+
import { OpentronsFlex96TiprackAdapter } from './OpentronsFlex96TiprackAdapter';
|
|
6
|
+
import { OpentronsToughPCRAutoSealingLid } from './OpentronsToughPCRAutoSealingLid';
|
|
7
|
+
import { OpentronsAutoclavableDeckRiser } from './OpentronsAutoclavableDeckRiser';
|
|
8
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
9
|
+
declare const LABWARE_ADAPTER_LOADNAME_PATHS: {
|
|
10
|
+
opentrons_96_deep_well_adapter: typeof Opentrons96DeepWellAdapter;
|
|
11
|
+
opentrons_96_flat_bottom_adapter: typeof Opentrons96FlatBottomAdapter;
|
|
12
|
+
opentrons_aluminum_flat_bottom_plate: typeof OpentronsAluminumFlatBottomPlate;
|
|
13
|
+
opentrons_flex_96_tiprack_adapter: typeof OpentronsFlex96TiprackAdapter;
|
|
14
|
+
opentrons_universal_flat_adapter: typeof OpentronsUniversalFlatAdapter;
|
|
15
|
+
opentrons_tough_pcr_auto_sealing_lid: typeof OpentronsToughPCRAutoSealingLid;
|
|
16
|
+
opentrons_flex_deck_riser: typeof OpentronsAutoclavableDeckRiser;
|
|
17
|
+
};
|
|
18
|
+
export type LabwareAdapterLoadName = keyof typeof LABWARE_ADAPTER_LOADNAME_PATHS;
|
|
19
|
+
export declare const labwareAdapterLoadNames: string[];
|
|
20
|
+
export interface LabwareAdapterProps {
|
|
21
|
+
labwareLoadName: LabwareAdapterLoadName;
|
|
22
|
+
definition?: LabwareDefinition2;
|
|
23
|
+
highlight?: boolean;
|
|
24
|
+
highlightShadow?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const LabwareAdapter: (props: LabwareAdapterProps) => JSX.Element | null;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { CSSProperties } from 'styled-components';
|
|
3
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
4
|
+
import type { HighlightedWellLabels, WellMouseEvent, WellFill, WellStroke, WellGroup } from './labwareInternals/types';
|
|
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 type WellLabelOption = keyof typeof WELL_LABEL_OPTIONS;
|
|
10
|
+
export interface LabwareRenderProps {
|
|
11
|
+
/** Labware definition to render */
|
|
12
|
+
definition: LabwareDefinition2;
|
|
13
|
+
/** Opional Prop for labware on heater shakers sitting on right side of the deck */
|
|
14
|
+
shouldRotateAdapterOrientation?: boolean;
|
|
15
|
+
/** option to show well labels inside or outside of labware outline */
|
|
16
|
+
wellLabelOption?: WellLabelOption;
|
|
17
|
+
/** wells to highlight */
|
|
18
|
+
highlightedWells?: WellGroup | null;
|
|
19
|
+
/** option for none highlighted wells to be disabled */
|
|
20
|
+
disabledWells?: WellGroup[];
|
|
21
|
+
missingTips?: WellGroup | null;
|
|
22
|
+
/** color to render well labels */
|
|
23
|
+
wellLabelColor?: string;
|
|
24
|
+
/** option to highlight well labels with specified color */
|
|
25
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
26
|
+
selectedWells?: WellGroup | null;
|
|
27
|
+
/** CSS color to fill specified wells */
|
|
28
|
+
wellFill?: WellFill;
|
|
29
|
+
/** CSS color to stroke specified wells */
|
|
30
|
+
wellStroke?: WellStroke;
|
|
31
|
+
/** CSS color to stroke the labware outline */
|
|
32
|
+
labwareStroke?: CSSProperties['stroke'];
|
|
33
|
+
/** adds thicker blue border with blur to labware */
|
|
34
|
+
highlight?: boolean;
|
|
35
|
+
/** adds a drop shadow to the highlight border */
|
|
36
|
+
highlightShadow?: boolean;
|
|
37
|
+
/** Optional callback, called with WellMouseEvent args onMouseEnter */
|
|
38
|
+
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
39
|
+
/** Optional callback, called with WellMouseEvent args onMouseLeave */
|
|
40
|
+
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
41
|
+
gRef?: React.RefObject<SVGGElement>;
|
|
42
|
+
onLabwareClick?: () => void;
|
|
43
|
+
showBorder?: boolean;
|
|
44
|
+
strokeColor?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const LabwareRender: (props: LabwareRenderProps) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { HighlightedWellLabels } from './labwareInternals/types';
|
|
4
|
+
import type { WellLabelOption } from '../..';
|
|
5
|
+
export interface LabwareStackRenderProps {
|
|
6
|
+
/** Labware definitions in stack to render */
|
|
7
|
+
definitionTop: LabwareDefinition2;
|
|
8
|
+
/** option to highlight well labels with specified color */
|
|
9
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
10
|
+
/** highlight top labware */
|
|
11
|
+
highlightTop: boolean;
|
|
12
|
+
/** highlight bottom labware if it exists */
|
|
13
|
+
highlightBottom: boolean;
|
|
14
|
+
gRef?: React.RefObject<SVGGElement>;
|
|
15
|
+
definitionBottom?: LabwareDefinition2 | null;
|
|
16
|
+
shouldRotateAdapterOrientation?: boolean;
|
|
17
|
+
/** option to show well labels inside or outside of labware outline */
|
|
18
|
+
wellLabelOption?: WellLabelOption;
|
|
19
|
+
}
|
|
20
|
+
export declare const LabwareStackRender: (props: LabwareStackRenderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
strokeColor?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function FilledWellsComponent(props: FilledWellsProps): JSX.Element;
|
|
10
|
+
export declare const FilledWells: React.MemoExoticComponent<typeof FilledWellsComponent>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CSSProperties } from 'styled-components';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
export interface LabwareOutlineProps {
|
|
4
|
+
/** Labware definition to outline */
|
|
5
|
+
definition?: LabwareDefinition2;
|
|
6
|
+
/** x dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to 127.76 */
|
|
7
|
+
width?: number;
|
|
8
|
+
/** y dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to 85.48 */
|
|
9
|
+
height?: number;
|
|
10
|
+
/** 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 */
|
|
11
|
+
isTiprack?: boolean;
|
|
12
|
+
/** adds thicker blue border with blur to labware, defaults to false */
|
|
13
|
+
highlight?: boolean;
|
|
14
|
+
/** adds a drop shadow to the highlight border */
|
|
15
|
+
highlightShadow?: boolean;
|
|
16
|
+
/** [legacy] override the border color */
|
|
17
|
+
stroke?: CSSProperties['stroke'];
|
|
18
|
+
fill?: CSSProperties['fill'];
|
|
19
|
+
showRadius?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function LabwareOutline(props: LabwareOutlineProps): JSX.Element;
|