@opentrons/components 0.1.6-alpha.6 → 0.1.6-alpha.7

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 (280) 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/CheckboxField/__tests__/CheckboxField.test.d.ts +1 -0
  6. package/lib/atoms/CheckboxField/index.d.ts +20 -0
  7. package/lib/atoms/Chip/__tests__/Chip.test.d.ts +1 -0
  8. package/lib/atoms/Chip/index.d.ts +20 -0
  9. package/lib/atoms/StepMeter/index.d.ts +7 -0
  10. package/lib/atoms/StyledText/__tests__/StyledText.test.d.ts +1 -0
  11. package/lib/atoms/StyledText/index.d.ts +6 -0
  12. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -0
  13. package/lib/atoms/buttons/PrimaryButton.d.ts +1 -0
  14. package/lib/atoms/buttons/SecondaryButton.d.ts +7 -0
  15. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +1 -0
  16. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -0
  17. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -0
  18. package/lib/atoms/buttons/index.d.ts +3 -0
  19. package/lib/atoms/index.d.ts +6 -0
  20. package/lib/barrel.d.ts +3 -0
  21. package/lib/buttons/Button.d.ts +49 -0
  22. package/lib/buttons/DeprecatedPrimaryButton.d.ts +8 -0
  23. package/lib/buttons/FlatButton.d.ts +5 -0
  24. package/lib/buttons/IconButton.d.ts +14 -0
  25. package/lib/buttons/OutlineButton.d.ts +8 -0
  26. package/lib/buttons/index.d.ts +5 -0
  27. package/lib/controls/ControlInfo.d.ts +6 -0
  28. package/lib/controls/LabeledButton.d.ts +8 -0
  29. package/lib/controls/LabeledCheckbox.d.ts +10 -0
  30. package/lib/controls/LabeledControl.d.ts +7 -0
  31. package/lib/controls/LabeledRadioGroup.d.ts +8 -0
  32. package/lib/controls/LabeledSelect.d.ts +9 -0
  33. package/lib/controls/LabeledToggle.d.ts +11 -0
  34. package/lib/controls/StackedLabeledControl.d.ts +7 -0
  35. package/lib/controls/ToggleButton.d.ts +5 -0
  36. package/lib/controls/index.d.ts +6 -0
  37. package/lib/forms/DeprecatedCheckboxField.d.ts +33 -0
  38. package/lib/forms/DropdownField.d.ts +38 -0
  39. package/lib/forms/FormGroup.d.ts +19 -0
  40. package/lib/forms/InputField.d.ts +51 -0
  41. package/lib/forms/RadioGroup.d.ts +29 -0
  42. package/lib/forms/Select.d.ts +26 -0
  43. package/lib/forms/SelectField.d.ts +33 -0
  44. package/lib/forms/ToggleField.d.ts +22 -0
  45. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +1 -0
  46. package/lib/forms/__tests__/DropdownField.test.d.ts +1 -0
  47. package/lib/forms/__tests__/InputField.test.d.ts +1 -0
  48. package/lib/forms/__tests__/Select.test.d.ts +1 -0
  49. package/lib/forms/__tests__/SelectField.test.d.ts +1 -0
  50. package/lib/forms/__tests__/ToggleField.test.d.ts +1 -0
  51. package/lib/forms/index.d.ts +8 -0
  52. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +42 -0
  53. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +12 -0
  54. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +2 -0
  55. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +2 -0
  56. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +13 -0
  57. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +21 -0
  58. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +14 -0
  59. package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +4 -0
  60. package/lib/hardware-sim/BaseDeck/index.d.ts +5 -0
  61. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +10 -0
  62. package/lib/hardware-sim/Deck/FlexTrash.d.ts +14 -0
  63. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +17 -0
  64. package/lib/hardware-sim/Deck/OT2Layers.d.ts +10 -0
  65. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +14 -0
  66. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +12 -0
  67. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +8 -0
  68. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +21 -0
  69. package/lib/hardware-sim/Deck/SlotLabels.d.ts +12 -0
  70. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +1 -0
  71. package/lib/hardware-sim/Deck/constants.d.ts +1 -0
  72. package/lib/hardware-sim/Deck/index.d.ts +8 -0
  73. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +8 -0
  74. package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +10 -0
  75. package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +11 -0
  76. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +10 -0
  77. package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +12 -0
  78. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +10 -0
  79. package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +10 -0
  80. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +10 -0
  81. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +11 -0
  82. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +20 -0
  83. package/lib/hardware-sim/DeckConfigurator/index.d.ts +20 -0
  84. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +15 -0
  85. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +1 -0
  86. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +1 -0
  87. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +1 -0
  88. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +1 -0
  89. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +1 -0
  90. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +19 -0
  91. package/lib/hardware-sim/Labware/LabwareRender.d.ts +42 -0
  92. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -0
  93. package/lib/hardware-sim/Labware/index.d.ts +3 -0
  94. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +10 -0
  95. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +17 -0
  96. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +17 -0
  97. package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +9 -0
  98. package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +19 -0
  99. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +18 -0
  100. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +12 -0
  101. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +1 -0
  102. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +1 -0
  103. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +7 -0
  104. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +12 -0
  105. package/lib/hardware-sim/Module/HeaterShaker.d.ts +4 -0
  106. package/lib/hardware-sim/Module/MagneticBlock.d.ts +1 -0
  107. package/lib/hardware-sim/Module/MagneticModule.d.ts +1 -0
  108. package/lib/hardware-sim/Module/ModuleTag.d.ts +9 -0
  109. package/lib/hardware-sim/Module/Temperature.d.ts +4 -0
  110. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +6 -0
  111. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +6 -0
  112. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +7 -0
  113. package/lib/hardware-sim/Module/index.d.ts +18 -0
  114. package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +4 -0
  115. package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +4 -0
  116. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +8 -0
  117. package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +1 -0
  118. package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +1 -0
  119. package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +1 -0
  120. package/lib/hardware-sim/Pipette/constants.d.ts +7 -0
  121. package/lib/hardware-sim/Pipette/index.d.ts +1 -0
  122. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +6 -0
  123. package/lib/hardware-sim/ProtocolDeck/index.d.ts +12 -0
  124. package/lib/hardware-sim/ProtocolDeck/types.d.ts +8 -0
  125. package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +1 -0
  126. package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +5 -0
  127. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +12 -0
  128. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +3 -0
  129. package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +10 -0
  130. package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +2 -0
  131. package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +4 -0
  132. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +2 -0
  133. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +7 -0
  134. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +15 -0
  135. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +2 -0
  136. package/lib/hardware-sim/index.d.ts +11 -0
  137. package/lib/hardware-sim/utils.d.ts +3 -0
  138. package/lib/helix-design-system/borders.d.ts +26 -0
  139. package/lib/helix-design-system/colors.d.ts +75 -0
  140. package/lib/helix-design-system/index.d.ts +2 -0
  141. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +1 -0
  142. package/lib/hooks/__tests__/useDrag.test.d.ts +1 -0
  143. package/lib/hooks/__tests__/useIdle.test.d.ts +1 -0
  144. package/lib/hooks/__tests__/useInterval.test.d.ts +1 -0
  145. package/lib/hooks/__tests__/useLongPress.test.d.ts +1 -0
  146. package/lib/hooks/__tests__/useMountEffect.test.d.ts +1 -0
  147. package/lib/hooks/__tests__/usePrevious.test.d.ts +1 -0
  148. package/lib/hooks/__tests__/useScrolling.test.d.ts +1 -0
  149. package/lib/hooks/__tests__/useSwipe.test.d.ts +1 -0
  150. package/lib/hooks/__tests__/useTimeout.test.d.ts +1 -0
  151. package/lib/hooks/__tests__/useToggle.test.d.ts +1 -0
  152. package/lib/hooks/index.d.ts +12 -0
  153. package/lib/hooks/useConditionalConfirm.d.ts +40 -0
  154. package/lib/hooks/useDrag.d.ts +22 -0
  155. package/lib/hooks/useIdle.d.ts +11 -0
  156. package/lib/hooks/useInterval.d.ts +11 -0
  157. package/lib/hooks/useLongPress.d.ts +19 -0
  158. package/lib/hooks/useMountEffect.d.ts +8 -0
  159. package/lib/hooks/usePrevious.d.ts +9 -0
  160. package/lib/hooks/useScrolling.d.ts +1 -0
  161. package/lib/hooks/useSelectDeckLocation/index.d.ts +19 -0
  162. package/lib/hooks/useSwipe.d.ts +12 -0
  163. package/lib/hooks/useTimeout.d.ts +9 -0
  164. package/lib/hooks/useToggle.d.ts +22 -0
  165. package/lib/icons/Icon.d.ts +34 -0
  166. package/lib/icons/ModuleIcon.d.ts +11 -0
  167. package/lib/icons/NotificationIcon.d.ts +12 -0
  168. package/lib/icons/icon-data.d.ts +586 -0
  169. package/lib/icons/index.d.ts +4 -0
  170. package/lib/images/index.d.ts +1 -0
  171. package/lib/images/labware/index.d.ts +1 -0
  172. package/lib/images/labware/measurement-guide/index.d.ts +13 -0
  173. package/lib/index.d.ts +26 -0
  174. package/lib/instrument/InstrumentDiagram.d.ts +11 -0
  175. package/lib/instrument/InstrumentGroup.d.ts +11 -0
  176. package/lib/instrument/InstrumentInfo.d.ts +18 -0
  177. package/lib/instrument/PipetteSelect.d.ts +20 -0
  178. package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +1 -0
  179. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +1 -0
  180. package/lib/instrument/index.d.ts +4 -0
  181. package/lib/interaction-enhancers/ClickOutside.d.ts +18 -0
  182. package/lib/interaction-enhancers/HandleKeypress.d.ts +27 -0
  183. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +1 -0
  184. package/lib/interaction-enhancers/index.d.ts +4 -0
  185. package/lib/interaction-enhancers/useHover.d.ts +33 -0
  186. package/lib/interaction-enhancers/useOnClickOutside.d.ts +5 -0
  187. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +7 -0
  188. package/lib/legacy-hardware-sim/ModuleItem.d.ts +17 -0
  189. package/lib/legacy-hardware-sim/index.d.ts +2 -0
  190. package/lib/lists/ListItem.d.ts +37 -0
  191. package/lib/lists/SidePanelGroup.d.ts +18 -0
  192. package/lib/lists/TitledList.d.ts +44 -0
  193. package/lib/lists/index.d.ts +3 -0
  194. package/lib/modals/AlertModal.d.ts +27 -0
  195. package/lib/modals/BaseModal.d.ts +26 -0
  196. package/lib/modals/ContinueModal.d.ts +9 -0
  197. package/lib/modals/Modal.d.ts +23 -0
  198. package/lib/modals/ModalPage.d.ts +16 -0
  199. package/lib/modals/ModalShell.d.ts +25 -0
  200. package/lib/modals/Overlay.d.ts +9 -0
  201. package/lib/modals/SpinnerModal.d.ts +12 -0
  202. package/lib/modals/SpinnerModalPage.d.ts +11 -0
  203. package/lib/modals/__tests__/BaseModal.test.d.ts +1 -0
  204. package/lib/modals/index.d.ts +9 -0
  205. package/lib/molecules/LocationIcon/__tests__/LocationIcon.test.d.ts +1 -0
  206. package/lib/molecules/LocationIcon/index.d.ts +15 -0
  207. package/lib/molecules/ParametersTable/InfoScreen.d.ts +6 -0
  208. package/lib/molecules/ParametersTable/__tests__/InfoScreen.test.d.ts +1 -0
  209. package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +1 -0
  210. package/lib/molecules/ParametersTable/index.d.ts +10 -0
  211. package/lib/molecules/RoundTab.d.ts +8 -0
  212. package/lib/molecules/index.d.ts +4 -0
  213. package/lib/nav/SidePanel.d.ts +6 -0
  214. package/lib/nav/index.d.ts +1 -0
  215. package/lib/primitives/Box.d.ts +7 -0
  216. package/lib/primitives/Btn.d.ts +59 -0
  217. package/lib/primitives/Flex.d.ts +7 -0
  218. package/lib/primitives/ForeignObject.d.ts +23 -0
  219. package/lib/primitives/Link.d.ts +11 -0
  220. package/lib/primitives/Svg.d.ts +23 -0
  221. package/lib/primitives/Text.d.ts +7 -0
  222. package/lib/primitives/__tests__/Box.test.d.ts +1 -0
  223. package/lib/primitives/__tests__/Btn.test.d.ts +1 -0
  224. package/lib/primitives/__tests__/Flex.test.d.ts +1 -0
  225. package/lib/primitives/__tests__/Link.test.d.ts +1 -0
  226. package/lib/primitives/__tests__/Svg.test.d.ts +1 -0
  227. package/lib/primitives/__tests__/Text.test.d.ts +1 -0
  228. package/lib/primitives/__tests__/primitives.test.d.ts +1 -0
  229. package/lib/primitives/__tests__/style-props.test.d.ts +1 -0
  230. package/lib/primitives/index.d.ts +9 -0
  231. package/lib/primitives/style-props.d.ts +4 -0
  232. package/lib/primitives/types.d.ts +95 -0
  233. package/lib/robot-types.d.ts +1 -0
  234. package/lib/slotmap/OT2SlotMap.d.ts +9 -0
  235. package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +1 -0
  236. package/lib/slotmap/index.d.ts +1 -0
  237. package/lib/structure/Card.d.ts +18 -0
  238. package/lib/structure/LabeledValue.d.ts +12 -0
  239. package/lib/structure/PageTabs.d.ts +11 -0
  240. package/lib/structure/Pill.d.ts +18 -0
  241. package/lib/structure/Splash.d.ts +8 -0
  242. package/lib/structure/TitleBar.d.ts +17 -0
  243. package/lib/structure/index.d.ts +6 -0
  244. package/lib/styles/borders.d.ts +8 -0
  245. package/lib/styles/colors.d.ts +37 -0
  246. package/lib/styles/flexbox.d.ts +29 -0
  247. package/lib/styles/index.d.ts +7 -0
  248. package/lib/styles/layout.d.ts +23 -0
  249. package/lib/styles/position.d.ts +5 -0
  250. package/lib/styles/spacing.d.ts +9 -0
  251. package/lib/styles/typography.d.ts +36 -0
  252. package/lib/tabbedNav/NavTab.d.ts +25 -0
  253. package/lib/tabbedNav/OutsideLinkTab.d.ts +24 -0
  254. package/lib/tabbedNav/TabbedNavBar.d.ts +7 -0
  255. package/lib/tabbedNav/index.d.ts +3 -0
  256. package/lib/testing/utils/index.d.ts +2 -0
  257. package/lib/testing/utils/matchers.d.ts +3 -0
  258. package/lib/testing/utils/renderWithProviders.d.ts +10 -0
  259. package/lib/tooltips/DeprecatedTooltip.d.ts +37 -0
  260. package/lib/tooltips/HoverTooltip.d.ts +36 -0
  261. package/lib/tooltips/Tooltip.d.ts +35 -0
  262. package/lib/tooltips/__tests__/Tooltip.test.d.ts +1 -0
  263. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +1 -0
  264. package/lib/tooltips/__tests__/usePopper.test.d.ts +1 -0
  265. package/lib/tooltips/__tests__/useTooltip.test.d.ts +1 -0
  266. package/lib/tooltips/constants.d.ts +17 -0
  267. package/lib/tooltips/index.d.ts +8 -0
  268. package/lib/tooltips/styles.d.ts +12 -0
  269. package/lib/tooltips/types.d.ts +52 -0
  270. package/lib/tooltips/useHoverTooltip.d.ts +24 -0
  271. package/lib/tooltips/usePopper.d.ts +2 -0
  272. package/lib/tooltips/useTooltip.d.ts +31 -0
  273. package/lib/ui-style-constants/index.d.ts +4 -0
  274. package/lib/ui-style-constants/responsiveness.d.ts +2 -0
  275. package/lib/ui-style-constants/spacing.d.ts +18 -0
  276. package/lib/ui-style-constants/typography.d.ts +70 -0
  277. package/lib/ui-style-constants/viewport.d.ts +15 -0
  278. package/lib/utils.d.ts +15 -0
  279. package/package.json +2 -2
  280. package/vite.config.ts +2 -0
