@caseparts-org/caseblocks 0.0.86 → 0.0.87

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
- ._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}
1
+ ._content_1ao8d_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}
@@ -1,38 +1,38 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { c as n } from "../../clsx-OuTLNxxd.js";
3
- import { getHideAtStyles as l } from "../HideAt.js";
4
- import '../../assets/Icon.css';const t = "_wrapper_7uoas_15", o = {
5
- "icon-sm": "_icon-sm_7uoas_1",
6
- "icon-md": "_icon-md_7uoas_5",
7
- "icon-lg": "_icon-lg_7uoas_9",
3
+ import { getHideAtStyles as a } from "../HideAt.js";
4
+ import '../../assets/Icon.css';const t = "_wrapper_1lr8y_15", o = {
5
+ "icon-sm": "_icon-sm_1lr8y_1",
6
+ "icon-md": "_icon-md_1lr8y_5",
7
+ "icon-lg": "_icon-lg_1lr8y_9",
8
8
  wrapper: t,
9
- "iconColor-inherit": "_iconColor-inherit_7uoas_37",
10
- "iconColor-default": "_iconColor-default_7uoas_38",
11
- "iconColor-default-inverted": "_iconColor-default-inverted_7uoas_39",
12
- "iconColor-secondary": "_iconColor-secondary_7uoas_40",
13
- "iconColor-warning": "_iconColor-warning_7uoas_41",
14
- "iconColor-error-warning": "_iconColor-error-warning_7uoas_42",
15
- "iconColor-success": "_iconColor-success_7uoas_43"
9
+ "iconColor-inherit": "_iconColor-inherit_1lr8y_37",
10
+ "iconColor-default": "_iconColor-default_1lr8y_38",
11
+ "iconColor-default-inverted": "_iconColor-default-inverted_1lr8y_39",
12
+ "iconColor-secondary": "_iconColor-secondary_1lr8y_40",
13
+ "iconColor-warning": "_iconColor-warning_1lr8y_41",
14
+ "iconColor-error-warning": "_iconColor-error-warning_1lr8y_42",
15
+ "iconColor-success": "_iconColor-success_1lr8y_43"
16
16
  };
17
17
  function m({
18
18
  iconKey: i,
19
- size: c = "md",
20
- hideAt: s,
21
- className: a,
22
- colorToken: _ = "inherit",
23
- ...e
19
+ size: l = "md",
20
+ hideAt: c,
21
+ className: _,
22
+ colorToken: e = "inherit",
23
+ ...s
24
24
  }) {
25
25
  return /* @__PURE__ */ r(
26
26
  "span",
27
27
  {
28
28
  className: n(
29
29
  o.wrapper,
30
- o[`icon-${c}`],
31
- o[`iconColor-${_}`],
32
- l(s),
33
- a
30
+ o[`icon-${l}`],
31
+ o[`iconColor-${e}`],
32
+ a(c),
33
+ _
34
34
  ),
35
- ...e,
35
+ ...s,
36
36
  children: /* @__PURE__ */ r("i", { className: n(i), "aria-hidden": "true" })
37
37
  }
38
38
  );
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import '../../assets/Root.css';const r = "_root_rz7mq_20", s = {
2
+ import '../../assets/Root.css';const r = "_root_1w7oz_20", s = {
3
3
  root: r
4
4
  };
5
5
  function c({ children: o }) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { Icon as s } from "../../atoms/Icon/Icon.js";
2
+ import { Icon as m } from "../../atoms/Icon/Icon.js";
3
3
  import { Text as a } from "../../atoms/Text/Text.js";
4
4
  import { Link as u } from "../../atoms/Link/Link.js";
5
5
  import { Button as f } from "../../atoms/Button/Button.js";
@@ -7,40 +7,38 @@ import { Tooltip as g } from "../Tooltip/Tooltip.js";
7
7
  import { Pricing as v } from "../Pricing/Pricing.js";
8
8
  import { QuantityInput as w } from "../QuantityInput/QuantityInput.js";
9
9
  import { Availability as x } from "../Availability/Availability.js";
10
- import '../../assets/Cart.css';const b = "_cart_11wxn_2", y = "_count_11wxn_9", N = "_cartTooltip_11wxn_24", z = "_cartContainer_11wxn_27", C = "_cartItems_11wxn_35", k = "_topRow_11wxn_57", T = "_itemInfo_11wxn_63", R = "_purchaseInformation_11wxn_68", L = "_itemManagement_11wxn_75", M = "_removeItem_11wxn_93", P = "_noItems_11wxn_101", S = "_subtotal_11wxn_108", i = {
10
+ import '../../assets/Cart.css';const b = "_cart_11wxn_2", y = "_count_11wxn_9", N = "_cartTooltip_11wxn_24", C = "_cartContainer_11wxn_27", z = "_cartItems_11wxn_35", k = "_topRow_11wxn_57", T = "_itemInfo_11wxn_63", L = "_purchaseInformation_11wxn_68", M = "_itemManagement_11wxn_75", R = "_removeItem_11wxn_93", P = "_noItems_11wxn_101", S = "_subtotal_11wxn_108", i = {
11
11
  cart: b,
12
12
  count: y,
13
13
  cartTooltip: N,
14
- cartContainer: z,
15
- cartItems: C,
14
+ cartContainer: C,
15
+ cartItems: z,
16
16
  topRow: k,
17
17
  itemInfo: T,
18
- purchaseInformation: R,
19
- itemManagement: L,
20
- removeItem: M,
18
+ purchaseInformation: L,
19
+ itemManagement: M,
20
+ removeItem: R,
21
21
  noItems: P,
22
22
  subtotal: S
23
23
  };
24
- function O({
24
+ function U({
25
25
  cart: o,
26
- onItemQtyChange: m,
26
+ onItemQtyChange: s,
27
27
  onItemDelete: c,
28
28
  onCheckout: l,
29
29
  subtotal: r,
30
30
  contactHref: d,
31
- contactLinkBehavior: p,
32
- itemPriceLabel: h,
31
+ contactLinkBehavior: h,
32
+ itemPriceLabel: p,
33
33
  ..._
34
34
  }) {
35
35
  return o = o || { items: [] }, /* @__PURE__ */ t(
36
36
  g,
37
37
  {
38
38
  tooltipClassName: i.cartTooltip,
39
- repositionOnResize: !0,
40
- keepTooltipInside: !0,
41
39
  trigger: /* @__PURE__ */ n("button", { className: i.cart, tabIndex: 0, ..._, children: [
42
40
  /* @__PURE__ */ t(
43
- s,
41
+ m,
44
42
  {
45
43
  iconKey: "fa-kit fa-shoppingcart-empty",
46
44
  title: "Shopping Cart",
@@ -49,7 +47,7 @@ function O({
49
47
  ),
50
48
  o.items.length > 0 && /* @__PURE__ */ t("div", { className: i.count, children: /* @__PURE__ */ t(a, { size: "xxs", children: o.items.length }) })
51
49
  ] }),
52
- position: "bottom left",
50
+ placement: "bottom",
53
51
  on: "click",
54
52
  children: /* @__PURE__ */ n("div", { className: i.cartContainer, children: [
55
53
  /* @__PURE__ */ t(a, { size: "2xl", children: "Cart" }),
@@ -65,7 +63,7 @@ function O({
65
63
  e.itemId
66
64
  ] })
67
65
  ] }),
68
- /* @__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: () => c(e), className: i.removeItem, children: /* @__PURE__ */ t(m, { iconKey: "fa-regular fa-trash", size: "sm" }) })
69
67
  ] }),
70
68
  /* @__PURE__ */ n("div", { className: i.itemManagement, children: [
71
69
  /* @__PURE__ */ n("div", { className: i.purchaseInformation, children: [
@@ -75,12 +73,12 @@ function O({
75
73
  availId: e.availabilityId || "",
76
74
  availDescription: e.availability || "",
77
75
  contactHref: d || "",
78
- contactLinkBehavior: p || "new-tab"
76
+ contactLinkBehavior: h || "new-tab"
79
77
  }
80
78
  ),
81
- /* @__PURE__ */ t(v, { pricingLabel: h || "List Price", price: e.price })
79
+ /* @__PURE__ */ t(v, { pricingLabel: p || "List Price", price: e.price })
82
80
  ] }),
83
- /* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (I) => m(e, I), size: "sm" })
81
+ /* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (I) => s(e, I), size: "sm" })
84
82
  ] })
85
83
  ] })
86
84
  ] }, e.id)
@@ -95,5 +93,5 @@ function O({
95
93
  );
96
94
  }
97
95
  export {
98
- O as ShoppingCart
96
+ U as ShoppingCart
99
97
  };
@@ -28,7 +28,7 @@ function z({
28
28
  }
29
29
  )
30
30
  ] }) }),
31
- position: "bottom center",
31
+ placement: "bottom",
32
32
  children: /* @__PURE__ */ e("ul", { className: l.submenuTooltip, children: i.children.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(s, { href: r.route, children: /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: r.label }) }) }, r.id)) })
33
33
  },
34
34
  i.id
@@ -1,11 +1,12 @@
1
1
  import { default as React } from 'react';
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 & {
2
+ import { TippyProps } from '@tippyjs/react';
3
+ export type TooltipProps = Omit<TippyProps, "content" | "children" | "trigger"> & {
8
4
  tooltipClassName?: string;
9
5
  contentClassName?: string;
6
+ trigger: React.ReactElement;
7
+ on?: "click" | "mouseenter focus";
8
+ children: React.ReactNode;
9
+ mouseEnterDelay?: number;
10
+ mouseLeaveDelay?: number;
10
11
  };
11
- export declare const Tooltip: React.FC<TooltipProps>;
12
+ export declare function Tooltip({ tooltipClassName, contentClassName, trigger, children, on, mouseEnterDelay, mouseLeaveDelay, ...tippyProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;