@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 * from './SidePanel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DeckLabelProps } from '../../molecules/DeckLabel';
|
|
3
|
+
interface DeckLabelSetProps {
|
|
4
|
+
deckLabels: DeckLabelProps[];
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const DeckLabelSet: React.ForwardRefExoticComponent<DeckLabelSetProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function EndUserAgreementFooter(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ToolboxProps {
|
|
3
|
+
title: JSX.Element;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
disableCloseButton?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
confirmButtonText?: string;
|
|
9
|
+
onConfirmClick?: () => void;
|
|
10
|
+
confirmButton?: JSX.Element;
|
|
11
|
+
onCloseClick?: () => void;
|
|
12
|
+
closeButton?: JSX.Element;
|
|
13
|
+
side?: 'left' | 'right';
|
|
14
|
+
horizontalSide?: 'top' | 'bottom';
|
|
15
|
+
childrenPadding?: string;
|
|
16
|
+
subHeader?: JSX.Element | null;
|
|
17
|
+
secondaryHeaderButton?: JSX.Element;
|
|
18
|
+
position?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function Toolbox(props: ToolboxProps): JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { StyledComponent } from 'styled-components';
|
|
2
|
+
import type { StyleProps } from './types';
|
|
3
|
+
export declare const BUTTON_TYPE_SUBMIT: 'submit';
|
|
4
|
+
export declare const BUTTON_TYPE_RESET: 'reset';
|
|
5
|
+
export declare const BUTTON_TYPE_BUTTON: 'button';
|
|
6
|
+
/**
|
|
7
|
+
* Button primitive
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
*/
|
|
11
|
+
export declare const Btn: StyledComponent<'button', any, StyleProps, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Primary button variant
|
|
14
|
+
*
|
|
15
|
+
* @component
|
|
16
|
+
*/
|
|
17
|
+
export declare const PrimaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
18
|
+
/**
|
|
19
|
+
* Secondary button variant
|
|
20
|
+
*
|
|
21
|
+
* @component
|
|
22
|
+
*/
|
|
23
|
+
export declare const SecondaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
24
|
+
/**
|
|
25
|
+
* New primary button variant used in app
|
|
26
|
+
*
|
|
27
|
+
* @component
|
|
28
|
+
*/
|
|
29
|
+
export declare const NewPrimaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
30
|
+
/**
|
|
31
|
+
* New secondary button variant used in app
|
|
32
|
+
*
|
|
33
|
+
* @component
|
|
34
|
+
*/
|
|
35
|
+
export declare const NewSecondaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
36
|
+
/**
|
|
37
|
+
* Red primary button variant used in app
|
|
38
|
+
*
|
|
39
|
+
* @component
|
|
40
|
+
*/
|
|
41
|
+
export declare const NewAlertPrimaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
42
|
+
/**
|
|
43
|
+
* Red secondary button variant used in app
|
|
44
|
+
*
|
|
45
|
+
* @component
|
|
46
|
+
*/
|
|
47
|
+
export declare const NewAlertSecondaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
48
|
+
/**
|
|
49
|
+
* Light secondary button variant
|
|
50
|
+
*
|
|
51
|
+
* @component
|
|
52
|
+
*/
|
|
53
|
+
export declare const LightSecondaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
54
|
+
/**
|
|
55
|
+
* Tertiary button variant
|
|
56
|
+
*
|
|
57
|
+
* @component
|
|
58
|
+
*/
|
|
59
|
+
export declare const TertiaryBtn: StyledComponent<"button", any, StyleProps, any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StyleProps, PrimitiveComponent } from './types';
|
|
2
|
+
export interface ForeignObjectProps extends StyleProps {
|
|
3
|
+
/** attach a width attribute to the <svg> element */
|
|
4
|
+
svgWidth?: string | number;
|
|
5
|
+
/** attach a height attribute to the <svg> element */
|
|
6
|
+
svgHeight?: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* internal helper prop to remap width style-prop to CSS
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
_cssWidth?: string | number;
|
|
12
|
+
/**
|
|
13
|
+
* internal helper prop to remap height style-prop to CSS
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
_cssHeight?: string | number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Foreign Object styled atomic component
|
|
20
|
+
*
|
|
21
|
+
* @component
|
|
22
|
+
*/
|
|
23
|
+
export declare const ForeignObject: PrimitiveComponent<'foreignObject', ForeignObjectProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProps, PrimitiveComponent } from './types';
|
|
2
|
+
export interface LinkProps extends StyleProps {
|
|
3
|
+
/** render link with target="_blank" */
|
|
4
|
+
external?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Link primitive
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
*/
|
|
11
|
+
export declare const Link: PrimitiveComponent<'a', LinkProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StyleProps, PrimitiveComponent } from './types';
|
|
2
|
+
export interface SvgProps extends StyleProps {
|
|
3
|
+
/** attach a width attribute to the <svg> element */
|
|
4
|
+
svgWidth?: string | number;
|
|
5
|
+
/** attach a height attribute to the <svg> element */
|
|
6
|
+
svgHeight?: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* internal helper prop to remap width style-prop to CSS
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
_cssWidth?: string | number;
|
|
12
|
+
/**
|
|
13
|
+
* internal helper prop to remap height style-prop to CSS
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
_cssHeight?: string | number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* SVG primitive
|
|
20
|
+
*
|
|
21
|
+
* @component
|
|
22
|
+
*/
|
|
23
|
+
export declare const Svg: PrimitiveComponent<'svg', SvgProps>;
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { StyledComponent, CSSProperties } from 'styled-components';
|
|
2
|
+
export interface ColorProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
opacity?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface TypographyProps {
|
|
8
|
+
fontSize?: string | number;
|
|
9
|
+
fontWeight?: string | number;
|
|
10
|
+
fontStyle?: string;
|
|
11
|
+
lineHeight?: string | number;
|
|
12
|
+
textAlign?: string;
|
|
13
|
+
textTransform?: string;
|
|
14
|
+
textDecoration?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SpacingProps {
|
|
17
|
+
margin?: string | number;
|
|
18
|
+
marginX?: string | number;
|
|
19
|
+
marginY?: string | number;
|
|
20
|
+
marginTop?: string | number;
|
|
21
|
+
marginRight?: string | number;
|
|
22
|
+
marginBottom?: string | number;
|
|
23
|
+
marginLeft?: string | number;
|
|
24
|
+
padding?: string | number;
|
|
25
|
+
paddingX?: string | number;
|
|
26
|
+
paddingY?: string | number;
|
|
27
|
+
paddingTop?: string | number;
|
|
28
|
+
paddingRight?: string | number;
|
|
29
|
+
paddingBottom?: string | number;
|
|
30
|
+
paddingLeft?: string | number;
|
|
31
|
+
}
|
|
32
|
+
export interface BorderProps {
|
|
33
|
+
border?: string;
|
|
34
|
+
borderTop?: string;
|
|
35
|
+
borderRight?: string;
|
|
36
|
+
borderBottom?: string;
|
|
37
|
+
borderLeft?: string;
|
|
38
|
+
borderRadius?: string | number;
|
|
39
|
+
borderWidth?: string | number;
|
|
40
|
+
borderColor?: string;
|
|
41
|
+
boxShadow?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface FlexboxProps {
|
|
44
|
+
flex?: string | number;
|
|
45
|
+
alignItems?: string;
|
|
46
|
+
alignSelf?: string;
|
|
47
|
+
justifyContent?: string;
|
|
48
|
+
flexDirection?: string;
|
|
49
|
+
flexWrap?: string;
|
|
50
|
+
whiteSpace?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface GridProps {
|
|
53
|
+
columnGap?: string | number;
|
|
54
|
+
gridGap?: string | number;
|
|
55
|
+
gridTemplateAreas?: string;
|
|
56
|
+
gridTemplateRows?: string;
|
|
57
|
+
gridTemplateColumns?: string;
|
|
58
|
+
gridArea?: string | number;
|
|
59
|
+
gridRow?: string | number;
|
|
60
|
+
gridColumn?: string | number;
|
|
61
|
+
}
|
|
62
|
+
export interface LayoutProps {
|
|
63
|
+
display?: string;
|
|
64
|
+
size?: string | number;
|
|
65
|
+
width?: string | number;
|
|
66
|
+
minWidth?: string | number;
|
|
67
|
+
maxWidth?: string | number;
|
|
68
|
+
height?: string | number;
|
|
69
|
+
minHeight?: string | number;
|
|
70
|
+
maxHeight?: string | number;
|
|
71
|
+
overflow?: CSSProperties['overflow'];
|
|
72
|
+
overflowX?: CSSProperties['overflowX'];
|
|
73
|
+
overflowY?: CSSProperties['overflowY'];
|
|
74
|
+
wordSpacing?: string | number;
|
|
75
|
+
cursor?: CSSProperties['cursor'];
|
|
76
|
+
overflowWrap?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface PositionProps {
|
|
79
|
+
position?: string;
|
|
80
|
+
zIndex?: string | number;
|
|
81
|
+
top?: string | number;
|
|
82
|
+
right?: string | number;
|
|
83
|
+
bottom?: string | number;
|
|
84
|
+
left?: string | number;
|
|
85
|
+
transform?: string;
|
|
86
|
+
filter?: string;
|
|
87
|
+
transformOrigin?: CSSProperties['transformOrigin'];
|
|
88
|
+
}
|
|
89
|
+
export interface TransitionProps {
|
|
90
|
+
transition?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface StyleProps extends ColorProps, TypographyProps, SpacingProps, BorderProps, FlexboxProps, GridProps, LayoutProps, PositionProps, TransitionProps {
|
|
93
|
+
className?: string;
|
|
94
|
+
}
|
|
95
|
+
export type PrimitiveComponent<Instance extends keyof JSX.IntrinsicElements | React.ComponentType<any>, Props extends StyleProps = StyleProps> = StyledComponent<Instance, any, Props, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PipetteChannels as Channels, PipetteMount as Mount, } from '@opentrons/shared-data';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface SlotMapProps {
|
|
2
|
+
/** Slot(s) to highlight */
|
|
3
|
+
occupiedSlots: string[];
|
|
4
|
+
/** Optional collision warning */
|
|
5
|
+
collisionSlots?: string[];
|
|
6
|
+
/** Optional error styling */
|
|
7
|
+
isError?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function OT2SlotMap(props: SlotMapProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OT2SlotMap';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProps } from '../primitives';
|
|
3
|
+
export interface CardProps extends StyleProps {
|
|
4
|
+
/** Title for card, all cards should receive a title. */
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
/** Card contents */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** If card can not be used, gray it out and remove pointer events */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Additional class names */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Renders a basic card element with a white background, dropshadow, and zero padding.
|
|
15
|
+
*
|
|
16
|
+
* Titles and other children handle their own styles and layout.
|
|
17
|
+
*/
|
|
18
|
+
export declare function Card(props: CardProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface LabeledValueProps {
|
|
3
|
+
/** Label */
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
/** Value */
|
|
6
|
+
value: React.ReactNode;
|
|
7
|
+
/** Additional className */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Additional value className */
|
|
10
|
+
valueClassName?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function LabeledValue(props: LabeledValueProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { UseHoverTooltipTargetProps } from '../tooltips';
|
|
3
|
+
export interface PillProps {
|
|
4
|
+
/** background color of pill (any CSS color string) */
|
|
5
|
+
color?: string | null | undefined;
|
|
6
|
+
/** text black, instead of default white */
|
|
7
|
+
invertTextColor?: boolean | null | undefined;
|
|
8
|
+
/** additional class name */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** contents of the pill */
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/** handlers for HoverTooltipComponent */
|
|
13
|
+
hoverTooltipHandlers?: UseHoverTooltipTargetProps | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Colored Pill containing text or other contents
|
|
17
|
+
*/
|
|
18
|
+
export declare function Pill(props: PillProps): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconName } from '../icons';
|
|
2
|
+
export interface SplashProps {
|
|
3
|
+
/** optional alternative icon name. Defaults to 'logo'. */
|
|
4
|
+
iconName?: IconName;
|
|
5
|
+
/** additional className for Splash */
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Splash(props: SplashProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ButtonProps } from '../buttons';
|
|
3
|
+
export interface TitleBarProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
subtitle?: React.ReactNode;
|
|
7
|
+
back?: ButtonProps;
|
|
8
|
+
rightNode?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
onBackClick?: () => unknown;
|
|
11
|
+
backClickDisabled?: boolean;
|
|
12
|
+
backButtonLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use 'ModalHeader' instead
|
|
16
|
+
*/
|
|
17
|
+
export declare function TitleBar(props: TitleBarProps): JSX.Element;
|