@razorpay/blade 9.1.2 → 9.2.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.
@@ -1455,7 +1455,8 @@ type StyledPropsBlade$1 = Partial<
1455
1455
  | 'gridColumnStart'
1456
1456
  | 'gridColumnEnd'
1457
1457
  | 'gridArea'
1458
- >,
1458
+ > &
1459
+ Pick<LayoutProps$1, 'display'>,
1459
1460
  '__brand__'
1460
1461
  >
1461
1462
  >;
@@ -2671,7 +2672,7 @@ declare type BoxVisualProps = MakeObjectResponsive<{
2671
2672
  }> & {
2672
2673
  as: BoxAsType;
2673
2674
  };
2674
- declare type StyledPropsBlade = Partial<Omit<MarginProps & Pick<FlexboxProps, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> & PositionProps & Pick<GridProps, 'gridColumn' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'gridColumnStart' | 'gridColumnEnd' | 'gridArea'>, '__brand__'>>;
2675
+ declare type StyledPropsBlade = Partial<Omit<MarginProps & Pick<FlexboxProps, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> & PositionProps & Pick<GridProps, 'gridColumn' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'gridColumnStart' | 'gridColumnEnd' | 'gridArea'> & Pick<LayoutProps, 'display'>, '__brand__'>>;
2675
2676
  declare type BoxCallbackProps = Omit<Platform.Select<{
2676
2677
  web: {
2677
2678
  /**
@@ -3805,7 +3806,83 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
3805
3806
  readonly l?: "platform-native" | undefined;
3806
3807
  readonly xl?: "platform-native" | undefined;
3807
3808
  } | undefined;
3808
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
3809
+ }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow"> & Pick<{
3810
+ width: SpacingValueType | {
3811
+ readonly base?: SpacingValueType | undefined;
3812
+ readonly xs?: SpacingValueType | undefined;
3813
+ readonly s?: SpacingValueType | undefined;
3814
+ readonly m?: SpacingValueType | undefined;
3815
+ readonly l?: SpacingValueType | undefined;
3816
+ readonly xl?: SpacingValueType | undefined;
3817
+ };
3818
+ display?: "none" | "flex" | {
3819
+ readonly base?: "none" | "flex" | undefined;
3820
+ readonly xs?: "none" | "flex" | undefined;
3821
+ readonly s?: "none" | "flex" | undefined;
3822
+ readonly m?: "none" | "flex" | undefined;
3823
+ readonly l?: "none" | "flex" | undefined;
3824
+ readonly xl?: "none" | "flex" | undefined;
3825
+ } | undefined;
3826
+ height: SpacingValueType | {
3827
+ readonly base?: SpacingValueType | undefined;
3828
+ readonly xs?: SpacingValueType | undefined;
3829
+ readonly s?: SpacingValueType | undefined;
3830
+ readonly m?: SpacingValueType | undefined;
3831
+ readonly l?: SpacingValueType | undefined;
3832
+ readonly xl?: SpacingValueType | undefined;
3833
+ };
3834
+ maxHeight: SpacingValueType | {
3835
+ readonly base?: SpacingValueType | undefined;
3836
+ readonly xs?: SpacingValueType | undefined;
3837
+ readonly s?: SpacingValueType | undefined;
3838
+ readonly m?: SpacingValueType | undefined;
3839
+ readonly l?: SpacingValueType | undefined;
3840
+ readonly xl?: SpacingValueType | undefined;
3841
+ };
3842
+ maxWidth: SpacingValueType | {
3843
+ readonly base?: SpacingValueType | undefined;
3844
+ readonly xs?: SpacingValueType | undefined;
3845
+ readonly s?: SpacingValueType | undefined;
3846
+ readonly m?: SpacingValueType | undefined;
3847
+ readonly l?: SpacingValueType | undefined;
3848
+ readonly xl?: SpacingValueType | undefined;
3849
+ };
3850
+ minHeight: SpacingValueType | {
3851
+ readonly base?: SpacingValueType | undefined;
3852
+ readonly xs?: SpacingValueType | undefined;
3853
+ readonly s?: SpacingValueType | undefined;
3854
+ readonly m?: SpacingValueType | undefined;
3855
+ readonly l?: SpacingValueType | undefined;
3856
+ readonly xl?: SpacingValueType | undefined;
3857
+ };
3858
+ minWidth: SpacingValueType | {
3859
+ readonly base?: SpacingValueType | undefined;
3860
+ readonly xs?: SpacingValueType | undefined;
3861
+ readonly s?: SpacingValueType | undefined;
3862
+ readonly m?: SpacingValueType | undefined;
3863
+ readonly l?: SpacingValueType | undefined;
3864
+ readonly xl?: SpacingValueType | undefined;
3865
+ };
3866
+ overflowX: never;
3867
+ overflowY: never;
3868
+ textAlign: never;
3869
+ overflow?: "hidden" | "scroll" | "visible" | {
3870
+ readonly base?: "hidden" | "scroll" | "visible" | undefined;
3871
+ readonly xs?: "hidden" | "scroll" | "visible" | undefined;
3872
+ readonly s?: "hidden" | "scroll" | "visible" | undefined;
3873
+ readonly m?: "hidden" | "scroll" | "visible" | undefined;
3874
+ readonly l?: "hidden" | "scroll" | "visible" | undefined;
3875
+ readonly xl?: "hidden" | "scroll" | "visible" | undefined;
3876
+ } | undefined;
3877
+ __brand__?: "platform-native" | {
3878
+ readonly base?: "platform-native" | undefined;
3879
+ readonly xs?: "platform-native" | undefined;
3880
+ readonly s?: "platform-native" | undefined;
3881
+ readonly m?: "platform-native" | undefined;
3882
+ readonly l?: "platform-native" | undefined;
3883
+ readonly xl?: "platform-native" | undefined;
3884
+ } | undefined;
3885
+ }, "display">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
3809
3886
 
3810
3887
  declare type CheckboxGroupProps = {
3811
3888
  /**
@@ -3929,19 +4006,19 @@ declare type DividerProps = {
3929
4006
  *
3930
4007
  */
3931
4008
  width?: CSSObject['width'];
3932
- };
3933
- declare const Divider: ({ orientation, dividerStyle, variant, thickness, contrast, height, width, }: DividerProps) => React__default.ReactElement;
4009
+ } & TestID & StyledPropsBlade$1;
4010
+ declare const Divider: ({ orientation, dividerStyle, variant, thickness, contrast, height, width, testID, ...styledProps }: DividerProps) => React__default.ReactElement;
3934
4011
 
