@aic-kits/react 0.24.1 → 0.24.3

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.
@@ -25,8 +25,10 @@ type ButtonTextProps = {
25
25
  };
26
26
  declare const StyledButtonText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').TextProps & {
27
27
  useRichText?: boolean;
28
+ ref?: import('react').ForwardedRef<HTMLParagraphElement>;
28
29
  }, ButtonTextProps>> & string & Omit<(props: import('..').TextProps & {
29
30
  useRichText?: boolean;
31
+ ref?: import('react').ForwardedRef<HTMLParagraphElement>;
30
32
  }) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
31
33
  type ButtonIconWrapperProps = {
32
34
  $themePosition: 'left' | 'right';
@@ -1,11 +1,12 @@
1
1
  import { Space } from '../../theme';
2
2
  import { CarouselProps } from './types';
3
3
  export declare const scrollAnimation: import('styled-components/dist/models/Keyframes').default;
4
- interface CarouselItemsProps<T> extends Pick<CarouselProps<T>, 'autoScroll' | 'itemSpacing' | 'items' | 'renderItem' | 'keyExtractor' | 'itemsPerView'> {
4
+ interface CarouselItemsProps<T> extends Pick<CarouselProps<T>, 'autoScroll' | 'itemSpacing' | 'items' | 'renderItem' | 'keyExtractor' | 'itemsPerView' | 'infiniteLoop'> {
5
5
  itemSpacing: Space | undefined;
6
6
  itemWidth: number | undefined;
7
7
  itemsWrapperRef: React.RefObject<HTMLDivElement | null>;
8
8
  activeIndex: number;
9
+ virtualActiveIndex: number;
9
10
  }
10
- export declare function CarouselItems<T>({ itemSpacing, itemsWrapperRef, items, renderItem, keyExtractor, autoScroll, activeIndex, itemsPerView, itemWidth, }: CarouselItemsProps<T>): import("react/jsx-runtime").JSX.Element;
11
+ export declare function CarouselItems<T>({ itemSpacing, itemsWrapperRef, items, renderItem, keyExtractor, autoScroll, activeIndex, virtualActiveIndex, itemsPerView, itemWidth, infiniteLoop, }: CarouselItemsProps<T>): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -83,3 +83,14 @@ export interface CarouselHandle {
83
83
  goToNext: () => void;
84
84
  goToPrev: () => void;
85
85
  }
86
+ /**
87
+ * Internal interface to track virtual positioning for smooth infinite scrolling
88
+ */
89
+ export interface VirtualIndexInfo {
90
+ /** The virtual index including duplicates */
91
+ virtualIndex: number;
92
+ /** The real index in the original items array */
93
+ realIndex: number;
94
+ /** Whether we need to snap to a real position after animation */
95
+ needsSnap: boolean;
96
+ }
@@ -1,2 +1,6 @@
1
1
  import { Size, Theme } from '../../theme';
2
2
  export declare const getItemWidthNumericValue: (theme: Theme, itemWidth: Size | string | number | undefined) => number | undefined;
3
+ /**
4
+ * Creates a CSS translateX value for carousel positioning
5
+ */
6
+ export declare const createTranslateValue: (virtualIndex: number, itemsPerView: number, itemSpacing: number, itemWidth?: number) => string;
@@ -19,6 +19,7 @@ export declare const StyledTagContainer: import('styled-components/dist/types').
19
19
  }) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
20
20
  export declare const StyledTagText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').TextProps & {
21
21
  useRichText?: boolean;
22
+ ref?: import('react').ForwardedRef<HTMLParagraphElement>;
22
23
  }, {
23
24
  $color: Color;
24
25
  $textColor?: Color;
@@ -26,4 +27,5 @@ export declare const StyledTagText: import('styled-components/dist/types').IStyl
26
27
  $fontSize: FontSize;
27
28
  }>> & string & Omit<(props: import('..').TextProps & {
28
29
  useRichText?: boolean;
30
+ ref?: import('react').ForwardedRef<HTMLParagraphElement>;
29
31
  }) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
@@ -1,6 +1,8 @@
1
+ import { ForwardedRef } from 'react';
1
2
  import { TextProps } from './types';
2
3
  export declare const Text: (props: TextProps & {
3
4
  useRichText?: boolean;
5
+ ref?: ForwardedRef<HTMLParagraphElement>;
4
6
  }) => import("react/jsx-runtime").JSX.Element;
5
7
  export type { TextProps };
6
8
  export * from './constants';
@@ -1,5 +1,6 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ForwardedRef } from 'react';
2
2
  import { TextProps } from './types';
3
3
  export declare const withRichText: (BaseText: React.ComponentType<TextProps>) => (props: TextProps & {
4
4
  useRichText?: boolean;
5
+ ref?: ForwardedRef<HTMLParagraphElement>;
5
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
- import { default as React } from 'react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { TouchableProps } from './types';
3
- export declare const Touchable: React.FC<TouchableProps>;
3
+ declare function PlainTouchable({ children, onClick, style, useScaleAnimation, useOpacityAnimation, 'data-testid': testId, ...props }: TouchableProps, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
+ export declare const Touchable: (props: TouchableProps & {
5
+ ref?: ForwardedRef<HTMLDivElement>;
6
+ }) => ReturnType<typeof PlainTouchable>;
4
7
  export * from './types';