@getsoren/design-system 4.67.1 → 4.67.3
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/main.js
CHANGED
|
@@ -21529,7 +21529,7 @@ var J3 = (e) => /* @__PURE__ */ O(ct, {
|
|
|
21529
21529
|
}), TC = oi(Ft(IC)), c5 = TC, kc = 32, RC = 24, kC = 105, OC = 24, BC = 195, PC = 44, MC = 147, DC = () => {
|
|
21530
21530
|
const { palette: e } = Ot(), t = Qe((a) => a === "white" ? "#fff" : a === "black" ? "#000" : a || e.text.primary, [e.text.primary]), r = Qe((a) => a || e.primary.contrastText, [e.primary.contrastText]), n = Qe((a) => a || e.text.primary, [e.text.primary]);
|
|
21531
21531
|
return {
|
|
21532
|
-
getImageModule: Qe(
|
|
21532
|
+
getImageModule: Qe((a, i, l) => {
|
|
21533
21533
|
if (l) return import("./tracktor-logo-DTPm6O5N.js");
|
|
21534
21534
|
switch (a) {
|
|
21535
21535
|
case "supplier":
|
|
@@ -21543,8 +21543,8 @@ var J3 = (e) => /* @__PURE__ */ O(ct, {
|
|
|
21543
21543
|
getShapeBackgroundColor: n,
|
|
21544
21544
|
getShapeColor: r,
|
|
21545
21545
|
getSize: Qe(({ variant: a, width: i, height: l, withoutText: s }) => s ? {
|
|
21546
|
-
height: kc,
|
|
21547
|
-
width: kc
|
|
21546
|
+
height: l || kc,
|
|
21547
|
+
width: i || kc
|
|
21548
21548
|
} : a === "default" ? {
|
|
21549
21549
|
height: l || RC,
|
|
21550
21550
|
width: i || kC
|
|
@@ -22271,7 +22271,7 @@ var J3 = (e) => /* @__PURE__ */ O(ct, {
|
|
|
22271
22271
|
} catch {
|
|
22272
22272
|
return null;
|
|
22273
22273
|
}
|
|
22274
|
-
}, f5 = ({ groups: e, resources: t, tasks: r, isLoading: n, onTaskClick: a, onResourceClick: i, onGroupClick: l, onBarResize: s, renderGroup: c, renderResource: u, renderBar: p, renderTooltip: g, isTaskSelected: b, recenterKey: f, toolbarActions: v, toolbarLeadingActions: m, sidebarTitle: A, locale: S, labels: w, localStorageKeys: C, defaultViewMode: x = "day", sidebarWidth: E = 300, rowHeight: y =
|
|
22274
|
+
}, f5 = ({ groups: e, resources: t, tasks: r, isLoading: n, onTaskClick: a, onResourceClick: i, onGroupClick: l, onBarResize: s, renderGroup: c, renderResource: u, renderBar: p, renderTooltip: g, isTaskSelected: b, recenterKey: f, toolbarActions: v, toolbarLeadingActions: m, sidebarTitle: A, locale: S, labels: w, localStorageKeys: C, defaultViewMode: x = "day", sidebarWidth: E = 300, rowHeight: y = 36 }) => {
|
|
22275
22275
|
const T = C?.viewMode ?? t6.viewMode, [M, R] = We(() => r6(T) ?? x), [B, k] = We(() => /* @__PURE__ */ new Date()), [h, P] = We(!1), { palette: D, shape: N, typography: V } = Ot(), { t: z } = co(), Y = He(!1), te = He(M), _ = He(f), H = He(null), F = He(null), Q = He({
|
|
22276
22276
|
delta: 0,
|
|
22277
22277
|
lastEventAt: 0,
|
|
@@ -289,7 +289,7 @@ export interface PlanningTimelineProps<G extends PlanningTimelineGroup = Plannin
|
|
|
289
289
|
*/
|
|
290
290
|
sidebarWidth?: number;
|
|
291
291
|
/**
|
|
292
|
-
* Height (px) of every row (group headers and resources alike). @default
|
|
292
|
+
* Height (px) of every row (group headers and resources alike). @default 36
|
|
293
293
|
*/
|
|
294
294
|
rowHeight?: number;
|
|
295
295
|
}
|