@opentrons/components 0.2.1-alpha.0 → 0.3.0-alpha.1
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/LICENSE +202 -0
- package/README.md +12 -48
- package/lib/assets/index.d.ts +1 -0
- package/lib/assets/localization/en/index.d.ts +191 -16
- package/lib/assets/localization/index.d.ts +292 -13
- package/lib/assets/localization/zh/index.d.ts +110 -8
- package/lib/atoms/Checkbox/index.d.ts +3 -3
- package/lib/atoms/CheckboxField/index.d.ts +2 -0
- package/lib/atoms/FixedTrashText/index.d.ts +1 -0
- package/lib/atoms/InlineNotification/index.d.ts +1 -1
- package/lib/atoms/ListButton/index.d.ts +2 -2
- package/lib/atoms/MenuList/OverflowBtn.d.ts +2 -2
- package/lib/atoms/Slider/index.d.ts +14 -0
- package/lib/atoms/StepMeter/__tests__/StepMeter.test.d.ts +1 -1
- package/lib/atoms/StepMeter/index.d.ts +1 -2
- package/lib/atoms/StyledText/LegacyStyledText.d.ts +3 -1
- package/lib/atoms/StyledText/PlaceholderStyledText.d.ts +14 -0
- package/lib/atoms/StyledText/StyledText.d.ts +1 -0
- package/lib/atoms/StyledText/index.d.ts +1 -0
- package/lib/atoms/Tag/index.d.ts +1 -1
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +3 -1
- package/lib/atoms/buttons/AltPrimaryButton.d.ts +3 -1
- package/lib/atoms/buttons/PrimaryButton.d.ts +2 -1
- package/lib/atoms/buttons/TertiaryButton.d.ts +8 -3
- package/lib/atoms/index.d.ts +2 -1
- package/lib/buttons/Button.d.ts +3 -3
- package/lib/controls/ToggleButton.d.ts +1 -1
- package/lib/forms/DeprecatedCheckboxField.d.ts +2 -2
- package/lib/forms/FormGroup.d.ts +4 -4
- package/lib/forms/LegacyInputField.d.ts +5 -5
- package/lib/forms/RadioGroup.d.ts +2 -2
- package/lib/forms/ToggleField.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +19 -11
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +2 -0
- package/lib/hardware-sim/BaseDeck/StackedBadge.d.ts +1 -0
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -0
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -0
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +3 -2
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +6 -5
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +8 -5
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +2 -3
- package/lib/hardware-sim/DeckConfigurator/VacuumModuleItem.d.ts +11 -0
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +5 -0
- package/lib/hardware-sim/Labware/Labware.d.ts +3 -3
- package/lib/hardware-sim/Labware/LabwareAdapter/GenericLid.d.ts +9 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapterTypeB.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +11 -3
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +9 -9
- package/lib/hardware-sim/Labware/index.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +7 -2
- package/lib/hardware-sim/Labware/labwareInternals/Tips/InaccessibleTip.d.ts +3 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/NewTip.d.ts +4 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/TipStatus.d.ts +11 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/UsedTip.d.ts +4 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/__tests__/TipStatus.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/constants.d.ts +11 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/index.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/EmptyWell.d.ts +10 -0
- package/lib/hardware-sim/Labware/labwareInternals/{FilledWells.d.ts → Wells/FilledWells.d.ts} +3 -3
- package/lib/hardware-sim/Labware/labwareInternals/Wells/SelectedWell.d.ts +13 -0
- package/lib/hardware-sim/Labware/labwareInternals/{StrokedWells.d.ts → Wells/StrokedWells.d.ts} +2 -2
- package/lib/hardware-sim/Labware/labwareInternals/{StyledWells.d.ts → Wells/StyledWells.d.ts} +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/{Well.d.ts → Wells/Well.d.ts} +2 -3
- package/lib/hardware-sim/Labware/labwareInternals/{WellLabels.d.ts → Wells/WellLabels.d.ts} +2 -2
- package/lib/hardware-sim/Labware/labwareInternals/Wells/WellStatus.d.ts +12 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/constants.d.ts +21 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/index.d.ts +9 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/utils.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +2 -5
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +10 -12
- package/lib/hardware-sim/Module/Vacuum.d.ts +1 -0
- package/lib/hardware-sim/Module/index.d.ts +40 -5
- package/lib/hardware-sim/Pipette/StrokedNozzles.d.ts +10 -0
- package/lib/hardware-sim/Pipette/constants.d.ts +3 -0
- package/lib/hardware-sim/Pipette/index.d.ts +1 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +5 -3
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +5 -4
- package/lib/hardware-sim/alignment/AlignToModuleChildSlot.d.ts +25 -0
- package/lib/hardware-sim/alignment/CenterLabwareInModuleChildSlot.d.ts +33 -0
- package/lib/hardware-sim/alignment/CenterLabwareInSlot.d.ts +11 -0
- package/lib/hardware-sim/alignment/index.d.ts +4 -0
- package/lib/hardware-sim/index.d.ts +1 -0
- package/lib/helix-design-system/colors.d.ts +1 -0
- package/lib/hocs/withStyleProps.d.ts +1 -1
- package/lib/hooks/__tests__/useCommandTypeSummaries.test.d.ts +1 -0
- package/lib/hooks/index.d.ts +2 -1
- package/lib/hooks/testHelpers/index.d.ts +2 -0
- package/lib/hooks/useCommandTypeSummaries.d.ts +2 -0
- package/lib/hooks/useConditionalConfirm.d.ts +5 -9
- package/lib/i18n.d.ts +4 -0
- package/lib/icons/ModuleIcon.d.ts +5 -4
- package/lib/icons/icon-data.d.ts +702 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +557 -0
- package/lib/index.mjs +30626 -28730
- package/lib/interaction-enhancers/HandleKeypress.d.ts +2 -2
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +1 -1
- package/lib/legacy-hardware-sim/index.d.ts +0 -1
- package/lib/modals/AlertModal.d.ts +1 -1
- package/lib/molecules/CustomizeExpandButton/index.d.ts +2 -2
- package/lib/molecules/DeckInfoLabel/index.d.ts +8 -20
- package/lib/molecules/DeckLabel/index.d.ts +9 -2
- package/lib/molecules/DropdownMenu/index.d.ts +5 -4
- package/lib/molecules/IconButton/index.d.ts +45 -0
- package/lib/molecules/InfoScreen/index.d.ts +3 -1
- package/lib/molecules/InputField/__tests__/InputField.test.d.ts +1 -0
- package/lib/{atoms → molecules}/InputField/index.d.ts +13 -12
- package/lib/molecules/LiquidIcon/index.d.ts +2 -1
- package/lib/molecules/RobotInfoLabel/__tests__/RobotInfoLabel.test.d.ts +1 -0
- package/lib/molecules/RobotInfoLabel/index.d.ts +12 -0
- package/lib/molecules/StepGroup/__tests__/StepGroup.test.d.ts +1 -0
- package/lib/molecules/StepGroup/index.d.ts +11 -0
- package/lib/molecules/TextAreaField/__tests__/TextAreaField.test.d.ts +1 -0
- package/lib/molecules/TextAreaField/index.d.ts +34 -0
- package/lib/molecules/TimelineScrubber/TrackSlider.d.ts +10 -0
- package/lib/molecules/TimelineScrubber/index.d.ts +6 -0
- package/lib/molecules/TouchInputField/__tests__/TouchInputField.test.d.ts +1 -0
- package/lib/molecules/TouchInputField/index.d.ts +56 -0
- package/lib/molecules/WizardHeader/__tests__/WizardHeader.test.d.ts +1 -0
- package/lib/molecules/WizardHeader/index.d.ts +11 -0
- package/lib/molecules/index.d.ts +8 -1
- package/lib/organisms/CommandText/getCommandData.d.ts +3 -0
- package/lib/organisms/CommandText/index.d.ts +2 -1
- package/lib/organisms/CommandText/useCommandTextString/index.d.ts +8 -3
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/__tests__/getTipStateCommandText.test.d.ts +1 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getConcurrentCommandText.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getHSConcurrentShakeSpeedCommandTex.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getRobotDevicesCommandText.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getTCStartRunExtendedProfileCommandText.d.ts +4 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getTipStateCommandText.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/index.d.ts +5 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/getLabwareDisplayLocation.d.ts +2 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/getLiquidDisplayName.d.ts +2 -1
- package/lib/organisms/CommandText/useCommandTextString/utils/types.d.ts +2 -1
- package/lib/organisms/DeckLabelSet/index.d.ts +1 -0
- package/lib/organisms/FixtureOption/index.d.ts +0 -1
- package/lib/organisms/LabwareDetailsWithCount/__tests__/LabwareDetailsWithCount.test.d.ts +1 -0
- package/lib/organisms/LabwareDetailsWithCount/index.d.ts +7 -0
- package/lib/organisms/LabwareInfoOverlay/__tests__/LabwareInfoOverlay.test.d.ts +1 -0
- package/lib/organisms/LabwareInfoOverlay/index.d.ts +12 -0
- package/lib/organisms/ProtocolDeck/index.d.ts +1 -0
- package/lib/organisms/Toolbox/index.d.ts +2 -0
- package/lib/organisms/index.d.ts +4 -3
- package/lib/primitives/Box.d.ts +3 -7
- package/lib/primitives/Btn.d.ts +2 -55
- package/lib/primitives/Buttons/NewPrimaryBtn.d.ts +8 -0
- package/lib/primitives/Buttons/NewSecondaryBtn.d.ts +8 -0
- package/lib/primitives/Flex.d.ts +3 -7
- package/lib/primitives/ForeignObject.d.ts +8 -18
- package/lib/primitives/Link.d.ts +3 -7
- package/lib/primitives/Svg.d.ts +4 -13
- package/lib/primitives/Text.d.ts +5 -7
- package/lib/primitives/index.d.ts +2 -0
- package/lib/primitives/style-props.d.ts +3 -3
- package/lib/primitives/types.d.ts +10 -3
- package/lib/src/alerts/alerts.module.css +103 -0
- package/lib/src/atoms/StyledText/placeholderstyledtext.module.css +26 -0
- package/lib/src/buttons/buttons.module.css +428 -0
- package/lib/src/controls/styles.module.css +103 -0
- package/lib/src/forms/Select.module.css +118 -0
- package/lib/src/forms/SelectField.module.css +16 -0
- package/lib/src/forms/forms.module.css +240 -0
- package/lib/src/hardware-sim/BaseDeck/basedeck.module.css +20 -0
- package/lib/src/hardware-sim/Deck/deck.module.css +54 -0
- package/lib/src/hardware-sim/Labware/labware.module.css +8 -0
- package/lib/src/hardware-sim/RobotCoordinateSpace/robotcoordinatespace.module.css +3 -0
- package/lib/src/icons/icon.module.css +10 -0
- package/lib/src/index.module.css +9 -0
- package/lib/src/instrument/PipetteSelect.module.css +14 -0
- package/lib/src/legacy-hardware-sim/LabwareNameOverlay.module.css +20 -0
- package/lib/src/legacy-hardware-sim/ModuleItem.module.css +98 -0
- package/lib/src/lists/lists.module.css +171 -0
- package/lib/src/modals/modals.module.css +275 -0
- package/lib/src/molecules/DeckInfoLabel/deckinfolabel.module.css +42 -0
- package/lib/src/molecules/ReleaseNotes/styles.module.css +66 -0
- package/lib/src/nav/SidePanel.module.css +34 -0
- package/lib/src/slotmap/styles.module.css +18 -0
- package/lib/src/structure/Pill.module.css +16 -0
- package/lib/src/structure/Splash.module.css +16 -0
- package/lib/src/structure/structure.module.css +114 -0
- package/lib/src/styles/borders.module.css +20 -0
- package/lib/src/styles/colors.module.css +58 -0
- package/lib/src/styles/global.css +179 -0
- package/lib/src/styles/index.module.css +8 -0
- package/lib/src/styles/typography.module.css +23 -0
- package/lib/src/tooltips/tooltips.module.css +72 -0
- package/lib/structure/Pill.d.ts +3 -3
- package/lib/style.css +1 -1
- package/lib/testing/utils/matchers.d.ts +0 -1
- package/lib/utils/__tests__/setRefs.test.d.ts +1 -0
- package/lib/utils/__tests__/truncateString.test.d.ts +1 -0
- package/lib/utils/humanizeLabwareType.d.ts +1 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/setRefs.d.ts +2 -0
- package/lib/{utils.d.ts → utils/truncateString.d.ts} +0 -2
- package/lib/utils/wellNameSplit.d.ts +1 -0
- package/package.json +21 -26
- package/src/index.module.css +9 -0
- package/src/styles/borders.module.css +20 -0
- package/src/styles/borders.ts +16 -0
- package/src/styles/colors.module.css +52 -0
- package/src/styles/colors.ts +58 -0
- package/src/styles/cursor.ts +12 -0
- package/src/styles/flexbox.ts +39 -0
- package/src/styles/global.css +180 -0
- package/src/styles/index.module.css +8 -0
- package/src/styles/index.ts +8 -0
- package/src/styles/layout.ts +31 -0
- package/src/styles/position.ts +5 -0
- package/src/styles/spacing.ts +11 -0
- package/src/styles/typography.module.css +23 -0
- package/src/styles/typography.ts +90 -0
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
- /package/lib/{__tests__/utils.test.d.ts → atoms/Slider/__tests__/Slider.test.d.ts} +0 -0
- /package/lib/{atoms/InputField/__tests__/InputField.test.d.ts → hardware-sim/DeckConfigurator/__tests__/VacuumModuleItem.test.d.ts} +0 -0
- /package/lib/hardware-sim/Labware/labwareInternals/{__tests__ → Wells/__tests__}/StrokedWells.test.d.ts +0 -0
- /package/lib/hardware-sim/Labware/labwareInternals/{__tests__ → Wells/__tests__}/WellLabels.test.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChangeEventHandler } from 'react';
|
|
2
2
|
export interface CheckboxProps {
|
|
3
3
|
/** checkbox is checked if value is true */
|
|
4
4
|
isChecked: boolean;
|
|
5
5
|
/** label text that describes the option */
|
|
6
6
|
labelText: string;
|
|
7
|
-
/** callback
|
|
8
|
-
|
|
7
|
+
/** callback change handler */
|
|
8
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
9
9
|
/** html tabindex property */
|
|
10
10
|
tabIndex?: number;
|
|
11
11
|
/** if disabled is true, mouse events will not trigger onClick callback */
|
|
@@ -16,5 +16,7 @@ export interface CheckboxFieldProps {
|
|
|
16
16
|
labelProps?: ComponentProps<'div'>;
|
|
17
17
|
/** if true, render indeterminate icon */
|
|
18
18
|
isIndeterminate?: boolean;
|
|
19
|
+
/** optional padding */
|
|
20
|
+
padding?: string;
|
|
19
21
|
}
|
|
20
22
|
export declare function CheckboxField(props: CheckboxFieldProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FixedTrashText(): JSX.Element;
|
|
@@ -12,7 +12,7 @@ export interface InlineNotificationProps extends StyleProps {
|
|
|
12
12
|
/** optional handler to show close button/clear alert */
|
|
13
13
|
onCloseClick?: (() => void) | MouseEventHandler<HTMLButtonElement>;
|
|
14
14
|
linkText?: string;
|
|
15
|
-
onLinkClick?: (() => void) | MouseEventHandler<
|
|
15
|
+
onLinkClick?: (() => void) | MouseEventHandler<HTMLAnchorElement>;
|
|
16
16
|
}
|
|
17
17
|
export declare function InlineNotification(props: InlineNotificationProps): JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { StyleProps } from '../../primitives';
|
|
3
3
|
export * from './ListButtonChildren/index';
|
|
4
|
-
type ListButtonType = 'noActive' | 'connected' | 'notConnected' | 'onColor';
|
|
4
|
+
type ListButtonType = 'noActive' | 'connected' | 'notConnected' | 'onColor' | 'error';
|
|
5
5
|
interface ListButtonProps extends StyleProps {
|
|
6
6
|
/** ListButton type */
|
|
7
7
|
type: ListButtonType;
|
|
@@ -11,7 +11,7 @@ interface ListButtonProps extends StyleProps {
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
/** ListButton onClick event */
|
|
13
13
|
onClick?: () => void;
|
|
14
|
-
/** optional data-testid value for
|
|
14
|
+
/** optional data-testid value for testing */
|
|
15
15
|
testId?: string;
|
|
16
16
|
}
|
|
17
17
|
export declare function ListButton(props: ListButtonProps): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Btn } from '../../primitives';
|
|
2
|
-
import type { ComponentProps
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
3
|
interface OverflowBtnProps extends ComponentProps<typeof Btn> {
|
|
4
4
|
fillColor?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const OverflowBtn: (
|
|
6
|
+
export declare const OverflowBtn: import("react").ForwardRefExoticComponent<Omit<OverflowBtnProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface SliderProps {
|
|
2
|
+
/** Value of slider as percentage */
|
|
3
|
+
value: number;
|
|
4
|
+
/** Function to do something with the value of the slider */
|
|
5
|
+
adjustValue: (value: number) => void;
|
|
6
|
+
/** Optional label for the slider */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Optional color for the unfilled (right) track. Defaults to blue-20. */
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
/** Gap between label and slider: "large" (8px) or "small" (4px). Defaults to "large". */
|
|
11
|
+
type?: 'small' | 'large';
|
|
12
|
+
}
|
|
13
|
+
export declare function Slider({ value, label, adjustValue, backgroundColor, type, }: SliderProps): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Text } from '../../primitives';
|
|
2
2
|
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
export interface LegacyProps extends ComponentProps<typeof Text> {
|
|
3
|
+
export interface LegacyProps extends Omit<ComponentProps<typeof Text>, 'as'> {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
+
as?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
|
6
|
+
forwardedAs?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
|
5
7
|
}
|
|
6
8
|
export declare const LegacyStyledText: (props: LegacyProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface PlaceholderStyledTextProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
color?: string;
|
|
5
|
+
desktopStyle?: string;
|
|
6
|
+
oddStyle?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated: NOTE: YOU SHOULD NOT BE USING THIS - THIS IS A TEMP COMPONENT
|
|
10
|
+
* USED FOR PROTOCOL LIBRARY TO NOT USE STYLED-COMPONENTS. USE THIS
|
|
11
|
+
* UNTIL WE MIGRATE STYLEDTEXT PROPERLY
|
|
12
|
+
*/
|
|
13
|
+
export declare const PlaceholderStyledText: (props: PlaceholderStyledTextProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -149,6 +149,7 @@ export interface Props extends ComponentProps<typeof Text> {
|
|
|
149
149
|
oddStyle?: ODDStyles;
|
|
150
150
|
desktopStyle?: HelixStyles;
|
|
151
151
|
children?: ReactNode;
|
|
152
|
+
htmlFor?: string;
|
|
152
153
|
}
|
|
153
154
|
export declare const ODD_STYLES: string[];
|
|
154
155
|
export declare const HELIX_STYLES: string[];
|
package/lib/atoms/Tag/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IconName } from '../../icons';
|
|
2
2
|
import type { LiquidIconProps } from '../../molecules/LiquidIcon';
|
|
3
|
-
export type TagType = 'default' | 'interactive' | 'branded' | 'onColor';
|
|
3
|
+
export type TagType = 'default' | 'interactive' | 'branded' | 'onColor' | 'flex';
|
|
4
4
|
export interface TagProps {
|
|
5
5
|
/** Tag content */
|
|
6
6
|
text: string;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentProps, FC } from 'react';
|
|
2
|
+
import type { StyleProps } from '../../primitives/types';
|
|
3
|
+
export declare const AlertPrimaryButton: FC<ComponentProps<'button'> & StyleProps>;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentProps, FC } from 'react';
|
|
2
|
+
import type { StyleProps } from '../../primitives/types';
|
|
3
|
+
export declare const AltPrimaryButton: FC<ComponentProps<'button'> & StyleProps>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { StyledComponent } from 'styled-components';
|
|
2
|
+
export declare const PrimaryButton: StyledComponent<any, any>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Btn } from '../../primitives';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
type ButtonType = 'primary' | 'secondary' | 'white';
|
|
4
|
+
type TertiaryButtonProps = Omit<ComponentProps<typeof Btn>, 'ref'> & {
|
|
5
|
+
buttonType: ButtonType;
|
|
6
|
+
};
|
|
7
|
+
export declare function TertiaryButton({ buttonType, ...props }: TertiaryButtonProps): JSX.Element;
|
|
8
|
+
export {};
|
package/lib/atoms/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export * from './Checkbox';
|
|
|
4
4
|
export * from './CheckboxField';
|
|
5
5
|
export * from './Chip';
|
|
6
6
|
export * from './Divider';
|
|
7
|
+
export * from './FixedTrashText';
|
|
7
8
|
export * from './InlineNotification';
|
|
8
|
-
export * from './InputField';
|
|
9
9
|
export * from './ListButton';
|
|
10
10
|
export * from './ListItem';
|
|
11
11
|
export * from './ListItem/ListItemChildren//ListItemDescriptor';
|
|
@@ -13,6 +13,7 @@ export * from './ListTable';
|
|
|
13
13
|
export * from './MenuList';
|
|
14
14
|
export * from './MenuList/MenuItem';
|
|
15
15
|
export * from './MenuList/OverflowBtn';
|
|
16
|
+
export * from './Slider';
|
|
16
17
|
export * from './Snackbar';
|
|
17
18
|
export * from './StepMeter';
|
|
18
19
|
export * from './StepMeter';
|
package/lib/buttons/Button.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export interface ButtonProps {
|
|
|
13
13
|
/** title attribute */
|
|
14
14
|
title?: string;
|
|
15
15
|
/** disabled attribute (setting disabled removes onClick) */
|
|
16
|
-
disabled?: boolean | null
|
|
16
|
+
disabled?: boolean | null;
|
|
17
17
|
/** use hover style even when not hovered */
|
|
18
|
-
hover?: boolean | null
|
|
18
|
+
hover?: boolean | null;
|
|
19
19
|
/** optional Icon name */
|
|
20
20
|
iconName?: IconName;
|
|
21
21
|
/** classes to apply */
|
|
@@ -31,7 +31,7 @@ export interface ButtonProps {
|
|
|
31
31
|
/** custom element or component to use instead of `<button>` */
|
|
32
32
|
Component?: ComponentType<any> | keyof JSX.IntrinsicElements;
|
|
33
33
|
/** handlers for HoverTooltipComponent */
|
|
34
|
-
hoverTooltipHandlers?: UseHoverTooltipTargetProps | null
|
|
34
|
+
hoverTooltipHandlers?: UseHoverTooltipTargetProps | null;
|
|
35
35
|
/** html tabindex property */
|
|
36
36
|
tabIndex?: number;
|
|
37
37
|
/** catch all prop for pass-through props */
|
|
@@ -2,7 +2,7 @@ import type { MouseEvent } from 'react';
|
|
|
2
2
|
import type { StyleProps } from '../primitives';
|
|
3
3
|
interface ToggleButtonProps extends StyleProps {
|
|
4
4
|
toggledOn: boolean;
|
|
5
|
-
label?: string
|
|
5
|
+
label?: string;
|
|
6
6
|
disabled?: boolean | null;
|
|
7
7
|
id?: string;
|
|
8
8
|
onClick?: (e: MouseEvent) => void;
|
|
@@ -10,13 +10,13 @@ export interface DeprecatedCheckboxFieldProps {
|
|
|
10
10
|
/** classes to apply */
|
|
11
11
|
className?: string;
|
|
12
12
|
/** classes to apply to inner label text div. Deprecated. use labelProps.className */
|
|
13
|
-
labelTextClassName?: string | null
|
|
13
|
+
labelTextClassName?: string | null;
|
|
14
14
|
/** name of field in form */
|
|
15
15
|
name?: string;
|
|
16
16
|
/** label text for checkbox */
|
|
17
17
|
label?: string;
|
|
18
18
|
/** if is included, checkbox will use error style. The content of the string is ignored. */
|
|
19
|
-
error?: string | null
|
|
19
|
+
error?: string | null;
|
|
20
20
|
/** checkbox is disabled if value is true */
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
/** html tabindex property */
|
package/lib/forms/FormGroup.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ export interface FormGroupProps {
|
|
|
6
6
|
/** form content */
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
/** classes to apply */
|
|
9
|
-
className?: string | null
|
|
9
|
+
className?: string | null;
|
|
10
10
|
/** if is included, FormGroup title will use error style. The content of the string is ignored. */
|
|
11
|
-
error?: string | null
|
|
11
|
+
error?: string | null;
|
|
12
12
|
/** enable disabled style. Overridden by truthy `error` */
|
|
13
|
-
disabled?: boolean | null
|
|
13
|
+
disabled?: boolean | null;
|
|
14
14
|
/** handlers for HoverTooltipComponent */
|
|
15
|
-
hoverTooltipHandlers?: HoverTooltipHandlers | null
|
|
15
|
+
hoverTooltipHandlers?: HoverTooltipHandlers | null;
|
|
16
16
|
/** boolean indicating formGroup used in pipette Settings slideout */
|
|
17
17
|
isPipetteSettingsSlideout?: boolean;
|
|
18
18
|
}
|
|
@@ -11,7 +11,7 @@ export interface LegacyInputFieldProps {
|
|
|
11
11
|
/** inline label text. DEPRECATED */
|
|
12
12
|
label?: string;
|
|
13
13
|
/** classes to apply to inner label text div */
|
|
14
|
-
labelTextClassName?: string | null
|
|
14
|
+
labelTextClassName?: string | null;
|
|
15
15
|
/** name of field in form */
|
|
16
16
|
name?: string;
|
|
17
17
|
/** optional ID of <input> element */
|
|
@@ -21,13 +21,13 @@ export interface LegacyInputFieldProps {
|
|
|
21
21
|
/** optional suffix component, appears to the right of input text */
|
|
22
22
|
units?: ReactNode;
|
|
23
23
|
/** current value of text in box, defaults to '' */
|
|
24
|
-
value?: string | null
|
|
24
|
+
value?: string | null;
|
|
25
25
|
/** if included, InputField will use error style and display error instead of caption */
|
|
26
|
-
error?: string | null
|
|
26
|
+
error?: string | null;
|
|
27
27
|
/** optional caption. hidden when `error` is given */
|
|
28
|
-
caption?: string | null
|
|
28
|
+
caption?: string | null;
|
|
29
29
|
/** appears to the right of the caption. Used for character limits, eg '0/45' */
|
|
30
|
-
secondaryCaption?: string | null
|
|
30
|
+
secondaryCaption?: string | null;
|
|
31
31
|
/** optional input type (default "text") */
|
|
32
32
|
type?: typeof INPUT_TYPE_TEXT | typeof INPUT_TYPE_PASSWORD;
|
|
33
33
|
/** mouse click handler */
|
|
@@ -18,9 +18,9 @@ export interface RadioGroupProps {
|
|
|
18
18
|
/** classes to apply to outer div */
|
|
19
19
|
className?: string;
|
|
20
20
|
/** classes to apply to inner label text div */
|
|
21
|
-
labelTextClassName?: string | null
|
|
21
|
+
labelTextClassName?: string | null;
|
|
22
22
|
/** if is included, RadioGroup will use error style. The content of the string is ignored. */
|
|
23
|
-
error?: string | null
|
|
23
|
+
error?: string | null;
|
|
24
24
|
/** 'name' attr of input */
|
|
25
25
|
name?: string;
|
|
26
26
|
/** optional prop to turn radio field blue when checked */
|
|
@@ -7,7 +7,7 @@ export interface ToggleFieldProps {
|
|
|
7
7
|
/** classes to apply */
|
|
8
8
|
className?: string;
|
|
9
9
|
/** classes to apply to inner label text div */
|
|
10
|
-
labelTextClassName?: string | null
|
|
10
|
+
labelTextClassName?: string | null;
|
|
11
11
|
/** name of field in form */
|
|
12
12
|
name?: string;
|
|
13
13
|
/** label text for toggled off */
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { Module } from '../Module';
|
|
2
2
|
import type { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
import type { DeckConfiguration, LabwareDefinition, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
|
|
4
|
-
import type {
|
|
5
|
-
import type { WellFill, WellGroup } from '../Labware';
|
|
4
|
+
import type { WellFillByName, WellGroup } from '../Labware';
|
|
6
5
|
export interface LabwareOnDeck {
|
|
7
6
|
labwareLocation: LabwareLocation;
|
|
8
7
|
definition: LabwareDefinition;
|
|
9
|
-
wellFill?:
|
|
8
|
+
wellFill?: WellFillByName;
|
|
10
9
|
missingTips?: WellGroup;
|
|
11
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Additional children to render alongside this labware.
|
|
12
|
+
* The SVG origin of these children is the front-left (-x,-y) corner of
|
|
13
|
+
* the slot that the labware is in.
|
|
14
|
+
*/
|
|
12
15
|
labwareChildren?: ReactNode;
|
|
13
16
|
onLabwareClick?: () => void;
|
|
14
17
|
highlight?: boolean;
|
|
@@ -18,10 +21,14 @@ export interface LabwareOnDeck {
|
|
|
18
21
|
export interface ModuleOnDeck {
|
|
19
22
|
moduleModel: ModuleModel;
|
|
20
23
|
moduleLocation: ModuleLocation;
|
|
21
|
-
|
|
22
|
-
nestedLabwareWellFill?:
|
|
24
|
+
nestedLabwareDefsBottomToTop: LabwareDefinition[];
|
|
25
|
+
nestedLabwareWellFill?: WellFillByName;
|
|
23
26
|
innerProps?: ComponentProps<typeof Module>['innerProps'];
|
|
24
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Additional children to render atop this module, after `nestedLabwareDef`.
|
|
29
|
+
* The SVG origin of these children is the front-left (-x,-y) corner of the slot that
|
|
30
|
+
* the module is in.
|
|
31
|
+
*/
|
|
25
32
|
moduleChildren?: ReactNode;
|
|
26
33
|
onLabwareClick?: () => void;
|
|
27
34
|
highlightLabware?: boolean;
|
|
@@ -31,14 +38,12 @@ export interface ModuleOnDeck {
|
|
|
31
38
|
}
|
|
32
39
|
export interface HopperLabwareProps {
|
|
33
40
|
hopperLabwareDef: LabwareDefinition | null;
|
|
34
|
-
hopperLabwareWellFill:
|
|
41
|
+
hopperLabwareWellFill: WellFillByName;
|
|
35
42
|
hopperOnLabwareClick: () => void;
|
|
36
43
|
hopperHighlightLabware: boolean;
|
|
37
44
|
hopperStacked: boolean;
|
|
38
45
|
}
|
|
39
|
-
export declare const STACKER_MODULE_Y_OFFSET = -6;
|
|
40
46
|
export declare const STACKER_HOPPER_LABWARE_X_OFFSET = 17.5;
|
|
41
|
-
export declare const STACKER_HOPPER_LABWARE_Y_OFFSET = 6;
|
|
42
47
|
export declare const STACKER_DECK_VIEW_BOX_EXPANSION = 220;
|
|
43
48
|
interface BaseDeckProps {
|
|
44
49
|
deckConfig: DeckConfiguration;
|
|
@@ -55,7 +60,10 @@ interface BaseDeckProps {
|
|
|
55
60
|
/** whether to make wrapping svg tag animatable via @react-spring/web, defaults to false */
|
|
56
61
|
animatedSVG?: boolean;
|
|
57
62
|
/** extra props to pass to svg tag */
|
|
58
|
-
|
|
63
|
+
/** NOTE: typing as any because running into some TS issues with React-spring,
|
|
64
|
+
* CSS Modules & Styled-components not playing together nicely
|
|
65
|
+
*/
|
|
66
|
+
svgProps?: any;
|
|
59
67
|
}
|
|
60
68
|
export declare function BaseDeck(props: BaseDeckProps): JSX.Element;
|
|
61
69
|
export {};
|
|
@@ -7,6 +7,8 @@ interface SingleSlotFixtureProps extends SVGProps<SVGGElement> {
|
|
|
7
7
|
fixtureBaseColor?: SVGProps<SVGPathElement>['fill'];
|
|
8
8
|
slotClipColor?: SVGProps<SVGPathElement>['stroke'];
|
|
9
9
|
showExpansion?: boolean;
|
|
10
|
+
stroke?: string;
|
|
11
|
+
showSlotClips?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export declare function SingleSlotFixture(props: SingleSlotFixtureProps): JSX.Element | null;
|
|
12
14
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function StackedBadge(): JSX.Element;
|
|
@@ -8,6 +8,7 @@ interface StagingAreaFixtureProps extends SVGProps<SVGGElement> {
|
|
|
8
8
|
fixtureBaseColor?: SVGProps<SVGPathElement>['fill'];
|
|
9
9
|
slotClipColor?: SVGProps<SVGPathElement>['stroke'];
|
|
10
10
|
showExtensions?: boolean;
|
|
11
|
+
showSlotClips?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare function StagingAreaFixture(props: StagingAreaFixtureProps): JSX.Element | null;
|
|
13
14
|
export {};
|
|
@@ -12,6 +12,7 @@ interface WasteChuteStagingAreaFixtureProps extends SVGProps<SVGGElement> {
|
|
|
12
12
|
showExtensions?: boolean;
|
|
13
13
|
showHighlight?: boolean;
|
|
14
14
|
tagInfo?: DeckLabelProps[];
|
|
15
|
+
showSlotClips?: boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare function WasteChuteStagingAreaFixture(props: WasteChuteStagingAreaFixtureProps): JSX.Element | null;
|
|
17
18
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import type { DeckConfiguration, LabwareDefinition, LabwareLocation, LoadedLabware, LoadedModule, RobotType } from '@opentrons/shared-data';
|
|
2
|
+
import type { LabwareOnDeck, ModuleOnDeck } from '../../hardware-sim/BaseDeck';
|
|
3
3
|
import type { StyleProps } from '../../primitives';
|
|
4
4
|
interface MoveLabwareOnDeckProps extends StyleProps {
|
|
5
5
|
robotType: RobotType;
|
|
@@ -8,9 +8,10 @@ interface MoveLabwareOnDeckProps extends StyleProps {
|
|
|
8
8
|
finalLabwareLocation: LabwareLocation;
|
|
9
9
|
loadedModules: LoadedModule[];
|
|
10
10
|
loadedLabware: LoadedLabware[];
|
|
11
|
+
modulesOnDeck?: ModuleOnDeck[];
|
|
12
|
+
labwareOnDeck?: LabwareOnDeck[];
|
|
11
13
|
labwareDefinitions: LabwareDefinition[];
|
|
12
14
|
deckConfig: DeckConfiguration;
|
|
13
|
-
backgroundItems?: ReactNode;
|
|
14
15
|
deckFill?: string;
|
|
15
16
|
}
|
|
16
17
|
export declare function MoveLabwareOnDeck(props: MoveLabwareOnDeckProps): JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { StyleProps } from '../../primitives';
|
|
3
|
+
export type PositionType = 'absolute' | 'relative' | 'fixed';
|
|
3
4
|
export interface RobotCoordsForeignDivProps {
|
|
4
5
|
width?: string | number;
|
|
5
6
|
height?: string | number;
|
|
@@ -7,10 +8,10 @@ export interface RobotCoordsForeignDivProps {
|
|
|
7
8
|
y?: string | number;
|
|
8
9
|
children?: ReactNode;
|
|
9
10
|
outerProps?: any;
|
|
10
|
-
innerDivProps?:
|
|
11
|
+
innerDivProps?: StyleProps;
|
|
12
|
+
innerDivEvents?: HTMLAttributes<HTMLDivElement>;
|
|
11
13
|
transformWithSVG?: boolean;
|
|
12
14
|
extraTransform?: string;
|
|
13
|
-
/** optional data-testid to test foreignObjects in cypress */
|
|
14
15
|
dataTestId?: string;
|
|
15
16
|
}
|
|
16
|
-
export declare const RobotCoordsForeignDiv: (
|
|
17
|
+
export declare const RobotCoordsForeignDiv: ({ children, x, y, height, width, outerProps, innerDivProps, transformWithSVG, extraTransform, dataTestId, innerDivEvents, }: RobotCoordsForeignDivProps) => JSX.Element;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { StyleProps } from '../../primitives/types';
|
|
3
|
+
export type FlexDirection = 'column' | 'row';
|
|
3
4
|
export interface RobotCoordsForeignObjectProps {
|
|
4
5
|
width: string | number;
|
|
5
6
|
height: string | number;
|
|
6
7
|
x: string | number;
|
|
7
8
|
y: string | number;
|
|
8
9
|
children?: ReactNode;
|
|
9
|
-
foreignObjectProps?:
|
|
10
|
-
|
|
10
|
+
foreignObjectProps?: StyleProps;
|
|
11
|
+
foreignObjectEvents?: HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
flexProps?: StyleProps;
|
|
13
|
+
flexEvents?: HTMLAttributes<HTMLDivElement>;
|
|
11
14
|
}
|
|
12
|
-
export declare const RobotCoordsForeignObject: (
|
|
15
|
+
export declare const RobotCoordsForeignObject: ({ children, x, y, height, width, foreignObjectEvents, foreignObjectProps, flexProps, flexEvents, }: RobotCoordsForeignObjectProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { AddressableArea, DeckDefinition } from '@opentrons/shared-data';
|
|
3
|
-
import type { StyleProps } from '../../primitives';
|
|
4
3
|
export interface RobotWorkSpaceRenderProps {
|
|
5
4
|
addressableAreasById: {
|
|
6
5
|
[addressableAreaId: string]: AddressableArea;
|
|
@@ -25,7 +24,7 @@ type BaseProps = {
|
|
|
25
24
|
*/
|
|
26
25
|
viewBox: string;
|
|
27
26
|
});
|
|
28
|
-
export type RobotWorkSpaceProps = BaseProps &
|
|
27
|
+
export type RobotWorkSpaceProps = BaseProps & CSSProperties;
|
|
29
28
|
/**
|
|
30
29
|
* A wrapper for rendering the robot deck, labware, etc. from a top-down perspective.
|
|
31
30
|
*
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface VacuumModuleItemProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureIdsWithFakes;
|
|
6
|
+
addressableAreaId: AddressableAreaNamesWithFakes;
|
|
7
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureIdsWithFakes, addressableAreaId: AddressableAreaNamesWithFakes) => void;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function VacuumModuleItem(props: VacuumModuleItemProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -8,6 +8,7 @@ export declare const COLUMN_1_SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
|
|
|
8
8
|
export declare const COLUMN_DEFAULT_SINGLE_SLOT_FIXTURE_WIDTH = 159;
|
|
9
9
|
export declare const LARGE_SINGLE_ITEM_SLOT_WIDTH = 250;
|
|
10
10
|
export declare const THERMOCYCLER_FIXTURE_WIDTH = 243.5;
|
|
11
|
+
export declare const VACUUM_MODULE_V1_FIXTURE_WIDTH = 322;
|
|
11
12
|
export declare const COLUMN_1_X_ADJUSTMENT = -100;
|
|
12
13
|
export declare const COLUMN_DEFAULT_X_ADJUSTMENT = -15.5;
|
|
13
14
|
export declare const STACKER_X_ADJUSTMENT = -12.5;
|
|
@@ -15,3 +16,7 @@ export declare const Y_ADJUSTMENT = -8;
|
|
|
15
16
|
export declare const CONFIG_STYLE_READ_ONLY: import("styled-components").FlattenSimpleInterpolation;
|
|
16
17
|
export declare const CONFIG_STYLE_EDITABLE: import("styled-components").FlattenSimpleInterpolation;
|
|
17
18
|
export declare const CONFIG_STYLE_SELECTED: import("styled-components").FlattenSimpleInterpolation;
|
|
19
|
+
export declare const WASTE_CHUTE_WIDTH = 130;
|
|
20
|
+
export declare const WASTE_CHUTE_HEIGHT = 138;
|
|
21
|
+
export declare const WASTE_CHUTE_X = 322;
|
|
22
|
+
export declare const WASTE_CHUTE_Y = -51;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
import type { LabwareDefinition } from '@opentrons/shared-data';
|
|
3
|
-
import type { HighlightedWellLabels,
|
|
3
|
+
import type { HighlightedWellLabels, WellFillByName, WellMouseEvent, WellStrokeByName } from './labwareInternals/Wells';
|
|
4
4
|
export interface LabwareProps {
|
|
5
5
|
/** Labware definition to render */
|
|
6
6
|
definition: LabwareDefinition;
|
|
@@ -14,9 +14,9 @@ export interface LabwareProps {
|
|
|
14
14
|
/** option to highlight well labels with specified color */
|
|
15
15
|
highlightedWellLabels?: HighlightedWellLabels;
|
|
16
16
|
/** CSS color to fill specified wells */
|
|
17
|
-
wellFill?:
|
|
17
|
+
wellFill?: WellFillByName;
|
|
18
18
|
/** CSS color to stroke specified wells */
|
|
19
|
-
wellStroke?:
|
|
19
|
+
wellStroke?: WellStrokeByName;
|
|
20
20
|
/** adds thicker blue border with blur to labware */
|
|
21
21
|
highlight?: boolean;
|
|
22
22
|
/** Optional callback, called with WellMouseEvent args onMouseEnter */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpentronsUniversalFlatAdapterTypeB(): JSX.Element;
|
|
@@ -5,23 +5,31 @@ import { OpentronsAutoclavableDeckRiser } from './OpentronsAutoclavableDeckRiser
|
|
|
5
5
|
import { OpentronsFlex96TiprackAdapter } from './OpentronsFlex96TiprackAdapter';
|
|
6
6
|
import { OpentronsToughPCRAutoSealingLid } from './OpentronsToughPCRAutoSealingLid';
|
|
7
7
|
import { OpentronsUniversalFlatAdapter } from './OpentronsUniversalFlatAdapter';
|
|
8
|
+
import { OpentronsUniversalFlatAdapterTypeB } from './OpentronsUniversalFlatAdapterTypeB';
|
|
8
9
|
import type { LabwareDefinition } from '@opentrons/shared-data';
|
|
9
|
-
declare const
|
|
10
|
+
declare const CUSTOM_SVG_LOADNAME_PATHS: {
|
|
10
11
|
opentrons_96_deep_well_adapter: typeof Opentrons96DeepWellAdapter;
|
|
11
12
|
opentrons_96_flat_bottom_adapter: typeof Opentrons96FlatBottomAdapter;
|
|
12
13
|
opentrons_aluminum_flat_bottom_plate: typeof OpentronsAluminumFlatBottomPlate;
|
|
13
14
|
opentrons_flex_96_tiprack_adapter: typeof OpentronsFlex96TiprackAdapter;
|
|
14
15
|
opentrons_universal_flat_adapter: typeof OpentronsUniversalFlatAdapter;
|
|
16
|
+
opentrons_universal_flat_adapter_type_b: typeof OpentronsUniversalFlatAdapterTypeB;
|
|
15
17
|
opentrons_tough_pcr_auto_sealing_lid: typeof OpentronsToughPCRAutoSealingLid;
|
|
16
18
|
opentrons_flex_deck_riser: typeof OpentronsAutoclavableDeckRiser;
|
|
17
19
|
};
|
|
18
|
-
export type LabwareAdapterLoadName = keyof typeof
|
|
19
|
-
export declare const
|
|
20
|
+
export type LabwareAdapterLoadName = keyof typeof CUSTOM_SVG_LOADNAME_PATHS;
|
|
21
|
+
export declare const customSVGLoadNames: string[];
|
|
20
22
|
export interface LabwareAdapterProps {
|
|
21
23
|
labwareLoadName: LabwareAdapterLoadName;
|
|
24
|
+
lidDimensions: {
|
|
25
|
+
xDimension: number;
|
|
26
|
+
yDimension: number;
|
|
27
|
+
zDimension: number;
|
|
28
|
+
} | null;
|
|
22
29
|
definition?: LabwareDefinition;
|
|
23
30
|
highlight?: boolean;
|
|
24
31
|
highlightShadow?: boolean;
|
|
32
|
+
isLid?: boolean;
|
|
25
33
|
}
|
|
26
34
|
export declare const LabwareAdapter: (props: LabwareAdapterProps) => JSX.Element | null;
|
|
27
35
|
export {};
|