@opentrons/components 0.1.5 → 0.1.6-alpha.3

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 (274) hide show
  1. package/Makefile +5 -8
  2. package/README.md +1 -15
  3. package/babel.config.cjs +21 -0
  4. package/lib/index.mjs +19928 -0
  5. package/package.json +6 -5
  6. package/tsconfig.json +2 -2
  7. package/typings/global.d.ts +0 -1
  8. package/vite.config.ts +57 -0
  9. package/lib/__tests__/utils.test.d.ts +0 -1
  10. package/lib/alerts/AlertItem.d.ts +0 -21
  11. package/lib/alerts/index.d.ts +0 -1
  12. package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +0 -1
  13. package/lib/atoms/CheckboxField/index.d.ts +0 -20
  14. package/lib/atoms/StepMeter/index.d.ts +0 -6
  15. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -2
  16. package/lib/atoms/buttons/PrimaryButton.d.ts +0 -2
  17. package/lib/atoms/buttons/SecondaryButton.d.ts +0 -7
  18. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
  19. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +0 -1
  20. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +0 -1
  21. package/lib/atoms/buttons/index.d.ts +0 -3
  22. package/lib/atoms/index.d.ts +0 -3
  23. package/lib/barrel.d.ts +0 -3
  24. package/lib/buttons/Button.d.ts +0 -49
  25. package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -9
  26. package/lib/buttons/FlatButton.d.ts +0 -6
  27. package/lib/buttons/IconButton.d.ts +0 -15
  28. package/lib/buttons/OutlineButton.d.ts +0 -9
  29. package/lib/buttons/index.d.ts +0 -5
  30. package/lib/controls/ControlInfo.d.ts +0 -6
  31. package/lib/controls/LabeledButton.d.ts +0 -8
  32. package/lib/controls/LabeledCheckbox.d.ts +0 -10
  33. package/lib/controls/LabeledControl.d.ts +0 -7
  34. package/lib/controls/LabeledRadioGroup.d.ts +0 -8
  35. package/lib/controls/LabeledSelect.d.ts +0 -9
  36. package/lib/controls/LabeledToggle.d.ts +0 -11
  37. package/lib/controls/StackedLabeledControl.d.ts +0 -7
  38. package/lib/controls/ToggleButton.d.ts +0 -6
  39. package/lib/controls/index.d.ts +0 -6
  40. package/lib/forms/DeprecatedCheckboxField.d.ts +0 -33
  41. package/lib/forms/DropdownField.d.ts +0 -38
  42. package/lib/forms/FormGroup.d.ts +0 -19
  43. package/lib/forms/InputField.d.ts +0 -51
  44. package/lib/forms/RadioGroup.d.ts +0 -29
  45. package/lib/forms/Select.d.ts +0 -27
  46. package/lib/forms/SelectField.d.ts +0 -33
  47. package/lib/forms/ToggleField.d.ts +0 -22
  48. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -0
  49. package/lib/forms/__tests__/DropdownField.test.d.ts +0 -0
  50. package/lib/forms/__tests__/InputField.test.d.ts +0 -0
  51. package/lib/forms/__tests__/Select.test.d.ts +0 -0
  52. package/lib/forms/__tests__/SelectField.test.d.ts +0 -0
  53. package/lib/forms/__tests__/ToggleField.test.d.ts +0 -0
  54. package/lib/forms/index.d.ts +0 -8
  55. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +0 -42
  56. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +0 -12
  57. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +0 -2
  58. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +0 -2
  59. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +0 -13
  60. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +0 -21
  61. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +0 -14
  62. package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +0 -4
  63. package/lib/hardware-sim/BaseDeck/index.d.ts +0 -5
  64. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -11
  65. package/lib/hardware-sim/Deck/FlexTrash.d.ts +0 -14
  66. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -17
  67. package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -11
  68. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +0 -14
  69. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +0 -12
  70. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +0 -8
  71. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +0 -21
  72. package/lib/hardware-sim/Deck/SlotLabels.d.ts +0 -12
  73. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +0 -2
  74. package/lib/hardware-sim/Deck/constants.d.ts +0 -1
  75. package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +0 -2
  76. package/lib/hardware-sim/Deck/index.d.ts +0 -9
  77. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -9
  78. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -9
  79. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -9
  80. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -10
  81. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +0 -15
  82. package/lib/hardware-sim/DeckConfigurator/index.d.ts +0 -14
  83. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +0 -15
  84. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -2
  85. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -2
  86. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -2
  87. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -2
  88. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -2
  89. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +0 -19
  90. package/lib/hardware-sim/Labware/LabwareRender.d.ts +0 -42
  91. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +0 -1
  92. package/lib/hardware-sim/Labware/index.d.ts +0 -3
  93. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +0 -10
  94. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +0 -18
  95. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +0 -17
  96. package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +0 -9
  97. package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +0 -19
  98. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +0 -19
  99. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +0 -12
  100. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +0 -1
  101. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +0 -1
  102. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +0 -6
  103. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +0 -12
  104. package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -5
  105. package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -2
  106. package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -2
  107. package/lib/hardware-sim/Module/ModuleTag.d.ts +0 -9
  108. package/lib/hardware-sim/Module/Temperature.d.ts +0 -5
  109. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -7
  110. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -7
  111. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -8
  112. package/lib/hardware-sim/Module/index.d.ts +0 -18
  113. package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +0 -4
  114. package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +0 -4
  115. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +0 -8
  116. package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +0 -1
  117. package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +0 -1
  118. package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +0 -1
  119. package/lib/hardware-sim/Pipette/constants.d.ts +0 -7
  120. package/lib/hardware-sim/Pipette/index.d.ts +0 -1
  121. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +0 -6
  122. package/lib/hardware-sim/ProtocolDeck/index.d.ts +0 -12
  123. package/lib/hardware-sim/ProtocolDeck/types.d.ts +0 -8
  124. package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +0 -1
  125. package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +0 -5
  126. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +0 -12
  127. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +0 -3
  128. package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +0 -10
  129. package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +0 -2
  130. package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +0 -4
  131. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +0 -2
  132. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +0 -7
  133. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +0 -19
  134. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +0 -2
  135. package/lib/hardware-sim/index.d.ts +0 -11
  136. package/lib/hardware-sim/utils.d.ts +0 -3
  137. package/lib/helix-design-system/colors.d.ts +0 -75
  138. package/lib/helix-design-system/index.d.ts +0 -1
  139. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -0
  140. package/lib/hooks/__tests__/useDrag.test.d.ts +0 -1
  141. package/lib/hooks/__tests__/useIdle.test.d.ts +0 -1
  142. package/lib/hooks/__tests__/useInterval.test.d.ts +0 -0
  143. package/lib/hooks/__tests__/useLongPress.test.d.ts +0 -1
  144. package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -0
  145. package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -0
  146. package/lib/hooks/__tests__/useScrolling.test.d.ts +0 -1
  147. package/lib/hooks/__tests__/useSwipe.test.d.ts +0 -1
  148. package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -0
  149. package/lib/hooks/__tests__/useToggle.test.d.ts +0 -0
  150. package/lib/hooks/index.d.ts +0 -12
  151. package/lib/hooks/useConditionalConfirm.d.ts +0 -40
  152. package/lib/hooks/useDrag.d.ts +0 -22
  153. package/lib/hooks/useIdle.d.ts +0 -11
  154. package/lib/hooks/useInterval.d.ts +0 -11
  155. package/lib/hooks/useLongPress.d.ts +0 -19
  156. package/lib/hooks/useMountEffect.d.ts +0 -8
  157. package/lib/hooks/usePrevious.d.ts +0 -9
  158. package/lib/hooks/useScrolling.d.ts +0 -1
  159. package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -20
  160. package/lib/hooks/useSwipe.d.ts +0 -12
  161. package/lib/hooks/useTimeout.d.ts +0 -9
  162. package/lib/hooks/useToggle.d.ts +0 -22
  163. package/lib/icons/Icon.d.ts +0 -34
  164. package/lib/icons/ModuleIcon.d.ts +0 -12
  165. package/lib/icons/NotificationIcon.d.ts +0 -13
  166. package/lib/icons/icon-data.d.ts +0 -582
  167. package/lib/icons/index.d.ts +0 -3
  168. package/lib/images/index.d.ts +0 -1
  169. package/lib/images/labware/index.d.ts +0 -1
  170. package/lib/images/labware/measurement-guide/index.d.ts +0 -13
  171. package/lib/index.d.ts +0 -28
  172. package/lib/instrument/InfoItem.d.ts +0 -11
  173. package/lib/instrument/InstrumentDiagram.d.ts +0 -12
  174. package/lib/instrument/InstrumentGroup.d.ts +0 -12
  175. package/lib/instrument/InstrumentInfo.d.ts +0 -24
  176. package/lib/instrument/PipetteSelect.d.ts +0 -20
  177. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -0
  178. package/lib/instrument/index.d.ts +0 -5
  179. package/lib/interaction-enhancers/ClickOutside.d.ts +0 -18
  180. package/lib/interaction-enhancers/HandleKeypress.d.ts +0 -27
  181. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -0
  182. package/lib/interaction-enhancers/index.d.ts +0 -4
  183. package/lib/interaction-enhancers/useHover.d.ts +0 -33
  184. package/lib/interaction-enhancers/useOnClickOutside.d.ts +0 -5
  185. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -8
  186. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -18
  187. package/lib/legacy-hardware-sim/index.d.ts +0 -2
  188. package/lib/lists/ListItem.d.ts +0 -37
  189. package/lib/lists/SidePanelGroup.d.ts +0 -18
  190. package/lib/lists/TitledList.d.ts +0 -44
  191. package/lib/lists/index.d.ts +0 -3
  192. package/lib/modals/AlertModal.d.ts +0 -27
  193. package/lib/modals/BaseModal.d.ts +0 -26
  194. package/lib/modals/ContinueModal.d.ts +0 -10
  195. package/lib/modals/Modal.d.ts +0 -23
  196. package/lib/modals/ModalPage.d.ts +0 -16
  197. package/lib/modals/ModalShell.d.ts +0 -25
  198. package/lib/modals/Overlay.d.ts +0 -9
  199. package/lib/modals/SpinnerModal.d.ts +0 -13
  200. package/lib/modals/SpinnerModalPage.d.ts +0 -11
  201. package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
  202. package/lib/modals/index.d.ts +0 -9
  203. package/lib/molecules/LocationIcon/__tests__/LocationIcon.test.d.ts +0 -1
  204. package/lib/molecules/LocationIcon/index.d.ts +0 -16
  205. package/lib/molecules/RoundTab.d.ts +0 -8
  206. package/lib/molecules/index.d.ts +0 -2
  207. package/lib/nav/SidePanel.d.ts +0 -6
  208. package/lib/nav/index.d.ts +0 -1
  209. package/lib/opentrons-components.js +0 -16
  210. package/lib/primitives/Box.d.ts +0 -7
  211. package/lib/primitives/Btn.d.ts +0 -61
  212. package/lib/primitives/Flex.d.ts +0 -7
  213. package/lib/primitives/ForeignObject.d.ts +0 -23
  214. package/lib/primitives/Link.d.ts +0 -11
  215. package/lib/primitives/Svg.d.ts +0 -23
  216. package/lib/primitives/Text.d.ts +0 -7
  217. package/lib/primitives/__tests__/Box.test.d.ts +0 -0
  218. package/lib/primitives/__tests__/Btn.test.d.ts +0 -0
  219. package/lib/primitives/__tests__/Flex.test.d.ts +0 -0
  220. package/lib/primitives/__tests__/Link.test.d.ts +0 -0
  221. package/lib/primitives/__tests__/Svg.test.d.ts +0 -0
  222. package/lib/primitives/__tests__/Text.test.d.ts +0 -0
  223. package/lib/primitives/__tests__/primitives.test.d.ts +0 -0
  224. package/lib/primitives/__tests__/style-props.test.d.ts +0 -0
  225. package/lib/primitives/index.d.ts +0 -9
  226. package/lib/primitives/style-props.d.ts +0 -4
  227. package/lib/primitives/types.d.ts +0 -96
  228. package/lib/robot-types.d.ts +0 -1
  229. package/lib/slotmap/SlotMap.d.ts +0 -12
  230. package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
  231. package/lib/slotmap/index.d.ts +0 -1
  232. package/lib/structure/Card.d.ts +0 -18
  233. package/lib/structure/LabeledValue.d.ts +0 -12
  234. package/lib/structure/PageTabs.d.ts +0 -12
  235. package/lib/structure/Pill.d.ts +0 -18
  236. package/lib/structure/Splash.d.ts +0 -9
  237. package/lib/structure/TitleBar.d.ts +0 -17
  238. package/lib/structure/index.d.ts +0 -6
  239. package/lib/styles/borders.d.ts +0 -8
  240. package/lib/styles/colors.d.ts +0 -37
  241. package/lib/styles/flexbox.d.ts +0 -28
  242. package/lib/styles/index.d.ts +0 -7
  243. package/lib/styles/layout.d.ts +0 -23
  244. package/lib/styles/position.d.ts +0 -5
  245. package/lib/styles/spacing.d.ts +0 -9
  246. package/lib/styles/typography.d.ts +0 -36
  247. package/lib/tabbedNav/NavTab.d.ts +0 -25
  248. package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
  249. package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
  250. package/lib/tabbedNav/index.d.ts +0 -3
  251. package/lib/testing/utils/index.d.ts +0 -2
  252. package/lib/testing/utils/matchers.d.ts +0 -6
  253. package/lib/testing/utils/renderWithProviders.d.ts +0 -10
  254. package/lib/tooltips/DeprecatedTooltip.d.ts +0 -37
  255. package/lib/tooltips/HoverTooltip.d.ts +0 -36
  256. package/lib/tooltips/Tooltip.d.ts +0 -35
  257. package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -0
  258. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -0
  259. package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -0
  260. package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -0
  261. package/lib/tooltips/constants.d.ts +0 -17
  262. package/lib/tooltips/index.d.ts +0 -8
  263. package/lib/tooltips/styles.d.ts +0 -12
  264. package/lib/tooltips/types.d.ts +0 -52
  265. package/lib/tooltips/useHoverTooltip.d.ts +0 -24
  266. package/lib/tooltips/usePopper.d.ts +0 -2
  267. package/lib/tooltips/useTooltip.d.ts +0 -31
  268. package/lib/ui-style-constants/borders.d.ts +0 -18
  269. package/lib/ui-style-constants/index.d.ts +0 -4
  270. package/lib/ui-style-constants/responsiveness.d.ts +0 -2
  271. package/lib/ui-style-constants/spacing.d.ts +0 -17
  272. package/lib/ui-style-constants/typography.d.ts +0 -70
  273. package/lib/utils.d.ts +0 -15
  274. package/webpack.config.js +0 -38
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- export interface ToggleFieldProps {
3
- /** change handler */
4
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
5
- /** checkbox is checked if value is true */
6
- value?: boolean;
7
- /** classes to apply */
8
- className?: string;
9
- /** classes to apply to inner label text div */
10
- labelTextClassName?: string | null | undefined;
11
- /** name of field in form */
12
- name?: string;
13
- /** label text for toggled off */
14
- offLabel?: string;
15
- /** label text for toggled on */
16
- onLabel?: string;
17
- /** checkbox is disabled if value is true */
18
- disabled?: boolean;
19
- /** html tabindex property */
20
- tabIndex?: number;
21
- }
22
- export declare function ToggleField(props: ToggleFieldProps): JSX.Element;
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,8 +0,0 @@
1
- export * from './DeprecatedCheckboxField';
2
- export * from './DropdownField';
3
- export * from './FormGroup';
4
- export * from './InputField';
5
- export * from './RadioGroup';
6
- export * from './Select';
7
- export * from './SelectField';
8
- export * from './ToggleField';
@@ -1,42 +0,0 @@
1
- import * as React from 'react';
2
- import { Module } from '../Module';
3
- import { Svg } from '../../primitives';
4
- import type { DeckConfiguration, LabwareDefinition2, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
5
- import type { WellFill } from '../Labware';
6
- export interface LabwareOnDeck {
7
- labwareLocation: LabwareLocation;
8
- definition: LabwareDefinition2;
9
- wellFill?: WellFill;
10
- /** generic prop to render self-positioned children for each labware */
11
- labwareChildren?: React.ReactNode;
12
- onLabwareClick?: () => void;
13
- }
14
- export interface ModuleOnDeck {
15
- moduleModel: ModuleModel;
16
- moduleLocation: ModuleLocation;
17
- nestedLabwareDef?: LabwareDefinition2 | null;
18
- nestedLabwareWellFill?: WellFill;
19
- innerProps?: React.ComponentProps<typeof Module>['innerProps'];
20
- /** generic prop to render self-positioned children for each module */
21
- moduleChildren?: React.ReactNode;
22
- onLabwareClick?: () => void;
23
- }
24
- interface BaseDeckProps {
25
- deckConfig: DeckConfiguration;
26
- robotType: RobotType;
27
- labwareOnDeck?: LabwareOnDeck[];
28
- modulesOnDeck?: ModuleOnDeck[];
29
- deckLayerBlocklist?: string[];
30
- showExpansion?: boolean;
31
- lightFill?: string;
32
- mediumFill?: string;
33
- darkFill?: string;
34
- children?: React.ReactNode;
35
- showSlotLabels?: boolean;
36
- /** whether to make wrapping svg tag animatable via @react-spring/web, defaults to false */
37
- animatedSVG?: boolean;
38
- /** extra props to pass to svg tag */
39
- svgProps?: React.ComponentProps<typeof Svg>;
40
- }
41
- export declare function BaseDeck(props: BaseDeckProps): JSX.Element;
42
- export {};
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { CutoutId, DeckDefinition, ModuleType } from '@opentrons/shared-data';
3
- interface SingleSlotFixtureProps extends React.SVGProps<SVGGElement> {
4
- cutoutId: CutoutId;
5
- deckDefinition: DeckDefinition;
6
- moduleType?: ModuleType;
7
- fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
8
- slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
9
- showExpansion?: boolean;
10
- }
11
- export declare function SingleSlotFixture(props: SingleSlotFixtureProps): JSX.Element | null;
12
- export {};
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare function SlotBase(props: React.SVGProps<SVGPathElement>): JSX.Element;
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare function SlotClip(props: React.SVGProps<SVGPathElement>): JSX.Element;
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
3
- export type StagingAreaLocation = 'cutoutA3' | 'cutoutB3' | 'cutoutC3' | 'cutoutD3';
4
- interface StagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
5
- cutoutId: StagingAreaLocation;
6
- deckDefinition: DeckDefinition;
7
- moduleType?: ModuleType;
8
- fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
9
- slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
10
- showExtensions?: boolean;
11
- }
12
- export declare function StagingAreaFixture(props: StagingAreaFixtureProps): JSX.Element | null;
13
- export {};
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
3
- import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
4
- interface WasteChuteFixtureProps extends React.SVGProps<SVGGElement> {
5
- cutoutId: typeof WASTE_CHUTE_CUTOUT;
6
- deckDefinition: DeckDefinition;
7
- moduleType?: ModuleType;
8
- fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
9
- wasteChuteColor?: string;
10
- showExtensions?: boolean;
11
- }
12
- export declare function WasteChuteFixture(props: WasteChuteFixtureProps): JSX.Element | null;
13
- interface WasteChuteProps {
14
- wasteIconColor: string;
15
- backgroundColor: string;
16
- }
17
- /**
18
- * a deck map foreign object representing the physical location of the waste chute connected to the deck
19
- */
20
- export declare function WasteChute(props: WasteChuteProps): JSX.Element;
21
- export {};
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
3
- import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
4
- interface WasteChuteStagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
5
- cutoutId: typeof WASTE_CHUTE_CUTOUT;
6
- deckDefinition: DeckDefinition;
7
- moduleType?: ModuleType;
8
- fixtureBaseColor?: React.SVGProps<SVGPathElement>['fill'];
9
- slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
10
- wasteChuteColor?: string;
11
- showExtensions?: boolean;
12
- }
13
- export declare function WasteChuteStagingAreaFixture(props: WasteChuteStagingAreaFixtureProps): JSX.Element | null;
14
- export {};
@@ -1,4 +0,0 @@
1
- import type { DeckConfiguration } from '@opentrons/shared-data';
2
- export declare const STANDARD_SLOT_DECK_CONFIG_FIXTURE: DeckConfiguration;
3
- export declare const EXTENDED_DECK_CONFIG_FIXTURE: DeckConfiguration;
4
- export declare const WASTE_CHUTE_DECK_CONFIG_FIXTURE: DeckConfiguration;
@@ -1,5 +0,0 @@
1
- export * from './BaseDeck';
2
- export * from './SingleSlotFixture';
3
- export * from './StagingAreaFixture';
4
- export * from './WasteChuteFixture';
5
- export * from './WasteChuteStagingAreaFixture';
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import type { RobotType } from '@opentrons/shared-data';
3
- export interface DeckFromLayersProps {
4
- robotType: RobotType;
5
- layerBlocklist: string[];
6
- }
7
- /**
8
- * a component that renders an OT-2 deck from the V3 deck definition layers property
9
- * takes a robot type prop to protect against an attempted Flex render
10
- */
11
- export declare function DeckFromLayers(props: DeckFromLayersProps): JSX.Element | null;
@@ -1,14 +0,0 @@
1
- import type { RobotType } from '@opentrons/shared-data';
2
- export type TrashCutoutId = 'cutoutA1' | 'cutoutB1' | 'cutoutC1' | 'cutoutD1' | 'cutoutA3' | 'cutoutB3' | 'cutoutC3' | 'cutoutD3';
3
- interface FlexTrashProps {
4
- robotType: RobotType;
5
- trashIconColor: string;
6
- backgroundColor: string;
7
- trashCutoutId?: TrashCutoutId;
8
- }
9
- /**
10
- * Component to render Opentrons Flex trash
11
- * For use as a RobotWorkspace child component
12
- */
13
- export declare const FlexTrash: ({ robotType, trashIconColor, backgroundColor, trashCutoutId, }: FlexTrashProps) => JSX.Element | null;
14
- export {};
@@ -1,17 +0,0 @@
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';
4
- import type { StyleProps } from '../../primitives';
5
- interface MoveLabwareOnDeckProps extends StyleProps {
6
- robotType: RobotType;
7
- movedLabwareDef: LabwareDefinition2;
8
- initialLabwareLocation: LabwareLocation;
9
- finalLabwareLocation: LabwareLocation;
10
- loadedModules: LoadedModule[];
11
- loadedLabware: LoadedLabware[];
12
- deckConfig: DeckConfiguration;
13
- backgroundItems?: React.ReactNode;
14
- deckFill?: string;
15
- }
16
- export declare function MoveLabwareOnDeck(props: MoveLabwareOnDeckProps): JSX.Element | null;
17
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function FixedBase(): JSX.Element;
3
- export declare function FixedTrash(): JSX.Element;
4
- export declare function DoorStops(): JSX.Element;
5
- export declare function MetalFrame(): JSX.Element;
6
- export declare function RemovableDeckOutline(): JSX.Element;
7
- export declare function SlotRidges(): JSX.Element;
8
- export declare function SlotNumbers(): JSX.Element;
9
- export declare function CalibrationMarkings(): JSX.Element;
10
- export declare function RemovalHandle(): JSX.Element;
11
- export declare function ScrewHoles(): JSX.Element;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { Box } from '../../primitives';
3
- export interface RobotCoordsForeignDivProps {
4
- width?: string | number;
5
- height?: string | number;
6
- x?: string | number;
7
- y?: string | number;
8
- children?: React.ReactNode;
9
- outerProps?: any;
10
- innerDivProps?: React.ComponentProps<typeof Box>;
11
- transformWithSVG?: boolean;
12
- extraTransform?: string;
13
- }
14
- export declare const RobotCoordsForeignDiv: (props: RobotCoordsForeignDivProps) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { Flex, ForeignObject } from '../../primitives';
3
- export interface RobotCoordsForeignObjectProps {
4
- width: string | number;
5
- height: string | number;
6
- x: string | number;
7
- y: string | number;
8
- children?: React.ReactNode;
9
- foreignObjectProps?: React.ComponentProps<typeof ForeignObject>;
10
- flexProps?: React.ComponentProps<typeof Flex>;
11
- }
12
- export declare const RobotCoordsForeignObject: (props: RobotCoordsForeignObjectProps) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- export interface RobotCoordsTextProps extends React.ComponentProps<'text'> {
3
- x: number;
4
- y: number;
5
- children?: React.ReactNode;
6
- }
7
- /** SVG text reflected to use take robot coordinates as props */
8
- export declare function RobotCoordsText(props: RobotCoordsTextProps): JSX.Element;
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- import { StyleProps } from '../../primitives';
3
- import type { DeckDefinition, DeckSlot } from '@opentrons/shared-data';
4
- export interface RobotWorkSpaceRenderProps {
5
- deckSlotsById: {
6
- [slotId: string]: DeckSlot;
7
- };
8
- getRobotCoordsFromDOMCoords: (domX: number, domY: number) => {
9
- x: number;
10
- y: number;
11
- };
12
- }
13
- export interface RobotWorkSpaceProps extends StyleProps {
14
- deckDef?: DeckDefinition;
15
- viewBox?: string | null;
16
- children?: (props: RobotWorkSpaceRenderProps) => React.ReactNode;
17
- deckLayerBlocklist?: string[];
18
- showDeckLayers?: boolean;
19
- id?: string;
20
- }
21
- export declare function RobotWorkSpace(props: RobotWorkSpaceProps): JSX.Element | null;
@@ -1,12 +0,0 @@
1
- import type { RobotType } from '@opentrons/shared-data';
2
- interface SlotLabelsProps {
3
- robotType: RobotType;
4
- color?: string;
5
- show4thColumn?: boolean;
6
- }
7
- /**
8
- * Component to render Opentrons Flex slot labels
9
- * For use as a RobotWorkspace child component
10
- */
11
- export declare const SlotLabels: ({ robotType, color, show4thColumn, }: SlotLabelsProps) => JSX.Element | null;
12
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="jest" />
2
- export declare const getDeckDefinitions: jest.Mock<{}, []>;
@@ -1 +0,0 @@
1
- export declare const ALL_OT2_DECK_LAYERS: readonly ["fixedBase", "fixedTrash", "doorStops", "metalFrame", "removableDeckOutline", "slotRidges", "slotNumbers", "calibrationMarkings", "removalHandle", "screwHoles"];
@@ -1,2 +0,0 @@
1
- import type { DeckDefinition } from '@opentrons/shared-data';
2
- export declare function getDeckDefinitions(): Record<string, DeckDefinition>;
@@ -1,9 +0,0 @@
1
- export * from './DeckFromLayers';
2
- export * from './FlexTrash';
3
- export * from './getDeckDefinitions';
4
- export * from './MoveLabwareOnDeck';
5
- export * from './RobotCoordsForeignDiv';
6
- export * from './RobotCoordsForeignObject';
7
- export * from './RobotCoordsText';
8
- export * from './RobotWorkSpace';
9
- export * from './SlotLabels';
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
3
- interface EmptyConfigFixtureProps {
4
- deckDefinition: DeckDefinition;
5
- fixtureLocation: CutoutId;
6
- handleClickAdd: (fixtureLocation: CutoutId) => void;
7
- }
8
- export declare function EmptyConfigFixture(props: EmptyConfigFixtureProps): JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
3
- interface StagingAreaConfigFixtureProps {
4
- deckDefinition: DeckDefinition;
5
- fixtureLocation: CutoutId;
6
- handleClickRemove?: (fixtureLocation: CutoutId) => void;
7
- }
8
- export declare function StagingAreaConfigFixture(props: StagingAreaConfigFixtureProps): JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
3
- interface TrashBinConfigFixtureProps {
4
- deckDefinition: DeckDefinition;
5
- fixtureLocation: CutoutId;
6
- handleClickRemove?: (fixtureLocation: CutoutId) => void;
7
- }
8
- export declare function TrashBinConfigFixture(props: TrashBinConfigFixtureProps): JSX.Element;
9
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
3
- interface WasteChuteConfigFixtureProps {
4
- deckDefinition: DeckDefinition;
5
- fixtureLocation: CutoutId;
6
- handleClickRemove?: (fixtureLocation: CutoutId) => void;
7
- hasStagingAreas?: boolean;
8
- }
9
- export declare function WasteChuteConfigFixture(props: WasteChuteConfigFixtureProps): JSX.Element;
10
- export {};
@@ -1,15 +0,0 @@
1
- /**
2
- * These are Flex deck configurator-only values to position a foreign object
3
- * Position is relative to deck definition slot positions and a custom stroke applied to the single slot fixture SVG
4
- */
5
- export declare const FIXTURE_HEIGHT = 102;
6
- export declare const SINGLE_SLOT_FIXTURE_WIDTH = 243.5;
7
- export declare const STAGING_AREA_FIXTURE_WIDTH = 314.5;
8
- export declare const COLUMN_1_X_ADJUSTMENT = -100;
9
- export declare const COLUMN_3_X_ADJUSTMENT = -15.5;
10
- export declare const Y_ADJUSTMENT = -8;
11
- export declare const STAGING_AREA_DISPLAY_NAME = "Staging area";
12
- export declare const TRASH_BIN_DISPLAY_NAME = "Trash bin";
13
- export declare const WASTE_CHUTE_DISPLAY_NAME = "Waste chute";
14
- export declare const CONFIG_STYLE_READ_ONLY: import("styled-components").FlattenSimpleInterpolation;
15
- export declare const CONFIG_STYLE_EDITABLE: import("styled-components").FlattenSimpleInterpolation;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import type { CutoutId, DeckConfiguration } from '@opentrons/shared-data';
3
- interface DeckConfiguratorProps {
4
- deckConfig: DeckConfiguration;
5
- handleClickAdd: (cutoutId: CutoutId) => void;
6
- handleClickRemove: (cutoutId: CutoutId) => void;
7
- lightFill?: string;
8
- darkFill?: string;
9
- readOnly?: boolean;
10
- showExpansion?: boolean;
11
- children?: React.ReactNode;
12
- }
13
- export declare function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element;
14
- export {};
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import type { DeckSlot, RobotType } from '@opentrons/shared-data';
3
- interface LegacyDeckSlotLocationProps extends React.SVGProps<SVGGElement> {
4
- robotType: RobotType;
5
- slotName: DeckSlot['id'];
6
- slotBaseColor?: React.SVGProps<SVGPathElement>['fill'];
7
- slotClipColor?: React.SVGProps<SVGPathElement>['stroke'];
8
- }
9
- export declare const OT2_FIXED_TRASH_X_DIMENSION = 172.86;
10
- export declare const OT2_FIXED_TRASH_Y_DIMENSION = 165.86;
11
- /**
12
- * This is a legacy component for rendering an OT-2 deck slot by reference to the V4 deck definition
13
- */
14
- export declare function LegacyDeckSlotLocation(props: LegacyDeckSlotLocationProps): JSX.Element | null;
15
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function Opentrons96DeepWellAdapter(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function Opentrons96FlatBottomAdapter(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function OpentronsAluminumFlatBottomPlate(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function OpentronsFlex96TiprackAdapter(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function OpentronsUniversalFlatAdapter(): JSX.Element;
@@ -1,19 +0,0 @@
1
- import { Opentrons96DeepWellAdapter } from './Opentrons96DeepWellAdapter';
2
- import { Opentrons96FlatBottomAdapter } from './Opentrons96FlatBottomAdapter';
3
- import { OpentronsUniversalFlatAdapter } from './OpentronsUniversalFlatAdapter';
4
- import { OpentronsAluminumFlatBottomPlate } from './OpentronsAluminumFlatBottomPlate';
5
- import { OpentronsFlex96TiprackAdapter } from './OpentronsFlex96TiprackAdapter';
6
- declare const LABWARE_ADAPTER_LOADNAME_PATHS: {
7
- opentrons_96_deep_well_adapter: typeof Opentrons96DeepWellAdapter;
8
- opentrons_96_flat_bottom_adapter: typeof Opentrons96FlatBottomAdapter;
9
- opentrons_aluminum_flat_bottom_plate: typeof OpentronsAluminumFlatBottomPlate;
10
- opentrons_flex_96_tiprack_adapter: typeof OpentronsFlex96TiprackAdapter;
11
- opentrons_universal_flat_adapter: typeof OpentronsUniversalFlatAdapter;
12
- };
13
- export type LabwareAdapterLoadName = keyof typeof LABWARE_ADAPTER_LOADNAME_PATHS;
14
- export declare const labwareAdapterLoadNames: string[];
15
- export interface LabwareAdapterProps {
16
- labwareLoadName: LabwareAdapterLoadName;
17
- }
18
- export declare const LabwareAdapter: (props: LabwareAdapterProps) => JSX.Element | null;
19
- export {};
@@ -1,42 +0,0 @@
1
- import * as React from 'react';
2
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
3
- import type { HighlightedWellLabels, WellMouseEvent, WellFill, WellStroke, WellGroup } from './labwareInternals/types';
4
- import type { CSSProperties } from 'styled-components';
5
- export declare const WELL_LABEL_OPTIONS: {
6
- readonly SHOW_LABEL_INSIDE: "SHOW_LABEL_INSIDE";
7
- readonly SHOW_LABEL_OUTSIDE: "SHOW_LABEL_OUTSIDE";
8
- };
9
- export type WellLabelOption = keyof typeof WELL_LABEL_OPTIONS;
10
- export interface LabwareRenderProps {
11
- /** Labware definition to render */
12
- definition: LabwareDefinition2;
13
- /** Opional Prop for labware on heater shakers sitting on right side of the deck */
14
- shouldRotateAdapterOrientation?: boolean;
15
- /** option to show well labels inside or outside of labware outline */
16
- wellLabelOption?: WellLabelOption;
17
- /** wells to highlight */
18
- highlightedWells?: WellGroup | null;
19
- /** option for none highlighted wells to be disabled */
20
- disabledWells?: WellGroup[];
21
- missingTips?: WellGroup | null;
22
- /** color to render well labels */
23
- wellLabelColor?: string;
24
- /** option to highlight well labels with specified color */
25
- highlightedWellLabels?: HighlightedWellLabels;
26
- selectedWells?: WellGroup | null;
27
- /** CSS color to fill specified wells */
28
- wellFill?: WellFill;
29
- /** CSS color to stroke specified wells */
30
- wellStroke?: WellStroke;
31
- /** CSS color to stroke the labware outline */
32
- labwareStroke?: CSSProperties['stroke'];
33
- /** adds thicker blue border with blur to labware */
34
- highlight?: boolean;
35
- /** Optional callback, called with WellMouseEvent args onMouseEnter */
36
- onMouseEnterWell?: (e: WellMouseEvent) => unknown;
37
- /** Optional callback, called with WellMouseEvent args onMouseLeave */
38
- onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
39
- gRef?: React.RefObject<SVGGElement>;
40
- onLabwareClick?: () => void;
41
- }
42
- export declare const LabwareRender: (props: LabwareRenderProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './labwareInternals';
2
- export * from './LabwareRender';
3
- export * from './labwareInternals/types';
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
3
- import type { CSSProperties } from 'styled-components';
4
- export interface FilledWellsProps {
5
- definition: LabwareDefinition2;
6
- fillByWell: Record<string, CSSProperties['fill']>;
7
- }
8
- declare function FilledWellsComponent(props: FilledWellsProps): JSX.Element;
9
- export declare const FilledWells: React.MemoExoticComponent<typeof FilledWellsComponent>;
10
- export {};
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CSSProperties } from 'styled-components';
3
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
4
- export interface LabwareOutlineProps {
5
- /** Labware definition to outline */
6
- definition?: LabwareDefinition2;
7
- /** x dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to 127.76 */
8
- width?: number;
9
- /** y dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to 85.48 */
10
- height?: number;
11
- /** if this labware is a tip rack, darken background and lighten borderx dimension in mm of this labware, used if definition doesn't supply dimensions, defaults to false */
12
- isTiprack?: boolean;
13
- /** adds thicker blue border with blur to labware, defaults to false */
14
- highlight?: boolean;
15
- /** [legacy] override the border color */
16
- stroke?: CSSProperties['stroke'];
17
- }
18
- export declare function LabwareOutline(props: LabwareOutlineProps): JSX.Element;
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
3
- import type { WellMouseEvent } from './types';
4
- export interface StaticLabwareProps {
5
- /** Labware definition to render */
6
- definition: LabwareDefinition2;
7
- /** Add thicker blurred blue border to labware, defaults to false */
8
- highlight?: boolean;
9
- /** Optional callback to be executed when entire labware element is clicked */
10
- onLabwareClick?: () => void;
11
- /** Optional callback to be executed when mouse enters a well element */
12
- onMouseEnterWell?: (e: WellMouseEvent) => unknown;
13
- /** Optional callback to be executed when mouse leaves a well element */
14
- onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
15
- }
16
- export declare function StaticLabwareComponent(props: StaticLabwareProps): JSX.Element;
17
- export declare const StaticLabware: React.MemoExoticComponent<typeof StaticLabwareComponent>;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
3
- import type { CSSProperties } from 'styled-components';
4
- export interface StrokedWellProps {
5
- definition: LabwareDefinition2;
6
- strokeByWell: Record<string, CSSProperties['stroke']>;
7
- }
8
- export declare function StrokedWellsComponent(props: StrokedWellProps): JSX.Element;
9
- export declare const StrokedWells: React.MemoExoticComponent<typeof StrokedWellsComponent>;
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import type { LabwareDefinition2 } from '@opentrons/shared-data';
3
- import type { WellGroup } from './types';
4
- type WellContents = 'tipPresent' | 'tipMissing' | 'defaultWell' | 'disabledWell' | 'highlightedWell' | 'selectedWell';
5
- export interface StyledWellProps {
6
- wellContents: WellContents;
7
- definition: LabwareDefinition2;
8
- wells: WellGroup;
9
- }
10
- export declare const STYLE_BY_WELL_CONTENTS: {
11
- [wellContents in WellContents]: {
12
- stroke: React.CSSProperties['stroke'];
13
- fill: React.CSSProperties['fill'];
14
- strokeWidth: React.CSSProperties['strokeWidth'];
15
- };
16
- };
17
- declare function StyledWellsComponent(props: StyledWellProps): JSX.Element;
18
- export declare const StyledWells: React.MemoExoticComponent<typeof StyledWellsComponent>;
19
- export {};
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import type { LabwareWell } from '@opentrons/shared-data';
3
- import type { WellMouseEvent } from './types';
4
- import type { StyleProps } from '../../../primitives';
5
- export declare const INTERACTIVE_WELL_DATA_ATTRIBUTE = "data-wellname";
6
- export interface WellProps extends StyleProps {
7
- /** Well Name (eg 'A1') */
8
- wellName: string;
9
- /** well object from labware definition */
10
- well: LabwareWell;
11
- stroke: React.CSSProperties['stroke'];
12
- strokeWidth: React.CSSProperties['strokeWidth'];
13
- fill: React.CSSProperties['fill'];
14
- /** Optional callback, called with WellMouseEvent args onMouseOver */
15
- onMouseEnterWell?: (e: WellMouseEvent) => unknown;
16
- onMouseLeaveWell?: (e: WellMouseEvent) => unknown;
17
- }
18
- export declare function WellComponent(props: WellProps): JSX.Element;
19
- export declare const Well: React.MemoExoticComponent<typeof WellComponent>;