@opentrons/components 0.2.1-alpha.0 → 0.3.0-alpha.1

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 (219) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +12 -48
  3. package/lib/assets/index.d.ts +1 -0
  4. package/lib/assets/localization/en/index.d.ts +191 -16
  5. package/lib/assets/localization/index.d.ts +292 -13
  6. package/lib/assets/localization/zh/index.d.ts +110 -8
  7. package/lib/atoms/Checkbox/index.d.ts +3 -3
  8. package/lib/atoms/CheckboxField/index.d.ts +2 -0
  9. package/lib/atoms/FixedTrashText/index.d.ts +1 -0
  10. package/lib/atoms/InlineNotification/index.d.ts +1 -1
  11. package/lib/atoms/ListButton/index.d.ts +2 -2
  12. package/lib/atoms/MenuList/OverflowBtn.d.ts +2 -2
  13. package/lib/atoms/Slider/index.d.ts +14 -0
  14. package/lib/atoms/StepMeter/__tests__/StepMeter.test.d.ts +1 -1
  15. package/lib/atoms/StepMeter/index.d.ts +1 -2
  16. package/lib/atoms/StyledText/LegacyStyledText.d.ts +3 -1
  17. package/lib/atoms/StyledText/PlaceholderStyledText.d.ts +14 -0
  18. package/lib/atoms/StyledText/StyledText.d.ts +1 -0
  19. package/lib/atoms/StyledText/index.d.ts +1 -0
  20. package/lib/atoms/Tag/index.d.ts +1 -1
  21. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +3 -1
  22. package/lib/atoms/buttons/AltPrimaryButton.d.ts +3 -1
  23. package/lib/atoms/buttons/PrimaryButton.d.ts +2 -1
  24. package/lib/atoms/buttons/TertiaryButton.d.ts +8 -3
  25. package/lib/atoms/index.d.ts +2 -1
  26. package/lib/buttons/Button.d.ts +3 -3
  27. package/lib/controls/ToggleButton.d.ts +1 -1
  28. package/lib/forms/DeprecatedCheckboxField.d.ts +2 -2
  29. package/lib/forms/FormGroup.d.ts +4 -4
  30. package/lib/forms/LegacyInputField.d.ts +5 -5
  31. package/lib/forms/RadioGroup.d.ts +2 -2
  32. package/lib/forms/ToggleField.d.ts +1 -1
  33. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +19 -11
  34. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +2 -0
  35. package/lib/hardware-sim/BaseDeck/StackedBadge.d.ts +1 -0
  36. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -0
  37. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -0
  38. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +3 -2
  39. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +6 -5
  40. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +8 -5
  41. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +2 -3
  42. package/lib/hardware-sim/DeckConfigurator/VacuumModuleItem.d.ts +11 -0
  43. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +5 -0
  44. package/lib/hardware-sim/Labware/Labware.d.ts +3 -3
  45. package/lib/hardware-sim/Labware/LabwareAdapter/GenericLid.d.ts +9 -0
  46. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapterTypeB.d.ts +1 -0
  47. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +11 -3
  48. package/lib/hardware-sim/Labware/LabwareRender.d.ts +9 -9
  49. package/lib/hardware-sim/Labware/index.d.ts +1 -1
  50. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +1 -1
  51. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +1 -1
  52. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +7 -2
  53. package/lib/hardware-sim/Labware/labwareInternals/Tips/InaccessibleTip.d.ts +3 -0
  54. package/lib/hardware-sim/Labware/labwareInternals/Tips/NewTip.d.ts +4 -0
  55. package/lib/hardware-sim/Labware/labwareInternals/Tips/TipStatus.d.ts +11 -0
  56. package/lib/hardware-sim/Labware/labwareInternals/Tips/UsedTip.d.ts +4 -0
  57. package/lib/hardware-sim/Labware/labwareInternals/Tips/__tests__/TipStatus.test.d.ts +1 -0
  58. package/lib/hardware-sim/Labware/labwareInternals/Tips/constants.d.ts +11 -0
  59. package/lib/hardware-sim/Labware/labwareInternals/Tips/index.d.ts +2 -0
  60. package/lib/hardware-sim/Labware/labwareInternals/Wells/EmptyWell.d.ts +10 -0
  61. package/lib/hardware-sim/Labware/labwareInternals/{FilledWells.d.ts → Wells/FilledWells.d.ts} +3 -3
  62. package/lib/hardware-sim/Labware/labwareInternals/Wells/SelectedWell.d.ts +13 -0
  63. package/lib/hardware-sim/Labware/labwareInternals/{StrokedWells.d.ts → Wells/StrokedWells.d.ts} +2 -2
  64. package/lib/hardware-sim/Labware/labwareInternals/{StyledWells.d.ts → Wells/StyledWells.d.ts} +1 -1
  65. package/lib/hardware-sim/Labware/labwareInternals/{Well.d.ts → Wells/Well.d.ts} +2 -3
  66. package/lib/hardware-sim/Labware/labwareInternals/{WellLabels.d.ts → Wells/WellLabels.d.ts} +2 -2
  67. package/lib/hardware-sim/Labware/labwareInternals/Wells/WellStatus.d.ts +12 -0
  68. package/lib/hardware-sim/Labware/labwareInternals/Wells/constants.d.ts +21 -0
  69. package/lib/hardware-sim/Labware/labwareInternals/Wells/index.d.ts +9 -0
  70. package/lib/hardware-sim/Labware/labwareInternals/Wells/utils.d.ts +2 -0
  71. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +2 -5
  72. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +10 -12
  73. package/lib/hardware-sim/Module/Vacuum.d.ts +1 -0
  74. package/lib/hardware-sim/Module/index.d.ts +40 -5
  75. package/lib/hardware-sim/Pipette/StrokedNozzles.d.ts +10 -0
  76. package/lib/hardware-sim/Pipette/constants.d.ts +3 -0
  77. package/lib/hardware-sim/Pipette/index.d.ts +1 -0
  78. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +5 -3
  79. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +5 -4
  80. package/lib/hardware-sim/alignment/AlignToModuleChildSlot.d.ts +25 -0
  81. package/lib/hardware-sim/alignment/CenterLabwareInModuleChildSlot.d.ts +33 -0
  82. package/lib/hardware-sim/alignment/CenterLabwareInSlot.d.ts +11 -0
  83. package/lib/hardware-sim/alignment/index.d.ts +4 -0
  84. package/lib/hardware-sim/index.d.ts +1 -0
  85. package/lib/helix-design-system/colors.d.ts +1 -0
  86. package/lib/hocs/withStyleProps.d.ts +1 -1
  87. package/lib/hooks/__tests__/useCommandTypeSummaries.test.d.ts +1 -0
  88. package/lib/hooks/index.d.ts +2 -1
  89. package/lib/hooks/testHelpers/index.d.ts +2 -0
  90. package/lib/hooks/useCommandTypeSummaries.d.ts +2 -0
  91. package/lib/hooks/useConditionalConfirm.d.ts +5 -9
  92. package/lib/i18n.d.ts +4 -0
  93. package/lib/icons/ModuleIcon.d.ts +5 -4
  94. package/lib/icons/icon-data.d.ts +702 -4
  95. package/lib/index.d.ts +2 -1
  96. package/lib/index.js +557 -0
  97. package/lib/index.mjs +30626 -28730
  98. package/lib/interaction-enhancers/HandleKeypress.d.ts +2 -2
  99. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +1 -1
  100. package/lib/legacy-hardware-sim/index.d.ts +0 -1
  101. package/lib/modals/AlertModal.d.ts +1 -1
  102. package/lib/molecules/CustomizeExpandButton/index.d.ts +2 -2
  103. package/lib/molecules/DeckInfoLabel/index.d.ts +8 -20
  104. package/lib/molecules/DeckLabel/index.d.ts +9 -2
  105. package/lib/molecules/DropdownMenu/index.d.ts +5 -4
  106. package/lib/molecules/IconButton/index.d.ts +45 -0
  107. package/lib/molecules/InfoScreen/index.d.ts +3 -1
  108. package/lib/molecules/InputField/__tests__/InputField.test.d.ts +1 -0
  109. package/lib/{atoms → molecules}/InputField/index.d.ts +13 -12
  110. package/lib/molecules/LiquidIcon/index.d.ts +2 -1
  111. package/lib/molecules/RobotInfoLabel/__tests__/RobotInfoLabel.test.d.ts +1 -0
  112. package/lib/molecules/RobotInfoLabel/index.d.ts +12 -0
  113. package/lib/molecules/StepGroup/__tests__/StepGroup.test.d.ts +1 -0
  114. package/lib/molecules/StepGroup/index.d.ts +11 -0
  115. package/lib/molecules/TextAreaField/__tests__/TextAreaField.test.d.ts +1 -0
  116. package/lib/molecules/TextAreaField/index.d.ts +34 -0
  117. package/lib/molecules/TimelineScrubber/TrackSlider.d.ts +10 -0
  118. package/lib/molecules/TimelineScrubber/index.d.ts +6 -0
  119. package/lib/molecules/TouchInputField/__tests__/TouchInputField.test.d.ts +1 -0
  120. package/lib/molecules/TouchInputField/index.d.ts +56 -0
  121. package/lib/molecules/WizardHeader/__tests__/WizardHeader.test.d.ts +1 -0
  122. package/lib/molecules/WizardHeader/index.d.ts +11 -0
  123. package/lib/molecules/index.d.ts +8 -1
  124. package/lib/organisms/CommandText/getCommandData.d.ts +3 -0
  125. package/lib/organisms/CommandText/index.d.ts +2 -1
  126. package/lib/organisms/CommandText/useCommandTextString/index.d.ts +8 -3
  127. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/__tests__/getTipStateCommandText.test.d.ts +1 -0
  128. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getConcurrentCommandText.d.ts +3 -0
  129. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getHSConcurrentShakeSpeedCommandTex.d.ts +3 -0
  130. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getRobotDevicesCommandText.d.ts +3 -0
  131. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getTCStartRunExtendedProfileCommandText.d.ts +4 -0
  132. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getTipStateCommandText.d.ts +3 -0
  133. package/lib/organisms/CommandText/useCommandTextString/utils/commandText/index.d.ts +5 -0
  134. package/lib/organisms/CommandText/useCommandTextString/utils/getLabwareDisplayLocation.d.ts +2 -0
  135. package/lib/organisms/CommandText/useCommandTextString/utils/getLiquidDisplayName.d.ts +2 -1
  136. package/lib/organisms/CommandText/useCommandTextString/utils/types.d.ts +2 -1
  137. package/lib/organisms/DeckLabelSet/index.d.ts +1 -0
  138. package/lib/organisms/FixtureOption/index.d.ts +0 -1
  139. package/lib/organisms/LabwareDetailsWithCount/__tests__/LabwareDetailsWithCount.test.d.ts +1 -0
  140. package/lib/organisms/LabwareDetailsWithCount/index.d.ts +7 -0
  141. package/lib/organisms/LabwareInfoOverlay/__tests__/LabwareInfoOverlay.test.d.ts +1 -0
  142. package/lib/organisms/LabwareInfoOverlay/index.d.ts +12 -0
  143. package/lib/organisms/ProtocolDeck/index.d.ts +1 -0
  144. package/lib/organisms/Toolbox/index.d.ts +2 -0
  145. package/lib/organisms/index.d.ts +4 -3
  146. package/lib/primitives/Box.d.ts +3 -7
  147. package/lib/primitives/Btn.d.ts +2 -55
  148. package/lib/primitives/Buttons/NewPrimaryBtn.d.ts +8 -0
  149. package/lib/primitives/Buttons/NewSecondaryBtn.d.ts +8 -0
  150. package/lib/primitives/Flex.d.ts +3 -7
  151. package/lib/primitives/ForeignObject.d.ts +8 -18
  152. package/lib/primitives/Link.d.ts +3 -7
  153. package/lib/primitives/Svg.d.ts +4 -13
  154. package/lib/primitives/Text.d.ts +5 -7
  155. package/lib/primitives/index.d.ts +2 -0
  156. package/lib/primitives/style-props.d.ts +3 -3
  157. package/lib/primitives/types.d.ts +10 -3
  158. package/lib/src/alerts/alerts.module.css +103 -0
  159. package/lib/src/atoms/StyledText/placeholderstyledtext.module.css +26 -0
  160. package/lib/src/buttons/buttons.module.css +428 -0
  161. package/lib/src/controls/styles.module.css +103 -0
  162. package/lib/src/forms/Select.module.css +118 -0
  163. package/lib/src/forms/SelectField.module.css +16 -0
  164. package/lib/src/forms/forms.module.css +240 -0
  165. package/lib/src/hardware-sim/BaseDeck/basedeck.module.css +20 -0
  166. package/lib/src/hardware-sim/Deck/deck.module.css +54 -0
  167. package/lib/src/hardware-sim/Labware/labware.module.css +8 -0
  168. package/lib/src/hardware-sim/RobotCoordinateSpace/robotcoordinatespace.module.css +3 -0
  169. package/lib/src/icons/icon.module.css +10 -0
  170. package/lib/src/index.module.css +9 -0
  171. package/lib/src/instrument/PipetteSelect.module.css +14 -0
  172. package/lib/src/legacy-hardware-sim/LabwareNameOverlay.module.css +20 -0
  173. package/lib/src/legacy-hardware-sim/ModuleItem.module.css +98 -0
  174. package/lib/src/lists/lists.module.css +171 -0
  175. package/lib/src/modals/modals.module.css +275 -0
  176. package/lib/src/molecules/DeckInfoLabel/deckinfolabel.module.css +42 -0
  177. package/lib/src/molecules/ReleaseNotes/styles.module.css +66 -0
  178. package/lib/src/nav/SidePanel.module.css +34 -0
  179. package/lib/src/slotmap/styles.module.css +18 -0
  180. package/lib/src/structure/Pill.module.css +16 -0
  181. package/lib/src/structure/Splash.module.css +16 -0
  182. package/lib/src/structure/structure.module.css +114 -0
  183. package/lib/src/styles/borders.module.css +20 -0
  184. package/lib/src/styles/colors.module.css +58 -0
  185. package/lib/src/styles/global.css +179 -0
  186. package/lib/src/styles/index.module.css +8 -0
  187. package/lib/src/styles/typography.module.css +23 -0
  188. package/lib/src/tooltips/tooltips.module.css +72 -0
  189. package/lib/structure/Pill.d.ts +3 -3
  190. package/lib/style.css +1 -1
  191. package/lib/testing/utils/matchers.d.ts +0 -1
  192. package/lib/utils/__tests__/setRefs.test.d.ts +1 -0
  193. package/lib/utils/__tests__/truncateString.test.d.ts +1 -0
  194. package/lib/utils/humanizeLabwareType.d.ts +1 -0
  195. package/lib/utils/index.d.ts +4 -0
  196. package/lib/utils/setRefs.d.ts +2 -0
  197. package/lib/{utils.d.ts → utils/truncateString.d.ts} +0 -2
  198. package/lib/utils/wellNameSplit.d.ts +1 -0
  199. package/package.json +21 -26
  200. package/src/index.module.css +9 -0
  201. package/src/styles/borders.module.css +20 -0
  202. package/src/styles/borders.ts +16 -0
  203. package/src/styles/colors.module.css +52 -0
  204. package/src/styles/colors.ts +58 -0
  205. package/src/styles/cursor.ts +12 -0
  206. package/src/styles/flexbox.ts +39 -0
  207. package/src/styles/global.css +180 -0
  208. package/src/styles/index.module.css +8 -0
  209. package/src/styles/index.ts +8 -0
  210. package/src/styles/layout.ts +31 -0
  211. package/src/styles/position.ts +5 -0
  212. package/src/styles/spacing.ts +11 -0
  213. package/src/styles/typography.module.css +23 -0
  214. package/src/styles/typography.ts +90 -0
  215. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
  216. /package/lib/{__tests__/utils.test.d.ts → atoms/Slider/__tests__/Slider.test.d.ts} +0 -0
  217. /package/lib/{atoms/InputField/__tests__/InputField.test.d.ts → hardware-sim/DeckConfigurator/__tests__/VacuumModuleItem.test.d.ts} +0 -0
  218. /package/lib/hardware-sim/Labware/labwareInternals/{__tests__ → Wells/__tests__}/StrokedWells.test.d.ts +0 -0
  219. /package/lib/hardware-sim/Labware/labwareInternals/{__tests__ → Wells/__tests__}/WellLabels.test.d.ts +0 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,55 +1,19 @@
