@opentrons/components 0.1.5 → 0.1.6-alpha.10

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 (299) hide show
  1. package/Makefile +10 -9
  2. package/README.md +1 -15
  3. package/babel.config.cjs +21 -0
  4. package/lib/alerts/AlertItem.d.ts +1 -1
  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 -1
  8. package/lib/atoms/CheckboxField/index.d.ts +1 -1
  9. package/lib/atoms/Chip/index.d.ts +20 -0
  10. package/lib/atoms/Divider/index.d.ts +5 -0
  11. package/lib/atoms/InputField/__tests__/InputField.test.d.ts +1 -0
  12. package/lib/atoms/InputField/index.d.ts +68 -0
  13. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
  14. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
  15. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
  16. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
  17. package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
  18. package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +1 -0
  19. package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +1 -0
  20. package/lib/atoms/ListButton/index.d.ts +11 -0
  21. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
  22. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
  23. package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
  24. package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
  25. package/lib/atoms/ListItem/index.d.ts +14 -0
  26. package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
  27. package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
  28. package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
  29. package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
  30. package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
  31. package/lib/atoms/MenuList/index.d.ts +8 -0
  32. package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
  33. package/lib/atoms/Snackbar/index.d.ts +7 -0
  34. package/lib/atoms/StepMeter/index.d.ts +2 -1
  35. package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
  36. package/lib/atoms/StyledText/StyledText.d.ts +154 -0
  37. package/lib/atoms/StyledText/index.d.ts +2 -0
  38. package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
  39. package/lib/atoms/Tag/index.d.ts +13 -0
  40. package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
  41. package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
  42. package/lib/atoms/Toast/index.d.ts +25 -0
  43. package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
  44. package/lib/atoms/ToggleGroup/index.d.ts +9 -0
  45. package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  46. package/lib/atoms/Tooltip/index.d.ts +11 -0
  47. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -2
  48. package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
  49. package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
  50. package/lib/atoms/buttons/LargeButton.d.ts +17 -0
  51. package/lib/atoms/buttons/PrimaryButton.d.ts +1 -2
  52. package/lib/atoms/buttons/RadioButton.d.ts +21 -0
  53. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +1 -1
  54. package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +1 -0
  55. package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
  56. package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
  57. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -1
  58. package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
  59. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -1
  60. package/lib/atoms/buttons/index.d.ts +3 -0
  61. package/lib/atoms/index.d.ts +18 -1
  62. package/lib/buttons/Button.d.ts +3 -2
  63. package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -1
  64. package/lib/buttons/FlatButton.d.ts +0 -1
  65. package/lib/buttons/IconButton.d.ts +0 -1
  66. package/lib/buttons/OutlineButton.d.ts +0 -1
  67. package/lib/controls/ControlInfo.d.ts +1 -1
  68. package/lib/controls/LabeledButton.d.ts +1 -1
  69. package/lib/controls/LabeledCheckbox.d.ts +1 -1
  70. package/lib/controls/LabeledControl.d.ts +1 -1
  71. package/lib/controls/LabeledRadioGroup.d.ts +1 -1
  72. package/lib/controls/LabeledSelect.d.ts +1 -1
  73. package/lib/controls/LabeledToggle.d.ts +1 -1
  74. package/lib/controls/StackedLabeledControl.d.ts +1 -1
  75. package/lib/controls/ToggleButton.d.ts +0 -1
  76. package/lib/forms/DeprecatedCheckboxField.d.ts +1 -1
  77. package/lib/forms/DropdownField.d.ts +3 -3
  78. package/lib/forms/FormGroup.d.ts +1 -1
  79. package/lib/forms/{InputField.d.ts → LegacyInputField.d.ts} +4 -4
  80. package/lib/forms/RadioGroup.d.ts +1 -1
  81. package/lib/forms/Select.d.ts +1 -2
  82. package/lib/forms/SelectField.d.ts +1 -1
  83. package/lib/forms/ToggleField.d.ts +1 -1
  84. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +1 -0
  85. package/lib/forms/__tests__/DropdownField.test.d.ts +1 -0
  86. package/lib/forms/__tests__/InputField.test.d.ts +1 -0
  87. package/lib/forms/__tests__/Select.test.d.ts +1 -0
  88. package/lib/forms/__tests__/SelectField.test.d.ts +1 -0
  89. package/lib/forms/__tests__/ToggleField.test.d.ts +1 -0
  90. package/lib/forms/index.d.ts +1 -1
  91. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +9 -2
  92. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +1 -1
  93. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +1 -1
  94. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +1 -1
  95. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -1
  96. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -3
  97. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -1
  98. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -1
  99. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +1 -2
  100. package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -1
  101. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
  102. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
  103. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
  104. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
  105. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +1 -2
  106. package/lib/hardware-sim/Deck/index.d.ts +0 -1
  107. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
  108. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -1
  109. package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +10 -0
  110. package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +11 -0
  111. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +4 -3
  112. package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +12 -0
  113. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +10 -0
  114. package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +10 -0
  115. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +4 -3
  116. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +4 -3
  117. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +6 -1
  118. package/lib/hardware-sim/DeckConfigurator/index.d.ts +10 -4
  119. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +1 -1
  120. package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
  121. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -1
  122. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -1
  123. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -1
  124. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
  125. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
  126. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
  127. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
  128. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +8 -0
  129. package/lib/hardware-sim/Labware/LabwareRender.d.ts +6 -2
  130. package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
  131. package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
  132. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -1
  133. package/lib/hardware-sim/Labware/index.d.ts +3 -1
  134. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +1 -0
  135. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +4 -1
  136. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
  137. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +9 -1
  138. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +2 -1
  139. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +1 -1
  140. package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
  141. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +1 -1
  142. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +1 -1
  143. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +2 -0
  144. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +1 -1
  145. package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -1
  146. package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -1
  147. package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -1
  148. package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
  149. package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
  150. package/lib/hardware-sim/Module/Temperature.d.ts +0 -1
  151. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -1
  152. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -1
  153. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +1 -2
  154. package/lib/hardware-sim/Module/index.d.ts +2 -2
  155. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +1 -1
  156. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +2 -2
  157. package/lib/hardware-sim/ProtocolDeck/index.d.ts +4 -2
  158. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +1 -0
  159. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
  160. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +16 -0
  161. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +1 -1
  162. package/lib/hardware-sim/utils.d.ts +1 -1
  163. package/lib/helix-design-system/borders.d.ts +26 -0
  164. package/lib/helix-design-system/colors.d.ts +11 -0
  165. package/lib/helix-design-system/index.d.ts +3 -0
  166. package/lib/helix-design-system/product/index.d.ts +1 -0
  167. package/lib/helix-design-system/product/typography.d.ts +79 -0
  168. package/lib/helix-design-system/style.d.ts +1 -0
  169. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +1 -0
  170. package/lib/hooks/__tests__/useInterval.test.d.ts +1 -0
  171. package/lib/hooks/__tests__/useMountEffect.test.d.ts +1 -0
  172. package/lib/hooks/__tests__/usePrevious.test.d.ts +1 -0
  173. package/lib/hooks/__tests__/useTimeout.test.d.ts +1 -0
  174. package/lib/hooks/__tests__/useToggle.test.d.ts +1 -0
  175. package/lib/hooks/index.d.ts +1 -0
  176. package/lib/hooks/useConditionalConfirm.d.ts +3 -2
  177. package/lib/hooks/useDrag.d.ts +1 -1
  178. package/lib/hooks/useLongPress.d.ts +1 -1
  179. package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
  180. package/lib/hooks/useSelectDeckLocation/index.d.ts +1 -3
  181. package/lib/hooks/useSwipe.d.ts +1 -1
  182. package/lib/icons/Icon.d.ts +1 -1
  183. package/lib/icons/ModuleIcon.d.ts +2 -3
  184. package/lib/icons/NotificationIcon.d.ts +0 -1
  185. package/lib/icons/icon-data.d.ts +4 -582
  186. package/lib/icons/index.d.ts +1 -0
  187. package/lib/index.cjs +732 -0
  188. package/lib/index.d.ts +1 -3
  189. package/lib/index.mjs +36590 -0
  190. package/lib/instrument/InstrumentDiagram.d.ts +3 -4
  191. package/lib/instrument/InstrumentGroup.d.ts +0 -1
  192. package/lib/instrument/InstrumentInfo.d.ts +5 -11
  193. package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +1 -0
  194. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +1 -0
  195. package/lib/instrument/index.d.ts +0 -1
  196. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +1 -0
  197. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -1
  198. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -1
  199. package/lib/lists/SidePanelGroup.d.ts +1 -1
  200. package/lib/lists/index.d.ts +0 -1
  201. package/lib/modals/AlertModal.d.ts +2 -1
  202. package/lib/modals/ContinueModal.d.ts +1 -1
  203. package/lib/modals/LegacyModal.d.ts +24 -0
  204. package/lib/modals/Modal.d.ts +21 -20
  205. package/lib/modals/ModalHeader.d.ts +13 -0
  206. package/lib/modals/ModalShell.d.ts +11 -2
  207. package/lib/modals/Overlay.d.ts +1 -1
  208. package/lib/modals/SpinnerModal.d.ts +1 -1
  209. package/lib/modals/SpinnerModalPage.d.ts +2 -1
  210. package/lib/modals/__tests__/Modal.test.d.ts +1 -0
  211. package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
  212. package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
  213. package/lib/modals/index.d.ts +5 -5
  214. package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
  215. package/lib/molecules/Banner/index.d.ts +23 -0
  216. package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
  217. package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
  218. package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
  219. package/lib/molecules/DeckLabel/index.d.ts +10 -0
  220. package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
  221. package/lib/molecules/DropdownMenu/index.d.ts +41 -0
  222. package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
  223. package/lib/molecules/InfoScreen/index.d.ts +6 -0
  224. package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
  225. package/lib/molecules/LiquidIcon/index.d.ts +9 -0
  226. package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +1 -0
  227. package/lib/molecules/ParametersTable/index.d.ts +10 -0
  228. package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
  229. package/lib/molecules/Tabs/index.d.ts +10 -0
  230. package/lib/molecules/index.d.ts +8 -2
  231. package/lib/nav/SidePanel.d.ts +1 -1
  232. package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
  233. package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
  234. package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
  235. package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
  236. package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
  237. package/lib/organisms/Toolbox/index.d.ts +20 -0
  238. package/lib/organisms/index.d.ts +3 -0
  239. package/lib/primitives/Btn.d.ts +11 -13
  240. package/lib/primitives/__tests__/Box.test.d.ts +1 -0
  241. package/lib/primitives/__tests__/Btn.test.d.ts +1 -0
  242. package/lib/primitives/__tests__/Flex.test.d.ts +1 -0
  243. package/lib/primitives/__tests__/Link.test.d.ts +1 -0
  244. package/lib/primitives/__tests__/Svg.test.d.ts +1 -0
  245. package/lib/primitives/__tests__/Text.test.d.ts +1 -0
  246. package/lib/primitives/__tests__/primitives.test.d.ts +1 -0
  247. package/lib/primitives/__tests__/style-props.test.d.ts +1 -0
  248. package/lib/primitives/types.d.ts +1 -2
  249. package/lib/slotmap/{SlotMap.d.ts → OT2SlotMap.d.ts} +1 -4
  250. package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +1 -0
  251. package/lib/slotmap/index.d.ts +1 -1
  252. package/lib/structure/Card.d.ts +1 -1
  253. package/lib/structure/LabeledValue.d.ts +1 -1
  254. package/lib/structure/Pill.d.ts +1 -1
  255. package/lib/structure/Splash.d.ts +0 -1
  256. package/lib/structure/TitleBar.d.ts +2 -2
  257. package/lib/structure/index.d.ts +0 -1
  258. package/lib/style.css +1 -0
  259. package/lib/styles/cursor.d.ts +10 -0
  260. package/lib/styles/flexbox.d.ts +6 -0
  261. package/lib/styles/index.d.ts +1 -0
  262. package/lib/styles/layout.d.ts +1 -0
  263. package/lib/testing/utils/matchers.d.ts +0 -3
  264. package/lib/testing/utils/renderWithProviders.d.ts +2 -3
  265. package/lib/tooltips/DeprecatedTooltip.d.ts +1 -1
  266. package/lib/tooltips/{Tooltip.d.ts → LegacyTooltip.d.ts} +2 -2
  267. package/lib/tooltips/__tests__/Tooltip.test.d.ts +1 -0
  268. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +1 -0
  269. package/lib/tooltips/__tests__/usePopper.test.d.ts +1 -0
  270. package/lib/tooltips/__tests__/useTooltip.test.d.ts +1 -0
  271. package/lib/tooltips/index.d.ts +1 -1
  272. package/lib/ui-style-constants/index.d.ts +2 -2
  273. package/lib/ui-style-constants/responsiveness.d.ts +1 -0
  274. package/lib/ui-style-constants/spacing.d.ts +1 -0
  275. package/lib/ui-style-constants/typography.d.ts +1 -0
  276. package/lib/ui-style-constants/viewport.d.ts +15 -0
  277. package/package.json +10 -9
  278. package/tsconfig.json +2 -2
  279. package/typings/global.d.ts +0 -1
  280. package/vite.config.mts +65 -0
  281. package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +0 -2
  282. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +0 -19
  283. package/lib/instrument/InfoItem.d.ts +0 -11
  284. package/lib/lists/ListItem.d.ts +0 -37
  285. package/lib/modals/BaseModal.d.ts +0 -26
  286. package/lib/modals/ModalPage.d.ts +0 -16
  287. package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
  288. package/lib/molecules/LocationIcon/index.d.ts +0 -16
  289. package/lib/molecules/RoundTab.d.ts +0 -8
  290. package/lib/opentrons-components.js +0 -16
  291. package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
  292. package/lib/structure/PageTabs.d.ts +0 -12
  293. package/lib/tabbedNav/NavTab.d.ts +0 -25
  294. package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
  295. package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
  296. package/lib/tabbedNav/index.d.ts +0 -3
  297. package/lib/ui-style-constants/borders.d.ts +0 -18
  298. package/webpack.config.js +0 -38
  299. /package/lib/{molecules/LocationIcon/__tests__/LocationIcon.test.d.ts → atoms/Chip/__tests__/Chip.test.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -10,3 +10,4 @@ export * from './useSelectDeckLocation';
10
10
  export * from './useSwipe';
11
11
  export * from './useTimeout';
12
12
  export * from './useToggle';
13
+ export * from './useMenuHandleClickOutside';
@@ -33,8 +33,9 @@
33
33
  * }
