@caseparts-org/caseblocks 0.0.121 → 0.0.123

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.
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Markdown } from './Markdown';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Markdown;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Basic: Story;
@@ -0,0 +1,48 @@
1
+ import { Markdown as e } from "./Markdown.js";
2
+ const o = {
3
+ title: "Case Parts/Atoms/Markdown",
4
+ component: e,
5
+ parameters: { layout: "padded" },
6
+ tags: ["autodocs"]
7
+ }, a = {
8
+ args: {
9
+ children: `# Heading 1
10
+
11
+ Paragraph with a [link](https://example.com).
12
+
13
+ ## Heading 2
14
+
15
+ - Item 1
16
+ - Item 2
17
+
18
+ > Blockquote example
19
+
20
+ ---
21
+
22
+ Inline code: \`const x = 1;\`
23
+
24
+
25
+
26
+
27
+
28
+
29
+ Code block:
30
+
31
+ \`\`\`ts
32
+ function greet(name: string) {
33
+ console.log('Hello', name);
34
+ }
35
+
36
+ export default greet;
37
+
38
+ \`\`\`
39
+
40
+ | Col A | Col B |
41
+ |------:|:------|
42
+ | 123 | text |`
43
+ }
44
+ };
45
+ export {
46
+ a as Basic,
47
+ o as default
48
+ };
@@ -5,85 +5,87 @@ import { Head as n } from "./atoms/Root/Head.js";
5
5
  import { Icon as l } from "./atoms/Icon/Icon.js";
6
6
  import { Root as d } from "./atoms/Root/Root.js";
7
7
  import { Separator as C } from "./atoms/Separator/Separator.js";
8
- import { Text as S } from "./atoms/Text/Text.js";
8
+ import { Text as k } from "./atoms/Text/Text.js";
9
9
  import { Input as I } from "./atoms/Input/Input.js";
10
10
  import { Link as s } from "./atoms/Link/Link.js";
11
11
  import { linkClassName as A } from "./atoms/Link/linkClassName.js";
12
12
  import { configureLink as P, routerOverride as h } from "./atoms/Link/configureLink.js";
