@audira/carbon-react-native 1.0.2 → 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 +174 -6
- package/lib/commonjs/carbon-style-sheet/color.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/create.js +58 -21
- package/lib/commonjs/carbon-style-sheet/create.js.map +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/carbon-style-sheet/index.js +4 -13
- package/lib/commonjs/carbon-style-sheet/index.js.map +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 +172 -5
- package/lib/module/carbon-style-sheet/color.js.map +1 -1
- package/lib/module/carbon-style-sheet/create.js +58 -21
- package/lib/module/carbon-style-sheet/create.js.map +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/carbon-style-sheet/index.js +2 -2
- package/lib/module/carbon-style-sheet/index.js.map +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/carbon-style-sheet/color.d.ts +169 -2
- package/lib/typescript/commonjs/carbon-style-sheet/color.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/create.d.ts +3 -3
- package/lib/typescript/commonjs/carbon-style-sheet/create.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/index.d.ts +2 -2
- package/lib/typescript/commonjs/carbon-style-sheet/index.d.ts.map +1 -1
- 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/carbon-style-sheet/color.d.ts +169 -2
- package/lib/typescript/module/carbon-style-sheet/color.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/create.d.ts +3 -3
- package/lib/typescript/module/carbon-style-sheet/create.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/index.d.ts +2 -2
- package/lib/typescript/module/carbon-style-sheet/index.d.ts.map +1 -1
- 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 +171 -12
- package/src/carbon-style-sheet/create.ts +93 -53
- 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/carbon-style-sheet/index.ts +3 -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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { StyleSheet as RNStyleSheet } from "react-native";
|
|
4
|
+
import * as color from "./color.js";
|
|
4
5
|
import * as g from "./g/index.js";
|
|
5
6
|
import * as gObject from "./g-object/index.js";
|
|
6
7
|
export const absoluteFill = RNStyleSheet.absoluteFill;
|
|
@@ -8,9 +9,8 @@ export const absoluteFillObject = RNStyleSheet.absoluteFillObject;
|
|
|
8
9
|
export const flatten = RNStyleSheet.flatten;
|
|
9
10
|
export const hairlineWidth = RNStyleSheet.hairlineWidth;
|
|
10
11
|
export const setStyleAttributePreprocessor = RNStyleSheet.setStyleAttributePreprocessor;
|
|
11
|
-
export { g, gObject };
|
|
12
|
+
export { color, g, gObject };
|
|
12
13
|
export * from "./breakpoint.js";
|
|
13
|
-
export * from "./color.js";
|
|
14
14
|
export * from "./create.js";
|
|
15
15
|
export * from "./use.js";
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","RNStyleSheet","g","gObject","absoluteFill","absoluteFillObject","flatten","hairlineWidth","setStyleAttributePreprocessor"],"sourceRoot":"../../../src","sources":["carbon-style-sheet/index.ts"],"mappings":";;AAAA,SACCA,UAAU,IAAIC,YAAY,QACpB,cAAc;AAErB,OAAO,KAAKC,CAAC,MAAM,cAAK;AACxB,OAAO,KAAKC,OAAO,MAAM,qBAAY;AAErC,OAAO,MAAMC,YAAY,
|
|
1
|
+
{"version":3,"names":["StyleSheet","RNStyleSheet","color","g","gObject","absoluteFill","absoluteFillObject","flatten","hairlineWidth","setStyleAttributePreprocessor"],"sourceRoot":"../../../src","sources":["carbon-style-sheet/index.ts"],"mappings":";;AAAA,SACCA,UAAU,IAAIC,YAAY,QACpB,cAAc;AAErB,OAAO,KAAKC,KAAK,MAAM,YAAS;AAEhC,OAAO,KAAKC,CAAC,MAAM,cAAK;AACxB,OAAO,KAAKC,OAAO,MAAM,qBAAY;AAErC,OAAO,MAAMC,YAAY,GAAGJ,YAAY,CAACI,YAAY;AACrD,OAAO,MAAMC,kBAAkB,GAAGL,YAAY,CAACK,kBAAkB;AACjE,OAAO,MAAMC,OAAO,GAAGN,YAAY,CAACM,OAAO;AAC3C,OAAO,MAAMC,aAAa,GAAGP,YAAY,CAACO,aAAa;AACvD,OAAO,MAAMC,6BAA6B,GAAGR,YAAY,CAACQ,6BAA6B;AAEvF,SACCP,KAAK,EACLC,CAAC,EACDC,OAAO;AAGR,cAAc,iBAAc;AAC5B,cAAc,aAAU;AACxB,cAAc,UAAO","ignoreList":[]}
|
|
@@ -26,6 +26,13 @@ export * from "./radio-button/index.js";
|
|
|
26
26
|
export * from "./radio-button-group/index.js";
|
|
27
27
|
export * from "./radio-button-input/index.js";
|
|
28
28
|
export * from "./switch/index.js";
|
|
29
|
+
export * from "./table/index.js";
|
|
30
|
+
export * from "./table-cell/index.js";
|
|
31
|
+
export * from "./table-cell-header/index.js";
|
|
32
|
+
export * from "./table-cell-icon/index.js";
|
|
33
|
+
export * from "./table-cell-text/index.js";
|
|
34
|
+
export * from "./table-row/index.js";
|
|
35
|
+
export * from "./table-row-header/index.js";
|
|
29
36
|
export * from "./text/index.js";
|
|
30
37
|
export * from "./text-area/index.js";
|
|
31
38
|
export * from "./text-area-field/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Button","Notification","Toggle"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,OAAO,KAAKA,MAAM,MAAM,mBAAU;AAClC,OAAO,KAAKC,YAAY,MAAM,yBAAgB;AAC9C,OAAO,KAAKC,MAAM,MAAM,mBAAU;AAElC,SACCF,MAAM,EACNC,YAAY,EACZC,MAAM;AAGP,cAAc,sBAAa;AAC3B,cAAc,gBAAO;AACrB,cAAc,yBAAgB;AAC9B,cAAc,qBAAY;AAC1B,cAAc,2BAAkB;AAChC,cAAc,2BAAkB;AAChC,cAAc,wBAAe;AAC7B,cAAc,6BAAoB;AAClC,cAAc,uBAAc;AAC5B,cAAc,iBAAQ;AACtB,cAAc,2BAAkB;AAChC,cAAc,kBAAS;AACvB,cAAc,oBAAW;AACzB,cAAc,kBAAS;AACvB,cAAc,0BAAiB;AAC/B,cAAc,2BAAkB;AAChC,cAAc,iCAAwB;AACtC,cAAc,iCAAwB;AACtC,cAAc,yBAAgB;AAC9B,cAAc,+BAAsB;AACpC,cAAc,+BAAsB;AACpC,cAAc,mBAAU;AACxB,cAAc,iBAAQ;AACtB,cAAc,sBAAa;AAC3B,cAAc,4BAAmB;AACjC,cAAc,4BAAmB;AACjC,cAAc,uBAAc;AAC5B,cAAc,6BAAoB;AAClC,cAAc,6BAAoB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Button","Notification","Toggle"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,OAAO,KAAKA,MAAM,MAAM,mBAAU;AAClC,OAAO,KAAKC,YAAY,MAAM,yBAAgB;AAC9C,OAAO,KAAKC,MAAM,MAAM,mBAAU;AAElC,SACCF,MAAM,EACNC,YAAY,EACZC,MAAM;AAGP,cAAc,sBAAa;AAC3B,cAAc,gBAAO;AACrB,cAAc,yBAAgB;AAC9B,cAAc,qBAAY;AAC1B,cAAc,2BAAkB;AAChC,cAAc,2BAAkB;AAChC,cAAc,wBAAe;AAC7B,cAAc,6BAAoB;AAClC,cAAc,uBAAc;AAC5B,cAAc,iBAAQ;AACtB,cAAc,2BAAkB;AAChC,cAAc,kBAAS;AACvB,cAAc,oBAAW;AACzB,cAAc,kBAAS;AACvB,cAAc,0BAAiB;AAC/B,cAAc,2BAAkB;AAChC,cAAc,iCAAwB;AACtC,cAAc,iCAAwB;AACtC,cAAc,yBAAgB;AAC9B,cAAc,+BAAsB;AACpC,cAAc,+BAAsB;AACpC,cAAc,mBAAU;AACxB,cAAc,kBAAS;AACvB,cAAc,uBAAc;AAC5B,cAAc,8BAAqB;AACnC,cAAc,4BAAmB;AACjC,cAAc,4BAAmB;AACjC,cAAc,sBAAa;AAC3B,cAAc,6BAAoB;AAClC,cAAc,iBAAQ;AACtB,cAAc,sBAAa;AAC3B,cAAc,4BAAmB;AACjC,cAAc,4BAAmB;AACjC,cAAc,uBAAc;AAC5B,cAAc,6BAAoB;AAClC,cAAc,6BAAoB","ignoreList":[]}
|
|
@@ -14,8 +14,7 @@ export const Layer = /*#__PURE__*/forwardRef(function Layer({
|
|
|
14
14
|
...props
|
|
15
15
|
}, ref) {
|
|
16
16
|
const layerContextLevel = useContext(LayerContext),
|
|
17
|
-
|
|
18
|
-
value = MathHelper.clamp(level + 1, Color.Layer.MinLevel, Color.Layer.MaxLevel);
|
|
17
|
+
value = typeof levelProp != "number" ? MathHelper.clamp(layerContextLevel + 1, Color.Layer.MinLevel, Color.Layer.MaxLevel) : levelProp;
|
|
19
18
|
return /*#__PURE__*/_jsx(LayerContext.Provider, {
|
|
20
19
|
value: value,
|
|
21
20
|
children: /*#__PURE__*/_jsx(View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","useContext","View","Color","MathHelper","CarbonStyleSheet","LayerContext","jsx","_jsx","Layer","level","levelProp","withBackground","style","props","ref","layerContextLevel","value","clamp","MinLevel","MaxLevel","Provider","children","bgLevelStyleSheet","undefined","create","backgroundColor","color","layer_01","layer_02","layer_03"],"sourceRoot":"../../../../src","sources":["components/layer/Layer.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,QACJ,OAAO;AAEd,SACCC,IAAI,QAEE,cAAc;AAErB,SACCC,KAAK,QAEC,sCAAsC;AAE7C,SACCC,UAAU,QACJ,kCAAyB;AAEhC,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,YAAY,QACN,mBAAgB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUvB,OAAO,MAAMC,KAAK,gBAAGT,UAAU,CAC9B,SAASS,KAAKA,CACb;EACCC,KAAK,EAAEC,SAAS;EAChBC,cAAc;EACdC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,iBAAiB,GAChBf,UAAU,CAACK,YAAY,CAAC;
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","View","Color","MathHelper","CarbonStyleSheet","LayerContext","jsx","_jsx","Layer","level","levelProp","withBackground","style","props","ref","layerContextLevel","value","clamp","MinLevel","MaxLevel","Provider","children","bgLevelStyleSheet","undefined","create","backgroundColor","color","layer_01","layer_02","layer_03"],"sourceRoot":"../../../../src","sources":["components/layer/Layer.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,QACJ,OAAO;AAEd,SACCC,IAAI,QAEE,cAAc;AAErB,SACCC,KAAK,QAEC,sCAAsC;AAE7C,SACCC,UAAU,QACJ,kCAAyB;AAEhC,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,YAAY,QACN,mBAAgB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUvB,OAAO,MAAMC,KAAK,gBAAGT,UAAU,CAC9B,SAASS,KAAKA,CACb;EACCC,KAAK,EAAEC,SAAS;EAChBC,cAAc;EACdC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,iBAAiB,GAChBf,UAAU,CAACK,YAAY,CAAC;IAEzBW,KAAK,GACJ,OAAON,SAAS,IAAI,QAAQ,GACzBP,UAAU,CAACc,KAAK,CAACF,iBAAiB,GAAG,CAAC,EAAEb,KAAK,CAACM,KAAK,CAACU,QAAQ,EAAEhB,KAAK,CAACM,KAAK,CAACW,QAAQ,CAAC,GACnFT,SAAS;EAEd,oBACCH,IAAA,CAACF,YAAY,CAACe,QAAQ;IAACJ,KAAK,EAAGA,KAAO;IAAAK,QAAA,eACrCd,IAAA,CAACN,IAAI;MACJa,GAAG,EAAGA,GAAK;MAAA,GACND,KAAK;MACVD,KAAK,EAAG,CACPD,cAAc,GACXW,iBAAiB,CAACN,KAAK,CAAC,GACxBO,SAAS,EACZX,KAAK;IACH,CACH;EAAC,CACoB,CAAC;AAG1B,CACD,CAAC;AAED,MACCU,iBAAiB,GAChBlB,gBAAgB,CAACoB,MAAM,CAAqC;EAC3D,CAAC,EAAE;IACFC,eAAe,EAAErB,gBAAgB,CAACsB,KAAK,CAACC;EACzC,CAAC;EACD,CAAC,EAAE;IACFF,eAAe,EAAErB,gBAAgB,CAACsB,KAAK,CAACE;EACzC,CAAC;EACD,CAAC,EAAE;IACFH,eAAe,EAAErB,gBAAgB,CAACsB,KAAK,CAACG;EACzC;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { ScrollView } from "react-native";
|
|
5
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
6
|
+
import { Box } from "../box/Box.js";
|
|
7
|
+
import { TableContext } from "./_TableContext.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export const Table = /*#__PURE__*/forwardRef(function Table({
|
|
10
|
+
rowSize = "large",
|
|
11
|
+
children,
|
|
12
|
+
style,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) {
|
|
15
|
+
return /*#__PURE__*/_jsx(TableContext.Provider, {
|
|
16
|
+
value: {
|
|
17
|
+
rowSize
|
|
18
|
+
},
|
|
19
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props,
|
|
22
|
+
style: style,
|
|
23
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
24
|
+
horizontal: true,
|
|
25
|
+
contentContainerStyle: [CarbonStyleSheet.g.grow],
|
|
26
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
27
|
+
style: [CarbonStyleSheet.g.flex_auto],
|
|
28
|
+
role: "table",
|
|
29
|
+
children: children
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=Table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","ScrollView","CarbonStyleSheet","Box","TableContext","jsx","_jsx","Table","rowSize","children","style","props","ref","Provider","value","horizontal","contentContainerStyle","g","grow","flex_auto","role"],"sourceRoot":"../../../../src","sources":["components/table/Table.tsx"],"mappings":";;AAAA,SACCA,UAAU,QACJ,OAAO;AAEd,SACCC,UAAU,QACJ,cAAc;AAErB,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,GAAG,QACG,eAAY;AAUnB,SACCC,YAAY,QACN,oBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAExB,OAAO,MAAMC,KAAK,gBAAGP,UAAU,CAC9B,SAASO,KAAKA,CACb;EACCC,OAAO,GAAG,OAAO;EACjBC,QAAQ;EACRC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,oBACCN,IAAA,CAACF,YAAY,CAACS,QAAQ;IACrBC,KAAK,EAAE;MACNN;IACD,CAAE;IAAAC,QAAA,eAEFH,IAAA,CAACH,GAAG;MACHS,GAAG,EAAGA,GAAK;MAAA,GACND,KAAK;MACVD,KAAK,EAAGA,KAAO;MAAAD,QAAA,eAEfH,IAAA,CAACL,UAAU;QACVc,UAAU;QACVC,qBAAqB,EAAG,CACvBd,gBAAgB,CAACe,CAAC,CAACC,IAAI,CACrB;QAAAT,QAAA,eAEHH,IAAA,CAACL,UAAU;UACVS,KAAK,EAAG,CACPR,gBAAgB,CAACe,CAAC,CAACE,SAAS,CAC1B;UACHC,IAAI,EAAC,OAAO;UAAAX,QAAA,EAEVA;QAAQ,CACC;MAAC,CACF;IAAC,CACT;EAAC,CACgB,CAAC;AAG1B,CACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table/TableProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table/TableRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","TableContext","rowSize"],"sourceRoot":"../../../../src","sources":["components/table/_TableContext.ts"],"mappings":";;AAAA,SACCA,aAAa,QACP,OAAO;AAUd,OAAO,MAAMC,YAAY,gBAAGD,aAAa,CAAe;EACvDE,OAAO,EAAE;AACV,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table/index.ts"],"mappings":";;AAAA,cAAc,YAAS","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useContext } from "react";
|
|
4
|
+
import { View } from "react-native";
|
|
5
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
6
|
+
import { TableCellText } from "../table-cell-text/TableCellText.js";
|
|
7
|
+
import { TableRowHeaderContext } from "../table-row-header/_TableRowHeaderContext.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* `TableCell` is a pure React Native View to render
|
|
11
|
+
* container with a correct horizontal padding.
|
|
12
|
+
*
|
|
13
|
+
* To ensure consistent column alignment across rows,
|
|
14
|
+
* you need to provide fixed `width` of the cell.
|
|
15
|
+
* Sets an explicit width for the cell (in pixels) and
|
|
16
|
+
* acts as a column constraint. This helps simulate
|
|
17
|
+
* table-like behavior, since React Native relies on
|
|
18
|
+
* flexbox and does not provide native table layout.
|
|
19
|
+
* Without this, cells in the same column may render
|
|
20
|
+
* with inconsistent widths across different rows.
|
|
21
|
+
*/
|
|
22
|
+
export const TableCell = /*#__PURE__*/forwardRef(function TableCell({
|
|
23
|
+
children,
|
|
24
|
+
text,
|
|
25
|
+
textProps,
|
|
26
|
+
width,
|
|
27
|
+
role = "cell",
|
|
28
|
+
accessibilityLabel,
|
|
29
|
+
style,
|
|
30
|
+
...props
|
|
31
|
+
}, ref) {
|
|
32
|
+
const tableRowHeaderContext = useContext(TableRowHeaderContext);
|
|
33
|
+
return /*#__PURE__*/_jsx(View, {
|
|
34
|
+
ref: ref,
|
|
35
|
+
...props,
|
|
36
|
+
role: role,
|
|
37
|
+
accessibilityLabel: accessibilityLabel || text,
|
|
38
|
+
style: [CarbonStyleSheet.g.flex_auto, CarbonStyleSheet.g.px_05, tableRowHeaderContext.inRowHeader ? tableRowHeaderContext.size == "extra_large" ? CarbonStyleSheet.g.pt_05 : CarbonStyleSheet.g.self_center : undefined, typeof width === "number" ? {
|
|
39
|
+
width
|
|
40
|
+
} : undefined, style],
|
|
41
|
+
children: typeof children === "undefined" && !!text ? /*#__PURE__*/_jsx(TableCellText, {
|
|
42
|
+
...textProps,
|
|
43
|
+
children: text
|
|
44
|
+
}) : children
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=TableCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","View","CarbonStyleSheet","TableCellText","TableRowHeaderContext","jsx","_jsx","TableCell","children","text","textProps","width","role","accessibilityLabel","style","props","ref","tableRowHeaderContext","g","flex_auto","px_05","inRowHeader","size","pt_05","self_center","undefined"],"sourceRoot":"../../../../src","sources":["components/table-cell/TableCell.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,QACJ,OAAO;AAEd,SACCC,IAAI,QACE,cAAc;AAErB,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,aAAa,QACP,qCAAkC;AAEzC,SACCC,qBAAqB,QACf,+CAA4C;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,gBAAGR,UAAU,CAClC,SAASQ,SAASA,CACjB;EACCC,QAAQ;EACRC,IAAI;EACJC,SAAS;EACTC,KAAK;EACLC,IAAI,GAAG,MAAM;EACbC,kBAAkB;EAClBC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,qBAAqB,GACpBjB,UAAU,CAACI,qBAAqB,CAAC;EAEnC,oBACCE,IAAA,CAACL,IAAI;IACJe,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVH,IAAI,EAAGA,IAAM;IACbC,kBAAkB,EAAGA,kBAAkB,IAAIJ,IAAM;IACjDK,KAAK,EAAG,CACPZ,gBAAgB,CAACgB,CAAC,CAACC,SAAS,EAC5BjB,gBAAgB,CAACgB,CAAC,CAACE,KAAK,EAExBH,qBAAqB,CAACI,WAAW,GAC9BJ,qBAAqB,CAACK,IAAI,IAAI,aAAa,GAC1CpB,gBAAgB,CAACgB,CAAC,CAACK,KAAK,GACxBrB,gBAAgB,CAACgB,CAAC,CAACM,WAAW,GAC/BC,SAAS,EAEZ,OAAOd,KAAK,KAAK,QAAQ,GAAG;MAC3BA;IACD,CAAC,GAAGc,SAAS,EACbX,KAAK,CACH;IAAAN,QAAA,EAED,OAAOA,QAAQ,KAAK,WAAW,IAAI,CAAC,CAACC,IAAI,gBAC1CH,IAAA,CAACH,aAAa;MAAA,GACRO,SAAS;MAAAF,QAAA,EAEZC;IAAI,CACQ,CAAC,GACbD;EAAQ,CACP,CAAC;AAGT,CACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell/TableCellProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell/TableCellRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell/index.ts"],"mappings":";;AAAA,cAAc,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { Pressable } from "react-native";
|
|
5
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
6
|
+
import { LayerContext } from "../layer/LayerContext.js";
|
|
7
|
+
import { TableCellText } from "../table-cell-text/TableCellText.js";
|
|
8
|
+
import { TableRowHeaderContext } from "../table-row-header/_TableRowHeaderContext.js";
|
|
9
|
+
import { SortIcon } from "./_sort-icon/index.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Similar as the `TableCell`. `TableCellHeader` is also a View to render
|
|
13
|
+
* container with a correct horizontal padding, with additional
|
|
14
|
+
* sorting icon option and its coloring.
|
|
15
|
+
*
|
|
16
|
+
* It's better to use the `TableCell` instead of `TableCellHeader`
|
|
17
|
+
* if a header cell is not using the sorting icon at all to save a bit of memory
|
|
18
|
+
* because `TableCellHeader` has bunch of Pressable logics and two icons loaded.
|
|
19
|
+
*
|
|
20
|
+
* To ensure consistent column alignment across rows,
|
|
21
|
+
* you need to provide fixed `width` of the cell.
|
|
22
|
+
* Sets an explicit width for the cell (in pixels) and
|
|
23
|
+
* acts as a column constraint. This helps simulate
|
|
24
|
+
* table-like behavior, since React Native relies on
|
|
25
|
+
* flexbox and does not provide native table layout.
|
|
26
|
+
* Without this, cells in the same column may render
|
|
27
|
+
* with inconsistent widths across different rows.
|
|
28
|
+
*/
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
+
export const TableCellHeader = /*#__PURE__*/forwardRef(function TableCellHeader({
|
|
31
|
+
defaultSort,
|
|
32
|
+
sort: sortProp,
|
|
33
|
+
width,
|
|
34
|
+
children,
|
|
35
|
+
text,
|
|
36
|
+
textProps,
|
|
37
|
+
accessibilityLabel,
|
|
38
|
+
onChangeSort,
|
|
39
|
+
disabled,
|
|
40
|
+
onHoverIn: onHoverInProp,
|
|
41
|
+
onHoverOut: onHoverOutProp,
|
|
42
|
+
onPress: onPressProp,
|
|
43
|
+
style,
|
|
44
|
+
...props
|
|
45
|
+
}, ref) {
|
|
46
|
+
const layerContext = useContext(LayerContext),
|
|
47
|
+
tableRowHeaderContext = useContext(TableRowHeaderContext),
|
|
48
|
+
sortIconRef = useRef(null),
|
|
49
|
+
allowOnChangeSortSelfEffect = useRef(false),
|
|
50
|
+
[sortSelf, setSortSelf] = useState(defaultSort),
|
|
51
|
+
sort = sortProp ?? sortSelf,
|
|
52
|
+
[hovered, setHovered] = useState(false);
|
|
53
|
+
const onHoverIn = useCallback(event => {
|
|
54
|
+
if (sortIconRef.current) {
|
|
55
|
+
setHovered(true);
|
|
56
|
+
}
|
|
57
|
+
onHoverInProp?.(event);
|
|
58
|
+
}, [onHoverInProp]),
|
|
59
|
+
onHoverOut = useCallback(event => {
|
|
60
|
+
if (sortIconRef.current) {
|
|
61
|
+
setHovered(false);
|
|
62
|
+
}
|
|
63
|
+
onHoverOutProp?.(event);
|
|
64
|
+
}, [onHoverOutProp]),
|
|
65
|
+
onPress = useCallback(event => {
|
|
66
|
+
onPressProp?.(event);
|
|
67
|
+
if (defaultSort) {
|
|
68
|
+
allowOnChangeSortSelfEffect.current = true;
|
|
69
|
+
setSortSelf(s => {
|
|
70
|
+
if (s == "none") {
|
|
71
|
+
return "asc";
|
|
72
|
+
} else if (s == "asc") {
|
|
73
|
+
return "desc";
|
|
74
|
+
} else {
|
|
75
|
+
return "none";
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
} else if (sortProp && onChangeSort) {
|
|
79
|
+
let nextSort = "none";
|
|
80
|
+
if (sortProp == "none") {
|
|
81
|
+
nextSort = "asc";
|
|
82
|
+
} else if (sortProp == "asc") {
|
|
83
|
+
nextSort = "desc";
|
|
84
|
+
} else {
|
|
85
|
+
nextSort = "none";
|
|
86
|
+
}
|
|
87
|
+
onChangeSort(nextSort);
|
|
88
|
+
}
|
|
89
|
+
}, [sortProp, defaultSort, onChangeSort, onPressProp]);
|
|
90
|
+
useEffect(() => {
|
|
91
|
+
if (sort) {
|
|
92
|
+
if (sort == "none") {
|
|
93
|
+
if (hovered) {
|
|
94
|
+
sortIconRef.current?.setOpacity(1);
|
|
95
|
+
} else {
|
|
96
|
+
sortIconRef.current?.setOpacity(0);
|
|
97
|
+
}
|
|
98
|
+
} else {
|
|
99
|
+
sortIconRef.current?.setOpacity(1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}, [hovered, sort]);
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
if (allowOnChangeSortSelfEffect.current && sort) {
|
|
105
|
+
allowOnChangeSortSelfEffect.current = false;
|
|
106
|
+
onChangeSort?.(sort);
|
|
107
|
+
}
|
|
108
|
+
}, [sort, onChangeSort]);
|
|
109
|
+
CarbonStyleSheet.use();
|
|
110
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
111
|
+
ref: ref,
|
|
112
|
+
...props,
|
|
113
|
+
accessibilityLabel: accessibilityLabel || text,
|
|
114
|
+
disabled: disabled ?? !sort,
|
|
115
|
+
onHoverIn: onHoverIn,
|
|
116
|
+
onHoverOut: onHoverOut,
|
|
117
|
+
onPress: onPress,
|
|
118
|
+
style: [CarbonStyleSheet.g.flex_auto, CarbonStyleSheet.g.px_05, typeof width === "number" ? {
|
|
119
|
+
width
|
|
120
|
+
} : undefined, hovered || sort === "asc" || sort === "desc" ? styleSheetBG[`hovered_${layerContext}`] : styleSheetBG[`normal_${layerContext}`], tableRowHeaderContext.size == "extra_large" ? CarbonStyleSheet.g.pt_05 : sort ? CarbonStyleSheet.g.items_center : CarbonStyleSheet.g.justify_center, sort ? [CarbonStyleSheet.g.flex_row, CarbonStyleSheet.g.justify_between] : undefined, style],
|
|
121
|
+
children: [typeof children === "undefined" && !!text ? /*#__PURE__*/_jsx(TableCellText, {
|
|
122
|
+
...textProps,
|
|
123
|
+
children: text
|
|
124
|
+
}) : children, !!sort && /*#__PURE__*/_jsx(SortIcon, {
|
|
125
|
+
type: sort,
|
|
126
|
+
ref: sortIconRef
|
|
127
|
+
})]
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
const styleSheetBG = CarbonStyleSheet.create({
|
|
131
|
+
normal_1: {
|
|
132
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_01
|
|
133
|
+
},
|
|
134
|
+
normal_2: {
|
|
135
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_02
|
|
136
|
+
},
|
|
137
|
+
normal_3: {
|
|
138
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_03
|
|
139
|
+
},
|
|
140
|
+
hovered_1: {
|
|
141
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_hover_01
|
|
142
|
+
},
|
|
143
|
+
hovered_2: {
|
|
144
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_hover_02
|
|
145
|
+
},
|
|
146
|
+
hovered_3: {
|
|
147
|
+
backgroundColor: CarbonStyleSheet.color.layer_accent_hover_03
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
//# sourceMappingURL=TableCellHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useCallback","useContext","useEffect","useRef","useState","Pressable","CarbonStyleSheet","LayerContext","TableCellText","TableRowHeaderContext","SortIcon","jsx","_jsx","jsxs","_jsxs","TableCellHeader","defaultSort","sort","sortProp","width","children","text","textProps","accessibilityLabel","onChangeSort","disabled","onHoverIn","onHoverInProp","onHoverOut","onHoverOutProp","onPress","onPressProp","style","props","ref","layerContext","tableRowHeaderContext","sortIconRef","allowOnChangeSortSelfEffect","sortSelf","setSortSelf","hovered","setHovered","event","current","s","nextSort","setOpacity","use","g","flex_auto","px_05","undefined","styleSheetBG","size","pt_05","items_center","justify_center","flex_row","justify_between","type","create","normal_1","backgroundColor","color","layer_accent_01","normal_2","layer_accent_02","normal_3","layer_accent_03","hovered_1","layer_accent_hover_01","hovered_2","layer_accent_hover_02","hovered_3","layer_accent_hover_03"],"sourceRoot":"../../../../src","sources":["components/table-cell-header/TableCellHeader.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACF,OAAO;AAEd,SACCC,SAAS,QAEH,cAAc;AAMrB,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,YAAY,QACN,0BAAuB;AAE9B,SACCC,aAAa,QACP,qCAAkC;AAEzC,SACCC,qBAAqB,QACf,+CAA4C;AAUnD,SACCC,QAAQ,QAEF,uBAAc;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjBA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkBA,OAAO,MAAMC,eAAe,gBAAGhB,UAAU,CACxC,SAASgB,eAAeA,CACvB;EACCC,WAAW;EACXC,IAAI,EAAEC,QAAQ;EACdC,KAAK;EACLC,QAAQ;EACRC,IAAI;EACJC,SAAS;EACTC,kBAAkB;EAClBC,YAAY;EACZC,QAAQ;EACRC,SAAS,EAAEC,aAAa;EACxBC,UAAU,EAAEC,cAAc;EAC1BC,OAAO,EAAEC,WAAW;EACpBC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,YAAY,GACXlC,UAAU,CAACM,YAAY,CAAC;IAEzB6B,qBAAqB,GACpBnC,UAAU,CAACQ,qBAAq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CAACO;EACzC,CAAC;EACDC,SAAS,EAAE;IACVT,eAAe,EAAEzD,gBAAgB,CAAC0D,KAAK,CAACS;EACzC,CAAC;EACDC,SAAS,EAAE;IACVX,eAAe,EAAEzD,gBAAgB,CAAC0D,KAAK,CAACW;EACzC;AACD,CAEC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-header/TableCellHeaderProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-header/TableCellHeaderRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-header/TableCellHeaderSort.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
|
|
4
|
+
import { Animated, Easing } from "react-native";
|
|
5
|
+
import { Motion } from "@audira/carbon-react-native-elements";
|
|
6
|
+
import IconArrowUp from "@carbon/icons/svg/32/arrow--up.svg";
|
|
7
|
+
import IconArrowsVertical from "@carbon/icons/svg/32/arrows--vertical.svg";
|
|
8
|
+
import { TableCellIcon } from "../../table-cell-icon/TableCellIcon.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export const SortIcon = /*#__PURE__*/forwardRef(function SortIcon({
|
|
11
|
+
type,
|
|
12
|
+
style,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) {
|
|
15
|
+
const rotationValue = useRef(new Animated.Value(0)),
|
|
16
|
+
opacityValue = useRef(new Animated.Value(0));
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (type == "none") {
|
|
19
|
+
Animated.timing(rotationValue.current, {
|
|
20
|
+
toValue: 0,
|
|
21
|
+
duration: 0,
|
|
22
|
+
useNativeDriver: false
|
|
23
|
+
}).start();
|
|
24
|
+
} else if (type == "asc" || type == "desc") {
|
|
25
|
+
Animated.timing(rotationValue.current, {
|
|
26
|
+
toValue: type == "asc" ? 0 : 1,
|
|
27
|
+
duration: Motion.Duration.moderate_02,
|
|
28
|
+
easing: Easing.bezier(Motion.Easing.standard.productive.x1, Motion.Easing.standard.productive.y1, Motion.Easing.standard.productive.x2, Motion.Easing.standard.productive.y2),
|
|
29
|
+
useNativeDriver: false
|
|
30
|
+
}).start();
|
|
31
|
+
}
|
|
32
|
+
}, [type]);
|
|
33
|
+
useImperativeHandle(ref, () => {
|
|
34
|
+
return {
|
|
35
|
+
setOpacity(value) {
|
|
36
|
+
Animated.timing(opacityValue.current, {
|
|
37
|
+
toValue: value,
|
|
38
|
+
duration: Motion.Duration.fast_01,
|
|
39
|
+
easing: Easing.bezier(Motion.Easing.entrance.productive.x1, Motion.Easing.entrance.productive.y1, Motion.Easing.entrance.productive.x2, Motion.Easing.entrance.productive.y2),
|
|
40
|
+
useNativeDriver: true
|
|
41
|
+
}).start();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}, []);
|
|
45
|
+
return /*#__PURE__*/_jsx(AnimatedTableCellIcon, {
|
|
46
|
+
...props,
|
|
47
|
+
Icon: type == "none" ? IconArrowsVertical : IconArrowUp,
|
|
48
|
+
style: [{
|
|
49
|
+
/* eslint-disable react-hooks/refs */
|
|
50
|
+
opacity: opacityValue.current,
|
|
51
|
+
transform: [{
|
|
52
|
+
rotateZ: rotationValue.current.interpolate({
|
|
53
|
+
inputRange: [0, 1],
|
|
54
|
+
outputRange: ["0deg", "180deg"]
|
|
55
|
+
})
|
|
56
|
+
}]
|
|
57
|
+
/* eslint-enable react-hooks/refs */
|
|
58
|
+
}, style]
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
const AnimatedTableCellIcon = Animated.createAnimatedComponent(TableCellIcon);
|
|
62
|
+
//# sourceMappingURL=SortIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useEffect","useImperativeHandle","useRef","Animated","Easing","Motion","IconArrowUp","IconArrowsVertical","TableCellIcon","jsx","_jsx","SortIcon","type","style","props","ref","rotationValue","Value","opacityValue","timing","current","toValue","duration","useNativeDriver","start","Duration","moderate_02","easing","bezier","standard","productive","x1","y1","x2","y2","setOpacity","value","fast_01","entrance","AnimatedTableCellIcon","Icon","opacity","transform","rotateZ","interpolate","inputRange","outputRange","createAnimatedComponent"],"sourceRoot":"../../../../../src","sources":["components/table-cell-header/_sort-icon/SortIcon.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,QACA,OAAO;AAEd,SACCC,QAAQ,EACRC,MAAM,QACA,cAAc;AAErB,SACCC,MAAM,QACA,sCAAsC;AAE7C,OAAOC,WAAW,MAAM,oCAAoC;AAC5D,OAAOC,kBAAkB,MAAM,2CAA2C;AAE1E,SACCC,aAAa,QACP,wCAAqC;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAc5C,OAAO,MAAMC,QAAQ,gBAAGZ,UAAU,CACjC,SAASY,QAAQA,CAChB;EACCC,IAAI;EACJC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,aAAa,GACZd,MAAM,CAAC,IAAIC,QAAQ,CAACc,KAAK,CAAC,CAAC,CAAC,CAAC;IAE9BC,YAAY,GACXhB,MAAM,CAAC,IAAIC,QAAQ,CAACc,KAAK,CAAC,CAAC,CAAC,CAAC;EAE/BjB,SAAS,CAAC,MAAM;IACf,IAAGY,IAAI,IAAI,MAAM,EAAE;MAClBT,QAAQ,CACNgB,MAAM,CACNH,aAAa,CAACI,OAAO,EACrB;QACCC,OAAO,EAAE,CAAC;QACVC,QAAQ,EAAE,CAAC;QACXC,eAAe,EAAE;MAClB,CACD,CAAC,CACAC,KAAK,CAAC,C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CACAC,KAAK,CAAC,CAAC;MACV;IACD,CAAC;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,oBACCd,IAAA,CAAC6B,qBAAqB;IAAA,GAChBzB,KAAK;IACV0B,IAAI,EAAI5B,IAAI,IAAI,MAAM,GAAGL,kBAAkB,GAAGD,WAA4C;IAC1FO,KAAK,EAAG,CACP;MACC;MACA4B,OAAO,EAAEvB,YAAY,CAACE,OAAO;MAC7BsB,SAAS,EAAE,CAAC;QACXC,OAAO,EAAE3B,aAAa,CAACI,OAAO,CAACwB,WAAW,CAAC;UAC1CC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;UAClBC,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ;QAC/B,CAAC;MACF,CAAC;MACD;IACD,CAAC,EACDjC,KAAK;EACH,CACH,CAAC;AAGJ,CACD,CAAC;AAED,MACC0B,qBAAqB,GACpBpC,QAAQ,CAAC4C,uBAAuB,CAACvC,aAAa,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-cell-header/_sort-icon/SortIconProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-cell-header/_sort-icon/SortIconRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-cell-header/_sort-icon/index.ts"],"mappings":";;AAAA,cAAc,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-header/index.ts"],"mappings":";;AAAA,cAAc,sBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useContext } from "react";
|
|
4
|
+
import { Color } from "@audira/carbon-react-native-elements";
|
|
5
|
+
import { ThemeContext } from "../../contexts/index.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const TableCellIcon = /*#__PURE__*/forwardRef(function TableCellIcon({
|
|
8
|
+
Icon,
|
|
9
|
+
fill,
|
|
10
|
+
...props
|
|
11
|
+
}, ref) {
|
|
12
|
+
const themeContext = useContext(ThemeContext);
|
|
13
|
+
return /*#__PURE__*/_jsx(Icon, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
...props,
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
fill: fill || mapFillColor[themeContext.colorScheme]
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
const mapFillColor = {
|
|
22
|
+
gray_10: Color.Token.gray_10.icon_primary,
|
|
23
|
+
gray_100: Color.Token.gray_100.icon_primary
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=TableCellIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","Color","ThemeContext","jsx","_jsx","TableCellIcon","Icon","fill","props","ref","themeContext","width","height","mapFillColor","colorScheme","gray_10","Token","icon_primary","gray_100"],"sourceRoot":"../../../../src","sources":["components/table-cell-icon/TableCellIcon.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,QACJ,OAAO;AAEd,SACCC,KAAK,QACC,sCAAsC;AAE7C,SACCC,YAAY,QACN,yBAAgB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUvB,OAAO,MAAMC,aAAa,gBAAGN,UAAU,CACtC,SAASM,aAAaA,CACrB;EACCC,IAAI;EACJC,IAAI;EACJ,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,YAAY,GACXV,UAAU,CAACE,YAAY,CAAC;EAE1B,oBACCE,IAAA,CAACE,IAAI;IACJG,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVG,KAAK,EAAG,EAAI;IACZC,MAAM,EAAG,EAAI;IACbL,IAAI,EAAGA,IAAI,IAAIM,YAAY,CAACH,YAAY,CAACI,WAAW;EAAG,CACvD,CAAC;AAGJ,CACD,CAAC;AAED,MACCD,YAAY,GACX;EACCE,OAAO,EAAEd,KAAK,CAACe,KAAK,CAACD,OAAO,CAACE,YAAY;EACzCC,QAAQ,EAAEjB,KAAK,CAACe,KAAK,CAACE,QAAQ,CAACD;AAChC,CAAgE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-icon/TableCellIconProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-icon/TableCellIconRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-cell-icon/index.ts"],"mappings":";;AAAA,cAAc,oBAAiB","ignoreList":[]}
|