lawgic-dev-kit 0.22.16 → 0.23.2
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/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/PasswordInput/PasswordInput.js +4 -4
- package/dist/components/atoms/SelectInput/SelectInput.js +4 -4
- package/dist/components/atoms/TextInput/TextInput.js +23 -23
- package/dist/components/atoms/Toast/Toast.js +14 -14
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +6 -6
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +8 -8
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +10 -10
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.js +8 -8
- package/dist/components/molecules/Tooltip/Tooltip.d.ts +11 -5
- package/dist/components/molecules/Tooltip/Tooltip.js +39 -28
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +9 -9
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/components/molecules/Tooltip/Tooltip.d.ts +11 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index5.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index7.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as v } from "../../_virtual/
|
|
2
|
-
import { t as U } from "../../_virtual/
|
|
3
|
-
import oe from "../../_virtual/
|
|
1
|
+
import { p as v } from "../../_virtual/index2.js";
|
|
2
|
+
import { t as U } from "../../_virtual/index3.js";
|
|
3
|
+
import oe from "../../_virtual/index4.js";
|
|
4
4
|
const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
|
|
5
5
|
function me(n) {
|
|
6
6
|
return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
type TooltipLocation = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
type TooltipBehavior = 'hover' | 'truncated' | 'both';
|
|
4
5
|
interface TooltipProps {
|
|
5
6
|
text: string;
|
|
6
7
|
children: ReactNode;
|
|
@@ -8,14 +9,19 @@ interface TooltipProps {
|
|
|
8
9
|
location?: TooltipLocation;
|
|
9
10
|
childClassName?: string;
|
|
10
11
|
forceShow?: boolean;
|
|
12
|
+
behavior?: TooltipBehavior;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Tooltip Component
|
|
16
|
+
*
|
|
17
|
+
* Supports three display behaviors via the `behavior` prop:
|
|
18
|
+
* - `"hover"`: Always shows the tooltip on hover.
|
|
19
|
+
* - `"truncated"`: Only shows the tooltip when the children's text is truncated (default).
|
|
20
|
+
* - `"both"`: Always shows on hover, and also detects truncation for styling.
|
|
21
|
+
*
|
|
22
|
+
* Usage Note:
|
|
17
23
|
* By default, it truncates based on the parent's width. To truncate earlier,
|
|
18
24
|
* pass a specific width class to `childClassName` (e.g., `max-w-[200px]`).
|
|
19
25
|
*/
|
|
20
|
-
declare const Tooltip: ({ text, children, icon, location, childClassName, forceShow }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const Tooltip: ({ text, children, icon, location, childClassName, forceShow, behavior }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
27
|
export default Tooltip;
|