13
- import { LinkButton as w } from "./atoms/LinkButton/LinkButton.js";
14
- import { configureImage as M } from "./atoms/Image/configureImage.js";
15
- import { Logo as V } from "./molecules/Logo/Logo.js";
16
- import { SearchBox as y } from "./molecules/SearchBox/SearchBox.js";
17
- import { QuantityInput as z } from "./molecules/QuantityInput/QuantityInput.js";
18
- import { Pricing as O } from "./molecules/Pricing/Pricing.js";
19
- import { Availability as R } from "./molecules/Availability/Availability.js";
20
- import { Avatar as j } from "./molecules/Avatar/Avatar.js";
21
- import { BannerCard as D } from "./molecules/BannerCard/BannerCard.js";
22
- import { CardLink as J } from "./molecules/CardLink/CardLink.js";
23
- import { Breadcrumbs as U } from "./molecules/Breadcrumbs/Breadcrumbs.js";
24
- import { NotFound as X } from "./organisms/NotFound/NotFound.js";
25
- import { HorizontalScroll as _ } from "./atoms/HorizontalScroll/HorizontalScroll.js";
26
- import { SlideInPanel as oo } from "./atoms/SlideInPanel/SlideInPanel.js";
27
- import { Tooltip as eo } from "./atoms/Tooltip/Tooltip.js";
28
- import { Popover as po } from "./atoms/Popover/Popover.js";
29
- import { Account as fo } from "./molecules/Account/Account.js";
30
- import { Chip as ao } from "./molecules/Chip/Chip.js";
31
- import { ToggleView as io } from "./molecules/ToggleView/ToggleView.js";
32
- import { CartSlideInPanel as uo } from "./molecules/Cart/CartSlideInPanel.js";
33
- import { StatefulButton as Co } from "./molecules/StatefulButton/StatefulButton.js";
34
- import { AnimatedCheckMark as So } from "./molecules/StatefulButton/AnimatedCheckmark.js";
35
- import { AddToCart as Io } from "./molecules/AddToCart/AddToCart.js";
36
- import { Modal as so } from "./molecules/Modal/Modal.js";
37
- import { ImageViewer as Ao } from "./molecules/ImageViewer/ImageViewer.js";
38
- import { MainNav as Po } from "./organisms/MainNav/MainNav.js";
13
+ import { LinkButton as M } from "./atoms/LinkButton/LinkButton.js";
14
+ import { configureImage as F } from "./atoms/Image/configureImage.js";
15
+ import { Markdown as V } from "./atoms/Markdown/Markdown.js";
16
+ import { Logo as y } from "./molecules/Logo/Logo.js";
17
+ import { SearchBox as z } from "./molecules/SearchBox/SearchBox.js";
18
+ import { QuantityInput as O } from "./molecules/QuantityInput/QuantityInput.js";
19
+ import { Pricing as R } from "./molecules/Pricing/Pricing.js";
20
+ import { Availability as j } from "./molecules/Availability/Availability.js";
21
+ import { Avatar as D } from "./molecules/Avatar/Avatar.js";
22
+ import { BannerCard as J } from "./molecules/BannerCard/BannerCard.js";
23
+ import { CardLink as U } from "./molecules/CardLink/CardLink.js";
24
+ import { Breadcrumbs as X } from "./molecules/Breadcrumbs/Breadcrumbs.js";
25
+ import { NotFound as _ } from "./organisms/NotFound/NotFound.js";
26
+ import { HorizontalScroll as oo } from "./atoms/HorizontalScroll/HorizontalScroll.js";
27
+ import { SlideInPanel as eo } from "./atoms/SlideInPanel/SlideInPanel.js";
28
+ import { Tooltip as po } from "./atoms/Tooltip/Tooltip.js";
29
+ import { Popover as fo } from "./atoms/Popover/Popover.js";
30
+ import { Account as ao } from "./molecules/Account/Account.js";
31
+ import { Chip as io } from "./molecules/Chip/Chip.js";
32
+ import { ToggleView as uo } from "./molecules/ToggleView/ToggleView.js";
33
+ import { CartSlideInPanel as Co } from "./molecules/Cart/CartSlideInPanel.js";
34
+ import { StatefulButton as ko } from "./molecules/StatefulButton/StatefulButton.js";
35
+ import { AnimatedCheckMark as Io } from "./molecules/StatefulButton/AnimatedCheckmark.js";
36
+ import { AddToCart as so } from "./molecules/AddToCart/AddToCart.js";
37
+ import { Modal as Ao } from "./molecules/Modal/Modal.js";
38
+ import { ImageViewer as Po } from "./molecules/ImageViewer/ImageViewer.js";
39
+ import { MainNav as wo } from "./organisms/MainNav/MainNav.js";
39
40
  import { ChipSelector as To } from "./organisms/ChipSelector/ChipSelector.js";
