@opentrons/components 0.3.14-alpha.0 → 0.3.15-alpha.0

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 (173) hide show
  1. package/README.md +1 -1
  2. package/lib/alerts/AlertItem.d.ts +1 -1
  3. package/lib/atoms/AnimationVideo/index.d.ts +2 -2
  4. package/lib/atoms/Checkbox/index.d.ts +3 -3
  5. package/lib/atoms/CheckboxBasic/index.d.ts +2 -2
  6. package/lib/atoms/CheckboxField/index.d.ts +1 -1
  7. package/lib/atoms/Chip/index.d.ts +2 -1
  8. package/lib/atoms/CodeBlock/index.d.ts +1 -1
  9. package/lib/atoms/Divider/index.d.ts +2 -2
  10. package/lib/atoms/FixedTrashText/index.d.ts +2 -1
  11. package/lib/atoms/InlineNotification/index.d.ts +3 -2
  12. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +1 -1
  13. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +1 -1
  14. package/lib/atoms/ListButton/index.d.ts +1 -1
  15. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +2 -1
  16. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +2 -1
  17. package/lib/atoms/ListItem/index.d.ts +1 -1
  18. package/lib/atoms/ListTable/index.d.ts +1 -1
  19. package/lib/atoms/MenuList/index.d.ts +1 -0
  20. package/lib/atoms/Slider/index.d.ts +2 -1
  21. package/lib/atoms/Snackbar/index.d.ts +2 -1
  22. package/lib/atoms/StepMeter/index.d.ts +2 -1
  23. package/lib/atoms/StorageBar/index.d.ts +2 -1
  24. package/lib/atoms/StyledText/PlaceholderStyledText.d.ts +1 -1
  25. package/lib/atoms/SubListTable/index.d.ts +1 -1
  26. package/lib/atoms/Tag/index.d.ts +2 -1
  27. package/lib/atoms/Toast/index.d.ts +2 -1
  28. package/lib/atoms/ToggleGroup/index.d.ts +2 -1
  29. package/lib/atoms/Tooltip/index.d.ts +1 -1
  30. package/lib/atoms/buttons/BasicButton.d.ts +2 -2
  31. package/lib/atoms/buttons/EmptySelectorButton.d.ts +2 -1
  32. package/lib/atoms/buttons/LargeButton.d.ts +1 -1
  33. package/lib/atoms/buttons/PrimaryButton/index.d.ts +2 -2
  34. package/lib/atoms/buttons/RadioButton.d.ts +1 -1
  35. package/lib/atoms/buttons/TertiaryButton.d.ts +2 -2
  36. package/lib/buttons/Button.d.ts +1 -1
  37. package/lib/buttons/DeprecatedPrimaryButton.d.ts +2 -1
  38. package/lib/buttons/FlatButton.d.ts +2 -1
  39. package/lib/buttons/IconButton.d.ts +2 -1
  40. package/lib/buttons/OutlineButton.d.ts +2 -1
  41. package/lib/controls/ControlInfo.d.ts +1 -1
  42. package/lib/controls/LabeledButton.d.ts +1 -1
  43. package/lib/controls/LabeledCheckbox.d.ts +1 -1
  44. package/lib/controls/LabeledControl.d.ts +1 -1
  45. package/lib/controls/LabeledRadioGroup.d.ts +1 -1
  46. package/lib/controls/StackedLabeledControl.d.ts +1 -1
  47. package/lib/controls/ToggleButton.d.ts +2 -2
  48. package/lib/forms/DeprecatedCheckboxField.d.ts +2 -2
  49. package/lib/forms/FormGroup.d.ts +1 -1
  50. package/lib/forms/LegacyInputField.d.ts +1 -1
  51. package/lib/forms/RadioGroup.d.ts +1 -1
  52. package/lib/forms/Select.d.ts +2 -1
  53. package/lib/forms/SelectField.d.ts +1 -1
  54. package/lib/forms/ToggleField.d.ts +2 -2
  55. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +1 -1
  56. package/lib/hardware-sim/BaseDeck/MiddleSlot.d.ts +2 -2
  57. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +2 -2
  58. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +2 -2
  59. package/lib/hardware-sim/BaseDeck/StackedBadge.d.ts +2 -1
  60. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -2
  61. package/lib/hardware-sim/Deck/OT2Layers.d.ts +11 -10
  62. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
  63. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
  64. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
  65. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
  66. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderItem.d.ts +2 -1
  67. package/lib/hardware-sim/DeckConfigurator/EmptyConfigItem.d.ts +2 -1
  68. package/lib/hardware-sim/DeckConfigurator/FlexStackerItem.d.ts +2 -1
  69. package/lib/hardware-sim/DeckConfigurator/HeaterShakerItem.d.ts +2 -1
  70. package/lib/hardware-sim/DeckConfigurator/MagneticBlockItem.d.ts +2 -1
  71. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigItem.d.ts +2 -1
  72. package/lib/hardware-sim/DeckConfigurator/StaticItem.d.ts +2 -1
  73. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleItem.d.ts +2 -1
  74. package/lib/hardware-sim/DeckConfigurator/ThermocyclerItem.d.ts +2 -1
  75. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigItem.d.ts +2 -1
  76. package/lib/hardware-sim/DeckConfigurator/VacuumModuleItem.d.ts +2 -1
  77. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigItem.d.ts +2 -1
  78. package/lib/hardware-sim/DeckConfigurator/index.d.ts +1 -1
  79. package/lib/hardware-sim/Labware/Labware.d.ts +2 -2
  80. package/lib/hardware-sim/Labware/LabwareAdapter/GenericLid.d.ts +2 -1
  81. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +2 -1
  82. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +2 -1
  83. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +2 -1
  84. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +2 -1
  85. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +2 -1
  86. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapterTypeB.d.ts +2 -1
  87. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsVacuumManifoldCollar.d.ts +2 -1
  88. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsVacuumManifoldSpacer.d.ts +2 -1
  89. package/lib/hardware-sim/Labware/LabwareRender.d.ts +2 -2
  90. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +2 -2
  91. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +2 -2
  92. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +2 -2
  93. package/lib/hardware-sim/Labware/labwareInternals/Tips/InaccessibleTip.d.ts +2 -1
  94. package/lib/hardware-sim/Labware/labwareInternals/Tips/NewTip.d.ts +2 -1
  95. package/lib/hardware-sim/Labware/labwareInternals/Tips/TipStatus.d.ts +2 -1
  96. package/lib/hardware-sim/Labware/labwareInternals/Tips/UsedTip.d.ts +2 -1
  97. package/lib/hardware-sim/Labware/labwareInternals/Wells/EmptyWell.d.ts +2 -1
  98. package/lib/hardware-sim/Labware/labwareInternals/Wells/FilledWells.d.ts +2 -2
  99. package/lib/hardware-sim/Labware/labwareInternals/Wells/SelectedWell.d.ts +2 -1
  100. package/lib/hardware-sim/Labware/labwareInternals/Wells/StrokedWells.d.ts +2 -2
  101. package/lib/hardware-sim/Labware/labwareInternals/Wells/StyledWells.d.ts +2 -2
  102. package/lib/hardware-sim/Labware/labwareInternals/Wells/Well.d.ts +2 -2
  103. package/lib/hardware-sim/Labware/labwareInternals/Wells/WellLabels.d.ts +2 -2
  104. package/lib/hardware-sim/Labware/labwareInternals/Wells/WellStatus.d.ts +2 -1
  105. package/lib/hardware-sim/Module/FlexStacker.d.ts +2 -1
  106. package/lib/hardware-sim/Module/HeaterShaker.d.ts +2 -1
  107. package/lib/hardware-sim/Module/MagneticBlock.d.ts +2 -1
  108. package/lib/hardware-sim/Module/MagneticModule.d.ts +2 -1
  109. package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
  110. package/lib/hardware-sim/Module/PlateReader.d.ts +2 -1
  111. package/lib/hardware-sim/Module/Temperature.d.ts +2 -1
  112. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +2 -1
  113. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +2 -1
  114. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +2 -1
  115. package/lib/hardware-sim/Module/Vacuum.d.ts +2 -1
  116. package/lib/hardware-sim/Module/index.d.ts +1 -1
  117. package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +2 -1
  118. package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +2 -1
  119. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +2 -1
  120. package/lib/hardware-sim/Pipette/StrokedNozzles.d.ts +2 -2
  121. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
  122. package/lib/hardware-sim/alignment/AlignToModuleChildSlot.d.ts +2 -2
  123. package/lib/hardware-sim/alignment/CenterLabwareInModuleChildSlot.d.ts +2 -2
  124. package/lib/hardware-sim/alignment/CenterLabwareInSlot.d.ts +2 -2
  125. package/lib/hooks/useSelectDeckLocation/index.d.ts +2 -1
  126. package/lib/icons/ModuleIcon.d.ts +2 -1
  127. package/lib/icons/NotificationIcon.d.ts +2 -1
  128. package/lib/index.js +79 -79
  129. package/lib/index.mjs +5710 -5695
  130. package/lib/instrument/InstrumentDiagram.d.ts +2 -1
  131. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +2 -1
  132. package/lib/lists/SidePanelGroup.d.ts +1 -1
  133. package/lib/modals/AlertModal.d.ts +1 -1
  134. package/lib/modals/ContinueModal.d.ts +2 -1
  135. package/lib/modals/LegacyModal.d.ts +1 -1
  136. package/lib/modals/Modal.d.ts +1 -1
  137. package/lib/modals/ModalHeader.d.ts +1 -1
  138. package/lib/modals/ModalShell.d.ts +1 -1
  139. package/lib/modals/Overlay.d.ts +2 -2
  140. package/lib/modals/SpinnerModal.d.ts +2 -1
  141. package/lib/modals/SpinnerModalPage.d.ts +2 -2
  142. package/lib/molecules/Banner/index.d.ts +1 -1
  143. package/lib/molecules/CustomizeExpandButton/index.d.ts +2 -2
  144. package/lib/molecules/DeckLabel/index.d.ts +2 -1
  145. package/lib/molecules/DropdownMenu/index.d.ts +2 -2
  146. package/lib/molecules/IconButton/index.d.ts +2 -2
  147. package/lib/molecules/InfoScreen/index.d.ts +2 -1
  148. package/lib/molecules/LiquidIcon/index.d.ts +2 -2
  149. package/lib/molecules/ListAccordion/index.d.ts +1 -1
  150. package/lib/molecules/ModelessModal/index.d.ts +1 -1
  151. package/lib/molecules/ParametersTable/index.d.ts +2 -1
  152. package/lib/molecules/ReleaseNotes/index.d.ts +2 -1
  153. package/lib/molecules/RobotInfoLabel/index.d.ts +2 -1
  154. package/lib/molecules/StepGroup/index.d.ts +1 -1
  155. package/lib/molecules/Tabs/index.d.ts +2 -1
  156. package/lib/molecules/TextListTableContent/index.d.ts +1 -1
  157. package/lib/molecules/TimelineScrubber/TrackSlider.d.ts +2 -1
  158. package/lib/molecules/TimelineScrubber/index.d.ts +2 -1
  159. package/lib/molecules/TouchInputField/index.d.ts +2 -0
  160. package/lib/molecules/WizardHeader/index.d.ts +2 -1
  161. package/lib/nav/SidePanel.d.ts +1 -1
  162. package/lib/organisms/FixtureOption/index.d.ts +2 -2
  163. package/lib/organisms/LabwareDetailsWithCount/index.d.ts +2 -1
  164. package/lib/organisms/LabwareInfoOverlay/index.d.ts +2 -1
  165. package/lib/organisms/Toolbox/index.d.ts +1 -1
  166. package/lib/slotmap/OT2SlotMap.d.ts +2 -1
  167. package/lib/structure/LabeledValue.d.ts +1 -1
  168. package/lib/structure/Pill.d.ts +1 -1
  169. package/lib/structure/Splash.d.ts +2 -1
  170. package/lib/structure/TitleBar.d.ts +1 -1
  171. package/lib/style.css +1 -1
  172. package/lib/tooltips/LegacyTooltip.d.ts +1 -1
  173. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren, ReactNode } from 'react';
