@caseparts-org/caseblocks 0.0.70 → 0.0.72

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
- ._text-body_1l0ox_1{font-family:var(--font-family-body),sans-serif}._text-display_1l0ox_4{font-family:var(--font-family-display)}._text-xxs_1l0ox_8{font-size:var(--font-size-xxs);line-height:var(--line-height-xxs)}._text-xs_1l0ox_12{font-size:var(--font-size-xs);line-height:var(--line-height-xs)}._text-sm_1l0ox_16{font-size:var(--font-size-sm);line-height:var(--line-height-sm)}._text-md_1l0ox_20{font-size:var(--font-size-md);line-height:var(--line-height-md)}._text-lg_1l0ox_24{font-size:var(--font-size-lg);line-height:var(--line-height-lg)}._text-xl_1l0ox_28{font-size:var(--font-size-xl);line-height:var(--line-height-xl)}._text-2xl_1l0ox_32{font-size:var(--font-size-2xl);line-height:var(--line-height-2xl)}._text-3xl_1l0ox_36{font-size:var(--font-size-3xl);line-height:var(--line-height-3xl)}._text-4xl_1l0ox_40{font-size:var(--font-size-4xl);line-height:var(--line-height-4xl)}._text-5xl_1l0ox_44{font-size:var(--font-size-5xl);line-height:var(--line-height-5xl)}._text-6xl_1l0ox_48{font-size:var(--font-size-6xl);line-height:var(--line-height-6xl)}._text-thin_1l0ox_53{font-weight:var(--font-weight-thin)}._text-extra-light_1l0ox_56{font-weight:var(--font-weight-extra-light)}._text-light_1l0ox_59{font-weight:var(--font-weight-light)}._text-regular_1l0ox_62{font-weight:var(--font-weight-regular)}._text-medium_1l0ox_65{font-weight:var(--font-weight-medium)}._text-semibold_1l0ox_68{font-weight:var(--font-weight-semibold)}._text-bold_1l0ox_71{font-weight:var(--font-weight-bold)}
1
+ ._text-body_1x8xm_1{font-family:var(--font-family-body),sans-serif}._text-display_1x8xm_4{font-family:var(--font-family-display)}._text-xxs_1x8xm_8{font-size:var(--font-size-xxs);line-height:var(--line-height-xxs)}._text-xs_1x8xm_12{font-size:var(--font-size-xs);line-height:var(--line-height-xs)}._text-sm_1x8xm_16{font-size:var(--font-size-sm);line-height:var(--line-height-sm)}._text-md_1x8xm_20{font-size:var(--font-size-md);line-height:var(--line-height-md)}._text-lg_1x8xm_24{font-size:var(--font-size-lg);line-height:var(--line-height-lg)}._text-xl_1x8xm_28{font-size:var(--font-size-xl);line-height:var(--line-height-xl)}._text-2xl_1x8xm_32{font-size:var(--font-size-2xl);line-height:var(--line-height-2xl)}._text-3xl_1x8xm_36{font-size:var(--font-size-3xl);line-height:var(--line-height-3xl)}._text-4xl_1x8xm_40{font-size:var(--font-size-4xl);line-height:var(--line-height-4xl)}._text-5xl_1x8xm_44{font-size:var(--font-size-5xl);line-height:var(--line-height-5xl)}._text-6xl_1x8xm_48{font-size:var(--font-size-6xl);line-height:var(--line-height-6xl)}._text-thin_1x8xm_53{font-weight:var(--font-weight-thin)}._text-extra-light_1x8xm_56{font-weight:var(--font-weight-extra-light)}._text-light_1x8xm_59{font-weight:var(--font-weight-light)}._text-regular_1x8xm_62{font-weight:var(--font-weight-regular)}._text-medium_1x8xm_65{font-weight:var(--font-weight-medium)}._text-semibold_1x8xm_68{font-weight:var(--font-weight-semibold)}._text-bold_1x8xm_71{font-weight:var(--font-weight-bold)}._text-color-inherit_1x8xm_75{color:inherit}._text-color-warning_1x8xm_76{color:var(--text-text-caution)}._text-color-disabled_1x8xm_77{color:var(--text-text-disabled)}._text-color-error-warning_1x8xm_78{color:var(--text-text-error-warning)}._text-color-default-inverted_1x8xm_79{color:var(--text-text-invert)}._text-color-links_1x8xm_80{color:var(--text-text-links)}._text-color-links-hover-press_1x8xm_81{color:var(--text-text-links-hover-press)}._text-color-primary_1x8xm_82{color:var(--text-text-primary)}._text-color-quaternary_1x8xm_83{color:var(--text-text-quaternary)}._text-color-search-bar_1x8xm_84{color:var(--text-text-search-bar)}._text-color-secondary_1x8xm_85{color:var(--text-text-secondary)}._text-color-success_1x8xm_86{color:var(--text-text-success)}._text-color-tertiary_1x8xm_87{color:var(--text-text-tertiary)}._text-color-footer_1x8xm_88{color:var(--text-text-footer)}
@@ -1,4 +1,4 @@
1
- import { t as s } from "../../Text.module-smM1g1J4.js";
1
+ import { t as s } from "../../Text.module-Dzhzk2fH.js";
2
2
  import { c as u } from "../../clsx-OuTLNxxd.js";
