@caseparts-org/caseblocks 0.0.217 → 0.0.219

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 @@
1
+ ._badge_1b53d_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-3xs) var(--spacing-spacing-2xs);border-radius:0 0 0 12px;background-color:var(--text-text-secondary);text-align:center;text-decoration:none;white-space:nowrap}@media (max-width: 768px){._badge_1b53d_1{padding:var(--spacing-spacing-3xs);border-radius:0 0 0 10px}}._inherit_1b53d_24{background-color:inherit}._warning_1b53d_28{background-color:var(--text-text-caution)}._disabled_1b53d_32{background-color:var(--text-text-disabled)}._error-warning_1b53d_36{background-color:var(--text-text-error-warning)}._default-inverted_1b53d_40{background-color:var(--text-text-invert)}._links_1b53d_44{background-color:var(--text-text-links)}._links-hover-press_1b53d_48{background-color:var(--text-text-links-hover-press)}._primary_1b53d_52{background-color:var(--text-text-primary)}._quaternary_1b53d_56{background-color:var(--text-text-quaternary)}._search-bar_1b53d_60{background-color:var(--text-text-search-bar)}._secondary_1b53d_64{background-color:var(--text-text-secondary)}._success_1b53d_68{background-color:var(--text-text-success)}._tertiary_1b53d_72{background-color:var(--text-text-tertiary)}._footer_1b53d_76{background-color:var(--text-text-footer)}._text_1b53d_80{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){._text_1b53d_80{font-size:var(--font-size-xxs);line-height:var(--font-line-height-xxs)}}
@@ -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)}
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)}
@@ -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 B } from "./atoms/ToggleSwitch/ToggleSwitch.js";
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 D } from "./atoms/HideAt.js";
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 j } from "./molecules/Pricing/Pricing.js";
22
- import { ProgressBar as J } from "./molecules/ProgressBar/ProgressBar.js";
23
- import { Availability as U } from "./molecules/Availability/Availability.js";
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 { NotFound as ao } from "./organisms/NotFound/NotFound.js";
31
- import { HorizontalScroll as no } from "./atoms/HorizontalScroll/HorizontalScroll.js";
32
- import { SlideInPanel as uo } from "./atoms/SlideInPanel/SlideInPanel.js";
33
- import { DropdownButton as go } from "./atoms/DropdownButton/DropdownButton.js";
34
- import { Tooltip as so } from "./atoms/Tooltip/Tooltip.js";
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";
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
- Bo as Accordion,
58
- ko as Account,
59
- Go as AddToCart,
60
- Fo as AddToCartPart,
58
+ ko as Accordion,
59
+ ho as Account,
60
+ Qo as AddToCart,
61
+ Mo as AddToCartPart,
61
62
  fo as Admonition,
62
- zo as AnimatedCheckMark,
63
- U as Availability,
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
- rr as Carousel,
70
- bo as CartPart,
71
- Mo as CartSlideInPanel,
72
- ho as Chip,
73
- Yo as ChipSelector,
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
- go as DropdownButton,
77
- Ko as Error,
78
+ so as DropdownButton,
79
+ Uo as Error,
78
80
  m as Flex,
79
- tr as Footer,
81
+ pr as Footer,
80
82
  x as Grid,
81
83
  i as Head,
82
- no as HorizontalScroll,
84
+ uo as HorizontalScroll,
83
85
  l as Icon,
84
- Zo as ImageViewer,
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
- Wo as MainNav,
90
- Qo as Modal,
91
- ao as NotFound,
91
+ Yo as MainNav,
92
+ Wo as Modal,
93
+ no as NotFound,
92
94
  H as Pill,
93
- Ao as Popover,
94
- j as Pricing,
95
- $o as Product,
96
- J as ProgressBar,
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
- uo as SlideInPanel,
102
- pr as SpinZoomViewer,
103
- Vo as StatefulButton,
104
- qo as Table,
103
+ go as SlideInPanel,
104
+ xr as SpinZoomViewer,
105
+ Do as StatefulButton,
106
+ Jo as Table,
105
107
  s as Text,
