@jbpark/ui-kit 2.0.1 → 2.2.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/dist/Menu.d.mts +1 -1
- package/dist/Menu.mjs +4 -4
- package/dist/{Reveals-BpnYZJUk.mjs → Reveals-mkV9B8lj.mjs} +1 -1
- package/dist/Reveals.d.mts +1 -1
- package/dist/Reveals.mjs +2 -2
- package/dist/{Typography-LYvEW-c8.mjs → Typography-GMk9208W.mjs} +7 -8
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -2
- package/dist/enums.mjs +10 -1
- package/dist/{index-CbElazGe.d.mts → index-BpmFT8LS.d.mts} +1 -1
- package/dist/{index-DP36DulT.d.mts → index-CKq4NOxI.d.mts} +17 -25
- package/dist/{index-CbaWHQ3Y.d.mts → index-CXT7Z-4F.d.mts} +5 -5
- package/dist/index.d.mts +167 -76
- package/dist/index.mjs +5 -5
- package/dist/output.css +772 -70
- package/dist/{src-DbD2jnc4.mjs → src-BUNbQOql.mjs} +1114 -456
- package/dist/{src-DbBw9pxl.css → src-Bb7sskwT.css} +66 -64
- package/dist/utils-CssUrKWE.mjs +16 -0
- package/dist/utils.d.mts +3 -1
- package/dist/utils.mjs +2 -2
- package/package.json +4 -2
- package/dist/enums-HFC1lmIX.mjs +0 -12
- package/dist/utils-DEenfsJ-.mjs +0 -10
package/dist/Menu.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MenuProps, c as buildSelectionMap, i as MenuItem, l as findKey, n as MENU_CLASSNAMES, o as Props, r as Menu, s as SelectionMap, t as ClickEventHandler } from "./index-
|
|
1
|
+
import { a as MenuProps, c as buildSelectionMap, i as MenuItem, l as findKey, n as MENU_CLASSNAMES, o as Props, r as Menu, s as SelectionMap, t as ClickEventHandler } from "./index-BpmFT8LS.mjs";
|
|
2
2
|
export { ClickEventHandler, MENU_CLASSNAMES, MenuItem, MenuProps, Props, SelectionMap, buildSelectionMap, Menu as default, findKey };
|
package/dist/Menu.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { d as buildSelectionMap, f as findKey, l as MENU_CLASSNAMES, u as Menu_default } from "./src-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./Typography-
|
|
6
|
-
import "./Reveals-
|
|
3
|
+
import { d as buildSelectionMap, f as findKey, l as MENU_CLASSNAMES, u as Menu_default } from "./src-BUNbQOql.mjs";
|
|
4
|
+
import "./utils-CssUrKWE.mjs";
|
|
5
|
+
import "./Typography-GMk9208W.mjs";
|
|
6
|
+
import "./Reveals-mkV9B8lj.mjs";
|
|
7
7
|
|
|
8
8
|
export { MENU_CLASSNAMES, buildSelectionMap, Menu_default as default, findKey };
|
package/dist/Reveals.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Reveals, i as Props, n as DELAY, o as Item, r as DURATION, s as ItemProps, t as CASCADE } from "./index-
|
|
1
|
+
import { a as Reveals, i as Props, n as DELAY, o as Item, r as DURATION, s as ItemProps, t as CASCADE } from "./index-CXT7Z-4F.mjs";
|
|
2
2
|
export { CASCADE, DELAY, DURATION, Item, ItemProps, Props as RevealsProps, Reveals as default };
|
package/dist/Reveals.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { a as Item_default, i as Reveals_default, n as DELAY, r as DURATION, t as CASCADE } from "./Reveals-
|
|
1
|
+
import "./utils-CssUrKWE.mjs";
|
|
2
|
+
import { a as Item_default, i as Reveals_default, n as DELAY, r as DURATION, t as CASCADE } from "./Reveals-mkV9B8lj.mjs";
|
|
3
3
|
|
|
4
4
|
export { CASCADE, DELAY, DURATION, Item_default as Item, Reveals_default as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as TEXT_LEVELS } from "./enums-HFC1lmIX.mjs";
|
|
1
|
+
import { t as cn } from "./utils-CssUrKWE.mjs";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
|
|
5
4
|
//#region src/components/atoms/Typography/Link/index.tsx
|
|
6
|
-
const Link = ({ children, className,
|
|
5
|
+
const Link = ({ children, className, ...props }) => {
|
|
7
6
|
return /* @__PURE__ */ jsx("a", {
|
|
8
|
-
className: cn("underline-offset-1 hover:underline",
|
|
7
|
+
className: cn("underline-offset-1 hover:underline", className),
|
|
9
8
|
...props,
|
|
10
9
|
children
|
|
11
10
|
});
|
|
@@ -14,10 +13,10 @@ var Link_default = Link;
|
|
|
14
13
|
|
|
15
14
|
//#endregion
|
|
16
15
|
//#region src/components/atoms/Typography/Paragraph/index.tsx
|
|
17
|
-
const Paragraph = ({ children, className,
|
|
16
|
+
const Paragraph = ({ children, className, ...props }) => {
|
|
18
17
|
return /* @__PURE__ */ jsx("p", {
|
|
19
18
|
...props,
|
|
20
|
-
className: cn(
|
|
19
|
+
className: cn(className),
|
|
21
20
|
children
|
|
22
21
|
});
|
|
23
22
|
};
|
|
@@ -25,9 +24,9 @@ var Paragraph_default = Paragraph;
|
|
|
25
24
|
|
|
26
25
|
//#endregion
|
|
27
26
|
//#region src/components/atoms/Typography/Text/index.tsx
|
|
28
|
-
const Text = ({ children, underline, strong, className,
|
|
27
|
+
const Text = ({ children, underline, strong, className, ...props }) => {
|
|
29
28
|
return /* @__PURE__ */ jsx("span", {
|
|
30
|
-
className: cn("text-nowrap",
|
|
29
|
+
className: cn("text-nowrap", underline && "underline", strong && "font-bold", className),
|
|
31
30
|
...props,
|
|
32
31
|
children
|
|
33
32
|
});
|
package/dist/Typography.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Paragraph, i as Text, n as
|
|
2
|
-
export { Link, Paragraph, Text, Title,
|
|
1
|
+
import { a as Paragraph, i as Text, n as Typography, o as Link, r as Title, t as Props } from "./index-CKq4NOxI.mjs";
|
|
2
|
+
export { Link, Paragraph, Props, Text, Title, Typography as default };
|
package/dist/Typography.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { a as Link_default, i as Paragraph_default, n as Title_default, r as Text_default, t as Typography_default } from "./Typography-
|
|
1
|
+
import "./utils-CssUrKWE.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-GMk9208W.mjs";
|
|
3
3
|
|
|
4
4
|
export { Link_default as Link, Paragraph_default as Paragraph, Text_default as Text, Title_default as Title, Typography_default as default };
|
package/dist/enums.mjs
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/lib/enums/index.ts
|
|
2
|
+
const TEXT_LEVELS = {
|
|
3
|
+
1: "text-2xl",
|
|
4
|
+
2: "text-xl",
|
|
5
|
+
3: "text-lg",
|
|
6
|
+
4: "text-base",
|
|
7
|
+
5: "text-sm",
|
|
8
|
+
6: "text-xs"
|
|
9
|
+
};
|
|
2
10
|
|
|
11
|
+
//#endregion
|
|
3
12
|
export { TEXT_LEVELS };
|
|
@@ -30,7 +30,7 @@ interface Props {
|
|
|
30
30
|
onClick?: ClickEventHandler;
|
|
31
31
|
onSelect?: ClickEventHandler;
|
|
32
32
|
}
|
|
33
|
-
interface MenuProps extends Props, Omit<React.
|
|
33
|
+
interface MenuProps extends Props, Omit<React.ComponentPropsWithoutRef<'ul'>, 'onClick' | 'onSelect'> {
|
|
34
34
|
items?: MenuItem[];
|
|
35
35
|
}
|
|
36
36
|
type ClickEventHandler = (params: {
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/atoms/Typography/Link/index.d.ts
|
|
4
|
-
interface Props$
|
|
5
|
-
level?: TypographyProps['level'];
|
|
6
|
-
}
|
|
4
|
+
interface Props$4 extends React.ComponentPropsWithoutRef<'a'> {}
|
|
7
5
|
declare const Link: ({
|
|
8
6
|
children,
|
|
9
7
|
className,
|
|
10
|
-
level,
|
|
11
8
|
...props
|
|
12
|
-
}: Props$
|
|
9
|
+
}: Props$4) => react_jsx_runtime9.JSX.Element;
|
|
13
10
|
//#endregion
|
|
14
11
|
//#region src/components/atoms/Typography/Paragraph/index.d.ts
|
|
15
|
-
interface Props$
|
|
12
|
+
interface Props$3 extends React.ComponentPropsWithoutRef<'p'> {}
|
|
16
13
|
declare const Paragraph: ({
|
|
17
14
|
children,
|
|
18
15
|
className,
|
|
19
|
-
level,
|
|
20
16
|
...props
|
|
21
|
-
}: Props$
|
|
17
|
+
}: Props$3) => react_jsx_runtime9.JSX.Element;
|
|
22
18
|
//#endregion
|
|
23
19
|
//#region src/components/atoms/Typography/Text/index.d.ts
|
|
24
|
-
interface Props$
|
|
20
|
+
interface Props$2 extends React.ComponentPropsWithoutRef<'span'> {
|
|
25
21
|
underline?: boolean;
|
|
26
22
|
strong?: boolean;
|
|
27
23
|
}
|
|
@@ -30,54 +26,50 @@ declare const Text: ({
|
|
|
30
26
|
underline,
|
|
31
27
|
strong,
|
|
32
28
|
className,
|
|
33
|
-
level,
|
|
34
29
|
...props
|
|
35
|
-
}: Props$
|
|
30
|
+
}: Props$2) => react_jsx_runtime9.JSX.Element;
|
|
36
31
|
//#endregion
|
|
37
32
|
//#region src/components/atoms/Typography/Title/index.d.ts
|
|
38
|
-
interface Props extends
|
|
33
|
+
interface Props$1 extends React.ComponentPropsWithoutRef<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> {
|
|
34
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
35
|
+
}
|
|
39
36
|
declare const Title: ({
|
|
40
37
|
children,
|
|
41
38
|
level,
|
|
42
39
|
className,
|
|
43
40
|
...props
|
|
44
|
-
}: Props) => react_jsx_runtime9.JSX.Element;
|
|
41
|
+
}: Props$1) => react_jsx_runtime9.JSX.Element;
|
|
45
42
|
//#endregion
|
|
46
43
|
//#region src/components/atoms/Typography/index.d.ts
|
|
47
|
-
interface
|
|
48
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
49
|
-
}
|
|
44
|
+
interface Props extends React.ComponentPropsWithoutRef<'article'> {}
|
|
50
45
|
declare const Typography: {
|
|
51
46
|
({
|
|
52
47
|
children,
|
|
53
48
|
...props
|
|
54
|
-
}:
|
|
49
|
+
}: Props): react_jsx_runtime9.JSX.Element;
|
|
55
50
|
Link: ({
|
|
56
51
|
children,
|
|
57
52
|
className,
|
|
58
|
-
level,
|
|
59
53
|
...props
|
|
60
|
-
}: Props$
|
|
54
|
+
}: Props$4) => react_jsx_runtime9.JSX.Element;
|
|
61
55
|
Paragraph: ({
|
|
62
56
|
children,
|
|
63
57
|
className,
|
|
64
|
-
level,
|
|
65
58
|
...props
|
|
66
|
-
}: Props$
|
|
59
|
+
}: Props$3) => react_jsx_runtime9.JSX.Element;
|
|
67
60
|
Text: ({
|
|
68
61
|
children,
|
|
69
62
|
underline,
|
|
70
63
|
strong,
|
|
71
64
|
className,
|
|
72
|
-
level,
|
|
73
65
|
...props
|
|
74
|
-
}: Props$
|
|
66
|
+
}: Props$2) => react_jsx_runtime9.JSX.Element;
|
|
75
67
|
Title: ({
|
|
76
68
|
children,
|
|
77
69
|
level,
|
|
78
70
|
className,
|
|
79
71
|
...props
|
|
80
|
-
}: Props) => react_jsx_runtime9.JSX.Element;
|
|
72
|
+
}: Props$1) => react_jsx_runtime9.JSX.Element;
|
|
81
73
|
};
|
|
82
74
|
//#endregion
|
|
83
|
-
export { Paragraph as a, Text as i,
|
|
75
|
+
export { Paragraph as a, Text as i, Typography as n, Link as o, Title as r, Props as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { MotionProps } from "motion/react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/molecules/Reveals/Item/index.d.ts
|
|
@@ -54,10 +54,10 @@ declare const Item: ({
|
|
|
54
54
|
transition,
|
|
55
55
|
className,
|
|
56
56
|
...props
|
|
57
|
-
}: ItemProps) =>
|
|
57
|
+
}: ItemProps) => react_jsx_runtime7.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/molecules/Reveals/index.d.ts
|
|
60
|
-
interface Props extends React.
|
|
60
|
+
interface Props extends React.ComponentPropsWithoutRef<'div'>, ItemProps {
|
|
61
61
|
cascade?: number;
|
|
62
62
|
classNames?: {
|
|
63
63
|
root?: string;
|
|
@@ -79,7 +79,7 @@ declare const Reveals: {
|
|
|
79
79
|
duration,
|
|
80
80
|
delay,
|
|
81
81
|
...props
|
|
82
|
-
}: Props):
|
|
82
|
+
}: Props): react_jsx_runtime7.JSX.Element;
|
|
83
83
|
Item: ({
|
|
84
84
|
effect,
|
|
85
85
|
children,
|
|
@@ -91,7 +91,7 @@ declare const Reveals: {
|
|
|
91
91
|
transition,
|
|
92
92
|
className,
|
|
93
93
|
...props
|
|
94
|
-
}: ItemProps) =>
|
|
94
|
+
}: ItemProps) => react_jsx_runtime7.JSX.Element;
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
97
97
|
export { Reveals as a, Props as i, DELAY as n, Item as o, DURATION as r, ItemProps as s, CASCADE as t };
|