@jbpark/ui-kit 1.0.0
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/README.md +267 -0
- package/dist/Menu.cjs +10 -0
- package/dist/Menu.d.cts +2 -0
- package/dist/Menu.d.mts +2 -0
- package/dist/Menu.mjs +8 -0
- package/dist/Reveals-BIKKnQpn.cjs +119 -0
- package/dist/Reveals-BpnYZJUk.mjs +89 -0
- package/dist/Reveals.cjs +9 -0
- package/dist/Reveals.d.cts +2 -0
- package/dist/Reveals.d.mts +2 -0
- package/dist/Reveals.mjs +4 -0
- package/dist/Typography-B3MWBAA6.cjs +102 -0
- package/dist/Typography-LYvEW-c8.mjs +72 -0
- package/dist/Typography.cjs +9 -0
- package/dist/Typography.d.cts +2 -0
- package/dist/Typography.d.mts +2 -0
- package/dist/Typography.mjs +4 -0
- package/dist/enums-CP_LwqBM.cjs +18 -0
- package/dist/enums-HFC1lmIX.mjs +12 -0
- package/dist/enums.cjs +3 -0
- package/dist/enums.d.cts +4 -0
- package/dist/enums.d.mts +4 -0
- package/dist/enums.mjs +3 -0
- package/dist/globals.css +125 -0
- package/dist/index-BO7hcWjo.d.mts +59 -0
- package/dist/index-BqaluEQ4.d.mts +83 -0
- package/dist/index-CdyEmwZC.d.cts +97 -0
- package/dist/index-Cu2qFRc3.d.cts +83 -0
- package/dist/index-D1Bkn0Xy.d.cts +59 -0
- package/dist/index-DS-PGSIg.d.mts +97 -0
- package/dist/index.cjs +24 -0
- package/dist/index.d.cts +528 -0
- package/dist/index.d.mts +533 -0
- package/dist/index.mjs +6 -0
- package/dist/src-CkhEsWv5.css +124 -0
- package/dist/src-DfLPlkqV.css +124 -0
- package/dist/src-DlEgA3c9.mjs +5118 -0
- package/dist/src-Dvkx0I-F.cjs +5262 -0
- package/dist/utils-8r5MlYq5.cjs +16 -0
- package/dist/utils-DEenfsJ-.mjs +10 -0
- package/dist/utils.cjs +3 -0
- package/dist/utils.d.cts +6 -0
- package/dist/utils.d.mts +6 -0
- package/dist/utils.mjs +3 -0
- package/package.json +99 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { t as cn } from "./utils-DEenfsJ-.mjs";
|
|
2
|
+
import { t as TEXT_LEVELS } from "./enums-HFC1lmIX.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/atoms/Typography/Link/index.tsx
|
|
6
|
+
const Link = ({ children, className, level, ...props }) => {
|
|
7
|
+
return /* @__PURE__ */ jsx("a", {
|
|
8
|
+
className: cn("underline-offset-1 hover:underline", level ? TEXT_LEVELS[level] : "", className),
|
|
9
|
+
...props,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var Link_default = Link;
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/atoms/Typography/Paragraph/index.tsx
|
|
17
|
+
const Paragraph = ({ children, className, level, ...props }) => {
|
|
18
|
+
return /* @__PURE__ */ jsx("p", {
|
|
19
|
+
...props,
|
|
20
|
+
className: cn(level ? TEXT_LEVELS[level] : "", className),
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var Paragraph_default = Paragraph;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/atoms/Typography/Text/index.tsx
|
|
28
|
+
const Text = ({ children, underline, strong, className, level, ...props }) => {
|
|
29
|
+
return /* @__PURE__ */ jsx("span", {
|
|
30
|
+
className: cn("text-nowrap", level ? TEXT_LEVELS[level] : "", underline && "underline", strong && "font-bold", className),
|
|
31
|
+
...props,
|
|
32
|
+
children
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var Text_default = Text;
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/atoms/Typography/Title/index.tsx
|
|
39
|
+
const styles = {
|
|
40
|
+
h1: "text-6xl",
|
|
41
|
+
h2: "text-5xl",
|
|
42
|
+
h3: "text-4xl",
|
|
43
|
+
h4: "text-3xl",
|
|
44
|
+
h5: "text-2xl",
|
|
45
|
+
h6: "text-xl"
|
|
46
|
+
};
|
|
47
|
+
const Title = ({ children, level = 1, className, ...props }) => {
|
|
48
|
+
const Element = level < 1 || level > 6 ? "h1" : `h${level}`;
|
|
49
|
+
return /* @__PURE__ */ jsx(Element, {
|
|
50
|
+
className: cn("leading-snug font-bold", styles[Element], className),
|
|
51
|
+
...props,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var Title_default = Title;
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/atoms/Typography/index.tsx
|
|
59
|
+
const Typography = ({ children, ...props }) => {
|
|
60
|
+
return /* @__PURE__ */ jsx("article", {
|
|
61
|
+
...props,
|
|
62
|
+
children
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
Typography.Link = Link_default;
|
|
66
|
+
Typography.Paragraph = Paragraph_default;
|
|
67
|
+
Typography.Text = Text_default;
|
|
68
|
+
Typography.Title = Title_default;
|
|
69
|
+
var Typography_default = Typography;
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { Link_default as a, Paragraph_default as i, Title_default as n, Text_default as r, Typography_default as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
require('./utils-8r5MlYq5.cjs');
|
|
3
|
+
const require_Typography = require('./Typography-B3MWBAA6.cjs');
|
|
4
|
+
|
|
5
|
+
exports.Link = require_Typography.Link_default;
|
|
6
|
+
exports.Paragraph = require_Typography.Paragraph_default;
|
|
7
|
+
exports.Text = require_Typography.Text_default;
|
|
8
|
+
exports.Title = require_Typography.Title_default;
|
|
9
|
+
exports.default = require_Typography.Typography_default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./utils-DEenfsJ-.mjs";
|
|
2
|
+
import { a as Link_default, i as Paragraph_default, n as Title_default, r as Text_default, t as Typography_default } from "./Typography-LYvEW-c8.mjs";
|
|
3
|
+
|
|
4
|
+
export { Link_default as Link, Paragraph_default as Paragraph, Text_default as Text, Title_default as Title, Typography_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/enums/index.ts
|
|
3
|
+
const TEXT_LEVELS = {
|
|
4
|
+
1: "text-2xl",
|
|
5
|
+
2: "text-xl",
|
|
6
|
+
3: "text-lg",
|
|
7
|
+
4: "text-base",
|
|
8
|
+
5: "text-sm",
|
|
9
|
+
6: "text-xs"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
Object.defineProperty(exports, 'TEXT_LEVELS', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return TEXT_LEVELS;
|
|
17
|
+
}
|
|
18
|
+
});
|
package/dist/enums.cjs
ADDED
package/dist/enums.d.cts
ADDED
package/dist/enums.d.mts
ADDED
package/dist/enums.mjs
ADDED
package/dist/globals.css
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
|
+
|
|
4
|
+
@config "../tailwind.config.js";
|
|
5
|
+
|
|
6
|
+
@custom-variant dark (&:is(.dark *));
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
--background: oklch(1 0 0);
|
|
10
|
+
--foreground: oklch(0.145 0 0);
|
|
11
|
+
--card: oklch(1 0 0);
|
|
12
|
+
--card-foreground: oklch(0.145 0 0);
|
|
13
|
+
--popover: oklch(1 0 0);
|
|
14
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
15
|
+
--primary: oklch(0.205 0 0);
|
|
16
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
17
|
+
--secondary: oklch(0.97 0 0);
|
|
18
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
19
|
+
--muted: oklch(0.97 0 0);
|
|
20
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
21
|
+
--accent: oklch(0.97 0 0);
|
|
22
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
23
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
24
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
25
|
+
--border: oklch(0.922 0 0);
|
|
26
|
+
--input: oklch(0.922 0 0);
|
|
27
|
+
--ring: oklch(0.708 0 0);
|
|
28
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
29
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
30
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
31
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
32
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
33
|
+
--radius: 0.625rem;
|
|
34
|
+
--sidebar: oklch(0.985 0 0);
|
|
35
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
36
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
37
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
38
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
39
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
40
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
41
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dark {
|
|
45
|
+
--background: oklch(0.145 0 0);
|
|
46
|
+
--foreground: oklch(0.985 0 0);
|
|
47
|
+
--card: oklch(0.145 0 0);
|
|
48
|
+
--card-foreground: oklch(0.985 0 0);
|
|
49
|
+
--popover: oklch(0.145 0 0);
|
|
50
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
51
|
+
--primary: oklch(0.985 0 0);
|
|
52
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
53
|
+
--secondary: oklch(0.269 0 0);
|
|
54
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
55
|
+
--muted: oklch(0.269 0 0);
|
|
56
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
57
|
+
--accent: oklch(0.269 0 0);
|
|
58
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
59
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
60
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
61
|
+
--border: oklch(0.269 0 0);
|
|
62
|
+
--input: oklch(0.269 0 0);
|
|
63
|
+
--ring: oklch(0.439 0 0);
|
|
64
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
65
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
66
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
67
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
68
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
69
|
+
--sidebar: oklch(0.205 0 0);
|
|
70
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
71
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
72
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
74
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
75
|
+
--sidebar-border: oklch(0.269 0 0);
|
|
76
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@theme inline {
|
|
80
|
+
--color-background: var(--background);
|
|
81
|
+
--color-foreground: var(--foreground);
|
|
82
|
+
--color-card: var(--card);
|
|
83
|
+
--color-card-foreground: var(--card-foreground);
|
|
84
|
+
--color-popover: var(--popover);
|
|
85
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
86
|
+
--color-primary: var(--primary);
|
|
87
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
88
|
+
--color-secondary: var(--secondary);
|
|
89
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
90
|
+
--color-muted: var(--muted);
|
|
91
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
92
|
+
--color-accent: var(--accent);
|
|
93
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
94
|
+
--color-destructive: var(--destructive);
|
|
95
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
96
|
+
--color-border: var(--border);
|
|
97
|
+
--color-input: var(--input);
|
|
98
|
+
--color-ring: var(--ring);
|
|
99
|
+
--color-chart-1: var(--chart-1);
|
|
100
|
+
--color-chart-2: var(--chart-2);
|
|
101
|
+
--color-chart-3: var(--chart-3);
|
|
102
|
+
--color-chart-4: var(--chart-4);
|
|
103
|
+
--color-chart-5: var(--chart-5);
|
|
104
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
105
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
106
|
+
--radius-lg: var(--radius);
|
|
107
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
108
|
+
--color-sidebar: var(--sidebar);
|
|
109
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
110
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
111
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
112
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
113
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
114
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
115
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@layer base {
|
|
119
|
+
* {
|
|
120
|
+
@apply border-border outline-ring/50;
|
|
121
|
+
}
|
|
122
|
+
body {
|
|
123
|
+
@apply bg-background text-foreground;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/molecules/Menu/index.d.ts
|
|
4
|
+
interface MenuItem {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
key: React.Key;
|
|
7
|
+
type?: string;
|
|
8
|
+
itemKey?: React.Key;
|
|
9
|
+
keyPath?: React.Key[];
|
|
10
|
+
path?: string;
|
|
11
|
+
children?: MenuItem[];
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
fullSize?: boolean;
|
|
15
|
+
mode?: 'horizontal' | 'vertical' | 'inline';
|
|
16
|
+
selectedKeys?: React.Key[];
|
|
17
|
+
defaultSelectedKeys?: React.Key[];
|
|
18
|
+
offset?: [number, number];
|
|
19
|
+
inlineOffset?: number;
|
|
20
|
+
classNames?: {
|
|
21
|
+
rootItem?: string;
|
|
22
|
+
subMenu?: string;
|
|
23
|
+
item?: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
};
|
|
26
|
+
styles?: {
|
|
27
|
+
rootItem?: React.CSSProperties;
|
|
28
|
+
subMenu?: React.CSSProperties;
|
|
29
|
+
item?: React.CSSProperties;
|
|
30
|
+
label?: React.CSSProperties;
|
|
31
|
+
};
|
|
32
|
+
onClick?: ClickEventHandler;
|
|
33
|
+
}
|
|
34
|
+
interface MenuProps extends Props, Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
35
|
+
items?: MenuItem[];
|
|
36
|
+
}
|
|
37
|
+
type ClickEventHandler = (params: {
|
|
38
|
+
domEvent: React.MouseEvent;
|
|
39
|
+
key: React.Key;
|
|
40
|
+
keyPath: React.Key[];
|
|
41
|
+
item: MenuItem;
|
|
42
|
+
}) => void;
|
|
43
|
+
declare function findKey(menu: MenuItem, targetKeys: React.Key[]): boolean;
|
|
44
|
+
declare const Menu: ({
|
|
45
|
+
items,
|
|
46
|
+
mode,
|
|
47
|
+
fullSize,
|
|
48
|
+
defaultSelectedKeys: _defaultSelectedKeys,
|
|
49
|
+
selectedKeys: _selectedKeys,
|
|
50
|
+
className,
|
|
51
|
+
classNames,
|
|
52
|
+
styles,
|
|
53
|
+
offset,
|
|
54
|
+
inlineOffset,
|
|
55
|
+
onClick,
|
|
56
|
+
...props
|
|
57
|
+
}: MenuProps) => react_jsx_runtime6.JSX.Element;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { findKey as a, MenuProps as i, Menu as n, MenuItem as r, ClickEventHandler as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/atoms/Typography/Link/index.d.ts
|
|
4
|
+
interface Props$3 extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
level?: TypographyProps['level'];
|
|
6
|
+
}
|
|
7
|
+
declare const Link: ({
|
|
8
|
+
children,
|
|
9
|
+
className,
|
|
10
|
+
level,
|
|
11
|
+
...props
|
|
12
|
+
}: Props$3) => react_jsx_runtime8.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/atoms/Typography/Paragraph/index.d.ts
|
|
15
|
+
interface Props$2 extends TypographyProps {}
|
|
16
|
+
declare const Paragraph: ({
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
level,
|
|
20
|
+
...props
|
|
21
|
+
}: Props$2) => react_jsx_runtime8.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/atoms/Typography/Text/index.d.ts
|
|
24
|
+
interface Props$1 extends TypographyProps {
|
|
25
|
+
underline?: boolean;
|
|
26
|
+
strong?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const Text: ({
|
|
29
|
+
children,
|
|
30
|
+
underline,
|
|
31
|
+
strong,
|
|
32
|
+
className,
|
|
33
|
+
level,
|
|
34
|
+
...props
|
|
35
|
+
}: Props$1) => react_jsx_runtime8.JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/atoms/Typography/Title/index.d.ts
|
|
38
|
+
interface Props extends TypographyProps {}
|
|
39
|
+
declare const Title: ({
|
|
40
|
+
children,
|
|
41
|
+
level,
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}: Props) => react_jsx_runtime8.JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/atoms/Typography/index.d.ts
|
|
47
|
+
interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
|
|
48
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
49
|
+
}
|
|
50
|
+
declare const Typography: {
|
|
51
|
+
({
|
|
52
|
+
children,
|
|
53
|
+
...props
|
|
54
|
+
}: TypographyProps): react_jsx_runtime8.JSX.Element;
|
|
55
|
+
Link: ({
|
|
56
|
+
children,
|
|
57
|
+
className,
|
|
58
|
+
level,
|
|
59
|
+
...props
|
|
60
|
+
}: Props$3) => react_jsx_runtime8.JSX.Element;
|
|
61
|
+
Paragraph: ({
|
|
62
|
+
children,
|
|
63
|
+
className,
|
|
64
|
+
level,
|
|
65
|
+
...props
|
|
66
|
+
}: Props$2) => react_jsx_runtime8.JSX.Element;
|
|
67
|
+
Text: ({
|
|
68
|
+
children,
|
|
69
|
+
underline,
|
|
70
|
+
strong,
|
|
71
|
+
className,
|
|
72
|
+
level,
|
|
73
|
+
...props
|
|
74
|
+
}: Props$1) => react_jsx_runtime8.JSX.Element;
|
|
75
|
+
Title: ({
|
|
76
|
+
children,
|
|
77
|
+
level,
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}: Props) => react_jsx_runtime8.JSX.Element;
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { Paragraph as a, Text as i, TypographyProps as n, Link as o, Title as r, Typography as t };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
|
+
import { MotionProps } from "motion/react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/molecules/Reveals/Item/index.d.ts
|
|
5
|
+
declare const effectVariants: {
|
|
6
|
+
fadeIn: {
|
|
7
|
+
offscreen: {
|
|
8
|
+
opacity: number;
|
|
9
|
+
};
|
|
10
|
+
onscreen: {
|
|
11
|
+
opacity: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
fadeInUp: {
|
|
15
|
+
offscreen: {
|
|
16
|
+
opacity: number;
|
|
17
|
+
y: number;
|
|
18
|
+
};
|
|
19
|
+
onscreen: {
|
|
20
|
+
opacity: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
slideInUp: {
|
|
25
|
+
offscreen: {
|
|
26
|
+
opacity: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
onscreen: {
|
|
30
|
+
opacity: number;
|
|
31
|
+
y: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
interface ItemProps {
|
|
36
|
+
effect?: keyof typeof effectVariants;
|
|
37
|
+
delay?: number;
|
|
38
|
+
once?: boolean;
|
|
39
|
+
duration?: number;
|
|
40
|
+
className?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
viewport?: MotionProps['viewport'];
|
|
43
|
+
variants?: MotionProps['variants'];
|
|
44
|
+
transition?: MotionProps['transition'];
|
|
45
|
+
}
|
|
46
|
+
declare const Item: ({
|
|
47
|
+
effect,
|
|
48
|
+
children,
|
|
49
|
+
once,
|
|
50
|
+
viewport,
|
|
51
|
+
variants,
|
|
52
|
+
duration,
|
|
53
|
+
delay,
|
|
54
|
+
transition,
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}: ItemProps) => react_jsx_runtime11.JSX.Element;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/molecules/Reveals/index.d.ts
|
|
60
|
+
interface Props extends React.HTMLAttributes<HTMLDivElement>, ItemProps {
|
|
61
|
+
cascade?: number;
|
|
62
|
+
classNames?: {
|
|
63
|
+
root?: string;
|
|
64
|
+
item?: string;
|
|
65
|
+
};
|
|
66
|
+
once?: boolean;
|
|
67
|
+
items?: ItemProps[];
|
|
68
|
+
}
|
|
69
|
+
declare const DURATION = 0.6;
|
|
70
|
+
declare const DELAY = 0;
|
|
71
|
+
declare const CASCADE = 0.1;
|
|
72
|
+
declare const Reveals: {
|
|
73
|
+
({
|
|
74
|
+
children,
|
|
75
|
+
className,
|
|
76
|
+
classNames,
|
|
77
|
+
items,
|
|
78
|
+
cascade,
|
|
79
|
+
duration,
|
|
80
|
+
delay,
|
|
81
|
+
...props
|
|
82
|
+
}: Props): react_jsx_runtime11.JSX.Element;
|
|
83
|
+
Item: ({
|
|
84
|
+
effect,
|
|
85
|
+
children,
|
|
86
|
+
once,
|
|
87
|
+
viewport,
|
|
88
|
+
variants,
|
|
89
|
+
duration,
|
|
90
|
+
delay,
|
|
91
|
+
transition,
|
|
92
|
+
className,
|
|
93
|
+
...props
|
|
94
|
+
}: ItemProps) => react_jsx_runtime11.JSX.Element;
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { Reveals as a, Props as i, DELAY as n, Item as o, DURATION as r, ItemProps as s, CASCADE as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/atoms/Typography/Link/index.d.ts
|
|
4
|
+
interface Props$3 extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
level?: TypographyProps['level'];
|
|
6
|
+
}
|
|
7
|
+
declare const Link: ({
|
|
8
|
+
children,
|
|
9
|
+
className,
|
|
10
|
+
level,
|
|
11
|
+
...props
|
|
12
|
+
}: Props$3) => react_jsx_runtime10.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/atoms/Typography/Paragraph/index.d.ts
|
|
15
|
+
interface Props$2 extends TypographyProps {}
|
|
16
|
+
declare const Paragraph: ({
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
level,
|
|
20
|
+
...props
|
|
21
|
+
}: Props$2) => react_jsx_runtime10.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/atoms/Typography/Text/index.d.ts
|
|
24
|
+
interface Props$1 extends TypographyProps {
|
|
25
|
+
underline?: boolean;
|
|
26
|
+
strong?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const Text: ({
|
|
29
|
+
children,
|
|
30
|
+
underline,
|
|
31
|
+
strong,
|
|
32
|
+
className,
|
|
33
|
+
level,
|
|
34
|
+
...props
|
|
35
|
+
}: Props$1) => react_jsx_runtime10.JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/atoms/Typography/Title/index.d.ts
|
|
38
|
+
interface Props extends TypographyProps {}
|
|
39
|
+
declare const Title: ({
|
|
40
|
+
children,
|
|
41
|
+
level,
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}: Props) => react_jsx_runtime10.JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/atoms/Typography/index.d.ts
|
|
47
|
+
interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
|
|
48
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
49
|
+
}
|
|
50
|
+
declare const Typography: {
|
|
51
|
+
({
|
|
52
|
+
children,
|
|
53
|
+
...props
|
|
54
|
+
}: TypographyProps): react_jsx_runtime10.JSX.Element;
|
|
55
|
+
Link: ({
|
|
56
|
+
children,
|
|
57
|
+
className,
|
|
58
|
+
level,
|
|
59
|
+
...props
|
|
60
|
+
}: Props$3) => react_jsx_runtime10.JSX.Element;
|
|
61
|
+
Paragraph: ({
|
|
62
|
+
children,
|
|
63
|
+
className,
|
|
64
|
+
level,
|
|
65
|
+
...props
|
|
66
|
+
}: Props$2) => react_jsx_runtime10.JSX.Element;
|
|
67
|
+
Text: ({
|
|
68
|
+
children,
|
|
69
|
+
underline,
|
|
70
|
+
strong,
|
|
71
|
+
className,
|
|
72
|
+
level,
|
|
73
|
+
...props
|
|
74
|
+
}: Props$1) => react_jsx_runtime10.JSX.Element;
|
|
75
|
+
Title: ({
|
|
76
|
+
children,
|
|
77
|
+
level,
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}: Props) => react_jsx_runtime10.JSX.Element;
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { Paragraph as a, Text as i, TypographyProps as n, Link as o, Title as r, Typography as t };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/molecules/Menu/index.d.ts
|
|
4
|
+
interface MenuItem {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
key: React.Key;
|
|
7
|
+
type?: string;
|
|
8
|
+
itemKey?: React.Key;
|
|
9
|
+
keyPath?: React.Key[];
|
|
10
|
+
path?: string;
|
|
11
|
+
children?: MenuItem[];
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
fullSize?: boolean;
|
|
15
|
+
mode?: 'horizontal' | 'vertical' | 'inline';
|
|
16
|
+
selectedKeys?: React.Key[];
|
|
17
|
+
defaultSelectedKeys?: React.Key[];
|
|
18
|
+
offset?: [number, number];
|
|
19
|
+
inlineOffset?: number;
|
|
20
|
+
classNames?: {
|
|
21
|
+
rootItem?: string;
|
|
22
|
+
subMenu?: string;
|
|
23
|
+
item?: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
};
|
|
26
|
+
styles?: {
|
|
27
|
+
rootItem?: React.CSSProperties;
|
|
28
|
+
subMenu?: React.CSSProperties;
|
|
29
|
+
item?: React.CSSProperties;
|
|
30
|
+
label?: React.CSSProperties;
|
|
31
|
+
};
|
|
32
|
+
onClick?: ClickEventHandler;
|
|
33
|
+
}
|
|
34
|
+
interface MenuProps extends Props, Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
35
|
+
items?: MenuItem[];
|
|
36
|
+
}
|
|
37
|
+
type ClickEventHandler = (params: {
|
|
38
|
+
domEvent: React.MouseEvent;
|
|
39
|
+
key: React.Key;
|
|
40
|
+
keyPath: React.Key[];
|
|
41
|
+
item: MenuItem;
|
|
42
|
+
}) => void;
|
|
43
|
+
declare function findKey(menu: MenuItem, targetKeys: React.Key[]): boolean;
|
|
44
|
+
declare const Menu: ({
|
|
45
|
+
items,
|
|
46
|
+
mode,
|
|
47
|
+
fullSize,
|
|
48
|
+
defaultSelectedKeys: _defaultSelectedKeys,
|
|
49
|
+
selectedKeys: _selectedKeys,
|
|
50
|
+
className,
|
|
51
|
+
classNames,
|
|
52
|
+
styles,
|
|
53
|
+
offset,
|
|
54
|
+
inlineOffset,
|
|
55
|
+
onClick,
|
|
56
|
+
...props
|
|
57
|
+
}: MenuProps) => react_jsx_runtime6.JSX.Element;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { findKey as a, MenuProps as i, Menu as n, MenuItem as r, ClickEventHandler as t };
|