@opentrons/components 0.1.5 → 0.1.6-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/Makefile +5 -8
  2. package/README.md +1 -15
  3. package/babel.config.cjs +21 -0
  4. package/lib/index.mjs +19869 -0
  5. package/package.json +6 -5
  6. package/tsconfig.json +2 -2
  7. package/typings/global.d.ts +0 -1
  8. package/vite.config.ts +57 -0
  9. package/lib/__tests__/utils.test.d.ts +0 -1
  10. package/lib/alerts/AlertItem.d.ts +0 -21
  11. package/lib/alerts/index.d.ts +0 -1
  12. package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +0 -1
  13. package/lib/atoms/CheckboxField/index.d.ts +0 -20
  14. package/lib/atoms/StepMeter/index.d.ts +0 -6
  15. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -2
  16. package/lib/atoms/buttons/PrimaryButton.d.ts +0 -2
  17. package/lib/atoms/buttons/SecondaryButton.d.ts +0 -7
  18. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
  19. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +0 -1
  20. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +0 -1
  21. package/lib/atoms/buttons/index.d.ts +0 -3
  22. package/lib/atoms/index.d.ts +0 -3
  23. package/lib/barrel.d.ts +0 -3
  24. package/lib/buttons/Button.d.ts +0 -49
  25. package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -9
  26. package/lib/buttons/FlatButton.d.ts +0 -6
  27. package/lib/buttons/IconButton.d.ts +0 -15
  28. package/lib/buttons/OutlineButton.d.ts +0 -9
  29. package/lib/buttons/index.d.ts +0 -5
  30. package/lib/controls/ControlInfo.d.ts +0 -6
  31. package/lib/controls/LabeledButton.d.ts +0 -8
  32. package/lib/controls/LabeledCheckbox.d.ts +0 -10
  33. package/lib/controls/LabeledControl.d.ts +0 -7
  34. package/lib/controls/LabeledRadioGroup.d.ts +0 -8
  35. package/lib/controls/LabeledSelect.d.ts +0 -9
  36. package/lib/controls/LabeledToggle.d.ts +0 -11
  37. package/lib/controls/StackedLabeledControl.d.ts +0 -7
  38. package/lib/controls/ToggleButton.d.ts +0 -6
  39. package/lib/controls/index.d.ts +0 -6
  40. package/lib/forms/DeprecatedCheckboxField.d.ts +0 -33
  41. package/lib/forms/DropdownField.d.ts +0 -38
  42. package/lib/forms/FormGroup.d.ts +0 -19
  43. package/lib/forms/InputField.d.ts +0 -51
  44. package/lib/forms/RadioGroup.d.ts +0 -29
  45. package/lib/forms/Select.d.ts +0 -27
  46. package/lib/forms/SelectField.d.ts +0 -33
  47. package/lib/forms/ToggleField.d.ts +0 -22
  48. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -0
  49. package/lib/forms/__tests__/DropdownField.test.d.ts +0 -0
  50. package/lib/forms/__tests__/InputField.test.d.ts +0 -0
  51. package/lib/forms/__tests__/Select.test.d.ts +0 -0
  52. package/lib/forms/__tests__/SelectField.test.d.ts +0 -0
  53. package/lib/forms/__tests__/ToggleField.test.d.ts +0 -0
  54. package/lib/forms/index.d.ts +0 -8
  55. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +0 -42
  56. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +0 -12
  57. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +0 -2
  58. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +0 -2
  59. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +0 -13
  60. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +0 -21
  61. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +0 -14
  62. package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +0 -4
  63. package/lib/hardware-sim/BaseDeck/index.d.ts +0 -5
  64. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -11
  65. package/lib/hardware-sim/Deck/FlexTrash.d.ts +0 -14
  66. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -17
  67. package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -11
  68. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +0 -14
  69. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +0 -12
  70. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +0 -8
  71. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +0 -21
  72. package/lib/hardware-sim/Deck/SlotLabels.d.ts +0 -12
  73. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +0 -2
  74. package/lib/hardware-sim/Deck/constants.d.ts +0 -1
  75. package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +0 -2
  76. package/lib/hardware-sim/Deck/index.d.ts +0 -9
  77. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -9
  78. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -9
  79. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -9
  80. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -10
  81. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +0 -15
  82. package/lib/hardware-sim/DeckConfigurator/index.d.ts +0 -14
  83. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +0 -15
  84. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -2
  85. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -2
  86. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -2
  87. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -2
  88. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -2
  89. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +0 -19
  90. package/lib/hardware-sim/Labware/LabwareRender.d.ts +0 -42
  91. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +0 -1
  92. package/lib/hardware-sim/Labware/index.d.ts +0 -3
  93. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +0 -10
  94. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +0 -18
  95. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +0 -17
  96. package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +0 -9
  97. package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +0 -19
  98. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +0 -19
  99. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +0 -12
  100. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +0 -1
  101. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +0 -1
  102. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +0 -6
  103. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +0 -12
  104. package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -5
  105. package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -2
  106. package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -2
  107. package/lib/hardware-sim/Module/ModuleTag.d.ts +0 -9
  108. package/lib/hardware-sim/Module/Temperature.d.ts +0 -5
  109. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -7
  110. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -7
  111. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -8
  112. package/lib/hardware-sim/Module/index.d.ts +0 -18
  113. package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +0 -4
  114. package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +0 -4
  115. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +0 -8
  116. package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +0 -1
  117. package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +0 -1
  118. package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +0 -1
  119. package/lib/hardware-sim/Pipette/constants.d.ts +0 -7
  120. package/lib/hardware-sim/Pipette/index.d.ts +0 -1
  121. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +0 -6
  122. package/lib/hardware-sim/ProtocolDeck/index.d.ts +0 -12
  123. package/lib/hardware-sim/ProtocolDeck/types.d.ts +0 -8
  124. package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +0 -1
  125. package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +0 -5
  126. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +0 -12
  127. package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +0 -3
  128. package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +0 -10
  129. package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +0 -2
  130. package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +0 -4
  131. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +0 -2
  132. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +0 -7
  133. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +0 -19
  134. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +0 -2
  135. package/lib/hardware-sim/index.d.ts +0 -11
  136. package/lib/hardware-sim/utils.d.ts +0 -3
  137. package/lib/helix-design-system/colors.d.ts +0 -75
  138. package/lib/helix-design-system/index.d.ts +0 -1
  139. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -0
  140. package/lib/hooks/__tests__/useDrag.test.d.ts +0 -1
  141. package/lib/hooks/__tests__/useIdle.test.d.ts +0 -1
  142. package/lib/hooks/__tests__/useInterval.test.d.ts +0 -0
  143. package/lib/hooks/__tests__/useLongPress.test.d.ts +0 -1
  144. package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -0
  145. package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -0
  146. package/lib/hooks/__tests__/useScrolling.test.d.ts +0 -1
  147. package/lib/hooks/__tests__/useSwipe.test.d.ts +0 -1
  148. package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -0
  149. package/lib/hooks/__tests__/useToggle.test.d.ts +0 -0
  150. package/lib/hooks/index.d.ts +0 -12
  151. package/lib/hooks/useConditionalConfirm.d.ts +0 -40
  152. package/lib/hooks/useDrag.d.ts +0 -22
  153. package/lib/hooks/useIdle.d.ts +0 -11
  154. package/lib/hooks/useInterval.d.ts +0 -11
  155. package/lib/hooks/useLongPress.d.ts +0 -19
  156. package/lib/hooks/useMountEffect.d.ts +0 -8
  157. package/lib/hooks/usePrevious.d.ts +0 -9
  158. package/lib/hooks/useScrolling.d.ts +0 -1
  159. package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -20
  160. package/lib/hooks/useSwipe.d.ts +0 -12
  161. package/lib/hooks/useTimeout.d.ts +0 -9
  162. package/lib/hooks/useToggle.d.ts +0 -22
  163. package/lib/icons/Icon.d.ts +0 -34
  164. package/lib/icons/ModuleIcon.d.ts +0 -12
  165. package/lib/icons/NotificationIcon.d.ts +0 -13
  166. package/lib/icons/icon-data.d.ts +0 -582
  167. package/lib/icons/index.d.ts +0 -3
  168. package/lib/images/index.d.ts +0 -1
  169. package/lib/images/labware/index.d.ts +0 -1
  170. package/lib/images/labware/measurement-guide/index.d.ts +0 -13
  171. package/lib/index.d.ts +0 -28
  172. package/lib/instrument/InfoItem.d.ts +0 -11
  173. package/lib/instrument/InstrumentDiagram.d.ts +0 -12
  174. package/lib/instrument/InstrumentGroup.d.ts +0 -12
  175. package/lib/instrument/InstrumentInfo.d.ts +0 -24
  176. package/lib/instrument/PipetteSelect.d.ts +0 -20
  177. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -0
  178. package/lib/instrument/index.d.ts +0 -5
  179. package/lib/interaction-enhancers/ClickOutside.d.ts +0 -18
  180. package/lib/interaction-enhancers/HandleKeypress.d.ts +0 -27
  181. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -0
  182. package/lib/interaction-enhancers/index.d.ts +0 -4
  183. package/lib/interaction-enhancers/useHover.d.ts +0 -33
  184. package/lib/interaction-enhancers/useOnClickOutside.d.ts +0 -5
  185. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -8
  186. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -18
  187. package/lib/legacy-hardware-sim/index.d.ts +0 -2
  188. package/lib/lists/ListItem.d.ts +0 -37
  189. package/lib/lists/SidePanelGroup.d.ts +0 -18
  190. package/lib/lists/TitledList.d.ts +0 -44
  191. package/lib/lists/index.d.ts +0 -3
  192. package/lib/modals/AlertModal.d.ts +0 -27
  193. package/lib/modals/BaseModal.d.ts +0 -26
  194. package/lib/modals/ContinueModal.d.ts +0 -10
  195. package/lib/modals/Modal.d.ts +0 -23
  196. package/lib/modals/ModalPage.d.ts +0 -16
  197. package/lib/modals/ModalShell.d.ts +0 -25
  198. package/lib/modals/Overlay.d.ts +0 -9
  199. package/lib/modals/SpinnerModal.d.ts +0 -13
  200. package/lib/modals/SpinnerModalPage.d.ts +0 -11
  201. package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
  202. package/lib/modals/index.d.ts +0 -9
  203. package/lib/molecules/LocationIcon/__tests__/LocationIcon.test.d.ts +0 -1
  204. package/lib/molecules/LocationIcon/index.d.ts +0 -16
  205. package/lib/molecules/RoundTab.d.ts +0 -8
  206. package/lib/molecules/index.d.ts +0 -2
  207. package/lib/nav/SidePanel.d.ts +0 -6
  208. package/lib/nav/index.d.ts +0 -1
  209. package/lib/opentrons-components.js +0 -16
  210. package/lib/primitives/Box.d.ts +0 -7
  211. package/lib/primitives/Btn.d.ts +0 -61
  212. package/lib/primitives/Flex.d.ts +0 -7
  213. package/lib/primitives/ForeignObject.d.ts +0 -23
  214. package/lib/primitives/Link.d.ts +0 -11
  215. package/lib/primitives/Svg.d.ts +0 -23
  216. package/lib/primitives/Text.d.ts +0 -7
  217. package/lib/primitives/__tests__/Box.test.d.ts +0 -0
  218. package/lib/primitives/__tests__/Btn.test.d.ts +0 -0
  219. package/lib/primitives/__tests__/Flex.test.d.ts +0 -0
  220. package/lib/primitives/__tests__/Link.test.d.ts +0 -0
  221. package/lib/primitives/__tests__/Svg.test.d.ts +0 -0
  222. package/lib/primitives/__tests__/Text.test.d.ts +0 -0
  223. package/lib/primitives/__tests__/primitives.test.d.ts +0 -0
  224. package/lib/primitives/__tests__/style-props.test.d.ts +0 -0
  225. package/lib/primitives/index.d.ts +0 -9
  226. package/lib/primitives/style-props.d.ts +0 -4
  227. package/lib/primitives/types.d.ts +0 -96
  228. package/lib/robot-types.d.ts +0 -1
  229. package/lib/slotmap/SlotMap.d.ts +0 -12
  230. package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
  231. package/lib/slotmap/index.d.ts +0 -1
  232. package/lib/structure/Card.d.ts +0 -18
  233. package/lib/structure/LabeledValue.d.ts +0 -12
  234. package/lib/structure/PageTabs.d.ts +0 -12
  235. package/lib/structure/Pill.d.ts +0 -18
  236. package/lib/structure/Splash.d.ts +0 -9
  237. package/lib/structure/TitleBar.d.ts +0 -17
  238. package/lib/structure/index.d.ts +0 -6
  239. package/lib/styles/borders.d.ts +0 -8
  240. package/lib/styles/colors.d.ts +0 -37
  241. package/lib/styles/flexbox.d.ts +0 -28
  242. package/lib/styles/index.d.ts +0 -7
  243. package/lib/styles/layout.d.ts +0 -23
  244. package/lib/styles/position.d.ts +0 -5
  245. package/lib/styles/spacing.d.ts +0 -9
  246. package/lib/styles/typography.d.ts +0 -36
  247. package/lib/tabbedNav/NavTab.d.ts +0 -25
  248. package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
  249. package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
  250. package/lib/tabbedNav/index.d.ts +0 -3
  251. package/lib/testing/utils/index.d.ts +0 -2
  252. package/lib/testing/utils/matchers.d.ts +0 -6
  253. package/lib/testing/utils/renderWithProviders.d.ts +0 -10
  254. package/lib/tooltips/DeprecatedTooltip.d.ts +0 -37
  255. package/lib/tooltips/HoverTooltip.d.ts +0 -36
  256. package/lib/tooltips/Tooltip.d.ts +0 -35
  257. package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -0
  258. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -0
  259. package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -0
  260. package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -0
  261. package/lib/tooltips/constants.d.ts +0 -17
  262. package/lib/tooltips/index.d.ts +0 -8
  263. package/lib/tooltips/styles.d.ts +0 -12
  264. package/lib/tooltips/types.d.ts +0 -52
  265. package/lib/tooltips/useHoverTooltip.d.ts +0 -24
  266. package/lib/tooltips/usePopper.d.ts +0 -2
  267. package/lib/tooltips/useTooltip.d.ts +0 -31
  268. package/lib/ui-style-constants/borders.d.ts +0 -18
  269. package/lib/ui-style-constants/index.d.ts +0 -4
  270. package/lib/ui-style-constants/responsiveness.d.ts +0 -2
  271. package/lib/ui-style-constants/spacing.d.ts +0 -17
  272. package/lib/ui-style-constants/typography.d.ts +0 -70
  273. package/lib/utils.d.ts +0 -15
  274. package/webpack.config.js +0 -38
