@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,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface UseHoverOptions {
|
|
2
|
+
enterDelay?: number;
|
|
3
|
+
leaveDelay?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface HoverHandlers {
|
|
6
|
+
onPointerEnter: () => unknown;
|
|
7
|
+
onPointerLeave: () => unknown;
|
|
8
|
+
}
|
|
9
|
+
export type UseHoverResult = [boolean, HoverHandlers];
|
|
10
|
+
/**
|
|
11
|
+
* Hook to track hover state of an element
|
|
12
|
+
*
|
|
13
|
+
* @param {UseHoverOptions} [options={}] (add an `enterDelay` or `leaveDelay` to the hover state change)
|
|
14
|
+
* @returns {UseHoverResult}
|
|
15
|
+
* @example
|
|
16
|
+
* ```js
|
|
17
|
+
* import { useHover } from '@opentrons/components'
|
|
18
|
+
*
|
|
19
|
+
* export function HoverComponent() {
|
|
20
|
+
* const [hovered, hoverHandlers] = useHover({
|
|
21
|
+
* enterDelay: 300,
|
|
22
|
+
* leaveDelay: 100
|
|
23
|
+
* })
|
|
24
|
+
*
|
|
25
|
+
* return (
|
|
26
|
+
* <span {...hoverHandlers}>
|
|
27
|
+
* {hovered ? 'Hovered!' : 'Not hovered!'}
|
|
28
|
+
* </span>
|
|
29
|
+
* )
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function useHover(options?: UseHoverOptions): UseHoverResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface LabwareNameOverlayProps {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle?: string | null | undefined;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/** @deprecated use LabwareDisplayName or custom RobotCoordsForeignDiv */
|
|
7
|
+
export declare function LabwareNameOverlay(props: LabwareNameOverlayProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ModuleModel, DeckSlot } from '@opentrons/shared-data';
|
|
2
|
+
export interface ModuleProps {
|
|
3
|
+
/** module model */
|
|
4
|
+
model: ModuleModel;
|
|
5
|
+
/** display mode: 'default', 'present', 'missing', or 'info' */
|
|
6
|
+
mode: 'default' | 'present' | 'missing' | 'info';
|
|
7
|
+
/** slot details of the location of this module */
|
|
8
|
+
slot: DeckSlot;
|
|
9
|
+
/** USB port detail of the connected module */
|
|
10
|
+
usbInfoString?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Legacy App-specific Module Rendering. Removable after Protocol Upload Revamp release
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Use {@link Module}
|
|
16
|
+
*/
|
|
17
|
+
export declare function ModuleItem(props: ModuleProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { IconName } from '../icons';
|
|
3
|
+
export interface SidePanelGroupProps {
|
|
4
|
+
/** text of title */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** optional icon left of the title */
|
|
7
|
+
iconName?: IconName;
|
|
8
|
+
/** children, most likely one or more TitledList */
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/** additional classnames */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** disables the whole SidePanelGroup if true */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A component for grouping and titling multiple lists
|
|
17
|
+
*/
|
|
18
|
+
export declare function SidePanelGroup(props: SidePanelGroupProps): JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IconName, IconProps } from '../icons';
|
|
3
|
+
export interface TitledListProps {
|
|
4
|
+
/** id attribute */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** text of title */
|
|
7
|
+
title: string;
|
|
8
|
+
/** optional icon left of the title */
|
|
9
|
+
iconName?: IconName | null | undefined;
|
|
10
|
+
/** props passed down to icon (`className` and `name` are ignored) */
|
|
11
|
+
iconProps?: Omit<IconProps, 'name'>;
|
|
12
|
+
/** optional data test id for the container */
|
|
13
|
+
'data-test'?: string;
|
|
14
|
+
/** children must all be `<li>` */
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/** additional classnames */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** component with descriptive text about the list */
|
|
19
|
+
description?: React.ReactNode;
|
|
20
|
+
/** optional click action (on title div, not children) */
|
|
21
|
+
onClick?: (event: React.MouseEvent) => unknown;
|
|
22
|
+
/** optional right click action (on wrapping div) */
|
|
23
|
+
onContextMenu?: (event: React.MouseEvent) => unknown;
|
|
24
|
+
/** optional mouseEnter action */
|
|
25
|
+
onMouseEnter?: (event: React.MouseEvent) => unknown;
|
|
26
|
+
/** optional mouseLeave action */
|
|
27
|
+
onMouseLeave?: (event: React.MouseEvent) => unknown;
|
|
28
|
+
/** caret click action; if defined, list is expandable and carat is visible */
|
|
29
|
+
onCollapseToggle?: (event: React.MouseEvent) => unknown;
|
|
30
|
+
/** collapse the list if true (false by default) */
|
|
31
|
+
collapsed?: boolean;
|
|
32
|
+
/** set to true when TitledList is selected (eg, user clicked it) */
|
|
33
|
+
selected?: boolean;
|
|
34
|
+
/** set to true when TitledList is hovered (but not when its contents are hovered) */
|
|
35
|
+
hovered?: boolean;
|
|
36
|
+
/** disables the whole TitledList if true */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/** appear disabled, but preserve collapsibility */
|
|
39
|
+
inert?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* An ordered list with optional title, icon, and description.
|
|
43
|
+
*/
|
|
44
|
+
export declare function TitledList(props: TitledListProps): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ButtonProps } from '../buttons';
|
|
3
|
+
import type { IconName } from '../icons';
|
|
4
|
+
export interface AlertModalProps {
|
|
5
|
+
/** optional handler for overlay click */
|
|
6
|
+
onCloseClick?: () => unknown;
|
|
7
|
+
/** optional modal heading */
|
|
8
|
+
heading?: React.ReactNode;
|
|
9
|
+
/** optional array of `ButtonProps` for `OutlineButton`s at bottom of modal */
|
|
10
|
+
buttons?: Array<ButtonProps | null | undefined>;
|
|
11
|
+
/** modal contents */
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/** optional classes to apply */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** optional classes to apply */
|
|
16
|
+
contentsClassName?: string;
|
|
17
|
+
/** lightens overlay (alert modal over existing modal) */
|
|
18
|
+
alertOverlay?: boolean;
|
|
19
|
+
/** override default alert icon */
|
|
20
|
+
iconName?: IconName | null | undefined;
|
|
21
|
+
/** restricts scroll outside of Modal when open, true by default */
|
|
22
|
+
restrictOuterScroll?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use Modal instead
|
|
26
|
+
* Generic alert modal with a heading and a set of buttons at the bottom
|
|
27
|
+
*/
|
|
28
|
+
export declare function AlertModal(props: AlertModalProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AlertModalProps } from './AlertModal';
|
|
2
|
+
export interface ContinueModalProps extends Omit<AlertModalProps, 'buttons'> {
|
|
3
|
+
onCancelClick: () => unknown;
|
|
4
|
+
onContinueClick: () => unknown;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* * @deprecated use Modal instead
|
|
8
|
+
* AlertModal variant to prompt user to "Cancel" or "Continue" a given action
|
|
9
|
+
*/
|
|
10
|
+
export declare function ContinueModal(props: ContinueModalProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface LegacyModalProps {
|
|
3
|
+
/** handler to close the modal (attached to `Overlay` onClick) */
|
|
4
|
+
onCloseClick?: React.MouseEventHandler;
|
|
5
|
+
/** Optional styled heading **/
|
|
6
|
+
heading?: string;
|
|
7
|
+
/** modal contents */
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/** classes to apply */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** classes to apply to the contents box */
|
|
12
|
+
contentsClassName?: string;
|
|
13
|
+
/** lightens overlay (alert modal over existing modal) */
|
|
14
|
+
alertOverlay?: boolean;
|
|
15
|
+
/** restricts scroll outside of Modal when open, true by default */
|
|
16
|
+
restrictOuterScroll?: boolean;
|
|
17
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated use Modal instead
|
|
21
|
+
* Base modal component that fills its nearest `display:relative` ancestor
|
|
22
|
+
* with a dark overlay and displays `children` as its contents in a white box
|
|
23
|
+
*/
|
|
24
|
+
export declare function LegacyModal(props: LegacyModalProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProps } from '../primitives';
|
|
3
|
+
import type { Position } from './ModalShell';
|
|
4
|
+
type ModalType = 'info' | 'warning' | 'error';
|
|
5
|
+
export interface ModalProps extends StyleProps {
|
|
6
|
+
type?: ModalType;
|
|
7
|
+
onClose?: React.MouseEventHandler;
|
|
8
|
+
closeOnOutsideClick?: boolean;
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
titleElement1?: JSX.Element;
|
|
11
|
+
titleElement2?: JSX.Element;
|
|
12
|
+
fullPage?: boolean;
|
|
13
|
+
childrenPadding?: string | number;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
footer?: React.ReactNode;
|
|
16
|
+
zIndexOverlay?: number;
|
|
17
|
+
showOverlay?: boolean;
|
|
18
|
+
position?: Position;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* For Desktop app and Helix (which includes Protocol Designer) use only.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Modal: (props: ModalProps) => JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { IconProps } from '../icons';
|
|
3
|
+
export interface ModalHeaderProps {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
onClose?: React.MouseEventHandler;
|
|
6
|
+
titleElement1?: JSX.Element;
|
|
7
|
+
titleElement2?: JSX.Element;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
icon?: IconProps;
|
|
11
|
+
closeButton?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const ModalHeader: (props: ModalHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProps } from '../primitives';
|
|
3
|
+
export type Position = 'center' | 'bottomRight';
|
|
4
|
+
export interface ModalShellProps extends StyleProps {
|
|
5
|
+
/** Modal content */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Optional close on outside click **/
|
|
8
|
+
onOutsideClick?: React.MouseEventHandler;
|
|
9
|
+
/** Optional sticky header */
|
|
10
|
+
header?: React.ReactNode;
|
|
11
|
+
/** Optional sticky footer */
|
|
12
|
+
footer?: React.ReactNode;
|
|
13
|
+
/** Optional full page takeover */
|
|
14
|
+
fullPage?: boolean;
|
|
15
|
+
/** Optional zIndex for the overlay */
|
|
16
|
+
zIndexOverlay?: number;
|
|
17
|
+
/** Optional position to make the modal appear at the center or bottom right */
|
|
18
|
+
position?: Position;
|
|
19
|
+
/** Optional visible overlay */
|
|
20
|
+
showOverlay?: boolean;
|
|
21
|
+
/** Optional remove padding */
|
|
22
|
+
noPadding?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A ModalShell is a layout component for building more specific modals.
|
|
26
|
+
*
|
|
27
|
+
* It includes:
|
|
28
|
+
* - An overlay
|
|
29
|
+
* - A content area, with `overflow-y: auto` and customizable with style props
|
|
30
|
+
* - An optional sticky header
|
|
31
|
+
* - An optional sticky footer
|
|
32
|
+
* - An optional onOutsideClick function
|
|
33
|
+
*/
|
|
34
|
+
export declare function ModalShell(props: ModalShellProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { Flex } from '..';
|
|
3
|
+
export interface OverlayProps extends React.ComponentProps<typeof Flex> {
|
|
4
|
+
/** optional onClick handler */
|
|
5
|
+
onClick?: React.MouseEventHandler;
|
|
6
|
+
alertOverlay?: boolean | null;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Overlay(props: OverlayProps): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SpinnerModalProps {
|
|
2
|
+
/** Additional/Override style */
|
|
3
|
+
contentsClassName?: string;
|
|
4
|
+
/** Optional message to display as italic text below spinner */
|
|
5
|
+
message?: string;
|
|
6
|
+
/** lightens overlay (alert modal over existing modal) */
|
|
7
|
+
alertOverlay?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use Modal instead
|
|
11
|
+
* Spinner Modal with no background and optional message
|
|
12
|
+
*/
|
|
13
|
+
export declare function SpinnerModal(props: SpinnerModalProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { SpinnerModal } from './SpinnerModal';
|
|
3
|
+
import type { TitleBarProps } from '../structure';
|
|
4
|
+
export interface SpinnerModalPageProps extends React.ComponentProps<typeof SpinnerModal> {
|
|
5
|
+
/** Props for title bar at top of modal page */
|
|
6
|
+
titleBar: TitleBarProps;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use Modal instead
|
|
10
|
+
* Spinner Modal variant with TitleBar
|
|
11
|
+
*/
|
|
12
|
+
export declare function SpinnerModalPage(props: SpinnerModalPageProps): 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 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AlertModal';
|
|
2
|
+
export * from './ContinueModal';
|
|
3
|
+
export * from './LegacyModal';
|
|
4
|
+
export * from './Modal';
|
|
5
|
+
export * from './ModalHeader';
|
|
6
|
+
export * from './ModalShell';
|
|
7
|
+
export * from './Overlay';
|
|
8
|
+
export * from './SpinnerModal';
|
|
9
|
+
export * from './SpinnerModalPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProps } from '../../primitives';
|
|
3
|
+
import type { IconProps } from '../../icons';
|
|
4
|
+
export type BannerType = 'success' | 'warning' | 'error' | 'updating' | 'informing';
|
|
5
|
+
export interface BannerProps extends StyleProps {
|
|
6
|
+
/** name constant of the icon to display */
|
|
7
|
+
type: BannerType;
|
|
8
|
+
/** Banner contents */
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/** optional handler to show close button/clear alert */
|
|
11
|
+
onCloseClick?: (() => void) | React.MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
/** Override the default Alert Icon */
|
|
13
|
+
icon?: IconProps;
|
|
14
|
+
/** some banner onCloseClicks fire events, this allows a spinner after click but before event finishes */
|
|
15
|
+
isCloseActionLoading?: boolean;
|
|
16
|
+
/** Override the Exit icon */
|
|
17
|
+
closeButton?: React.ReactNode;
|
|
18
|
+
/** Icon margin right for large banners */
|
|
19
|
+
iconMarginRight?: string;
|
|
20
|
+
/** Icon margin left for large banners */
|
|
21
|
+
iconMarginLeft?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function Banner(props: BannerProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ModuleIconName } from '../../icons';
|
|
2
|
+
import type { StyleProps } from '../../primitives';
|
|
3
|
+
interface DeckLabelProps extends StyleProps {
|
|
4
|
+
/** deck label to display */
|
|
5
|
+
deckLabel: string;
|
|
6
|
+
iconName?: undefined;
|
|
7
|
+
}
|
|
8
|
+
interface HardwareIconProps extends StyleProps {
|
|
9
|
+
/** hardware icon name */
|
|
10
|
+
iconName: ModuleIconName | 'stacked';
|
|
11
|
+
deckLabel?: undefined;
|
|
12
|
+
}
|
|
13
|
+
export type DeckInfoLabelProps = (DeckLabelProps | HardwareIconProps) & {
|
|
14
|
+
highlight?: boolean;
|
|
15
|
+
svgSize?: string | number;
|
|
16
|
+
};
|
|
17
|
+
export declare const DeckInfoLabel: import("styled-components").StyledComponent<typeof DeckInfoLabelComponent, any, {}, never>;
|
|
18
|
+
declare function DeckInfoLabelComponent({ deckLabel, iconName, highlight, ...styleProps }: DeckInfoLabelProps): JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ModuleModel } from '@opentrons/shared-data';
|
|
2
|
+
export interface DeckLabelProps {
|
|
3
|
+
text: string;
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
moduleModel?: ModuleModel;
|
|
6
|
+
maxWidth?: string;
|
|
7
|
+
labelBorderRadius?: string;
|
|
8
|
+
isLast?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function DeckLabel({ text, isSelected, labelBorderRadius, moduleModel, maxWidth, isLast, }: DeckLabelProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DropdownOption {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
/** optional dropdown option for adding the liquid color icon */
|
|
6
|
+
liquidColor?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
tooltipText?: string;
|
|
9
|
+
}
|
|
10
|
+
export type DropdownBorder = 'rounded' | 'neutral';
|
|
11
|
+
export interface DropdownMenuProps {
|
|
12
|
+
/** dropdown options */
|
|
13
|
+
filterOptions: DropdownOption[];
|
|
14
|
+
/** click handler */
|
|
15
|
+
onClick: (value: string) => void;
|
|
16
|
+
/** current selected option */
|
|
17
|
+
currentOption: DropdownOption;
|
|
18
|
+
/** dropdown */
|
|
19
|
+
width?: string;
|
|
20
|
+
/** dropdown style type */
|
|
21
|
+
dropdownType?: DropdownBorder;
|
|
22
|
+
/** dropdown title */
|
|
23
|
+
title?: string;
|
|
24
|
+
/** dropdown item caption */
|
|
25
|
+
caption?: string | null;
|
|
26
|
+
/** text for tooltip */
|
|
27
|
+
tooltipText?: string | null;
|
|
28
|
+
/** html tabindex property */
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
/** optional error */
|
|
31
|
+
error?: string | null;
|
|
32
|
+
/** focus handler */
|
|
33
|
+
onFocus?: React.FocusEventHandler<HTMLButtonElement>;
|
|
34
|
+
/** blur handler */
|
|
35
|
+
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
|
36
|
+
/** optional disabled */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/** force direction for pd after release this will be fixed and remove */
|
|
39
|
+
forceDirection?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare function DropdownMenu(props: DropdownMenuProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RunTimeParameter } from '@opentrons/shared-data';
|
|
2
|
+
interface ProtocolParameterItemsProps {
|
|
3
|
+
runTimeParameters: RunTimeParameter[];
|
|
4
|
+
t?: any;
|
|
5
|
+
}
|
|
6
|
+
/** used in both the desktop app and Protocol Library
|
|
7
|
+
* to display the run time parameters table
|
|
8
|
+
*/
|
|
9
|
+
export declare function ParametersTable({ runTimeParameters, t, }: ProtocolParameterItemsProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|