3935
4012
  declare type DropdownProps = {
3936
4013
  selectionType?: 'single' | 'multiple';
3937
4014
  onDismiss?: () => void;
3938
4015
  children: React.ReactNode[];
3939
- } & StyledPropsBlade$1;
4016
+ } & TestID & StyledPropsBlade$1;
3940
4017
  declare type DropdownOverlayProps = {
3941
4018
  children: React.ReactElement[] | React.ReactElement;
3942
4019
  } & TestID;
3943
4020
 
3944
- declare const Dropdown: ({ children, selectionType, onDismiss, ...styledProps }: DropdownProps) => JSX.Element;
4021
+ declare const Dropdown: ({ children, selectionType, onDismiss, testID, ...styledProps }: DropdownProps) => JSX.Element;
3945
4022
 
3946
4023
  declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => JSX.Element;
3947
4024
 
@@ -4983,7 +5060,83 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
4983
5060
  readonly l?: "platform-native" | undefined;
4984
5061
  readonly xl?: "platform-native" | undefined;
4985
5062
  } | undefined;
4986
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
5063
+ }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow"> & Pick<{
5064
+ width: SpacingValueType | {
5065
+ readonly base?: SpacingValueType | undefined;
5066
+ readonly xs?: SpacingValueType | undefined;
5067
+ readonly s?: SpacingValueType | undefined;
5068
+ readonly m?: SpacingValueType | undefined;
5069
+ readonly l?: SpacingValueType | undefined;
5070
+ readonly xl?: SpacingValueType | undefined;
5071
+ };
5072
+ display?: "none" | "flex" | {
5073
+ readonly base?: "none" | "flex" | undefined;
5074
+ readonly xs?: "none" | "flex" | undefined;
5075
+ readonly s?: "none" | "flex" | undefined;
5076
+ readonly m?: "none" | "flex" | undefined;
5077
+ readonly l?: "none" | "flex" | undefined;
5078
+ readonly xl?: "none" | "flex" | undefined;
5079
+ } | undefined;
5080
+ height: SpacingValueType | {
5081
+ readonly base?: SpacingValueType | undefined;
5082
+ readonly xs?: SpacingValueType | undefined;
5083
+ readonly s?: SpacingValueType | undefined;
5084
+ readonly m?: SpacingValueType | undefined;
5085
+ readonly l?: SpacingValueType | undefined;
5086
+ readonly xl?: SpacingValueType | undefined;
5087
+ };
5088
+ maxHeight: SpacingValueType | {
5089
+ readonly base?: SpacingValueType | undefined;
5090
+ readonly xs?: SpacingValueType | undefined;
5091
+ readonly s?: SpacingValueType | undefined;
5092
+ readonly m?: SpacingValueType | undefined;
5093
+ readonly l?: SpacingValueType | undefined;
5094
+ readonly xl?: SpacingValueType | undefined;
5095
+ };
5096
+ maxWidth: SpacingValueType | {
5097
+ readonly base?: SpacingValueType | undefined;
5098
+ readonly xs?: SpacingValueType | undefined;
5099
+ readonly s?: SpacingValueType | undefined;
5100
+ readonly m?: SpacingValueType | undefined;
5101
+ readonly l?: SpacingValueType | undefined;
5102
+ readonly xl?: SpacingValueType | undefined;
5103
+ };
5104
+ minHeight: SpacingValueType | {
5105
+ readonly base?: SpacingValueType | undefined;
5106
+ readonly xs?: SpacingValueType | undefined;
5107
+ readonly s?: SpacingValueType | undefined;
5108
+ readonly m?: SpacingValueType | undefined;
5109
+ readonly l?: SpacingValueType | undefined;
5110
+ readonly xl?: SpacingValueType | undefined;
5111
+ };
5112
+ minWidth: SpacingValueType | {
5113
+ readonly base?: SpacingValueType | undefined;
5114
+ readonly xs?: SpacingValueType | undefined;
5115
+ readonly s?: SpacingValueType | undefined;
5116
+ readonly m?: SpacingValueType | undefined;
5117
+ readonly l?: SpacingValueType | undefined;
5118
+ readonly xl?: SpacingValueType | undefined;
5119
+ };
5120
+ overflowX: never;
5121
+ overflowY: never;
5122
+ textAlign: never;
5123
+ overflow?: "hidden" | "scroll" | "visible" | {
5124
+ readonly base?: "hidden" | "scroll" | "visible" | undefined;
5125
+ readonly xs?: "hidden" | "scroll" | "visible" | undefined;
5126
+ readonly s?: "hidden" | "scroll" | "visible" | undefined;
5127
+ readonly m?: "hidden" | "scroll" | "visible" | undefined;
5128
+ readonly l?: "hidden" | "scroll" | "visible" | undefined;
5129
+ readonly xl?: "hidden" | "scroll" | "visible" | undefined;
5130
+ } | undefined;
5131
+ __brand__?: "platform-native" | {
5132
+ readonly base?: "platform-native" | undefined;
5133
+ readonly xs?: "platform-native" | undefined;
5134
+ readonly s?: "platform-native" | undefined;
5135
+ readonly m?: "platform-native" | undefined;
5136
+ readonly l?: "platform-native" | undefined;
5137
+ readonly xl?: "platform-native" | undefined;
5138
+ } | undefined;
5139
+ }, "display">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
4987
5140
 
