@caseparts-org/caseblocks 0.0.251 → 0.0.253
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/Cart.module-CV0POv9_.js +25 -0
- package/dist/{Table-f_q_CCA-.js → Table-_UT9976g.js} +63 -63
- package/dist/assets/Availability.css +1 -1
- package/dist/assets/Cart.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/atoms/Icon/Icon.d.ts +3 -2
- package/dist/atoms/Icon/Icon.js +33 -29
- package/dist/atoms/Icon/Icon.stories.d.ts +5 -0
- package/dist/atoms/Icon/Icon.stories.js +15 -11
- package/dist/main-client.js +1 -1
- package/dist/molecules/Availability/Availability.d.ts +6 -0
- package/dist/molecules/Availability/Availability.js +109 -57
- package/dist/molecules/Availability/Availability.stories.d.ts +4 -0
- package/dist/molecules/Availability/Availability.stories.js +33 -17
- package/dist/molecules/Cart/Cart.js +1 -1
- package/dist/molecules/Cart/CartPart.js +1 -1
- package/dist/molecules/Cart/CartSlideInPanel.js +8 -8
- package/dist/molecules/Modal/Modal.d.ts +1 -0
- package/dist/molecules/Modal/Modal.js +56 -44
- package/dist/molecules/Modal/Modal.stories.d.ts +1 -1
- package/dist/molecules/Modal/Modal.stories.js +50 -52
- package/dist/molecules/Table/Table.js +1 -1
- package/dist/molecules/Table/Table.stories.js +1 -1
- package/package.json +1 -1
- package/dist/Cart.module-CqE2A_OG.js +0 -25
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import './assets/Cart.css';const t = "_cartIconButton_bce5j_2", e = "_count_bce5j_15", o = "_cartContainer_bce5j_30", c = "_headerWrapper_bce5j_41", n = "_header_bce5j_41", _ = "_cartItems_bce5j_59", a = "_cartItem_bce5j_59", r = "_topRow_bce5j_85", s = "_itemInfo_bce5j_92", i = "_editUnit_bce5j_97", m = "_purchaseInformation_bce5j_113", b = "_availabilitySlot_bce5j_119", I = "_priceSlot_bce5j_122", u = "_itemManagement_bce5j_125", j = "_quantitySlot_bce5j_131", l = "_itemImage_bce5j_141", p = "_removeItem_bce5j_144", h = "_noItems_bce5j_154", d = "_subtotal_bce5j_161", S = "_checkoutButton_bce5j_168", y = {
|
|
2
|
+
cartIconButton: t,
|
|
3
|
+
count: e,
|
|
4
|
+
cartContainer: o,
|
|
5
|
+
headerWrapper: c,
|
|
6
|
+
header: n,
|
|
7
|
+
cartItems: _,
|
|
8
|
+
cartItem: a,
|
|
9
|
+
topRow: r,
|
|
10
|
+
itemInfo: s,
|
|
11
|
+
editUnit: i,
|
|
12
|
+
purchaseInformation: m,
|
|
13
|
+
availabilitySlot: b,
|
|
14
|
+
priceSlot: I,
|
|
15
|
+
itemManagement: u,
|
|
16
|
+
quantitySlot: j,
|
|
17
|
+
itemImage: l,
|
|
18
|
+
removeItem: p,
|
|
19
|
+
noItems: h,
|
|
20
|
+
subtotal: d,
|
|
21
|
+
checkoutButton: S
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
y as s
|
|
25
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as c, jsxs as V } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
3
|
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
4
4
|
import { getHideAtStyles as E } from "./atoms/HideAt.js";
|
|
5
5
|
import { Icon as ee } from "./atoms/Icon/Icon.js";
|
|
6
|
-
import './assets/Table.css';const ne = "
|
|
7
|
-
"table-container": "_table-
|
|
6
|
+
import './assets/Table.css';const ne = "_bordered_1cc0a_8", te = "_table_1cc0a_2", le = "_columnContent_1cc0a_40", ae = "_columnLabel_1cc0a_49", ce = "_clickableHeader_1cc0a_69", oe = "_columnsRow_1cc0a_76", se = "_noPaddingRow_1cc0a_127", de = "_clickableRow_1cc0a_138", re = "_clickableCell_1cc0a_139", ie = "_expandedContentCell_1cc0a_141", me = "_expandedContentRow_1cc0a_150", ue = "_expandedRow_1cc0a_155", pe = "_expanded_1cc0a_141", n = {
|
|
7
|
+
"table-container": "_table-container_1cc0a_2",
|
|
8
8
|
bordered: ne,
|
|
9
9
|
table: te,
|
|
10
|
-
"table-alternating": "_table-
|
|
10
|
+
"table-alternating": "_table-alternating_1cc0a_22",
|
|
11
11
|
columnContent: le,
|
|
12
|
-
columnLabel:
|
|
13
|
-
"sorted-column": "_sorted-
|
|
14
|
-
clickableHeader:
|
|
15
|
-
"icon-ascending": "_icon-
|
|
16
|
-
columnsRow:
|
|
12
|
+
columnLabel: ae,
|
|
13
|
+
"sorted-column": "_sorted-column_1cc0a_58",
|
|
14
|
+
clickableHeader: ce,
|
|
15
|
+
"icon-ascending": "_icon-ascending_1cc0a_70",
|
|
16
|
+
columnsRow: oe,
|
|
17
17
|
noPaddingRow: se,
|
|
18
18
|
clickableRow: de,
|
|
19
|
-
clickableCell:
|
|
20
|
-
expandedContentCell:
|
|
19
|
+
clickableCell: re,
|
|
20
|
+
expandedContentCell: ie,
|
|
21
21
|
expandedContentRow: me,
|
|
22
22
|
expandedRow: ue,
|
|
23
23
|
expanded: pe
|
|
@@ -31,45 +31,45 @@ const O = ({ children: u }) => null;
|
|
|
31
31
|
O.displayName = "Table.Row";
|
|
32
32
|
const z = ({ children: u }) => null;
|
|
33
33
|
z.displayName = "Table.Cell";
|
|
34
|
-
const
|
|
34
|
+
const f = ({ children: u, className: D, alternatingRows: q = !1, bordered: G = !0, isSortable: H = !1, sortField: J, sortFieldKey: Q, sortOrder: U = "descending", onSort: F, hideAt: W, ...X }) => {
|
|
35
35
|
const B = [];
|
|
36
36
|
let p, g;
|
|
37
|
-
const
|
|
37
|
+
const i = (t, l) => {
|
|
38
38
|
var e;
|
|
39
|
-
return !!t &&
|
|
40
|
-
}, Y = p ?
|
|
41
|
-
(t) =>
|
|
39
|
+
return !!t && o.isValidElement(t) && ((e = t.type) == null ? void 0 : e.displayName) === l;
|
|
40
|
+
}, Y = p ? o.Children.toArray(p.props.children).map(
|
|
41
|
+
(t) => i(t, "Table.Column") ? t.props.hideAt : void 0
|
|
42
42
|
) : [];
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
o.Children.forEach(u, (t) => {
|
|
44
|
+
i(t, "Table.Columns") ? p = t : i(t, "Table.Body") ? g = t : B.push(t);
|
|
45
45
|
});
|
|
46
46
|
const v = (t) => t.flatMap((l) => {
|
|
47
|
-
if (
|
|
47
|
+
if (o.isValidElement(l) && l.type === o.Fragment) {
|
|
48
48
|
const e = l.props.children;
|
|
49
|
-
return
|
|
49
|
+
return o.Children.toArray(e);
|
|
50
50
|
}
|
|
51
51
|
return [l];
|
|
52
52
|
}), Z = () => {
|
|
53
53
|
if (!p) return null;
|
|
54
|
-
const t =
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
if (
|
|
54
|
+
const t = o.Children.toArray(p.props.children);
|
|
55
|
+
return /* @__PURE__ */ c("thead", { className: n.thead, children: /* @__PURE__ */ c("tr", { ...p.props, className: n.columnsRow, children: t.map((l, e) => {
|
|
56
|
+
if (i(l, "Table.Column")) {
|
|
57
57
|
const d = l, {
|
|
58
|
-
children:
|
|
59
|
-
align:
|
|
58
|
+
children: a,
|
|
59
|
+
align: r,
|
|
60
60
|
colSpan: C,
|
|
61
|
-
width:
|
|
61
|
+
width: x,
|
|
62
62
|
style: k,
|
|
63
63
|
sortField: y,
|
|
64
64
|
sortFieldKey: s,
|
|
65
65
|
hideAt: b,
|
|
66
66
|
...T
|
|
67
67
|
} = d.props, w = {
|
|
68
|
-
textAlign:
|
|
69
|
-
width:
|
|
68
|
+
textAlign: r ?? "left",
|
|
69
|
+
width: x,
|
|
70
70
|
...k
|
|
71
|
-
}, A =
|
|
72
|
-
return /* @__PURE__ */
|
|
71
|
+
}, A = r === "right" ? "flex-end" : r === "center" ? "center" : "flex-start", h = !!y, N = H && h && (h && J === y) && (s !== void 0 ? Q === s : !0), _ = H && h && typeof F == "function";
|
|
72
|
+
return /* @__PURE__ */ c(
|
|
73
73
|
"th",
|
|
74
74
|
{
|
|
75
75
|
className: m(n.th, N && n["sorted-column"], _ && n.clickableHeader, E(b)),
|
|
@@ -78,18 +78,18 @@ const x = ({ children: u, className: D, alternatingRows: q = !1, bordered: G = !
|
|
|
78
78
|
onClick: _ ? () => F(y, s) : void 0,
|
|
79
79
|
...T,
|
|
80
80
|
children: /* @__PURE__ */ V("div", { className: n.columnContent, style: { justifyContent: A }, children: [
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
N && /* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ c("span", { className: n.columnLabel, children: a }),
|
|
82
|
+
N && /* @__PURE__ */ c("span", { className: m(U === "ascending" && n["icon-ascending"]), children: /* @__PURE__ */ c(ee, { iconKey: "fa-solid fa-chevron-down", size: "3xs" }) })
|
|
83
83
|
] })
|
|
84
84
|
},
|
|
85
85
|
e
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ c("th", { className: n.th, children: l }, e);
|
|
89
89
|
}) }) });
|
|
90
|
-
},
|
|
91
|
-
const d =
|
|
92
|
-
if (
|
|
90
|
+
}, R = (t, l, e) => {
|
|
91
|
+
const d = o.Children.toArray(t).map((s, b) => {
|
|
92
|
+
if (i(s, "Table.Cell")) {
|
|
93
93
|
const T = s, {
|
|
94
94
|
children: w,
|
|
95
95
|
align: A,
|
|
@@ -103,7 +103,7 @@ const x = ({ children: u, className: D, alternatingRows: q = !1, bordered: G = !
|
|
|
103
103
|
width: S,
|
|
104
104
|
...K
|
|
105
105
|
}, P = !!(_ && typeof _.onClick == "function");
|
|
106
|
-
return /* @__PURE__ */
|
|
106
|
+
return /* @__PURE__ */ c(
|
|
107
107
|
"td",
|
|
108
108
|
{
|
|
109
109
|
className: m(
|
|
@@ -121,7 +121,7 @@ const x = ({ children: u, className: D, alternatingRows: q = !1, bordered: G = !
|
|
|
121
121
|
b
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
return
|
|
124
|
+
return o.isValidElement(s) && typeof s.type == "string" && s.type === "td" ? s : /* @__PURE__ */ c(
|
|
125
125
|
"td",
|
|
126
126
|
{
|
|
127
127
|
className: m(
|
|
@@ -133,19 +133,19 @@ const x = ({ children: u, className: D, alternatingRows: q = !1, bordered: G = !
|
|
|
133
133
|
},
|
|
134
134
|
b
|
|
135
135
|
);
|
|
136
|
-
}), { className:
|
|
137
|
-
return /* @__PURE__ */
|
|
136
|
+
}), { className: a, style: r, isExpanded: C, isExpandedContent: x, ...k } = e ?? {}, y = !!(e && typeof e.onClick == "function");
|
|
137
|
+
return /* @__PURE__ */ c(
|
|
138
138
|
"tr",
|
|
139
139
|
{
|
|
140
140
|
className: m(
|
|
141
141
|
n.row,
|
|
142
|
-
|
|
142
|
+
a,
|
|
143
143
|
C && n.expandedRow,
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
x && n.noPaddingRow,
|
|
145
|
+
x && n.expandedContentRow,
|
|
146
146
|
y && n.clickableRow
|
|
147
147
|
),
|
|
148
|
-
style:
|
|
148
|
+
style: r,
|
|
149
149
|
...k,
|
|
150
150
|
children: d
|
|
151
151
|
},
|
|
@@ -153,35 +153,35 @@ const x = ({ children: u, className: D, alternatingRows: q = !1, bordered: G = !
|
|
|
153
153
|
);
|
|
154
154
|
}, $ = () => {
|
|
155
155
|
if (g) {
|
|
156
|
-
const d = v(
|
|
157
|
-
if (
|
|
158
|
-
const C =
|
|
159
|
-
return
|
|
156
|
+
const d = v(o.Children.toArray(g.props.children)).map((a, r) => {
|
|
157
|
+
if (i(a, "Table.Row")) {
|
|
158
|
+
const C = a;
|
|
159
|
+
return R(C.props.children, r, C.props);
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return o.isValidElement(a) && typeof a.type == "string" && a.type === "tr" ? a : R(a, r);
|
|
162
162
|
});
|
|
163
|
-
return /* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ c("tbody", { className: n.tbody, children: d });
|
|
164
164
|
}
|
|
165
165
|
const l = v(B).map((e, d) => {
|
|
166
|
-
if (
|
|
167
|
-
const
|
|
168
|
-
return
|
|
166
|
+
if (i(e, "Table.Row")) {
|
|
167
|
+
const a = e;
|
|
168
|
+
return R(a.props.children, d, a.props);
|
|
169
169
|
}
|
|
170
|
-
return
|
|
170
|
+
return o.isValidElement(e) && typeof e.type == "string" && e.type === "tr" ? e : R(e, d);
|
|
171
171
|
});
|
|
172
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ c("tbody", { className: n.tbody, children: l });
|
|
173
173
|
};
|
|
174
|
-
return /* @__PURE__ */
|
|
174
|
+
return /* @__PURE__ */ c("div", { className: m(n["table-container"], G && n.bordered), children: /* @__PURE__ */ V("table", { className: m(n.table, D, q && n["table-alternating"], E(W)), ...X, children: [
|
|
175
175
|
Z(),
|
|
176
176
|
$()
|
|
177
177
|
] }) });
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
f.Columns = L;
|
|
180
|
+
f.Column = j;
|
|
181
|
+
f.Body = M;
|
|
182
|
+
f.Row = O;
|
|
183
|
+
f.Cell = z;
|
|
184
184
|
export {
|
|
185
|
-
|
|
185
|
+
f as T,
|
|
186
186
|
n as s
|
|
187
187
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._availability_4sun9_1{font-style:italic;display:flex;align-items:center;gap:var(--spacing-spacing-4xs)}._pointer_4sun9_8{cursor:pointer}._tooltip_4sun9_12{font-family:var(--font-family-body),sans-serif;background-color:var(--surface-surface-primary);border:1px solid var(--color-border-primary);border-radius:var(--border-radius-md);box-shadow:0 .5rem 1.25rem #00000026}._tooltipContent_4sun9_20{width:308px}._tooltipHeader_4sun9_24{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--spacing-spacing-2xs);padding:var(--spacing-spacing-default);border-bottom:1px solid #dfdfdf}._tooltipInfo_4sun9_33{padding:var(--spacing-spacing-default);display:block}._tooltipTitle_4sun9_38{display:grid}._tooltipHeaderIcon_4sun9_42{position:relative;display:grid;width:32px;height:32px;place-items:center;color:var(--color-alerts-success);background-color:var(--color-alerts-light-green);border-radius:50%}._tooltipHeaderAlert_4sun9_53{position:absolute;top:-2px;right:-2px;display:grid;width:12px;height:12px;place-items:center;color:var(--color-brand-primary-white);background-color:var(--color-alerts-warning);border:1px solid var(--surface-surface-primary);border-radius:50%}._warehouseList_4sun9_67{padding:0;margin:0;border-top:1px solid var(--color-border-primary)}._warehouseList_4sun9_67 li{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-spacing-1xs) var(--spacing-spacing-default);list-style:none;border-bottom:1px solid var(--color-border-primary)}._warehouseName_4sun9_82{display:flex;align-items:center;gap:var(--spacing-spacing-2xs)}._warehouseName_4sun9_82 svg{color:var(--text-text-links)}._fulfillmentNotice_4sun9_93{box-sizing:border-box;margin-top:var(--spacing-spacing-default)}._available_4sun9_98,._in-stock_4sun9_98{color:var(--color-alerts-success)}._limited_4sun9_101{color:var(--color-alerts-warning)}._discontinued_4sun9_104{color:var(--color-alerts-error-warning)}
|
package/dist/assets/Cart.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cartIconButton_bce5j_2{position:relative;border:none;padding:0;margin:0;background-color:transparent;cursor:pointer;color:#000;transition:color .3s ease,transform .3s ease}._cartIconButton_bce5j_2:hover{color:var(--color-brand-primary-primary-teal-blue)}._count_bce5j_15{position:absolute;top:0;left:14px;border-radius:50%;width:18px;height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:var(--color-brand-primary-primary-tangerine);color:var(--color-neutrals-neutral-1);font-weight:var(--font-weight-semibold)}._cartContainer_bce5j_30{height:100vh;width:100%;min-width:320px;max-width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:var(--spacing-1);padding:var(--spacing-1)}._headerWrapper_bce5j_41{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_bce5j_41>button{padding:0;margin:0;background-color:transparent;border:none}._header_bce5j_41{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_bce5j_59{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_bce5j_59 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_bce5j_59{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--spacing-0-5);align-items:start;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-0-5);width:100%;border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-md)}._topRow_bce5j_85{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-spacing-4xs)}._itemInfo_bce5j_92{display:flex;flex-direction:column;align-items:flex-start}._editUnit_bce5j_97{display:flex;align-items:center;text-align:start;gap:var(--spacing-spacing-3xs);border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;color:var(--text-text-links);word-wrap:break-word;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold)}._purchaseInformation_bce5j_113{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;width:100%}._availabilitySlot_bce5j_119{min-width:0}._priceSlot_bce5j_122{justify-self:end}._itemManagement_bce5j_125{display:flex;flex-direction:column;align-items:stretch;gap:var(--spacing-spacing-3xs)}._quantitySlot_bce5j_131{align-self:flex-end}._cartItem_bce5j_59 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_bce5j_141{object-fit:contain}._removeItem_bce5j_144{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._noItems_bce5j_154{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_bce5j_161{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_bce5j_168{width:100%;height:fit-content;display:inline-flex;gap:var(--spacing-spacing-2xs)}
|
package/dist/assets/Icon.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._icon-
|
|
1
|
+
._icon-3xs_1hfg4_1{--icon-size: var(--font-size-xxs);--icon-padding: calc(var(--font-size-xxs) / 4)}._icon-2xs_1hfg4_5{--icon-size: var(--font-size-xs);--icon-padding: calc(var(--font-size-xs) / 4)}._icon-xs_1hfg4_9{--icon-size: var(--font-size-sm);--icon-padding: calc(var(--font-size-sm) / 4)}._icon-sm_1hfg4_13{--icon-size: var(--font-size-md);--icon-padding: calc(var(--font-size-md) / 4)}._icon-md_1hfg4_17{--icon-size: var(--font-size-2xl);--icon-padding: calc(var(--font-size-md) / 4)}._icon-lg_1hfg4_21{--icon-size: var(--font-size-3xl);--icon-padding: calc(var(--font-size-lg) / 4)}._wrapper_1hfg4_27{display:inline-flex;box-sizing:border-box;width:calc(var(--icon-size) + (var(--icon-padding) * 2));height:calc(var(--icon-size) + (var(--icon-padding) * 2));aspect-ratio:1 / 1;align-items:center;justify-content:center;line-height:1;padding:var(--icon-padding)}._noPadding_1hfg4_39{--icon-padding: 0rem}._wrapper_1hfg4_27>i,._wrapper_1hfg4_27>svg{font-size:var(--icon-size);width:100%;height:100%;max-width:100%;max-height:100%}._iconColor-inherit_1hfg4_54{color:inherit}._iconColor-default_1hfg4_55{color:var(--icons-icon-default)}._iconColor-default-inverted_1hfg4_56{color:var(--icons-icon-invert)}._iconColor-secondary_1hfg4_57{color:var(--icons-icon-secondary)}._iconColor-caution_1hfg4_58{color:var(--icons-icon-caution-tips)}._iconColor-warning_1hfg4_59{color:var(--icons-icon-warning)}._iconColor-error-warning_1hfg4_60{color:var(--icons-icon-error-warning)}._iconColor-success_1hfg4_61{color:var(--icons-icon-success)}
|
package/dist/assets/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._overlay_1imlv_1{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000}._container_1imlv_11{display:flex;flex-direction:column;overflow:hidden;background-color:var(--surface-surface-primary);color:var(--text-text-primary);border-radius:var(--border-radius-sm);box-shadow:0 4px 6px #0000001a;width:min(var(--modal-width, 800px),92vw);max-height:80vh}@media (max-width:767px){._container_1imlv_11{border-radius:0;width:100%;box-shadow:none;height:100dvh;max-height:100dvh}}._toolbar_1imlv_30{position:sticky;top:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;background-color:var(--surface-surface-secondary);border-bottom:1px solid var(--border-border-secondary-btn);padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);gap:var(--spacing-spacing-2xs);z-index:1}@media (max-width:767px){._toolbar_1imlv_30{padding:var(--spacing-spacing-2xs)}}._toolbarPlain_1imlv_47{background-color:transparent;border-bottom:none}._headerGroup_1imlv_52{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-2xs);flex:1 1 0}._headerLeft_1imlv_60{justify-content:flex-start}._headerRight_1imlv_64{justify-content:flex-end}._closeButton_1imlv_68{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;border-radius:var(--radius-radius-md);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:background-color .2s ease-in}._closeButton_1imlv_68:hover{background-color:var(--color-neutrals-neutral-2)}._content_1imlv_87{overflow:auto;padding:var(--spacing-spacing-default)}@media (max-width:767px){._content_1imlv_87{padding:var(--spacing-spacing-2xs)}}
|
package/dist/assets/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._table-
|
|
1
|
+
._table-container_1cc0a_2{overflow-x:hidden;width:100%}._bordered_1cc0a_8{border:1px solid var(--border-border-primary)}._table_1cc0a_2{min-width:100%;max-width:1056px;width:max-content;border-collapse:collapse;table-layout:fixed}._table-alternating_1cc0a_22 tr:nth-child(2n){background-color:#f0f0f0}._table_1cc0a_2 th,._table_1cc0a_2 td{max-width:clamp(72px,10vw,180px);min-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._columnContent_1cc0a_40{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);width:100%;min-width:0}._columnLabel_1cc0a_49{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._sorted-column_1cc0a_58 svg,._sorted-column_1cc0a_58 i{height:8px;width:8px;transition:transform .3s ease-in-out;vertical-align:middle;padding:0;margin:0 0 0 4px}._table_1cc0a_2 th._clickableHeader_1cc0a_69{cursor:pointer}._icon-ascending_1cc0a_70 svg,._icon-ascending_1cc0a_70 i{transform:rotate(180deg)}._columnsRow_1cc0a_76{background-color:var(--surface-surface-secondary)}._table_1cc0a_2 th{border-bottom:1px solid var(--border-border-primary);cursor:auto;transition:background-color .2s ease-in}._table_1cc0a_2 th:hover{background-color:#f0f0f0}._sorted-column_1cc0a_58{text-align:start;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--text-text-quaternary);row-gap:4px}._table_1cc0a_2 th:not(._sorted-column_1cc0a_58){text-align:start;font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);color:var(--text-text-quaternary)}._table_1cc0a_2 th:last-of-type,._table_1cc0a_2 td:last-of-type{text-align:end;padding-right:.5rem}._table_1cc0a_2 th:first-of-type,._table_1cc0a_2 td:first-of-type{text-align:start;padding:.45rem .5rem}._table_1cc0a_2 th:not(:first-of-type):not(:last-of-type),._table_1cc0a_2 td:not(:first-of-type):not(:last-of-type){padding:.45rem .5rem}._noPaddingRow_1cc0a_127 td{padding:0!important}._table_1cc0a_2 td{text-align:start;cursor:auto}._table_1cc0a_2 ._clickableRow_1cc0a_138 td,._table_1cc0a_2 td._clickableCell_1cc0a_139{cursor:pointer}._table_1cc0a_2 td:not(._expandedContentCell_1cc0a_141){border-bottom:1px solid var(--border-border-primary)}._table_1cc0a_2>tbody tr{transition:background-color .2s linear}._table_1cc0a_2>tbody tr:not(._expandedContentRow_1cc0a_150):hover{background-color:var(--color-neutrals-neutral-1)}._expandedRow_1cc0a_155 td:first-of-type{border-left:1px solid var(--border-border-black-box)}._expandedRow_1cc0a_155 td:last-of-type{border-right:1px solid var(--border-border-black-box)}._expanded_1cc0a_141{border-top:4px solid var(--color-brand-primary-primary-teal-blue)}._expandedContentCell_1cc0a_141{border-left:1px solid var(--border-border-black-box);border-right:1px solid var(--border-border-black-box);border-bottom:1px solid var(--border-border-black-box);border-top:0}._expandedContentRow_1cc0a_150{background-color:transparent}._new-column_1cc0a_182{animation:_highlight_1cc0a_1 2s ease-in-out}@keyframes _highlight_1cc0a_1{0%{background-color:#ff0}to{background-color:transparent}}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HideAtProps } from '../HideAt';
|
|
2
2
|
export type IconSet = "fa-kit" | "fa-solid" | "fa-regular" | "fa-light" | "fa-thin" | "fa-brands";
|
|
3
3
|
export type IconVariant = "fa-sharp" | "fa-duotone" | "fa-sharp-duotone";
|
|
4
|
-
export type IconColorToken = "inherit" | "default" | "default-inverted" | "secondary" | "warning" | "error-warning" | "success";
|
|
4
|
+
export type IconColorToken = "inherit" | "default" | "default-inverted" | "secondary" | "caution" | "warning" | "error-warning" | "success";
|
|
5
5
|
export interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, HideAtProps {
|
|
6
6
|
iconKey: `${IconSet} ${string}` | `${IconVariant} ${IconSet} ${string}`;
|
|
7
7
|
size?: "3xs" | "2xs" | "xs" | "sm" | "md" | "lg";
|
|
8
8
|
colorToken?: IconColorToken;
|
|
9
|
+
noPadding?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare function Icon({ iconKey, size, hideAt, className, colorToken, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Icon({ iconKey, size, hideAt, className, colorToken, noPadding, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/atoms/Icon/Icon.js
CHANGED
|
@@ -1,45 +1,49 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { getHideAtStyles as
|
|
4
|
-
import '../../assets/Icon.css';const
|
|
5
|
-
"icon-3xs": "_icon-
|
|
6
|
-
"icon-2xs": "_icon-
|
|
7
|
-
"icon-xs": "_icon-
|
|
8
|
-
"icon-sm": "_icon-
|
|
9
|
-
"icon-md": "_icon-
|
|
10
|
-
"icon-lg": "_icon-
|
|
11
|
-
wrapper:
|
|
12
|
-
|
|
13
|
-
"iconColor-
|
|
14
|
-
"iconColor-default
|
|
15
|
-
"iconColor-
|
|
16
|
-
"iconColor-
|
|
17
|
-
"iconColor-
|
|
18
|
-
"iconColor-
|
|
2
|
+
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { getHideAtStyles as g } from "../HideAt.js";
|
|
4
|
+
import '../../assets/Icon.css';const f = "_wrapper_1hfg4_27", t = "_noPadding_1hfg4_39", o = {
|
|
5
|
+
"icon-3xs": "_icon-3xs_1hfg4_1",
|
|
6
|
+
"icon-2xs": "_icon-2xs_1hfg4_5",
|
|
7
|
+
"icon-xs": "_icon-xs_1hfg4_9",
|
|
8
|
+
"icon-sm": "_icon-sm_1hfg4_13",
|
|
9
|
+
"icon-md": "_icon-md_1hfg4_17",
|
|
10
|
+
"icon-lg": "_icon-lg_1hfg4_21",
|
|
11
|
+
wrapper: f,
|
|
12
|
+
noPadding: t,
|
|
13
|
+
"iconColor-inherit": "_iconColor-inherit_1hfg4_54",
|
|
14
|
+
"iconColor-default": "_iconColor-default_1hfg4_55",
|
|
15
|
+
"iconColor-default-inverted": "_iconColor-default-inverted_1hfg4_56",
|
|
16
|
+
"iconColor-secondary": "_iconColor-secondary_1hfg4_57",
|
|
17
|
+
"iconColor-caution": "_iconColor-caution_1hfg4_58",
|
|
18
|
+
"iconColor-warning": "_iconColor-warning_1hfg4_59",
|
|
19
|
+
"iconColor-error-warning": "_iconColor-error-warning_1hfg4_60",
|
|
20
|
+
"iconColor-success": "_iconColor-success_1hfg4_61"
|
|
19
21
|
};
|
|
20
|
-
function
|
|
21
|
-
iconKey:
|
|
22
|
+
function m({
|
|
23
|
+
iconKey: r,
|
|
22
24
|
size: c = "md",
|
|
23
25
|
hideAt: _,
|
|
24
|
-
className:
|
|
25
|
-
colorToken:
|
|
26
|
-
|
|
26
|
+
className: e,
|
|
27
|
+
colorToken: s = "inherit",
|
|
28
|
+
noPadding: l = !1,
|
|
29
|
+
...a
|
|
27
30
|
}) {
|
|
28
31
|
return /* @__PURE__ */ n(
|
|
29
32
|
"span",
|
|
30
33
|
{
|
|
31
|
-
className:
|
|
34
|
+
className: i(
|
|
32
35
|
o.wrapper,
|
|
33
36
|
o[`icon-${c}`],
|
|
34
|
-
o[`iconColor-${
|
|
35
|
-
l
|
|
36
|
-
|
|
37
|
+
o[`iconColor-${s}`],
|
|
38
|
+
l && o.noPadding,
|
|
39
|
+
g(_),
|
|
40
|
+
e
|
|
37
41
|
),
|
|
38
|
-
...
|
|
39
|
-
children: /* @__PURE__ */ n("i", { className: r
|
|
42
|
+
...a,
|
|
43
|
+
children: /* @__PURE__ */ n("i", { className: i(r), "aria-hidden": "true" })
|
|
40
44
|
}
|
|
41
45
|
);
|
|
42
46
|
}
|
|
43
47
|
export {
|
|
44
|
-
|
|
48
|
+
m as Icon
|
|
45
49
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as c, createElement as s } from "react";
|
|
3
3
|
import { Icon as l } from "./Icon.js";
|
|
4
4
|
const d = [
|
|
5
5
|
"fa-kit fa-chat",
|
|
@@ -25,7 +25,10 @@ const d = [
|
|
|
25
25
|
colorToken: {
|
|
26
26
|
name: "color",
|
|
27
27
|
control: { type: "select" },
|
|
28
|
-
options: ["inherit", "default", "default-inverted", "secondary", "warning", "error-warning", "success"]
|
|
28
|
+
options: ["inherit", "default", "default-inverted", "secondary", "caution", "warning", "error-warning", "success"]
|
|
29
|
+
},
|
|
30
|
+
noPadding: {
|
|
31
|
+
control: { type: "boolean" }
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
args: {
|
|
@@ -36,14 +39,14 @@ const d = [
|
|
|
36
39
|
}
|
|
37
40
|
}, a = (e) => {
|
|
38
41
|
const { iconKey: t } = e;
|
|
39
|
-
return
|
|
40
|
-
var o,
|
|
42
|
+
return c(() => {
|
|
43
|
+
var o, r, i;
|
|
41
44
|
try {
|
|
42
|
-
(i = (
|
|
45
|
+
(i = (r = (o = window == null ? void 0 : window.FontAwesome) == null ? void 0 : o.dom) == null ? void 0 : r.i2svg) == null || i.call(r);
|
|
43
46
|
} catch {
|
|
44
47
|
console.log();
|
|
45
48
|
}
|
|
46
|
-
}, [t]), /* @__PURE__ */
|
|
49
|
+
}, [t]), /* @__PURE__ */ n("div", { style: { backgroundColor: e.colorToken === "default-inverted" ? "#444" : "white" }, children: /* @__PURE__ */ s(
|
|
47
50
|
l,
|
|
48
51
|
{
|
|
49
52
|
...e,
|
|
@@ -51,19 +54,20 @@ const d = [
|
|
|
51
54
|
}
|
|
52
55
|
) });
|
|
53
56
|
}, y = {
|
|
54
|
-
render: (e) => /* @__PURE__ */
|
|
57
|
+
render: (e) => /* @__PURE__ */ n(a, { ...e })
|
|
55
58
|
}, g = {
|
|
56
|
-
render: (e) => /* @__PURE__ */
|
|
59
|
+
render: (e) => /* @__PURE__ */ n("div", { style: { display: "flex", gap: "0.75rem", alignItems: "center" }, children: ["sm", "md", "lg"].map((t) => /* @__PURE__ */ n(a, { ...e, size: t }, t)) })
|
|
57
60
|
}, h = {
|
|
58
61
|
args: { iconKey: "fa-solid fa-circle-info" },
|
|
59
|
-
render: (e) => /* @__PURE__ */
|
|
62
|
+
render: (e) => /* @__PURE__ */ n("div", { style: { display: "flex", gap: "1rem", alignItems: "center" }, children: [
|
|
60
63
|
"default",
|
|
61
64
|
"default-inverted",
|
|
62
65
|
"secondary",
|
|
66
|
+
"caution",
|
|
63
67
|
"warning",
|
|
64
68
|
"error-warning",
|
|
65
69
|
"success"
|
|
66
|
-
].map((o) => /* @__PURE__ */
|
|
70
|
+
].map((o) => /* @__PURE__ */ n(
|
|
67
71
|
a,
|
|
68
72
|
{
|
|
69
73
|
...e,
|
package/dist/main-client.js
CHANGED
|
@@ -49,7 +49,7 @@ import { AnimatedCheckMark as jo } from "./molecules/StatefulButton/AnimatedChec
|
|
|
49
49
|
import { AddToCart as Jo } from "./molecules/AddToCart/AddToCart.js";
|
|
50
50
|
import { Modal as Uo } from "./molecules/Modal/Modal.js";
|
|
51
51
|
import { ImageViewer as Yo } from "./molecules/ImageViewer/ImageViewer.js";
|
|
52
|
-
import { T as $o } from "./Table-
|
|
52
|
+
import { T as $o } from "./Table-_UT9976g.js";
|
|
53
53
|
import { Error as rr } from "./molecules/Error/Error.js";
|
|
54
54
|
import { MainNav as er } from "./organisms/MainNav/MainNav.js";
|
|
55
55
|
import { ChipSelector as pr } from "./organisms/ChipSelector/ChipSelector.js";
|
|
@@ -16,3 +16,9 @@ export interface Inventory {
|
|
|
16
16
|
}
|
|
17
17
|
export type AvailabilityId = "in-stock" | "limited" | "discontinued" | "available" | "not-found";
|
|
18
18
|
export declare function Availability({ availId: id, availDescription: description, availClassName: className, enableTooltip, inventory }: AvailabilityProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
interface TooltipContentProps {
|
|
20
|
+
availabilityId: AvailabilityId;
|
|
21
|
+
inventory: Inventory;
|
|
22
|
+
}
|
|
23
|
+
export declare function AvailabilityTooltipContent({ availabilityId, inventory }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|