@caseparts-org/caseblocks 0.0.58 → 0.0.60

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,48 @@
1
+ import { jsxs as e, jsx as s } from "react/jsx-runtime";
2
+ import { Icon as r } from "./atoms/Icon/Icon.js";
3
+ import { c } from "./clsx-OuTLNxxd.js";
4
+ import './assets/CarouselArrowButtons.css';const i = "_main_irnm9_1", _ = "_viewport_irnm9_4", a = "_track_irnm9_8", u = "_slide_irnm9_12", m = "_button_irnm9_17", d = "_prevButton_irnm9_33", l = "_nextButton_irnm9_36", p = "_carouselDots_irnm9_39", f = "_dot_irnm9_47", v = "_dotSelected_irnm9_55", t = {
5
+ main: i,
6
+ viewport: _,
7
+ track: a,
8
+ slide: u,
9
+ button: m,
10
+ prevButton: d,
11
+ nextButton: l,
12
+ carouselDots: p,
13
+ dot: f,
14
+ dotSelected: v
15
+ }, h = ({
16
+ children: o,
17
+ ...n
18
+ }) => /* @__PURE__ */ e(
19
+ "button",
20
+ {
21
+ className: c(t.button, t.prevButton),
22
+ type: "button",
23
+ ...n,
24
+ children: [
25
+ /* @__PURE__ */ s(r, { iconKey: "fa-sharp fa-solid fa-chevron-left", size: "md" }),
26
+ o
27
+ ]
28
+ }
29
+ ), y = ({
30
+ children: o,
31
+ ...n
32
+ }) => /* @__PURE__ */ e(
33
+ "button",
34
+ {
35
+ className: c(t.button, t.nextButton),
36
+ type: "button",
37
+ ...n,
38
+ children: [
39
+ /* @__PURE__ */ s(r, { iconKey: "fa-sharp fa-solid fa-chevron-right", size: "md" }),
40
+ o
41
+ ]
42
+ }
43
+ );
44
+ export {
45
+ y as N,
46
+ h as P,
47
+ t as s
48
+ };
@@ -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_1gg4a_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_1gg4a_13{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px)}@media (max-width: 980px){._content_1gg4a_13{grid-column:1 / -1}}._variant_hero_1gg4a_24 ._content_1gg4a_13{padding:var(--spacing-spacing-lg, 32px)}._variant_promo_1gg4a_27 ._content_1gg4a_13{padding:var(--spacing-spacing-default, 16px)}._align_left_1gg4a_31 ._content_1gg4a_13{align-items:flex-start;grid-column:1 / span 1;text-align:left}@media (max-width: 980px){._align_left_1gg4a_31 ._content_1gg4a_13{grid-column:1 / -1}}._align_right_1gg4a_39 ._content_1gg4a_13{align-items:flex-end;grid-column:2 / span 1;text-align:right}@media (max-width: 980px){._align_right_1gg4a_39 ._content_1gg4a_13{grid-column:1 / -1}}._content_1gg4a_13>*{position:relative;z-index:1}._overlay_dark_1gg4a_54 ._header_1gg4a_54,._overlay_dark_1gg4a_54 ._description_1gg4a_55,._overlay_none_1gg4a_56 ._header_1gg4a_54,._overlay_none_1gg4a_56 ._description_1gg4a_55{color:var(--color-neutrals-neutral-1)}._overlay_light_1gg4a_62 ._header_1gg4a_54,._overlay_light_1gg4a_62 ._description_1gg4a_55{color:#000}._overlay_dark_1gg4a_54:before,._overlay_light_1gg4a_62:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0}._overlay_dark_1gg4a_54:before{background:#137fb13a}._overlay_light_1gg4a_62:before{background:#ffffff73}
@@ -1 +1 @@
1
- ._main_wngg9_1{position:relative}._viewport_wngg9_4{overflow:hidden;width:100%}._track_wngg9_8{display:flex;touch-action:pan-y}._slide_wngg9_12{flex:0 0 100%;min-width:0}._button_wngg9_17{position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;padding:0;margin:0;border:none}._button_wngg9_17 path{fill:var(--color-neutrals-neutral-1)}._button_wngg9_17:disabled path{opacity:.4}._prevButton_wngg9_32{left:var(--spacing-spacing-default)}._nextButton_wngg9_35{right:var(--spacing-spacing-default)}._carouselDots_wngg9_38{position:absolute;bottom:var(--spacing-spacing-default);left:50%;transform:translate(-50%);display:flex;gap:var(--spacing-spacing-2xs)}._dot_wngg9_46{width:40px;height:2px;background:var(--color-neutrals-neutral-1);border:none;cursor:pointer;opacity:.5}._dotSelected_wngg9_54{opacity:1;width:80px}
1
+ ._main_irnm9_1{position:relative}._viewport_irnm9_4{overflow:hidden;width:100%}._track_irnm9_8{display:flex;touch-action:pan-y}._slide_irnm9_12{flex:0 0 100%;min-width:0}._button_irnm9_17{position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;padding:0;margin:0;border:none}._button_irnm9_17 path{fill:var(--color-neutrals-neutral-1);opacity:.6}._button_irnm9_17:disabled path{opacity:.2}._prevButton_irnm9_33{left:var(--spacing-spacing-2xs)}._nextButton_irnm9_36{right:var(--spacing-spacing-2xs)}._carouselDots_irnm9_39{position:absolute;bottom:var(--spacing-spacing-default);left:50%;transform:translate(-50%);display:flex;gap:var(--spacing-spacing-2xs)}._dot_irnm9_47{width:40px;height:2px;background:var(--color-neutrals-neutral-1);border:none;cursor:pointer;opacity:.5}._dotSelected_irnm9_55{opacity:1;width:80px}
@@ -1,7 +1,8 @@
1
1
  import { HideAtProps } from '../HideAt';
2
2
  type IconSet = "fa-kit" | "fa-solid" | "fa-regular" | "fa-light" | "fa-thin" | "fa-brands";
3
+ type IconVariant = "fa-sharp" | "fa-duotone" | "fa-sharp-duotone";
3
4
  interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, HideAtProps {
4
- iconKey: `${IconSet} ${string}`;
5
+ iconKey: `${IconSet} ${string}` | `${IconVariant} ${IconSet} ${string}`;
5
6
  size?: "sm" | "md" | "lg";
6
7
  }
7
8
  export declare function Icon({ iconKey, size, hideAt, className, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,26 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as _ } from "../../clsx-OuTLNxxd.js";
3
- import { getHideAtStyles as e } from "../HideAt.js";
4
- import '../../assets/Icon.css';const l = {
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { c as r } from "../../clsx-OuTLNxxd.js";
3
+ import { getHideAtStyles as t } from "../HideAt.js";
4
+ import '../../assets/Icon.css';const _ = {
5
5
  "icon-sm": "_icon-sm_nwr4s_1",
6
6
  "icon-md": "_icon-md_nwr4s_6",
7
7
  "icon-lg": "_icon-lg_nwr4s_11"
8
8
  };
9
- function a({
9
+ function f({
10
10
  iconKey: o,
11
11
  size: n = "md",
12
12
  hideAt: s,
13
13
  className: c,
14
14
  ...i
15
15
  }) {
16
- const [t, m] = o.split(" ");
17
- return /* @__PURE__ */ r(
16
+ return /* @__PURE__ */ m(
18
17
  "i",
19
18
  {
20
- className: _(
21
- t,
22
- m,
23
- l[`icon-${n}`],
24
- e(s),
19
+ className: r(
20
+ o,
21
+ // can contain 2 or 3 (or more) Font Awesome classes
22
+ _[`icon-${n}`],
23
+ t(s),
25
24
  c
26
25
  ),
27
26
  ...i
@@ -29,5 +28,5 @@ function a({
29
28
  );
30
29
  }
31
30
  export {
32
- a as Icon
31
+ f as Icon
33
32
  };
@@ -1,51 +1,53 @@
1
- import { jsx as e, jsxs as v } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
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 = {
3
+ import { Text as s } from "../../atoms/Text/Text.js";
4
+ import { c as x } from "../../clsx-OuTLNxxd.js";
5
+ import '../../assets/BannerCard.css';const k = "_root_1gg4a_2", N = "_content_1gg4a_13", u = "_variant_hero_1gg4a_24", z = "_variant_promo_1gg4a_27", S = "_align_left_1gg4a_31", $ = "_align_right_1gg4a_39", b = "_overlay_dark_1gg4a_54", j = "_header_1gg4a_54", C = "_description_1gg4a_55", H = "_overlay_none_1gg4a_56", w = "_overlay_light_1gg4a_62", t = {
6
6
  root: k,
7
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
8
+ variant_hero: u,
9
+ variant_promo: z,
10
+ align_left: S,
11
+ align_right: $,
12
+ overlay_dark: b,
13
+ header: j,
14
+ description: C,
15
+ overlay_none: H,
16
+ overlay_light: w
15
17
  };
16
- function I({
17
- variant: o = "hero",
18
- overlayTheme: n = "none",
19
- title: i,
18
+ function L({
19
+ variant: a = "hero",
20
+ overlayTheme: e = "none",
21
+ title: l,
20
22
  description: r,
21
- backgroundImage: a,
22
- align: c = "left",
23
- cta: l,
24
- className: d,
25
- hideAt: x
23
+ backgroundImage: n,
24
+ align: g = "left",
25
+ cta: _,
26
+ className: c,
27
+ hideAt: d
26
28
  }) {
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;
28
- return /* @__PURE__ */ e(
29
+ const h = n ? { backgroundImage: `url(${n})` } : void 0, i = a === "hero", v = i ? "6xl" : "xl", m = i ? "md" : "sm", y = e === "dark" ? t.textLight : t.textDark;
30
+ return /* @__PURE__ */ o(
29
31
  "article",
30
32
  {
31
- className: p(
33
+ className: x(
32
34
  t.root,
33
- t[`variant_${o}`],
34
- t[`align_${c}`],
35
- t[`overlay_${n}`],
35
+ t[`variant_${a}`],
36
+ t[`align_${g}`],
37
+ t[`overlay_${e}`],
36
38
  y,
37
- f(x),
38
- d
39
+ f(d),
40
+ c
39
41
  ),
40
- style: { ...g },
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 }),
44
- l && /* @__PURE__ */ e("div", { className: t.cta, children: l })
42
+ style: { ...h },
43
+ children: /* @__PURE__ */ p("div", { className: t.content, children: [
44
+ /* @__PURE__ */ o(s, { variant: "display", weight: "light", size: v, className: t.header, children: l }),
45
+ r && /* @__PURE__ */ o(s, { size: m, className: t.description, children: r }),
46
+ _ && /* @__PURE__ */ o("div", { className: t.cta, children: _ })
45
47
  ] })
46
48
  }
47
49
  );
48
50
  }
49
51
  export {
50
- I as BannerCard
52
+ L as BannerCard
51
53
  };
@@ -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
  };
@@ -2,7 +2,7 @@ import { jsxs as fn, jsx as ot } from "react/jsx-runtime";
2
2
  import vt, { useRef as Ut, useState as $t, useCallback as ln, useEffect as Ot } from "react";
3
3
  import { getHideAtStyles as dn } from "../../atoms/HideAt.js";
4
4
  import { c as qt } from "../../clsx-OuTLNxxd.js";
5
- import { s as rt, P as pn, N as mn } from "../../CarouselArrowButtons-DMKru3f7.js";
5
+ import { s as rt, P as pn, N as mn } from "../../CarouselArrowButtons-DEFgjKJv.js";
6
6
  import { useDotButton as gn, DotButton as hn } from "./CarouselDotButton.js";
7
7
  import { usePrevNextButtons as yn } from "./usePrevNextButtons.js";
8
8
  function Sn(t) {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../atoms/Icon/Icon.js";
3
- import { N as e, P as i } from "../../CarouselArrowButtons-DMKru3f7.js";
3
+ import { N as e, P as i } from "../../CarouselArrowButtons-DEFgjKJv.js";
4
4
  import "../../clsx-OuTLNxxd.js";
5
5
  export {
6
6
  e as NextButton,
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.60",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,48 +0,0 @@
1
- import { jsxs as e, jsx as s } from "react/jsx-runtime";
2
- import { Icon as c } from "./atoms/Icon/Icon.js";
3
- import { c as r } from "./clsx-OuTLNxxd.js";
4
- import './assets/CarouselArrowButtons.css';const _ = "_main_wngg9_1", u = "_viewport_wngg9_4", a = "_track_wngg9_8", g = "_slide_wngg9_12", i = "_button_wngg9_17", d = "_prevButton_wngg9_32", l = "_nextButton_wngg9_35", m = "_carouselDots_wngg9_38", p = "_dot_wngg9_46", w = "_dotSelected_wngg9_54", t = {
5
- main: _,
6
- viewport: u,
7
- track: a,
8
- slide: g,
9
- button: i,
10
- prevButton: d,
11
- nextButton: l,
12
- carouselDots: m,
13
- dot: p,
14
- dotSelected: w
15
- }, x = ({
16
- children: o,
17
- ...n
18
- }) => /* @__PURE__ */ e(
19
- "button",
20
- {
21
- className: r(t.button, t.prevButton),
22
- type: "button",
23
- ...n,
24
- children: [
25
- /* @__PURE__ */ s(c, { iconKey: "fa-solid fa-chevron-left", size: "md" }),
26
- o
27
- ]
28
- }
29
- ), f = ({
30
- children: o,
31
- ...n
32
- }) => /* @__PURE__ */ e(
33
- "button",
34
- {
35
- className: r(t.button, t.nextButton),
36
- type: "button",
37
- ...n,
38
- children: [
39
- /* @__PURE__ */ s(c, { iconKey: "fa-solid fa-chevron-right", size: "md" }),
40
- o
41
- ]
42
- }
43
- );
44
- export {
45
- f as N,
46
- x as P,
47
- t as s
48
- };