next-helios-fe 1.9.6 → 1.9.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@ export const Carousel: React.FC<CarouselProps> = ({ children, options }) => {
18
18
  const variant =
19
19
  options?.variant === "primary"
20
20
  ? "bg-gradient-to-r from-primary to-primary-dark text-white"
21
- : "bg-secondary-bg";
21
+ : "";
22
22
 
23
23
  return (
24
24
  <div className="h-full overflow-hidden">
@@ -30,35 +30,26 @@ export const Carousel: React.FC<CarouselProps> = ({ children, options }) => {
30
30
  theme={{
31
31
  root: {
32
32
  base: "relative h-full w-full shadow-md",
33
- leftControl:
34
- `absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none ${childrenList?.length < 2 && "hidden" }`,
35
- rightControl:
36
- `absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none ${childrenList?.length < 2 && "hidden" }`,
33
+ leftControl: `absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none ${
34
+ childrenList?.length < 2 && "hidden"
35
+ }`,
36
+ rightControl: `absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none ${
37
+ childrenList?.length < 2 && "hidden"
38
+ }`,
37
39
  },
38
40
  indicators: {
39
41
  active: {
40
- off:
41
- options?.variant === "primary"
42
- ? "bg-white/50 hover:bg-white/70"
43
- : "bg-primary-transparent hover:bg-primary-light",
44
- on: options?.variant === "primary" ? "bg-white" : "bg-primary",
42
+ off: "bg-white/50 hover:bg-white/70",
43
+ on: "bg-white",
45
44
  },
46
45
  base: "h-3 w-3 rounded-full",
47
- wrapper: `absolute bottom-4 left-1/2 flex -translate-x-1/2 space-x-3 px-2 py-0.5 rounded-full ${childrenList?.length < 2 && "hidden" } ${
48
- options?.variant === "primary"
49
- ? "bg-white/30"
50
- : "bg-primary-transparent"
46
+ wrapper: `absolute bottom-4 left-1/2 flex -translate-x-1/2 space-x-3 px-2 py-0.5 rounded-full bg-white/30 ${
47
+ childrenList?.length < 2 && "hidden"
51
48
  }`,
52
49
  },
53
50
  control: {
54
- base:
55
- options?.variant === "primary"
56
- ? "inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none sm:h-10 sm:w-10"
57
- : "inline-flex h-8 w-8 items-center justify-center rounded-full bg-primary-transparent group-hover:bg-primary-light group-focus:outline-none sm:h-10 sm:w-10",
58
- icon:
59
- options?.variant === "primary"
60
- ? "h-5 w-5 text-white sm:h-6 sm:w-6"
61
- : "h-5 w-5 text-primary sm:h-6 sm:w-6",
51
+ base: "inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none sm:h-10 sm:w-10",
52
+ icon: "h-5 w-5 text-white sm:h-6 sm:w-6",
62
53
  },
63
54
  }}
64
55
  >