@opentrons/components 0.1.6-alpha.6 → 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 (353) hide show
  1. package/Makefile +4 -0
  2. package/lib/__tests__/utils.test.d.ts +1 -0
  3. package/lib/alerts/AlertItem.d.ts +21 -0
  4. package/lib/alerts/index.d.ts +1 -0
  5. package/lib/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
  6. package/lib/atoms/Checkbox/index.d.ts +24 -0
  7. package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +1 -0
  8. package/lib/atoms/CheckboxField/index.d.ts +20 -0
  9. package/lib/atoms/Chip/__tests__/Chip.test.d.ts +1 -0
  10. package/lib/atoms/Chip/index.d.ts +20 -0
  11. package/lib/atoms/Divider/index.d.ts +5 -0
  12. package/lib/atoms/InputField/__tests__/InputField.test.d.ts +1 -0
  13. package/lib/atoms/InputField/index.d.ts +68 -0
  14. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
  15. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
  16. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
  17. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
  18. package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
  19. package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +1 -0
  20. package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +1 -0
  21. package/lib/atoms/ListButton/index.d.ts +11 -0
  22. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
  23. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
  24. package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
  25. package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
  26. package/lib/atoms/ListItem/index.d.ts +14 -0
  27. package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
  28. package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
  29. package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
  30. package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
  31. package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
  32. package/lib/atoms/MenuList/index.d.ts +8 -0
  33. package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
  34. package/lib/atoms/Snackbar/index.d.ts +7 -0
  35. package/lib/atoms/StepMeter/index.d.ts +7 -0
  36. package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
  37. package/lib/atoms/StyledText/StyledText.d.ts +154 -0
  38. package/lib/atoms/StyledText/index.d.ts +2 -0
  39. package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
  40. package/lib/atoms/Tag/index.d.ts +13 -0
  41. package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
  42. package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
  43. package/lib/atoms/Toast/index.d.ts +25 -0
  44. package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
  45. package/lib/atoms/ToggleGroup/index.d.ts +9 -0
  46. package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  47. package/lib/atoms/Tooltip/index.d.ts +11 -0
  48. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -0
  49. package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
  50. package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
  51. package/lib/atoms/buttons/LargeButton.d.ts +17 -0
  52. package/lib/atoms/buttons/PrimaryButton.d.ts +1 -0
  53. package/lib/atoms/buttons/RadioButton.d.ts +21 -0
  54. package/lib/atoms/buttons/SecondaryButton.d.ts +7 -0
  55. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +1 -0
  56. package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +1 -0
  57. package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
  58. package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
  59. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -0
  60. package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
  61. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -0
  62. package/lib/atoms/buttons/index.d.ts +6 -0
  63. package/lib/atoms/index.d.ts +20 -0
  64. package/lib/barrel.d.ts +3 -0
  65. package/lib/buttons/Button.d.ts +50 -0
  66. package/lib/buttons/DeprecatedPrimaryButton.d.ts +8 -0
  67. package/lib/buttons/FlatButton.d.ts +5 -0
  68. package/lib/buttons/IconButton.d.ts +14 -0
  69. package/lib/buttons/OutlineButton.d.ts +8 -0
  70. package/lib/buttons/index.d.ts +5 -0
  71. package/lib/controls/ControlInfo.d.ts +6 -0
  72. package/lib/controls/LabeledButton.d.ts +8 -0
  73. package/lib/controls/LabeledCheckbox.d.ts +10 -0
  74. package/lib/controls/LabeledControl.d.ts +7 -0
  75. package/lib/controls/LabeledRadioGroup.d.ts +8 -0
  76. package/lib/controls/LabeledSelect.d.ts +9 -0
  77. package/lib/controls/LabeledToggle.d.ts +11 -0
  78. package/lib/controls/StackedLabeledControl.d.ts +7 -0
  79. package/lib/controls/ToggleButton.d.ts +5 -0
  80. package/lib/controls/index.d.ts +6 -0
  81. package/lib/forms/DeprecatedCheckboxField.d.ts +33 -0
  82. package/lib/forms/DropdownField.d.ts +38 -0
  83. package/lib/forms/FormGroup.d.ts +19 -0
  84. package/lib/forms/LegacyInputField.d.ts +51 -0
  85. package/lib/forms/RadioGroup.d.ts +29 -0
  86. package/lib/forms/Select.d.ts +26 -0
  87. package/lib/forms/SelectField.d.ts +33 -0
  88. package/lib/forms/ToggleField.d.ts +22 -0
  89. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +1 -0
  90. package/lib/forms/__tests__/DropdownField.test.d.ts +1 -0
  91. package/lib/forms/__tests__/InputField.test.d.ts +1 -0
  92. package/lib/forms/__tests__/Select.test.d.ts +1 -0
  93. package/lib/forms/__tests__/SelectField.test.d.ts +1 -0
  94. package/lib/forms/__tests__/ToggleField.test.d.ts +1 -0
  95. package/lib/forms/index.d.ts +8 -0
  96. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +49 -0
  97. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +12 -0
  98. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +2 -0
  99. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +2 -0
  100. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +13 -0
  101. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +20 -0
  102. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +14 -0
  103. package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +4 -0
  104. package/lib/hardware-sim/BaseDeck/index.d.ts +5 -0
  105. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +10 -0
  106. package/lib/hardware-sim/Deck/FlexTrash.d.ts +14 -0
  107. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +16 -0
  108. package/lib/hardware-sim/Deck/OT2Layers.d.ts +10 -0
  109. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +14 -0
  110. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +12 -0
  111. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +8 -0
  112. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +21 -0
  113. package/lib/hardware-sim/Deck/SlotLabels.d.ts +12 -0
  114. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +1 -0
  115. package/lib/hardware-sim/Deck/constants.d.ts +1 -0
  116. package/lib/hardware-sim/Deck/index.d.ts +8 -0
  117. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
  118. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +8 -0
  119. package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +10 -0
  120. package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +11 -0
  121. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +10 -0
  122. package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +12 -0
  123. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +10 -0
  124. package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +10 -0
  125. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +10 -0
  126. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +11 -0
  127. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +20 -0
  128. package/lib/hardware-sim/DeckConfigurator/index.d.ts +20 -0
  129. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +15 -0
  130. package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
  131. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +1 -0
  132. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +1 -0
  133. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +1 -0
  134. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
  135. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +1 -0
  136. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
  137. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +1 -0
  138. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +27 -0
  139. package/lib/hardware-sim/Labware/LabwareRender.d.ts +46 -0
  140. package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
  141. package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
  142. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -0
  143. package/lib/hardware-sim/Labware/index.d.ts +5 -0
  144. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +11 -0
  145. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +21 -0
  146. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
  147. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +25 -0
  148. package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +9 -0
  149. package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +19 -0
  150. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +20 -0
  151. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +12 -0
  152. package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
  153. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +1 -0
  154. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +1 -0
  155. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +8 -0
  156. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +12 -0
  157. package/lib/hardware-sim/Module/HeaterShaker.d.ts +4 -0
  158. package/lib/hardware-sim/Module/MagneticBlock.d.ts +1 -0
  159. package/lib/hardware-sim/Module/MagneticModule.d.ts +1 -0
  160. package/lib/hardware-sim/Module/ModuleTag.d.ts +9 -0
  161. package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
  162. package/lib/hardware-sim/Module/Temperature.d.ts +4 -0
  163. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +6 -0
  164. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +6 -0
  165. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +7 -0
  166. package/lib/hardware-sim/Module/index.d.ts +18 -0
  167. package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +4 -0
  168. package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +4 -0
  169. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +8 -0
  170. package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +1 -0
  171. package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +1 -0
  172. package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +1 -0
  173. package/lib/hardware-sim/Pipette/constants.d.ts +7 -0
  174. package/lib/hardware-sim/Pipette/index.d.ts +1 -0
  175. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +6 -0
  176. package/lib/hardware-sim/ProtocolDeck/index.d.ts +14 -0
  177. package/lib/hardware-sim/ProtocolDeck/types.d.ts +8 -0
  178. package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +1 -0
  179. package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +5 -0
  180. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +12 -0
  181. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +3 -0
  182. package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +10 -0
  183. package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +2 -0
  184. package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +4 -0
  185. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +3 -0
  186. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +7 -0
  187. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +16 -0
  188. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +2 -0
  189. package/lib/hardware-sim/index.d.ts +11 -0
  190. package/lib/hardware-sim/utils.d.ts +3 -0
  191. package/lib/helix-design-system/borders.d.ts +26 -0
  192. package/lib/helix-design-system/colors.d.ts +86 -0
  193. package/lib/helix-design-system/index.d.ts +4 -0
  194. package/lib/helix-design-system/product/index.d.ts +1 -0
  195. package/lib/helix-design-system/product/typography.d.ts +79 -0
  196. package/lib/helix-design-system/style.d.ts +1 -0
  197. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +1 -0
  198. package/lib/hooks/__tests__/useDrag.test.d.ts +1 -0
  199. package/lib/hooks/__tests__/useIdle.test.d.ts +1 -0
  200. package/lib/hooks/__tests__/useInterval.test.d.ts +1 -0
  201. package/lib/hooks/__tests__/useLongPress.test.d.ts +1 -0
  202. package/lib/hooks/__tests__/useMountEffect.test.d.ts +1 -0
  203. package/lib/hooks/__tests__/usePrevious.test.d.ts +1 -0
  204. package/lib/hooks/__tests__/useScrolling.test.d.ts +1 -0
  205. package/lib/hooks/__tests__/useSwipe.test.d.ts +1 -0
  206. package/lib/hooks/__tests__/useTimeout.test.d.ts +1 -0
  207. package/lib/hooks/__tests__/useToggle.test.d.ts +1 -0
  208. package/lib/hooks/index.d.ts +13 -0
  209. package/lib/hooks/useConditionalConfirm.d.ts +41 -0
  210. package/lib/hooks/useDrag.d.ts +22 -0
  211. package/lib/hooks/useIdle.d.ts +11 -0
  212. package/lib/hooks/useInterval.d.ts +11 -0
  213. package/lib/hooks/useLongPress.d.ts +19 -0
  214. package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
  215. package/lib/hooks/useMountEffect.d.ts +8 -0
  216. package/lib/hooks/usePrevious.d.ts +9 -0
  217. package/lib/hooks/useScrolling.d.ts +1 -0
  218. package/lib/hooks/useSelectDeckLocation/index.d.ts +18 -0
  219. package/lib/hooks/useSwipe.d.ts +12 -0
  220. package/lib/hooks/useTimeout.d.ts +9 -0
  221. package/lib/hooks/useToggle.d.ts +22 -0
  222. package/lib/icons/Icon.d.ts +34 -0
  223. package/lib/icons/ModuleIcon.d.ts +11 -0
  224. package/lib/icons/NotificationIcon.d.ts +12 -0
  225. package/lib/icons/icon-data.d.ts +4 -0
  226. package/lib/icons/index.d.ts +4 -0
  227. package/lib/images/index.d.ts +1 -0
  228. package/lib/images/labware/index.d.ts +1 -0
  229. package/lib/images/labware/measurement-guide/index.d.ts +13 -0
  230. package/lib/index.d.ts +26 -0
  231. package/lib/{index.mjs → index.js} +8783 -6217
  232. package/lib/instrument/InstrumentDiagram.d.ts +11 -0
  233. package/lib/instrument/InstrumentGroup.d.ts +11 -0
  234. package/lib/instrument/InstrumentInfo.d.ts +18 -0
  235. package/lib/instrument/PipetteSelect.d.ts +20 -0
  236. package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +1 -0
  237. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +1 -0
  238. package/lib/instrument/index.d.ts +4 -0
  239. package/lib/interaction-enhancers/ClickOutside.d.ts +18 -0
  240. package/lib/interaction-enhancers/HandleKeypress.d.ts +27 -0
  241. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +1 -0
  242. package/lib/interaction-enhancers/index.d.ts +4 -0
  243. package/lib/interaction-enhancers/useHover.d.ts +33 -0
  244. package/lib/interaction-enhancers/useOnClickOutside.d.ts +5 -0
  245. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +7 -0
  246. package/lib/legacy-hardware-sim/ModuleItem.d.ts +17 -0
  247. package/lib/legacy-hardware-sim/index.d.ts +2 -0
  248. package/lib/lists/SidePanelGroup.d.ts +18 -0
  249. package/lib/lists/TitledList.d.ts +44 -0
  250. package/lib/lists/index.d.ts +2 -0
  251. package/lib/modals/AlertModal.d.ts +28 -0
  252. package/lib/modals/ContinueModal.d.ts +10 -0
  253. package/lib/modals/LegacyModal.d.ts +24 -0
  254. package/lib/modals/Modal.d.ts +24 -0
  255. package/lib/modals/ModalHeader.d.ts +13 -0
  256. package/lib/modals/ModalShell.d.ts +34 -0
  257. package/lib/modals/Overlay.d.ts +9 -0
  258. package/lib/modals/SpinnerModal.d.ts +13 -0
  259. package/lib/modals/SpinnerModalPage.d.ts +12 -0
  260. package/lib/modals/__tests__/Modal.test.d.ts +1 -0
  261. package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
  262. package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
  263. package/lib/modals/index.d.ts +9 -0
  264. package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
  265. package/lib/molecules/Banner/index.d.ts +23 -0
  266. package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
  267. package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
  268. package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
  269. package/lib/molecules/DeckLabel/index.d.ts +10 -0
  270. package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
  271. package/lib/molecules/DropdownMenu/index.d.ts +41 -0
  272. package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
  273. package/lib/molecules/InfoScreen/index.d.ts +6 -0
  274. package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
  275. package/lib/molecules/LiquidIcon/index.d.ts +9 -0
  276. package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +1 -0
  277. package/lib/molecules/ParametersTable/index.d.ts +10 -0
  278. package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
  279. package/lib/molecules/Tabs/index.d.ts +10 -0
  280. package/lib/molecules/index.d.ts +8 -0
  281. package/lib/nav/SidePanel.d.ts +6 -0
  282. package/lib/nav/index.d.ts +1 -0
  283. package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
  284. package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
  285. package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
  286. package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
  287. package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
  288. package/lib/organisms/Toolbox/index.d.ts +20 -0
  289. package/lib/organisms/index.d.ts +3 -0
  290. package/lib/primitives/Box.d.ts +7 -0
  291. package/lib/primitives/Btn.d.ts +59 -0
  292. package/lib/primitives/Flex.d.ts +7 -0
  293. package/lib/primitives/ForeignObject.d.ts +23 -0
  294. package/lib/primitives/Link.d.ts +11 -0
  295. package/lib/primitives/Svg.d.ts +23 -0
  296. package/lib/primitives/Text.d.ts +7 -0
  297. package/lib/primitives/__tests__/Box.test.d.ts +1 -0
  298. package/lib/primitives/__tests__/Btn.test.d.ts +1 -0
  299. package/lib/primitives/__tests__/Flex.test.d.ts +1 -0
  300. package/lib/primitives/__tests__/Link.test.d.ts +1 -0
  301. package/lib/primitives/__tests__/Svg.test.d.ts +1 -0
  302. package/lib/primitives/__tests__/Text.test.d.ts +1 -0
  303. package/lib/primitives/__tests__/primitives.test.d.ts +1 -0
  304. package/lib/primitives/__tests__/style-props.test.d.ts +1 -0
  305. package/lib/primitives/index.d.ts +9 -0
  306. package/lib/primitives/style-props.d.ts +4 -0
  307. package/lib/primitives/types.d.ts +95 -0
  308. package/lib/robot-types.d.ts +1 -0
  309. package/lib/slotmap/OT2SlotMap.d.ts +9 -0
  310. package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +1 -0
  311. package/lib/slotmap/index.d.ts +1 -0
  312. package/lib/structure/Card.d.ts +18 -0
  313. package/lib/structure/LabeledValue.d.ts +12 -0
  314. package/lib/structure/Pill.d.ts +18 -0
  315. package/lib/structure/Splash.d.ts +8 -0
  316. package/lib/structure/TitleBar.d.ts +17 -0
  317. package/lib/structure/index.d.ts +5 -0
  318. package/lib/style.css +3786 -0
  319. package/lib/styles/borders.d.ts +8 -0
  320. package/lib/styles/colors.d.ts +37 -0
  321. package/lib/styles/cursor.d.ts +10 -0
  322. package/lib/styles/flexbox.d.ts +34 -0
  323. package/lib/styles/index.d.ts +8 -0
  324. package/lib/styles/layout.d.ts +24 -0
  325. package/lib/styles/position.d.ts +5 -0
  326. package/lib/styles/spacing.d.ts +9 -0
  327. package/lib/styles/typography.d.ts +36 -0
  328. package/lib/testing/utils/index.d.ts +2 -0
  329. package/lib/testing/utils/matchers.d.ts +3 -0
  330. package/lib/testing/utils/renderWithProviders.d.ts +9 -0
  331. package/lib/tooltips/DeprecatedTooltip.d.ts +37 -0
  332. package/lib/tooltips/HoverTooltip.d.ts +36 -0
  333. package/lib/tooltips/LegacyTooltip.d.ts +35 -0
  334. package/lib/tooltips/__tests__/Tooltip.test.d.ts +1 -0
  335. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +1 -0
  336. package/lib/tooltips/__tests__/usePopper.test.d.ts +1 -0
  337. package/lib/tooltips/__tests__/useTooltip.test.d.ts +1 -0
  338. package/lib/tooltips/constants.d.ts +17 -0
  339. package/lib/tooltips/index.d.ts +8 -0
  340. package/lib/tooltips/styles.d.ts +12 -0
  341. package/lib/tooltips/types.d.ts +52 -0
  342. package/lib/tooltips/useHoverTooltip.d.ts +24 -0
  343. package/lib/tooltips/usePopper.d.ts +2 -0
  344. package/lib/tooltips/useTooltip.d.ts +31 -0
  345. package/lib/ui-style-constants/index.d.ts +4 -0
  346. package/lib/ui-style-constants/responsiveness.d.ts +3 -0
  347. package/lib/ui-style-constants/spacing.d.ts +18 -0
  348. package/lib/ui-style-constants/typography.d.ts +71 -0
  349. package/lib/ui-style-constants/viewport.d.ts +15 -0
  350. package/lib/utils.d.ts +15 -0
  351. package/package.json +5 -7
  352. package/tsconfig.json +5 -2
  353. package/{vite.config.ts → vite.config.mts} +19 -4
