@razorpay/blade 8.11.2 → 8.12.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/components/index.d.ts +397 -5
- package/build/components/index.native.d.ts +397 -5
- package/build/components/index.native.js +27 -19
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +1455 -1291
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/package.json +2 -2
|
@@ -1100,6 +1100,228 @@ type SpacingValueType$1 =
|
|
|
1100
1100
|
| 'max-content'
|
|
1101
1101
|
| 'min-content';
|
|
1102
1102
|
|
|
1103
|
+
/**
|
|
1104
|
+
* @IMPORTANT
|
|
1105
|
+
*
|
|
1106
|
+
* I wish there was better way to re-use jsdoc but I checked and there isn't so we have to explicitly add docs to each prop.
|
|
1107
|
+
*
|
|
1108
|
+
* When you want to change a specific token value, you can select the entire block of spacing value mapping and do find and replace on it
|
|
1109
|
+
*
|
|
1110
|
+
* Checkout example of find and replace query-
|
|
1111
|
+
* {@link https://user-images.githubusercontent.com/30949385/221802507-40c7adbc-484a-47b3-9035-ae1e97080b51.png}
|
|
1112
|
+
*
|
|
1113
|
+
*/
|
|
1114
|
+
|
|
1115
|
+
type PaddingProps$1 = MakeObjectResponsive$1<{
|
|
1116
|
+
/**
|
|
1117
|
+
* ### Padding Shorthand
|
|
1118
|
+
*
|
|
1119
|
+
* #### Usage
|
|
1120
|
+
*
|
|
1121
|
+
* ```jsx
|
|
1122
|
+
* padding="spacing.3"
|
|
1123
|
+
* padding="20px"
|
|
1124
|
+
* padding={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
1125
|
+
* ```
|
|
1126
|
+
*
|
|
1127
|
+
* ---
|
|
1128
|
+
* #### Spacing to Pixel values
|
|
1129
|
+
*
|
|
1130
|
+
* - `spacing.0` - 0px
|
|
1131
|
+
* - `spacing.1` - 2px
|
|
1132
|
+
* - `spacing.2` - 4px
|
|
1133
|
+
* - `spacing.3` - 8px
|
|
1134
|
+
* - `spacing.4` - 12px
|
|
1135
|
+
* - `spacing.5` - 16px
|
|
1136
|
+
* - `spacing.6` - 20px
|
|
1137
|
+
* - `spacing.7` - 24px
|
|
1138
|
+
* - `spacing.8` - 32px
|
|
1139
|
+
* - `spacing.9` - 40px
|
|
1140
|
+
* - `spacing.10` - 48px
|
|
1141
|
+
* - `spacing.11` - 56px
|
|
1142
|
+
*
|
|
1143
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1144
|
+
*
|
|
1145
|
+
*/
|
|
1146
|
+
padding: SpacingValueType$1 | ArrayOfMaxLength4$1<SpacingValueType$1>;
|
|
1147
|
+
/**
|
|
1148
|
+
* ### Padding Horizontal
|
|
1149
|
+
*
|
|
1150
|
+
* #### Usage
|
|
1151
|
+
*
|
|
1152
|
+
* ```jsx
|
|
1153
|
+
* paddingX="spacing.3"
|
|
1154
|
+
* paddingX="20px"
|
|
1155
|
+
* ```
|
|
1156
|
+
*
|
|
1157
|
+
* ---
|
|
1158
|
+
* #### Spacing to Pixel values
|
|
1159
|
+
*
|
|
1160
|
+
* - `spacing.0` - 0px
|
|
1161
|
+
* - `spacing.1` - 2px
|
|
1162
|
+
* - `spacing.2` - 4px
|
|
1163
|
+
* - `spacing.3` - 8px
|
|
1164
|
+
* - `spacing.4` - 12px
|
|
1165
|
+
* - `spacing.5` - 16px
|
|
1166
|
+
* - `spacing.6` - 20px
|
|
1167
|
+
* - `spacing.7` - 24px
|
|
1168
|
+
* - `spacing.8` - 32px
|
|
1169
|
+
* - `spacing.9` - 40px
|
|
1170
|
+
* - `spacing.10` - 48px
|
|
1171
|
+
* - `spacing.11` - 56px
|
|
1172
|
+
*
|
|
1173
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1174
|
+
*
|
|
1175
|
+
*/
|
|
1176
|
+
paddingX: SpacingValueType$1;
|
|
1177
|
+
/**
|
|
1178
|
+
* ### Padding Vertical
|
|
1179
|
+
*
|
|
1180
|
+
* #### Usage
|
|
1181
|
+
*
|
|
1182
|
+
* ```jsx
|
|
1183
|
+
* paddingY="spacing.3"
|
|
1184
|
+
* paddingY="20px"
|
|
1185
|
+
* ```
|
|
1186
|
+
*
|
|
1187
|
+
* ---
|
|
1188
|
+
* #### Spacing to Pixel values
|
|
1189
|
+
*
|
|
1190
|
+
* - `spacing.0` - 0px
|
|
1191
|
+
* - `spacing.1` - 2px
|
|
1192
|
+
* - `spacing.2` - 4px
|
|
1193
|
+
* - `spacing.3` - 8px
|
|
1194
|
+
* - `spacing.4` - 12px
|
|
1195
|
+
* - `spacing.5` - 16px
|
|
1196
|
+
* - `spacing.6` - 20px
|
|
1197
|
+
* - `spacing.7` - 24px
|
|
1198
|
+
* - `spacing.8` - 32px
|
|
1199
|
+
* - `spacing.9` - 40px
|
|
1200
|
+
* - `spacing.10` - 48px
|
|
1201
|
+
* - `spacing.11` - 56px
|
|
1202
|
+
*
|
|
1203
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1204
|
+
*
|
|
1205
|
+
*/
|
|
1206
|
+
paddingY: SpacingValueType$1;
|
|
1207
|
+
/**
|
|
1208
|
+
* ### Padding Top
|
|
1209
|
+
*
|
|
1210
|
+
* #### Usage
|
|
1211
|
+
*
|
|
1212
|
+
* ```jsx
|
|
1213
|
+
* paddingTop="spacing.3"
|
|
1214
|
+
* paddingTop="20px"
|
|
1215
|
+
* ```
|
|
1216
|
+
*
|
|
1217
|
+
* ---
|
|
1218
|
+
* #### Spacing to Pixel values
|
|
1219
|
+
*
|
|
1220
|
+
* - `spacing.0` - 0px
|
|
1221
|
+
* - `spacing.1` - 2px
|
|
1222
|
+
* - `spacing.2` - 4px
|
|
1223
|
+
* - `spacing.3` - 8px
|
|
1224
|
+
* - `spacing.4` - 12px
|
|
1225
|
+
* - `spacing.5` - 16px
|
|
1226
|
+
* - `spacing.6` - 20px
|
|
1227
|
+
* - `spacing.7` - 24px
|
|
1228
|
+
* - `spacing.8` - 32px
|
|
1229
|
+
* - `spacing.9` - 40px
|
|
1230
|
+
* - `spacing.10` - 48px
|
|
1231
|
+
* - `spacing.11` - 56px
|
|
1232
|
+
*
|
|
1233
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1234
|
+
*/
|
|
1235
|
+
paddingTop: SpacingValueType$1;
|
|
1236
|
+
/**
|
|
1237
|
+
* ### Padding Right
|
|
1238
|
+
*
|
|
1239
|
+
* #### Usage
|
|
1240
|
+
*
|
|
1241
|
+
* ```jsx
|
|
1242
|
+
* paddingRight="spacing.3"
|
|
1243
|
+
* paddingRight="20px"
|
|
1244
|
+
* ```
|
|
1245
|
+
*
|
|
1246
|
+
* ---
|
|
1247
|
+
* #### Spacing to Pixel values
|
|
1248
|
+
*
|
|
1249
|
+
* - `spacing.0` - 0px
|
|
1250
|
+
* - `spacing.1` - 2px
|
|
1251
|
+
* - `spacing.2` - 4px
|
|
1252
|
+
* - `spacing.3` - 8px
|
|
1253
|
+
* - `spacing.4` - 12px
|
|
1254
|
+
* - `spacing.5` - 16px
|
|
1255
|
+
* - `spacing.6` - 20px
|
|
1256
|
+
* - `spacing.7` - 24px
|
|
1257
|
+
* - `spacing.8` - 32px
|
|
1258
|
+
* - `spacing.9` - 40px
|
|
1259
|
+
* - `spacing.10` - 48px
|
|
1260
|
+
* - `spacing.11` - 56px
|
|
1261
|
+
*
|
|
1262
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1263
|
+
*/
|
|
1264
|
+
paddingRight: SpacingValueType$1;
|
|
1265
|
+
/**
|
|
1266
|
+
* ### Padding Bottom
|
|
1267
|
+
*
|
|
1268
|
+
* #### Usage
|
|
1269
|
+
*
|
|
1270
|
+
* ```jsx
|
|
1271
|
+
* paddingBottom="spacing.3"
|
|
1272
|
+
* paddingBottom="20px"
|
|
1273
|
+
* ```
|
|
1274
|
+
*
|
|
1275
|
+
* ---
|
|
1276
|
+
* #### Spacing to Pixel values
|
|
1277
|
+
*
|
|
1278
|
+
* - `spacing.0` - 0px
|
|
1279
|
+
* - `spacing.1` - 2px
|
|
1280
|
+
* - `spacing.2` - 4px
|
|
1281
|
+
* - `spacing.3` - 8px
|
|
1282
|
+
* - `spacing.4` - 12px
|
|
1283
|
+
* - `spacing.5` - 16px
|
|
1284
|
+
* - `spacing.6` - 20px
|
|
1285
|
+
* - `spacing.7` - 24px
|
|
1286
|
+
* - `spacing.8` - 32px
|
|
1287
|
+
* - `spacing.9` - 40px
|
|
1288
|
+
* - `spacing.10` - 48px
|
|
1289
|
+
* - `spacing.11` - 56px
|
|
1290
|
+
*
|
|
1291
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1292
|
+
*/
|
|
1293
|
+
paddingBottom: SpacingValueType$1;
|
|
1294
|
+
/**
|
|
1295
|
+
* ### Padding Left
|
|
1296
|
+
*
|
|
1297
|
+
* #### Usage
|
|
1298
|
+
*
|
|
1299
|
+
* ```jsx
|
|
1300
|
+
* paddingLeft="spacing.3"
|
|
1301
|
+
* paddingLeft="20px"
|
|
1302
|
+
* ```
|
|
1303
|
+
*
|
|
1304
|
+
* ---
|
|
1305
|
+
* #### Spacing to Pixel values
|
|
1306
|
+
*
|
|
1307
|
+
* - `spacing.0` - 0px
|
|
1308
|
+
* - `spacing.1` - 2px
|
|
1309
|
+
* - `spacing.2` - 4px
|
|
1310
|
+
* - `spacing.3` - 8px
|
|
1311
|
+
* - `spacing.4` - 12px
|
|
1312
|
+
* - `spacing.5` - 16px
|
|
1313
|
+
* - `spacing.6` - 20px
|
|
1314
|
+
* - `spacing.7` - 24px
|
|
1315
|
+
* - `spacing.8` - 32px
|
|
1316
|
+
* - `spacing.9` - 40px
|
|
1317
|
+
* - `spacing.10` - 48px
|
|
1318
|
+
* - `spacing.11` - 56px
|
|
1319
|
+
*
|
|
1320
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1321
|
+
*/
|
|
1322
|
+
paddingLeft: SpacingValueType$1;
|
|
1323
|
+
}>;
|
|
1324
|
+
|
|
1103
1325
|
type MarginProps$1 = MakeObjectResponsive$1<{
|
|
1104
1326
|
/**
|
|
1105
1327
|
* ### Margin Shorthand
|
|
@@ -1336,6 +1558,17 @@ type BladeCommonEvents$1 = {
|
|
|
1336
1558
|
}>;
|
|
1337
1559
|
};
|
|
1338
1560
|
|
|
1561
|
+
type LayoutProps$1 = MakeObjectResponsive$1<
|
|
1562
|
+
{
|
|
1563
|
+
height: SpacingValueType$1;
|
|
1564
|
+
minHeight: SpacingValueType$1;
|
|
1565
|
+
maxHeight: SpacingValueType$1;
|
|
1566
|
+
width: SpacingValueType$1;
|
|
1567
|
+
minWidth: SpacingValueType$1;
|
|
1568
|
+
maxWidth: SpacingValueType$1;
|
|
1569
|
+
} & PickCSSByPlatform<'display' | 'overflow' | 'overflowX' | 'overflowY' | 'textAlign'>
|
|
1570
|
+
>;
|
|
1571
|
+
|
|
1339
1572
|
type FlexboxProps$1 = MakeObjectResponsive$1<
|
|
1340
1573
|
{
|
|
1341
1574
|
/**
|
|
@@ -1411,6 +1644,88 @@ type GridProps$1 = MakeObjectResponsive$1<
|
|
|
1411
1644
|
>
|
|
1412
1645
|
>;
|
|
1413
1646
|
|
|
1647
|
+
type ColorObjects$1 = 'feedback' | 'surface' | 'action';
|
|
1648
|
+
type BackgroundColorString$1<T extends ColorObjects$1> = `${T}.background.${DotNotationColorStringToken<
|
|
1649
|
+
Theme$1['colors'][T]['background']
|
|
1650
|
+
>}`;
|
|
1651
|
+
type BorderColorString$1<T extends ColorObjects$1> = `${T}.border.${DotNotationColorStringToken<
|
|
1652
|
+
Theme$1['colors'][T]['border']
|
|
1653
|
+
>}`;
|
|
1654
|
+
|
|
1655
|
+
// Created this as an array so I can reuse it for runtime validation
|
|
1656
|
+
declare const validBoxAsValues$1 = [
|
|
1657
|
+
'div',
|
|
1658
|
+
'section',
|
|
1659
|
+
'footer',
|
|
1660
|
+
'header',
|
|
1661
|
+
'main',
|
|
1662
|
+
'aside',
|
|
1663
|
+
'nav',
|
|
1664
|
+
'span',
|
|
1665
|
+
'label',
|
|
1666
|
+
] as const;
|
|
1667
|
+
|
|
1668
|
+
type BoxAsType$1 = typeof validBoxAsValues$1[number];
|
|
1669
|
+
|
|
1670
|
+
type BaseBoxVisualProps = MakeObjectResponsive$1<
|
|
1671
|
+
{
|
|
1672
|
+
borderRadius: keyof Border['radius'];
|
|
1673
|
+
backgroundColor:
|
|
1674
|
+
| BackgroundColorString$1<'feedback'>
|
|
1675
|
+
| BackgroundColorString$1<'surface'>
|
|
1676
|
+
| BackgroundColorString$1<'action'>
|
|
1677
|
+
| (string & Record<never, never>);
|
|
1678
|
+
lineHeight: SpacingValueType$1;
|
|
1679
|
+
touchAction: CSSObject['touchAction'];
|
|
1680
|
+
userSelect: CSSObject['userSelect'];
|
|
1681
|
+
borderWidth: keyof Border['width'];
|
|
1682
|
+
borderColor: BorderColorString$1<'surface'>;
|
|
1683
|
+
borderTopWidth: keyof Border['width'];
|
|
1684
|
+
borderTopColor: BorderColorString$1<'surface'>;
|
|
1685
|
+
borderRightWidth: keyof Border['width'];
|
|
1686
|
+
borderRightColor: BorderColorString$1<'surface'>;
|
|
1687
|
+
borderBottomWidth: keyof Border['width'];
|
|
1688
|
+
borderBottomColor: BorderColorString$1<'surface'>;
|
|
1689
|
+
borderLeftWidth: keyof Border['width'];
|
|
1690
|
+
borderLeftColor: BorderColorString$1<'surface'>;
|
|
1691
|
+
borderTopLeftRadius: keyof Border['radius'];
|
|
1692
|
+
borderTopRightRadius: keyof Border['radius'];
|
|
1693
|
+
borderBottomRightRadius: keyof Border['radius'];
|
|
1694
|
+
borderBottomLeftRadius: keyof Border['radius'];
|
|
1695
|
+
} & PickCSSByPlatform<
|
|
1696
|
+
| 'border'
|
|
1697
|
+
| 'borderLeft'
|
|
1698
|
+
| 'borderRight'
|
|
1699
|
+
| 'borderTop'
|
|
1700
|
+
| 'borderBottom'
|
|
1701
|
+
| 'opacity'
|
|
1702
|
+
| 'pointerEvents'
|
|
1703
|
+
>
|
|
1704
|
+
>;
|
|
1705
|
+
|
|
1706
|
+
type BoxVisualProps$1 = MakeObjectResponsive$1<{
|
|
1707
|
+
backgroundColor: BackgroundColorString$1<'surface'>;
|
|
1708
|
+
borderWidth: keyof Border['width'];
|
|
1709
|
+
borderColor: BorderColorString$1<'surface'>;
|
|
1710
|
+
borderTopWidth: keyof Border['width'];
|
|
1711
|
+
borderTopColor: BorderColorString$1<'surface'>;
|
|
1712
|
+
borderRightWidth: keyof Border['width'];
|
|
1713
|
+
borderRightColor: BorderColorString$1<'surface'>;
|
|
1714
|
+
borderBottomWidth: keyof Border['width'];
|
|
1715
|
+
borderBottomColor: BorderColorString$1<'surface'>;
|
|
1716
|
+
borderLeftWidth: keyof Border['width'];
|
|
1717
|
+
borderLeftColor: BorderColorString$1<'surface'>;
|
|
1718
|
+
borderRadius: keyof Border['radius'];
|
|
1719
|
+
borderTopLeftRadius: keyof Border['radius'];
|
|
1720
|
+
borderTopRightRadius: keyof Border['radius'];
|
|
1721
|
+
borderBottomRightRadius: keyof Border['radius'];
|
|
1722
|
+
borderBottomLeftRadius: keyof Border['radius'];
|
|
1723
|
+
}> & {
|
|
1724
|
+
// Intentionally keeping this outside of MakeObjectResponsive since we only want as to be string and not responsive object
|
|
1725
|
+
// styled-components do not support passing `as` prop as an object
|
|
1726
|
+
as: BoxAsType$1;
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1414
1729
|
type StyledPropsBlade = Partial<
|
|
1415
1730
|
Omit<
|
|
1416
1731
|
MarginProps$1 &
|
|
@@ -1430,6 +1745,70 @@ type StyledPropsBlade = Partial<
|
|
|
1430
1745
|
>
|
|
1431
1746
|
>;
|
|
1432
1747
|
|
|
1748
|
+
type BoxCallbackProps$1 = Omit<
|
|
1749
|
+
Platform.Select<{
|
|
1750
|
+
web: {
|
|
1751
|
+
/**
|
|
1752
|
+
* **Warning**
|
|
1753
|
+
*
|
|
1754
|
+
* Make sure to not use Box when you want to create a trigger that performs action on hover.
|
|
1755
|
+
* You would probably want to render it as `button` using `styled.button` instead.
|
|
1756
|
+
*
|
|
1757
|
+
* Use this for hoverable containers in cases like custom menus.
|
|
1758
|
+
*/
|
|
1759
|
+
onMouseOver: React.MouseEventHandler<HTMLElement>;
|
|
1760
|
+
/**
|
|
1761
|
+
* **Warning**
|
|
1762
|
+
*
|
|
1763
|
+
* Make sure to not use Box when you want to create a trigger that performs action on hover.
|
|
1764
|
+
* You would probably want to render it as `button` using `styled.button` instead.
|
|
1765
|
+
*
|
|
1766
|
+
* Use this for hoverable containers in cases like custom menus.
|
|
1767
|
+
*/
|
|
1768
|
+
onMouseEnter: React.MouseEventHandler<HTMLElement>;
|
|
1769
|
+
/**
|
|
1770
|
+
* **Warning**
|
|
1771
|
+
*
|
|
1772
|
+
* Make sure to not use Box when you want to create a trigger that performs action on hover.
|
|
1773
|
+
* You would probably want to render it as `button` using `styled.button` instead.
|
|
1774
|
+
*
|
|
1775
|
+
* Use this for hoverable containers in cases like custom menus.
|
|
1776
|
+
*/
|
|
1777
|
+
onMouseLeave: React.MouseEventHandler<HTMLElement>;
|
|
1778
|
+
onScroll: React.UIEventHandler<HTMLElement>;
|
|
1779
|
+
};
|
|
1780
|
+
native: Record<'onMouseOver' | 'onMouseEnter' | 'onMouseLeave' | 'onScroll', undefined>;
|
|
1781
|
+
}>,
|
|
1782
|
+
'__brand__'
|
|
1783
|
+
>;
|
|
1784
|
+
|
|
1785
|
+
type BoxProps$1 = Partial<
|
|
1786
|
+
PaddingProps$1 &
|
|
1787
|
+
MarginProps$1 &
|
|
1788
|
+
LayoutProps$1 &
|
|
1789
|
+
FlexboxProps$1 &
|
|
1790
|
+
PositionProps$1 &
|
|
1791
|
+
GridProps$1 &
|
|
1792
|
+
BoxCallbackProps$1 &
|
|
1793
|
+
BoxVisualProps$1 & {
|
|
1794
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
1795
|
+
tabIndex?: number;
|
|
1796
|
+
} & TestID$1
|
|
1797
|
+
>;
|
|
1798
|
+
|
|
1799
|
+
// Visual props have different types for BaseBox and Box. BaseBox has more flexible types and more props exposed.
|
|
1800
|
+
// So first we Omit Visual props of Box
|
|
1801
|
+
// Then we append BaseBoxVisualProps and some other props for styled-components like class and id
|
|
1802
|
+
type BaseBoxProps = Omit<BoxProps$1, keyof BoxVisualProps$1> &
|
|
1803
|
+
Partial<
|
|
1804
|
+
BaseBoxVisualProps & {
|
|
1805
|
+
className?: string;
|
|
1806
|
+
id?: string;
|
|
1807
|
+
tabIndex?: number;
|
|
1808
|
+
}
|
|
1809
|
+
> &
|
|
1810
|
+
BladeCommonEvents$1;
|
|
1811
|
+
|
|
1433
1812
|
type FeedbackIconColors$1 = `feedback.icon.${DotNotationColorStringToken<
|
|
1434
1813
|
Theme$1['colors']['feedback']['icon']
|
|
1435
1814
|
>}`;
|
|
@@ -7108,6 +7487,17 @@ declare type BottomSheetHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle'
|
|
|
7108
7487
|
titleSuffix?: BaseHeaderProps['titleSuffix'];
|
|
7109
7488
|
};
|
|
7110
7489
|
declare type BottomSheetFooterProps = Pick<BaseFooterProps$1, 'children'>;
|
|
7490
|
+
declare type BottomSheetBodyProps = {
|
|
7491
|
+
children: React.ReactNode;
|
|
7492
|
+
/**
|
|
7493
|
+
* Sets the padding equally on all sides. Only few `spacing` tokens are allowed deliberately
|
|
7494
|
+
* @default `spacing.5`
|
|
7495
|
+
*
|
|
7496
|
+
* **Links:**
|
|
7497
|
+
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-spacing--page
|
|
7498
|
+
*/
|
|
7499
|
+
padding?: Extract<SpacingValueType$1, 'spacing.0' | 'spacing.5'>;
|
|
7500
|
+
};
|
|
7111
7501
|
|
|
7112
7502
|
declare const BottomSheetHeader: ({ title, subtitle, leading, titleSuffix, trailing, showBackButton, onBackButtonClick, }: BottomSheetHeaderProps) => React__default.ReactElement;
|
|
7113
7503
|
|
|
@@ -7119,9 +7509,7 @@ type BaseFooterProps = {
|
|
|
7119
7509
|
|
|
7120
7510
|
declare const BottomSheetFooter: ({ children }: BaseFooterProps) => React__default.ReactElement;
|
|
7121
7511
|
|
|
7122
|
-
declare const BottomSheetBody: ({ children }:
|
|
7123
|
-
children: React__default.ReactNode;
|
|
7124
|
-
}) => React__default.ReactElement;
|
|
7512
|
+
declare const BottomSheetBody: ({ children, padding, }: BottomSheetBodyProps) => React__default.ReactElement;
|
|
7125
7513
|
|
|
7126
7514
|
declare const BottomSheet: ({ isOpen, onDismiss, children, initialFocusRef, snapPoints, }: BottomSheetProps) => React__default.ReactElement;
|
|
7127
7515
|
|
|
@@ -7225,8 +7613,12 @@ declare const CollapsibleButton: React$1.ForwardRefExoticComponent<CollapsibleBu
|
|
|
7225
7613
|
|
|
7226
7614
|
declare type CollapsibleBodyProps = {
|
|
7227
7615
|
children: ReactNode;
|
|
7616
|
+
/**
|
|
7617
|
+
* **Internal**: used for React Native specific workarounds. Collapsible automatically takes care of width, you shouldn't need to configure this
|
|
7618
|
+
*/
|
|
7619
|
+
_width?: BaseBoxProps['width'];
|
|
7228
7620
|
} & TestID$1;
|
|
7229
|
-
declare const CollapsibleBody: ({ children, testID }: CollapsibleBodyProps) => ReactElement;
|
|
7621
|
+
declare const CollapsibleBody: ({ children, testID, _width }: CollapsibleBodyProps) => ReactElement;
|
|
7230
7622
|
|
|
7231
7623
|
declare type TooltipProps = {
|
|
7232
7624
|
content: string;
|
|
@@ -7958,4 +8350,4 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7958
8350
|
tabIndex: -1;
|
|
7959
8351
|
}, "tabIndex">;
|
|
7960
8352
|
|
|
7961
|
-
export { AccordionItem, AccordionItemProps, AccordionProps,
|
|
8353
|
+
export { Accordion, AccordionItem, AccordionItemProps, AccordionProps, ActionList, ActionListFooter, ActionListFooterIcon, ActionListFooterProps, ActionListHeader, ActionListHeaderIcon, ActionListHeaderProps, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionDivider, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeCommonEvents, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BottomSheet, BottomSheetBody, BottomSheetBodyProps, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, Box, BoxIcon, BoxProps, BoxRefType, BriefcaseIcon, BulkPayoutsIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodepenIcon, CoinsIcon, Collapsible, CollapsibleBody, CollapsibleBodyProps, CollapsibleButton, CollapsibleButtonProps, CollapsibleLink, CollapsibleLinkProps, CollapsibleProps, CommandIcon, CompassIcon, ComponentIds, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DiscIcon, DollarIcon, DollarsIcon, DownloadCloudIcon, DownloadIcon, Dropdown, DropdownButton, DropdownLink, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EditComposeIcon, EditIcon, EditInlineIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphonesIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkButtonVariantProps, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, Modal, ModalBody, ModalBodyProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputProps, OctagonIcon, OffersIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonsIcon, PaymentLinksIcon, PaymentPagesIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RefreshIcon, RepeatIcon, ReportsIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaveIcon, ScissorsIcon, SearchIcon, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SpeakerIcon, Spinner, SpinnerProps, SquareIcon, StampIcon, StarIcon, StopCircleIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, Switch, SwitchProps, TabletIcon, TagIcon, TargetIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, Title, TitleProps, ToggleLeftIcon, ToggleRightIcon, Tooltip, TooltipInteractiveWrapper, TooltipProps, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useActionListContext, useTheme };
|