40
- import { Product as Fo } from "./organisms/Product/Product.js";
41
- import { Carousel as No } from "./organisms/Carousel/Carousel.js";
42
- import { Footer as bo } from "./organisms/Footer/Footer.js";
43
- import { default as Ho } from "./organisms/SpinZoomViewer/SpinZoomViewer.js";
41
+ import { Product as No } from "./organisms/Product/Product.js";
42
+ import { Carousel as bo } from "./organisms/Carousel/Carousel.js";
43
+ import { Footer as Ho } from "./organisms/Footer/Footer.js";
44
+ import { default as Go } from "./organisms/SpinZoomViewer/SpinZoomViewer.js";
44
45
  export {
45
- fo as Account,
46
- Io as AddToCart,
47
- So as AnimatedCheckMark,
48
- R as Availability,
49
- j as Avatar,
50
- D as BannerCard,
51
- U as Breadcrumbs,
46
+ ao as Account,
47
+ so as AddToCart,
48
+ Io as AnimatedCheckMark,
49
+ j as Availability,
50
+ D as Avatar,
51
+ J as BannerCard,
52
+ X as Breadcrumbs,
52
53
  e as Button,
53
- J as CardLink,
54
- No as Carousel,
55
- uo as CartSlideInPanel,
56
- ao as Chip,
54
+ U as CardLink,
55
+ bo as Carousel,
56
+ Co as CartSlideInPanel,
57
+ io as Chip,
57
58
  To as ChipSelector,
58
59
  f as Column,
59
60
  p as Flex,
60
- bo as Footer,
61
+ Ho as Footer,
61
62
  x as Grid,
62
63
  n as Head,
63
- _ as HorizontalScroll,
64
+ oo as HorizontalScroll,
64
65
  l as Icon,
65
- Ao as ImageViewer,
66
+ Po as ImageViewer,
66
67
  I as Input,
67
68
  s as Link,
68
- w as LinkButton,
69
- V as Logo,
70
- Po as MainNav,
71
- so as Modal,
72
- X as NotFound,
73
- po as Popover,
74
- O as Pricing,
75
- Fo as Product,
76
- z as QuantityInput,
69
+ M as LinkButton,
70
+ y as Logo,
71
+ wo as MainNav,
72
+ V as Markdown,
73
+ Ao as Modal,
74
+ _ as NotFound,
75
+ fo as Popover,
76
+ R as Pricing,
77
+ No as Product,
78
+ O as QuantityInput,
77
79
  d as Root,
78
- y as SearchBox,
80
+ z as SearchBox,
79
81
  C as Separator,
80
- oo as SlideInPanel,
81
- Ho as SpinZoomViewer,
82
- Co as StatefulButton,
83
- S as Text,
84
- io as ToggleView,
85
- eo as Tooltip,
86
- M as configureImage,
82
+ eo as SlideInPanel,
83
+ Go as SpinZoomViewer,
84
+ ko as StatefulButton,
85
+ k as Text,
86
+ uo as ToggleView,
87
+ po as Tooltip,
88
+ F as configureImage,
87
89
  P as configureLink,
88
90
  A as linkClassName,
89
91
  h as routerOverride
@@ -21,6 +21,8 @@ export { LinkButton } from './atoms/LinkButton/LinkButton';
21
21
  export type { LinkButtonProps } from './atoms/LinkButton/LinkButton';
22
22
  export { configureImage } from './atoms/Image/configureImage';
23
23
  export type { ImageProps, ImageImplementation } from './atoms/Image/Image';
24
+ export { Markdown } from './atoms/Markdown/Markdown';
25
+ export type { MarkdownProps } from './atoms/Markdown/Markdown';
24
26
  export { Logo } from './molecules/Logo/Logo';
25
27
  export type { LogoProps } from './molecules/Logo/Logo';
26
28
  export { SearchBox } from './molecules/SearchBox/SearchBox';
@@ -4,31 +4,32 @@ import { Column as x, Grid as f } from "./atoms/Grid/Grid.js";
4
4
  import { Head as a } from "./atoms/Root/Head.js";
5
5
  import { Icon as u } from "./atoms/Icon/Icon.js";
6
6
  import { Root as c } from "./atoms/Root/Root.js";
7
- import { Separator as g } from "./atoms/Separator/Separator.js";
7
+ import { Separator as l } from "./atoms/Separator/Separator.js";
8
8
  import { Text as B } from "./atoms/Text/Text.js";
9
9
  import { Input as C } from "./atoms/Input/Input.js";
10
10
  import { Link as s } from "./atoms/Link/Link.js";
11
11
  import { linkClassName as b } from "./atoms/Link/linkClassName.js";
12
12
  import { configureLink as A, routerOverride as F } from "./atoms/Link/configureLink.js";
13
13
  import { LinkButton as S } from "./atoms/LinkButton/LinkButton.js";
14
- import { configureImage as G } from "./atoms/Image/configureImage.js";
14
+ import { configureImage as w } from "./atoms/Image/configureImage.js";
15
+ import { Markdown as H } from "./atoms/Markdown/Markdown.js";
15
16
  import { Logo as O } from "./molecules/Logo/Logo.js";
16
17
  import { SearchBox as Q } from "./molecules/SearchBox/SearchBox.js";
17
18
  import { QuantityInput as T } from "./molecules/QuantityInput/QuantityInput.js";
18
19
  import { Pricing as q } from "./molecules/Pricing/Pricing.js";
19
- import { Availability as z } from "./molecules/Availability/Availability.js";
20
- import { Avatar as E } from "./molecules/Avatar/Avatar.js";
21
- import { BannerCard as K } from "./molecules/BannerCard/BannerCard.js";
22
- import { CardLink as U } from "./molecules/CardLink/CardLink.js";
23
- import { Breadcrumbs as W } from "./molecules/Breadcrumbs/Breadcrumbs.js";
24
- import { NotFound as Y } from "./organisms/NotFound/NotFound.js";
20
+ import { Availability as D } from "./molecules/Availability/Availability.js";
21
+ import { Avatar as J } from "./molecules/Avatar/Avatar.js";
22
+ import { BannerCard as U } from "./molecules/BannerCard/BannerCard.js";
23
+ import { CardLink as W } from "./molecules/CardLink/CardLink.js";
24
+ import { Breadcrumbs as Y } from "./molecules/Breadcrumbs/Breadcrumbs.js";
25
+ import { NotFound as _ } from "./organisms/NotFound/NotFound.js";
25
26
  export {
26
- z as Availability,
27
- E as Avatar,
28
- K as BannerCard,
29
- W as Breadcrumbs,
27
+ D as Availability,
28
+ J as Avatar,
29
+ U as BannerCard,
30
+ Y as Breadcrumbs,
30
31
  t as Button,
31
- U as CardLink,
32
+ W as CardLink,
32
33
  x as Column,
33
34
  m as Flex,
34
35
  f as Grid,
@@ -38,14 +39,15 @@ export {
38
39
  s as Link,
39
40
  S as LinkButton,
40
41
  O as Logo,
41
- Y as NotFound,
42
+ H as Markdown,
43
+ _ as NotFound,
42
44
  q as Pricing,
43
45
  T as QuantityInput,
44
46
  c as Root,
45
47
  Q as SearchBox,
46
- g as Separator,
48
+ l as Separator,
47
49
  B as Text,
48
- G as configureImage,
50
+ w as configureImage,
49
51
  A as configureLink,
50
52
  b as linkClassName,
51
53
  F as routerOverride
@@ -9,7 +9,7 @@ export interface ProductProps extends AvailabilityProps {
9
9
  partNumber: string;
10
10
  priceLabel: string;
11
11
  price: string;
12
- imgSrc: string;
12
+ imgSrc?: string;
13
13
  attributes?: {
14
14
  label: string;
15
15
  value: string;
@@ -17,5 +17,6 @@ export interface ProductProps extends AvailabilityProps {
17
17
  className?: string;
18
18
  onAddToCart: (_itemKey: number, _quantity: number) => void;
19
19
  onClose?: (_itemKey: number) => void;
20
+ flat?: boolean;
20
21
  }
21
- export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, contactHref, contactLinkBehavior, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart, onClose, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, contactHref, contactLinkBehavior, productHref, priceLabel, price, imgSrc, attributes, className, onAddToCart, onClose, flat, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
@@ -1,131 +1,134 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { Image as T } from "../../atoms/Image/Image.js";
3
- import { Link as g } from "../../atoms/Link/Link.js";
2
+ import { Image as v } from "../../atoms/Image/Image.js";
3
+ import { Link as I } from "../../atoms/Link/Link.js";
4
4
  import { Text as o } from "../../atoms/Text/Text.js";
5
- import { Availability as y } from "../../molecules/Availability/Availability.js";
6
- import { Pricing as w } from "../../molecules/Pricing/Pricing.js";
7
- import { AddToCart as v } from "../../molecules/AddToCart/AddToCart.js";
8
- import { Icon as B } from "../../atoms/Icon/Icon.js";
9
- import { c as x } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const L = "_productCard_15dy7_1", P = "_productInformation_15dy7_22", R = "_purchaseInformation_15dy7_29", $ = "_addToCart_15dy7_37", A = "_addToCartButton_15dy7_40", D = "_partNumber_15dy7_48", j = "_partNumberLabel_15dy7_55", k = "_productTile_15dy7_59", q = "_topRow_15dy7_80", E = "_productData_15dy7_111", F = "_purchase_15dy7_29", G = "_attributeContainer_15dy7_148", r = {
11
- productCard: L,
12
- productInformation: P,
13
- purchaseInformation: R,
14
- addToCart: $,
15
- addToCartButton: A,
16
- partNumber: D,
17
- partNumberLabel: j,
18
- productTile: k,
19
- topRow: q,
20
- productData: E,
21
- purchase: F,
22
- attributeContainer: G
5
+ import { Availability as w } from "../../molecules/Availability/Availability.js";
6
+ import { Pricing as x } from "../../molecules/Pricing/Pricing.js";
7
+ import { AddToCart as z } from "../../molecules/AddToCart/AddToCart.js";
8
+ import { Icon as R } from "../../atoms/Icon/Icon.js";
9
+ import { c as B } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Product.css';const $ = "_productCard_179ie_1", A = "_productInformation_179ie_20", D = "_purchaseInformation_179ie_27", P = "_addToCart_179ie_35", j = "_addToCartButton_179ie_38", k = "_partNumber_179ie_46", y = "_partNumberLabel_179ie_53", q = "_productTile_179ie_57", E = "_topRow_179ie_76", F = "_productData_179ie_107", G = "_purchase_179ie_27", J = "_attributeContainer_179ie_144", M = "_elevated_179ie_192", O = "_noImage_179ie_198", e = {
11
+ productCard: $,
12
+ productInformation: A,
13
+ purchaseInformation: D,
14
+ addToCart: P,
15
+ addToCartButton: j,
16
+ partNumber: k,
17
+ partNumberLabel: y,
18
+ productTile: q,
19
+ topRow: E,
20
+ productData: F,
21
+ purchase: G,
22
+ attributeContainer: J,
23
+ elevated: M,
24
+ noImage: O
23
25
  };
24
- function Z({
25
- productView: I,
26
- itemKey: s,
27
- partNumber: d,
28
- productDescription: l,
29
- availDescription: m,
30
- availId: e,
31
- contactHref: u,
32
- contactLinkBehavior: h,
33
- productHref: p,
34
- priceLabel: _,
35
- price: i,
36
- imgSrc: N,
37
- attributes: c,
26
+ function S({
27
+ productView: L,
28
+ itemKey: c,
29
+ partNumber: i,
30
+ productDescription: m,
31
+ availDescription: u,
32
+ availId: d,
33
+ contactHref: h,
34
+ contactLinkBehavior: p,
35
+ productHref: _,
36
+ priceLabel: N,
37
+ price: n,
38
+ imgSrc: r,
39
+ attributes: l,
38
40
  className: b,
39
41
  onAddToCart: f,
40
42
  onClose: C,
41
- ...z
43
+ flat: T,
44
+ ...g
42
45
  }) {
43
- return I === "Card" ? /* @__PURE__ */ a("div", { className: x(r.productCard, b), children: [
44
- /* @__PURE__ */ t(
45
- T,
46
+ return L === "Card" ? /* @__PURE__ */ a("div", { className: B(e.productCard, b, !T && e.elevated, !r && e.noImage), ...g, children: [
47
+ r && /* @__PURE__ */ t(
48
+ v,
46
49
  {
47
- src: N,
48
- alt: `${d} product image`,
50
+ src: r,
51
+ alt: `${i} product image`,
49
52
  height: 96,
50
53
  width: 96
51
54
  }
52
55
  ),
53
- /* @__PURE__ */ a("div", { className: r.productInformation, children: [
54
- /* @__PURE__ */ t(g, { href: p, children: l }),
55
- /* @__PURE__ */ a("div", { className: r.partNumber, children: [
56
- /* @__PURE__ */ t(o, { size: "sm", className: r.partNumberLabel, children: "Part #" }),
57
- /* @__PURE__ */ t(o, { size: "sm", weight: "semibold", children: d })
56
+ /* @__PURE__ */ a("div", { className: e.productInformation, children: [
57
+ /* @__PURE__ */ t(I, { href: _, children: m }),
58
+ /* @__PURE__ */ a("div", { className: e.partNumber, children: [
59
+ /* @__PURE__ */ t(o, { size: "sm", className: e.partNumberLabel, children: "Part #" }),
60
+ /* @__PURE__ */ t(o, { size: "sm", weight: "semibold", children: i })
58
61
  ] })
59
62
  ] }),
60
- /* @__PURE__ */ a("div", { className: r.purchaseInformation, children: [
61
- e && /* @__PURE__ */ t(
62
- y,
63
+ /* @__PURE__ */ a("div", { className: e.purchaseInformation, children: [
64
+ d && /* @__PURE__ */ t(
65
+ w,
63
66
  {
64
- availId: e,
65
- availDescription: m,
66
- contactHref: u,
67
- contactLinkBehavior: h
67
+ availId: d,
68
+ availDescription: u,
69
+ contactHref: h,
70
+ contactLinkBehavior: p
68
71
  }
69
72
  ),
70
- i && /* @__PURE__ */ t(w, { pricingLabel: _, price: i })
73
+ n && /* @__PURE__ */ t(x, { pricingLabel: N, price: n })
71
74
  ] }),
72
75
  /* @__PURE__ */ t(
73
- v,
76
+ z,
74
77
  {
75
- itemKey: s,
78
+ itemKey: c,
76
79
  onAdd: f,
77
- className: r.addToCart,
78
- addButtonClassName: r.addToCartButton,
80
+ className: e.addToCart,
81
+ addButtonClassName: e.addToCartButton,
79
82
  size: "md",
80
83
  buttonDoneText: ""
81
84
  }
82
85
  )
83
- ] }) : /* @__PURE__ */ a("div", { className: x(r.productTile, b), ...z, children: [
84
- /* @__PURE__ */ t(
85
- T,
86
+ ] }) : /* @__PURE__ */ a("div", { className: B(e.productTile, b, !T && e.elevated, !r && e.noImage), ...g, children: [
87
+ r && /* @__PURE__ */ t(
88
+ v,
86
89
  {
87
- src: N,
88
- alt: `${d} product image`,
90
+ src: r,
91
+ alt: `${i} product image`,
89
92
  height: 108,
90
93
  width: 108
91
94
  }
92
95
  ),
93
- /* @__PURE__ */ a("div", { className: r.productData, children: [
94
- /* @__PURE__ */ a("div", { className: r.topRow, children: [
95
- /* @__PURE__ */ a("div", { className: r.productInformation, children: [
96
- /* @__PURE__ */ t(g, { href: p, children: l }),
97
- /* @__PURE__ */ a("div", { className: r.partNumber, children: [
98
- /* @__PURE__ */ t(o, { size: "sm", className: r.partNumberLabel, children: "Part #" }),
99
- /* @__PURE__ */ t(o, { size: "sm", weight: "semibold", children: d })
96
+ /* @__PURE__ */ a("div", { className: e.productData, children: [
97
+ /* @__PURE__ */ a("div", { className: e.topRow, children: [
98
+ /* @__PURE__ */ a("div", { className: e.productInformation, children: [
99
+ /* @__PURE__ */ t(I, { href: _, children: m }),
100
+ /* @__PURE__ */ a("div", { className: e.partNumber, children: [
101
+ /* @__PURE__ */ t(o, { size: "sm", className: e.partNumberLabel, children: "Part #" }),
102
+ /* @__PURE__ */ t(o, { size: "sm", weight: "semibold", children: i })
100
103
  ] })
101
104
  ] }),
102
- C && /* @__PURE__ */ t("button", { onClick: () => C(s), children: /* @__PURE__ */ t(B, { size: "sm", iconKey: "fa-light fa-xmark" }) })
105
+ C && /* @__PURE__ */ t("button", { onClick: () => C(c), children: /* @__PURE__ */ t(R, { size: "sm", iconKey: "fa-light fa-xmark" }) })
103
106
  ] }),
104
- /* @__PURE__ */ a("div", { className: r.purchase, children: [
105
- /* @__PURE__ */ a("div", { className: r.purchaseInformation, children: [
106
- e && /* @__PURE__ */ t(
107
- y,
107
+ /* @__PURE__ */ a("div", { className: e.purchase, children: [
108
+ /* @__PURE__ */ a("div", { className: e.purchaseInformation, children: [
109
+ d && /* @__PURE__ */ t(
110
+ w,
108
111
  {
109
- availId: e,
110
- availDescription: m,
111
- contactHref: u,
112
- contactLinkBehavior: h
112
+ availId: d,
113
+ availDescription: u,
114
+ contactHref: h,
115
+ contactLinkBehavior: p
113
116
  }
114
117
  ),
115
- i && /* @__PURE__ */ t(w, { pricingLabel: _, price: i })
118
+ n && /* @__PURE__ */ t(x, { pricingLabel: N, price: n })
116
119
  ] }),
117
- /* @__PURE__ */ t(v, { itemKey: s, onAdd: f, className: r.addToCart, addButtonClassName: r.addToCartButton })
120
+ /* @__PURE__ */ t(z, { itemKey: c, onAdd: f, className: e.addToCart, addButtonClassName: e.addToCartButton })
118
121
  ] }),
119
- c && c.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: c.map((n) => /* @__PURE__ */ a("li", { children: [
122
+ l && l.length > 0 && /* @__PURE__ */ t("ul", { className: e.attributeContainer, children: l.map((s) => /* @__PURE__ */ a("li", { children: [
120
123
  /* @__PURE__ */ a(o, { size: "xs", weight: "light", children: [
121
- n.label,
124
+ s.label,
122
125
  ":"
123
126
  ] }),
124
- /* @__PURE__ */ t(o, { size: "xs", weight: "semibold", children: n.value })
125
- ] }, `${n.label}.${n.value}`)) })
127
+ /* @__PURE__ */ t(o, { size: "xs", weight: "semibold", children: s.value })
128
+ ] }, `${s.label}.${s.value}`)) })
126
129
  ] })
127
130
  ] });
128
131
  }
129
132
  export {
130
- Z as Product
133
+ S as Product
131
134
  };
@@ -65,6 +65,10 @@ declare const meta: {
65
65
  action: string;
66
66
  description: string;
67
67
  };
68
+ flat: {
69
+ control: "boolean";
70
+ description: string;
71
+ };
68
72
  };
69
73
  args: ProductProps;
70
74
  tags: string[];
@@ -77,3 +81,6 @@ export declare const Unavailable: Story;
77
81
  export declare const ContactForAvailability: Story;
78
82
  export declare const TileView: Story;
79
83
  export declare const DifferentPriceLabel: Story;
84
+ export declare const NoImageCard: Story;
85
+ export declare const FlatTile: Story;
86
+ export declare const NoImageFlatCard: Story;
@@ -46,7 +46,8 @@ const o = [
46
46
  price: { control: "text" },
47
47
  imgSrc: { control: "text" },
48
48
  itemKey: { control: "number" },
49
- onAddToCart: { action: "addToCart", description: "(itemKey, quantity)" }
49
+ onAddToCart: { action: "addToCart", description: "(itemKey, quantity)" },
50
+ flat: { control: "boolean", description: "Removes border and shadow" }
50
51
  },
51
52
  args: {
52
53
  productView: "Card",
@@ -69,7 +70,8 @@ const o = [
69
70
  },
70
71
  onClose: (t) => {
71
72
  alert(`On close clicked ${t}`);
72
- }
73
+ },
74
+ flat: !1
73
75
  },
74
76
  tags: ["autodocs"]
75
77
  }, l = {}, c = {
@@ -90,23 +92,42 @@ const o = [
90
92
  contactLinkBehavior: "new-tab",
91
93
  contactHref: "https://dev.caseparts.com/account/contactus"
92
94
  }
93
- }, p = {
95
+ }, d = {
94
96
  args: {
95
97
  productView: "Tile",
96
98
  productDescription: "Tile View Product"
97
99
  }
98
- }, d = {
100
+ }, p = {
99
101
  args: {
100
102
  priceLabel: "Member",
101
103
  price: "$118.49"
102
104
  }
105
+ }, u = {
106
+ args: {
107
+ productView: "Card",
108
+ imgSrc: void 0
109
+ }
110
+ }, v = {
111
+ args: {
112
+ productView: "Tile",
113
+ flat: !0
114
+ }
115
+ }, b = {
116
+ args: {
117
+ productView: "Card",
118
+ imgSrc: void 0,
119
+ flat: !0
120
+ }
103
121
  };
104
122
  export {
105
123
  s as ContactForAvailability,
106
124
  l as Default,
107
- d as DifferentPriceLabel,
125
+ p as DifferentPriceLabel,
126
+ v as FlatTile,
108
127
  c as LimitedStock,
109
- p as TileView,
128
+ u as NoImageCard,
129
+ b as NoImageFlatCard,
130
+ d as TileView,
110
131
  n as Unavailable,
111
132
  r as default
112
133
  };