2
2
  import type { ModuleDefinition } from '@opentrons/shared-data';
3
3
  export type AlignToModuleChildSlotProps = PropsWithChildren<{
4
4
  /** Should match the `deckId` passed to the parent `<Module>`. */
@@ -22,4 +22,4 @@ export type AlignToModuleChildSlotProps = PropsWithChildren<{
22
22
  * </AlignToModuleChildSlot>
23
23
  * </Module>
24
24
  */
25
- export declare function AlignToModuleChildSlot(props: AlignToModuleChildSlotProps): JSX.Element;
25
+ export declare function AlignToModuleChildSlot(props: AlignToModuleChildSlotProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren, ReactNode } from 'react';
2
2
  import type { LabwareDefinition, ModuleDefinition } from '@opentrons/shared-data';
3
3
  export type CenterLabwareInModuleChildSlotProps = PropsWithChildren<{
4
4
  /** Should match the `deckId` passed to the parent `<Module>`. */
@@ -30,4 +30,4 @@ export type CenterLabwareInModuleChildSlotProps = PropsWithChildren<{
30
30
  * </Module>
31
31
  * ```
32
32
  */
33
- export declare function CenterLabwareInModuleChildSlot(props: CenterLabwareInModuleChildSlotProps): JSX.Element;
33
+ export declare function CenterLabwareInModuleChildSlot(props: CenterLabwareInModuleChildSlotProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren, ReactNode } from 'react';
2
2
  import type { LabwareDefinition } from '@opentrons/shared-data';
3
3
  export type CenterLabwareInSlotProps = PropsWithChildren<{
4
4
  definition: LabwareDefinition;
@@ -8,4 +8,4 @@ export type CenterLabwareInSlotProps = PropsWithChildren<{
8
8
  *
9
9
  * The parent SVG origin should point to the front-left (-x, -y) corner of the slot.
10
10
  */
11
- export declare function CenterLabwareInSlot(props: CenterLabwareInSlotProps): JSX.Element;
11
+ export declare function CenterLabwareInSlot(props: CenterLabwareInSlotProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { CutoutConfig, DeckDefinition, ModuleLocation, RobotType } from '@opentrons/shared-data';
2
3
  export type DeckLocationSelectThemes = 'default' | 'grey';
3
4
  export declare function useDeckLocationSelect(robotType: RobotType, theme?: DeckLocationSelectThemes): {
@@ -14,5 +15,5 @@ interface DeckLocationSelectProps {
14
15
  isThermocycler?: boolean;
15
16
  showTooltipOnDisabled?: boolean;
16
17
  }
17
- export declare function DeckLocationSelect({ deckDef, selectedLocation, setSelectedLocation, availableSlotNames, occupiedCutouts, theme, isThermocycler, showTooltipOnDisabled, }: DeckLocationSelectProps): JSX.Element;
18
+ export declare function DeckLocationSelect({ deckDef, selectedLocation, setSelectedLocation, availableSlotNames, occupiedCutouts, theme, isThermocycler, showTooltipOnDisabled, }: DeckLocationSelectProps): ReactNode;
18
19
  export {};
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { ModuleType } from '@opentrons/shared-data';
2
3
  export type ModuleIconName = 'ot-magnet-v2' | 'ot-heater-shaker' | 'ot-temperature-v2' | 'ot-magnet-v2' | 'ot-thermocycler' | 'ot-absorbance' | 'ot-flex-stacker' | 'ot-vacuum';
3
4
  export declare const MODULE_ICON_NAME_BY_TYPE: {
@@ -6,6 +7,6 @@ export declare const MODULE_ICON_NAME_BY_TYPE: {
6
7
  interface ModuleIconProps {
7
8
  moduleType: ModuleType;
8
9
  }
9
- declare function ModuleIconComponent(props: ModuleIconProps): JSX.Element;
10
+ declare function ModuleIconComponent(props: ModuleIconProps): ReactNode;
10
11
  export declare const ModuleIcon: typeof ModuleIconComponent & import("react").ComponentType<ModuleIconProps & import("..").StyleProps>;
11
12
  export {};
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { IconName, IconProps } from './Icon';
2
3
  export interface NotificationIconProps extends IconProps {
3
4
  /** name constant of the optional notifcation icon to display */
@@ -9,4 +10,4 @@ export interface NotificationIconProps extends IconProps {
9
10
  * Inline SVG icon component with additional nested notification icon. Takes
10
11
  * all the same props as Icon in addition to the ones listed above.
11
12
  */
12
- export declare function NotificationIcon(props: NotificationIconProps): JSX.Element;
13
+ export declare function NotificationIcon(props: NotificationIconProps): ReactNode;