@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,240 @@
|
|
|
1
|
+
@import '../index.module.css';
|
|
2
|
+
|
|
3
|
+
.accessibly_hidden {
|
|
4
|
+
position: absolute;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
width: 1px;
|
|
7
|
+
height: 1px;
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: 0;
|
|
10
|
+
margin: -1px;
|
|
11
|
+
clip: rect(0 0 0 0);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.form_field {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
color: var(--c-font-dark); /* from legacy --font-form-default */
|
|
18
|
+
font-size: var(--fs-body-1); /* from legacy --font-form-default */
|
|
19
|
+
font-weight: var(--fw-regular); /* from legacy --font-form-default */
|
|
20
|
+
line-height: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label_text {
|
|
24
|
+
flex: 0 0 auto;
|
|
25
|
+
padding: 0 0.5rem;
|
|
26
|
+
|
|
27
|
+
&:empty {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.form_group_label {
|
|
33
|
+
margin-bottom: 0.15rem;
|
|
34
|
+
color: var(--c-font-dark); /* from legacy --font-form-default */
|
|
35
|
+
font-size: var(--fs-body-1); /* from legacy --font-form-default */
|
|
36
|
+
font-weight: var(--fw-semibold);
|
|
37
|
+
text-transform: capitalize;
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
content: ':';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.form_group_label_pipette_settings_slideout {
|
|
45
|
+
margin-bottom: 0.5rem;
|
|
46
|
+
color: #16212d;
|
|
47
|
+
font-size: 13px;
|
|
48
|
+
font-weight: var(--fw-semibold);
|
|
49
|
+
text-transform: capitalize;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.checkbox_icon {
|
|
53
|
+
display: flex;
|
|
54
|
+
|
|
55
|
+
/* Icon for radiobutton and for checkbox */
|
|
56
|
+
width: 1.25rem;
|
|
57
|
+
min-width: 1.25rem;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
color: var(--c-font-dark);
|
|
61
|
+
|
|
62
|
+
&:not(.checkbox_disabled):hover {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.error {
|
|
67
|
+
color: var(--c-warning-dark);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.checkbox_icon.checked {
|
|
72
|
+
color: var(--c-blue);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.toggle_icon {
|
|
76
|
+
/* Icon for radiobutton and for checkbox */
|
|
77
|
+
display: block;
|
|
78
|
+
width: 2rem;
|
|
79
|
+
min-width: 2rem;
|
|
80
|
+
color: var(--c-font-dark);
|
|
81
|
+
|
|
82
|
+
&:not(.toggle_disabled):hover {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dropdown_disabled,
|
|
88
|
+
.checkbox_disabled,
|
|
89
|
+
.toggle_disabled {
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.input_field_container {
|
|
94
|
+
width: 100%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.input_field {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex: 1 1;
|
|
100
|
+
padding: 0.25rem 0.25rem 0.25rem 0.5rem;
|
|
101
|
+
border-radius: var(--bd-radius-form-field);
|
|
102
|
+
background-color: var(--c-light-gray);
|
|
103
|
+
|
|
104
|
+
& input {
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 1rem;
|
|
107
|
+
flex: 1 1 auto;
|
|
108
|
+
border: none;
|
|
109
|
+
border-radius: inherit;
|
|
110
|
+
background-color: inherit;
|
|
111
|
+
color: var(--c-font-dark); /* from legacy --font-form-default */
|
|
112
|
+
font-size: var(--fs-body-1); /* from legacy --font-form-default */
|
|
113
|
+
font-weight: var(--fw-regular); /* from legacy --font-form-default */
|
|
114
|
+
|
|
115
|
+
/* TODO: Ian 2018-09-14 Firefox has 1px padding on input element,
|
|
116
|
+
* but I can't figure out how to fix it in Firefox without breaking it in Chrome.
|
|
117
|
+
* Better CSS reset for inputs needed?
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/* padding: 1px; */
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& input:focus {
|
|
124
|
+
outline: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
& input::placeholder {
|
|
128
|
+
color: var(--c-med-gray);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:focus-within {
|
|
132
|
+
background-color: var(--c-white);
|
|
133
|
+
box-shadow: 0 0.125rem 0.25rem 0 color-mod(var(--c-black) alpha(0.5));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& .suffix {
|
|
137
|
+
display: inline-block;
|
|
138
|
+
flex: 1 0;
|
|
139
|
+
align-self: center;
|
|
140
|
+
color: var(--c-font-dark); /* from legacy --font-form-default */
|
|
141
|
+
font-size: var(--fs-body-1); /* from legacy --font-form-default */
|
|
142
|
+
font-weight: var(--fw-semibold);
|
|
143
|
+
text-align: right;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.input_caption {
|
|
148
|
+
color: var(--c-med-gray); /* from legacy --font-form-caption */
|
|
149
|
+
font-size: var(--fs-caption); /* from legacy --font-form-caption */
|
|
150
|
+
font-weight: var(--fw-semibold); /* from legacy --font-form-caption */
|
|
151
|
+
line-height: 1.2;
|
|
152
|
+
|
|
153
|
+
& .right {
|
|
154
|
+
float: right;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.inline {
|
|
159
|
+
display: flex;
|
|
160
|
+
|
|
161
|
+
& .label_text {
|
|
162
|
+
padding-right: 1.5rem;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.inline_item {
|
|
167
|
+
flex: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.error div,
|
|
171
|
+
.error span {
|
|
172
|
+
color: var(--c-warning-dark);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.error select,
|
|
176
|
+
.error .input_field {
|
|
177
|
+
background-color: var(--c-warning-light);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.dropdown {
|
|
181
|
+
background-color: var(--c-light-gray);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.dropdown_field {
|
|
185
|
+
position: relative;
|
|
186
|
+
|
|
187
|
+
& select {
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: 1.5rem;
|
|
191
|
+
padding: 0.25rem 0.5rem;
|
|
192
|
+
border: 0;
|
|
193
|
+
border-radius: var(--bd-radius-form-field);
|
|
194
|
+
appearance: none;
|
|
195
|
+
color: var(--c-font-dark); /* from legacy --font-form-default */
|
|
196
|
+
font-family: inherit;
|
|
197
|
+
font-size: var(--fs-body-1); /* from legacy --font-form-default */
|
|
198
|
+
font-weight: var(--fw-regular); /* from legacy --font-form-default */
|
|
199
|
+
outline: none;
|
|
200
|
+
|
|
201
|
+
&:focus {
|
|
202
|
+
background-color: var(--c-white);
|
|
203
|
+
box-shadow: 0 0.125rem 0.25rem 0 color-mod(var(--c-black) alpha(0.5));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
& .dropdown_icon {
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 0.2rem;
|
|
210
|
+
right: 0.25rem;
|
|
211
|
+
width: 1.25rem;
|
|
212
|
+
pointer-events: none;
|
|
213
|
+
|
|
214
|
+
& svg {
|
|
215
|
+
color: var(--c-dark-gray);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.error_icon {
|
|
221
|
+
display: inline-block;
|
|
222
|
+
width: 1.5rem;
|
|
223
|
+
min-width: 1.5rem;
|
|
224
|
+
padding-right: 0.5rem;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.disabled {
|
|
228
|
+
/* Disable mouse interaction. NOTE: User can still tab to focus a field */
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
|
|
231
|
+
& .form_group_label {
|
|
232
|
+
color: var(--c-light-gray);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* stylelint-disable no-descending-specificity */
|
|
236
|
+
& input,
|
|
237
|
+
& .suffix {
|
|
238
|
+
color: var(--c-med-gray);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.waste_chute_copy_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
text-align: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.waste_chute_fixture_container {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
border-radius: 6px;
|
|
14
|
+
gap: var(--spacing-4);
|
|
15
|
+
padding-inline: var(--spacing-8);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.waste_chute_fixture_container_highlight {
|
|
19
|
+
border: 3px solid var(--blue-50);
|
|
20
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.deck_labels_column {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 2.5rem;
|
|
4
|
+
height: 100%;
|
|
5
|
+
flex: 1;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.deck_label_column_container {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.deck_labels_row {
|
|
17
|
+
display: flex;
|
|
18
|
+
width: var(--dynamic-width, 5rem); /* fallback if variable not set */
|
|
19
|
+
height: 2.5rem;
|
|
20
|
+
flex: 1;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.deck_label_row_container {
|
|
25
|
+
display: flex;
|
|
26
|
+
width: var(--dynamic-width);
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.robot_coords_foreign_object_container {
|
|
32
|
+
display: flex;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
transform: scale(1, -1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.trash_container {
|
|
39
|
+
display: flex;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
border-radius: var(--border-4);
|
|
45
|
+
gap: var(--spacing-8);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.trash_container_highlight {
|
|
49
|
+
border: 3px solid var(--blue-50);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.trash_container_rotate_copy {
|
|
53
|
+
transform-origin: center;
|
|
54
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import '../index.module.css';
|
|
2
|
+
|
|
3
|
+
.name_overlay {
|
|
4
|
+
width: 100%;
|
|
5
|
+
padding: 0.25rem;
|
|
6
|
+
border-radius: 0 0 0.5rem 0.5rem;
|
|
7
|
+
background-color: color-mod(var(--c-black) alpha(0.75));
|
|
8
|
+
color: var(--c-font-light);
|
|
9
|
+
font-size: 0.5rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.display_name {
|
|
13
|
+
color: var(--c-font-light);
|
|
14
|
+
font-weight: var(--fw-semibold);
|
|
15
|
+
overflow-wrap: break-word;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.deck_slot:active {
|
|
19
|
+
cursor: grabbing;
|
|
20
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
@import '../index.module.css';
|
|
2
|
+
|
|
3
|
+
.module {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
border-radius: 6px;
|
|
8
|
+
background-color: var(--c-black);
|
|
9
|
+
color: var(--c-black);
|
|
10
|
+
opacity: 0.9;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.module_review_icon {
|
|
14
|
+
width: 12px;
|
|
15
|
+
height: 12px;
|
|
16
|
+
margin: 0 0.25rem 0 0;
|
|
17
|
+
color: var(--c-white);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.module_review_icon_missing {
|
|
21
|
+
color: var(--c-red);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.module_review_icon_present {
|
|
25
|
+
color: var(--c-green);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.module_review_text {
|
|
29
|
+
margin-bottom: 0.75rem;
|
|
30
|
+
color: var(--c-white);
|
|
31
|
+
fill: currentColor;
|
|
32
|
+
font-size: 0.55rem;
|
|
33
|
+
font-weight: var(--fw-semibold);
|
|
34
|
+
text-transform: capitalize;
|
|
35
|
+
white-space: pre;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.module_name_overlay {
|
|
39
|
+
color: var(--c-black);
|
|
40
|
+
opacity: 0.7;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.module_connect_info_wrapper {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
color: var(--c-white);
|
|
47
|
+
font-size: 0.5rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.module_port_text {
|
|
51
|
+
color: var(--c-white);
|
|
52
|
+
fill: currentColor;
|
|
53
|
+
font-size: 0.65rem;
|
|
54
|
+
font-weight: var(--fw-semibold);
|
|
55
|
+
text-transform: uppercase;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.module_port_text_na {
|
|
59
|
+
color: var(--c-med-gray);
|
|
60
|
+
fill: currentColor;
|
|
61
|
+
font-size: 0.65rem;
|
|
62
|
+
font-weight: var(--fw-semibold);
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.module_wrapper {
|
|
67
|
+
display: flex;
|
|
68
|
+
width: 100%;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
align-items: flex-end;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
padding: 1.15rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.flipped_module_wrapper {
|
|
76
|
+
display: flex;
|
|
77
|
+
width: 100%;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: flex-start;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
padding: 1.15rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.module_name_text {
|
|
85
|
+
color: var(--c-white);
|
|
86
|
+
fill: currentColor;
|
|
87
|
+
font-size: 0.5rem;
|
|
88
|
+
font-weight: var(--fw-semibold);
|
|
89
|
+
text-transform: uppercase;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.flipped {
|
|
93
|
+
transform: rotate(180deg);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.right_icon {
|
|
97
|
+
margin: 0 0 0 1rem;
|
|
98
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
@import '../index.module.css';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--list-padding-large: 1rem;
|
|
5
|
+
--list-padding-small: 0.75rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.clickable {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.disabled {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
|
|
15
|
+
& * {
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
color: var(--c-font-disabled);
|
|
18
|
+
fill: var(--c-font-disabled);
|
|
19
|
+
outline-color: #eee;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.panel_group,
|
|
24
|
+
.titled_list,
|
|
25
|
+
.list_item {
|
|
26
|
+
background-color: white;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.panel_group {
|
|
30
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.33);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.hover_border {
|
|
34
|
+
outline: var(--bd-width-default) solid var(--c-highlight);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.header_text {
|
|
38
|
+
color: var(--c-font-disabled);
|
|
39
|
+
font-size: var(--fs-caption);
|
|
40
|
+
font-weight: var(--fw-semibold);
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
TODO(IL, 2021-07-30): when consumers of this class are migrated to CSS-in-JS, keep in mind
|
|
46
|
+
the meaning of .title_bar is vague, it is widely used by several unrelated components.
|
|
47
|
+
Also, it's almost the same as .titled_list_title_bar -- they are the same
|
|
48
|
+
except for flex-related rules.
|
|
49
|
+
*/
|
|
50
|
+
.title_bar {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
padding: var(--list-padding-large) var(--list-padding-small);
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Specifically for TitledList */
|
|
59
|
+
.titled_list_title_bar {
|
|
60
|
+
position: relative;
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
align-items: center;
|
|
64
|
+
padding: var(--list-padding-large) var(--list-padding-small);
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titled_list_selected {
|
|
69
|
+
& .title_bar {
|
|
70
|
+
background-color: var(--c-bg-selected);
|
|
71
|
+
|
|
72
|
+
& * {
|
|
73
|
+
color: var(--c-selected-dark);
|
|
74
|
+
font-weight: var(--fw-semibold);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.title {
|
|
80
|
+
margin: 0;
|
|
81
|
+
font-size: var(--fs-body-2);
|
|
82
|
+
font-weight: var(--fw-regular);
|
|
83
|
+
text-transform: uppercase;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.title_enabled {
|
|
87
|
+
color: var(--c-font-dark);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.title_disabled {
|
|
91
|
+
color: var(--c-font-disabled);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.title_bar_icon {
|
|
95
|
+
height: 1.5rem;
|
|
96
|
+
color: var(--c-font-dark);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.title_bar_error {
|
|
100
|
+
background-color: var(--c-error-light);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.icon_left_of_title {
|
|
104
|
+
height: 1.2rem;
|
|
105
|
+
margin-right: 0.5rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.icon_left_of_title_container {
|
|
109
|
+
display: flex;
|
|
110
|
+
justify-content: flex-start;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.title_bar_carat {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 0;
|
|
116
|
+
right: 0;
|
|
117
|
+
bottom: 0;
|
|
118
|
+
padding: calc(var(--list-padding-small) - var(--bd-width-default));
|
|
119
|
+
padding-top: 1rem;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
background-color: color-mod(var(--c-black) alpha(5%));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.list {
|
|
127
|
+
padding-left: 0;
|
|
128
|
+
margin: 0;
|
|
129
|
+
list-style-type: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.list_item {
|
|
133
|
+
display: flex;
|
|
134
|
+
width: 100%;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
align-items: center;
|
|
137
|
+
padding: var(--list-padding-small);
|
|
138
|
+
margin: 0;
|
|
139
|
+
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
140
|
+
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
141
|
+
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
142
|
+
line-height: 1.25;
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
background-color: var(--c-bg-hover);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.active {
|
|
149
|
+
background-color: var(--c-bg-selected);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
a.list_item {
|
|
154
|
+
text-decoration: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.list_alert {
|
|
158
|
+
width: 100%;
|
|
159
|
+
padding: var(--list-padding-small);
|
|
160
|
+
background-color: var(--c-bg-light);
|
|
161
|
+
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
162
|
+
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
163
|
+
font-style: italic;
|
|
164
|
+
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.item_icon {
|
|
168
|
+
height: calc(1.25 * var(--fs-body-1));
|
|
169
|
+
flex: none;
|
|
170
|
+
margin-right: 0.5rem;
|
|
171
|
+
}
|