@caseparts-org/caseblocks 0.0.218 → 0.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/CustomWizardBadge.css +1 -0
- package/dist/assets/Product.css +1 -1
- package/dist/main-client.js +64 -62
- package/dist/main-server.d.ts +2 -0
- package/dist/main-server.js +30 -28
- package/dist/molecules/CustomWizardBadge/CustomWizardBadge.d.ts +9 -0
- package/dist/molecules/CustomWizardBadge/CustomWizardBadge.js +43 -0
- package/dist/organisms/Product/Product.d.ts +3 -3
- package/dist/organisms/Product/Product.js +112 -127
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._badge_h5l68_1{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:var(--spacing-spacing-4xs);max-width:70%;overflow:hidden;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-2xs);border-radius:0 0 0 12px;background-color:var(--text-text-secondary);opacity:.8;text-align:center;font-style:italic;text-decoration:none;white-space:nowrap;transition:background-color .2s ease-in}@media (max-width: 768px){._badge_h5l68_1{padding:var(--spacing-spacing-3xs) var(--spacing-spacing-2xs);border-radius:0 0 0 10px}}._badge_h5l68_1:hover{background-color:var(--color-alerts-warning)}._inherit_h5l68_31{background-color:inherit}._warning_h5l68_35{background-color:var(--text-text-caution)}._disabled_h5l68_39{background-color:var(--text-text-disabled)}._error-warning_h5l68_43{background-color:var(--text-text-error-warning)}._default-inverted_h5l68_47{background-color:var(--text-text-invert)}._links_h5l68_51{background-color:var(--text-text-links)}._links-hover-press_h5l68_55{background-color:var(--text-text-links-hover-press)}._primary_h5l68_59{background-color:var(--text-text-primary)}._quaternary_h5l68_63{background-color:var(--text-text-quaternary)}._search-bar_h5l68_67{background-color:var(--text-text-search-bar)}._secondary_h5l68_71{background-color:var(--text-text-secondary)}._success_h5l68_75{background-color:var(--text-text-success)}._tertiary_h5l68_79{background-color:var(--text-text-tertiary)}._footer_h5l68_83{background-color:var(--text-text-footer)}._text_h5l68_87{text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-size-xs);line-height:var(--font-line-height-xs)}@media (max-width: 768px){._text_h5l68_87{font-size:var(--font-size-xxs);line-height:var(--font-line-height-xxs)}}
|
package/dist/assets/Product.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._productCard_1qkjr_3{box-sizing:border-box;position:relative;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_1qkjr_3._sm_1qkjr_16{width:180px;height:230px}._productCard_1qkjr_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_1qkjr_3 ._productInformation_1qkjr_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_1qkjr_3 ._purchaseInformation_1qkjr_33{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_1qkjr_3 ._addToCart_1qkjr_41,._productCard_1qkjr_3 ._addToCartButton_1qkjr_44{width:100%}._productInformation_1qkjr_26>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_1qkjr_54{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_1qkjr_61{color:var(--text-text-quaternary)}._productTile_1qkjr_65{box-sizing:border-box;position:relative;z-index:1;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_1qkjr_65>img{object-fit:contain}._productTile_1qkjr_65 ._productInformation_1qkjr_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_1qkjr_65 ._productData_1qkjr_93{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_1qkjr_65 ._purchase_1qkjr_33{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_1qkjr_65 ._purchase_1qkjr_33{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_1qkjr_65 ._purchaseInformation_1qkjr_33{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_1qkjr_65 ._purchaseInformation_1qkjr_33{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_1qkjr_65 ._attributeContainer_1qkjr_130{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_1qkjr_65 ._attributeContainer_1qkjr_130{display:none}}._productTile_1qkjr_65 ._attributeContainer_1qkjr_130 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_1qkjr_65 ._addToCart_1qkjr_41{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_1qkjr_65 ._addToCart_1qkjr_41{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_1qkjr_65 ._addToCartButton_1qkjr_44{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_1qkjr_65 ._addToCartButton_1qkjr_44{width:100%}}._elevated_1qkjr_178{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_1qkjr_184 ._productInformation_1qkjr_26{margin-top:0}._sm_1qkjr_16{padding:var(--spacing-spacing-1xs)}
|
package/dist/main-client.js
CHANGED
|
@@ -7,108 +7,110 @@ import { Root as u } from "./atoms/Root/Root.js";
|
|
|
7
7
|
import { Separator as g } from "./atoms/Separator/Separator.js";
|
|
8
8
|
import { Text as s } from "./atoms/Text/Text.js";
|
|
9
9
|
import { Input as A } from "./atoms/Input/Input.js";
|
|
10
|
-
import { ToggleSwitch as
|
|
10
|
+
import { ToggleSwitch as P } from "./atoms/ToggleSwitch/ToggleSwitch.js";
|
|
11
11
|
import { Link as k } from "./atoms/Link/Link.js";
|
|
12
12
|
import { linkClassName as h } from "./atoms/Link/linkClassName.js";
|
|
13
13
|
import { configureLink as w, routerOverride as L } from "./atoms/Link/configureLink.js";
|
|
14
14
|
import { LinkButton as y } from "./atoms/LinkButton/LinkButton.js";
|
|
15
15
|
import { Pill as H } from "./atoms/Pill/Pill.js";
|
|
16
16
|
import { configureImage as N } from "./atoms/Image/configureImage.js";
|
|
17
|
-
import { getHideAtStyles as
|
|
17
|
+
import { getHideAtStyles as z } from "./atoms/HideAt.js";
|
|
18
18
|
import { Logo as E } from "./molecules/Logo/Logo.js";
|
|
19
19
|
import { SearchBox as O } from "./molecules/SearchBox/SearchBox.js";
|
|
20
20
|
import { QuantityInput as R } from "./molecules/QuantityInput/QuantityInput.js";
|
|
21
|
-
import { Pricing as
|
|
22
|
-
import { ProgressBar as
|
|
23
|
-
import { Availability as
|
|
21
|
+
import { Pricing as Z } from "./molecules/Pricing/Pricing.js";
|
|
22
|
+
import { ProgressBar as q } from "./molecules/ProgressBar/ProgressBar.js";
|
|
23
|
+
import { Availability as K } from "./molecules/Availability/Availability.js";
|
|
24
24
|
import { Avatar as X } from "./molecules/Avatar/Avatar.js";
|
|
25
25
|
import { BannerCard as _ } from "./molecules/BannerCard/BannerCard.js";
|
|
26
26
|
import { CardLink as oo } from "./molecules/CardLink/CardLink.js";
|
|
27
27
|
import { Breadcrumbs as eo } from "./molecules/Breadcrumbs/Breadcrumbs.js";
|
|
28
28
|
import { Disclaimer as mo } from "./molecules/Disclaimer/Disclaimer.js";
|
|
29
29
|
import { Admonition as fo } from "./molecules/Admonition/Admonition.js";
|
|
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 {
|
|
30
|
+
import { CustomWizardBadge as ao } from "./molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
31
|
+
import { NotFound as no } from "./organisms/NotFound/NotFound.js";
|
|
32
|
+
import { HorizontalScroll as uo } from "./atoms/HorizontalScroll/HorizontalScroll.js";
|
|
33
|
+
import { SlideInPanel as go } from "./atoms/SlideInPanel/SlideInPanel.js";
|
|
34
|
+
import { DropdownButton as so } from "./atoms/DropdownButton/DropdownButton.js";
|
|
35
|
+
import { Tooltip as Ao } from "./atoms/Tooltip/Tooltip.js";
|
|
36
|
+
import { Popover as Po } from "./atoms/Popover/Popover.js";
|
|
37
|
+
import { Accordion as ko } from "./molecules/Accordion/Accordion.js";
|
|
38
|
+
import { Account as ho } from "./molecules/Account/Account.js";
|
|
39
|
+
import { Chip as wo } from "./molecules/Chip/Chip.js";
|
|
40
|
+
import { ToggleView as bo } from "./molecules/ToggleView/ToggleView.js";
|
|
41
|
+
import { CartPart as Fo } from "./molecules/Cart/CartPart.js";
|
|
42
|
+
import { AddToCartPart as Mo } from "./molecules/AddToCartPart/AddToCartPart.js";
|
|
43
|
+
import { CartSlideInPanel as Vo } from "./molecules/Cart/CartSlideInPanel.js";
|
|
44
|
+
import { StatefulButton as Do } from "./molecules/StatefulButton/StatefulButton.js";
|
|
45
|
+
import { AnimatedCheckMark as Go } from "./molecules/StatefulButton/AnimatedCheckmark.js";
|
|
46
|
+
import { AddToCart as Qo } from "./molecules/AddToCart/AddToCart.js";
|
|
47
|
+
import { Modal as Wo } from "./molecules/Modal/Modal.js";
|
|
48
|
+
import { ImageViewer as jo } from "./molecules/ImageViewer/ImageViewer.js";
|
|
49
|
+
import { T as Jo } from "./Table-BX4PtCNE.js";
|
|
50
|
+
import { Error as Uo } from "./molecules/Error/Error.js";
|
|
51
|
+
import { MainNav as Yo } from "./organisms/MainNav/MainNav.js";
|
|
52
|
+
import { ChipSelector as $o } from "./organisms/ChipSelector/ChipSelector.js";
|
|
53
|
+
import { Product as rr } from "./organisms/Product/Product.js";
|
|
54
|
+
import { Carousel as tr } from "./organisms/Carousel/Carousel.js";
|
|
55
|
+
import { Footer as pr } from "./organisms/Footer/Footer.js";
|
|
56
|
+
import { default as xr } from "./organisms/SpinZoomViewer/SpinZoomViewer.js";
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
ko as Accordion,
|
|
59
|
+
ho as Account,
|
|
60
|
+
Qo as AddToCart,
|
|
61
|
+
Mo as AddToCartPart,
|
|
61
62
|
fo as Admonition,
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
Go as AnimatedCheckMark,
|
|
64
|
+
K as Availability,
|
|
64
65
|
X as Avatar,
|
|
65
66
|
_ as BannerCard,
|
|
66
67
|
eo as Breadcrumbs,
|
|
67
68
|
e as Button,
|
|
68
69
|
oo as CardLink,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
tr as Carousel,
|
|
71
|
+
Fo as CartPart,
|
|
72
|
+
Vo as CartSlideInPanel,
|
|
73
|
+
wo as Chip,
|
|
74
|
+
$o as ChipSelector,
|
|
74
75
|
f as Column,
|
|
76
|
+
ao as CustomWizardBadge,
|
|
75
77
|
mo as Disclaimer,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
so as DropdownButton,
|
|
79
|
+
Uo as Error,
|
|
78
80
|
m as Flex,
|
|
79
|
-
|
|
81
|
+
pr as Footer,
|
|
80
82
|
x as Grid,
|
|
81
83
|
i as Head,
|
|
82
|
-
|
|
84
|
+
uo as HorizontalScroll,
|
|
83
85
|
l as Icon,
|
|
84
|
-
|
|
86
|
+
jo as ImageViewer,
|
|
85
87
|
A as Input,
|
|
86
88
|
k as Link,
|
|
87
89
|
y as LinkButton,
|
|
88
90
|
E as Logo,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
Yo as MainNav,
|
|
92
|
+
Wo as Modal,
|
|
93
|
+
no as NotFound,
|
|
92
94
|
H as Pill,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
Po as Popover,
|
|
96
|
+
Z as Pricing,
|
|
97
|
+
rr as Product,
|
|
98
|
+
q as ProgressBar,
|
|
97
99
|
R as QuantityInput,
|
|
98
100
|
u as Root,
|
|
99
101
|
O as SearchBox,
|
|
100
102
|
g as Separator,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
go as SlideInPanel,
|
|
104
|
+
xr as SpinZoomViewer,
|
|
105
|
+
Do as StatefulButton,
|
|
106
|
+
Jo as Table,
|
|
105
107
|
s as Text,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
P as ToggleSwitch,
|
|
109
|
+
bo as ToggleView,
|
|
110
|
+
Ao as Tooltip,
|
|
109
111
|
N as configureImage,
|
|
110
112
|
w as configureLink,
|
|
111
|
-
|
|
113
|
+
z as getHideAtStyles,
|
|
112
114
|
h as linkClassName,
|
|
113
115
|
L as routerOverride
|
|
114
116
|
};
|
package/dist/main-server.d.ts
CHANGED
|
@@ -52,5 +52,7 @@ export { Disclaimer } from './molecules/Disclaimer/Disclaimer';
|
|
|
52
52
|
export type { DisclaimerProps, DisclaimerSeverity } from './molecules/Disclaimer/Disclaimer';
|
|
53
53
|
export { Admonition } from './molecules/Admonition/Admonition';
|
|
54
54
|
export type { AdmonitionProps, AdmonitionVariant } from './molecules/Admonition/Admonition';
|
|
55
|
+
export { CustomWizardBadge } from './molecules/CustomWizardBadge/CustomWizardBadge';
|
|
56
|
+
export type { CustomWizardBadgeProps } from './molecules/CustomWizardBadge/CustomWizardBadge';
|
|
55
57
|
export { NotFound } from './organisms/NotFound/NotFound';
|
|
56
58
|
export type { NotFoundProps } from './organisms/NotFound/NotFound';
|
package/dist/main-server.js
CHANGED
|
@@ -1,64 +1,66 @@
|
|
|
1
1
|
import { Button as e } from "./atoms/Button/Button.js";
|
|
2
2
|
import { Flex as m } from "./atoms/Flex/Flex.js";
|
|
3
3
|
import { Column as x, Grid as f } from "./atoms/Grid/Grid.js";
|
|
4
|
-
import { Head as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Root as
|
|
4
|
+
import { Head as a } from "./atoms/Root/Head.js";
|
|
5
|
+
import { Icon as u } from "./atoms/Icon/Icon.js";
|
|
6
|
+
import { Root as l } from "./atoms/Root/Root.js";
|
|
7
7
|
import { Separator as c } from "./atoms/Separator/Separator.js";
|
|
8
8
|
import { Text as B } from "./atoms/Text/Text.js";
|
|
9
|
-
import { Input as
|
|
10
|
-
import { ToggleSwitch as
|
|
9
|
+
import { Input as C } from "./atoms/Input/Input.js";
|
|
10
|
+
import { ToggleSwitch as A } from "./atoms/ToggleSwitch/ToggleSwitch.js";
|
|
11
11
|
import { Link as S } from "./atoms/Link/Link.js";
|
|
12
12
|
import { linkClassName as y } from "./atoms/Link/linkClassName.js";
|
|
13
13
|
import { configureLink as b, routerOverride as h } from "./atoms/Link/configureLink.js";
|
|
14
14
|
import { LinkButton as H } from "./atoms/LinkButton/LinkButton.js";
|
|
15
15
|
import { Pill as T } from "./atoms/Pill/Pill.js";
|
|
16
|
-
import { configureImage as
|
|
17
|
-
import { getHideAtStyles as
|
|
18
|
-
import { Logo as
|
|
19
|
-
import { SearchBox as
|
|
20
|
-
import { QuantityInput as
|
|
21
|
-
import { Pricing as
|
|
22
|
-
import { ProgressBar as
|
|
23
|
-
import { Availability as
|
|
16
|
+
import { configureImage as z } from "./atoms/Image/configureImage.js";
|
|
17
|
+
import { getHideAtStyles as G } from "./atoms/HideAt.js";
|
|
18
|
+
import { Logo as Q } from "./molecules/Logo/Logo.js";
|
|
19
|
+
import { SearchBox as W } from "./molecules/SearchBox/SearchBox.js";
|
|
20
|
+
import { QuantityInput as q } from "./molecules/QuantityInput/QuantityInput.js";
|
|
21
|
+
import { Pricing as J } from "./molecules/Pricing/Pricing.js";
|
|
22
|
+
import { ProgressBar as M } from "./molecules/ProgressBar/ProgressBar.js";
|
|
23
|
+
import { Availability as V } from "./molecules/Availability/Availability.js";
|
|
24
24
|
import { Avatar as Y } from "./molecules/Avatar/Avatar.js";
|
|
25
25
|
import { BannerCard as _ } from "./molecules/BannerCard/BannerCard.js";
|
|
26
26
|
import { CardLink as rr } from "./molecules/CardLink/CardLink.js";
|
|
27
27
|
import { Breadcrumbs as er } from "./molecules/Breadcrumbs/Breadcrumbs.js";
|
|
28
28
|
import { Disclaimer as mr } from "./molecules/Disclaimer/Disclaimer.js";
|
|
29
29
|
import { Admonition as xr } from "./molecules/Admonition/Admonition.js";
|
|
30
|
-
import {
|
|
30
|
+
import { CustomWizardBadge as ir } from "./molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
31
|
+
import { NotFound as nr } from "./organisms/NotFound/NotFound.js";
|
|
31
32
|
export {
|
|
32
33
|
xr as Admonition,
|
|
33
|
-
|
|
34
|
+
V as Availability,
|
|
34
35
|
Y as Avatar,
|
|
35
36
|
_ as BannerCard,
|
|
36
37
|
er as Breadcrumbs,
|
|
37
38
|
e as Button,
|
|
38
39
|
rr as CardLink,
|
|
39
40
|
x as Column,
|
|
41
|
+
ir as CustomWizardBadge,
|
|
40
42
|
mr as Disclaimer,
|
|
41
43
|
m as Flex,
|
|
42
44
|
f as Grid,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
a as Head,
|
|
46
|
+
u as Icon,
|
|
47
|
+
C as Input,
|
|
46
48
|
S as Link,
|
|
47
49
|
H as LinkButton,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
Q as Logo,
|
|
51
|
+
nr as NotFound,
|
|
50
52
|
T as Pill,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
J as Pricing,
|
|
54
|
+
M as ProgressBar,
|
|
55
|
+
q as QuantityInput,
|
|
56
|
+
l as Root,
|
|
57
|
+
W as SearchBox,
|
|
56
58
|
c as Separator,
|
|
57
59
|
B as Text,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
A as ToggleSwitch,
|
|
61
|
+
z as configureImage,
|
|
60
62
|
b as configureLink,
|
|
61
|
-
|
|
63
|
+
G as getHideAtStyles,
|
|
62
64
|
y as linkClassName,
|
|
63
65
|
h as routerOverride
|
|
64
66
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextProps } from '../../atoms/Text/Text';
|
|
2
|
+
export interface CustomWizardBadgeProps {
|
|
3
|
+
href: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
colorToken?: TextProps['colorToken'];
|
|
6
|
+
className?: string;
|
|
7
|
+
textClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function CustomWizardBadge({ href, text, colorToken, className, textClassName, }: CustomWizardBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Link as i } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Text as l } from "../../atoms/Text/Text.js";
|
|
5
|
+
import '../../assets/CustomWizardBadge.css';const c = "_badge_h5l68_1", h = "_inherit_h5l68_31", d = "_warning_h5l68_35", u = "_disabled_h5l68_39", m = "_links_h5l68_51", y = "_primary_h5l68_59", g = "_quaternary_h5l68_63", f = "_secondary_h5l68_71", p = "_success_h5l68_75", b = "_tertiary_h5l68_79", x = "_footer_h5l68_83", k = "_text_h5l68_87", r = {
|
|
6
|
+
badge: c,
|
|
7
|
+
inherit: h,
|
|
8
|
+
warning: d,
|
|
9
|
+
disabled: u,
|
|
10
|
+
"error-warning": "_error-warning_h5l68_43",
|
|
11
|
+
"default-inverted": "_default-inverted_h5l68_47",
|
|
12
|
+
links: m,
|
|
13
|
+
"links-hover-press": "_links-hover-press_h5l68_55",
|
|
14
|
+
primary: y,
|
|
15
|
+
quaternary: g,
|
|
16
|
+
"search-bar": "_search-bar_h5l68_67",
|
|
17
|
+
secondary: f,
|
|
18
|
+
success: p,
|
|
19
|
+
tertiary: b,
|
|
20
|
+
footer: x,
|
|
21
|
+
text: k
|
|
22
|
+
};
|
|
23
|
+
function C({
|
|
24
|
+
href: s,
|
|
25
|
+
text: n = "Customize",
|
|
26
|
+
colorToken: _ = "secondary",
|
|
27
|
+
className: a,
|
|
28
|
+
textClassName: o
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ e(i, { href: s, unstyled: !0, className: t(r.badge, r[_], a), children: /* @__PURE__ */ e(
|
|
31
|
+
l,
|
|
32
|
+
{
|
|
33
|
+
size: "xs",
|
|
34
|
+
weight: "regular",
|
|
35
|
+
colorToken: "default-inverted",
|
|
36
|
+
className: t(r.text, o),
|
|
37
|
+
children: n
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
C as CustomWizardBadge
|
|
43
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextProps } from '../../atoms/Text/Text';
|
|
2
1
|
import { AvailabilityProps } from '../../molecules/Availability/Availability';
|
|
2
|
+
import { CustomWizardBadgeProps } from '../../molecules/CustomWizardBadge/CustomWizardBadge';
|
|
3
3
|
export type ProductView = "Card" | "Tile";
|
|
4
4
|
export type Size = "md" | "sm";
|
|
5
5
|
export interface ProductProps extends AvailabilityProps {
|
|
@@ -7,8 +7,8 @@ export interface ProductProps extends AvailabilityProps {
|
|
|
7
7
|
productDescription: string;
|
|
8
8
|
availDescription: string;
|
|
9
9
|
customWizardUrl?: string;
|
|
10
|
-
customWizardText?:
|
|
11
|
-
customWizardColorToken?:
|
|
10
|
+
customWizardText?: CustomWizardBadgeProps["text"];
|
|
11
|
+
customWizardColorToken?: CustomWizardBadgeProps["colorToken"];
|
|
12
12
|
productHref?: string;
|
|
13
13
|
itemKey: number;
|
|
14
14
|
partNumber: string;
|
|
@@ -1,179 +1,164 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
2
|
-
import { Image as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Text as
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Image as w } from "../../atoms/Image/Image.js";
|
|
3
|
+
import { Link as $ } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Text as n } from "../../atoms/Text/Text.js";
|
|
5
5
|
import { Availability as P } from "../../molecules/Availability/Availability.js";
|
|
6
|
-
import { Pricing as
|
|
7
|
-
import { AddToCart as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"customWizardBadge-disabled": "_customWizardBadge-disabled_1adwd_208",
|
|
26
|
-
"customWizardBadge-error-warning": "_customWizardBadge-error-warning_1adwd_212",
|
|
27
|
-
"customWizardBadge-default-inverted": "_customWizardBadge-default-inverted_1adwd_216",
|
|
28
|
-
"customWizardBadge-links": "_customWizardBadge-links_1adwd_220",
|
|
29
|
-
"customWizardBadge-links-hover-press": "_customWizardBadge-links-hover-press_1adwd_224",
|
|
30
|
-
"customWizardBadge-primary": "_customWizardBadge-primary_1adwd_228",
|
|
31
|
-
"customWizardBadge-quaternary": "_customWizardBadge-quaternary_1adwd_232",
|
|
32
|
-
"customWizardBadge-search-bar": "_customWizardBadge-search-bar_1adwd_236",
|
|
33
|
-
"customWizardBadge-secondary": "_customWizardBadge-secondary_1adwd_240",
|
|
34
|
-
"customWizardBadge-success": "_customWizardBadge-success_1adwd_244",
|
|
35
|
-
"customWizardBadge-tertiary": "_customWizardBadge-tertiary_1adwd_248",
|
|
36
|
-
"customWizardBadge-footer": "_customWizardBadge-footer_1adwd_252",
|
|
37
|
-
customWizardBadgeText: Q,
|
|
38
|
-
elevated: S,
|
|
39
|
-
noImage: U
|
|
6
|
+
import { Pricing as D } from "../../molecules/Pricing/Pricing.js";
|
|
7
|
+
import { AddToCart as V } from "../../molecules/AddToCart/AddToCart.js";
|
|
8
|
+
import { CustomWizardBadge as k } from "../../molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
9
|
+
import { c as E } from "../../clsx-OuTLNxxd.js";
|
|
10
|
+
import '../../assets/Product.css';const G = "_productCard_1qkjr_3", J = "_sm_1qkjr_16", M = "_productInformation_1qkjr_26", O = "_purchaseInformation_1qkjr_33", R = "_addToCart_1qkjr_41", X = "_addToCartButton_1qkjr_44", Y = "_partNumber_1qkjr_54", Z = "_partNumberLabel_1qkjr_61", H = "_productTile_1qkjr_65", y = "_productData_1qkjr_93", L = "_purchase_1qkjr_33", K = "_attributeContainer_1qkjr_130", Q = "_elevated_1qkjr_178", S = "_noImage_1qkjr_184", r = {
|
|
11
|
+
productCard: G,
|
|
12
|
+
sm: J,
|
|
13
|
+
productInformation: M,
|
|
14
|
+
purchaseInformation: O,
|
|
15
|
+
addToCart: R,
|
|
16
|
+
addToCartButton: X,
|
|
17
|
+
partNumber: Y,
|
|
18
|
+
partNumberLabel: Z,
|
|
19
|
+
productTile: H,
|
|
20
|
+
productData: y,
|
|
21
|
+
purchase: L,
|
|
22
|
+
attributeContainer: K,
|
|
23
|
+
elevated: Q,
|
|
24
|
+
noImage: S
|
|
40
25
|
};
|
|
41
|
-
function
|
|
42
|
-
productView:
|
|
26
|
+
function nr({
|
|
27
|
+
productView: F,
|
|
43
28
|
itemKey: c,
|
|
44
|
-
partNumber:
|
|
45
|
-
productDescription:
|
|
46
|
-
availDescription:
|
|
47
|
-
availId:
|
|
48
|
-
inventory:
|
|
49
|
-
productHref:
|
|
50
|
-
customWizardUrl:
|
|
51
|
-
customWizardText:
|
|
52
|
-
customWizardColorToken:
|
|
53
|
-
priceLabel:
|
|
29
|
+
partNumber: s,
|
|
30
|
+
productDescription: b,
|
|
31
|
+
availDescription: f,
|
|
32
|
+
availId: m,
|
|
33
|
+
inventory: N,
|
|
34
|
+
productHref: T,
|
|
35
|
+
customWizardUrl: l,
|
|
36
|
+
customWizardText: j = "Customize",
|
|
37
|
+
customWizardColorToken: C = "secondary",
|
|
38
|
+
priceLabel: g,
|
|
54
39
|
price: u,
|
|
55
40
|
imgSrc: o,
|
|
56
|
-
attributes:
|
|
57
|
-
className:
|
|
41
|
+
attributes: _,
|
|
42
|
+
className: q,
|
|
58
43
|
onAddToCart: v,
|
|
59
44
|
flat: x,
|
|
60
|
-
size:
|
|
61
|
-
showQuantity:
|
|
62
|
-
onLinkClicked:
|
|
63
|
-
requiresUnitDetails:
|
|
64
|
-
maxQuantity:
|
|
65
|
-
...
|
|
45
|
+
size: a = "md",
|
|
46
|
+
showQuantity: i = !0,
|
|
47
|
+
onLinkClicked: d,
|
|
48
|
+
requiresUnitDetails: I = !1,
|
|
49
|
+
maxQuantity: B,
|
|
50
|
+
...A
|
|
66
51
|
}) {
|
|
67
|
-
const
|
|
68
|
-
return
|
|
52
|
+
const p = a === "sm" ? "xs" : "sm";
|
|
53
|
+
return F === "Card" ? /* @__PURE__ */ e(
|
|
69
54
|
"div",
|
|
70
55
|
{
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
!x &&
|
|
76
|
-
!o &&
|
|
56
|
+
className: E(
|
|
57
|
+
r.productCard,
|
|
58
|
+
a && r[a],
|
|
59
|
+
q,
|
|
60
|
+
!x && r.elevated,
|
|
61
|
+
!o && r.noImage
|
|
77
62
|
),
|
|
78
|
-
...
|
|
63
|
+
...A,
|
|
79
64
|
children: [
|
|
80
|
-
|
|
81
|
-
o && /* @__PURE__ */
|
|
82
|
-
|
|
65
|
+
l && /* @__PURE__ */ t(k, { href: l, text: j, colorToken: C }),
|
|
66
|
+
o && /* @__PURE__ */ t(
|
|
67
|
+
w,
|
|
83
68
|
{
|
|
84
69
|
src: o,
|
|
85
|
-
alt: `${
|
|
86
|
-
height:
|
|
87
|
-
width:
|
|
70
|
+
alt: `${s} product image`,
|
|
71
|
+
height: a === "sm" ? 78 : 96,
|
|
72
|
+
width: a === "sm" ? 78 : 96
|
|
88
73
|
}
|
|
89
74
|
),
|
|
90
|
-
/* @__PURE__ */ e("div", { className:
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */ e("div", { className:
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ e("div", { className: r.productInformation, children: [
|
|
76
|
+
/* @__PURE__ */ t($, { onClick: () => d == null ? void 0 : d(c), size: a, href: T || "#", children: b }),
|
|
77
|
+
/* @__PURE__ */ e("div", { className: r.partNumber, children: [
|
|
78
|
+
/* @__PURE__ */ t(n, { size: p, className: r.partNumberLabel, children: "Part #" }),
|
|
79
|
+
/* @__PURE__ */ t(n, { size: p, weight: "semibold", children: s })
|
|
95
80
|
] })
|
|
96
81
|
] }),
|
|
97
|
-
/* @__PURE__ */ e("div", { className:
|
|
98
|
-
|
|
82
|
+
/* @__PURE__ */ e("div", { className: r.purchaseInformation, children: [
|
|
83
|
+
m && /* @__PURE__ */ t(
|
|
99
84
|
P,
|
|
100
85
|
{
|
|
101
|
-
availId:
|
|
102
|
-
availDescription:
|
|
103
|
-
inventory:
|
|
86
|
+
availId: m,
|
|
87
|
+
availDescription: f,
|
|
88
|
+
inventory: N,
|
|
104
89
|
enableTooltip: !0
|
|
105
90
|
}
|
|
106
91
|
),
|
|
107
|
-
u && /* @__PURE__ */
|
|
92
|
+
u && /* @__PURE__ */ t(D, { pricingLabel: g, price: u })
|
|
108
93
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
94
|
+
/* @__PURE__ */ t(
|
|
95
|
+
V,
|
|
111
96
|
{
|
|
112
97
|
itemKey: c,
|
|
113
98
|
onAdd: v,
|
|
114
|
-
max:
|
|
115
|
-
className:
|
|
116
|
-
addButtonClassName:
|
|
117
|
-
addButtonVariant:
|
|
118
|
-
size:
|
|
99
|
+
max: B,
|
|
100
|
+
className: r.addToCart,
|
|
101
|
+
addButtonClassName: r.addToCartButton,
|
|
102
|
+
addButtonVariant: i ? "cta-primary" : "secondary",
|
|
103
|
+
size: a,
|
|
119
104
|
buttonDoneText: "",
|
|
120
|
-
buttonText:
|
|
121
|
-
showQuantity:
|
|
122
|
-
requiresUnitDetails:
|
|
105
|
+
buttonText: i ? "Add" : "Add to Cart",
|
|
106
|
+
showQuantity: i,
|
|
107
|
+
requiresUnitDetails: I
|
|
123
108
|
}
|
|
124
109
|
)
|
|
125
110
|
]
|
|
126
111
|
}
|
|
127
|
-
) : /* @__PURE__ */ e("div", { className:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
!x &&
|
|
132
|
-
!o &&
|
|
133
|
-
), ...
|
|
134
|
-
|
|
135
|
-
o && /* @__PURE__ */
|
|
136
|
-
|
|
112
|
+
) : /* @__PURE__ */ e("div", { className: E(
|
|
113
|
+
r.productTile,
|
|
114
|
+
q,
|
|
115
|
+
a && r[a],
|
|
116
|
+
!x && r.elevated,
|
|
117
|
+
!o && r.noImage
|
|
118
|
+
), ...A, children: [
|
|
119
|
+
l && /* @__PURE__ */ t(k, { href: l, text: j, colorToken: C }),
|
|
120
|
+
o && /* @__PURE__ */ t(
|
|
121
|
+
w,
|
|
137
122
|
{
|
|
138
123
|
src: o,
|
|
139
|
-
alt: `${
|
|
140
|
-
height:
|
|
141
|
-
width:
|
|
124
|
+
alt: `${s} product image`,
|
|
125
|
+
height: a === "sm" ? 86 : 108,
|
|
126
|
+
width: a === "sm" ? 86 : 108
|
|
142
127
|
}
|
|
143
128
|
),
|
|
144
|
-
/* @__PURE__ */ e("div", { className:
|
|
145
|
-
/* @__PURE__ */ e("div", { className:
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */ e("div", { className:
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ e("div", { className: r.productData, children: [
|
|
130
|
+
/* @__PURE__ */ e("div", { className: r.productInformation, children: [
|
|
131
|
+
/* @__PURE__ */ t($, { onClick: () => d == null ? void 0 : d(c), size: a, href: T || "#", children: b }),
|
|
132
|
+
/* @__PURE__ */ e("div", { className: r.partNumber, children: [
|
|
133
|
+
/* @__PURE__ */ t(n, { size: p, className: r.partNumberLabel, children: "Part #" }),
|
|
134
|
+
/* @__PURE__ */ t(n, { size: p, weight: "semibold", children: s })
|
|
150
135
|
] })
|
|
151
136
|
] }),
|
|
152
|
-
/* @__PURE__ */ e("div", { className:
|
|
153
|
-
/* @__PURE__ */ e("div", { className:
|
|
154
|
-
|
|
137
|
+
/* @__PURE__ */ e("div", { className: r.purchase, children: [
|
|
138
|
+
/* @__PURE__ */ e("div", { className: r.purchaseInformation, children: [
|
|
139
|
+
m && /* @__PURE__ */ t(
|
|
155
140
|
P,
|
|
156
141
|
{
|
|
157
|
-
availId:
|
|
158
|
-
availDescription:
|
|
159
|
-
inventory:
|
|
142
|
+
availId: m,
|
|
143
|
+
availDescription: f,
|
|
144
|
+
inventory: N,
|
|
160
145
|
enableTooltip: !0
|
|
161
146
|
}
|
|
162
147
|
),
|
|
163
|
-
u && /* @__PURE__ */
|
|
148
|
+
u && /* @__PURE__ */ t(D, { pricingLabel: g, price: u })
|
|
164
149
|
] }),
|
|
165
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ t(V, { size: a, itemKey: c, onAdd: v, max: B, className: r.addToCart, addButtonClassName: r.addToCartButton, requiresUnitDetails: I })
|
|
166
151
|
] }),
|
|
167
|
-
|
|
168
|
-
/* @__PURE__ */ e(
|
|
169
|
-
|
|
152
|
+
_ && _.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: _.map((h) => /* @__PURE__ */ e("li", { children: [
|
|
153
|
+
/* @__PURE__ */ e(n, { size: "xs", weight: "light", children: [
|
|
154
|
+
h.label,
|
|
170
155
|
":"
|
|
171
156
|
] }),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
] }, `${
|
|
157
|
+
/* @__PURE__ */ t(n, { size: "xs", weight: "semibold", children: h.value })
|
|
158
|
+
] }, `${h.label}.${h.value}`)) })
|
|
174
159
|
] })
|
|
175
160
|
] });
|
|
176
161
|
}
|
|
177
162
|
export {
|
|
178
|
-
|
|
163
|
+
nr as Product
|
|
179
164
|
};
|