106
- B as ToggleSwitch,
107
- wo as ToggleView,
108
- so as Tooltip,
108
+ P as ToggleSwitch,
109
+ bo as ToggleView,
110
+ Ao as Tooltip,
109
111
  N as configureImage,
110
112
  w as configureLink,
111
- D as getHideAtStyles,
113
+ z as getHideAtStyles,
112
114
  h as linkClassName,
113
115
  L as routerOverride
114
116
  };
@@ -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';
@@ -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 n } from "./atoms/Root/Head.js";
5
- import { Icon as l } from "./atoms/Icon/Icon.js";
6
- import { Root as d } from "./atoms/Root/Root.js";
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 L } from "./atoms/Input/Input.js";
10
- import { ToggleSwitch as C } from "./atoms/ToggleSwitch/ToggleSwitch.js";
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 D } from "./atoms/Image/configureImage.js";
17
- import { getHideAtStyles as O } from "./atoms/HideAt.js";
18
- import { Logo as R } from "./molecules/Logo/Logo.js";
19
- import { SearchBox as q } from "./molecules/SearchBox/SearchBox.js";
20
- import { QuantityInput as E } from "./molecules/QuantityInput/QuantityInput.js";
21
- import { Pricing as K } from "./molecules/Pricing/Pricing.js";
22
- import { ProgressBar as U } from "./molecules/ProgressBar/ProgressBar.js";
23
- import { Availability as W } from "./molecules/Availability/Availability.js";
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 { NotFound as ir } from "./organisms/NotFound/NotFound.js";
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
- W as Availability,
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
- n as Head,
44
- l as Icon,
45
- L as Input,
45
+ a as Head,
46
+ u as Icon,
47
+ C as Input,
46
48
  S as Link,
47
49
  H as LinkButton,
48
- R as Logo,
49
- ir as NotFound,
50
+ Q as Logo,
51
+ nr as NotFound,
50
52
  T as Pill,
51
- K as Pricing,
52
- U as ProgressBar,
53
- E as QuantityInput,
54
- d as Root,
55
- q as SearchBox,
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
- C as ToggleSwitch,
59
- D as configureImage,
60
+ A as ToggleSwitch,
61
+ z as configureImage,
60
62
  b as configureLink,
