@caseparts-org/caseblocks 0.0.164 → 0.0.166
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-BFUWHH7s.js +23 -0
- package/dist/assets/Cart.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -0
- package/dist/atoms/ToggleSwitch/ToggleSwitch.d.ts +9 -0
- package/dist/atoms/ToggleSwitch/ToggleSwitch.js +60 -0
- package/dist/atoms/ToggleSwitch/ToggleSwitch.stories.d.ts +22 -0
- package/dist/atoms/ToggleSwitch/ToggleSwitch.stories.js +48 -0
- package/dist/main-client.js +91 -89
- package/dist/main-server.d.ts +2 -0
- package/dist/main-server.js +33 -31
- package/dist/molecules/Cart/Cart.js +1 -1
- package/dist/molecules/Cart/CartPart.js +40 -40
- package/dist/molecules/Cart/CartSlideInPanel.js +1 -1
- package/package.json +1 -1
- package/dist/Cart.module-B-yc1ax6.js +0 -21
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import './assets/Cart.css';const t = "_cartIconButton_1dauc_2", a = "_count_1dauc_9", o = "_cartContainer_1dauc_24", c = "_headerWrapper_1dauc_35", e = "_header_1dauc_35", n = "_cartItems_1dauc_53", _ = "_cartItem_1dauc_53", r = "_topRow_1dauc_79", u = "_itemInfo_1dauc_85", s = "_purchaseInformation_1dauc_90", m = "_availabilitySlot_1dauc_96", i = "_priceSlot_1dauc_99", d = "_itemManagement_1dauc_102", I = "_itemImage_1dauc_115", l = "_removeItem_1dauc_118", p = "_noItems_1dauc_128", h = "_subtotal_1dauc_135", b = "_checkoutButton_1dauc_142", f = {
|
|
2
|
+
cartIconButton: t,
|
|
3
|
+
count: a,
|
|
4
|
+
cartContainer: o,
|
|
5
|
+
headerWrapper: c,
|
|
6
|
+
header: e,
|
|
7
|
+
cartItems: n,
|
|
8
|
+
cartItem: _,
|
|
9
|
+
topRow: r,
|
|
10
|
+
itemInfo: u,
|
|
11
|
+
purchaseInformation: s,
|
|
12
|
+
availabilitySlot: m,
|
|
13
|
+
priceSlot: i,
|
|
14
|
+
itemManagement: d,
|
|
15
|
+
itemImage: I,
|
|
16
|
+
removeItem: l,
|
|
17
|
+
noItems: p,
|
|
18
|
+
subtotal: h,
|
|
19
|
+
checkoutButton: b
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
f as s
|
|
23
|
+
};
|
package/dist/assets/Cart.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cartIconButton_1dauc_2{position:relative;border:none;padding:0;margin:0;background-color:transparent}._count_1dauc_9{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_1dauc_24{height:100vh;width:100%;min-width:320px;max-width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto auto;gap:var(--spacing-1);padding:var(--spacing-1)}._headerWrapper_1dauc_35{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_1dauc_35>button{padding:0;margin:0;background-color:transparent;border:none}._header_1dauc_35{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_1dauc_53{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_1dauc_53 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_1dauc_53{display:grid;grid-template-columns:auto 1fr;gap:var(--spacing-0-5);align-items:start;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-0-5);width:100%;border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-md)}._topRow_1dauc_79{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._itemInfo_1dauc_85{display:flex;flex-direction:column;align-items:flex-start}._purchaseInformation_1dauc_90{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;width:100%}._availabilitySlot_1dauc_96{min-width:0}._priceSlot_1dauc_99{justify-self:end}._itemManagement_1dauc_102{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._cartItem_1dauc_53 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_1dauc_115{object-fit:contain}._removeItem_1dauc_118{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._noItems_1dauc_128{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_1dauc_135{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_1dauc_142{width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_1p695_1{display:inline-flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-2xs);cursor:pointer}._disabled_1p695_9{cursor:not-allowed}._switch_1p695_17{position:relative;display:inline-flex}._input_1p695_22{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}._track_1p695_31{width:2.5rem;height:1.5rem;padding:2px;border-radius:999px;border:1px solid var(--border-border-primary);background-color:var(--surface-surface-secondary);transition:background-color .12s ease,border-color .12s ease}._thumb_1p695_41{display:block;width:1.1rem;height:1.1rem;border-radius:999px;background-color:var(--surface-surface-primary);box-shadow:0 1px 2px #0003;transition:transform .12s ease}._input_1p695_22:checked+._track_1p695_31{background-color:var(--surface-surface-primary-btn);border-color:var(--surface-surface-primary-btn)}._input_1p695_22:checked+._track_1p695_31 ._thumb_1p695_41{transform:translate(1rem)}._input_1p695_22:focus-visible+._track_1p695_31{outline:2px solid var(--border-border-focus);outline-offset:2px}._input_1p695_22:disabled+._track_1p695_31{background-color:var(--surface-surface-disabled-btn-focus);border-color:var(--surface-surface-disabled-btn)}._input_1p695_22:disabled+._track_1p695_31 ._thumb_1p695_41{background-color:var(--surface-surface-disabled-btn)}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { HideAtProps } from '../HideAt';
|
|
3
|
+
import { TextSize } from '../Text/Text';
|
|
4
|
+
export interface ToggleSwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type">, HideAtProps {
|
|
5
|
+
label?: string | React.ReactNode;
|
|
6
|
+
labelAlignment?: "left" | "right";
|
|
7
|
+
labelSize?: TextSize;
|
|
8
|
+
}
|
|
9
|
+
export declare function ToggleSwitch({ label, labelAlignment, hideAt, className, id, name, disabled, labelSize, ...otherProps }: ToggleSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { getHideAtStyles as u } from "../HideAt.js";
|
|
4
|
+
import { Text as b } from "../Text/Text.js";
|
|
5
|
+
import '../../assets/ToggleSwitch.css';const w = "_wrapper_1p695_1", f = "_disabled_1p695_9", N = "_label_1p695_13", x = "_input_1p695_22", k = "_track_1p695_31", g = "_thumb_1p695_41", t = {
|
|
6
|
+
wrapper: w,
|
|
7
|
+
disabled: f,
|
|
8
|
+
label: N,
|
|
9
|
+
switch: "_switch_1p695_17",
|
|
10
|
+
input: x,
|
|
11
|
+
track: k,
|
|
12
|
+
thumb: g
|
|
13
|
+
};
|
|
14
|
+
function z({
|
|
15
|
+
label: e,
|
|
16
|
+
labelAlignment: c = "left",
|
|
17
|
+
hideAt: n,
|
|
18
|
+
className: o,
|
|
19
|
+
id: _,
|
|
20
|
+
name: a,
|
|
21
|
+
disabled: r,
|
|
22
|
+
labelSize: m = "sm",
|
|
23
|
+
...h
|
|
24
|
+
}) {
|
|
25
|
+
const l = _ ?? a, p = e ? /* @__PURE__ */ s(b, { size: m, className: t.label, children: e }) : null;
|
|
26
|
+
return /* @__PURE__ */ i(
|
|
27
|
+
"label",
|
|
28
|
+
{
|
|
29
|
+
htmlFor: l,
|
|
30
|
+
className: d(
|
|
31
|
+
t.wrapper,
|
|
32
|
+
r && t.disabled,
|
|
33
|
+
u(n),
|
|
34
|
+
o
|
|
35
|
+
),
|
|
36
|
+
children: [
|
|
37
|
+
c === "left" && p,
|
|
38
|
+
/* @__PURE__ */ i("span", { className: t.switch, children: [
|
|
39
|
+
/* @__PURE__ */ s(
|
|
40
|
+
"input",
|
|
41
|
+
{
|
|
42
|
+
id: l,
|
|
43
|
+
name: a,
|
|
44
|
+
type: "checkbox",
|
|
45
|
+
role: "switch",
|
|
46
|
+
disabled: r,
|
|
47
|
+
className: t.input,
|
|
48
|
+
...h
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ s("span", { className: t.track, "aria-hidden": "true", children: /* @__PURE__ */ s("span", { className: t.thumb }) })
|
|
52
|
+
] }),
|
|
53
|
+
c === "right" && p
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
z as ToggleSwitch
|
|
60
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ToggleSwitch } from './ToggleSwitch';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ToggleSwitch;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
label: {
|
|
11
|
+
control: "text";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const Checked: Story;
|
|
20
|
+
export declare const WithLabel: Story;
|
|
21
|
+
export declare const WithRightLabel: Story;
|
|
22
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ToggleSwitch as e } from "./ToggleSwitch.js";
|
|
2
|
+
const t = {
|
|
3
|
+
title: "Case Parts/Atoms/ToggleSwitch",
|
|
4
|
+
component: e,
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: "centered"
|
|
7
|
+
},
|
|
8
|
+
argTypes: {
|
|
9
|
+
label: {
|
|
10
|
+
control: "text"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
tags: ["autodocs"]
|
|
14
|
+
}, r = {
|
|
15
|
+
args: {
|
|
16
|
+
"aria-label": "Save card"
|
|
17
|
+
}
|
|
18
|
+
}, l = {
|
|
19
|
+
args: {
|
|
20
|
+
"aria-label": "Save card",
|
|
21
|
+
defaultChecked: !0
|
|
22
|
+
}
|
|
23
|
+
}, s = {
|
|
24
|
+
args: {
|
|
25
|
+
label: "Save for future purchases",
|
|
26
|
+
defaultChecked: !0
|
|
27
|
+
}
|
|
28
|
+
}, c = {
|
|
29
|
+
args: {
|
|
30
|
+
label: "Save for future purchases",
|
|
31
|
+
labelAlignment: "right",
|
|
32
|
+
defaultChecked: !0
|
|
33
|
+
}
|
|
34
|
+
}, o = {
|
|
35
|
+
args: {
|
|
36
|
+
label: "Save for future purchases",
|
|
37
|
+
disabled: !0,
|
|
38
|
+
defaultChecked: !0
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
l as Checked,
|
|
43
|
+
r as Default,
|
|
44
|
+
o as Disabled,
|
|
45
|
+
s as WithLabel,
|
|
46
|
+
c as WithRightLabel,
|
|
47
|
+
t as default
|
|
48
|
+
};
|
package/dist/main-client.js
CHANGED
|
@@ -1,106 +1,108 @@
|
|
|
1
1
|
import { Button as e } from "./atoms/Button/Button.js";
|
|
2
2
|
import { Flex as p } from "./atoms/Flex/Flex.js";
|
|
3
3
|
import { Column as f, Grid as x } from "./atoms/Grid/Grid.js";
|
|
4
|
-
import { Head as
|
|
4
|
+
import { Head as i } from "./atoms/Root/Head.js";
|
|
5
5
|
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 s } from "./atoms/Separator/Separator.js";
|
|
8
|
-
import { Text as
|
|
8
|
+
import { Text as C } from "./atoms/Text/Text.js";
|
|
9
9
|
import { Input as S } from "./atoms/Input/Input.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
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 {
|
|
10
|
+
import { ToggleSwitch as w } from "./atoms/ToggleSwitch/ToggleSwitch.js";
|
|
11
|
+
import { Link as T } from "./atoms/Link/Link.js";
|
|
12
|
+
import { linkClassName as B } from "./atoms/Link/linkClassName.js";
|
|
13
|
+
import { configureLink as h, routerOverride as v } from "./atoms/Link/configureLink.js";
|
|
14
|
+
import { LinkButton as b } from "./atoms/LinkButton/LinkButton.js";
|
|
15
|
+
import { configureImage as F } from "./atoms/Image/configureImage.js";
|
|
16
|
+
import { getHideAtStyles as N } from "./atoms/HideAt.js";
|
|
17
|
+
import { Logo as z } from "./molecules/Logo/Logo.js";
|
|
18
|
+
import { SearchBox as E } from "./molecules/SearchBox/SearchBox.js";
|
|
19
|
+
import { QuantityInput as O } from "./molecules/QuantityInput/QuantityInput.js";
|
|
20
|
+
import { Pricing as R } from "./molecules/Pricing/Pricing.js";
|
|
21
|
+
import { Availability as j } from "./molecules/Availability/Availability.js";
|
|
22
|
+
import { Avatar as J } from "./molecules/Avatar/Avatar.js";
|
|
23
|
+
import { BannerCard as U } from "./molecules/BannerCard/BannerCard.js";
|
|
24
|
+
import { CardLink as X } from "./molecules/CardLink/CardLink.js";
|
|
25
|
+
import { Breadcrumbs as _ } from "./molecules/Breadcrumbs/Breadcrumbs.js";
|
|
26
|
+
import { Disclaimer as rr } from "./molecules/Disclaimer/Disclaimer.js";
|
|
27
|
+
import { NotFound as er } from "./organisms/NotFound/NotFound.js";
|
|
28
|
+
import { HorizontalScroll as pr } from "./atoms/HorizontalScroll/HorizontalScroll.js";
|
|
29
|
+
import { SlideInPanel as fr } from "./atoms/SlideInPanel/SlideInPanel.js";
|
|
30
|
+
import { Markdown as ar } from "./atoms/Markdown/Markdown.js";
|
|
31
|
+
import { PreprocessedMarkdown as nr } from "./atoms/Markdown/PreprocessedMarkdown.js";
|
|
32
|
+
import { usePreprocessedMarkdown as dr } from "./atoms/Markdown/usePreprocessedMarkdown.js";
|
|
33
|
+
import { Tooltip as cr } from "./atoms/Tooltip/Tooltip.js";
|
|
34
|
+
import { Popover as gr } from "./atoms/Popover/Popover.js";
|
|
35
|
+
import { Account as kr } from "./molecules/Account/Account.js";
|
|
36
|
+
import { Chip as Pr } from "./molecules/Chip/Chip.js";
|
|
37
|
+
import { ToggleView as Ir } from "./molecules/ToggleView/ToggleView.js";
|
|
38
|
+
import { CartPart as Ar } from "./molecules/Cart/CartPart.js";
|
|
39
|
+
import { CartSlideInPanel as Mr } from "./molecules/Cart/CartSlideInPanel.js";
|
|
40
|
+
import { StatefulButton as vr } from "./molecules/StatefulButton/StatefulButton.js";
|
|
41
|
+
import { AnimatedCheckMark as br } from "./molecules/StatefulButton/AnimatedCheckmark.js";
|
|
42
|
+
import { AddToCart as Fr } from "./molecules/AddToCart/AddToCart.js";
|
|
43
|
+
import { Modal as Nr } from "./molecules/Modal/Modal.js";
|
|
44
|
+
import { ImageViewer as zr } from "./molecules/ImageViewer/ImageViewer.js";
|
|
45
|
+
import { T as Er } from "./Table-BX4PtCNE.js";
|
|
46
|
+
import { Error as Or } from "./molecules/Error/Error.js";
|
|
47
|
+
import { MainNav as Rr } from "./organisms/MainNav/MainNav.js";
|
|
48
|
+
import { ChipSelector as jr } from "./organisms/ChipSelector/ChipSelector.js";
|
|
49
|
+
import { Product as Jr } from "./organisms/Product/Product.js";
|
|
50
|
+
import { Carousel as Ur } from "./organisms/Carousel/Carousel.js";
|
|
51
|
+
import { Footer as Xr } from "./organisms/Footer/Footer.js";
|
|
52
|
+
import { default as _r } from "./organisms/SpinZoomViewer/SpinZoomViewer.js";
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
kr as Account,
|
|
55
|
+
Fr as AddToCart,
|
|
56
|
+
br as AnimatedCheckMark,
|
|
57
|
+
j as Availability,
|
|
58
|
+
J as Avatar,
|
|
59
|
+
U as BannerCard,
|
|
60
|
+
_ as Breadcrumbs,
|
|
60
61
|
e as Button,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
X as CardLink,
|
|
63
|
+
Ur as Carousel,
|
|
64
|
+
Ar as CartPart,
|
|
65
|
+
Mr as CartSlideInPanel,
|
|
66
|
+
Pr as Chip,
|
|
67
|
+
jr as ChipSelector,
|
|
67
68
|
f as Column,
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
rr as Disclaimer,
|
|
70
|
+
Or as Error,
|
|
70
71
|
p as Flex,
|
|
71
|
-
|
|
72
|
+
Xr as Footer,
|
|
72
73
|
x as Grid,
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
i as Head,
|
|
75
|
+
pr as HorizontalScroll,
|
|
75
76
|
l as Icon,
|
|
76
|
-
|
|
77
|
+
zr as ImageViewer,
|
|
77
78
|
S as Input,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
T as Link,
|
|
80
|
+
b as LinkButton,
|
|
81
|
+
z as Logo,
|
|
82
|
+
Rr as MainNav,
|
|
83
|
+
ar as Markdown,
|
|
84
|
+
Nr as Modal,
|
|
85
|
+
er as NotFound,
|
|
86
|
+
gr as Popover,
|
|
87
|
+
nr as PreprocessedMarkdown,
|
|
88
|
+
R as Pricing,
|
|
89
|
+
Jr as Product,
|
|
90
|
+
O as QuantityInput,
|
|
90
91
|
u as Root,
|
|
91
|
-
|
|
92
|
+
E as SearchBox,
|
|
92
93
|
s as Separator,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
fr as SlideInPanel,
|
|
95
|
+
_r as SpinZoomViewer,
|
|
96
|
+
vr as StatefulButton,
|
|
97
|
+
Er as Table,
|
|
98
|
+
C as Text,
|
|
99
|
+
w as ToggleSwitch,
|
|
100
|
+
Ir as ToggleView,
|
|
101
|
+
cr as Tooltip,
|
|
102
|
+
F as configureImage,
|
|
103
|
+
h as configureLink,
|
|
104
|
+
N as getHideAtStyles,
|
|
105
|
+
B as linkClassName,
|
|
106
|
+
v as routerOverride,
|
|
107
|
+
dr as usePreprocessedMarkdown
|
|
106
108
|
};
|
package/dist/main-server.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export { Text } from './atoms/Text/Text';
|
|
|
14
14
|
export type { TextProps } from './atoms/Text/Text';
|
|
15
15
|
export { Input } from './atoms/Input/Input';
|
|
16
16
|
export type { InputProps } from './atoms/Input/Input';
|
|
17
|
+
export { ToggleSwitch } from './atoms/ToggleSwitch/ToggleSwitch';
|
|
18
|
+
export type { ToggleSwitchProps } from './atoms/ToggleSwitch/ToggleSwitch';
|
|
17
19
|
export { Link } from './atoms/Link/Link';
|
|
18
20
|
export type { LinkProps, LinkImplementation as RouterLike } from './atoms/Link/Link';
|
|
19
21
|
export { linkClassName } from './atoms/Link/linkClassName';
|
package/dist/main-server.js
CHANGED
|
@@ -3,54 +3,56 @@ import { Flex as m } from "./atoms/Flex/Flex.js";
|
|
|
3
3
|
import { Column as x, Grid as f } from "./atoms/Grid/Grid.js";
|
|
4
4
|
import { Head as n } from "./atoms/Root/Head.js";
|
|
5
5
|
import { Icon as u } from "./atoms/Icon/Icon.js";
|
|
6
|
-
import { Root as
|
|
6
|
+
import { Root as c } 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 L } from "./atoms/Input/Input.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { ToggleSwitch as I } from "./atoms/ToggleSwitch/ToggleSwitch.js";
|
|
11
|
+
import { Link as v } from "./atoms/Link/Link.js";
|
|
12
|
+
import { linkClassName as A } from "./atoms/Link/linkClassName.js";
|
|
13
|
+
import { configureLink as h, routerOverride as F } from "./atoms/Link/configureLink.js";
|
|
14
|
+
import { LinkButton as N } from "./atoms/LinkButton/LinkButton.js";
|
|
15
|
+
import { configureImage as w } from "./atoms/Image/configureImage.js";
|
|
15
16
|
import { getHideAtStyles as G } from "./atoms/HideAt.js";
|
|
16
17
|
import { Logo as P } from "./molecules/Logo/Logo.js";
|
|
17
18
|
import { SearchBox as R } from "./molecules/SearchBox/SearchBox.js";
|
|
18
|
-
import { QuantityInput as
|
|
19
|
-
import { Pricing as
|
|
20
|
-
import { Availability as
|
|
21
|
-
import { Avatar as
|
|
22
|
-
import { BannerCard as
|
|
23
|
-
import { CardLink as
|
|
24
|
-
import { Breadcrumbs as
|
|
25
|
-
import { Disclaimer as
|
|
26
|
-
import { NotFound as
|
|
19
|
+
import { QuantityInput as q } from "./molecules/QuantityInput/QuantityInput.js";
|
|
20
|
+
import { Pricing as E } from "./molecules/Pricing/Pricing.js";
|
|
21
|
+
import { Availability as K } from "./molecules/Availability/Availability.js";
|
|
22
|
+
import { Avatar as U } from "./molecules/Avatar/Avatar.js";
|
|
23
|
+
import { BannerCard as W } from "./molecules/BannerCard/BannerCard.js";
|
|
24
|
+
import { CardLink as Y } from "./molecules/CardLink/CardLink.js";
|
|
25
|
+
import { Breadcrumbs as _ } from "./molecules/Breadcrumbs/Breadcrumbs.js";
|
|
26
|
+
import { Disclaimer as rr } from "./molecules/Disclaimer/Disclaimer.js";
|
|
27
|
+
import { NotFound as er } from "./organisms/NotFound/NotFound.js";
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
K as Availability,
|
|
30
|
+
U as Avatar,
|
|
31
|
+
W as BannerCard,
|
|
32
|
+
_ as Breadcrumbs,
|
|
32
33
|
e as Button,
|
|
33
|
-
|
|
34
|
+
Y as CardLink,
|
|
34
35
|
x as Column,
|
|
35
|
-
|
|
36
|
+
rr as Disclaimer,
|
|
36
37
|
m as Flex,
|
|
37
38
|
f as Grid,
|
|
38
39
|
n as Head,
|
|
39
40
|
u as Icon,
|
|
40
41
|
L as Input,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
v as Link,
|
|
43
|
+
N as LinkButton,
|
|
43
44
|
P as Logo,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
er as NotFound,
|
|
46
|
+
E as Pricing,
|
|
47
|
+
q as QuantityInput,
|
|
48
|
+
c as Root,
|
|
48
49
|
R as SearchBox,
|
|
49
50
|
g as Separator,
|
|
50
51
|
s as Text,
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
I as ToggleSwitch,
|
|
53
|
+
w as configureImage,
|
|
54
|
+
h as configureLink,
|
|
53
55
|
G as getHideAtStyles,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
A as linkClassName,
|
|
57
|
+
F as routerOverride
|
|
56
58
|
};
|
|
@@ -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-BFUWHH7s.js";
|
|
6
6
|
const S = l.forwardRef(function({
|
|
7
7
|
cart: i,
|
|
8
8
|
open: t = !1,
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Link as
|
|
3
|
-
import { Text as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Link as x } from "../../atoms/Link/Link.js";
|
|
3
|
+
import { Text as a } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { Image as y } from "../../atoms/Image/Image.js";
|
|
5
|
+
import { Availability as z } from "../Availability/Availability.js";
|
|
6
|
+
import { Pricing as P } from "../Pricing/Pricing.js";
|
|
7
|
+
import { QuantityInput as w } from "../QuantityInput/QuantityInput.js";
|
|
8
|
+
import { Icon as k } from "../../atoms/Icon/Icon.js";
|
|
9
|
+
import { c as L } from "../../clsx-OuTLNxxd.js";
|
|
10
|
+
import { s as e } from "../../Cart.module-BFUWHH7s.js";
|
|
11
11
|
function B({
|
|
12
|
-
imageUrl:
|
|
13
|
-
imageAlt:
|
|
14
|
-
title:
|
|
12
|
+
imageUrl: h,
|
|
13
|
+
imageAlt: p = "Product image",
|
|
14
|
+
title: m,
|
|
15
15
|
titleHref: s,
|
|
16
16
|
partNumber: t,
|
|
17
|
-
custom:
|
|
18
|
-
availabilityId:
|
|
17
|
+
custom: f,
|
|
18
|
+
availabilityId: v,
|
|
19
19
|
availability: o,
|
|
20
|
-
contactHref:
|
|
21
|
-
contactLinkBehavior:
|
|
22
|
-
priceLabel:
|
|
20
|
+
contactHref: u,
|
|
21
|
+
contactLinkBehavior: I = "new-tab",
|
|
22
|
+
priceLabel: g = "List Price",
|
|
23
23
|
price: c,
|
|
24
24
|
quantity: l,
|
|
25
25
|
onQuantityChange: n,
|
|
26
26
|
onRemove: d,
|
|
27
|
-
className:
|
|
28
|
-
...
|
|
27
|
+
className: N,
|
|
28
|
+
...b
|
|
29
29
|
}) {
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
t != null && /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ r("li", { className: L(e.cartItem, N), ...b, children: [
|
|
31
|
+
/* @__PURE__ */ i(y, { height: 50, width: 50, src: h || "", alt: p, className: e.itemImage }),
|
|
32
|
+
/* @__PURE__ */ r("div", { children: [
|
|
33
|
+
/* @__PURE__ */ r("div", { className: e.topRow, children: [
|
|
34
|
+
/* @__PURE__ */ r("div", { className: e.itemInfo, children: [
|
|
35
|
+
/* @__PURE__ */ i(a, { size: "sm", weight: "semibold", children: s ? /* @__PURE__ */ i(x, { href: s, children: m }) : m }),
|
|
36
|
+
t != null && /* @__PURE__ */ r(a, { size: "sm", children: [
|
|
37
|
+
/* @__PURE__ */ i(a, { colorToken: "quaternary", size: "xs", children: f ? "Specs " : "Part # " }),
|
|
38
38
|
t
|
|
39
39
|
] })
|
|
40
40
|
] }),
|
|
41
|
-
d && /* @__PURE__ */
|
|
41
|
+
d && /* @__PURE__ */ i("button", { onClick: d, className: e.removeItem, "aria-label": "Remove item", type: "button", children: /* @__PURE__ */ i(k, { iconKey: "fa-regular fa-trash", size: "sm" }) })
|
|
42
42
|
] }),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
o && /* @__PURE__ */
|
|
46
|
-
|
|
43
|
+
/* @__PURE__ */ r("div", { className: e.itemManagement, children: [
|
|
44
|
+
/* @__PURE__ */ r("div", { className: e.purchaseInformation, children: [
|
|
45
|
+
/* @__PURE__ */ i("div", { className: e.availabilitySlot, children: o && /* @__PURE__ */ i(
|
|
46
|
+
z,
|
|
47
47
|
{
|
|
48
|
-
availId:
|
|
48
|
+
availId: v || "",
|
|
49
49
|
availDescription: o,
|
|
50
|
-
contactHref:
|
|
51
|
-
contactLinkBehavior:
|
|
50
|
+
contactHref: u || "",
|
|
51
|
+
contactLinkBehavior: I
|
|
52
52
|
}
|
|
53
|
-
),
|
|
54
|
-
c && /* @__PURE__ */
|
|
53
|
+
) }),
|
|
54
|
+
/* @__PURE__ */ i("div", { className: e.priceSlot, children: c && /* @__PURE__ */ i(P, { pricingLabel: g, price: c }) })
|
|
55
55
|
] }),
|
|
56
|
-
typeof l == "number" && n && /* @__PURE__ */
|
|
57
|
-
|
|
56
|
+
typeof l == "number" && n && /* @__PURE__ */ i(
|
|
57
|
+
w,
|
|
58
58
|
{
|
|
59
59
|
quantity: l,
|
|
60
60
|
onQuantityChange: n,
|
|
@@ -4,7 +4,7 @@ import { Text as l } from "../../atoms/Text/Text.js";
|
|
|
4
4
|
import { Button as f } from "../../atoms/Button/Button.js";
|
|
5
5
|
import { Icon as v } from "../../atoms/Icon/Icon.js";
|
|
6
6
|
import { CartPart as I } from "./CartPart.js";
|
|
7
|
-
import { s as a } from "../../Cart.module-
|
|
7
|
+
import { s as a } from "../../Cart.module-BFUWHH7s.js";
|
|
8
8
|
function q({
|
|
9
9
|
open: o,
|
|
10
10
|
onClose: m,
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import './assets/Cart.css';const t = "_cartIconButton_5jpfu_2", e = "_count_5jpfu_9", o = "_cartContainer_5jpfu_24", n = "_headerWrapper_5jpfu_35", _ = "_header_5jpfu_35", c = "_cartItems_5jpfu_53", a = "_cartItem_5jpfu_53", r = "_topRow_5jpfu_79", u = "_itemInfo_5jpfu_85", m = "_purchaseInformation_5jpfu_90", s = "_itemManagement_5jpfu_97", p = "_itemImage_5jpfu_110", I = "_removeItem_5jpfu_113", f = "_noItems_5jpfu_123", j = "_subtotal_5jpfu_130", i = "_checkoutButton_5jpfu_137", h = {
|
|
2
|
-
cartIconButton: t,
|
|
3
|
-
count: e,
|
|
4
|
-
cartContainer: o,
|
|
5
|
-
headerWrapper: n,
|
|
6
|
-
header: _,
|
|
7
|
-
cartItems: c,
|
|
8
|
-
cartItem: a,
|
|
9
|
-
topRow: r,
|
|
10
|
-
itemInfo: u,
|
|
11
|
-
purchaseInformation: m,
|
|
12
|
-
itemManagement: s,
|
|
13
|
-
itemImage: p,
|
|
14
|
-
removeItem: I,
|
|
15
|
-
noItems: f,
|
|
16
|
-
subtotal: j,
|
|
17
|
-
checkoutButton: i
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
h as s
|
|
21
|
-
};
|