@caseparts-org/caseblocks 0.0.60 → 0.0.62

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 n, jsx as e } 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_1st4s_1", a = "_viewport_1st4s_4", u = "_track_1st4s_8", i = "_slide_1st4s_12", d = "_button_1st4s_17", l = "_prevButton_1st4s_33", p = "_nextButton_1st4s_36", m = "_carouselDots_1st4s_39", f = "_dot_1st4s_47", v = "_dotSelected_1st4s_55", t = {
5
+ main: _,
6
+ viewport: a,
7
+ track: u,
8
+ slide: i,
9
+ button: d,
10
+ prevButton: l,
11
+ nextButton: p,
12
+ carouselDots: m,
13
+ dot: f,
14
+ dotSelected: v
15
+ }, h = ({
16
+ children: s,
17
+ ...o
18
+ }) => /* @__PURE__ */ n(
19
+ "button",
20
+ {
21
+ className: r(t.button, t.prevButton),
22
+ type: "button",
23
+ ...o,
24
+ children: [
25
+ /* @__PURE__ */ e(c, { iconKey: "fa-sharp fa-solid fa-chevron-left", size: "md" }),
26
+ s
27
+ ]
28
+ }
29
+ ), y = ({
30
+ children: s,
31
+ ...o
32
+ }) => /* @__PURE__ */ n(
33
+ "button",
34
+ {
35
+ className: r(t.button, t.nextButton),
36
+ type: "button",
37
+ ...o,
38
+ children: [
39
+ /* @__PURE__ */ e(c, { iconKey: "fa-sharp fa-solid fa-chevron-right", size: "md" }),
40
+ s
41
+ ]
42
+ }
43
+ );
44
+ export {
45
+ y as N,
46
+ h as P,
47
+ t as s
48
+ };
@@ -1 +1 @@
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
+ ._root_npd1s_2{position:relative;display:grid;grid-template-columns:repeat(4,1fr);background-size:cover;background-position:center;overflow:hidden;box-sizing:border-box;align-items:center}._content_npd1s_13{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--spacing-spacing-default, 16px);align-self:stretch}._variant_hero_npd1s_23 ._content_npd1s_13{grid-column:1 / span 2;padding:var(--spacing-spacing-lg, 32px)}._variant_promo_npd1s_28 ._content_npd1s_13{grid-column:1 / span 3;padding:var(--spacing-spacing-default, 16px)}._variant_hero_npd1s_23._align_right_npd1s_34 ._content_npd1s_13{grid-column:3 / span 2}._variant_promo_npd1s_28._align_right_npd1s_34 ._content_npd1s_13{grid-column:2 / span 3}@media (max-width: 980px){._variant_hero_npd1s_23 ._content_npd1s_13,._variant_promo_npd1s_28 ._content_npd1s_13,._variant_hero_npd1s_23._align_right_npd1s_34 ._content_npd1s_13,._variant_promo_npd1s_28._align_right_npd1s_34 ._content_npd1s_13{grid-column:1 / -1}}._align_left_npd1s_53 ._content_npd1s_13{align-items:flex-start;text-align:left;justify-self:start}._align_right_npd1s_34 ._content_npd1s_13{align-items:flex-end;text-align:right;justify-self:end}._content_npd1s_13>*{position:relative;z-index:1}._overlay_dark_npd1s_71 ._header_npd1s_71,._overlay_dark_npd1s_71 ._description_npd1s_72,._overlay_none_npd1s_73 ._header_npd1s_71,._overlay_none_npd1s_73 ._description_npd1s_72{color:var(--color-neutrals-neutral-1)}._overlay_light_npd1s_78 ._header_npd1s_71{color:var(--color-brand-primary-primary-teal-blue)}._overlay_light_npd1s_78 ._description_npd1s_72{color:#000}
@@ -1 +1 @@
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
+ ._main_1st4s_1{position:relative}._viewport_1st4s_4{overflow:hidden;width:100%}._track_1st4s_8{display:flex;touch-action:pan-y}._slide_1st4s_12{flex:0 0 100%;min-width:0}._button_1st4s_17{position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;padding:0;margin:0;border:none}._button_1st4s_17 path{fill:var(--color-neutrals-neutral-1);opacity:.6}._button_1st4s_17:disabled path{opacity:.2}._prevButton_1st4s_33{left:0}._nextButton_1st4s_36{right:0}._carouselDots_1st4s_39{position:absolute;bottom:var(--spacing-spacing-default);left:50%;transform:translate(-50%);display:flex;gap:var(--spacing-spacing-2xs)}._dot_1st4s_47{width:40px;height:2px;background:var(--color-neutrals-neutral-1);border:none;cursor:pointer;opacity:.5}._dotSelected_1st4s_55{opacity:1;width:80px}
@@ -1,14 +1,14 @@
1
- import { jsx as o, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
2
  import { getHideAtStyles as f } from "../../atoms/HideAt.js";
3
- import { Text as s } from "../../atoms/Text/Text.js";
3
+ import { Text as i } from "../../atoms/Text/Text.js";
4
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 = {
5
+ import '../../assets/BannerCard.css';const k = "_root_npd1s_2", N = "_content_npd1s_13", u = "_variant_hero_npd1s_23", z = "_variant_promo_npd1s_28", S = "_align_right_npd1s_34", $ = "_align_left_npd1s_53", b = "_overlay_dark_npd1s_71", j = "_header_npd1s_71", C = "_description_npd1s_72", H = "_overlay_none_npd1s_73", w = "_overlay_light_npd1s_78", t = {
6
6
  root: k,
7
7
  content: N,
8
8
  variant_hero: u,
9
9
  variant_promo: z,
10
- align_left: S,
11
- align_right: $,
10
+ align_right: S,
11
+ align_left: $,
12
12
  overlay_dark: b,
13
13
  header: j,
14
14
  description: C,
@@ -16,34 +16,34 @@ import '../../assets/BannerCard.css';const k = "_root_1gg4a_2", N = "_content_1g
16
16
  overlay_light: w
17
17
  };
18
18
  function L({
19
- variant: a = "hero",
19
+ variant: o = "hero",
20
20
  overlayTheme: e = "none",
21
21
  title: l,
22
22
  description: r,
23
- backgroundImage: n,
24
- align: g = "left",
25
- cta: _,
26
- className: c,
27
- hideAt: d
23
+ backgroundImage: a,
24
+ align: c = "left",
25
+ cta: s,
26
+ className: d,
27
+ hideAt: p
28
28
  }) {
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
+ const h = a ? { backgroundImage: `url(${a})` } : void 0, _ = o === "hero", g = _ ? "6xl" : "xl", v = _ ? "md" : "sm", m = e === "dark" ? t.textLight : t.textDark;
30
+ return /* @__PURE__ */ n(
31
31
  "article",
32
32
  {
33
33
  className: x(
34
34
  t.root,
35
- t[`variant_${a}`],
36
- t[`align_${g}`],
35
+ t[`variant_${o}`],
36
+ t[`align_${c}`],
37
37
  t[`overlay_${e}`],
38
- y,
39
- f(d),
40
- c
38
+ m,
39
+ f(p),
40
+ d
41
41
  ),
42
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: _ })
43
+ children: /* @__PURE__ */ y("div", { className: t.content, children: [
44
+ /* @__PURE__ */ n(i, { variant: "display", weight: "light", size: g, className: t.header, children: l }),
45
+ r && /* @__PURE__ */ n(i, { size: v, className: t.description, children: r }),
46
+ s && /* @__PURE__ */ n("div", { className: t.cta, children: s })
47
47
  ] })
48
48
  }
49
49
  );
@@ -93,12 +93,12 @@ const v = {
93
93
  docs: {
94
94
  description: {
95
95
  component: `Structure helper for promotional / hero banners.
96
- Responsibilities:
97
- - variant: only size / typography (hero vs promo)
98
- - overlayTheme: controls contrast + optional semi‑transparent overlay (dark/light/none)
99
- - backgroundImage: applied as CSS background-image
100
- - align: which grid column & text alignment
101
- Layout (width/height) is consumer-controlled.`
96
+ Responsibilities:
97
+ - variant: only size / typography (hero vs promo)
98
+ - overlayTheme: controls contrast + optional semi‑transparent overlay (dark/light/none)
99
+ - backgroundImage: applied as CSS background-image
100
+ - align: which grid column & text alignment
101
+ Layout (width/height) is consumer-controlled.`
102
102
  }
103
103
  }
104
104
  }
@@ -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-DEFgjKJv.js";
5
+ import { s as rt, P as pn, N as mn } from "../../CarouselArrowButtons-Bv2242py.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-DEFgjKJv.js";
3
+ import { N as e, P as i } from "../../CarouselArrowButtons-Bv2242py.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.60",
4
+ "version": "0.0.62",
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 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
- };