@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 +0,0 @@
|
|
|
1
|
-
export * as TYPOGRAPHY from './typography';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Note: these values are only currently correct for desktop and should not be used on ODD.
|
|
3
|
-
*/
|
|
4
|
-
export declare const fontFamily = "Public Sans";
|
|
5
|
-
export declare const fontWeightRegular = "400";
|
|
6
|
-
export declare const fontWeightSemiBold = "600";
|
|
7
|
-
export declare const fontWeightBold = "700";
|
|
8
|
-
export declare const fontSizeDisplayBold = "2.4375rem";
|
|
9
|
-
export declare const lineHeightDisplayBold = "3rem";
|
|
10
|
-
export declare const fontFamilyDisplayBold = "Public Sans";
|
|
11
|
-
export declare const fontWeightDisplayBold = "700";
|
|
12
|
-
export declare const fontStyleDisplayBold = "700 2.4375rem/3rem Public Sans";
|
|
13
|
-
export declare const fontFamilyHeadingLargeRegular = "Public Sans";
|
|
14
|
-
export declare const fontSizeHeadingLargeRegular = "1.625rem";
|
|
15
|
-
export declare const lineHeightHeadingLargeRegular = "2rem";
|
|
16
|
-
export declare const fontWeightHeadingLargeRegular = "400";
|
|
17
|
-
export declare const fontStyleHeadingLargeRegular = "400 1.625rem/2rem Public Sans";
|
|
18
|
-
export declare const fontFamilyHeadingLargeBold = "Public Sans";
|
|
19
|
-
export declare const fontSizeHeadingLargeBold = "1.625rem";
|
|
20
|
-
export declare const lineHeightHeadingLargeBold = "2rem";
|
|
21
|
-
export declare const fontWeightHeadingLargeBold = "700";
|
|
22
|
-
export declare const fontStyleHeadingLargeBold = "700 1.625rem/2rem Public Sans";
|
|
23
|
-
export declare const fontSizeHeadingMediumSemiBold = "1.4375rem";
|
|
24
|
-
export declare const lineHeightHeadingMediumSemiBold = "1.75rem";
|
|
25
|
-
export declare const fontFamilyHeadingMediumSemiBold = "Public Sans";
|
|
26
|
-
export declare const fontWeightHeadingMediumSemiBold = "600";
|
|
27
|
-
export declare const fontStyleHeadingMediumSemiBold = "600 1.4375rem/1.75rem Public Sans";
|
|
28
|
-
export declare const fontStyleHeadingMediumBold = "700 1.4375rem/1.75rem Public Sans";
|
|
29
|
-
export declare const fontSizeHeadingSmallRegular = "1.125rem";
|
|
30
|
-
export declare const lineHeightHeadingSmallRegular = "1.5rem";
|
|
31
|
-
export declare const fontFamilyHeadingSmallRegular = "Public Sans";
|
|
32
|
-
export declare const fontWeightHeadingSmallRegular = "400";
|
|
33
|
-
export declare const fontStyleHeadingSmallRegular = "400 1.125rem/1.5rem Public Sans";
|
|
34
|
-
export declare const fontSizeHeadingSmallBold = "1.125rem";
|
|
35
|
-
export declare const lineHeightHeadingSmallBold = "1.5rem";
|
|
36
|
-
export declare const fontFamilyHeadingSmallBold = "Public Sans";
|
|
37
|
-
export declare const fontWeightHeadingSmallBold = "700";
|
|
38
|
-
export declare const fontStyleHeadingSmallBold = "700 1.125rem/1.5rem Public Sans";
|
|
39
|
-
export declare const fontStyleHeadingSmallSemiBold = "600 1.125rem/1.5rem Public Sans";
|
|
40
|
-
export declare const fontSizeBodyLargeSemiBold = "1rem";
|
|
41
|
-
export declare const lineHeightBodyLargeSemiBold = "1.5rem";
|
|
42
|
-
export declare const fontFamilyBodyLargeSemiBold = "Public Sans";
|
|
43
|
-
export declare const fontWeightBodyLargeSemiBold = "600";
|
|
44
|
-
export declare const fontStyleBodyLargeSemiBold = "600 1rem/1.5rem Public Sans";
|
|
45
|
-
export declare const fontSizeBodyLargeRegular = "1rem";
|
|
46
|
-
export declare const lineHeightBodyLargeRegular = "1.5rem";
|
|
47
|
-
export declare const fontFamilyBodyLargeRegular = "Public Sans";
|
|
48
|
-
export declare const fontWeightBodyLargeRegular = "400";
|
|
49
|
-
export declare const fontStyleBodyLargeRegular = "400 1rem/1.5rem Public Sans";
|
|
50
|
-
export declare const fontSizeBodyDefaultSemiBold = "0.875rem";
|
|
51
|
-
export declare const lineHeightBodyDefaultSemiBold = "1.25rem";
|
|
52
|
-
export declare const fontFamilyBodyDefaultSemiBold = "Public Sans";
|
|
53
|
-
export declare const fontWeightBodyDefaultSemiBold = "600";
|
|
54
|
-
export declare const fontStyleBodyDefaultSemiBold = "600 0.875rem/1.25rem Public Sans";
|
|
55
|
-
export declare const fontSizeBodyDefaultRegular = "0.875rem";
|
|
56
|
-
export declare const lineHeightBodyDefaultRegular = "1.25rem";
|
|
57
|
-
export declare const fontFamilyBodyDefaultRegular = "Public Sans";
|
|
58
|
-
export declare const fontWeightBodyDefaultRegular = "400";
|
|
59
|
-
export declare const fontStyleBodyDefaultRegular = "400 0.875rem/1.25rem Public Sans";
|
|
60
|
-
export declare const fontSizeCaptionBold = "0.8125rem";
|
|
61
|
-
export declare const lineHeightCaptionBold = "1rem";
|
|
62
|
-
export declare const fontFamilyCaptionBold = "Public Sans";
|
|
63
|
-
export declare const fontWeightCaptionBold = "700";
|
|
64
|
-
export declare const fontStyleCaptionBold = "700 0.8125rem/1rem Public Sans";
|
|
65
|
-
export declare const fontSizeCaptionSemiBold = "0.8125rem";
|
|
66
|
-
export declare const lineHeightCaptionSemiBold = "1rem";
|
|
67
|
-
export declare const fontFamilyCaptionSemiBold = "Public Sans";
|
|
68
|
-
export declare const fontWeightCaptionSemiBold = "600";
|
|
69
|
-
export declare const fontStyleCaptionSemiBold = "600 0.8125rem/1rem Public Sans";
|
|
70
|
-
export declare const fontSizeCaptionRegular = "0.8125rem";
|
|
71
|
-
export declare const lineHeightCaptionRegular = "1rem";
|
|
72
|
-
export declare const fontFamilyCaptionRegular = "Public Sans";
|
|
73
|
-
export declare const fontWeightCaptionRegular = "400";
|
|
74
|
-
export declare const fontStyleCaptionRegular = "400 0.8125rem/1rem Public Sans";
|
|
75
|
-
export declare const fontSizeCodeRegular = "0.8125rem";
|
|
76
|
-
export declare const lineHeightCodeRegular = "1.25rem";
|
|
77
|
-
export declare const fontFamilyCodeRegular = "Reddit Mono";
|
|
78
|
-
export declare const fontWeightCodeRegular = "400";
|
|
79
|
-
export declare const fontStyleCodeRegular = "400 0.8125rem/1.25rem Reddit Mono";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const floatDropShadow = "box-shadow: 0px 0px 6px 6px rgba(22, 33, 45, 0.25);";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/hooks/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './useConditionalConfirm';
|
|
2
|
-
export * from './useDrag';
|
|
3
|
-
export * from './useIdle';
|
|
4
|
-
export * from './useInterval';
|
|
5
|
-
export * from './useLongPress';
|
|
6
|
-
export * from './useMountEffect';
|
|
7
|
-
export * from './usePrevious';
|
|
8
|
-
export * from './useScrolling';
|
|
9
|
-
export * from './useSelectDeckLocation';
|
|
10
|
-
export * from './useSwipe';
|
|
11
|
-
export * from './useTimeout';
|
|
12
|
-
export * from './useToggle';
|
|
13
|
-
export * from './useMenuHandleClickOutside';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useConditionalConfirm is intended for cases where we want to block and defer
|
|
3
|
-
* a particular user action until the user clicks "ok" in any kind of "are you sure?"
|
|
4
|
-
* confirmation UI. The arguments passed to the confirm function will be preserved and
|
|
5
|
-
* used to call handleContinue. Ex. a click event is being deferred by a modal. When the
|
|
6
|
-
* user confirms, the initial click event passed as an argument will be used as the argument in
|
|
7
|
-
* the callback.
|
|
8
|
-
* @param {() => unknown)} handleContinue (the action we may want to require confirmation for)
|
|
9
|
-
* @param {boolean} shouldBlock (if no confirmation is needed, we will avoid the modal and immediately call handleContinue)
|
|
10
|
-
* @example
|
|
11
|
-
* ```js
|
|
12
|
-
* import { useConditionalConfirm } from '@opentrons/components'
|
|
13
|
-
*
|
|
14
|
-
* const ExampleDangerForm = props => {
|
|
15
|
-
* const {
|
|
16
|
-
* confirm,
|
|
17
|
-
* showConfirmation,
|
|
18
|
-
* cancel,
|
|
19
|
-
* } = useConditionalConfirm(props.goAhead, props.dangerIsPresent)
|
|
20
|
-
*
|
|
21
|
-
* return (
|
|
22
|
-
* <>
|
|
23
|
-
* {showConfirmation && (
|
|
24
|
-
* <AreYouSureModal
|
|
25
|
-
* handleCancel={cancel}
|
|
26
|
-
* handleContinue={confirm}
|
|
27
|
-
* />
|
|
28
|
-
* )}
|
|
29
|
-
* <DangerFormFields />
|
|
30
|
-
* <DangerousSubmit onClick={confirm} />
|
|
31
|
-
* </>
|
|
32
|
-
* )
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export interface UseConditionalConfirmResult<T extends any[]> {
|
|
37
|
-
confirm: (...args: T) => void;
|
|
38
|
-
showConfirmation: boolean;
|
|
39
|
-
cancel: () => unknown;
|
|
40
|
-
}
|
|
41
|
-
export declare const useConditionalConfirm: <T extends any[]>(handleContinue: (...args: T) => any, shouldBlock: boolean) => UseConditionalConfirmResult<T>;
|
package/lib/hooks/useDrag.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, MutableRefObject } from 'react';
|
|
2
|
-
export interface ElementPosition {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
}
|
|
8
|
-
export interface UseDragResult {
|
|
9
|
-
ref: MutableRefObject<null>;
|
|
10
|
-
style: CSSProperties;
|
|
11
|
-
position: ElementPosition;
|
|
12
|
-
isEnabled: boolean;
|
|
13
|
-
enable: () => void;
|
|
14
|
-
disable: () => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* useDrag makes HTMLElement draggable for on-device app
|
|
18
|
-
* This hook should be used when isOnDevice is true
|
|
19
|
-
* @param {ElementPosition} (width, height, x, and y, they are HTMLElement's size and the initial position)
|
|
20
|
-
* @returns {UseDragResult}
|
|
21
|
-
*/
|
|
22
|
-
export declare const useDrag: (position: ElementPosition) => UseDragResult;
|
package/lib/hooks/useIdle.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React hook to check user events
|
|
3
|
-
*
|
|
4
|
-
* @param {number} idleTime (idle time)
|
|
5
|
-
* @param {object} options (events that the app need to check, initialState: initial state true => idle)
|
|
6
|
-
* @returns {boolean}
|
|
7
|
-
*/
|
|
8
|
-
export declare function useIdle(idleTime: number, options?: Partial<{
|
|
9
|
-
events: Array<keyof DocumentEventMap>;
|
|
10
|
-
initialState: boolean;
|
|
11
|
-
}>): boolean;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React hook to call a function on an interval; copied from:
|
|
3
|
-
* https://overreacted.io/making-setinterval-declarative-with-react-hooks/
|
|
4
|
-
*
|
|
5
|
-
* @template T (type of the input value)
|
|
6
|
-
* @param {() => unknown} callback (function to call on an interval)
|
|
7
|
-
* @param {number | null} delay (interval delay, or null to stop interval)
|
|
8
|
-
* @param {boolean} [immediate=false] (trigger the callback immediately before starting the interval)
|
|
9
|
-
* @returns {void}
|
|
10
|
-
*/
|
|
11
|
-
export declare function useInterval(callback: () => unknown, delay: number | null, immediate?: boolean): void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, MutableRefObject } from 'react';
|
|
2
|
-
export interface UseLongPressResult {
|
|
3
|
-
ref: MutableRefObject<null>;
|
|
4
|
-
style: CSSProperties;
|
|
5
|
-
isEnabled: boolean;
|
|
6
|
-
isLongPressed: boolean;
|
|
7
|
-
isTapped: boolean;
|
|
8
|
-
setIsLongPressed: (value: boolean) => void;
|
|
9
|
-
setIsTapped: (value: boolean) => void;
|
|
10
|
-
enable: () => void;
|
|
11
|
-
disable: () => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* useLongPress provide two actions (tap and long press)
|
|
15
|
-
* useLongPress recognize 1 sec hold as long press: hold Duration
|
|
16
|
-
* interactjs recognize "hold" when an element is held down around 600ms(default)
|
|
17
|
-
* @returns {UseLongPressResult}
|
|
18
|
-
*/
|
|
19
|
-
export declare const useLongPress: () => UseLongPressResult;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Dispatch, MouseEventHandler, SetStateAction } from 'react';
|
|
2
|
-
interface MenuHandleClickOutside {
|
|
3
|
-
menuOverlay: JSX.Element;
|
|
4
|
-
handleOverflowClick: MouseEventHandler<HTMLButtonElement>;
|
|
5
|
-
showOverflowMenu: boolean;
|
|
6
|
-
setShowOverflowMenu: Dispatch<SetStateAction<boolean>>;
|
|
7
|
-
}
|
|
8
|
-
export declare function useMenuHandleClickOutside(): MenuHandleClickOutside;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EffectCallback } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* React hook to call a function on component mount and unmount
|
|
4
|
-
*
|
|
5
|
-
* @param {EffectCallback} callback (function to call on mount that optionally returns a cleanup function to call on unmount)
|
|
6
|
-
* @returns {void}
|
|
7
|
-
*/
|
|
8
|
-
export declare function useMountEffect(callback: EffectCallback): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React hook to keep track of the previous value of a parameter
|
|
3
|
-
* https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
4
|
-
*
|
|
5
|
-
* @template T (type of the input value)
|
|
6
|
-
* @param {T} value (value to keep track of)
|
|
7
|
-
* @returns {(T | void)} (previous value or undefined if first render)
|
|
8
|
-
*/
|
|
9
|
-
export declare function usePrevious<T>(value: T): T | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useScrolling: (node: HTMLElement | null) => boolean;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CutoutConfig, DeckDefinition, ModuleLocation, RobotType } from '@opentrons/shared-data';
|
|
2
|
-
export type DeckLocationSelectThemes = 'default' | 'grey';
|
|
3
|
-
export declare function useDeckLocationSelect(robotType: RobotType, theme?: DeckLocationSelectThemes): {
|
|
4
|
-
DeckLocationSelect: JSX.Element;
|
|
5
|
-
selectedLocation: ModuleLocation;
|
|
6
|
-
};
|
|
7
|
-
interface DeckLocationSelectProps {
|
|
8
|
-
deckDef: DeckDefinition;
|
|
9
|
-
selectedLocation: ModuleLocation;
|
|
10
|
-
theme?: DeckLocationSelectThemes;
|
|
11
|
-
setSelectedLocation?: (loc: ModuleLocation) => void;
|
|
12
|
-
availableSlotNames?: string[];
|
|
13
|
-
occupiedCutouts?: CutoutConfig[];
|
|
14
|
-
isThermocycler?: boolean;
|
|
15
|
-
showTooltipOnDisabled?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function DeckLocationSelect({ deckDef, selectedLocation, setSelectedLocation, availableSlotNames, occupiedCutouts, theme, isThermocycler, showTooltipOnDisabled, }: DeckLocationSelectProps): JSX.Element;
|
|
18
|
-
export {};
|
package/lib/hooks/useSwipe.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { MutableRefObject, CSSProperties } from 'react';
|
|
2
|
-
interface UseSwipeResult {
|
|
3
|
-
ref: MutableRefObject<null>;
|
|
4
|
-
style: CSSProperties;
|
|
5
|
-
isEnabled: boolean;
|
|
6
|
-
setSwipeType: (value: string) => void;
|
|
7
|
-
swipeType: string;
|
|
8
|
-
enable: () => void;
|
|
9
|
-
disable: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const useSwipe: () => UseSwipeResult;
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React hook to call a function after a delay; adapted from: useInterval
|
|
3
|
-
*
|
|
4
|
-
* @template T (type of the input value)
|
|
5
|
-
* @param {() => unknown} callback (function to call after timeout)
|
|
6
|
-
* @param {number | null} delay (timeout delay, or null to disable the timeout)
|
|
7
|
-
* @returns {void}
|
|
8
|
-
*/
|
|
9
|
-
export declare function useTimeout(callback: () => unknown, delay: number | null): void;
|
package/lib/hooks/useToggle.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type UseToggleResult = [boolean, () => void];
|
|
2
|
-
/**
|
|
3
|
-
* React hook to toggle a boolean value
|
|
4
|
-
*
|
|
5
|
-
* @param {boolean} [intialValue=false] (initial toggle value)
|
|
6
|
-
* @returns {[boolean, () => void]} (value and setValue tuple)
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* import * as React from 'react'
|
|
10
|
-
* import { useToggle } from '@opentrons/components'
|
|
11
|
-
*
|
|
12
|
-
* export function ToggleButton() {
|
|
13
|
-
* const [enabled, toggleEnabled] = useToggle(true)
|
|
14
|
-
*
|
|
15
|
-
* return (
|
|
16
|
-
* <button onClick={toggleEnabled}>
|
|
17
|
-
* Setting is {enabled ? 'enabled' : 'disabled'}
|
|
18
|
-
* </button>
|
|
19
|
-
* )
|
|
20
|
-
* }
|
|
21
|
-
*/
|
|
22
|
-
export declare function useToggle(initialValue?: boolean): UseToggleResult;
|
package/lib/icons/Icon.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import { ICON_DATA_BY_NAME } from './icon-data';
|
|
3
|
-
import type { SvgProps } from '../primitives';
|
|
4
|
-
export type IconName = keyof typeof ICON_DATA_BY_NAME;
|
|
5
|
-
export interface IconProps extends SvgProps {
|
|
6
|
-
/** name constant of the icon to display */
|
|
7
|
-
name: IconName;
|
|
8
|
-
/** classes to apply */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** spin the icon with a CSS animation */
|
|
11
|
-
spin?: boolean;
|
|
12
|
-
/** x attribute as a number or string (for nesting inside another SVG) */
|
|
13
|
-
x?: number | string;
|
|
14
|
-
/** y attribute as a number or string (for nesting inside another SVG) */
|
|
15
|
-
y?: number | string;
|
|
16
|
-
/** width as a number or string (for nesting inside another SVG) */
|
|
17
|
-
svgHeight?: number | string;
|
|
18
|
-
/** height as a number or string (for nesting inside another SVG) */
|
|
19
|
-
svgWidth?: number | string;
|
|
20
|
-
/** inline style passed into the icon svg */
|
|
21
|
-
style?: Record<string, string | number>;
|
|
22
|
-
/** optional children */
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
id?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Inline SVG icon component
|
|
28
|
-
*
|
|
29
|
-
* If you need access to the IconName type, you can:
|
|
30
|
-
* ```js
|
|
31
|
-
* import type { IconName } from '@opentrons/components'
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare function Icon(props: IconProps): JSX.Element | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ModuleType } from '@opentrons/shared-data';
|
|
2
|
-
import type { StyleProps } from '../primitives/types';
|
|
3
|
-
export type ModuleIconName = 'ot-magnet-v2' | 'ot-heater-shaker' | 'ot-temperature-v2' | 'ot-magnet-v2' | 'ot-thermocycler' | 'ot-absorbance';
|
|
4
|
-
export declare const MODULE_ICON_NAME_BY_TYPE: {
|
|
5
|
-
[type in ModuleType]: ModuleIconName;
|
|
6
|
-
};
|
|
7
|
-
interface ModuleIconProps extends StyleProps {
|
|
8
|
-
moduleType: ModuleType;
|
|
9
|
-
}
|
|
10
|
-
export declare function ModuleIcon(props: ModuleIconProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IconProps, IconName } from './Icon';
|
|
2
|
-
export interface NotificationIconProps extends IconProps {
|
|
3
|
-
/** name constant of the optional notifcation icon to display */
|
|
4
|
-
childName: IconName | null;
|
|
5
|
-
/** color to apply to notification icon (defaults to COLOR_WARNING) */
|
|
6
|
-
childColor?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Inline SVG icon component with additional nested notification icon. Takes
|
|
10
|
-
* all the same props as Icon in addition to the ones listed above.
|
|
11
|
-
*/
|
|
12
|
-
export declare function NotificationIcon(props: NotificationIconProps): JSX.Element;
|
package/lib/icons/icon-data.d.ts
DELETED
package/lib/icons/index.d.ts
DELETED
package/lib/images/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './labware';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './measurement-guide';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface DiagramProps {
|
|
2
|
-
guideType?: string;
|
|
3
|
-
category?: string;
|
|
4
|
-
insertCategory?: string;
|
|
5
|
-
shape?: string;
|
|
6
|
-
wellBottomShape?: string;
|
|
7
|
-
guideVisible?: boolean;
|
|
8
|
-
irregular?: boolean;
|
|
9
|
-
isMultiRow?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare function getFootprintDiagram(props: DiagramProps): string[];
|
|
12
|
-
export declare function getSpacingDiagram(props: DiagramProps): string[];
|
|
13
|
-
export declare function getMeasurementDiagram(props: DiagramProps): string[];
|
package/lib/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from './hooks';
|
|
2
|
-
export * from './utils';
|
|
3
|
-
export * from './alerts';
|
|
4
|
-
export * from './buttons';
|
|
5
|
-
export * from './controls';
|
|
6
|
-
export * from './hardware-sim';
|
|
7
|
-
export * from './legacy-hardware-sim';
|
|
8
|
-
export * from './forms';
|
|
9
|
-
export * from './icons';
|
|
10
|
-
export * from './images';
|
|
11
|
-
export * from './instrument';
|
|
12
|
-
export * from './interaction-enhancers';
|
|
13
|
-
export * from './lists';
|
|
14
|
-
export * from './modals';
|
|
15
|
-
export * from './nav';
|
|
16
|
-
export * from './primitives';
|
|
17
|
-
export * from './slotmap';
|
|
18
|
-
export * from './structure';
|
|
19
|
-
export * from './tooltips';
|
|
20
|
-
export * from './organisms';
|
|
21
|
-
export * from './styles';
|
|
22
|
-
export * from './ui-style-constants';
|
|
23
|
-
export * from './helix-design-system';
|
|
24
|
-
export * from './robot-types';
|
|
25
|
-
export * from './molecules';
|
|
26
|
-
export * from './atoms';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
|
-
import type { PipetteV2Specs } from '@opentrons/shared-data';
|
|
3
|
-
import type { Mount } from '../robot-types';
|
|
4
|
-
import type { StyleProps } from '..';
|
|
5
|
-
export interface InstrumentDiagramProps extends StyleProps {
|
|
6
|
-
mount: Mount;
|
|
7
|
-
pipetteSpecs?: Pick<PipetteV2Specs, 'displayCategory' | 'channels'> | null;
|
|
8
|
-
className?: string;
|
|
9
|
-
imageStyle?: FlattenSimpleInterpolation;
|
|
10
|
-
}
|
|
11
|
-
export declare function InstrumentDiagram(props: InstrumentDiagramProps): JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { InstrumentInfoProps } from './InstrumentInfo';
|
|
2
|
-
export interface InstrumentGroupProps {
|
|
3
|
-
showMountLabel?: boolean | null | undefined;
|
|
4
|
-
left?: InstrumentInfoProps | null | undefined;
|
|
5
|
-
right?: InstrumentInfoProps | null | undefined;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders a left and right pipette diagram & info.
|
|
9
|
-
* Takes child `InstrumentInfo` props in `right` and `left` props.
|
|
10
|
-
*/
|
|
11
|
-
export declare function InstrumentGroup(props: InstrumentGroupProps): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { Mount } from '../robot-types';
|
|
3
|
-
import type { InstrumentDiagramProps } from './InstrumentDiagram';
|
|
4
|
-
export interface InstrumentInfoProps {
|
|
5
|
-
/** 'left' or 'right' */
|
|
6
|
-
mount: Mount;
|
|
7
|
-
/** human-readable description, eg 'p300 Single-channel' */
|
|
8
|
-
description: string;
|
|
9
|
-
/** specs of mounted pipette */
|
|
10
|
-
pipetteSpecs?: InstrumentDiagramProps['pipetteSpecs'] | null;
|
|
11
|
-
/** paired tiprack models */
|
|
12
|
-
tiprackModels?: string[];
|
|
13
|
-
/** children to display under the info */
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
/** if true, show labels 'LEFT PIPETTE' / 'RIGHT PIPETTE' */
|
|
16
|
-
showMountLabel?: boolean | null;
|
|
17
|
-
}
|
|
18
|
-
export declare function InstrumentInfo(props: InstrumentInfoProps): JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ActionMeta } from 'react-select';
|
|
2
|
-
import type { SelectOption } from '../forms';
|
|
3
|
-
export interface PipetteSelectProps {
|
|
4
|
-
/** currently selected value, optional in case selecting triggers immediate action */
|
|
5
|
-
pipetteName?: string | null;
|
|
6
|
-
/** react-select change handler */
|
|
7
|
-
onPipetteChange: (pipetteName: string | null, e: ActionMeta<SelectOption>) => void;
|
|
8
|
-
/** list of pipette names to omit */
|
|
9
|
-
nameBlocklist?: string[];
|
|
10
|
-
/** whether or not "None" shows up as the default option */
|
|
11
|
-
enableNoneOption?: boolean;
|
|
12
|
-
/** input tabIndex */
|
|
13
|
-
tabIndex?: string | number;
|
|
14
|
-
/** classes to apply to the top-level component */
|
|
15
|
-
className?: string;
|
|
16
|
-
/** custom id to be applied. likely to be used as a data test id for e2e testing */
|
|
17
|
-
id?: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const PipetteSelect: (props: PipetteSelectProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface ClickOutsideChildParams {
|
|
3
|
-
ref: React.RefCallback<Element>;
|
|
4
|
-
}
|
|
5
|
-
export interface ClickOutsideProps {
|
|
6
|
-
onClickOutside: ((e: MouseEvent) => void) | undefined | null;
|
|
7
|
-
children: (params: ClickOutsideChildParams) => JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
export declare class ClickOutside extends React.Component<ClickOutsideProps> {
|
|
10
|
-
wrapperRef: Element | null;
|
|
11
|
-
constructor(props: ClickOutsideProps);
|
|
12
|
-
componentDidMount(): void;
|
|
13
|
-
componentWillUnmount(): void;
|
|
14
|
-
setWrapperRef: (el: Element | null) => void;
|
|
15
|
-
handleClickOutside: (event: MouseEvent) => void;
|
|
16
|
-
render(): JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface KeypressHandler {
|
|
3
|
-
key: string;
|
|
4
|
-
shiftKey?: boolean | null | undefined;
|
|
5
|
-
onPress: () => unknown;
|
|
6
|
-
}
|
|
7
|
-
export interface HandleKeypressProps {
|
|
8
|
-
/** array of keypress handlers to attach to the window */
|
|
9
|
-
handlers: KeypressHandler[];
|
|
10
|
-
/** optionally call event.preventDefault if keypress is handled */
|
|
11
|
-
preventDefault?: boolean | null | undefined;
|
|
12
|
-
/** wrapped children */
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Keypress handler wrapper component. Takes an array of keypress handlers
|
|
17
|
-
* to call when a given key is pressed on the keyboard. Handler is called on
|
|
18
|
-
* `keyup` event. `event.preventDefault` will be called if a key is handled
|
|
19
|
-
* and `props.preventDefault` is true.
|
|
20
|
-
*/
|
|
21
|
-
export declare class HandleKeypress extends React.Component<HandleKeypressProps> {
|
|
22
|
-
handlePressIfKey: (event: KeyboardEvent) => void;
|
|
23
|
-
preventDefaultIfKey: (event: KeyboardEvent) => void;
|
|
24
|
-
componentDidMount(): void;
|
|
25
|
-
componentWillUnmount(): void;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|