@opentrons/components 0.1.6-alpha.17 → 0.1.6-alpha.19
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/package.json +2 -2
- package/src/hardware-sim/BaseDeck/something.test.tsx +7 -0
- package/src/hardware-sim/Deck/SlotLabels.tsx +1 -1
- package/src/hardware-sim/ProtocolDeck/LabwareInfo.tsx +1 -1
- package/src/hardware-sim/ProtocolDeck/index.tsx +2 -2
- package/src/index.ts +2 -41
- package/src/molecules/DeckInfoLabel/index.tsx +1 -1
- package/src/molecules/DeckLabel/index.tsx +3 -3
- package/lib/__tests__/utils.test.d.ts +0 -1
- package/lib/alerts/AlertItem.d.ts +0 -21
- package/lib/alerts/index.d.ts +0 -1
- package/lib/atoms/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/lib/atoms/Checkbox/index.d.ts +0 -25
- package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +0 -1
- package/lib/atoms/CheckboxField/index.d.ts +0 -20
- package/lib/atoms/Chip/__tests__/Chip.test.d.ts +0 -1
- package/lib/atoms/Chip/index.d.ts +0 -20
- package/lib/atoms/Divider/index.d.ts +0 -5
- package/lib/atoms/InputField/__tests__/InputField.test.d.ts +0 -1
- package/lib/atoms/InputField/index.d.ts +0 -68
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +0 -10
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +0 -7
- package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +0 -14
- package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +0 -3
- package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +0 -1
- package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +0 -1
- package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +0 -1
- package/lib/atoms/ListButton/index.d.ts +0 -11
- package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +0 -15
- package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +0 -8
- package/lib/atoms/ListItem/ListItemChildren/index.d.ts +0 -2
- package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/lib/atoms/ListItem/index.d.ts +0 -14
- package/lib/atoms/MenuList/MenuItem.d.ts +0 -7
- package/lib/atoms/MenuList/OverflowBtn.d.ts +0 -7
- package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +0 -1
- package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +0 -1
- package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +0 -1
- package/lib/atoms/MenuList/index.d.ts +0 -8
- package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +0 -1
- package/lib/atoms/Snackbar/index.d.ts +0 -7
- package/lib/atoms/StepMeter/index.d.ts +0 -7
- package/lib/atoms/StyledText/LegacyStyledText.d.ts +0 -6
- package/lib/atoms/StyledText/StyledText.d.ts +0 -154
- package/lib/atoms/StyledText/index.d.ts +0 -2
- package/lib/atoms/Tag/__tests__/Tag.test.d.ts +0 -1
- package/lib/atoms/Tag/index.d.ts +0 -14
- package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +0 -1
- package/lib/atoms/Toast/__tests__/Toast.test.d.ts +0 -1
- package/lib/atoms/Toast/index.d.ts +0 -25
- package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +0 -1
- package/lib/atoms/ToggleGroup/index.d.ts +0 -9
- package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +0 -1
- package/lib/atoms/Tooltip/index.d.ts +0 -11
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -1
- package/lib/atoms/buttons/AltPrimaryButton.d.ts +0 -1
- package/lib/atoms/buttons/EmptySelectorButton.d.ts +0 -10
- package/lib/atoms/buttons/LargeButton.d.ts +0 -17
- package/lib/atoms/buttons/PrimaryButton.d.ts +0 -1
- package/lib/atoms/buttons/RadioButton.d.ts +0 -21
- package/lib/atoms/buttons/SecondaryButton.d.ts +0 -7
- package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/index.d.ts +0 -6
- package/lib/atoms/index.d.ts +0 -20
- package/lib/barrel.d.ts +0 -3
- package/lib/buttons/Button.d.ts +0 -50
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -8
- package/lib/buttons/FlatButton.d.ts +0 -5
- package/lib/buttons/IconButton.d.ts +0 -14
- package/lib/buttons/OutlineButton.d.ts +0 -8
- package/lib/buttons/index.d.ts +0 -5
- package/lib/controls/ControlInfo.d.ts +0 -6
- package/lib/controls/LabeledButton.d.ts +0 -8
- package/lib/controls/LabeledCheckbox.d.ts +0 -10
- package/lib/controls/LabeledControl.d.ts +0 -7
- package/lib/controls/LabeledRadioGroup.d.ts +0 -8
- package/lib/controls/LabeledSelect.d.ts +0 -9
- package/lib/controls/LabeledToggle.d.ts +0 -11
- package/lib/controls/StackedLabeledControl.d.ts +0 -7
- package/lib/controls/ToggleButton.d.ts +0 -5
- package/lib/controls/index.d.ts +0 -6
- package/lib/forms/DeprecatedCheckboxField.d.ts +0 -33
- package/lib/forms/DropdownField.d.ts +0 -38
- package/lib/forms/FormGroup.d.ts +0 -19
- package/lib/forms/LegacyInputField.d.ts +0 -51
- package/lib/forms/RadioGroup.d.ts +0 -29
- package/lib/forms/Select.d.ts +0 -26
- package/lib/forms/SelectField.d.ts +0 -33
- package/lib/forms/ToggleField.d.ts +0 -22
- package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -1
- package/lib/forms/__tests__/DropdownField.test.d.ts +0 -1
- package/lib/forms/__tests__/InputField.test.d.ts +0 -1
- package/lib/forms/__tests__/Select.test.d.ts +0 -1
- package/lib/forms/__tests__/SelectField.test.d.ts +0 -1
- package/lib/forms/__tests__/ToggleField.test.d.ts +0 -1
- package/lib/forms/index.d.ts +0 -8
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +0 -49
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +0 -12
- package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +0 -2
- package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +0 -2
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +0 -13
- package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +0 -20
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +0 -14
- package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +0 -4
- package/lib/hardware-sim/BaseDeck/index.d.ts +0 -5
- package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -10
- package/lib/hardware-sim/Deck/FlexTrash.d.ts +0 -14
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -16
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -10
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +0 -14
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +0 -12
- package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +0 -9
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +0 -21
- package/lib/hardware-sim/Deck/SlotLabels.d.ts +0 -12
- package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +0 -1
- package/lib/hardware-sim/Deck/constants.d.ts +0 -1
- package/lib/hardware-sim/Deck/index.d.ts +0 -8
- package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -8
- package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +0 -11
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +0 -12
- package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -11
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +0 -20
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +0 -20
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +0 -15
- package/lib/hardware-sim/Labware/Labware.d.ts +0 -39
- 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 +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +0 -27
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +0 -46
- package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +0 -20
- package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/index.d.ts +0 -5
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +0 -11
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +0 -21
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +0 -15
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +0 -25
- package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +0 -9
- package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +0 -19
- package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +0 -20
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +0 -12
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +0 -8
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +0 -12
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -4
- 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 +0 -9
- package/lib/hardware-sim/Module/PlateReader.d.ts +0 -1
- package/lib/hardware-sim/Module/Temperature.d.ts +0 -4
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -6
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -6
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -7
- package/lib/hardware-sim/Module/index.d.ts +0 -18
- package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +0 -4
- package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +0 -4
- package/lib/hardware-sim/Pipette/PipetteRender.d.ts +0 -8
- package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/constants.d.ts +0 -7
- package/lib/hardware-sim/Pipette/index.d.ts +0 -1
- package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +0 -6
- package/lib/hardware-sim/ProtocolDeck/index.d.ts +0 -14
- package/lib/hardware-sim/ProtocolDeck/types.d.ts +0 -8
- package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +0 -1
- package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +0 -5
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +0 -12
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +0 -3
- package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +0 -10
- package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +0 -2
- package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +0 -4
- package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +0 -3
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +0 -7
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +0 -16
- package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +0 -2
- package/lib/hardware-sim/index.d.ts +0 -11
- package/lib/hardware-sim/utils.d.ts +0 -3
- package/lib/helix-design-system/borders.d.ts +0 -26
- package/lib/helix-design-system/colors.d.ts +0 -86
- package/lib/helix-design-system/index.d.ts +0 -4
- package/lib/helix-design-system/product/index.d.ts +0 -1
- package/lib/helix-design-system/product/typography.d.ts +0 -79
- package/lib/helix-design-system/style.d.ts +0 -1
- package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -1
- package/lib/hooks/__tests__/useDrag.test.d.ts +0 -1
- package/lib/hooks/__tests__/useIdle.test.d.ts +0 -1
- package/lib/hooks/__tests__/useInterval.test.d.ts +0 -1
- package/lib/hooks/__tests__/useLongPress.test.d.ts +0 -1
- package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -1
- package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -1
- package/lib/hooks/__tests__/useScrolling.test.d.ts +0 -1
- package/lib/hooks/__tests__/useSwipe.test.d.ts +0 -1
- package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -1
- package/lib/hooks/__tests__/useToggle.test.d.ts +0 -1
- package/lib/hooks/index.d.ts +0 -13
- package/lib/hooks/useConditionalConfirm.d.ts +0 -41
- package/lib/hooks/useDrag.d.ts +0 -22
- package/lib/hooks/useIdle.d.ts +0 -11
- package/lib/hooks/useInterval.d.ts +0 -11
- package/lib/hooks/useLongPress.d.ts +0 -19
- package/lib/hooks/useMenuHandleClickOutside.d.ts +0 -9
- package/lib/hooks/useMountEffect.d.ts +0 -8
- package/lib/hooks/usePrevious.d.ts +0 -9
- package/lib/hooks/useScrolling.d.ts +0 -1
- package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -18
- package/lib/hooks/useSwipe.d.ts +0 -12
- package/lib/hooks/useTimeout.d.ts +0 -9
- package/lib/hooks/useToggle.d.ts +0 -22
- package/lib/icons/Icon.d.ts +0 -34
- package/lib/icons/ModuleIcon.d.ts +0 -11
- package/lib/icons/NotificationIcon.d.ts +0 -12
- package/lib/icons/icon-data.d.ts +0 -4
- package/lib/icons/index.d.ts +0 -4
- package/lib/images/index.d.ts +0 -1
- package/lib/images/labware/index.d.ts +0 -1
- package/lib/images/labware/measurement-guide/index.d.ts +0 -13
- package/lib/index.d.ts +0 -26
- package/lib/instrument/InstrumentDiagram.d.ts +0 -11
- package/lib/instrument/InstrumentGroup.d.ts +0 -11
- package/lib/instrument/InstrumentInfo.d.ts +0 -18
- package/lib/instrument/PipetteSelect.d.ts +0 -20
- package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +0 -1
- package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -1
- package/lib/instrument/index.d.ts +0 -4
- package/lib/interaction-enhancers/ClickOutside.d.ts +0 -18
- package/lib/interaction-enhancers/HandleKeypress.d.ts +0 -27
- package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -1
- package/lib/interaction-enhancers/index.d.ts +0 -4
- package/lib/interaction-enhancers/useHover.d.ts +0 -33
- package/lib/interaction-enhancers/useOnClickOutside.d.ts +0 -5
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -7
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
- package/lib/legacy-hardware-sim/index.d.ts +0 -2
- package/lib/lists/SidePanelGroup.d.ts +0 -18
- package/lib/lists/TitledList.d.ts +0 -44
- package/lib/lists/index.d.ts +0 -2
- package/lib/modals/AlertModal.d.ts +0 -28
- package/lib/modals/ContinueModal.d.ts +0 -10
- package/lib/modals/LegacyModal.d.ts +0 -24
- package/lib/modals/Modal.d.ts +0 -24
- package/lib/modals/ModalHeader.d.ts +0 -13
- package/lib/modals/ModalShell.d.ts +0 -34
- package/lib/modals/Overlay.d.ts +0 -9
- package/lib/modals/SpinnerModal.d.ts +0 -13
- package/lib/modals/SpinnerModalPage.d.ts +0 -12
- package/lib/modals/__tests__/Modal.test.d.ts +0 -1
- package/lib/modals/__tests__/ModalHeader.test.d.ts +0 -1
- package/lib/modals/__tests__/ModalShell.test.d.ts +0 -1
- package/lib/modals/index.d.ts +0 -9
- package/lib/molecules/Banner/__tests__/Banner.test.d.ts +0 -1
- package/lib/molecules/Banner/index.d.ts +0 -23
- package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +0 -1
- package/lib/molecules/DeckInfoLabel/index.d.ts +0 -19
- package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +0 -1
- package/lib/molecules/DeckLabel/index.d.ts +0 -10
- package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +0 -1
- package/lib/molecules/DropdownMenu/index.d.ts +0 -41
- package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +0 -1
- package/lib/molecules/InfoScreen/index.d.ts +0 -8
- package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +0 -1
- package/lib/molecules/LiquidIcon/index.d.ts +0 -9
- package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +0 -1
- package/lib/molecules/ParametersTable/index.d.ts +0 -10
- package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/lib/molecules/Tabs/index.d.ts +0 -10
- package/lib/molecules/index.d.ts +0 -8
- package/lib/nav/SidePanel.d.ts +0 -6
- package/lib/nav/index.d.ts +0 -1
- package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +0 -1
- package/lib/organisms/DeckLabelSet/index.d.ts +0 -11
- package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +0 -1
- package/lib/organisms/EndUserAgreementFooter/index.d.ts +0 -1
- package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +0 -1
- package/lib/organisms/Toolbox/index.d.ts +0 -20
- package/lib/organisms/index.d.ts +0 -3
- package/lib/primitives/Box.d.ts +0 -7
- package/lib/primitives/Btn.d.ts +0 -59
- package/lib/primitives/Flex.d.ts +0 -7
- package/lib/primitives/ForeignObject.d.ts +0 -23
- package/lib/primitives/Link.d.ts +0 -11
- package/lib/primitives/Svg.d.ts +0 -23
- package/lib/primitives/Text.d.ts +0 -7
- package/lib/primitives/__tests__/Box.test.d.ts +0 -1
- package/lib/primitives/__tests__/Btn.test.d.ts +0 -1
- package/lib/primitives/__tests__/Flex.test.d.ts +0 -1
- package/lib/primitives/__tests__/Link.test.d.ts +0 -1
- package/lib/primitives/__tests__/Svg.test.d.ts +0 -1
- package/lib/primitives/__tests__/Text.test.d.ts +0 -1
- package/lib/primitives/__tests__/primitives.test.d.ts +0 -1
- package/lib/primitives/__tests__/style-props.test.d.ts +0 -1
- package/lib/primitives/index.d.ts +0 -9
- package/lib/primitives/style-props.d.ts +0 -4
- package/lib/primitives/types.d.ts +0 -95
- package/lib/robot-types.d.ts +0 -1
- package/lib/slotmap/OT2SlotMap.d.ts +0 -9
- package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +0 -1
- package/lib/slotmap/index.d.ts +0 -1
- package/lib/structure/Card.d.ts +0 -18
- package/lib/structure/LabeledValue.d.ts +0 -12
- package/lib/structure/Pill.d.ts +0 -18
- package/lib/structure/Splash.d.ts +0 -8
- package/lib/structure/TitleBar.d.ts +0 -17
- package/lib/structure/index.d.ts +0 -5
- package/lib/styles/borders.d.ts +0 -8
- package/lib/styles/colors.d.ts +0 -37
- package/lib/styles/cursor.d.ts +0 -10
- package/lib/styles/flexbox.d.ts +0 -34
- package/lib/styles/index.d.ts +0 -8
- package/lib/styles/layout.d.ts +0 -24
- package/lib/styles/position.d.ts +0 -5
- package/lib/styles/spacing.d.ts +0 -9
- package/lib/styles/typography.d.ts +0 -36
- package/lib/testing/utils/index.d.ts +0 -2
- package/lib/testing/utils/matchers.d.ts +0 -3
- package/lib/testing/utils/renderWithProviders.d.ts +0 -9
- package/lib/tooltips/DeprecatedTooltip.d.ts +0 -37
- package/lib/tooltips/HoverTooltip.d.ts +0 -36
- package/lib/tooltips/LegacyTooltip.d.ts +0 -35
- package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -1
- package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -1
- package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -1
- package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -1
- package/lib/tooltips/constants.d.ts +0 -17
- package/lib/tooltips/index.d.ts +0 -8
- package/lib/tooltips/styles.d.ts +0 -12
- package/lib/tooltips/types.d.ts +0 -52
- package/lib/tooltips/useHoverTooltip.d.ts +0 -24
- package/lib/tooltips/usePopper.d.ts +0 -2
- package/lib/tooltips/useTooltip.d.ts +0 -31
- package/lib/ui-style-constants/index.d.ts +0 -4
- package/lib/ui-style-constants/responsiveness.d.ts +0 -3
- package/lib/ui-style-constants/spacing.d.ts +0 -18
- package/lib/ui-style-constants/typography.d.ts +0 -71
- package/lib/ui-style-constants/viewport.d.ts +0 -15
- package/lib/utils.d.ts +0 -15
- package/src/__tests__/utils.test.ts +0 -27
- package/src/alerts/alerts.module.css +0 -103
- package/src/atoms/Checkbox/__tests__/Checkbox.test.tsx +0 -55
- package/src/atoms/CheckboxField/__tests__/CheckboxField.test.tsx +0 -141
- package/src/atoms/Chip/__tests__/Chip.test.tsx +0 -429
- package/src/atoms/InputField/__tests__/InputField.test.tsx +0 -63
- package/src/atoms/ListButton/__tests__/ListButton.test.tsx +0 -46
- package/src/atoms/ListButton/__tests__/ListButtonAccordion.test.tsx +0 -35
- package/src/atoms/ListButton/__tests__/ListButtonRadioButton.test.tsx +0 -27
- package/src/atoms/ListItem/__tests__/ListItem.test.tsx +0 -61
- package/src/atoms/MenuList/__tests__/MenuItem.test.tsx +0 -50
- package/src/atoms/MenuList/__tests__/MenuList.test.tsx +0 -36
- package/src/atoms/MenuList/__tests__/OverflowBtn.test.tsx +0 -33
- package/src/atoms/Snackbar/__tests__/Snackbar.test.tsx +0 -73
- package/src/atoms/Tag/__tests__/Tag.test.tsx +0 -55
- package/src/atoms/Toast/__tests__/ODDToast.test.tsx +0 -178
- package/src/atoms/Toast/__tests__/Toast.test.tsx +0 -174
- package/src/atoms/ToggleGroup/__tests__/ToggleGroup.test.tsx +0 -28
- package/src/atoms/Tooltip/__tests__/Tooltip.test.tsx +0 -78
- package/src/atoms/buttons/__tests__/AlertPrimaryButton.test.tsx +0 -47
- package/src/atoms/buttons/__tests__/AltPrimaryButton.test.tsx +0 -57
- package/src/atoms/buttons/__tests__/EmptySelectorButton.test.tsx +0 -42
- package/src/atoms/buttons/__tests__/LargeButton.test.tsx +0 -91
- package/src/atoms/buttons/__tests__/PrimaryButton.test.tsx +0 -64
- package/src/atoms/buttons/__tests__/RadioButton.test.tsx +0 -98
- package/src/atoms/buttons/__tests__/SecondaryButton.test.tsx +0 -54
- package/src/buttons/buttons.module.css +0 -428
- package/src/controls/styles.module.css +0 -103
- package/src/forms/Select.module.css +0 -118
- package/src/forms/SelectField.module.css +0 -16
- package/src/forms/__tests__/DeprecatedCheckboxField.test.tsx +0 -5
- package/src/forms/__tests__/DropdownField.test.tsx +0 -5
- package/src/forms/__tests__/InputField.test.tsx +0 -5
- package/src/forms/__tests__/Select.test.tsx +0 -5
- package/src/forms/__tests__/SelectField.test.tsx +0 -5
- package/src/forms/__tests__/ToggleField.test.tsx +0 -5
- package/src/forms/forms.module.css +0 -239
- package/src/hardware-sim/Labware/__tests__/Labware.test.tsx +0 -43
- package/src/hardware-sim/Labware/__tests__/LabwareRender.test.tsx +0 -54
- package/src/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.tsx +0 -66
- package/src/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.tsx +0 -31
- package/src/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.tsx +0 -91
- package/src/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.tsx +0 -16
- package/src/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.tsx +0 -67
- package/src/hardware-sim/Pipette/__tests__/PipetteRender.test.tsx +0 -99
- package/src/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.ts +0 -158
- package/src/hooks/__tests__/useConditionalConfirm.test.tsx +0 -5
- package/src/hooks/__tests__/useDrag.test.ts +0 -46
- package/src/hooks/__tests__/useIdle.test.ts +0 -68
- package/src/hooks/__tests__/useInterval.test.tsx +0 -5
- package/src/hooks/__tests__/useLongPress.test.ts +0 -25
- package/src/hooks/__tests__/useMountEffect.test.tsx +0 -5
- package/src/hooks/__tests__/usePrevious.test.tsx +0 -5
- package/src/hooks/__tests__/useScrolling.test.tsx +0 -46
- package/src/hooks/__tests__/useSwipe.test.tsx +0 -26
- package/src/hooks/__tests__/useTimeout.test.tsx +0 -5
- package/src/hooks/__tests__/useToggle.test.tsx +0 -5
- package/src/index.module.css +0 -9
- package/src/instrument/PipetteSelect.module.css +0 -14
- package/src/instrument/__tests__/InstrumentInfo.test.tsx +0 -55
- package/src/instrument/__tests__/PipetteSelect.test.tsx +0 -4
- package/src/instrument/instrument.module.css +0 -45
- package/src/interaction-enhancers/__tests__/useHover.test.tsx +0 -4
- package/src/legacy-hardware-sim/LabwareNameOverlay.module.css +0 -20
- package/src/legacy-hardware-sim/ModuleItem.module.css +0 -98
- package/src/lists/lists.module.css +0 -171
- package/src/modals/__tests__/Modal.test.tsx +0 -65
- package/src/modals/__tests__/ModalHeader.test.tsx +0 -73
- package/src/modals/__tests__/ModalShell.test.tsx +0 -45
- package/src/modals/modals.module.css +0 -275
- package/src/molecules/Banner/__tests__/Banner.test.tsx +0 -94
- package/src/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.tsx +0 -49
- package/src/molecules/DeckLabel/__tests__/DeckLabel.test.tsx +0 -69
- package/src/molecules/DropdownMenu/__tests__/DropdownMenu.test.tsx +0 -85
- package/src/molecules/InfoScreen/__tests__/InfoScreen.test.tsx +0 -40
- package/src/molecules/LiquidIcon/__tests__/LiquidIcon.test.tsx +0 -50
- package/src/molecules/ParametersTable/__tests__/ParametersTable.test.tsx +0 -126
- package/src/molecules/Tabs/__tests__/Tabs.test.tsx +0 -90
- package/src/nav/SidePanel.module.css +0 -34
- package/src/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.tsx +0 -49
- package/src/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.tsx +0 -21
- package/src/organisms/Toolbox/__tests__/Toolbox.test.tsx +0 -35
- package/src/primitives/__tests__/Box.test.tsx +0 -4
- package/src/primitives/__tests__/Btn.test.tsx +0 -4
- package/src/primitives/__tests__/Flex.test.tsx +0 -4
- package/src/primitives/__tests__/Link.test.tsx +0 -4
- package/src/primitives/__tests__/Svg.test.tsx +0 -4
- package/src/primitives/__tests__/Text.test.tsx +0 -4
- package/src/primitives/__tests__/primitives.test.tsx +0 -4
- package/src/primitives/__tests__/style-props.test.tsx +0 -4
- package/src/slotmap/__tests__/OT2SlotMap.test.tsx +0 -4
- package/src/slotmap/styles.module.css +0 -18
- package/src/structure/Pill.module.css +0 -16
- package/src/structure/Splash.module.css +0 -16
- package/src/structure/structure.module.css +0 -114
- package/src/styles/borders.module.css +0 -20
- package/src/styles/colors.module.css +0 -57
- package/src/styles/index.module.css +0 -8
- package/src/styles/typography.module.css +0 -22
- package/src/tooltips/__tests__/Tooltip.test.tsx +0 -4
- package/src/tooltips/__tests__/useHoverTooltip.test.tsx +0 -4
- package/src/tooltips/__tests__/usePopper.test.tsx +0 -4
- package/src/tooltips/__tests__/useTooltip.test.tsx +0 -4
- package/src/tooltips/tooltips.module.css +0 -72
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentrons/components",
|
|
3
|
-
"version": "0.1.6-alpha.
|
|
3
|
+
"version": "0.1.6-alpha.19",
|
|
4
4
|
"description": "React components library for Opentrons' projects",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react-dom": "18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@opentrons/shared-data": "0.1.6-alpha.
|
|
25
|
+
"@opentrons/shared-data": "0.1.6-alpha.19",
|
|
26
26
|
"@popperjs/core": "2.1.1",
|
|
27
27
|
"@react-spring/types": "9.6.1",
|
|
28
28
|
"@react-spring/web": "9.6.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data'
|
|
2
|
-
import { DeckInfoLabel } from '../../molecules'
|
|
2
|
+
import { DeckInfoLabel } from '../../molecules/DeckInfoLabel'
|
|
3
3
|
import { Flex } from '../../primitives'
|
|
4
4
|
import { ALIGN_CENTER, DIRECTION_COLUMN, JUSTIFY_CENTER } from '../../styles'
|
|
5
5
|
import { RobotCoordsForeignObject } from './RobotCoordsForeignObject'
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getTopLabwareInfo,
|
|
8
8
|
} from '@opentrons/shared-data'
|
|
9
9
|
|
|
10
|
-
import { BaseDeck } from '../BaseDeck'
|
|
10
|
+
import { BaseDeck } from '../BaseDeck/BaseDeck'
|
|
11
11
|
import { LabwareInfo } from './LabwareInfo'
|
|
12
|
-
import { getStandardDeckViewLayerBlockList } from './utils'
|
|
12
|
+
import { getStandardDeckViewLayerBlockList } from './utils/getStandardDeckViewLayerBlockList'
|
|
13
13
|
import { getLabwareInfoByLiquidId } from './utils/getLabwareInfoByLiquidId'
|
|
14
14
|
import { getTopMostLabwareInSlots } from './utils/getLabwareInSlots'
|
|
15
15
|
import { getModulesInSlots } from './utils/getModulesInSlots'
|
package/src/index.ts
CHANGED
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from './hooks'
|
|
4
|
-
export * from './utils'
|
|
5
|
-
|
|
6
|
-
// Components
|
|
7
|
-
export * from './alerts'
|
|
8
|
-
export * from './buttons'
|
|
9
|
-
export * from './controls'
|
|
10
|
-
export * from './hardware-sim'
|
|
11
|
-
export * from './legacy-hardware-sim'
|
|
12
|
-
export * from './forms'
|
|
13
|
-
export * from './icons'
|
|
14
|
-
export * from './images'
|
|
15
|
-
export * from './instrument'
|
|
16
|
-
export * from './interaction-enhancers'
|
|
17
|
-
export * from './lists'
|
|
18
|
-
export * from './modals'
|
|
19
|
-
export * from './nav'
|
|
20
|
-
export * from './primitives'
|
|
21
|
-
export * from './slotmap'
|
|
22
|
-
export * from './structure'
|
|
23
|
-
export * from './tooltips'
|
|
24
|
-
export * from './organisms'
|
|
25
|
-
|
|
26
|
-
// styles
|
|
27
|
-
export * from './styles'
|
|
28
|
-
// new ui-overhaul style vars
|
|
29
|
-
export * from './ui-style-constants'
|
|
30
|
-
|
|
31
|
-
// helix design system
|
|
32
|
-
export * from './helix-design-system'
|
|
33
|
-
|
|
34
|
-
// Pure Types
|
|
35
|
-
export * from './robot-types'
|
|
36
|
-
|
|
37
|
-
// Molecules
|
|
38
|
-
export * from './molecules'
|
|
39
|
-
|
|
40
|
-
// Atoms
|
|
41
|
-
export * from './atoms'
|
|
1
|
+
export { ProtocolDeck } from './hardware-sim/ProtocolDeck'
|
|
2
|
+
export { LabwareRender } from './hardware-sim/Labware'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components'
|
|
2
2
|
|
|
3
|
-
import { StyledText } from '../../atoms'
|
|
3
|
+
import { StyledText } from '../../atoms/StyledText'
|
|
4
4
|
import { BORDERS, COLORS } from '../../helix-design-system'
|
|
5
5
|
import { Icon } from '../../icons'
|
|
6
6
|
import { Flex } from '../../primitives'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { css } from 'styled-components'
|
|
2
2
|
import { getModuleType } from '@opentrons/shared-data'
|
|
3
|
-
import { Flex } from '../../primitives'
|
|
3
|
+
import { Flex } from '../../primitives/Flex'
|
|
4
4
|
import { ALIGN_CENTER, FLEX_MAX_CONTENT } from '../../styles'
|
|
5
5
|
import { COLORS } from '../../helix-design-system'
|
|
6
6
|
import { SPACING } from '../../ui-style-constants'
|
|
7
|
-
import { StyledText } from '../../atoms'
|
|
8
|
-
import { ModuleIcon } from '../../icons'
|
|
7
|
+
import { StyledText } from '../../atoms/StyledText'
|
|
8
|
+
import { ModuleIcon } from '../../icons/ModuleIcon'
|
|
9
9
|
|
|
10
10
|
import type { FlattenSimpleInterpolation } from 'styled-components'
|
|
11
11
|
import type { ModuleModel } from '@opentrons/shared-data'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { IconProps } from '../icons';
|
|
3
|
-
export type AlertType = 'success' | 'warning' | 'error' | 'info';
|
|
4
|
-
export interface AlertItemProps {
|
|
5
|
-
/** name constant of the icon to display */
|
|
6
|
-
type: AlertType;
|
|
7
|
-
/** title/main message of colored alert bar */
|
|
8
|
-
title: React.ReactNode;
|
|
9
|
-
/** Alert message body contents */
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/** Additional class name */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** optional handler to show close button/clear alert */
|
|
14
|
-
onCloseClick?: () => unknown;
|
|
15
|
-
/** Override the default Alert Icon */
|
|
16
|
-
icon?: IconProps;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use 'Banner' instead
|
|
20
|
-
*/
|
|
21
|
-
export declare function AlertItem(props: AlertItemProps): JSX.Element;
|
package/lib/alerts/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AlertItem';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
export interface CheckboxProps {
|
|
3
|
-
/** checkbox is checked if value is true */
|
|
4
|
-
isChecked: boolean;
|
|
5
|
-
/** label text that describes the option */
|
|
6
|
-
labelText: string;
|
|
7
|
-
/** callback click/tap handler */
|
|
8
|
-
onClick: React.MouseEventHandler;
|
|
9
|
-
/** html tabindex property */
|
|
10
|
-
tabIndex?: number;
|
|
11
|
-
/** if disabled is true, mouse events will not trigger onClick callback */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** optional borderRadius type */
|
|
14
|
-
type?: 'round' | 'neutral';
|
|
15
|
-
/** optional width for helix */
|
|
16
|
-
width?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
19
|
-
interface CheckProps {
|
|
20
|
-
isChecked: boolean;
|
|
21
|
-
color?: string;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare function Check(props: CheckProps): JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
export interface CheckboxFieldProps {
|
|
3
|
-
/** change handler */
|
|
4
|
-
onChange: React.ChangeEventHandler;
|
|
5
|
-
/** checkbox is checked if value is true */
|
|
6
|
-
value?: boolean;
|
|
7
|
-
/** name of field in form */
|
|
8
|
-
name?: string;
|
|
9
|
-
/** label text for checkbox */
|
|
10
|
-
label?: React.ReactNode;
|
|
11
|
-
/** checkbox is disabled if value is true */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** html tabindex property */
|
|
14
|
-
tabIndex?: number;
|
|
15
|
-
/** props passed into label div. TODO IMMEDIATELY what is the Flow type? */
|
|
16
|
-
labelProps?: React.ComponentProps<'div'>;
|
|
17
|
-
/** if true, render indeterminate icon */
|
|
18
|
-
isIndeterminate?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function CheckboxField(props: CheckboxFieldProps): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { IconName } from '../../icons';
|
|
2
|
-
import type { StyleProps } from '../../primitives';
|
|
3
|
-
export type ChipType = 'error' | 'info' | 'neutral' | 'success' | 'warning';
|
|
4
|
-
type ChipSize = 'medium' | 'small';
|
|
5
|
-
interface ChipProps extends StyleProps {
|
|
6
|
-
/** Display background color? */
|
|
7
|
-
background?: boolean;
|
|
8
|
-
/** Chip icon */
|
|
9
|
-
iconName?: IconName;
|
|
10
|
-
/** Chip content */
|
|
11
|
-
text: string;
|
|
12
|
-
/** name constant of the text color and the icon color to display */
|
|
13
|
-
type: ChipType;
|
|
14
|
-
/** has icon */
|
|
15
|
-
hasIcon?: boolean;
|
|
16
|
-
/** Chip size medium is the default size */
|
|
17
|
-
chipSize?: ChipSize;
|
|
18
|
-
}
|
|
19
|
-
export declare function Chip(props: ChipProps): JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { TYPOGRAPHY } from '../../ui-style-constants';
|
|
2
|
-
import type { ChangeEventHandler, FocusEvent, MouseEvent, ReactNode } from 'react';
|
|
3
|
-
import type { IconName } from '../../icons';
|
|
4
|
-
export declare const INPUT_TYPE_NUMBER: "number";
|
|
5
|
-
export declare const LEGACY_INPUT_TYPE_TEXT: "text";
|
|
6
|
-
export declare const LEGACY_INPUT_TYPE_PASSWORD: "password";
|
|
7
|
-
export interface InputFieldProps {
|
|
8
|
-
/** field is disabled if value is true */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** change handler */
|
|
11
|
-
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
12
|
-
/** name of field in form */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** optional ID of <input> element */
|
|
15
|
-
id?: string;
|
|
16
|
-
/** placeholder text */
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/** optional suffix component, appears to the right of input text */
|
|
19
|
-
units?: ReactNode;
|
|
20
|
-
/** current value of text in box, defaults to '' */
|
|
21
|
-
value?: string | number | null;
|
|
22
|
-
/** if included, InputField will use error style and display error instead of caption */
|
|
23
|
-
error?: string | null;
|
|
24
|
-
/** optional title */
|
|
25
|
-
title?: string | null;
|
|
26
|
-
/** optional text for tooltip */
|
|
27
|
-
tooltipText?: string;
|
|
28
|
-
/** optional caption. hidden when `error` is given */
|
|
29
|
-
caption?: string | null;
|
|
30
|
-
/** optional input type (default "text") */
|
|
31
|
-
type?: typeof LEGACY_INPUT_TYPE_TEXT | typeof LEGACY_INPUT_TYPE_PASSWORD | typeof INPUT_TYPE_NUMBER;
|
|
32
|
-
/** mouse click handler */
|
|
33
|
-
onClick?: (event: MouseEvent<HTMLInputElement>) => unknown;
|
|
34
|
-
/** focus handler */
|
|
35
|
-
onFocus?: (event: FocusEvent<HTMLInputElement>) => unknown;
|
|
36
|
-
/** blur handler */
|
|
37
|
-
onBlur?: (event: FocusEvent<HTMLInputElement>) => unknown;
|
|
38
|
-
/** makes input field read-only */
|
|
39
|
-
readOnly?: boolean;
|
|
40
|
-
/** html tabindex property */
|
|
41
|
-
tabIndex?: number;
|
|
42
|
-
/** automatically focus field on renders */
|
|
43
|
-
autoFocus?: boolean;
|
|
44
|
-
/** if true, clear out value and add '-' placeholder */
|
|
45
|
-
isIndeterminate?: boolean;
|
|
46
|
-
/** if input type is number, these are the min and max values */
|
|
47
|
-
max?: number | string;
|
|
48
|
-
min?: number | string;
|
|
49
|
-
/** horizontal text alignment for title, input, and (sub)captions */
|
|
50
|
-
textAlign?: typeof TYPOGRAPHY.textAlignLeft | typeof TYPOGRAPHY.textAlignCenter;
|
|
51
|
-
/** small or medium input field height, relevant only */
|
|
52
|
-
size?: 'medium' | 'small';
|
|
53
|
-
/** react useRef to control input field instead of react event */
|
|
54
|
-
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
55
|
-
/** optional IconName to display icon aligned to left of input field */
|
|
56
|
-
leftIcon?: IconName;
|
|
57
|
-
/** if true, show delete icon aligned to right of input field */
|
|
58
|
-
showDeleteIcon?: boolean;
|
|
59
|
-
/** callback passed to optional delete icon onClick */
|
|
60
|
-
onDelete?: () => void;
|
|
61
|
-
/** if true, style the background of input field to error state */
|
|
62
|
-
hasBackgroundError?: boolean;
|
|
63
|
-
/** optional prop to override input field border radius */
|
|
64
|
-
borderRadius?: string;
|
|
65
|
-
/** optional prop to override input field padding */
|
|
66
|
-
padding?: string;
|
|
67
|
-
}
|
|
68
|
-
export declare const InputField: import("react").ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
interface ListButtonAccordionProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
isExpanded?: boolean;
|
|
5
|
-
isNested?: boolean;
|
|
6
|
-
mainHeadline?: string;
|
|
7
|
-
headline?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function ListButtonAccordion(props: ListButtonAccordionProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ChangeEventHandler } from 'react';
|
|
2
|
-
import type { StyleProps } from '../../../primitives';
|
|
3
|
-
interface ListButtonRadioButtonProps extends StyleProps {
|
|
4
|
-
buttonText: string;
|
|
5
|
-
buttonValue: string | number;
|
|
6
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
7
|
-
setNoHover?: () => void;
|
|
8
|
-
setHovered?: () => void;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
id?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function ListButtonRadioButton(props: ListButtonRadioButtonProps): JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { StyleProps } from '../../primitives';
|
|
3
|
-
export * from './ListButtonChildren/index';
|
|
4
|
-
export type ListButtonType = 'noActive' | 'connected' | 'notConnected';
|
|
5
|
-
interface ListButtonProps extends StyleProps {
|
|
6
|
-
type: ListButtonType;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function ListButton(props: ListButtonProps): JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DropdownMenuProps } from '../../../molecules/DropdownMenu';
|
|
2
|
-
import type { TagProps } from '../../Tag/index';
|
|
3
|
-
interface ListItemCustomizeProps {
|
|
4
|
-
header: string;
|
|
5
|
-
leftHeaderItem?: JSX.Element;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
linkText?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
dropdown?: DropdownMenuProps;
|
|
10
|
-
tag?: TagProps;
|
|
11
|
-
/** optional placement of the menu */
|
|
12
|
-
menuPlacement?: 'auto' | 'top' | 'bottom';
|
|
13
|
-
}
|
|
14
|
-
export declare function ListItemCustomize(props: ListItemCustomizeProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { StyleProps } from '../../primitives';
|
|
3
|
-
export * from './ListItemChildren';
|
|
4
|
-
export type ListItemType = 'error' | 'noActive' | 'success' | 'warning' | 'unavailable';
|
|
5
|
-
interface ListItemProps extends StyleProps {
|
|
6
|
-
/** ListItem state type */
|
|
7
|
-
type: ListItemType;
|
|
8
|
-
/** ListItem contents */
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
onMouseEnter?: () => void;
|
|
12
|
-
onMouseLeave?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function ListItem(props: ListItemProps): JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StyleProps } from '../../primitives';
|
|
2
|
-
interface ButtonProps extends StyleProps {
|
|
3
|
-
/** optional isAlert boolean to turn the background red, only seen in ODD */
|
|
4
|
-
isAlert?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const MenuItem: import("styled-components").StyledComponent<"button", any, ButtonProps, never>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Btn } from '../../primitives';
|
|
3
|
-
interface OverflowBtnProps extends React.ComponentProps<typeof Btn> {
|
|
4
|
-
fillColor?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const OverflowBtn: (props: OverflowBtnProps, ref: React.ForwardedRef<HTMLInputElement>) => React.ReactNode;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { Text } from '../../primitives';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
4
|
-
declare const helixProductStyleMap: {
|
|
5
|
-
readonly displayBold: {
|
|
6
|
-
readonly as: "h1";
|
|
7
|
-
readonly style: FlattenSimpleInterpolation;
|
|
8
|
-
};
|
|
9
|
-
readonly headingLargeRegular: {
|
|
10
|
-
readonly as: "h2";
|
|
11
|
-
readonly style: FlattenSimpleInterpolation;
|
|
12
|
-
};
|
|
13
|
-
readonly headingLargeBold: {
|
|
14
|
-
readonly as: "h2";
|
|
15
|
-
readonly style: FlattenSimpleInterpolation;
|
|
16
|
-
};
|
|
17
|
-
readonly headingMediumBold: {
|
|
18
|
-
readonly as: "h3";
|
|
19
|
-
readonly style: FlattenSimpleInterpolation;
|
|
20
|
-
};
|
|
21
|
-
readonly headingMediumSemiBold: {
|
|
22
|
-
readonly as: "h3";
|
|
23
|
-
readonly style: FlattenSimpleInterpolation;
|
|
24
|
-
};
|
|
25
|
-
readonly headingSmallRegular: {
|
|
26
|
-
readonly as: "h4";
|
|
27
|
-
readonly style: FlattenSimpleInterpolation;
|
|
28
|
-
};
|
|
29
|
-
readonly headingSmallBold: {
|
|
30
|
-
readonly as: "h4";
|
|
31
|
-
readonly style: FlattenSimpleInterpolation;
|
|
32
|
-
};
|
|
33
|
-
readonly headingSmallSemiBold: {
|
|
34
|
-
readonly as: "h4";
|
|
35
|
-
readonly style: FlattenSimpleInterpolation;
|
|
36
|
-
};
|
|
37
|
-
readonly bodyLargeSemiBold: {
|
|
38
|
-
readonly as: "p";
|
|
39
|
-
readonly style: FlattenSimpleInterpolation;
|
|
40
|
-
};
|
|
41
|
-
readonly bodyLargeRegular: {
|
|
42
|
-
readonly as: "p";
|
|
43
|
-
readonly style: FlattenSimpleInterpolation;
|
|
44
|
-
};
|
|
45
|
-
readonly bodyDefaultSemiBold: {
|
|
46
|
-
readonly as: "p";
|
|
47
|
-
readonly style: FlattenSimpleInterpolation;
|
|
48
|
-
};
|
|
49
|
-
readonly bodyDefaultRegular: {
|
|
50
|
-
readonly as: "p";
|
|
51
|
-
readonly style: FlattenSimpleInterpolation;
|
|
52
|
-
};
|
|
53
|
-
readonly captionSemiBold: {
|
|
54
|
-
readonly as: "label";
|
|
55
|
-
readonly style: FlattenSimpleInterpolation;
|
|
56
|
-
};
|
|
57
|
-
readonly captionBold: {
|
|
58
|
-
readonly as: "label";
|
|
59
|
-
readonly style: FlattenSimpleInterpolation;
|
|
60
|
-
};
|
|
61
|
-
readonly captionRegular: {
|
|
62
|
-
readonly as: "label";
|
|
63
|
-
readonly style: FlattenSimpleInterpolation;
|
|
64
|
-
};
|
|
65
|
-
readonly codeRegular: {
|
|
66
|
-
readonly as: "p";
|
|
67
|
-
readonly style: FlattenSimpleInterpolation;
|
|
68
|
-
};
|
|
69
|
-
readonly hidden: {
|
|
70
|
-
readonly as: "none";
|
|
71
|
-
readonly style: FlattenSimpleInterpolation;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
declare const ODDStyleMap: {
|
|
75
|
-
readonly level1Header: {
|
|
76
|
-
readonly as: "h1";
|
|
77
|
-
readonly style: FlattenSimpleInterpolation;
|
|
78
|
-
};
|
|
79
|
-
readonly level2HeaderRegular: {
|
|
80
|
-
readonly as: "h2";
|
|
81
|
-
readonly style: FlattenSimpleInterpolation;
|
|
82
|
-
};
|
|
83
|
-
readonly level2HeaderSemiBold: {
|
|
84
|
-
readonly as: "h2";
|
|
85
|
-
readonly style: FlattenSimpleInterpolation;
|
|
86
|
-
};
|
|
87
|
-
readonly level2HeaderBold: {
|
|
88
|
-
readonly as: "h2";
|
|
89
|
-
readonly style: FlattenSimpleInterpolation;
|
|
90
|
-
};
|
|
91
|
-
readonly level3HeaderRegular: {
|
|
92
|
-
readonly as: "h3";
|
|
93
|
-
readonly style: FlattenSimpleInterpolation;
|
|
94
|
-
};
|
|
95
|
-
readonly level3HeaderSemiBold: {
|
|
96
|
-
readonly as: "h3";
|
|
97
|
-
readonly style: FlattenSimpleInterpolation;
|
|
98
|
-
};
|
|
99
|
-
readonly level3HeaderBold: {
|
|
100
|
-
readonly as: "h3";
|
|
101
|
-
readonly style: FlattenSimpleInterpolation;
|
|
102
|
-
};
|
|
103
|
-
readonly level4HeaderRegular: {
|
|
104
|
-
readonly as: "h4";
|
|
105
|
-
readonly style: FlattenSimpleInterpolation;
|
|
106
|
-
};
|
|
107
|
-
readonly level4HeaderSemiBold: {
|
|
108
|
-
readonly as: "h4";
|
|
109
|
-
readonly style: FlattenSimpleInterpolation;
|
|
110
|
-
};
|
|
111
|
-
readonly level4HeaderBold: {
|
|
112
|
-
readonly as: "h4";
|
|
113
|
-
readonly style: FlattenSimpleInterpolation;
|
|
114
|
-
};
|
|
115
|
-
readonly bodyTextRegular: {
|
|
116
|
-
readonly as: "p";
|
|
117
|
-
readonly style: FlattenSimpleInterpolation;
|
|
118
|
-
};
|
|
119
|
-
readonly bodyTextSemiBold: {
|
|
120
|
-
readonly as: "p";
|
|
121
|
-
readonly style: FlattenSimpleInterpolation;
|
|
122
|
-
};
|
|
123
|
-
readonly bodyTextBold: {
|
|
124
|
-
readonly as: "p";
|
|
125
|
-
readonly style: FlattenSimpleInterpolation;
|
|
126
|
-
};
|
|
127
|
-
readonly smallBodyTextRegular: {
|
|
128
|
-
readonly as: "label";
|
|
129
|
-
readonly style: FlattenSimpleInterpolation;
|
|
130
|
-
};
|
|
131
|
-
readonly smallBodyTextSemiBold: {
|
|
132
|
-
readonly as: "label";
|
|
133
|
-
readonly style: FlattenSimpleInterpolation;
|
|
134
|
-
};
|
|
135
|
-
readonly smallBodyTextBold: {
|
|
136
|
-
readonly as: "label";
|
|
137
|
-
readonly style: FlattenSimpleInterpolation;
|
|
138
|
-
};
|
|
139
|
-
readonly hidden: {
|
|
140
|
-
readonly as: "none";
|
|
141
|
-
readonly style: FlattenSimpleInterpolation;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
export interface Props extends React.ComponentProps<typeof Text> {
|
|
145
|
-
oddStyle?: ODDStyles;
|
|
146
|
-
desktopStyle?: HelixStyles;
|
|
147
|
-
children?: React.ReactNode;
|
|
148
|
-
}
|
|
149
|
-
export declare const ODD_STYLES: string[];
|
|
150
|
-
export declare const HELIX_STYLES: string[];
|
|
151
|
-
export type HelixStyles = keyof typeof helixProductStyleMap;
|
|
152
|
-
export type ODDStyles = keyof typeof ODDStyleMap;
|
|
153
|
-
export declare const StyledText: (props: Props) => JSX.Element;
|
|
154
|
-
export {};
|