34
34
  * ```
35
35
  */
36
- export declare const useConditionalConfirm: <T extends any[]>(handleContinue: (...args: T) => any, shouldBlock: boolean) => {
36
+ export interface UseConditionalConfirmResult<T extends any[]> {
37
37
  confirm: (...args: T) => void;
38
38
  showConfirmation: boolean;
39
39
  cancel: () => unknown;
40
- };
40
+ }
41
+ export declare const useConditionalConfirm: <T extends any[]>(handleContinue: (...args: T) => any, shouldBlock: boolean) => UseConditionalConfirmResult<T>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, MutableRefObject } from 'react';
1
+ import type { CSSProperties, MutableRefObject } from 'react';
2
2
  export interface ElementPosition {
3
3
  width: number;
4
4
  height: number;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, MutableRefObject } from 'react';
1
+ import type { CSSProperties, MutableRefObject } from 'react';
2
2
  export interface UseLongPressResult {
3
3
  ref: MutableRefObject<null>;
4
4
  style: CSSProperties;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ interface MenuHandleClickOutside {
3
+ menuOverlay: JSX.Element;
4
+ handleOverflowClick: React.MouseEventHandler<HTMLButtonElement>;
5
+ showOverflowMenu: boolean;
6
+ setShowOverflowMenu: React.Dispatch<React.SetStateAction<boolean>>;
7
+ }
8
+ export declare function useMenuHandleClickOutside(): MenuHandleClickOutside;
9
+ export {};
@@ -1,6 +1,4 @@
1
- /// <reference types="react" />
2
- import { CutoutConfig } from '@opentrons/shared-data';
3
- import type { DeckDefinition, ModuleLocation, RobotType } from '@opentrons/shared-data';
1
+ import type { CutoutConfig, DeckDefinition, ModuleLocation, RobotType } from '@opentrons/shared-data';
4
2
  export type DeckLocationSelectThemes = 'default' | 'grey';
5
3
  export declare function useDeckLocationSelect(robotType: RobotType, theme?: DeckLocationSelectThemes): {
6
4
  DeckLocationSelect: JSX.Element;
@@ -1,4 +1,4 @@
1
- import { MutableRefObject, CSSProperties } from 'react';
1
+ import type { MutableRefObject, CSSProperties } from 'react';
2
2
  interface UseSwipeResult {
3
3
  ref: MutableRefObject<null>;
4
4
  style: CSSProperties;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import { ICON_DATA_BY_NAME } from './icon-data';
3
3
  import type { SvgProps } from '../primitives';
4
4
  export type IconName = keyof typeof ICON_DATA_BY_NAME;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
- import { IconName } from './Icon';
3
1
  import type { ModuleType } from '@opentrons/shared-data';
4
2
  import type { StyleProps } from '../primitives/types';
3
+ export type ModuleIconName = 'ot-magnet-v2' | 'ot-heater-shaker' | 'ot-temperature-v2' | 'ot-magnet-v2' | 'ot-thermocycler' | 'ot-absorbance';
5
4
  export declare const MODULE_ICON_NAME_BY_TYPE: {
6
- [type in ModuleType]: IconName;
5
+ [type in ModuleType]: ModuleIconName;
7
6
  };
8
7
  interface ModuleIconProps extends StyleProps {
9
8
  moduleType: ModuleType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IconProps, IconName } from './Icon';
3
2
  export interface NotificationIconProps extends IconProps {
4
3
  /** name constant of the optional notifcation icon to display */
@@ -1,582 +1,4 @@
1
- export declare const ICON_DATA_BY_NAME: {
2
- add: {
3
- path: string;
4
- viewBox: string;
5
- };
6
- alert: {
7
- path: string;
8
- viewBox: string;
9
- };
10
- 'alert-circle': {
11
- path: string;
12
- viewBox: string;
13
- };
14
- 'arrow-down': {
15
- path: string;
16
- viewBox: string;
17
- };
18
- 'arrow-left': {
19
- path: string;
20
- viewBox: string;
21
- };
22
- 'arrow-right': {
23
- path: string;
24
- viewBox: string;
25
- };
26
- 'arrow-up': {
27
- path: string;
28
- viewBox: string;
29
- };
30
- back: {
31
- path: string;
32
- viewBox: string;
33
- };
34
- 'book-open-page-variant': {
35
- path: string;
36
- viewBox: string;
37
- };
38
- brightness: {
39
- path: string;
40
- viewBox: string;
41
- };
42
- build: {
43
- path: string;
44
- viewBox: string;
45
- };
46
- 'caret-right': {
47
- path: string;
48
- viewBox: string;
49
- };
50
- check: {
51
- path: string;
52
- viewBox: string;
53
- };
54
- 'check-circle': {
55
- path: string;
56
- viewBox: string;
57
- };
58
- 'check-decagram': {
59
- path: string;
60
- viewBox: string;
61
- };
62
- 'checkbox-blank-circle-outline': {
63
- path: string;
64
- viewBox: string;
65
- };
66
- 'checkbox-blank-outline': {
67
- path: string;
68
- viewBox: string;
69
- };
70
- 'checkbox-marked': {
71
- path: string;
72
- viewBox: string;
73
- };
74
- 'checkbox-multiple-marked-outline': {
75
- path: string;
76
- viewBox: string;
77
- };
78
- 'chevron-down': {
79
- path: string;
80
- viewBox: string;
81
- };
82
- 'chevron-left': {
83
- path: string;
84
- viewBox: string;
85
- };
86
- 'chevron-right': {
87
- path: string;
88
- viewBox: string;
89
- };
90
- 'chevron-up': {
91
- path: string;
92
- viewBox: string;
93
- };
94
- circle: {
95
- path: string;
96
- viewBox: string;
97
- };
98
- 'clockwise-arrow': {
99
- path: string;
100
- viewBox: string;
101
- };
102
- close: {
103
- path: string;
104
- viewBox: string;
105
- };
106
- 'close-circle': {
107
- path: string;
108
- viewBox: string;
109
- };
110
- 'close-icon': {
111
- path: string;
112
- viewBox: string;
113
- };
114
- 'closed-locked': {
115
- path: string;
116
- viewBox: string;
117
- };
118
- comment: {
119
- path: string;
120
- viewBox: string;
121
- };
122
- 'connection-status': {
123
- path: string;
124
- viewBox: string;
125
- };
126
- 'content-copy': {
127
- path: string;
128
- viewBox: string;
129
- };
130
- 'copy-text': {
131
- path: string;
132
- viewBox: string;
133
- };
134
- 'counter-clockwise-arrow': {
135
- path: string;
136
- viewBox: string;
137
- };
138
- 'cursor-move': {
139
- path: string;
140
- viewBox: string;
141
- };
142
- 'deck-map': {
143
- path: string;
144
- viewBox: string;
145
- };
146
- delete: {
147
- path: string;
148
- viewBox: string;
149
- };
150
- 'dots-horizontal': {
151
- path: string;
152
- viewBox: string;
153
- };
154
- 'dots-vertical': {
155
- path: string;
156
- viewBox: string;
157
- };
158
- download: {
159
- path: string;
160
- viewBox: string;
161
- };
162
- ethernet: {
163
- path: string;
164
- viewBox: string;
165
- };
166
- eye: {
167
- path: string;
168
- viewBox: string;
169
- };
170
- 'eye-slash': {
171
- path: string;
172
- viewBox: string;
173
- };
174
- 'flask-outline': {
175
- path: string;
176
- viewBox: string;
177
- };
178
- 'flex-robot': {
179
- path: string;
180
- viewBox: string;
181
- };
182
- 'folder-open': {
183
- path: string;
184
- viewBox: string;
185
- };
186
- 'gantry-homing': {
187
- path: string;
188
- viewBox: string;
189
- };
190
- gear: {
191
- path: string;
192
- viewBox: string;
193
- };
194
- 'help-circle': {
195
- path: string;
196
- viewBox: string;
197
- };
198
- 'reset-position': {
199
- path: string;
200
- viewBox: string;
201
- };
202
- 'horizontal-plane': {
203
- path: string;
204
- viewBox: string;
205
- };
206
- info: {
207
- viewBox: string;
208
- path: string;
209
- };
210
- information: {
211
- path: string;
212
- viewBox: string;
213
- };
214
- 'jump-size': {
215
- path: string;
216
- viewBox: string;
217
- };
218
- 'latch-closed': {
219
- path: string;
220
- viewBox: string;
221
- };
222
- 'latch-open': {
223
- path: string;
224
- viewBox: string;
225
- };
226
- light: {
227
- path: string;
228
- viewBox: string;
229
- };
230
- lock: {
231
- path: string;
232
- viewBox: string;
233
- };
234
- menu: {
235
- path: string;
236
- viewBox: string;
237
- };
238
- 'menu-down': {
239
- path: string;
240
- viewBox: string;
241
- };
242
- minus: {
243
- path: string;
244
- viewBox: string;
245
- };
246
- 'minus-box': {
247
- path: string;
248
- viewBox: string;
249
- };
250
- more: {
251
- path: string;
252
- viewBox: string;
253
- };
254
- 'move-xy': {
255
- path: string;
256
- viewBox: string;
257
- };
258
- 'move-xy-circle': {
259
- viewBox: string;
260
- path: string;
261
- };
262
- 'open-in-new': {
263
- path: string;
264
- viewBox: string;
265
- };
266
- 'ot-alert': {
267
- path: string;
268
- viewBox: string;
269
- };
270
- 'ot-arrow-down': {
271
- path: string;
272
- viewBox: string;
273
- };
274
- 'ot-arrow-left': {
275
- path: string;
276
- viewBox: string;
277
- };
278
- 'ot-arrow-right': {
279
- path: string;
280
- viewBox: string;
281
- };
282
- 'ot-arrow-up': {
283
- path: string;
284
- viewBox: string;
285
- };
286
- 'ot-calibrate': {
287
- path: string;
288
- viewBox: string;
289
- };
290
- 'ot-check': {
291
- path: string;
292
- viewBox: string;
293
- };
294
- 'ot-checkbox': {
295
- path: string;
296
- viewBox: string;
297
- };
298
- 'ot-click-and-drag': {
299
- path: string;
300
- viewBox: string;
301
- };
302
- 'ot-close': {
303
- path: string;
304
- viewBox: string;
305
- };
306
- 'ot-close-thick': {
307
- path: string;
308
- viewBox: string;
309
- };
310
- 'ot-connect': {
311
- path: string;
312
- viewBox: string;
313
- };
314
- 'ot-consolidate': {
315
- path: string;
316
- viewBox: string;
317
- };
318
- 'ot-copy-text': {
319
- path: string;
320
- viewBox: string;
321
- };
322
- 'ot-design': {
323
- path: string;
324
- viewBox: string;
325
- };
326
- 'ot-distribute': {
327
- path: string;
328
- viewBox: string;
329
- };
330
- 'ot-file': {
331
- path: string;
332
- viewBox: string;
333
- };
334
- 'ot-flat-bottom': {
335
- path: string;
336
- viewBox: string;
337
- };
338
- 'ot-heater-shaker': {
339
- path: string;
340
- viewBox: string;
341
- };
342
- 'ot-hot-to-touch': {
343
- path: string;
344
- viewBox: string;
345
- };
346
- 'ot-logo': {
347
- path: string;
348
- viewBox: string;
349
- };
350
- 'ot-magnet': {
351
- path: string;
352
- viewBox: string;
353
- };
354
- 'ot-magnet-v2': {
355
- path: string;
356
- viewBox: string;
357
- };
358
- 'ot-mix': {
359
- path: string;
360
- viewBox: string;
361
- };
362
- 'ot-run': {
363
- path: string;
364
- viewBox: string;
365
- };
366
- 'ot-spinner': {
367
- path: string;
368
- viewBox: string;
369
- };
370
- 'ot-temperature': {
371
- path: string;
372
- viewBox: string;
373
- };
374
- 'ot-temperature-v2': {
375
- path: string;
376
- viewBox: string;
377
- };
378
- 'ot-thermocycler': {
379
- path: string;
380
- viewBox: string;
381
- };
382
- 'ot-toggle-field-off': {
383
- path: string;
384
- viewBox: string;
385
- };
386
- 'ot-toggle-field-on': {
387
- path: string;
388
- viewBox: string;
389
- };
390
- 'ot-toggle-input-off': {
391
- path: string;
392
- viewBox: string;
393
- };
394
- 'ot-toggle-input-on': {
395
- path: string;
396
- viewBox: string;
397
- };
398
- 'ot-toggle-switch-off': {
399
- path: string;
400
- viewBox: string;
401
- };
402
- 'ot-toggle-switch-on': {
403
- path: string;
404
- viewBox: string;
405
- };
406
- 'ot-transfer': {
407
- path: string;
408
- viewBox: string;
409
- };
410
- 'ot-u-bottom': {
411
- path: string;
412
- viewBox: string;
413
- };
414
- 'ot-v-bottom': {
415
- path: string;
416
- viewBox: string;
417
- };
418
- 'ot-water-outline': {
419
- path: string;
420
- viewBox: string;
421
- };
422
- 'ot-wifi-0': {
423
- path: string;
424
- viewBox: string;
425
- };
426
- 'ot-wifi-1': {
427
- path: string;
428
- viewBox: string;
429
- };
430
- 'ot-wifi-2': {
431
- path: string;
432
- viewBox: string;
433
- };
434
- 'ot-wifi-3': {
435
- path: string;
436
- viewBox: string;
437
- };
438
- 'overflow-btn-touchscreen': {
439
- path: string;
440
- viewBox: string;
441
- };
442
- pause: {
443
- path: string;
444
- viewBox: string;
445
- };
446
- 'pause-circle': {
447
- path: string;
448
- viewBox: string;
449
- };
450
- 'pause-icon': {
451
- path: string;
452
- viewBox: string;
453
- };
454
- pen: {
455
- path: string;
456
- viewBox: string;
457
- };
458
- pencil: {
459
- path: string;
460
- viewBox: string;
461
- };
462
- pin: {
463
- path: string;
464
- viewBox: string;
465
- };
466
- play: {
467
- path: string;
468
- viewBox: string;
469
- };
470
- 'play-circle': {
471
- path: string;
472
- viewBox: string;
473
- };
474
- 'play-icon': {
475
- path: string;
476
- viewBox: string;
477
- };
478
- 'play-round-corners': {
479
- path: string;
480
- viewBox: string;
481
- };
482
- plus: {
483
- path: string;
484
- viewBox: string;
485
- };
486
- privacy: {
487
- path: string;
488
- viewBox: string;
489
- };
490
- 'question-mark-circle': {
491
- path: string;
492
- viewBox: string;
493
- };
494
- 'radiobox-blank': {
495
- path: string;
496
- viewBox: string;
497
- };
498
- 'radiobox-marked': {
499
- path: string;
500
- viewBox: string;
501
- };
502
- refresh: {
503
- path: string;
504
- viewBox: string;
505
- };
506
- remove: {
507
- path: string;
508
- viewBox: string;
509
- };
510
- reset: {
511
- path: string;
512
- viewBox: string;
513
- };
514
- restart: {
515
- path: string;
516
- viewBox: string;
517
- };
518
- reticle: {
519
- path: string;
520
- viewBox: string;
521
- };
522
- settings: {
523
- path: string;
524
- viewBox: string;
525
- };
526
- sleep: {
527
- path: string;
528
- viewBox: string;
529
- };
530
- 'swap-horizontal': {
531
- path: string;
532
- viewBox: string;
533
- };
534
- 'text-size': {
535
- path: string;
536
- viewBox: string;
537
- };
538
- trash: {
539
- path: string;
540
- viewBox: string;
541
- };
542
- 'unfold-less-horizontal': {
543
- path: string;
544
- viewBox: string;
545
- };
546
- 'unfold-more-horizontal': {
547
- path: string;
548
- viewBox: string;
549
- };
550
- union: {
551
- path: string;
552
- viewBox: string;
553
- };
554
- update: {
555
- path: string;
556
- viewBox: string;
557
- };
558
- 'update-channel': {
559
- path: string;
560
- viewBox: string;
561
- };
562
- upload: {
563
- path: string;
564
- viewBox: string;
565
- };
566
- usb: {
567
- path: string;
568
- viewBox: string;
569
- };
570
- 'vertical-plane': {
571
- path: string;
572
- viewBox: string;
573
- };
574
- water: {
575
- path: string;
576
- viewBox: string;
577
- };
578
- wifi: {
579
- path: string;
580
- viewBox: string;
581
- };
582
- };
1
+ export declare const ICON_DATA_BY_NAME: Record<string, {
2
+ path: string;
3
+ viewBox: string;
4
+ }>;
@@ -1,3 +1,4 @@
1
1
  export * from './Icon';
2
2
  export * from './NotificationIcon';
3
3
  export * from './ModuleIcon';
4
+ export * from './icon-data';