@razorpay/blade 11.34.1 → 11.35.0
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/build/lib/native/utils/useCallbackRef.js +6 -0
- package/build/lib/native/utils/useCallbackRef.js.map +1 -0
- package/build/lib/native/utils/useControllable.js +2 -1
- package/build/lib/native/utils/useControllable.js.map +1 -1
- package/build/lib/web/development/components/Carousel/Carousel.web.js +65 -57
- package/build/lib/web/development/components/Carousel/Carousel.web.js.map +1 -1
- package/build/lib/web/development/utils/useCallbackRef.js +31 -0
- package/build/lib/web/development/utils/useCallbackRef.js.map +1 -0
- package/build/lib/web/development/utils/useControllable.js +13 -5
- package/build/lib/web/development/utils/useControllable.js.map +1 -1
- package/build/lib/web/production/components/Carousel/Carousel.web.js +65 -57
- package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
- package/build/lib/web/production/utils/useCallbackRef.js +31 -0
- package/build/lib/web/production/utils/useCallbackRef.js.map +1 -0
- package/build/lib/web/production/utils/useControllable.js +13 -5
- package/build/lib/web/production/utils/useControllable.js.map +1 -1
- package/build/types/components/index.d.ts +13 -2
- package/build/types/components/index.native.d.ts +12 -1
- package/package.json +1 -1
|
@@ -5186,6 +5186,14 @@ type SurfaceTokens = DotNotationToken<Theme['colors']['surface']['background']>;
|
|
|
5186
5186
|
type OverlayTokens = DotNotationToken<Theme['colors']['overlay']>;
|
|
5187
5187
|
type OverlayColor = `interactive.background.${InteractiveTokens}` | `feedback.background.${FeedbackTokens}` | `surface.background.${SurfaceTokens}` | `overlay.${OverlayTokens}`;
|
|
5188
5188
|
type CarouselProps = {
|
|
5189
|
+
/**
|
|
5190
|
+
* Sets the initial active slide index
|
|
5191
|
+
*/
|
|
5192
|
+
defaultActiveSlide?: number;
|
|
5193
|
+
/**
|
|
5194
|
+
* Active slide index, if provided the carousel will be controlled
|
|
5195
|
+
*/
|
|
5196
|
+
activeSlide?: number;
|
|
5189
5197
|
/**
|
|
5190
5198
|
* Accepts CarouselItem
|
|
5191
5199
|
*/
|
|
@@ -5260,7 +5268,7 @@ type CarouselProps = {
|
|
|
5260
5268
|
*/
|
|
5261
5269
|
carouselItemAlignment?: BoxProps['alignItems'];
|
|
5262
5270
|
/**
|
|
5263
|
-
* Callback which gets fired everytime a slide changes,
|
|
5271
|
+
* Callback which gets fired everytime a slide changes, can be used to to make the carousel controlled
|
|
5264
5272
|
*
|
|
5265
5273
|
* @default undefined
|
|
5266
5274
|
*/
|
|
@@ -5271,10 +5279,13 @@ type CarouselProps = {
|
|
|
5271
5279
|
* @default undefined
|
|
5272
5280
|
*/
|
|
5273
5281
|
accessibilityLabel?: string;
|
|
5282
|
+
/**
|
|
5283
|
+
* Sets the height of the carousel
|
|
5284
|
+
*/
|
|
5274
5285
|
height?: BoxProps['height'];
|
|
5275
5286
|
} & StyledPropsBlade;
|
|
5276
5287
|
|
|
5277
|
-
declare const Carousel: ({ autoPlay, visibleItems, showIndicators, navigationButtonPosition, children, shouldAddStartEndSpacing, carouselItemWidth, scrollOverlayColor, accessibilityLabel, onChange, indicatorVariant, navigationButtonVariant, carouselItemAlignment, height, ...props }: CarouselProps) => React__default.ReactElement;
|
|
5288
|
+
declare const Carousel: ({ autoPlay, visibleItems, showIndicators, navigationButtonPosition, children, shouldAddStartEndSpacing, carouselItemWidth, scrollOverlayColor, accessibilityLabel, onChange, indicatorVariant, navigationButtonVariant, carouselItemAlignment, height, defaultActiveSlide, activeSlide: activeSlideProp, ...props }: CarouselProps) => React__default.ReactElement;
|
|
5278
5289
|
|
|
5279
5290
|
type CarouselItemProps = {
|
|
5280
5291
|
id?: string;
|
|
@@ -4277,6 +4277,14 @@ type SurfaceTokens = DotNotationToken<Theme['colors']['surface']['background']>;
|
|
|
4277
4277
|
type OverlayTokens = DotNotationToken<Theme['colors']['overlay']>;
|
|
4278
4278
|
type OverlayColor = `interactive.background.${InteractiveTokens}` | `feedback.background.${FeedbackTokens}` | `surface.background.${SurfaceTokens}` | `overlay.${OverlayTokens}`;
|
|
4279
4279
|
type CarouselProps = {
|
|
4280
|
+
/**
|
|
4281
|
+
* Sets the initial active slide index
|
|
4282
|
+
*/
|
|
4283
|
+
defaultActiveSlide?: number;
|
|
4284
|
+
/**
|
|
4285
|
+
* Active slide index, if provided the carousel will be controlled
|
|
4286
|
+
*/
|
|
4287
|
+
activeSlide?: number;
|
|
4280
4288
|
/**
|
|
4281
4289
|
* Accepts CarouselItem
|
|
4282
4290
|
*/
|
|
@@ -4351,7 +4359,7 @@ type CarouselProps = {
|
|
|
4351
4359
|
*/
|
|
4352
4360
|
carouselItemAlignment?: BoxProps['alignItems'];
|
|
4353
4361
|
/**
|
|
4354
|
-
* Callback which gets fired everytime a slide changes,
|
|
4362
|
+
* Callback which gets fired everytime a slide changes, can be used to to make the carousel controlled
|
|
4355
4363
|
*
|
|
4356
4364
|
* @default undefined
|
|
4357
4365
|
*/
|
|
@@ -4362,6 +4370,9 @@ type CarouselProps = {
|
|
|
4362
4370
|
* @default undefined
|
|
4363
4371
|
*/
|
|
4364
4372
|
accessibilityLabel?: string;
|
|
4373
|
+
/**
|
|
4374
|
+
* Sets the height of the carousel
|
|
4375
|
+
*/
|
|
4365
4376
|
height?: BoxProps['height'];
|
|
4366
4377
|
} & StyledPropsBlade;
|
|
4367
4378
|
|