react-better-html 1.1.135 → 1.1.137
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -756,6 +756,9 @@ 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"];
|
|
761
|
+
childrenWrapperHeight?: React.CSSProperties["height"];
|
|
759
762
|
withArrow?: boolean;
|
|
760
763
|
isSmall?: boolean;
|
|
761
764
|
backgroundColor?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -756,6 +756,9 @@ 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"];
|
|
761
|
+
childrenWrapperHeight?: React.CSSProperties["height"];
|
|
759
762
|
withArrow?: boolean;
|
|
760
763
|
isSmall?: boolean;
|
|
761
764
|
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,8 @@ var TooltipComponent = (0, import_react26.forwardRef)(function Tooltip({
|
|
|
8289
8288
|
content,
|
|
8290
8289
|
contentWidth,
|
|
8291
8290
|
contentMinWidth,
|
|
8291
|
+
childrenWrapperWidth = "fit-content",
|
|
8292
|
+
childrenWrapperHeight,
|
|
8292
8293
|
withArrow,
|
|
8293
8294
|
isSmall,
|
|
8294
8295
|
backgroundColor,
|
|
@@ -8386,12 +8387,22 @@ var TooltipComponent = (0, import_react26.forwardRef)(function Tooltip({
|
|
|
8386
8387
|
Div_default,
|
|
8387
8388
|
{
|
|
8388
8389
|
position: "relative",
|
|
8389
|
-
width:
|
|
8390
|
+
width: childrenWrapperWidth,
|
|
8391
|
+
height: childrenWrapperHeight,
|
|
8390
8392
|
onClick: onClickHolder,
|
|
8391
8393
|
onMouseEnter,
|
|
8392
8394
|
onMouseLeave,
|
|
8393
8395
|
children: [
|
|
8394
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
8396
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
8397
|
+
Div_default,
|
|
8398
|
+
{
|
|
8399
|
+
width: childrenWrapperWidth,
|
|
8400
|
+
height: childrenWrapperHeight,
|
|
8401
|
+
isTabAccessed,
|
|
8402
|
+
ref: triggerHolderRef,
|
|
8403
|
+
children
|
|
8404
|
+
}
|
|
8405
|
+
),
|
|
8395
8406
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
8396
8407
|
TooltipContainer,
|
|
8397
8408
|
{
|