@jetbrains/kotlin-web-site-ui 4.5.0-alpha.2 → 4.5.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.
|
@@ -7,11 +7,12 @@ import cn from 'classnames';
|
|
|
7
7
|
import SvgQuote from './quote.svg.js';
|
|
8
8
|
import styles from './quotes-slider.module.pcss.js';
|
|
9
9
|
|
|
10
|
-
const QuotesSlider =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const QuotesSlider = props => {
|
|
11
|
+
const {
|
|
12
|
+
quotes,
|
|
13
|
+
large,
|
|
14
|
+
...rest
|
|
15
|
+
} = props;
|
|
15
16
|
const [index, setIndex] = useState(0);
|
|
16
17
|
const totalSlides = quotes.length;
|
|
17
18
|
const handleNextSlide = useCallback(() => {
|
|
@@ -50,7 +51,7 @@ const QuotesSlider = ({
|
|
|
50
51
|
}, React__default.createElement(SvgQuote, null)), React__default.createElement("div", null, quotes.length > 1 ? React__default.createElement(SwipeableViews, {
|
|
51
52
|
index: index,
|
|
52
53
|
onChangeIndex: handleChangeIndex,
|
|
53
|
-
|
|
54
|
+
...rest
|
|
54
55
|
}, quotes.map((quote, i) => React__default.createElement("p", {
|
|
55
56
|
className: cn(quoteTextClass, styles.quoteText),
|
|
56
57
|
key: i
|