@caseparts-org/caseblocks 0.0.71 → 0.0.73
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/Text.module-Dzhzk2fH.js +39 -0
- package/dist/assets/Footer.css +1 -0
- package/dist/assets/Root.css +1 -1
- package/dist/assets/Text.css +1 -1
- package/dist/atoms/Button/buttonClassName.js +1 -1
- package/dist/atoms/Link/Link.d.ts +10 -98
- package/dist/atoms/Link/Link.js +42 -44
- package/dist/atoms/Link/createLinkAdapter.d.ts +10 -0
- package/dist/atoms/Link/createLinkAdapter.js +39 -0
- package/dist/atoms/Text/Text.d.ts +2 -1
- package/dist/atoms/Text/Text.js +14 -12
- package/dist/atoms/Text/Text.stories.d.ts +1 -0
- package/dist/atoms/Text/Text.stories.js +87 -27
- package/dist/main-client.d.ts +2 -2
- package/dist/main-client.js +55 -52
- package/dist/main-server.d.ts +5 -0
- package/dist/main-server.js +22 -18
- package/dist/molecules/Avatar/Avatar.js +1 -1
- package/dist/molecules/Logo/Logo.d.ts +4 -1
- package/dist/molecules/Logo/Logo.js +13 -11
- package/dist/molecules/Logo/Logo.stories.d.ts +540 -0
- package/dist/molecules/Logo/Logo.stories.js +26 -7
- package/dist/organisms/Footer/Footer.d.ts +5 -0
- package/dist/organisms/Footer/Footer.js +160 -0
- package/dist/organisms/Footer/Footer.stories.d.ts +36 -0
- package/dist/organisms/Footer/Footer.stories.js +72 -0
- package/dist/styles/tokens.css +1 -0
- package/package.json +1 -1
- package/dist/Text.module-smM1g1J4.js +0 -25
package/dist/assets/Text.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._text-
|
|
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-
|
|
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,105 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { HideAtProps } from '../HideAt';
|
|
3
3
|
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, HideAtProps {
|
|
4
|
-
external?: boolean;
|
|
5
4
|
href: string;
|
|
6
|
-
children: React.ReactNode;
|
|
7
5
|
disabled?: boolean;
|
|
8
|
-
/** Skip default link styling (still applies responsive + disabled adjustments). */
|
|
9
6
|
unstyled?: boolean;
|
|
10
|
-
|
|
11
|
-
/** Signature an external router link (e.g. next/link) must satisfy */
|
|
12
|
-
export type LinkComponent = (_props: LinkProps) => JSX.Element;
|
|
13
|
-
export declare function LinkProvider({ component, children, }: {
|
|
14
|
-
component: LinkComponent;
|
|
7
|
+
external?: boolean;
|
|
15
8
|
children: React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* ## Why a provider?
|
|
26
|
-
* Central injection means every internal usage of <Link /> inside the design system
|
|
27
|
-
* (e.g. in CategoryNav, MainNav, etc.) automatically adopts the host app's router
|
|
28
|
-
* without changing those components or sprinkling `as` props everywhere.
|
|
29
|
-
*
|
|
30
|
-
* ## Disabled behavior
|
|
31
|
-
* - Adds `aria-disabled`
|
|
32
|
-
* - Prevents default navigation & stops propagation
|
|
33
|
-
* - Removes from tab order (tabIndex = -1)
|
|
34
|
-
* - Applies a disabled style
|
|
35
|
-
*
|
|
36
|
-
* ## Responsive visibility
|
|
37
|
-
* Accepts `hideAt?: Breakpoint[]` (see HideAt) to conditionally hide via utility classes.
|
|
38
|
-
*
|
|
39
|
-
* ## Usage (Default / No Provider)
|
|
40
|
-
* ```tsx
|
|
41
|
-
* <Link href="/parts/123">View Part</Link>
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* ## Usage (Next.js)
|
|
45
|
-
* Create an app-level provider so all CaseBlocks links use Next.js client navigation & prefetch.
|
|
46
|
-
*
|
|
47
|
-
* ```tsx
|
|
48
|
-
* // app/providers.tsx (or pages/_app.tsx)
|
|
49
|
-
* import React from 'react';
|
|
50
|
-
* import NextLink from 'next/link';
|
|
51
|
-
* import { LinkProvider, LinkProps } from 'atoms/Link/Link';
|
|
52
|
-
*
|
|
53
|
-
* export function AppProviders({ children }: { children: React.ReactNode }) {
|
|
54
|
-
* return (
|
|
55
|
-
* <LinkProvider
|
|
56
|
-
* component={(p: LinkProps) => (
|
|
57
|
-
* // Next.js <Link> accepts anchor props like className, onClick, etc.
|
|
58
|
-
* <NextLink href={p.href} className={p.className} prefetch>
|
|
59
|
-
* {p.children}
|
|
60
|
-
* </NextLink>
|
|
61
|
-
* )}
|
|
62
|
-
* >
|
|
63
|
-
* {children}
|
|
64
|
-
* </LinkProvider>
|
|
65
|
-
* );
|
|
66
|
-
* }
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* Now every internal <Link /> (e.g. in <CategoryNav />) uses Next.js routing automatically.
|
|
70
|
-
*
|
|
71
|
-
* ## Usage (react-router-dom)
|
|
72
|
-
* ```tsx
|
|
73
|
-
* import { Link as RouterLink } from 'react-router-dom';
|
|
74
|
-
* import { LinkProvider, LinkProps } from 'atoms/Link/Link';
|
|
75
|
-
*
|
|
76
|
-
* function AppProviders({ children }: { children: React.ReactNode }) {
|
|
77
|
-
* return (
|
|
78
|
-
* <LinkProvider
|
|
79
|
-
* component={({ href, children, className, ...rest }: LinkProps) => (
|
|
80
|
-
* <RouterLink to={href} className={className} {...rest}>
|
|
81
|
-
* {children}
|
|
82
|
-
* </RouterLink>
|
|
83
|
-
* )}
|
|
84
|
-
* >
|
|
85
|
-
* {children}
|
|
86
|
-
* </LinkProvider>
|
|
87
|
-
* );
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* ## Supplying a custom implementation
|
|
92
|
-
* The injected component receives already-prepared props:
|
|
93
|
-
* - className (merged styles + responsive + disabled)
|
|
94
|
-
* - href (or "#" when disabled)
|
|
95
|
-
* - aria-disabled / tabIndex adjustments
|
|
96
|
-
* - onClick handler (prevents navigation when disabled)
|
|
97
|
-
*
|
|
98
|
-
* You normally just map `href` to your router's expected prop (`href` for Next.js, `to` for react-router).
|
|
99
|
-
*
|
|
100
|
-
* ## Edge cases / Notes
|
|
101
|
-
* - If your router component must wrap an <a>, you can still do so; styling is already on the outer element.
|
|
102
|
-
* - Do not reimplement disabled logic in the injected component (already handled).
|
|
103
|
-
* - If you need additional router-only props (e.g. prefetch={false}), extend in the adapter inside your app, not here.
|
|
104
|
-
*/
|
|
105
|
-
export declare function Link({ external, href, children, disabled, unstyled, hideAt, className, onClick, ...otherProps }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare function linkClassName({ className, unstyled, disabled, hideAt }: {
|
|
11
|
+
className?: string;
|
|
12
|
+
unstyled?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
hideAt?: HideAtProps["hideAt"];
|
|
15
|
+
}): string;
|
|
16
|
+
/** SSR‑safe base link primitive */
|
|
17
|
+
export declare function Link({ href, disabled, unstyled, external, hideAt, className, children, onClick, ...rest }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/atoms/Link/Link.js
CHANGED
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { t as u } from "../../Text.module-Dzhzk2fH.js";
|
|
3
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { getHideAtStyles as g } from "../HideAt.js";
|
|
5
|
+
import '../../assets/Link.css';const k = "_link_ygp31_1", y = "_disabled_ygp31_14", i = {
|
|
6
|
+
link: k,
|
|
7
|
+
disabled: y
|
|
8
|
+
};
|
|
9
|
+
function b({
|
|
10
|
+
className: e,
|
|
11
|
+
unstyled: t,
|
|
12
|
+
disabled: n,
|
|
13
|
+
hideAt: s
|
|
13
14
|
}) {
|
|
14
|
-
return
|
|
15
|
+
return _(
|
|
16
|
+
e,
|
|
17
|
+
!t && u["text-body"],
|
|
18
|
+
!t && i.link,
|
|
19
|
+
n && i.disabled,
|
|
20
|
+
g(s)
|
|
21
|
+
);
|
|
15
22
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
href: r,
|
|
19
|
-
children: o,
|
|
23
|
+
function S({
|
|
24
|
+
href: e,
|
|
20
25
|
disabled: t = !1,
|
|
21
|
-
unstyled:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
unstyled: n = !1,
|
|
27
|
+
external: s,
|
|
28
|
+
hideAt: l,
|
|
29
|
+
className: f,
|
|
30
|
+
children: m,
|
|
31
|
+
onClick: r,
|
|
32
|
+
...o
|
|
26
33
|
}) {
|
|
27
|
-
|
|
28
|
-
k,
|
|
29
|
-
!l && g["text-body"],
|
|
30
|
-
!l && c.link,
|
|
31
|
-
t && c.disabled,
|
|
32
|
-
y(x)
|
|
33
|
-
);
|
|
34
|
-
function d(f) {
|
|
34
|
+
function p(a) {
|
|
35
35
|
if (t) {
|
|
36
|
-
|
|
36
|
+
a.preventDefault(), a.stopPropagation();
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
r == null || r(a);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
42
|
-
...
|
|
43
|
-
href: t ? "#" :
|
|
44
|
-
className:
|
|
45
|
-
|
|
46
|
-
disabled: t,
|
|
47
|
-
onClick: d,
|
|
41
|
+
const c = b({ className: f, unstyled: n, disabled: t, hideAt: l }), x = {
|
|
42
|
+
...o,
|
|
43
|
+
href: t ? "#" : e,
|
|
44
|
+
className: c,
|
|
45
|
+
onClick: p,
|
|
48
46
|
"aria-disabled": t || void 0,
|
|
49
|
-
tabIndex: t ? -1 :
|
|
50
|
-
role: t ? "link" :
|
|
47
|
+
tabIndex: t ? -1 : o.tabIndex,
|
|
48
|
+
role: t ? "link" : o.role
|
|
51
49
|
};
|
|
52
|
-
return
|
|
50
|
+
return /* @__PURE__ */ d("a", { ...x, children: m });
|
|
53
51
|
}
|
|
54
52
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
S as Link,
|
|
54
|
+
b as linkClassName
|
|
57
55
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LinkProps } from './Link';
|
|
3
|
+
/** Minimal contract a router link should satisfy */
|
|
4
|
+
export type RouterLike = React.ComponentType<{
|
|
5
|
+
href: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
9
|
+
/** Build a styled, disabled-aware Link that delegates navigation to RouterLike */
|
|
10
|
+
export declare function createLinkAdapter(RouterComponent: RouterLike): ({ href, disabled, unstyled, hideAt, className, children, onClick, ...rest }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { linkClassName as x } from "./Link.js";
|
|
3
|
+
function k(a) {
|
|
4
|
+
return function({
|
|
5
|
+
href: o,
|
|
6
|
+
disabled: r = !1,
|
|
7
|
+
unstyled: f = !1,
|
|
8
|
+
hideAt: p,
|
|
9
|
+
className: i,
|
|
10
|
+
children: m,
|
|
11
|
+
onClick: t,
|
|
12
|
+
...n
|
|
13
|
+
}) {
|
|
14
|
+
function u(e) {
|
|
15
|
+
if (r) {
|
|
16
|
+
e.preventDefault(), e.stopPropagation();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
t == null || t(e);
|
|
20
|
+
}
|
|
21
|
+
const c = x({ className: i, unstyled: f, disabled: r, hideAt: p });
|
|
22
|
+
return /* @__PURE__ */ l(
|
|
23
|
+
a,
|
|
24
|
+
{
|
|
25
|
+
...n,
|
|
26
|
+
href: r ? "#" : o,
|
|
27
|
+
className: c,
|
|
28
|
+
onClick: u,
|
|
29
|
+
"aria-disabled": r || void 0,
|
|
30
|
+
tabIndex: r ? -1 : n.tabIndex,
|
|
31
|
+
role: r ? "link" : n.role,
|
|
32
|
+
children: m
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
k as createLinkAdapter
|
|
39
|
+
};
|
|
@@ -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 {};
|
package/dist/atoms/Text/Text.js
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { getHideAtStyles as
|
|
3
|
-
import { t } from "../../Text.module-
|
|
4
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
function
|
|
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:
|
|
12
|
-
className:
|
|
13
|
-
...
|
|
12
|
+
hideAt: x,
|
|
13
|
+
className: i,
|
|
14
|
+
...p
|
|
14
15
|
}) {
|
|
15
16
|
return /* @__PURE__ */ a(
|
|
16
17
|
o || "span",
|
|
17
18
|
{
|
|
18
|
-
className:
|
|
19
|
+
className: l(
|
|
19
20
|
t[`text-${r}`],
|
|
20
21
|
t[`text-${e}`],
|
|
21
22
|
t[`text-${m}`],
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
t[`text-color-${n}`],
|
|
24
|
+
c(x),
|
|
25
|
+
i
|
|
24
26
|
),
|
|
25
|
-
...
|
|
27
|
+
...p,
|
|
26
28
|
children: s
|
|
27
29
|
}
|
|
28
30
|
);
|
|
29
31
|
}
|
|
30
32
|
export {
|
|
31
|
-
|
|
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
|
|
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
|
|
4
|
-
const
|
|
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
|
-
},
|
|
13
|
+
}, h = {
|
|
14
14
|
args: {
|
|
15
15
|
size: "sm",
|
|
16
16
|
children: "Text value"
|
|
17
17
|
}
|
|
18
|
-
},
|
|
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
|
-
],
|
|
31
|
-
render: () => /* @__PURE__ */
|
|
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"],
|
|
36
|
-
render: () => /* @__PURE__ */
|
|
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
|
-
},
|
|
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
|
-
],
|
|
49
|
-
render: () => /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
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__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
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
|
-
},
|
|
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
|
-
],
|
|
76
|
-
render: () => /* @__PURE__ */
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
y as
|
|
87
|
-
f as
|
|
88
|
-
|
|
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
|
};
|
package/dist/main-client.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from './main-server';
|
|
2
|
-
export { Link, LinkProvider } from './atoms/Link/Link';
|
|
3
|
-
export type { LinkProps } from './atoms/Link/Link';
|
|
4
2
|
export { LinkButton } from './atoms/LinkButton/LinkButton';
|
|
5
3
|
export type { LinkButtonProps } from './atoms/LinkButton/LinkButton';
|
|
6
4
|
export { Image, ImageProvider } from './atoms/Image/Image';
|
|
@@ -35,3 +33,5 @@ export { NotFound } from './organisms/NotFound/NotFound';
|
|
|
35
33
|
export type { NotFoundProps } from './organisms/NotFound/NotFound';
|
|
36
34
|
export { Carousel } from './organisms/Carousel/Carousel';
|
|
37
35
|
export type { CarouselProps } from './organisms/Carousel/Carousel';
|
|
36
|
+
export { Footer } from './organisms/Footer/Footer';
|
|
37
|
+
export type { FooterProps } from './organisms/Footer/Footer';
|