@@ -0,0 +1,12 @@
1
+ import { MutableRefObject, CSSProperties } from 'react';
2
+ interface UseSwipeResult {
3
+ ref: MutableRefObject<null>;
4
+ style: CSSProperties;
5
+ isEnabled: boolean;
6
+ setSwipeType: (value: string) => void;
7
+ swipeType: string;
8
+ enable: () => void;
9
+ disable: () => void;
10
+ }
11
+ export declare const useSwipe: () => UseSwipeResult;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * React hook to call a function after a delay; adapted from: useInterval
3
+ *
4
+ * @template T (type of the input value)
5
+ * @param {() => unknown} callback (function to call after timeout)
6
+ * @param {number | null} delay (timeout delay, or null to disable the timeout)
7
+ * @returns {void}
8
+ */
9
+ export declare function useTimeout(callback: () => unknown, delay: number | null): void;
@@ -0,0 +1,22 @@
1
+ export type UseToggleResult = [boolean, () => void];
2
+ /**
3
+ * React hook to toggle a boolean value
4
+ *
5
+ * @param {boolean} [intialValue=false] (initial toggle value)
6
+ * @returns {[boolean, () => void]} (value and setValue tuple)
7
+ *
8
+ * @example
9
+ * import * as React from 'react'
10
+ * import { useToggle } from '@opentrons/components'
11
+ *
12
+ * export function ToggleButton() {
13
+ * const [enabled, toggleEnabled] = useToggle(true)
14
+ *
15
+ * return (
16
+ * <button onClick={toggleEnabled}>
17
+ * Setting is {enabled ? 'enabled' : 'disabled'}
18
+ * </button>
19
+ * )
20
+ * }
21
+ */
22
+ export declare function useToggle(initialValue?: boolean): UseToggleResult;
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ import { ICON_DATA_BY_NAME } from './icon-data';
3
+ import type { SvgProps } from '../primitives';
4
+ export type IconName = keyof typeof ICON_DATA_BY_NAME;
5
+ export interface IconProps extends SvgProps {
6
+ /** name constant of the icon to display */
7
+ name: IconName;
8
+ /** classes to apply */
9
+ className?: string;
10
+ /** spin the icon with a CSS animation */
11
+ spin?: boolean;
12
+ /** x attribute as a number or string (for nesting inside another SVG) */
13
+ x?: number | string;
14
+ /** y attribute as a number or string (for nesting inside another SVG) */
15
+ y?: number | string;
16
+ /** width as a number or string (for nesting inside another SVG) */
17
+ svgHeight?: number | string;
18
+ /** height as a number or string (for nesting inside another SVG) */
19
+ svgWidth?: number | string;
20
+ /** inline style passed into the icon svg */
21
+ style?: Record<string, string | number>;
22
+ /** optional children */
23
+ children?: React.ReactNode;
24
+ id?: string;
25
+ }
26
+ /**
27
+ * Inline SVG icon component
28
+ *
29
+ * If you need access to the IconName type, you can:
30
+ * ```js
31
+ * import type { IconName } from '@opentrons/components'
32
+ * ```
33
+ */
34
+ export declare function Icon(props: IconProps): JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ import { IconName } from './Icon';
2
+ import type { ModuleType } from '@opentrons/shared-data';
3
+ import type { StyleProps } from '../primitives/types';
4
+ export declare const MODULE_ICON_NAME_BY_TYPE: {
5
+ [type in ModuleType]: IconName;
6
+ };
7
+ interface ModuleIconProps extends StyleProps {
8
+ moduleType: ModuleType;
9
+ }
10
+ export declare function ModuleIcon(props: ModuleIconProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { IconProps, IconName } from './Icon';
2
+ export interface NotificationIconProps extends IconProps {
3
+ /** name constant of the optional notifcation icon to display */
4
+ childName: IconName | null;
5
+ /** color to apply to notification icon (defaults to COLOR_WARNING) */
6
+ childColor?: string;
7
+ }
8
+ /**
9
+ * Inline SVG icon component with additional nested notification icon. Takes
10
+ * all the same props as Icon in addition to the ones listed above.
11
+ */
12
+ export declare function NotificationIcon(props: NotificationIconProps): JSX.Element;
@@ -0,0 +1,586 @@
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
+ send: {
523
+ path: string;
524
+ viewBox: string;
525
+ };
526
+ settings: {
527
+ path: string;
528
+ viewBox: string;
529
+ };
530
+ sleep: {
531
+ path: string;
532
+ viewBox: string;
533
+ };
534
+ 'swap-horizontal': {
535
+ path: string;
536
+ viewBox: string;
537
+ };
538
+ 'text-size': {
539
+ path: string;
540
+ viewBox: string;
541
+ };
542
+ trash: {
543
+ path: string;
544
+ viewBox: string;
545
+ };
546
+ 'unfold-less-horizontal': {
547
+ path: string;
548
+ viewBox: string;
549
+ };
550
+ 'unfold-more-horizontal': {
551
+ path: string;
552
+ viewBox: string;
553
+ };
554
+ union: {
555
+ path: string;
556
+ viewBox: string;
557
+ };
558
+ update: {
559
+ path: string;
560
+ viewBox: string;
561
+ };
562
+ 'update-channel': {
563
+ path: string;
564
+ viewBox: string;
565
+ };
566
+ upload: {
567
+ path: string;
568
+ viewBox: string;
569
+ };
570
+ usb: {
571
+ path: string;
572
+ viewBox: string;
573
+ };
574
+ 'vertical-plane': {
575
+ path: string;
576
+ viewBox: string;
577
+ };
578
+ water: {
579
+ path: string;
580
+ viewBox: string;
581
+ };
582
+ wifi: {
583
+ path: string;
584
+ viewBox: string;
585
+ };
586
+ };
@@ -0,0 +1,4 @@
1
+ export * from './Icon';
2
+ export * from './NotificationIcon';
3
+ export * from './ModuleIcon';
4
+ export * from './icon-data';
@@ -0,0 +1 @@
1
+ export * from './labware';
@@ -0,0 +1 @@
1
+ export * from './measurement-guide';
@@ -0,0 +1,13 @@
1
+ export interface DiagramProps {
2
+ guideType?: string;
3
+ category?: string;
4
+ insertCategory?: string;
5
+ shape?: string;
6
+ wellBottomShape?: string;
7
+ guideVisible?: boolean;
8
+ irregular?: boolean;
9
+ isMultiRow?: boolean;
10
+ }
11
+ export declare function getFootprintDiagram(props: DiagramProps): string[];
12
+ export declare function getSpacingDiagram(props: DiagramProps): string[];
13
+ export declare function getMeasurementDiagram(props: DiagramProps): string[];