@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
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react'
|
|
2
|
-
import { describe, it, beforeEach, expect } from 'vitest'
|
|
3
|
-
import { screen } from '@testing-library/react'
|
|
4
|
-
import '@testing-library/jest-dom/vitest'
|
|
5
|
-
import { renderWithProviders } from '../../../testing/utils'
|
|
6
|
-
import { TYPOGRAPHY, SPACING } from '../../../ui-style-constants'
|
|
7
|
-
import { BORDERS, COLORS } from '../../../helix-design-system'
|
|
8
|
-
|
|
9
|
-
import { SecondaryButton } from '../SecondaryButton'
|
|
10
|
-
|
|
11
|
-
const render = (props: React.ComponentProps<typeof SecondaryButton>) => {
|
|
12
|
-
return renderWithProviders(<SecondaryButton {...props} />)[0]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
describe('SecondaryButton', () => {
|
|
16
|
-
let props: React.ComponentProps<typeof SecondaryButton>
|
|
17
|
-
|
|
18
|
-
beforeEach(() => {
|
|
19
|
-
props = {
|
|
20
|
-
children: 'secondary button',
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
it('renders primary button with text', () => {
|
|
25
|
-
render(props)
|
|
26
|
-
const button = screen.getByText('secondary button')
|
|
27
|
-
expect(button).toHaveStyle(`background-color: ${COLORS.transparent}`)
|
|
28
|
-
expect(button).toHaveStyle(
|
|
29
|
-
`padding: ${SPACING.spacing8} ${SPACING.spacing16}`
|
|
30
|
-
)
|
|
31
|
-
expect(button).toHaveStyle(`font-size: ${TYPOGRAPHY.fontSizeP}`)
|
|
32
|
-
expect(button).toHaveStyle(`font-weight: ${TYPOGRAPHY.fontWeightSemiBold}`)
|
|
33
|
-
expect(button).toHaveStyle(`line-height: ${TYPOGRAPHY.lineHeight20}`)
|
|
34
|
-
expect(button).toHaveStyle(`border-radius: ${BORDERS.borderRadius8}`)
|
|
35
|
-
expect(button).toHaveStyle(
|
|
36
|
-
`text-transform: ${TYPOGRAPHY.textTransformNone}`
|
|
37
|
-
)
|
|
38
|
-
expect(button).toHaveStyle(`color: ${COLORS.blue50}`)
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
it('renders secondary button with text and disabled', () => {
|
|
42
|
-
props.disabled = true
|
|
43
|
-
render(props)
|
|
44
|
-
const button = screen.getByText('secondary button')
|
|
45
|
-
expect(button).toBeDisabled()
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
it('renders secondary button with text and different background color', () => {
|
|
49
|
-
props.color = COLORS.red50
|
|
50
|
-
render(props)
|
|
51
|
-
const button = screen.getByText('secondary button')
|
|
52
|
-
expect(button).toHaveStyle(`color: ${COLORS.red50}`)
|
|
53
|
-
})
|
|
54
|
-
})
|
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
/* button styling */
|
|
2
|
-
@import '../index.module.css';
|
|
3
|
-
|
|
4
|
-
:root {
|
|
5
|
-
--button-pad: 0.5rem;
|
|
6
|
-
|
|
7
|
-
--button-inverted: {
|
|
8
|
-
/* VVV from legacy --button-inverted VVV */
|
|
9
|
-
color: var(--c-font-light);
|
|
10
|
-
border-color: var(--c-font-light);
|
|
11
|
-
|
|
12
|
-
&:active {
|
|
13
|
-
font-weight: var(--fw-regular);
|
|
14
|
-
background-color: color-mod(var(--c-bg-dark) tint(10%));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:focus {
|
|
18
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:disabled,
|
|
26
|
-
&.disabled {
|
|
27
|
-
background-color: transparent;
|
|
28
|
-
|
|
29
|
-
/* from legacy --button-disabled */
|
|
30
|
-
font-weight: normal;
|
|
31
|
-
|
|
32
|
-
/* from legacy --button-disabled */
|
|
33
|
-
border-color: var(--c-font-disabled);
|
|
34
|
-
|
|
35
|
-
/* from legacy --button-disabled */
|
|
36
|
-
color: var(--c-font-disabled);
|
|
37
|
-
|
|
38
|
-
/* from legacy --button-disabled */
|
|
39
|
-
fill: var(--c-font-disabled);
|
|
40
|
-
|
|
41
|
-
/* from legacy --button-disabled */
|
|
42
|
-
cursor: default;
|
|
43
|
-
|
|
44
|
-
/* from legacy --button-disabled */
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
|
|
47
|
-
/* from legacy --button-disabled */
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.hover {
|
|
51
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* TODO(ka, 2017-2-14): standardize primary button vars */
|
|
59
|
-
|
|
60
|
-
.button_primary {
|
|
61
|
-
/* VVV from legacy --button-default VVV */
|
|
62
|
-
display: inline-block;
|
|
63
|
-
text-decoration: none;
|
|
64
|
-
position: relative;
|
|
65
|
-
line-height: 1.4;
|
|
66
|
-
border: none;
|
|
67
|
-
padding: var(--button-pad);
|
|
68
|
-
font-size: var(--fs-body-2);
|
|
69
|
-
font-weight: var(--fw-semibold);
|
|
70
|
-
text-align: center;
|
|
71
|
-
text-transform: uppercase;
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
background: transparent;
|
|
74
|
-
border-radius: var(--bd-radius-default);
|
|
75
|
-
|
|
76
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
77
|
-
|
|
78
|
-
width: 100%;
|
|
79
|
-
color: var(--c-font-light);
|
|
80
|
-
background-color: var(--c-bg-dark);
|
|
81
|
-
|
|
82
|
-
/* TODO(mc, 2017-12-07): pull shadows out to central file */
|
|
83
|
-
box-shadow:
|
|
84
|
-
0 0 2px rgba(0, 0, 0, 0.12),
|
|
85
|
-
0 2px 2px rgba(0, 0, 0, 0.24);
|
|
86
|
-
|
|
87
|
-
&:focus {
|
|
88
|
-
background-color: color-mod(var(--c-bg-dark) shade(30%));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
background-color: color-mod(var(--c-bg-dark) shade(30%));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.hover {
|
|
96
|
-
background-color: color-mod(var(--c-bg-dark) shade(30%));
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:active {
|
|
100
|
-
font-weight: var(--fw-regular);
|
|
101
|
-
background-color: color-mod(var(--c-bg-dark) tint(30%));
|
|
102
|
-
|
|
103
|
-
/* TODO(mc, 2017-12-07): pull shadows out to central file */
|
|
104
|
-
box-shadow:
|
|
105
|
-
0 0 8px rgba(0, 0, 0, 0.12),
|
|
106
|
-
0 8px 8px rgba(0, 0, 0, 0.24);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&.inverted {
|
|
110
|
-
background-color: var(--c-bg-light);
|
|
111
|
-
color: var(--c-font-dark);
|
|
112
|
-
|
|
113
|
-
&:focus,
|
|
114
|
-
&:hover,
|
|
115
|
-
&.hover {
|
|
116
|
-
background-color: color-mod(var(--c-bg-light) shade(5%));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&:active {
|
|
120
|
-
background-color: color-mod(var(--c-bg-light) shade(10%));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&:disabled,
|
|
125
|
-
&.disabled {
|
|
126
|
-
/* from legacy --button-disabled */
|
|
127
|
-
font-weight: normal;
|
|
128
|
-
|
|
129
|
-
/* from legacy --button-disabled */
|
|
130
|
-
border-color: var(--c-font-disabled);
|
|
131
|
-
|
|
132
|
-
/* from legacy --button-disabled */
|
|
133
|
-
fill: var(--c-font-disabled);
|
|
134
|
-
|
|
135
|
-
/* from legacy --button-disabled */
|
|
136
|
-
cursor: default;
|
|
137
|
-
|
|
138
|
-
/* from legacy --button-disabled */
|
|
139
|
-
pointer-events: none;
|
|
140
|
-
|
|
141
|
-
/* from legacy --button-disabled */
|
|
142
|
-
|
|
143
|
-
background-color: color-mod(var(--c-bg-dark) tint(70%));
|
|
144
|
-
box-shadow: none;
|
|
145
|
-
color: var(--c-font-disabled);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.button_flat {
|
|
150
|
-
/* VVV from legacy --button-default VVV */
|
|
151
|
-
display: inline-block;
|
|
152
|
-
text-decoration: none;
|
|
153
|
-
position: relative;
|
|
154
|
-
line-height: 1.4;
|
|
155
|
-
border: none;
|
|
156
|
-
padding: var(--button-pad);
|
|
157
|
-
font-size: var(--fs-body-2);
|
|
158
|
-
font-weight: var(--fw-semibold);
|
|
159
|
-
text-align: center;
|
|
160
|
-
text-transform: uppercase;
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
color: var(--c-font-dark);
|
|
163
|
-
background: transparent;
|
|
164
|
-
border-radius: var(--bd-radius-default);
|
|
165
|
-
|
|
166
|
-
&:active {
|
|
167
|
-
font-weight: var(--fw-regular);
|
|
168
|
-
background-color: color-mod(var(--c-bg-light) shade(10%));
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&:disabled,
|
|
172
|
-
&.disabled {
|
|
173
|
-
background-color: transparent;
|
|
174
|
-
|
|
175
|
-
/* from legacy --button-disabled */
|
|
176
|
-
font-weight: normal;
|
|
177
|
-
|
|
178
|
-
/* from legacy --button-disabled */
|
|
179
|
-
border-color: var(--c-font-disabled);
|
|
180
|
-
|
|
181
|
-
/* from legacy --button-disabled */
|
|
182
|
-
color: var(--c-font-disabled);
|
|
183
|
-
|
|
184
|
-
/* from legacy --button-disabled */
|
|
185
|
-
fill: var(--c-font-disabled);
|
|
186
|
-
|
|
187
|
-
/* from legacy --button-disabled */
|
|
188
|
-
cursor: default;
|
|
189
|
-
|
|
190
|
-
/* from legacy --button-disabled */
|
|
191
|
-
pointer-events: none;
|
|
192
|
-
|
|
193
|
-
/* from legacy --button-disabled */
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&:focus {
|
|
197
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&:hover {
|
|
201
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&.hover {
|
|
205
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
209
|
-
|
|
210
|
-
width: 9rem;
|
|
211
|
-
|
|
212
|
-
&.inverted {
|
|
213
|
-
/* VVV from legacy --button-inverted VVV */
|
|
214
|
-
color: var(--c-font-light);
|
|
215
|
-
border-color: var(--c-font-light);
|
|
216
|
-
|
|
217
|
-
&:active {
|
|
218
|
-
font-weight: var(--fw-regular);
|
|
219
|
-
background-color: color-mod(var(--c-bg-dark) tint(10%));
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&:disabled,
|
|
223
|
-
&.disabled {
|
|
224
|
-
background-color: transparent;
|
|
225
|
-
|
|
226
|
-
/* from legacy --button-disabled */
|
|
227
|
-
font-weight: normal;
|
|
228
|
-
|
|
229
|
-
/* from legacy --button-disabled */
|
|
230
|
-
border-color: var(--c-font-disabled);
|
|
231
|
-
|
|
232
|
-
/* from legacy --button-disabled */
|
|
233
|
-
color: var(--c-font-disabled);
|
|
234
|
-
|
|
235
|
-
/* from legacy --button-disabled */
|
|
236
|
-
fill: var(--c-font-disabled);
|
|
237
|
-
|
|
238
|
-
/* from legacy --button-disabled */
|
|
239
|
-
cursor: default;
|
|
240
|
-
|
|
241
|
-
/* from legacy --button-disabled */
|
|
242
|
-
pointer-events: none;
|
|
243
|
-
|
|
244
|
-
/* from legacy --button-disabled */
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
&:focus {
|
|
248
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&:hover {
|
|
252
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
&.hover {
|
|
256
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.button_outline {
|
|
264
|
-
/* VVV from legacy --button-default VVV */
|
|
265
|
-
display: inline-block;
|
|
266
|
-
text-decoration: none;
|
|
267
|
-
position: relative;
|
|
268
|
-
line-height: 1.4;
|
|
269
|
-
padding: var(--button-pad);
|
|
270
|
-
font-size: var(--fs-body-2);
|
|
271
|
-
font-weight: var(--fw-semibold);
|
|
272
|
-
text-align: center;
|
|
273
|
-
text-transform: uppercase;
|
|
274
|
-
cursor: pointer;
|
|
275
|
-
color: var(--c-font-dark);
|
|
276
|
-
background: transparent;
|
|
277
|
-
border-radius: var(--bd-radius-default);
|
|
278
|
-
|
|
279
|
-
&:active {
|
|
280
|
-
font-weight: var(--fw-regular);
|
|
281
|
-
background-color: color-mod(var(--c-bg-light) shade(10%));
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
&:disabled,
|
|
285
|
-
&.disabled {
|
|
286
|
-
background-color: transparent;
|
|
287
|
-
|
|
288
|
-
/* from legacy --button-disabled */
|
|
289
|
-
font-weight: normal;
|
|
290
|
-
|
|
291
|
-
/* from legacy --button-disabled */
|
|
292
|
-
border-color: var(--c-font-disabled);
|
|
293
|
-
|
|
294
|
-
/* from legacy --button-disabled */
|
|
295
|
-
color: var(--c-font-disabled);
|
|
296
|
-
|
|
297
|
-
/* from legacy --button-disabled */
|
|
298
|
-
fill: var(--c-font-disabled);
|
|
299
|
-
|
|
300
|
-
/* from legacy --button-disabled */
|
|
301
|
-
cursor: default;
|
|
302
|
-
|
|
303
|
-
/* from legacy --button-disabled */
|
|
304
|
-
pointer-events: none;
|
|
305
|
-
|
|
306
|
-
/* from legacy --button-disabled */
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
&:focus {
|
|
310
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
&:hover {
|
|
314
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
&.hover {
|
|
318
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
322
|
-
|
|
323
|
-
width: 9rem;
|
|
324
|
-
border: 1px solid var(--c-font-dark);
|
|
325
|
-
|
|
326
|
-
&.inverted {
|
|
327
|
-
/* VVV from legacy --button-inverted VVV */
|
|
328
|
-
color: var(--c-font-light);
|
|
329
|
-
border-color: var(--c-font-light);
|
|
330
|
-
|
|
331
|
-
&:active {
|
|
332
|
-
font-weight: var(--fw-regular);
|
|
333
|
-
background-color: color-mod(var(--c-bg-dark) tint(10%));
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
&:disabled,
|
|
337
|
-
&.disabled {
|
|
338
|
-
background-color: transparent;
|
|
339
|
-
|
|
340
|
-
/* from legacy --button-disabled */
|
|
341
|
-
font-weight: normal;
|
|
342
|
-
|
|
343
|
-
/* from legacy --button-disabled */
|
|
344
|
-
border-color: var(--c-font-disabled);
|
|
345
|
-
|
|
346
|
-
/* from legacy --button-disabled */
|
|
347
|
-
color: var(--c-font-disabled);
|
|
348
|
-
|
|
349
|
-
/* from legacy --button-disabled */
|
|
350
|
-
fill: var(--c-font-disabled);
|
|
351
|
-
|
|
352
|
-
/* from legacy --button-disabled */
|
|
353
|
-
cursor: default;
|
|
354
|
-
|
|
355
|
-
/* from legacy --button-disabled */
|
|
356
|
-
pointer-events: none;
|
|
357
|
-
|
|
358
|
-
/* from legacy --button-disabled */
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
&:focus {
|
|
362
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
&:hover {
|
|
366
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
&.hover {
|
|
370
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/* style for IconButton */
|
|
378
|
-
|
|
379
|
-
.button_icon {
|
|
380
|
-
width: auto;
|
|
381
|
-
|
|
382
|
-
& > * {
|
|
383
|
-
display: block;
|
|
384
|
-
height: 100%;
|
|
385
|
-
width: 100%;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
&.inverted {
|
|
389
|
-
color: white;
|
|
390
|
-
fill: white;
|
|
391
|
-
|
|
392
|
-
/* TODO(mc, 2019-03-29): Is this correct? Our icons use only fill */
|
|
393
|
-
stroke: white;
|
|
394
|
-
|
|
395
|
-
&:disabled,
|
|
396
|
-
&.disabled {
|
|
397
|
-
background-color: transparent;
|
|
398
|
-
|
|
399
|
-
/* from legacy --button-disabled */
|
|
400
|
-
font-weight: normal;
|
|
401
|
-
|
|
402
|
-
/* from legacy --button-disabled */
|
|
403
|
-
border-color: var(--c-font-disabled);
|
|
404
|
-
|
|
405
|
-
/* from legacy --button-disabled */
|
|
406
|
-
color: var(--c-font-disabled);
|
|
407
|
-
|
|
408
|
-
/* from legacy --button-disabled */
|
|
409
|
-
fill: var(--c-font-disabled);
|
|
410
|
-
|
|
411
|
-
/* from legacy --button-disabled */
|
|
412
|
-
cursor: default;
|
|
413
|
-
|
|
414
|
-
/* from legacy --button-disabled */
|
|
415
|
-
pointer-events: none;
|
|
416
|
-
|
|
417
|
-
/* from legacy --button-disabled */
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/* style for the supplementary icon displayed by Button */
|
|
423
|
-
.icon {
|
|
424
|
-
position: absolute;
|
|
425
|
-
top: var(--button-pad);
|
|
426
|
-
left: var(--button-pad);
|
|
427
|
-
height: calc(100% - 2 * var(--button-pad));
|
|
428
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
@import '../index.module.css';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--mw-labeled-toggle: 25rem;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Toggle Button */
|
|
8
|
-
.toggled_on {
|
|
9
|
-
fill: #0ec9eb;
|
|
10
|
-
color: #0ec9eb;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.toggled_off {
|
|
14
|
-
fill: var(--c-dark-gray);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.labeled_control_wrapper {
|
|
18
|
-
width: 100%;
|
|
19
|
-
padding: 1rem;
|
|
20
|
-
display: block;
|
|
21
|
-
|
|
22
|
-
&:not(:last-child) {
|
|
23
|
-
border-bottom: 1px solid var(--c-light-gray);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.labeled_control {
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.stacked_labeled_control {
|
|
32
|
-
display: block;
|
|
33
|
-
margin-left: 1rem;
|
|
34
|
-
margin-top: 0.5rem;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.stacked_labeled_control_label {
|
|
38
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
39
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
40
|
-
display: inline-block;
|
|
41
|
-
font-weight: var(--fw-semibold);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.labeled_control_label {
|
|
45
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
46
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
47
|
-
max-width: var(--mw-labeled-toggle);
|
|
48
|
-
display: inline-block;
|
|
49
|
-
font-weight: var(--fw-semibold);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.labeled_toggle_button {
|
|
53
|
-
float: right;
|
|
54
|
-
width: 2rem;
|
|
55
|
-
margin-right: 1rem;
|
|
56
|
-
padding: 0;
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.labeled_button,
|
|
64
|
-
.labeled_select {
|
|
65
|
-
float: right;
|
|
66
|
-
width: 9rem;
|
|
67
|
-
margin-top: 0.5rem;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.labeled_select {
|
|
71
|
-
font-size: var(--fs-body-2); /* from legacy --font-body-2-dark */
|
|
72
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-2-dark */
|
|
73
|
-
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.labeled_checkbox {
|
|
77
|
-
float: right;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.stacked_control_info {
|
|
81
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
82
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
83
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
84
|
-
|
|
85
|
-
& > p {
|
|
86
|
-
margin-top: 0.5rem;
|
|
87
|
-
margin-bottom: 0;
|
|
88
|
-
line-height: 1.5;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.control_info {
|
|
93
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
94
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
95
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
96
|
-
max-width: var(--mw-labeled-toggle);
|
|
97
|
-
|
|
98
|
-
& > p {
|
|
99
|
-
margin-top: 0.5rem;
|
|
100
|
-
margin-bottom: 0;
|
|
101
|
-
line-height: 1.5;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable selector-class-pattern */
|
|
2
|
-
@import '../index.module.css';
|
|
3
|
-
|
|
4
|
-
/* NOTE(mc, 2021-04-27): this class only used by storybook */
|
|
5
|
-
.example_select_override {
|
|
6
|
-
& :global(.ot_select__control) {
|
|
7
|
-
background-color: blue;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.select {
|
|
12
|
-
position: relative;
|
|
13
|
-
|
|
14
|
-
& :global(.ot_select__control) {
|
|
15
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
16
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
17
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
18
|
-
display: flex;
|
|
19
|
-
position: relative;
|
|
20
|
-
background-color: var(--c-light-gray);
|
|
21
|
-
border: none;
|
|
22
|
-
padding: 0.25rem 0;
|
|
23
|
-
outline: none;
|
|
24
|
-
border-radius: var(--bd-radius-form-field);
|
|
25
|
-
height: 1.75rem;
|
|
26
|
-
box-shadow: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
& :global(.ot_select__control--menu-is-open) {
|
|
30
|
-
border-bottom-left-radius: 0;
|
|
31
|
-
border-bottom-right-radius: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
& :global(.ot_select__control--menu-is-open),
|
|
35
|
-
& :global(.ot_select__control--is-focused) {
|
|
36
|
-
background-color: var(--c-white);
|
|
37
|
-
box-shadow: 0 0.125rem 0.25rem 0 color-mod(var(--c-black) alpha(0.5));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
& :global(.ot_select__option) {
|
|
41
|
-
display: flex;
|
|
42
|
-
padding: 0.25rem 0.75rem;
|
|
43
|
-
cursor: default;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
& :global(.ot_select__option--is-focused) {
|
|
47
|
-
background-color: var(--c-light-gray);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& :global(.ot_select__option--is-disabled) {
|
|
51
|
-
color: var(--c-font-disabled);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
& :global(.ot_select__group-heading) {
|
|
55
|
-
font-size: var(--fs-caption); /* from legacy --font-form-caption */
|
|
56
|
-
font-weight: var(--fw-semibold); /* from legacy --font-form-caption */
|
|
57
|
-
color: var(--c-med-gray); /* from legacy --font-form-caption */
|
|
58
|
-
text-transform: uppercase;
|
|
59
|
-
margin-left: 0.5rem;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
& :global(.ot_select__single-value) {
|
|
63
|
-
display: flex;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
& :global(.ot_select__group):not(:first-child) {
|
|
67
|
-
margin-top: 0.25rem;
|
|
68
|
-
border-top: 1px solid color-mod(var(--c-med-gray) alpha(0.4));
|
|
69
|
-
padding-top: 0.25rem;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.dropdown_indicator {
|
|
74
|
-
position: absolute;
|
|
75
|
-
top: 0.25rem;
|
|
76
|
-
right: 0.25rem;
|
|
77
|
-
width: 1.25rem;
|
|
78
|
-
pointer-events: none;
|
|
79
|
-
|
|
80
|
-
& > svg {
|
|
81
|
-
color: var(--c-dark-gray);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.flipped > svg {
|
|
85
|
-
transform: rotate(180deg);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.dropdown_indicator_icon {
|
|
90
|
-
width: 100%;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.menu {
|
|
94
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
95
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
96
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: 100%;
|
|
99
|
-
left: 0;
|
|
100
|
-
right: 0;
|
|
101
|
-
z-index: 99;
|
|
102
|
-
background-color: var(--c-white);
|
|
103
|
-
box-shadow: 0 0.125rem 0.25rem 0 color-mod(var(--c-black) alpha(0.5));
|
|
104
|
-
border-bottom-left-radius: var(--bd-radius-form-field);
|
|
105
|
-
border-bottom-right-radius: var(--bd-radius-form-field);
|
|
106
|
-
padding-top: 0.25rem;
|
|
107
|
-
padding-bottom: 0.25rem;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.menu_control_bridge {
|
|
111
|
-
position: absolute;
|
|
112
|
-
background-color: var(--c-white);
|
|
113
|
-
top: calc(100% - 2px);
|
|
114
|
-
left: 0;
|
|
115
|
-
right: 0;
|
|
116
|
-
z-index: 99;
|
|
117
|
-
height: 4px;
|
|
118
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@import '@opentrons/components/styles';
|
|
2
|
-
|
|
3
|
-
.select_field.error {
|
|
4
|
-
& :global(.ot_select__control) {
|
|
5
|
-
background-color: var(--c-warning-light);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.select_caption {
|
|
10
|
-
font-size: var(--fs-caption);
|
|
11
|
-
|
|
12
|
-
&.error {
|
|
13
|
-
color: var(--c-warning-dark);
|
|
14
|
-
font-weight: var(--fw-semibold);
|
|
15
|
-
}
|
|
16
|
-
}
|