@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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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';
|
|
@@ -0,0 +1,41 @@
|
|
|
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>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface MenuHandleClickOutside {
|
|
3
|
+
menuOverlay: JSX.Element;
|
|
4
|
+
handleOverflowClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
showOverflowMenu: boolean;
|
|
6
|
+
setShowOverflowMenu: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
}
|
|
8
|
+
export declare function useMenuHandleClickOutside(): MenuHandleClickOutside;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useScrolling: (node: HTMLElement | null) => boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './labware';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './measurement-guide';
|
|
@@ -0,0 +1,13 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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';
|