61
- O as getHideAtStyles,
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 d } from "../../atoms/Link/Link.js";
4
+ import { Text as i } from "../../atoms/Text/Text.js";
5
+ import '../../assets/CustomWizardBadge.css';const c = "_badge_1b53d_1", b = "_inherit_1b53d_24", l = "_warning_1b53d_28", u = "_disabled_1b53d_32", m = "_links_1b53d_44", y = "_primary_1b53d_52", g = "_quaternary_1b53d_56", f = "_secondary_1b53d_64", h = "_success_1b53d_68", p = "_tertiary_1b53d_72", x = "_footer_1b53d_76", k = "_text_1b53d_80", r = {
6
+ badge: c,
7
+ inherit: b,
8
+ warning: l,
9
+ disabled: u,
10
+ "error-warning": "_error-warning_1b53d_36",
11
+ "default-inverted": "_default-inverted_1b53d_40",
12
+ links: m,
13
+ "links-hover-press": "_links-hover-press_1b53d_48",
14
+ primary: y,
15
+ quaternary: g,
16
+ "search-bar": "_search-bar_1b53d_60",
17
+ secondary: f,
18
+ success: h,
19
+ tertiary: p,
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(d, { href: s, unstyled: !0, className: t(r.badge, r[_], a), children: /* @__PURE__ */ e(
31
+ i,
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 { IconProps } from '../../atoms/Icon/Icon';
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?: string;
11
- customWizardIconKey?: IconProps['iconKey'] | null;
10
+ customWizardText?: CustomWizardBadgeProps["text"];
11
+ customWizardColorToken?: CustomWizardBadgeProps["colorToken"];
12
12
  productHref?: string;
13
13
  itemKey: number;
14
14
  partNumber: string;
@@ -28,4 +28,4 @@ export interface ProductProps extends AvailabilityProps {
28
28
  requiresUnitDetails?: boolean;
29
29
  maxQuantity?: number;
30
30
  }
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;
31
+ export declare function Product({ productView, itemKey, partNumber, productDescription, availDescription, availId, inventory, productHref, customWizardUrl, customWizardText, customWizardColorToken, priceLabel, price, imgSrc, attributes, className, onAddToCart, flat, size, showQuantity, onLinkClicked, requiresUnitDetails, maxQuantity, ...otherProps }: ProductProps): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,13 @@
1
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";
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
+ import { Availability as P } from "../../molecules/Availability/Availability.js";
7
6
  import { Pricing as D } from "../../molecules/Pricing/Pricing.js";
8
7
  import { AddToCart as V } from "../../molecules/AddToCart/AddToCart.js";
8
+ import { CustomWizardBadge as k } from "../../molecules/CustomWizardBadge/CustomWizardBadge.js";
9
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 = {
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
11
  productCard: G,
12
12
  sm: J,
13
13
  productInformation: M,
@@ -16,157 +16,149 @@ import '../../assets/Product.css';const G = "_productCard_sx511_3", J = "_sm_sx5
16
16
  addToCartButton: X,
17
17
  partNumber: Y,
18
18
  partNumberLabel: Z,
19
- productTile: q,
20
- productData: H,
21
- purchase: y,
22
- attributeContainer: L,
23
- customWizardBadge: Q,
24
- customWizardBadgeText: K,
25
- elevated: S,
26
- noImage: U
19
+ productTile: H,
20
+ productData: y,
21
+ purchase: L,
22
+ attributeContainer: K,
23
+ elevated: Q,
24
+ noImage: S
27
25
  };
28
- function na({
26
+ function nr({
29
27
  productView: F,
30
28
  itemKey: c,
31
- partNumber: n,
32
- productDescription: g,
33
- availDescription: N,
34
- availId: l,
35
- inventory: T,
36
- productHref: b,
37
- customWizardUrl: m,
38
- customWizardText: B = "Customize",
39
- customWizardIconKey: u,
40
- priceLabel: v,
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
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,
39
+ price: u,
40
+ imgSrc: o,
41
+ attributes: _,
42
+ className: q,
43
+ onAddToCart: v,
44
+ flat: x,
45
+ size: a = "md",
46
+ showQuantity: i = !0,
47
+ onLinkClicked: d,
48
+ requiresUnitDetails: I = !1,
49
+ maxQuantity: B,
50
+ ...A
53
51
  }) {
54
- const h = r === "sm" ? "xs" : "sm";
52
+ const p = a === "sm" ? "xs" : "sm";
55
53
  return F === "Card" ? /* @__PURE__ */ e(
56
54
  "div",
57
55
  {
58
56
  className: E(
59
- a.productCard,
60
- r && a[r],
61
- C,
62
- !w && a.elevated,
63
- !d && a.noImage
57
+ r.productCard,
58
+ a && r[a],
59
+ q,
60
+ !x && r.elevated,
61
+ !o && r.noImage
64
62
  ),
65
- ...z,
63
+ ...A,
66
64
  children: [
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: B })
70
- ] }),
71
- d && /* @__PURE__ */ t(
72
- P,
65
+ l && /* @__PURE__ */ t(k, { href: l, text: j, colorToken: C }),
66
+ o && /* @__PURE__ */ t(
67
+ w,
73
68
  {
74
- src: d,
75
- alt: `${n} product image`,
76
- height: r === "sm" ? 78 : 96,
77
- width: r === "sm" ? 78 : 96
69
+ src: o,
70
+ alt: `${s} product image`,
71
+ height: a === "sm" ? 78 : 96,
72
+ width: a === "sm" ? 78 : 96
78
73
  }
79
74
  ),
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 })
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 })
85
80
  ] })
86
81
  ] }),