4988
5141
  declare type PasswordInputExtraProps = {
4989
5142
  /**
@@ -5097,7 +5250,83 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseI
5097
5250
  readonly l?: "platform-native" | undefined;
5098
5251
  readonly xl?: "platform-native" | undefined;
5099
5252
  } | undefined;
5100
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
5253
+ }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow"> & Pick<{
5254
+ width: SpacingValueType | {
5255
+ readonly base?: SpacingValueType | undefined;
5256
+ readonly xs?: SpacingValueType | undefined;
5257
+ readonly s?: SpacingValueType | undefined;
5258
+ readonly m?: SpacingValueType | undefined;
5259
+ readonly l?: SpacingValueType | undefined;
5260
+ readonly xl?: SpacingValueType | undefined;
5261
+ };
5262
+ display?: "none" | "flex" | {
5263
+ readonly base?: "none" | "flex" | undefined;
5264
+ readonly xs?: "none" | "flex" | undefined;
5265
+ readonly s?: "none" | "flex" | undefined;
5266
+ readonly m?: "none" | "flex" | undefined;
5267
+ readonly l?: "none" | "flex" | undefined;
5268
+ readonly xl?: "none" | "flex" | undefined;
5269
+ } | undefined;
5270
+ height: SpacingValueType | {
5271
+ readonly base?: SpacingValueType | undefined;
5272
+ readonly xs?: SpacingValueType | undefined;
5273
+ readonly s?: SpacingValueType | undefined;
5274
+ readonly m?: SpacingValueType | undefined;
5275
+ readonly l?: SpacingValueType | undefined;
5276
+ readonly xl?: SpacingValueType | undefined;
5277
+ };
5278
+ maxHeight: SpacingValueType | {
5279
+ readonly base?: SpacingValueType | undefined;
5280
+ readonly xs?: SpacingValueType | undefined;
5281
+ readonly s?: SpacingValueType | undefined;
5282
+ readonly m?: SpacingValueType | undefined;
5283
+ readonly l?: SpacingValueType | undefined;
5284
+ readonly xl?: SpacingValueType | undefined;
5285
+ };
5286
+ maxWidth: SpacingValueType | {
5287
+ readonly base?: SpacingValueType | undefined;
5288
+ readonly xs?: SpacingValueType | undefined;
5289
+ readonly s?: SpacingValueType | undefined;
5290
+ readonly m?: SpacingValueType | undefined;
5291
+ readonly l?: SpacingValueType | undefined;
5292
+ readonly xl?: SpacingValueType | undefined;
5293
+ };
5294
+ minHeight: SpacingValueType | {
5295
+ readonly base?: SpacingValueType | undefined;
5296
+ readonly xs?: SpacingValueType | undefined;
5297
+ readonly s?: SpacingValueType | undefined;
5298
+ readonly m?: SpacingValueType | undefined;
5299
+ readonly l?: SpacingValueType | undefined;
5300
+ readonly xl?: SpacingValueType | undefined;
5301
+ };
5302
+ minWidth: SpacingValueType | {
5303
+ readonly base?: SpacingValueType | undefined;
5304
+ readonly xs?: SpacingValueType | undefined;
5305
+ readonly s?: SpacingValueType | undefined;
5306
+ readonly m?: SpacingValueType | undefined;
5307
+ readonly l?: SpacingValueType | undefined;
5308
+ readonly xl?: SpacingValueType | undefined;
5309
+ };
5310
+ overflowX: never;
5311
+ overflowY: never;
5312
+ textAlign: never;
5313
+ overflow?: "hidden" | "scroll" | "visible" | {
5314
+ readonly base?: "hidden" | "scroll" | "visible" | undefined;
5315
+ readonly xs?: "hidden" | "scroll" | "visible" | undefined;
5316
+ readonly s?: "hidden" | "scroll" | "visible" | undefined;
5317
+ readonly m?: "hidden" | "scroll" | "visible" | undefined;
5318
+ readonly l?: "hidden" | "scroll" | "visible" | undefined;
5319
+ readonly xl?: "hidden" | "scroll" | "visible" | undefined;
5320
+ } | undefined;
5321
+ __brand__?: "platform-native" | {
5322
+ readonly base?: "platform-native" | undefined;
5323
+ readonly xs?: "platform-native" | undefined;
5324
+ readonly s?: "platform-native" | undefined;
5325
+ readonly m?: "platform-native" | undefined;
5326
+ readonly l?: "platform-native" | undefined;
5327
+ readonly xl?: "platform-native" | undefined;
5328
+ } | undefined;
5329
+ }, "display">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
5101
5330
 
5102
5331
  declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID'> & {
5103
5332
  /**
@@ -5199,34 +5428,110 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
5199
5428
  readonly l?: "platform-native" | undefined;
5200
5429
  readonly xl?: "platform-native" | undefined;
5201
5430
  } | undefined;
5202
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
5203
-
5204
- declare type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
5205
- name?: string;
5206
- value?: string;
5207
- inputIndex: number;
5208
- }) => void;
5209
- declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
5210
- /**
5211
- * Determines the number of input fields to show for the OTP
5212
- * @default 6
5213
- */
5214
- otpLength?: 4 | 6;
5215
- /**
5216
- * The callback function to be invoked when all the values of the OTPInput are filled
5217
- */
5218
- onOTPFilled?: FormInputOnEvent;
5219
- /**
5220
- * Masks input characters in all the fields
5221
- */
5222
- isMasked?: boolean;
5223
- /**
5224
- * Determines what autoComplete suggestion type to show. Defaults to `oneTimeCode`.
5225
- *
5226
- * It's not recommended to turn this off in favor of otp input practices.
5227
- *
5228
- *
5229
- * Internally it'll render platform specific attributes:
5431
+ }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow"> & Pick<{
5432
+ width: SpacingValueType | {
5433
+ readonly base?: SpacingValueType | undefined;
5434
+ readonly xs?: SpacingValueType | undefined;
5435
+ readonly s?: SpacingValueType | undefined;
5436
+ readonly m?: SpacingValueType | undefined;
5437
+ readonly l?: SpacingValueType | undefined;
5438
+ readonly xl?: SpacingValueType | undefined;
5439
+ };
5440
+ display?: "none" | "flex" | {
5441
+ readonly base?: "none" | "flex" | undefined;
5442
+ readonly xs?: "none" | "flex" | undefined;
5443
+ readonly s?: "none" | "flex" | undefined;
5444
+ readonly m?: "none" | "flex" | undefined;
5445
+ readonly l?: "none" | "flex" | undefined;
5446
+ readonly xl?: "none" | "flex" | undefined;
5447
+ } | undefined;
5448
+ height: SpacingValueType | {
5449
+ readonly base?: SpacingValueType | undefined;
5450
+ readonly xs?: SpacingValueType | undefined;
5451
+ readonly s?: SpacingValueType | undefined;
5452
+ readonly m?: SpacingValueType | undefined;
5453
+ readonly l?: SpacingValueType | undefined;
5454
+ readonly xl?: SpacingValueType | undefined;
5455
+ };
5456
+ maxHeight: SpacingValueType | {
5457
+ readonly base?: SpacingValueType | undefined;
5458
+ readonly xs?: SpacingValueType | undefined;
5459
+ readonly s?: SpacingValueType | undefined;
5460
+ readonly m?: SpacingValueType | undefined;
5461
+ readonly l?: SpacingValueType | undefined;
5462
+ readonly xl?: SpacingValueType | undefined;
5463
+ };
5464
+ maxWidth: SpacingValueType | {
5465
+ readonly base?: SpacingValueType | undefined;
5466
+ readonly xs?: SpacingValueType | undefined;
5467
+ readonly s?: SpacingValueType | undefined;
5468
+ readonly m?: SpacingValueType | undefined;
5469
+ readonly l?: SpacingValueType | undefined;
5470
+ readonly xl?: SpacingValueType | undefined;
5471
+ };
5472
+ minHeight: SpacingValueType | {
5473
+ readonly base?: SpacingValueType | undefined;
5474
+ readonly xs?: SpacingValueType | undefined;
5475
+ readonly s?: SpacingValueType | undefined;
5476
+ readonly m?: SpacingValueType | undefined;
5477
+ readonly l?: SpacingValueType | undefined;
5478
+ readonly xl?: SpacingValueType | undefined;
5479
+ };
5480
+ minWidth: SpacingValueType | {
5481
+ readonly base?: SpacingValueType | undefined;
5482
+ readonly xs?: SpacingValueType | undefined;
5483
+ readonly s?: SpacingValueType | undefined;
5484
+ readonly m?: SpacingValueType | undefined;
5485
+ readonly l?: SpacingValueType | undefined;
5486
+ readonly xl?: SpacingValueType | undefined;
5487
+ };
5488
+ overflowX: never;
5489
+ overflowY: never;
5490
+ textAlign: never;
5491
+ overflow?: "hidden" | "scroll" | "visible" | {
5492
+ readonly base?: "hidden" | "scroll" | "visible" | undefined;
5493
+ readonly xs?: "hidden" | "scroll" | "visible" | undefined;
5494
+ readonly s?: "hidden" | "scroll" | "visible" | undefined;
5495
+ readonly m?: "hidden" | "scroll" | "visible" | undefined;
5496
+ readonly l?: "hidden" | "scroll" | "visible" | undefined;
5497
+ readonly xl?: "hidden" | "scroll" | "visible" | undefined;
5498
+ } | undefined;
5499
+ __brand__?: "platform-native" | {
5500
+ readonly base?: "platform-native" | undefined;
5501
+ readonly xs?: "platform-native" | undefined;
5502
+ readonly s?: "platform-native" | undefined;
5503
+ readonly m?: "platform-native" | undefined;
5504
+ readonly l?: "platform-native" | undefined;
5505
+ readonly xl?: "platform-native" | undefined;
5506
+ } | undefined;
5507
+ }, "display">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
5508
+
5509
+ declare type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
5510
+ name?: string;
5511
+ value?: string;
5512
+ inputIndex: number;
5513
+ }) => void;
5514
+ declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
5515
+ /**
5516
+ * Determines the number of input fields to show for the OTP
5517
+ * @default 6
5518
+ */
5519
+ otpLength?: 4 | 6;
5520
+ /**
5521
+ * The callback function to be invoked when all the values of the OTPInput are filled
5522
+ */
5523
+ onOTPFilled?: FormInputOnEvent;
5524
+ /**
5525
+ * Masks input characters in all the fields
5526
+ */
5527
+ isMasked?: boolean;
5528
+ /**
5529
+ * Determines what autoComplete suggestion type to show. Defaults to `oneTimeCode`.
5530
+ *
5531
+ * It's not recommended to turn this off in favor of otp input practices.
5532
+ *
5533
+ *
5534
+ * Internally it'll render platform specific attributes:
5230
5535
  *
5231
5536
  * - web: `autocomplete`
5232
5537
  * - iOS: `textContentType`
@@ -5865,7 +6170,83 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
5865
6170
  readonly l?: "platform-native" | undefined;
5866
6171
  readonly xl?: "platform-native" | undefined;
5867
6172
  } | undefined;
5868
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
6173
+ }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow"> & Pick<{
6174
+ width: SpacingValueType | {
6175
+ readonly base?: SpacingValueType | undefined;
6176
+ readonly xs?: SpacingValueType | undefined;
6177
+ readonly s?: SpacingValueType | undefined;
6178
+ readonly m?: SpacingValueType | undefined;
6179
+ readonly l?: SpacingValueType | undefined;
6180
+ readonly xl?: SpacingValueType | undefined;
6181
+ };
6182
+ display?: "none" | "flex" | {
6183
+ readonly base?: "none" | "flex" | undefined;
6184
+ readonly xs?: "none" | "flex" | undefined;
6185
+ readonly s?: "none" | "flex" | undefined;
6186
+ readonly m?: "none" | "flex" | undefined;
6187
+ readonly l?: "none" | "flex" | undefined;
6188
+ readonly xl?: "none" | "flex" | undefined;
6189
+ } | undefined;
6190
+ height: SpacingValueType | {
6191
+ readonly base?: SpacingValueType | undefined;
6192
+ readonly xs?: SpacingValueType | undefined;
6193
+ readonly s?: SpacingValueType | undefined;
6194
+ readonly m?: SpacingValueType | undefined;
6195
+ readonly l?: SpacingValueType | undefined;
6196
+ readonly xl?: SpacingValueType | undefined;
6197
+ };
6198
+ maxHeight: SpacingValueType | {
6199
+ readonly base?: SpacingValueType | undefined;
6200
+ readonly xs?: SpacingValueType | undefined;
6201
+ readonly s?: SpacingValueType | undefined;
6202
+ readonly m?: SpacingValueType | undefined;
6203
+ readonly l?: SpacingValueType | undefined;
6204
+ readonly xl?: SpacingValueType | undefined;
6205
+ };
6206
+ maxWidth: SpacingValueType | {
6207
+ readonly base?: SpacingValueType | undefined;
6208
+ readonly xs?: SpacingValueType | undefined;
6209
+ readonly s?: SpacingValueType | undefined;
6210
+ readonly m?: SpacingValueType | undefined;
6211
+ readonly l?: SpacingValueType | undefined;
6212
+ readonly xl?: SpacingValueType | undefined;
6213
+ };
6214
+ minHeight: SpacingValueType | {
6215
+ readonly base?: SpacingValueType | undefined;
6216
+ readonly xs?: SpacingValueType | undefined;
6217
+ readonly s?: SpacingValueType | undefined;
6218
+ readonly m?: SpacingValueType | undefined;
6219
+ readonly l?: SpacingValueType | undefined;
6220
+ readonly xl?: SpacingValueType | undefined;
6221
+ };
6222
+ minWidth: SpacingValueType | {
6223
+ readonly base?: SpacingValueType | undefined;
6224
+ readonly xs?: SpacingValueType | undefined;
6225
+ readonly s?: SpacingValueType | undefined;
6226
+ readonly m?: SpacingValueType | undefined;
6227
+ readonly l?: SpacingValueType | undefined;
6228
+ readonly xl?: SpacingValueType | undefined;
6229
+ };
6230
+ overflowX: never;
6231
+ overflowY: never;
6232
+ textAlign: never;
6233
+ overflow?: "hidden" | "scroll" | "visible" | {
6234
+ readonly base?: "hidden" | "scroll" | "visible" | undefined;
6235
+ readonly xs?: "hidden" | "scroll" | "visible" | undefined;
6236
+ readonly s?: "hidden" | "scroll" | "visible" | undefined;
6237
+ readonly m?: "hidden" | "scroll" | "visible" | undefined;
6238
+ readonly l?: "hidden" | "scroll" | "visible" | undefined;
6239
+ readonly xl?: "hidden" | "scroll" | "visible" | undefined;
6240
+ } | undefined;
6241
+ __brand__?: "platform-native" | {
6242
+ readonly base?: "platform-native" | undefined;
6243
+ readonly xs?: "platform-native" | undefined;
6244
+ readonly s?: "platform-native" | undefined;
6245
+ readonly m?: "platform-native" | undefined;
6246
+ readonly l?: "platform-native" | undefined;
6247
+ readonly xl?: "platform-native" | undefined;
6248
+ } | undefined;
6249
+ }, "display">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
5869
6250
 
5870
6251
  declare type RadioGroupProps = {
5871
6252
  /**
@@ -6043,10 +6424,176 @@ declare type SwitchProps = {
6043
6424
  * The id of the input field in a switch, useful for associating a label element with the input via htmlFor prop
6044
6425
  */
6045
6426
  id?: string;
6046
- testID?: string;
6047
- };
6427
+ } & TestID & StyledPropsBlade$1;
6048
6428
 
