react-better-html 1.1.135 → 1.1.136

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.d.mts CHANGED
@@ -756,6 +756,8 @@ type TooltipProps = {
756
756
  content: React.ReactNode;
757
757
  contentWidth?: React.CSSProperties["width"];
758
758
  contentMinWidth?: React.CSSProperties["minWidth"];
759
+ /** @default "fit-content" */
760
+ childrenWrapperWidth?: React.CSSProperties["width"];
759
761
  withArrow?: boolean;
760
762
  isSmall?: boolean;
761
763
  backgroundColor?: string;
package/dist/index.d.ts CHANGED
@@ -756,6 +756,8 @@ type TooltipProps = {
756
756
  content: React.ReactNode;
757
757
  contentWidth?: React.CSSProperties["width"];
758
758
  contentMinWidth?: React.CSSProperties["minWidth"];
759
+ /** @default "fit-content" */
760
+ childrenWrapperWidth?: React.CSSProperties["width"];
759
761
  withArrow?: boolean;
760
762
  isSmall?: boolean;
761
763
  backgroundColor?: string;
package/dist/index.js CHANGED
@@ -6580,7 +6580,6 @@ InputFieldComponent.dateTime = (0, import_react20.forwardRef)(function DateTime(
6580
6580
  const newTime = `${internalValue?.toString().split("T")?.[1]?.split(":")[0] || "00"}:${minute.toString().padStart(2, "0")}`;
6581
6581
  const today = `${(/* @__PURE__ */ new Date()).getFullYear()}-${((/* @__PURE__ */ new Date()).getMonth() + 1).toString().padStart(2, "0")}-${(/* @__PURE__ */ new Date()).getDate().toString().padStart(2, "0")}`;
6582
6582
  const newValue = `${(internalValue.trim() || today)?.toString().split("T")[0]}T${newTime}`;
6583
- console.log(newValue);
6584
6583
  inputFieldProps.onChangeValue?.(newValue);
6585
6584
  setInternalValue(newValue);
6586
6585
  },
@@ -8289,6 +8288,7 @@ var TooltipComponent = (0, import_react26.forwardRef)(function Tooltip({
8289
8288
  content,
8290
8289
  contentWidth,
8291
8290
  contentMinWidth,
8291
+ childrenWrapperWidth = "fit-content",
8292
8292
  withArrow,
8293
8293
  isSmall,
8294
8294
  backgroundColor,
@@ -8386,12 +8386,12 @@ var TooltipComponent = (0, import_react26.forwardRef)(function Tooltip({
8386
8386
  Div_default,
8387
8387
  {
8388
8388
  position: "relative",
8389
- width: "fit-content",
8389
+ width: childrenWrapperWidth,
8390
8390
  onClick: onClickHolder,
8391
8391
  onMouseEnter,
8392
8392
  onMouseLeave,
8393
8393
  children: [
8394
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Div_default, { width: "fit-content", isTabAccessed, ref: triggerHolderRef, children }),
8394
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Div_default, { width: childrenWrapperWidth, isTabAccessed, ref: triggerHolderRef, children }),
8395
8395
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8396
8396
  TooltipContainer,
8397
8397
  {