@terraware/web-components 4.2.23 → 4.2.24-rc.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PhotosCarousel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,GAAG,EAA4C,MAAM,OAAO,CAAC;AAElF,OAAO,qCAAqC,CAAC;AAK7C,OAAO,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PhotosCarousel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,GAAG,EAA4C,MAAM,OAAO,CAAC;AAElF,OAAO,qCAAqC,CAAC;AAK7C,OAAO,eAAe,CAAC;AAUvB,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AASD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAsE9E"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import CarouselImport from 'react-multi-carousel';
|
|
3
3
|
import 'react-multi-carousel/lib/styles.css';
|
|
4
4
|
import { Box, Typography } from '@mui/material';
|
|
5
5
|
import BusySpinner from '../BusySpinner';
|
|
6
6
|
import './styles.scss';
|
|
7
|
+
|
|
8
|
+
// react-multi-carousel is CommonJS compiled by TypeScript, so it exports the component as
|
|
9
|
+
// `exports.default` alongside an `__esModule` flag. We publish native ES modules, where the
|
|
10
|
+
// default import of a CommonJS module is the whole `module.exports` object and no bundler
|
|
11
|
+
// unwraps `.default` for us. Unwrap it here; the `??` keeps this correct under bundlers that
|
|
12
|
+
// do apply the legacy interop.
|
|
7
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const Carousel = CarouselImport.default ?? CarouselImport;
|
|
8
15
|
const responsive = {
|
|
9
16
|
mobile: {
|
|
10
17
|
breakpoint: {
|