@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.
@@ -1 +1 @@
1
- ._wrapper_1bu3d_1{position:relative;display:inline-block}._tooltip_1bu3d_6{position:absolute;z-index:1000;padding:var(--spacing-0-5);background:#fff;border-radius:4px;box-shadow:0 4px 12px #0000002e;opacity:0;visibility:hidden;transition:opacity .15s ease,transform .15s ease;width:max-content}._open_1bu3d_19{opacity:1;visibility:visible;transform:translateY(0)}._tooltip_1bu3d_6[data-position=top]{bottom:100%;left:50%;transform:translate(-50%,-4px)}._open_1bu3d_19._tooltip_1bu3d_6[data-position=top]{transform:translate(-50%)}._tooltip_1bu3d_6[data-position=bottom]{top:100%;left:50%;transform:translate(-50%,4px)}._open_1bu3d_19._tooltip_1bu3d_6[data-position=bottom]{transform:translate(-50%)}._tooltip_1bu3d_6[data-position=left]{right:100%;top:50%;transform:translate(-4px,-50%)}._open_1bu3d_19._tooltip_1bu3d_6[data-position=left]{transform:translateY(-50%)}._tooltip_1bu3d_6[data-position=right]{left:100%;top:50%;transform:translate(4px,-50%)}._open_1bu3d_19._tooltip_1bu3d_6[data-position=right]{transform:translateY(-50%)}._tooltip_1bu3d_6[data-position=top]{bottom:100%;left:50%;transform:translate(calc(-50% + var(--tooltip-shift-x, 0px)),-4px)}._open_1bu3d_19._tooltip_1bu3d_6[data-position=top]{transform:translate(calc(-50% + var(--tooltip-shift-x, 0px)))}._tooltip_1bu3d_6[data-position=bottom]{top:100%;left:50%;transform:translate(calc(-50% + var(--tooltip-shift-x, 0px)),4px)}._open_1bu3d_19._tooltip_1bu3d_6[data-position=bottom]{transform:translate(calc(-50% + var(--tooltip-shift-x, 0px)))}._tooltip_1bu3d_6[data-position=left]{right:100%;top:50%;transform:translate(-4px,calc(-50% + var(--tooltip-shift-y, 0px)))}._open_1bu3d_19._tooltip_1bu3d_6[data-position=left]{transform:translateY(calc(-50% + var(--tooltip-shift-y, 0px)))}._tooltip_1bu3d_6[data-position=right]{left:100%;top:50%;transform:translate(4px,calc(-50% + var(--tooltip-shift-y, 0px)))}._open_1bu3d_19._tooltip_1bu3d_6[data-position=right]{transform:translateY(calc(-50% + var(--tooltip-shift-y, 0px)))}
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: m,
27
- onItemDelete: c,
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: () => c(e), className: i.removeItem, children: /* @__PURE__ */ t(s, { iconKey: "fa-regular fa-trash", size: "sm" }) })
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) => m(e, g), size: "sm" })
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
- export interface TooltipProps {
3
- children: React.ReactNode;
4
- trigger: React.ReactElement;
5
- position?: "top" | "bottom" | "left" | "right";
6
- delay?: number;
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
- wrapperClassName?: string;
9
- on?: "hover" | "click" | "auto";
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>;