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

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 (200) hide show
  1. package/lib/alerts/AlertItem.d.ts +1 -1
  2. package/lib/atoms/Checkbox/index.d.ts +24 -0
  3. package/lib/atoms/CheckboxField/index.d.ts +1 -1
  4. package/lib/atoms/Chip/index.d.ts +1 -1
  5. package/lib/atoms/Divider/index.d.ts +5 -0
  6. package/lib/atoms/InputField/index.d.ts +68 -0
  7. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
  8. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
  9. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
  10. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
  11. package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
  12. package/lib/atoms/ListButton/index.d.ts +11 -0
  13. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
  14. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
  15. package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
  16. package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
  17. package/lib/atoms/ListItem/index.d.ts +14 -0
  18. package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
  19. package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
  20. package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
  21. package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
  22. package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
  23. package/lib/atoms/MenuList/index.d.ts +8 -0
  24. package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
  25. package/lib/atoms/Snackbar/index.d.ts +7 -0
  26. package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
  27. package/lib/atoms/StyledText/StyledText.d.ts +154 -0
  28. package/lib/atoms/StyledText/index.d.ts +2 -6
  29. package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
  30. package/lib/atoms/Tag/index.d.ts +13 -0
  31. package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
  32. package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
  33. package/lib/atoms/Toast/index.d.ts +25 -0
  34. package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
  35. package/lib/atoms/ToggleGroup/index.d.ts +9 -0
  36. package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  37. package/lib/atoms/Tooltip/index.d.ts +11 -0
  38. package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
  39. package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
  40. package/lib/atoms/buttons/LargeButton.d.ts +17 -0
  41. package/lib/atoms/buttons/RadioButton.d.ts +21 -0
  42. package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +1 -0
  43. package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
  44. package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
  45. package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
  46. package/lib/atoms/buttons/index.d.ts +3 -0
  47. package/lib/atoms/index.d.ts +14 -0
  48. package/lib/buttons/Button.d.ts +3 -2
  49. package/lib/controls/ControlInfo.d.ts +1 -1
  50. package/lib/controls/LabeledButton.d.ts +1 -1
  51. package/lib/controls/LabeledCheckbox.d.ts +1 -1
  52. package/lib/controls/LabeledControl.d.ts +1 -1
  53. package/lib/controls/LabeledRadioGroup.d.ts +1 -1
  54. package/lib/controls/LabeledSelect.d.ts +1 -1
  55. package/lib/controls/LabeledToggle.d.ts +1 -1
  56. package/lib/controls/StackedLabeledControl.d.ts +1 -1
  57. package/lib/forms/DeprecatedCheckboxField.d.ts +1 -1
  58. package/lib/forms/DropdownField.d.ts +3 -3
  59. package/lib/forms/FormGroup.d.ts +1 -1
  60. package/lib/forms/{InputField.d.ts → LegacyInputField.d.ts} +4 -4
  61. package/lib/forms/RadioGroup.d.ts +1 -1
  62. package/lib/forms/Select.d.ts +1 -1
  63. package/lib/forms/SelectField.d.ts +1 -1
  64. package/lib/forms/ToggleField.d.ts +1 -1
  65. package/lib/forms/index.d.ts +1 -1
  66. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +9 -2
  67. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +1 -1
  68. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +1 -1
  69. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +1 -1
  70. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -1
  71. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -3
  72. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -1
  73. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +1 -2
  74. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
  75. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
  76. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
  77. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
  78. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
  79. package/lib/hardware-sim/DeckConfigurator/index.d.ts +1 -1
  80. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +1 -1
  81. package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
  82. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
  83. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
  84. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +8 -0
  85. package/lib/hardware-sim/Labware/LabwareRender.d.ts +6 -2
  86. package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
  87. package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
  88. package/lib/hardware-sim/Labware/index.d.ts +2 -0
  89. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +1 -0
  90. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +4 -0
  91. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
  92. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +9 -1
  93. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +2 -0
  94. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +1 -1
  95. package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
  96. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +1 -0
  97. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +1 -1
  98. package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
  99. package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
  100. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +1 -1
  101. package/lib/hardware-sim/Module/index.d.ts +2 -2
  102. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +1 -1
  103. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +2 -2
  104. package/lib/hardware-sim/ProtocolDeck/index.d.ts +4 -2
  105. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +1 -0
  106. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
  107. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +3 -2
  108. package/lib/hardware-sim/utils.d.ts +1 -1
  109. package/lib/helix-design-system/colors.d.ts +11 -0
  110. package/lib/helix-design-system/index.d.ts +2 -0
  111. package/lib/helix-design-system/product/index.d.ts +1 -0
  112. package/lib/helix-design-system/product/typography.d.ts +79 -0
  113. package/lib/helix-design-system/style.d.ts +1 -0
  114. package/lib/hooks/index.d.ts +1 -0
  115. package/lib/hooks/useConditionalConfirm.d.ts +3 -2
  116. package/lib/hooks/useDrag.d.ts +1 -1
  117. package/lib/hooks/useLongPress.d.ts +1 -1
  118. package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
  119. package/lib/hooks/useSelectDeckLocation/index.d.ts +1 -2
  120. package/lib/hooks/useSwipe.d.ts +1 -1
  121. package/lib/icons/Icon.d.ts +1 -1
  122. package/lib/icons/ModuleIcon.d.ts +2 -2
  123. package/lib/icons/icon-data.d.ts +4 -586
  124. package/lib/index.d.ts +1 -1
  125. package/lib/{index.mjs → index.js} +8783 -6217
  126. package/lib/instrument/InstrumentDiagram.d.ts +1 -1
  127. package/lib/instrument/InstrumentInfo.d.ts +1 -1
  128. package/lib/lists/SidePanelGroup.d.ts +1 -1
  129. package/lib/lists/index.d.ts +0 -1
  130. package/lib/modals/AlertModal.d.ts +2 -1
  131. package/lib/modals/ContinueModal.d.ts +1 -0
  132. package/lib/modals/LegacyModal.d.ts +24 -0
  133. package/lib/modals/Modal.d.ts +21 -20
  134. package/lib/modals/ModalHeader.d.ts +13 -0
  135. package/lib/modals/ModalShell.d.ts +11 -2
  136. package/lib/modals/Overlay.d.ts +1 -1
  137. package/lib/modals/SpinnerModal.d.ts +1 -0
  138. package/lib/modals/SpinnerModalPage.d.ts +2 -1
  139. package/lib/modals/__tests__/Modal.test.d.ts +1 -0
  140. package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
  141. package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
  142. package/lib/modals/index.d.ts +5 -5
  143. package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
  144. package/lib/molecules/Banner/index.d.ts +23 -0
  145. package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
  146. package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
  147. package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
  148. package/lib/molecules/DeckLabel/index.d.ts +10 -0
  149. package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
  150. package/lib/molecules/DropdownMenu/index.d.ts +41 -0
  151. package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
  152. package/lib/molecules/InfoScreen/index.d.ts +6 -0
  153. package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
  154. package/lib/molecules/LiquidIcon/index.d.ts +9 -0
  155. package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
  156. package/lib/molecules/Tabs/index.d.ts +10 -0
  157. package/lib/molecules/index.d.ts +7 -3
  158. package/lib/nav/SidePanel.d.ts +1 -1
  159. package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
  160. package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
  161. package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
  162. package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
  163. package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
  164. package/lib/organisms/Toolbox/index.d.ts +20 -0
  165. package/lib/organisms/index.d.ts +3 -0
  166. package/lib/primitives/Btn.d.ts +1 -1
  167. package/lib/structure/Card.d.ts +1 -1
  168. package/lib/structure/LabeledValue.d.ts +1 -1
  169. package/lib/structure/Pill.d.ts +1 -1
  170. package/lib/structure/TitleBar.d.ts +2 -2
  171. package/lib/structure/index.d.ts +0 -1
  172. package/lib/style.css +3786 -0
  173. package/lib/styles/cursor.d.ts +10 -0
  174. package/lib/styles/flexbox.d.ts +5 -0
  175. package/lib/styles/index.d.ts +1 -0
  176. package/lib/styles/layout.d.ts +1 -0
  177. package/lib/testing/utils/renderWithProviders.d.ts +2 -3
  178. package/lib/tooltips/DeprecatedTooltip.d.ts +1 -1
  179. package/lib/tooltips/{Tooltip.d.ts → LegacyTooltip.d.ts} +2 -2
  180. package/lib/tooltips/index.d.ts +1 -1
  181. package/lib/ui-style-constants/responsiveness.d.ts +1 -0
  182. package/lib/ui-style-constants/typography.d.ts +1 -0
  183. package/package.json +5 -7
  184. package/tsconfig.json +5 -2
  185. package/{vite.config.ts → vite.config.mts} +19 -6
  186. package/lib/lists/ListItem.d.ts +0 -37
  187. package/lib/modals/BaseModal.d.ts +0 -26
  188. package/lib/modals/ModalPage.d.ts +0 -16
  189. package/lib/molecules/LocationIcon/index.d.ts +0 -15
  190. package/lib/molecules/ParametersTable/InfoScreen.d.ts +0 -6
  191. package/lib/molecules/RoundTab.d.ts +0 -8
  192. package/lib/structure/PageTabs.d.ts +0 -11
  193. package/lib/tabbedNav/NavTab.d.ts +0 -25
  194. package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
  195. package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
  196. package/lib/tabbedNav/index.d.ts +0 -3
  197. /package/lib/atoms/{StyledText/__tests__/StyledText.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  198. /package/lib/{modals/__tests__/BaseModal.test.d.ts → atoms/InputField/__tests__/InputField.test.d.ts} +0 -0
  199. /package/lib/{molecules/LocationIcon/__tests__/LocationIcon.test.d.ts → atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts} +0 -0
  200. /package/lib/{molecules/ParametersTable/__tests__/InfoScreen.test.d.ts → atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { FlattenSimpleInterpolation } from 'styled-components';
1
+ import type { FlattenSimpleInterpolation } from 'styled-components';
2
2
  import type { PipetteV2Specs } from '@opentrons/shared-data';
3
3
  import type { Mount } from '../robot-types';
4
4
  import type { StyleProps } from '..';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { Mount } from '../robot-types';
3
3
  import type { InstrumentDiagramProps } from './InstrumentDiagram';
4
4
  export interface InstrumentInfoProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { IconName } from '../icons';
3
3
  export interface SidePanelGroupProps {
4
4
  /** text of title */
@@ -1,3 +1,2 @@
1
1
  export * from './SidePanelGroup';
2
2
  export * from './TitledList';
3
- export * from './ListItem';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { ButtonProps } from '../buttons';
3
3
  import type { IconName } from '../icons';
4
4
  export interface AlertModalProps {
@@ -22,6 +22,7 @@ export interface AlertModalProps {
22
22
  restrictOuterScroll?: boolean;
23
23
  }
24
24
  /**
25
+ * @deprecated use Modal instead
25
26
  * Generic alert modal with a heading and a set of buttons at the bottom
26
27
  */
27
28
  export declare function AlertModal(props: AlertModalProps): JSX.Element;
@@ -4,6 +4,7 @@ export interface ContinueModalProps extends Omit<AlertModalProps, 'buttons'> {
4
4
  onContinueClick: () => unknown;
5
5
  }
6
6
  /**
7
+ * * @deprecated use Modal instead
7
8
  * AlertModal variant to prompt user to "Cancel" or "Continue" a given action
8
9
  */
9
10
  export declare function ContinueModal(props: ContinueModalProps): JSX.Element;
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ export interface LegacyModalProps {
3
+ /** handler to close the modal (attached to `Overlay` onClick) */
4
+ onCloseClick?: React.MouseEventHandler;
5
+ /** Optional styled heading **/
6
+ heading?: string;
7
+ /** modal contents */
8
+ children: React.ReactNode;
9
+ /** classes to apply */
10
+ className?: string;
11
+ /** classes to apply to the contents box */
12
+ contentsClassName?: string;
13
+ /** lightens overlay (alert modal over existing modal) */
14
+ alertOverlay?: boolean;
15
+ /** restricts scroll outside of Modal when open, true by default */
16
+ restrictOuterScroll?: boolean;
17
+ innerRef?: React.Ref<HTMLDivElement>;
18
+ }
19
+ /**
20
+ * @deprecated use Modal instead
21
+ * Base modal component that fills its nearest `display:relative` ancestor
22
+ * with a dark overlay and displays `children` as its contents in a white box
23
+ */
24
+ export declare function LegacyModal(props: LegacyModalProps): JSX.Element;
@@ -1,23 +1,24 @@
1
- import * as React from 'react';
2
- export interface ModalProps {
3
- /** handler to close the modal (attached to `Overlay` onClick) */
4
- onCloseClick?: React.MouseEventHandler;
5
- /** Optional styled heading **/
6
- heading?: string;
7
- /** modal contents */
8
- children: React.ReactNode;
9
- /** classes to apply */
10
- className?: string;
11
- /** classes to apply to the contents box */
12
- contentsClassName?: string;
13
- /** lightens overlay (alert modal over existing modal) */
14
- alertOverlay?: boolean;
15
- /** restricts scroll outside of Modal when open, true by default */
16
- restrictOuterScroll?: boolean;
17
- innerRef?: React.Ref<HTMLDivElement>;
1
+ import type * as React from 'react';
2
+ import type { StyleProps } from '../primitives';
3
+ import type { Position } from './ModalShell';
4
+ type ModalType = 'info' | 'warning' | 'error';
5
+ export interface ModalProps extends StyleProps {
6
+ type?: ModalType;
7
+ onClose?: React.MouseEventHandler;
8
+ closeOnOutsideClick?: boolean;
9
+ title?: React.ReactNode;
10
+ titleElement1?: JSX.Element;
11
+ titleElement2?: JSX.Element;
12
+ fullPage?: boolean;
13
+ childrenPadding?: string | number;
14
+ children?: React.ReactNode;
15
+ footer?: React.ReactNode;
16
+ zIndexOverlay?: number;
17
+ showOverlay?: boolean;
18
+ position?: Position;
18
19
  }
19
20
  /**
20
- * Base modal component that fills its nearest `display:relative` ancestor
21
- * with a dark overlay and displays `children` as its contents in a white box
21
+ * For Desktop app and Helix (which includes Protocol Designer) use only.
22
22
  */
23
- export declare function Modal(props: ModalProps): JSX.Element;
23
+ export declare const Modal: (props: ModalProps) => JSX.Element;
24
+ export {};
@@ -0,0 +1,13 @@
1
+ import type * as React from 'react';
2
+ import type { IconProps } from '../icons';
3
+ export interface ModalHeaderProps {
4
+ title: React.ReactNode;
5
+ onClose?: React.MouseEventHandler;
6
+ titleElement1?: JSX.Element;
7
+ titleElement2?: JSX.Element;
8
+ backgroundColor?: string;
9
+ color?: string;
10
+ icon?: IconProps;
11
+ closeButton?: React.ReactNode;
12
+ }
13
+ export declare const ModalHeader: (props: ModalHeaderProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
- import * as React from 'react';
2
- import { StyleProps } from '../primitives';
1
+ import type * as React from 'react';
2
+ import type { StyleProps } from '../primitives';
3
+ export type Position = 'center' | 'bottomRight';
3
4
  export interface ModalShellProps extends StyleProps {
4
5
  /** Modal content */
5
6
  children: React.ReactNode;
@@ -11,6 +12,14 @@ export interface ModalShellProps extends StyleProps {
11
12
  footer?: React.ReactNode;
12
13
  /** Optional full page takeover */
13
14
  fullPage?: boolean;
15
+ /** Optional zIndex for the overlay */
16
+ zIndexOverlay?: number;
17
+ /** Optional position to make the modal appear at the center or bottom right */
18
+ position?: Position;
19
+ /** Optional visible overlay */
20
+ showOverlay?: boolean;
21
+ /** Optional remove padding */
22
+ noPadding?: boolean;
14
23
  }
15
24
  /**
16
25
  * A ModalShell is a layout component for building more specific modals.
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import { Flex } from '..';
3
3
  export interface OverlayProps extends React.ComponentProps<typeof Flex> {
4
4
  /** optional onClick handler */
@@ -7,6 +7,7 @@ export interface SpinnerModalProps {
7
7
  alertOverlay?: boolean;
8
8
  }
9
9
  /**
10
+ * @deprecated use Modal instead
10
11
  * Spinner Modal with no background and optional message
11
12
  */
12
13
  export declare function SpinnerModal(props: SpinnerModalProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import { SpinnerModal } from './SpinnerModal';
3
3
  import type { TitleBarProps } from '../structure';
4
4
  export interface SpinnerModalPageProps extends React.ComponentProps<typeof SpinnerModal> {
@@ -6,6 +6,7 @@ export interface SpinnerModalPageProps extends React.ComponentProps<typeof Spinn
6
6
  titleBar: TitleBarProps;
7
7
  }
8
8
  /**
9
+ * @deprecated use Modal instead
9
10
  * Spinner Modal variant with TitleBar
10
11
  */
11
12
  export declare function SpinnerModalPage(props: SpinnerModalPageProps): JSX.Element;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -1,9 +1,9 @@
1
- export * from './Modal';
2
1
  export * from './AlertModal';
3
2
  export * from './ContinueModal';
4
- export * from './SpinnerModal';
5
- export * from './ModalPage';
3
+ export * from './LegacyModal';
4
+ export * from './Modal';
5
+ export * from './ModalHeader';
6
6
  export * from './ModalShell';
7
- export * from './SpinnerModalPage';
8
- export * from './BaseModal';
9
7
  export * from './Overlay';
8
+ export * from './SpinnerModal';
9
+ export * from './SpinnerModalPage';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import type * as React from 'react';
2
+ import type { StyleProps } from '../../primitives';
3
+ import type { IconProps } from '../../icons';
4
+ export type BannerType = 'success' | 'warning' | 'error' | 'updating' | 'informing';
5
+ export interface BannerProps extends StyleProps {
6
+ /** name constant of the icon to display */
7
+ type: BannerType;
8
+ /** Banner contents */
9
+ children?: React.ReactNode;
10
+ /** optional handler to show close button/clear alert */
11
+ onCloseClick?: (() => void) | React.MouseEventHandler<HTMLButtonElement>;
12
+ /** Override the default Alert Icon */
13
+ icon?: IconProps;
14
+ /** some banner onCloseClicks fire events, this allows a spinner after click but before event finishes */
15
+ isCloseActionLoading?: boolean;
16
+ /** Override the Exit icon */
17
+ closeButton?: React.ReactNode;
18
+ /** Icon margin right for large banners */
19
+ iconMarginRight?: string;
20
+ /** Icon margin left for large banners */
21
+ iconMarginLeft?: string;
22
+ }
23
+ export declare function Banner(props: BannerProps): JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ModuleIconName } from '../../icons';
2
+ import type { StyleProps } from '../../primitives';
3
+ interface DeckLabelProps extends StyleProps {
4
+ /** deck label to display */
5
+ deckLabel: string;
6
+ iconName?: undefined;
7
+ }
8
+ interface HardwareIconProps extends StyleProps {
9
+ /** hardware icon name */
10
+ iconName: ModuleIconName | 'stacked';
11
+ deckLabel?: undefined;
12
+ }
13
+ export type DeckInfoLabelProps = (DeckLabelProps | HardwareIconProps) & {
14
+ highlight?: boolean;
15
+ svgSize?: string | number;
16
+ };
17
+ export declare const DeckInfoLabel: import("styled-components").StyledComponent<typeof DeckInfoLabelComponent, any, {}, never>;
18
+ declare function DeckInfoLabelComponent({ deckLabel, iconName, highlight, ...styleProps }: DeckInfoLabelProps): JSX.Element;
19
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ModuleModel } from '@opentrons/shared-data';
2
+ export interface DeckLabelProps {
3
+ text: string;
4
+ isSelected: boolean;
5
+ moduleModel?: ModuleModel;
6
+ maxWidth?: string;
7
+ labelBorderRadius?: string;
8
+ isLast?: boolean;
9
+ }
10
+ export declare function DeckLabel({ text, isSelected, labelBorderRadius, moduleModel, maxWidth, isLast, }: DeckLabelProps): JSX.Element;
@@ -0,0 +1,41 @@
1
+ import * as React from 'react';
2
+ export interface DropdownOption {
3
+ name: string;
4
+ value: string;
5
+ /** optional dropdown option for adding the liquid color icon */
6
+ liquidColor?: string;
7
+ disabled?: boolean;
8
+ tooltipText?: string;
9
+ }
10
+ export type DropdownBorder = 'rounded' | 'neutral';
11
+ export interface DropdownMenuProps {
12
+ /** dropdown options */
13
+ filterOptions: DropdownOption[];
14
+ /** click handler */
15
+ onClick: (value: string) => void;
16
+ /** current selected option */
17
+ currentOption: DropdownOption;
18
+ /** dropdown */
19
+ width?: string;
20
+ /** dropdown style type */
21
+ dropdownType?: DropdownBorder;
22
+ /** dropdown title */
23
+ title?: string;
24
+ /** dropdown item caption */
25
+ caption?: string | null;
26
+ /** text for tooltip */
27
+ tooltipText?: string | null;
28
+ /** html tabindex property */
29
+ tabIndex?: number;
30
+ /** optional error */
31
+ error?: string | null;
32
+ /** focus handler */
33
+ onFocus?: React.FocusEventHandler<HTMLButtonElement>;
34
+ /** blur handler */
35
+ onBlur?: React.FocusEventHandler<HTMLButtonElement>;
36
+ /** optional disabled */
37
+ disabled?: boolean;
38
+ /** force direction for pd after release this will be fixed and remove */
39
+ forceDirection?: boolean;
40
+ }
41
+ export declare function DropdownMenu(props: DropdownMenuProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface InfoScreenProps {
2
+ content: string;
3
+ backgroundColor?: string;
4
+ }
5
+ export declare function InfoScreen({ content, backgroundColor, }: InfoScreenProps): JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ type LiquidIconSize = 'small' | 'medium';
2
+ interface LiquidIconProps {
3
+ color: string;
4
+ size?: LiquidIconSize;
5
+ onClick?: () => void;
6
+ hasError?: boolean;
7
+ }
8
+ export declare function LiquidIcon(props: LiquidIconProps): JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface TabProps {
2
+ text: string;
3
+ onClick: () => void;
4
+ isActive?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ export interface TabsProps {
8
+ tabs: TabProps[];
9
+ }
10
+ export declare function Tabs(props: TabsProps): JSX.Element;
@@ -1,4 +1,8 @@
1
- export * from './LocationIcon';
2
- export * from './RoundTab';
1
+ export * from './Banner';
2
+ export * from './DeckInfoLabel';
3
+ export * from './DeckLabel';
4
+ export * from './DropdownMenu';
5
+ export * from './InfoScreen';
6
+ export * from './LiquidIcon';
3
7
  export * from './ParametersTable';
4
- export * from './ParametersTable/InfoScreen';
8
+ export * from './Tabs';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface SidePanelProps {
3
3
  title?: string;
4
4
  children?: React.ReactNode;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import type { DeckLabelProps } from '../../molecules/DeckLabel';
3
+ interface DeckLabelSetProps {
4
+ deckLabels: DeckLabelProps[];
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ export declare const DeckLabelSet: React.ForwardRefExoticComponent<DeckLabelSetProps & React.RefAttributes<HTMLDivElement>>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare function EndUserAgreementFooter(): JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ export interface ToolboxProps {
3
+ title: JSX.Element;
4
+ children: React.ReactNode;
5
+ disableCloseButton?: boolean;
6
+ width?: string;
7
+ height?: string;
8
+ confirmButtonText?: string;
9
+ onConfirmClick?: () => void;
10
+ confirmButton?: JSX.Element;
11
+ onCloseClick?: () => void;
12
+ closeButton?: JSX.Element;
13
+ side?: 'left' | 'right';
14
+ horizontalSide?: 'top' | 'bottom';
15
+ childrenPadding?: string;
16
+ subHeader?: JSX.Element | null;
17
+ secondaryHeaderButton?: JSX.Element;
18
+ position?: string;
19
+ }
20
+ export declare function Toolbox(props: ToolboxProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './DeckLabelSet';
2
+ export * from './EndUserAgreementFooter';
3
+ export * from './Toolbox';
@@ -1,4 +1,4 @@
1
- import { StyledComponent } from 'styled-components';
1
+ import type { StyledComponent } from 'styled-components';
2
2
  import type { StyleProps } from './types';
3
3
  export declare const BUTTON_TYPE_SUBMIT: 'submit';
4
4
  export declare const BUTTON_TYPE_RESET: 'reset';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { StyleProps } from '../primitives';
3
3
  export interface CardProps extends StyleProps {
4
4
  /** Title for card, all cards should receive a title. */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface LabeledValueProps {
3
3
  /** Label */
4
4
  label: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { UseHoverTooltipTargetProps } from '../tooltips';
3
3
  export interface PillProps {
4
4
  /** background color of pill (any CSS color string) */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { ButtonProps } from '../buttons';
3
3
  export interface TitleBarProps {
4
4
  id?: string;
@@ -12,6 +12,6 @@ export interface TitleBarProps {
12
12
  backButtonLabel?: string;
13
13
  }
14
14
  /**
15
- * @deprecated Use `InterstitialTitleBar` instead
15
+ * @deprecated Use 'ModalHeader' instead
16
16
  */
17
17
  export declare function TitleBar(props: TitleBarProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- export * from './PageTabs';
2
1
  export * from './TitleBar';
3
2
  export * from './Card';
4
3
  export * from './Splash';