@caseparts-org/caseblocks 0.0.85 → 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,4 +1,6 @@
1
1
  export * from './main-server';
2
+ export { HorizontalScroll } from './atoms/HorizontalScroll/HorizontalScroll';
3
+ export type { HorizontalScrollProps } from './atoms/HorizontalScroll/HorizontalScroll';
2
4
  export { Tooltip } from './molecules/Tooltip/Tooltip';
3
5
  export { Account } from './molecules/Account/Account';
4
6
  export type { AccountProps } from './molecules/Account/Account';
@@ -7,66 +7,68 @@ import { Root as c } from "./atoms/Root/Root.js";
7
7
  import { Separator as C } from "./atoms/Separator/Separator.js";
8
8
  import { Text as k } from "./atoms/Text/Text.js";
9
9
  import { Input as B } from "./atoms/Input/Input.js";
10
- import { Link as v } from "./atoms/Link/Link.js";
11
- import { linkClassName as L } from "./atoms/Link/linkClassName.js";
10
+ import { Link as h } from "./atoms/Link/Link.js";
11
+ import { linkClassName as I } from "./atoms/Link/linkClassName.js";
12
12
  import { configureLink as T, routerOverride as s } from "./atoms/Link/configureLink.js";
13
13
  import { LinkButton as N } from "./atoms/LinkButton/LinkButton.js";
14
- import { configureImage as M } from "./atoms/Image/configureImage.js";
15
- import { Logo as b } from "./molecules/Logo/Logo.js";
16
- import { SearchBox as G } from "./molecules/SearchBox/SearchBox.js";
17
- import { QuantityInput as O } from "./molecules/QuantityInput/QuantityInput.js";
18
- import { Pricing as R } from "./molecules/Pricing/Pricing.js";
19
- import { Availability as j } from "./molecules/Availability/Availability.js";
20
- import { Avatar as z } from "./molecules/Avatar/Avatar.js";
14
+ import { configureImage as H } from "./atoms/Image/configureImage.js";
15
+ import { Logo as P } from "./molecules/Logo/Logo.js";
16
+ import { SearchBox as w } from "./molecules/SearchBox/SearchBox.js";
17
+ import { QuantityInput as G } from "./molecules/QuantityInput/QuantityInput.js";
18
+ import { Pricing as Q } from "./molecules/Pricing/Pricing.js";
19
+ import { Availability as V } from "./molecules/Availability/Availability.js";
20
+ import { Avatar as q } from "./molecules/Avatar/Avatar.js";
21
21
  import { BannerCard as E } from "./molecules/BannerCard/BannerCard.js";
22
22
  import { NotFound as K } from "./organisms/NotFound/NotFound.js";
23
- import { Tooltip as W } from "./molecules/Tooltip/Tooltip.js";
24
- import { Account as Y } from "./molecules/Account/Account.js";
25
- import { Chip as _ } from "./molecules/Chip/Chip.js";
26
- import { ToggleView as oo } from "./molecules/ToggleView/ToggleView.js";
27
- import { StatefulButton as to } from "./molecules/StatefulButton/StatefulButton.js";
28
- import { AnimatedCheckMark as po } from "./molecules/StatefulButton/AnimatedCheckmark.js";
29
- import { AddToCart as fo } from "./molecules/AddToCart/AddToCart.js";
30
- import { MainNav as ao } from "./organisms/MainNav/MainNav.js";
31
- import { ChipSelector as io } from "./organisms/ChipSelector/ChipSelector.js";
32
- import { Product as lo } from "./organisms/Product/Product.js";
33
- import { Carousel as Co } from "./organisms/Carousel/Carousel.js";
34
- import { Footer as ko } from "./organisms/Footer/Footer.js";
23
+ import { HorizontalScroll as W } from "./atoms/HorizontalScroll/HorizontalScroll.js";
24
+ import { Tooltip as Y } from "./molecules/Tooltip/Tooltip.js";
25
+ import { Account as _ } from "./molecules/Account/Account.js";
26
+ import { Chip as oo } from "./molecules/Chip/Chip.js";
27
+ import { ToggleView as to } from "./molecules/ToggleView/ToggleView.js";
28
+ import { StatefulButton as po } from "./molecules/StatefulButton/StatefulButton.js";
29
+ import { AnimatedCheckMark as fo } from "./molecules/StatefulButton/AnimatedCheckmark.js";
30
+ import { AddToCart as ao } from "./molecules/AddToCart/AddToCart.js";
31
+ import { MainNav as io } from "./organisms/MainNav/MainNav.js";
32
+ import { ChipSelector as lo } from "./organisms/ChipSelector/ChipSelector.js";
33
+ import { Product as Co } from "./organisms/Product/Product.js";
34
+ import { Carousel as ko } from "./organisms/Carousel/Carousel.js";
35
+ import { Footer as Bo } from "./organisms/Footer/Footer.js";
35
36
  export {
36
- Y as Account,
37
- fo as AddToCart,
38
- po as AnimatedCheckMark,
39
- j as Availability,
40
- z as Avatar,
37
+ _ as Account,
38
+ ao as AddToCart,
39
+ fo as AnimatedCheckMark,
40
+ V as Availability,
41
+ q as Avatar,
41
42
  E as BannerCard,
42
43
  t as Button,
43
- Co as Carousel,
44
- _ as Chip,
45
- io as ChipSelector,
44
+ ko as Carousel,
45
+ oo as Chip,
46
+ lo as ChipSelector,
46
47
  f as Column,
47
48
  p as Flex,
48
- ko as Footer,
49
+ Bo as Footer,
49
50
  x as Grid,
50
51
  n as Head,
52
+ W as HorizontalScroll,
51
53
  u as Icon,
52
54
  B as Input,
53
- v as Link,
55
+ h as Link,
54
56
  N as LinkButton,
55
- b as Logo,
56
- ao as MainNav,
57
+ P as Logo,
58
+ io as MainNav,
57
59
  K as NotFound,
58
- R as Pricing,
59
- lo as Product,
60
- O as QuantityInput,
60
+ Q as Pricing,
61
+ Co as Product,
62
+ G as QuantityInput,
61
63
  c as Root,
62
- G as SearchBox,
64
+ w as SearchBox,
63
65
  C as Separator,
64
- to as StatefulButton,
66
+ po as StatefulButton,
65
67
  k as Text,
66
- oo as ToggleView,
67
- W as Tooltip,
68
- M as configureImage,
68
+ to as ToggleView,
69
+ Y as Tooltip,
70
+ H as configureImage,
69
71
  T as configureLink,
70
- L as linkClassName,
72
+ I as linkClassName,
71
73
  s as routerOverride
72
74
  };
@@ -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;