@opentrons/components 0.2.1-alpha.0 → 0.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +12 -48
- package/lib/assets/index.d.ts +1 -0
- package/lib/assets/localization/en/index.d.ts +191 -16
- package/lib/assets/localization/index.d.ts +292 -13
- package/lib/assets/localization/zh/index.d.ts +110 -8
- package/lib/atoms/Checkbox/index.d.ts +3 -3
- package/lib/atoms/CheckboxField/index.d.ts +2 -0
- package/lib/atoms/FixedTrashText/index.d.ts +1 -0
- package/lib/atoms/InlineNotification/index.d.ts +1 -1
- package/lib/atoms/ListButton/index.d.ts +2 -2
- package/lib/atoms/MenuList/OverflowBtn.d.ts +2 -2
- package/lib/atoms/Slider/index.d.ts +14 -0
- package/lib/atoms/StepMeter/__tests__/StepMeter.test.d.ts +1 -1
- package/lib/atoms/StepMeter/index.d.ts +1 -2
- package/lib/atoms/StyledText/LegacyStyledText.d.ts +3 -1
- package/lib/atoms/StyledText/PlaceholderStyledText.d.ts +14 -0
- package/lib/atoms/StyledText/StyledText.d.ts +1 -0
- package/lib/atoms/StyledText/index.d.ts +1 -0
- package/lib/atoms/Tag/index.d.ts +1 -1
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +3 -1
- package/lib/atoms/buttons/AltPrimaryButton.d.ts +3 -1
- package/lib/atoms/buttons/PrimaryButton.d.ts +2 -1
- package/lib/atoms/buttons/TertiaryButton.d.ts +8 -3
- package/lib/atoms/index.d.ts +2 -1
- package/lib/buttons/Button.d.ts +3 -3
- package/lib/controls/ToggleButton.d.ts +1 -1
- package/lib/forms/DeprecatedCheckboxField.d.ts +2 -2
- package/lib/forms/FormGroup.d.ts +4 -4
- package/lib/forms/LegacyInputField.d.ts +5 -5
- package/lib/forms/RadioGroup.d.ts +2 -2
- package/lib/forms/ToggleField.d.ts +1 -1
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +19 -11
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +2 -0
- package/lib/hardware-sim/BaseDeck/StackedBadge.d.ts +1 -0
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -0
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -0
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +3 -2
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +6 -5
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +8 -5
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +2 -3
- package/lib/hardware-sim/DeckConfigurator/VacuumModuleItem.d.ts +11 -0
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +5 -0
- package/lib/hardware-sim/Labware/Labware.d.ts +3 -3
- package/lib/hardware-sim/Labware/LabwareAdapter/GenericLid.d.ts +9 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapterTypeB.d.ts +1 -0
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +11 -3
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +9 -9
- package/lib/hardware-sim/Labware/index.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +7 -2
- package/lib/hardware-sim/Labware/labwareInternals/Tips/InaccessibleTip.d.ts +3 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/NewTip.d.ts +4 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/TipStatus.d.ts +11 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/UsedTip.d.ts +4 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/__tests__/TipStatus.test.d.ts +1 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/constants.d.ts +11 -0
- package/lib/hardware-sim/Labware/labwareInternals/Tips/index.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/EmptyWell.d.ts +10 -0
- package/lib/hardware-sim/Labware/labwareInternals/{FilledWells.d.ts → Wells/FilledWells.d.ts} +3 -3
- package/lib/hardware-sim/Labware/labwareInternals/Wells/SelectedWell.d.ts +13 -0
- package/lib/hardware-sim/Labware/labwareInternals/{StrokedWells.d.ts → Wells/StrokedWells.d.ts} +2 -2
- package/lib/hardware-sim/Labware/labwareInternals/{StyledWells.d.ts → Wells/StyledWells.d.ts} +1 -1
- package/lib/hardware-sim/Labware/labwareInternals/{Well.d.ts → Wells/Well.d.ts} +2 -3
- package/lib/hardware-sim/Labware/labwareInternals/{WellLabels.d.ts → Wells/WellLabels.d.ts} +2 -2
- package/lib/hardware-sim/Labware/labwareInternals/Wells/WellStatus.d.ts +12 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/constants.d.ts +21 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/index.d.ts +9 -0
- package/lib/hardware-sim/Labware/labwareInternals/Wells/utils.d.ts +2 -0
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +2 -5
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +10 -12
- package/lib/hardware-sim/Module/Vacuum.d.ts +1 -0
- package/lib/hardware-sim/Module/index.d.ts +40 -5
- package/lib/hardware-sim/Pipette/StrokedNozzles.d.ts +10 -0
- package/lib/hardware-sim/Pipette/constants.d.ts +3 -0
- package/lib/hardware-sim/Pipette/index.d.ts +1 -0
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +5 -3
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +5 -4
- package/lib/hardware-sim/alignment/AlignToModuleChildSlot.d.ts +25 -0
- package/lib/hardware-sim/alignment/CenterLabwareInModuleChildSlot.d.ts +33 -0
- package/lib/hardware-sim/alignment/CenterLabwareInSlot.d.ts +11 -0
- package/lib/hardware-sim/alignment/index.d.ts +4 -0
- package/lib/hardware-sim/index.d.ts +1 -0
- package/lib/helix-design-system/colors.d.ts +1 -0
- package/lib/hocs/withStyleProps.d.ts +1 -1
- package/lib/hooks/__tests__/useCommandTypeSummaries.test.d.ts +1 -0
- package/lib/hooks/index.d.ts +2 -1
- package/lib/hooks/testHelpers/index.d.ts +2 -0
- package/lib/hooks/useCommandTypeSummaries.d.ts +2 -0
- package/lib/hooks/useConditionalConfirm.d.ts +5 -9
- package/lib/i18n.d.ts +4 -0
- package/lib/icons/ModuleIcon.d.ts +5 -4
- package/lib/icons/icon-data.d.ts +702 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +557 -0
- package/lib/index.mjs +30626 -28730
- package/lib/interaction-enhancers/HandleKeypress.d.ts +2 -2
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +1 -1
- package/lib/legacy-hardware-sim/index.d.ts +0 -1
- package/lib/modals/AlertModal.d.ts +1 -1
- package/lib/molecules/CustomizeExpandButton/index.d.ts +2 -2
- package/lib/molecules/DeckInfoLabel/index.d.ts +8 -20
- package/lib/molecules/DeckLabel/index.d.ts +9 -2
- package/lib/molecules/DropdownMenu/index.d.ts +5 -4
- package/lib/molecules/IconButton/index.d.ts +45 -0
- package/lib/molecules/InfoScreen/index.d.ts +3 -1
- package/lib/molecules/InputField/__tests__/InputField.test.d.ts +1 -0
- package/lib/{atoms → molecules}/InputField/index.d.ts +13 -12
- package/lib/molecules/LiquidIcon/index.d.ts +2 -1
- package/lib/molecules/RobotInfoLabel/__tests__/RobotInfoLabel.test.d.ts +1 -0
- package/lib/molecules/RobotInfoLabel/index.d.ts +12 -0
- package/lib/molecules/StepGroup/__tests__/StepGroup.test.d.ts +1 -0
- package/lib/molecules/StepGroup/index.d.ts +11 -0
- package/lib/molecules/TextAreaField/__tests__/TextAreaField.test.d.ts +1 -0
- package/lib/molecules/TextAreaField/index.d.ts +34 -0
- package/lib/molecules/TimelineScrubber/TrackSlider.d.ts +10 -0
- package/lib/molecules/TimelineScrubber/index.d.ts +6 -0
- package/lib/molecules/TouchInputField/__tests__/TouchInputField.test.d.ts +1 -0
- package/lib/molecules/TouchInputField/index.d.ts +56 -0
- package/lib/molecules/WizardHeader/__tests__/WizardHeader.test.d.ts +1 -0
- package/lib/molecules/WizardHeader/index.d.ts +11 -0
- package/lib/molecules/index.d.ts +8 -1
- package/lib/organisms/CommandText/getCommandData.d.ts +3 -0
- package/lib/organisms/CommandText/index.d.ts +2 -1
- package/lib/organisms/CommandText/useCommandTextString/index.d.ts +8 -3
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/__tests__/getTipStateCommandText.test.d.ts +1 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getConcurrentCommandText.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getHSConcurrentShakeSpeedCommandTex.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getRobotDevicesCommandText.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getTCStartRunExtendedProfileCommandText.d.ts +4 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/getTipStateCommandText.d.ts +3 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/commandText/index.d.ts +5 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/getLabwareDisplayLocation.d.ts +2 -0
- package/lib/organisms/CommandText/useCommandTextString/utils/getLiquidDisplayName.d.ts +2 -1
- package/lib/organisms/CommandText/useCommandTextString/utils/types.d.ts +2 -1
- package/lib/organisms/DeckLabelSet/index.d.ts +1 -0
- package/lib/organisms/FixtureOption/index.d.ts +0 -1
- package/lib/organisms/LabwareDetailsWithCount/__tests__/LabwareDetailsWithCount.test.d.ts +1 -0
- package/lib/organisms/LabwareDetailsWithCount/index.d.ts +7 -0
- package/lib/organisms/LabwareInfoOverlay/__tests__/LabwareInfoOverlay.test.d.ts +1 -0
- package/lib/organisms/LabwareInfoOverlay/index.d.ts +12 -0
- package/lib/organisms/ProtocolDeck/index.d.ts +1 -0
- package/lib/organisms/Toolbox/index.d.ts +2 -0
- package/lib/organisms/index.d.ts +4 -3
- package/lib/primitives/Box.d.ts +3 -7
- package/lib/primitives/Btn.d.ts +2 -55
- package/lib/primitives/Buttons/NewPrimaryBtn.d.ts +8 -0
- package/lib/primitives/Buttons/NewSecondaryBtn.d.ts +8 -0
- package/lib/primitives/Flex.d.ts +3 -7
- package/lib/primitives/ForeignObject.d.ts +8 -18
- package/lib/primitives/Link.d.ts +3 -7
- package/lib/primitives/Svg.d.ts +4 -13
- package/lib/primitives/Text.d.ts +5 -7
- package/lib/primitives/index.d.ts +2 -0
- package/lib/primitives/style-props.d.ts +3 -3
- package/lib/primitives/types.d.ts +10 -3
- package/lib/src/alerts/alerts.module.css +103 -0
- package/lib/src/atoms/StyledText/placeholderstyledtext.module.css +26 -0
- package/lib/src/buttons/buttons.module.css +428 -0
- package/lib/src/controls/styles.module.css +103 -0
- package/lib/src/forms/Select.module.css +118 -0
- package/lib/src/forms/SelectField.module.css +16 -0
- package/lib/src/forms/forms.module.css +240 -0
- package/lib/src/hardware-sim/BaseDeck/basedeck.module.css +20 -0
- package/lib/src/hardware-sim/Deck/deck.module.css +54 -0
- package/lib/src/hardware-sim/Labware/labware.module.css +8 -0
- package/lib/src/hardware-sim/RobotCoordinateSpace/robotcoordinatespace.module.css +3 -0
- package/lib/src/icons/icon.module.css +10 -0
- package/lib/src/index.module.css +9 -0
- package/lib/src/instrument/PipetteSelect.module.css +14 -0
- package/lib/src/legacy-hardware-sim/LabwareNameOverlay.module.css +20 -0
- package/lib/src/legacy-hardware-sim/ModuleItem.module.css +98 -0
- package/lib/src/lists/lists.module.css +171 -0
- package/lib/src/modals/modals.module.css +275 -0
- package/lib/src/molecules/DeckInfoLabel/deckinfolabel.module.css +42 -0
- package/lib/src/molecules/ReleaseNotes/styles.module.css +66 -0
- package/lib/src/nav/SidePanel.module.css +34 -0
- package/lib/src/slotmap/styles.module.css +18 -0
- package/lib/src/structure/Pill.module.css +16 -0
- package/lib/src/structure/Splash.module.css +16 -0
- package/lib/src/structure/structure.module.css +114 -0
- package/lib/src/styles/borders.module.css +20 -0
- package/lib/src/styles/colors.module.css +58 -0
- package/lib/src/styles/global.css +179 -0
- package/lib/src/styles/index.module.css +8 -0
- package/lib/src/styles/typography.module.css +23 -0
- package/lib/src/tooltips/tooltips.module.css +72 -0
- package/lib/structure/Pill.d.ts +3 -3
- package/lib/style.css +1 -1
- package/lib/testing/utils/matchers.d.ts +0 -1
- package/lib/utils/__tests__/setRefs.test.d.ts +1 -0
- package/lib/utils/__tests__/truncateString.test.d.ts +1 -0
- package/lib/utils/humanizeLabwareType.d.ts +1 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/setRefs.d.ts +2 -0
- package/lib/{utils.d.ts → utils/truncateString.d.ts} +0 -2
- package/lib/utils/wellNameSplit.d.ts +1 -0
- package/package.json +21 -26
- package/src/index.module.css +9 -0
- package/src/styles/borders.module.css +20 -0
- package/src/styles/borders.ts +16 -0
- package/src/styles/colors.module.css +52 -0
- package/src/styles/colors.ts +58 -0
- package/src/styles/cursor.ts +12 -0
- package/src/styles/flexbox.ts +39 -0
- package/src/styles/global.css +180 -0
- package/src/styles/index.module.css +8 -0
- package/src/styles/index.ts +8 -0
- package/src/styles/layout.ts +31 -0
- package/src/styles/position.ts +5 -0
- package/src/styles/spacing.ts +11 -0
- package/src/styles/typography.module.css +23 -0
- package/src/styles/typography.ts +90 -0
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -17
- /package/lib/{__tests__/utils.test.d.ts → atoms/Slider/__tests__/Slider.test.d.ts} +0 -0
- /package/lib/{atoms/InputField/__tests__/InputField.test.d.ts → hardware-sim/DeckConfigurator/__tests__/VacuumModuleItem.test.d.ts} +0 -0
- /package/lib/hardware-sim/Labware/labwareInternals/{__tests__ → Wells/__tests__}/StrokedWells.test.d.ts +0 -0
- /package/lib/hardware-sim/Labware/labwareInternals/{__tests__ → Wells/__tests__}/WellLabels.test.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// border style constants
|
|
2
|
+
import { C_LIGHT_GRAY, C_MED_GRAY } from './colors'
|
|
3
|
+
|
|
4
|
+
export const BORDER_WIDTH_DEFAULT = '1px'
|
|
5
|
+
|
|
6
|
+
export const BORDER_RADIUS_DEFAULT = '2px'
|
|
7
|
+
export const BORDER_RADIUS_1 = '5px'
|
|
8
|
+
|
|
9
|
+
export const BORDER_STYLE_NONE = 'none'
|
|
10
|
+
export const BORDER_STYLE_SOLID = 'solid'
|
|
11
|
+
|
|
12
|
+
export const BORDER_SOLID_LIGHT = `${BORDER_WIDTH_DEFAULT} ${BORDER_STYLE_SOLID} ${C_LIGHT_GRAY}`
|
|
13
|
+
export const BORDER_SOLID_MEDIUM = `${BORDER_WIDTH_DEFAULT} ${BORDER_STYLE_SOLID} ${C_MED_GRAY}`
|
|
14
|
+
|
|
15
|
+
export const SHADOW_LIGHT =
|
|
16
|
+
'0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.2)'
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* ToDo this file will be removed once the labware library, designer, and creator are updated */
|
|
2
|
+
:root {
|
|
3
|
+
/* ot brand */
|
|
4
|
+
--c-mustard: #ffd252;
|
|
5
|
+
--c-blue: #006cfa;
|
|
6
|
+
--c-light-blue: color-mod(var(--c-blue) lightness(85%));
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* grays
|
|
10
|
+
* TODO(mc, 2019-03-22): align with style guide
|
|
11
|
+
*/
|
|
12
|
+
--c-near-black: #a4a4a4; /* style guide: n/a */
|
|
13
|
+
--c-dark-gray: #4a4a4a; /* style guide: near-black */
|
|
14
|
+
--c-charcoal: #979797;
|
|
15
|
+
--c-med-gray: #9b9b9b; /* style guide: n/a */
|
|
16
|
+
--c-light-gray: #e5e2e2; /* style guide: smoke, should be e6e6e6 */
|
|
17
|
+
--c-lightest-gray: #ededed; /* style guide: n/a */
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* background colors
|
|
21
|
+
* TODO(mc, 2019-03-22): combine with colors
|
|
22
|
+
*/
|
|
23
|
+
--c-bg-dark: #4a4a4a;
|
|
24
|
+
--c-bg-light: #fafafa;
|
|
25
|
+
--c-bg-selected: #f0f3ff;
|
|
26
|
+
--c-bg-hover: #f1f1f1;
|
|
27
|
+
--c-bg-success: #b6febc;
|
|
28
|
+
|
|
29
|
+
/* general UI */
|
|
30
|
+
--c-highlight: #5fd8ee;
|
|
31
|
+
--c-selected-dark: #00c3e6;
|
|
32
|
+
--c-warning-dark: #9e5e00;
|
|
33
|
+
--c-warning: #e28200;
|
|
34
|
+
--c-warning-light: #ffd58f;
|
|
35
|
+
--c-error-dark: #ac0505;
|
|
36
|
+
--c-error: #d12929;
|
|
37
|
+
--c-error-light: #ffc0c0;
|
|
38
|
+
--c-success: #60b120;
|
|
39
|
+
--c-blue-enabled: #006cfa;
|
|
40
|
+
--c-light-grey-hover: #c6c6c6;
|
|
41
|
+
|
|
42
|
+
/* Misc */
|
|
43
|
+
--c-selection-overlay: color-mod(var(--c-highlight) alpha(0.3));
|
|
44
|
+
--c-plate-bg: #ccc;
|
|
45
|
+
--c-white: #fff;
|
|
46
|
+
--c-black: #000;
|
|
47
|
+
--c-green: #7ed321;
|
|
48
|
+
--c-red: #f00000;
|
|
49
|
+
--c-orange: #f5a623;
|
|
50
|
+
--transition-color: color 0.15s ease-in-out;
|
|
51
|
+
--transition-background-color: background-color 0.15s ease-in-out;
|
|
52
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// gray scale
|
|
2
|
+
export const C_BLACK = '#000000'
|
|
3
|
+
export const C_DARK_GRAY = '#4a4a4a'
|
|
4
|
+
export const C_MED_DARK_GRAY = '#6c6c6c'
|
|
5
|
+
export const C_MED_GRAY = '#9b9b9b'
|
|
6
|
+
export const C_SILVER_GRAY = '#e3e3e3'
|
|
7
|
+
export const C_MED_LIGHT_GRAY = '#d2d2d2'
|
|
8
|
+
export const C_LIGHT_GRAY = '#e6e6e6'
|
|
9
|
+
export const C_BRIGHT_GRAY = '#f8f8f8'
|
|
10
|
+
export const C_HARBOR_GRAY = '#8a8c8e'
|
|
11
|
+
export const C_NEAR_WHITE = '#fafafa'
|
|
12
|
+
export const C_WHITE = '#ffffff'
|
|
13
|
+
export const C_TRANSPARENT = 'transparent'
|
|
14
|
+
export const C_DARK_BLACK = '#16212d'
|
|
15
|
+
|
|
16
|
+
// brand colors
|
|
17
|
+
export const C_BLUE = '#006cfa'
|
|
18
|
+
export const C_MINT = '#00bfa8'
|
|
19
|
+
export const C_AQUAMARINE = '#eefff8'
|
|
20
|
+
export const C_POWDER_BLUE = '#f1f8ff'
|
|
21
|
+
export const C_SKY_BLUE = '#accfff80'
|
|
22
|
+
export const C_BLUE_PRESSED = '#0050b8'
|
|
23
|
+
|
|
24
|
+
// colors by usage
|
|
25
|
+
// TODO(mc, 2020-10-08): s/COLOR_/C_
|
|
26
|
+
export const COLOR_WARNING = '#e28200'
|
|
27
|
+
export const COLOR_WARNING_LIGHT = '#ffd58f'
|
|
28
|
+
export const COLOR_WARNING_DARK = '#9e5e00'
|
|
29
|
+
export const COLOR_ERROR = '#d12929'
|
|
30
|
+
export const COLOR_SUCCESS = '#60b120'
|
|
31
|
+
export const C_DISABLED = '#9c9c9c'
|
|
32
|
+
export const C_SELECTED_DARK = '#00c3e6'
|
|
33
|
+
export const C_BG_SELECTED = '#f0f3ff'
|
|
34
|
+
export const C_ERROR_DARK = '#ac0505'
|
|
35
|
+
export const C_ERROR_LIGHT = '#ffc0c0'
|
|
36
|
+
|
|
37
|
+
// overlays
|
|
38
|
+
export const OVERLAY_WHITE_10 = 'rgba(255, 255, 255, 0.1)'
|
|
39
|
+
export const OVERLAY_WHITE_20 = 'rgba(255, 255, 255, 0.2)'
|
|
40
|
+
|
|
41
|
+
// used to set aside further subsections of cards beyond
|
|
42
|
+
// what can be distinguished with a border
|
|
43
|
+
export const OVERLAY_LIGHT_GRAY_50 = 'rgba(230, 230, 230, 0.4)'
|
|
44
|
+
|
|
45
|
+
// used as default BaseModal overlay color
|
|
46
|
+
export const OVERLAY_GRAY_90 = 'rgba(127, 127, 127, 0.9)'
|
|
47
|
+
|
|
48
|
+
// darkest modal overlay used
|
|
49
|
+
export const OVERLAY_BLACK_90 = 'rgba(0, 0, 0, 0.9)'
|
|
50
|
+
|
|
51
|
+
// 80 percent opacity overlay
|
|
52
|
+
export const OVERLAY_BLACK_80 = 'rgba(0, 0, 0, 0.8)'
|
|
53
|
+
|
|
54
|
+
// opacities
|
|
55
|
+
export const OPACITY_DISABLED = 0.3
|
|
56
|
+
|
|
57
|
+
// TODO(isk: 3/2/20): Rename to be more generic (e.g. not FONT)
|
|
58
|
+
export const C_FONT_DISABLED = '#9c9c9c'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// cursor
|
|
2
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#keyword
|
|
3
|
+
export const CURSOR_AUTO = 'auto'
|
|
4
|
+
export const CURSOR_CROSSHAIR = 'crosshair'
|
|
5
|
+
export const CURSOR_DEFAULT = 'default'
|
|
6
|
+
export const CURSOR_GRAB = 'grab'
|
|
7
|
+
export const CURSOR_GRABBING = 'grabbing'
|
|
8
|
+
export const CURSOR_HELP = 'help'
|
|
9
|
+
export const CURSOR_NOT_ALLOWED = 'not-allowed'
|
|
10
|
+
export const CURSOR_POINTER = 'pointer'
|
|
11
|
+
export const CURSOR_ZOOM_IN = 'zoom-in'
|
|
12
|
+
export const CURSOR_WAIT = 'wait'
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const FLEX_NONE = 'none'
|
|
2
|
+
export const FLEX_AUTO = 'auto'
|
|
3
|
+
export const FLEX_MIN_CONTENT = 'min-content'
|
|
4
|
+
export const FLEX_MAX_CONTENT = 'max-content'
|
|
5
|
+
|
|
6
|
+
export const ALIGN_NORMAL = 'normal'
|
|
7
|
+
export const ALIGN_START = 'start'
|
|
8
|
+
export const ALIGN_END = 'end'
|
|
9
|
+
export const ALIGN_FLEX_START = 'flex-start'
|
|
10
|
+
export const ALIGN_FLEX_END = 'flex-end'
|
|
11
|
+
export const ALIGN_CENTER = 'center'
|
|
12
|
+
export const ALIGN_BASELINE = 'baseline'
|
|
13
|
+
export const ALIGN_STRETCH = 'stretch'
|
|
14
|
+
|
|
15
|
+
export const JUSTIFY_NORMAL = 'normal'
|
|
16
|
+
export const JUSTIFY_START = 'start'
|
|
17
|
+
export const JUSTIFY_END = 'end'
|
|
18
|
+
export const JUSTIFY_FLEX_START = 'flex-start'
|
|
19
|
+
export const JUSTIFY_FLEX_END = 'flex-end'
|
|
20
|
+
export const JUSTIFY_CENTER = 'center'
|
|
21
|
+
export const JUSTIFY_SPACE_BETWEEN = 'space-between'
|
|
22
|
+
export const JUSTIFY_SPACE_AROUND = 'space-around'
|
|
23
|
+
export const JUSTIFY_SPACE_EVENLY = 'space-evenly'
|
|
24
|
+
export const JUSTIFY_STRETCH = 'stretch'
|
|
25
|
+
|
|
26
|
+
export const DIRECTION_ROW = 'row'
|
|
27
|
+
export const DIRECTION_ROW_REVERSE = 'row-reverse'
|
|
28
|
+
export const DIRECTION_COLUMN = 'column'
|
|
29
|
+
export const DIRECTION_COLUMN_REVERSE = 'column-reverse'
|
|
30
|
+
|
|
31
|
+
export const WRAP = 'wrap'
|
|
32
|
+
export const NO_WRAP = 'nowrap'
|
|
33
|
+
export const WRAP_REVERSE = 'wrap-reverse'
|
|
34
|
+
|
|
35
|
+
export const WHITE_SPACE_NORMAL = 'normal'
|
|
36
|
+
export const WHITE_SPACE_PRE = 'pre'
|
|
37
|
+
export const WHITE_SPACE_PRE_WRAP = 'pre-wrap'
|
|
38
|
+
export const WHITE_SPACE_PRE_LINE = 'pre-line'
|
|
39
|
+
export const WHITE_SPACE_BREAK_SPACES = 'break-spaces'
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/* this is global CSS for the components package and all other opentrons projects */
|
|
2
|
+
:root {
|
|
3
|
+
/* colors */
|
|
4
|
+
|
|
5
|
+
/* currently we follow the order of colors.ts file */
|
|
6
|
+
|
|
7
|
+
/* green */
|
|
8
|
+
--green-60: #03683e;
|
|
9
|
+
--green-35: #afedd3;
|
|
10
|
+
--green-20: #e8f7ed;
|
|
11
|
+
--green-50-non-touchscreen: #04aa65;
|
|
12
|
+
--green-50-touchscreen: #1ca850;
|
|
13
|
+
--green-50: var(--green-50-non-touchscreen);
|
|
14
|
+
--green-40-non-touchscreen: #91e2c0;
|
|
15
|
+
--green-40-touchscreen: #8ef3a8;
|
|
16
|
+
--green-40: var(--green-40-non-touchscreen);
|
|
17
|
+
--green-30-non-touchscreen: #c4f6e0;
|
|
18
|
+
--green-30-touchscreen: #8afbab;
|
|
19
|
+
--green-30: var(--green-30-non-touchscreen);
|
|
20
|
+
|
|
21
|
+
/* red */
|
|
22
|
+
--red-60: #941313;
|
|
23
|
+
--red-55: #c71a1b;
|
|
24
|
+
--red-50: #de1b1b;
|
|
25
|
+
--red-40: #f5b2b3;
|
|
26
|
+
--red-35: #f8c8c9;
|
|
27
|
+
--red-30: #fad6d6;
|
|
28
|
+
--red-20: #fce9e9;
|
|
29
|
+
|
|
30
|
+
/* yellow */
|
|
31
|
+
--yellow-60: #825512;
|
|
32
|
+
--yellow-50: #f09d20;
|
|
33
|
+
--yellow-40: #fcd48b;
|
|
34
|
+
--yellow-35: #ffe1a4;
|
|
35
|
+
--yellow-30: #ffe9be;
|
|
36
|
+
--yellow-20: #fdf3e2;
|
|
37
|
+
|
|
38
|
+
/* purple */
|
|
39
|
+
--purple-60-non-touchscreen: #562566;
|
|
40
|
+
--purple-60-touchscreen: #612367;
|
|
41
|
+
--purple-60: var(--purple-60-non-touchscreen);
|
|
42
|
+
--purple-55-non-touchscreen: #713187;
|
|
43
|
+
--purple-55-touchscreen: #822e89;
|
|
44
|
+
--purple-55: var(--purple-55-non-touchscreen);
|
|
45
|
+
--purple-50-non-touchscreen: #893ba4;
|
|
46
|
+
--purple-50-touchscreen: #9e39a8;
|
|
47
|
+
--purple-50: var(--purple-50-non-touchscreen);
|
|
48
|
+
--purple-40-non-touchscreen: #cea4df;
|
|
49
|
+
--purple-40-touchscreen: #e2a9ea;
|
|
50
|
+
--purple-40: var(--purple-40-non-touchscreen);
|
|
51
|
+
--purple-35-non-touchscreen: #dbbce7;
|
|
52
|
+
--purple-35-touchscreen: #ecc2f2;
|
|
53
|
+
--purple-35: var(--purple-35-non-touchscreen);
|
|
54
|
+
--purple-30-non-touchscreen: #e6d5ec;
|
|
55
|
+
--purple-30-touchscreen: #f4def7;
|
|
56
|
+
--purple-30: var(--purple-30-non-touchscreen);
|
|
57
|
+
--purple-20-non-touchscreen: #f3e9f6;
|
|
58
|
+
--purple-20-touchscreen: #fff3fe;
|
|
59
|
+
--purple-20: var(--purple-20-non-touchscreen);
|
|
60
|
+
|
|
61
|
+
/* blue */
|
|
62
|
+
--blue-60: #004196;
|
|
63
|
+
--blue-55: #0056c8;
|
|
64
|
+
--blue-40: #a9cefd;
|
|
65
|
+
--blue-35: #bfdcfd;
|
|
66
|
+
--blue-30: #d0e6fe;
|
|
67
|
+
--blue-20: #e1efff;
|
|
68
|
+
--blue-10: #f1f8ff;
|
|
69
|
+
|
|
70
|
+
/* gray */
|
|
71
|
+
--grey-60: #4a4c4e;
|
|
72
|
+
--grey-55: #626467;
|
|
73
|
+
--grey-50: #737578;
|
|
74
|
+
--grey-40: #b7b8b9;
|
|
75
|
+
--grey-35: #cbcccc;
|
|
76
|
+
--grey-30: #dedede;
|
|
77
|
+
--grey-20: #e9e9e9;
|
|
78
|
+
--grey-10: #f3f3f3;
|
|
79
|
+
|
|
80
|
+
/* core */
|
|
81
|
+
--black-90: #16212d;
|
|
82
|
+
--black-80: #24313f;
|
|
83
|
+
--black-70: #39495b;
|
|
84
|
+
--white: #fff;
|
|
85
|
+
--blue-50: #006cfa;
|
|
86
|
+
|
|
87
|
+
/* semi-opaques */
|
|
88
|
+
--transparent-white-80: #fffc;
|
|
89
|
+
--transparent-white-50: #ffffff80;
|
|
90
|
+
--transparent-black-60: #16212d60;
|
|
91
|
+
--transparent-black-80: #16212d80;
|
|
92
|
+
|
|
93
|
+
/* flex */
|
|
94
|
+
--flex-55: #0297cc;
|
|
95
|
+
--flex-50: #00bdff;
|
|
96
|
+
--flex-40: #aae3fc;
|
|
97
|
+
|
|
98
|
+
/* extras */
|
|
99
|
+
--transparent: #0000;
|
|
100
|
+
|
|
101
|
+
/* spacing */
|
|
102
|
+
--spacing-2: 0.125rem; /* 2px */
|
|
103
|
+
--spacing-4: 0.25rem; /* 4px */
|
|
104
|
+
--spacing-6: 0.375rem; /* 6px */
|
|
105
|
+
--spacing-8: 0.5rem; /* 8px */
|
|
106
|
+
--spacing-10: 0.625rem; /* 10px */
|
|
107
|
+
--spacing-12: 0.75rem; /* 12px */
|
|
108
|
+
--spacing-16: 1rem; /* 16px */
|
|
109
|
+
--spacing-20: 1.25rem; /* 20px */
|
|
110
|
+
--spacing-24: 1.5rem; /* 24px */
|
|
111
|
+
--spacing-32: 2rem; /* 32px */
|
|
112
|
+
--spacing-40: 2.5rem; /* 40px */
|
|
113
|
+
--spacing-44: 2.75rem; /* 44px */
|
|
114
|
+
--spacing-48: 3rem; /* 48px */
|
|
115
|
+
--spacing-60: 3.75rem; /* 60px */
|
|
116
|
+
--spacing-68: 4.25rem; /* 68px */
|
|
117
|
+
--spacing-80: 5rem; /* 80px */
|
|
118
|
+
--spacing-120: 7.5rem; /* 120px */
|
|
119
|
+
|
|
120
|
+
/* border-radius */
|
|
121
|
+
--border-radius-2: 0.125rem; /* 2px */
|
|
122
|
+
--border-radius-4: 0.25rem; /* 4px */
|
|
123
|
+
--border-radius-8: 0.5rem; /* 8px */
|
|
124
|
+
--border-radius-12: 0.75rem; /* 12px */
|
|
125
|
+
--border-radius-16: 1rem; /* 16px */
|
|
126
|
+
--border-radius-40: 2.5rem; /* 40px */
|
|
127
|
+
--border-radius-200: 50rem; /* 200px */
|
|
128
|
+
|
|
129
|
+
/* font-size */
|
|
130
|
+
--font-size-80: 5rem; /* 80px */
|
|
131
|
+
--font-size-38: 2.375rem; /* 38px */
|
|
132
|
+
--font-size-32: 2rem; /* 32px */
|
|
133
|
+
--font-size-28: 1.75rem; /* 28px */
|
|
134
|
+
--font-size-22: 1.375rem; /* 22px */
|
|
135
|
+
--font-size-20: 1.25rem; /* 20px */
|
|
136
|
+
--font-size-h1: 1.1875rem; /* H1 19px */
|
|
137
|
+
--font-size-h2: 0.9375rem; /* H2 15px */
|
|
138
|
+
--font-size-h3: 0.875rem; /* H3 14px */
|
|
139
|
+
--font-size-h4: 0.8125rem; /* H4 13px */
|
|
140
|
+
--font-size-h6: 0.5625rem; /* H6 9px */
|
|
141
|
+
--font-size-p: 0.8125rem; /* P 13px */
|
|
142
|
+
--font-size-label: 0.6875rem; /* Label 11px */
|
|
143
|
+
--font-size-caption: 0.625rem; /* Caption 10px */
|
|
144
|
+
|
|
145
|
+
/* line-height */
|
|
146
|
+
--line-height-96: 6rem; /* 96px */
|
|
147
|
+
--line-height-48: 3rem; /* 48px */
|
|
148
|
+
--line-height-42: 2.625rem; /* 42px */
|
|
149
|
+
--line-height-36: 2.25rem; /* 36px */
|
|
150
|
+
--line-height-28: 1.75rem; /* 28px */
|
|
151
|
+
--line-height-24: 1.5rem; /* 24px */
|
|
152
|
+
--line-height-20: 1.25rem; /* 20px */
|
|
153
|
+
--line-height-18: 1.125rem; /* 18px */
|
|
154
|
+
--line-height-16: 1rem; /* 16px */
|
|
155
|
+
--line-height-12: 0.75rem; /* 12px */
|
|
156
|
+
|
|
157
|
+
/* font-weight */
|
|
158
|
+
|
|
159
|
+
/* this might be removed. that depends on what StyledText looks like */
|
|
160
|
+
--font-weight-bold: 700;
|
|
161
|
+
--font-weight-semi-bold: 600;
|
|
162
|
+
--font-weight-regular: 400;
|
|
163
|
+
--font-weight-light: 300;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.enable_touchscreen_colors {
|
|
167
|
+
/* green */
|
|
168
|
+
--green-50: var(--green-50-touchscreen);
|
|
169
|
+
--green-40: var(--green-40-touchscreen);
|
|
170
|
+
--green-30: var(--green-30-touchscreen);
|
|
171
|
+
|
|
172
|
+
/* purple */
|
|
173
|
+
--purple-60: var(--purple-60-touchscreen);
|
|
174
|
+
--purple-55: var(--purple-55-touchscreen);
|
|
175
|
+
--purple-50: var(--purple-50-touchscreen);
|
|
176
|
+
--purple-40: var(--purple-40-touchscreen);
|
|
177
|
+
--purple-35: var(--purple-35-touchscreen);
|
|
178
|
+
--purple-30: var(--purple-30-touchscreen);
|
|
179
|
+
--purple-20: var(--purple-20-touchscreen);
|
|
180
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// display
|
|
2
|
+
export const DISPLAY_NONE = 'none'
|
|
3
|
+
export const DISPLAY_INLINE = 'inline'
|
|
4
|
+
export const DISPLAY_BLOCK = 'block'
|
|
5
|
+
export const DISPLAY_INLINE_BLOCK = 'inline-block'
|
|
6
|
+
export const DISPLAY_FLEX = 'flex'
|
|
7
|
+
export const DISPLAY_TABLE = 'table'
|
|
8
|
+
export const DISPLAY_TABLE_ROW = 'table-row'
|
|
9
|
+
export const DISPLAY_TABLE_CELL = 'table-cell'
|
|
10
|
+
export const DISPLAY_GRID = 'grid'
|
|
11
|
+
|
|
12
|
+
// powers-of-two size scale
|
|
13
|
+
export const SIZE_AUTO = 'auto'
|
|
14
|
+
export const SIZE_1 = '1rem'
|
|
15
|
+
export const SIZE_2 = '2rem'
|
|
16
|
+
export const SIZE_3 = '4rem'
|
|
17
|
+
export const SIZE_4 = '8rem'
|
|
18
|
+
export const SIZE_5 = '16rem'
|
|
19
|
+
export const SIZE_6 = '32rem'
|
|
20
|
+
|
|
21
|
+
// overflow
|
|
22
|
+
export const OVERFLOW_VISIBLE = 'visible'
|
|
23
|
+
export const OVERFLOW_HIDDEN = 'hidden'
|
|
24
|
+
export const OVERFLOW_CLIP = 'clip'
|
|
25
|
+
export const OVERFLOW_SCROLL = 'scroll'
|
|
26
|
+
export const OVERFLOW_AUTO = 'auto'
|
|
27
|
+
|
|
28
|
+
// overflow wrap
|
|
29
|
+
export const OVERFLOW_WRAP_ANYWHERE = 'anywhere'
|
|
30
|
+
export const OVERFLOW_WRAP_BREAK_WORD = 'break-word'
|
|
31
|
+
export const OVERFLOW_WRAP_NORMAL = 'normal'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const SPACING_AUTO = 'auto'
|
|
2
|
+
|
|
3
|
+
// powers-of-two spacing scale
|
|
4
|
+
export const SPACING_1 = '0.25rem'
|
|
5
|
+
export const SPACING_2 = '0.5rem'
|
|
6
|
+
export const SPACING_3 = '1rem'
|
|
7
|
+
export const SPACING_4 = '2rem'
|
|
8
|
+
export const SPACING_5 = '4rem'
|
|
9
|
+
export const SPACING_6 = '8rem'
|
|
10
|
+
export const SPACING_7 = '16rem'
|
|
11
|
+
export const SPACING_8 = '32rem'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* ToDo this file will be removed once the labware library, designer, and creator are updated */
|
|
2
|
+
:root {
|
|
3
|
+
--c-font-dark: #4a4a4a;
|
|
4
|
+
--c-font-icon: #6f6f6f;
|
|
5
|
+
--c-font-light: white;
|
|
6
|
+
--c-font-disabled: #9c9c9c;
|
|
7
|
+
--fs-huge: 3rem;
|
|
8
|
+
--fs-header: 1.125rem;
|
|
9
|
+
--fs-default: 1rem;
|
|
10
|
+
--fs-body-2: 0.875rem;
|
|
11
|
+
--fs-body-1: 0.75rem;
|
|
12
|
+
--fs-caption: 0.625rem;
|
|
13
|
+
--fs-tiny: 0.325rem;
|
|
14
|
+
--fs-micro: 0.2rem;
|
|
15
|
+
--fw-bold: 800;
|
|
16
|
+
--fw-semibold: 600;
|
|
17
|
+
--fw-regular: 400;
|
|
18
|
+
--fw-light: 300;
|
|
19
|
+
--ff-code: consolas, monaco, monospace;
|
|
20
|
+
--lh-solid: 1;
|
|
21
|
+
--lh-title: 1.25;
|
|
22
|
+
--lh-copy: 1.5;
|
|
23
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
import { C_DARK_GRAY, C_WHITE } from './colors'
|
|
4
|
+
|
|
5
|
+
import type { FlattenSimpleInterpolation } from 'styled-components'
|
|
6
|
+
|
|
7
|
+
// font size values
|
|
8
|
+
export const FONT_SIZE_HUGE = '3rem'
|
|
9
|
+
export const FONT_SIZE_BIG = '1.5rem'
|
|
10
|
+
export const FONT_SIZE_HEADER = '1.125rem'
|
|
11
|
+
export const FONT_SIZE_DEFAULT = '1rem'
|
|
12
|
+
export const FONT_SIZE_BODY_2 = '0.875rem'
|
|
13
|
+
export const FONT_SIZE_BODY_1 = '0.75rem'
|
|
14
|
+
export const FONT_SIZE_CAPTION = '0.625rem'
|
|
15
|
+
export const FONT_SIZE_TINY = '0.325rem'
|
|
16
|
+
export const FONT_SIZE_MICRO = '0.2rem'
|
|
17
|
+
export const FONT_SIZE_INHERIT = 'inherit'
|
|
18
|
+
|
|
19
|
+
// line height values
|
|
20
|
+
export const LINE_HEIGHT_SOLID = 1
|
|
21
|
+
export const LINE_HEIGHT_TITLE = 1.25
|
|
22
|
+
export const LINE_HEIGHT_COPY = 1.5
|
|
23
|
+
|
|
24
|
+
// font weight values
|
|
25
|
+
export const FONT_WEIGHT_LIGHT = 300
|
|
26
|
+
export const FONT_WEIGHT_REGULAR = 400
|
|
27
|
+
export const FONT_WEIGHT_SEMIBOLD = 600
|
|
28
|
+
export const FONT_WEIGHT_BOLD = 800
|
|
29
|
+
|
|
30
|
+
// font style values
|
|
31
|
+
export const FONT_STYLE_NORMAL = 'normal'
|
|
32
|
+
export const FONT_STYLE_ITALIC = 'italic'
|
|
33
|
+
|
|
34
|
+
// text align
|
|
35
|
+
export const TEXT_ALIGN_LEFT = 'left'
|
|
36
|
+
export const TEXT_ALIGN_CENTER = 'center'
|
|
37
|
+
export const TEXT_ALIGN_RIGHT = 'right'
|
|
38
|
+
export const TEXT_ALIGN_JUSTIFY = 'justify'
|
|
39
|
+
|
|
40
|
+
// text transform
|
|
41
|
+
export const TEXT_TRANSFORM_NONE = 'none'
|
|
42
|
+
export const TEXT_TRANSFORM_CAPITALIZE = 'capitalize'
|
|
43
|
+
export const TEXT_TRANSFORM_UPPERCASE = 'uppercase'
|
|
44
|
+
export const TEXT_TRANSFORM_LOWERCASE = 'lowercase'
|
|
45
|
+
|
|
46
|
+
// text decoration
|
|
47
|
+
export const TEXT_DECORATION_UNDERLINE = 'underline'
|
|
48
|
+
|
|
49
|
+
// font property sets
|
|
50
|
+
export const FONT_HEADER_DARK: FlattenSimpleInterpolation = css`
|
|
51
|
+
font-size: ${FONT_SIZE_HEADER};
|
|
52
|
+
font-weight: ${FONT_WEIGHT_SEMIBOLD};
|
|
53
|
+
color: ${C_DARK_GRAY};
|
|
54
|
+
`
|
|
55
|
+
|
|
56
|
+
export const FONT_HEADER_THIN: FlattenSimpleInterpolation = css`
|
|
57
|
+
font-size: ${FONT_SIZE_HEADER};
|
|
58
|
+
font-weight: ${FONT_WEIGHT_REGULAR};
|
|
59
|
+
color: ${C_DARK_GRAY};
|
|
60
|
+
`
|
|
61
|
+
|
|
62
|
+
export const FONT_BODY_1_DARK: FlattenSimpleInterpolation = css`
|
|
63
|
+
font-size: ${FONT_SIZE_BODY_1};
|
|
64
|
+
font-weight: ${FONT_WEIGHT_REGULAR};
|
|
65
|
+
color: ${C_DARK_GRAY};
|
|
66
|
+
`
|
|
67
|
+
|
|
68
|
+
export const FONT_BODY_1_LIGHT: FlattenSimpleInterpolation = css`
|
|
69
|
+
font-size: ${FONT_SIZE_BODY_1};
|
|
70
|
+
font-weight: ${FONT_WEIGHT_REGULAR};
|
|
71
|
+
color: ${C_WHITE};
|
|
72
|
+
`
|
|
73
|
+
|
|
74
|
+
export const FONT_BODY_2_DARK: FlattenSimpleInterpolation = css`
|
|
75
|
+
font-size: ${FONT_SIZE_BODY_2};
|
|
76
|
+
font-weight: ${FONT_WEIGHT_REGULAR};
|
|
77
|
+
color: ${C_DARK_GRAY};
|
|
78
|
+
`
|
|
79
|
+
|
|
80
|
+
export const FONT_BODY_1_DARK_SEMIBOLD: FlattenSimpleInterpolation = css`
|
|
81
|
+
font-size: ${FONT_SIZE_BODY_1};
|
|
82
|
+
font-weight: ${FONT_WEIGHT_SEMIBOLD};
|
|
83
|
+
color: ${C_DARK_GRAY};
|
|
84
|
+
`
|
|
85
|
+
|
|
86
|
+
export const FONT_HUGE_DARK_SEMIBOLD: FlattenSimpleInterpolation = css`
|
|
87
|
+
font-size: ${FONT_SIZE_HUGE};
|
|
88
|
+
font-weight: ${FONT_WEIGHT_SEMIBOLD};
|
|
89
|
+
color: ${C_DARK_GRAY};
|
|
90
|
+
`
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DeckSlot, ModuleModel } from '@opentrons/shared-data';
|
|
2
|
-
export interface ModuleProps {
|
|
3
|
-
/** module model */
|
|
4
|
-
model: ModuleModel;
|
|
5
|
-
/** display mode: 'default', 'present', 'missing', or 'info' */
|
|
6
|
-
mode: 'default' | 'present' | 'missing' | 'info';
|
|
7
|
-
/** slot details of the location of this module */
|
|
8
|
-
slot: DeckSlot;
|
|
9
|
-
/** USB port detail of the connected module */
|
|
10
|
-
usbInfoString?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Legacy App-specific Module Rendering. Removable after Protocol Upload Revamp release
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Use {@link Module}
|
|
16
|
-
*/
|
|
17
|
-
export declare function ModuleItem(props: ModuleProps): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|