@caseparts-org/caseblocks 0.0.96 → 0.0.98

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
- ._productCard_10edn_1{box-sizing:border-box;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;display:flex;width:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_10edn_1>img{width:116px;height:116px;object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_10edn_1 ._productInformation_10edn_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_10edn_1 ._purchaseInformation_10edn_29{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_10edn_1 ._addToCart_10edn_37,._productCard_10edn_1 ._addToCartButton_10edn_40{width:100%}._productInformation_10edn_22>a{font-weight:var(--font-weight-semibold)}._partNumber_10edn_48{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_10edn_55{color:var(--text-text-quaternary)}._productTile_10edn_59{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_10edn_59>img{width:108px;height:108px;object-fit:contain}._productTile_10edn_59 ._topRow_10edn_80{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_10edn_59 ._topRow_10edn_80 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_10edn_59 ._topRow_10edn_80 path{fill:var(--icons-icon-search)}._productTile_10edn_59 ._topRow_10edn_80 svg{padding:0}._productTile_10edn_59 ._productInformation_10edn_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_10edn_59 ._productData_10edn_111{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_10edn_59 ._purchase_10edn_29{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_10edn_59 ._purchase_10edn_29{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_10edn_59 ._purchaseInformation_10edn_29{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_10edn_59 ._purchaseInformation_10edn_29{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_10edn_59 ._attributeContainer_10edn_148{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_10edn_59 ._attributeContainer_10edn_148{display:none}}._productTile_10edn_59 ._attributeContainer_10edn_148 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_10edn_59 ._addToCart_10edn_37{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_10edn_59 ._addToCart_10edn_37{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_10edn_59 ._addToCartButton_10edn_40{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_10edn_59 ._addToCartButton_10edn_40{width:100%}}
1
+ ._productCard_15dy7_1{box-sizing:border-box;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;display:flex;width:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_15dy7_1>img{width:96px;height:96px;object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_15dy7_1 ._productInformation_15dy7_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_15dy7_1 ._purchaseInformation_15dy7_29{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_15dy7_1 ._addToCart_15dy7_37,._productCard_15dy7_1 ._addToCartButton_15dy7_40{width:100%}._productInformation_15dy7_22>a{font-weight:var(--font-weight-semibold)}._partNumber_15dy7_48{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_15dy7_55{color:var(--text-text-quaternary)}._productTile_15dy7_59{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_15dy7_59>img{width:108px;height:108px;object-fit:contain}._productTile_15dy7_59 ._topRow_15dy7_80{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_15dy7_59 ._topRow_15dy7_80 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_15dy7_59 ._topRow_15dy7_80 path{fill:var(--icons-icon-search)}._productTile_15dy7_59 ._topRow_15dy7_80 svg{padding:0}._productTile_15dy7_59 ._productInformation_15dy7_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_15dy7_59 ._productData_15dy7_111{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_15dy7_59 ._purchase_15dy7_29{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_15dy7_59 ._purchase_15dy7_29{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_15dy7_59 ._purchaseInformation_15dy7_29{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_15dy7_59 ._purchaseInformation_15dy7_29{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_15dy7_59 ._attributeContainer_15dy7_148{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_15dy7_59 ._attributeContainer_15dy7_148{display:none}}._productTile_15dy7_59 ._attributeContainer_15dy7_148 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_15dy7_59 ._addToCart_15dy7_37{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_15dy7_59 ._addToCart_15dy7_37{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_15dy7_59 ._addToCartButton_15dy7_40{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_15dy7_59 ._addToCartButton_15dy7_40{width:100%}}
@@ -1,49 +1,55 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as a, useState as v } from "react";
3
- import { c as x } from "../../clsx-OuTLNxxd.js";
4
- import '../../assets/HorizontalScroll.css';const h = "_container_aum2v_1", b = "_dragging_aum2v_14", l = {
5
- container: h,
6
- dragging: b,
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { useRef as c, useState as D, useEffect as L } from "react";
3
+ import { c as b } from "../../clsx-OuTLNxxd.js";
4
+ import '../../assets/HorizontalScroll.css';const P = "_container_aum2v_1", S = "_dragging_aum2v_14", s = {
5
+ container: P,
6
+ dragging: S,
7
7
  "scrollVisibility--false": "_scrollVisibility--false_aum2v_19"
8
8
  };
9
- function S({
10
- className: u,
11
- showScrollbar: f = !1,
12
- children: g
9
+ function M({
10
+ className: d,
11
+ showScrollbar: g = !1,
12
+ children: p
13
13
  }) {
14
- const r = a(null), [o, c] = v(!1), e = a({ x: 0, scroll: 0 }), d = (t) => {
15
- r.current && (c(!0), e.current.x = t.clientX, e.current.scroll = r.current.scrollLeft);
16
- }, m = (t) => {
17
- if (!o || !r.current) return;
18
- const n = t.clientX - e.current.x;
19
- r.current.scrollLeft = e.current.scroll - n;
20
- }, s = () => {
21
- r.current && c(!1);
14
+ const r = c(null), [a, i] = D(!1), n = c({ x: 0, scroll: 0 }), l = c(!1), v = 5, m = (t) => {
15
+ r.current && (i(!0), n.current.x = t.clientX, n.current.scroll = r.current.scrollLeft, l.current = !1);
16
+ }, h = (t) => {
17
+ if (!a || !r.current) return;
18
+ const o = t.clientX - n.current.x;
19
+ r.current.scrollLeft = n.current.scroll - o, Math.abs(t.clientX - n.current.x) > v && (l.current = !0);
20
+ }, u = () => {
21
+ r.current && i(!1);
22
22
  }, _ = (t) => {
23
- const n = r.current;
24
- if (!n || !(n.scrollWidth > n.clientWidth)) return;
25
- const i = Math.abs(t.deltaY) >= Math.abs(t.deltaX) && t.deltaY !== 0 ? t.deltaY : t.deltaX;
26
- i !== 0 ? (t.preventDefault(), n.scrollLeft += i) : t.preventDefault();
23
+ l.current && (t.preventDefault(), t.stopPropagation(), l.current = !1);
27
24
  };
28
- return /* @__PURE__ */ p(
25
+ return L(() => {
26
+ const t = r.current;
27
+ if (!t) return;
28
+ const o = (e) => {
29
+ if (!(t.scrollWidth > t.clientWidth)) return;
30
+ const f = Math.abs(e.deltaY) >= Math.abs(e.deltaX) && e.deltaY !== 0 ? e.deltaY : e.deltaX;
31
+ f !== 0 ? (e.preventDefault(), t.scrollLeft += f) : e.preventDefault();
32
+ };
33
+ return t.addEventListener("wheel", o, { passive: !1 }), () => t.removeEventListener("wheel", o);
34
+ }, []), /* @__PURE__ */ x(
29
35
  "div",
30
36
  {
31
37
  ref: r,
32
- className: x(
33
- u,
34
- l.container,
35
- l[`scrollVisibility--${f}`],
36
- o ? l.dragging : ""
38
+ className: b(
39
+ d,
40
+ s.container,
41
+ s[`scrollVisibility--${g}`],
42
+ a ? s.dragging : ""
37
43
  ),
38
- onPointerDown: d,
39
- onPointerMove: m,
40
- onPointerLeave: s,
41
- onPointerUp: s,
42
- onWheel: _,
43
- children: g
44
+ onPointerDown: m,
45
+ onPointerMove: h,
46
+ onPointerLeave: u,
47
+ onPointerUp: u,
48
+ onClickCapture: _,
49
+ children: p
44
50
  }
45
51
  );
46
52
  }
47
53
  export {
48
- S as HorizontalScroll
54
+ M as HorizontalScroll
49
55
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { HorizontalScroll as t } from "./HorizontalScroll.js";
3
- const b = {
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
+ import { HorizontalScroll as r } from "./HorizontalScroll.js";
3
+ const S = {
4
4
  title: "Case Parts/Atoms/HorizontalScroll",
5
- component: t,
5
+ component: r,
6
6
  tags: ["autodocs"],
7
7
  parameters: {
8
8
  layout: "fullscreen",
@@ -60,48 +60,59 @@ Use for carousels, chip lists, card rails, horizontally overflowing panels.
60
60
  rounded: !0,
61
61
  gradient: !0
62
62
  }
63
- }, i = (e) => {
64
- const { itemCount: a, itemWidth: s, itemHeight: n, gap: d, rounded: c, gradient: h } = e;
65
- return Array.from({ length: a }, (p, m) => {
66
- const l = m + 1;
67
- return /* @__PURE__ */ r(
68
- "div",
63
+ }, l = /* @__PURE__ */ o("style", { children: `
64
+ .horizontalDemoScroll {
65
+ touch-action: none; /* ensure pointer events for horizontal drag */
66
+ }
67
+ .horizontalDemoScroll a {
68
+ -webkit-user-drag: none; /* Safari/Chrome: prevent ghost dragging of link */
69
+ }
70
+ ` }), n = (e) => {
71
+ const { itemCount: s, itemWidth: c, itemHeight: i, gap: d, rounded: h, gradient: m } = e;
72
+ return Array.from({ length: s }, (p, g) => {
73
+ const a = g + 1;
74
+ return /* @__PURE__ */ o(
75
+ "a",
69
76
  {
77
+ href: "/",
78
+ draggable: !1,
70
79
  style: {
71
80
  flex: "0 0 auto",
72
- width: s,
73
- height: n,
81
+ width: c,
82
+ height: i,
74
83
  marginRight: d,
75
- borderRadius: c ? 8 : 0,
76
- background: h ? "linear-gradient(135deg,#4F46E5,#6366F1)" : "#4F46E5",
84
+ borderRadius: h ? 8 : 0,
85
+ background: m ? "linear-gradient(135deg,#4F46E5,#6366F1)" : "#4F46E5",
77
86
  color: "#fff",
78
87
  display: "flex",
79
88
  alignItems: "center",
80
89
  justifyContent: "center",
81
- fontSize: Math.max(12, Math.min(24, n / 3)),
90
+ fontSize: Math.max(12, Math.min(24, i / 3)),
82
91
  fontWeight: 600,
83
92
  userSelect: "none",
84
93
  boxShadow: "0 2px 6px rgba(0,0,0,0.25)"
85
94
  },
86
- children: l
95
+ children: a
87
96
  },
88
- l
97
+ a
89
98
  );
90
99
  });
91
100
  }, y = {
92
101
  name: "Playground",
93
- render: (e) => /* @__PURE__ */ o("div", { style: { padding: 24 }, children: [
94
- /* @__PURE__ */ r("h3", { style: { margin: "0 0 12px" }, children: "HorizontalScroll Playground" }),
95
- /* @__PURE__ */ r("p", { style: { margin: "0 0 16px", fontSize: 14, color: "#555" }, children: "Drag horizontally or use the mouse wheel. Tweak values in Controls." }),
96
- /* @__PURE__ */ r(t, { showScrollbar: e.showScrollbar, children: i(e) })
102
+ render: (e) => /* @__PURE__ */ t("div", { style: { padding: 24 }, children: [
103
+ l,
104
+ /* @__PURE__ */ o("h3", { style: { margin: "0 0 12px" }, children: "HorizontalScroll Playground" }),
105
+ /* @__PURE__ */ o("p", { style: { margin: "0 0 16px", fontSize: 14, color: "#555" }, children: "Drag horizontally or use the mouse wheel. Tweak values in Controls." }),
106
+ /* @__PURE__ */ o(r, { className: "horizontalDemoScroll", showScrollbar: e.showScrollbar, children: n(e) })
97
107
  ] })
98
108
  }, f = {
99
109
  args: { showScrollbar: !0 },
100
- render: (e) => /* @__PURE__ */ o("div", { style: { padding: 24 }, children: [
101
- /* @__PURE__ */ r("h3", { style: { margin: "0 0 12px" }, children: "Scrollbar Visible" }),
102
- /* @__PURE__ */ r(t, { showScrollbar: !0, children: i(e) })
110
+ render: (e) => /* @__PURE__ */ t("div", { style: { padding: 24 }, children: [
111
+ l,
112
+ /* @__PURE__ */ o("h3", { style: { margin: "0 0 12px" }, children: "Scrollbar Visible" }),
113
+ /* @__PURE__ */ o(r, { className: "horizontalDemoScroll", showScrollbar: !0, children: n(e) })
103
114
  ] })
104
- }, S = {
115
+ }, w = {
105
116
  args: {
106
117
  itemCount: 40,
107
118
  itemWidth: 90,
@@ -109,11 +120,12 @@ Use for carousels, chip lists, card rails, horizontally overflowing panels.
109
120
  gap: 8,
110
121
  showScrollbar: !1
111
122
  },
112
- render: (e) => /* @__PURE__ */ o("div", { style: { padding: 24 }, children: [
113
- /* @__PURE__ */ r("h3", { style: { margin: "0 0 12px" }, children: "Dense Small Items" }),
114
- /* @__PURE__ */ r(t, { showScrollbar: e.showScrollbar, children: i(e) })
123
+ render: (e) => /* @__PURE__ */ t("div", { style: { padding: 24 }, children: [
124
+ l,
125
+ /* @__PURE__ */ o("h3", { style: { margin: "0 0 12px" }, children: "Dense Small Items" }),
126
+ /* @__PURE__ */ o(r, { className: "horizontalDemoScroll", showScrollbar: e.showScrollbar, children: n(e) })
115
127
  ] })
116
- }, w = {
128
+ }, x = {
117
129
  args: {
118
130
  itemCount: 12,
119
131
  itemWidth: 260,
@@ -121,15 +133,16 @@ Use for carousels, chip lists, card rails, horizontally overflowing panels.
121
133
  gap: 16,
122
134
  gradient: !1
123
135
  },
124
- render: (e) => /* @__PURE__ */ o("div", { style: { padding: 24 }, children: [
125
- /* @__PURE__ */ r("h3", { style: { margin: "0 0 12px" }, children: "Large Cards" }),
126
- /* @__PURE__ */ r(t, { showScrollbar: e.showScrollbar, children: i(e) })
136
+ render: (e) => /* @__PURE__ */ t("div", { style: { padding: 24 }, children: [
137
+ l,
138
+ /* @__PURE__ */ o("h3", { style: { margin: "0 0 12px" }, children: "Large Cards" }),
139
+ /* @__PURE__ */ o(r, { className: "horizontalDemoScroll", showScrollbar: e.showScrollbar, children: n(e) })
127
140
  ] })
128
141
  };
129
142
  export {
130
- S as DenseSmallItems,
131
- w as LargeCards,
143
+ w as DenseSmallItems,
144
+ x as LargeCards,
132
145
  y as Playground,
133
146
  f as WithScrollbar,
134
- b as default
147
+ S as default
135
148
  };
@@ -19,8 +19,9 @@ export type { AnimatedCheckMarkProps } from './molecules/StatefulButton/Animated
19
19
  export { AnimatedCheckMark } from './molecules/StatefulButton/AnimatedCheckmark';
20
20
  export type { AddToCartProps } from './molecules/AddToCart/AddToCart';
21
21
  export { AddToCart } from './molecules/AddToCart/AddToCart';
22
+ export type { CategoryWithChildren as MainCategory, Category } from './molecules/CategoryNav/CategoryNav';
22
23
  export { MainNav } from './organisms/MainNav/MainNav';
23
- export type { MainCategory, MainNavProps, Category } from './organisms/MainNav/MainNav';
24
+ export type { MainNavProps } from './organisms/MainNav/MainNav';
24
25
  export { ChipSelector } from './organisms/ChipSelector/ChipSelector';
25
26
  export type { ChipSelectorProps } from './organisms/ChipSelector/ChipSelector';
26
27
  export { Product } from './organisms/Product/Product';
package/dist/main.d.ts CHANGED
@@ -25,6 +25,5 @@ export type { SearchBoxProps } from './molecules/SearchBox/SearchBox';
25
25
  export { ToggleView } from './molecules/ToggleView/ToggleView';
26
26
  export type { ToggleViewProps, ToggleOptionProps, ToggleOptionBaseProps, } from './molecules/ToggleView/ToggleView';
27
27
  export { MainNav } from './organisms/MainNav/MainNav';
28
- export type { MainCategory, Category } from './organisms/MainNav/MainNav';
29
28
  export { ChipSelector } from './organisms/ChipSelector/ChipSelector';
30
29
  export type { ChipSelectorProps } from './organisms/ChipSelector/ChipSelector';
@@ -1,12 +1,12 @@
1
1
  export interface Category {
2
2
  id: string | number;
3
- label: string;
3
+ label: string | React.ReactElement;
4
4
  route: string;
5
5
  }
6
- export interface MainCategory extends Category {
6
+ export interface CategoryWithChildren extends Category {
7
7
  children: Category[];
8
8
  showChevron?: boolean;
9
9
  }
10
10
  export declare function CategoryNav({ categories, }: {
11
- categories?: MainCategory[];
11
+ categories?: CategoryWithChildren[];
12
12
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,17 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { CartPropsBase, ShoppingCart, ShoppingCartHandle } from '../../molecules/Cart/Cart';
3
3
  import { AccountProps } from '../../molecules/Account/Account';
4
- export interface Category {
5
- id: string | number;
6
- label: string;
7
- route: string;
8
- }
9
- export interface MainCategory extends Category {
10
- children: Category[];
11
- showChevron?: boolean;
12
- }
4
+ import { CategoryWithChildren } from '../../molecules/CategoryNav/CategoryNav';
13
5
  export interface MainNavProps extends CartPropsBase, React.HTMLAttributes<HTMLDivElement>, Pick<AccountProps, "account"> {
14
- categories?: MainCategory[];
6
+ categories?: CategoryWithChildren[];
15
7
  homeRoute: string;
16
8
  faqRoute: string;
17
9
  byModelSerialRoute: string;
@@ -1,76 +1,76 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
2
  import { Image as T } from "../../atoms/Image/Image.js";
3
3
  import { Link as g } from "../../atoms/Link/Link.js";
4
- import { Text as e } from "../../atoms/Text/Text.js";
5
- import { Availability as w } from "../../molecules/Availability/Availability.js";
6
- import { Pricing as v } from "../../molecules/Pricing/Pricing.js";
7
- import { AddToCart as x } from "../../molecules/AddToCart/AddToCart.js";
8
- import { Icon as L } from "../../atoms/Icon/Icon.js";
9
- import { c as I } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const P = "_productCard_10edn_1", R = "_productInformation_10edn_22", $ = "_purchaseInformation_10edn_29", A = "_addToCart_10edn_37", D = "_addToCartButton_10edn_40", j = "_partNumber_10edn_48", k = "_partNumberLabel_10edn_55", y = "_productTile_10edn_59", q = "_topRow_10edn_80", E = "_productData_10edn_111", F = "_purchase_10edn_29", G = "_attributeContainer_10edn_148", r = {
11
- productCard: P,
12
- productInformation: R,
13
- purchaseInformation: $,
14
- addToCart: A,
15
- addToCartButton: D,
16
- partNumber: j,
17
- partNumberLabel: k,
18
- productTile: y,
4
+ import { Text as o } from "../../atoms/Text/Text.js";
5
+ import { Availability as y } from "../../molecules/Availability/Availability.js";
6
+ import { Pricing as w } from "../../molecules/Pricing/Pricing.js";
7
+ import { AddToCart as v } from "../../molecules/AddToCart/AddToCart.js";
8
+ import { Icon as B } from "../../atoms/Icon/Icon.js";
9
+ import { c as x } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Product.css';const L = "_productCard_15dy7_1", P = "_productInformation_15dy7_22", R = "_purchaseInformation_15dy7_29", $ = "_addToCart_15dy7_37", A = "_addToCartButton_15dy7_40", D = "_partNumber_15dy7_48", j = "_partNumberLabel_15dy7_55", k = "_productTile_15dy7_59", q = "_topRow_15dy7_80", E = "_productData_15dy7_111", F = "_purchase_15dy7_29", G = "_attributeContainer_15dy7_148", r = {
11
+ productCard: L,
12
+ productInformation: P,
13
+ purchaseInformation: R,
14
+ addToCart: $,
15
+ addToCartButton: A,
16
+ partNumber: D,
17
+ partNumberLabel: j,
18
+ productTile: k,
19
19
  topRow: q,
20
20
  productData: E,
21
21
  purchase: F,
22
22
  attributeContainer: G
23
23
  };
24
24
  function Z({
25
- productView: z,
25
+ productView: I,
26
26
  itemKey: s,
27
- partNumber: o,
27
+ partNumber: d,
28
28
  productDescription: l,
29
29
  availDescription: m,
30
- availId: d,
30
+ availId: e,
31
31
  contactHref: u,
32
32
  contactLinkBehavior: h,
33
33
  productHref: p,
34
34
  priceLabel: _,
35
- price: n,
35
+ price: i,
36
36
  imgSrc: N,
37
37
  attributes: c,
38
38
  className: b,
39
39
  onAddToCart: f,
40
40
  onClose: C,
41
- ...B
41
+ ...z
42
42
  }) {
43
- return z === "Card" ? /* @__PURE__ */ a("div", { className: I(r.productCard, b), children: [
43
+ return I === "Card" ? /* @__PURE__ */ a("div", { className: x(r.productCard, b), children: [
44
44
  /* @__PURE__ */ t(
45
45
  T,
46
46
  {
47
47
  src: N,
48
- alt: `${o} product image`,
49
- height: 116,
50
- width: 116
48
+ alt: `${d} product image`,
49
+ height: 96,
50
+ width: 96
51
51
  }
52
52
  ),
53
53
  /* @__PURE__ */ a("div", { className: r.productInformation, children: [
54
54
  /* @__PURE__ */ t(g, { href: p, children: l }),
55
55
  /* @__PURE__ */ a("div", { className: r.partNumber, children: [
56
- /* @__PURE__ */ t(e, { size: "sm", className: r.partNumberLabel, children: "Part #" }),
57
- /* @__PURE__ */ t(e, { size: "sm", weight: "semibold", children: o })
56
+ /* @__PURE__ */ t(o, { size: "sm", className: r.partNumberLabel, children: "Part #" }),
57
+ /* @__PURE__ */ t(o, { size: "sm", weight: "semibold", children: d })
58
58
  ] })
59
59
  ] }),
60
60
  /* @__PURE__ */ a("div", { className: r.purchaseInformation, children: [
61
- d && /* @__PURE__ */ t(
62
- w,
61
+ e && /* @__PURE__ */ t(
62
+ y,
63
63
  {
64
- availId: d,
64
+ availId: e,
65
65
  availDescription: m,
66
66
  contactHref: u,
67
67
  contactLinkBehavior: h
68
68
  }
69
69
  ),
70
- n && /* @__PURE__ */ t(v, { pricingLabel: _, price: n })
70
+ i && /* @__PURE__ */ t(w, { pricingLabel: _, price: i })
71
71
  ] }),
72
72
  /* @__PURE__ */ t(
73
- x,
73
+ v,
74
74
  {
75
75
  itemKey: s,
76
76
  onAdd: f,
@@ -80,12 +80,12 @@ function Z({
80
80
  buttonDoneText: ""
81
81
  }
82
82
  )
83
- ] }) : /* @__PURE__ */ a("div", { className: I(r.productTile, b), ...B, children: [
83
+ ] }) : /* @__PURE__ */ a("div", { className: x(r.productTile, b), ...z, children: [
84
84
  /* @__PURE__ */ t(
85
85
  T,
86
86
  {
87
87
  src: N,
88
- alt: `${o} product image`,
88
+ alt: `${d} product image`,
89
89
  height: 108,
90
90
  width: 108
91
91
  }
@@ -95,34 +95,34 @@ function Z({
95
95
  /* @__PURE__ */ a("div", { className: r.productInformation, children: [
96
96
  /* @__PURE__ */ t(g, { href: p, children: l }),
97
97
  /* @__PURE__ */ a("div", { className: r.partNumber, children: [
98
- /* @__PURE__ */ t(e, { size: "sm", className: r.partNumberLabel, children: "Part #" }),
99
- /* @__PURE__ */ t(e, { size: "sm", weight: "semibold", children: o })
98
+ /* @__PURE__ */ t(o, { size: "sm", className: r.partNumberLabel, children: "Part #" }),
99
+ /* @__PURE__ */ t(o, { size: "sm", weight: "semibold", children: d })
100
100
  ] })
101
101
  ] }),
102
- C && /* @__PURE__ */ t("button", { onClick: () => C(s), children: /* @__PURE__ */ t(L, { size: "sm", iconKey: "fa-light fa-xmark" }) })
102
+ C && /* @__PURE__ */ t("button", { onClick: () => C(s), children: /* @__PURE__ */ t(B, { size: "sm", iconKey: "fa-light fa-xmark" }) })
103
103
  ] }),
104
104
  /* @__PURE__ */ a("div", { className: r.purchase, children: [
105
105
  /* @__PURE__ */ a("div", { className: r.purchaseInformation, children: [
106
- d && /* @__PURE__ */ t(
107
- w,
106
+ e && /* @__PURE__ */ t(
107
+ y,
108
108
  {
109
- availId: d,
109
+ availId: e,
110
110
  availDescription: m,
111
111
  contactHref: u,
112
112
  contactLinkBehavior: h
113
113
  }
114
114
  ),
115
- n && /* @__PURE__ */ t(v, { pricingLabel: _, price: n })
115
+ i && /* @__PURE__ */ t(w, { pricingLabel: _, price: i })
116
116
  ] }),
117
- /* @__PURE__ */ t(x, { itemKey: s, onAdd: f, className: r.addToCart, addButtonClassName: r.addToCartButton })
117
+ /* @__PURE__ */ t(v, { itemKey: s, onAdd: f, className: r.addToCart, addButtonClassName: r.addToCartButton })
118
118
  ] }),
119
- c && c.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: c.map((i) => /* @__PURE__ */ a("li", { children: [
120
- /* @__PURE__ */ a(e, { size: "xs", weight: "light", children: [
121
- i.label,
119
+ c && c.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: c.map((n) => /* @__PURE__ */ a("li", { children: [
120
+ /* @__PURE__ */ a(o, { size: "xs", weight: "light", children: [
121
+ n.label,
122
122
  ":"
123
123
  ] }),
124
- /* @__PURE__ */ t(e, { size: "xs", weight: "semibold", children: i.value })
125
- ] }, `${i.label}.${i.value}`)) })
124
+ /* @__PURE__ */ t(o, { size: "xs", weight: "semibold", children: n.value })
125
+ ] }, `${n.label}.${n.value}`)) })
126
126
  ] })
127
127
  ] });
128
128
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.96",
4
+ "version": "0.0.98",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",