@audira/carbon-react-native 1.0.3 → 1.0.4
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/lib/commonjs/carbon-style-sheet/color.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/font.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/spacing.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/typography.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/font.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/spacing.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/typography.js +1 -1
- package/lib/commonjs/components/index.js +91 -7
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layer/Layer.js +1 -2
- package/lib/commonjs/components/layer/Layer.js.map +1 -1
- package/lib/commonjs/components/table/Table.js +40 -0
- package/lib/commonjs/components/table/Table.js.map +1 -0
- package/lib/commonjs/components/table/TableProps.js +6 -0
- package/lib/commonjs/components/table/TableProps.js.map +1 -0
- package/lib/commonjs/components/table/TableRef.js +6 -0
- package/lib/commonjs/components/table/TableRef.js.map +1 -0
- package/lib/commonjs/components/table/_TableContext.js +11 -0
- package/lib/commonjs/components/table/_TableContext.js.map +1 -0
- package/lib/commonjs/components/table/index.js +17 -0
- package/lib/commonjs/components/table/index.js.map +1 -0
- package/lib/commonjs/components/table-cell/TableCell.js +52 -0
- package/lib/commonjs/components/table-cell/TableCell.js.map +1 -0
- package/lib/commonjs/components/table-cell/TableCellProps.js +6 -0
- package/lib/commonjs/components/table-cell/TableCellProps.js.map +1 -0
- package/lib/commonjs/components/table-cell/TableCellRef.js +6 -0
- package/lib/commonjs/components/table-cell/TableCellRef.js.map +1 -0
- package/lib/commonjs/components/table-cell/index.js +17 -0
- package/lib/commonjs/components/table-cell/index.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeader.js +154 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeader.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeaderProps.js +6 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeaderProps.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeaderRef.js +6 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeaderRef.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeaderSort.js +2 -0
- package/lib/commonjs/components/table-cell-header/TableCellHeaderSort.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIcon.js +67 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIcon.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIconProps.js +6 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIconProps.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIconRef.js +2 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIconRef.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/index.js +17 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/index.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/index.js +17 -0
- package/lib/commonjs/components/table-cell-header/index.js.map +1 -0
- package/lib/commonjs/components/table-cell-icon/TableCellIcon.js +29 -0
- package/lib/commonjs/components/table-cell-icon/TableCellIcon.js.map +1 -0
- package/lib/commonjs/components/table-cell-icon/TableCellIconProps.js +6 -0
- package/lib/commonjs/components/table-cell-icon/TableCellIconProps.js.map +1 -0
- package/lib/commonjs/components/table-cell-icon/TableCellIconRef.js +6 -0
- package/lib/commonjs/components/table-cell-icon/TableCellIconRef.js.map +1 -0
- package/lib/commonjs/components/table-cell-icon/index.js +17 -0
- package/lib/commonjs/components/table-cell-icon/index.js.map +1 -0
- package/lib/commonjs/components/table-cell-text/TableCellText.js +60 -0
- package/lib/commonjs/components/table-cell-text/TableCellText.js.map +1 -0
- package/lib/commonjs/components/table-cell-text/TableCellTextProps.js +6 -0
- package/lib/commonjs/components/table-cell-text/TableCellTextProps.js.map +1 -0
- package/lib/commonjs/components/table-cell-text/TableCellTextRef.js +6 -0
- package/lib/commonjs/components/table-cell-text/TableCellTextRef.js.map +1 -0
- package/lib/commonjs/components/table-cell-text/index.js +17 -0
- package/lib/commonjs/components/table-cell-text/index.js.map +1 -0
- package/lib/commonjs/components/table-row/TableRow.js +168 -0
- package/lib/commonjs/components/table-row/TableRow.js.map +1 -0
- package/lib/commonjs/components/table-row/TableRowInteractiveState.js +2 -0
- package/lib/commonjs/components/table-row/TableRowInteractiveState.js.map +1 -0
- package/lib/commonjs/components/table-row/TableRowProps.js +6 -0
- package/lib/commonjs/components/table-row/TableRowProps.js.map +1 -0
- package/lib/commonjs/components/table-row/TableRowRef.js +6 -0
- package/lib/commonjs/components/table-row/TableRowRef.js.map +1 -0
- package/lib/commonjs/components/table-row/TableRowSize.js +2 -0
- package/lib/commonjs/components/table-row/TableRowSize.js.map +1 -0
- package/lib/commonjs/components/table-row/_TableRowContext.js +12 -0
- package/lib/commonjs/components/table-row/_TableRowContext.js.map +1 -0
- package/lib/commonjs/components/table-row/_style-sheet-height.js +25 -0
- package/lib/commonjs/components/table-row/_style-sheet-height.js.map +1 -0
- package/lib/commonjs/components/table-row/index.js +17 -0
- package/lib/commonjs/components/table-row/index.js.map +1 -0
- package/lib/commonjs/components/table-row-header/TableRowHeader.js +54 -0
- package/lib/commonjs/components/table-row-header/TableRowHeader.js.map +1 -0
- package/lib/commonjs/components/table-row-header/TableRowHeaderProps.js +6 -0
- package/lib/commonjs/components/table-row-header/TableRowHeaderProps.js.map +1 -0
- package/lib/commonjs/components/table-row-header/TableRowHeaderRef.js +6 -0
- package/lib/commonjs/components/table-row-header/TableRowHeaderRef.js.map +1 -0
- package/lib/commonjs/components/table-row-header/_TableRowHeaderContext.js +14 -0
- package/lib/commonjs/components/table-row-header/_TableRowHeaderContext.js.map +1 -0
- package/lib/commonjs/components/table-row-header/index.js +17 -0
- package/lib/commonjs/components/table-row-header/index.js.map +1 -0
- package/lib/module/carbon-style-sheet/color.js +1 -1
- package/lib/module/carbon-style-sheet/g/font.js +1 -1
- package/lib/module/carbon-style-sheet/g/spacing.js +1 -1
- package/lib/module/carbon-style-sheet/g/typography.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/font.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/spacing.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/typography.js +1 -1
- package/lib/module/components/index.js +7 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layer/Layer.js +1 -2
- package/lib/module/components/layer/Layer.js.map +1 -1
- package/lib/module/components/table/Table.js +35 -0
- package/lib/module/components/table/Table.js.map +1 -0
- package/lib/module/components/table/TableProps.js +4 -0
- package/lib/module/components/table/TableProps.js.map +1 -0
- package/lib/module/components/table/TableRef.js +4 -0
- package/lib/module/components/table/TableRef.js.map +1 -0
- package/lib/module/components/table/_TableContext.js +7 -0
- package/lib/module/components/table/_TableContext.js.map +1 -0
- package/lib/module/components/table/index.js +4 -0
- package/lib/module/components/table/index.js.map +1 -0
- package/lib/module/components/table-cell/TableCell.js +47 -0
- package/lib/module/components/table-cell/TableCell.js.map +1 -0
- package/lib/module/components/table-cell/TableCellProps.js +4 -0
- package/lib/module/components/table-cell/TableCellProps.js.map +1 -0
- package/lib/module/components/table-cell/TableCellRef.js +4 -0
- package/lib/module/components/table-cell/TableCellRef.js.map +1 -0
- package/lib/module/components/table-cell/index.js +4 -0
- package/lib/module/components/table-cell/index.js.map +1 -0
- package/lib/module/components/table-cell-header/TableCellHeader.js +150 -0
- package/lib/module/components/table-cell-header/TableCellHeader.js.map +1 -0
- package/lib/module/components/table-cell-header/TableCellHeaderProps.js +4 -0
- package/lib/module/components/table-cell-header/TableCellHeaderProps.js.map +1 -0
- package/lib/module/components/table-cell-header/TableCellHeaderRef.js +4 -0
- package/lib/module/components/table-cell-header/TableCellHeaderRef.js.map +1 -0
- package/lib/module/components/table-cell-header/TableCellHeaderSort.js +2 -0
- package/lib/module/components/table-cell-header/TableCellHeaderSort.js.map +1 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIcon.js +62 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIcon.js.map +1 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIconProps.js +4 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIconProps.js.map +1 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIconRef.js +2 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIconRef.js.map +1 -0
- package/lib/module/components/table-cell-header/_sort-icon/index.js +4 -0
- package/lib/module/components/table-cell-header/_sort-icon/index.js.map +1 -0
- package/lib/module/components/table-cell-header/index.js +4 -0
- package/lib/module/components/table-cell-header/index.js.map +1 -0
- package/lib/module/components/table-cell-icon/TableCellIcon.js +25 -0
- package/lib/module/components/table-cell-icon/TableCellIcon.js.map +1 -0
- package/lib/module/components/table-cell-icon/TableCellIconProps.js +4 -0
- package/lib/module/components/table-cell-icon/TableCellIconProps.js.map +1 -0
- package/lib/module/components/table-cell-icon/TableCellIconRef.js +4 -0
- package/lib/module/components/table-cell-icon/TableCellIconRef.js.map +1 -0
- package/lib/module/components/table-cell-icon/index.js +4 -0
- package/lib/module/components/table-cell-icon/index.js.map +1 -0
- package/lib/module/components/table-cell-text/TableCellText.js +55 -0
- package/lib/module/components/table-cell-text/TableCellText.js.map +1 -0
- package/lib/module/components/table-cell-text/TableCellTextProps.js +4 -0
- package/lib/module/components/table-cell-text/TableCellTextProps.js.map +1 -0
- package/lib/module/components/table-cell-text/TableCellTextRef.js +4 -0
- package/lib/module/components/table-cell-text/TableCellTextRef.js.map +1 -0
- package/lib/module/components/table-cell-text/index.js +4 -0
- package/lib/module/components/table-cell-text/index.js.map +1 -0
- package/lib/module/components/table-row/TableRow.js +163 -0
- package/lib/module/components/table-row/TableRow.js.map +1 -0
- package/lib/module/components/table-row/TableRowInteractiveState.js +2 -0
- package/lib/module/components/table-row/TableRowInteractiveState.js.map +1 -0
- package/lib/module/components/table-row/TableRowProps.js +4 -0
- package/lib/module/components/table-row/TableRowProps.js.map +1 -0
- package/lib/module/components/table-row/TableRowRef.js +4 -0
- package/lib/module/components/table-row/TableRowRef.js.map +1 -0
- package/lib/module/components/table-row/TableRowSize.js +2 -0
- package/lib/module/components/table-row/TableRowSize.js.map +1 -0
- package/lib/module/components/table-row/_TableRowContext.js +8 -0
- package/lib/module/components/table-row/_TableRowContext.js.map +1 -0
- package/lib/module/components/table-row/_style-sheet-height.js +21 -0
- package/lib/module/components/table-row/_style-sheet-height.js.map +1 -0
- package/lib/module/components/table-row/index.js +4 -0
- package/lib/module/components/table-row/index.js.map +1 -0
- package/lib/module/components/table-row-header/TableRowHeader.js +49 -0
- package/lib/module/components/table-row-header/TableRowHeader.js.map +1 -0
- package/lib/module/components/table-row-header/TableRowHeaderProps.js +4 -0
- package/lib/module/components/table-row-header/TableRowHeaderProps.js.map +1 -0
- package/lib/module/components/table-row-header/TableRowHeaderRef.js +4 -0
- package/lib/module/components/table-row-header/TableRowHeaderRef.js.map +1 -0
- package/lib/module/components/table-row-header/_TableRowHeaderContext.js +10 -0
- package/lib/module/components/table-row-header/_TableRowHeaderContext.js.map +1 -0
- package/lib/module/components/table-row-header/index.js +4 -0
- package/lib/module/components/table-row-header/index.js.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +7 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/layer/LayerProps.d.ts +5 -2
- package/lib/typescript/commonjs/components/layer/LayerProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table/Table.d.ts +4 -0
- package/lib/typescript/commonjs/components/table/Table.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table/TableProps.d.ts +10 -0
- package/lib/typescript/commonjs/components/table/TableProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table/TableRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table/TableRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table/_TableContext.d.ts +6 -0
- package/lib/typescript/commonjs/components/table/_TableContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell/TableCell.d.ts +17 -0
- package/lib/typescript/commonjs/components/table-cell/TableCell.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell/TableCellProps.d.ts +28 -0
- package/lib/typescript/commonjs/components/table-cell/TableCellProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell/TableCellRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell/TableCellRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeader.d.ts +22 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeaderProps.d.ts +19 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeaderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeaderRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeaderRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeaderSort.d.ts +2 -0
- package/lib/typescript/commonjs/components/table-cell-header/TableCellHeaderSort.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIcon.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIconProps.d.ts +6 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIconProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIconRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIconRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-cell-header/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-icon/TableCellIcon.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-icon/TableCellIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-icon/TableCellIconProps.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-cell-icon/TableCellIconProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-icon/TableCellIconRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-icon/TableCellIconRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-icon/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-icon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellText.d.ts +7 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellText.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellTextProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellTextProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellTextRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellTextRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-text/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-text/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/TableRow.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row/TableRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/TableRowInteractiveState.d.ts +2 -0
- package/lib/typescript/commonjs/components/table-row/TableRowInteractiveState.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/TableRowProps.d.ts +36 -0
- package/lib/typescript/commonjs/components/table-row/TableRowProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/TableRowRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row/TableRowRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/TableRowSize.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-row/TableRowSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/_TableRowContext.d.ts +7 -0
- package/lib/typescript/commonjs/components/table-row/_TableRowContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/_style-sheet-height.d.ts +18 -0
- package/lib/typescript/commonjs/components/table-row/_style-sheet-height.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/index.d.ts +6 -0
- package/lib/typescript/commonjs/components/table-row/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-header/TableRowHeader.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row-header/TableRowHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-header/TableRowHeaderProps.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-row-header/TableRowHeaderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-header/TableRowHeaderRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row-header/TableRowHeaderRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-header/_TableRowHeaderContext.d.ts +7 -0
- package/lib/typescript/commonjs/components/table-row-header/_TableRowHeaderContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-header/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row-header/index.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +7 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -1
- package/lib/typescript/module/components/layer/LayerProps.d.ts +5 -2
- package/lib/typescript/module/components/layer/LayerProps.d.ts.map +1 -1
- package/lib/typescript/module/components/table/Table.d.ts +4 -0
- package/lib/typescript/module/components/table/Table.d.ts.map +1 -0
- package/lib/typescript/module/components/table/TableProps.d.ts +10 -0
- package/lib/typescript/module/components/table/TableProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table/TableRef.d.ts +4 -0
- package/lib/typescript/module/components/table/TableRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table/_TableContext.d.ts +6 -0
- package/lib/typescript/module/components/table/_TableContext.d.ts.map +1 -0
- package/lib/typescript/module/components/table/index.d.ts +4 -0
- package/lib/typescript/module/components/table/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell/TableCell.d.ts +17 -0
- package/lib/typescript/module/components/table-cell/TableCell.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell/TableCellProps.d.ts +28 -0
- package/lib/typescript/module/components/table-cell/TableCellProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell/TableCellRef.d.ts +4 -0
- package/lib/typescript/module/components/table-cell/TableCellRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell/index.d.ts +4 -0
- package/lib/typescript/module/components/table-cell/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeader.d.ts +22 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeader.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeaderProps.d.ts +19 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeaderProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeaderRef.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeaderRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeaderSort.d.ts +2 -0
- package/lib/typescript/module/components/table-cell-header/TableCellHeaderSort.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIcon.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIconProps.d.ts +6 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIconProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIconRef.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIconRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/index.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/index.d.ts +5 -0
- package/lib/typescript/module/components/table-cell-header/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-icon/TableCellIcon.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-icon/TableCellIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-icon/TableCellIconProps.d.ts +5 -0
- package/lib/typescript/module/components/table-cell-icon/TableCellIconProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-icon/TableCellIconRef.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-icon/TableCellIconRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-icon/index.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-icon/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-text/TableCellText.d.ts +7 -0
- package/lib/typescript/module/components/table-cell-text/TableCellText.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-text/TableCellTextProps.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-text/TableCellTextProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-text/TableCellTextRef.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-text/TableCellTextRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-text/index.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-text/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/TableRow.d.ts +4 -0
- package/lib/typescript/module/components/table-row/TableRow.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/TableRowInteractiveState.d.ts +2 -0
- package/lib/typescript/module/components/table-row/TableRowInteractiveState.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/TableRowProps.d.ts +36 -0
- package/lib/typescript/module/components/table-row/TableRowProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/TableRowRef.d.ts +4 -0
- package/lib/typescript/module/components/table-row/TableRowRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/TableRowSize.d.ts +5 -0
- package/lib/typescript/module/components/table-row/TableRowSize.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/_TableRowContext.d.ts +7 -0
- package/lib/typescript/module/components/table-row/_TableRowContext.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/_style-sheet-height.d.ts +18 -0
- package/lib/typescript/module/components/table-row/_style-sheet-height.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/index.d.ts +6 -0
- package/lib/typescript/module/components/table-row/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-header/TableRowHeader.d.ts +4 -0
- package/lib/typescript/module/components/table-row-header/TableRowHeader.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-header/TableRowHeaderProps.d.ts +5 -0
- package/lib/typescript/module/components/table-row-header/TableRowHeaderProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-header/TableRowHeaderRef.d.ts +4 -0
- package/lib/typescript/module/components/table-row-header/TableRowHeaderRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-header/_TableRowHeaderContext.d.ts +7 -0
- package/lib/typescript/module/components/table-row-header/_TableRowHeaderContext.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-header/index.d.ts +4 -0
- package/lib/typescript/module/components/table-row-header/index.d.ts.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/carbon-style-sheet/color.ts +1 -1
- package/src/carbon-style-sheet/g/font.ts +1 -1
- package/src/carbon-style-sheet/g/spacing.ts +1 -1
- package/src/carbon-style-sheet/g/typography.ts +1 -1
- package/src/carbon-style-sheet/g-object/font.ts +1 -1
- package/src/carbon-style-sheet/g-object/spacing.ts +1 -1
- package/src/carbon-style-sheet/g-object/typography.ts +1 -1
- package/src/components/index.ts +7 -0
- package/src/components/layer/Layer.tsx +3 -4
- package/src/components/layer/LayerProps.ts +5 -2
- package/src/components/table/Table.tsx +69 -0
- package/src/components/table/TableProps.ts +15 -0
- package/src/components/table/TableRef.ts +6 -0
- package/src/components/table/_TableContext.ts +15 -0
- package/src/components/table/index.ts +3 -0
- package/src/components/table-cell/TableCell.tsx +93 -0
- package/src/components/table-cell/TableCellProps.ts +33 -0
- package/src/components/table-cell/TableCellRef.ts +6 -0
- package/src/components/table-cell/index.ts +3 -0
- package/src/components/table-cell-header/TableCellHeader.tsx +274 -0
- package/src/components/table-cell-header/TableCellHeaderProps.ts +34 -0
- package/src/components/table-cell-header/TableCellHeaderRef.ts +6 -0
- package/src/components/table-cell-header/TableCellHeaderSort.ts +4 -0
- package/src/components/table-cell-header/_sort-icon/SortIcon.tsx +136 -0
- package/src/components/table-cell-header/_sort-icon/SortIconProps.ts +11 -0
- package/src/components/table-cell-header/_sort-icon/SortIconRef.ts +3 -0
- package/src/components/table-cell-header/_sort-icon/index.ts +3 -0
- package/src/components/table-cell-header/index.ts +4 -0
- package/src/components/table-cell-icon/TableCellIcon.tsx +54 -0
- package/src/components/table-cell-icon/TableCellIconProps.ts +16 -0
- package/src/components/table-cell-icon/TableCellIconRef.ts +4 -0
- package/src/components/table-cell-icon/index.ts +3 -0
- package/src/components/table-cell-text/TableCellText.tsx +111 -0
- package/src/components/table-cell-text/TableCellTextProps.ts +9 -0
- package/src/components/table-cell-text/TableCellTextRef.ts +6 -0
- package/src/components/table-cell-text/index.ts +3 -0
- package/src/components/table-row/TableRow.tsx +271 -0
- package/src/components/table-row/TableRowInteractiveState.ts +4 -0
- package/src/components/table-row/TableRowProps.ts +45 -0
- package/src/components/table-row/TableRowRef.ts +6 -0
- package/src/components/table-row/TableRowSize.ts +9 -0
- package/src/components/table-row/_TableRowContext.ts +17 -0
- package/src/components/table-row/_style-sheet-height.ts +27 -0
- package/src/components/table-row/index.ts +5 -0
- package/src/components/table-row-header/TableRowHeader.tsx +115 -0
- package/src/components/table-row-header/TableRowHeaderProps.ts +13 -0
- package/src/components/table-row-header/TableRowHeaderRef.ts +6 -0
- package/src/components/table-row-header/_TableRowHeaderContext.ts +19 -0
- package/src/components/table-row-header/index.ts +3 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useCallback, useContext, useMemo, useState } from "react";
|
|
4
|
+
import { Platform, Pressable, StyleSheet } from "react-native";
|
|
5
|
+
import { Motion } from "@audira/carbon-react-native-elements";
|
|
6
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
7
|
+
import { LayerContext } from "../layer/index.js";
|
|
8
|
+
import { TableContext } from "../table/_TableContext.js";
|
|
9
|
+
import { TableRowContext } from "./_TableRowContext.js";
|
|
10
|
+
import { StyleSheetHeight } from "./_style-sheet-height.js";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
export const TableRow = /*#__PURE__*/forwardRef(function TableRow({
|
|
13
|
+
interactiveState = "normal",
|
|
14
|
+
size: sizeProp,
|
|
15
|
+
zebra,
|
|
16
|
+
onHoverIn: onHoverInProp,
|
|
17
|
+
onHoverOut: onHoverOutProp,
|
|
18
|
+
role = "row",
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}, ref) {
|
|
23
|
+
CarbonStyleSheet.use();
|
|
24
|
+
const layerContext = useContext(LayerContext),
|
|
25
|
+
tableContext = useContext(TableContext),
|
|
26
|
+
size = useMemo(() => {
|
|
27
|
+
return sizeProp ?? tableContext.rowSize;
|
|
28
|
+
}, [sizeProp, tableContext.rowSize]),
|
|
29
|
+
[hovered, setHovered] = useState(false);
|
|
30
|
+
const onHoverIn = useCallback(event => {
|
|
31
|
+
setHovered(true);
|
|
32
|
+
onHoverInProp?.(event);
|
|
33
|
+
}, [onHoverInProp]),
|
|
34
|
+
onHoverOut = useCallback(event => {
|
|
35
|
+
setHovered(false);
|
|
36
|
+
onHoverOutProp?.(event);
|
|
37
|
+
}, [onHoverOutProp]);
|
|
38
|
+
return /*#__PURE__*/_jsx(TableRowContext.Provider, {
|
|
39
|
+
value: {
|
|
40
|
+
interactiveState,
|
|
41
|
+
hovered
|
|
42
|
+
},
|
|
43
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
44
|
+
ref: ref,
|
|
45
|
+
...props,
|
|
46
|
+
role: role,
|
|
47
|
+
onHoverIn: onHoverIn,
|
|
48
|
+
onHoverOut: onHoverOut,
|
|
49
|
+
style: [styleSheet.tableRow, CarbonStyleSheet.g.flex_auto, CarbonStyleSheet.g.flex_row, StyleSheetHeight[size], getInteractiveStateStyle(interactiveState, {
|
|
50
|
+
layer: layerContext,
|
|
51
|
+
hovered,
|
|
52
|
+
zebra
|
|
53
|
+
}), size === "extra_large" ? CarbonStyleSheet.g.pt_05 : CarbonStyleSheet.g.items_center, style],
|
|
54
|
+
children: children
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
const styleSheet = StyleSheet.create({
|
|
59
|
+
tableRow: {
|
|
60
|
+
borderBottomWidth: 1,
|
|
61
|
+
borderStyle: "solid",
|
|
62
|
+
...Platform.select({
|
|
63
|
+
web: {
|
|
64
|
+
transitionProperty: "background-color, border-bottom-color",
|
|
65
|
+
transitionDuration: `${Motion.Duration.fast_01}ms`,
|
|
66
|
+
transitionTimingFunction: `cubic-bezier(${Motion.Easing.entrance.productive.x1},${Motion.Easing.entrance.productive.y1},${Motion.Easing.entrance.productive.x2},${Motion.Easing.entrance.productive.y2})`
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
styleSheetInteractiveStatePerLayer = {
|
|
72
|
+
"1": CarbonStyleSheet.create({
|
|
73
|
+
normal: {
|
|
74
|
+
backgroundColor: CarbonStyleSheet.color.layer_01,
|
|
75
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_01
|
|
76
|
+
},
|
|
77
|
+
hovered: {
|
|
78
|
+
backgroundColor: CarbonStyleSheet.color.layer_hover_01,
|
|
79
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_01
|
|
80
|
+
},
|
|
81
|
+
disabled: {
|
|
82
|
+
backgroundColor: CarbonStyleSheet.color.layer_01,
|
|
83
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_01
|
|
84
|
+
},
|
|
85
|
+
selected: {
|
|
86
|
+
backgroundColor: CarbonStyleSheet.color.layer_selected_01,
|
|
87
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_selected_01
|
|
88
|
+
},
|
|
89
|
+
selected_hover: {
|
|
90
|
+
backgroundColor: CarbonStyleSheet.color.layer_selected_hover_01,
|
|
91
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_selected_01
|
|
92
|
+
},
|
|
93
|
+
zebra: {
|
|
94
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_01,
|
|
95
|
+
borderBottomColor: CarbonStyleSheet.color.layer_accent_01
|
|
96
|
+
}
|
|
97
|
+
}),
|
|
98
|
+
"2": CarbonStyleSheet.create({
|
|
99
|
+
normal: {
|
|
100
|
+
backgroundColor: CarbonStyleSheet.color.layer_02,
|
|
101
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_02
|
|
102
|
+
},
|
|
103
|
+
hovered: {
|
|
104
|
+
backgroundColor: CarbonStyleSheet.color.layer_hover_02,
|
|
105
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_02
|
|
106
|
+
},
|
|
107
|
+
disabled: {
|
|
108
|
+
backgroundColor: CarbonStyleSheet.color.layer_02,
|
|
109
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_02
|
|
110
|
+
},
|
|
111
|
+
selected: {
|
|
112
|
+
backgroundColor: CarbonStyleSheet.color.layer_selected_02,
|
|
113
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_selected_02
|
|
114
|
+
},
|
|
115
|
+
selected_hover: {
|
|
116
|
+
backgroundColor: CarbonStyleSheet.color.layer_selected_hover_02,
|
|
117
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_selected_02
|
|
118
|
+
},
|
|
119
|
+
zebra: {
|
|
120
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_02,
|
|
121
|
+
borderBottomColor: CarbonStyleSheet.color.layer_accent_02
|
|
122
|
+
}
|
|
123
|
+
}),
|
|
124
|
+
"3": CarbonStyleSheet.create({
|
|
125
|
+
normal: {
|
|
126
|
+
backgroundColor: CarbonStyleSheet.color.layer_03,
|
|
127
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_03
|
|
128
|
+
},
|
|
129
|
+
hovered: {
|
|
130
|
+
backgroundColor: CarbonStyleSheet.color.layer_hover_03,
|
|
131
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_03
|
|
132
|
+
},
|
|
133
|
+
disabled: {
|
|
134
|
+
backgroundColor: CarbonStyleSheet.color.layer_03,
|
|
135
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_03
|
|
136
|
+
},
|
|
137
|
+
selected: {
|
|
138
|
+
backgroundColor: CarbonStyleSheet.color.layer_selected_03,
|
|
139
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_selected_03
|
|
140
|
+
},
|
|
141
|
+
selected_hover: {
|
|
142
|
+
backgroundColor: CarbonStyleSheet.color.layer_selected_hover_03,
|
|
143
|
+
borderBottomColor: CarbonStyleSheet.color.border_subtle_selected_03
|
|
144
|
+
},
|
|
145
|
+
zebra: {
|
|
146
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_03,
|
|
147
|
+
borderBottomColor: CarbonStyleSheet.color.layer_accent_03
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
};
|
|
151
|
+
function getInteractiveStateStyle(interactiveState, data) {
|
|
152
|
+
if (!data.hovered) {
|
|
153
|
+
if (data.zebra && interactiveState == "normal") {
|
|
154
|
+
return styleSheetInteractiveStatePerLayer[data.layer].zebra;
|
|
155
|
+
}
|
|
156
|
+
return styleSheetInteractiveStatePerLayer[data.layer][interactiveState];
|
|
157
|
+
}
|
|
158
|
+
if (interactiveState == "selected") {
|
|
159
|
+
return styleSheetInteractiveStatePerLayer[data.layer].selected_hover;
|
|
160
|
+
}
|
|
161
|
+
return styleSheetInteractiveStatePerLayer[data.layer].hovered;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=TableRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useCallback","useContext","useMemo","useState","Platform","Pressable","StyleSheet","Motion","CarbonStyleSheet","LayerContext","TableContext","TableRowContext","StyleSheetHeight","jsx","_jsx","TableRow","interactiveState","size","sizeProp","zebra","onHoverIn","onHoverInProp","onHoverOut","onHoverOutProp","role","style","children","props","ref","use","layerContext","tableContext","rowSize","hovered","setHovered","event","Provider","value","styleSheet","tableRow","g","flex_auto","flex_row","getInteractiveStateStyle","layer","pt_05","items_center","create","borderBottomWidth","borderStyle","select","web","transitionProperty","transitionDuration","Duration","fast_01","transitionTimingFunction","Easing","entrance","productive","x1","y1","x2","y2","styleSheetInteractiveStatePerLayer","normal","backgroundColor","color","layer_01","borderBottomColor","border_subtle_01","layer_hover_01","disabled","selected","layer_selected_01","border_subtle_selected_01","selected_hover","layer_selected_hover_01","layer_accent_01","layer_02","border_subtle_02","layer_hover_02","layer_selected_02","border_subtle_selected_02","layer_selected_hover_02","layer_accent_02","layer_03","border_subtle_03","layer_hover_03","layer_selected_03","border_subtle_selected_03","layer_selected_hover_03","layer_accent_03","data"],"sourceRoot":"../../../../src","sources":["components/table-row/TableRow.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,UAAU,EACVC,OAAO,EACPC,QAAQ,QACF,OAAO;AAEd,SACCC,QAAQ,EACRC,SAAS,EACTC,UAAU,QAGJ,cAAc;AAErB,SACCC,MAAM,QAEA,sCAAsC;AAE7C,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,YAAY,QACN,mBAAU;AAEjB,SACCC,YAAY,QACN,2BAAwB;AAc/B,SACCC,eAAe,QACT,uBAAoB;AAE3B,SACCC,gBAAgB,QACV,0BAAuB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE9B,OAAO,MAAMC,QAAQ,gBAAGhB,UAAU,CACjC,SAASgB,QAAQA,CAChB;EACCC,gBAAgB,GAAG,QAAQ;EAC3BC,IAAI,EAAEC,QAAQ;EACdC,KAAK;EACLC,SAAS,EAAEC,aAAa;EACxBC,UAAU,EAAEC,cAAc;EAC1BC,IAAI,GAAG,KAAK;EACZC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAEDpB,gBAAgB,CAACqB,GAAG,CAAC,CAAC;EAEtB,MACCC,YAAY,GACX7B,UAAU,CAACQ,YAAY,CAAC;IAEzBsB,YAAY,GACX9B,UAAU,CAACS,YAAY,CAAC;IAEzBO,IAAI,GACHf,OAAO,CAAC,MAAM;MACb,OAAOgB,QAAQ,IAAIa,YAAY,CAACC,OAAO;IACxC,CAAC,EAAE,CACFd,QAAQ,EACRa,YAAY,CAACC,OAAO,CACpB,CAAC;IAEH,CAACC,OAAO,EAAEC,UAAU,CAAC,GACpB/B,QAAQ,CAAC,KAAK,CAAC;EAEjB,MACCiB,SAAmD,GAClDpB,WAAW,CAACmC,KAAK,IAAI;MACpBD,UAAU,CAAC,IAAI,CAAC;MAChBb,aAAa,GAAGc,KAAK,CAAC;IACvB,CAAC,EAAE,CAC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ractiveState.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row/TableRowProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row/TableRowRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row/TableRowSize.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","TableRowContext","interactiveState","hovered"],"sourceRoot":"../../../../src","sources":["components/table-row/_TableRowContext.ts"],"mappings":";;AAAA,SACCA,aAAa,QACP,OAAO;AAWd,OAAO,MAAMC,eAAe,gBAAGD,aAAa,CAAkB;EAC7DE,gBAAgB,EAAE,QAAQ;EAC1BC,OAAO,EAAE;AACV,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
export const StyleSheetHeight = StyleSheet.create({
|
|
5
|
+
extra_small: {
|
|
6
|
+
height: 24
|
|
7
|
+
},
|
|
8
|
+
small: {
|
|
9
|
+
height: 32
|
|
10
|
+
},
|
|
11
|
+
medium: {
|
|
12
|
+
height: 40
|
|
13
|
+
},
|
|
14
|
+
large: {
|
|
15
|
+
height: 48
|
|
16
|
+
},
|
|
17
|
+
extra_large: {
|
|
18
|
+
height: 64
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=_style-sheet-height.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","StyleSheetHeight","create","extra_small","height","small","medium","large","extra_large"],"sourceRoot":"../../../../src","sources":["components/table-row/_style-sheet-height.ts"],"mappings":";;AAAA,SACCA,UAAU,QAEJ,cAAc;AAMrB,OAAO,MAAMC,gBAAgB,GAC5BD,UAAU,CAACE,MAAM,CAAC;EACjBC,WAAW,EAAE;IACZC,MAAM,EAAE;EACT,CAAC;EACDC,KAAK,EAAE;IACND,MAAM,EAAE;EACT,CAAC;EACDE,MAAM,EAAE;IACPF,MAAM,EAAE;EACT,CAAC;EACDG,KAAK,EAAE;IACNH,MAAM,EAAE;EACT,CAAC;EACDI,WAAW,EAAE;IACZJ,MAAM,EAAE;EACT;AACD,CAAoE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row/index.ts"],"mappings":";;AAAA,cAAc,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useContext, useMemo } from "react";
|
|
4
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
5
|
+
import { Box } from "../box/index.js";
|
|
6
|
+
import { LayerContext } from "../layer/index.js";
|
|
7
|
+
import { TableContext } from "../table/_TableContext.js";
|
|
8
|
+
import { StyleSheetHeight } from "../table-row/_style-sheet-height.js";
|
|
9
|
+
import { TableRowHeaderContext } from "./_TableRowHeaderContext.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
export const TableRowHeader = /*#__PURE__*/forwardRef(function TableRowHeader({
|
|
12
|
+
size: sizeProp,
|
|
13
|
+
role = "row",
|
|
14
|
+
style,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) {
|
|
18
|
+
CarbonStyleSheet.use();
|
|
19
|
+
const layerContext = useContext(LayerContext),
|
|
20
|
+
tableContext = useContext(TableContext),
|
|
21
|
+
size = useMemo(() => {
|
|
22
|
+
return sizeProp ?? tableContext.rowSize;
|
|
23
|
+
}, [sizeProp, tableContext.rowSize]);
|
|
24
|
+
return /*#__PURE__*/_jsx(TableRowHeaderContext.Provider, {
|
|
25
|
+
value: {
|
|
26
|
+
inRowHeader: true,
|
|
27
|
+
size
|
|
28
|
+
},
|
|
29
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
30
|
+
ref: ref,
|
|
31
|
+
...props,
|
|
32
|
+
role: role,
|
|
33
|
+
style: [CarbonStyleSheet.g.flex_auto, CarbonStyleSheet.g.flex_row, StyleSheetHeight[size], styleSheetBG[`normal_${layerContext}`], style],
|
|
34
|
+
children: children
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const styleSheetBG = CarbonStyleSheet.create({
|
|
39
|
+
normal_1: {
|
|
40
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_01
|
|
41
|
+
},
|
|
42
|
+
normal_2: {
|
|
43
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_02
|
|
44
|
+
},
|
|
45
|
+
normal_3: {
|
|
46
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_02
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=TableRowHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","useMemo","CarbonStyleSheet","Box","LayerContext","TableContext","StyleSheetHeight","TableRowHeaderContext","jsx","_jsx","TableRowHeader","size","sizeProp","role","style","children","props","ref","use","layerContext","tableContext","rowSize","Provider","value","inRowHeader","g","flex_auto","flex_row","styleSheetBG","create","normal_1","backgroundColor","color","layer_accent_01","normal_2","layer_accent_02","normal_3"],"sourceRoot":"../../../../src","sources":["components/table-row-header/TableRowHeader.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,EACVC,OAAO,QACD,OAAO;AAUd,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,GAAG,QACG,iBAAQ;AAEf,SACCC,YAAY,QACN,mBAAU;AAEjB,SACCC,YAAY,QACN,2BAA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Ae,EAAE7B,gBAAgB,CAAC8B,KAAK,CAACG;EACzC,CAAC;EACDC,QAAQ,EAAE;IACTL,eAAe,EAAE7B,gBAAgB,CAAC8B,KAAK,CAACG;EACzC;AACD,CAEC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row-header/TableRowHeaderProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row-header/TableRowHeaderRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext } from "react";
|
|
4
|
+
export const TableRowHeaderContext = /*#__PURE__*/createContext({
|
|
5
|
+
// Have to provide false as initial value
|
|
6
|
+
// to tell the `TableCellText` that it is not used inside of `TableRowHeader`
|
|
7
|
+
inRowHeader: false,
|
|
8
|
+
size: "large"
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=_TableRowHeaderContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","TableRowHeaderContext","inRowHeader","size"],"sourceRoot":"../../../../src","sources":["components/table-row-header/_TableRowHeaderContext.ts"],"mappings":";;AAAA,SACCA,aAAa,QACP,OAAO;AAWd,OAAO,MAAMC,qBAAqB,gBAAGD,aAAa,CAAwB;EACzE;EACA;EACAE,WAAW,EAAE,KAAK;EAClBC,IAAI,EAAE;AACP,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-row-header/index.ts"],"mappings":";;AAAA,cAAc,qBAAkB","ignoreList":[]}
|
|
@@ -24,6 +24,13 @@ export * from "./radio-button";
|
|
|
24
24
|
export * from "./radio-button-group";
|
|
25
25
|
export * from "./radio-button-input";
|
|
26
26
|
export * from "./switch";
|
|
27
|
+
export * from "./table";
|
|
28
|
+
export * from "./table-cell";
|
|
29
|
+
export * from "./table-cell-header";
|
|
30
|
+
export * from "./table-cell-icon";
|
|
31
|
+
export * from "./table-cell-text";
|
|
32
|
+
export * from "./table-row";
|
|
33
|
+
export * from "./table-row-header";
|
|
27
34
|
export * from "./text";
|
|
28
35
|
export * from "./text-area";
|
|
29
36
|
export * from "./text-area-field";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAElC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,MAAM,GACN,CAAA;AAED,cAAc,aAAa,CAAA;AAC3B,cAAc,OAAO,CAAA;AACrB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACj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AAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/Layer.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EACX,UAAU,EACV,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,QAAQ,EACR,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/Layer.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EACX,UAAU,EACV,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,QAAQ,EACR,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,KAAK,iGAoCjB,CAAA"}
|
|
@@ -2,8 +2,11 @@ import type { ViewProps } from "react-native";
|
|
|
2
2
|
import type { ColorLayerLevel } from "@audira/carbon-react-native-elements";
|
|
3
3
|
export interface LayerProps extends ViewProps {
|
|
4
4
|
/**
|
|
5
|
-
* Specify the layer level and override any existing levels based on hierarchy
|
|
6
|
-
* @default
|
|
5
|
+
* Specify the layer level and override any existing levels based on hierarchy.
|
|
6
|
+
* @default
|
|
7
|
+
* ```
|
|
8
|
+
* level + 1
|
|
9
|
+
* ```
|
|
7
10
|
*/
|
|
8
11
|
level?: ColorLayerLevel;
|
|
9
12
|
withBackground?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/LayerProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,eAAe,EACf,MAAM,sCAAsC,CAAA;AAE7C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC5C
|
|
1
|
+
{"version":3,"file":"LayerProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/LayerProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,eAAe,EACf,MAAM,sCAAsC,CAAA;AAE7C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC5C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/Table.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACX,UAAU,EACV,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,QAAQ,EACR,MAAM,YAAY,CAAA;AAMnB,eAAO,MAAM,KAAK,iGA0CjB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BoxProps } from "../box/BoxProps";
|
|
2
|
+
import type { TableRowSize } from "../table-row/TableRowSize";
|
|
3
|
+
export interface TableProps extends BoxProps {
|
|
4
|
+
/**
|
|
5
|
+
* @default "large"
|
|
6
|
+
* @see https://carbondesignsystem.com/components/data-table/style/#rows
|
|
7
|
+
*/
|
|
8
|
+
rowSize?: TableRowSize;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=TableProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/TableProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,QAAQ,EACR,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EACX,YAAY,EACZ,MAAM,2BAA2B,CAAA;AAElC,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRef.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/TableRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,IAAI,EACJ,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,QAAS,SAAQ,IAAI;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_TableContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/_TableContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACX,YAAY,EACZ,MAAM,2BAA2B,CAAA;AAElC,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,YAAY,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,uCAEvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,mBAAmB,cAAc,CAAA;AACjC,mBAAmB,YAAY,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TableCellProps } from "./TableCellProps";
|
|
2
|
+
import type { TableCellRef } from "./TableCellRef";
|
|
3
|
+
/**
|
|
4
|
+
* `TableCell` is a pure React Native View to render
|
|
5
|
+
* container with a correct horizontal padding.
|
|
6
|
+
*
|
|
7
|
+
* To ensure consistent column alignment across rows,
|
|
8
|
+
* you need to provide fixed `width` of the cell.
|
|
9
|
+
* Sets an explicit width for the cell (in pixels) and
|
|
10
|
+
* acts as a column constraint. This helps simulate
|
|
11
|
+
* table-like behavior, since React Native relies on
|
|
12
|
+
* flexbox and does not provide native table layout.
|
|
13
|
+
* Without this, cells in the same column may render
|
|
14
|
+
* with inconsistent widths across different rows.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<TableCellRef>>;
|
|
17
|
+
//# sourceMappingURL=TableCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell/TableCell.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACX,cAAc,EACd,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EACX,YAAY,EACZ,MAAM,gBAAgB,CAAA;AAEvB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,yGAoDrB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { TableCellTextProps } from "../table-cell-text/TableCellTextProps";
|
|
3
|
+
export interface TableCellProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Fixed width of the cell used to ensure consistent column alignment across rows.
|
|
6
|
+
*
|
|
7
|
+
* Sets an explicit width for the cell (in pixels) and
|
|
8
|
+
* acts as a column constraint. This helps simulate
|
|
9
|
+
* table-like behavior, since React Native relies on
|
|
10
|
+
* flexbox and does not provide native table layout.
|
|
11
|
+
* Without this, cells in the same column may render
|
|
12
|
+
* with inconsistent widths across different rows.
|
|
13
|
+
*/
|
|
14
|
+
width?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Provide text to the cell.
|
|
17
|
+
*
|
|
18
|
+
* As an alternative, you can use `TableCellText` as a child of this component.
|
|
19
|
+
*
|
|
20
|
+
* `children` prop takes over precedence over this prop.
|
|
21
|
+
*/
|
|
22
|
+
text?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Only applies if you use the `text` prop instead of `children`
|
|
25
|
+
*/
|
|
26
|
+
textProps?: Omit<TableCellTextProps, "children">;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=TableCellProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell/TableCellProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,kBAAkB,EAClB,MAAM,uCAAuC,CAAA;AAE9C,MAAM,WAAW,cAAe,SAAQ,SAAS;IAChD;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellRef.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell/TableCellRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,IAAI,EACJ,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,YAAa,SAAQ,IAAI;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TableCellHeaderProps } from "./TableCellHeaderProps";
|
|
2
|
+
import type { TableCellHeaderRef } from "./TableCellHeaderRef";
|
|
3
|
+
/**
|
|
4
|
+
* Similar as the `TableCell`. `TableCellHeader` is also a View to render
|
|
5
|
+
* container with a correct horizontal padding, with additional
|
|
6
|
+
* sorting icon option and its coloring.
|
|
7
|
+
*
|
|
8
|
+
* It's better to use the `TableCell` instead of `TableCellHeader`
|
|
9
|
+
* if a header cell is not using the sorting icon at all to save a bit of memory
|
|
10
|
+
* because `TableCellHeader` has bunch of Pressable logics and two icons loaded.
|
|
11
|
+
*
|
|
12
|
+
* To ensure consistent column alignment across rows,
|
|
13
|
+
* you need to provide fixed `width` of the cell.
|
|
14
|
+
* Sets an explicit width for the cell (in pixels) and
|
|
15
|
+
* acts as a column constraint. This helps simulate
|
|
16
|
+
* table-like behavior, since React Native relies on
|
|
17
|
+
* flexbox and does not provide native table layout.
|
|
18
|
+
* Without this, cells in the same column may render
|
|
19
|
+
* with inconsistent widths across different rows.
|
|
20
|
+
*/
|
|
21
|
+
export declare const TableCellHeader: import("react").ForwardRefExoticComponent<TableCellHeaderProps & import("react").RefAttributes<TableCellHeaderRef>>;
|
|
22
|
+
//# sourceMappingURL=TableCellHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell-header/TableCellHeader.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACX,oBAAoB,EACpB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAAK,EACX,kBAAkB,EAClB,MAAM,sBAAsB,CAAA;AAO7B;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe,qHAqL3B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PressableProps } from "react-native";
|
|
2
|
+
import type { TableCellProps } from "../table-cell/TableCellProps";
|
|
3
|
+
import type { TableCellHeaderSort } from "./TableCellHeaderSort";
|
|
4
|
+
export interface TableCellHeaderProps extends Omit<PressableProps, "children" | "style">, TableCellProps {
|
|
5
|
+
/**
|
|
6
|
+
* Render the sort icon either ascending (arrow up), or descending (arrow up rotated), or none (arrows vertical).
|
|
7
|
+
*
|
|
8
|
+
* This is just an icon rendering, you have to sort your actual data manually.
|
|
9
|
+
*/
|
|
10
|
+
defaultSort?: TableCellHeaderSort;
|
|
11
|
+
/**
|
|
12
|
+
* Render the sort icon either ascending (arrow up), or descending (arrow up rotated), or none (arrows vertical).
|
|
13
|
+
*
|
|
14
|
+
* This is just an icon rendering, you have to sort your actual data manually.
|
|
15
|
+
*/
|
|
16
|
+
sort?: TableCellHeaderSort;
|
|
17
|
+
onChangeSort?: (sort: TableCellHeaderSort) => void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=TableCellHeaderProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellHeaderProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell-header/TableCellHeaderProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EACX,cAAc,EACd,MAAM,8BAA8B,CAAA;AAErC,OAAO,KAAK,EACX,mBAAmB,EACnB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,WAAW,oBAAqB,SACrC,IAAI,CACH,cAAc,EACZ,UAAU,GACV,OAAO,CACT,EACD,cAAc;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellHeaderRef.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell-header/TableCellHeaderRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,MAAM,4BAA4B,CAAA;AAEnC,MAAM,WAAW,kBAAmB,SAAQ,YAAY;CACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellHeaderSort.d.ts","sourceRoot":"","sources":["../../../../../src/components/table-cell-header/TableCellHeaderSort.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC5B,MAAM,GACN,KAAK,GACL,MAAM,CAAA"}
|