3
3
  import { getHideAtStyles as r } from "../HideAt.js";
4
4
  import '../../assets/buttonClassName.css';const i = "_button_khsww_1", t = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import p from "react";
3
- import { t as g } from "../../Text.module-smM1g1J4.js";
3
+ import { t as g } from "../../Text.module-Dzhzk2fH.js";
4
4
  import { c as v } from "../../clsx-OuTLNxxd.js";
5
5
  import { getHideAtStyles as y } from "../HideAt.js";
6
6
  import '../../assets/Link.css';const I = "_link_ygp31_1", L = "_disabled_ygp31_14", c = {
@@ -10,6 +10,7 @@ export type TextProps<T extends ElementType = "span"> = HideAtProps & {
10
10
  variant?: "body" | "display";
11
11
  /** The weight of the text. */
12
12
  weight?: "thin" | "extra-light" | "light" | "regular" | "medium" | "semibold" | "bold";
13
+ colorToken?: 'inherit' | 'warning' | 'disabled' | 'error-warning' | 'default-inverted' | 'links' | 'links-hover-press' | 'primary' | 'quaternary' | 'search-bar' | 'secondary' | 'success' | 'tertiary' | 'footer';
13
14
  } & Omit<React.ComponentPropsWithoutRef<T>, "size">;
14
- export declare function Text<T extends ElementType = "span">({ as, size, variant, weight, children, hideAt, className, ...otherProps }: TextProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Text<T extends ElementType = "span">({ as, size, variant, weight, colorToken, children, hideAt, className, ...otherProps }: TextProps<T>): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -1,32 +1,34 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { getHideAtStyles as i } from "../HideAt.js";
3
- import { t } from "../../Text.module-smM1g1J4.js";
4
- import { c } from "../../clsx-OuTLNxxd.js";
5
- function d({
2
+ import { getHideAtStyles as c } from "../HideAt.js";
3
+ import { t } from "../../Text.module-Dzhzk2fH.js";
4
+ import { c as l } from "../../clsx-OuTLNxxd.js";
5
+ function g({
6
6
  as: o,
7
7
  size: e,
8
8
  variant: r = "body",
9
9
  weight: m = "regular",
10
+ colorToken: n = "inherit",
10
11
  children: s,
11
- hideAt: n,
12
- className: p,
13
- ...x
12
+ hideAt: x,
13
+ className: i,
14
+ ...p
14
15
  }) {
15
16
  return /* @__PURE__ */ a(
16
17
  o || "span",
17
18
  {
18
- className: c(
19
+ className: l(
19
20
  t[`text-${r}`],
20
21
  t[`text-${e}`],
21
22
  t[`text-${m}`],
22
- i(n),
23
- p
23
+ t[`text-color-${n}`],
24
+ c(x),
25
+ i
24
26
  ),
25
- ...x,
27
+ ...p,
26
28
  children: s
27
29
  }
28
30
  );
29
31
  }
30
32
  export {
31
- d as Text
33
+ g as Text
32
34
  };
@@ -15,3 +15,4 @@ export declare const Sizes: StoryObj<typeof Text>;
15
15
  export declare const Variants: StoryObj<typeof Text>;
16
16
  export declare const Weights: StoryObj<typeof Text>;
17
17
  export declare const AsElementType: StoryObj<typeof Text>;
18
+ export declare const ColorTokens: StoryObj<typeof Text>;
@@ -1,7 +1,7 @@
1
- import { jsx as s, jsxs as l } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as s } from "react/jsx-runtime";
2
2
  import { Text as i } from "./Text.js";
3
- import { Flex as r } from "../Flex/Flex.js";
4
- const p = {
3
+ import { Flex as a } from "../Flex/Flex.js";
4
+ const m = {
5
5
  title: "Case Parts/Atoms/Text",
6
6
  component: i,
7
7
  parameters: {
@@ -10,12 +10,12 @@ const p = {
10
10
  },
11
11
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
12
12
  tags: ["autodocs"]
13
- }, m = {
13
+ }, h = {
14
14
  args: {
15
15
  size: "sm",
16
16
  children: "Text value"
17
17
  }
18
- }, a = [
18
+ }, t = [
19
19
  "xxs",
20
20
  "xs",
21
21
  "sm",
@@ -27,17 +27,17 @@ const p = {
27
27
  "4xl",
28
28
  "5xl",
29
29
  "6xl"
30
- ], h = {
31
- render: () => /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: a.map((e) => /* @__PURE__ */ l(i, { size: e, children: [
30
+ ], y = {
31
+ render: () => /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: t.map((e) => /* @__PURE__ */ s(i, { size: e, children: [
32
32
  e.charAt(0).toUpperCase() + e.slice(1),
33
33
  " Text"
34
34
  ] }, e)) })
35
- }, n = ["body", "display"], y = {
36
- render: () => /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: n.map((e) => /* @__PURE__ */ l(i, { size: "md", variant: e, children: [
35
+ }, n = ["body", "display"], f = {
36
+ render: () => /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: n.map((e) => /* @__PURE__ */ s(i, { size: "md", variant: e, children: [
37
37
  "variant: ",
38
38
  e
39
39
  ] }, e)) })
40
- }, t = [
40
+ }, r = [
41
41
  "thin",
42
42
  "extra-light",
43
43
  "light",
@@ -45,24 +45,24 @@ const p = {
45
45
  "medium",
46
46
  "semibold",
47
47
  "bold"
48
- ], f = {
49
- render: () => /* @__PURE__ */ l(r, { flexDirection: "row", style: { gap: "100px" }, children: [
50
- /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: [
51
- /* @__PURE__ */ s(i, { size: "xl", weight: "bold", children: "`body` variant" }),
52
- t.map((e) => /* @__PURE__ */ l(i, { size: "lg", weight: e, children: [
48
+ ], g = {
49
+ render: () => /* @__PURE__ */ s(a, { flexDirection: "row", style: { gap: "100px" }, children: [
50
+ /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: [
51
+ /* @__PURE__ */ l(i, { size: "xl", weight: "bold", children: "`body` variant" }),
52
+ r.map((e) => /* @__PURE__ */ s(i, { size: "lg", weight: e, children: [
53
53
  e,
54
54
  " Text"
55
55
  ] }, e))
56
56
  ] }),
57
- /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: [
58
- /* @__PURE__ */ s(i, { size: "xl", weight: "bold", variant: "display", children: "`display` variant" }),
59
- t.map((e) => /* @__PURE__ */ l(i, { size: "lg", weight: e, variant: "display", children: [
57
+ /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: [
58
+ /* @__PURE__ */ l(i, { size: "xl", weight: "bold", variant: "display", children: "`display` variant" }),
59
+ r.map((e) => /* @__PURE__ */ s(i, { size: "lg", weight: e, variant: "display", children: [
60
60
  e,
61
61
  " Text"
62
62
  ] }, e))
63
63
  ] })
64
64
  ] })
65
- }, d = [
65
+ }, o = [
66
66
  "span",
67
67
  "p",
68
68
  "h1",
@@ -72,18 +72,78 @@ const p = {
72
72
  "h5",
73
73
  "h6",
74
74
  "div"
75
- ], g = {
76
- render: () => /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: d.map((e) => /* @__PURE__ */ l(i, { size: "lg", as: e, children: [
75
+ ], u = {
76
+ render: () => /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: o.map((e) => /* @__PURE__ */ s(i, { size: "lg", as: e, children: [
77
77
  "Rendered as `",
78
78
  e,
79
79
  "` element"
80
80
  ] }, e)) })
81
+ }, d = [
82
+ "inherit",
83
+ "warning",
84
+ "disabled",
85
+ "error-warning",
86
+ "default-inverted",
87
+ "links",
88
+ "links-hover-press",
89
+ "primary",
90
+ "quaternary",
91
+ "search-bar",
92
+ "secondary",
93
+ "success",
94
+ "tertiary",
95
+ "footer"
96
+ ], v = {
97
+ name: "Colors",
98
+ parameters: {
99
+ docs: {
100
+ description: {
101
+ story: "Visual reference for the `colorToken` prop. Each swatch uses a token via a CSS class (e.g. `.text-color-primary`). Tokens map to semantic design values defined in `tokens.css`."
102
+ }
103
+ }
104
+ },
105
+ render: () => /* @__PURE__ */ l("div", { style: {
106
+ display: "grid",
107
+ gap: "16px",
108
+ gridTemplateColumns: "repeat(auto-fill, minmax(180px, 1fr))",
109
+ alignItems: "stretch",
110
+ width: "100%",
111
+ maxWidth: 1e3
112
+ }, children: d.map((e) => /* @__PURE__ */ s(
113
+ "div",
114
+ {
115
+ style: {
116
+ border: "1px solid #e0e0e0",
117
+ borderRadius: 6,
118
+ background: "#fff",
119
+ padding: "8px",
120
+ display: "flex",
121
+ flexDirection: "column",
122
+ gap: 4,
123
+ fontFamily: "sans-serif"
124
+ },
125
+ children: [
126
+ /* @__PURE__ */ s(i, { size: "sm", weight: "semibold", as: "div", children: [
127
+ "`",
128
+ e,
129
+ "`"
130
+ ] }),
131
+ /* @__PURE__ */ l(i, { size: "md", colorToken: e, as: "div", children: "Sample text" }),
132
+ /* @__PURE__ */ s(i, { size: "xs", as: "div", style: { fontFamily: "monospace" }, children: [
133
+ "class: text-color-",
134
+ e
135
+ ] })
136
+ ]
137
+ },
138
+ e
139
+ )) })
81
140
  };
82
141
  export {
83
- m as AllProps,
84
- g as AsElementType,
85
- h as Sizes,
86
- y as Variants,
87
- f as Weights,
88
- p as default
142
+ h as AllProps,
143
+ u as AsElementType,
144
+ v as ColorTokens,
145
+ y as Sizes,
146
+ f as Variants,
147
+ g as Weights,
148
+ m as default
89
149
  };
@@ -35,3 +35,5 @@ export { NotFound } from './organisms/NotFound/NotFound';
35
35
  export type { NotFoundProps } from './organisms/NotFound/NotFound';
36
36
  export { Carousel } from './organisms/Carousel/Carousel';
37
37
  export type { CarouselProps } from './organisms/Carousel/Carousel';
38
+ export { Footer } from './organisms/Footer/Footer';
39
+ export type { FooterProps } from './organisms/Footer/Footer';
@@ -10,7 +10,7 @@ import { Input as A } from "./atoms/Input/Input.js";
10
10
  import { Logo as I } from "./molecules/Logo/Logo.js";
11
11
  import { SearchBox as L } from "./molecules/SearchBox/SearchBox.js";
12
12
  import { QuantityInput as S } from "./molecules/QuantityInput/QuantityInput.js";
13
- import { Pricing as y } from "./molecules/Pricing/Pricing.js";
13
+ import { Pricing as F } from "./molecules/Pricing/Pricing.js";
14
14
  import { Link as M, LinkProvider as N } from "./atoms/Link/Link.js";
15
15
  import { LinkButton as s } from "./atoms/LinkButton/LinkButton.js";
16
16
  import { Image as G, ImageProvider as H } from "./atoms/Image/Image.js";
@@ -29,6 +29,7 @@ import { ChipSelector as mo } from "./organisms/ChipSelector/ChipSelector.js";
29
29
  import { Product as fo } from "./organisms/Product/Product.js";
30
30
  import { NotFound as io } from "./organisms/NotFound/NotFound.js";
31
31
  import { Carousel as uo } from "./organisms/Carousel/Carousel.js";
32
+ import { Footer as co } from "./organisms/Footer/Footer.js";
32
33
  export {
33
34
  j as Account,
34
35
  Z as AddToCart,
@@ -42,6 +43,7 @@ export {
42
43
  mo as ChipSelector,
43
44
  x as Column,
44
45
  p as Flex,
46
+ co as Footer,
45
47
  f as Grid,
46
48
  i as Head,
47
49
  u as Icon,
@@ -54,7 +56,7 @@ export {
54
56
  I as Logo,
55
57
  eo as MainNav,
56
58
  io as NotFound,
57
- y as Pricing,
59
+ F as Pricing,
58
60
  fo as Product,
59
61
  S as QuantityInput,
60
62
  l as Root,
@@ -14,6 +14,7 @@ export type { TextProps } from './atoms/Text/Text';
14
14
  export { Input } from './atoms/Input/Input';
15
15
  export type { InputProps } from './atoms/Input/Input';
16
16
  export { Logo } from './molecules/Logo/Logo';
17
+ export type { LogoProps } from './molecules/Logo/Logo';
17
18
  export { SearchBox } from './molecules/SearchBox/SearchBox';
18
19
  export type { SearchBoxProps } from './molecules/SearchBox/SearchBox';
19
20
  export type { QuantityInputProps } from './molecules/QuantityInput/QuantityInput';
@@ -3,7 +3,7 @@ import { Flex as m } from "../../atoms/Flex/Flex.js";
3
3
  import { Link as c } from "../../atoms/Link/Link.js";
4
4
  import { getHideAtStyles as l } from "../../atoms/HideAt.js";
5
5
  import { c as f } from "../../clsx-OuTLNxxd.js";
6
- import { t as r } from "../../Text.module-smM1g1J4.js";
6
+ import { t as r } from "../../Text.module-Dzhzk2fH.js";
7
7
  import '../../assets/Avatar.css';const p = "_avatar_vwzwk_1", x = {
8
8
  avatar: p
9
9
  };
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as n, 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";
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_sclg6_2", N = "_content_sclg6_13", u = "_variant_hero_sclg6_26", z = "_align_left_sclg6_26", S = "_align_right_sclg6_37", $ = "_variant_promo_sclg6_48", b = "_header_sclg6_59", j = "_description_sclg6_70", C = "_overlay_dark_sclg6_102", H = "_overlay_none_sclg6_104", w = "_overlay_light_sclg6_109", t = {
5
+ import '../../assets/BannerCard.css';const k = "_root_ntcay_2", N = "_content_ntcay_13", u = "_variant_hero_ntcay_26", z = "_align_left_ntcay_26", S = "_align_right_ntcay_37", $ = "_variant_promo_ntcay_48", b = "_header_ntcay_59", j = "_description_ntcay_70", C = "_overlay_dark_ntcay_102", H = "_overlay_none_ntcay_104", w = "_overlay_light_ntcay_109", t = {
6
6
  root: k,
7
7
  content: N,
8
8
  variant_hero: u,
@@ -16,34 +16,34 @@ import '../../assets/BannerCard.css';const k = "_root_sclg6_2", N = "_content_sc
16
16
  overlay_light: w
17
17
  };
18
18
  function L({
19
- variant: e = "hero",
20
- overlayTheme: r = "none",
21
- title: c,
22
- description: n,
23
- backgroundImage: a,
24
- align: i = "left",
25
- cta: s,
26
- className: g,
19
+ variant: o = "hero",
20
+ overlayTheme: a = "none",
21
+ title: s,
22
+ description: e,
23
+ backgroundImage: r,
24
+ align: l = "left",
25
+ cta: _,
26
+ className: y,
27
27
  hideAt: d
28
28
  }) {
29
- const h = a ? { backgroundImage: `url(${a})` } : void 0, l = e === "hero", v = l ? "6xl" : "xl", m = l ? "md" : "sm", y = r === "dark" ? t.textLight : t.textDark;
30
- return /* @__PURE__ */ o(
29
+ const h = r ? { backgroundImage: `url(${r})` } : void 0, c = o === "hero", g = c ? "6xl" : "xl", v = c ? "md" : "sm", m = a === "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_${e}`],
36
- t[`align_${i}`],
37
- t[`overlay_${r}`],
38
- y,
35
+ t[`variant_${o}`],
36
+ t[`align_${l}`],
37
+ t[`overlay_${a}`],
38
+ m,
39
39
  f(d),
40
- g
40
+ y
41
41
  ),
42
42
  style: { ...h },
43
43
  children: /* @__PURE__ */ p("div", { className: t.content, children: [
44
- /* @__PURE__ */ o(_, { variant: "display", weight: "light", size: v, className: t.header, children: c }),
45
- n && /* @__PURE__ */ o(_, { size: m, className: t.description, children: n }),
46
- s && /* @__PURE__ */ o("div", { className: t.cta, children: s })
44
+ /* @__PURE__ */ n(i, { variant: "display", weight: "light", size: g, className: t.header, children: s }),
45
+ e && /* @__PURE__ */ n(i, { size: v, className: t.description, children: e }),
46
+ _ && /* @__PURE__ */ n("div", { className: t.cta, children: _ })
47
47
  ] })
48
48
  }
49
49
  );
@@ -1 +1,4 @@
1
- export declare function Logo(): import("react/jsx-runtime").JSX.Element;
1
+ export interface LogoProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ variant?: "color" | "white";
3
+ }
4
+ export declare function Logo({ variant, ...otherProps }: LogoProps): import("react/jsx-runtime").JSX.Element;