@opentrons/components 0.1.7-alpha.1 → 0.2.0-alpha.0

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 (251) hide show
  1. package/cssModuleSideEffect.ts +22 -0
  2. package/lib/assets/localization/en/index.d.ts +12 -0
  3. package/lib/assets/localization/index.d.ts +12 -0
  4. package/lib/atoms/AnimationVideo/index.d.ts +13 -0
  5. package/lib/atoms/InlineNotification/index.d.ts +1 -1
  6. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +0 -1
  7. package/lib/atoms/StyledText/PlaceholderStyledText.d.ts +14 -0
  8. package/lib/atoms/StyledText/index.d.ts +1 -0
  9. package/lib/atoms/buttons/BasicButton.d.ts +12 -0
  10. package/lib/atoms/buttons/index.d.ts +1 -0
  11. package/lib/atoms/index.d.ts +1 -0
  12. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +10 -8
  13. package/lib/hardware-sim/Deck/FlexTrash.d.ts +4 -1
  14. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +3 -2
  15. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +6 -5
  16. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +8 -5
  17. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +11 -1
  18. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +30 -14
  19. package/lib/hardware-sim/Deck/__tests__/resolveLabwareLocation.test.d.ts +1 -0
  20. package/lib/hardware-sim/Deck/resolveLabwareLocation.d.ts +20 -0
  21. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderItem.d.ts +11 -0
  22. package/lib/hardware-sim/DeckConfigurator/EmptyConfigItem.d.ts +11 -0
  23. package/lib/hardware-sim/DeckConfigurator/FlexStackerItem.d.ts +12 -0
  24. package/lib/hardware-sim/DeckConfigurator/HeaterShakerItem.d.ts +11 -0
  25. package/lib/hardware-sim/DeckConfigurator/MagneticBlockItem.d.ts +12 -0
  26. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigItem.d.ts +11 -0
  27. package/lib/hardware-sim/DeckConfigurator/{StaticFixture.d.ts → StaticItem.d.ts} +1 -1
  28. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleItem.d.ts +11 -0
  29. package/lib/hardware-sim/DeckConfigurator/ThermocyclerItem.d.ts +11 -0
  30. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigItem.d.ts +11 -0
  31. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigItem.d.ts +11 -0
  32. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +5 -8
  33. package/lib/hardware-sim/DeckConfigurator/index.d.ts +4 -3
  34. package/lib/hardware-sim/Labware/CalibrationBlockRender.d.ts +15 -0
  35. package/lib/hardware-sim/Labware/Labware.d.ts +7 -8
  36. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +2 -2
  37. package/lib/hardware-sim/Labware/LabwareRender.d.ts +46 -5
  38. package/lib/hardware-sim/Labware/index.d.ts +1 -0
  39. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +3 -4
  40. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +20 -9
  41. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +2 -2
  42. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +2 -2
  43. package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +2 -2
  44. package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +2 -2
  45. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +1 -2
  46. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +2 -2
  47. package/lib/hardware-sim/Module/index.d.ts +24 -2
  48. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +2 -2
  49. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +5 -3
  50. package/lib/hocs/withStyleProps.d.ts +26 -0
  51. package/lib/hooks/useConditionalConfirm.d.ts +4 -0
  52. package/lib/icons/Icon.d.ts +7 -7
  53. package/lib/icons/ModuleIcon.d.ts +4 -3
  54. package/lib/instrument/index.d.ts +0 -2
  55. package/lib/legacy-hardware-sim/index.d.ts +0 -1
  56. package/lib/lists/index.d.ts +0 -1
  57. package/lib/molecules/CustomizeExpandButton/__tests__/CustomizeExpandButton.test.d.ts +1 -0
  58. package/lib/molecules/CustomizeExpandButton/index.d.ts +29 -0
  59. package/lib/molecules/DeckInfoLabel/index.d.ts +8 -16
  60. package/lib/molecules/index.d.ts +2 -1
  61. package/lib/organisms/CommandText/index.d.ts +2 -2
  62. package/lib/organisms/CommandText/useCommandTextString/index.d.ts +2 -2
  63. package/lib/organisms/CommandText/useCommandTextString/utils/getLabwareDefinitionsFromCommands.d.ts +2 -2
  64. package/lib/organisms/CommandText/useCommandTextString/utils/getLabwareLocation.d.ts +3 -3
  65. package/lib/organisms/CommandText/useCommandTextString/utils/getLabwareName.d.ts +2 -2
  66. package/lib/organisms/FixtureOption/index.d.ts +2 -2
  67. package/lib/organisms/ProtocolDeck/index.d.ts +10 -0
  68. package/lib/organisms/ProtocolTimelineScrubber/CommandItem.d.ts +2 -2
  69. package/lib/organisms/ProtocolTimelineScrubber/utils.d.ts +2 -2
  70. package/lib/organisms/index.d.ts +1 -0
  71. package/lib/primitives/ForeignObject.d.ts +8 -18
  72. package/lib/primitives/style-props.d.ts +1 -1
  73. package/lib/structure/index.d.ts +2 -3
  74. package/package.json +6 -3
  75. package/src/alerts/alerts.module.css +2 -2
  76. package/src/assets/localization/en/deck_configuration.json +12 -0
  77. package/src/assets/localization/en/index.ts +2 -0
  78. package/src/assets/localization/en/protocol_command_text.json +1 -1
  79. package/src/atoms/AnimationVideo/__tests__/AnimationVideo.test.tsx +40 -0
  80. package/src/atoms/AnimationVideo/index.tsx +44 -0
  81. package/src/atoms/CheckboxField/__tests__/CheckboxField.test.tsx +0 -3
  82. package/src/atoms/CheckboxField/index.tsx +1 -1
  83. package/src/atoms/InlineNotification/index.tsx +86 -70
  84. package/src/atoms/ListButton/ListButton.stories.tsx +21 -7
  85. package/src/atoms/ListButton/ListButtonChildren/index.ts +0 -1
  86. package/src/atoms/ListItem/ListItemChildren/ListItemDescriptor.tsx +2 -2
  87. package/src/atoms/MenuList/OverflowBtn.tsx +39 -41
  88. package/src/atoms/Snackbar/Snackbar.stories.tsx +59 -23
  89. package/src/atoms/Snackbar/index.tsx +48 -38
  90. package/src/atoms/StyledText/PlaceholderStyledText.tsx +46 -0
  91. package/src/atoms/StyledText/index.ts +1 -0
  92. package/src/atoms/StyledText/placeholderstyledtext.module.css +25 -0
  93. package/src/atoms/buttons/BasicButton.tsx +100 -0
  94. package/src/atoms/buttons/SecondaryButton.tsx +5 -2
  95. package/src/atoms/buttons/__tests__/BasicButton.test.tsx +87 -0
  96. package/src/atoms/buttons/buttons.stories.tsx +91 -55
  97. package/src/atoms/buttons/index.ts +1 -0
  98. package/src/atoms/index.ts +1 -0
  99. package/src/buttons/buttons.module.css +92 -92
  100. package/src/controls/styles.module.css +15 -15
  101. package/src/forms/Select.module.css +23 -23
  102. package/src/forms/forms.module.css +38 -37
  103. package/src/hardware-sim/BaseDeck/BaseDeck.stories.tsx +7 -7
  104. package/src/hardware-sim/BaseDeck/BaseDeck.tsx +98 -61
  105. package/src/hardware-sim/BaseDeck/WasteChuteFixture.tsx +22 -28
  106. package/src/hardware-sim/BaseDeck/basedeck.module.css +20 -0
  107. package/src/hardware-sim/Deck/FlexTrash.tsx +50 -30
  108. package/src/hardware-sim/Deck/MoveLabwareOnDeck.stories.tsx +2 -2
  109. package/src/hardware-sim/Deck/MoveLabwareOnDeck.tsx +122 -156
  110. package/src/hardware-sim/Deck/RobotCoordsForeignDiv.tsx +35 -27
  111. package/src/hardware-sim/Deck/RobotCoordsForeignObject.tsx +32 -29
  112. package/src/hardware-sim/Deck/RobotCoordsText.tsx +12 -11
  113. package/src/hardware-sim/Deck/RobotWorkSpace.tsx +74 -54
  114. package/src/hardware-sim/Deck/SlotLabels.tsx +51 -51
  115. package/src/hardware-sim/Deck/__tests__/resolveLabwareLocation.test.ts +138 -0
  116. package/src/hardware-sim/Deck/deck.module.css +54 -0
  117. package/src/hardware-sim/Deck/resolveLabwareLocation.ts +154 -0
  118. package/src/hardware-sim/DeckConfigurator/{FlexStackerFixture.tsx → AbsorbanceReaderItem.tsx} +34 -31
  119. package/src/hardware-sim/DeckConfigurator/{EmptyConfigFixture.tsx → EmptyConfigItem.tsx} +72 -44
  120. package/src/hardware-sim/DeckConfigurator/{AbsorbanceReaderFixture.tsx → FlexStackerItem.tsx} +46 -27
  121. package/src/hardware-sim/DeckConfigurator/{HeaterShakerFixture.tsx → HeaterShakerItem.tsx} +40 -28
  122. package/src/hardware-sim/DeckConfigurator/{MagneticBlockFixture.tsx → MagneticBlockItem.tsx} +41 -58
  123. package/src/hardware-sim/DeckConfigurator/{StagingAreaConfigFixture.tsx → StagingAreaConfigItem.tsx} +41 -23
  124. package/src/hardware-sim/DeckConfigurator/{StaticFixture.tsx → StaticItem.tsx} +16 -9
  125. package/src/hardware-sim/DeckConfigurator/{TemperatureModuleFixture.tsx → TemperatureModuleItem.tsx} +42 -26
  126. package/src/hardware-sim/DeckConfigurator/{ThermocyclerFixture.tsx → ThermocyclerItem.tsx} +31 -21
  127. package/src/hardware-sim/DeckConfigurator/{TrashBinConfigFixture.tsx → TrashBinConfigItem.tsx} +42 -27
  128. package/src/hardware-sim/DeckConfigurator/{WasteChuteConfigFixture.tsx → WasteChuteConfigItem.tsx} +38 -27
  129. package/src/hardware-sim/DeckConfigurator/constants.ts +5 -9
  130. package/src/hardware-sim/DeckConfigurator/index.tsx +236 -206
  131. package/src/hardware-sim/Labware/CalibrationBlockRender.stories.tsx +49 -0
  132. package/src/hardware-sim/Labware/CalibrationBlockRender.tsx +172 -0
  133. package/src/hardware-sim/Labware/Labware.tsx +30 -15
  134. package/src/hardware-sim/Labware/LabwareAdapter/index.tsx +2 -2
  135. package/src/hardware-sim/Labware/LabwareRender.stories.tsx +36 -21
  136. package/src/hardware-sim/Labware/LabwareRender.tsx +70 -15
  137. package/src/hardware-sim/Labware/__tests__/Labware.test.tsx +9 -4
  138. package/src/hardware-sim/Labware/__tests__/LabwareRender.test.tsx +14 -5
  139. package/src/hardware-sim/Labware/index.ts +1 -0
  140. package/src/hardware-sim/Labware/labware.module.css +8 -0
  141. package/src/hardware-sim/Labware/labwareInternals/FilledWells.tsx +3 -4
  142. package/src/hardware-sim/Labware/labwareInternals/LabwareOutline.tsx +48 -23
  143. package/src/hardware-sim/Labware/labwareInternals/LabwareWellLabels.tsx +3 -3
  144. package/src/hardware-sim/Labware/labwareInternals/StaticLabware.tsx +2 -2
  145. package/src/hardware-sim/Labware/labwareInternals/StrokedWells.tsx +2 -2
  146. package/src/hardware-sim/Labware/labwareInternals/StyledWells.tsx +2 -2
  147. package/src/hardware-sim/Labware/labwareInternals/Well.tsx +1 -2
  148. package/src/hardware-sim/Labware/labwareInternals/WellLabels.tsx +10 -11
  149. package/src/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.tsx +2 -2
  150. package/src/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.tsx +2 -2
  151. package/src/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.tsx +2 -2
  152. package/src/hardware-sim/Module/Module.stories.tsx +45 -15
  153. package/src/hardware-sim/Module/Thermocycler/index.tsx +2 -2
  154. package/src/hardware-sim/Module/index.tsx +41 -18
  155. package/src/hardware-sim/Pipette/PipetteRender.stories.tsx +2 -2
  156. package/src/hardware-sim/Pipette/PipetteRender.tsx +5 -7
  157. package/src/hardware-sim/Pipette/__tests__/PipetteRender.test.tsx +2 -2
  158. package/src/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.tsx +15 -14
  159. package/src/hardware-sim/RobotCoordinateSpace/robotcoordinatespace.module.css +3 -0
  160. package/src/hocs/withStyleProps.ts +53 -0
  161. package/src/hooks/useConditionalConfirm.ts +15 -5
  162. package/src/icons/Icon.tsx +38 -29
  163. package/src/icons/ModuleIcon.tsx +5 -3
  164. package/src/icons/icon-data.ts +26 -2
  165. package/src/icons/icon.module.css +10 -0
  166. package/src/index.module.css +1 -0
  167. package/src/instrument/InstrumentDiagram.tsx +0 -2
  168. package/src/instrument/PipetteSelect.module.css +3 -3
  169. package/src/instrument/index.ts +0 -2
  170. package/src/legacy-hardware-sim/LabwareNameOverlay.module.css +5 -5
  171. package/src/legacy-hardware-sim/ModuleItem.module.css +19 -19
  172. package/src/legacy-hardware-sim/index.ts +0 -1
  173. package/src/lists/index.ts +0 -1
  174. package/src/lists/lists.module.css +23 -23
  175. package/src/modals/modals.module.css +55 -55
  176. package/src/molecules/CustomizeExpandButton/__tests__/CustomizeExpandButton.test.tsx +88 -0
  177. package/src/molecules/CustomizeExpandButton/index.tsx +189 -0
  178. package/src/molecules/DeckInfoLabel/DeckInfoLabel.stories.tsx +10 -6
  179. package/src/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.tsx +15 -11
  180. package/src/molecules/DeckInfoLabel/deckinfolabel.module.css +42 -0
  181. package/src/molecules/DeckInfoLabel/index.tsx +36 -62
  182. package/src/molecules/DropdownMenu/index.tsx +17 -13
  183. package/src/molecules/InfoScreen/index.tsx +6 -2
  184. package/src/molecules/ReleaseNotes/styles.module.css +15 -15
  185. package/src/molecules/index.ts +2 -1
  186. package/src/nav/SidePanel.module.css +6 -6
  187. package/src/organisms/CommandText/__tests__/CommandText.test.tsx +12 -12
  188. package/src/organisms/CommandText/index.tsx +2 -2
  189. package/src/organisms/CommandText/useCommandTextString/index.ts +2 -2
  190. package/src/organisms/CommandText/useCommandTextString/utils/__tests__/getFinalLabwareLocation.test.ts +4 -4
  191. package/src/organisms/CommandText/useCommandTextString/utils/commandText/__tests__/getPipettingCommandText.test.tsx +3 -3
  192. package/src/organisms/CommandText/useCommandTextString/utils/commandText/getFlexStackerCommandText.ts +2 -4
  193. package/src/organisms/CommandText/useCommandTextString/utils/commandText/getMoveToWellCommandText.ts +19 -3
  194. package/src/organisms/CommandText/useCommandTextString/utils/commandText/getPipettingCommandText.ts +19 -10
  195. package/src/organisms/CommandText/useCommandTextString/utils/getLabwareDefinitionsFromCommands.ts +9 -9
  196. package/src/organisms/CommandText/useCommandTextString/utils/getLabwareLocation.tsx +3 -3
  197. package/src/organisms/CommandText/useCommandTextString/utils/getLabwareName.ts +2 -2
  198. package/src/organisms/DeckLabelSet/index.tsx +1 -3
  199. package/src/organisms/FixtureOption/__tests__/FixtureOption.test.tsx +0 -2
  200. package/src/organisms/FixtureOption/index.tsx +42 -71
  201. package/src/organisms/ProtocolDeck/index.tsx +118 -0
  202. package/src/organisms/ProtocolTimelineScrubber/CommandItem.tsx +2 -2
  203. package/src/organisms/ProtocolTimelineScrubber/PipetteVisuals.tsx +1 -1
  204. package/src/organisms/ProtocolTimelineScrubber/utils.ts +3 -3
  205. package/src/organisms/index.ts +1 -0
  206. package/src/primitives/ForeignObject.tsx +20 -61
  207. package/src/primitives/style-props.ts +1 -0
  208. package/src/slotmap/styles.module.css +1 -1
  209. package/src/structure/Pill.module.css +1 -1
  210. package/src/structure/Splash.module.css +1 -1
  211. package/src/structure/index.ts +2 -4
  212. package/src/structure/structure.module.css +11 -11
  213. package/src/styles/colors.module.css +1 -0
  214. package/src/styles/global.css +179 -0
  215. package/src/styles/index.module.css +1 -1
  216. package/src/styles/typography.module.css +1 -0
  217. package/src/testing/utils/renderWithProviders.tsx +3 -6
  218. package/src/tooltips/tooltips.module.css +14 -14
  219. package/vite.config.mts +6 -3
  220. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +0 -14
  221. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +0 -10
  222. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -8
  223. package/lib/hardware-sim/DeckConfigurator/FlexStackerFixture.d.ts +0 -11
  224. package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +0 -10
  225. package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +0 -11
  226. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -10
  227. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +0 -10
  228. package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +0 -10
  229. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -10
  230. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -11
  231. package/lib/hardware-sim/utils.d.ts +0 -3
  232. package/lib/instrument/InstrumentGroup.d.ts +0 -11
  233. package/lib/instrument/InstrumentInfo.d.ts +0 -18
  234. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
  235. package/lib/lists/TitledList.d.ts +0 -44
  236. package/lib/structure/Card.d.ts +0 -18
  237. package/src/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.tsx +0 -109
  238. package/src/atoms/ListButton/__tests__/ListButtonRadioButton.test.tsx +0 -28
  239. package/src/hardware-sim/utils.ts +0 -18
  240. package/src/instrument/InstrumentDiagram.stories.tsx +0 -43
  241. package/src/instrument/InstrumentGroup.stories.tsx +0 -89
  242. package/src/instrument/InstrumentGroup.tsx +0 -35
  243. package/src/instrument/InstrumentInfo.tsx +0 -106
  244. package/src/instrument/__tests__/InstrumentInfo.test.tsx +0 -58
  245. package/src/instrument/instrument.module.css +0 -45
  246. package/src/legacy-hardware-sim/ModuleItem.tsx +0 -145
  247. package/src/lists/TitledList.tsx +0 -154
  248. package/src/structure/Card.stories.tsx +0 -29
  249. package/src/structure/Card.tsx +0 -65
  250. /package/lib/atoms/{ListButton/__tests__/ListButtonRadioButton.test.d.ts → AnimationVideo/__tests__/AnimationVideo.test.d.ts} +0 -0
  251. /package/lib/{instrument/__tests__/InstrumentInfo.test.d.ts → atoms/buttons/__tests__/BasicButton.test.d.ts} +0 -0
