- {/* This text is not translated due to Paragon's lack of i18n support */}
-
Top of step {index + 1}
- {(title || !isOnlyCheckpoint) && (
-
- {title}
-
-
- )}
-
{body}
-
-
- {/* This text is not translated due to Paragon's lack of i18n support */}
-
Bottom of step {index + 1}
-
- );
-}
-
-Checkpoint.defaultProps = {
- advanceButtonText: null,
- body: null,
- dismissButtonText: null,
- endButtonText: null,
- placement: 'top',
- title: null,
-};
-
-Checkpoint.propTypes = {
- advanceButtonText: PropTypes.node,
- body: PropTypes.node,
- dismissButtonText: PropTypes.node,
- endButtonText: PropTypes.node,
- index: PropTypes.number.isRequired,
- onAdvance: PropTypes.func.isRequired,
- onDismiss: PropTypes.func.isRequired,
- onEnd: PropTypes.func.isRequired,
- placement: PropTypes.oneOf([
- 'top', 'top-start', 'top-end', 'right-start', 'right', 'right-end',
- 'left-start', 'left', 'left-end', 'bottom', 'bottom-start', 'bottom-end',
- ]),
- target: PropTypes.string.isRequired,
- title: PropTypes.node,
- totalCheckpoints: PropTypes.number.isRequired,
-};
-
-export default Checkpoint;
diff --git a/src/tour/Checkpoint.scss b/src/tour/Checkpoint.scss
deleted file mode 100644
index 70742550..00000000
--- a/src/tour/Checkpoint.scss
+++ /dev/null
@@ -1,103 +0,0 @@
-$checkpoint-arrow-width: 15px;
-$checkpoint-arrow-brand: solid $checkpoint-arrow-width $brand;
-$checkpoint-arrow-light-300: solid $checkpoint-arrow-width $light-300;
-$checkpoint-arrow-transparent: solid $checkpoint-arrow-width transparent;
-
-.checkpoint-popover {
- position: absolute;
- border-top: 8px solid $brand;
- border-radius: $border-radius;
- box-shadow: $popover-box-shadow;
- z-index: 1060;
- max-width: $popover-max-width;
- @media (max-width: map-get($grid-breakpoints, 'md')) {
- min-width: 90%;
- max-width: 90%;
- }
-
- #checkpoint-arrow,
- #checkpoint-arrow::before,
- #checkpoint-arrow::after {
- position: absolute;
- width: 0;
- height: 0;
- }
-
- #checkpoint-arrow {
- visibility: hidden;
- }
-
- #checkpoint-arrow::before,
- #checkpoint-arrow::after {
- visibility: visible;
- content: '';
- }
-
- .checkpoint-popover_breadcrumb_active {
- fill: $primary;
- }
-
- .checkpoint-popover_breadcrumb_inactive {
- fill: transparent;
- stroke: $primary;
- stroke-width: 1px;
- }
-
- .checkpoint-popover_breadcrumb:not(:first-child) {
- margin-left: 4px;
- }
-}
-
-.checkpoint-popover[data-popper-placement^='top'] > #checkpoint-arrow {
- left: -$checkpoint-arrow-width !important;
- bottom: 1px;
-
- &::after {
- border-bottom: $checkpoint-arrow-transparent;
- border-top: $checkpoint-arrow-light-300;
- border-left: $checkpoint-arrow-transparent;
- border-right: $checkpoint-arrow-transparent;
- -webkit-filter: drop-shadow(0px 4px 2px rgba(0,0,0,0.1));
- filter: drop-shadow(0px 4px 2px rgba(0,0,0,0.1));
- }
-}
-
-.checkpoint-popover[data-popper-placement^='bottom'] > #checkpoint-arrow {
- top: -36px;
- left: -$checkpoint-arrow-width !important;
- &::before {
- border-bottom: $checkpoint-arrow-brand;
- border-top: $checkpoint-arrow-transparent;
- border-left: $checkpoint-arrow-transparent;
- border-right: $checkpoint-arrow-transparent;
- }
-}
-
-.checkpoint-popover[data-popper-placement^='left'] > #checkpoint-arrow {
- top: -$checkpoint-arrow-width !important;
- right: 1px;
-
- &::after {
- border-bottom: $checkpoint-arrow-transparent;
- border-top: $checkpoint-arrow-transparent;
- border-left: $checkpoint-arrow-light-300;
- border-right: $checkpoint-arrow-transparent;
- -webkit-filter: drop-shadow(3px 1px 2px rgba(0,0,0,0.1));
- filter: drop-shadow(3px 1px 2px rgba(0,0,0,0.1));
- }
-}
-
-.checkpoint-popover[data-popper-placement^='right'] > #checkpoint-arrow {
- top: $checkpoint-arrow-width !important;
- left: 1px;
-
- &::after {
- left: -2 * $checkpoint-arrow-width;
- border-bottom: $checkpoint-arrow-transparent;
- border-top: $checkpoint-arrow-transparent;
- border-left: $checkpoint-arrow-transparent;
- border-right: $checkpoint-arrow-light-300;
- -webkit-filter: drop-shadow(-3px 1px 2px rgba(0,0,0,0.1));
- filter: drop-shadow(-3px 1px 2px rgba(0,0,0,0.1));
- }
-}
diff --git a/src/tour/CheckpointActionRow.jsx b/src/tour/CheckpointActionRow.jsx
deleted file mode 100644
index 3fbcd90c..00000000
--- a/src/tour/CheckpointActionRow.jsx
+++ /dev/null
@@ -1,55 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { Button } from '@edx/paragon';
-
-export default function CheckpointActionRow({
- advanceButtonText,
- dismissButtonText,
- endButtonText,
- isLastCheckpoint,
- onAdvance,
- onDismiss,
- onEnd,
-}) {
- return (
-