@jbpark/ui-kit 1.1.5 → 1.1.7
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 +1 -1
- package/dist/Reveals.d.mts +1 -1
- package/dist/Typography.d.mts +1 -1
- package/dist/{index-B9mWYXv2.d.mts → index-BNeH6gYs.d.mts} +2 -2
- package/dist/{index-DS-PGSIg.d.mts → index-CvYPwbSk.d.mts} +4 -4
- package/dist/{index-D-PIa92o.d.mts → index-DP36DulT.d.mts} +10 -10
- package/dist/index.d.mts +66 -40
- package/dist/index.mjs +2 -2
- package/dist/{src-CHbpO4Np.css → src-BMCpZppe.css} +1 -1
- package/dist/{src-BWzCs5T7.mjs → src-DBVgtbBS.mjs} +90 -6
- package/package.json +2 -2
package/dist/Menu.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as findKey, i as MenuProps, n as Menu, r as MenuItem, t as ClickEventHandler } from "./index-
|
|
1
|
+
import { a as findKey, i as MenuProps, n as Menu, r as MenuItem, t as ClickEventHandler } from "./index-BNeH6gYs.mjs";
|
|
2
2
|
export { ClickEventHandler, MenuItem, MenuProps, Menu as default, findKey };
|
package/dist/Menu.mjs
CHANGED
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-CvYPwbSk.mjs";
|
|
2
2
|
export { CASCADE, DELAY, DURATION, Item, ItemProps, Props as RevealsProps, Reveals as default };
|
package/dist/Typography.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Paragraph, i as Text, n as TypographyProps, o as Link, r as Title, t as Typography } from "./index-
|
|
1
|
+
import { a as Paragraph, i as Text, n as TypographyProps, o as Link, r as Title, t as Typography } from "./index-DP36DulT.mjs";
|
|
2
2
|
export { Link, Paragraph, Text, Title, TypographyProps, Typography as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/molecules/Menu/index.d.ts
|
|
4
4
|
interface MenuItem {
|
|
@@ -54,6 +54,6 @@ declare const Menu: ({
|
|
|
54
54
|
inlineOffset,
|
|
55
55
|
onClick,
|
|
56
56
|
...props
|
|
57
|
-
}: MenuProps) =>
|
|
57
|
+
}: MenuProps) => react_jsx_runtime0.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { findKey as a, MenuProps as i, Menu as n, MenuItem as r, ClickEventHandler 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,7 +54,7 @@ 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
60
|
interface Props extends React.HTMLAttributes<HTMLDivElement>, ItemProps {
|
|
@@ -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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/atoms/Typography/Link/index.d.ts
|
|
4
4
|
interface Props$3 extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -9,7 +9,7 @@ declare const Link: ({
|
|
|
9
9
|
className,
|
|
10
10
|
level,
|
|
11
11
|
...props
|
|
12
|
-
}: Props$3) =>
|
|
12
|
+
}: Props$3) => react_jsx_runtime9.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/components/atoms/Typography/Paragraph/index.d.ts
|
|
15
15
|
interface Props$2 extends TypographyProps {}
|
|
@@ -18,7 +18,7 @@ declare const Paragraph: ({
|
|
|
18
18
|
className,
|
|
19
19
|
level,
|
|
20
20
|
...props
|
|
21
|
-
}: Props$2) =>
|
|
21
|
+
}: Props$2) => react_jsx_runtime9.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/atoms/Typography/Text/index.d.ts
|
|
24
24
|
interface Props$1 extends TypographyProps {
|
|
@@ -32,7 +32,7 @@ declare const Text: ({
|
|
|
32
32
|
className,
|
|
33
33
|
level,
|
|
34
34
|
...props
|
|
35
|
-
}: Props$1) =>
|
|
35
|
+
}: Props$1) => react_jsx_runtime9.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/components/atoms/Typography/Title/index.d.ts
|
|
38
38
|
interface Props extends TypographyProps {}
|
|
@@ -41,7 +41,7 @@ declare const Title: ({
|
|
|
41
41
|
level,
|
|
42
42
|
className,
|
|
43
43
|
...props
|
|
44
|
-
}: Props) =>
|
|
44
|
+
}: Props) => react_jsx_runtime9.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/components/atoms/Typography/index.d.ts
|
|
47
47
|
interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -51,19 +51,19 @@ declare const Typography: {
|
|
|
51
51
|
({
|
|
52
52
|
children,
|
|
53
53
|
...props
|
|
54
|
-
}: TypographyProps):
|
|
54
|
+
}: TypographyProps): react_jsx_runtime9.JSX.Element;
|
|
55
55
|
Link: ({
|
|
56
56
|
children,
|
|
57
57
|
className,
|
|
58
58
|
level,
|
|
59
59
|
...props
|
|
60
|
-
}: Props$3) =>
|
|
60
|
+
}: Props$3) => react_jsx_runtime9.JSX.Element;
|
|
61
61
|
Paragraph: ({
|
|
62
62
|
children,
|
|
63
63
|
className,
|
|
64
64
|
level,
|
|
65
65
|
...props
|
|
66
|
-
}: Props$2) =>
|
|
66
|
+
}: Props$2) => react_jsx_runtime9.JSX.Element;
|
|
67
67
|
Text: ({
|
|
68
68
|
children,
|
|
69
69
|
underline,
|
|
@@ -71,13 +71,13 @@ declare const Typography: {
|
|
|
71
71
|
className,
|
|
72
72
|
level,
|
|
73
73
|
...props
|
|
74
|
-
}: Props$1) =>
|
|
74
|
+
}: Props$1) => react_jsx_runtime9.JSX.Element;
|
|
75
75
|
Title: ({
|
|
76
76
|
children,
|
|
77
77
|
level,
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: Props) =>
|
|
80
|
+
}: Props) => react_jsx_runtime9.JSX.Element;
|
|
81
81
|
};
|
|
82
82
|
//#endregion
|
|
83
83
|
export { Paragraph as a, Text as i, TypographyProps as n, Link as o, Title as r, Typography as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as Typography } from "./index-
|
|
2
|
-
import { i as MenuProps, n as Menu } from "./index-
|
|
3
|
-
import { a as Reveals } from "./index-
|
|
1
|
+
import { t as Typography } from "./index-DP36DulT.mjs";
|
|
2
|
+
import { i as MenuProps, n as Menu } from "./index-BNeH6gYs.mjs";
|
|
3
|
+
import { a as Reveals } from "./index-CvYPwbSk.mjs";
|
|
4
4
|
import * as React$2 from "react";
|
|
5
|
-
import React$1, { HTMLAttributes, MouseEvent } from "react";
|
|
5
|
+
import React$1, { ChangeEvent, HTMLAttributes, InputHTMLAttributes, MouseEvent } from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
8
8
|
import * as swiper_react0 from "swiper/react";
|
|
9
9
|
import { SwiperProps } from "swiper/react";
|
|
10
10
|
import "swiper/css";
|
|
@@ -20,13 +20,13 @@ declare const buttonVariants: (props?: ({
|
|
|
20
20
|
variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
21
21
|
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
22
22
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
23
|
-
type Props$
|
|
23
|
+
type Props$22 = React$2.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
24
24
|
asChild?: boolean;
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/components/atoms/Button/index.d.ts
|
|
28
28
|
type PresetColors = 'blue' | 'purple' | 'cyan' | 'green' | 'magenta' | 'pink' | 'red' | 'orange' | 'yellow' | 'volcano' | 'geekblue' | 'lime' | 'gold';
|
|
29
|
-
interface Props$
|
|
29
|
+
interface Props$21 extends Omit<Props$22, 'size'> {
|
|
30
30
|
icon?: React.ReactNode;
|
|
31
31
|
block?: boolean;
|
|
32
32
|
danger?: boolean;
|
|
@@ -50,7 +50,7 @@ declare const Button: ({
|
|
|
50
50
|
children,
|
|
51
51
|
onMouseDown,
|
|
52
52
|
...props
|
|
53
|
-
}: Props$
|
|
53
|
+
}: Props$21) => react_jsx_runtime19.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/atoms/Checkbox/Group/index.d.ts
|
|
56
56
|
type Option = {
|
|
@@ -59,7 +59,7 @@ type Option = {
|
|
|
59
59
|
checked?: boolean;
|
|
60
60
|
};
|
|
61
61
|
type Options = string[] | number[] | boolean[] | Option[];
|
|
62
|
-
interface Props$
|
|
62
|
+
interface Props$20 extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
63
63
|
options?: Options;
|
|
64
64
|
direction?: string;
|
|
65
65
|
placement?: string;
|
|
@@ -69,7 +69,7 @@ interface Props$19 extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/atoms/Checkbox/index.d.ts
|
|
71
71
|
type OptionValue = string | number | boolean;
|
|
72
|
-
interface Props$
|
|
72
|
+
interface Props$19 extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
73
73
|
placement?: string;
|
|
74
74
|
checked?: boolean;
|
|
75
75
|
value?: OptionValue;
|
|
@@ -90,7 +90,7 @@ declare const Checkbox: {
|
|
|
90
90
|
checked: _checked,
|
|
91
91
|
onChange: _onChange,
|
|
92
92
|
...props
|
|
93
|
-
}: Props$
|
|
93
|
+
}: Props$19): react_jsx_runtime19.JSX.Element;
|
|
94
94
|
Group: ({
|
|
95
95
|
direction,
|
|
96
96
|
placement,
|
|
@@ -98,29 +98,55 @@ declare const Checkbox: {
|
|
|
98
98
|
classNames,
|
|
99
99
|
options: _options,
|
|
100
100
|
onChange
|
|
101
|
-
}: Props$
|
|
101
|
+
}: Props$20) => react_jsx_runtime19.JSX.Element;
|
|
102
102
|
};
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/components/atoms/FloatButton/BackTop/index.d.ts
|
|
105
|
-
interface Props$
|
|
105
|
+
interface Props$18 extends Props$21 {
|
|
106
106
|
visibilityHeight?: number;
|
|
107
107
|
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/components/atoms/FloatButton/index.d.ts
|
|
111
|
-
interface Props$
|
|
111
|
+
interface Props$17 extends Props$21 {}
|
|
112
112
|
declare const FloatButton: {
|
|
113
113
|
({
|
|
114
114
|
className,
|
|
115
115
|
children,
|
|
116
116
|
...props
|
|
117
|
-
}: Props$
|
|
117
|
+
}: Props$17): react_jsx_runtime19.JSX.Element;
|
|
118
118
|
BackTop: ({
|
|
119
119
|
visibilityHeight,
|
|
120
120
|
className,
|
|
121
121
|
onClick,
|
|
122
122
|
...props
|
|
123
|
-
}: Props$
|
|
123
|
+
}: Props$18) => react_jsx_runtime19.JSX.Element;
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/atoms/Input/Search/index.d.ts
|
|
127
|
+
interface Props$16 extends InputHTMLAttributes<HTMLInputElement> {
|
|
128
|
+
allowClear?: boolean;
|
|
129
|
+
onChange: (e: ChangeEvent<HTMLInputElement> | {
|
|
130
|
+
target: {
|
|
131
|
+
value: string;
|
|
132
|
+
};
|
|
133
|
+
}) => void;
|
|
134
|
+
onPressEnter: () => void;
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/atoms/Input/index.d.ts
|
|
138
|
+
declare const Input: {
|
|
139
|
+
({
|
|
140
|
+
...props
|
|
141
|
+
}: InputHTMLAttributes<HTMLInputElement>): react_jsx_runtime19.JSX.Element;
|
|
142
|
+
Search: React$2.ForwardRefExoticComponent<Props$16 & React$2.RefAttributes<HTMLInputElement>>;
|
|
143
|
+
TextArea: ({
|
|
144
|
+
className,
|
|
145
|
+
ref,
|
|
146
|
+
...props
|
|
147
|
+
}: React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
148
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
149
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
124
150
|
};
|
|
125
151
|
//#endregion
|
|
126
152
|
//#region src/components/atoms/Progress/index.d.ts
|
|
@@ -137,7 +163,7 @@ declare const Progress: ({
|
|
|
137
163
|
className,
|
|
138
164
|
direction,
|
|
139
165
|
classNames
|
|
140
|
-
}: Props$15) =>
|
|
166
|
+
}: Props$15) => react_jsx_runtime19.JSX.Element;
|
|
141
167
|
//#endregion
|
|
142
168
|
//#region src/components/atoms/Skeleton/index.d.ts
|
|
143
169
|
interface Props$14 extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -172,15 +198,15 @@ declare const Skeleton: {
|
|
|
172
198
|
height,
|
|
173
199
|
children,
|
|
174
200
|
...props
|
|
175
|
-
}: Props$14): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> |
|
|
201
|
+
}: Props$14): string | number | bigint | boolean | react_jsx_runtime19.JSX.Element | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | null | undefined;
|
|
176
202
|
Button: ({
|
|
177
203
|
className,
|
|
178
204
|
...props
|
|
179
|
-
}: Props$14) =>
|
|
205
|
+
}: Props$14) => react_jsx_runtime19.JSX.Element;
|
|
180
206
|
Node: ({
|
|
181
207
|
className,
|
|
182
208
|
...props
|
|
183
|
-
}: Props$14) =>
|
|
209
|
+
}: Props$14) => react_jsx_runtime19.JSX.Element;
|
|
184
210
|
};
|
|
185
211
|
//#endregion
|
|
186
212
|
//#region src/components/atoms/Spin/index.d.ts
|
|
@@ -191,7 +217,7 @@ declare const Spin: ({
|
|
|
191
217
|
spinning,
|
|
192
218
|
className,
|
|
193
219
|
...props
|
|
194
|
-
}: Props$13) =>
|
|
220
|
+
}: Props$13) => react_jsx_runtime19.JSX.Element | null;
|
|
195
221
|
//#endregion
|
|
196
222
|
//#region src/components/atoms/Switch/index.d.ts
|
|
197
223
|
interface Props$12 extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
@@ -208,7 +234,7 @@ declare const Switch: ({
|
|
|
208
234
|
className,
|
|
209
235
|
classNames,
|
|
210
236
|
...props
|
|
211
|
-
}: Props$12) =>
|
|
237
|
+
}: Props$12) => react_jsx_runtime19.JSX.Element;
|
|
212
238
|
//#endregion
|
|
213
239
|
//#region src/components/molecules/Card/index.d.ts
|
|
214
240
|
interface Props$11 extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> {
|
|
@@ -226,7 +252,7 @@ declare const Card: ({
|
|
|
226
252
|
classNames,
|
|
227
253
|
variant,
|
|
228
254
|
...props
|
|
229
|
-
}: Props$11) =>
|
|
255
|
+
}: Props$11) => react_jsx_runtime19.JSX.Element;
|
|
230
256
|
//#endregion
|
|
231
257
|
//#region src/components/molecules/Collapse/index.d.ts
|
|
232
258
|
interface Item {
|
|
@@ -253,7 +279,7 @@ declare const Collapse: ({
|
|
|
253
279
|
className,
|
|
254
280
|
classNames,
|
|
255
281
|
defaultActiveKey
|
|
256
|
-
}: Props$10) =>
|
|
282
|
+
}: Props$10) => react_jsx_runtime19.JSX.Element;
|
|
257
283
|
//#endregion
|
|
258
284
|
//#region src/components/molecules/Dropdown/index.d.ts
|
|
259
285
|
type ChangeEventHandler = (open: boolean) => void;
|
|
@@ -271,7 +297,7 @@ declare const Dropdown: ({
|
|
|
271
297
|
open: _open,
|
|
272
298
|
onOpenChange,
|
|
273
299
|
...props
|
|
274
|
-
}: Props$9) =>
|
|
300
|
+
}: Props$9) => react_jsx_runtime19.JSX.Element;
|
|
275
301
|
//#endregion
|
|
276
302
|
//#region src/components/molecules/Marquees/Item/index.d.ts
|
|
277
303
|
interface ItemProps {
|
|
@@ -301,7 +327,7 @@ declare const Marquees: {
|
|
|
301
327
|
pauseOnHover,
|
|
302
328
|
autoFill,
|
|
303
329
|
...props
|
|
304
|
-
}: Props$7):
|
|
330
|
+
}: Props$7): react_jsx_runtime19.JSX.Element;
|
|
305
331
|
Item: ({
|
|
306
332
|
width: _width,
|
|
307
333
|
speed,
|
|
@@ -309,7 +335,7 @@ declare const Marquees: {
|
|
|
309
335
|
pause: _pause,
|
|
310
336
|
pauseOnHover,
|
|
311
337
|
children
|
|
312
|
-
}: Props$8) =>
|
|
338
|
+
}: Props$8) => react_jsx_runtime19.JSX.Element;
|
|
313
339
|
};
|
|
314
340
|
//#endregion
|
|
315
341
|
//#region src/components/molecules/Space/index.d.ts
|
|
@@ -340,7 +366,7 @@ declare const Space: ({
|
|
|
340
366
|
hidden,
|
|
341
367
|
style,
|
|
342
368
|
...props
|
|
343
|
-
}: Props$6) =>
|
|
369
|
+
}: Props$6) => react_jsx_runtime19.JSX.Element;
|
|
344
370
|
//#endregion
|
|
345
371
|
//#region src/components/organisms/Drawer/index.d.ts
|
|
346
372
|
interface Props$5 {
|
|
@@ -390,7 +416,7 @@ declare const Drawer: ({
|
|
|
390
416
|
container,
|
|
391
417
|
onClose,
|
|
392
418
|
...props
|
|
393
|
-
}: Props$5) =>
|
|
419
|
+
}: Props$5) => react_jsx_runtime19.JSX.Element | null;
|
|
394
420
|
//#endregion
|
|
395
421
|
//#region src/components/organisms/List/index.d.ts
|
|
396
422
|
interface Props$4<T> extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
@@ -429,12 +455,12 @@ declare const List: {
|
|
|
429
455
|
classNames,
|
|
430
456
|
renderItem,
|
|
431
457
|
...props
|
|
432
|
-
}: Props$4<T>): string | number | bigint | true | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined
|
|
458
|
+
}: Props$4<T>): string | number | bigint | true | react_jsx_runtime19.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined>;
|
|
433
459
|
Item: ({
|
|
434
460
|
children,
|
|
435
461
|
className,
|
|
436
462
|
...props
|
|
437
|
-
}: React$1.HTMLAttributes<HTMLDivElement>) =>
|
|
463
|
+
}: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime19.JSX.Element;
|
|
438
464
|
};
|
|
439
465
|
//#endregion
|
|
440
466
|
//#region src/components/organisms/Modal/index.d.ts
|
|
@@ -488,7 +514,7 @@ declare const Modal: {
|
|
|
488
514
|
onOk,
|
|
489
515
|
onCancel,
|
|
490
516
|
...props
|
|
491
|
-
}: Props$3):
|
|
517
|
+
}: Props$3): react_jsx_runtime19.JSX.Element | null;
|
|
492
518
|
destroy(id?: string): void;
|
|
493
519
|
destroyAll(): void;
|
|
494
520
|
info(props: StaticProps): string | undefined;
|
|
@@ -517,13 +543,13 @@ declare const Swiper: {
|
|
|
517
543
|
renderItem,
|
|
518
544
|
loadingClassName,
|
|
519
545
|
...props
|
|
520
|
-
}: Props$2<T>):
|
|
546
|
+
}: Props$2<T>): react_jsx_runtime19.JSX.Element;
|
|
521
547
|
Slide: {
|
|
522
548
|
({
|
|
523
549
|
children,
|
|
524
550
|
className,
|
|
525
551
|
...props
|
|
526
|
-
}: swiper_react0.SwiperSlideProps):
|
|
552
|
+
}: swiper_react0.SwiperSlideProps): react_jsx_runtime19.JSX.Element;
|
|
527
553
|
displayName: string;
|
|
528
554
|
};
|
|
529
555
|
};
|
|
@@ -538,27 +564,27 @@ declare const Layout: {
|
|
|
538
564
|
children,
|
|
539
565
|
className,
|
|
540
566
|
...props
|
|
541
|
-
}: Props):
|
|
567
|
+
}: Props): react_jsx_runtime19.JSX.Element;
|
|
542
568
|
Content: ({
|
|
543
569
|
children,
|
|
544
570
|
className,
|
|
545
571
|
...props
|
|
546
|
-
}: React.HTMLAttributes<HTMLDivElement>) =>
|
|
572
|
+
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime19.JSX.Element;
|
|
547
573
|
Footer: ({
|
|
548
574
|
children,
|
|
549
575
|
className,
|
|
550
576
|
...props
|
|
551
|
-
}: React.HTMLAttributes<HTMLDivElement>) =>
|
|
577
|
+
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime19.JSX.Element;
|
|
552
578
|
Header: ({
|
|
553
579
|
children,
|
|
554
580
|
className,
|
|
555
581
|
...props
|
|
556
|
-
}: Props$1) =>
|
|
582
|
+
}: Props$1) => react_jsx_runtime19.JSX.Element;
|
|
557
583
|
Sider: ({
|
|
558
584
|
children,
|
|
559
585
|
className,
|
|
560
586
|
...props
|
|
561
|
-
}: React.HTMLAttributes<HTMLDivElement>) =>
|
|
587
|
+
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime19.JSX.Element;
|
|
562
588
|
};
|
|
563
589
|
//#endregion
|
|
564
|
-
export { Button, Card, Checkbox, Collapse, Drawer, Dropdown, FloatButton, Layout, List, Marquees, Menu, Modal, Progress, Reveals, Skeleton, Space, Spin, Swiper, Switch, Typography };
|
|
590
|
+
export { Button, Card, Checkbox, Collapse, Drawer, Dropdown, FloatButton, Input, Layout, List, Marquees, Menu, Modal, Progress, Reveals, Skeleton, Space, Spin, Swiper, Switch, Typography };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as Input_default, a as Drawer_default, b as Button_default, c as Dropdown_default, d as Collapse_default, f as Card_default, g as Progress_default, h as Skeleton_default, i as List_default, l as Menu_default, m as Spin_default, n as Swiper_default, o as Space_default, p as Switch_default, r as Modal_default, s as Marquees_default, t as Layout_default, v as FloatButton_default, y as Checkbox_default } from "./src-DBVgtbBS.mjs";
|
|
2
2
|
import "./utils-DEenfsJ-.mjs";
|
|
3
3
|
import { t as Typography_default } from "./Typography-LYvEW-c8.mjs";
|
|
4
4
|
import { i as Reveals_default } from "./Reveals-BpnYZJUk.mjs";
|
|
5
5
|
|
|
6
|
-
export { Button_default as Button, Card_default as Card, Checkbox_default as Checkbox, Collapse_default as Collapse, Drawer_default as Drawer, Dropdown_default as Dropdown, FloatButton_default as FloatButton, Layout_default as Layout, List_default as List, Marquees_default as Marquees, Menu_default as Menu, Modal_default as Modal, Progress_default as Progress, Reveals_default as Reveals, Skeleton_default as Skeleton, Space_default as Space, Spin_default as Spin, Swiper_default as Swiper, Switch_default as Switch, Typography_default as Typography };
|
|
6
|
+
export { Button_default as Button, Card_default as Card, Checkbox_default as Checkbox, Collapse_default as Collapse, Drawer_default as Drawer, Dropdown_default as Dropdown, FloatButton_default as FloatButton, Input_default as Input, Layout_default as Layout, List_default as List, Marquees_default as Marquees, Menu_default as Menu, Modal_default as Modal, Progress_default as Progress, Reveals_default as Reveals, Skeleton_default as Skeleton, Space_default as Space, Spin_default as Spin, Swiper_default as Swiper, Switch_default as Switch, Typography_default as Typography };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cn } from "./utils-DEenfsJ-.mjs";
|
|
2
2
|
import { t as Typography_default } from "./Typography-LYvEW-c8.mjs";
|
|
3
|
-
import { ArrowUp, Check, ChevronDown, CircleQuestionMark, Info, Loader2, LoaderCircle, OctagonAlert, OctagonX, Square, SquareCheck, X, XIcon } from "lucide-react";
|
|
3
|
+
import { ArrowUp, Check, ChevronDown, CircleQuestionMark, CircleX, Info, Loader2, LoaderCircle, OctagonAlert, OctagonX, Search, Square, SquareCheck, X, XIcon } from "lucide-react";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
import React, { Children, createElement, useEffect, useId, useRef, useState } from "react";
|
|
5
|
+
import React, { Children, createElement, forwardRef, useEffect, useId, useRef, useState } from "react";
|
|
6
6
|
import { Slot } from "@radix-ui/react-slot";
|
|
7
7
|
import { cva } from "class-variance-authority";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -254,6 +254,87 @@ const FloatButton = ({ className, children, ...props }) => {
|
|
|
254
254
|
FloatButton.BackTop = BackTop_default;
|
|
255
255
|
var FloatButton_default = FloatButton;
|
|
256
256
|
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/core/input.tsx
|
|
259
|
+
const Input$1 = React$1.forwardRef(({ className, type, ...props }, ref) => {
|
|
260
|
+
return /* @__PURE__ */ jsx("input", {
|
|
261
|
+
type,
|
|
262
|
+
className: cn(`border-input file:text-foreground placeholder:text-muted-foreground
|
|
263
|
+
focus-visible:ring-ring flex h-9 w-full rounded-md border
|
|
264
|
+
bg-transparent px-3 py-1 text-base shadow-sm transition-colors
|
|
265
|
+
file:border-0 file:bg-transparent file:text-sm file:font-medium
|
|
266
|
+
focus-visible:ring-1 focus-visible:outline-none
|
|
267
|
+
disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`, className),
|
|
268
|
+
ref,
|
|
269
|
+
...props
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
Input$1.displayName = "Input";
|
|
273
|
+
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/components/atoms/Input/Search/index.tsx
|
|
276
|
+
const Search$1 = forwardRef(({ className, value, allowClear = true, onChange = () => {}, onPressEnter, ...props }, ref) => {
|
|
277
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
278
|
+
className: cn("relative flex items-center gap-x-2", "rounded-md", "p-3", className),
|
|
279
|
+
children: [
|
|
280
|
+
/* @__PURE__ */ jsx(Search, { className: "absolute size-5" }),
|
|
281
|
+
/* @__PURE__ */ jsx(Input$1, {
|
|
282
|
+
ref,
|
|
283
|
+
inputMode: "search",
|
|
284
|
+
type: "search",
|
|
285
|
+
enterKeyHint: "search",
|
|
286
|
+
className: cn("w-full"),
|
|
287
|
+
value,
|
|
288
|
+
onChange,
|
|
289
|
+
onKeyDown: (e) => {
|
|
290
|
+
if (e.key === "Enter") onPressEnter();
|
|
291
|
+
},
|
|
292
|
+
...props
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ jsx(CircleX, {
|
|
295
|
+
className: cn("absolute size-4 shrink-0 cursor-pointer", (!allowClear || !value) && "hidden"),
|
|
296
|
+
onClick: () => onChange({ target: { value: "" } })
|
|
297
|
+
})
|
|
298
|
+
]
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
Search$1.displayName = "Search";
|
|
302
|
+
var Search_default = Search$1;
|
|
303
|
+
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/core/textarea.tsx
|
|
306
|
+
const Textarea = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
307
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
308
|
+
className: cn(`border-input placeholder:text-muted-foreground focus-visible:ring-ring
|
|
309
|
+
flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2
|
|
310
|
+
text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none
|
|
311
|
+
disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`, className),
|
|
312
|
+
ref,
|
|
313
|
+
...props
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
Textarea.displayName = "Textarea";
|
|
317
|
+
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region src/components/atoms/Input/TextArea/index.tsx
|
|
320
|
+
const TextArea = ({ className, ref, ...props }) => {
|
|
321
|
+
return /* @__PURE__ */ jsx(Textarea, {
|
|
322
|
+
ref,
|
|
323
|
+
className: cn(className),
|
|
324
|
+
...props
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
var TextArea_default = TextArea;
|
|
328
|
+
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region src/components/atoms/Input/index.tsx
|
|
331
|
+
const Input = ({ ...props }) => {
|
|
332
|
+
return /* @__PURE__ */ jsx(Input$1, { ...props });
|
|
333
|
+
};
|
|
334
|
+
Input.Search = Search_default;
|
|
335
|
+
Input.TextArea = TextArea_default;
|
|
336
|
+
var Input_default = Input;
|
|
337
|
+
|
|
257
338
|
//#endregion
|
|
258
339
|
//#region src/core/progress.tsx
|
|
259
340
|
const Progress$1 = React$1.forwardRef(({ className, barClassName, barStyle, value, ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, {
|
|
@@ -4516,6 +4597,7 @@ const Marquees = ({ className, items, speed, pauseOnHover = true, autoFill = tru
|
|
|
4516
4597
|
const [pause, setPause] = useState(false);
|
|
4517
4598
|
const throttledWidth = useThrottle(width, 200);
|
|
4518
4599
|
const { size } = useResponsiveSize();
|
|
4600
|
+
const { size: innerSize, ref: innerRef } = useResponsiveSize();
|
|
4519
4601
|
const hoverEvents = pauseOnHover ? {
|
|
4520
4602
|
onMouseEnter: () => {
|
|
4521
4603
|
setPause(true);
|
|
@@ -4524,6 +4606,7 @@ const Marquees = ({ className, items, speed, pauseOnHover = true, autoFill = tru
|
|
|
4524
4606
|
setPause(false);
|
|
4525
4607
|
}
|
|
4526
4608
|
} : {};
|
|
4609
|
+
const maxWidth = typeof throttledWidth === "string" ? "100%" : Math.min(throttledWidth, innerSize.width);
|
|
4527
4610
|
useEffect(() => {
|
|
4528
4611
|
if (!size.width) return;
|
|
4529
4612
|
setWidth(size.width);
|
|
@@ -4538,12 +4621,13 @@ const Marquees = ({ className, items, speed, pauseOnHover = true, autoFill = tru
|
|
|
4538
4621
|
};
|
|
4539
4622
|
}, []);
|
|
4540
4623
|
return /* @__PURE__ */ jsx("div", {
|
|
4624
|
+
ref: innerRef,
|
|
4541
4625
|
className: cn(className),
|
|
4542
4626
|
...hoverEvents,
|
|
4543
4627
|
...props,
|
|
4544
4628
|
children: /* @__PURE__ */ jsx("div", {
|
|
4545
4629
|
className: cn("flex flex-col gap-y-5", "overflow-hidden", "whitespace-nowrap", "bg-inherit"),
|
|
4546
|
-
style: { width:
|
|
4630
|
+
style: { width: maxWidth },
|
|
4547
4631
|
children: items?.map(({ children, key: itemKey, ...item }, key) => /* @__PURE__ */ jsx(Item_default$1, {
|
|
4548
4632
|
width: throttledWidth,
|
|
4549
4633
|
pause,
|
|
@@ -4915,7 +4999,7 @@ const createModalRoot = (container) => {
|
|
|
4915
4999
|
}
|
|
4916
5000
|
return rootEl;
|
|
4917
5001
|
};
|
|
4918
|
-
const Modal = ({ open = false, maskClosable = false, closable = false, closeIcon, className, classNames, style, title, footer, container, children, okText = "
|
|
5002
|
+
const Modal = ({ open = false, maskClosable = false, closable = false, closeIcon, className, classNames, style, title, footer, container, children, okText = "OK", cancelText = "Cancel", onOk, onCancel, ...props }) => {
|
|
4919
5003
|
if (typeof window === "undefined") return null;
|
|
4920
5004
|
return /* @__PURE__ */ jsx(Dialog, {
|
|
4921
5005
|
open,
|
|
@@ -4965,7 +5049,7 @@ const STATIC_ICONS = {
|
|
|
4965
5049
|
warning: /* @__PURE__ */ jsx(OctagonAlert, { className: "text-yellow-400" }),
|
|
4966
5050
|
confirm: /* @__PURE__ */ jsx(CircleQuestionMark, {})
|
|
4967
5051
|
};
|
|
4968
|
-
const StaticModal = ({ type, title, content, okText = "
|
|
5052
|
+
const StaticModal = ({ type, title, content, okText = "OK", cancelText = "Cancel", id, container, icon, onOk, onCancel, ...props }) => {
|
|
4969
5053
|
const [open, setOpen] = useState(true);
|
|
4970
5054
|
const closeModal = (callback) => {
|
|
4971
5055
|
callback?.();
|
|
@@ -5189,4 +5273,4 @@ Layout.Sider = Sider_default;
|
|
|
5189
5273
|
var Layout_default = Layout;
|
|
5190
5274
|
|
|
5191
5275
|
//#endregion
|
|
5192
|
-
export {
|
|
5276
|
+
export { Input_default as _, Drawer_default as a, Button_default$1 as b, Dropdown_default as c, Collapse_default as d, Card_default as f, Progress_default as g, Skeleton_default as h, List_default as i, Menu_default as l, Spin_default as m, Swiper_default as n, Space_default as o, Switch_default as p, Modal_default as r, Marquees_default as s, Layout_default as t, findKey as u, FloatButton_default as v, Checkbox_default as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbpark/ui-kit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Modern React UI component library built with TypeScript, Tailwind CSS, and Radix UI. Featuring atoms, molecules, organisms and layout templates for building beautiful interfaces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@gsap/react": "^2.1.2",
|
|
86
|
-
"@jbpark/use-hooks": "^
|
|
86
|
+
"@jbpark/use-hooks": "^2.0.2",
|
|
87
87
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
88
88
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
89
89
|
"@radix-ui/react-dialog": "^1.1.15",
|