@opentrons/components 0.1.6-alpha.7 → 0.1.6-alpha.9
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/lib/alerts/AlertItem.d.ts +1 -1
- package/lib/atoms/Checkbox/index.d.ts +24 -0
- package/lib/atoms/CheckboxField/index.d.ts +1 -1
- package/lib/atoms/Chip/index.d.ts +1 -1
- package/lib/atoms/Divider/index.d.ts +5 -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/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/StyledText/LegacyStyledText.d.ts +6 -0
- package/lib/atoms/StyledText/StyledText.d.ts +154 -0
- package/lib/atoms/StyledText/index.d.ts +2 -6
- 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/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/RadioButton.d.ts +21 -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__/RadioButton.test.d.ts +1 -0
- package/lib/atoms/buttons/index.d.ts +3 -0
- package/lib/atoms/index.d.ts +14 -0
- package/lib/buttons/Button.d.ts +3 -2
- package/lib/controls/ControlInfo.d.ts +1 -1
- package/lib/controls/LabeledButton.d.ts +1 -1
- package/lib/controls/LabeledCheckbox.d.ts +1 -1
- package/lib/controls/LabeledControl.d.ts +1 -1
- package/lib/controls/LabeledRadioGroup.d.ts +1 -1
- package/lib/controls/LabeledSelect.d.ts +1 -1
- package/lib/controls/LabeledToggle.d.ts +1 -1
- package/lib/controls/StackedLabeledControl.d.ts +1 -1
- package/lib/forms/DeprecatedCheckboxField.d.ts +1 -1
- package/lib/forms/DropdownField.d.ts +3 -3
- package/lib/forms/FormGroup.d.ts +1 -1
- package/lib/forms/{InputField.d.ts → LegacyInputField.d.ts} +4 -4
- package/lib/forms/RadioGroup.d.ts +1 -1
- package/lib/forms/Select.d.ts +1 -1
- package/lib/forms/SelectField.d.ts +1 -1
- package/lib/forms/ToggleField.d.ts +1 -1
- package/lib/forms/index.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +9 -2
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -3
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -1
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +1 -2
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
- package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
- package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +1 -1
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +1 -1
- package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +8 -0
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +6 -2
- 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/index.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +4 -0
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +9 -1
- package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +1 -1
- package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
- package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +1 -1
- package/lib/hardware-sim/Module/index.d.ts +2 -2
- package/lib/hardware-sim/Pipette/PipetteRender.d.ts +1 -1
- package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +2 -2
- package/lib/hardware-sim/ProtocolDeck/index.d.ts +4 -2
- package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +1 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +3 -2
- package/lib/hardware-sim/utils.d.ts +1 -1
- package/lib/helix-design-system/colors.d.ts +11 -0
- package/lib/helix-design-system/index.d.ts +2 -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/index.d.ts +1 -0
- package/lib/hooks/useConditionalConfirm.d.ts +3 -2
- package/lib/hooks/useDrag.d.ts +1 -1
- package/lib/hooks/useLongPress.d.ts +1 -1
- package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
- package/lib/hooks/useSelectDeckLocation/index.d.ts +1 -2
- package/lib/hooks/useSwipe.d.ts +1 -1
- package/lib/icons/Icon.d.ts +1 -1
- package/lib/icons/ModuleIcon.d.ts +2 -2
- package/lib/icons/icon-data.d.ts +4 -586
- package/lib/index.cjs +732 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +26455 -9766
- package/lib/instrument/InstrumentDiagram.d.ts +1 -1
- package/lib/instrument/InstrumentInfo.d.ts +1 -1
- package/lib/lists/SidePanelGroup.d.ts +1 -1
- package/lib/lists/index.d.ts +0 -1
- package/lib/modals/AlertModal.d.ts +2 -1
- package/lib/modals/ContinueModal.d.ts +1 -0
- package/lib/modals/LegacyModal.d.ts +24 -0
- package/lib/modals/Modal.d.ts +21 -20
- package/lib/modals/ModalHeader.d.ts +13 -0
- package/lib/modals/ModalShell.d.ts +11 -2
- package/lib/modals/Overlay.d.ts +1 -1
- package/lib/modals/SpinnerModal.d.ts +1 -0
- package/lib/modals/SpinnerModalPage.d.ts +2 -1
- 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 +5 -5
- 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/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/lib/molecules/Tabs/index.d.ts +10 -0
- package/lib/molecules/index.d.ts +7 -3
- package/lib/nav/SidePanel.d.ts +1 -1
- 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/Btn.d.ts +1 -1
- package/lib/structure/Card.d.ts +1 -1
- package/lib/structure/LabeledValue.d.ts +1 -1
- package/lib/structure/Pill.d.ts +1 -1
- package/lib/structure/TitleBar.d.ts +2 -2
- package/lib/structure/index.d.ts +0 -1
- package/lib/style.css +1 -0
- package/lib/styles/cursor.d.ts +10 -0
- package/lib/styles/flexbox.d.ts +5 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/layout.d.ts +1 -0
- package/lib/testing/utils/renderWithProviders.d.ts +2 -3
- package/lib/tooltips/DeprecatedTooltip.d.ts +1 -1
- package/lib/tooltips/{Tooltip.d.ts → LegacyTooltip.d.ts} +2 -2
- package/lib/tooltips/index.d.ts +1 -1
- package/lib/ui-style-constants/responsiveness.d.ts +1 -0
- package/lib/ui-style-constants/typography.d.ts +1 -0
- package/package.json +5 -8
- package/{vite.config.ts → vite.config.mts} +10 -4
- package/lib/lists/ListItem.d.ts +0 -37
- package/lib/modals/BaseModal.d.ts +0 -26
- package/lib/modals/ModalPage.d.ts +0 -16
- package/lib/molecules/LocationIcon/index.d.ts +0 -15
- package/lib/molecules/ParametersTable/InfoScreen.d.ts +0 -6
- package/lib/molecules/RoundTab.d.ts +0 -8
- package/lib/structure/PageTabs.d.ts +0 -11
- package/lib/tabbedNav/NavTab.d.ts +0 -25
- package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
- package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
- package/lib/tabbedNav/index.d.ts +0 -3
- /package/lib/atoms/{StyledText/__tests__/StyledText.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/lib/{modals/__tests__/BaseModal.test.d.ts → atoms/InputField/__tests__/InputField.test.d.ts} +0 -0
- /package/lib/{molecules/LocationIcon/__tests__/LocationIcon.test.d.ts → atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts} +0 -0
- /package/lib/{molecules/ParametersTable/__tests__/InfoScreen.test.d.ts → atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface LegacyDropdownOption {
|
|
3
3
|
name: string;
|
|
4
4
|
value: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export type Options =
|
|
7
|
+
export type Options = LegacyDropdownOption[];
|
|
8
8
|
export interface DropdownFieldProps {
|
|
9
9
|
/** change handler */
|
|
10
10
|
onChange: React.ChangeEventHandler<HTMLSelectElement>;
|
package/lib/forms/FormGroup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export declare const INPUT_TYPE_TEXT: 'text';
|
|
3
3
|
export declare const INPUT_TYPE_PASSWORD: 'password';
|
|
4
|
-
export interface
|
|
4
|
+
export interface LegacyInputFieldProps {
|
|
5
5
|
/** field is disabled if value is true */
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
/** change handler */
|
|
@@ -46,6 +46,6 @@ export interface InputFieldProps {
|
|
|
46
46
|
isIndeterminate?: boolean;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* @deprecated Use `InputField`
|
|
49
|
+
* @deprecated Use `InputField`
|
|
50
50
|
*/
|
|
51
|
-
export declare function
|
|
51
|
+
export declare function LegacyInputField(props: LegacyInputFieldProps): JSX.Element;
|
package/lib/forms/Select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { components as reactSelectComponents } from 'react-select';
|
|
2
|
-
import { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles';
|
|
3
2
|
import type { Props as ReactSelectProps } from 'react-select';
|
|
3
|
+
import type { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles';
|
|
4
4
|
export { reactSelectComponents };
|
|
5
5
|
export declare const PLACEMENT_AUTO: 'auto';
|
|
6
6
|
export declare const PLACEMENT_BOTTOM: 'bottom';
|
package/lib/forms/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './DeprecatedCheckboxField';
|
|
2
2
|
export * from './DropdownField';
|
|
3
3
|
export * from './FormGroup';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './LegacyInputField';
|
|
5
5
|
export * from './RadioGroup';
|
|
6
6
|
export * from './Select';
|
|
7
7
|
export * from './SelectField';
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Module } from '../Module';
|
|
3
|
-
import { Svg } from '../../primitives';
|
|
3
|
+
import type { Svg } from '../../primitives';
|
|
4
4
|
import type { DeckConfiguration, LabwareDefinition2, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
|
|
5
|
-
import type { WellFill } from '../Labware';
|
|
5
|
+
import type { WellFill, WellGroup } from '../Labware';
|
|
6
6
|
export interface LabwareOnDeck {
|
|
7
7
|
labwareLocation: LabwareLocation;
|
|
8
8
|
definition: LabwareDefinition2;
|
|
9
9
|
wellFill?: WellFill;
|
|
10
|
+
missingTips?: WellGroup;
|
|
10
11
|
/** generic prop to render self-positioned children for each labware */
|
|
11
12
|
labwareChildren?: React.ReactNode;
|
|
12
13
|
onLabwareClick?: () => void;
|
|
14
|
+
highlight?: boolean;
|
|
15
|
+
highlightShadow?: boolean;
|
|
16
|
+
stacked?: boolean;
|
|
13
17
|
}
|
|
14
18
|
export interface ModuleOnDeck {
|
|
15
19
|
moduleModel: ModuleModel;
|
|
@@ -20,6 +24,9 @@ export interface ModuleOnDeck {
|
|
|
20
24
|
/** generic prop to render self-positioned children for each module */
|
|
21
25
|
moduleChildren?: React.ReactNode;
|
|
22
26
|
onLabwareClick?: () => void;
|
|
27
|
+
highlightLabware?: boolean;
|
|
28
|
+
highlightShadowLabware?: boolean;
|
|
29
|
+
stacked?: boolean;
|
|
23
30
|
}
|
|
24
31
|
interface BaseDeckProps {
|
|
25
32
|
deckConfig: DeckConfiguration;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export declare function SlotBase(props: React.SVGProps<SVGPathElement>): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export declare function SlotClip(props: React.SVGProps<SVGPathElement>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
3
3
|
export type StagingAreaLocation = 'cutoutA3' | 'cutoutB3' | 'cutoutC3' | 'cutoutD3';
|
|
4
4
|
interface StagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
|
|
3
|
-
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { WASTE_CHUTE_CUTOUT, DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
4
3
|
interface WasteChuteFixtureProps extends React.SVGProps<SVGGElement> {
|
|
5
4
|
cutoutId: typeof WASTE_CHUTE_CUTOUT;
|
|
6
5
|
deckDefinition: DeckDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
|
|
3
3
|
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
4
4
|
interface WasteChuteStagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { LoadedModule,
|
|
3
|
-
import type { LabwareDefinition2, LabwareLocation, RobotType, DeckConfiguration } from '@opentrons/shared-data';
|
|
2
|
+
import type { LoadedLabware, LoadedModule, LabwareDefinition2, LabwareLocation, RobotType, DeckConfiguration } from '@opentrons/shared-data';
|
|
4
3
|
import type { StyleProps } from '../../primitives';
|
|
5
4
|
interface MoveLabwareOnDeckProps extends StyleProps {
|
|
6
5
|
robotType: RobotType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleProps } from '../../primitives';
|
|
2
|
+
import type { StyleProps } from '../../primitives';
|
|
3
3
|
import type { DeckDefinition, DeckSlot } from '@opentrons/shared-data';
|
|
4
4
|
export interface RobotWorkSpaceRenderProps {
|
|
5
5
|
deckSlotsById: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface AbsorbanceReaderFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function AbsorbanceReaderFixture(props: AbsorbanceReaderFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { HighlightedWellLabels, WellMouseEvent, WellFill, WellStroke } from './labwareInternals/types';
|
|
4
|
+
export interface LabwareProps {
|
|
5
|
+
/** Labware definition to render */
|
|
6
|
+
definition: LabwareDefinition2;
|
|
7
|
+
/** Opional Prop for labware on heater shakers sitting on right side of the deck */
|
|
8
|
+
shouldRotateAdapterOrientation?: boolean;
|
|
9
|
+
/** boolean to show well labels */
|
|
10
|
+
showLabels?: boolean;
|
|
11
|
+
/** color to render well labels */
|
|
12
|
+
wellLabelColor?: string;
|
|
13
|
+
/** option to highlight well labels with specified color */
|
|
14
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
15
|
+
/** CSS color to fill specified wells */
|
|
16
|
+
wellFill?: WellFill;
|
|
17
|
+
/** CSS color to stroke specified wells */
|
|
18
|
+
wellStroke?: WellStroke;
|
|
19
|
+
/** adds thicker blue border with blur to labware */
|
|
20
|
+
highlight?: boolean;
|
|
21
|
+
/** Optional callback, called with WellMouseEvent args onMouseEnter */
|
|
22
|
+
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
23
|
+
/** Optional callback, called with WellMouseEvent args onMouseLeave */
|
|
24
|
+
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
25
|
+
gRef?: React.RefObject<SVGGElement>;
|
|
26
|
+
onLabwareClick?: () => void;
|
|
27
|
+
/** Hide labware outline */
|
|
28
|
+
hideOutline?: boolean;
|
|
29
|
+
/** Provides well data attribute */
|
|
30
|
+
isInteractive?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* a refactor of the legacy LabwareRender component intended to provide predictable styling
|
|
34
|
+
* initial use in ODD well selection component with ODD-specific well label styling
|
|
35
|
+
* consider adding additional styled wells props if used elsewhere
|
|
36
|
+
* @param props
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const Labware: (props: LabwareProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsAutoclavableDeckRiser(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsToughPCRAutoSealingLid(): JSX.Element;
|
|
@@ -3,17 +3,25 @@ import { Opentrons96FlatBottomAdapter } from './Opentrons96FlatBottomAdapter';
|
|
|
3
3
|
import { OpentronsUniversalFlatAdapter } from './OpentronsUniversalFlatAdapter';
|
|
4
4
|
import { OpentronsAluminumFlatBottomPlate } from './OpentronsAluminumFlatBottomPlate';
|
|
5
5
|
import { OpentronsFlex96TiprackAdapter } from './OpentronsFlex96TiprackAdapter';
|
|
6
|
+
import { OpentronsToughPCRAutoSealingLid } from './OpentronsToughPCRAutoSealingLid';
|
|
7
|
+
import { OpentronsAutoclavableDeckRiser } from './OpentronsAutoclavableDeckRiser';
|
|
8
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
6
9
|
declare const LABWARE_ADAPTER_LOADNAME_PATHS: {
|
|
7
10
|
opentrons_96_deep_well_adapter: typeof Opentrons96DeepWellAdapter;
|
|
8
11
|
opentrons_96_flat_bottom_adapter: typeof Opentrons96FlatBottomAdapter;
|
|
9
12
|
opentrons_aluminum_flat_bottom_plate: typeof OpentronsAluminumFlatBottomPlate;
|
|
10
13
|
opentrons_flex_96_tiprack_adapter: typeof OpentronsFlex96TiprackAdapter;
|
|
11
14
|
opentrons_universal_flat_adapter: typeof OpentronsUniversalFlatAdapter;
|
|
15
|
+
opentrons_tough_pcr_auto_sealing_lid: typeof OpentronsToughPCRAutoSealingLid;
|
|
16
|
+
opentrons_flex_deck_riser: typeof OpentronsAutoclavableDeckRiser;
|
|
12
17
|
};
|
|
13
18
|
export type LabwareAdapterLoadName = keyof typeof LABWARE_ADAPTER_LOADNAME_PATHS;
|
|
14
19
|
export declare const labwareAdapterLoadNames: string[];
|
|
15
20
|
export interface LabwareAdapterProps {
|
|
16
21
|
labwareLoadName: LabwareAdapterLoadName;
|
|
22
|
+
definition?: LabwareDefinition2;
|
|
23
|
+
highlight?: boolean;
|
|
24
|
+
highlightShadow?: boolean;
|
|
17
25
|
}
|
|
18
26
|
export declare const LabwareAdapter: (props: LabwareAdapterProps) => JSX.Element | null;
|
|
19
27
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { CSSProperties } from 'styled-components';
|
|
2
3
|
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
4
|
import type { HighlightedWellLabels, WellMouseEvent, WellFill, WellStroke, WellGroup } from './labwareInternals/types';
|
|
4
|
-
import type { CSSProperties } from 'styled-components';
|
|
5
5
|
export declare const WELL_LABEL_OPTIONS: {
|
|
6
6
|
readonly SHOW_LABEL_INSIDE: "SHOW_LABEL_INSIDE";
|
|
7
7
|
readonly SHOW_LABEL_OUTSIDE: "SHOW_LABEL_OUTSIDE";
|
|
@@ -32,11 +32,15 @@ export interface LabwareRenderProps {
|
|
|
32
32
|
labwareStroke?: CSSProperties['stroke'];
|
|
33
33
|
/** adds thicker blue border with blur to labware */
|
|
34
34
|
highlight?: boolean;
|
|
35
|
+
/** adds a drop shadow to the highlight border */
|
|
36
|
+
highlightShadow?: boolean;
|
|
35
37
|
/** Optional callback, called with WellMouseEvent args onMouseEnter */
|
|
36
38
|
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
37
39
|
/** Optional callback, called with WellMouseEvent args onMouseLeave */
|
|
38
40
|
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
39
41
|
gRef?: React.RefObject<SVGGElement>;
|
|
40
42
|
onLabwareClick?: () => void;
|
|
43
|
+
showBorder?: boolean;
|
|
44
|
+
strokeColor?: string;
|
|
41
45
|
}
|
|
42
46
|
export declare const LabwareRender: (props: LabwareRenderProps) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { HighlightedWellLabels } from './labwareInternals/types';
|
|
4
|
+
import type { WellLabelOption } from '../..';
|
|
5
|
+
export interface LabwareStackRenderProps {
|
|
6
|
+
/** Labware definitions in stack to render */
|
|
7
|
+
definitionTop: LabwareDefinition2;
|
|
8
|
+
/** option to highlight well labels with specified color */
|
|
9
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
10
|
+
/** highlight top labware */
|
|
11
|
+
highlightTop: boolean;
|
|
12
|
+
/** highlight bottom labware if it exists */
|
|
13
|
+
highlightBottom: boolean;
|
|
14
|
+
gRef?: React.RefObject<SVGGElement>;
|
|
15
|
+
definitionBottom?: LabwareDefinition2 | null;
|
|
16
|
+
shouldRotateAdapterOrientation?: boolean;
|
|
17
|
+
/** option to show well labels inside or outside of labware outline */
|
|
18
|
+
wellLabelOption?: WellLabelOption;
|
|
19
|
+
}
|
|
20
|
+
export declare const LabwareStackRender: (props: LabwareStackRenderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -4,6 +4,7 @@ import type { CSSProperties } from 'styled-components';
|
|
|
4
4
|
export interface FilledWellsProps {
|
|
5
5
|
definition: LabwareDefinition2;
|
|
6
6
|
fillByWell: Record<string, CSSProperties['fill']>;
|
|
7
|
+
strokeColor?: string;
|
|
7
8
|
}
|
|
8
9
|
declare function FilledWellsComponent(props: FilledWellsProps): JSX.Element;
|
|
9
10
|
export declare const FilledWells: React.MemoExoticComponent<typeof FilledWellsComponent>;
|
|
@@ -11,7 +11,11 @@ export interface LabwareOutlineProps {
|
|
|
11
11
|
isTiprack?: boolean;
|
|
12
12
|
/** adds thicker blue border with blur to labware, defaults to false */
|
|
13
13
|
highlight?: boolean;
|
|
14
|
+
/** adds a drop shadow to the highlight border */
|
|
15
|
+
highlightShadow?: boolean;
|
|
14
16
|
/** [legacy] override the border color */
|
|
15
17
|
stroke?: CSSProperties['stroke'];
|
|
18
|
+
fill?: CSSProperties['fill'];
|
|
19
|
+
showRadius?: boolean;
|
|
16
20
|
}
|
|
17
21
|
export declare function LabwareOutline(props: LabwareOutlineProps): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { HighlightedWellLabels } from './types';
|
|
4
|
+
interface LabwareWellLabelsProps {
|
|
5
|
+
definition: LabwareDefinition2;
|
|
6
|
+
highlightedWellLabels?: HighlightedWellLabels;
|
|
7
|
+
wellLabelColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function LabwareWellLabelsComponent(props: LabwareWellLabelsProps): JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* for use in Labware.tsx component
|
|
12
|
+
* has ODD-specific styling
|
|
13
|
+
*/
|
|
14
|
+
export declare const LabwareWellLabels: React.MemoExoticComponent<typeof LabwareWellLabelsComponent>;
|
|
15
|
+
export {};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
-
import type { WellMouseEvent } from './types';
|
|
3
|
+
import type { WellMouseEvent, WellStroke } from './types';
|
|
4
|
+
import type { CSSProperties } from 'styled-components';
|
|
4
5
|
export interface StaticLabwareProps {
|
|
5
6
|
/** Labware definition to render */
|
|
6
7
|
definition: LabwareDefinition2;
|
|
7
8
|
/** Add thicker blurred blue border to labware, defaults to false */
|
|
8
9
|
highlight?: boolean;
|
|
10
|
+
/** adds a drop shadow to the highlight border */
|
|
11
|
+
highlightShadow?: boolean;
|
|
9
12
|
/** Optional callback to be executed when entire labware element is clicked */
|
|
10
13
|
onLabwareClick?: () => void;
|
|
11
14
|
/** Optional callback to be executed when mouse enters a well element */
|
|
12
15
|
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
13
16
|
/** Optional callback to be executed when mouse leaves a well element */
|
|
14
17
|
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
18
|
+
fill?: CSSProperties['fill'];
|
|
19
|
+
showRadius?: boolean;
|
|
20
|
+
wellStroke?: WellStroke;
|
|
21
|
+
/** optional show of labware border, defaulted to true */
|
|
22
|
+
showBorder?: boolean;
|
|
15
23
|
}
|
|
16
24
|
export declare function StaticLabwareComponent(props: StaticLabwareProps): JSX.Element;
|
|
17
25
|
export declare const StaticLabware: React.MemoExoticComponent<typeof StaticLabwareComponent>;
|
|
@@ -13,6 +13,8 @@ export interface WellProps extends StyleProps {
|
|
|
13
13
|
/** Optional callback, called with WellMouseEvent args onMouseOver */
|
|
14
14
|
onMouseEnterWell?: (e: WellMouseEvent) => unknown;
|
|
15
15
|
onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
|
|
16
|
+
/** Provides well data attribute */
|
|
17
|
+
isInteractive?: boolean;
|
|
16
18
|
}
|
|
17
19
|
export declare function WellComponent(props: WellProps): JSX.Element;
|
|
18
20
|
export declare const Well: React.MemoExoticComponent<typeof WellComponent>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { WellLabelOption } from '../LabwareRender';
|
|
3
2
|
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
|
+
import type { WellLabelOption } from '../LabwareRender';
|
|
4
4
|
import type { HighlightedWellLabels } from './types';
|
|
5
5
|
export interface WellLabelsProps {
|
|
6
6
|
definition: LabwareDefinition2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PlateReader(): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleDefinition } from '@opentrons/shared-data';
|
|
1
|
+
import type * as React from 'react';
|
|
3
2
|
import { Thermocycler } from './Thermocycler';
|
|
4
3
|
import { HeaterShaker } from './HeaterShaker';
|
|
5
4
|
import { Temperature } from './Temperature';
|
|
5
|
+
import type { ModuleDefinition } from '@opentrons/shared-data';
|
|
6
6
|
export * from './Thermocycler';
|
|
7
7
|
interface Props {
|
|
8
8
|
x: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { LabwareDefinition2 } from '@opentrons/shared-data';
|
|
3
3
|
export declare function LabwareInfo(props: {
|
|
4
4
|
def: LabwareDefinition2;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import { BaseDeck } from '../BaseDeck';
|
|
3
|
-
import type { CompletedProtocolAnalysis, ProtocolAnalysisOutput } from '@opentrons/shared-data';
|
|
3
|
+
import type { CompletedProtocolAnalysis, LabwareDefinition2, ProtocolAnalysisOutput } from '@opentrons/shared-data';
|
|
4
4
|
export * from './utils/getStandardDeckViewLayerBlockList';
|
|
5
5
|
interface ProtocolDeckProps {
|
|
6
6
|
protocolAnalysis: CompletedProtocolAnalysis | ProtocolAnalysisOutput | null;
|
|
7
7
|
/** defaults to false, when set labware nicknames will appear on top level labware. If no nickname specified in protocol, falls back to labware definition display name */
|
|
8
8
|
showLabwareInfo?: boolean;
|
|
9
|
+
/** optional labware click handler, highlights labware */
|
|
10
|
+
handleLabwareClick?: (labwareDef: LabwareDefinition2, labwareId: string) => void;
|
|
9
11
|
/** extra props to pass through to BaseDeck component */
|
|
10
12
|
baseDeckProps?: Partial<React.ComponentProps<typeof BaseDeck>>;
|
|
11
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Svg } from '../../primitives';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
3
|
import type { DeckDefinition, DeckSlot } from '@opentrons/shared-data';
|
|
4
4
|
export interface RobotCoordinateSpaceWithRefRenderProps {
|
|
5
5
|
deckSlotsById: {
|
|
@@ -9,7 +9,8 @@ export interface RobotCoordinateSpaceWithRefRenderProps {
|
|
|
9
9
|
interface RobotCoordinateSpaceWithRefProps extends React.ComponentProps<typeof Svg> {
|
|
10
10
|
viewBox?: string | null;
|
|
11
11
|
deckDef?: DeckDefinition;
|
|
12
|
-
|
|
12
|
+
zoomed?: boolean;
|
|
13
|
+
children?: (props: RobotCoordinateSpaceWithRefRenderProps) => ReactNode;
|
|
13
14
|
}
|
|
14
15
|
export declare function RobotCoordinateSpaceWithRef(props: RobotCoordinateSpaceWithRefProps): JSX.Element | null;
|
|
15
16
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AffineTransformMatrix } from '@opentrons/shared-data';
|
|
1
|
+
import type { AffineTransformMatrix } from '@opentrons/shared-data';
|
|
2
2
|
export declare const IDENTITY_AFFINE_TRANSFORM: AffineTransformMatrix;
|
|
3
3
|
export declare function multiplyMatrices(a: number[][], b: number[][]): number[][];
|