@opentrons/components 0.3.14-alpha.0 → 0.3.16-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 (177) 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 +153 -153
  129. package/lib/index.mjs +12320 -12843
  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/localization.d.ts +8 -0
  134. package/lib/localization.js +1 -0
  135. package/lib/localization.mjs +551 -0
  136. package/lib/modals/AlertModal.d.ts +1 -1
  137. package/lib/modals/ContinueModal.d.ts +2 -1
  138. package/lib/modals/LegacyModal.d.ts +1 -1
  139. package/lib/modals/Modal.d.ts +1 -1
  140. package/lib/modals/ModalHeader.d.ts +1 -1
  141. package/lib/modals/ModalShell.d.ts +1 -1
  142. package/lib/modals/Overlay.d.ts +2 -2
  143. package/lib/modals/SpinnerModal.d.ts +2 -1
  144. package/lib/modals/SpinnerModalPage.d.ts +2 -2
  145. package/lib/molecules/Banner/index.d.ts +1 -1
  146. package/lib/molecules/CustomizeExpandButton/index.d.ts +2 -2
  147. package/lib/molecules/DeckLabel/index.d.ts +2 -1
  148. package/lib/molecules/DropdownMenu/index.d.ts +2 -2
  149. package/lib/molecules/IconButton/index.d.ts +2 -2
  150. package/lib/molecules/InfoScreen/index.d.ts +2 -1
  151. package/lib/molecules/LiquidIcon/index.d.ts +2 -2
  152. package/lib/molecules/ListAccordion/index.d.ts +1 -1
  153. package/lib/molecules/ModelessModal/index.d.ts +1 -1
  154. package/lib/molecules/ParametersTable/index.d.ts +2 -1
  155. package/lib/molecules/ReleaseNotes/index.d.ts +2 -1
  156. package/lib/molecules/RobotInfoLabel/index.d.ts +2 -1
  157. package/lib/molecules/StepGroup/index.d.ts +1 -1
  158. package/lib/molecules/Tabs/index.d.ts +2 -1
  159. package/lib/molecules/TextListTableContent/index.d.ts +1 -1
  160. package/lib/molecules/TimelineScrubber/TrackSlider.d.ts +2 -1
  161. package/lib/molecules/TimelineScrubber/index.d.ts +2 -1
  162. package/lib/molecules/TouchInputField/index.d.ts +2 -0
  163. package/lib/molecules/WizardHeader/index.d.ts +2 -1
  164. package/lib/nav/SidePanel.d.ts +1 -1
  165. package/lib/organisms/FixtureOption/index.d.ts +2 -2
  166. package/lib/organisms/LabwareDetailsWithCount/index.d.ts +2 -1
  167. package/lib/organisms/LabwareInfoOverlay/index.d.ts +2 -1
  168. package/lib/organisms/Toolbox/index.d.ts +1 -1
  169. package/lib/primitives/style-props.d.ts +1 -1
  170. package/lib/slotmap/OT2SlotMap.d.ts +2 -1
  171. package/lib/structure/LabeledValue.d.ts +1 -1
  172. package/lib/structure/Pill.d.ts +1 -1
  173. package/lib/structure/Splash.d.ts +2 -1
  174. package/lib/structure/TitleBar.d.ts +1 -1
  175. package/lib/style.css +1 -1
  176. package/lib/tooltips/LegacyTooltip.d.ts +1 -1
  177. package/package.json +9 -3
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ## Version
10
10
 
11
- `0.3.14-alpha.0`
11
+ `0.3.16-alpha.0`
12
12
 
13
13
  ## License
14
14
 
