@nextelco/common-ui 2.1.91 → 2.1.92

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.
@@ -7,8 +7,13 @@ export interface DataTableColumn<T> {
7
7
  /** Conteúdo apresentado. Sem isto mostra o value. */
8
8
  render?: (row: T) => React.ReactNode;
9
9
  sortType?: 'text' | 'number' | 'date';
10
- /** Fixa a coluna à esquerda no scroll horizontal (position: sticky). */
11
- sticky?: boolean;
10
+ /**
11
+ * Fixa a coluna no scroll horizontal (position: sticky).
12
+ * `true` ou `'left'` prende à esquerda; `'right'` prende à direita — útil para
13
+ * a coluna de ações, que de outro modo fica fora de vista (e com os botões
14
+ * cortados) assim que a tabela e mais larga do que o espaço disponível.
15
+ */
16
+ sticky?: boolean | 'left' | 'right';
12
17
  align?: 'left' | 'right' | 'center';
13
18
  /** minWidth em px. */
14
19
  width?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "2.1.91",
3
+ "version": "2.1.92",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",