@pibit.ai/cure-design-system 0.3.40 → 0.3.43
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAyCjB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAsHjB,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAyCjB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAsHjB,eAAO,MAAM,YAAY,8GA06DxB,CAAC"}
|
|
@@ -129,7 +129,7 @@ const be = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), Rt = (s)
|
|
|
129
129
|
[N == null ? void 0 : N.defaultZoom, N == null ? void 0 : N.minZoom, N == null ? void 0 : N.maxZoom, N == null ? void 0 : N.step]
|
|
130
130
|
), [fe, Je] = H(
|
|
131
131
|
() => (R == null ? void 0 : R.defaultZoom) ?? cn
|
|
132
|
-
), M = R !== null && $n, pe = fe / 100, P = Nr
|
|
132
|
+
), M = R !== null && $n, pe = fe / 100, P = Nr, g = oe(null), [he, St] = H(null), te = b(() => {
|
|
133
133
|
if (!P) return null;
|
|
134
134
|
const e = f.reduce(
|
|
135
135
|
(i, n) => be(n) ? i + mt(Rt(n)) : i,
|
|
@@ -516,12 +516,15 @@ const be = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), Rt = (s)
|
|
|
516
516
|
} : { minWidth: r, maxWidth: n };
|
|
517
517
|
},
|
|
518
518
|
[P, ut, M]
|
|
519
|
-
), Gr = b(() =>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
519
|
+
), Gr = b(() => {
|
|
520
|
+
const e = M ? { zoom: pe } : void 0;
|
|
521
|
+
return !P || !te ? M ? { ...e, width: "max-content", minWidth: "100%" } : void 0 : {
|
|
522
|
+
...e,
|
|
523
|
+
// The zoom-independent base, so the painted width tracks the zoom and overflows by
|
|
524
|
+
// more as you zoom in — matching the widths `getColumnStyle` hands the columns.
|
|
525
|
+
width: `${Ge ?? te.minTableWidth}px`,
|
|
526
|
+
tableLayout: "fixed"
|
|
527
|
+
};
|
|
525
528
|
}, [
|
|
526
529
|
P,
|
|
527
530
|
te,
|