@caseparts-org/caseblocks 0.0.150 → 0.0.152

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_tpx1r_3{box-sizing:border-box;background:var(--surface-surface-primary, #FFF);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_tpx1r_3._sm_tpx1r_15{width:180px;height:230px}._productCard_tpx1r_3>img{width:78px;height:78px;object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_tpx1r_3 ._productInformation_tpx1r_27{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_tpx1r_3 ._purchaseInformation_tpx1r_34{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_tpx1r_3 ._addToCart_tpx1r_42,._productCard_tpx1r_3 ._addToCartButton_tpx1r_45{width:100%}._productInformation_tpx1r_27>a{font-weight:var(--font-weight-semibold)}._partNumber_tpx1r_53{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_tpx1r_60{color:var(--text-text-quaternary)}._productTile_tpx1r_64{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_tpx1r_64>img{width:108px;height:108px;object-fit:contain}._productTile_tpx1r_64 ._topRow_tpx1r_83{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_tpx1r_64 ._topRow_tpx1r_83 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_tpx1r_64 ._topRow_tpx1r_83 path{fill:var(--icons-icon-search)}._productTile_tpx1r_64 ._topRow_tpx1r_83 svg{padding:0}._productTile_tpx1r_64 ._productInformation_tpx1r_27{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_tpx1r_64 ._productData_tpx1r_114{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_tpx1r_64 ._purchase_tpx1r_34{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_tpx1r_64 ._purchase_tpx1r_34{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_tpx1r_64 ._purchaseInformation_tpx1r_34{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_tpx1r_64 ._purchaseInformation_tpx1r_34{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_tpx1r_64 ._attributeContainer_tpx1r_151{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_tpx1r_64 ._attributeContainer_tpx1r_151{display:none}}._productTile_tpx1r_64 ._attributeContainer_tpx1r_151 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_tpx1r_64 ._addToCart_tpx1r_42{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_tpx1r_64 ._addToCart_tpx1r_42{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_tpx1r_64 ._addToCartButton_tpx1r_45{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_tpx1r_64 ._addToCartButton_tpx1r_45{width:100%}}._elevated_tpx1r_199{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_tpx1r_205 ._productInformation_tpx1r_27{margin-top:0}._sm_tpx1r_15{padding:var(--spacing-spacing-1xs)}
1
+ ._productCard_o23pg_3{box-sizing:border-box;background:var(--surface-surface-primary, #FFF);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_o23pg_3._sm_o23pg_15{width:180px;height:230px}._productCard_o23pg_3>img{width:78px;height:78px;object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_o23pg_3 ._productInformation_o23pg_27{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_o23pg_3 ._purchaseInformation_o23pg_34{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_o23pg_3 ._addToCart_o23pg_42,._productCard_o23pg_3 ._addToCartButton_o23pg_45{width:100%}._productInformation_o23pg_27>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_o23pg_55{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_o23pg_62{color:var(--text-text-quaternary)}._productTile_o23pg_66{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_o23pg_66>img{object-fit:contain}._productTile_o23pg_66 ._topRow_o23pg_85{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_o23pg_66 ._topRow_o23pg_85 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_o23pg_66 ._topRow_o23pg_85 path{fill:var(--icons-icon-search)}._productTile_o23pg_66 ._topRow_o23pg_85 svg{padding:0}._productTile_o23pg_66 ._productInformation_o23pg_27{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_o23pg_66 ._productData_o23pg_116{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_o23pg_66 ._purchase_o23pg_34{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_o23pg_66 ._purchase_o23pg_34{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_o23pg_66 ._purchaseInformation_o23pg_34{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_o23pg_66 ._purchaseInformation_o23pg_34{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_o23pg_66 ._attributeContainer_o23pg_153{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_o23pg_66 ._attributeContainer_o23pg_153{display:none}}._productTile_o23pg_66 ._attributeContainer_o23pg_153 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_o23pg_66 ._addToCart_o23pg_42{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_o23pg_66 ._addToCart_o23pg_42{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_o23pg_66 ._addToCartButton_o23pg_45{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_o23pg_66 ._addToCartButton_o23pg_45{width:100%}}._elevated_o23pg_201{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_o23pg_207 ._productInformation_o23pg_27{margin-top:0}._sm_o23pg_15{padding:var(--spacing-spacing-1xs)}
@@ -1,157 +1,160 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { Image as I } from "../../atoms/Image/Image.js";
3
- import { Link as w } from "../../atoms/Link/Link.js";
4
- import { Text as n } from "../../atoms/Text/Text.js";
5
- import { Availability as B } from "../../molecules/Availability/Availability.js";
6
- import { Pricing as L } from "../../molecules/Pricing/Pricing.js";
7
- import { AddToCart as A } from "../../molecules/AddToCart/AddToCart.js";
8
- import { Icon as D } from "../../atoms/Icon/Icon.js";
9
- import { c as R } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const P = "_productCard_tpx1r_3", j = "_sm_tpx1r_15", k = "_productInformation_tpx1r_27", z = "_purchaseInformation_tpx1r_34", y = "_addToCart_tpx1r_42", V = "_addToCartButton_tpx1r_45", q = "_partNumber_tpx1r_53", E = "_partNumberLabel_tpx1r_60", F = "_productTile_tpx1r_64", G = "_topRow_tpx1r_83", J = "_productData_tpx1r_114", M = "_purchase_tpx1r_34", O = "_attributeContainer_tpx1r_151", U = "_elevated_tpx1r_199", W = "_noImage_tpx1r_205", t = {
11
- productCard: P,
12
- sm: j,
13
- productInformation: k,
14
- purchaseInformation: z,
15
- addToCart: y,
16
- addToCartButton: V,
17
- partNumber: q,
18
- partNumberLabel: E,
19
- productTile: F,
20
- topRow: G,
21
- productData: J,
22
- purchase: M,
23
- attributeContainer: O,
24
- elevated: U,
25
- noImage: W
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import { Image as w } from "../../atoms/Image/Image.js";
3
+ import { Link as B } from "../../atoms/Link/Link.js";
4
+ import { Text as d } from "../../atoms/Text/Text.js";
5
+ import { Availability as L } from "../../molecules/Availability/Availability.js";
6
+ import { Pricing as A } from "../../molecules/Pricing/Pricing.js";
7
+ import { AddToCart as R } from "../../molecules/AddToCart/AddToCart.js";
8
+ import { Icon as P } from "../../atoms/Icon/Icon.js";
9
+ import { c as $ } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Product.css';const j = "_productCard_o23pg_3", k = "_sm_o23pg_15", y = "_productInformation_o23pg_27", V = "_purchaseInformation_o23pg_34", q = "_addToCart_o23pg_42", E = "_addToCartButton_o23pg_45", F = "_partNumber_o23pg_55", G = "_partNumberLabel_o23pg_62", J = "_productTile_o23pg_66", M = "_topRow_o23pg_85", O = "_productData_o23pg_116", U = "_purchase_o23pg_34", W = "_attributeContainer_o23pg_153", X = "_elevated_o23pg_201", Y = "_noImage_o23pg_207", t = {
11
+ productCard: j,
12
+ sm: k,
13
+ productInformation: y,
14
+ purchaseInformation: V,
15
+ addToCart: q,
16
+ addToCartButton: E,
17
+ partNumber: F,
18
+ partNumberLabel: G,
19
+ productTile: J,
20
+ topRow: M,
21
+ productData: O,
22
+ purchase: U,
23
+ attributeContainer: W,
24
+ elevated: X,
25
+ noImage: Y
26
26
  };
27
- function at({
28
- productView: $,
29
- itemKey: m,
30
- partNumber: c,
31
- productDescription: u,
32
- availDescription: _,
33
- availId: s,
34
- contactHref: h,
35
- contactLinkBehavior: x,
36
- productHref: b,
37
- priceLabel: N,
38
- price: i,
39
- imgSrc: d,
40
- attributes: l,
41
- className: f,
42
- onAddToCart: C,
43
- onClose: T,
44
- flat: g,
45
- size: o = "md",
46
- showQuantity: p = !0,
47
- ...v
27
+ function rt({
28
+ productView: D,
29
+ itemKey: i,
30
+ partNumber: n,
31
+ productDescription: _,
32
+ availDescription: h,
33
+ availId: c,
34
+ contactHref: g,
35
+ contactLinkBehavior: b,
36
+ productHref: N,
37
+ priceLabel: f,
38
+ price: s,
39
+ imgSrc: e,
40
+ attributes: p,
41
+ className: C,
42
+ onAddToCart: T,
43
+ onClose: v,
44
+ flat: I,
45
+ size: a = "md",
46
+ showQuantity: u = !0,
47
+ ...x
48
48
  }) {
49
- if ($ === "Card") {
50
- const e = o === "sm" ? "xs" : "sm";
51
- return /* @__PURE__ */ a(
52
- "div",
53
- {
54
- className: R(
55
- t.productCard,
56
- o && t[o],
57
- f,
58
- !g && t.elevated,
59
- !d && t.noImage
49
+ const m = a === "sm" ? "xs" : "sm";
50
+ return D === "Card" ? /* @__PURE__ */ r(
51
+ "div",
52
+ {
53
+ className: $(
54
+ t.productCard,
55
+ a && t[a],
56
+ C,
57
+ !I && t.elevated,
58
+ !e && t.noImage
59
+ ),
60
+ ...x,
61
+ children: [
62
+ e && /* @__PURE__ */ o(
63
+ w,
64
+ {
65
+ src: e,
66
+ alt: `${n} product image`,
67
+ height: a === "sm" ? 78 : 96,
68
+ width: a === "sm" ? 78 : 96
69
+ }
60
70
  ),
61
- ...v,
62
- children: [
63
- d && /* @__PURE__ */ r(
64
- I,
71
+ /* @__PURE__ */ r("div", { className: t.productInformation, children: [
72
+ /* @__PURE__ */ o(B, { size: a, href: N, children: _ }),
73
+ /* @__PURE__ */ r("div", { className: t.partNumber, children: [
74
+ /* @__PURE__ */ o(d, { size: m, className: t.partNumberLabel, children: "Part #" }),
75
+ /* @__PURE__ */ o(d, { size: m, weight: "semibold", children: n })
76
+ ] })
77
+ ] }),
78
+ /* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
79
+ c && /* @__PURE__ */ o(
80
+ L,
65
81
  {
66
- src: d,
67
- alt: `${c} product image`,
68
- height: o === "sm" ? 78 : 96,
69
- width: o === "sm" ? 78 : 96
82
+ availId: c,
83
+ availDescription: h,
84
+ contactHref: g,
85
+ contactLinkBehavior: b
70
86
  }
71
87
  ),
72
- /* @__PURE__ */ a("div", { className: t.productInformation, children: [
73
- /* @__PURE__ */ r(w, { size: o, href: b, children: u }),
74
- /* @__PURE__ */ a("div", { className: t.partNumber, children: [
75
- /* @__PURE__ */ r(n, { size: e, className: t.partNumberLabel, children: "Part #" }),
76
- /* @__PURE__ */ r(n, { size: e, weight: "semibold", children: c })
77
- ] })
78
- ] }),
79
- /* @__PURE__ */ a("div", { className: t.purchaseInformation, children: [
80
- s && /* @__PURE__ */ r(
81
- B,
82
- {
83
- availId: s,
84
- availDescription: _,
85
- contactHref: h,
86
- contactLinkBehavior: x
87
- }
88
- ),
89
- i && /* @__PURE__ */ r(L, { pricingLabel: N, price: i })
90
- ] }),
91
- /* @__PURE__ */ r(
92
- A,
93
- {
94
- itemKey: m,
95
- onAdd: C,
96
- className: t.addToCart,
97
- addButtonClassName: t.addToCartButton,
98
- addButtonVariant: p ? "cta-primary" : "secondary",
99
- size: o,
100
- buttonDoneText: "",
101
- buttonText: p ? "Add" : "Add to Cart",
102
- showQuantity: p
103
- }
104
- )
105
- ]
106
- }
107
- );
108
- }
109
- return /* @__PURE__ */ a("div", { className: R(t.productTile, f, !g && t.elevated, !d && t.noImage), ...v, children: [
110
- d && /* @__PURE__ */ r(
111
- I,
88
+ s && /* @__PURE__ */ o(A, { pricingLabel: f, price: s })
89
+ ] }),
90
+ /* @__PURE__ */ o(
91
+ R,
92
+ {
93
+ itemKey: i,
94
+ onAdd: T,
95
+ className: t.addToCart,
96
+ addButtonClassName: t.addToCartButton,
97
+ addButtonVariant: u ? "cta-primary" : "secondary",
98
+ size: a,
99
+ buttonDoneText: "",
100
+ buttonText: u ? "Add" : "Add to Cart",
101
+ showQuantity: u
102
+ }
103
+ )
104
+ ]
105
+ }
106
+ ) : /* @__PURE__ */ r("div", { className: $(
107
+ t.productTile,
108
+ C,
109
+ a && t[a],
110
+ !I && t.elevated,
111
+ !e && t.noImage
112
+ ), ...x, children: [
113
+ e && /* @__PURE__ */ o(
114
+ w,
112
115
  {
113
- src: d,
114
- alt: `${c} product image`,
115
- height: 108,
116
- width: 108
116
+ src: e,
117
+ alt: `${n} product image`,
118
+ height: a === "sm" ? 86 : 108,
119
+ width: a === "sm" ? 86 : 108
117
120
  }
118
121
  ),
119
- /* @__PURE__ */ a("div", { className: t.productData, children: [
120
- /* @__PURE__ */ a("div", { className: t.topRow, children: [
121
- /* @__PURE__ */ a("div", { className: t.productInformation, children: [
122
- /* @__PURE__ */ r(w, { href: b, children: u }),
123
- /* @__PURE__ */ a("div", { className: t.partNumber, children: [
124
- /* @__PURE__ */ r(n, { size: "sm", className: t.partNumberLabel, children: "Part #" }),
125
- /* @__PURE__ */ r(n, { size: "sm", weight: "semibold", children: c })
122
+ /* @__PURE__ */ r("div", { className: t.productData, children: [
123
+ /* @__PURE__ */ r("div", { className: t.topRow, children: [
124
+ /* @__PURE__ */ r("div", { className: t.productInformation, children: [
125
+ /* @__PURE__ */ o(B, { size: a, href: N, children: _ }),
126
+ /* @__PURE__ */ r("div", { className: t.partNumber, children: [
127
+ /* @__PURE__ */ o(d, { size: m, className: t.partNumberLabel, children: "Part #" }),
128
+ /* @__PURE__ */ o(d, { size: m, weight: "semibold", children: n })
126
129
  ] })
127
130
  ] }),
128
- T && /* @__PURE__ */ r("button", { onClick: () => T(m), children: /* @__PURE__ */ r(D, { size: "sm", iconKey: "fa-light fa-xmark" }) })
131
+ v && /* @__PURE__ */ o("button", { onClick: () => v(i), children: /* @__PURE__ */ o(P, { size: "sm", iconKey: "fa-light fa-xmark" }) })
129
132
  ] }),
130
- /* @__PURE__ */ a("div", { className: t.purchase, children: [
131
- /* @__PURE__ */ a("div", { className: t.purchaseInformation, children: [
132
- s && /* @__PURE__ */ r(
133
- B,
133
+ /* @__PURE__ */ r("div", { className: t.purchase, children: [
134
+ /* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
135
+ c && /* @__PURE__ */ o(
136
+ L,
134
137
  {
135
- availId: s,
136
- availDescription: _,
137
- contactHref: h,
138
- contactLinkBehavior: x
138
+ availId: c,
139
+ availDescription: h,
140
+ contactHref: g,
141
+ contactLinkBehavior: b
139
142
  }
140
143
  ),
141
- i && /* @__PURE__ */ r(L, { pricingLabel: N, price: i })
144
+ s && /* @__PURE__ */ o(A, { pricingLabel: f, price: s })
142
145
  ] }),
143
- /* @__PURE__ */ r(A, { itemKey: m, onAdd: C, className: t.addToCart, addButtonClassName: t.addToCartButton })
146
+ /* @__PURE__ */ o(R, { size: a, itemKey: i, onAdd: T, className: t.addToCart, addButtonClassName: t.addToCartButton })
144
147
  ] }),
145
- l && l.length > 0 && /* @__PURE__ */ r("ul", { className: t.attributeContainer, children: l.map((e) => /* @__PURE__ */ a("li", { children: [
146
- /* @__PURE__ */ a(n, { size: "xs", weight: "light", children: [
147
- e.label,
148
+ p && p.length > 0 && /* @__PURE__ */ o("ul", { className: t.attributeContainer, children: p.map((l) => /* @__PURE__ */ r("li", { children: [
149
+ /* @__PURE__ */ r(d, { size: "xs", weight: "light", children: [
150
+ l.label,
148
151
  ":"
149
152
  ] }),
150
- /* @__PURE__ */ r(n, { size: "xs", weight: "semibold", children: e.value })
151
- ] }, `${e.label}.${e.value}`)) })
153
+ /* @__PURE__ */ o(d, { size: "xs", weight: "semibold", children: l.value })
154
+ ] }, `${l.label}.${l.value}`)) })
152
155
  ] })
153
156
  ] });
154
157
  }
155
158
  export {
156
- at as Product
159
+ rt as Product
157
160
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.150",
4
+ "version": "0.0.152",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",