@opentrons/components 0.1.5 → 0.1.6-alpha.2
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 +5 -8
- package/README.md +1 -15
- package/babel.config.cjs +21 -0
- package/lib/index.mjs +19869 -0
- package/package.json +6 -5
- package/tsconfig.json +2 -2
- package/typings/global.d.ts +0 -1
- package/vite.config.ts +57 -0
- package/lib/__tests__/utils.test.d.ts +0 -1
- package/lib/alerts/AlertItem.d.ts +0 -21
- package/lib/alerts/index.d.ts +0 -1
- package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +0 -1
- package/lib/atoms/CheckboxField/index.d.ts +0 -20
- package/lib/atoms/StepMeter/index.d.ts +0 -6
- package/lib/atoms/buttons/AlertPrimaryButton.d.ts +0 -2
- package/lib/atoms/buttons/PrimaryButton.d.ts +0 -2
- package/lib/atoms/buttons/SecondaryButton.d.ts +0 -7
- package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +0 -1
- package/lib/atoms/buttons/index.d.ts +0 -3
- package/lib/atoms/index.d.ts +0 -3
- package/lib/barrel.d.ts +0 -3
- package/lib/buttons/Button.d.ts +0 -49
- package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -9
- package/lib/buttons/FlatButton.d.ts +0 -6
- package/lib/buttons/IconButton.d.ts +0 -15
- package/lib/buttons/OutlineButton.d.ts +0 -9
- package/lib/buttons/index.d.ts +0 -5
- package/lib/controls/ControlInfo.d.ts +0 -6
- package/lib/controls/LabeledButton.d.ts +0 -8
- package/lib/controls/LabeledCheckbox.d.ts +0 -10
- package/lib/controls/LabeledControl.d.ts +0 -7
- package/lib/controls/LabeledRadioGroup.d.ts +0 -8
- package/lib/controls/LabeledSelect.d.ts +0 -9
- package/lib/controls/LabeledToggle.d.ts +0 -11
- package/lib/controls/StackedLabeledControl.d.ts +0 -7
- package/lib/controls/ToggleButton.d.ts +0 -6
- package/lib/controls/index.d.ts +0 -6
- package/lib/forms/DeprecatedCheckboxField.d.ts +0 -33
- package/lib/forms/DropdownField.d.ts +0 -38
- package/lib/forms/FormGroup.d.ts +0 -19
- package/lib/forms/InputField.d.ts +0 -51
- package/lib/forms/RadioGroup.d.ts +0 -29
- package/lib/forms/Select.d.ts +0 -27
- package/lib/forms/SelectField.d.ts +0 -33
- package/lib/forms/ToggleField.d.ts +0 -22
- package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +0 -0
- package/lib/forms/__tests__/DropdownField.test.d.ts +0 -0
- package/lib/forms/__tests__/InputField.test.d.ts +0 -0
- package/lib/forms/__tests__/Select.test.d.ts +0 -0
- package/lib/forms/__tests__/SelectField.test.d.ts +0 -0
- package/lib/forms/__tests__/ToggleField.test.d.ts +0 -0
- package/lib/forms/index.d.ts +0 -8
- package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +0 -42
- package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +0 -12
- package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +0 -2
- package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +0 -2
- package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +0 -13
- package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +0 -21
- package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +0 -14
- package/lib/hardware-sim/BaseDeck/__fixtures__/index.d.ts +0 -4
- package/lib/hardware-sim/BaseDeck/index.d.ts +0 -5
- package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -11
- package/lib/hardware-sim/Deck/FlexTrash.d.ts +0 -14
- package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +0 -17
- package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -11
- package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +0 -14
- package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +0 -12
- package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +0 -8
- package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +0 -21
- package/lib/hardware-sim/Deck/SlotLabels.d.ts +0 -12
- package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +0 -2
- package/lib/hardware-sim/Deck/constants.d.ts +0 -1
- package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +0 -2
- package/lib/hardware-sim/Deck/index.d.ts +0 -9
- package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -9
- package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +0 -9
- package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +0 -9
- package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +0 -10
- package/lib/hardware-sim/DeckConfigurator/constants.d.ts +0 -15
- package/lib/hardware-sim/DeckConfigurator/index.d.ts +0 -14
- package/lib/hardware-sim/DeckSlotLocation/index.d.ts +0 -15
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -2
- package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -2
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -2
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -2
- package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -2
- package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +0 -19
- package/lib/hardware-sim/Labware/LabwareRender.d.ts +0 -42
- package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/index.d.ts +0 -3
- package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +0 -10
- package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +0 -18
- package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +0 -17
- package/lib/hardware-sim/Labware/labwareInternals/StrokedWells.d.ts +0 -9
- package/lib/hardware-sim/Labware/labwareInternals/StyledWells.d.ts +0 -19
- package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +0 -19
- package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +0 -12
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +0 -1
- package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +0 -6
- package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +0 -12
- package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -5
- package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -2
- package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -2
- package/lib/hardware-sim/Module/ModuleTag.d.ts +0 -9
- package/lib/hardware-sim/Module/Temperature.d.ts +0 -5
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -7
- package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -7
- package/lib/hardware-sim/Module/Thermocycler/index.d.ts +0 -8
- package/lib/hardware-sim/Module/index.d.ts +0 -18
- package/lib/hardware-sim/Pipette/EightEmanatingNozzles.d.ts +0 -4
- package/lib/hardware-sim/Pipette/EmanatingNozzle.d.ts +0 -4
- package/lib/hardware-sim/Pipette/PipetteRender.d.ts +0 -8
- package/lib/hardware-sim/Pipette/__tests__/EightEmanatingNozzles.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/__tests__/EmanatingNozzle.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/__tests__/PipetteRender.test.d.ts +0 -1
- package/lib/hardware-sim/Pipette/constants.d.ts +0 -7
- package/lib/hardware-sim/Pipette/index.d.ts +0 -1
- package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +0 -6
- package/lib/hardware-sim/ProtocolDeck/index.d.ts +0 -12
- package/lib/hardware-sim/ProtocolDeck/types.d.ts +0 -8
- package/lib/hardware-sim/ProtocolDeck/utils/__tests__/getLabwareInforByLiquidId.test.d.ts +0 -1
- package/lib/hardware-sim/ProtocolDeck/utils/getInitiallyLoadedLabwareByAdapter.d.ts +0 -5
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInSlots.d.ts +0 -12
- package/lib/hardware-sim/ProtocolDeck/utils/getLabwareInfoByLiquidId.d.ts +0 -3
- package/lib/hardware-sim/ProtocolDeck/utils/getModulesInSlots.d.ts +0 -10
- package/lib/hardware-sim/ProtocolDeck/utils/getStandardDeckViewLayerBlockList.d.ts +0 -2
- package/lib/hardware-sim/ProtocolDeck/utils/getWellFillFromLabwareId.d.ts +0 -4
- package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +0 -2
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +0 -7
- package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +0 -19
- package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +0 -2
- package/lib/hardware-sim/index.d.ts +0 -11
- package/lib/hardware-sim/utils.d.ts +0 -3
- package/lib/helix-design-system/colors.d.ts +0 -75
- package/lib/helix-design-system/index.d.ts +0 -1
- package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +0 -0
- package/lib/hooks/__tests__/useDrag.test.d.ts +0 -1
- package/lib/hooks/__tests__/useIdle.test.d.ts +0 -1
- package/lib/hooks/__tests__/useInterval.test.d.ts +0 -0
- package/lib/hooks/__tests__/useLongPress.test.d.ts +0 -1
- package/lib/hooks/__tests__/useMountEffect.test.d.ts +0 -0
- package/lib/hooks/__tests__/usePrevious.test.d.ts +0 -0
- package/lib/hooks/__tests__/useScrolling.test.d.ts +0 -1
- package/lib/hooks/__tests__/useSwipe.test.d.ts +0 -1
- package/lib/hooks/__tests__/useTimeout.test.d.ts +0 -0
- package/lib/hooks/__tests__/useToggle.test.d.ts +0 -0
- package/lib/hooks/index.d.ts +0 -12
- package/lib/hooks/useConditionalConfirm.d.ts +0 -40
- package/lib/hooks/useDrag.d.ts +0 -22
- package/lib/hooks/useIdle.d.ts +0 -11
- package/lib/hooks/useInterval.d.ts +0 -11
- package/lib/hooks/useLongPress.d.ts +0 -19
- package/lib/hooks/useMountEffect.d.ts +0 -8
- package/lib/hooks/usePrevious.d.ts +0 -9
- package/lib/hooks/useScrolling.d.ts +0 -1
- package/lib/hooks/useSelectDeckLocation/index.d.ts +0 -20
- package/lib/hooks/useSwipe.d.ts +0 -12
- package/lib/hooks/useTimeout.d.ts +0 -9
- package/lib/hooks/useToggle.d.ts +0 -22
- package/lib/icons/Icon.d.ts +0 -34
- package/lib/icons/ModuleIcon.d.ts +0 -12
- package/lib/icons/NotificationIcon.d.ts +0 -13
- package/lib/icons/icon-data.d.ts +0 -582
- package/lib/icons/index.d.ts +0 -3
- package/lib/images/index.d.ts +0 -1
- package/lib/images/labware/index.d.ts +0 -1
- package/lib/images/labware/measurement-guide/index.d.ts +0 -13
- package/lib/index.d.ts +0 -28
- package/lib/instrument/InfoItem.d.ts +0 -11
- package/lib/instrument/InstrumentDiagram.d.ts +0 -12
- package/lib/instrument/InstrumentGroup.d.ts +0 -12
- package/lib/instrument/InstrumentInfo.d.ts +0 -24
- package/lib/instrument/PipetteSelect.d.ts +0 -20
- package/lib/instrument/__tests__/PipetteSelect.test.d.ts +0 -0
- package/lib/instrument/index.d.ts +0 -5
- package/lib/interaction-enhancers/ClickOutside.d.ts +0 -18
- package/lib/interaction-enhancers/HandleKeypress.d.ts +0 -27
- package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +0 -0
- package/lib/interaction-enhancers/index.d.ts +0 -4
- package/lib/interaction-enhancers/useHover.d.ts +0 -33
- package/lib/interaction-enhancers/useOnClickOutside.d.ts +0 -5
- package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -8
- package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -18
- package/lib/legacy-hardware-sim/index.d.ts +0 -2
- package/lib/lists/ListItem.d.ts +0 -37
- package/lib/lists/SidePanelGroup.d.ts +0 -18
- package/lib/lists/TitledList.d.ts +0 -44
- package/lib/lists/index.d.ts +0 -3
- package/lib/modals/AlertModal.d.ts +0 -27
- package/lib/modals/BaseModal.d.ts +0 -26
- package/lib/modals/ContinueModal.d.ts +0 -10
- package/lib/modals/Modal.d.ts +0 -23
- package/lib/modals/ModalPage.d.ts +0 -16
- package/lib/modals/ModalShell.d.ts +0 -25
- package/lib/modals/Overlay.d.ts +0 -9
- package/lib/modals/SpinnerModal.d.ts +0 -13
- package/lib/modals/SpinnerModalPage.d.ts +0 -11
- package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
- package/lib/modals/index.d.ts +0 -9
- package/lib/molecules/LocationIcon/__tests__/LocationIcon.test.d.ts +0 -1
- package/lib/molecules/LocationIcon/index.d.ts +0 -16
- package/lib/molecules/RoundTab.d.ts +0 -8
- package/lib/molecules/index.d.ts +0 -2
- package/lib/nav/SidePanel.d.ts +0 -6
- package/lib/nav/index.d.ts +0 -1
- package/lib/opentrons-components.js +0 -16
- package/lib/primitives/Box.d.ts +0 -7
- package/lib/primitives/Btn.d.ts +0 -61
- package/lib/primitives/Flex.d.ts +0 -7
- package/lib/primitives/ForeignObject.d.ts +0 -23
- package/lib/primitives/Link.d.ts +0 -11
- package/lib/primitives/Svg.d.ts +0 -23
- package/lib/primitives/Text.d.ts +0 -7
- package/lib/primitives/__tests__/Box.test.d.ts +0 -0
- package/lib/primitives/__tests__/Btn.test.d.ts +0 -0
- package/lib/primitives/__tests__/Flex.test.d.ts +0 -0
- package/lib/primitives/__tests__/Link.test.d.ts +0 -0
- package/lib/primitives/__tests__/Svg.test.d.ts +0 -0
- package/lib/primitives/__tests__/Text.test.d.ts +0 -0
- package/lib/primitives/__tests__/primitives.test.d.ts +0 -0
- package/lib/primitives/__tests__/style-props.test.d.ts +0 -0
- package/lib/primitives/index.d.ts +0 -9
- package/lib/primitives/style-props.d.ts +0 -4
- package/lib/primitives/types.d.ts +0 -96
- package/lib/robot-types.d.ts +0 -1
- package/lib/slotmap/SlotMap.d.ts +0 -12
- package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
- package/lib/slotmap/index.d.ts +0 -1
- package/lib/structure/Card.d.ts +0 -18
- package/lib/structure/LabeledValue.d.ts +0 -12
- package/lib/structure/PageTabs.d.ts +0 -12
- package/lib/structure/Pill.d.ts +0 -18
- package/lib/structure/Splash.d.ts +0 -9
- package/lib/structure/TitleBar.d.ts +0 -17
- package/lib/structure/index.d.ts +0 -6
- package/lib/styles/borders.d.ts +0 -8
- package/lib/styles/colors.d.ts +0 -37
- package/lib/styles/flexbox.d.ts +0 -28
- package/lib/styles/index.d.ts +0 -7
- package/lib/styles/layout.d.ts +0 -23
- package/lib/styles/position.d.ts +0 -5
- package/lib/styles/spacing.d.ts +0 -9
- package/lib/styles/typography.d.ts +0 -36
- package/lib/tabbedNav/NavTab.d.ts +0 -25
- package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
- package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
- package/lib/tabbedNav/index.d.ts +0 -3
- package/lib/testing/utils/index.d.ts +0 -2
- package/lib/testing/utils/matchers.d.ts +0 -6
- package/lib/testing/utils/renderWithProviders.d.ts +0 -10
- package/lib/tooltips/DeprecatedTooltip.d.ts +0 -37
- package/lib/tooltips/HoverTooltip.d.ts +0 -36
- package/lib/tooltips/Tooltip.d.ts +0 -35
- package/lib/tooltips/__tests__/Tooltip.test.d.ts +0 -0
- package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +0 -0
- package/lib/tooltips/__tests__/usePopper.test.d.ts +0 -0
- package/lib/tooltips/__tests__/useTooltip.test.d.ts +0 -0
- package/lib/tooltips/constants.d.ts +0 -17
- package/lib/tooltips/index.d.ts +0 -8
- package/lib/tooltips/styles.d.ts +0 -12
- package/lib/tooltips/types.d.ts +0 -52
- package/lib/tooltips/useHoverTooltip.d.ts +0 -24
- package/lib/tooltips/usePopper.d.ts +0 -2
- package/lib/tooltips/useTooltip.d.ts +0 -31
- package/lib/ui-style-constants/borders.d.ts +0 -18
- package/lib/ui-style-constants/index.d.ts +0 -4
- package/lib/ui-style-constants/responsiveness.d.ts +0 -2
- package/lib/ui-style-constants/spacing.d.ts +0 -17
- package/lib/ui-style-constants/typography.d.ts +0 -70
- package/lib/utils.d.ts +0 -15
- package/webpack.config.js +0 -38
package/Makefile
CHANGED
|
@@ -6,12 +6,9 @@ port ?= 6060
|
|
|
6
6
|
# These variables can be overriden when make is invoked to customize the
|
|
7
7
|
# behavior of jest
|
|
8
8
|
tests ?=
|
|
9
|
-
cov_opts ?= --coverage=true
|
|
9
|
+
cov_opts ?= --coverage=true
|
|
10
10
|
test_opts ?=
|
|
11
11
|
|
|
12
|
-
# override webpack's default hashing algorithm for node 18: https://github.com/webpack/webpack/issues/14532
|
|
13
|
-
export NODE_OPTIONS := --openssl-legacy-provider
|
|
14
|
-
|
|
15
12
|
# standard targets
|
|
16
13
|
#####################################################################
|
|
17
14
|
|
|
@@ -20,26 +17,26 @@ all: clean dist
|
|
|
20
17
|
|
|
21
18
|
.PHONY: clean
|
|
22
19
|
clean:
|
|
23
|
-
|
|
20
|
+
cd .. && yarn shx rm -rf storybook-static
|
|
24
21
|
|
|
25
22
|
# artifacts
|
|
26
23
|
#####################################################################
|
|
27
24
|
|
|
28
25
|
.PHONY: dist
|
|
29
26
|
dist:
|
|
30
|
-
yarn
|
|
27
|
+
cd .. && yarn sb build
|
|
31
28
|
|
|
32
29
|
.PHONY: lib
|
|
33
30
|
lib: export NODE_ENV := production
|
|
34
31
|
lib:
|
|
35
|
-
yarn
|
|
32
|
+
yarn vite build
|
|
36
33
|
|
|
37
34
|
# development
|
|
38
35
|
#####################################################################
|
|
39
36
|
|
|
40
37
|
.PHONY: dev
|
|
41
38
|
dev:
|
|
42
|
-
yarn
|
|
39
|
+
cd .. && yarn sb dev --port $(port)
|
|
43
40
|
|
|
44
41
|
.PHONY: test
|
|
45
42
|
test:
|
package/README.md
CHANGED
|
@@ -18,27 +18,13 @@ export default function CowButton(props) {
|
|
|
18
18
|
|
|
19
19
|
Usage requirements for dependent projects:
|
|
20
20
|
|
|
21
|
-
- Node
|
|
21
|
+
- Node v18 and yarn
|
|
22
22
|
- The following `dependencies` (peer dependencies of `@opentrons/components`)
|
|
23
23
|
- `react`: `17.0.1`,
|
|
24
24
|
- `react-router-dom`: `^4.2.2`,
|
|
25
25
|
- `classnames`: `^2.2.5`,
|
|
26
26
|
- `lodash`: `^4.17.4`
|
|
27
27
|
|
|
28
|
-
### new project setup (optional)
|
|
29
|
-
|
|
30
|
-
If you ever need to set up a new project in the monorepo that depends on the components library:
|
|
31
|
-
|
|
32
|
-
1. Add the new project to `workspaces` in the repository's `package.json`
|
|
33
|
-
2. Ensure the required peer dependencies (listed above) are also in `dependencies`
|
|
34
|
-
```shell
|
|
35
|
-
yarn workspace new-project add react@17.0.1 react-router-dom@^4.2.2 classnames@^2.2.5 lodash@^4.17.4
|
|
36
|
-
```
|
|
37
|
-
3. Add `@opentrons/components` at the current version to `dependencies` in the new project's `package.json`
|
|
38
|
-
4. Run `yarn`
|
|
39
|
-
|
|
40
|
-
If you use the base webpack config in `@opentrons/webpack-config`, the project should import and bundle components from the components library correctly.
|
|
41
|
-
|
|
42
28
|
## contributing
|
|
43
29
|
|
|
44
30
|
Make sure you have read the top-level [Contributing Guide][contributing].
|
package/babel.config.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
env: {
|
|
5
|
+
// Note(isk: 3/2/20): Must have babel-plugin-styled-components in each env,
|
|
6
|
+
// see here for further details: s https://styled-components.com/docs/tooling#babel-plugin
|
|
7
|
+
production: {
|
|
8
|
+
plugins: ['babel-plugin-styled-components', 'babel-plugin-unassert'],
|
|
9
|
+
},
|
|
10
|
+
development: {
|
|
11
|
+
plugins: ['babel-plugin-styled-components'],
|
|
12
|
+
},
|
|
13
|
+
test: {
|
|
14
|
+
plugins: [
|
|
15
|
+
// NOTE(mc, 2020-05-08): disable ssr, displayName to fix toHaveStyleRule
|
|
16
|
+
// https://github.com/styled-components/jest-styled-components/issues/294
|
|
17
|
+
['babel-plugin-styled-components', { ssr: false, displayName: false }],
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
}
|