@herca/r-kit 0.0.37 → 0.0.39

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/clients.js CHANGED
@@ -8659,7 +8659,7 @@ var ZoomController = ({
8659
8659
  children: /* @__PURE__ */ jsx301(Icon_default, { name: "search-minus-fill" })
8660
8660
  }
8661
8661
  ),
8662
- /* @__PURE__ */ jsxs34(Button, { color: "secondary", onClick: onDownload, children: [
8662
+ /* @__PURE__ */ jsxs34(Button, { color: "secondary", onClick: onDownload, type: "button", children: [
8663
8663
  /* @__PURE__ */ jsx301(Icon_default, { name: "download" }),
8664
8664
  /* @__PURE__ */ jsx301(
8665
8665
  Text,
@@ -8923,7 +8923,9 @@ var InputFile = forwardRef2(
8923
8923
  }
8924
8924
  URL.revokeObjectURL(files[replaceIndex].preview);
8925
8925
  const newFileItem = {
8926
+ id: crypto.randomUUID(),
8926
8927
  file: selected,
8928
+ customName: selected.name,
8927
8929
  preview: URL.createObjectURL(selected)
8928
8930
  };
8929
8931
  const newFiles = [...files];
@@ -9017,8 +9019,10 @@ var InputFile = forwardRef2(
9017
9019
  })
9018
9020
  }));
9019
9021
  useEffect6(() => {
9020
- return () => files.forEach((f) => URL.revokeObjectURL(f.preview));
9021
- }, [files]);
9022
+ return () => {
9023
+ files.forEach((f) => URL.revokeObjectURL(f.preview));
9024
+ };
9025
+ }, []);
9022
9026
  const isDefault = variant === "primary" || variant === "secondary" || variant === "gray";
9023
9027
  const isSized = variant === "medium" || variant === "large";
9024
9028
  return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-6", children: [
@@ -10267,7 +10271,8 @@ function EventBar({
10267
10271
  segment,
10268
10272
  showTooltip = true,
10269
10273
  onClick,
10270
- isMouseEventOnChildren = false
10274
+ isMouseEventOnChildren = false,
10275
+ level = 0
10271
10276
  }) {
10272
10277
  const [hovered, setHovered] = useState9(false);
10273
10278
  const [pos, setPos] = useState9({ x: 0, y: 0 });
@@ -10311,6 +10316,7 @@ function EventBar({
10311
10316
  onClick && "cursor-pointer"
10312
10317
  ),
10313
10318
  style: {
10319
+ gridRowStart: level + 1,
10314
10320
  gridColumn: `${segment.startCol + 1} / span ${segment.span}`,
10315
10321
  backgroundColor: bg_color_map[segment?.event?.color ?? "info"] ?? "#F1FDFF"
10316
10322
  },
@@ -10347,8 +10353,12 @@ function EventBar({
10347
10353
  children: segment?.event?.tooltip?.title ?? segment.event.title
10348
10354
  }
10349
10355
  ),
10350
- Boolean(segment.event.subtitle) && /* @__PURE__ */ jsx311(Text, { variant: "t3", className: "text-nowrap text-gray-700", children: segment?.event?.tooltip?.subtitle ?? segment.event.subtitle }),
10351
- Boolean(segment.event.label) && /* @__PURE__ */ jsxs41("div", { className: "mt-1 flex items-center gap-1", children: [
10356
+ Boolean(
10357
+ segment?.event?.tooltip?.subtitle ?? segment.event.subtitle
10358
+ ) && /* @__PURE__ */ jsx311(Text, { variant: "t3", className: "text-nowrap text-gray-700", children: segment?.event?.tooltip?.subtitle ?? segment.event.subtitle }),
10359
+ Boolean(
10360
+ segment?.event?.tooltip?.label ?? segment.event.label
10361
+ ) && /* @__PURE__ */ jsxs41("div", { className: "mt-1 flex items-center gap-1", children: [
10352
10362
  /* @__PURE__ */ jsx311(
10353
10363
  "div",
10354
10364
  {
@@ -10523,6 +10533,7 @@ function CalendarGrid({
10523
10533
  EventBar,
10524
10534
  {
10525
10535
  segment: seg,
10536
+ level: segmentLevels.get(seg) ?? 0,
10526
10537
  showTooltip: showCalendarTooltip,
10527
10538
  onClick: () => onEventClick?.(seg.event)
10528
10539
  },
@@ -10555,6 +10566,7 @@ function CalendarGrid({
10555
10566
  EventBar,
10556
10567
  {
10557
10568
  segment: seg,
10569
+ level: segmentLevels.get(seg) ?? 0,
10558
10570
  isMouseEventOnChildren: true,
10559
10571
  showTooltip: showCalendarTooltip,
10560
10572
  onClick: () => onEventClick?.(seg.event)