react-fancy-circular-carousel 1.0.6 → 1.0.8

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,6 +1,6 @@
1
1
  import { FC, CSSProperties } from 'react';
2
2
  interface CarouselInfo {
3
- images?: string[];
3
+ images: string[];
4
4
  setFocusElement?: Function;
5
5
  offsetAngle?: number;
6
6
  carouselRadius?: number;
package/FancyCarousel.js CHANGED
@@ -1,13 +1,5 @@
1
1
  import React, { useState } from 'react';
2
- //importing images
3
- import image1 from './assets/greatwall.webp';
4
- import image2 from './assets/pyramid.webp';
5
- import image3 from './assets/petra.webp';
6
- import image4 from './assets/machupicchu.webp';
7
- import image5 from './assets/christ.webp';
8
- import image6 from './assets/colosseum.webp';
9
- import image7 from './assets/tajmahal.webp';
10
- export const FancyCarousel = ({ images = [image1, image2, image3, image4, image5, image6, image7], setFocusElement = () => { }, offsetAngle = 0, carouselRadius = 400, centralImageRadius = 125, centralImageBoxShadow = '5px 10px 18px #888888', peripheralImageRadius = 75, peripheralImageBoxShadow = '5px 10px 18px #888888', focusElementStyling = {}, border = true, borderWidth = 5, borderHexColor = 'CB786C', autoRotateTime = 0, transitionTime = 1.5, navigationTextSize = 2, navigationButtonRadius = 32.5, navigationButtonBgColor = 'CB786C', navigationButtonColor = 'FFFFFF', navigationButtonStyling = {} }) => {
2
+ export const FancyCarousel = ({ images, setFocusElement = () => { }, offsetAngle = 0, carouselRadius = 400, centralImageRadius = 125, centralImageBoxShadow = '5px 10px 18px #888888', peripheralImageRadius = 75, peripheralImageBoxShadow = '5px 10px 18px #888888', focusElementStyling = {}, border = true, borderWidth = 5, borderHexColor = 'CB786C', autoRotateTime = 0, transitionTime = 1.5, navigationTextSize = 2, navigationButtonRadius = 32.5, navigationButtonBgColor = 'CB786C', navigationButtonColor = 'FFFFFF', navigationButtonStyling = {} }) => {
11
3
  const [carousel, setCarousel] = useState({
12
4
  carouselOrietation: 0,
13
5
  elementOrientation: 0,
package/README.md CHANGED
@@ -18,7 +18,7 @@ Try the demo [here](https://carousel-demopage.netlify.app).
18
18
  Include the styles by importing FancyCarousel.css
19
19
 
20
20
  ```jsx
21
- import '../node_modules/react-fancy-circular-carousel/FancyCarousel.css';
21
+ import 'react-fancy-circular-carousel/FancyCarousel.css';
22
22
  ```
23
23
 
24
24
  ## Quickstart
@@ -27,7 +27,7 @@ Try the demo [here](https://carousel-demopage.netlify.app).
27
27
 
28
28
  | **Parameter** | **Type** | **Description** |
29
29
  |:---|:---|:---|
30
- | images | String[] | `optional` List of image sources |
30
+ | images | String[] | `mandatory` List of image sources |
31
31
  | setFocusElement | Function | `optional` SetState method to get focus element in parent component |
32
32
  | offsetAngle | Number | `optional` Angle in degrees to offset the carousel elements |
33
33
  | carouselRadius | Number | `optional` Carousel radius in px |
@@ -55,7 +55,7 @@ Try the demo [here](https://carousel-demopage.netlify.app).
55
55
  import React from "react";
56
56
 
57
57
  import FancyCarousel from "react-fancy-circular-carousel";
58
- import '../node_modules/react-fancy-circular-carousel/FancyCarousel.css';
58
+ import 'react-fancy-circular-carousel/FancyCarousel.css';
59
59
 
60
60
  import image1 from './assets/image1.png';
61
61
  import image2 from './assets/image2.png';
@@ -84,7 +84,7 @@ For eg. if the carousel portrays images of cities, this feature may help you upd
84
84
  import React, { useState } from "react";
85
85
 
86
86
  import FancyCarousel from "react-fancy-circular-carousel";
87
- import '../node_modules/react-fancy-circular-carousel/FancyCarousel.css';
87
+ import 'react-fancy-circular-carousel/FancyCarousel.css';
88
88
 
89
89
  import image1 from './assets/image1.png';
90
90
  import image2 from './assets/image2.png';
@@ -122,7 +122,7 @@ To know more check the official documentation [here](https://legacy.reactjs.org/
122
122
  import React from "react";
123
123
 
124
124
  import FancyCarousel from "react-fancy-circular-carousel";
125
- import '../node_modules/react-fancy-circular-carousel/FancyCarousel.css';
125
+ import 'react-fancy-circular-carousel/FancyCarousel.css';
126
126
 
127
127
  import image1 from './assets/image1.png';
128
128
  import image2 from './assets/image2.png';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-fancy-circular-carousel",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Interactive circular carousel with image elements highly customisable as per the developer's needs",
5
5
  "main": "index.js",
6
6
  "scripts": {
Binary file
Binary file
Binary file
Binary file
package/assets/petra.webp DELETED
Binary file
Binary file
Binary file