@geneui/components 3.0.0-next-e458c67-16092025 → 3.0.0-next-d0eb8a6-17092025

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.
@@ -56,6 +56,10 @@ interface IButtonProps {
56
56
  * This prop should be used to set placement properties for the element relative to its parent using BEM conventions.
57
57
  */
58
58
  className?: string;
59
+ /**
60
+ * An ARIA label for a button provides a short, descriptive text label for screen readers and other assistive technologies to announce when the button has no visible text or the visible text isn't clear enough on its own.
61
+ */
62
+ ariaLabel?: string;
59
63
  /**
60
64
  * The button type attribute for HTML form behavior. <br>
61
65
  * Possible values: `button | submit | reset` <br>
@@ -0,0 +1,33 @@
1
+ import { FC, ReactElement } from "react";
2
+ import CarouselItem from "@components/molecules/Carousel/CarouselItem";
3
+ import "./Carousel.scss";
4
+ interface ICarouselProps {
5
+ /**
6
+ * Additional class for the parent element.
7
+ * This prop should be used to set placement properties for the element relative to its parent using BEM conventions.
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Dots and arrow buttons direction <br/>
12
+ * Possible values: `horizontal | vertical`
13
+ */
14
+ direction?: "horizontal" | "vertical";
15
+ /**
16
+ * Enables the display of arrows for navigation between slides <br/>
17
+ */
18
+ withSlideArrows?: boolean;
19
+ /**
20
+ * Enables the display of indicators. <br/>
21
+ * Note: On mobile devices, indicators are hidden regardless of this prop value.
22
+ */
23
+ withIndicators?: boolean;
24
+ /**
25
+ * Content elements
26
+ */
27
+ children?: ReactElement<typeof CarouselItem>[];
28
+ }
29
+ /**
30
+ * The Carousel component is ideal for displaying multiple content items, such as images, product highlights, or customer testimonials, in a limited space. By using navigation arrows, pagination dots, or autoplay, users can engage with content sequentially and interactively.
31
+ */
32
+ declare const Carousel: FC<ICarouselProps>;
33
+ export { ICarouselProps, Carousel as default };
@@ -0,0 +1,9 @@
1
+ import { FC, JSX } from "react";
2
+ export interface ICarouselItemProps {
3
+ /**
4
+ * Content elements
5
+ */
6
+ children?: JSX.Element | JSX.Element[];
7
+ }
8
+ declare const CarouselItem: FC<ICarouselItemProps>;
9
+ export default CarouselItem;
@@ -0,0 +1,2 @@
1
+ export { ICarouselProps, default as Carousel } from "./Carousel";
2
+ export { ICarouselItemProps, default as CarouselItem } from "./CarouselItem";
@@ -0,0 +1,8 @@
1
+ interface ISlideArguments {
2
+ onSlideLeft?: () => void;
3
+ onSlideRight?: () => void;
4
+ onSlideUp?: () => void;
5
+ onSlideDown?: () => void;
6
+ }
7
+ export declare const useSwipe: <T extends HTMLElement>({ onSlideLeft, onSlideRight, onSlideUp, onSlideDown }: ISlideArguments) => import("react").RefObject<T>;
8
+ export default useSwipe;
package/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export { default as Notification, INotificationProps } from "./components/molecu
38
38
  export { default as Modal, IModalProps } from "./components/molecules/Modal";
39
39
  export { default as Drawer, IDrawerProps } from "./components/molecules/Drawer";
40
40
  export { default as Empty, IEmptyProps } from "./components/molecules/Empty";
41
+ export { Carousel, CarouselItem, ICarouselProps, ICarouselItemProps } from "./components/molecules/Carousel";
41
42
  export { default as GlobalHeader, IGlobalHeaderProps, IAction, IProducts } from "./components/organisms/GlobalHeader";
42
43
  export { default as GeneUIProvider, GeneUIDesignSystemContext, IGeneUIDesignSystemContext, IGeneUIProviderProps } from "./components/providers/GeneUIProvider";
43
44
  export { default as useDebounce } from "./hooks/useDebounceCallback";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@geneui/components",
3
3
  "description": "The Gene UI components library designed for BI tools",
4
- "version": "3.0.0-next-e458c67-16092025",
4
+ "version": "3.0.0-next-d0eb8a6-17092025",
5
5
  "author": "SoftConstruct",
6
6
  "homepage": "https://github.com/softconstruct/gene-ui-components#readme",
7
7
  "repository": {