@@ -0,0 +1,17 @@
1
+ import type * as React from 'react';
2
+ import type { StyleProps } from '../../primitives';
3
+ import type { IconName } from '../../icons';
4
+ type LargeButtonTypes = 'primary' | 'secondary' | 'alert' | 'alertStroke' | 'alertAlt' | 'stroke';
5
+ interface LargeButtonProps extends StyleProps {
6
+ /** used for form submission */
7
+ type?: 'submit';
8
+ onClick?: () => void;
9
+ buttonType?: LargeButtonTypes;
10
+ buttonText: React.ReactNode;
11
+ iconName?: IconName;
12
+ disabled?: boolean;
13
+ /** aria-disabled for displaying snack bar. */
14
+ ariaDisabled?: boolean;
15
+ }
16
+ export declare function LargeButton(props: LargeButtonProps): JSX.Element;
17
+ export {};
@@ -0,0 +1 @@
1
+ export declare const PrimaryButton: import("styled-components").StyledComponent<"button", any, import("../../primitives").StyleProps, any>;
@@ -0,0 +1,21 @@
1
+ import type * as React from 'react';
2
+ import type { IconName } from '../../icons';
3
+ import type { StyleProps } from '../../primitives';
4
+ interface RadioButtonProps extends StyleProps {
5
+ buttonLabel: string | React.ReactNode;
6
+ buttonValue: string | number;
7
+ onChange: React.ChangeEventHandler<HTMLInputElement>;
8
+ disabled?: boolean;
9
+ iconName?: IconName;
10
+ isSelected?: boolean;
11
+ largeDesktopBorderRadius?: boolean;
12
+ radioButtonType?: 'large' | 'small';
13
+ subButtonLabel?: string;
14
+ id?: string;
15
+ maxLines?: number;
16
+ setNoHover?: () => void;
17
+ setHovered?: () => void;
18
+ error?: string | null;
19
+ }
20
+ export declare function RadioButton(props: RadioButtonProps): JSX.Element;
21
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { StyleProps } from '../../index';
2
+ interface SecondaryButtonProps extends StyleProps {
3
+ /** button action is dangerous and may have non-reversible side-effects for user */
4
+ isDangerous?: boolean;
5
+ }
6
+ export declare const SecondaryButton: import("styled-components").StyledComponent<"button", any, SecondaryButtonProps, never>;
7
+ export {};
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,6 @@
1
+ export * from './AlertPrimaryButton';
2
+ export * from './EmptySelectorButton';
3
+ export * from './LargeButton';
4
+ export * from './PrimaryButton';
5
+ export * from './RadioButton';
6
+ export * from './SecondaryButton';
@@ -0,0 +1,20 @@
1
+ export * from './buttons';
2
+ export * from './Checkbox';
3
+ export * from './CheckboxField';
4
+ export * from './Chip';
5
+ export * from './Divider';
6
+ export * from './InputField';
7
+ export * from './ListButton';
8
+ export * from './ListItem';
9
+ export * from './ListItem/ListItemChildren//ListItemDescriptor';
10
+ export * from './MenuList';
11
+ export * from './MenuList/MenuItem';
12
+ export * from './MenuList/OverflowBtn';
13
+ export * from './Snackbar';
14
+ export * from './StepMeter';
15
+ export * from './StepMeter';
16
+ export * from './StyledText';
17
+ export * from './Tag';
18
+ export * from './Toast';
19
+ export * from './ToggleGroup';
20
+ export * from './Tooltip';
@@ -0,0 +1,3 @@
1
+ export * from './hardware-sim';
2
+ export * from './primitives';
3
+ export * from './ui-style-constants';
@@ -0,0 +1,50 @@
1
+ import type * as React from 'react';
2
+ import { BUTTON_TYPE_BUTTON } from '../primitives';
3
+ import type { BUTTON_TYPE_SUBMIT, BUTTON_TYPE_RESET } from '../primitives';
4
+ import type { IconName } from '../icons';
5
+ import type { UseHoverTooltipTargetProps } from '../tooltips';
6
+ export interface ButtonProps {
7
+ /** id attribute */
8
+ id?: string;
9
+ /** click handler */
10
+ onClick?: React.MouseEventHandler;
11
+ /** name attribute */
12
+ name?: string;
13
+ /** title attribute */
14
+ title?: string;
15
+ /** disabled attribute (setting disabled removes onClick) */
16
+ disabled?: boolean | null | undefined;
17
+ /** use hover style even when not hovered */
18
+ hover?: boolean | null | undefined;
19
+ /** optional Icon name */
20
+ iconName?: IconName;
21
+ /** classes to apply */
22
+ className?: string;
23
+ /** inverts the default color/background/border of default button style */
24
+ inverted?: boolean;
25
+ /** contents of the button */
26
+ children?: React.ReactNode;
27
+ /** type of button (default "button") */
28
+ type?: typeof BUTTON_TYPE_SUBMIT | typeof BUTTON_TYPE_RESET | typeof BUTTON_TYPE_BUTTON;
29
+ /** ID of form that button is for */
30
+ form?: string;
31
+ /** custom element or component to use instead of `<button>` */
32
+ Component?: React.ComponentType<any> | keyof JSX.IntrinsicElements;
33
+ /** handlers for HoverTooltipComponent */
34
+ hoverTooltipHandlers?: UseHoverTooltipTargetProps | null | undefined;
35
+ /** html tabindex property */
36
+ tabIndex?: number;
37
+ /** catch all prop for pass-through props */
38
+ [name: string]: any;
39
+ }
40
+ /**
41
+ * Basic, un-styled button. You probably want to use a styled button
42
+ * instead. All buttons take the same props.
43
+ *
44
+ * If you need access to the ButtonProps type, you can:
45
+ * ```js
46
+ * import {type ButtonProps} from '@opentrons/components'
47
+ * ```
48
+ * @deprecated Use {@link Btn}
49
+ */
50
+ export declare function Button(props: ButtonProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { ButtonProps } from './Button';
2
+ /**
3
+ * Primary application button. Fills its container and has a dark
4
+ * background with white text
5
+ *
6
+ * @deprecated Use {@link PrimaryButton}
7
+ */
8
+ export declare function DeprecatedPrimaryButton(props: ButtonProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ButtonProps } from './Button';
2
+ /**
3
+ * Flat-styled button with a default width of `9rem` and no background fill
4
+ */
5
+ export declare function FlatButton(props: ButtonProps): JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { IconProps } from '../icons';
2
+ import type { ButtonProps } from './Button';
3
+ interface Props extends ButtonProps {
4
+ name: IconProps['name'];
5
+ spin?: IconProps['spin'];
6
+ }
7
+ /**
8
+ * FlatButton variant for a button that is a single icon. Takes props of
9
+ * both Button _and_ Icon. Use `name` to specify icon name.
10
+ *
11
+ * @deprecated Use {@link Btn} and {@link Icon}
12
+ */
13
+ export declare function IconButton(props: Props): JSX.Element;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ButtonProps } from './Button';
2
+ /**
3
+ * Button with no background fill and a dark border.
4
+ * Use inverted prop for buttons on dark backgrounds.
5
+ *
6
+ * @deprecated Use {@link SecondaryBtn}
7
+ */
8
+ export declare function OutlineButton(props: ButtonProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ export * from './Button';
2
+ export * from './FlatButton';
3
+ export * from './DeprecatedPrimaryButton';
4
+ export * from './IconButton';
5
+ export * from './OutlineButton';
@@ -0,0 +1,6 @@
1
+ import type * as React from 'react';
2
+ export interface ControlInfoProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ export declare function ControlInfo(props: ControlInfoProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type * as React from 'react';
2
+ import type { ButtonProps } from '../buttons';
3
+ export interface LabeledButtonProps {
4
+ label: string;
5
+ buttonProps: ButtonProps;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare function LabeledButton(props: LabeledButtonProps): JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type * as React from 'react';
2
+ export interface LabeledCheckboxProps {
3
+ label: string;
4
+ name: string;
5
+ value: boolean;
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ onChange: React.ChangeEventHandler<HTMLInputElement>;
9
+ }
10
+ export declare function LabeledCheckbox(props: LabeledCheckboxProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type * as React from 'react';
2
+ export interface LabeledControlProps {
3
+ label: string;
4
+ control: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare function LabeledControl(props: LabeledControlProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type * as React from 'react';
2
+ import type { RadioGroupProps } from '../forms';
3
+ export interface LabeledRadioGroupProps extends RadioGroupProps {
4
+ label: string;
5
+ children: React.ReactNode;
6
+ 'data-test'?: string;
7
+ }
8
+ export declare function LabeledRadioGroup(props: LabeledRadioGroupProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type * as React from 'react';
2
+ import type { DropdownFieldProps } from '../forms';
3
+ export interface LabeledSelectProps extends DropdownFieldProps {
4
+ label: string;
5
+ children: React.ReactNode;
6
+ /** optional data test id for the container */
7
+ 'data-test'?: string;
8
+ }
9
+ export declare function LabeledSelect(props: LabeledSelectProps): JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type * as React from 'react';
2
+ export interface LabeledToggleProps {
3
+ label: string;
4
+ toggledOn: boolean;
5
+ disabled?: boolean;
6
+ children?: React.ReactNode;
7
+ onClick: () => unknown;
8
+ /** optional data test id for the container */
9
+ 'data-test'?: string;
10
+ }
11
+ export declare function LabeledToggle(props: LabeledToggleProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type * as React from 'react';
2
+ export interface StackedLabeledControlProps {
3
+ label: string;
4
+ control: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare function StackedLabeledControl(props: StackedLabeledControlProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ButtonProps } from '../buttons';
2
+ export interface ToggleButtonProps extends ButtonProps {
3
+ toggledOn: boolean;
4
+ }
5
+ export declare function ToggleButton(props: ToggleButtonProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ export * from './ToggleButton';
2
+ export * from './LabeledToggle';
3
+ export * from './LabeledButton';
4
+ export * from './LabeledSelect';
5
+ export * from './LabeledCheckbox';
6
+ export * from './LabeledRadioGroup';
@@ -0,0 +1,33 @@
1
+ import type * as React from 'react';
2
+ /**
3
+ * Checkbox Field Properties.
4
+ */
5
+ export interface DeprecatedCheckboxFieldProps {
6
+ /** change handler */
7
+ onChange: React.ChangeEventHandler;
8
+ /** checkbox is checked if value is true */
9
+ value?: boolean;
10
+ /** classes to apply */
11
+ className?: string;
12
+ /** classes to apply to inner label text div. Deprecated. use labelProps.className */
13
+ labelTextClassName?: string | null | undefined;
14
+ /** name of field in form */
15
+ name?: string;
16
+ /** label text for checkbox */
17
+ label?: string;
18
+ /** if is included, checkbox will use error style. The content of the string is ignored. */
19
+ error?: string | null | undefined;
20
+ /** checkbox is disabled if value is true */
21
+ disabled?: boolean;
22
+ /** html tabindex property */
23
+ tabIndex?: number;
24
+ /** props passed into label div. TODO IMMEDIATELY what is the Flow type? */
25
+ labelProps?: React.ComponentProps<'div'>;
26
+ /** if true, render indeterminate icon */
27
+ isIndeterminate?: boolean;
28
+ }
29
+ /**
30
+ * Checkbox Form Field
31
+ * @deprecated
32
+ */
33
+ export declare function DeprecatedCheckboxField(props: DeprecatedCheckboxFieldProps): JSX.Element;
@@ -0,0 +1,38 @@
1
+ import type * as React from 'react';
2
+ export interface LegacyDropdownOption {
3
+ name: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ }
7
+ export type Options = LegacyDropdownOption[];
8
+ export interface DropdownFieldProps {
9
+ /** change handler */
10
+ onChange: React.ChangeEventHandler<HTMLSelectElement>;
11
+ /** focus handler */
12
+ onFocus?: React.FocusEventHandler<HTMLSelectElement>;
13
+ /** blur handler */
14
+ onBlur?: React.FocusEventHandler<HTMLSelectElement>;
15
+ /** value that is selected */
16
+ value?: string | null | undefined;
17
+ /** optional id for the <select> element */
18
+ id?: string;
19
+ /** name of field in form */
20
+ name?: string;
21
+ /** Array of {name, value} data */
22
+ options: Options;
23
+ /** classes to apply */
24
+ className?: string;
25
+ /** optional caption. hidden when `error` is given */
26
+ caption?: string;
27
+ /** if included, DropdownField will use error style and display error instead of caption */
28
+ error?: string | null | undefined;
29
+ /** dropdown is disabled if value is true */
30
+ disabled?: boolean;
31
+ /** html tabindex property */
32
+ tabIndex?: number;
33
+ /** automatically focus field on render */
34
+ autoFocus?: boolean;
35
+ /** if true, render indeterminate unselectable option */
36
+ isIndeterminate?: boolean;
37
+ }
38
+ export declare function DropdownField(props: DropdownFieldProps): JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type * as React from 'react';
2
+ import type { HoverTooltipHandlers } from '../tooltips';
3
+ export interface FormGroupProps {
4
+ /** text label */
5
+ label?: string;
6
+ /** form content */
7
+ children?: React.ReactNode;
8
+ /** classes to apply */
9
+ className?: string | null | undefined;
10
+ /** if is included, FormGroup title will use error style. The content of the string is ignored. */
11
+ error?: string | null | undefined;
12
+ /** enable disabled style. Overridden by truthy `error` */
13
+ disabled?: boolean | null | undefined;
14
+ /** handlers for HoverTooltipComponent */
15
+ hoverTooltipHandlers?: HoverTooltipHandlers | null | undefined;
16
+ /** boolean indicating formGroup used in pipette Settings slideout */
17
+ isPipetteSettingsSlideout?: boolean;
18
+ }
19
+ export declare function FormGroup(props: FormGroupProps): JSX.Element;
@@ -0,0 +1,51 @@
1
+ import type * as React from 'react';
2
+ export declare const INPUT_TYPE_TEXT: 'text';
3
+ export declare const INPUT_TYPE_PASSWORD: 'password';
4
+ export interface LegacyInputFieldProps {
5
+ /** field is disabled if value is true */
6
+ disabled?: boolean;
7
+ /** change handler */
8
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
9
+ /** classes to apply to outer element */
10
+ className?: string;
11
+ /** inline label text. DEPRECATED */
12
+ label?: string;
13
+ /** classes to apply to inner label text div */
14
+ labelTextClassName?: string | null | undefined;
15
+ /** name of field in form */
16
+ name?: string;
17
+ /** optional ID of <input> element */
18
+ id?: string;
19
+ /** placeholder text */
20
+ placeholder?: string;
21
+ /** optional suffix component, appears to the right of input text */
22
+ units?: React.ReactNode;
23
+ /** current value of text in box, defaults to '' */
24
+ value?: string | null | undefined;
25
+ /** if included, InputField will use error style and display error instead of caption */
26
+ error?: string | null | undefined;
27
+ /** optional caption. hidden when `error` is given */
28
+ caption?: string | null | undefined;
29
+ /** appears to the right of the caption. Used for character limits, eg '0/45' */
30
+ secondaryCaption?: string | null | undefined;
31
+ /** optional input type (default "text") */
32
+ type?: typeof INPUT_TYPE_TEXT | typeof INPUT_TYPE_PASSWORD;
33
+ /** mouse click handler */
34
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => unknown;
35
+ /** focus handler */
36
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => unknown;
37
+ /** blur handler */
38
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => unknown;
39
+ /** makes input field read-only */
40
+ readOnly?: boolean | undefined;
41
+ /** html tabindex property */
42
+ tabIndex?: number;
43
+ /** automatically focus field on render */
44
+ autoFocus?: boolean;
45
+ /** if true, clear out value and add '-' placeholder */
46
+ isIndeterminate?: boolean;
47
+ }
48
+ /**
49
+ * @deprecated Use `InputField`
50
+ */
51
+ export declare function LegacyInputField(props: LegacyInputFieldProps): JSX.Element;
@@ -0,0 +1,29 @@
1
+ import type * as React from 'react';
2
+ export interface RadioOption {
3
+ name: string;
4
+ value: string;
5
+ children?: React.ReactNode;
6
+ }
7
+ export interface RadioGroupProps {
8
+ /** blur handler */
9
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
10
+ /** change handler */
11
+ onChange: React.ChangeEventHandler;
12
+ /** value that is checked */
13
+ value?: string;
14
+ /** Array of {name, value} data with optional children */
15
+ options?: RadioOption[];
16
+ /** Show radio buttons inline instead of stacked */
17
+ inline?: boolean;
18
+ /** classes to apply to outer div */
19
+ className?: string;
20
+ /** classes to apply to inner label text div */
21
+ labelTextClassName?: string | null | undefined;
22
+ /** if is included, RadioGroup will use error style. The content of the string is ignored. */
23
+ error?: string | null | undefined;
24
+ /** 'name' attr of input */
25
+ name?: string;
26
+ /** optional prop to turn radio field blue when checked */
27
+ useBlueChecked?: boolean;
28
+ }
29
+ export declare function RadioGroup(props: RadioGroupProps): JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { components as reactSelectComponents } from 'react-select';
2
+ import type { Props as ReactSelectProps } from 'react-select';
3
+ import type { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles';
4
+ export { reactSelectComponents };
5
+ export declare const PLACEMENT_AUTO: 'auto';
6
+ export declare const PLACEMENT_BOTTOM: 'bottom';
7
+ export declare const PLACEMENT_TOP: 'top';
8
+ export declare const CONTEXT_MENU: 'menu';
9
+ export declare const CONTEXT_VALUE: 'value';
10
+ export declare const SELECT_CX_PREFIX = "ot_select";
11
+ export type ChangeAction = 'select-option' | 'deselect-option' | 'remove-value' | 'pop-value' | 'set-value' | 'clear' | 'create-option';
12
+ export interface SelectOption {
13
+ value: string;
14
+ label?: string;
15
+ isDisabled?: boolean;
16
+ }
17
+ export interface SelectOptionGroup {
18
+ options: SelectOption[];
19
+ label?: string;
20
+ }
21
+ export type SelectOptionOrGroup = SelectOption | SelectOptionGroup;
22
+ export type SelectPlacement = typeof PLACEMENT_AUTO | typeof PLACEMENT_BOTTOM | typeof PLACEMENT_TOP;
23
+ export type SelectPosition = typeof POSITION_ABSOLUTE | typeof POSITION_FIXED;
24
+ export type SelectOptionContext = typeof CONTEXT_MENU | typeof CONTEXT_VALUE;
25
+ export type SelectProps = ReactSelectProps<SelectOption>;
26
+ export declare function Select(props: SelectProps): JSX.Element;
@@ -0,0 +1,33 @@
1
+ import type * as React from 'react';
2
+ import type { SelectProps } from './Select';
3
+ import type { ActionMeta } from 'react-select';
4
+ import type { SelectOption } from '.';
5
+ export interface SelectFieldProps {
6
+ /** optional HTML id for container */
7
+ id?: SelectProps['id'];
8
+ /** field name */
9
+ name: NonNullable<SelectProps['name']>;
10
+ /** react-Select option, usually label, value */
11
+ options: NonNullable<SelectProps['options']>;
12
+ /** currently selected value */
13
+ value?: string | null;
14
+ /** disable the select */
15
+ disabled?: SelectProps['isDisabled'];
16
+ /** optional placeholder */
17
+ placeholder?: SelectProps['placeholder'];
18
+ /** menuPosition prop to send to react-select */
19
+ menuPosition?: SelectProps['menuPosition'];
20
+ /** render function for the option label passed to react-select */
21
+ formatOptionLabel?: SelectProps['formatOptionLabel'];
22
+ /** optional className */
23
+ className?: string;
24
+ /** optional caption. hidden when `error` is given */
25
+ caption?: React.ReactNode;
26
+ /** if included, use error style and display error instead of caption */
27
+ error?: string | null;
28
+ /** change handler called with (name, value) */
29
+ onValueChange?: (name: string, value: string, actionMeta: ActionMeta<SelectOption>) => void;
30
+ /** blur handler called with (name) */
31
+ onLoseFocus?: (name: string) => void;
32
+ }
33
+ export declare function SelectField(props: SelectFieldProps): JSX.Element;
@@ -0,0 +1,22 @@
1
+ import type * 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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export * from './DeprecatedCheckboxField';
2
+ export * from './DropdownField';
3
+ export * from './FormGroup';
4
+ export * from './LegacyInputField';
5
+ export * from './RadioGroup';
6
+ export * from './Select';
7
+ export * from './SelectField';
8
+ export * from './ToggleField';
@@ -0,0 +1,49 @@
1
+ import * as React from 'react';
2
+ import { Module } from '../Module';
3
+ import type { Svg } from '../../primitives';
4
+ import type { DeckConfiguration, LabwareDefinition2, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
5
+ import type { WellFill, WellGroup } from '../Labware';
6
+ export interface LabwareOnDeck {
7
+ labwareLocation: LabwareLocation;
8
+ definition: LabwareDefinition2;
9
+ wellFill?: WellFill;
10
+ missingTips?: WellGroup;
11
+ /** generic prop to render self-positioned children for each labware */
12
+ labwareChildren?: React.ReactNode;
13
+ onLabwareClick?: () => void;
14
+ highlight?: boolean;
15
+ highlightShadow?: boolean;
16
+ stacked?: boolean;
17
+ }
18
+ export interface ModuleOnDeck {
19
+ moduleModel: ModuleModel;
20
+ moduleLocation: ModuleLocation;
21
+ nestedLabwareDef?: LabwareDefinition2 | null;
22
+ nestedLabwareWellFill?: WellFill;
23
+ innerProps?: React.ComponentProps<typeof Module>['innerProps'];
24
+ /** generic prop to render self-positioned children for each module */
25
+ moduleChildren?: React.ReactNode;
26
+ onLabwareClick?: () => void;
27
+ highlightLabware?: boolean;
28
+ highlightShadowLabware?: boolean;
29
+ stacked?: boolean;
30
+ }
31
+ interface BaseDeckProps {
32
+ deckConfig: DeckConfiguration;
33
+ robotType: RobotType;
34
+ labwareOnDeck?: LabwareOnDeck[];
35
+ modulesOnDeck?: ModuleOnDeck[];
36
+ deckLayerBlocklist?: string[];
37
+ showExpansion?: boolean;
38
+ lightFill?: string;
39
+ mediumFill?: string;
40
+ darkFill?: string;
41
+ children?: React.ReactNode;
42
+ showSlotLabels?: boolean;
43
+ /** whether to make wrapping svg tag animatable via @react-spring/web, defaults to false */
44
+ animatedSVG?: boolean;
45
+ /** extra props to pass to svg tag */
46
+ svgProps?: React.ComponentProps<typeof Svg>;
47
+ }
48
+ export declare function BaseDeck(props: BaseDeckProps): JSX.Element;
49
+ export {};