@caseparts-org/caseblocks 0.0.51 → 0.0.52
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/assets/Tooltip.css +1 -1
- package/dist/molecules/Cart/Cart.js +5 -5
- package/dist/molecules/CategoryNav/CategoryNav.js +1 -1
- package/dist/molecules/Tooltip/Tooltip.d.ts +8 -12
- package/dist/molecules/Tooltip/Tooltip.js +497 -324
- package/dist/molecules/Tooltip/Tooltip.stories.d.ts +54 -3
- package/dist/molecules/Tooltip/Tooltip.stories.js +93 -44
- package/package.json +3 -2
package/dist/assets/Tooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._content_1wx0f_2{box-shadow:8px 8px 12px #00000026;background-color:#fff;padding:var(--spacing-1);box-sizing:border-box;width:max-content;border:1px solid var(--color-neutrals-neutral-1);border-radius:4px;z-index:9999}
|
|
@@ -23,8 +23,8 @@ import '../../assets/Cart.css';const y = "_cart_1uglw_2", N = "_count_1uglw_9",
|
|
|
23
23
|
};
|
|
24
24
|
function U({
|
|
25
25
|
cart: n,
|
|
26
|
-
onItemQtyChange:
|
|
27
|
-
onItemDelete:
|
|
26
|
+
onItemQtyChange: c,
|
|
27
|
+
onItemDelete: m,
|
|
28
28
|
onCheckout: l,
|
|
29
29
|
subtotal: r,
|
|
30
30
|
contactHref: d,
|
|
@@ -47,7 +47,7 @@ function U({
|
|
|
47
47
|
),
|
|
48
48
|
n.items.length > 0 && /* @__PURE__ */ t("div", { className: i.count, children: /* @__PURE__ */ t(a, { size: "xxs", children: n.items.length }) })
|
|
49
49
|
] }),
|
|
50
|
-
position: "bottom",
|
|
50
|
+
position: "bottom center",
|
|
51
51
|
on: "click",
|
|
52
52
|
children: /* @__PURE__ */ o("div", { className: i.cartContainer, children: [
|
|
53
53
|
/* @__PURE__ */ t(a, { size: "2xl", children: "Cart" }),
|
|
@@ -63,7 +63,7 @@ function U({
|
|
|
63
63
|
e.itemId
|
|
64
64
|
] })
|
|
65
65
|
] }),
|
|
66
|
-
/* @__PURE__ */ t("button", { onClick: () =>
|
|
66
|
+
/* @__PURE__ */ t("button", { onClick: () => m(e), className: i.removeItem, children: /* @__PURE__ */ t(s, { iconKey: "fa-regular fa-trash", size: "sm" }) })
|
|
67
67
|
] }),
|
|
68
68
|
/* @__PURE__ */ o("div", { className: i.itemManagement, children: [
|
|
69
69
|
/* @__PURE__ */ o("div", { className: i.purchaseInformation, children: [
|
|
@@ -78,7 +78,7 @@ function U({
|
|
|
78
78
|
),
|
|
79
79
|
/* @__PURE__ */ t(v, { pricingLabel: p || "List Price", price: e.price })
|
|
80
80
|
] }),
|
|
81
|
-
/* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (g) =>
|
|
81
|
+
/* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (g) => c(e, g), size: "sm" })
|
|
82
82
|
] })
|
|
83
83
|
] })
|
|
84
84
|
] }, e.id)
|
|
@@ -28,7 +28,7 @@ function z({
|
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
] }) }),
|
|
31
|
-
position: "bottom",
|
|
31
|
+
position: "bottom center",
|
|
32
32
|
children: /* @__PURE__ */ e("ul", { className: l.submenuTooltip, children: i.children.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(n, { href: r.route, children: /* @__PURE__ */ e(t, { size: "sm", weight: "semibold", children: r.label }) }) }, r.id)) })
|
|
33
33
|
},
|
|
34
34
|
i.id
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { PopupProps } from 'reactjs-popup/dist/types';
|
|
3
|
+
/**
|
|
4
|
+
* Tooltip component that wraps reactjs-popup's Popup,
|
|
5
|
+
* applying consistent styling for all tooltips/popups.
|
|
6
|
+
*/
|
|
7
|
+
export type TooltipProps = PopupProps & {
|
|
7
8
|
tooltipClassName?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
autoAdjust?: boolean;
|
|
11
|
-
flip?: boolean;
|
|
12
|
-
viewportPadding?: number;
|
|
13
|
-
allowEnter?: boolean;
|
|
14
|
-
}
|
|
9
|
+
contentClassName?: string;
|
|
10
|
+
};
|
|
15
11
|
export declare const Tooltip: React.FC<TooltipProps>;
|