@caseparts-org/caseblocks 0.0.214 → 0.0.216
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/Accordion.css +1 -0
- package/dist/assets/Product.css +1 -1
- package/dist/atoms/Input/Input.d.ts +1 -0
- package/dist/atoms/Input/Input.js +21 -21
- package/dist/main-client.d.ts +2 -0
- package/dist/main-client.js +44 -42
- package/dist/molecules/Accordion/Accordion.d.ts +27 -0
- package/dist/molecules/Accordion/Accordion.js +49 -0
- package/dist/molecules/Accordion/Accordion.stories.d.ts +27 -0
- package/dist/molecules/Accordion/Accordion.stories.js +72 -0
- package/dist/organisms/Product/Product.d.ts +5 -2
- package/dist/organisms/Product/Product.js +128 -120
- package/dist/organisms/Product/Product.stories.d.ts +6 -0
- package/dist/organisms/Product/Product.stories.js +12 -11
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._accordion_1f0ed_1{width:100%;border:none}._accordionItem_1f0ed_11{display:flex;flex-direction:column;border-bottom:1px solid var(--color-neutrals-neutral-2)}._accordionItem_1f0ed_11:last-child{border:none}._accordionTrigger_1f0ed_31{display:flex;flex-direction:row;justify-content:space-between;width:100%;padding:12px;text-align:left;cursor:pointer;font-family:var(--font-family-heading);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);border:none;background-color:var(--color-brand-primary-white)}._accordionTrigger_1f0ed_31>._chevron_1f0ed_61{color:var(--color-brand-primary-primary-teal-blue);transition:transform .3s ease}._accordionTrigger_1f0ed_31>._chevronExpanded_1f0ed_71{transform:rotate(180deg)}._accordionContent_1f0ed_79{font-family:var(--font-family-body);font-weight:var(--font-weight-regular);background-color:var(--color-brand-primary-white);max-height:0;padding:0 12px;overflow:hidden;transition:max-height .3s ease,padding .3s}._expanded_1f0ed_99{max-height:1000px;padding:0 12px 12px}
|
package/dist/assets/Product.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._productCard_sx511_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_sx511_3._sm_sx511_16{width:180px;height:230px}._productCard_sx511_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_sx511_3 ._productInformation_sx511_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_sx511_3 ._purchaseInformation_sx511_33{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_sx511_3 ._addToCart_sx511_41,._productCard_sx511_3 ._addToCartButton_sx511_44{width:100%}._productInformation_sx511_26>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_sx511_54{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_sx511_61{color:var(--text-text-quaternary)}._productTile_sx511_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_sx511_65>img{object-fit:contain}._productTile_sx511_65 ._productInformation_sx511_26{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_sx511_65 ._productData_sx511_93{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_sx511_65 ._purchase_sx511_33{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_sx511_65 ._purchase_sx511_33{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_sx511_65 ._purchaseInformation_sx511_33{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_sx511_65 ._purchaseInformation_sx511_33{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_sx511_65 ._attributeContainer_sx511_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_sx511_65 ._attributeContainer_sx511_130{display:none}}._productTile_sx511_65 ._attributeContainer_sx511_130 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_sx511_65 ._addToCart_sx511_41{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_sx511_65 ._addToCart_sx511_41{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_sx511_65 ._addToCartButton_sx511_44{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_sx511_65 ._addToCartButton_sx511_44{width:100%}}._customWizardBadge_sx511_177{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-3xs) var(--spacing-spacing-3xs);border-radius:0 0 0 12px;background-color:var(--color-brand-primary-primary-tangerine);text-align:center;text-decoration:none;white-space:nowrap}@media (max-width: 768px){._customWizardBadge_sx511_177{padding:var(--spacing-spacing-3xs);border-radius:0 0 0 10px}}._customWizardBadgeText_sx511_200{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-size-xs);line-height:var(--font-line-height-xs)}@media (max-width: 768px){._customWizardBadgeText_sx511_200{font-size:var(--font-size-xxs);line-height:var(--font-line-height-xxs)}}._elevated_sx511_213{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_sx511_219 ._productInformation_sx511_26{margin-top:0}._sm_sx511_16{padding:var(--spacing-spacing-1xs)}
|
|
@@ -2,5 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { HideAtProps } from '../HideAt';
|
|
3
3
|
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "placeholder">, HideAtProps {
|
|
4
4
|
label: string | null;
|
|
5
|
+
placeholder?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { c
|
|
4
|
-
import { getHideAtStyles as
|
|
5
|
-
import '../../assets/Input.css';const
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import _, { useState as f } from "react";
|
|
3
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { getHideAtStyles as b } from "../HideAt.js";
|
|
5
|
+
import '../../assets/Input.css';const F = "_input_11f48_1", h = "_label_11f48_29", x = "_labelPlaceholder_11f48_43", e = {
|
|
6
6
|
"input-container": "_input-container_11f48_1",
|
|
7
|
-
input:
|
|
8
|
-
label:
|
|
9
|
-
labelPlaceholder:
|
|
10
|
-
},
|
|
11
|
-
({ label:
|
|
12
|
-
const [
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
7
|
+
input: F,
|
|
8
|
+
label: h,
|
|
9
|
+
labelPlaceholder: x
|
|
10
|
+
}, y = _.forwardRef(
|
|
11
|
+
({ label: t, placeholder: i, value: a, hideAt: r, className: u, ...l }, d) => {
|
|
12
|
+
const [m, n] = f(!1), o = m || !!a;
|
|
13
|
+
return /* @__PURE__ */ p("div", { className: c(e["input-container"], b(r)), children: [
|
|
14
|
+
/* @__PURE__ */ s("label", { htmlFor: l.name, className: o ? e.label : e.labelPlaceholder, children: o ? t : i ?? t }),
|
|
15
|
+
/* @__PURE__ */ s(
|
|
16
16
|
"input",
|
|
17
17
|
{
|
|
18
|
-
value:
|
|
19
|
-
ref:
|
|
18
|
+
value: a,
|
|
19
|
+
ref: d,
|
|
20
20
|
id: l.name,
|
|
21
21
|
type: "text",
|
|
22
|
-
onFocus: () =>
|
|
23
|
-
onBlur: () =>
|
|
24
|
-
className:
|
|
22
|
+
onFocus: () => n(!0),
|
|
23
|
+
onBlur: () => n(!1),
|
|
24
|
+
className: c(e.input, u),
|
|
25
25
|
...l
|
|
26
26
|
}
|
|
27
27
|
)
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
|
|
31
|
+
y.displayName = "Input";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
y as Input
|
|
34
34
|
};
|
package/dist/main-client.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type { DropdownButtonProps, DropdownButtonOption, DropdownButtonStyles }
|
|
|
8
8
|
export { Tooltip } from './atoms/Tooltip/Tooltip';
|
|
9
9
|
export { Popover } from './atoms/Popover/Popover';
|
|
10
10
|
export type { PopoverProps } from './atoms/Popover/Popover';
|
|
11
|
+
export { Accordion } from './molecules/Accordion/Accordion';
|
|
12
|
+
export type { AccordionProps } from './molecules/Accordion/Accordion';
|
|
11
13
|
export { Account } from './molecules/Account/Account';
|
|
12
14
|
export type { AccountProps } from './molecules/Account/Account';
|
|
13
15
|
export { Chip } from './molecules/Chip/Chip';
|
package/dist/main-client.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Icon as l } from "./atoms/Icon/Icon.js";
|
|
|
6
6
|
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
|
-
import { Input as
|
|
9
|
+
import { Input as A } from "./atoms/Input/Input.js";
|
|
10
10
|
import { ToggleSwitch as B } 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";
|
|
@@ -32,77 +32,79 @@ import { HorizontalScroll as no } from "./atoms/HorizontalScroll/HorizontalScrol
|
|
|
32
32
|
import { SlideInPanel as uo } from "./atoms/SlideInPanel/SlideInPanel.js";
|
|
33
33
|
import { DropdownButton as go } from "./atoms/DropdownButton/DropdownButton.js";
|
|
34
34
|
import { Tooltip as so } from "./atoms/Tooltip/Tooltip.js";
|
|
35
|
-
import { Popover as
|
|
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 {
|
|
35
|
+
import { Popover as Ao } from "./atoms/Popover/Popover.js";
|
|
36
|
+
import { Accordion as Bo } from "./molecules/Accordion/Accordion.js";
|
|
37
|
+
import { Account as ko } from "./molecules/Account/Account.js";
|
|
38
|
+
import { Chip as ho } from "./molecules/Chip/Chip.js";
|
|
39
|
+
import { ToggleView as wo } from "./molecules/ToggleView/ToggleView.js";
|
|
40
|
+
import { CartPart as bo } from "./molecules/Cart/CartPart.js";
|
|
41
|
+
import { AddToCartPart as Fo } from "./molecules/AddToCartPart/AddToCartPart.js";
|
|
42
|
+
import { CartSlideInPanel as Mo } from "./molecules/Cart/CartSlideInPanel.js";
|
|
43
|
+
import { StatefulButton as Vo } from "./molecules/StatefulButton/StatefulButton.js";
|
|
44
|
+
import { AnimatedCheckMark as zo } from "./molecules/StatefulButton/AnimatedCheckmark.js";
|
|
45
|
+
import { AddToCart as Go } from "./molecules/AddToCart/AddToCart.js";
|
|
46
|
+
import { Modal as Qo } from "./molecules/Modal/Modal.js";
|
|
47
|
+
import { ImageViewer as Zo } from "./molecules/ImageViewer/ImageViewer.js";
|
|
48
|
+
import { T as qo } from "./Table-BX4PtCNE.js";
|
|
49
|
+
import { Error as Ko } from "./molecules/Error/Error.js";
|
|
50
|
+
import { MainNav as Wo } from "./organisms/MainNav/MainNav.js";
|
|
51
|
+
import { ChipSelector as Yo } from "./organisms/ChipSelector/ChipSelector.js";
|
|
52
|
+
import { Product as $o } from "./organisms/Product/Product.js";
|
|
53
|
+
import { Carousel as rr } from "./organisms/Carousel/Carousel.js";
|
|
54
|
+
import { Footer as tr } from "./organisms/Footer/Footer.js";
|
|
55
|
+
import { default as pr } from "./organisms/SpinZoomViewer/SpinZoomViewer.js";
|
|
55
56
|
export {
|
|
56
|
-
Bo as
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Bo as Accordion,
|
|
58
|
+
ko as Account,
|
|
59
|
+
Go as AddToCart,
|
|
60
|
+
Fo as AddToCartPart,
|
|
59
61
|
fo as Admonition,
|
|
60
|
-
|
|
62
|
+
zo as AnimatedCheckMark,
|
|
61
63
|
U as Availability,
|
|
62
64
|
X as Avatar,
|
|
63
65
|
_ as BannerCard,
|
|
64
66
|
eo as Breadcrumbs,
|
|
65
67
|
e as Button,
|
|
66
68
|
oo as CardLink,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
rr as Carousel,
|
|
70
|
+
bo as CartPart,
|
|
71
|
+
Mo as CartSlideInPanel,
|
|
72
|
+
ho as Chip,
|
|
73
|
+
Yo as ChipSelector,
|
|
72
74
|
f as Column,
|
|
73
75
|
mo as Disclaimer,
|
|
74
76
|
go as DropdownButton,
|
|
75
|
-
|
|
77
|
+
Ko as Error,
|
|
76
78
|
m as Flex,
|
|
77
|
-
|
|
79
|
+
tr as Footer,
|
|
78
80
|
x as Grid,
|
|
79
81
|
i as Head,
|
|
80
82
|
no as HorizontalScroll,
|
|
81
83
|
l as Icon,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
Zo as ImageViewer,
|
|
85
|
+
A as Input,
|
|
84
86
|
k as Link,
|
|
85
87
|
y as LinkButton,
|
|
86
88
|
E as Logo,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
Wo as MainNav,
|
|
90
|
+
Qo as Modal,
|
|
89
91
|
ao as NotFound,
|
|
90
92
|
H as Pill,
|
|
91
|
-
|
|
93
|
+
Ao as Popover,
|
|
92
94
|
j as Pricing,
|
|
93
|
-
|
|
95
|
+
$o as Product,
|
|
94
96
|
J as ProgressBar,
|
|
95
97
|
R as QuantityInput,
|
|
96
98
|
u as Root,
|
|
97
99
|
O as SearchBox,
|
|
98
100
|
g as Separator,
|
|
99
101
|
uo as SlideInPanel,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
pr as SpinZoomViewer,
|
|
103
|
+
Vo as StatefulButton,
|
|
104
|
+
qo as Table,
|
|
103
105
|
s as Text,
|
|
104
106
|
B as ToggleSwitch,
|
|
105
|
-
|
|
107
|
+
wo as ToggleView,
|
|
106
108
|
so as Tooltip,
|
|
107
109
|
N as configureImage,
|
|
108
110
|
w as configureLink,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
defaultExpanded?: string;
|
|
5
|
+
expandedBehavior: "single" | "multi";
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Accordion({ children, defaultExpanded, expandedBehavior, className }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface AccordionItemProps {
|
|
10
|
+
id: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
expanded?: boolean;
|
|
13
|
+
toggleItem?: (_id: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const AccordionItem: ({ id, children, expanded, toggleItem }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface AccordionTriggerProps {
|
|
17
|
+
id?: string;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
expanded?: boolean;
|
|
20
|
+
toggleItem?: (_id: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
|
|
23
|
+
export interface AccordionContentProps {
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function AccordionContent({ children, expanded }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as m, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import c, { useState as g } from "react";
|
|
3
|
+
import { c as x } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { Icon as E } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
import '../../assets/Accordion.css';const C = "_accordion_1f0ed_1", A = "_accordionItem_1f0ed_11", T = "_accordionTrigger_1f0ed_31", h = "_chevron_1f0ed_61", I = "_chevronExpanded_1f0ed_71", V = "_accordionContent_1f0ed_79", y = "_expanded_1f0ed_99", i = {
|
|
6
|
+
accordion: C,
|
|
7
|
+
accordionItem: A,
|
|
8
|
+
accordionTrigger: T,
|
|
9
|
+
chevron: h,
|
|
10
|
+
chevronExpanded: I,
|
|
11
|
+
accordionContent: V,
|
|
12
|
+
expanded: y
|
|
13
|
+
};
|
|
14
|
+
function R({ children: o, defaultExpanded: r, expandedBehavior: s, className: t }) {
|
|
15
|
+
const [e, _] = g(r ? [r] : []);
|
|
16
|
+
function l(n) {
|
|
17
|
+
_(function(d) {
|
|
18
|
+
const p = d.find((a) => a === n), f = s === "single" ? [] : [...d.filter((a) => a !== n)];
|
|
19
|
+
return p || f.push(n), f;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ m("div", { className: x(i.accordion, t), children: c.Children.map(o, (n) => {
|
|
23
|
+
const d = c.isValidElement(n), p = n.type === N;
|
|
24
|
+
if (d && p) {
|
|
25
|
+
const f = n.props.id;
|
|
26
|
+
let a = !1;
|
|
27
|
+
for (let u = 0; u < e.length; u++)
|
|
28
|
+
e[u] === f && (a = !0);
|
|
29
|
+
return c.cloneElement(n, { expanded: a, toggleItem: l });
|
|
30
|
+
}
|
|
31
|
+
return n;
|
|
32
|
+
}) });
|
|
33
|
+
}
|
|
34
|
+
const N = ({ id: o, children: r, expanded: s, toggleItem: t }) => /* @__PURE__ */ m("div", { className: i.accordionItem, id: o, children: c.Children.map(r, (e) => {
|
|
35
|
+
const _ = c.isValidElement(e), l = c.isValidElement(e), n = e.type === j, d = e.type === w;
|
|
36
|
+
return n && _ ? c.cloneElement(e, { id: o, toggleItem: t, expanded: s }) : d && l ? c.cloneElement(e, { expanded: s }) : e;
|
|
37
|
+
}) }), j = ({ id: o, children: r, expanded: s, toggleItem: t }) => /* @__PURE__ */ v("button", { className: i.accordionTrigger, onClick: () => t == null ? void 0 : t(o ?? ""), children: [
|
|
38
|
+
/* @__PURE__ */ m("div", { children: r }),
|
|
39
|
+
/* @__PURE__ */ m(E, { className: x(i.chevron, s && i.chevronExpanded), iconKey: "fa-regular fa-chevron-down", size: "sm" })
|
|
40
|
+
] });
|
|
41
|
+
function w({ children: o, expanded: r }) {
|
|
42
|
+
return /* @__PURE__ */ m("div", { className: x(i.accordionContent, r && i.expanded), children: o });
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
R as Accordion,
|
|
46
|
+
w as AccordionContent,
|
|
47
|
+
N as AccordionItem,
|
|
48
|
+
j as AccordionTrigger
|
|
49
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Accordion } from './Accordion';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Accordion;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
expandedBehavior: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "inline-radio";
|
|
14
|
+
};
|
|
15
|
+
options: string[];
|
|
16
|
+
};
|
|
17
|
+
defaultExpanded: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "text";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Default: Story;
|
|
27
|
+
export declare const LargeContent: Story;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion as c, AccordionItem as n, AccordionTrigger as t, AccordionContent as o } from "./Accordion.js";
|
|
3
|
+
const s = {
|
|
4
|
+
title: "Case Parts/Molecules/Accordion",
|
|
5
|
+
component: c,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
expandedBehavior: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "inline-radio"
|
|
14
|
+
},
|
|
15
|
+
options: ["single", "multi"]
|
|
16
|
+
},
|
|
17
|
+
defaultExpanded: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "text"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, h = {
|
|
24
|
+
args: { children: null, expandedBehavior: "multi", defaultExpanded: "accordion-item-1" },
|
|
25
|
+
render: ({ expandedBehavior: r, defaultExpanded: a }) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(c, { expandedBehavior: r, defaultExpanded: a, children: [
|
|
26
|
+
/* @__PURE__ */ i(n, { id: "accordion-item-1", children: [
|
|
27
|
+
/* @__PURE__ */ e(t, { children: "Section one" }),
|
|
28
|
+
/* @__PURE__ */ e(o, { children: "This is the first accordion panel with some example content." })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ i(n, { id: "accordion-item-2", children: [
|
|
31
|
+
/* @__PURE__ */ e(t, { children: "Section two" }),
|
|
32
|
+
/* @__PURE__ */ e(o, { children: "This panel is collapsed by default in the preview." })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ i(n, { id: "accordion-item-3", children: [
|
|
35
|
+
/* @__PURE__ */ e(t, { children: "Section three" }),
|
|
36
|
+
/* @__PURE__ */ e(o, { children: "Additional content helps show how a stacked accordion can look." })
|
|
37
|
+
] })
|
|
38
|
+
] }) })
|
|
39
|
+
}, u = {
|
|
40
|
+
args: { children: null, expandedBehavior: "single", defaultExpanded: "accordion-item-1" },
|
|
41
|
+
render: ({ expandedBehavior: r, defaultExpanded: a }) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(c, { expandedBehavior: r, defaultExpanded: a, children: [
|
|
42
|
+
/* @__PURE__ */ i(n, { id: "accordion-item-1", children: [
|
|
43
|
+
/* @__PURE__ */ e(t, { children: "Section one" }),
|
|
44
|
+
/* @__PURE__ */ i(o, { children: [
|
|
45
|
+
/* @__PURE__ */ e("p", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi. Praesent nec ipsum vel orci bibendum venenatis. Integer sodales eros sit amet magna vulputate, vitae viverra sapien pharetra." }),
|
|
46
|
+
/* @__PURE__ */ e("p", { children: "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Duis non sem vitae metus posuere sagittis. Curabitur fringilla euismod nulla, vitae molestie massa." }),
|
|
47
|
+
/* @__PURE__ */ e("p", { children: "Aenean suscipit elit non ante blandit, sit amet cursus nisi ultrices. Quisque auctor eros eget risus semper, a molestie magna convallis." })
|
|
48
|
+
] })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ i(n, { id: "accordion-item-2", children: [
|
|
51
|
+
/* @__PURE__ */ e(t, { children: "Section two" }),
|
|
52
|
+
/* @__PURE__ */ i(o, { children: [
|
|
53
|
+
/* @__PURE__ */ e("p", { children: "This panel contains long-form content for testing overflow, spacing, and readability. It should show how the accordion behaves when there is a lot of text inside a single panel." }),
|
|
54
|
+
/* @__PURE__ */ i("ul", { children: [
|
|
55
|
+
/* @__PURE__ */ e("li", { children: "Point one with supporting detail" }),
|
|
56
|
+
/* @__PURE__ */ e("li", { children: "Point two with more supporting detail" }),
|
|
57
|
+
/* @__PURE__ */ e("li", { children: "Point three to demonstrate list rendering" })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ e("p", { children: "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium." })
|
|
60
|
+
] })
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ i(n, { id: "accordion-item-3", children: [
|
|
63
|
+
/* @__PURE__ */ e(t, { children: "Section three" }),
|
|
64
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e("p", { children: "Additional content helps show how a stacked accordion can look with larger content blocks. This is useful for validating layout and expansion behavior." }) })
|
|
65
|
+
] })
|
|
66
|
+
] }) })
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
h as Default,
|
|
70
|
+
u as LargeContent,
|
|
71
|
+
s as default
|
|
72
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconProps } from '../../atoms/Icon/Icon';
|
|
1
2
|
import { AvailabilityProps } from '../../molecules/Availability/Availability';
|
|
2
3
|
export type ProductView = "Card" | "Tile";
|
|
3
4
|
export type Size = "md" | "sm";
|
|
@@ -5,6 +6,9 @@ export interface ProductProps extends AvailabilityProps {
|
|
|
5
6
|
productView: ProductView;
|
|
6
7
|
productDescription: string;
|
|
7
8
|
availDescription: string;
|
|
9
|
+
customWizardUrl?: string;
|
|
10
|
+
customWizardText?: string;
|
|
11
|
+
customWizardIconKey?: IconProps['iconKey'] | null;
|
|
8
12
|
productHref?: string;
|
|
9
13
|
itemKey: number;
|
|
10
14
|
partNumber: string;
|
|
@@ -17,7 +21,6 @@ export interface ProductProps extends AvailabilityProps {
|
|
|
17
21
|
}[];
|
|
18
22
|
className?: string;
|
|
19
23
|
onAddToCart: (_itemKey: number, _quantity: number) => void;
|
|
20
|
-
onClose?: (_itemKey: number) => void;
|
|
21
24
|
flat?: boolean;
|
|
22
25
|
size?: Size;
|
|
23
26
|
showQuantity?: boolean;
|
|
@@ -25,4 +28,4 @@ export interface ProductProps extends AvailabilityProps {
|
|
|
25
28
|
requiresUnitDetails?: boolean;
|
|
26
29
|
maxQuantity?: number;
|
|
27
30
|
}
|
|
28
|
-
export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, inventory, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart,
|
|
31
|
+
export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, inventory, productHref, customWizardUrl, customWizardText, customWizardIconKey, priceLabel, price, imgSrc, attributes, className, onAddToCart, flat, size, showQuantity, onLinkClicked, requiresUnitDetails, maxQuantity, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,164 +1,172 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Image as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { c as
|
|
10
|
-
import '../../assets/Product.css';const
|
|
11
|
-
productCard:
|
|
12
|
-
sm:
|
|
13
|
-
productInformation:
|
|
14
|
-
purchaseInformation:
|
|
15
|
-
addToCart:
|
|
16
|
-
addToCartButton:
|
|
17
|
-
partNumber:
|
|
18
|
-
partNumberLabel:
|
|
19
|
-
productTile:
|
|
20
|
-
topRow: q,
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Image as P } from "../../atoms/Image/Image.js";
|
|
3
|
+
import { Icon as W } from "../../atoms/Icon/Icon.js";
|
|
4
|
+
import { Link as p } from "../../atoms/Link/Link.js";
|
|
5
|
+
import { Text as o } from "../../atoms/Text/Text.js";
|
|
6
|
+
import { Availability as j } from "../../molecules/Availability/Availability.js";
|
|
7
|
+
import { Pricing as D } from "../../molecules/Pricing/Pricing.js";
|
|
8
|
+
import { AddToCart as V } from "../../molecules/AddToCart/AddToCart.js";
|
|
9
|
+
import { c as E } from "../../clsx-OuTLNxxd.js";
|
|
10
|
+
import '../../assets/Product.css';const G = "_productCard_sx511_3", J = "_sm_sx511_16", M = "_productInformation_sx511_26", O = "_purchaseInformation_sx511_33", R = "_addToCart_sx511_41", X = "_addToCartButton_sx511_44", Y = "_partNumber_sx511_54", Z = "_partNumberLabel_sx511_61", q = "_productTile_sx511_65", H = "_productData_sx511_93", y = "_purchase_sx511_33", L = "_attributeContainer_sx511_130", Q = "_customWizardBadge_sx511_177", K = "_customWizardBadgeText_sx511_200", S = "_elevated_sx511_213", U = "_noImage_sx511_219", a = {
|
|
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: q,
|
|
21
20
|
productData: H,
|
|
22
|
-
purchase:
|
|
21
|
+
purchase: y,
|
|
23
22
|
attributeContainer: L,
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
customWizardBadge: Q,
|
|
24
|
+
customWizardBadgeText: K,
|
|
25
|
+
elevated: S,
|
|
26
|
+
noImage: U
|
|
26
27
|
};
|
|
27
|
-
function
|
|
28
|
-
productView:
|
|
28
|
+
function na({
|
|
29
|
+
productView: F,
|
|
29
30
|
itemKey: c,
|
|
30
|
-
partNumber:
|
|
31
|
-
productDescription:
|
|
32
|
-
availDescription:
|
|
33
|
-
availId:
|
|
34
|
-
inventory:
|
|
35
|
-
productHref:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
partNumber: n,
|
|
32
|
+
productDescription: g,
|
|
33
|
+
availDescription: N,
|
|
34
|
+
availId: l,
|
|
35
|
+
inventory: T,
|
|
36
|
+
productHref: b,
|
|
37
|
+
customWizardUrl: m,
|
|
38
|
+
customWizardText: v = "Customize",
|
|
39
|
+
customWizardIconKey: u = "fa-regular fa-screwdriver-wrench",
|
|
40
|
+
priceLabel: B,
|
|
41
|
+
price: i,
|
|
42
|
+
imgSrc: d,
|
|
43
|
+
attributes: x,
|
|
44
|
+
className: C,
|
|
45
|
+
onAddToCart: I,
|
|
46
|
+
flat: w,
|
|
47
|
+
size: r = "md",
|
|
48
|
+
showQuantity: f = !0,
|
|
49
|
+
onLinkClicked: s,
|
|
50
|
+
requiresUnitDetails: A = !1,
|
|
51
|
+
maxQuantity: $,
|
|
52
|
+
...z
|
|
50
53
|
}) {
|
|
51
|
-
const
|
|
52
|
-
return
|
|
54
|
+
const h = r === "sm" ? "xs" : "sm";
|
|
55
|
+
return F === "Card" ? /* @__PURE__ */ e(
|
|
53
56
|
"div",
|
|
54
57
|
{
|
|
55
|
-
className:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
!
|
|
60
|
-
!
|
|
58
|
+
className: E(
|
|
59
|
+
a.productCard,
|
|
60
|
+
r && a[r],
|
|
61
|
+
C,
|
|
62
|
+
!w && a.elevated,
|
|
63
|
+
!d && a.noImage
|
|
61
64
|
),
|
|
62
|
-
...
|
|
65
|
+
...z,
|
|
63
66
|
children: [
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
m && /* @__PURE__ */ e(p, { href: m, unstyled: !0, className: a.customWizardBadge, children: [
|
|
68
|
+
u && /* @__PURE__ */ t(W, { iconKey: u, size: "3xs", colorToken: "default-inverted" }),
|
|
69
|
+
/* @__PURE__ */ t(o, { size: "xs", weight: "regular", colorToken: "default-inverted", className: a.customWizardBadgeText, children: v })
|
|
70
|
+
] }),
|
|
71
|
+
d && /* @__PURE__ */ t(
|
|
72
|
+
P,
|
|
66
73
|
{
|
|
67
|
-
src:
|
|
68
|
-
alt: `${
|
|
69
|
-
height:
|
|
70
|
-
width:
|
|
74
|
+
src: d,
|
|
75
|
+
alt: `${n} product image`,
|
|
76
|
+
height: r === "sm" ? 78 : 96,
|
|
77
|
+
width: r === "sm" ? 78 : 96
|
|
71
78
|
}
|
|
72
79
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */ t(
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */ t(
|
|
77
|
-
/* @__PURE__ */ t(
|
|
80
|
+
/* @__PURE__ */ e("div", { className: a.productInformation, children: [
|
|
81
|
+
/* @__PURE__ */ t(p, { onClick: () => s == null ? void 0 : s(c), size: r, href: b || "#", children: g }),
|
|
82
|
+
/* @__PURE__ */ e("div", { className: a.partNumber, children: [
|
|
83
|
+
/* @__PURE__ */ t(o, { size: h, className: a.partNumberLabel, children: "Part #" }),
|
|
84
|
+
/* @__PURE__ */ t(o, { size: h, weight: "semibold", children: n })
|
|
78
85
|
] })
|
|
79
86
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
/* @__PURE__ */ e("div", { className: a.purchaseInformation, children: [
|
|
88
|
+
l && /* @__PURE__ */ t(
|
|
89
|
+
j,
|
|
83
90
|
{
|
|
84
|
-
availId:
|
|
85
|
-
availDescription:
|
|
86
|
-
inventory:
|
|
91
|
+
availId: l,
|
|
92
|
+
availDescription: N,
|
|
93
|
+
inventory: T,
|
|
87
94
|
enableTooltip: !0
|
|
88
95
|
}
|
|
89
96
|
),
|
|
90
|
-
|
|
97
|
+
i && /* @__PURE__ */ t(D, { pricingLabel: B, price: i })
|
|
91
98
|
] }),
|
|
92
99
|
/* @__PURE__ */ t(
|
|
93
|
-
|
|
100
|
+
V,
|
|
94
101
|
{
|
|
95
102
|
itemKey: c,
|
|
96
|
-
onAdd:
|
|
97
|
-
max:
|
|
98
|
-
className:
|
|
99
|
-
addButtonClassName:
|
|
100
|
-
addButtonVariant:
|
|
101
|
-
size:
|
|
103
|
+
onAdd: I,
|
|
104
|
+
max: $,
|
|
105
|
+
className: a.addToCart,
|
|
106
|
+
addButtonClassName: a.addToCartButton,
|
|
107
|
+
addButtonVariant: f ? "cta-primary" : "secondary",
|
|
108
|
+
size: r,
|
|
102
109
|
buttonDoneText: "",
|
|
103
|
-
buttonText:
|
|
104
|
-
showQuantity:
|
|
105
|
-
requiresUnitDetails:
|
|
110
|
+
buttonText: f ? "Add" : "Add to Cart",
|
|
111
|
+
showQuantity: f,
|
|
112
|
+
requiresUnitDetails: A
|
|
106
113
|
}
|
|
107
114
|
)
|
|
108
115
|
]
|
|
109
116
|
}
|
|
110
|
-
) : /* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
!
|
|
115
|
-
!
|
|
116
|
-
), ...
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
) : /* @__PURE__ */ e("div", { className: E(
|
|
118
|
+
a.productTile,
|
|
119
|
+
C,
|
|
120
|
+
r && a[r],
|
|
121
|
+
!w && a.elevated,
|
|
122
|
+
!d && a.noImage
|
|
123
|
+
), ...z, children: [
|
|
124
|
+
m && /* @__PURE__ */ e(p, { href: m, unstyled: !0, className: a.customWizardBadge, children: [
|
|
125
|
+
u && /* @__PURE__ */ t(W, { iconKey: u, size: "3xs", colorToken: "default-inverted" }),
|
|
126
|
+
/* @__PURE__ */ t(o, { size: "xs", weight: "regular", colorToken: "default-inverted", className: a.customWizardBadgeText, children: v })
|
|
127
|
+
] }),
|
|
128
|
+
d && /* @__PURE__ */ t(
|
|
129
|
+
P,
|
|
119
130
|
{
|
|
120
|
-
src:
|
|
121
|
-
alt: `${
|
|
122
|
-
height:
|
|
123
|
-
width:
|
|
131
|
+
src: d,
|
|
132
|
+
alt: `${n} product image`,
|
|
133
|
+
height: r === "sm" ? 86 : 108,
|
|
134
|
+
width: r === "sm" ? 86 : 108
|
|
124
135
|
}
|
|
125
136
|
),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
|
|
130
|
-
/* @__PURE__ */ o
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
] })
|
|
134
|
-
] }),
|
|
135
|
-
C && /* @__PURE__ */ t("button", { onClick: () => C(c), children: /* @__PURE__ */ t(E, { size: "sm", iconKey: "fa-light fa-xmark" }) })
|
|
137
|
+
/* @__PURE__ */ e("div", { className: a.productData, children: [
|
|
138
|
+
/* @__PURE__ */ e("div", { className: a.productInformation, children: [
|
|
139
|
+
/* @__PURE__ */ t(p, { onClick: () => s == null ? void 0 : s(c), size: r, href: b || "#", children: g }),
|
|
140
|
+
/* @__PURE__ */ e("div", { className: a.partNumber, children: [
|
|
141
|
+
/* @__PURE__ */ t(o, { size: h, className: a.partNumberLabel, children: "Part #" }),
|
|
142
|
+
/* @__PURE__ */ t(o, { size: h, weight: "semibold", children: n })
|
|
143
|
+
] })
|
|
136
144
|
] }),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
/* @__PURE__ */ e("div", { className: a.purchase, children: [
|
|
146
|
+
/* @__PURE__ */ e("div", { className: a.purchaseInformation, children: [
|
|
147
|
+
l && /* @__PURE__ */ t(
|
|
148
|
+
j,
|
|
141
149
|
{
|
|
142
|
-
availId:
|
|
143
|
-
availDescription:
|
|
144
|
-
inventory:
|
|
150
|
+
availId: l,
|
|
151
|
+
availDescription: N,
|
|
152
|
+
inventory: T,
|
|
145
153
|
enableTooltip: !0
|
|
146
154
|
}
|
|
147
155
|
),
|
|
148
|
-
|
|
156
|
+
i && /* @__PURE__ */ t(D, { pricingLabel: B, price: i })
|
|
149
157
|
] }),
|
|
150
|
-
/* @__PURE__ */ t(
|
|
158
|
+
/* @__PURE__ */ t(V, { size: r, itemKey: c, onAdd: I, max: $, className: a.addToCart, addButtonClassName: a.addToCartButton, requiresUnitDetails: A })
|
|
151
159
|
] }),
|
|
152
|
-
|
|
153
|
-
/* @__PURE__ */ o
|
|
154
|
-
|
|
160
|
+
x && x.length > 0 && /* @__PURE__ */ t("ul", { className: a.attributeContainer, children: x.map((_) => /* @__PURE__ */ e("li", { children: [
|
|
161
|
+
/* @__PURE__ */ e(o, { size: "xs", weight: "light", children: [
|
|
162
|
+
_.label,
|
|
155
163
|
":"
|
|
156
164
|
] }),
|
|
157
|
-
/* @__PURE__ */ t(
|
|
158
|
-
] }, `${
|
|
165
|
+
/* @__PURE__ */ t(o, { size: "xs", weight: "semibold", children: _.value })
|
|
166
|
+
] }, `${_.label}.${_.value}`)) })
|
|
159
167
|
] })
|
|
160
168
|
] });
|
|
161
169
|
}
|
|
162
170
|
export {
|
|
163
|
-
|
|
171
|
+
na as Product
|
|
164
172
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Product as
|
|
2
|
-
const
|
|
1
|
+
import { Product as i } from "./Product.js";
|
|
2
|
+
const e = [
|
|
3
3
|
{ label: "Color", value: "Gray" },
|
|
4
4
|
{ label: "Brand", value: "Kason" },
|
|
5
5
|
{ label: "Finish", value: "Chrome" },
|
|
@@ -13,7 +13,7 @@ const i = [
|
|
|
13
13
|
{ label: "Attribute", value: "Placeholder" }
|
|
14
14
|
], r = {
|
|
15
15
|
title: "Case Parts/Organisms/Product",
|
|
16
|
-
component:
|
|
16
|
+
component: i,
|
|
17
17
|
parameters: { layout: "centered" },
|
|
18
18
|
argTypes: {
|
|
19
19
|
productView: {
|
|
@@ -31,6 +31,8 @@ const i = [
|
|
|
31
31
|
description: "Availability text"
|
|
32
32
|
},
|
|
33
33
|
productDescription: { control: "text" },
|
|
34
|
+
customWizardUrl: { control: "text" },
|
|
35
|
+
customWizardText: { control: "text" },
|
|
34
36
|
productHref: { control: "text" },
|
|
35
37
|
partNumber: { control: "text" },
|
|
36
38
|
priceLabel: { control: "text" },
|
|
@@ -52,6 +54,8 @@ const i = [
|
|
|
52
54
|
itemKey: 101,
|
|
53
55
|
partNumber: "PN-44567",
|
|
54
56
|
productDescription: "Example Replacement Part Long Description",
|
|
57
|
+
customWizardUrl: void 0,
|
|
58
|
+
customWizardText: "Customize",
|
|
55
59
|
// productHref: 'https://dev.caseparts.com/graphics/photos/R-23_IMG_2009.png',
|
|
56
60
|
productHref: "https://mobiledev.caseparts.com/part/1092-01/Kason-1092-Hydraulic-Door-Closer",
|
|
57
61
|
availId: "available",
|
|
@@ -60,13 +64,10 @@ const i = [
|
|
|
60
64
|
price: "$129.99",
|
|
61
65
|
imgSrc: "https://dev.caseparts.com/graphics/photos/R-23_IMG_2009.png",
|
|
62
66
|
// imgSrc: 'https://www.caseparts.com/Ortery/360/Optimized/1092-01_/1092-01_04.webp',
|
|
63
|
-
attributes:
|
|
67
|
+
attributes: e,
|
|
64
68
|
onAddToCart: (t, a) => {
|
|
65
69
|
alert(`Add to cart (story) ${JSON.stringify({ itemKey: t, quantity: a })}`);
|
|
66
70
|
},
|
|
67
|
-
onClose: (t) => {
|
|
68
|
-
alert(`On close clicked ${t}`);
|
|
69
|
-
},
|
|
70
71
|
flat: !1,
|
|
71
72
|
size: "md",
|
|
72
73
|
showQuantity: !0,
|
|
@@ -95,12 +96,12 @@ const i = [
|
|
|
95
96
|
productView: "Tile",
|
|
96
97
|
productDescription: "Tile View Product"
|
|
97
98
|
}
|
|
98
|
-
},
|
|
99
|
+
}, u = {
|
|
99
100
|
args: {
|
|
100
101
|
priceLabel: "Member",
|
|
101
102
|
price: "$118.49"
|
|
102
103
|
}
|
|
103
|
-
},
|
|
104
|
+
}, p = {
|
|
104
105
|
args: {
|
|
105
106
|
productView: "Card",
|
|
106
107
|
imgSrc: void 0
|
|
@@ -134,12 +135,12 @@ const i = [
|
|
|
134
135
|
export {
|
|
135
136
|
c as ContactForAvailability,
|
|
136
137
|
l as Default,
|
|
137
|
-
|
|
138
|
+
u as DifferentPriceLabel,
|
|
138
139
|
m as FlatTile,
|
|
139
140
|
n as LimitedStock,
|
|
140
141
|
b as MaxQuantityCard,
|
|
141
142
|
y as MaxQuantityTile,
|
|
142
|
-
|
|
143
|
+
p as NoImageCard,
|
|
143
144
|
v as NoImageFlatCard,
|
|
144
145
|
d as TileView,
|
|
145
146
|
s as Unavailable,
|