6049
- declare const Switch: React__default.ForwardRefExoticComponent<SwitchProps & React__default.RefAttributes<BladeElementRef>>;
6429
+ declare const Switch: React__default.ForwardRefExoticComponent<{
6430
+ isChecked?: boolean | undefined;
6431
+ defaultChecked?: boolean | undefined;
6432
+ onChange?: OnChange | undefined;
6433
+ name?: string | undefined;
6434
+ value?: string | undefined;
6435
+ isDisabled?: boolean | undefined;
6436
+ size?: "small" | "medium" | undefined;
6437
+ accessibilityLabel: string;
6438
+ id?: string | undefined;
6439
+ } & TestID & Partial<Omit<MarginProps & Pick<FlexboxProps, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & {
6440
+ bottom: SpacingValueType | {
6441
+ readonly base?: SpacingValueType | undefined;
6442
+ readonly xs?: SpacingValueType | undefined;
6443
+ readonly s?: SpacingValueType | undefined;
6444
+ readonly m?: SpacingValueType | undefined;
6445
+ readonly l?: SpacingValueType | undefined;
6446
+ readonly xl?: SpacingValueType | undefined;
6447
+ };
6448
+ left: SpacingValueType | {
6449
+ readonly base?: SpacingValueType | undefined;
6450
+ readonly xs?: SpacingValueType | undefined;
6451
+ readonly s?: SpacingValueType | undefined;
6452
+ readonly m?: SpacingValueType | undefined;
6453
+ readonly l?: SpacingValueType | undefined;
6454
+ readonly xl?: SpacingValueType | undefined;
6455
+ };
6456
+ position?: "absolute" | "relative" | {
6457
+ readonly base?: "absolute" | "relative" | undefined;
6458
+ readonly xs?: "absolute" | "relative" | undefined;
6459
+ readonly s?: "absolute" | "relative" | undefined;
6460
+ readonly m?: "absolute" | "relative" | undefined;
6461
+ readonly l?: "absolute" | "relative" | undefined;
6462
+ readonly xl?: "absolute" | "relative" | undefined;
6463
+ } | undefined;
6464
+ right: SpacingValueType | {
6465
+ readonly base?: SpacingValueType | undefined;
6466
+ readonly xs?: SpacingValueType | undefined;
6467
+ readonly s?: SpacingValueType | undefined;
6468
+ readonly m?: SpacingValueType | undefined;
6469
+ readonly l?: SpacingValueType | undefined;
6470
+ readonly xl?: SpacingValueType | undefined;
6471
+ };
6472
+ top: SpacingValueType | {
6473
+ readonly base?: SpacingValueType | undefined;
6474
+ readonly xs?: SpacingValueType | undefined;
6475
+ readonly s?: SpacingValueType | undefined;
6476
+ readonly m?: SpacingValueType | undefined;
6477
+ readonly l?: SpacingValueType | undefined;
6478
+ readonly xl?: SpacingValueType | undefined;
6479
+ };
6480
+ zIndex?: number | {
6481
+ readonly base?: number | undefined;
6482
+ readonly xs?: number | undefined;
6483
+ readonly s?: number | undefined;
6484
+ readonly m?: number | undefined;
6485
+ readonly l?: number | undefined;
6486
+ readonly xl?: number | undefined;
6487
+ } | undefined;
6488
+ __brand__?: "platform-native" | {
6489
+ readonly base?: "platform-native" | undefined;
6490
+ readonly xs?: "platform-native" | undefined;
6491
+ readonly s?: "platform-native" | undefined;
6492
+ readonly m?: "platform-native" | undefined;
6493
+ readonly l?: "platform-native" | undefined;
6494
+ readonly xl?: "platform-native" | undefined;
6495
+ } | undefined;
6496
+ } & Pick<{
6497
+ gridAutoColumns: never;
6498
+ gridAutoFlow: never;
6499
+ gridAutoRows: never;
6500
+ gridColumnEnd: never;
6501
+ gridColumnStart: never;
6502
+ gridRowEnd: never;
6503
+ gridRowStart: never;
6504
+ gridTemplateAreas: never;
6505
+ gridTemplateColumns: never;
6506
+ gridTemplateRows: never;
6507
+ grid: never;
6508
+ gridArea: never;
6509
+ gridColumn: never;
6510
+ gridRow: never;
6511
+ gridTemplate: never;
6512
+ __brand__?: "platform-native" | {
6513
+ readonly base?: "platform-native" | undefined;
6514
+ readonly xs?: "platform-native" | undefined;
6515
+ readonly s?: "platform-native" | undefined;
6516
+ readonly m?: "platform-native" | undefined;
6517
+ readonly l?: "platform-native" | undefined;
6518
+ readonly xl?: "platform-native" | undefined;
6519
+ } | undefined;
6520
+ }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow"> & Pick<{
6521
+ width: SpacingValueType | {
6522
+ readonly base?: SpacingValueType | undefined;
6523
+ readonly xs?: SpacingValueType | undefined;
6524
+ readonly s?: SpacingValueType | undefined;
6525
+ readonly m?: SpacingValueType | undefined;
6526
+ readonly l?: SpacingValueType | undefined;
6527
+ readonly xl?: SpacingValueType | undefined;
6528
+ };
6529
+ display?: "none" | "flex" | {
6530
+ readonly base?: "none" | "flex" | undefined;
6531
+ readonly xs?: "none" | "flex" | undefined;
6532
+ readonly s?: "none" | "flex" | undefined;
6533
+ readonly m?: "none" | "flex" | undefined;
6534
+ readonly l?: "none" | "flex" | undefined;
6535
+ readonly xl?: "none" | "flex" | undefined;
6536
+ } | undefined;
6537
+ height: SpacingValueType | {
6538
+ readonly base?: SpacingValueType | undefined;
6539
+ readonly xs?: SpacingValueType | undefined;
6540
+ readonly s?: SpacingValueType | undefined;
6541
+ readonly m?: SpacingValueType | undefined;
6542
+ readonly l?: SpacingValueType | undefined;
6543
+ readonly xl?: SpacingValueType | undefined;
6544
+ };
6545
+ maxHeight: SpacingValueType | {
6546
+ readonly base?: SpacingValueType | undefined;
6547
+ readonly xs?: SpacingValueType | undefined;
6548
+ readonly s?: SpacingValueType | undefined;
6549
+ readonly m?: SpacingValueType | undefined;
6550
+ readonly l?: SpacingValueType | undefined;
6551
+ readonly xl?: SpacingValueType | undefined;
6552
+ };
6553
+ maxWidth: SpacingValueType | {
6554
+ readonly base?: SpacingValueType | undefined;
6555
+ readonly xs?: SpacingValueType | undefined;
6556
+ readonly s?: SpacingValueType | undefined;
6557
+ readonly m?: SpacingValueType | undefined;
6558
+ readonly l?: SpacingValueType | undefined;
6559
+ readonly xl?: SpacingValueType | undefined;
6560
+ };
6561
+ minHeight: SpacingValueType | {
6562
+ readonly base?: SpacingValueType | undefined;
6563
+ readonly xs?: SpacingValueType | undefined;
6564
+ readonly s?: SpacingValueType | undefined;
6565
+ readonly m?: SpacingValueType | undefined;
6566
+ readonly l?: SpacingValueType | undefined;
6567
+ readonly xl?: SpacingValueType | undefined;
6568
+ };
6569
+ minWidth: SpacingValueType | {
6570
+ readonly base?: SpacingValueType | undefined;
6571
+ readonly xs?: SpacingValueType | undefined;
6572
+ readonly s?: SpacingValueType | undefined;
6573
+ readonly m?: SpacingValueType | undefined;
6574
+ readonly l?: SpacingValueType | undefined;
6575
+ readonly xl?: SpacingValueType | undefined;
6576
+ };
6577
+ overflowX: never;
6578
+ overflowY: never;
6579
+ textAlign: never;
6580
+ overflow?: "hidden" | "scroll" | "visible" | {
6581
+ readonly base?: "hidden" | "scroll" | "visible" | undefined;
6582
+ readonly xs?: "hidden" | "scroll" | "visible" | undefined;
6583
+ readonly s?: "hidden" | "scroll" | "visible" | undefined;
6584
+ readonly m?: "hidden" | "scroll" | "visible" | undefined;
6585
+ readonly l?: "hidden" | "scroll" | "visible" | undefined;
6586
+ readonly xl?: "hidden" | "scroll" | "visible" | undefined;
6587
+ } | undefined;
6588
+ __brand__?: "platform-native" | {
6589
+ readonly base?: "platform-native" | undefined;
6590
+ readonly xs?: "platform-native" | undefined;
6591
+ readonly s?: "platform-native" | undefined;
6592
+ readonly m?: "platform-native" | undefined;
6593
+ readonly l?: "platform-native" | undefined;
6594
+ readonly xl?: "platform-native" | undefined;
6595
+ } | undefined;
6596
+ }, "display">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
6050
6597
 
6051
6598
  declare type SkeletonProps = StyledPropsBlade & Pick<BaseBoxProps, 'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'borderRadius'> & Partial<FlexboxProps> & {
6052
6599
  contrast?: 'low' | 'high';