@caseparts-org/caseblocks 0.0.259 → 0.0.260
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-BIEAjANw.js +36 -0
- package/dist/assets/Cart.css +1 -1
- package/dist/main-client.js +70 -69
- package/dist/main-server.d.ts +2 -1
- package/dist/main-server.js +12 -11
- package/dist/main.d.ts +2 -1
- package/dist/main.js +12 -11
- package/dist/molecules/Admonition/Admonition.d.ts +0 -7
- package/dist/molecules/Admonition/Admonition.js +41 -39
- package/dist/molecules/Admonition/admonitionTokens.d.ts +9 -0
- package/dist/molecules/Admonition/admonitionTokens.js +18 -0
- package/dist/molecules/Cart/Cart.js +1 -1
- package/dist/molecules/Cart/CartPart.d.ts +3 -1
- package/dist/molecules/Cart/CartPart.js +175 -117
- package/dist/molecules/Cart/CartPart.stories.d.ts +1 -0
- package/dist/molecules/Cart/CartPart.stories.js +38 -25
- package/dist/molecules/Cart/CartSlideInPanel.js +1 -1
- package/package.json +1 -1
- package/dist/Cart.module-ccFxL4YZ.js +0 -25
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import './assets/Cart.css';const t = "_cartIconButton_bq84n_2", n = "_count_bq84n_15", o = "_cartContainer_bq84n_30", e = "_headerWrapper_bq84n_41", a = "_header_bq84n_41", i = "_cartItems_bq84n_59", _ = "_cartItem_bq84n_59", r = "_cartItemContent_bq84n_76", c = "_carItemSeparator_bq84n_88", m = "_itemContainer_bq84n_92", s = "_topRow_bq84n_96", d = "_itemInfo_bq84n_103", I = "_editUnit_bq84n_108", b = "_purchaseInformation_bq84n_124", l = "_availabilitySlot_bq84n_130", q = "_priceSlot_bq84n_137", p = "_itemManagement_bq84n_139", g = "_itemImage_bq84n_152", u = "_removeItem_bq84n_155", h = "_cartItemAdmonitionsPanel_bq84n_164", v = "_admonitionsPanelCollapsed_bq84n_169", A = "_cartItemAdmonitionsTrigger_bq84n_174", C = "_cartItemAdmonitionHeader_bq84n_186", R = "_admonitionsReveal_bq84n_191", S = "_admonitionsRevealExpanded_bq84n_196", T = "_cartItemAdmonitions_bq84n_164", x = "_admonitionTriggerIconExpanded_bq84n_202", f = "_admonitionTriggerIcon_bq84n_202", B = "_noItems_bq84n_221", E = "_subtotal_bq84n_228", P = "_checkoutButton_bq84n_235", y = {
|
|
2
|
+
cartIconButton: t,
|
|
3
|
+
count: n,
|
|
4
|
+
cartContainer: o,
|
|
5
|
+
headerWrapper: e,
|
|
6
|
+
header: a,
|
|
7
|
+
cartItems: i,
|
|
8
|
+
cartItem: _,
|
|
9
|
+
cartItemContent: r,
|
|
10
|
+
carItemSeparator: c,
|
|
11
|
+
itemContainer: m,
|
|
12
|
+
topRow: s,
|
|
13
|
+
itemInfo: d,
|
|
14
|
+
editUnit: I,
|
|
15
|
+
purchaseInformation: b,
|
|
16
|
+
availabilitySlot: l,
|
|
17
|
+
priceSlot: q,
|
|
18
|
+
itemManagement: p,
|
|
19
|
+
itemImage: g,
|
|
20
|
+
removeItem: u,
|
|
21
|
+
cartItemAdmonitionsPanel: h,
|
|
22
|
+
admonitionsPanelCollapsed: v,
|
|
23
|
+
cartItemAdmonitionsTrigger: A,
|
|
24
|
+
cartItemAdmonitionHeader: C,
|
|
25
|
+
admonitionsReveal: R,
|
|
26
|
+
admonitionsRevealExpanded: S,
|
|
27
|
+
cartItemAdmonitions: T,
|
|
28
|
+
admonitionTriggerIconExpanded: x,
|
|
29
|
+
admonitionTriggerIcon: f,
|
|
30
|
+
noItems: B,
|
|
31
|
+
subtotal: E,
|
|
32
|
+
checkoutButton: P
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
y as s
|
|
36
|
+
};
|
package/dist/assets/Cart.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cartIconButton_bq84n_2{position:relative;border:none;padding:0;margin:0;background-color:transparent;cursor:pointer;color:#000;transition:color .3s ease,transform .3s ease}._cartIconButton_bq84n_2:hover{color:var(--color-brand-primary-primary-teal-blue)}._count_bq84n_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_bq84n_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_bq84n_41{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_bq84n_41>button{padding:0;margin:0;background-color:transparent;border:none}._header_bq84n_41{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_bq84n_59{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_bq84n_59 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_bq84n_59{border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm)}._cartItemContent_bq84n_76{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--spacing-spacing-2xs);align-items:start;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-spacing-2xs);width:100%}._carItemSeparator_bq84n_88{width:100%;border-bottom:1px solid var(--border-border-primary)}._itemContainer_bq84n_92{display:grid;gap:var(--spacing-spacing-3xs)}._topRow_bq84n_96{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-spacing-4xs)}._itemInfo_bq84n_103{display:flex;flex-direction:column;align-items:flex-start}._editUnit_bq84n_108{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_bq84n_124{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._availabilitySlot_bq84n_130{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}._itemManagement_bq84n_139{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._cartItem_bq84n_59 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_bq84n_152{object-fit:contain}._removeItem_bq84n_155{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._cartItemAdmonitionsPanel_bq84n_164{padding:var(--spacing-spacing-2xs);display:grid;gap:var(--spacing-spacing-2xs)}._admonitionsPanelCollapsed_bq84n_169{padding-block:var(--spacing-spacing-3xs);gap:0}._cartItemAdmonitionsTrigger_bq84n_174{border:none;background-color:transparent;outline:none;margin:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between}._cartItemAdmonitionHeader_bq84n_186{display:inline-flex;align-items:center;gap:var(--spacing-spacing-4xs)}._admonitionsReveal_bq84n_191{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-in}._admonitionsRevealExpanded_bq84n_196{grid-template-rows:1fr}._admonitionsReveal_bq84n_191>._cartItemAdmonitions_bq84n_164{overflow:hidden}._admonitionTriggerIconExpanded_bq84n_202{transform:rotate(180deg)}._admonitionTriggerIcon_bq84n_202{transition:transform .2s ease-in}._cartItemAdmonitions_bq84n_164{list-style:none;margin:0;padding:0}._noItems_bq84n_221{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_bq84n_228{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_bq84n_235{width:100%;height:fit-content;display:inline-flex;gap:var(--spacing-spacing-2xs)}
|
package/dist/main-client.js
CHANGED
|
@@ -25,100 +25,101 @@ import { BannerCard as K } from "./molecules/BannerCard/BannerCard.js";
|
|
|
25
25
|
import { CardLink as Y } from "./molecules/CardLink/CardLink.js";
|
|
26
26
|
import { Breadcrumbs as oo } from "./molecules/Breadcrumbs/Breadcrumbs.js";
|
|
27
27
|
import { Disclaimer as to } from "./molecules/Disclaimer/Disclaimer.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
28
|
+
import { Admonition as po } from "./molecules/Admonition/Admonition.js";
|
|
29
|
+
import { ADMONITION_DEFAULT_ICONS as fo } from "./molecules/Admonition/admonitionTokens.js";
|
|
30
|
+
import { Upsell as ao } from "./molecules/Upsell/Upsell.js";
|
|
31
|
+
import { CustomWizardBadge as io } from "./molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
32
|
+
import { NotFound as uo } from "./organisms/NotFound/NotFound.js";
|
|
33
|
+
import { StatusPage as co } from "./organisms/StatusPage/StatusPage.js";
|
|
34
|
+
import { HorizontalScroll as Co } from "./atoms/HorizontalScroll/HorizontalScroll.js";
|
|
35
|
+
import { SlideInPanel as Ao } from "./atoms/SlideInPanel/SlideInPanel.js";
|
|
36
|
+
import { DropdownButton as To } from "./atoms/DropdownButton/DropdownButton.js";
|
|
37
|
+
import { Input as Bo } from "./atoms/Input/Input.js";
|
|
38
|
+
import { InputEndAdornmentButton as ho } from "./atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
|
|
39
|
+
import { Select as Lo } from "./atoms/Select/Select.js";
|
|
40
|
+
import { Tooltip as vo } from "./atoms/Tooltip/Tooltip.js";
|
|
41
|
+
import { Popover as Fo } from "./atoms/Popover/Popover.js";
|
|
42
|
+
import { Accordion as Mo } from "./molecules/Accordion/Accordion.js";
|
|
43
|
+
import { Account as bo } from "./molecules/Account/Account.js";
|
|
44
|
+
import { Chip as Eo } from "./molecules/Chip/Chip.js";
|
|
45
|
+
import { ToggleView as zo } from "./molecules/ToggleView/ToggleView.js";
|
|
46
|
+
import { CartPart as _o } from "./molecules/Cart/CartPart.js";
|
|
47
|
+
import { AddToCartPart as Qo } from "./molecules/AddToCartPart/AddToCartPart.js";
|
|
48
|
+
import { CartSlideInPanel as Wo } from "./molecules/Cart/CartSlideInPanel.js";
|
|
49
|
+
import { StatefulButton as jo } from "./molecules/StatefulButton/StatefulButton.js";
|
|
50
|
+
import { AnimatedCheckMark as Jo } from "./molecules/StatefulButton/AnimatedCheckmark.js";
|
|
51
|
+
import { AddToCart as Xo } from "./molecules/AddToCart/AddToCart.js";
|
|
52
|
+
import { Modal as $o } from "./molecules/Modal/Modal.js";
|
|
53
|
+
import { ImageViewer as rr } from "./molecules/ImageViewer/ImageViewer.js";
|
|
54
|
+
import { T as er } from "./Table-_UT9976g.js";
|
|
55
|
+
import { Error as mr } from "./molecules/Error/Error.js";
|
|
56
|
+
import { MainNav as xr } from "./organisms/MainNav/MainNav.js";
|
|
57
|
+
import { ChipSelector as nr } from "./organisms/ChipSelector/ChipSelector.js";
|
|
58
|
+
import { SuggestionDropdown as lr } from "./organisms/SuggestionDropdown/SuggestionDropdown.js";
|
|
59
|
+
import { Product as ur } from "./organisms/Product/Product.js";
|
|
60
|
+
import { Carousel as cr } from "./organisms/Carousel/Carousel.js";
|
|
61
|
+
import { Footer as Cr } from "./organisms/Footer/Footer.js";
|
|
62
|
+
import { default as Ar } from "./organisms/SpinZoomViewer/SpinZoomViewer.js";
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
fo as ADMONITION_DEFAULT_ICONS,
|
|
65
|
+
Mo as Accordion,
|
|
66
|
+
bo as Account,
|
|
67
|
+
Xo as AddToCart,
|
|
68
|
+
Qo as AddToCartPart,
|
|
69
|
+
po as Admonition,
|
|
70
|
+
Jo as AnimatedCheckMark,
|
|
70
71
|
Z as Availability,
|
|
71
72
|
q as Avatar,
|
|
72
73
|
K as BannerCard,
|
|
73
74
|
oo as Breadcrumbs,
|
|
74
75
|
t as Button,
|
|
75
76
|
Y as CardLink,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
cr as Carousel,
|
|
78
|
+
_o as CartPart,
|
|
79
|
+
Wo as CartSlideInPanel,
|
|
80
|
+
Eo as Chip,
|
|
81
|
+
nr as ChipSelector,
|
|
81
82
|
f as Column,
|
|
82
|
-
|
|
83
|
+
io as CustomWizardBadge,
|
|
83
84
|
to as Disclaimer,
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
To as DropdownButton,
|
|
86
|
+
mr as Error,
|
|
86
87
|
p as Flex,
|
|
87
|
-
|
|
88
|
+
Cr as Footer,
|
|
88
89
|
x as Grid,
|
|
89
90
|
l as Head,
|
|
90
91
|
n as HighlightedText,
|
|
91
|
-
|
|
92
|
+
Co as HorizontalScroll,
|
|
92
93
|
u as Icon,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
rr as ImageViewer,
|
|
95
|
+
Bo as Input,
|
|
96
|
+
ho as InputEndAdornmentButton,
|
|
96
97
|
B as Link,
|
|
97
98
|
D as LinkButton,
|
|
98
99
|
V as Logo,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
xr as MainNav,
|
|
101
|
+
$o as Modal,
|
|
102
|
+
uo as NotFound,
|
|
102
103
|
H as Pill,
|
|
103
|
-
|
|
104
|
+
Fo as Popover,
|
|
104
105
|
G as Pricing,
|
|
105
|
-
|
|
106
|
+
ur as Product,
|
|
106
107
|
R as ProgressBar,
|
|
107
108
|
U as QuantityInput,
|
|
108
109
|
c as Root,
|
|
109
|
-
|
|
110
|
+
Lo as Select,
|
|
110
111
|
C as Separator,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
Ao as SlideInPanel,
|
|
113
|
+
Ar as SpinZoomViewer,
|
|
114
|
+
jo as StatefulButton,
|
|
115
|
+
co as StatusPage,
|
|
116
|
+
lr as SuggestionDropdown,
|
|
117
|
+
er as Table,
|
|
117
118
|
A as Text,
|
|
118
119
|
T as ToggleSwitch,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
zo as ToggleView,
|
|
121
|
+
vo as Tooltip,
|
|
122
|
+
ao as Upsell,
|
|
122
123
|
O as configureImage,
|
|
123
124
|
L as configureLink,
|
|
124
125
|
y as getHideAtStyles,
|
package/dist/main-server.d.ts
CHANGED
|
@@ -48,7 +48,8 @@ export { Breadcrumbs } from './molecules/Breadcrumbs/Breadcrumbs';
|
|
|
48
48
|
export type { BreadcrumbProps, Breadcrumb } from './molecules/Breadcrumbs/Breadcrumbs';
|
|
49
49
|
export { Disclaimer } from './molecules/Disclaimer/Disclaimer';
|
|
50
50
|
export type { DisclaimerProps, DisclaimerColorToken, DisclaimerIcon, DisclaimerContentProps, DisclaimerIconProps, DisclaimerPrimaryProps, DisclaimerSubtextProps, DisclaimerCTAProps, } from './molecules/Disclaimer/Disclaimer';
|
|
51
|
-
export { Admonition
|
|
51
|
+
export { Admonition } from './molecules/Admonition/Admonition';
|
|
52
|
+
export { ADMONITION_DEFAULT_ICONS } from './molecules/Admonition/admonitionTokens';
|
|
52
53
|
export type { AdmonitionProps, AdmonitionVariant } from './molecules/Admonition/Admonition';
|
|
53
54
|
export { Upsell } from './molecules/Upsell/Upsell';
|
|
54
55
|
export type { UpsellProps, UpsellIcon } from './molecules/Upsell/Upsell';
|
package/dist/main-server.js
CHANGED
|
@@ -25,14 +25,15 @@ import { BannerCard as X } from "./molecules/BannerCard/BannerCard.js";
|
|
|
25
25
|
import { CardLink as Z } from "./molecules/CardLink/CardLink.js";
|
|
26
26
|
import { Breadcrumbs as rr } from "./molecules/Breadcrumbs/Breadcrumbs.js";
|
|
27
27
|
import { Disclaimer as er } from "./molecules/Disclaimer/Disclaimer.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
28
|
+
import { Admonition as mr } from "./molecules/Admonition/Admonition.js";
|
|
29
|
+
import { ADMONITION_DEFAULT_ICONS as xr } from "./molecules/Admonition/admonitionTokens.js";
|
|
30
|
+
import { Upsell as ir } from "./molecules/Upsell/Upsell.js";
|
|
31
|
+
import { CustomWizardBadge as nr } from "./molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
32
|
+
import { NotFound as gr } from "./organisms/NotFound/NotFound.js";
|
|
33
|
+
import { StatusPage as ur } from "./organisms/StatusPage/StatusPage.js";
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
xr as ADMONITION_DEFAULT_ICONS,
|
|
36
|
+
mr as Admonition,
|
|
36
37
|
q as Availability,
|
|
37
38
|
K as Avatar,
|
|
38
39
|
X as BannerCard,
|
|
@@ -40,7 +41,7 @@ export {
|
|
|
40
41
|
e as Button,
|
|
41
42
|
Z as CardLink,
|
|
42
43
|
x as Column,
|
|
43
|
-
|
|
44
|
+
nr as CustomWizardBadge,
|
|
44
45
|
er as Disclaimer,
|
|
45
46
|
m as Flex,
|
|
46
47
|
f as Grid,
|
|
@@ -50,17 +51,17 @@ export {
|
|
|
50
51
|
N as Link,
|
|
51
52
|
y as LinkButton,
|
|
52
53
|
z as Logo,
|
|
53
|
-
|
|
54
|
+
gr as NotFound,
|
|
54
55
|
F as Pill,
|
|
55
56
|
Q as Pricing,
|
|
56
57
|
W as ProgressBar,
|
|
57
58
|
G as QuantityInput,
|
|
58
59
|
s as Root,
|
|
59
60
|
A as Separator,
|
|
60
|
-
|
|
61
|
+
ur as StatusPage,
|
|
61
62
|
C as Text,
|
|
62
63
|
L as ToggleSwitch,
|
|
63
|
-
|
|
64
|
+
ir as Upsell,
|
|
64
65
|
b as configureImage,
|
|
65
66
|
P as configureLink,
|
|
66
67
|
_ as getHideAtStyles,
|
package/dist/main.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ export type { ChipProps } from './molecules/Chip/Chip';
|
|
|
26
26
|
export { Logo } from './molecules/Logo/Logo';
|
|
27
27
|
export { Error } from './molecules/Error/Error';
|
|
28
28
|
export type { ErrorProps, ErrorMessageProps, ErrorDetailsProps, } from './molecules/Error/Error';
|
|
29
|
-
export { Admonition
|
|
29
|
+
export { Admonition } from './molecules/Admonition/Admonition';
|
|
30
|
+
export { ADMONITION_DEFAULT_ICONS } from './molecules/Admonition/admonitionTokens';
|
|
30
31
|
export type { AdmonitionProps, AdmonitionVariant } from './molecules/Admonition/Admonition';
|
|
31
32
|
export { ToggleView } from './molecules/ToggleView/ToggleView';
|
|
32
33
|
export type { ToggleViewProps, ToggleOptionProps, ToggleOptionBaseProps, } from './molecules/ToggleView/ToggleView';
|
package/dist/main.js
CHANGED
|
@@ -14,19 +14,20 @@ import { Avatar as w } from "./molecules/Avatar/Avatar.js";
|
|
|
14
14
|
import { Chip as F } from "./molecules/Chip/Chip.js";
|
|
15
15
|
import { Logo as M } from "./molecules/Logo/Logo.js";
|
|
16
16
|
import { Error as s } from "./molecules/Error/Error.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
17
|
+
import { Admonition as H } from "./molecules/Admonition/Admonition.js";
|
|
18
|
+
import { ADMONITION_DEFAULT_ICONS as U } from "./molecules/Admonition/admonitionTokens.js";
|
|
19
|
+
import { ToggleView as b } from "./molecules/ToggleView/ToggleView.js";
|
|
20
|
+
import { MainNav as k } from "./organisms/MainNav/MainNav.js";
|
|
21
|
+
import { ChipSelector as y } from "./organisms/ChipSelector/ChipSelector.js";
|
|
22
|
+
import { SuggestionDropdown as J } from "./organisms/SuggestionDropdown/SuggestionDropdown.js";
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
U as ADMONITION_DEFAULT_ICONS,
|
|
24
25
|
h as Account,
|
|
25
|
-
|
|
26
|
+
H as Admonition,
|
|
26
27
|
w as Avatar,
|
|
27
28
|
t as Button,
|
|
28
29
|
F as Chip,
|
|
29
|
-
|
|
30
|
+
y as ChipSelector,
|
|
30
31
|
x as Column,
|
|
31
32
|
s as Error,
|
|
32
33
|
p as Flex,
|
|
@@ -36,11 +37,11 @@ export {
|
|
|
36
37
|
C as Input,
|
|
37
38
|
T as InputEndAdornmentButton,
|
|
38
39
|
M as Logo,
|
|
39
|
-
|
|
40
|
+
k as MainNav,
|
|
40
41
|
A as Root,
|
|
41
42
|
E as Select,
|
|
42
43
|
c as Separator,
|
|
43
|
-
|
|
44
|
+
J as SuggestionDropdown,
|
|
44
45
|
l as Text,
|
|
45
|
-
|
|
46
|
+
b as ToggleView
|
|
46
47
|
};
|
|
@@ -7,11 +7,4 @@ export type AdmonitionProps = ComponentPropsWithoutRef<"aside"> & {
|
|
|
7
7
|
title?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
export declare const ADMONITION_DEFAULT_ICONS: {
|
|
11
|
-
note: string;
|
|
12
|
-
tip: string;
|
|
13
|
-
attention: string;
|
|
14
|
-
caution: string;
|
|
15
|
-
warning: string;
|
|
16
|
-
};
|
|
17
10
|
export declare function Admonition({ admonitionType, variant, icon, title, className, children, ...props }: AdmonitionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { Text as
|
|
1
|
+
import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as N } from "../../atoms/Icon/Icon.js";
|
|
3
|
+
import { Text as u } from "../../atoms/Text/Text.js";
|
|
4
4
|
import { c } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import { ADMONITION_DEFAULT_ICONS as p, ADMONITION_ICON_COLOR_TOKENS as C } from "./admonitionTokens.js";
|
|
6
|
+
import '../../assets/Admonition.css';const I = "_admonition_7cwow_1", T = "_admonitionBorderLeft_7cwow_8", f = "_admonitionPanel_7cwow_13", h = "_admonitionWithIcon_7cwow_25", A = "_admonitionIcon_7cwow_29", g = "_admonitionContent_7cwow_33", B = "_admonitionHeader_7cwow_39", L = "_admonitionTitle_7cwow_45", O = "_admonitionBody_7cwow_52", W = "_admonitionNote_7cwow_67", x = "_admonitionTip_7cwow_73", P = "_admonitionAttention_7cwow_88", y = "_admonitionCaution_7cwow_103", E = "_admonitionWarning_7cwow_118", H = "_admonitionNeutral_7cwow_133", o = {
|
|
7
|
+
admonition: I,
|
|
8
|
+
admonitionBorderLeft: T,
|
|
9
|
+
admonitionPanel: f,
|
|
10
|
+
admonitionWithIcon: h,
|
|
11
|
+
admonitionIcon: A,
|
|
12
|
+
admonitionContent: g,
|
|
13
|
+
admonitionHeader: B,
|
|
14
|
+
admonitionTitle: L,
|
|
15
|
+
admonitionBody: O,
|
|
15
16
|
admonitionNote: W,
|
|
16
17
|
admonitionTip: x,
|
|
17
|
-
admonitionAttention:
|
|
18
|
-
admonitionCaution:
|
|
19
|
-
admonitionWarning:
|
|
18
|
+
admonitionAttention: P,
|
|
19
|
+
admonitionCaution: y,
|
|
20
|
+
admonitionWarning: E,
|
|
20
21
|
admonitionNeutral: H
|
|
21
22
|
}, j = {
|
|
22
23
|
note: "Note",
|
|
@@ -24,38 +25,39 @@ import '../../assets/Admonition.css';const N = "_admonition_7cwow_1", p = "_admo
|
|
|
24
25
|
attention: "Attention",
|
|
25
26
|
caution: "Caution",
|
|
26
27
|
warning: "Warning"
|
|
27
|
-
}, z = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
warning: "fa-solid fa-octagon-exclamation"
|
|
33
|
-
}, E = (n) => {
|
|
34
|
-
const a = n.trim().replace(/[_-]+/g, " ");
|
|
35
|
-
return a ? a.split(/\s+/).map((i) => `${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()}`).join(" ") : "Admonition";
|
|
36
|
-
}, O = (n) => n === "note" ? o.admonitionNote : n === "tip" ? o.admonitionTip : n === "attention" ? o.admonitionAttention : n === "caution" ? o.admonitionCaution : n === "warning" ? o.admonitionWarning : o.admonitionNeutral;
|
|
37
|
-
function U({
|
|
28
|
+
}, z = (n) => {
|
|
29
|
+
const t = n.trim().replace(/[_-]+/g, " ");
|
|
30
|
+
return t ? t.split(/\s+/).map((i) => `${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()}`).join(" ") : "Admonition";
|
|
31
|
+
}, D = (n) => n === "note" ? o.admonitionNote : n === "tip" ? o.admonitionTip : n === "attention" ? o.admonitionAttention : n === "caution" ? o.admonitionCaution : n === "warning" ? o.admonitionWarning : o.admonitionNeutral;
|
|
32
|
+
function $({
|
|
38
33
|
admonitionType: n,
|
|
39
|
-
variant:
|
|
34
|
+
variant: t,
|
|
40
35
|
icon: i,
|
|
41
36
|
title: s,
|
|
42
37
|
className: r,
|
|
43
38
|
children: m,
|
|
44
|
-
...
|
|
39
|
+
..._
|
|
45
40
|
}) {
|
|
46
|
-
const
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
const l = s ?? j[n] ?? z(n), w = D(t), d = i === !1 ? void 0 : (i == null ? void 0 : i.trim()) || p[t];
|
|
42
|
+
return /* @__PURE__ */ e("aside", { ..._, className: c(o.admonition, w, r), "data-admonition": n, children: [
|
|
43
|
+
/* @__PURE__ */ a("span", { className: o.admonitionBorderLeft, "aria-hidden": "true" }),
|
|
44
|
+
/* @__PURE__ */ e("div", { className: c(o.admonitionPanel, d && o.admonitionWithIcon), children: [
|
|
45
|
+
d ? /* @__PURE__ */ a("span", { className: o.admonitionIcon, "aria-hidden": "true", children: /* @__PURE__ */ a(
|
|
46
|
+
N,
|
|
47
|
+
{
|
|
48
|
+
iconKey: d,
|
|
49
|
+
size: "md",
|
|
50
|
+
colorToken: C[t] ?? "default"
|
|
51
|
+
},
|
|
52
|
+
d
|
|
53
|
+
) }) : null,
|
|
54
|
+
/* @__PURE__ */ e("div", { className: o.admonitionContent, children: [
|
|
55
|
+
/* @__PURE__ */ a("div", { className: o.admonitionHeader, children: /* @__PURE__ */ a(u, { size: "md", weight: "semibold", className: o.admonitionTitle, children: l }) }),
|
|
56
|
+
m != null ? /* @__PURE__ */ a("div", { className: o.admonitionBody, children: m }) : null
|
|
54
57
|
] })
|
|
55
58
|
] })
|
|
56
59
|
] });
|
|
57
60
|
}
|
|
58
61
|
export {
|
|
59
|
-
|
|
60
|
-
U as Admonition
|
|
62
|
+
$ as Admonition
|
|
61
63
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconColorToken } from '../../atoms/Icon/Icon';
|
|
2
|
+
export declare const ADMONITION_DEFAULT_ICONS: {
|
|
3
|
+
note: string;
|
|
4
|
+
tip: string;
|
|
5
|
+
attention: string;
|
|
6
|
+
caution: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ADMONITION_ICON_COLOR_TOKENS: Record<string, IconColorToken>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
note: "fa-regular fa-note",
|
|
3
|
+
tip: "fa-regular fa-circle-info",
|
|
4
|
+
attention: "fa-solid fa-triangle-exclamation",
|
|
5
|
+
caution: "fa-solid fa-circle-exclamation",
|
|
6
|
+
warning: "fa-solid fa-octagon-exclamation"
|
|
7
|
+
}, n = {
|
|
8
|
+
note: "default",
|
|
9
|
+
tip: "success",
|
|
10
|
+
attention: "caution",
|
|
11
|
+
caution: "warning",
|
|
12
|
+
warning: "error-warning",
|
|
13
|
+
unknown: "default"
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
a as ADMONITION_DEFAULT_ICONS,
|
|
17
|
+
n as ADMONITION_ICON_COLOR_TOKENS
|
|
18
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { Icon as g } from "../../atoms/Icon/Icon.js";
|
|
4
4
|
import { Text as p } from "../../atoms/Text/Text.js";
|
|
5
|
-
import { s as m } from "../../Cart.module-
|
|
5
|
+
import { s as m } from "../../Cart.module-BIEAjANw.js";
|
|
6
6
|
const S = l.forwardRef(function({
|
|
7
7
|
cart: i,
|
|
8
8
|
open: t = !1,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AvailabilityId, Inventory } from '../Availability/Availability';
|
|
3
|
+
import { MarkdownAdmonition } from '../Markdown/remarkAdmonition';
|
|
3
4
|
export interface CartPartProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, "title"> {
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
imageAlt?: string;
|
|
@@ -24,5 +25,6 @@ export interface CartPartProps extends Omit<React.LiHTMLAttributes<HTMLLIElement
|
|
|
24
25
|
onRemove?: () => void;
|
|
25
26
|
onUnitEditClick?: () => void;
|
|
26
27
|
requiresUnitDetails?: boolean;
|
|
28
|
+
admonitions?: MarkdownAdmonition[];
|
|
27
29
|
}
|
|
28
|
-
export declare function CartPart({ imageUrl, imageAlt, title, titleHref, onTitleNavigate, partNumber, unit, make, model, serial, custom, availabilityId, availability, inventory, source, priceLabel, price, quantity, maxQuantity, onQuantityChange, onRemove, onUnitEditClick, requiresUnitDetails, className, ...otherProps }: CartPartProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function CartPart({ imageUrl, imageAlt, title, titleHref, onTitleNavigate, partNumber, unit, make, model, serial, custom, availabilityId, availability, inventory, source, priceLabel, price, quantity, maxQuantity, onQuantityChange, onRemove, onUnitEditClick, requiresUnitDetails, className, admonitions, ...otherProps }: CartPartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,128 +1,186 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import q, { useState as B, useId as V } from "react";
|
|
3
|
+
import { Link as G } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Text as t } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Image as H } from "../../atoms/Image/Image.js";
|
|
6
|
+
import { Availability as J } from "../Availability/Availability.js";
|
|
7
|
+
import { Pricing as Q } from "../Pricing/Pricing.js";
|
|
8
|
+
import { QuantityInput as U } from "../QuantityInput/QuantityInput.js";
|
|
9
|
+
import { Icon as s } from "../../atoms/Icon/Icon.js";
|
|
10
|
+
import { Pill as W } from "../../atoms/Pill/Pill.js";
|
|
11
|
+
import { Tooltip as X } from "../../atoms/Tooltip/Tooltip.js";
|
|
12
|
+
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
13
|
+
import { s as e } from "../../Cart.module-BIEAjANw.js";
|
|
14
|
+
import { ADMONITION_ICON_COLOR_TOKENS as Y } from "../Admonition/admonitionTokens.js";
|
|
15
|
+
import { Admonition as Z } from "../Admonition/Admonition.js";
|
|
16
|
+
function he({
|
|
17
|
+
imageUrl: x,
|
|
18
|
+
imageAlt: C = "Product image",
|
|
19
|
+
title: h,
|
|
20
|
+
titleHref: u,
|
|
21
|
+
onTitleNavigate: m,
|
|
22
|
+
partNumber: g,
|
|
23
|
+
unit: K,
|
|
24
|
+
make: P,
|
|
25
|
+
model: A,
|
|
26
|
+
serial: S,
|
|
27
|
+
custom: w,
|
|
28
|
+
availabilityId: O,
|
|
29
|
+
availability: I,
|
|
30
|
+
inventory: R,
|
|
31
|
+
source: c = "none",
|
|
32
|
+
priceLabel: _ = "List Price",
|
|
33
|
+
price: y,
|
|
34
|
+
quantity: N,
|
|
35
|
+
maxQuantity: d,
|
|
36
|
+
onQuantityChange: b,
|
|
37
|
+
onRemove: k,
|
|
38
|
+
onUnitEditClick: f,
|
|
39
|
+
requiresUnitDetails: E = !1,
|
|
40
|
+
className: M,
|
|
41
|
+
admonitions: i,
|
|
42
|
+
...L
|
|
39
43
|
}) {
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
var z, v;
|
|
45
|
+
const [n, j] = B(!1), T = V();
|
|
46
|
+
function D(a) {
|
|
47
|
+
a.defaultPrevented || a.button === 0 && (a.metaKey || a.altKey || a.ctrlKey || a.shiftKey || a.currentTarget.target && a.currentTarget.target !== "_self" || m == null || m(a));
|
|
42
48
|
}
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
49
|
+
const p = K || [P, A, S].filter(Boolean).join(" / "), F = typeof d == "number" && Number.isFinite(d) ? d : void 0;
|
|
50
|
+
return /* @__PURE__ */ l("li", { className: o(e.cartItem, M), ...L, children: [
|
|
51
|
+
/* @__PURE__ */ l("div", { className: e.cartItemContent, children: [
|
|
52
|
+
/* @__PURE__ */ r(H, { height: 50, width: 50, src: x || "", alt: C, className: e.itemImage }),
|
|
53
|
+
/* @__PURE__ */ l("div", { className: e.itemContainer, children: [
|
|
54
|
+
/* @__PURE__ */ l("div", { className: e.topRow, children: [
|
|
55
|
+
/* @__PURE__ */ l("div", { className: e.itemInfo, children: [
|
|
56
|
+
/* @__PURE__ */ r(t, { size: "sm", weight: "semibold", children: u ? /* @__PURE__ */ r(G, { href: u, onClick: D, children: h }) : h }),
|
|
57
|
+
g != null && /* @__PURE__ */ l(t, { size: "sm", children: [
|
|
58
|
+
/* @__PURE__ */ r(t, { colorToken: "quaternary", size: "xs", children: w ? "Specs " : "Part # " }),
|
|
59
|
+
g
|
|
60
|
+
] }),
|
|
61
|
+
p && f && (E ? /* @__PURE__ */ r(
|
|
62
|
+
X,
|
|
63
|
+
{
|
|
64
|
+
trigger: /* @__PURE__ */ l(
|
|
65
|
+
"button",
|
|
66
|
+
{
|
|
67
|
+
onClick: f,
|
|
68
|
+
className: e.editUnit,
|
|
69
|
+
"aria-label": "Edit make, model, and serial",
|
|
70
|
+
type: "button",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ r(s, { iconKey: "fa-light fa-file-pen", size: "sm" }),
|
|
73
|
+
p
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
children: /* @__PURE__ */ r(t, { size: "sm", children: "Requires Make, Model, and Serial" })
|
|
78
|
+
}
|
|
79
|
+
) : /* @__PURE__ */ l(
|
|
80
|
+
"button",
|
|
81
|
+
{
|
|
82
|
+
onClick: f,
|
|
83
|
+
className: e.editUnit,
|
|
84
|
+
"aria-label": "Edit make, model, and serial",
|
|
85
|
+
type: "button",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ r(s, { iconKey: "fa-light fa-file-pen", size: "sm" }),
|
|
88
|
+
/* @__PURE__ */ r(t, { size: "sm", children: p })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
))
|
|
53
92
|
] }),
|
|
54
|
-
|
|
55
|
-
_,
|
|
56
|
-
{
|
|
57
|
-
trigger: /* @__PURE__ */ r(
|
|
58
|
-
"button",
|
|
59
|
-
{
|
|
60
|
-
onClick: n,
|
|
61
|
-
className: i.editUnit,
|
|
62
|
-
"aria-label": "Edit make, model, and serial",
|
|
63
|
-
type: "button",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ e(c, { iconKey: "fa-light fa-file-pen", size: "sm" }),
|
|
66
|
-
s
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
children: "Requires Make, Model, and Serial"
|
|
71
|
-
}
|
|
72
|
-
) : /* @__PURE__ */ r(
|
|
73
|
-
"button",
|
|
74
|
-
{
|
|
75
|
-
onClick: n,
|
|
76
|
-
className: i.editUnit,
|
|
77
|
-
"aria-label": "Edit make, model, and serial",
|
|
78
|
-
type: "button",
|
|
79
|
-
children: [
|
|
80
|
-
/* @__PURE__ */ e(c, { iconKey: "fa-light fa-file-pen", size: "sm" }),
|
|
81
|
-
s
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
))
|
|
93
|
+
k && /* @__PURE__ */ r("button", { onClick: k, className: e.removeItem, "aria-label": "Remove item", type: "button", children: /* @__PURE__ */ r(s, { iconKey: "fa-regular fa-trash", size: "sm" }) })
|
|
85
94
|
] }),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
)
|
|
95
|
+
/* @__PURE__ */ l("div", { className: e.itemManagement, children: [
|
|
96
|
+
/* @__PURE__ */ l("div", { className: e.availabilitySlot, children: [
|
|
97
|
+
I && /* @__PURE__ */ r(
|
|
98
|
+
J,
|
|
99
|
+
{
|
|
100
|
+
availId: O || "not-found",
|
|
101
|
+
availDescription: I,
|
|
102
|
+
enableTooltip: !0,
|
|
103
|
+
inventory: R
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
c !== "none" && /* @__PURE__ */ r(
|
|
107
|
+
W,
|
|
108
|
+
{
|
|
109
|
+
colorToken: c === "cart" ? "neutral" : "success",
|
|
110
|
+
uppercase: !0,
|
|
111
|
+
iconColorToken: c === "cart" ? "default" : "success",
|
|
112
|
+
iconKey: c === "cart" ? "fa-light fa-cart-shopping" : "fa-light fa-file-lines",
|
|
113
|
+
children: c === "cart" ? "Cart" : "Quote"
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ l("div", { className: e.purchaseInformation, children: [
|
|
118
|
+
/* @__PURE__ */ r("div", { className: e.priceSlot, children: y && /* @__PURE__ */ r(Q, { pricingLabel: _, price: y }) }),
|
|
119
|
+
typeof N == "number" && b && /* @__PURE__ */ r(
|
|
120
|
+
U,
|
|
121
|
+
{
|
|
122
|
+
quantity: N,
|
|
123
|
+
onQuantityChange: b,
|
|
124
|
+
max: F,
|
|
125
|
+
size: "sm"
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] })
|
|
121
129
|
] })
|
|
122
130
|
] })
|
|
131
|
+
] }),
|
|
132
|
+
((i == null ? void 0 : i.length) ?? 0) > 0 && /* @__PURE__ */ l(q.Fragment, { children: [
|
|
133
|
+
/* @__PURE__ */ r("div", { className: e.carItemSeparator }),
|
|
134
|
+
/* @__PURE__ */ l("div", { className: o(e.cartItemAdmonitionsPanel, !n && e.admonitionsPanelCollapsed), children: [
|
|
135
|
+
/* @__PURE__ */ l(
|
|
136
|
+
"button",
|
|
137
|
+
{
|
|
138
|
+
className: e.cartItemAdmonitionsTrigger,
|
|
139
|
+
onClick: () => j(!n),
|
|
140
|
+
type: "button",
|
|
141
|
+
"aria-expanded": n,
|
|
142
|
+
"aria-controls": T,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ l("div", { className: e.cartItemAdmonitionHeader, children: [
|
|
145
|
+
/* @__PURE__ */ r(
|
|
146
|
+
s,
|
|
147
|
+
{
|
|
148
|
+
iconKey: ((z = i == null ? void 0 : i[0]) == null ? void 0 : z.icon) ?? "fa-regular fa-info-circle",
|
|
149
|
+
size: "sm",
|
|
150
|
+
colorToken: Y[((v = i == null ? void 0 : i[0]) == null ? void 0 : v.variant) ?? "unknown"] ?? "default"
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ l(t, { size: "sm", children: [
|
|
154
|
+
"View (",
|
|
155
|
+
i == null ? void 0 : i.length,
|
|
156
|
+
") item notes"
|
|
157
|
+
] })
|
|
158
|
+
] }),
|
|
159
|
+
/* @__PURE__ */ r(s, { className: o(e.admonitionTriggerIcon, n ? e.admonitionTriggerIconExpanded : e.admonitionTriggerIconCollapsed), iconKey: "fa-regular fa-chevron-down", size: "xs", colorToken: "secondary" })
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
/* @__PURE__ */ r(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
className: o(e.admonitionsReveal, n && e.admonitionsRevealExpanded),
|
|
167
|
+
id: T,
|
|
168
|
+
children: /* @__PURE__ */ r("ol", { className: e.cartItemAdmonitions, children: i == null ? void 0 : i.map((a) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
169
|
+
Z,
|
|
170
|
+
{
|
|
171
|
+
admonitionType: a.type,
|
|
172
|
+
variant: a.type,
|
|
173
|
+
icon: a.icon,
|
|
174
|
+
title: a.title,
|
|
175
|
+
children: a.content
|
|
176
|
+
}
|
|
177
|
+
) }, a.variant)) })
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
] })
|
|
123
181
|
] })
|
|
124
182
|
] });
|
|
125
183
|
}
|
|
126
184
|
export {
|
|
127
|
-
|
|
185
|
+
he as CartPart
|
|
128
186
|
};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { ADMONITION_DEFAULT_ICONS as a } from "../Admonition/admonitionTokens.js";
|
|
3
|
+
import { CartPart as e } from "./CartPart.js";
|
|
4
|
+
const n = {
|
|
4
5
|
MPK: { Unreserved: 5, Available: 5 },
|
|
5
6
|
SEA: { Unreserved: 3, Available: 3 },
|
|
6
7
|
STL: { Unreserved: 8, Available: 8 }
|
|
7
|
-
},
|
|
8
|
+
}, r = [
|
|
9
|
+
{ type: "warning", variant: "warning", icon: a.warning, content: "Disconnect power before servicing this unit." },
|
|
10
|
+
{ type: "caution", variant: "caution", icon: a.caution, content: "Inspect the mounting surface before installation." },
|
|
11
|
+
{ type: "attention", variant: "attention", icon: a.attention, content: "Fits only selected revisions." }
|
|
12
|
+
// { type: "tip", variant: "tip", icon: ADMONITION_DEFAULT_ICONS.tip, content: "Use the provided measurements for the most accurate fit." },
|
|
13
|
+
// { type: "note", variant: "note", icon: ADMONITION_DEFAULT_ICONS.note, content: "Confirm the model and serial number before ordering." },
|
|
14
|
+
], d = {
|
|
8
15
|
title: "Case Parts/Molecules/CartPart",
|
|
9
|
-
component:
|
|
16
|
+
component: e,
|
|
10
17
|
parameters: {
|
|
11
18
|
layout: "centered"
|
|
12
19
|
},
|
|
@@ -24,7 +31,7 @@ const a = {
|
|
|
24
31
|
custom: !1,
|
|
25
32
|
availabilityId: "in-stock",
|
|
26
33
|
availability: "In Stock",
|
|
27
|
-
inventory:
|
|
34
|
+
inventory: n,
|
|
28
35
|
priceLabel: "List Price",
|
|
29
36
|
price: "$99.99",
|
|
30
37
|
quantity: 1,
|
|
@@ -38,9 +45,9 @@ const a = {
|
|
|
38
45
|
alert("Edit Unit");
|
|
39
46
|
}
|
|
40
47
|
}
|
|
41
|
-
},
|
|
42
|
-
render: (
|
|
43
|
-
},
|
|
48
|
+
}, c = {
|
|
49
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
50
|
+
}, v = {
|
|
44
51
|
args: {
|
|
45
52
|
title: "Custom-Molded Snap-In Magnetic Gasket",
|
|
46
53
|
partNumber: 'MG064 36" x 79" 3-Sided Dart-to-Dart Gasket',
|
|
@@ -50,26 +57,26 @@ const a = {
|
|
|
50
57
|
inventory: {},
|
|
51
58
|
price: "$129.99"
|
|
52
59
|
},
|
|
53
|
-
render: (
|
|
54
|
-
},
|
|
60
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
61
|
+
}, u = {
|
|
55
62
|
args: {
|
|
56
63
|
availabilityId: void 0,
|
|
57
64
|
availability: void 0,
|
|
58
65
|
inventory: {},
|
|
59
66
|
price: "$99.99"
|
|
60
67
|
},
|
|
61
|
-
render: (
|
|
62
|
-
},
|
|
68
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
69
|
+
}, m = {
|
|
63
70
|
args: {
|
|
64
71
|
source: "cart"
|
|
65
72
|
},
|
|
66
|
-
render: (
|
|
67
|
-
},
|
|
73
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
74
|
+
}, y = {
|
|
68
75
|
args: {
|
|
69
76
|
source: "quote"
|
|
70
77
|
},
|
|
71
|
-
render: (
|
|
72
|
-
},
|
|
78
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
79
|
+
}, g = {
|
|
73
80
|
args: {
|
|
74
81
|
availabilityId: "limited",
|
|
75
82
|
availability: "Discontinued - limited stock",
|
|
@@ -81,14 +88,20 @@ const a = {
|
|
|
81
88
|
quantity: 2,
|
|
82
89
|
maxQuantity: 2
|
|
83
90
|
},
|
|
84
|
-
render: (
|
|
91
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
92
|
+
}, p = {
|
|
93
|
+
args: {
|
|
94
|
+
admonitions: r
|
|
95
|
+
},
|
|
96
|
+
render: (t) => /* @__PURE__ */ i("div", { style: { width: 360 }, children: /* @__PURE__ */ i("ul", { style: { margin: 0, padding: 0 }, children: /* @__PURE__ */ i(e, { ...t }) }) })
|
|
85
97
|
};
|
|
86
98
|
export {
|
|
87
|
-
|
|
88
|
-
c as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
99
|
+
p as Admonitions,
|
|
100
|
+
c as Basic,
|
|
101
|
+
m as CartSource,
|
|
102
|
+
v as CustomSpecs,
|
|
103
|
+
g as MaxQuantityCapped,
|
|
104
|
+
y as QuoteSource,
|
|
105
|
+
u as WithoutAvailability,
|
|
106
|
+
d as default
|
|
94
107
|
};
|
|
@@ -4,7 +4,7 @@ import { Text as l } from "../../atoms/Text/Text.js";
|
|
|
4
4
|
import { Button as h } from "../../atoms/Button/Button.js";
|
|
5
5
|
import { Icon as u } from "../../atoms/Icon/Icon.js";
|
|
6
6
|
import { CartPart as x } from "./CartPart.js";
|
|
7
|
-
import { s as t } from "../../Cart.module-
|
|
7
|
+
import { s as t } from "../../Cart.module-BIEAjANw.js";
|
|
8
8
|
function S({
|
|
9
9
|
open: p,
|
|
10
10
|
onClose: n,
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './assets/Cart.css';const t = "_cartIconButton_13798_2", e = "_count_13798_15", o = "_cartContainer_13798_30", n = "_headerWrapper_13798_41", _ = "_header_13798_41", a = "_cartItems_13798_59", c = "_cartItem_13798_59", r = "_itemContainer_13798_85", i = "_topRow_13798_89", s = "_itemInfo_13798_96", m = "_editUnit_13798_101", I = "_purchaseInformation_13798_117", u = "_availabilitySlot_13798_123", l = "_priceSlot_13798_130", p = "_itemManagement_13798_132", h = "_itemImage_13798_145", d = "_removeItem_13798_148", b = "_noItems_13798_158", f = "_subtotal_13798_165", g = "_checkoutButton_13798_172", v = {
|
|
2
|
-
cartIconButton: t,
|
|
3
|
-
count: e,
|
|
4
|
-
cartContainer: o,
|
|
5
|
-
headerWrapper: n,
|
|
6
|
-
header: _,
|
|
7
|
-
cartItems: a,
|
|
8
|
-
cartItem: c,
|
|
9
|
-
itemContainer: r,
|
|
10
|
-
topRow: i,
|
|
11
|
-
itemInfo: s,
|
|
12
|
-
editUnit: m,
|
|
13
|
-
purchaseInformation: I,
|
|
14
|
-
availabilitySlot: u,
|
|
15
|
-
priceSlot: l,
|
|
16
|
-
itemManagement: p,
|
|
17
|
-
itemImage: h,
|
|
18
|
-
removeItem: d,
|
|
19
|
-
noItems: b,
|
|
20
|
-
subtotal: f,
|
|
21
|
-
checkoutButton: g
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
v as s
|
|
25
|
-
};
|