@opentrons/components 0.3.8-alpha.0 → 0.3.10-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/README.md +1 -1
- package/lib/atoms/Chip/index.d.ts +0 -1
- package/lib/atoms/FixedTrashText/index.d.ts +0 -1
- package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +0 -1
- package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +0 -1
- package/lib/atoms/Slider/index.d.ts +0 -1
- package/lib/atoms/Snackbar/index.d.ts +0 -1
- package/lib/atoms/StorageBar/index.d.ts +0 -1
- package/lib/atoms/Tag/index.d.ts +0 -1
- package/lib/atoms/Toast/index.d.ts +0 -1
- package/lib/atoms/buttons/EmptySelectorButton.d.ts +0 -1
- package/lib/atoms/buttons/{AltPrimaryButton.d.ts → PrimaryButton/AltPrimaryButton.d.ts} +1 -1
- package/lib/atoms/buttons/PrimaryButton/DefaultPrimaryButton.d.ts +2 -0
- package/lib/atoms/buttons/PrimaryButton/WarningPrimaryButton.d.ts +3 -0
- package/lib/atoms/buttons/PrimaryButton/index.d.ts +6 -0
- package/lib/atoms/buttons/index.d.ts +0 -1
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -1
- package/lib/buttons/FlatButton.d.ts +0 -1
- package/lib/buttons/IconButton.d.ts +0 -1
- package/lib/buttons/OutlineButton.d.ts +0 -1
- package/lib/forms/Select.d.ts +0 -1
- package/lib/hardware-sim/BaseDeck/StackedBadge.d.ts +0 -1
- package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -1
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -1
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/FlexStackerItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/HeaterShakerItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/MagneticBlockItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/StaticItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/TemperatureModuleItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/ThermocyclerItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/VacuumModuleItem.d.ts +0 -1
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigItem.d.ts +0 -1
- package/lib/hardware-sim/Labware/CalibrationBlockRender.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/GenericLid.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapterTypeB.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsVacuumManifoldCollar.d.ts +0 -1
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsVacuumManifoldSpacer.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Tips/InaccessibleTip.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Tips/NewTip.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Tips/TipStatus.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Tips/UsedTip.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Wells/EmptyWell.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Wells/SelectedWell.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/Wells/WellStatus.d.ts +0 -1
- package/lib/hardware-sim/Module/FlexStacker.d.ts +0 -1
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -1
- package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -1
- package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -1
- package/lib/hardware-sim/Module/PlateReader.d.ts +0 -1
- package/lib/hardware-sim/Module/Temperature.d.ts +0 -1
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -1
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -1
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -1
- package/lib/hardware-sim/Module/Vacuum.d.ts +0 -1
- package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -1
- package/lib/icons/ModuleIcon.d.ts +0 -1
- package/lib/icons/NotificationIcon.d.ts +0 -1
- package/lib/index.js +133 -135
- package/lib/index.mjs +6976 -6955
- package/lib/instrument/InstrumentDiagram.d.ts +0 -1
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -1
- package/lib/modals/ContinueModal.d.ts +0 -1
- package/lib/modals/SpinnerModal.d.ts +0 -1
- package/lib/molecules/Banner/index.d.ts +5 -0
- package/lib/molecules/DeckLabel/index.d.ts +0 -1
- package/lib/molecules/IconButton/index.d.ts +3 -1
- package/lib/molecules/InfoScreen/index.d.ts +0 -1
- package/lib/molecules/InputField/index.d.ts +0 -2
- package/lib/molecules/ParametersTable/index.d.ts +0 -1
- package/lib/molecules/ReleaseNotes/index.d.ts +0 -1
- package/lib/molecules/RobotInfoLabel/index.d.ts +0 -1
- package/lib/molecules/Tabs/index.d.ts +0 -1
- package/lib/molecules/TextAreaField/index.d.ts +0 -2
- package/lib/molecules/TimelineScrubber/TrackSlider.d.ts +0 -1
- package/lib/molecules/TimelineScrubber/index.d.ts +0 -1
- package/lib/molecules/TouchInputField/index.d.ts +0 -2
- package/lib/organisms/DeckLabelSet/index.d.ts +0 -1
- package/lib/organisms/LabwareDetailsWithCount/index.d.ts +0 -1
- package/lib/slotmap/OT2SlotMap.d.ts +0 -1
- package/lib/structure/Splash.d.ts +0 -1
- package/lib/style.css +1 -1
- package/lib/testing/utils/renderWithProviders.d.ts +3 -5
- package/package.json +13 -15
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -3
- package/lib/atoms/buttons/PrimaryButton.d.ts +0 -2
- package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +0 -1
- package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +0 -1
- package/lib/molecules/DeckInfoLabel/index.d.ts +0 -11
- package/lib/organisms/ProtocolTimelineScrubber/CommandItem.d.ts +0 -12
- package/lib/organisms/ProtocolTimelineScrubber/PipetteVisuals.d.ts +0 -25
- package/lib/organisms/ProtocolTimelineScrubber/index.d.ts +0 -10
- package/lib/organisms/ProtocolTimelineScrubber/types.d.ts +0 -2
- package/lib/organisms/ProtocolTimelineScrubber/utils.d.ts +0 -23
- package/lib/primitives/Buttons/NewSecondaryBtn.d.ts +0 -8
- package/lib/src/alerts/alerts.module.css +0 -103
- package/lib/src/atoms/StyledText/placeholderstyledtext.module.css +0 -26
- package/lib/src/buttons/buttons.module.css +0 -428
- package/lib/src/controls/styles.module.css +0 -103
- package/lib/src/forms/Select.module.css +0 -118
- package/lib/src/forms/SelectField.module.css +0 -16
- package/lib/src/forms/forms.module.css +0 -240
- package/lib/src/hardware-sim/BaseDeck/basedeck.module.css +0 -20
- package/lib/src/hardware-sim/Deck/deck.module.css +0 -54
- package/lib/src/hardware-sim/Labware/labware.module.css +0 -8
- package/lib/src/hardware-sim/RobotCoordinateSpace/robotcoordinatespace.module.css +0 -3
- package/lib/src/icons/icon.module.css +0 -10
- package/lib/src/index.module.css +0 -9
- package/lib/src/instrument/PipetteSelect.module.css +0 -14
- package/lib/src/legacy-hardware-sim/LabwareNameOverlay.module.css +0 -20
- package/lib/src/legacy-hardware-sim/ModuleItem.module.css +0 -98
- package/lib/src/lists/lists.module.css +0 -171
- package/lib/src/modals/modals.module.css +0 -275
- package/lib/src/molecules/DeckInfoLabel/deckinfolabel.module.css +0 -42
- package/lib/src/molecules/ReleaseNotes/styles.module.css +0 -66
- package/lib/src/nav/SidePanel.module.css +0 -34
- package/lib/src/slotmap/styles.module.css +0 -18
- package/lib/src/structure/Pill.module.css +0 -16
- package/lib/src/structure/Splash.module.css +0 -16
- package/lib/src/structure/structure.module.css +0 -114
- package/lib/src/styles/borders.module.css +0 -20
- package/lib/src/styles/colors.module.css +0 -58
- package/lib/src/styles/global.css +0 -179
- package/lib/src/styles/index.module.css +0 -8
- package/lib/src/styles/typography.module.css +0 -23
- package/lib/src/tooltips/tooltips.module.css +0 -72
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { CompletedProtocolAnalysis, LabwareDefinition, ProtocolAnalysisOutput, RunTimeCommand } from '@opentrons/shared-data';
|
|
2
|
-
import type { LabwareEntities, LocationLiquidState, SingleLabwareLiquidState, TimelineFrame } from '@opentrons/step-generation';
|
|
3
|
-
import type { WellFill } from '../../hardware-sim';
|
|
4
|
-
import type { CommandTextData } from './types';
|
|
5
|
-
export interface WellContents {
|
|
6
|
-
groupIds: string[];
|
|
7
|
-
ingreds: LocationLiquidState;
|
|
8
|
-
highlighted?: boolean;
|
|
9
|
-
selected?: boolean;
|
|
10
|
-
maxVolume?: number;
|
|
11
|
-
wellName?: string;
|
|
12
|
-
}
|
|
13
|
-
interface WellContentsByLabware {
|
|
14
|
-
[labwareId: string]: ContentsByWell;
|
|
15
|
-
}
|
|
16
|
-
export type ContentsByWell = {
|
|
17
|
-
[wellName: string]: WellContents;
|
|
18
|
-
} | null;
|
|
19
|
-
export declare function _wellContentsForLabware(labwareLiquids: SingleLabwareLiquidState, labwareDef: LabwareDefinition): ContentsByWell;
|
|
20
|
-
export declare const wellFillFromWellContents: (wellContents: ContentsByWell, displayColors: string[]) => WellFill;
|
|
21
|
-
export declare function getAllWellContentsForActiveItem(labwareEntities: LabwareEntities, robotState: TimelineFrame): WellContentsByLabware | null;
|
|
22
|
-
export declare function getCommandTextData(protocolData: CompletedProtocolAnalysis | ProtocolAnalysisOutput, protocolCommands?: RunTimeCommand[]): CommandTextData;
|
|
23
|
-
export {};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
@import '../index.module.css';
|
|
2
|
-
|
|
3
|
-
.alert {
|
|
4
|
-
font-size: var(--fs-body-2);
|
|
5
|
-
font-weight: var(--fw-regular);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.alert:not(:first-of-type) {
|
|
9
|
-
border-top: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.title_bar {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
padding: 0.5rem 1rem;
|
|
18
|
-
font-weight: var(--fw-semibold);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.title {
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.success {
|
|
26
|
-
border: 1px solid var(--c-success);
|
|
27
|
-
|
|
28
|
-
& > .title_bar {
|
|
29
|
-
background-color: var(--c-bg-success);
|
|
30
|
-
color: var(--c-success);
|
|
31
|
-
|
|
32
|
-
& svg {
|
|
33
|
-
color: var(--c-success);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.info {
|
|
39
|
-
border: 1px solid var(--c-highlight);
|
|
40
|
-
|
|
41
|
-
& > .title_bar {
|
|
42
|
-
background-color: var(--c-bg-selected);
|
|
43
|
-
color: var(--c-selected-dark);
|
|
44
|
-
|
|
45
|
-
& svg {
|
|
46
|
-
color: var(--c-highlight);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.warning {
|
|
52
|
-
border: 1px solid var(--c-warning);
|
|
53
|
-
|
|
54
|
-
& > .title_bar {
|
|
55
|
-
background-color: var(--c-warning-light);
|
|
56
|
-
color: var(--c-warning-dark);
|
|
57
|
-
|
|
58
|
-
& svg {
|
|
59
|
-
fill: var(--c-warning);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.error {
|
|
65
|
-
border: 1px solid var(--c-error);
|
|
66
|
-
|
|
67
|
-
& > .title_bar {
|
|
68
|
-
background-color: var(--c-error-light);
|
|
69
|
-
color: var(--c-error-dark);
|
|
70
|
-
|
|
71
|
-
& svg {
|
|
72
|
-
fill: var(--c-error);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.message {
|
|
78
|
-
padding: 1rem 3rem;
|
|
79
|
-
background-color: white;
|
|
80
|
-
|
|
81
|
-
& a {
|
|
82
|
-
color: inherit;
|
|
83
|
-
text-decoration: underline;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:empty {
|
|
87
|
-
padding: 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.icon {
|
|
92
|
-
width: 1.5rem;
|
|
93
|
-
margin-right: 0.5rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.close {
|
|
97
|
-
width: 2rem;
|
|
98
|
-
padding: 0.125rem;
|
|
99
|
-
|
|
100
|
-
&:hover {
|
|
101
|
-
background-color: rgba(100, 100, 100, 0.1);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@media not all and (width: 1024px) and (height: 600px) {
|
|
2
|
-
.heading_small_bold {
|
|
3
|
-
font-size: 1.125rem;
|
|
4
|
-
font-weight: var(--font-weight-bold);
|
|
5
|
-
line-height: var(--line-height-24);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.caption_bold {
|
|
9
|
-
font-size: 0.75rem;
|
|
10
|
-
font-weight: var(--font-weight-bold);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.body_default_semi_bold {
|
|
14
|
-
font-size: var(--font-size-16);
|
|
15
|
-
font-weight: var(--font-weight-semi-bold);
|
|
16
|
-
line-height: var(--line-height-24);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@media (width: 1024px) and (height: 600px) {
|
|
21
|
-
.small_body_text_bold {
|
|
22
|
-
font-size: var(--font-size-20);
|
|
23
|
-
font-weight: var(--font-weight-bold);
|
|
24
|
-
line-height: var(--font-height-24);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
/* button styling */
|
|
2
|
-
@import '../index.module.css';
|
|
3
|
-
|
|
4
|
-
:root {
|
|
5
|
-
--button-pad: 0.5rem;
|
|
6
|
-
|
|
7
|
-
--button-inverted: {
|
|
8
|
-
border-color: var(--c-font-light);
|
|
9
|
-
|
|
10
|
-
/* VVV from legacy --button-inverted VVV */
|
|
11
|
-
color: var(--c-font-light);
|
|
12
|
-
|
|
13
|
-
&:active {
|
|
14
|
-
background-color: color-mod(var(--c-bg-dark) tint(10%));
|
|
15
|
-
font-weight: var(--fw-regular);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:focus {
|
|
19
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:disabled,
|
|
27
|
-
&.disabled {
|
|
28
|
-
/* from legacy --button-disabled */
|
|
29
|
-
border-color: var(--c-font-disabled);
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
|
|
32
|
-
/* from legacy --button-disabled */
|
|
33
|
-
color: var(--c-font-disabled);
|
|
34
|
-
|
|
35
|
-
/* from legacy --button-disabled */
|
|
36
|
-
cursor: default;
|
|
37
|
-
|
|
38
|
-
/* from legacy --button-disabled */
|
|
39
|
-
fill: var(--c-font-disabled);
|
|
40
|
-
|
|
41
|
-
/* from legacy --button-disabled */
|
|
42
|
-
font-weight: normal;
|
|
43
|
-
|
|
44
|
-
/* from legacy --button-disabled */
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
|
|
47
|
-
/* from legacy --button-disabled */
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.hover {
|
|
51
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* TODO(ka, 2017-2-14): standardize primary button vars */
|
|
59
|
-
|
|
60
|
-
.button_primary {
|
|
61
|
-
position: relative;
|
|
62
|
-
|
|
63
|
-
/* VVV from legacy --button-default VVV */
|
|
64
|
-
display: inline-block;
|
|
65
|
-
|
|
66
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
67
|
-
|
|
68
|
-
width: 100%;
|
|
69
|
-
padding: var(--button-pad);
|
|
70
|
-
border: none;
|
|
71
|
-
border-radius: var(--bd-radius-default);
|
|
72
|
-
background: transparent;
|
|
73
|
-
background-color: var(--c-bg-dark);
|
|
74
|
-
|
|
75
|
-
/* TODO(mc, 2017-12-07): pull shadows out to central file */
|
|
76
|
-
box-shadow:
|
|
77
|
-
0 0 2px rgba(0, 0, 0, 0.12),
|
|
78
|
-
0 2px 2px rgba(0, 0, 0, 0.24);
|
|
79
|
-
color: var(--c-font-light);
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
font-size: var(--fs-body-2);
|
|
82
|
-
font-weight: var(--fw-semibold);
|
|
83
|
-
line-height: 1.4;
|
|
84
|
-
text-align: center;
|
|
85
|
-
text-decoration: none;
|
|
86
|
-
text-transform: uppercase;
|
|
87
|
-
|
|
88
|
-
&:focus {
|
|
89
|
-
background-color: color-mod(var(--c-bg-dark) shade(30%));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:hover {
|
|
93
|
-
background-color: color-mod(var(--c-bg-dark) shade(30%));
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&.hover {
|
|
97
|
-
background-color: color-mod(var(--c-bg-dark) shade(30%));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:active {
|
|
101
|
-
background-color: color-mod(var(--c-bg-dark) tint(30%));
|
|
102
|
-
|
|
103
|
-
/* TODO(mc, 2017-12-07): pull shadows out to central file */
|
|
104
|
-
box-shadow:
|
|
105
|
-
0 0 8px rgba(0, 0, 0, 0.12),
|
|
106
|
-
0 8px 8px rgba(0, 0, 0, 0.24);
|
|
107
|
-
font-weight: var(--fw-regular);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&.inverted {
|
|
111
|
-
background-color: var(--c-bg-light);
|
|
112
|
-
color: var(--c-font-dark);
|
|
113
|
-
|
|
114
|
-
&:focus,
|
|
115
|
-
&:hover,
|
|
116
|
-
&.hover {
|
|
117
|
-
background-color: color-mod(var(--c-bg-light) shade(5%));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&:active {
|
|
121
|
-
background-color: color-mod(var(--c-bg-light) shade(10%));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&:disabled,
|
|
126
|
-
&.disabled {
|
|
127
|
-
/* from legacy --button-disabled */
|
|
128
|
-
border-color: var(--c-font-disabled);
|
|
129
|
-
|
|
130
|
-
/* from legacy --button-disabled */
|
|
131
|
-
|
|
132
|
-
background-color: color-mod(var(--c-bg-dark) tint(70%));
|
|
133
|
-
box-shadow: none;
|
|
134
|
-
color: var(--c-font-disabled);
|
|
135
|
-
|
|
136
|
-
/* from legacy --button-disabled */
|
|
137
|
-
cursor: default;
|
|
138
|
-
|
|
139
|
-
/* from legacy --button-disabled */
|
|
140
|
-
fill: var(--c-font-disabled);
|
|
141
|
-
|
|
142
|
-
/* from legacy --button-disabled */
|
|
143
|
-
font-weight: normal;
|
|
144
|
-
|
|
145
|
-
/* from legacy --button-disabled */
|
|
146
|
-
pointer-events: none;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.button_flat {
|
|
151
|
-
position: relative;
|
|
152
|
-
|
|
153
|
-
/* VVV from legacy --button-default VVV */
|
|
154
|
-
display: inline-block;
|
|
155
|
-
|
|
156
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
157
|
-
|
|
158
|
-
width: 9rem;
|
|
159
|
-
padding: var(--button-pad);
|
|
160
|
-
border: none;
|
|
161
|
-
border-radius: var(--bd-radius-default);
|
|
162
|
-
background: transparent;
|
|
163
|
-
color: var(--c-font-dark);
|
|
164
|
-
cursor: pointer;
|
|
165
|
-
font-size: var(--fs-body-2);
|
|
166
|
-
font-weight: var(--fw-semibold);
|
|
167
|
-
line-height: 1.4;
|
|
168
|
-
text-align: center;
|
|
169
|
-
text-decoration: none;
|
|
170
|
-
text-transform: uppercase;
|
|
171
|
-
|
|
172
|
-
&:active {
|
|
173
|
-
background-color: color-mod(var(--c-bg-light) shade(10%));
|
|
174
|
-
font-weight: var(--fw-regular);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:disabled,
|
|
178
|
-
&.disabled {
|
|
179
|
-
/* from legacy --button-disabled */
|
|
180
|
-
border-color: var(--c-font-disabled);
|
|
181
|
-
background-color: transparent;
|
|
182
|
-
|
|
183
|
-
/* from legacy --button-disabled */
|
|
184
|
-
color: var(--c-font-disabled);
|
|
185
|
-
|
|
186
|
-
/* from legacy --button-disabled */
|
|
187
|
-
cursor: default;
|
|
188
|
-
|
|
189
|
-
/* from legacy --button-disabled */
|
|
190
|
-
fill: var(--c-font-disabled);
|
|
191
|
-
|
|
192
|
-
/* from legacy --button-disabled */
|
|
193
|
-
font-weight: normal;
|
|
194
|
-
|
|
195
|
-
/* from legacy --button-disabled */
|
|
196
|
-
pointer-events: none;
|
|
197
|
-
|
|
198
|
-
/* from legacy --button-disabled */
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&:focus {
|
|
202
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&:hover {
|
|
206
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&.hover {
|
|
210
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
&.inverted {
|
|
214
|
-
border-color: var(--c-font-light);
|
|
215
|
-
|
|
216
|
-
/* VVV from legacy --button-inverted VVV */
|
|
217
|
-
color: var(--c-font-light);
|
|
218
|
-
|
|
219
|
-
&:active {
|
|
220
|
-
background-color: color-mod(var(--c-bg-dark) tint(10%));
|
|
221
|
-
font-weight: var(--fw-regular);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
&:disabled,
|
|
225
|
-
&.disabled {
|
|
226
|
-
/* from legacy --button-disabled */
|
|
227
|
-
border-color: var(--c-font-disabled);
|
|
228
|
-
background-color: transparent;
|
|
229
|
-
|
|
230
|
-
/* from legacy --button-disabled */
|
|
231
|
-
color: var(--c-font-disabled);
|
|
232
|
-
|
|
233
|
-
/* from legacy --button-disabled */
|
|
234
|
-
cursor: default;
|
|
235
|
-
|
|
236
|
-
/* from legacy --button-disabled */
|
|
237
|
-
fill: var(--c-font-disabled);
|
|
238
|
-
|
|
239
|
-
/* from legacy --button-disabled */
|
|
240
|
-
font-weight: normal;
|
|
241
|
-
|
|
242
|
-
/* from legacy --button-disabled */
|
|
243
|
-
pointer-events: none;
|
|
244
|
-
|
|
245
|
-
/* from legacy --button-disabled */
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
&:focus {
|
|
249
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
&:hover {
|
|
253
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
&.hover {
|
|
257
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.button_outline {
|
|
265
|
-
position: relative;
|
|
266
|
-
|
|
267
|
-
/* VVV from legacy --button-default VVV */
|
|
268
|
-
display: inline-block;
|
|
269
|
-
|
|
270
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
271
|
-
|
|
272
|
-
width: 9rem;
|
|
273
|
-
padding: var(--button-pad);
|
|
274
|
-
border: 1px solid var(--c-font-dark);
|
|
275
|
-
border-radius: var(--bd-radius-default);
|
|
276
|
-
background: transparent;
|
|
277
|
-
color: var(--c-font-dark);
|
|
278
|
-
cursor: pointer;
|
|
279
|
-
font-size: var(--fs-body-2);
|
|
280
|
-
font-weight: var(--fw-semibold);
|
|
281
|
-
line-height: 1.4;
|
|
282
|
-
text-align: center;
|
|
283
|
-
text-decoration: none;
|
|
284
|
-
text-transform: uppercase;
|
|
285
|
-
|
|
286
|
-
&:active {
|
|
287
|
-
background-color: color-mod(var(--c-bg-light) shade(10%));
|
|
288
|
-
font-weight: var(--fw-regular);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&:disabled,
|
|
292
|
-
&.disabled {
|
|
293
|
-
/* from legacy --button-disabled */
|
|
294
|
-
border-color: var(--c-font-disabled);
|
|
295
|
-
background-color: transparent;
|
|
296
|
-
|
|
297
|
-
/* from legacy --button-disabled */
|
|
298
|
-
color: var(--c-font-disabled);
|
|
299
|
-
|
|
300
|
-
/* from legacy --button-disabled */
|
|
301
|
-
cursor: default;
|
|
302
|
-
|
|
303
|
-
/* from legacy --button-disabled */
|
|
304
|
-
fill: var(--c-font-disabled);
|
|
305
|
-
|
|
306
|
-
/* from legacy --button-disabled */
|
|
307
|
-
font-weight: normal;
|
|
308
|
-
|
|
309
|
-
/* from legacy --button-disabled */
|
|
310
|
-
pointer-events: none;
|
|
311
|
-
|
|
312
|
-
/* from legacy --button-disabled */
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
&:focus {
|
|
316
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&:hover {
|
|
320
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&.hover {
|
|
324
|
-
background-color: color-mod(var(--c-med-gray) alpha(25%));
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
&.inverted {
|
|
328
|
-
border-color: var(--c-font-light);
|
|
329
|
-
|
|
330
|
-
/* VVV from legacy --button-inverted VVV */
|
|
331
|
-
color: var(--c-font-light);
|
|
332
|
-
|
|
333
|
-
&:active {
|
|
334
|
-
background-color: color-mod(var(--c-bg-dark) tint(10%));
|
|
335
|
-
font-weight: var(--fw-regular);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
&:disabled,
|
|
339
|
-
&.disabled {
|
|
340
|
-
/* from legacy --button-disabled */
|
|
341
|
-
border-color: var(--c-font-disabled);
|
|
342
|
-
background-color: transparent;
|
|
343
|
-
|
|
344
|
-
/* from legacy --button-disabled */
|
|
345
|
-
color: var(--c-font-disabled);
|
|
346
|
-
|
|
347
|
-
/* from legacy --button-disabled */
|
|
348
|
-
cursor: default;
|
|
349
|
-
|
|
350
|
-
/* from legacy --button-disabled */
|
|
351
|
-
fill: var(--c-font-disabled);
|
|
352
|
-
|
|
353
|
-
/* from legacy --button-disabled */
|
|
354
|
-
font-weight: normal;
|
|
355
|
-
|
|
356
|
-
/* from legacy --button-disabled */
|
|
357
|
-
pointer-events: none;
|
|
358
|
-
|
|
359
|
-
/* from legacy --button-disabled */
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&:focus {
|
|
363
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
&:hover {
|
|
367
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
&.hover {
|
|
371
|
-
background-color: color-mod(var(--c-bg-dark) tint(5%));
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/* ^^^ from legacy --button-default ^^^ */
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/* style for IconButton */
|
|
379
|
-
|
|
380
|
-
.button_icon {
|
|
381
|
-
width: auto;
|
|
382
|
-
|
|
383
|
-
& > * {
|
|
384
|
-
display: block;
|
|
385
|
-
width: 100%;
|
|
386
|
-
height: 100%;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
&.inverted {
|
|
390
|
-
color: white;
|
|
391
|
-
fill: white;
|
|
392
|
-
|
|
393
|
-
/* TODO(mc, 2019-03-29): Is this correct? Our icons use only fill */
|
|
394
|
-
stroke: white;
|
|
395
|
-
|
|
396
|
-
&:disabled,
|
|
397
|
-
&.disabled {
|
|
398
|
-
/* from legacy --button-disabled */
|
|
399
|
-
border-color: var(--c-font-disabled);
|
|
400
|
-
background-color: transparent;
|
|
401
|
-
|
|
402
|
-
/* from legacy --button-disabled */
|
|
403
|
-
color: var(--c-font-disabled);
|
|
404
|
-
|
|
405
|
-
/* from legacy --button-disabled */
|
|
406
|
-
cursor: default;
|
|
407
|
-
|
|
408
|
-
/* from legacy --button-disabled */
|
|
409
|
-
fill: var(--c-font-disabled);
|
|
410
|
-
|
|
411
|
-
/* from legacy --button-disabled */
|
|
412
|
-
font-weight: normal;
|
|
413
|
-
|
|
414
|
-
/* from legacy --button-disabled */
|
|
415
|
-
pointer-events: none;
|
|
416
|
-
|
|
417
|
-
/* from legacy --button-disabled */
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/* style for the supplementary icon displayed by Button */
|
|
423
|
-
.icon {
|
|
424
|
-
position: absolute;
|
|
425
|
-
top: var(--button-pad);
|
|
426
|
-
left: var(--button-pad);
|
|
427
|
-
height: calc(100% - 2 * var(--button-pad));
|
|
428
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
@import '../index.module.css';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--mw-labeled-toggle: 25rem;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Toggle Button */
|
|
8
|
-
.toggled_on {
|
|
9
|
-
color: #0ec9eb;
|
|
10
|
-
fill: #0ec9eb;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.toggled_off {
|
|
14
|
-
fill: var(--c-dark-gray);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.labeled_control_wrapper {
|
|
18
|
-
display: block;
|
|
19
|
-
width: 100%;
|
|
20
|
-
padding: 1rem;
|
|
21
|
-
|
|
22
|
-
&:not(:last-child) {
|
|
23
|
-
border-bottom: 1px solid var(--c-light-gray);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.labeled_control {
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.stacked_labeled_control {
|
|
32
|
-
display: block;
|
|
33
|
-
margin-top: 0.5rem;
|
|
34
|
-
margin-left: 1rem;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.stacked_labeled_control_label {
|
|
38
|
-
display: inline-block;
|
|
39
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
40
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
41
|
-
font-weight: var(--fw-semibold);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.labeled_control_label {
|
|
45
|
-
display: inline-block;
|
|
46
|
-
max-width: var(--mw-labeled-toggle);
|
|
47
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
48
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
49
|
-
font-weight: var(--fw-semibold);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.labeled_toggle_button {
|
|
53
|
-
width: 2rem;
|
|
54
|
-
padding: 0;
|
|
55
|
-
margin-right: 1rem;
|
|
56
|
-
float: right;
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.labeled_button,
|
|
64
|
-
.labeled_select {
|
|
65
|
-
width: 9rem;
|
|
66
|
-
margin-top: 0.5rem;
|
|
67
|
-
float: right;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.labeled_select {
|
|
71
|
-
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
|
|
72
|
-
font-size: var(--fs-body-2); /* from legacy --font-body-2-dark */
|
|
73
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-2-dark */
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.labeled_checkbox {
|
|
77
|
-
float: right;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.stacked_control_info {
|
|
81
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
82
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
83
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
84
|
-
|
|
85
|
-
& > p {
|
|
86
|
-
margin-top: 0.5rem;
|
|
87
|
-
margin-bottom: 0;
|
|
88
|
-
line-height: 1.5;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.control_info {
|
|
93
|
-
max-width: var(--mw-labeled-toggle);
|
|
94
|
-
color: var(--c-font-dark); /* from legacy --font-body-1-dark */
|
|
95
|
-
font-size: var(--fs-body-1); /* from legacy --font-body-1-dark */
|
|
96
|
-
font-weight: var(--fw-regular); /* from legacy --font-body-1-dark */
|
|
97
|
-
|
|
98
|
-
& > p {
|
|
99
|
-
margin-top: 0.5rem;
|
|
100
|
-
margin-bottom: 0;
|
|
101
|
-
line-height: 1.5;
|
|
102
|
-
}
|
|
103
|
-
}
|