@@ -0,0 +1,22 @@
1
+ import type { Plugin } from 'vite'
2
+
3
+ /**
4
+ * Plugin to make sure CSS modules do not get tree shaked out of the dist.
5
+ * see https://github.com/vitejs/vite/pull/16051
6
+ *
7
+ * @returns {Plugin} The Vite plugin object.
8
+ */
9
+
10
+ export const cssModuleSideEffect = (): Plugin => {
11
+ return {
12
+ name: 'css-module-side-effectful',
13
+ enforce: 'post',
14
+ transform(_: string, id: string) {
15
+ if (id.includes('.module.')) {
16
+ return {
17
+ moduleSideEffects: 'no-treeshake', // or true, which also works with slightly better treeshake
18
+ }
19
+ }
20
+ },
21
+ }
22
+ }
@@ -115,4 +115,16 @@ export declare const en: {
115
115
  waste_chute: string;
116
116
  with_reference_of: string;
117
117
  };
118
+ deck_configuration: {
119
+ flex_stacker_display_name: string;
120
+ flex_stacker_waste_chute_display_name: string;
121
+ absorbance: string;
122
+ heater_Shaker: string;
123
+ mag_block: string;
124
+ staging_area: string;
125
+ temperature: string;
126
+ thermocycler: string;
127
+ trash_bin: string;
128
+ waste: string;
129
+ };
118
130
  };
