@opentrons/components 0.1.6-alpha.7 → 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.
Files changed (200) hide show
  1. package/lib/alerts/AlertItem.d.ts +1 -1
  2. package/lib/atoms/Checkbox/index.d.ts +24 -0
  3. package/lib/atoms/CheckboxField/index.d.ts +1 -1
  4. package/lib/atoms/Chip/index.d.ts +1 -1
  5. package/lib/atoms/Divider/index.d.ts +5 -0
  6. package/lib/atoms/InputField/index.d.ts +68 -0
  7. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
  8. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
  9. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
  10. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
  11. package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
  12. package/lib/atoms/ListButton/index.d.ts +11 -0
  13. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
  14. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
  15. package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
  16. package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
  17. package/lib/atoms/ListItem/index.d.ts +14 -0
  18. package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
  19. package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
  20. package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
  21. package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
  22. package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
  23. package/lib/atoms/MenuList/index.d.ts +8 -0
  24. package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
  25. package/lib/atoms/Snackbar/index.d.ts +7 -0
  26. package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
  27. package/lib/atoms/StyledText/StyledText.d.ts +154 -0
  28. package/lib/atoms/StyledText/index.d.ts +2 -6
  29. package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
  30. package/lib/atoms/Tag/index.d.ts +13 -0
  31. package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
  32. package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
  33. package/lib/atoms/Toast/index.d.ts +25 -0
  34. package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
  35. package/lib/atoms/ToggleGroup/index.d.ts +9 -0
  36. package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  37. package/lib/atoms/Tooltip/index.d.ts +11 -0
  38. package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
  39. package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
  40. package/lib/atoms/buttons/LargeButton.d.ts +17 -0
  41. package/lib/atoms/buttons/RadioButton.d.ts +21 -0
  42. package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +1 -0
  43. package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
  44. package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
  45. package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
  46. package/lib/atoms/buttons/index.d.ts +3 -0
  47. package/lib/atoms/index.d.ts +14 -0
  48. package/lib/buttons/Button.d.ts +3 -2
  49. package/lib/controls/ControlInfo.d.ts +1 -1
  50. package/lib/controls/LabeledButton.d.ts +1 -1
  51. package/lib/controls/LabeledCheckbox.d.ts +1 -1
  52. package/lib/controls/LabeledControl.d.ts +1 -1
  53. package/lib/controls/LabeledRadioGroup.d.ts +1 -1
  54. package/lib/controls/LabeledSelect.d.ts +1 -1
  55. package/lib/controls/LabeledToggle.d.ts +1 -1
  56. package/lib/controls/StackedLabeledControl.d.ts +1 -1
  57. package/lib/forms/DeprecatedCheckboxField.d.ts +1 -1
  58. package/lib/forms/DropdownField.d.ts +3 -3
  59. package/lib/forms/FormGroup.d.ts +1 -1
  60. package/lib/forms/{InputField.d.ts → LegacyInputField.d.ts} +4 -4
  61. package/lib/forms/RadioGroup.d.ts +1 -1
  62. package/lib/forms/Select.d.ts +1 -1
  63. package/lib/forms/SelectField.d.ts +1 -1
  64. package/lib/forms/ToggleField.d.ts +1 -1
  65. package/lib/forms/index.d.ts +1 -1
  66. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +9 -2
  67. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +1 -1
  68. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +1 -1
  69. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +1 -1
  70. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -1
  71. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -3
  72. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -1
  73. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +1 -2
  74. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
  75. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
  76. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
  77. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
  78. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
  79. package/lib/hardware-sim/DeckConfigurator/index.d.ts +1 -1
  80. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +1 -1
  81. package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
  82. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
  83. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
  84. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +8 -0
  85. package/lib/hardware-sim/Labware/LabwareRender.d.ts +6 -2
  86. package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
  87. package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
  88. package/lib/hardware-sim/Labware/index.d.ts +2 -0
  89. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +1 -0
  90. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +4 -0
  91. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
  92. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +9 -1
  93. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +2 -0
  94. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +1 -1
  95. package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
  96. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +1 -0
  97. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +1 -1
  98. package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
  99. package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
  100. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +1 -1
  101. package/lib/hardware-sim/Module/index.d.ts +2 -2
  102. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +1 -1
  103. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +2 -2
  104. package/lib/hardware-sim/ProtocolDeck/index.d.ts +4 -2
  105. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +1 -0
  106. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
  107. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +3 -2
  108. package/lib/hardware-sim/utils.d.ts +1 -1
  109. package/lib/helix-design-system/colors.d.ts +11 -0
  110. package/lib/helix-design-system/index.d.ts +2 -0
  111. package/lib/helix-design-system/product/index.d.ts +1 -0
  112. package/lib/helix-design-system/product/typography.d.ts +79 -0
  113. package/lib/helix-design-system/style.d.ts +1 -0
  114. package/lib/hooks/index.d.ts +1 -0
  115. package/lib/hooks/useConditionalConfirm.d.ts +3 -2
  116. package/lib/hooks/useDrag.d.ts +1 -1
  117. package/lib/hooks/useLongPress.d.ts +1 -1
  118. package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
  119. package/lib/hooks/useSelectDeckLocation/index.d.ts +1 -2
  120. package/lib/hooks/useSwipe.d.ts +1 -1
  121. package/lib/icons/Icon.d.ts +1 -1
  122. package/lib/icons/ModuleIcon.d.ts +2 -2
  123. package/lib/icons/icon-data.d.ts +4 -586
  124. package/lib/index.d.ts +1 -1
  125. package/lib/{index.mjs → index.js} +8783 -6217
  126. package/lib/instrument/InstrumentDiagram.d.ts +1 -1
  127. package/lib/instrument/InstrumentInfo.d.ts +1 -1
  128. package/lib/lists/SidePanelGroup.d.ts +1 -1
  129. package/lib/lists/index.d.ts +0 -1
  130. package/lib/modals/AlertModal.d.ts +2 -1
  131. package/lib/modals/ContinueModal.d.ts +1 -0
  132. package/lib/modals/LegacyModal.d.ts +24 -0
  133. package/lib/modals/Modal.d.ts +21 -20
  134. package/lib/modals/ModalHeader.d.ts +13 -0
  135. package/lib/modals/ModalShell.d.ts +11 -2
  136. package/lib/modals/Overlay.d.ts +1 -1
  137. package/lib/modals/SpinnerModal.d.ts +1 -0
  138. package/lib/modals/SpinnerModalPage.d.ts +2 -1
  139. package/lib/modals/__tests__/Modal.test.d.ts +1 -0
  140. package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
  141. package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
  142. package/lib/modals/index.d.ts +5 -5
  143. package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
  144. package/lib/molecules/Banner/index.d.ts +23 -0
  145. package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
  146. package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
  147. package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
  148. package/lib/molecules/DeckLabel/index.d.ts +10 -0
  149. package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
  150. package/lib/molecules/DropdownMenu/index.d.ts +41 -0
  151. package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
  152. package/lib/molecules/InfoScreen/index.d.ts +6 -0
  153. package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
  154. package/lib/molecules/LiquidIcon/index.d.ts +9 -0
  155. package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
  156. package/lib/molecules/Tabs/index.d.ts +10 -0
  157. package/lib/molecules/index.d.ts +7 -3
  158. package/lib/nav/SidePanel.d.ts +1 -1
  159. package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
  160. package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
  161. package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
  162. package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
  163. package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
  164. package/lib/organisms/Toolbox/index.d.ts +20 -0
  165. package/lib/organisms/index.d.ts +3 -0
  166. package/lib/primitives/Btn.d.ts +1 -1
  167. package/lib/structure/Card.d.ts +1 -1
  168. package/lib/structure/LabeledValue.d.ts +1 -1
  169. package/lib/structure/Pill.d.ts +1 -1
  170. package/lib/structure/TitleBar.d.ts +2 -2
  171. package/lib/structure/index.d.ts +0 -1
  172. package/lib/style.css +3786 -0
  173. package/lib/styles/cursor.d.ts +10 -0
  174. package/lib/styles/flexbox.d.ts +5 -0
  175. package/lib/styles/index.d.ts +1 -0
  176. package/lib/styles/layout.d.ts +1 -0
  177. package/lib/testing/utils/renderWithProviders.d.ts +2 -3
  178. package/lib/tooltips/DeprecatedTooltip.d.ts +1 -1
  179. package/lib/tooltips/{Tooltip.d.ts → LegacyTooltip.d.ts} +2 -2
  180. package/lib/tooltips/index.d.ts +1 -1
  181. package/lib/ui-style-constants/responsiveness.d.ts +1 -0
  182. package/lib/ui-style-constants/typography.d.ts +1 -0
  183. package/package.json +5 -7
  184. package/tsconfig.json +5 -2
  185. package/{vite.config.ts → vite.config.mts} +19 -6
  186. package/lib/lists/ListItem.d.ts +0 -37
  187. package/lib/modals/BaseModal.d.ts +0 -26
  188. package/lib/modals/ModalPage.d.ts +0 -16
  189. package/lib/molecules/LocationIcon/index.d.ts +0 -15
  190. package/lib/molecules/ParametersTable/InfoScreen.d.ts +0 -6
  191. package/lib/molecules/RoundTab.d.ts +0 -8
  192. package/lib/structure/PageTabs.d.ts +0 -11
  193. package/lib/tabbedNav/NavTab.d.ts +0 -25
  194. package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
  195. package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
  196. package/lib/tabbedNav/index.d.ts +0 -3
  197. /package/lib/atoms/{StyledText/__tests__/StyledText.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  198. /package/lib/{modals/__tests__/BaseModal.test.d.ts → atoms/InputField/__tests__/InputField.test.d.ts} +0 -0
  199. /package/lib/{molecules/LocationIcon/__tests__/LocationIcon.test.d.ts → atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts} +0 -0
  200. /package/lib/{molecules/ParametersTable/__tests__/InfoScreen.test.d.ts → atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { ButtonProps } from '../buttons';
3
3
  export interface LabeledButtonProps {
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface LabeledCheckboxProps {
3
3
  label: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface LabeledControlProps {
3
3
  label: string;
4
4
  control: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { RadioGroupProps } from '../forms';
3
3
  export interface LabeledRadioGroupProps extends RadioGroupProps {
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { DropdownFieldProps } from '../forms';
3
3
  export interface LabeledSelectProps extends DropdownFieldProps {
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface LabeledToggleProps {
3
3
  label: string;
4
4
  toggledOn: boolean;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface StackedLabeledControlProps {
3
3
  label: string;
4
4
  control: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  /**
3
3
  * Checkbox Field Properties.
4
4
  */
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- export interface DropdownOption {
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 = DropdownOption[];
7
+ export type Options = LegacyDropdownOption[];
8
8
  export interface DropdownFieldProps {
9
9
  /** change handler */
10
10
  onChange: React.ChangeEventHandler<HTMLSelectElement>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { HoverTooltipHandlers } from '../tooltips';
3
3
  export interface FormGroupProps {
4
4
  /** text label */
@@ -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 InputFieldProps {
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` in App/atoms instead
49
+ * @deprecated Use `InputField`
50
50
  */
51
- export declare function InputField(props: InputFieldProps): JSX.Element;
51
+ export declare function LegacyInputField(props: LegacyInputFieldProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface RadioOption {
3
3
  name: string;
4
4
  value: string;
@@ -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';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { SelectProps } from './Select';
3
3
  import type { ActionMeta } from 'react-select';
4
4
  import type { SelectOption } from '.';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface ToggleFieldProps {
3
3
  /** change handler */
4
4
  onChange: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
@@ -1,7 +1,7 @@
1
1
  export * from './DeprecatedCheckboxField';
2
2
  export * from './DropdownField';
3
3
  export * from './FormGroup';
4
- export * from './InputField';
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,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { CutoutId, DeckDefinition, ModuleType } from '@opentrons/shared-data';
3
3
  interface SingleSlotFixtureProps extends React.SVGProps<SVGGElement> {
4
4
  cutoutId: CutoutId;
@@ -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, LoadedLabware } from '@opentrons/shared-data';
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,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import { Box } from '../../primitives';
3
3
  export interface RobotCoordsForeignDivProps {
4
4
  width?: string | number;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import { Flex, ForeignObject } from '../../primitives';
3
3
  export interface RobotCoordsForeignObjectProps {
4
4
  width: string | number;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface RobotCoordsTextProps extends React.ComponentProps<'text'> {
3
3
  x: number;
4
4
  y: number;
@@ -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 {};
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { CutoutFixtureId, CutoutId, DeckConfiguration } from '@opentrons/shared-data';
3
3
  interface DeckConfiguratorProps {
4
4
  deckConfig: DeckConfiguration;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { DeckSlot, RobotType } from '@opentrons/shared-data';
3
3
  interface LegacyDeckSlotLocationProps extends React.SVGProps<SVGGElement> {
4
4
  robotType: RobotType;
@@ -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';
@@ -1,3 +1,5 @@
1
1
  export * from './labwareInternals/index';
2
2
  export * from './LabwareRender';
3
+ export * from './LabwareStackRender';
4
+ export * from './Labware';
3
5
  export * from './labwareInternals/types';
@@ -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';
@@ -5,3 +5,4 @@ export * from './WellLabels';
5
5
  export * from './FilledWells';
6
6
  export * from './LabwareOutline';
7
7
  export * from './Well';
8
+ export * from './LabwareWellLabels';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface WellMouseEvent {
3
3
  wellName: string;
4
4
  event: React.MouseEvent;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface ModuleTagProps {
3
3
  x: number;
4
4
  y: number;
@@ -0,0 +1 @@
1
+ export declare function PlateReader(): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ThermocyclerModuleModel } from '@opentrons/shared-data';
1
+ import type { ThermocyclerModuleModel } from '@opentrons/shared-data';
2
2
  export interface ThermocyclerVizProps {
3
3
  lidMotorState: 'open' | 'closed' | 'unknown';
4
4
  blockTargetTemp?: number | null;
@@ -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,4 +1,4 @@
1
- import { LabwareDefinition2, PipetteName } from '@opentrons/shared-data';
1
+ import type { LabwareDefinition2, PipetteName } from '@opentrons/shared-data';
2
2
  interface PipetteRenderProps {
3
3
  labwareDef: LabwareDefinition2;
4
4
  pipetteName: PipetteName;
@@ -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,2 +1,3 @@
1
1
  export * from './getLabwareInSlots';
2
2
  export * from './getStandardDeckViewLayerBlockList';
3
+ export * from './getLabwareInfoByLiquidId';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import { Svg } from '../../primitives';
3
3
  interface RobotCoordinateSpaceProps extends React.ComponentProps<typeof Svg> {
4
4
  animated?: boolean;
@@ -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
- children?: (props: RobotCoordinateSpaceWithRefRenderProps) => React.ReactNode;
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[][];