@nevuto/components 0.17.3 → 0.18.1

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.
@@ -1,8 +1,20 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface TableProps {
3
3
  'aria-label'?: string;
4
+ /**
5
+ * Keeps the TableMenu and the TableHeader pinned to the top of the nearest
6
+ * scrolling ancestor while the rows scroll under them.
7
+ */
8
+ sticky?: boolean;
9
+ /**
10
+ * Distance from the top of the scrolling ancestor where the sticky parts
11
+ * stop; 12px by default. Raise it for a page that already pins a bar of its
12
+ * own there. Numbers are treated as px. The gap shows
13
+ * `--table-sticky-backdrop`, which should match the page background.
14
+ */
15
+ stickyOffset?: number | string;
4
16
  className?: string;
5
17
  children?: ReactNode;
6
18
  }
7
- export declare function Table({ 'aria-label': ariaLabel, className, children }: TableProps): import("react").JSX.Element;
19
+ export declare function Table({ 'aria-label': ariaLabel, sticky, stickyOffset, className, children, }: TableProps): import("react").JSX.Element;
8
20
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,UAAU;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,KAAK,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,+BAWjF"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,MAAM,WAAW,UAAU;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,KAAK,CAAC,EACpB,YAAY,EAAE,SAAS,EACvB,MAAc,EACd,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE,UAAU,+BAoBZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableMenu.d.ts","sourceRoot":"","sources":["../../src/Table/TableMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,KAAK,EACL,OAAe,EACf,OAAO,EACP,SAAS,GACV,EAAE,cAAc,+BA4BhB"}
1
+ {"version":3,"file":"TableMenu.d.ts","sourceRoot":"","sources":["../../src/Table/TableMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,KAAK,EACL,OAAe,EACf,OAAO,EACP,SAAS,GACV,EAAE,cAAc,+BA+BhB"}
@@ -16,6 +16,10 @@ export interface TableScrollProps {
16
16
  *
17
17
  * Touch devices hide the scrollbar until a swipe is already underway, so the
18
18
  * edge a row can still scroll toward gets a shadow to advertise it.
19
+ *
20
+ * While the table is at least `minWidth` wide nothing needs to scroll, so the
21
+ * area stops being a scroll container and a sticky TableHeader can pin to the
22
+ * page. Narrower, the header scrolls sideways with the rows instead.
19
23
  */
20
24
  export declare function TableScroll({ minWidth, children, className, style, }: TableScrollProps): import("react").JSX.Element;
21
25
  //# sourceMappingURL=TableScroll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableScroll.d.ts","sourceRoot":"","sources":["../../src/Table/TableScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIpG,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAc,EACd,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,+BAqDlB"}
1
+ {"version":3,"file":"TableScroll.d.ts","sourceRoot":"","sources":["../../src/Table/TableScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIpG,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAc,EACd,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,+BAwElB"}