@caseparts-org/caseblocks 0.0.58 → 0.0.59

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.
@@ -1 +1 @@
1
- ._root_1x7t0_2{position:relative;display:grid;grid-template-columns:1fr 1fr;background-size:cover;background-position:center;overflow:hidden;box-sizing:border-box}._content_1x7t0_12{box-sizing:border-box;width:100%;padding:var(--spacing-spacing-default, 16px);display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}@media (max-width: 980px){._content_1x7t0_12{grid-column:1 / -1}}._align_left_1x7t0_24 ._content_1x7t0_12{align-items:flex-start;grid-column:1 / span 1;text-align:left}@media (max-width: 980px){._align_left_1x7t0_24 ._content_1x7t0_12{grid-column:1 / -1}}._align_right_1x7t0_32 ._content_1x7t0_12{align-items:flex-end;grid-column:2 / span 1;text-align:right}@media (max-width: 980px){._align_right_1x7t0_32 ._content_1x7t0_12{grid-column:1 / -1}}._content_1x7t0_12>*{position:relative;z-index:1}._overlay_dark_1x7t0_47 ._header_1x7t0_47,._overlay_dark_1x7t0_47 ._description_1x7t0_48,._overlay_none_1x7t0_49 ._header_1x7t0_47,._overlay_none_1x7t0_49 ._description_1x7t0_48{color:var(--color-neutrals-neutral-1)}._overlay_light_1x7t0_55 ._header_1x7t0_47,._overlay_light_1x7t0_55 ._description_1x7t0_48{color:#000}._overlay_dark_1x7t0_47:before,._overlay_light_1x7t0_55:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0}._overlay_dark_1x7t0_47:before{background:#137fb13a}._overlay_light_1x7t0_55:before{background:#ffffff73}
1
+ ._root_kwn5r_2{position:relative;display:grid;grid-template-columns:1fr 1fr;background-size:cover;background-position:center;overflow:hidden;box-sizing:border-box;align-items:center}._content_kwn5r_13{box-sizing:border-box;width:100%;padding:var(--spacing-spacing-default, 16px);display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}@media (max-width: 980px){._content_kwn5r_13{grid-column:1 / -1}}._align_left_kwn5r_25 ._content_kwn5r_13{align-items:flex-start;grid-column:1 / span 1;text-align:left}@media (max-width: 980px){._align_left_kwn5r_25 ._content_kwn5r_13{grid-column:1 / -1}}._align_right_kwn5r_33 ._content_kwn5r_13{align-items:flex-end;grid-column:2 / span 1;text-align:right}@media (max-width: 980px){._align_right_kwn5r_33 ._content_kwn5r_13{grid-column:1 / -1}}._content_kwn5r_13>*{position:relative;z-index:1}._overlay_dark_kwn5r_48 ._header_kwn5r_48,._overlay_dark_kwn5r_48 ._description_kwn5r_49,._overlay_none_kwn5r_50 ._header_kwn5r_48,._overlay_none_kwn5r_50 ._description_kwn5r_49{color:var(--color-neutrals-neutral-1)}._overlay_light_kwn5r_56 ._header_kwn5r_48,._overlay_light_kwn5r_56 ._description_kwn5r_49{color:#000}._overlay_dark_kwn5r_48:before,._overlay_light_kwn5r_56:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0}._overlay_dark_kwn5r_48:before{background:#137fb13a}._overlay_light_kwn5r_56:before{background:#ffffff73}
@@ -1,51 +1,51 @@
1
1
  import { jsx as e, jsxs as v } from "react/jsx-runtime";
2
- import { getHideAtStyles as f } from "../../atoms/HideAt.js";
3
- import { Text as _ } from "../../atoms/Text/Text.js";
4
- import { c as p } from "../../clsx-OuTLNxxd.js";
5
- import '../../assets/BannerCard.css';const k = "_root_1x7t0_2", N = "_content_1x7t0_12", u = "_align_left_1x7t0_24", z = "_align_right_1x7t0_32", S = "_overlay_dark_1x7t0_47", $ = "_header_1x7t0_47", b = "_description_1x7t0_48", j = "_overlay_none_1x7t0_49", C = "_overlay_light_1x7t0_55", t = {
6
- root: k,
7
- content: N,
8
- align_left: u,
9
- align_right: z,
10
- overlay_dark: S,
11
- header: $,
12
- description: b,
13
- overlay_none: j,
14
- overlay_light: C
2
+ import { getHideAtStyles as w } from "../../atoms/HideAt.js";
3
+ import { Text as s } from "../../atoms/Text/Text.js";
4
+ import { c as f } from "../../clsx-OuTLNxxd.js";
5
+ import '../../assets/BannerCard.css';const p = "_root_kwn5r_2", x = "_content_kwn5r_13", N = "_align_left_kwn5r_25", u = "_align_right_kwn5r_33", z = "_overlay_dark_kwn5r_48", S = "_header_kwn5r_48", $ = "_description_kwn5r_49", b = "_overlay_none_kwn5r_50", j = "_overlay_light_kwn5r_56", t = {
6
+ root: p,
7
+ content: x,
8
+ align_left: N,
9
+ align_right: u,
10
+ overlay_dark: z,
11
+ header: S,
12
+ description: $,
13
+ overlay_none: b,
14
+ overlay_light: j
15
15
  };
16
- function I({
17
- variant: o = "hero",
18
- overlayTheme: n = "none",
19
- title: i,
20
- description: r,
16
+ function D({
17
+ variant: n = "hero",
18
+ overlayTheme: r = "none",
19
+ title: _,
20
+ description: o,
21
21
  backgroundImage: a,
22
22
  align: c = "left",
23
23
  cta: l,
24
24
  className: d,
25
- hideAt: x
25
+ hideAt: g
26
26
  }) {
27
- const g = a ? { backgroundImage: `url(${a})` } : void 0, s = o === "hero", h = s ? "6xl" : "xl", m = s ? "md" : "sm", y = n === "dark" ? t.textLight : t.textDark;
27
+ const h = a ? { backgroundImage: `url(${a})` } : void 0, i = n === "hero", k = i ? "6xl" : "xl", m = i ? "md" : "sm", y = r === "dark" ? t.textLight : t.textDark;
28
28
  return /* @__PURE__ */ e(
29
29
  "article",
30
30
  {
31
- className: p(
31
+ className: f(
32
32
  t.root,
33
- t[`variant_${o}`],
33
+ t[`variant_${n}`],
34
34
  t[`align_${c}`],
35
- t[`overlay_${n}`],
35
+ t[`overlay_${r}`],
36
36
  y,
37
- f(x),
37
+ w(g),
38
38
  d
39
39
  ),
40
- style: { ...g },
40
+ style: { ...h },
41
41
  children: /* @__PURE__ */ v("div", { className: t.content, children: [
42
- /* @__PURE__ */ e(_, { variant: "display", size: h, className: t.header, children: i }),
43
- r && /* @__PURE__ */ e(_, { size: m, className: t.description, children: r }),
42
+ /* @__PURE__ */ e(s, { variant: "display", weight: "light", size: k, className: t.header, children: _ }),
43
+ o && /* @__PURE__ */ e(s, { size: m, className: t.description, children: o }),
44
44
  l && /* @__PURE__ */ e("div", { className: t.cta, children: l })
45
45
  ] })
46
46
  }
47
47
  );
48
48
  }
49
49
  export {
50
- I as BannerCard
50
+ D as BannerCard
51
51
  };
@@ -1,19 +1,19 @@
1
1
  import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { BannerCard as t } from "./BannerCard.js";
2
+ import { BannerCard as r } from "./BannerCard.js";
3
3
  import { LinkButton as m } from "../../atoms/LinkButton/LinkButton.js";
4
4
  import { Icon as d } from "../../atoms/Icon/Icon.js";
5
5
  const v = {
6
6
  title: "Case Parts/Molecules/BannerCard",
7
- component: t,
7
+ component: r,
8
8
  tags: ["autodocs"],
9
9
  render: (e) => {
10
10
  const {
11
- showCta: r,
11
+ showCta: t,
12
12
  customCtaLabel: a,
13
13
  backgroundImageUrl: i,
14
14
  cta: n,
15
15
  ...s
16
- } = e, l = r ? n ?? /* @__PURE__ */ c(
16
+ } = e, l = t ? n ?? /* @__PURE__ */ c(
17
17
  m,
18
18
  {
19
19
  variant: e.overlayTheme === "light" ? "primary" : "secondary-transparent",
@@ -26,7 +26,7 @@ const v = {
26
26
  }
27
27
  ) : void 0;
28
28
  return /* @__PURE__ */ o("div", { style: { maxWidth: e.variant === "hero" ? 1200 : 640 }, children: /* @__PURE__ */ o(
29
- t,
29
+ r,
30
30
  {
31
31
  ...s,
32
32
  cta: l,
@@ -41,8 +41,8 @@ const v = {
41
41
  description: "We specialize in made-to-spec parts—including cutting boards, walk-in doors, wire shelving, heaters, warmer wires, gaskets and more!",
42
42
  align: "left",
43
43
  showCta: !0,
44
- customCtaLabel: "Shop Now",
45
- backgroundImageUrl: "https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1400&q=60"
44
+ customCtaLabel: "Help Me Find a Part",
45
+ backgroundImageUrl: "assets/IMG-4-hero.png"
46
46
  },
47
47
  argTypes: {
48
48
  variant: {
@@ -158,7 +158,7 @@ Layout (width/height) is consumer-controlled.`
158
158
  overlayTheme: "light",
159
159
  backgroundImageUrl: ""
160
160
  }
161
- }, L = {
161
+ }, I = {
162
162
  args: {
163
163
  variant: "promo",
164
164
  overlayTheme: "dark",
@@ -175,7 +175,7 @@ export {
175
175
  y as Playground,
176
176
  C as PromoLight,
177
177
  w as PromoWithDarkOverlay,
178
- L as RightAlignedPromo,
178
+ I as RightAlignedPromo,
179
179
  T as WithoutCTA,
180
180
  v as default
181
181
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.58",
4
+ "version": "0.0.59",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",