@douglasneuroinformatics/libui 3.6.0 → 3.6.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.
@@ -1227,7 +1227,7 @@ type FormProps<TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<T
1227
1227
  [key: `data-${string}`]: unknown;
1228
1228
  className?: string;
1229
1229
  content: FormContent<TData>;
1230
- fieldsFooter?: React$1.ReactNode;
1230
+ fieldsFooter?: React.ReactNode;
1231
1231
  id?: string;
1232
1232
  initialValues?: PartialNullableFormDataType<TData>;
1233
1233
  onError?: (error: z.ZodError<TData>) => void;
@@ -2041,8 +2041,7 @@ var FileDropzone = ({ acceptedFileTypes, file, setFile }) => {
2041
2041
  };
2042
2042
 
2043
2043
  // src/components/Form/Form.tsx
2044
- import { useEffect as useEffect10, useState as useState8 } from "react";
2045
- import "react";
2044
+ import { useEffect as useEffect10, useLayoutEffect, useState as useState8 } from "react";
2046
2045
  import { get, set } from "lodash-es";
2047
2046
  import { twMerge } from "tailwind-merge";
2048
2047
  import "zod";
@@ -3457,7 +3456,7 @@ var Form = ({
3457
3456
  useEffect10(() => {
3458
3457
  revalidate();
3459
3458
  }, [resolvedLanguage]);
3460
- useEffect10(() => {
3459
+ useLayoutEffect(() => {
3461
3460
  if (initialValues) {
3462
3461
  setValues(getInitialValues(initialValues));
3463
3462
  }
@@ -3579,7 +3578,7 @@ var LanguageToggle = ({
3579
3578
  };
3580
3579
 
3581
3580
  // src/components/LineGraph/LineGraph.tsx
3582
- import * as React37 from "react";
3581
+ import * as React36 from "react";
3583
3582
  import { toBasicISOString as toBasicISOString3 } from "@douglasneuroinformatics/libjs";
3584
3583
  import {
3585
3584
  CartesianGrid,
@@ -3682,7 +3681,7 @@ function LineGraphComponent({
3682
3681
  /* @__PURE__ */ jsx139(Legend2, { wrapperStyle: { paddingLeft: 40, paddingTop: 10 } })
3683
3682
  ] }) });
3684
3683
  }
3685
- var LineGraph = React37.memo(LineGraphComponent);
3684
+ var LineGraph = React36.memo(LineGraphComponent);
3686
3685
 
3687
3686
  // src/components/ListboxDropdown/ListboxDropdown.tsx
3688
3687
  import "react";
@@ -4292,7 +4291,7 @@ var SheetBody = ({
4292
4291
  };
4293
4292
 
4294
4293
  // src/components/Sheet/SheetContent.tsx
4295
- import * as React50 from "react";
4294
+ import * as React49 from "react";
4296
4295
  import { Close as Close2, Content as Content11, Portal as Portal11 } from "@radix-ui/react-dialog";
4297
4296
  import { cva as cva5 } from "class-variance-authority";
4298
4297
  import { XIcon as XIcon3 } from "lucide-react";
@@ -4333,7 +4332,7 @@ var sheetVariants = cva5(
4333
4332
  }
4334
4333
  }
4335
4334
  );
4336
- var SheetContent = React50.forwardRef(function SheetContent2({ children, className, side = "right", ...props }, ref) {
4335
+ var SheetContent = React49.forwardRef(function SheetContent2({ children, className, side = "right", ...props }, ref) {
4337
4336
  return /* @__PURE__ */ jsxs59(Portal11, { children: [
4338
4337
  /* @__PURE__ */ jsx169(SheetOverlay, {}),
4339
4338
  /* @__PURE__ */ jsxs59(Content11, { className: cn(sheetVariants({ side }), className), ref, ...props, children: [
@@ -4570,10 +4569,10 @@ var ThemeToggle = ({ onClick, variant = "outline", ...props }) => {
4570
4569
  };
4571
4570
 
4572
4571
  // src/components/Tooltip/TooltipContent.tsx
4573
- import * as React54 from "react";
4572
+ import * as React53 from "react";
4574
4573
  import { Content as Content13 } from "@radix-ui/react-tooltip";
4575
4574
  import { jsx as jsx183 } from "react/jsx-runtime";
4576
- var TooltipContent = React54.forwardRef(
4575
+ var TooltipContent = React53.forwardRef(
4577
4576
  function TooltipContent2({ className, collisionPadding = 0, sideOffset = 4, ...props }, ref) {
4578
4577
  return /* @__PURE__ */ jsx183(
4579
4578
  Content13,