@opentrons/components 0.1.6-alpha.3 → 0.1.6-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +1 -1
- package/lib/index.mjs +166 -220
- package/package.json +5 -3
package/Makefile
CHANGED
package/lib/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import * as React from "react";
|
|
|
8
8
|
import { useState, useRef, useEffect, useLayoutEffect, useCallback, useMemo, useReducer, createElement } from "react";
|
|
9
9
|
import interact from "interactjs";
|
|
10
10
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
11
|
-
import
|
|
11
|
+
import styled, { css, keyframes } from "styled-components";
|
|
12
12
|
import isEqual from "lodash/isEqual.js";
|
|
13
13
|
import { useTranslation } from "react-i18next";
|
|
14
14
|
import "lodash/uniq.js";
|
|
@@ -11520,25 +11520,17 @@ function getFixtureDisplayName(cutoutFixtureId, usbPortNumber) {
|
|
|
11520
11520
|
case STAGING_AREA_SLOT_WITH_WASTE_CHUTE_RIGHT_ADAPTER_COVERED_FIXTURE:
|
|
11521
11521
|
return "Waste chute with staging area slot and cover";
|
|
11522
11522
|
case HEATERSHAKER_MODULE_V1_FIXTURE:
|
|
11523
|
-
return
|
|
11524
|
-
HEATERSHAKER_MODULE_V1
|
|
11525
|
-
)} in USB-${usbPortNumber}` : getModuleDisplayName(HEATERSHAKER_MODULE_V1);
|
|
11523
|
+
return getModuleDisplayName(HEATERSHAKER_MODULE_V1);
|
|
11526
11524
|
case TEMPERATURE_MODULE_V2_FIXTURE:
|
|
11527
|
-
return
|
|
11528
|
-
TEMPERATURE_MODULE_V2
|
|
11529
|
-
)} in USB-${usbPortNumber}` : getModuleDisplayName(TEMPERATURE_MODULE_V2);
|
|
11525
|
+
return getModuleDisplayName(TEMPERATURE_MODULE_V2);
|
|
11530
11526
|
case MAGNETIC_BLOCK_V1_FIXTURE:
|
|
11531
11527
|
return `${getModuleDisplayName(MAGNETIC_BLOCK_V1)}`;
|
|
11532
11528
|
case STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE:
|
|
11533
11529
|
return `${getModuleDisplayName(MAGNETIC_BLOCK_V1)} with staging area slot`;
|
|
11534
11530
|
case THERMOCYCLER_V2_REAR_FIXTURE:
|
|
11535
|
-
return
|
|
11536
|
-
THERMOCYCLER_MODULE_V2
|
|
11537
|
-
)} in USB-${usbPortNumber}` : getModuleDisplayName(THERMOCYCLER_MODULE_V2);
|
|
11531
|
+
return getModuleDisplayName(THERMOCYCLER_MODULE_V2);
|
|
11538
11532
|
case THERMOCYCLER_V2_FRONT_FIXTURE:
|
|
11539
|
-
return
|
|
11540
|
-
THERMOCYCLER_MODULE_V2
|
|
11541
|
-
)} in USB-${usbPortNumber}` : getModuleDisplayName(THERMOCYCLER_MODULE_V2);
|
|
11533
|
+
return getModuleDisplayName(THERMOCYCLER_MODULE_V2);
|
|
11542
11534
|
default:
|
|
11543
11535
|
return "Slot";
|
|
11544
11536
|
}
|
|
@@ -12587,7 +12579,7 @@ const styleProps = (props) => ({
|
|
|
12587
12579
|
...transitionStyles(props)
|
|
12588
12580
|
});
|
|
12589
12581
|
const isntStyleProp = (prop) => !STYLE_PROPS.includes(prop);
|
|
12590
|
-
const Box =
|
|
12582
|
+
const Box = styled.div.withConfig({
|
|
12591
12583
|
shouldForwardProp: isntStyleProp
|
|
12592
12584
|
}).withConfig({
|
|
12593
12585
|
displayName: "Box",
|
|
@@ -13257,7 +13249,7 @@ const BUTTON_TYPE_RESET = "reset";
|
|
|
13257
13249
|
const BUTTON_TYPE_BUTTON = "button";
|
|
13258
13250
|
const BUTTON_BASE_STYLE = css(["appearance:none;padding:0;border-width:0;border-style:solid;background-color:transparent;cursor:pointer;&:disabled,&.disabled{cursor:default;}@media ", "{cursor:default;}"], touchscreenMediaQuerySpecs);
|
|
13259
13251
|
const BUTTON_VARIANT_STYLE = css(["border-color:inherit;border-radius:", ";display:", ";font-size:", ";font-weight:", ";line-height:1.4;padding-left:", ";padding-right:", ";padding-top:", ";padding-bottom:", ";text-align:", ";text-transform:", ";"], BORDER_RADIUS_DEFAULT, DISPLAY_INLINE_BLOCK, FONT_SIZE_BODY_2, FONT_WEIGHT_SEMIBOLD, SPACING_4, SPACING_4, SPACING_2, SPACING_2, TEXT_ALIGN_CENTER, TEXT_TRANSFORM_UPPERCASE);
|
|
13260
|
-
const Btn =
|
|
13252
|
+
const Btn = styled.button.withConfig({
|
|
13261
13253
|
shouldForwardProp: isntStyleProp
|
|
13262
13254
|
}).attrs((props) => ({
|
|
13263
13255
|
type: props.type ?? BUTTON_TYPE_BUTTON
|
|
@@ -13265,46 +13257,46 @@ const Btn = _styled.button.withConfig({
|
|
|
13265
13257
|
displayName: "Btn",
|
|
13266
13258
|
componentId: "sc-o3dtr1-0"
|
|
13267
13259
|
})(["", " ", ""], BUTTON_BASE_STYLE, styleProps);
|
|
13268
|
-
const PrimaryBtn =
|
|
13260
|
+
const PrimaryBtn = styled(Btn).withConfig({
|
|
13269
13261
|
displayName: "Btn__PrimaryBtn",
|
|
13270
13262
|
componentId: "sc-o3dtr1-1"
|
|
13271
13263
|
})(["", " background-color:", ";color:", ";box-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.2);&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}&:disabled,&.disabled{background-color:", ";color:", ";box-shadow:none;}", ""], BUTTON_VARIANT_STYLE, C_DARK_GRAY, C_WHITE, C_BLACK, C_MED_DARK_GRAY, C_LIGHT_GRAY, C_MED_GRAY, styleProps);
|
|
13272
|
-
const SecondaryBtn =
|
|
13264
|
+
const SecondaryBtn = styled(Btn).withConfig({
|
|
13273
13265
|
displayName: "Btn__SecondaryBtn",
|
|
13274
13266
|
componentId: "sc-o3dtr1-2"
|
|
13275
13267
|
})(["", " background-color:", ";border-width:", ";color:", ";&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}&:disabled,&.disabled{background-color:", ";color:", ";}", ""], BUTTON_VARIANT_STYLE, C_WHITE, BORDER_WIDTH_DEFAULT, C_DARK_GRAY, C_LIGHT_GRAY, C_MED_LIGHT_GRAY, C_WHITE, C_MED_GRAY, styleProps);
|
|
13276
|
-
const NewPrimaryBtn =
|
|
13268
|
+
const NewPrimaryBtn = styled(PrimaryBtn).withConfig({
|
|
13277
13269
|
displayName: "Btn__NewPrimaryBtn",
|
|
13278
13270
|
componentId: "sc-o3dtr1-3"
|
|
13279
13271
|
})(["background-color:", ";color:", ";&:hover,&:focus{background-color:", ";box-shadow:0px 3px 6px 0px rgba(0,0,0,0.23);}&:active{background-color:#004aaa;box-shadow:none;}&:disabled,&.disabled{background-color:", ";color:", ";box-shadow:none;}", ""], C_BLUE, C_WHITE, C_BLUE, C_FONT_DISABLED, C_WHITE, styleProps);
|
|
13280
|
-
const NewSecondaryBtn =
|
|
13272
|
+
const NewSecondaryBtn = styled(SecondaryBtn).withConfig({
|
|
13281
13273
|
displayName: "Btn__NewSecondaryBtn",
|
|
13282
13274
|
componentId: "sc-o3dtr1-4"
|
|
13283
13275
|
})(["background-color:", ";color:", ";&:hover,&:focus{border-width:'2px';background-color:", ";color:", ";box-shadow:0px 3px 6px 0px rgba(0,0,0,0.23);}&:active{border-width:'2px';background-color:", ";color:", ";color:#004aaa;box-shadow:none;}&:disabled,&.disabled{border-width:'2px';background-color:", ";color:", ";box-shadow:none;}", ""], C_WHITE, C_BLUE, C_WHITE, C_BLUE, C_WHITE, C_BLUE, C_WHITE, C_FONT_DISABLED, styleProps);
|
|
13284
|
-
const NewAlertPrimaryBtn =
|
|
13276
|
+
const NewAlertPrimaryBtn = styled(NewPrimaryBtn).withConfig({
|
|
13285
13277
|
displayName: "Btn__NewAlertPrimaryBtn",
|
|
13286
13278
|
componentId: "sc-o3dtr1-5"
|
|
13287
13279
|
})(["background-color:", ";&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}", ""], C_ERROR_DARK, C_ERROR_DARK, C_ERROR_LIGHT, styleProps);
|
|
13288
|
-
const NewAlertSecondaryBtn =
|
|
13280
|
+
const NewAlertSecondaryBtn = styled(NewSecondaryBtn).withConfig({
|
|
13289
13281
|
displayName: "Btn__NewAlertSecondaryBtn",
|
|
13290
13282
|
componentId: "sc-o3dtr1-6"
|
|
13291
13283
|
})(["color:", ";&:hover,&:focus{color:", ";}&:active{color:", ";}", ""], C_ERROR_DARK, C_ERROR_DARK, C_ERROR_LIGHT, styleProps);
|
|
13292
|
-
const LightSecondaryBtn =
|
|
13284
|
+
const LightSecondaryBtn = styled(SecondaryBtn).withConfig({
|
|
13293
13285
|
displayName: "Btn__LightSecondaryBtn",
|
|
13294
13286
|
componentId: "sc-o3dtr1-7"
|
|
13295
13287
|
})(["background-color:", ";color:", ";&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}&:disabled,&.disabled{background-color:", ";color:", ";}", ""], C_TRANSPARENT, C_WHITE, OVERLAY_WHITE_10, OVERLAY_WHITE_20, C_TRANSPARENT, C_MED_GRAY, styleProps);
|
|
13296
|
-
const TertiaryBtn =
|
|
13288
|
+
const TertiaryBtn = styled(LightSecondaryBtn).withConfig({
|
|
13297
13289
|
displayName: "Btn__TertiaryBtn",
|
|
13298
13290
|
componentId: "sc-o3dtr1-8"
|
|
13299
13291
|
})(["border-width:0;"]);
|
|
13300
|
-
const Flex =
|
|
13292
|
+
const Flex = styled.div.withConfig({
|
|
13301
13293
|
shouldForwardProp: isntStyleProp
|
|
13302
13294
|
}).withConfig({
|
|
13303
13295
|
displayName: "Flex",
|
|
13304
13296
|
componentId: "sc-1qhp8l7-0"
|
|
13305
13297
|
})(["display:flex;", ""], styleProps);
|
|
13306
13298
|
const SVG_PROPS$1 = ["x", "y", "svgWidth", "svgHeight", "_cssWidth", "_cssHeight"];
|
|
13307
|
-
const ForeignObject =
|
|
13299
|
+
const ForeignObject = styled.foreignObject.withConfig({
|
|
13308
13300
|
shouldForwardProp: (p) => {
|
|
13309
13301
|
return (
|
|
13310
13302
|
// do not forward style-props or Svg-props to the underlying <svg>
|
|
@@ -13334,7 +13326,7 @@ const ForeignObject = _styled.foreignObject.withConfig({
|
|
|
13334
13326
|
height: otherProps._cssHeight
|
|
13335
13327
|
});
|
|
13336
13328
|
});
|
|
13337
|
-
const Link =
|
|
13329
|
+
const Link = styled.a.withConfig({
|
|
13338
13330
|
shouldForwardProp: (p) => isntStyleProp(p) && p !== "external"
|
|
13339
13331
|
}).attrs((props) => {
|
|
13340
13332
|
return props.external === true ? {
|
|
@@ -13350,7 +13342,7 @@ const Link = _styled.a.withConfig({
|
|
|
13350
13342
|
const SVG_VERSION = "1.1";
|
|
13351
13343
|
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
13352
13344
|
const SVG_PROPS = ["svgWidth", "svgHeight", "_cssWidth", "_cssHeight"];
|
|
13353
|
-
const Svg =
|
|
13345
|
+
const Svg = styled.svg.withConfig({
|
|
13354
13346
|
shouldForwardProp: (p) => {
|
|
13355
13347
|
return (
|
|
13356
13348
|
// do not forward style-props or Svg-props to the underlying <svg>
|
|
@@ -13382,7 +13374,7 @@ const Svg = _styled.svg.withConfig({
|
|
|
13382
13374
|
height: otherProps._cssHeight
|
|
13383
13375
|
});
|
|
13384
13376
|
});
|
|
13385
|
-
const Text =
|
|
13377
|
+
const Text = styled.p.withConfig({
|
|
13386
13378
|
shouldForwardProp: isntStyleProp
|
|
13387
13379
|
}).withConfig({
|
|
13388
13380
|
displayName: "Text",
|
|
@@ -13425,7 +13417,7 @@ function RobotCoordinateSpace(props) {
|
|
|
13425
13417
|
};
|
|
13426
13418
|
return animated2 ? /* @__PURE__ */ jsx(AnimatedSvg, { ...allPassThroughProps, children }) : /* @__PURE__ */ jsx(Svg, { ...allPassThroughProps, children });
|
|
13427
13419
|
}
|
|
13428
|
-
const AnimatedSvg =
|
|
13420
|
+
const AnimatedSvg = styled(animated.svg).withConfig({
|
|
13429
13421
|
displayName: "RobotCoordinateSpace__AnimatedSvg",
|
|
13430
13422
|
componentId: "sc-xlzjc5-0"
|
|
13431
13423
|
})([""]);
|
|
@@ -14157,7 +14149,7 @@ function Icon(props) {
|
|
|
14157
14149
|
props.children
|
|
14158
14150
|
] });
|
|
14159
14151
|
}
|
|
14160
|
-
var _StyledSvg =
|
|
14152
|
+
var _StyledSvg = styled(Svg).withConfig({
|
|
14161
14153
|
displayName: "Icon___StyledSvg",
|
|
14162
14154
|
componentId: "sc-1gt4gyz-0"
|
|
14163
14155
|
})(["", ""], spinStyle);
|
|
@@ -14208,7 +14200,7 @@ const RobotCoordsForeignObject = (props) => {
|
|
|
14208
14200
|
width
|
|
14209
14201
|
}, children: /* @__PURE__ */ jsx(_StyledFlex$2, { height: "100%", width: "100%", ...foreignObjectProps, children: /* @__PURE__ */ jsx(Flex, { ...flexProps, children }) }) });
|
|
14210
14202
|
};
|
|
14211
|
-
var _StyledFlex$2 =
|
|
14203
|
+
var _StyledFlex$2 = styled(Flex).withConfig({
|
|
14212
14204
|
displayName: "RobotCoordsForeignObject___StyledFlex",
|
|
14213
14205
|
componentId: "sc-1wzsjcc-0"
|
|
14214
14206
|
})(["transform:scale(1,-1);"]);
|
|
@@ -14266,13 +14258,10 @@ const FlexTrash = ({
|
|
|
14266
14258
|
rotateDegrees === "0" ? /* @__PURE__ */ jsx(_StyledText2, { color: white, $_css2: bodyTextSemiBold, children: "Trash bin" }) : null
|
|
14267
14259
|
] }) }) }) : null;
|
|
14268
14260
|
};
|
|
14269
|
-
var _StyledText$c =
|
|
14270
|
-
|
|
14271
|
-
componentId: "sc-b6k3wl-0"
|
|
14272
|
-
})(["", ""], (p) => p.$_css);
|
|
14273
|
-
var _StyledText2 = _styled(Text).withConfig({
|
|
14261
|
+
var _StyledText$c = styled(Text)`${(p) => p.$_css}`;
|
|
14262
|
+
var _StyledText2 = styled(Text).withConfig({
|
|
14274
14263
|
displayName: "FlexTrash___StyledText2",
|
|
14275
|
-
componentId: "sc-b6k3wl-
|
|
14264
|
+
componentId: "sc-b6k3wl-0"
|
|
14276
14265
|
})(["", ""], (p) => p.$_css2);
|
|
14277
14266
|
const IDENTITY_AFFINE_TRANSFORM = [
|
|
14278
14267
|
[1, 0, 0, 0],
|
|
@@ -14431,7 +14420,7 @@ function MoveLabwareOnDeck(props) {
|
|
|
14431
14420
|
] }) })
|
|
14432
14421
|
] });
|
|
14433
14422
|
}
|
|
14434
|
-
const AnimatedG =
|
|
14423
|
+
const AnimatedG = styled(animated.g).withConfig({
|
|
14435
14424
|
displayName: "MoveLabwareOnDeck__AnimatedG",
|
|
14436
14425
|
componentId: "sc-1axftuu-0"
|
|
14437
14426
|
})([""]);
|
|
@@ -14541,13 +14530,10 @@ function LocationIcon({
|
|
|
14541
14530
|
}) {
|
|
14542
14531
|
return /* @__PURE__ */ jsx(_StyledFlex$1, { "data-testid": slotName != null ? `LocationIcon_${slotName}` : `LocationIcon_${String(iconName)}`, ...styleProps2, children: iconName != null ? /* @__PURE__ */ jsx(Icon, { name: iconName, size: "1.25rem", color: color ?? black90, "aria-label": iconName }) : /* @__PURE__ */ jsx(_StyledText$b, { children: slotName }) });
|
|
14543
14532
|
}
|
|
14544
|
-
var _StyledFlex$1 =
|
|
14545
|
-
|
|
14546
|
-
componentId: "sc-71okg-0"
|
|
14547
|
-
})(["", ""], LOCATION_ICON_STYLE);
|
|
14548
|
-
var _StyledText$b = _styled(Text).withConfig({
|
|
14533
|
+
var _StyledFlex$1 = styled(Flex)`${LOCATION_ICON_STYLE}`;
|
|
14534
|
+
var _StyledText$b = styled(Text).withConfig({
|
|
14549
14535
|
displayName: "LocationIcon___StyledText",
|
|
14550
|
-
componentId: "sc-71okg-
|
|
14536
|
+
componentId: "sc-71okg-0"
|
|
14551
14537
|
})(["", ""], SLOT_NAME_TEXT_STYLE);
|
|
14552
14538
|
const defaultTabStyle = css(["", " color:", ";background-color:", ";border:0px ", " ", ";border-radius:", ";padding:", " ", ";position:", ";&:hover{background-color:", ";}&:focus-visible{outline:2px ", " ", ";}"], pSemiBold, black90, purple30, styleSolid, purple30, borderRadius8, spacing8, spacing16, POSITION_RELATIVE, purple35, styleSolid, yellow50);
|
|
14553
14539
|
const currentTabStyle = css(["", " color:", ";background-color:", ";&:hover{background-color:", ";}"], defaultTabStyle, white, purple50, purple55);
|
|
@@ -14565,7 +14551,7 @@ function RoundTab({
|
|
|
14565
14551
|
tabStyle = currentTabStyle;
|
|
14566
14552
|
return /* @__PURE__ */ jsx(_StyledBtn$9, { ...restProps, $_css: tabStyle, children });
|
|
14567
14553
|
}
|
|
14568
|
-
var _StyledBtn$9 =
|
|
14554
|
+
var _StyledBtn$9 = styled(Btn).withConfig({
|
|
14569
14555
|
displayName: "RoundTab___StyledBtn",
|
|
14570
14556
|
componentId: "sc-yqd6yj-0"
|
|
14571
14557
|
})(["", ""], (p) => p.$_css);
|
|
@@ -14589,7 +14575,7 @@ const styleMap = {
|
|
|
14589
14575
|
pBold: bodyTextBold,
|
|
14590
14576
|
labelBold: smallBodyTextBold
|
|
14591
14577
|
};
|
|
14592
|
-
const StyledText =
|
|
14578
|
+
const StyledText = styled(Text).withConfig({
|
|
14593
14579
|
displayName: "StyledText",
|
|
14594
14580
|
componentId: "sc-9x05o6-0"
|
|
14595
14581
|
})(["", ""], (props) => {
|
|
@@ -14758,13 +14744,10 @@ function Arrow(props) {
|
|
|
14758
14744
|
const arrowCss = ARROW_CSS_BY_PLACEMENT_BASE[placementBase];
|
|
14759
14745
|
return /* @__PURE__ */ jsx(_StyledDiv, { ref: props.arrowRef, style: props.arrowStyle, $_css2: arrowCss });
|
|
14760
14746
|
}
|
|
14761
|
-
var _StyledBox$2 =
|
|
14762
|
-
|
|
14763
|
-
componentId: "sc-b3ng4r-0"
|
|
14764
|
-
})(["", ""], (p) => p.$_css);
|
|
14765
|
-
var _StyledDiv = _styled("div").withConfig({
|
|
14747
|
+
var _StyledBox$2 = styled(Box)`${(p) => p.$_css}`;
|
|
14748
|
+
var _StyledDiv = styled("div").withConfig({
|
|
14766
14749
|
displayName: "Tooltip___StyledDiv",
|
|
14767
|
-
componentId: "sc-b3ng4r-
|
|
14750
|
+
componentId: "sc-b3ng4r-0"
|
|
14768
14751
|
})(["", ""], (p) => p.$_css2);
|
|
14769
14752
|
const DISABLED_APPLY_STYLES_MODIFIER = {
|
|
14770
14753
|
name: "applyStyles",
|
|
@@ -15071,27 +15054,27 @@ const ParameterName = (props) => {
|
|
|
15071
15054
|
] }) : null
|
|
15072
15055
|
] });
|
|
15073
15056
|
};
|
|
15074
|
-
const StyledTable =
|
|
15057
|
+
const StyledTable = styled.table.withConfig({
|
|
15075
15058
|
displayName: "ParametersTable__StyledTable",
|
|
15076
15059
|
componentId: "sc-16k3q66-0"
|
|
15077
15060
|
})(["width:100%;border-collapse:collapse;text-align:left;"]);
|
|
15078
|
-
const StyledTableHeader =
|
|
15061
|
+
const StyledTableHeader = styled.th.withConfig({
|
|
15079
15062
|
displayName: "ParametersTable__StyledTableHeader",
|
|
15080
15063
|
componentId: "sc-16k3q66-1"
|
|
15081
15064
|
})(["", " grid-gap:", ";padding-bottom:", ";border-bottom:", ";"], labelSemiBold, spacing16, spacing8, lineBorder);
|
|
15082
|
-
const StyledTableRow =
|
|
15065
|
+
const StyledTableRow = styled.tr.withConfig({
|
|
15083
15066
|
displayName: "ParametersTable__StyledTableRow",
|
|
15084
15067
|
componentId: "sc-16k3q66-2"
|
|
15085
15068
|
})(["grid-gap:", ";border-bottom:", ";"], spacing16, (props) => props.isLast ? "none" : lineBorder);
|
|
15086
|
-
const StyledTableCell =
|
|
15069
|
+
const StyledTableCell = styled.td.withConfig({
|
|
15087
15070
|
displayName: "ParametersTable__StyledTableCell",
|
|
15088
15071
|
componentId: "sc-16k3q66-3"
|
|
15089
15072
|
})(["width:33%;display:", ";padding-top:", ";padding-bottom:", ";padding-right:", ";"], (props) => props.display != null ? props.display : "table-cell", spacing12, (props) => props.isLast ? 0 : spacing12, (props) => props.paddingRight != null ? props.paddingRight : spacing16);
|
|
15090
|
-
var _StyledStyledText$1 =
|
|
15073
|
+
var _StyledStyledText$1 = styled(StyledText).withConfig({
|
|
15091
15074
|
displayName: "ParametersTable___StyledStyledText",
|
|
15092
15075
|
componentId: "sc-16k3q66-4"
|
|
15093
15076
|
})(["display:", ";padding-right:", ";"], DISPLAY_INLINE, (p) => p.$_css);
|
|
15094
|
-
var _StyledTooltip =
|
|
15077
|
+
var _StyledTooltip = styled(Tooltip).withConfig({
|
|
15095
15078
|
displayName: "ParametersTable___StyledTooltip",
|
|
15096
15079
|
componentId: "sc-16k3q66-5"
|
|
15097
15080
|
})(["", ""], (p) => p.$_css2);
|
|
@@ -15915,7 +15898,7 @@ const TipDecoration = React.memo(function TipDecoration2(props) {
|
|
|
15915
15898
|
}
|
|
15916
15899
|
return null;
|
|
15917
15900
|
});
|
|
15918
|
-
const LabwareDetailGroup =
|
|
15901
|
+
const LabwareDetailGroup = styled.g.withConfig({
|
|
15919
15902
|
displayName: "StaticLabware__LabwareDetailGroup",
|
|
15920
15903
|
componentId: "sc-18xrwft-0"
|
|
15921
15904
|
})(["fill:none;stroke:", ";stroke-width:1;"], black90);
|
|
@@ -16311,7 +16294,7 @@ function WasteChute(props) {
|
|
|
16311
16294
|
/* @__PURE__ */ jsx(_StyledText$a, { color: white, textAlign: TEXT_ALIGN_CENTER, $_css: bodyTextSemiBold, children: "Waste chute" })
|
|
16312
16295
|
] }) });
|
|
16313
16296
|
}
|
|
16314
|
-
var _StyledText$a =
|
|
16297
|
+
var _StyledText$a = styled(Text).withConfig({
|
|
16315
16298
|
displayName: "WasteChuteFixture___StyledText",
|
|
16316
16299
|
componentId: "sc-zw2793-0"
|
|
16317
16300
|
})(["", ""], (p) => p.$_css);
|
|
@@ -16789,7 +16772,7 @@ function LabwareInfo(props) {
|
|
|
16789
16772
|
justifyContent: JUSTIFY_FLEX_END
|
|
16790
16773
|
}, children: /* @__PURE__ */ jsx(Box, { backgroundColor: "#000000B3", borderRadius: "0 0 0.4rem 0.4rem", fontSize: fontSizeCaption, padding: spacing4, color: white, children: /* @__PURE__ */ jsx(Flex, { flexDirection: DIRECTION_ROW, justifyContent: JUSTIFY_SPACE_BETWEEN, alignItems: ALIGN_FLEX_START, gridGap: spacing4, children: /* @__PURE__ */ jsx(_StyledText$9, { as: "h6", lineHeight: fontSizeCaption, children: props.children }) }) }) });
|
|
16791
16774
|
}
|
|
16792
|
-
var _StyledText$9 =
|
|
16775
|
+
var _StyledText$9 = styled(Text).withConfig({
|
|
16793
16776
|
displayName: "LabwareInfo___StyledText",
|
|
16794
16777
|
componentId: "sc-gwiewj-0"
|
|
16795
16778
|
})(["", ""], labwareDisplayNameStyle);
|
|
@@ -16994,7 +16977,7 @@ function EmptyConfigFixture(props) {
|
|
|
16994
16977
|
}, children: /* @__PURE__ */ jsx(_StyledBtn$8, { onClick: () => handleClickAdd(fixtureLocation), children: /* @__PURE__ */ jsx(Icon, { name: "add", color: blue50, size: "2rem" }) }) });
|
|
16995
16978
|
}
|
|
16996
16979
|
const EMPTY_CONFIG_STYLE = css(["display:", ";align-items:", ";justify-content:", ";background-color:", ";border:3px dashed ", ";border-radius:", ";width:100%;@media ", "{background-color:", ";}&:active{border:3px solid ", ";background-color:", ";}&:focus{border:3px solid ", ";background-color:", ";}&:hover{background-color:", ";}&:focus-visible{border:3px solid ", ";background-color:", ";@media ", "{background-color:", ";}}"], DISPLAY_FLEX, ALIGN_CENTER, JUSTIFY_CENTER, blue30, blue50, borderRadius4, touchscreenMediaQuerySpecs, blue35, blue50, blue40, blue50, blue40, blue35, blue50, blue35, touchscreenMediaQuerySpecs, blue40);
|
|
16997
|
-
var _StyledBtn$8 =
|
|
16980
|
+
var _StyledBtn$8 = styled(Btn).withConfig({
|
|
16998
16981
|
displayName: "EmptyConfigFixture___StyledBtn",
|
|
16999
16982
|
componentId: "sc-1ym7jpi-0"
|
|
17000
16983
|
})(["", ""], EMPTY_CONFIG_STYLE);
|
|
@@ -17021,13 +17004,10 @@ function StagingAreaConfigFixture(props) {
|
|
|
17021
17004
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17022
17005
|
] }) });
|
|
17023
17006
|
}
|
|
17024
|
-
var _StyledBtn$7 =
|
|
17025
|
-
|
|
17026
|
-
componentId: "sc-1jplm20-0"
|
|
17027
|
-
})(["", ""], (p) => p.$_css);
|
|
17028
|
-
var _StyledText$8 = _styled(Text).withConfig({
|
|
17007
|
+
var _StyledBtn$7 = styled(Btn)`${(p) => p.$_css}`;
|
|
17008
|
+
var _StyledText$8 = styled(Text).withConfig({
|
|
17029
17009
|
displayName: "StagingAreaConfigFixture___StyledText",
|
|
17030
|
-
componentId: "sc-1jplm20-
|
|
17010
|
+
componentId: "sc-1jplm20-0"
|
|
17031
17011
|
})(["", ""], (p) => p.$_css2);
|
|
17032
17012
|
function TrashBinConfigFixture(props) {
|
|
17033
17013
|
const {
|
|
@@ -17054,13 +17034,10 @@ function TrashBinConfigFixture(props) {
|
|
|
17054
17034
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17055
17035
|
] }) });
|
|
17056
17036
|
}
|
|
17057
|
-
var _StyledBtn$6 =
|
|
17058
|
-
|
|
17059
|
-
componentId: "sc-1h29irg-0"
|
|
17060
|
-
})(["", ""], (p) => p.$_css);
|
|
17061
|
-
var _StyledText$7 = _styled(Text).withConfig({
|
|
17037
|
+
var _StyledBtn$6 = styled(Btn)`${(p) => p.$_css}`;
|
|
17038
|
+
var _StyledText$7 = styled(Text).withConfig({
|
|
17062
17039
|
displayName: "TrashBinConfigFixture___StyledText",
|
|
17063
|
-
componentId: "sc-1h29irg-
|
|
17040
|
+
componentId: "sc-1h29irg-0"
|
|
17064
17041
|
})(["", ""], (p) => p.$_css2);
|
|
17065
17042
|
function WasteChuteConfigFixture(props) {
|
|
17066
17043
|
const {
|
|
@@ -17086,13 +17063,10 @@ function WasteChuteConfigFixture(props) {
|
|
|
17086
17063
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17087
17064
|
] }) });
|
|
17088
17065
|
}
|
|
17089
|
-
var _StyledBtn$5 =
|
|
17090
|
-
|
|
17091
|
-
componentId: "sc-1dt8wwl-0"
|
|
17092
|
-
})(["", ""], (p) => p.$_css);
|
|
17093
|
-
var _StyledText$6 = _styled(Text).withConfig({
|
|
17066
|
+
var _StyledBtn$5 = styled(Btn)`${(p) => p.$_css}`;
|
|
17067
|
+
var _StyledText$6 = styled(Text).withConfig({
|
|
17094
17068
|
displayName: "WasteChuteConfigFixture___StyledText",
|
|
17095
|
-
componentId: "sc-1dt8wwl-
|
|
17069
|
+
componentId: "sc-1dt8wwl-0"
|
|
17096
17070
|
})(["", ""], (p) => p.$_css2);
|
|
17097
17071
|
function StaticFixture(props) {
|
|
17098
17072
|
const {
|
|
@@ -17111,13 +17085,10 @@ function StaticFixture(props) {
|
|
|
17111
17085
|
}, children: /* @__PURE__ */ jsx(_StyledBtn$4, { cursor: "default", onClick: () => {
|
|
17112
17086
|
}, children: /* @__PURE__ */ jsx(_StyledText$5, { $_css: smallBodyTextSemiBold, children: label }) }) });
|
|
17113
17087
|
}
|
|
17114
|
-
var _StyledBtn$4 =
|
|
17115
|
-
|
|
17116
|
-
componentId: "sc-1pijcys-0"
|
|
17117
|
-
})(["", ""], CONFIG_STYLE_READ_ONLY);
|
|
17118
|
-
var _StyledText$5 = _styled(Text).withConfig({
|
|
17088
|
+
var _StyledBtn$4 = styled(Btn)`${CONFIG_STYLE_READ_ONLY}`;
|
|
17089
|
+
var _StyledText$5 = styled(Text).withConfig({
|
|
17119
17090
|
displayName: "StaticFixture___StyledText",
|
|
17120
|
-
componentId: "sc-1pijcys-
|
|
17091
|
+
componentId: "sc-1pijcys-0"
|
|
17121
17092
|
})(["", ""], (p) => p.$_css);
|
|
17122
17093
|
const TEMPERATURE_MODULE_FIXTURE_DISPLAY_NAME = "Temperature";
|
|
17123
17094
|
function TemperatureModuleFixture(props) {
|
|
@@ -17145,13 +17116,10 @@ function TemperatureModuleFixture(props) {
|
|
|
17145
17116
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17146
17117
|
] }) });
|
|
17147
17118
|
}
|
|
17148
|
-
var _StyledBtn$3 =
|
|
17149
|
-
|
|
17150
|
-
componentId: "sc-j8juq6-0"
|
|
17151
|
-
})(["", ""], (p) => p.$_css);
|
|
17152
|
-
var _StyledText$4 = _styled(Text).withConfig({
|
|
17119
|
+
var _StyledBtn$3 = styled(Btn)`${(p) => p.$_css}`;
|
|
17120
|
+
var _StyledText$4 = styled(Text).withConfig({
|
|
17153
17121
|
displayName: "TemperatureModuleFixture___StyledText",
|
|
17154
|
-
componentId: "sc-j8juq6-
|
|
17122
|
+
componentId: "sc-j8juq6-0"
|
|
17155
17123
|
})(["", ""], (p) => p.$_css2);
|
|
17156
17124
|
const HEATER_SHAKER_MODULE_FIXTURE_DISPLAY_NAME = "Heater-Shaker";
|
|
17157
17125
|
function HeaterShakerFixture(props) {
|
|
@@ -17179,13 +17147,10 @@ function HeaterShakerFixture(props) {
|
|
|
17179
17147
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17180
17148
|
] }) });
|
|
17181
17149
|
}
|
|
17182
|
-
var _StyledBtn$2 =
|
|
17183
|
-
|
|
17184
|
-
componentId: "sc-uiy636-0"
|
|
17185
|
-
})(["", ""], (p) => p.$_css);
|
|
17186
|
-
var _StyledText$3 = _styled(Text).withConfig({
|
|
17150
|
+
var _StyledBtn$2 = styled(Btn)`${(p) => p.$_css}`;
|
|
17151
|
+
var _StyledText$3 = styled(Text).withConfig({
|
|
17187
17152
|
displayName: "HeaterShakerFixture___StyledText",
|
|
17188
|
-
componentId: "sc-uiy636-
|
|
17153
|
+
componentId: "sc-uiy636-0"
|
|
17189
17154
|
})(["", ""], (p) => p.$_css2);
|
|
17190
17155
|
const MAGNETIC_BLOCK_FIXTURE_DISPLAY_NAME = "Mag Block";
|
|
17191
17156
|
const STAGING_AREA_WITH_MAGNETIC_BLOCK_DISPLAY_NAME = "Mag + staging";
|
|
@@ -17242,13 +17207,10 @@ function MagneticBlockFixture(props) {
|
|
|
17242
17207
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17243
17208
|
] }) });
|
|
17244
17209
|
}
|
|
17245
|
-
var _StyledBtn$1 =
|
|
17246
|
-
|
|
17247
|
-
componentId: "sc-ct8c9g-0"
|
|
17248
|
-
})(["", ""], (p) => p.$_css);
|
|
17249
|
-
var _StyledText$2 = _styled(Text).withConfig({
|
|
17210
|
+
var _StyledBtn$1 = styled(Btn)`${(p) => p.$_css}`;
|
|
17211
|
+
var _StyledText$2 = styled(Text).withConfig({
|
|
17250
17212
|
displayName: "MagneticBlockFixture___StyledText",
|
|
17251
|
-
componentId: "sc-ct8c9g-
|
|
17213
|
+
componentId: "sc-ct8c9g-0"
|
|
17252
17214
|
})(["", ""], (p) => p.$_css2);
|
|
17253
17215
|
const THERMOCYCLER_FIXTURE_DISPLAY_NAME = "Thermocycler";
|
|
17254
17216
|
function ThermocyclerFixture(props) {
|
|
@@ -17274,13 +17236,10 @@ function ThermocyclerFixture(props) {
|
|
|
17274
17236
|
handleClickRemove != null ? /* @__PURE__ */ jsx(Icon, { name: "remove", color: white, size: "2rem" }) : null
|
|
17275
17237
|
] }) });
|
|
17276
17238
|
}
|
|
17277
|
-
var _StyledBtn =
|
|
17278
|
-
|
|
17279
|
-
componentId: "sc-ada076-0"
|
|
17280
|
-
})(["", ""], (p) => p.$_css);
|
|
17281
|
-
var _StyledText$1 = _styled(Text).withConfig({
|
|
17239
|
+
var _StyledBtn = styled(Btn)`${(p) => p.$_css}`;
|
|
17240
|
+
var _StyledText$1 = styled(Text).withConfig({
|
|
17282
17241
|
displayName: "ThermocyclerFixture___StyledText",
|
|
17283
|
-
componentId: "sc-ada076-
|
|
17242
|
+
componentId: "sc-ada076-0"
|
|
17284
17243
|
})(["", ""], (p) => p.$_css2);
|
|
17285
17244
|
function DeckConfigurator(props) {
|
|
17286
17245
|
const {
|
|
@@ -17584,7 +17543,7 @@ const INNER_DIV_PROPS = {
|
|
|
17584
17543
|
height: "100%",
|
|
17585
17544
|
gridGap: spacing4
|
|
17586
17545
|
};
|
|
17587
|
-
var _StyledText =
|
|
17546
|
+
var _StyledText = styled(Text).withConfig({
|
|
17588
17547
|
displayName: "useSelectDeckLocation___StyledText",
|
|
17589
17548
|
componentId: "sc-d8yjkg-0"
|
|
17590
17549
|
})(["", ""], (p) => p.$_css);
|
|
@@ -18373,116 +18332,121 @@ function ModuleItemContents(props) {
|
|
|
18373
18332
|
] })
|
|
18374
18333
|
] }) });
|
|
18375
18334
|
}
|
|
18335
|
+
const FOOTPRINT_IMAGE_RELATIVE_PATH = "./images/dimensions/footprint@3x.png";
|
|
18336
|
+
const DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH = "./images/dimensions/height-plate-and-reservoir@3x.png";
|
|
18337
|
+
const DIMENSIONS_HEIGHT_TIP_RACK_IMAGE_RELATIVE_PATH = "./images/dimensions/height-tip-rack@3x.png";
|
|
18338
|
+
const DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_RELATIVE_PATH = "./images/dimensions/height-tube-rack@3x.png";
|
|
18339
|
+
const DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_IRREGULAR_RELATIVE_PATH = "./images/dimensions/height-tube-rack-irregular@3x.png";
|
|
18340
|
+
const HEIGHT_ALUM_BLOCK_TUBES_IMAGE_RELATIVE_PATH = "./images/dimensions/height-alum-block-tubes@3x.png";
|
|
18341
|
+
const HEIGHT_ALUM_BLOCK_PLATE_IMAGE_RELATIVE_PATH = "./images/dimensions/height-alum-block-plate@3x.png";
|
|
18342
|
+
const OFFSET_RESEVOIR_IMAGE_RELATIVE_PATH = "./images/offset/offset-reservoir@3x.png";
|
|
18343
|
+
const SPACING_RESEVOIR_IMAGE_RELATIVE_PATH = "./images/spacing/spacing-reservoir@3x.png";
|
|
18344
|
+
const SPACING_RESEVOIR_MULTI_ROW_IMAGE_RELATIVE_PATH = "./images/spacing/spacing-reservoir-multi-row@3x.png";
|
|
18345
|
+
const OFFSET_WELL_CIRCULAR_IMAGE_RELATIVE_PATH = "./images/offset/offset-well-circular@3x.png";
|
|
18346
|
+
const SPACING_WELL_CIRCULAR_IMAGE_RELATIVE_PATH = "./images/spacing/spacing-well-circular@3x.png";
|
|
18347
|
+
const OFFSET_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH = "./images/offset/offset-well-rectangular@3x.png";
|
|
18348
|
+
const SPACING_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH = "./images/spacing/spacing-well-rectangular@3x.png";
|
|
18349
|
+
const DEPTH_LENGTH_TIP_RACK_IMAGE_RELATIVE_PATH = "./images/depth/length-tip-rack@3x.png";
|
|
18350
|
+
const SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH = "./images/shape/shape-circular@3x.png";
|
|
18351
|
+
const DEPTH_PLATE_FLAT_IMAGE_RELATIVE_PATH = "./images/depth/depth-plate-flat@3x.png";
|
|
18352
|
+
const SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH = "./images/shape/shape-rectangular@3x.png";
|
|
18353
|
+
const DEPTH_PLATE_ROUND_IMAGE_RELATIVE_PATH = "./images/depth/depth-plate-round@3x.png";
|
|
18354
|
+
const DEPTH_PLATE_V_SHAPE_IMAGE_RELATIVE_PATH = "./images/depth/depth-plate-v@3x.png";
|
|
18355
|
+
const DEPTH_RESEVOIR_AND_TUBES_FLAT_IMAGE_RELATIVE_PATH = "./images/depth/depth-reservoir-and-tubes-flat@3x.png";
|
|
18356
|
+
const DEPTH_RESEVOIR_AND_TUBES_ROUND_IMAGE_RELATIVE_PATH = "./images/depth/depth-reservoir-and-tubes-round@3x.png";
|
|
18357
|
+
const DEPTH_RESEVOIR_AND_TUBES_V_SHAPE_IMAGE_RELATIVE_PATH = "./images/depth/depth-reservoir-and-tubes-v@3x.png";
|
|
18376
18358
|
const FOOTPRINT_DIAGRAMS = {
|
|
18377
18359
|
wellPlate: [
|
|
18378
|
-
new URL(
|
|
18379
|
-
new URL(
|
|
18380
|
-
"./images/dimensions/height-plate-and-reservoir@3x.png",
|
|
18381
|
-
import.meta.url
|
|
18382
|
-
).href
|
|
18360
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18361
|
+
new URL(DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18383
18362
|
],
|
|
18384
18363
|
tipRack: [
|
|
18385
|
-
new URL(
|
|
18386
|
-
new URL(
|
|
18364
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18365
|
+
new URL(DIMENSIONS_HEIGHT_TIP_RACK_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18387
18366
|
],
|
|
18388
18367
|
tubeRack: [
|
|
18389
|
-
new URL(
|
|
18390
|
-
new URL(
|
|
18368
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18369
|
+
new URL(DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18391
18370
|
],
|
|
18392
18371
|
reservoir: [
|
|
18393
|
-
new URL(
|
|
18394
|
-
new URL(
|
|
18395
|
-
"./images/dimensions/height-plate-and-reservoir@3x.png",
|
|
18396
|
-
import.meta.url
|
|
18397
|
-
).href
|
|
18372
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18373
|
+
new URL(DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18398
18374
|
],
|
|
18399
18375
|
irregular: [
|
|
18400
|
-
new URL(
|
|
18376
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18401
18377
|
new URL(
|
|
18402
|
-
|
|
18378
|
+
DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_IRREGULAR_RELATIVE_PATH,
|
|
18403
18379
|
import.meta.url
|
|
18404
18380
|
).href
|
|
18405
18381
|
],
|
|
18406
18382
|
adapter: [
|
|
18407
|
-
new URL(
|
|
18408
|
-
new URL(
|
|
18409
|
-
"./images/dimensions/height-plate-and-reservoir@3x.png",
|
|
18410
|
-
import.meta.url
|
|
18411
|
-
).href
|
|
18383
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18384
|
+
new URL(DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18412
18385
|
]
|
|
18413
18386
|
};
|
|
18414
18387
|
const ALUM_BLOCK_FOOTPRINTS = {
|
|
18415
18388
|
tubeRack: [
|
|
18416
|
-
new URL(
|
|
18417
|
-
new URL(
|
|
18418
|
-
"./images/dimensions/height-alum-block-tubes@3x.png",
|
|
18419
|
-
import.meta.url
|
|
18420
|
-
).href
|
|
18389
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18390
|
+
new URL(HEIGHT_ALUM_BLOCK_TUBES_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18421
18391
|
],
|
|
18422
18392
|
wellPlate: [
|
|
18423
|
-
new URL(
|
|
18424
|
-
new URL(
|
|
18425
|
-
"./images/dimensions/height-alum-block-plate@3x.png",
|
|
18426
|
-
import.meta.url
|
|
18427
|
-
).href
|
|
18393
|
+
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18394
|
+
new URL(HEIGHT_ALUM_BLOCK_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18428
18395
|
]
|
|
18429
18396
|
};
|
|
18430
18397
|
const RESERVOIR_SPACING_DIAGRAMS = {
|
|
18431
18398
|
singleRow: [
|
|
18432
|
-
new URL(
|
|
18433
|
-
new URL(
|
|
18399
|
+
new URL(OFFSET_RESEVOIR_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18400
|
+
new URL(SPACING_RESEVOIR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18434
18401
|
],
|
|
18435
18402
|
multiRow: [
|
|
18436
|
-
new URL(
|
|
18437
|
-
new URL(
|
|
18438
|
-
"./images/spacing/spacing-reservoir-multi-row@3x.png",
|
|
18439
|
-
import.meta.url
|
|
18440
|
-
).href
|
|
18403
|
+
new URL(OFFSET_RESEVOIR_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18404
|
+
new URL(SPACING_RESEVOIR_MULTI_ROW_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18441
18405
|
]
|
|
18442
18406
|
};
|
|
18443
18407
|
const SPACING_DIAGRAMS = {
|
|
18444
18408
|
circular: [
|
|
18445
|
-
new URL(
|
|
18446
|
-
new URL(
|
|
18409
|
+
new URL(OFFSET_WELL_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18410
|
+
new URL(SPACING_WELL_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18447
18411
|
],
|
|
18448
18412
|
rectangular: [
|
|
18449
|
-
new URL(
|
|
18450
|
-
new URL(
|
|
18413
|
+
new URL(OFFSET_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18414
|
+
new URL(SPACING_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18451
18415
|
]
|
|
18452
18416
|
};
|
|
18453
18417
|
const TIPRACK_MEASUREMENT_DIAGRAMS = [
|
|
18454
|
-
new URL(
|
|
18455
|
-
new URL(
|
|
18418
|
+
new URL(DEPTH_LENGTH_TIP_RACK_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18419
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18456
18420
|
];
|
|
18457
18421
|
const PLATE_MEASUREMENT_DIAGRAMS = {
|
|
18458
18422
|
flat: {
|
|
18459
18423
|
circular: [
|
|
18460
|
-
new URL(
|
|
18461
|
-
new URL(
|
|
18424
|
+
new URL(DEPTH_PLATE_FLAT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18425
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18462
18426
|
],
|
|
18463
18427
|
rectangular: [
|
|
18464
|
-
new URL(
|
|
18465
|
-
new URL(
|
|
18428
|
+
new URL(DEPTH_PLATE_FLAT_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18429
|
+
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18466
18430
|
]
|
|
18467
18431
|
},
|
|
18468
18432
|
u: {
|
|
18469
18433
|
circular: [
|
|
18470
|
-
new URL(
|
|
18471
|
-
new URL(
|
|
18434
|
+
new URL(DEPTH_PLATE_ROUND_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18435
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18472
18436
|
],
|
|
18473
18437
|
rectangular: [
|
|
18474
|
-
new URL(
|
|
18475
|
-
new URL(
|
|
18438
|
+
new URL(DEPTH_PLATE_ROUND_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18439
|
+
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18476
18440
|
]
|
|
18477
18441
|
},
|
|
18478
18442
|
v: {
|
|
18479
18443
|
circular: [
|
|
18480
|
-
new URL(
|
|
18481
|
-
new URL(
|
|
18444
|
+
new URL(DEPTH_PLATE_V_SHAPE_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18445
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18482
18446
|
],
|
|
18483
18447
|
rectangular: [
|
|
18484
|
-
new URL(
|
|
18485
|
-
new URL(
|
|
18448
|
+
new URL(DEPTH_PLATE_V_SHAPE_IMAGE_RELATIVE_PATH, import.meta.url).href,
|
|
18449
|
+
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18486
18450
|
]
|
|
18487
18451
|
}
|
|
18488
18452
|
};
|
|
@@ -18490,49 +18454,49 @@ const MEASUREMENT_DIAGRAMS = {
|
|
|
18490
18454
|
flat: {
|
|
18491
18455
|
circular: [
|
|
18492
18456
|
new URL(
|
|
18493
|
-
|
|
18457
|
+
DEPTH_RESEVOIR_AND_TUBES_FLAT_IMAGE_RELATIVE_PATH,
|
|
18494
18458
|
import.meta.url
|
|
18495
18459
|
).href,
|
|
18496
|
-
new URL(
|
|
18460
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18497
18461
|
],
|
|
18498
18462
|
rectangular: [
|
|
18499
18463
|
new URL(
|
|
18500
|
-
|
|
18464
|
+
DEPTH_RESEVOIR_AND_TUBES_FLAT_IMAGE_RELATIVE_PATH,
|
|
18501
18465
|
import.meta.url
|
|
18502
18466
|
).href,
|
|
18503
|
-
new URL(
|
|
18467
|
+
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18504
18468
|
]
|
|
18505
18469
|
},
|
|
18506
18470
|
u: {
|
|
18507
18471
|
circular: [
|
|
18508
18472
|
new URL(
|
|
18509
|
-
|
|
18473
|
+
DEPTH_RESEVOIR_AND_TUBES_ROUND_IMAGE_RELATIVE_PATH,
|
|
18510
18474
|
import.meta.url
|
|
18511
18475
|
).href,
|
|
18512
|
-
new URL(
|
|
18476
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18513
18477
|
],
|
|
18514
18478
|
rectangular: [
|
|
18515
18479
|
new URL(
|
|
18516
|
-
|
|
18480
|
+
DEPTH_RESEVOIR_AND_TUBES_ROUND_IMAGE_RELATIVE_PATH,
|
|
18517
18481
|
import.meta.url
|
|
18518
18482
|
).href,
|
|
18519
|
-
new URL(
|
|
18483
|
+
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18520
18484
|
]
|
|
18521
18485
|
},
|
|
18522
18486
|
v: {
|
|
18523
18487
|
circular: [
|
|
18524
18488
|
new URL(
|
|
18525
|
-
|
|
18489
|
+
DEPTH_RESEVOIR_AND_TUBES_V_SHAPE_IMAGE_RELATIVE_PATH,
|
|
18526
18490
|
import.meta.url
|
|
18527
18491
|
).href,
|
|
18528
|
-
new URL(
|
|
18492
|
+
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18529
18493
|
],
|
|
18530
18494
|
rectangular: [
|
|
18531
18495
|
new URL(
|
|
18532
|
-
|
|
18496
|
+
DEPTH_RESEVOIR_AND_TUBES_V_SHAPE_IMAGE_RELATIVE_PATH,
|
|
18533
18497
|
import.meta.url
|
|
18534
18498
|
).href,
|
|
18535
|
-
new URL(
|
|
18499
|
+
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href
|
|
18536
18500
|
]
|
|
18537
18501
|
}
|
|
18538
18502
|
};
|
|
@@ -18597,19 +18561,19 @@ function InstrumentDiagram(props) {
|
|
|
18597
18561
|
}
|
|
18598
18562
|
return /* @__PURE__ */ jsx(Flex, { className, transform: mount === "right" ? "scaleX(-1)" : "", filter: mount === "right" ? "FlipH" : "", ...styleProps2, alignItems: ALIGN_CENTER, justifyContent: JUSTIFY_CENTER, children: /* @__PURE__ */ jsx(_StyledImg, { src: channels === 96 ? ninetySixSrc : imgSrc, height: "100%", $_css: imageStyle }) });
|
|
18599
18563
|
}
|
|
18600
|
-
var _StyledImg =
|
|
18564
|
+
var _StyledImg = styled("img").withConfig({
|
|
18601
18565
|
displayName: "InstrumentDiagram___StyledImg",
|
|
18602
18566
|
componentId: "sc-1k3ew1b-0"
|
|
18603
18567
|
})(["", ""], (p) => p.$_css);
|
|
18604
|
-
const AlertPrimaryButton =
|
|
18568
|
+
const AlertPrimaryButton = styled(NewAlertPrimaryBtn).withConfig({
|
|
18605
18569
|
displayName: "AlertPrimaryButton",
|
|
18606
18570
|
componentId: "sc-oex82u-0"
|
|
18607
18571
|
})(["background-color:", ";border-radius:", ";padding-left:", ";padding-right:", ";text-transform:", ";box-shadow:0 0 0;", " ", " &:hover{box-shadow:0 0 0;background-color:", ";}&:disabled{background-color:", ";color:", ";}"], red50, borderRadius8, spacing16, spacing16, textTransformNone, pSemiBold, styleProps, red55, grey30, grey40);
|
|
18608
|
-
const PrimaryButton =
|
|
18572
|
+
const PrimaryButton = styled(NewPrimaryBtn).withConfig({
|
|
18609
18573
|
displayName: "PrimaryButton",
|
|
18610
18574
|
componentId: "sc-1bbed59-0"
|
|
18611
18575
|
})(["background-color:", ";border-radius:", ";box-shadow:none;padding-left:", ";padding-right:", ";line-height:", ";text-transform:", ";", " ", " &:hover,&:focus{background-color:", ";box-shadow:none;}&:focus-visible{box-shadow:0 0 0 3px ", ";}&:active{background-color:", ";}&:disabled{background-color:", ";color:", ";}"], blue50, borderRadius8, spacing16, spacing16, lineHeight20, textTransformNone, pSemiBold, styleProps, blue55, yellow50, blue60, grey30, grey40);
|
|
18612
|
-
const SecondaryButton =
|
|
18576
|
+
const SecondaryButton = styled.button.withConfig({
|
|
18613
18577
|
shouldForwardProp: (p) => isntStyleProp(p) && p !== "isDangerous"
|
|
18614
18578
|
}).withConfig({
|
|
18615
18579
|
displayName: "SecondaryButton",
|
|
@@ -18648,21 +18612,12 @@ function CheckboxField(props) {
|
|
|
18648
18612
|
/* @__PURE__ */ jsx(_StyledBox$1, { tabIndex, children: label })
|
|
18649
18613
|
] });
|
|
18650
18614
|
}
|
|
18651
|
-
var _StyledLabel =
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
var _StyledIcon$1 = _styled(Icon).withConfig({
|
|
18656
|
-
displayName: "CheckboxField___StyledIcon",
|
|
18657
|
-
componentId: "sc-z2lf4u-1"
|
|
18658
|
-
})(["", ""], (p) => p.$_css);
|
|
18659
|
-
var _StyledInput = _styled("input").withConfig({
|
|
18660
|
-
displayName: "CheckboxField___StyledInput",
|
|
18661
|
-
componentId: "sc-z2lf4u-2"
|
|
18662
|
-
})(["", ""], INPUT_STYLE);
|
|
18663
|
-
var _StyledBox$1 = _styled(Box).withConfig({
|
|
18615
|
+
var _StyledLabel = styled("label")`${OUTER_STYLE}`;
|
|
18616
|
+
var _StyledIcon$1 = styled(Icon)`${(p) => p.$_css}`;
|
|
18617
|
+
var _StyledInput = styled("input")`${INPUT_STYLE}`;
|
|
18618
|
+
var _StyledBox$1 = styled(Box).withConfig({
|
|
18664
18619
|
displayName: "CheckboxField___StyledBox",
|
|
18665
|
-
componentId: "sc-z2lf4u-
|
|
18620
|
+
componentId: "sc-z2lf4u-0"
|
|
18666
18621
|
})(["", ""], LABEL_TEXT_STYLE);
|
|
18667
18622
|
const CHIP_PROPS_BY_TYPE = {
|
|
18668
18623
|
basic: {
|
|
@@ -18725,17 +18680,11 @@ function Chip(props) {
|
|
|
18725
18680
|
}
|
|
18726
18681
|
const WEB_MEDIUM_TEXT_STYLE = css(["font-size:", ";line-height:", ";font-weight:", ";"], fontSizeH4, lineHeight20, fontWeightSemiBold);
|
|
18727
18682
|
const WEB_SMALL_TEXT_STYLE = css(["font-size:", ";line-height:", ";font-weight:", ";"], fontSizeLabel, lineHeight12, fontWeightSemiBold);
|
|
18728
|
-
var _StyledFlex =
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
})(["", ""], (p) => p.$_css);
|
|
18732
|
-
var _StyledIcon = _styled(Icon).withConfig({
|
|
18733
|
-
displayName: "Chip___StyledIcon",
|
|
18734
|
-
componentId: "sc-6cb56h-1"
|
|
18735
|
-
})(["", ""], (p) => p.$_css2);
|
|
18736
|
-
var _StyledStyledText = _styled(StyledText).withConfig({
|
|
18683
|
+
var _StyledFlex = styled(Flex)`${(p) => p.$_css}`;
|
|
18684
|
+
var _StyledIcon = styled(Icon)`${(p) => p.$_css2}`;
|
|
18685
|
+
var _StyledStyledText = styled(StyledText).withConfig({
|
|
18737
18686
|
displayName: "Chip___StyledStyledText",
|
|
18738
|
-
componentId: "sc-6cb56h-
|
|
18687
|
+
componentId: "sc-6cb56h-0"
|
|
18739
18688
|
})(["", ""], (p) => p.$_css3);
|
|
18740
18689
|
const StepMeter = (props) => {
|
|
18741
18690
|
const {
|
|
@@ -18750,13 +18699,10 @@ const StepMeter = (props) => {
|
|
|
18750
18699
|
const StepMeterBar = css(["position:", ";top:0;height:100%;background-color:", ";width:", ";webkit-transition:width 0.5s ease-in-out;moz-transition:width 0.5s ease-in-out;o-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out;"], POSITION_ABSOLUTE, blue50, percentComplete);
|
|
18751
18700
|
return /* @__PURE__ */ jsx(_StyledBox, { "data-testid": "StepMeter_StepMeterContainer", ...styleProps2, $_css: StepMeterContainer, children: /* @__PURE__ */ jsx(_StyledBox2, { "data-testid": "StepMeter_StepMeterBar", $_css2: StepMeterBar }) });
|
|
18752
18701
|
};
|
|
18753
|
-
var _StyledBox =
|
|
18754
|
-
|
|
18755
|
-
componentId: "sc-1lyj6st-0"
|
|
18756
|
-
})(["", ""], (p) => p.$_css);
|
|
18757
|
-
var _StyledBox2 = _styled(Box).withConfig({
|
|
18702
|
+
var _StyledBox = styled(Box)`${(p) => p.$_css}`;
|
|
18703
|
+
var _StyledBox2 = styled(Box).withConfig({
|
|
18758
18704
|
displayName: "StepMeter___StyledBox2",
|
|
18759
|
-
componentId: "sc-1lyj6st-
|
|
18705
|
+
componentId: "sc-1lyj6st-0"
|
|
18760
18706
|
})(["", ""], (p) => p.$_css2);
|
|
18761
18707
|
const pipette_group = "_pipette_group_df8d3_3";
|
|
18762
18708
|
const right$1 = "_right_df8d3_12";
|
|
@@ -19283,7 +19229,7 @@ function Card(props) {
|
|
|
19283
19229
|
children
|
|
19284
19230
|
] });
|
|
19285
19231
|
}
|
|
19286
|
-
const Section =
|
|
19232
|
+
const Section = styled.section.withConfig({
|
|
19287
19233
|
shouldForwardProp: isntStyleProp
|
|
19288
19234
|
}).withConfig({
|
|
19289
19235
|
displayName: "Card__Section",
|
|
@@ -19291,7 +19237,7 @@ const Section = _styled.section.withConfig({
|
|
|
19291
19237
|
})(["font-size:", ";position:relative;overflow:visible;box-shadow:0 1px 2px 0 rgba(0,0,0,0.33);", " ", ""], FONT_SIZE_BODY_2, ({
|
|
19292
19238
|
disabled: disabled2
|
|
19293
19239
|
}) => disabled2 && css(["pointer-events:none;background-color:transparent;& *{color:", ";fill:", ";background-color:transparent;}"], C_FONT_DISABLED, C_FONT_DISABLED), styleProps);
|
|
19294
|
-
const Title =
|
|
19240
|
+
const Title = styled.h3.withConfig({
|
|
19295
19241
|
displayName: "Card__Title",
|
|
19296
19242
|
componentId: "sc-r4iqug-1"
|
|
19297
19243
|
})(["", " font-weight:", ";margin:0;padding:", " ", " 0;text-transform:capitalize;"], FONT_HEADER_DARK, FONT_WEIGHT_REGULAR, SPACING_3, SPACING_3);
|
|
@@ -19373,27 +19319,27 @@ function ModalShell(props) {
|
|
|
19373
19319
|
footer != null ? /* @__PURE__ */ jsx(Footer, { children: footer }) : null
|
|
19374
19320
|
] }) }) });
|
|
19375
19321
|
}
|
|
19376
|
-
const Overlay =
|
|
19322
|
+
const Overlay = styled.div.withConfig({
|
|
19377
19323
|
displayName: "ModalShell__Overlay",
|
|
19378
19324
|
componentId: "sc-1far9wb-0"
|
|
19379
19325
|
})(["position:", ";left:0;right:0;top:0;bottom:0;z-index:1;background-color:", "", ";cursor:default;"], POSITION_FIXED, black90, opacity60HexCode);
|
|
19380
|
-
const ContentArea =
|
|
19326
|
+
const ContentArea = styled.div.withConfig({
|
|
19381
19327
|
displayName: "ModalShell__ContentArea",
|
|
19382
19328
|
componentId: "sc-1far9wb-1"
|
|
19383
19329
|
})(["display:flex;position:", ";align-items:", ";justify-content:", ";top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:", ";padding:", ";"], POSITION_ABSOLUTE, ALIGN_CENTER, JUSTIFY_CENTER, ({
|
|
19384
19330
|
zIndex
|
|
19385
19331
|
}) => zIndex, spacing16);
|
|
19386
|
-
const ModalArea =
|
|
19332
|
+
const ModalArea = styled.div.withConfig({
|
|
19387
19333
|
displayName: "ModalShell__ModalArea",
|
|
19388
19334
|
componentId: "sc-1far9wb-2"
|
|
19389
19335
|
})(["position:", ";overflow-y:", ";max-height:100%;width:100%;border-radius:", ";box-shadow:", ";height:", ";background-color:", ";", ";"], POSITION_RELATIVE, OVERFLOW_AUTO, borderRadius8, smallDropShadow, ({
|
|
19390
19336
|
isFullPage
|
|
19391
19337
|
}) => isFullPage ? "100%" : "auto", white, styleProps);
|
|
19392
|
-
const Footer =
|
|
19338
|
+
const Footer = styled.div.withConfig({
|
|
19393
19339
|
displayName: "ModalShell__Footer",
|
|
19394
19340
|
componentId: "sc-1far9wb-3"
|
|
19395
19341
|
})(["background-color:", ";position:", ";bottom:0;"], white, POSITION_STICKY);
|
|
19396
|
-
const Header =
|
|
19342
|
+
const Header = styled.div.withConfig({
|
|
19397
19343
|
displayName: "ModalShell__Header",
|
|
19398
19344
|
componentId: "sc-1far9wb-4"
|
|
19399
19345
|
})(["background-color:", ";position:", ";top:0;"], white, POSITION_STICKY);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentrons/components",
|
|
3
|
-
"version": "0.1.6-alpha.
|
|
3
|
+
"version": "0.1.6-alpha.6",
|
|
4
4
|
"description": "React components library for Opentrons' projects",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"style": "src/index.module.css",
|
|
8
|
-
"main": "lib/
|
|
8
|
+
"main": "lib/index.mjs",
|
|
9
9
|
"module": "src/index.ts",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@types/react-router-dom": "5.3.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@opentrons/shared-data": "0.1.6-alpha.
|
|
27
|
+
"@opentrons/shared-data": "0.1.6-alpha.6",
|
|
28
28
|
"@popperjs/core": "2.1.1",
|
|
29
29
|
"@react-spring/types": "9.6.1",
|
|
30
30
|
"@react-spring/web": "9.6.1",
|
|
@@ -35,8 +35,10 @@
|
|
|
35
35
|
"classnames": "2.2.5",
|
|
36
36
|
"interactjs": "^1.10.17",
|
|
37
37
|
"lodash": "4.17.21",
|
|
38
|
+
"react-i18next": "13.5.0",
|
|
38
39
|
"react-popper": "1.0.0",
|
|
39
40
|
"react-remove-scroll": "2.4.3",
|
|
41
|
+
"react-router-dom": "5.3.4",
|
|
40
42
|
"react-select": "5.4.0",
|
|
41
43
|
"redux": "4.0.5",
|
|
42
44
|
"styled-components": "5.3.6"
|