@@ -18,4 +18,4 @@ export interface AlertItemProps {
18
18
  /**
19
19
  * @deprecated Use 'Banner' instead
20
20
  */
21
- export declare function AlertItem(props: AlertItemProps): JSX.Element;
21
+ export declare function AlertItem(props: AlertItemProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { ComponentProps } from 'react';
1
+ import type { ComponentProps, ReactNode } from 'react';
2
2
  export type AnimationVideoProps = ComponentProps<'video'>;
3
3
  /**
4
4
  * A `<video>` tag with default props for showing a looping animation.
@@ -10,4 +10,4 @@ export type AnimationVideoProps = ComponentProps<'video'>;
10
10
  * </AnimationVideo>
11
11
  * ```
12
12
  */
13
- export declare function AnimationVideo(props: AnimationVideoProps): JSX.Element;
13
+ export declare function AnimationVideo(props: AnimationVideoProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { ChangeEventHandler } from 'react';
1
+ import type { ChangeEventHandler, ReactNode } from 'react';
2
2
  export interface CheckboxProps {
3
3
  /** checkbox is checked if value is true */
4
4
  isChecked: boolean;
@@ -15,11 +15,11 @@ export interface CheckboxProps {
15
15
  /** optional width for helix */
16
16
  width?: string;
17
17
  }
18
- export declare function Checkbox(props: CheckboxProps): JSX.Element;
18
+ export declare function Checkbox(props: CheckboxProps): ReactNode;
19
19
  interface CheckProps {
20
20
  isChecked: boolean;
21
21
  color?: string;
22
22
  disabled?: boolean;
23
23
  }
24
- export declare function Check(props: CheckProps): JSX.Element;
24
+ export declare function Check(props: CheckProps): ReactNode;
25
25
  export {};
@@ -1,4 +1,4 @@
1
- import type { ChangeEventHandler } from 'react';
1
+ import type { ChangeEventHandler, ReactNode } from 'react';
2
2
  export interface CheckboxBasicProps {
3
3
  /** false = unchecked, true = checked, 'indeterminate' = partial-select dash */
4
4
  checked: boolean | 'indeterminate';
@@ -13,4 +13,4 @@ export interface CheckboxBasicProps {
13
13
  */
14
14
  backgroundColor?: string;
15
15
  }
16
- export declare function CheckboxBasic(props: CheckboxBasicProps): JSX.Element;
16
+ export declare function CheckboxBasic(props: CheckboxBasicProps): ReactNode;
@@ -19,4 +19,4 @@ export interface CheckboxFieldProps {
19
19
  /** optional padding */
20
20
  padding?: string;
21
21
  }
22
- export declare function CheckboxField(props: CheckboxFieldProps): JSX.Element;
22
+ export declare function CheckboxField(props: CheckboxFieldProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { IconName } from '../../icons';
2
3
  import type { StyleProps } from '../../primitives';
3
4
  export type ChipType = 'error' | 'info' | 'neutral' | 'success' | 'warning';
@@ -18,5 +19,5 @@ interface ChipProps extends StyleProps {
18
19
  /** icon should pulse */
19
20
  pulseIcon?: boolean;
20
21
  }
21
- export declare function Chip(props: ChipProps): JSX.Element;
22
+ export declare function Chip(props: ChipProps): ReactNode;
22
23
  export {};
@@ -2,5 +2,5 @@ import type { ReactNode } from 'react';
2
2
  interface CodeBlockProps {
3
3
  children: ReactNode | string;
4
4
  }
5
- export declare function CodeBlock({ children }: CodeBlockProps): JSX.Element;
5
+ export declare function CodeBlock({ children }: CodeBlockProps): ReactNode;
6
6
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Box } from '../..';
2
- import type { ComponentProps } from 'react';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
3
  type Props = ComponentProps<typeof Box>;
4
- export declare function Divider(props: Props): JSX.Element;
4
+ export declare function Divider(props: Props): ReactNode;
5
5
  export {};
@@ -1 +1,2 @@
1
- export declare function FixedTrashText(): JSX.Element;
1
+ import type { ReactNode } from 'react';
2
+ export declare function FixedTrashText(): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { MouseEventHandler } from 'react';
1
+ import type { MouseEventHandler, ReactNode } from 'react';
2
2
  import type { StyleProps } from '../../primitives';
3
3
  type InlineNotificationType = 'alert' | 'error' | 'neutral' | 'success';
4
4
  export interface InlineNotificationProps extends StyleProps {
@@ -13,6 +13,7 @@ export interface InlineNotificationProps extends StyleProps {
13
13
  onCloseClick?: (() => void) | MouseEventHandler<HTMLButtonElement>;
14
14
  linkText?: string;
15
15
  onLinkClick?: (() => void) | MouseEventHandler<HTMLAnchorElement>;
16
+ className?: string;
16
17
  }
17
- export declare function InlineNotification(props: InlineNotificationProps): JSX.Element;
18
+ export declare function InlineNotification(props: InlineNotificationProps): ReactNode;
18
19
  export {};
@@ -6,5 +6,5 @@ interface ListButtonAccordionProps {
6
6
  mainHeadline?: string;
7
7
  headline?: string;
8
8
  }
9
- export declare function ListButtonAccordion(props: ListButtonAccordionProps): JSX.Element;
9
+ export declare function ListButtonAccordion(props: ListButtonAccordionProps): ReactNode;
10
10
  export {};
@@ -3,5 +3,5 @@ interface ListButtonAccordionContainerProps {
3
3
  children: ReactNode;
4
4
  id: string;
5
5
  }
6
- export declare function ListButtonAccordionContainer(props: ListButtonAccordionContainerProps): JSX.Element;
6
+ export declare function ListButtonAccordionContainer(props: ListButtonAccordionContainerProps): ReactNode;
7
7
  export {};
@@ -14,4 +14,4 @@ interface ListButtonProps extends StyleProps {
14
14
  /** optional data-testid value for testing */
15
15
  testId?: string;
16
16
  }
17
- export declare function ListButton(props: ListButtonProps): JSX.Element;
17
+ export declare function ListButton(props: ListButtonProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { DropdownMenuProps } from '../../../molecules/DropdownMenu';
2
3
  import type { TagProps } from '../../Tag/index';
3
4
  interface ListItemCustomizeProps {
@@ -11,5 +12,5 @@ interface ListItemCustomizeProps {
11
12
  /** optional placement of the menu */
12
13
  menuPlacement?: 'auto' | 'top' | 'bottom';
13
14
  }
14
- export declare function ListItemCustomize(props: ListItemCustomizeProps): JSX.Element;
15
+ export declare function ListItemCustomize(props: ListItemCustomizeProps): ReactNode;
15
16
  export {};
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  interface ListItemDescriptorProps {
2
3
  /** ListItemDescriptor size type */
3
4
  type: 'default' | 'large';
@@ -8,5 +9,5 @@ interface ListItemDescriptorProps {
8
9
  /** ListItemDescriptor flex direction */
9
10
  changeFlexDirection?: boolean;
10
11
  }
11
- export declare const ListItemDescriptor: (props: ListItemDescriptorProps) => JSX.Element;
12
+ export declare const ListItemDescriptor: (props: ListItemDescriptorProps) => ReactNode;
12
13
  export {};
@@ -11,4 +11,4 @@ interface ListItemProps extends StyleProps {
11
11
  onMouseEnter?: () => void;
12
12
  onMouseLeave?: () => void;
13
13
  }
14
- export declare function ListItem(props: ListItemProps): JSX.Element;
14
+ export declare function ListItem(props: ListItemProps): ReactNode;
@@ -3,4 +3,4 @@ export interface ListTableProps {
3
3
  children: ReactNode;
4
4
  headers?: [ReactNode?, ReactNode?, ReactNode?, ReactNode?];
5
5
  }
6
- export declare function ListTable({ headers, children }: ListTableProps): JSX.Element;
6
+ export declare function ListTable({ headers, children }: ListTableProps): ReactNode;
@@ -3,6 +3,7 @@ interface MenuListProps {
3
3
  children: ReactNode;
4
4
  isOnDevice?: boolean;
5
5
  onClick?: MouseEventHandler;
6
+ opensUpward?: boolean;
6
7
  }
7
8
  export declare const MenuList: (props: MenuListProps) => JSX.Element | null;
8
9
  export {};
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  interface SliderProps {
2
3
  /** Value of slider as percentage */
3
4
  value: number;
@@ -10,5 +11,5 @@ interface SliderProps {
10
11
  /** Gap between label and slider: "large" (8px) or "small" (4px). Defaults to "large". */
11
12
  type?: 'small' | 'large';
12
13
  }
13
- export declare function Slider({ value, label, adjustValue, backgroundColor, type, }: SliderProps): JSX.Element;
14
+ export declare function Slider({ value, label, adjustValue, backgroundColor, type, }: SliderProps): ReactNode;
14
15
  export {};
@@ -1,7 +1,8 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { StyleProps } from '../../primitives';
2
3
  export interface SnackbarProps extends StyleProps {
3
4
  message: string;
4
5
  onClose?: () => void;
5
6
  duration?: number;
6
7
  }
7
- export declare function Snackbar(props: SnackbarProps): JSX.Element;
8
+ export declare function Snackbar(props: SnackbarProps): ReactNode;
@@ -1,6 +1,7 @@
1
+ import type { ReactNode } from 'react';
1
2
  interface StepMeterProps {
2
3
  totalSteps: number;
3
4
  currentStep: number | null;
4
5
  }
5
- export declare const StepMeter: (props: StepMeterProps) => JSX.Element;
6
+ export declare const StepMeter: (props: StepMeterProps) => ReactNode;
6
7
  export {};
@@ -1,7 +1,8 @@
1
+ import type { ReactNode } from 'react';
1
2
  interface StorageBarProps {
2
3
  percentUsed: number;
3
4
  label: string;
4
5
  t?: (key: string, opts?: Record<string, unknown>) => string;
5
6
  }
6
- export declare function StorageBar({ percentUsed, label, t, }: StorageBarProps): JSX.Element;
7
+ export declare function StorageBar({ percentUsed, label, t, }: StorageBarProps): ReactNode;
7
8
  export {};
@@ -10,5 +10,5 @@ interface PlaceholderStyledTextProps {
10
10
  * USED FOR PROTOCOL LIBRARY TO NOT USE STYLED-COMPONENTS. USE THIS
11
11
  * UNTIL WE MIGRATE STYLEDTEXT PROPERLY
12
12
  */
13
- export declare const PlaceholderStyledText: (props: PlaceholderStyledTextProps) => JSX.Element;
13
+ export declare const PlaceholderStyledText: (props: PlaceholderStyledTextProps) => ReactNode;
14
14
  export {};
@@ -3,4 +3,4 @@ export interface SubListTableProps {
3
3
  children: ReactNode;
4
4
  headers?: [string?, string?, string?, string?];
5
5
  }
6
- export declare function SubListTable({ headers, children, }: SubListTableProps): JSX.Element;
6
+ export declare function SubListTable({ headers, children, }: SubListTableProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { IconName } from '../../icons';
2
3
  import type { LiquidIconProps } from '../../molecules/LiquidIcon';
3
4
  export type TagType = 'default' | 'interactive' | 'branded' | 'onColor' | 'flex';
@@ -14,4 +15,4 @@ export interface TagProps {
14
15
  /** liquid icon */
15
16
  liquidIcon?: LiquidIconProps;
16
17
  }
17
- export declare function Tag(props: TagProps): JSX.Element;
18
+ export declare function Tag(props: TagProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { IconProps } from '../../icons';
2
3
  import type { StyleProps } from '../../primitives';
3
4
  export declare const SUCCESS_TOAST: 'success';
@@ -22,4 +23,4 @@ export interface ToastProps extends StyleProps {
22
23
  onLinkClick?: () => void;
23
24
  }
24
25
  export declare const TOAST_ANIMATION_DURATION = 500;
25
- export declare function Toast(props: ToastProps): JSX.Element;
26
+ export declare function Toast(props: ToastProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  interface ToggleGroupProps {
2
3
  leftText: string;
3
4
  rightText: string;
@@ -5,5 +6,5 @@ interface ToggleGroupProps {
5
6
  rightClick: () => void;
6
7
  selectedValue: string;
7
8
  }
8
- export declare const ToggleGroup: (props: ToggleGroupProps) => JSX.Element;
9
+ export declare const ToggleGroup: (props: ToggleGroupProps) => ReactNode;
9
10
  export {};
@@ -8,4 +8,4 @@ export interface TooltipProps extends StyleProps {
8
8
  };
9
9
  key?: string;
10
10
  }
11
- export declare function Tooltip(props: TooltipProps): JSX.Element;
11
+ export declare function Tooltip(props: TooltipProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, MouseEvent } from 'react';
1
+ import type { ComponentProps, MouseEvent, ReactNode } from 'react';
2
2
  import type { IconName } from '../../icons';
3
3
  interface BasicButtonProps {
4
4
  children: string;
@@ -9,5 +9,5 @@ interface BasicButtonProps {
9
9
  tabIndex?: number;
10
10
  iconName?: IconName;
11
11
  }
12
- export declare function BasicButton({ children, onClick, isDisabled, underLine, tabIndex, iconName, ...props }: BasicButtonProps): JSX.Element;
12
+ export declare function BasicButton({ children, onClick, isDisabled, underLine, tabIndex, iconName, ...props }: BasicButtonProps): ReactNode;
13
13
  export {};
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { IconName } from '../../index';
2
3
  interface EmptySelectorButtonProps {
3
4
  onClick: () => void;
@@ -6,5 +7,5 @@ interface EmptySelectorButtonProps {
6
7
  iconName?: IconName;
7
8
  disabled?: boolean;
8
9
  }
9
- export declare function EmptySelectorButton(props: EmptySelectorButtonProps): JSX.Element;
10
+ export declare function EmptySelectorButton(props: EmptySelectorButtonProps): ReactNode;
10
11
  export {};
@@ -13,5 +13,5 @@ interface LargeButtonProps extends StyleProps {
13
13
  /** aria-disabled for displaying snack bar. */
14
14
  ariaDisabled?: boolean;
15
15
  }
16
- export declare function LargeButton(props: LargeButtonProps): JSX.Element;
16
+ export declare function LargeButton(props: LargeButtonProps): ReactNode;
17
17
  export {};
@@ -1,6 +1,6 @@
1
- import type { ComponentProps } from 'react';
1
+ import type { ComponentProps, ReactNode } from 'react';
2
2
  import type { StyleProps } from '../../../primitives/types';
3
3
  export type PrimaryButtonProps = ComponentProps<'button'> & StyleProps & {
4
4
  variant?: 'default' | 'alt' | 'warning';
5
5
  };
6
- export declare function PrimaryButton(props: PrimaryButtonProps): JSX.Element;
6
+ export declare function PrimaryButton(props: PrimaryButtonProps): ReactNode;
@@ -50,5 +50,5 @@ interface RadioButtonProps extends StyleProps {
50
50
  */
51
51
  onClick?: MouseEventHandler;
52
52
  }
53
- export declare function RadioButton(props: RadioButtonProps): JSX.Element;
53
+ export declare function RadioButton(props: RadioButtonProps): ReactNode;
54
54
  export {};
@@ -1,8 +1,8 @@
1
1
  import { Btn } from '../../primitives';
2
- import type { ComponentProps } from 'react';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
3
  type ButtonType = 'primary' | 'secondary' | 'white';
4
4
  type TertiaryButtonProps = Omit<ComponentProps<typeof Btn>, 'ref'> & {
5
5
  buttonType: ButtonType;
6
6
  };
7
- export declare function TertiaryButton({ buttonType, ...props }: TertiaryButtonProps): JSX.Element;
7
+ export declare function TertiaryButton({ buttonType, ...props }: TertiaryButtonProps): ReactNode;
8
8
  export {};
@@ -47,4 +47,4 @@ export interface ButtonProps {
47
47
  * ```
48
48
  * @deprecated Use {@link Btn}
49
49
  */
50
- export declare function Button(props: ButtonProps): JSX.Element;
50
+ export declare function Button(props: ButtonProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { ButtonProps } from './Button';
2
3
  /**
3
4
  * Primary application button. Fills its container and has a dark
@@ -5,4 +6,4 @@ import type { ButtonProps } from './Button';
5
6
  *
6
7
  * @deprecated Use {@link PrimaryButton}
7
8
  */
8
- export declare function DeprecatedPrimaryButton(props: ButtonProps): JSX.Element;
9
+ export declare function DeprecatedPrimaryButton(props: ButtonProps): ReactNode;
@@ -1,5 +1,6 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { ButtonProps } from './Button';
2
3
  /**
3
4
  * Flat-styled button with a default width of `9rem` and no background fill
4
5
  */
5
- export declare function FlatButton(props: ButtonProps): JSX.Element;
6
+ export declare function FlatButton(props: ButtonProps): ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { IconProps } from '../icons';
2
3
  import type { ButtonProps } from './Button';
3
4
  interface Props extends ButtonProps {
@@ -10,5 +11,5 @@ interface Props extends ButtonProps {
10
11
  *
11
12
  * @deprecated Use {@link Btn} and {@link Icon}
12
13
  */
13
- export declare function IconButton(props: Props): JSX.Element;
14
+ export declare function IconButton(props: Props): ReactNode;
14
15
  export {};
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { ButtonProps } from './Button';
2
3
  /**
3
4
  * Button with no background fill and a dark border.
@@ -5,4 +6,4 @@ import type { ButtonProps } from './Button';
5
6
  *
6
7
  * @deprecated Use {@link SecondaryBtn}
7
8
  */
8
- export declare function OutlineButton(props: ButtonProps): JSX.Element;
9
+ export declare function OutlineButton(props: ButtonProps): ReactNode;
@@ -3,4 +3,4 @@ export interface ControlInfoProps {
3
3
  children: ReactNode;
4
4
  className?: string;
5
5
  }
6
- export declare function ControlInfo(props: ControlInfoProps): JSX.Element;
6
+ export declare function ControlInfo(props: ControlInfoProps): ReactNode;
@@ -5,4 +5,4 @@ export interface LabeledButtonProps {
5
5
  buttonProps: ButtonProps;
6
6
  children: ReactNode;
7
7
  }
8
- export declare function LabeledButton(props: LabeledButtonProps): JSX.Element;
8
+ export declare function LabeledButton(props: LabeledButtonProps): ReactNode;
@@ -7,4 +7,4 @@ export interface LabeledCheckboxProps {
7
7
  children: ReactNode;
8
8
  onChange: ChangeEventHandler<HTMLInputElement>;
9
9
  }
10
- export declare function LabeledCheckbox(props: LabeledCheckboxProps): JSX.Element;
10
+ export declare function LabeledCheckbox(props: LabeledCheckboxProps): ReactNode;
@@ -4,4 +4,4 @@ export interface LabeledControlProps {
4
4
  control: ReactNode;
5
5
  children?: ReactNode;
6
6
  }
7
- export declare function LabeledControl(props: LabeledControlProps): JSX.Element;
7
+ export declare function LabeledControl(props: LabeledControlProps): ReactNode;
@@ -5,4 +5,4 @@ export interface LabeledRadioGroupProps extends RadioGroupProps {
5
5
  children: ReactNode;
6
6
  'data-test'?: string;
7
7
  }
8
- export declare function LabeledRadioGroup(props: LabeledRadioGroupProps): JSX.Element;
8
+ export declare function LabeledRadioGroup(props: LabeledRadioGroupProps): ReactNode;
@@ -4,4 +4,4 @@ export interface StackedLabeledControlProps {
4
4
  control: ReactNode;
5
5
  children?: ReactNode;
6
6
  }
7
- export declare function StackedLabeledControl(props: StackedLabeledControlProps): JSX.Element;
7
+ export declare function StackedLabeledControl(props: StackedLabeledControlProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { MouseEvent } from 'react';
1
+ import type { MouseEvent, ReactNode } from 'react';
2
2
  import type { StyleProps } from '../primitives';
3
3
  interface ToggleButtonProps extends StyleProps {
4
4
  toggledOn: boolean;
@@ -7,5 +7,5 @@ interface ToggleButtonProps extends StyleProps {
7
7
  id?: string;
8
8
  onClick?: (e: MouseEvent) => void;
9
9
  }
10
- export declare function ToggleButton(props: ToggleButtonProps): JSX.Element;
10
+ export declare function ToggleButton(props: ToggleButtonProps): ReactNode;
11
11
  export {};
@@ -1,4 +1,4 @@
1
- import type { ChangeEventHandler, ComponentProps } from 'react';
1
+ import type { ChangeEventHandler, ComponentProps, ReactNode } from 'react';
2
2
  /**
3
3
  * Checkbox Field Properties.
4
4
  */
@@ -30,4 +30,4 @@ export interface DeprecatedCheckboxFieldProps {
30
30
  * Checkbox Form Field
31
31
  * @deprecated
32
32
  */
33
- export declare function DeprecatedCheckboxField(props: DeprecatedCheckboxFieldProps): JSX.Element;
33
+ export declare function DeprecatedCheckboxField(props: DeprecatedCheckboxFieldProps): ReactNode;
@@ -16,4 +16,4 @@ export interface FormGroupProps {
16
16
  /** boolean indicating formGroup used in pipette Settings slideout */
17
17
  isPipetteSettingsSlideout?: boolean;
18
18
  }
19
- export declare function FormGroup(props: FormGroupProps): JSX.Element;
19
+ export declare function FormGroup(props: FormGroupProps): ReactNode;
@@ -48,4 +48,4 @@ export interface LegacyInputFieldProps {
48
48
  /**
49
49
  * @deprecated Use `InputField`
50
50
  */
51
- export declare function LegacyInputField(props: LegacyInputFieldProps): JSX.Element;
51
+ export declare function LegacyInputField(props: LegacyInputFieldProps): ReactNode;
@@ -26,4 +26,4 @@ export interface RadioGroupProps {
26
26
  /** optional prop to turn radio field blue when checked */
27
27
  useBlueChecked?: boolean;
28
28
  }
29
- export declare function RadioGroup(props: RadioGroupProps): JSX.Element;
29
+ export declare function RadioGroup(props: RadioGroupProps): ReactNode;
@@ -1,4 +1,5 @@
1
1
  import { components as reactSelectComponents } from 'react-select';
2
+ import type { ReactNode } from 'react';
2
3
  import type { Props as ReactSelectProps } from 'react-select';
3
4
  import type { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles';
4
5
  export { reactSelectComponents };
@@ -23,4 +24,4 @@ export type SelectPlacement = typeof PLACEMENT_AUTO | typeof PLACEMENT_BOTTOM |
23
24
  export type SelectPosition = typeof POSITION_ABSOLUTE | typeof POSITION_FIXED;
24
25
  export type SelectOptionContext = typeof CONTEXT_MENU | typeof CONTEXT_VALUE;
25
26
  export type SelectProps = ReactSelectProps<SelectOption>;
26
- export declare function Select(props: SelectProps): JSX.Element;
27
+ export declare function Select(props: SelectProps): ReactNode;
@@ -30,4 +30,4 @@ export interface SelectFieldProps {
30
30
  /** blur handler called with (name) */
31
31
  onLoseFocus?: (name: string) => void;
32
32
  }
33
- export declare function SelectField(props: SelectFieldProps): JSX.Element;
33
+ export declare function SelectField(props: SelectFieldProps): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { ChangeEvent } from 'react';
1
+ import type { ChangeEvent, ReactNode } from 'react';
2
2
  export interface ToggleFieldProps {
3
3
  /** change handler */
4
4
  onChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
@@ -19,4 +19,4 @@ export interface ToggleFieldProps {
19
19
  /** html tabindex property */
20
20
  tabIndex?: number;
21
21
  }
22
- export declare function ToggleField(props: ToggleFieldProps): JSX.Element;
22
+ export declare function ToggleField(props: ToggleFieldProps): ReactNode;
@@ -65,5 +65,5 @@ interface BaseDeckProps {
65
65
  */
66
66
  svgProps?: any;
67
67
  }
68
- export declare function BaseDeck(props: BaseDeckProps): JSX.Element;
68
+ export declare function BaseDeck(props: BaseDeckProps): ReactNode;
69
69
  export {};
@@ -1,8 +1,8 @@
1
- import type { SVGProps } from 'react';
1
+ import type { ReactNode, SVGProps } from 'react';
2
2
  export interface MiddleSlotProps {
3
3
  showSlotClips: boolean;
4
4
  fixtureBaseColor: SVGProps<SVGPathElement>['fill'];
5
5
  slotClipColor: SVGProps<SVGPathElement>['stroke'];
6
6
  stroke?: string;
7
7
  }
8
- export declare function MiddleSlot(props: MiddleSlotProps): JSX.Element;
8
+ export declare function MiddleSlot(props: MiddleSlotProps): ReactNode;
@@ -1,2 +1,2 @@
1
- import type { SVGProps } from 'react';
2
- export declare function SlotBase(props: SVGProps<SVGPathElement>): JSX.Element;
1
+ import type { ReactNode, SVGProps } from 'react';
2
+ export declare function SlotBase(props: SVGProps<SVGPathElement>): ReactNode;
@@ -1,2 +1,2 @@
1
- import type { SVGProps } from 'react';
2
- export declare function SlotClip(props: SVGProps<SVGPathElement>): JSX.Element;
1
+ import type { ReactNode, SVGProps } from 'react';
2
+ export declare function SlotClip(props: SVGProps<SVGPathElement>): ReactNode;
@@ -1 +1,2 @@
1
- export declare function StackedBadge(): JSX.Element;
1
+ import type { ReactNode } from 'react';
2
+ export declare function StackedBadge(): ReactNode;
@@ -1,4 +1,4 @@
1
- import type { SVGProps } from 'react';
1
+ import type { ReactNode, SVGProps } from 'react';
2
2
  import type { DeckDefinition, ModuleType, WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
3
3
  import type { DeckLabelProps } from '../../molecules';
4
4
  interface WasteChuteFixtureProps extends SVGProps<SVGGElement> {
@@ -25,5 +25,5 @@ interface WasteChuteProps {
25
25
  /**
26
26
  * a deck map foreign object representing the physical location of the waste chute connected to the deck
27
27
  */
28
- export declare function WasteChute(props: WasteChuteProps): JSX.Element;
28
+ export declare function WasteChute(props: WasteChuteProps): ReactNode;
29
29
  export {};
@@ -1,14 +1,15 @@
1
- export declare function FixedBase(): JSX.Element;
1
+ import type { ReactNode } from 'react';
2
+ export declare function FixedBase(): ReactNode;
2
3
  interface FixedTrashProps {
3
4
  highlight?: boolean;
4
5
  }
5
- export declare function FixedTrash(props: FixedTrashProps): JSX.Element;
6
- export declare function DoorStops(): JSX.Element;
7
- export declare function MetalFrame(): JSX.Element;
8
- export declare function RemovableDeckOutline(): JSX.Element;
9
- export declare function SlotRidges(): JSX.Element;
10
- export declare function SlotNumbers(): JSX.Element;
11
- export declare function CalibrationMarkings(): JSX.Element;
12
- export declare function RemovalHandle(): JSX.Element;
13
- export declare function ScrewHoles(): JSX.Element;
6
+ export declare function FixedTrash(props: FixedTrashProps): ReactNode;
7
+ export declare function DoorStops(): ReactNode;
8
+ export declare function MetalFrame(): ReactNode;
9
+ export declare function RemovableDeckOutline(): ReactNode;
10
+ export declare function SlotRidges(): ReactNode;
11
+ export declare function SlotNumbers(): ReactNode;
12
+ export declare function CalibrationMarkings(): ReactNode;
13
+ export declare function RemovalHandle(): ReactNode;
14
+ export declare function ScrewHoles(): ReactNode;
14
15
  export {};