@caseparts-org/caseblocks 0.0.49 → 0.0.50
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.
|
@@ -507,7 +507,7 @@ const de = "_wrapper_1bu3d_1", fe = "_tooltip_1bu3d_6", ge = "_open_1bu3d_19", U
|
|
|
507
507
|
}
|
|
508
508
|
} : {}, oe = M === "click" ? {
|
|
509
509
|
onClick: (s) => {
|
|
510
|
-
|
|
510
|
+
s.preventDefault(), z();
|
|
511
511
|
},
|
|
512
512
|
onKeyDown: (s) => {
|
|
513
513
|
s.key === "Enter" || s.key === " " ? (s.preventDefault(), z()) : s.key === "Escape" && re();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as e } from "./Tooltip.js";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as i } from "../../atoms/Button/Button.js";
|
|
4
4
|
const s = {
|
|
5
5
|
title: "Case Parts/Molecules/Tooltip",
|
|
6
6
|
component: e,
|
|
@@ -38,7 +38,7 @@ const s = {
|
|
|
38
38
|
delay: 0,
|
|
39
39
|
allowEnter: !0
|
|
40
40
|
},
|
|
41
|
-
render: (
|
|
41
|
+
render: (o) => /* @__PURE__ */ t(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
style: {
|
|
@@ -52,8 +52,8 @@ const s = {
|
|
|
52
52
|
children: /* @__PURE__ */ t(
|
|
53
53
|
e,
|
|
54
54
|
{
|
|
55
|
-
...
|
|
56
|
-
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(
|
|
55
|
+
...o,
|
|
56
|
+
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(i, { size: "md", variant: "primary", children: "Hover me" }) }),
|
|
57
57
|
on: "hover",
|
|
58
58
|
children: "This tooltip appears on hover (top center)."
|
|
59
59
|
}
|
|
@@ -75,7 +75,7 @@ const s = {
|
|
|
75
75
|
children: /* @__PURE__ */ t(
|
|
76
76
|
e,
|
|
77
77
|
{
|
|
78
|
-
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(
|
|
78
|
+
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(i, { size: "md", variant: "secondary", children: "Click me" }) }),
|
|
79
79
|
on: "click",
|
|
80
80
|
position: "bottom",
|
|
81
81
|
children: "This tooltip appears on click (bottom center)."
|
|
@@ -98,7 +98,7 @@ const s = {
|
|
|
98
98
|
children: /* @__PURE__ */ t(
|
|
99
99
|
e,
|
|
100
100
|
{
|
|
101
|
-
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(
|
|
101
|
+
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(i, { size: "md", variant: "cta-primary", children: "Hover right" }) }),
|
|
102
102
|
on: "hover",
|
|
103
103
|
position: "right",
|
|
104
104
|
children: "Tooltip on the right."
|
|
@@ -121,7 +121,7 @@ const s = {
|
|
|
121
121
|
children: /* @__PURE__ */ t(
|
|
122
122
|
e,
|
|
123
123
|
{
|
|
124
|
-
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(
|
|
124
|
+
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(i, { size: "md", variant: "tertiary", children: "Hover left" }) }),
|
|
125
125
|
on: "hover",
|
|
126
126
|
position: "left",
|
|
127
127
|
children: "Tooltip on the left."
|
|
@@ -129,8 +129,33 @@ const s = {
|
|
|
129
129
|
)
|
|
130
130
|
}
|
|
131
131
|
)
|
|
132
|
+
}, p = {
|
|
133
|
+
render: () => /* @__PURE__ */ t(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
style: {
|
|
137
|
+
height: "10vh",
|
|
138
|
+
display: "flex",
|
|
139
|
+
flexDirection: "row",
|
|
140
|
+
alignItems: "center",
|
|
141
|
+
justifyContent: "center",
|
|
142
|
+
position: "absolute",
|
|
143
|
+
right: "300px"
|
|
144
|
+
},
|
|
145
|
+
children: /* @__PURE__ */ t(
|
|
146
|
+
e,
|
|
147
|
+
{
|
|
148
|
+
trigger: /* @__PURE__ */ t("div", { className: "tooltip-story", children: /* @__PURE__ */ t(i, { size: "md", variant: "cta-primary", children: "Hover right" }) }),
|
|
149
|
+
on: "hover",
|
|
150
|
+
position: "right",
|
|
151
|
+
children: "Tooltip on the right."
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
}
|
|
155
|
+
)
|
|
132
156
|
};
|
|
133
157
|
export {
|
|
158
|
+
p as AbsolutelyPositioned,
|
|
134
159
|
a as OnClick,
|
|
135
160
|
c as OnHover,
|
|
136
161
|
d as PositionLeft,
|