@caseparts-org/caseblocks 0.0.59 → 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.
- package/dist/CarouselArrowButtons-DEFgjKJv.js +48 -0
- package/dist/assets/BannerCard.css +1 -1
- package/dist/assets/CarouselArrowButtons.css +1 -1
- package/dist/atoms/Icon/Icon.d.ts +2 -1
- package/dist/atoms/Icon/Icon.js +12 -13
- package/dist/molecules/BannerCard/BannerCard.js +38 -36
- package/dist/organisms/Carousel/Carousel.js +1 -1
- package/dist/organisms/Carousel/CarouselArrowButtons.js +1 -1
- package/package.json +1 -1
- package/dist/CarouselArrowButtons-DMKru3f7.js +0 -48
|
@@ -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
|
-
.
|
|
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
|
-
.
|
|
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;
|
package/dist/atoms/Icon/Icon.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { getHideAtStyles as
|
|
4
|
-
import '../../assets/Icon.css';const
|
|
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
|
|
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
|
-
|
|
17
|
-
return /* @__PURE__ */ r(
|
|
16
|
+
return /* @__PURE__ */ m(
|
|
18
17
|
"i",
|
|
19
18
|
{
|
|
20
|
-
className:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
31
|
+
f as Icon
|
|
33
32
|
};
|
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { getHideAtStyles as
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { getHideAtStyles as f } from "../../atoms/HideAt.js";
|
|
3
3
|
import { Text as s } from "../../atoms/Text/Text.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import '../../assets/BannerCard.css';const
|
|
6
|
-
root:
|
|
7
|
-
content:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
root: k,
|
|
7
|
+
content: N,
|
|
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
|
|
17
|
-
variant:
|
|
18
|
-
overlayTheme:
|
|
19
|
-
title:
|
|
20
|
-
description:
|
|
21
|
-
backgroundImage:
|
|
22
|
-
align:
|
|
23
|
-
cta:
|
|
24
|
-
className:
|
|
25
|
-
hideAt:
|
|
18
|
+
function L({
|
|
19
|
+
variant: a = "hero",
|
|
20
|
+
overlayTheme: e = "none",
|
|
21
|
+
title: l,
|
|
22
|
+
description: r,
|
|
23
|
+
backgroundImage: n,
|
|
24
|
+
align: g = "left",
|
|
25
|
+
cta: _,
|
|
26
|
+
className: c,
|
|
27
|
+
hideAt: d
|
|
26
28
|
}) {
|
|
27
|
-
const h =
|
|
28
|
-
return /* @__PURE__ */
|
|
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:
|
|
33
|
+
className: x(
|
|
32
34
|
t.root,
|
|
33
|
-
t[`variant_${
|
|
34
|
-
t[`align_${
|
|
35
|
-
t[`overlay_${
|
|
35
|
+
t[`variant_${a}`],
|
|
36
|
+
t[`align_${g}`],
|
|
37
|
+
t[`overlay_${e}`],
|
|
36
38
|
y,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
f(d),
|
|
40
|
+
c
|
|
39
41
|
),
|
|
40
42
|
style: { ...h },
|
|
41
|
-
children: /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
52
|
+
L as BannerCard
|
|
51
53
|
};
|
|
@@ -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-
|
|
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-
|
|
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,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
|
-
};
|