@@ -1,34 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconName } from './Icon';
3
- import type { ModuleType } from '@opentrons/shared-data';
4
- import type { StyleProps } from '../primitives/types';
5
- export declare const MODULE_ICON_NAME_BY_TYPE: {
6
- [type in ModuleType]: IconName;
7
- };
8
- interface ModuleIconProps extends StyleProps {
9
- moduleType: ModuleType;
10
- }
11
- export declare function ModuleIcon(props: ModuleIconProps): JSX.Element;
12
- export {};
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import type { IconProps, IconName } from './Icon';
3
- export interface NotificationIconProps extends IconProps {
4
- /** name constant of the optional notifcation icon to display */
5
- childName: IconName | null;
6
- /** color to apply to notification icon (defaults to COLOR_WARNING) */
7
- childColor?: string;
8
- }
9
- /**
10
- * Inline SVG icon component with additional nested notification icon. Takes
11
- * all the same props as Icon in addition to the ones listed above.
12
- */
13
- export declare function NotificationIcon(props: NotificationIconProps): JSX.Element;
@@ -1,582 +0,0 @@
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,3 +0,0 @@
1
- export * from './Icon';
2
- export * from './NotificationIcon';
3
- export * from './ModuleIcon';
@@ -1 +0,0 @@
1
- export * from './labware';
@@ -1 +0,0 @@
1
- export * from './measurement-guide';
@@ -1,13 +0,0 @@
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[];
package/lib/index.d.ts DELETED
@@ -1,28 +0,0 @@
1
- export * from './hooks';
2
- export * from './utils';
3
- export * from './alerts';
4
- export * from './buttons';
5
- export * from './controls';
6
- export * from './hardware-sim';
7
- export * from './legacy-hardware-sim';
8
- export * from './forms';
9
- export * from './icons';
10
- export * from './images';
11
- export * from './instrument';
12
- export * from './interaction-enhancers';
13
- export * from './lists';
14
- export * from './modals';
15
- export * from './nav';
16
- export * from './primitives';
17
- export * from './tabbedNav';
18
- export * from './slotmap';
19
- export * from './structure';
20
- export * from './tooltips';
21
- export * from './styles';
22
- export * from './ui-style-constants';
23
- export * from './helix-design-system';
24
- export * from './helix-design-system';
25
- export * from './robot-types';
26
- export * from './testing/utils';
27
- export * from './molecules';
28
- export * from './atoms';
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export interface InfoItemProps {
3
- title: string;
4
- value: string;
5
- className?: string;
6
- }
7
- /**
8
- * Used by `InstrumentInfo` for its titled values.
9
- * But if you're using this, you probably want `LabeledValue` instead.
10
- */
11
- export declare function InfoItem(props: InfoItemProps): JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { FlattenSimpleInterpolation } from 'styled-components';
3
- import type { PipetteNameSpecs } from '@opentrons/shared-data';
4
- import type { Mount } from '../robot-types';
5
- import type { StyleProps } from '..';
6
- export interface InstrumentDiagramProps extends StyleProps {
7
- mount: Mount;
8
- pipetteSpecs?: Pick<PipetteNameSpecs, 'displayCategory' | 'channels'> | null;
9
- className?: string;
10
- imageStyle?: FlattenSimpleInterpolation;
11
- }
12
- export declare function InstrumentDiagram(props: InstrumentDiagramProps): JSX.Element;