@pretable/ui 0.20.2 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- //#region src/density.ts
2
+ // src/density.ts
3
3
  const FALLBACK_ROW_HEIGHT = 32;
4
4
  const FALLBACK_HEADER_HEIGHT = 36;
5
5
  function parsePx(value) {
@@ -58,6 +58,5 @@ function getDensityHeights(element) {
58
58
  };
59
59
  }
60
60
 
61
- //#endregion
62
61
  exports.getDensityHeights = getDensityHeights;
63
62
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/density.d.ts
2
1
  /**
3
2
  * Density-related heights (in CSS pixels) read from the active theme.
4
3
  *
@@ -42,7 +41,6 @@ interface DensityHeights {
42
41
  *
43
42
  * @public
44
43
  */
45
- declare function getDensityHeights(element?: Element | null): DensityHeights;
46
- //#endregion
47
- export { type DensityHeights, getDensityHeights };
44
+ export declare function getDensityHeights(element?: Element | null): DensityHeights;
45
+ export type { DensityHeights };
48
46
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/density.ts"],"mappings":";;;;;;UAQiB;EACf;EACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2Cc,kBAAkB,UAAU,iBAAiB"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/density.ts"],"mappings":";;;;;UAQiB;EACf;EACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2Cc,kBAAkB,UAAU,iBAAiB"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/density.d.ts
2
1
  /**
3
2
  * Density-related heights (in CSS pixels) read from the active theme.
4
3
  *
@@ -42,7 +41,6 @@ interface DensityHeights {
42
41
  *
43
42
  * @public
44
43
  */
45
- declare function getDensityHeights(element?: Element | null): DensityHeights;
46
- //#endregion
47
- export { type DensityHeights, getDensityHeights };
44
+ export declare function getDensityHeights(element?: Element | null): DensityHeights;
45
+ export type { DensityHeights };
48
46
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/density.ts"],"mappings":";;;;;;UAQiB;EACf;EACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2Cc,kBAAkB,UAAU,iBAAiB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/density.ts"],"mappings":";;;;;UAQiB;EACf;EACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2Cc,kBAAkB,UAAU,iBAAiB"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/density.ts
1
+ // src/density.ts
2
2
  const FALLBACK_ROW_HEIGHT = 32;
3
3
  const FALLBACK_HEADER_HEIGHT = 36;
4
4
  function parsePx(value) {
@@ -57,6 +57,5 @@ function getDensityHeights(element) {
57
57
  };
58
58
  }
59
59
 
60
- //#endregion
61
60
  export { getDensityHeights };
62
61
  //# sourceMappingURL=index.mjs.map
package/grid.css CHANGED
@@ -2686,4 +2686,54 @@
2686
2686
  transition: none;
2687
2687
  }
2688
2688
  }
2689
+
2690
+ /* Fixed summaries are separate read-only tables, outside the data grid. */
2691
+ :where([data-pretable-summaries]) {
2692
+ background: var(--pretable-bg-grid);
2693
+ color: var(--pretable-text-cell);
2694
+ font-size: var(--pretable-font-size-cell);
2695
+ }
2696
+ :where([data-pretable-summary-scope] caption) {
2697
+ padding: 4px var(--pretable-cell-padding-x, 12px);
2698
+ background: var(--pretable-bg-group-row);
2699
+ border-top: 1px solid var(--pretable-rule, #ddd);
2700
+ font-size: var(--pretable-font-size-header, 12px);
2701
+ }
2702
+ :where([data-pretable-summary-column]) {
2703
+ display: flex;
2704
+ align-items: center;
2705
+ padding: var(--pretable-cell-padding-y, 8px)
2706
+ var(--pretable-cell-padding-x, 12px);
2707
+ background: var(--pretable-bg-grid, #fff);
2708
+ font-weight: 600;
2709
+ }
2710
+ :where([data-pretable-summary-column][data-pretable-column-align="end"]) {
2711
+ justify-content: flex-end;
2712
+ }
2713
+ :where([data-pretable-summary-column][data-pretable-column-align="center"]) {
2714
+ justify-content: center;
2715
+ }
2716
+ :where([data-pretable-summary-wrapper] [data-pretable-scroll-viewport]) {
2717
+ flex-shrink: 0;
2718
+ border-bottom-left-radius: 0;
2719
+ border-bottom-right-radius: 0;
2720
+ }
2721
+ :where([data-pretable-summary-wrapper]) {
2722
+ min-width: 0;
2723
+ font-family: var(--pretable-font-sans);
2724
+ border: var(--pretable-frame);
2725
+ border-radius: var(--pretable-radius-frame);
2726
+ box-shadow: var(--pretable-shadow-card);
2727
+ overflow: hidden;
2728
+ }
2729
+ :where([data-pretable-summary-wrapper] [data-pretable-scroll-viewport]),
2730
+ :where([data-pretable-summary-wrapper] [data-pretable-group-panel]) {
2731
+ border: 0;
2732
+ box-shadow: none;
2733
+ }
2734
+ :where([data-pretable-tool-layout] [data-pretable-summary-wrapper]) {
2735
+ border: 0;
2736
+ border-radius: 0;
2737
+ box-shadow: none;
2738
+ }
2689
2739
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pretable/ui",
3
- "version": "0.20.2",
3
+ "version": "0.21.0",
4
4
  "description": "CSS themes, tokens, and grid styles for Pretable.",
5
5
  "license": "MIT",
6
6
  "repository": {