@razorpay/blade 12.3.1 → 12.4.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.
Files changed (41) hide show
  1. package/build/lib/native/utils/metaAttribute/metaConstants.js +1 -1
  2. package/build/lib/native/utils/metaAttribute/metaConstants.js.map +1 -1
  3. package/build/lib/web/development/components/FileUpload/FileUpload.web.js +9 -4
  4. package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
  5. package/build/lib/web/development/components/Table/TableBody.web.js +14 -7
  6. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  7. package/build/lib/web/development/components/Table/TableFooter.web.js +8 -4
  8. package/build/lib/web/development/components/Table/TableFooter.web.js.map +1 -1
  9. package/build/lib/web/development/components/Table/TableHeader.web.js +25 -12
  10. package/build/lib/web/development/components/Table/TableHeader.web.js.map +1 -1
  11. package/build/lib/web/development/components/Table/TablePagination.web.js +9 -2
  12. package/build/lib/web/development/components/Table/TablePagination.web.js.map +1 -1
  13. package/build/lib/web/development/components/TopNav/TabNav/TabNav.web.js +7 -7
  14. package/build/lib/web/development/components/TopNav/TabNav/TabNav.web.js.map +1 -1
  15. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js +4 -2
  16. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  17. package/build/lib/web/development/components/TopNav/TopNav.web.js +3 -5
  18. package/build/lib/web/development/components/TopNav/TopNav.web.js.map +1 -1
  19. package/build/lib/web/development/utils/metaAttribute/metaConstants.js +5 -0
  20. package/build/lib/web/development/utils/metaAttribute/metaConstants.js.map +1 -1
  21. package/build/lib/web/production/components/FileUpload/FileUpload.web.js +9 -4
  22. package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
  23. package/build/lib/web/production/components/Table/TableBody.web.js +14 -7
  24. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  25. package/build/lib/web/production/components/Table/TableFooter.web.js +8 -4
  26. package/build/lib/web/production/components/Table/TableFooter.web.js.map +1 -1
  27. package/build/lib/web/production/components/Table/TableHeader.web.js +25 -12
  28. package/build/lib/web/production/components/Table/TableHeader.web.js.map +1 -1
  29. package/build/lib/web/production/components/Table/TablePagination.web.js +9 -2
  30. package/build/lib/web/production/components/Table/TablePagination.web.js.map +1 -1
  31. package/build/lib/web/production/components/TopNav/TabNav/TabNav.web.js +7 -7
  32. package/build/lib/web/production/components/TopNav/TabNav/TabNav.web.js.map +1 -1
  33. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js +4 -2
  34. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  35. package/build/lib/web/production/components/TopNav/TopNav.web.js +3 -5
  36. package/build/lib/web/production/components/TopNav/TopNav.web.js.map +1 -1
  37. package/build/lib/web/production/utils/metaAttribute/metaConstants.js +5 -0
  38. package/build/lib/web/production/utils/metaAttribute/metaConstants.js.map +1 -1
  39. package/build/types/components/index.d.ts +21 -3
  40. package/build/types/components/index.native.d.ts +18 -0
  41. package/package.json +1 -1
@@ -24116,6 +24116,12 @@ type TableHeaderCellProps = {
24116
24116
  * Sorting is enabled only for columns whose key is present in sortableColumns prop of Table.
24117
24117
  **/
24118
24118
  headerKey?: string;
24119
+ /**
24120
+ * The textAlign prop determines the content alignment of the table.
24121
+ * The textAlign prop can be 'left', 'center', or 'right'.
24122
+ * The default value is `left`.
24123
+ **/
24124
+ textAlign?: 'left' | 'center' | 'right';
24119
24125
  _hasPadding?: boolean;
24120
24126
  } & DataAnalyticsAttribute;
