@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.
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/Root.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/atoms/Icon/Icon.js +22 -22
- package/dist/atoms/Root/Root.js +1 -1
- package/dist/main-client.d.ts +2 -0
- package/dist/main-client.js +44 -42
- package/dist/molecules/Cart/Cart.js +18 -20
- package/dist/molecules/CategoryNav/CategoryNav.js +1 -1
- package/dist/molecules/Tooltip/Tooltip.d.ts +8 -7
- package/dist/molecules/Tooltip/Tooltip.js +2183 -598
- package/dist/molecules/Tooltip/Tooltip.stories.d.ts +7 -15
- package/dist/molecules/Tooltip/Tooltip.stories.js +48 -59
- package/package.json +5 -4
package/dist/assets/Tooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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}
|
package/dist/atoms/Icon/Icon.js
CHANGED
|
@@ -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
|
|
4
|
-
import '../../assets/Icon.css';const t = "
|
|
5
|
-
"icon-sm": "_icon-
|
|
6
|
-
"icon-md": "_icon-
|
|
7
|
-
"icon-lg": "_icon-
|
|
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-
|
|
10
|
-
"iconColor-default": "_iconColor-
|
|
11
|
-
"iconColor-default-inverted": "_iconColor-default-
|
|
12
|
-
"iconColor-secondary": "_iconColor-
|
|
13
|
-
"iconColor-warning": "_iconColor-
|
|
14
|
-
"iconColor-error-warning": "_iconColor-error-
|
|
15
|
-
"iconColor-success": "_iconColor-
|
|
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:
|
|
20
|
-
hideAt:
|
|
21
|
-
className:
|
|
22
|
-
colorToken:
|
|
23
|
-
...
|
|
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-${
|
|
31
|
-
o[`iconColor-${
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
o[`icon-${l}`],
|
|
31
|
+
o[`iconColor-${e}`],
|
|
32
|
+
a(c),
|
|
33
|
+
_
|
|
34
34
|
),
|
|
35
|
-
...
|
|
35
|
+
...s,
|
|
36
36
|
children: /* @__PURE__ */ r("i", { className: n(i), "aria-hidden": "true" })
|
|
37
37
|
}
|
|
38
38
|
);
|
package/dist/atoms/Root/Root.js
CHANGED
package/dist/main-client.d.ts
CHANGED
|
@@ -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';
|
package/dist/main-client.js
CHANGED
|
@@ -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
|
|
11
|
-
import { linkClassName as
|
|
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
|
|
15
|
-
import { Logo as
|
|
16
|
-
import { SearchBox as
|
|
17
|
-
import { QuantityInput as
|
|
18
|
-
import { Pricing as
|
|
19
|
-
import { Availability as
|
|
20
|
-
import { Avatar as
|
|
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 {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
ko as Carousel,
|
|
45
|
+
oo as Chip,
|
|
46
|
+
lo as ChipSelector,
|
|
46
47
|
f as Column,
|
|
47
48
|
p as Flex,
|
|
48
|
-
|
|
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
|
-
|
|
55
|
+
h as Link,
|
|
54
56
|
N as LinkButton,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
P as Logo,
|
|
58
|
+
io as MainNav,
|
|
57
59
|
K as NotFound,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
Q as Pricing,
|
|
61
|
+
Co as Product,
|
|
62
|
+
G as QuantityInput,
|
|
61
63
|
c as Root,
|
|
62
|
-
|
|
64
|
+
w as SearchBox,
|
|
63
65
|
C as Separator,
|
|
64
|
-
|
|
66
|
+
po as StatefulButton,
|
|
65
67
|
k as Text,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
to as ToggleView,
|
|
69
|
+
Y as Tooltip,
|
|
70
|
+
H as configureImage,
|
|
69
71
|
T as configureLink,
|
|
70
|
-
|
|
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
|
|
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",
|
|
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:
|
|
15
|
-
cartItems:
|
|
14
|
+
cartContainer: C,
|
|
15
|
+
cartItems: z,
|
|
16
16
|
topRow: k,
|
|
17
17
|
itemInfo: T,
|
|
18
|
-
purchaseInformation:
|
|
19
|
-
itemManagement:
|
|
20
|
-
removeItem:
|
|
18
|
+
purchaseInformation: L,
|
|
19
|
+
itemManagement: M,
|
|
20
|
+
removeItem: R,
|
|
21
21
|
noItems: P,
|
|
22
22
|
subtotal: S
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function U({
|
|
25
25
|
cart: o,
|
|
26
|
-
onItemQtyChange:
|
|
26
|
+
onItemQtyChange: s,
|
|
27
27
|
onItemDelete: c,
|
|
28
28
|
onCheckout: l,
|
|
29
29
|
subtotal: r,
|
|
30
30
|
contactHref: d,
|
|
31
|
-
contactLinkBehavior:
|
|
32
|
-
itemPriceLabel:
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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:
|
|
76
|
+
contactLinkBehavior: h || "new-tab"
|
|
79
77
|
}
|
|
80
78
|
),
|
|
81
|
-
/* @__PURE__ */ t(v, { pricingLabel:
|
|
79
|
+
/* @__PURE__ */ t(v, { pricingLabel: p || "List Price", price: e.price })
|
|
82
80
|
] }),
|
|
83
|
-
/* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (I) =>
|
|
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
|
-
|
|
96
|
+
U as ShoppingCart
|
|
99
97
|
};
|
|
@@ -28,7 +28,7 @@ function z({
|
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
] }) }),
|
|
31
|
-
|
|
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 {
|
|
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
|
|
12
|
+
export declare function Tooltip({ tooltipClassName, contentClassName, trigger, children, on, mouseEnterDelay, mouseLeaveDelay, ...tippyProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|