@opentrons/components 0.1.5 → 0.1.6-alpha.10
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.
- package/Makefile +10 -9
- package/README.md +1 -15
- package/babel.config.cjs +21 -0
- package/lib/alerts/AlertItem.d.ts +1 -1
- package/lib/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/lib/atoms/Checkbox/index.d.ts +24 -0
- package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +1 -1
- package/lib/atoms/CheckboxField/index.d.ts +1 -1
- package/lib/atoms/Chip/index.d.ts +20 -0
- package/lib/atoms/Divider/index.d.ts +5 -0
- package/lib/atoms/InputField/__tests__/InputField.test.d.ts +1 -0
- package/lib/atoms/InputField/index.d.ts +68 -0
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
- package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
- package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
- package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +1 -0
- package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +1 -0
- package/lib/atoms/ListButton/index.d.ts +11 -0
- package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
- package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
- package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
- package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
- package/lib/atoms/ListItem/index.d.ts +14 -0
- package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
- package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
- package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
- package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
- package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
- package/lib/atoms/MenuList/index.d.ts +8 -0
- package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
- package/lib/atoms/Snackbar/index.d.ts +7 -0
- package/lib/atoms/StepMeter/index.d.ts +2 -1
- package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
- package/lib/atoms/StyledText/StyledText.d.ts +154 -0
- package/lib/atoms/StyledText/index.d.ts +2 -0
- package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
- package/lib/atoms/Tag/index.d.ts +13 -0
- package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
- package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
- package/lib/atoms/Toast/index.d.ts +25 -0
- package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
- package/lib/atoms/ToggleGroup/index.d.ts +9 -0
- package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/lib/atoms/Tooltip/index.d.ts +11 -0
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -2
- package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
- package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
- package/lib/atoms/buttons/LargeButton.d.ts +17 -0
- package/lib/atoms/buttons/PrimaryButton.d.ts +1 -2
- package/lib/atoms/buttons/RadioButton.d.ts +21 -0
- package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +1 -1
- package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -1
- package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
- package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -1
- package/lib/atoms/buttons/index.d.ts +3 -0
- package/lib/atoms/index.d.ts +18 -1
- package/lib/buttons/Button.d.ts +3 -2
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -1
- package/lib/buttons/FlatButton.d.ts +0 -1
- package/lib/buttons/IconButton.d.ts +0 -1
- package/lib/buttons/OutlineButton.d.ts +0 -1
- package/lib/controls/ControlInfo.d.ts +1 -1
- package/lib/controls/LabeledButton.d.ts +1 -1
- package/lib/controls/LabeledCheckbox.d.ts +1 -1
- package/lib/controls/LabeledControl.d.ts +1 -1
- package/lib/controls/LabeledRadioGroup.d.ts +1 -1
- package/lib/controls/LabeledSelect.d.ts +1 -1
- package/lib/controls/LabeledToggle.d.ts +1 -1
- package/lib/controls/StackedLabeledControl.d.ts +1 -1
- package/lib/controls/ToggleButton.d.ts +0 -1
- package/lib/forms/DeprecatedCheckboxField.d.ts +1 -1
- package/lib/forms/DropdownField.d.ts +3 -3
- package/lib/forms/FormGroup.d.ts +1 -1
- package/lib/forms/{InputField.d.ts → LegacyInputField.d.ts} +4 -4
- package/lib/forms/RadioGroup.d.ts +1 -1
- package/lib/forms/Select.d.ts +1 -2
- package/lib/forms/SelectField.d.ts +1 -1
- package/lib/forms/ToggleField.d.ts +1 -1
- package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +1 -0
- package/lib/forms/__tests__/DropdownField.test.d.ts +1 -0
- package/lib/forms/__tests__/InputField.test.d.ts +1 -0
- package/lib/forms/__tests__/Select.test.d.ts +1 -0
- package/lib/forms/__tests__/SelectField.test.d.ts +1 -0
- package/lib/forms/__tests__/ToggleField.test.d.ts +1 -0
- package/lib/forms/index.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +9 -2
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -3
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -1
- package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -1
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +1 -2
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -1
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
- package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
- package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +1 -2
- package/lib/hardware-sim/Deck/index.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +11 -0
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +4 -3
- package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +12 -0
- package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +10 -0
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +4 -3
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +4 -3
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +6 -1
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +10 -4
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +1 -1
- package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +8 -0
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +6 -2
- package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
- package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -1
- package/lib/hardware-sim/Labware/index.d.ts +3 -1
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +4 -1
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +9 -1
- package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +2 -1
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +1 -1
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -1
- package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -1
- package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -1
- package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
- package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
- package/lib/hardware-sim/Module/Temperature.d.ts +0 -1
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -1
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -1
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +1 -2
- package/lib/hardware-sim/Module/index.d.ts +2 -2
- package/lib/hardware-sim/Pipette/PipetteRender.d.ts +1 -1
- package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +2 -2
- package/lib/hardware-sim/ProtocolDeck/index.d.ts +4 -2
- package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +1 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +16 -0
- package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +1 -1
- package/lib/hardware-sim/utils.d.ts +1 -1
- package/lib/helix-design-system/borders.d.ts +26 -0
- package/lib/helix-design-system/colors.d.ts +11 -0
- package/lib/helix-design-system/index.d.ts +3 -0
- package/lib/helix-design-system/product/index.d.ts +1 -0
- package/lib/helix-design-system/product/typography.d.ts +79 -0
- package/lib/helix-design-system/style.d.ts +1 -0
- package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +1 -0
- package/lib/hooks/__tests__/useInterval.test.d.ts +1 -0
- package/lib/hooks/__tests__/useMountEffect.test.d.ts +1 -0
- package/lib/hooks/__tests__/usePrevious.test.d.ts +1 -0
- package/lib/hooks/__tests__/useTimeout.test.d.ts +1 -0
- package/lib/hooks/__tests__/useToggle.test.d.ts +1 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useConditionalConfirm.d.ts +3 -2
- package/lib/hooks/useDrag.d.ts +1 -1
- package/lib/hooks/useLongPress.d.ts +1 -1
- package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
- package/lib/hooks/useSelectDeckLocation/index.d.ts +1 -3
- package/lib/hooks/useSwipe.d.ts +1 -1
- package/lib/icons/Icon.d.ts +1 -1
- package/lib/icons/ModuleIcon.d.ts +2 -3
- package/lib/icons/NotificationIcon.d.ts +0 -1
- package/lib/icons/icon-data.d.ts +4 -582
- package/lib/icons/index.d.ts +1 -0
- package/lib/index.cjs +732 -0
- package/lib/index.d.ts +1 -3
- package/lib/index.mjs +36590 -0
- package/lib/instrument/InstrumentDiagram.d.ts +3 -4
- package/lib/instrument/InstrumentGroup.d.ts +0 -1
- package/lib/instrument/InstrumentInfo.d.ts +5 -11
- package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +1 -0
- package/lib/instrument/__tests__/PipetteSelect.test.d.ts +1 -0
- package/lib/instrument/index.d.ts +0 -1
- package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +1 -0
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -1
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -1
- package/lib/lists/SidePanelGroup.d.ts +1 -1
- package/lib/lists/index.d.ts +0 -1
- package/lib/modals/AlertModal.d.ts +2 -1
- package/lib/modals/ContinueModal.d.ts +1 -1
- package/lib/modals/LegacyModal.d.ts +24 -0
- package/lib/modals/Modal.d.ts +21 -20
- package/lib/modals/ModalHeader.d.ts +13 -0
- package/lib/modals/ModalShell.d.ts +11 -2
- package/lib/modals/Overlay.d.ts +1 -1
- package/lib/modals/SpinnerModal.d.ts +1 -1
- package/lib/modals/SpinnerModalPage.d.ts +2 -1
- package/lib/modals/__tests__/Modal.test.d.ts +1 -0
- package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
- package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
- package/lib/modals/index.d.ts +5 -5
- package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
- package/lib/molecules/Banner/index.d.ts +23 -0
- package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
- package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
- package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
- package/lib/molecules/DeckLabel/index.d.ts +10 -0
- package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
- package/lib/molecules/DropdownMenu/index.d.ts +41 -0
- package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
- package/lib/molecules/InfoScreen/index.d.ts +6 -0
- package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
- package/lib/molecules/LiquidIcon/index.d.ts +9 -0
- package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +1 -0
- package/lib/molecules/ParametersTable/index.d.ts +10 -0
- package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/lib/molecules/Tabs/index.d.ts +10 -0
- package/lib/molecules/index.d.ts +8 -2
- package/lib/nav/SidePanel.d.ts +1 -1
- package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
- package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
- package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
- package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
- package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
- package/lib/organisms/Toolbox/index.d.ts +20 -0
- package/lib/organisms/index.d.ts +3 -0
- package/lib/primitives/Btn.d.ts +11 -13
- package/lib/primitives/__tests__/Box.test.d.ts +1 -0
- package/lib/primitives/__tests__/Btn.test.d.ts +1 -0
- package/lib/primitives/__tests__/Flex.test.d.ts +1 -0
- package/lib/primitives/__tests__/Link.test.d.ts +1 -0
- package/lib/primitives/__tests__/Svg.test.d.ts +1 -0
- package/lib/primitives/__tests__/Text.test.d.ts +1 -0
- package/lib/primitives/__tests__/primitives.test.d.ts +1 -0
- package/lib/primitives/__tests__/style-props.test.d.ts +1 -0
- package/lib/primitives/types.d.ts +1 -2
- package/lib/slotmap/{SlotMap.d.ts → OT2SlotMap.d.ts} +1 -4
- package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +1 -0
- package/lib/slotmap/index.d.ts +1 -1
- package/lib/structure/Card.d.ts +1 -1
- package/lib/structure/LabeledValue.d.ts +1 -1
- package/lib/structure/Pill.d.ts +1 -1
- package/lib/structure/Splash.d.ts +0 -1
- package/lib/structure/TitleBar.d.ts +2 -2
- package/lib/structure/index.d.ts +0 -1
- package/lib/style.css +1 -0
- package/lib/styles/cursor.d.ts +10 -0
- package/lib/styles/flexbox.d.ts +6 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/layout.d.ts +1 -0
- package/lib/testing/utils/matchers.d.ts +0 -3
- package/lib/testing/utils/renderWithProviders.d.ts +2 -3
- package/lib/tooltips/DeprecatedTooltip.d.ts +1 -1
- package/lib/tooltips/{Tooltip.d.ts → LegacyTooltip.d.ts} +2 -2
- package/lib/tooltips/__tests__/Tooltip.test.d.ts +1 -0
- package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +1 -0
- package/lib/tooltips/__tests__/usePopper.test.d.ts +1 -0
- package/lib/tooltips/__tests__/useTooltip.test.d.ts +1 -0
- package/lib/tooltips/index.d.ts +1 -1
- package/lib/ui-style-constants/index.d.ts +2 -2
- package/lib/ui-style-constants/responsiveness.d.ts +1 -0
- package/lib/ui-style-constants/spacing.d.ts +1 -0
- package/lib/ui-style-constants/typography.d.ts +1 -0
- package/lib/ui-style-constants/viewport.d.ts +15 -0
- package/package.json +10 -9
- package/tsconfig.json +2 -2
- package/typings/global.d.ts +0 -1
- package/vite.config.mts +65 -0
- package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +0 -2
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +0 -19
- package/lib/instrument/InfoItem.d.ts +0 -11
- package/lib/lists/ListItem.d.ts +0 -37
- package/lib/modals/BaseModal.d.ts +0 -26
- package/lib/modals/ModalPage.d.ts +0 -16
- package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
- package/lib/molecules/LocationIcon/index.d.ts +0 -16
- package/lib/molecules/RoundTab.d.ts +0 -8
- package/lib/opentrons-components.js +0 -16
- package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
- package/lib/structure/PageTabs.d.ts +0 -12
- package/lib/tabbedNav/NavTab.d.ts +0 -25
- package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
- package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
- package/lib/tabbedNav/index.d.ts +0 -3
- package/lib/ui-style-constants/borders.d.ts +0 -18
- package/webpack.config.js +0 -38
- /package/lib/{molecules/LocationIcon/__tests__/LocationIcon.test.d.ts → atoms/Chip/__tests__/Chip.test.d.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { UseTooltipResultTooltipProps } from '../../tooltips';
|
|
3
|
+
import type { StyleProps } from '../../primitives';
|
|
4
|
+
export interface TooltipProps extends StyleProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
tooltipProps: UseTooltipResultTooltipProps & {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
};
|
|
9
|
+
key?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AlertPrimaryButton: import("styled-components").StyledComponent<import("react").ComponentType<any> | keyof JSX.IntrinsicElements, any, import("../../primitives").StyleProps, any>;
|
|
1
|
+
export declare const AlertPrimaryButton: import("styled-components").StyledComponent<"button", any, import("../../primitives").StyleProps, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AltPrimaryButton: import("styled-components").StyledComponent<"button", any, import("../..").StyleProps, any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IconName } from '../../index';
|
|
2
|
+
interface EmptySelectorButtonProps {
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
text: string;
|
|
5
|
+
textAlignment: 'left' | 'middle';
|
|
6
|
+
iconName?: IconName;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function EmptySelectorButton(props: EmptySelectorButtonProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProps } from '../../primitives';
|
|
3
|
+
import type { IconName } from '../../icons';
|
|
4
|
+
type LargeButtonTypes = 'primary' | 'secondary' | 'alert' | 'alertStroke' | 'alertAlt' | 'stroke';
|
|
5
|
+
interface LargeButtonProps extends StyleProps {
|
|
6
|
+
/** used for form submission */
|
|
7
|
+
type?: 'submit';
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
buttonType?: LargeButtonTypes;
|
|
10
|
+
buttonText: React.ReactNode;
|
|
11
|
+
iconName?: IconName;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** aria-disabled for displaying snack bar. */
|
|
14
|
+
ariaDisabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function LargeButton(props: LargeButtonProps): JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PrimaryButton: import("styled-components").StyledComponent<import("react").ComponentType<any> | keyof JSX.IntrinsicElements, any, import("../../primitives").StyleProps, any>;
|
|
1
|
+
export declare const PrimaryButton: import("styled-components").StyledComponent<"button", any, import("../../primitives").StyleProps, any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { IconName } from '../../icons';
|
|
3
|
+
import type { StyleProps } from '../../primitives';
|
|
4
|
+
interface RadioButtonProps extends StyleProps {
|
|
5
|
+
buttonLabel: string | React.ReactNode;
|
|
6
|
+
buttonValue: string | number;
|
|
7
|
+
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
iconName?: IconName;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
largeDesktopBorderRadius?: boolean;
|
|
12
|
+
radioButtonType?: 'large' | 'small';
|
|
13
|
+
subButtonLabel?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
maxLines?: number;
|
|
16
|
+
setNoHover?: () => void;
|
|
17
|
+
setHovered?: () => void;
|
|
18
|
+
error?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export declare function RadioButton(props: RadioButtonProps): JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import 'jest-
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import 'jest-
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import 'jest-
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
package/lib/atoms/index.d.ts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
export * from './buttons';
|
|
2
|
+
export * from './Checkbox';
|
|
1
3
|
export * from './CheckboxField';
|
|
4
|
+
export * from './Chip';
|
|
5
|
+
export * from './Divider';
|
|
6
|
+
export * from './InputField';
|
|
7
|
+
export * from './ListButton';
|
|
8
|
+
export * from './ListItem';
|
|
9
|
+
export * from './ListItem/ListItemChildren//ListItemDescriptor';
|
|
10
|
+
export * from './MenuList';
|
|
11
|
+
export * from './MenuList/MenuItem';
|
|
12
|
+
export * from './MenuList/OverflowBtn';
|
|
13
|
+
export * from './Snackbar';
|
|
2
14
|
export * from './StepMeter';
|
|
3
|
-
export * from './
|
|
15
|
+
export * from './StepMeter';
|
|
16
|
+
export * from './StyledText';
|
|
17
|
+
export * from './Tag';
|
|
18
|
+
export * from './Toast';
|
|
19
|
+
export * from './ToggleGroup';
|
|
20
|
+
export * from './Tooltip';
|
package/lib/buttons/Button.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { BUTTON_TYPE_BUTTON } from '../primitives';
|
|
3
|
+
import type { BUTTON_TYPE_SUBMIT, BUTTON_TYPE_RESET } from '../primitives';
|
|
3
4
|
import type { IconName } from '../icons';
|
|
4
5
|
import type { UseHoverTooltipTargetProps } from '../tooltips';
|
|
5
6
|
export interface ButtonProps {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface LegacyDropdownOption {
|
|
3
3
|
name: string;
|
|
4
4
|
value: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export type Options =
|
|
7
|
+
export type Options = LegacyDropdownOption[];
|
|
8
8
|
export interface DropdownFieldProps {
|
|
9
9
|
/** change handler */
|
|
10
10
|
onChange: React.ChangeEventHandler<HTMLSelectElement>;
|
package/lib/forms/FormGroup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export declare const INPUT_TYPE_TEXT: 'text';
|
|
3
3
|
export declare const INPUT_TYPE_PASSWORD: 'password';
|
|
4
|
-
export interface
|
|
4
|
+
export interface LegacyInputFieldProps {
|
|
5
5
|
/** field is disabled if value is true */
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
/** change handler */
|
|
@@ -46,6 +46,6 @@ export interface InputFieldProps {
|
|
|
46
46
|
isIndeterminate?: boolean;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* @deprecated Use `InputField`
|
|
49
|
+
* @deprecated Use `InputField`
|
|
50
50
|
*/
|
|
51
|
-
export declare function
|
|
51
|
+
export declare function LegacyInputField(props: LegacyInputFieldProps): JSX.Element;
|
package/lib/forms/Select.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { components as reactSelectComponents } from 'react-select';
|
|
3
|
-
import { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles';
|
|
4
2
|
import type { Props as ReactSelectProps } from 'react-select';
|
|
3
|
+
import type { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles';
|
|
5
4
|
export { reactSelectComponents };
|
|
6
5
|
export declare const PLACEMENT_AUTO: 'auto';
|
|
7
6
|
export declare const PLACEMENT_BOTTOM: 'bottom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/forms/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './DeprecatedCheckboxField';
|
|
2
2
|
export * from './DropdownField';
|
|
3
3
|
export * from './FormGroup';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './LegacyInputField';
|
|
5
5
|
export * from './RadioGroup';
|
|
6
6
|
export * from './Select';
|
|
7
7
|
export * from './SelectField';
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Module } from '../Module';
|
|
3
|
-
import { Svg } from '../../primitives';
|
|
3
|
+
import type { Svg } from '../../primitives';
|
|
4
4
|
import type { DeckConfiguration, LabwareDefinition2, LabwareLocation, ModuleLocation, ModuleModel, RobotType } from '@opentrons/shared-data';
|
|
5
|
-
import type { WellFill } from '../Labware';
|
|
5
|
+
import type { WellFill, WellGroup } from '../Labware';
|
|
6
6
|
export interface LabwareOnDeck {
|
|
7
7
|
labwareLocation: LabwareLocation;
|
|
8
8
|
definition: LabwareDefinition2;
|
|
9
9
|
wellFill?: WellFill;
|
|
10
|
+
missingTips?: WellGroup;
|
|
10
11
|
/** generic prop to render self-positioned children for each labware */
|
|
11
12
|
labwareChildren?: React.ReactNode;
|
|
12
13
|
onLabwareClick?: () => void;
|
|
14
|
+
highlight?: boolean;
|
|
15
|
+
highlightShadow?: boolean;
|
|
16
|
+
stacked?: boolean;
|
|
13
17
|
}
|
|
14
18
|
export interface ModuleOnDeck {
|
|
15
19
|
moduleModel: ModuleModel;
|
|
@@ -20,6 +24,9 @@ export interface ModuleOnDeck {
|
|
|
20
24
|
/** generic prop to render self-positioned children for each module */
|
|
21
25
|
moduleChildren?: React.ReactNode;
|
|
22
26
|
onLabwareClick?: () => void;
|
|
27
|
+
highlightLabware?: boolean;
|
|
28
|
+
highlightShadowLabware?: boolean;
|
|
29
|
+
stacked?: boolean;
|
|
23
30
|
}
|
|
24
31
|
interface BaseDeckProps {
|
|
25
32
|
deckConfig: DeckConfiguration;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export declare function SlotBase(props: React.SVGProps<SVGPathElement>): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export declare function SlotClip(props: React.SVGProps<SVGPathElement>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
3
3
|
export type StagingAreaLocation = 'cutoutA3' | 'cutoutB3' | 'cutoutC3' | 'cutoutD3';
|
|
4
4
|
interface StagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
|
|
3
|
-
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { WASTE_CHUTE_CUTOUT, DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
4
3
|
interface WasteChuteFixtureProps extends React.SVGProps<SVGGElement> {
|
|
5
4
|
cutoutId: typeof WASTE_CHUTE_CUTOUT;
|
|
6
5
|
deckDefinition: DeckDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import { WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data';
|
|
3
3
|
import type { DeckDefinition, ModuleType } from '@opentrons/shared-data';
|
|
4
4
|
interface WasteChuteStagingAreaFixtureProps extends React.SVGProps<SVGGElement> {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { LoadedModule,
|
|
3
|
-
import type { LabwareDefinition2, LabwareLocation, RobotType, DeckConfiguration } from '@opentrons/shared-data';
|
|
2
|
+
import type { LoadedLabware, LoadedModule, LabwareDefinition2, LabwareLocation, RobotType, DeckConfiguration } from '@opentrons/shared-data';
|
|
4
3
|
import type { StyleProps } from '../../primitives';
|
|
5
4
|
interface MoveLabwareOnDeckProps extends StyleProps {
|
|
6
5
|
robotType: RobotType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleProps } from '../../primitives';
|
|
2
|
+
import type { StyleProps } from '../../primitives';
|
|
3
3
|
import type { DeckDefinition, DeckSlot } from '@opentrons/shared-data';
|
|
4
4
|
export interface RobotWorkSpaceRenderProps {
|
|
5
5
|
deckSlotsById: {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getDeckDefinitions: jest.Mock<{}, []>;
|
|
1
|
+
export declare const getDeckDefinitions: import("@vitest/spy").Mock<[], {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface AbsorbanceReaderFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function AbsorbanceReaderFixture(props: AbsorbanceReaderFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface HeaterShakerFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function HeaterShakerFixture(props: HeaterShakerFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface MagneticBlockFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
hasStagingArea?: boolean;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function MagneticBlockFixture(props: MagneticBlockFixtureProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
2
|
interface StagingAreaConfigFixtureProps {
|
|
4
3
|
deckDefinition: DeckDefinition;
|
|
5
4
|
fixtureLocation: CutoutId;
|
|
6
|
-
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare function StagingAreaConfigFixture(props: StagingAreaConfigFixtureProps): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface StaticFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* this component allows us to add static labeled fixtures to the center column of a deck
|
|
9
|
+
* config map
|
|
10
|
+
*/
|
|
11
|
+
export declare function StaticFixture(props: StaticFixtureProps): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface TemperatureModuleFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function TemperatureModuleFixture(props: TemperatureModuleFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
2
|
+
interface ThermocyclerFixtureProps {
|
|
3
|
+
deckDefinition: DeckDefinition;
|
|
4
|
+
fixtureLocation: CutoutId;
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function ThermocyclerFixture(props: ThermocyclerFixtureProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
2
|
interface TrashBinConfigFixtureProps {
|
|
4
3
|
deckDefinition: DeckDefinition;
|
|
5
4
|
fixtureLocation: CutoutId;
|
|
6
|
-
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
|
+
selected?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare function TrashBinConfigFixture(props: TrashBinConfigFixtureProps): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
1
|
+
import type { CutoutFixtureId, CutoutId, DeckDefinition } from '@opentrons/shared-data';
|
|
3
2
|
interface WasteChuteConfigFixtureProps {
|
|
4
3
|
deckDefinition: DeckDefinition;
|
|
5
4
|
fixtureLocation: CutoutId;
|
|
6
|
-
|
|
5
|
+
cutoutFixtureId: CutoutFixtureId;
|
|
6
|
+
handleClickRemove?: (fixtureLocation: CutoutId, cutoutFixtureId: CutoutFixtureId) => void;
|
|
7
7
|
hasStagingAreas?: boolean;
|
|
8
|
+
selected?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare function WasteChuteConfigFixture(props: WasteChuteConfigFixtureProps): JSX.Element;
|
|
10
11
|
export {};
|