@@ -116,6 +116,18 @@ export declare const resources: {
116
116
  waste_chute: string;
117
117
  with_reference_of: string;
118
118
  };
119
+ deck_configuration: {
120
+ flex_stacker_display_name: string;
121
+ flex_stacker_waste_chute_display_name: string;
122
+ absorbance: string;
123
+ heater_Shaker: string;
124
+ mag_block: string;
125
+ staging_area: string;
126
+ temperature: string;
127
+ thermocycler: string;
128
+ trash_bin: string;
129
+ waste: string;
130
+ };
119
131
  };
120
132
  zh: {
121
133
  protocol_command_text: {
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from 'react';
2
+ export type AnimationVideoProps = ComponentProps<'video'>;
3
+ /**
4
+ * A `<video>` tag with default props for showing a looping animation.
5
+ *
6
+ * @example
7
+ * ```jsx
8
+ * <AnimationVideo>
9
+ * <source src="foo.webm" />
10
+ * </AnimationVideo>
11
+ * ```
12
+ */
13
+ export declare function AnimationVideo(props: AnimationVideoProps): JSX.Element;
@@ -5,7 +5,7 @@ export interface InlineNotificationProps extends StyleProps {
5
5
  /** name constant of the icon to display */
6
6
  type: InlineNotificationType;
7
7
  /** InlineNotification contents */
8
- heading: string;
8
+ heading?: string;
9
9
  message?: string;
10
10
  /** Optional dynamic width based on contents */
11
11
  hug?: boolean;
@@ -1,3 +1,2 @@
1
1
  export * from './ListButtonAccordion';
2
2
  export * from './ListButtonAccordionContainer';
3
- export * from './ListButtonRadioButton';
@@ -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 {};
@@ -1,2 +1,3 @@
1
1
  export * from './StyledText';
2
2
  export * from './LegacyStyledText';
3
+ export * from './PlaceholderStyledText';
@@ -0,0 +1,12 @@
1
+ import type { MouseEvent } from 'react';
2
+ import type { IconName } from '../../icons';
3
+ interface BasicButtonProps {
4
+ children: string;
5
+ onClick: (event: MouseEvent<HTMLButtonElement>) => void;
6
+ isDisabled?: boolean;
7
+ underLine?: boolean;
8
+ tabIndex?: number;
9
+ iconName?: IconName;
10
+ }
11
+ export declare function BasicButton({ children, onClick, isDisabled, underLine, tabIndex, iconName, ...props }: BasicButtonProps): JSX.Element;
12
+ export {};
@@ -1,4 +1,5 @@
1
1
  export * from './AlertPrimaryButton';
2
+ export * from './BasicButton';
2
3
  export * from './EmptySelectorButton';
3
4
  export * from './LargeButton';
4
5
  export * from './PrimaryButton';
@@ -1,3 +1,4 @@
1
+ export * from './AnimationVideo';
1
2
  export * from './buttons';
2
3
  export * from './Checkbox';
3
4
  export * from './CheckboxField';
@@ -1,11 +1,10 @@
1
1
  import { Module } from '../Module';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
- import type { DeckConfiguration, LabwareDefinition2, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
4
- import type { Svg } from '../../primitives';
3
+ import type { DeckConfiguration, LabwareDefinition, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
5
4
  import type { WellFill, WellGroup } from '../Labware';
6
5
  export interface LabwareOnDeck {
7
6
  labwareLocation: LabwareLocation;
8
- definition: LabwareDefinition2;
7
+ definition: LabwareDefinition;
9
8
  wellFill?: WellFill;
10
9
  missingTips?: WellGroup;
11
10
  /** generic prop to render self-positioned children for each labware */
@@ -18,7 +17,7 @@ export interface LabwareOnDeck {
18
17
  export interface ModuleOnDeck {
19
18
  moduleModel: ModuleModel;
20
19
  moduleLocation: ModuleLocation;
21
- nestedLabwareDef?: LabwareDefinition2 | null;
20
+ nestedLabwareDef?: LabwareDefinition | null;
22
21
  nestedLabwareWellFill?: WellFill;
23
22
  innerProps?: ComponentProps<typeof Module>['innerProps'];
24
23
  /** generic prop to render self-positioned children for each module */
@@ -30,15 +29,15 @@ export interface ModuleOnDeck {
30
29
  hopperLabware?: HopperLabwareProps;
31
30
  }
32
31
  export interface HopperLabwareProps {
33
- hopperLabwareDef: LabwareDefinition2 | null;
32
+ hopperLabwareDef: LabwareDefinition | null;
34
33
  hopperLabwareWellFill: WellFill;
35
34
  hopperOnLabwareClick: () => void;
36
35
  hopperHighlightLabware: boolean;
37
36
  hopperStacked: boolean;
38
37
  }
39
38
  export declare const STACKER_MODULE_Y_OFFSET = -6;
40
- export declare const STACKER_HOPPER_LABWARE_X_OFFSET = 178.5;
41
- export declare const STACKER_HOPPER_LABWARE_Y_OFFSET = 7;
39
+ export declare const STACKER_HOPPER_LABWARE_X_OFFSET = 17.5;
40
+ export declare const STACKER_HOPPER_LABWARE_Y_OFFSET = 6;
42
41
  export declare const STACKER_DECK_VIEW_BOX_EXPANSION = 220;
43
42
  interface BaseDeckProps {
44
43
  deckConfig: DeckConfiguration;
@@ -55,7 +54,10 @@ interface BaseDeckProps {
55
54
  /** whether to make wrapping svg tag animatable via @react-spring/web, defaults to false */
56
55
  animatedSVG?: boolean;
57
56
  /** extra props to pass to svg tag */
58
- svgProps?: ComponentProps<typeof Svg>;
57
+ /** NOTE: typing as any because running into some TS issues with React-spring,
58
+ * CSS Modules & Styled-components not playing together nicely
59
+ */
60
+ svgProps?: any;
59
61
  }
60
62
  export declare function BaseDeck(props: BaseDeckProps): JSX.Element;
61
63
  export {};
@@ -10,10 +10,13 @@ interface FlexTrashProps {
10
10
  showHighlight?: boolean;
11
11
  /** optional tag info to display a tag below the trash */
12
12
  tagInfo?: DeckLabelProps[];
13
+ onClick?: () => void;
14
+ onMouseEnter?: () => void;
15
+ onMouseLeave?: () => void;
13
16
  }
14
17
  /**
15
18
  * Component to render Opentrons Flex trash
16
19
  * For use as a RobotWorkspace child component
17
20
  */
18
- export declare const FlexTrash: ({ robotType, trashIconColor, backgroundColor, trashCutoutId, showHighlight, tagInfo, }: FlexTrashProps) => JSX.Element | null;
21
+ export declare const FlexTrash: ({ robotType, trashIconColor, backgroundColor, trashCutoutId, showHighlight, tagInfo, onClick, onMouseEnter, onMouseLeave, }: FlexTrashProps) => JSX.Element | null;
19
22
  export {};
@@ -1,13 +1,14 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { DeckConfiguration, LabwareDefinition2, LabwareLocation, LoadedLabware, LoadedModule, RobotType } from '@opentrons/shared-data';
2
+ import type { DeckConfiguration, LabwareDefinition, LabwareLocation, LoadedLabware, LoadedModule, RobotType } from '@opentrons/shared-data';
3
3
  import type { StyleProps } from '../../primitives';
4
4
  interface MoveLabwareOnDeckProps extends StyleProps {
5
5
  robotType: RobotType;
6
- movedLabwareDef: LabwareDefinition2;
6
+ movedLabwareDef: LabwareDefinition;
7
7
  initialLabwareLocation: LabwareLocation;
8
8
  finalLabwareLocation: LabwareLocation;
9
9
  loadedModules: LoadedModule[];
10
10
  loadedLabware: LoadedLabware[];
11
+ labwareDefinitions: LabwareDefinition[];
11
12
  deckConfig: DeckConfiguration;
12
13
  backgroundItems?: ReactNode;
13
14
  deckFill?: string;
@@ -1,5 +1,6 @@
1
- import { Box } from '../../primitives';
2
- import type { ComponentProps, ReactNode } from 'react';
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?: ComponentProps<typeof Box>;
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: (props: RobotCoordsForeignDivProps) => JSX.Element;
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 { Flex, ForeignObject } from '../../primitives';
2
- import type { ComponentProps, ReactNode } from 'react';
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ import type { StyleProps } from '../../primitives';
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?: ComponentProps<typeof ForeignObject>;
10
- flexProps?: ComponentProps<typeof Flex>;
10
+ foreignObjectProps?: StyleProps;
11
+ foreignObjectEvents?: HTMLAttributes<HTMLDivElement>;
12
+ flexProps?: StyleProps;
13
+ flexEvents?: HTMLAttributes<HTMLDivElement>;
11
14
  }
12
- export declare const RobotCoordsForeignObject: (props: RobotCoordsForeignObjectProps) => JSX.Element;
15
+ export declare const RobotCoordsForeignObject: ({ children, x, y, height, width, foreignObjectEvents, foreignObjectProps, flexProps, flexEvents, }: RobotCoordsForeignObjectProps) => JSX.Element;
@@ -1,9 +1,19 @@
1
1
  import type { ComponentProps, ReactNode } from 'react';
2
2
  export interface RobotCoordsTextProps extends ComponentProps<'text'> {
3
3
  x: number;
4
+ /** The y-coordinate of the text baseline, in the Opentrons robot orientation, so +y is towards the top of the screen. */
4
5
  y: number;
5
6
  children?: ReactNode;
6
7
  canHighlight?: boolean;
7
8
  }
8
- /** SVG text reflected to use take robot coordinates as props */
9
+ /**
10
+ * SVG text positioned with Opentrons robot coordinates.
11
+ *
12
+ * This should be used inside a wrapper like RobotWorkSpace that sets up a transformation
13
+ * to orient the SVG with the Opentrons coordinate convention, with +y towards the
14
+ * top of the screen.
15
+ *
16
+ * This component surgically undoes the wrapper's transformation so the child text is
17
+ * displayed right-side-up.
18
+ */
9
19
  export declare function RobotCoordsText(props: RobotCoordsTextProps): JSX.Element;
@@ -1,21 +1,37 @@
1
- import type { ReactNode } from 'react';
2
- import type { DeckDefinition, DeckSlot } from '@opentrons/shared-data';
3
- import type { StyleProps } from '../../primitives';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ import type { AddressableArea, DeckDefinition } from '@opentrons/shared-data';
4
3
  export interface RobotWorkSpaceRenderProps {
5
- deckSlotsById: {
6
- [slotId: string]: DeckSlot;
7
- };
8
- getRobotCoordsFromDOMCoords: (domX: number, domY: number) => {
9
- x: number;
10
- y: number;
4
+ addressableAreasById: {
5
+ [addressableAreaId: string]: AddressableArea;
11
6
  };
12
7
  }
13
- export interface RobotWorkSpaceProps extends StyleProps {
14
- deckDef?: DeckDefinition;
15
- viewBox?: string | null;
8
+ type BaseProps = {
16
9
  children?: (props: RobotWorkSpaceRenderProps) => ReactNode;
17
10
  deckLayerBlocklist?: string[];
11
+ /** optional boolean to show the OT-2 deck from deck defintion layers */
18
12
  showDeckLayers?: boolean;
19
13
  id?: string;
20
- }
21
- export declare function RobotWorkSpace(props: RobotWorkSpaceProps): JSX.Element | null;
14
+ } & (// Require at least one of deckDef or viewBox,
15
+ {
16
+ deckDef: DeckDefinition;
17
+ } | {
18
+ /**
19
+ * The x/y area to show, in standard SVG `x y xDimension yDimension` syntax.
20
+ *
21
+ * Specify coordinates in the Opentrons orientation, not the standard SVG orientation.
22
+ * So (x, y) is the area's front-left, xDimension extends the viewed area to the
23
+ * right, and yDimension extends the viewed area to the back.
24
+ */
25
+ viewBox: string;
26
+ });
27
+ export type RobotWorkSpaceProps = BaseProps & CSSProperties;
28
+ /**
29
+ * A wrapper for rendering the robot deck, labware, etc. from a top-down perspective.
30
+ *
31
+ * Child SVG components can render themselves in the Opentrons coordinate orientation
32
+ * (+x to the right of the robot, +y to the back of the robot) and this component will
33
+ * SVG-transform them so they're displayed the correct way. This is needed because
34
+ * SVG inverts y compared to Opentrons coordinates.
35
+ */
36
+ export declare function RobotWorkSpace(props: RobotWorkSpaceProps): JSX.Element;
37
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { ComputeLabwareOriginInput, DeckDefinition, LabwareDefinition, LabwareLocation, LoadedLabware, LoadedModule } from '@opentrons/shared-data';
2
+ /**
3
+ * Converts a labware location to something that computeLabwareOrigin() can take as
4
+ * input and compute absolute deck coordinates from.
5
+ *
6
+ * This basically just does a lot of tedious lookups to resolve IDs into full definitions.
7
+ *
8
+ * Returns "error" if there was a problem doing the conversion, probably because of
9
+ * some invalid input to this function, like entries missing from `otherLoadedLabware`.
10
+ * Returns "offDeck" if the labware is known to be off-deck, so it doesn't have
11
+ * coordinates.
12
+ */
13
+ export declare function resolveLabwareLocation({ deckDef, targetLabwareDef, targetLabwareLocation, loadedModules, otherLoadedLabware, otherLabwareDefinitions, }: {
14
+ deckDef: DeckDefinition;
15
+ targetLabwareDef: LabwareDefinition;
16
+ targetLabwareLocation: LabwareLocation;
17
+ loadedModules: LoadedModule[];
18
+ otherLoadedLabware: LoadedLabware[];
19
+ otherLabwareDefinitions: LabwareDefinition[];
20
+ }): 'error' | 'offDeck' | ComputeLabwareOriginInput;
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface AbsorbanceReaderItemProps {
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 AbsorbanceReaderItem(props: AbsorbanceReaderItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutId, DeckDefinition, ModuleModel } from '@opentrons/shared-data';
2
+ interface EmptyConfigItemProps {
3
+ deckDefinition: DeckDefinition;
4
+ fixtureLocation: CutoutId;
5
+ addressableAreaId: AddressableAreaNamesWithFakes;
6
+ editableCutoutIds: CutoutId[];
7
+ moduleModel?: ModuleModel;
8
+ handleClickAdd: (fixtureLocation: CutoutId, addressableArea: AddressableAreaNamesWithFakes) => void;
9
+ }
10
+ export declare function EmptyConfigItem(props: EmptyConfigItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface FlexStackerItemProps {
3
+ deckDefinition: DeckDefinition;
4
+ fixtureLocation: CutoutId;
5
+ cutoutFixtureId: CutoutFixtureIdsWithFakes;
6
+ addressableAreaId: AddressableAreaNamesWithFakes;
7
+ hasWasteChute: boolean;
8
+ handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureIdsWithFakes, addressableAreaId: AddressableAreaNamesWithFakes) => void;
9
+ selected?: boolean;
10
+ }
11
+ export declare function FlexStackerItem(props: FlexStackerItemProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface HeaterShakerItemProps {
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 HeaterShakerItem(props: HeaterShakerItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface MagneticBlockItemProps {
3
+ deckDefinition: DeckDefinition;
4
+ fixtureLocation: CutoutId;
5
+ cutoutFixtureId: CutoutFixtureIdsWithFakes;
6
+ addressableAreaId: AddressableAreaNamesWithFakes;
7
+ handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureIdsWithFakes, addressableAreaId: AddressableAreaNamesWithFakes) => void;
8
+ hasStagingArea?: boolean;
9
+ selected?: boolean;
10
+ }
11
+ export declare function MagneticBlockItem(props: MagneticBlockItemProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface StagingAreaConfigItemProps {
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 StagingAreaConfigItem(props: StagingAreaConfigItemProps): JSX.Element;
11
+ export {};
@@ -8,5 +8,5 @@ interface StaticFixtureProps {
8
8
  * this component allows us to add static labeled fixtures to the center column of a deck
9
9
  * config map
10
10
  */
11
- export declare function StaticFixture(props: StaticFixtureProps): JSX.Element;
11
+ export declare function StaticItem(props: StaticFixtureProps): JSX.Element;
12
12
  export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface TemperatureModuleFixtureProps {
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 TemperatureModuleItem(props: TemperatureModuleFixtureProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface ThermocyclerItemProps {
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 ThermocyclerItem(props: ThermocyclerItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface TrashBinConfigItemProps {
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 TrashBinConfigItem(props: TrashBinConfigItemProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckDefinition } from '@opentrons/shared-data';
2
+ interface WasteChuteConfigItemProps {
3
+ deckDefinition: DeckDefinition;
4
+ fixtureLocation: CutoutId;
5
+ cutoutFixtureId: CutoutFixtureIdsWithFakes;
6
+ handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureIdsWithFakes, addressableAreaId: AddressableAreaNamesWithFakes) => void;
7
+ hasStagingAreas?: boolean;
8
+ selected?: boolean;
9
+ }
10
+ export declare function WasteChuteConfigFixture(props: WasteChuteConfigItemProps): JSX.Element;
11
+ export {};
@@ -5,16 +5,13 @@
5
5
  export declare const FIXTURE_HEIGHT = 102;
6
6
  export declare const THERMOCYCLER_FIXTURE_HEIGHT = 290;
7
7
  export declare const COLUMN_1_SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
8
- export declare const COLUMN_2_SINGLE_SLOT_FIXTURE_WIDTH = 159;
9
- export declare const COLUMN_3_SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
10
- export declare const STAGING_AREA_FIXTURE_WIDTH = 314.5;
8
+ export declare const COLUMN_DEFAULT_SINGLE_SLOT_FIXTURE_WIDTH = 159;
9
+ export declare const LARGE_SINGLE_ITEM_SLOT_WIDTH = 250;
10
+ export declare const THERMOCYCLER_FIXTURE_WIDTH = 243.5;
11
11
  export declare const COLUMN_1_X_ADJUSTMENT = -100;
12
- export declare const COLUMN_2_X_ADJUSTMENT = -15.5;
13
- export declare const COLUMN_3_X_ADJUSTMENT = -15.5;
12
+ export declare const COLUMN_DEFAULT_X_ADJUSTMENT = -15.5;
13
+ export declare const STACKER_X_ADJUSTMENT = -12.5;
14
14
  export declare const Y_ADJUSTMENT = -8;
15
- export declare const STAGING_AREA_DISPLAY_NAME = "Staging area";
16
- export declare const TRASH_BIN_DISPLAY_NAME = "Trash bin";
17
- export declare const WASTE_CHUTE_DISPLAY_NAME = "Waste chute";
18
15
  export declare const CONFIG_STYLE_READ_ONLY: import("styled-components").FlattenSimpleInterpolation;
19
16
  export declare const CONFIG_STYLE_EDITABLE: import("styled-components").FlattenSimpleInterpolation;
20
17
  export declare const CONFIG_STYLE_SELECTED: import("styled-components").FlattenSimpleInterpolation;
@@ -1,10 +1,10 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { CutoutFixtureId, CutoutId, DeckConfiguration } from '@opentrons/shared-data';
2
+ import type { AddressableAreaNamesWithFakes, CutoutFixtureIdsWithFakes, CutoutId, DeckConfiguration, ModuleModel } from '@opentrons/shared-data';
3
3
  export * from './constants';
4
4
  interface DeckConfiguratorProps {
5
5
  deckConfig: DeckConfiguration;
6
- handleClickAdd: (cutoutId: CutoutId) => void;
7
- handleClickRemove: (cutoutId: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
6
+ handleClickAdd: (cutoutId: CutoutId, addressableAreaId: AddressableAreaNamesWithFakes) => void;
7
+ handleClickRemove: (cutoutId: CutoutId, cutoutFixtureId: CutoutFixtureIdsWithFakes, addressableAreaId: AddressableAreaNamesWithFakes) => void;
8
8
  lightFill?: string;
9
9
  darkFill?: string;
10
10
  editableCutoutIds?: CutoutId[];
@@ -16,5 +16,6 @@ interface DeckConfiguratorProps {
16
16
  }>;
17
17
  height?: string;
18
18
  selectedCutoutId?: CutoutId;
19
+ moduleModel?: ModuleModel;
19
20
  }
20
21
  export declare function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { LabwareDefinition } from '@opentrons/shared-data';
2
+ interface CalibrationBlockRenderProps {
3
+ /**
4
+ * Must be a calibration block definition, e.g.
5
+ * opentrons_calibrationblock_short_side_left or ..._short_side_right.
6
+ */
7
+ labwareDef: LabwareDefinition;
8
+ }
9
+ /**
10
+ * Render a top-down view of an OT-2 calibration block. This displays features specific
11
+ * to calibration blocks, which the more general <Labware> component doesn't know
12
+ * about.
13
+ */
14
+ export declare function CalibrationBlockRender(props: CalibrationBlockRenderProps): JSX.Element | null;
15
+ export {};
@@ -1,10 +1,11 @@
1
1
  import type { RefObject } from 'react';
2
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
2
+ import type { LabwareDefinition } from '@opentrons/shared-data';
3
3
  import type { HighlightedWellLabels, WellFill, WellMouseEvent, WellStroke } from './labwareInternals/types';
4
4
  export interface LabwareProps {
5
5
  /** Labware definition to render */
6
- definition: LabwareDefinition2;
7
- /** Opional Prop for labware on heater shakers sitting on right side of the deck */
6
+ definition: LabwareDefinition;
7
+ positioningMode: 'passThrough' | 'offsetInSlot';
8
+ /** See docs on LabwareRender. */
8
9
  shouldRotateAdapterOrientation?: boolean;
9
10
  /** boolean to show well labels */
10
11
  showLabels?: boolean;
@@ -30,10 +31,8 @@ export interface LabwareProps {
30
31
  isInteractive?: boolean;
31
32
  }
32
33
  /**
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
34
+ * Similar to the LabwareRender component, but with ODD-specific styling.
35
+ *
36
+ * For example, hiding the outline of the labware for certain ODD flows.
38
37
  */
39
38
  export declare const Labware: (props: LabwareProps) => JSX.Element;
@@ -5,7 +5,7 @@ import { OpentronsAutoclavableDeckRiser } from './OpentronsAutoclavableDeckRiser
5
5
  import { OpentronsFlex96TiprackAdapter } from './OpentronsFlex96TiprackAdapter';
6
6
  import { OpentronsToughPCRAutoSealingLid } from './OpentronsToughPCRAutoSealingLid';
7
7
  import { OpentronsUniversalFlatAdapter } from './OpentronsUniversalFlatAdapter';
8
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
8
+ import type { LabwareDefinition } from '@opentrons/shared-data';
9
9
  declare const LABWARE_ADAPTER_LOADNAME_PATHS: {
10
10
  opentrons_96_deep_well_adapter: typeof Opentrons96DeepWellAdapter;
11
11
  opentrons_96_flat_bottom_adapter: typeof Opentrons96FlatBottomAdapter;
@@ -19,7 +19,7 @@ export type LabwareAdapterLoadName = keyof typeof LABWARE_ADAPTER_LOADNAME_PATHS
19
19
  export declare const labwareAdapterLoadNames: string[];
20
20
  export interface LabwareAdapterProps {
21
21
  labwareLoadName: LabwareAdapterLoadName;
22
- definition?: LabwareDefinition2;
22
+ definition?: LabwareDefinition;
23
23
  highlight?: boolean;
24
24
  highlightShadow?: boolean;
25
25
  }