@aic-kits/react 0.24.5 → 0.24.6
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/dist/components/Carousel/utils.d.ts +10 -0
- package/dist/index.cjs +75 -75
- package/dist/index.js +2623 -2623
- package/package.json +2 -2
|
@@ -4,3 +4,13 @@ export declare const getItemWidthNumericValue: (theme: Theme, itemWidth: Size |
|
|
|
4
4
|
* Creates a CSS translateX value for carousel positioning
|
|
5
5
|
*/
|
|
6
6
|
export declare const createTranslateValue: (virtualIndex: number, itemsPerView: number, itemSpacing: number, itemWidth?: number) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a key for a carousel item
|
|
9
|
+
*
|
|
10
|
+
* @param item - The item to create a key for
|
|
11
|
+
* @param index - The index of the item
|
|
12
|
+
* @param suffix - The suffix to add to the key
|
|
13
|
+
* @param keyExtractor - The function to extract the key from the item
|
|
14
|
+
* @returns The key for the item
|
|
15
|
+
*/
|
|
16
|
+
export declare const getKey: <T>(item: T, index: number, suffix?: string, keyExtractor?: (item: T, index: number) => string) => string;
|