87
- /* @__PURE__ */ e("div", { className: a.purchaseInformation, children: [
88
- l && /* @__PURE__ */ t(
89
- j,
82
+ /* @__PURE__ */ e("div", { className: r.purchaseInformation, children: [
83
+ m && /* @__PURE__ */ t(
84
+ P,
90
85
  {
91
- availId: l,
92
- availDescription: N,
93
- inventory: T,
86
+ availId: m,
87
+ availDescription: f,
88
+ inventory: N,
94
89
  enableTooltip: !0
95
90
  }
96
91
  ),
97
- i && /* @__PURE__ */ t(D, { pricingLabel: v, price: i })
92
+ u && /* @__PURE__ */ t(D, { pricingLabel: g, price: u })
98
93
  ] }),
99
94
  /* @__PURE__ */ t(
100
95
  V,
101
96
  {
102
97
  itemKey: c,
103
- onAdd: I,
104
- max: $,
105
- className: a.addToCart,
106
- addButtonClassName: a.addToCartButton,
107
- addButtonVariant: f ? "cta-primary" : "secondary",
108
- size: r,
98
+ onAdd: v,
99
+ max: B,
100
+ className: r.addToCart,
101
+ addButtonClassName: r.addToCartButton,
102
+ addButtonVariant: i ? "cta-primary" : "secondary",
103
+ size: a,
109
104
  buttonDoneText: "",
110
- buttonText: f ? "Add" : "Add to Cart",
111
- showQuantity: f,
112
- requiresUnitDetails: A
105
+ buttonText: i ? "Add" : "Add to Cart",
106
+ showQuantity: i,
107
+ requiresUnitDetails: I
113
108
  }
114
109
  )
115
110
  ]
116
111
  }
117
112
  ) : /* @__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: B })
127
- ] }),
128
- d && /* @__PURE__ */ t(
129
- P,
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,
130
122
  {
131
- src: d,
132
- alt: `${n} product image`,
133
- height: r === "sm" ? 86 : 108,
134
- width: r === "sm" ? 86 : 108
123
+ src: o,
124
+ alt: `${s} product image`,
125
+ height: a === "sm" ? 86 : 108,
126
+ width: a === "sm" ? 86 : 108
135
127
  }
136
128
  ),
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 })
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 })
143
135
  ] })
144
136
  ] }),
145
- /* @__PURE__ */ e("div", { className: a.purchase, children: [
146
- /* @__PURE__ */ e("div", { className: a.purchaseInformation, children: [
147
- l && /* @__PURE__ */ t(
148
- j,
137
+ /* @__PURE__ */ e("div", { className: r.purchase, children: [
138
+ /* @__PURE__ */ e("div", { className: r.purchaseInformation, children: [
139
+ m && /* @__PURE__ */ t(
140
+ P,
149
141
  {
150
- availId: l,
151
- availDescription: N,
152
- inventory: T,
142
+ availId: m,
143
+ availDescription: f,
144
+ inventory: N,
153
145
  enableTooltip: !0
154
146
  }
155
147
  ),
156
- i && /* @__PURE__ */ t(D, { pricingLabel: v, price: i })
148
+ u && /* @__PURE__ */ t(D, { pricingLabel: g, price: u })
157
149
  ] }),
158
- /* @__PURE__ */ t(V, { size: r, itemKey: c, onAdd: I, max: $, className: a.addToCart, addButtonClassName: a.addToCartButton, requiresUnitDetails: A })
150
+ /* @__PURE__ */ t(V, { size: a, itemKey: c, onAdd: v, max: B, className: r.addToCart, addButtonClassName: r.addToCartButton, requiresUnitDetails: I })
159
151
  ] }),
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,
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,
163
155
  ":"
164
156
  ] }),
165
- /* @__PURE__ */ t(o, { size: "xs", weight: "semibold", children: _.value })
166
- ] }, `${_.label}.${_.value}`)) })
157
+ /* @__PURE__ */ t(n, { size: "xs", weight: "semibold", children: h.value })
158
+ ] }, `${h.label}.${h.value}`)) })
167
159
  ] })
168
160
  ] });
169
161
  }
170
162
  export {
171
- na as Product
163
+ nr as Product
172
164
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.217",
4
+ "version": "0.0.219",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",