1
- # opentrons components library
1
+ # @opentrons/components
2
2
 
3
- React components for Opentrons' applications. Visit the [Opentrons Components Library][components-library] to see available components.
3
+ > **Alpha software - not intended for public use.**
4
+ >
5
+ > This package is published as a true alpha. There is no guarantee it works,
6
+ > no guarantee of API stability, and no support commitment. It may be broken,
7
+ > incomplete, or removed without notice. Do not use this in production.
4
8
 
5
- [components-library]: https://s3-us-west-2.amazonaws.com/opentrons-components/edge/index.html
9
+ ## Version
6
10
 
7
- ## example usage
11
+ `0.3.0-alpha.1`
8
12
 
9
- ```javascript
10
- import { PrimaryButton } from '@opentrons/components'
11
- export default function CowButton(props) {
12
- return <PrimaryButton onClick={() => console.log('🐄')} />
13
- }
14
- ```
13
+ ## License
15
14
 
16
- ## setup
15
+ Apache-2.0 - see [LICENSE](./LICENSE).
17
16
 
18
- Usage requirements for dependent projects:
17
+ ## Source
19
18
 
20
- - Node v22.11.0+ and yarn
21
- - The following `dependencies` (peer dependencies of `@opentrons/components`)
22
- - `react`: `17.0.1`,
23
- - `react-router-dom`: `^4.2.2`,
24
- - `classnames`: `^2.2.5`,
25
- - `lodash`: `^4.17.4`
26
-
27
- ## contributing
28
-
29
- Make sure you have read the top-level [Contributing Guide][contributing].
30
-
31
- ### unit tests
32
-
33
- Unit tests are run with the rest of the repositories unit tests from the top level of the project.
34
-
35
- ```shell
36
- make test-js
37
- ```
38
-
39
- Unit tests live in a `__tests__` directory in the same directory as the module under test. When writing unit tests for components, we've found the following tests to be the most useful:
40
-
41
- - DOM tests
42
- - Make sure the component renders the correct node type
43
- - Make sure DOM attributes are mapped correctly
44
- - Make sure handlers fire correctly
45
- - Render tests
46
-
47
- - Snapshot tests using [jest's snapshot functionality][jest-snapshots]
48
- - To regenerate snapshots after an intentional rendering change, run:
49
-
50
- ```shell
51
- make test-js updateSnapshot=true
52
- ```
53
-
54
- [jest-snapshots]: https://facebook.github.io/jest/docs/en/snapshot-testing.html
55
- [contributing]: ../CONTRIBUTING.md
19
+ This package is built from the [Opentrons monorepo](https://github.com/Opentrons/opentrons).
@@ -0,0 +1 @@
1
+ export * from './localization';
@@ -1,23 +1,189 @@
1
- export declare const en: {
1
+ export declare const shared_en_resources: {
2
+ command_type_summary: {
3
+ "absorbanceReader/closeLid": string;
4
+ "absorbanceReader/initialize": string;
5
+ "absorbanceReader/openLid": string;
6
+ "absorbanceReader/read": string;
7
+ airGapInPlace: string;
8
+ aspirate: string;
9
+ aspirateInPlace: string;
10
+ aspirateWhileTracking: string;
11
+ blowout: string;
12
+ blowOutInPlace: string;
13
+ "calibration/calibrateGripper": string;
14
+ "calibration/calibrateModule": string;
15
+ "calibration/calibratePipette": string;
16
+ "calibration/moveToMaintenancePosition": string;
17
+ captureImage: string;
18
+ comment: string;
19
+ configureForVolume: string;
20
+ configureNozzleLayout: string;
21
+ createCSV: string;
22
+ createTimer: string;
23
+ csvWriteRow: string;
24
+ custom: string;
25
+ delay: string;
26
+ dispense: string;
27
+ dispenseInPlace: string;
28
+ dispenseWhileTracking: string;
29
+ dropTip: string;
30
+ dropTipInPlace: string;
31
+ "flexStacker/closeLatch": string;
32
+ "flexStacker/empty": string;
33
+ "flexStacker/fill": string;
34
+ "flexStacker/openLatch": string;
35
+ "flexStacker/prepareShuttle": string;
36
+ "flexStacker/retrieve": string;
37
+ "flexStacker/setStoredLabware": string;
38
+ "flexStacker/store": string;
39
+ getNextTip: string;
40
+ getTipPresence: string;
41
+ "heaterShaker/closeLabwareLatch": string;
42
+ "heaterShaker/deactivateHeater": string;
43
+ "heaterShaker/deactivateShaker": string;
44
+ "heaterShaker/openLabwareLatch": string;
45
+ "heaterShaker/setAndWaitForShakeSpeed": string;
46
+ "heaterShaker/setShakeSpeed": string;
47
+ "heaterShaker/setTargetTemperature": string;
48
+ "heaterShaker/waitForTemperature": string;
49
+ home: string;
50
+ identifyModule: string;
51
+ liquidProbe: string;
52
+ loadLabware: string;
53
+ loadLid: string;
54
+ loadLidStack: string;
55
+ loadLiquid: string;
56
+ loadLiquidClass: string;
57
+ loadModule: string;
58
+ loadPipette: string;
59
+ "magneticModule/disengage": string;
60
+ "magneticModule/engage": string;
61
+ moveLabware: string;
62
+ moveRelative: string;
63
+ moveToAddressableArea: string;
64
+ moveToAddressableAreaForDropTip: string;
65
+ moveTocoordinates: string;
66
+ moveToCoordinates: string;
67
+ moveToSlot: string;
68
+ moveToWell: string;
69
+ pause: string;
70
+ pickUpTip: string;
71
+ prepareToAspirate: string;
72
+ pressureDispense: string;
73
+ reloadLabware: string;
74
+ retractAxis: string;
75
+ "robot/closeGripperJaw": string;
76
+ "robot/moveAxesRelative": string;
77
+ "robot/moveAxesTo": string;
78
+ "robot/moveTo": string;
79
+ "robot/openGripperJaw": string;
80
+ savePosition: string;
81
+ sealPipetteToTip: string;
82
+ setRailLights: string;
83
+ setStatusBar: string;
84
+ setTipState: string;
85
+ "temperatureModule/deactivate": string;
86
+ "temperatureModule/setTargetTemperature": string;
87
+ "temperatureModule/waitForTemperature": string;
88
+ "thermocycler/awaitProfileComplete": string;
89
+ "thermocycler/closeLid": string;
90
+ "thermocycler/deactivateBlock": string;
91
+ "thermocycler/deactivateLid": string;
92
+ "thermocycler/openLid": string;
93
+ "thermocycler/runExtendedProfile": string;
94
+ "thermocycler/runProfile": string;
95
+ "thermocycler/setTargetBlockTemperature": string;
96
+ "thermocycler/setTargetLidTemperature": string;
97
+ "thermocycler/startRunExtendedProfile": string;
98
+ "thermocycler/waitForBlockTemperature": string;
99
+ "thermocycler/waitForLidTemperature": string;
100
+ touchTip: string;
101
+ tryLiquidProbe: string;
102
+ unknown: string;
103
+ "unsafe/blowOutInPlace": string;
104
+ "unsafe/dropTipInPlace": string;
105
+ "unsafe/engageAxes": string;
106
+ "unsafe/flexStacker/closeLatch": string;
107
+ "unsafe/flexStacker/manualRetrieve": string;
108
+ "unsafe/flexStacker/openLatch": string;
109
+ "unsafe/flexStacker/prepareShuttle": string;
110
+ "unsafe/placeLabware": string;
111
+ "unsafe/ungripLabware": string;
112
+ "unsafe/updatePositionEstimators": string;
113
+ unsealPipetteFromTip: string;
114
+ "vacuum_module/startSetVacuumPressure": string;
115
+ "vacuum_module/stopVacuum": string;
116
+ "vacuum_module/startSetVacuumPump": string;
117
+ verifyTipPresence: string;
118
+ waitForDuration: string;
119
+ waitForResume: string;
120
+ waitForTasks: string;
121
+ };
122
+ deck_configuration: {
123
+ absorbance: string;
124
+ center_slot: string;
125
+ flex_stacker_display_name: string;
126
+ flex_stacker_waste_chute_display_name: string;
127
+ heater_Shaker: string;
128
+ left_slot: string;
129
+ mag_block: string;
130
+ magnetic_block: string;
131
+ magnetic_block_with_staging_area_slot: string;
132
+ magnetic_block_with_waste_chute_right_adapter_covered: string;
133
+ magnetic_block_with_waste_chute_right_adapter_no_cover: string;
134
+ module_in_port: string;
135
+ module_in_port_and_magnetic_block: string;
136
+ module_in_port_and_waste_chute: string;
137
+ module_in_port_and_waste_chute_with_cover: string;
138
+ module_with_mag_block: string;
139
+ module_with_staging_area: string;
140
+ module_with_waste_chute: string;
141
+ module_with_waste_chute_and_cover: string;
142
+ right_slot: string;
143
+ slot: string;
144
+ staging_area: string;
145
+ staging_area_slot: string;
146
+ staging_area_slot_title: string;
147
+ temperature: string;
148
+ thermocycler: string;
149
+ trash_bin: string;
150
+ vacuum: string;
151
+ waste: string;
152
+ waste_chute: string;
153
+ waste_chute_with_cover: string;
154
+ waste_chute_with_staging_area_slot: string;
155
+ waste_chute_with_staging_area_slot_and_cover: string;
156
+ };
2
157
  protocol_command_text: {
3
158
  absorbance_reader_close_lid: string;
4
159
  absorbance_reader_initialize: string;
5
160
  absorbance_reader_open_lid: string;
6
161
  absorbance_reader_read: string;
7
162
  adapter_in_mod_in_slot: string;
163
+ adapter_in_mod_in_slot_plural: string;
8
164
  adapter_in_slot: string;
9
165
  air_gap_in_place: string;
10
166
  all_nozzles: string;
11
167
  aspirate: string;
12
168
  aspirate_in_place: string;
169
+ aspirate_while_tracking: string;
13
170
  blowout: string;
14
171
  blowout_in_place: string;
172
+ capture_image_brightness: string;
173
+ capture_image_contrast: string;
174
+ capture_image_list_separator: string;
175
+ capture_image_resolution: string;
176
+ capture_image_saturation: string;
177
+ capture_image_simple: string;
178
+ capture_image_with_options: string;
179
+ capture_image_zoom: string;
15
180
  closing_tc_lid: string;
16
181
  column_layout: string;
17
182
  comment: string;
18
183
  configure_for_volume: string;
19
184
  configure_nozzle_layout: string;
20
185
  confirm_and_resume: string;
186
+ create_timer: string;
21
187
  deactivate_hs_shake: string;
22
188
  deactivate_temperature_module: string;
23
189
  deactivating_hs_heater: string;
@@ -29,13 +195,16 @@ export declare const en: {
29
195
  dispense: string;
30
196
  dispense_in_place: string;
31
197
  dispense_push_out: string;
198
+ dispense_while_tracking: string;
32
199
  drop_tip: string;
33
200
  drop_tip_in_place: string;
34
201
  dropping_tip_in_trash: string;
202
+ empty_stacker: string;
35
203
  engaging_magnetic_module: string;
204
+ extension_jaw: string;
36
205
  extension_mount: string;
37
206
  extension_z: string;
38
- extension_jaw: string;
207
+ fill_stacker: string;
39
208
  fixed_trash: string;
40
209
  get_next_tip: string;
41
210
  home_gantry: string;
@@ -46,6 +215,9 @@ export declare const en: {
46
215
  left_plunger: string;
47
216
  left_z: string;
48
217
  load_labware_to_display_location: string;
218
+ load_lid: string;
219
+ load_lid_stack: string;
220
+ load_lid_stack_empty: string;
49
221
  load_liquid_class: string;
50
222
  load_liquids_info_protocol_setup: string;
51
223
  load_module_protocol_setup: string;
@@ -56,6 +228,8 @@ export declare const en: {
56
228
  move_labware_manually: string;
57
229
  move_labware_on: string;
58
230
  move_labware_using_gripper: string;
231
+ move_lid_stack_from_deck: string;
232
+ move_lid_stack_to_deck: string;
59
233
  move_relative: string;
60
234
  move_to_addressable_area: string;
61
235
  move_to_addressable_area_drop_tip: string;
@@ -63,16 +237,19 @@ export declare const en: {
63
237
  move_to_slot: string;
64
238
  move_to_well: string;
65
239
  multiple: string;
240
+ ninety_six_channel_cam: string;
66
241
  notes: string;
67
242
  off_deck: string;
68
243
  offdeck: string;
69
244
  on_location: string;
70
245
  opening_tc_lid: string;
246
+ partial_layout: string;
71
247
  pause: string;
72
248
  pause_on: string;
73
- partial_layout: string;
74
249
  pickup_tip: string;
75
250
  prepare_to_aspirate: string;
251
+ pressurizing_to_dispense: string;
252
+ quantity: string;
76
253
  reloading_labware: string;
77
254
  return_tip: string;
78
255
  right: string;
@@ -80,25 +257,32 @@ export declare const en: {
80
257
  right_plunger: string;
81
258
  right_z: string;
82
259
  robot_close_gripper_jaw: string;
83
- robot_move_to: string;
84
260
  robot_move_axes_relative: string;
85
261
  robot_move_axes_to: string;
262
+ robot_move_to: string;
86
263
  robot_open_gripper_jaw: string;
87
264
  row_layout: string;
88
265
  save_position: string;
266
+ sealing_to_location: string;
89
267
  set_and_await_hs_shake: string;
268
+ set_hs_shake: string;
269
+ set_tip_state: string;
90
270
  setting_hs_temp: string;
91
271
  setting_temperature_module_temp: string;
92
272
  setting_thermocycler_block_temp: string;
273
+ setting_thermocycler_block_temp_in_background: string;
93
274
  setting_thermocycler_lid_temp: string;
275
+ setting_thermocycler_lid_temp_in_background: string;
94
276
  single: string;
95
277
  single_nozzle_layout: string;
96
278
  slot: string;
279
+ stacker_hopper_display: string;
97
280
  target_temperature: string;
98
281
  tc_awaiting_for_duration: string;
99
282
  tc_run_profile_steps: string;
100
283
  tc_starting_extended_profile: string;
101
284
  tc_starting_extended_profile_cycle: string;
285
+ tc_starting_extended_profile_in_background: string;
102
286
  tc_starting_profile: string;
103
287
  touch_tip: string;
104
288
  trash_bin: string;
@@ -106,25 +290,16 @@ export declare const en: {
106
290
  turning_rail_lights_off: string;
107
291
  turning_rail_lights_on: string;
108
292
  unlatching_hs_latch: string;
293
+ unsealing_from_location: string;
109
294
  wait_for_duration: string;
110
295
  wait_for_resume: string;
296
+ wait_for_tasks: string;
111
297
  waiting_for_hs_to_reach: string;
112
298
  waiting_for_tc_block_to_reach: string;
113
299
  waiting_for_tc_lid_to_reach: string;
114
300
  waiting_to_reach_temp_module: string;
115
301
  waste_chute: string;
302
+ with_lid_name: string;
116
303
  with_reference_of: string;
117
304
  };
118
- deck_configuration: {
119
- flex_stacker_display_name: string;
120
- flex_stacker_waste_chute_display_name: string;
121
- absorbance: string;
122
- heater_Shaker: string;
123
- mag_block: string;
124
- staging_area: string;
125
- temperature: string;
126
- thermocycler: string;
127
- trash_bin: string;
128
- waste: string;
129
- };
130
305
  };