24121
24127
  type TableProps<Item> = {
@@ -24307,6 +24313,12 @@ type TableCellProps = {
24307
24313
  * </TableCell>
24308
24314
  **/
24309
24315
  children: React__default.ReactNode;
24316
+ /**
24317
+ * The textAlign prop determines the content alignment of the table.
24318
+ * The textAlign prop can be 'left', 'center', or 'right'.
24319
+ * The default value is `left`.
24320
+ **/
24321
+ textAlign?: 'left' | 'center' | 'right';
24310
24322
  /**
24311
24323
  * Removes padding from CellWrapper
24312
24324
  *
@@ -24347,6 +24359,12 @@ type TableFooterCellProps = {
24347
24359
  * The children of TableHeaderCell can be a string or a ReactNode.
24348
24360
  **/
24349
24361
  children: string | React__default.ReactNode;
24362
+ /**
24363
+ * The textAlign prop determines the content alignment of the table.
24364
+ * The textAlign prop can be 'left', 'center', or 'right'.
24365
+ * The default value is `left`.
24366
+ **/
24367
+ textAlign?: 'left' | 'center' | 'right';
24350
24368
  } & DataAnalyticsAttribute;
24351
24369
  type TablePaginationCommonProps = {
24352
24370
  /**
@@ -24453,16 +24471,16 @@ type TableToolbarActionsProps = {
24453
24471
  declare const Table: <Item>({ children, data, multiSelectTrigger, selectionType, onSelectionChange, isHeaderSticky, isFooterSticky, isFirstColumnSticky, rowDensity, onSortChange, sortFunctions, toolbar, pagination, height, showStripedRows, gridTemplateColumns, isLoading, isRefreshing, showBorderedCells, defaultSelectedIds, ...rest }: TableProps<Item>) => React__default.ReactElement;
24454
24472
 
24455
24473
  declare const TableHeader: ({ children, ...rest }: TableHeaderRowProps) => React__default.ReactElement;
24456
- declare const TableHeaderCell: ({ children, headerKey, _hasPadding, ...rest }: TableHeaderCellProps) => React__default.ReactElement;
24474
+ declare const TableHeaderCell: ({ children, headerKey, _hasPadding, textAlign, ...rest }: TableHeaderCellProps) => React__default.ReactElement;
24457
24475
  declare const TableHeaderRow: ({ children, rowDensity, ...rest }: TableHeaderRowProps) => React__default.ReactElement;
24458
24476
 
24459
24477
  declare const TableBody: ({ children, ...rest }: TableBodyProps) => React__default.ReactElement;
24460
- declare const TableCell: ({ children, _hasPadding, ...rest }: TableCellProps) => React__default.ReactElement;
24478
+ declare const TableCell: ({ children, textAlign, _hasPadding, ...rest }: TableCellProps) => React__default.ReactElement;
24461
24479
  declare const TableRow: <Item>({ children, item, isDisabled, onHover, onClick, hoverActions, testID, ...rest }: TableRowProps<Item>) => React__default.ReactElement;
24462
24480
 
24463
24481
  declare const TableFooter: ({ children, ...rest }: TableFooterProps) => React__default.ReactElement;
24464
24482
  declare const TableFooterRow: ({ children, ...rest }: TableFooterRowProps) => React__default.ReactElement;
24465
- declare const TableFooterCell: ({ children, ...rest }: TableFooterCellProps) => React__default.ReactElement;
24483
+ declare const TableFooterCell: ({ children, textAlign, ...rest }: TableFooterCellProps) => React__default.ReactElement;
24466
24484
 
24467
24485
  declare const TablePagination: ({ currentPage: controlledCurrentPage, onPageChange, onPageSizeChange, defaultPageSize, showPageSizePicker, showPageNumberSelector, showLabel, label, totalItemCount, paginationType, ...rest }: TablePaginationProps) => React__default.ReactElement;
24468
24486
 
@@ -14673,6 +14673,12 @@ type TableHeaderCellProps = {
14673
14673
  * Sorting is enabled only for columns whose key is present in sortableColumns prop of Table.
14674
14674
  **/
14675
14675
  headerKey?: string;
14676
+ /**
14677
+ * The textAlign prop determines the content alignment of the table.
14678
+ * The textAlign prop can be 'left', 'center', or 'right'.
14679
+ * The default value is `left`.
14680
+ **/
14681
+ textAlign?: 'left' | 'center' | 'right';
14676
14682
  _hasPadding?: boolean;
14677
14683
  } & DataAnalyticsAttribute;
14678
14684
  type TableProps<Item> = {
@@ -14864,6 +14870,12 @@ type TableCellProps = {
14864
14870
  * </TableCell>
14865
14871
  **/
14866
14872
  children: React__default.ReactNode;
14873
+ /**
14874
+ * The textAlign prop determines the content alignment of the table.
14875
+ * The textAlign prop can be 'left', 'center', or 'right'.
14876
+ * The default value is `left`.
14877
+ **/
14878
+ textAlign?: 'left' | 'center' | 'right';
14867
14879
  /**
14868
14880
  * Removes padding from CellWrapper
14869
14881
  *
@@ -14904,6 +14916,12 @@ type TableFooterCellProps = {
14904
14916
  * The children of TableHeaderCell can be a string or a ReactNode.
14905
14917
  **/
14906
14918
  children: string | React__default.ReactNode;
14919
+ /**
14920
+ * The textAlign prop determines the content alignment of the table.
14921
+ * The textAlign prop can be 'left', 'center', or 'right'.
14922
+ * The default value is `left`.
14923
+ **/
14924
+ textAlign?: 'left' | 'center' | 'right';
14907
14925
  } & DataAnalyticsAttribute;
14908
14926
  type TablePaginationCommonProps = {
14909
14927
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@razorpay/blade",
3
3
  "description": "The Design System that powers Razorpay",
4
- "version": "12.3.1",
4
+ "version": "12.4.0",
5
5
  "license": "MIT",
6
6
  "engines": {
7
7
  "node": ">=18.12.1"