@jbpark/ui-kit 1.1.7 → 2.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/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-BNeH6gYs.d.mts → index-BO7hcWjo.d.mts} +2 -2
- package/dist/{index-DP36DulT.d.mts → index-BqaluEQ4.d.mts} +10 -10
- package/dist/{index-CvYPwbSk.d.mts → index-DS-PGSIg.d.mts} +4 -4
- package/dist/index.d.mts +37 -36
- package/dist/index.mjs +1 -1
- package/dist/output.css +53 -0
- package/dist/{src-DBVgtbBS.mjs → src-C3CveHCK.mjs} +16 -12
- package/dist/{src-BMCpZppe.css → src-DbBw9pxl.css} +22 -0
- package/package.json +1 -1
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-BO7hcWjo.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-DS-PGSIg.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-BqaluEQ4.mjs";
|
|
2
2
|
export { Link, Paragraph, Text, Title, TypographyProps, Typography as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 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_runtime6.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_runtime8 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_runtime8.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_runtime8.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_runtime8.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_runtime8.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_runtime8.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_runtime8.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_runtime8.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_runtime8.JSX.Element;
|
|
75
75
|
Title: ({
|
|
76
76
|
children,
|
|
77
77
|
level,
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: Props) =>
|
|
80
|
+
}: Props) => react_jsx_runtime8.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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 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_runtime11.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_runtime11.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_runtime11.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 };
|
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-BqaluEQ4.mjs";
|
|
2
|
+
import { i as MenuProps, n as Menu } from "./index-BO7hcWjo.mjs";
|
|
3
|
+
import { a as Reveals } from "./index-DS-PGSIg.mjs";
|
|
4
4
|
import * as React$2 from "react";
|
|
5
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_runtime18 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";
|
|
@@ -18,7 +18,7 @@ import { SwiperOptions } from "swiper/types";
|
|
|
18
18
|
//#region src/core/button.d.ts
|
|
19
19
|
declare const buttonVariants: (props?: ({
|
|
20
20
|
variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
21
|
-
size?: "
|
|
21
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
22
22
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
23
23
|
type Props$22 = React$2.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
24
24
|
asChild?: boolean;
|
|
@@ -26,12 +26,13 @@ type Props$22 = React$2.ComponentProps<'button'> & VariantProps<typeof buttonVar
|
|
|
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$21 extends Omit<Props$22, 'size'> {
|
|
29
|
+
interface Props$21 extends Omit<Props$22, 'size' | 'variant'> {
|
|
30
30
|
icon?: React.ReactNode;
|
|
31
31
|
block?: boolean;
|
|
32
32
|
danger?: boolean;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
size?: 'small' | 'medium' | 'large';
|
|
35
|
+
variant?: 'solid' | 'outlined' | 'dashed' | 'filled' | 'text' | 'link';
|
|
35
36
|
color?: PresetColors | 'default' | 'primary' | 'danger';
|
|
36
37
|
loading?: boolean | {
|
|
37
38
|
icon: React.ReactNode;
|
|
@@ -50,7 +51,7 @@ declare const Button: ({
|
|
|
50
51
|
children,
|
|
51
52
|
onMouseDown,
|
|
52
53
|
...props
|
|
53
|
-
}: Props$21) =>
|
|
54
|
+
}: Props$21) => react_jsx_runtime18.JSX.Element;
|
|
54
55
|
//#endregion
|
|
55
56
|
//#region src/components/atoms/Checkbox/Group/index.d.ts
|
|
56
57
|
type Option = {
|
|
@@ -90,7 +91,7 @@ declare const Checkbox: {
|
|
|
90
91
|
checked: _checked,
|
|
91
92
|
onChange: _onChange,
|
|
92
93
|
...props
|
|
93
|
-
}: Props$19):
|
|
94
|
+
}: Props$19): react_jsx_runtime18.JSX.Element;
|
|
94
95
|
Group: ({
|
|
95
96
|
direction,
|
|
96
97
|
placement,
|
|
@@ -98,7 +99,7 @@ declare const Checkbox: {
|
|
|
98
99
|
classNames,
|
|
99
100
|
options: _options,
|
|
100
101
|
onChange
|
|
101
|
-
}: Props$20) =>
|
|
102
|
+
}: Props$20) => react_jsx_runtime18.JSX.Element;
|
|
102
103
|
};
|
|
103
104
|
//#endregion
|
|
104
105
|
//#region src/components/atoms/FloatButton/BackTop/index.d.ts
|
|
@@ -114,13 +115,13 @@ declare const FloatButton: {
|
|
|
114
115
|
className,
|
|
115
116
|
children,
|
|
116
117
|
...props
|
|
117
|
-
}: Props$17):
|
|
118
|
+
}: Props$17): react_jsx_runtime18.JSX.Element;
|
|
118
119
|
BackTop: ({
|
|
119
120
|
visibilityHeight,
|
|
120
121
|
className,
|
|
121
122
|
onClick,
|
|
122
123
|
...props
|
|
123
|
-
}: Props$18) =>
|
|
124
|
+
}: Props$18) => react_jsx_runtime18.JSX.Element;
|
|
124
125
|
};
|
|
125
126
|
//#endregion
|
|
126
127
|
//#region src/components/atoms/Input/Search/index.d.ts
|
|
@@ -138,7 +139,7 @@ interface Props$16 extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
138
139
|
declare const Input: {
|
|
139
140
|
({
|
|
140
141
|
...props
|
|
141
|
-
}: InputHTMLAttributes<HTMLInputElement>):
|
|
142
|
+
}: InputHTMLAttributes<HTMLInputElement>): react_jsx_runtime18.JSX.Element;
|
|
142
143
|
Search: React$2.ForwardRefExoticComponent<Props$16 & React$2.RefAttributes<HTMLInputElement>>;
|
|
143
144
|
TextArea: ({
|
|
144
145
|
className,
|
|
@@ -146,7 +147,7 @@ declare const Input: {
|
|
|
146
147
|
...props
|
|
147
148
|
}: React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
148
149
|
ref?: React.Ref<HTMLTextAreaElement>;
|
|
149
|
-
}) =>
|
|
150
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
150
151
|
};
|
|
151
152
|
//#endregion
|
|
152
153
|
//#region src/components/atoms/Progress/index.d.ts
|
|
@@ -163,7 +164,7 @@ declare const Progress: ({
|
|
|
163
164
|
className,
|
|
164
165
|
direction,
|
|
165
166
|
classNames
|
|
166
|
-
}: Props$15) =>
|
|
167
|
+
}: Props$15) => react_jsx_runtime18.JSX.Element;
|
|
167
168
|
//#endregion
|
|
168
169
|
//#region src/components/atoms/Skeleton/index.d.ts
|
|
169
170
|
interface Props$14 extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -198,15 +199,15 @@ declare const Skeleton: {
|
|
|
198
199
|
height,
|
|
199
200
|
children,
|
|
200
201
|
...props
|
|
201
|
-
}: Props$14): string | number | bigint | boolean |
|
|
202
|
+
}: 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> | react_jsx_runtime18.JSX.Element | null | undefined;
|
|
202
203
|
Button: ({
|
|
203
204
|
className,
|
|
204
205
|
...props
|
|
205
|
-
}: Props$14) =>
|
|
206
|
+
}: Props$14) => react_jsx_runtime18.JSX.Element;
|
|
206
207
|
Node: ({
|
|
207
208
|
className,
|
|
208
209
|
...props
|
|
209
|
-
}: Props$14) =>
|
|
210
|
+
}: Props$14) => react_jsx_runtime18.JSX.Element;
|
|
210
211
|
};
|
|
211
212
|
//#endregion
|
|
212
213
|
//#region src/components/atoms/Spin/index.d.ts
|
|
@@ -217,7 +218,7 @@ declare const Spin: ({
|
|
|
217
218
|
spinning,
|
|
218
219
|
className,
|
|
219
220
|
...props
|
|
220
|
-
}: Props$13) =>
|
|
221
|
+
}: Props$13) => react_jsx_runtime18.JSX.Element | null;
|
|
221
222
|
//#endregion
|
|
222
223
|
//#region src/components/atoms/Switch/index.d.ts
|
|
223
224
|
interface Props$12 extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
@@ -234,7 +235,7 @@ declare const Switch: ({
|
|
|
234
235
|
className,
|
|
235
236
|
classNames,
|
|
236
237
|
...props
|
|
237
|
-
}: Props$12) =>
|
|
238
|
+
}: Props$12) => react_jsx_runtime18.JSX.Element;
|
|
238
239
|
//#endregion
|
|
239
240
|
//#region src/components/molecules/Card/index.d.ts
|
|
240
241
|
interface Props$11 extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> {
|
|
@@ -252,7 +253,7 @@ declare const Card: ({
|
|
|
252
253
|
classNames,
|
|
253
254
|
variant,
|
|
254
255
|
...props
|
|
255
|
-
}: Props$11) =>
|
|
256
|
+
}: Props$11) => react_jsx_runtime18.JSX.Element;
|
|
256
257
|
//#endregion
|
|
257
258
|
//#region src/components/molecules/Collapse/index.d.ts
|
|
258
259
|
interface Item {
|
|
@@ -279,7 +280,7 @@ declare const Collapse: ({
|
|
|
279
280
|
className,
|
|
280
281
|
classNames,
|
|
281
282
|
defaultActiveKey
|
|
282
|
-
}: Props$10) =>
|
|
283
|
+
}: Props$10) => react_jsx_runtime18.JSX.Element;
|
|
283
284
|
//#endregion
|
|
284
285
|
//#region src/components/molecules/Dropdown/index.d.ts
|
|
285
286
|
type ChangeEventHandler = (open: boolean) => void;
|
|
@@ -297,7 +298,7 @@ declare const Dropdown: ({
|
|
|
297
298
|
open: _open,
|
|
298
299
|
onOpenChange,
|
|
299
300
|
...props
|
|
300
|
-
}: Props$9) =>
|
|
301
|
+
}: Props$9) => react_jsx_runtime18.JSX.Element;
|
|
301
302
|
//#endregion
|
|
302
303
|
//#region src/components/molecules/Marquees/Item/index.d.ts
|
|
303
304
|
interface ItemProps {
|
|
@@ -327,7 +328,7 @@ declare const Marquees: {
|
|
|
327
328
|
pauseOnHover,
|
|
328
329
|
autoFill,
|
|
329
330
|
...props
|
|
330
|
-
}: Props$7):
|
|
331
|
+
}: Props$7): react_jsx_runtime18.JSX.Element;
|
|
331
332
|
Item: ({
|
|
332
333
|
width: _width,
|
|
333
334
|
speed,
|
|
@@ -335,7 +336,7 @@ declare const Marquees: {
|
|
|
335
336
|
pause: _pause,
|
|
336
337
|
pauseOnHover,
|
|
337
338
|
children
|
|
338
|
-
}: Props$8) =>
|
|
339
|
+
}: Props$8) => react_jsx_runtime18.JSX.Element;
|
|
339
340
|
};
|
|
340
341
|
//#endregion
|
|
341
342
|
//#region src/components/molecules/Space/index.d.ts
|
|
@@ -366,7 +367,7 @@ declare const Space: ({
|
|
|
366
367
|
hidden,
|
|
367
368
|
style,
|
|
368
369
|
...props
|
|
369
|
-
}: Props$6) =>
|
|
370
|
+
}: Props$6) => react_jsx_runtime18.JSX.Element;
|
|
370
371
|
//#endregion
|
|
371
372
|
//#region src/components/organisms/Drawer/index.d.ts
|
|
372
373
|
interface Props$5 {
|
|
@@ -416,7 +417,7 @@ declare const Drawer: ({
|
|
|
416
417
|
container,
|
|
417
418
|
onClose,
|
|
418
419
|
...props
|
|
419
|
-
}: Props$5) =>
|
|
420
|
+
}: Props$5) => react_jsx_runtime18.JSX.Element | null;
|
|
420
421
|
//#endregion
|
|
421
422
|
//#region src/components/organisms/List/index.d.ts
|
|
422
423
|
interface Props$4<T> extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
@@ -455,12 +456,12 @@ declare const List: {
|
|
|
455
456
|
classNames,
|
|
456
457
|
renderItem,
|
|
457
458
|
...props
|
|
458
|
-
}: Props$4<T>): string | number | bigint | true |
|
|
459
|
+
}: 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> | react_jsx_runtime18.JSX.Element;
|
|
459
460
|
Item: ({
|
|
460
461
|
children,
|
|
461
462
|
className,
|
|
462
463
|
...props
|
|
463
|
-
}: React$1.HTMLAttributes<HTMLDivElement>) =>
|
|
464
|
+
}: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
|
|
464
465
|
};
|
|
465
466
|
//#endregion
|
|
466
467
|
//#region src/components/organisms/Modal/index.d.ts
|
|
@@ -514,7 +515,7 @@ declare const Modal: {
|
|
|
514
515
|
onOk,
|
|
515
516
|
onCancel,
|
|
516
517
|
...props
|
|
517
|
-
}: Props$3):
|
|
518
|
+
}: Props$3): react_jsx_runtime18.JSX.Element | null;
|
|
518
519
|
destroy(id?: string): void;
|
|
519
520
|
destroyAll(): void;
|
|
520
521
|
info(props: StaticProps): string | undefined;
|
|
@@ -543,13 +544,13 @@ declare const Swiper: {
|
|
|
543
544
|
renderItem,
|
|
544
545
|
loadingClassName,
|
|
545
546
|
...props
|
|
546
|
-
}: Props$2<T>):
|
|
547
|
+
}: Props$2<T>): react_jsx_runtime18.JSX.Element;
|
|
547
548
|
Slide: {
|
|
548
549
|
({
|
|
549
550
|
children,
|
|
550
551
|
className,
|
|
551
552
|
...props
|
|
552
|
-
}: swiper_react0.SwiperSlideProps):
|
|
553
|
+
}: swiper_react0.SwiperSlideProps): react_jsx_runtime18.JSX.Element;
|
|
553
554
|
displayName: string;
|
|
554
555
|
};
|
|
555
556
|
};
|
|
@@ -564,27 +565,27 @@ declare const Layout: {
|
|
|
564
565
|
children,
|
|
565
566
|
className,
|
|
566
567
|
...props
|
|
567
|
-
}: Props):
|
|
568
|
+
}: Props): react_jsx_runtime18.JSX.Element;
|
|
568
569
|
Content: ({
|
|
569
570
|
children,
|
|
570
571
|
className,
|
|
571
572
|
...props
|
|
572
|
-
}: React.HTMLAttributes<HTMLDivElement>) =>
|
|
573
|
+
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
|
|
573
574
|
Footer: ({
|
|
574
575
|
children,
|
|
575
576
|
className,
|
|
576
577
|
...props
|
|
577
|
-
}: React.HTMLAttributes<HTMLDivElement>) =>
|
|
578
|
+
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
|
|
578
579
|
Header: ({
|
|
579
580
|
children,
|
|
580
581
|
className,
|
|
581
582
|
...props
|
|
582
|
-
}: Props$1) =>
|
|
583
|
+
}: Props$1) => react_jsx_runtime18.JSX.Element;
|
|
583
584
|
Sider: ({
|
|
584
585
|
children,
|
|
585
586
|
className,
|
|
586
587
|
...props
|
|
587
|
-
}: React.HTMLAttributes<HTMLDivElement>) =>
|
|
588
|
+
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
|
|
588
589
|
};
|
|
589
590
|
//#endregion
|
|
590
591
|
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,4 +1,4 @@
|
|
|
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-
|
|
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-C3CveHCK.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";
|
package/dist/output.css
CHANGED
|
@@ -669,10 +669,20 @@
|
|
|
669
669
|
border-bottom-style: var(--tw-border-style);
|
|
670
670
|
border-bottom-width: 2px;
|
|
671
671
|
}
|
|
672
|
+
.border-dashed {
|
|
673
|
+
--tw-border-style: dashed;
|
|
674
|
+
border-style: dashed;
|
|
675
|
+
}
|
|
672
676
|
.border-none {
|
|
673
677
|
--tw-border-style: none;
|
|
674
678
|
border-style: none;
|
|
675
679
|
}
|
|
680
|
+
.border-\(--btn-border\) {
|
|
681
|
+
border-color: var(--btn-border);
|
|
682
|
+
}
|
|
683
|
+
.border-\[rgb\(var\(--btn-border\)\/0\.5\)\] {
|
|
684
|
+
border-color: rgb(var(--btn-border)/0.5);
|
|
685
|
+
}
|
|
676
686
|
.border-current {
|
|
677
687
|
border-color: currentcolor;
|
|
678
688
|
}
|
|
@@ -896,6 +906,9 @@
|
|
|
896
906
|
.whitespace-pre-wrap {
|
|
897
907
|
white-space: pre-wrap;
|
|
898
908
|
}
|
|
909
|
+
.text-\(--btn-bg\) {
|
|
910
|
+
color: var(--btn-bg);
|
|
911
|
+
}
|
|
899
912
|
.text-\(--btn-fg\) {
|
|
900
913
|
color: var(--btn-fg);
|
|
901
914
|
}
|
|
@@ -1114,6 +1127,26 @@
|
|
|
1114
1127
|
}
|
|
1115
1128
|
}
|
|
1116
1129
|
}
|
|
1130
|
+
.hover\:bg-muted\/80 {
|
|
1131
|
+
&:hover {
|
|
1132
|
+
@media (hover: hover) {
|
|
1133
|
+
background-color: var(--muted);
|
|
1134
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1135
|
+
background-color: color-mix(in oklab, var(--muted) 80%, transparent);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
.hover\:bg-primary\/10 {
|
|
1141
|
+
&:hover {
|
|
1142
|
+
@media (hover: hover) {
|
|
1143
|
+
background-color: var(--primary);
|
|
1144
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1145
|
+
background-color: color-mix(in oklab, var(--primary) 10%, transparent);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1117
1150
|
.hover\:bg-primary\/90 {
|
|
1118
1151
|
&:hover {
|
|
1119
1152
|
@media (hover: hover) {
|
|
@@ -1817,6 +1850,7 @@
|
|
|
1817
1850
|
@layer components {
|
|
1818
1851
|
[data-slot='button'][data-color] {
|
|
1819
1852
|
--btn-fg: white;
|
|
1853
|
+
--btn-border: var(--btn-bg);
|
|
1820
1854
|
--btn-bg-hover: var(--btn-bg);
|
|
1821
1855
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1822
1856
|
--btn-bg-hover: color-mix(in oklch, var(--btn-bg), black 12%);
|
|
@@ -1829,52 +1863,71 @@
|
|
|
1829
1863
|
[data-slot='button'][data-color='yellow'], [data-slot='button'][data-color='lime'], [data-slot='button'][data-color='gold'] {
|
|
1830
1864
|
--btn-fg: black;
|
|
1831
1865
|
}
|
|
1866
|
+
[data-slot='button'][data-color='default'] {
|
|
1867
|
+
--btn-bg: var(--muted);
|
|
1868
|
+
--btn-border: 107 114 128;
|
|
1869
|
+
}
|
|
1832
1870
|
[data-slot='button'][data-color='primary'] {
|
|
1833
1871
|
--btn-bg: var(--primary);
|
|
1872
|
+
--btn-border: var(--primary);
|
|
1834
1873
|
--btn-fg: var(--primary-foreground);
|
|
1835
1874
|
}
|
|
1836
1875
|
[data-slot='button'][data-color='danger'] {
|
|
1837
1876
|
--btn-bg: var(--destructive);
|
|
1877
|
+
--btn-border: 239 68 68;
|
|
1838
1878
|
--btn-fg: white;
|
|
1839
1879
|
}
|
|
1840
1880
|
[data-slot='button'][data-color='blue'] {
|
|
1841
1881
|
--btn-bg: #3b82f6;
|
|
1882
|
+
--btn-border: 59 130 246;
|
|
1842
1883
|
}
|
|
1843
1884
|
[data-slot='button'][data-color='purple'] {
|
|
1844
1885
|
--btn-bg: #a855f7;
|
|
1886
|
+
--btn-border: 168 85 247;
|
|
1845
1887
|
}
|
|
1846
1888
|
[data-slot='button'][data-color='cyan'] {
|
|
1847
1889
|
--btn-bg: #06b6d4;
|
|
1890
|
+
--btn-border: 6 182 212;
|
|
1848
1891
|
}
|
|
1849
1892
|
[data-slot='button'][data-color='green'] {
|
|
1850
1893
|
--btn-bg: #22c55e;
|
|
1894
|
+
--btn-border: 34 197 94;
|
|
1851
1895
|
}
|
|
1852
1896
|
[data-slot='button'][data-color='magenta'] {
|
|
1853
1897
|
--btn-bg: #d946ef;
|
|
1898
|
+
--btn-border: 217 70 239;
|
|
1854
1899
|
}
|
|
1855
1900
|
[data-slot='button'][data-color='pink'] {
|
|
1856
1901
|
--btn-bg: #ec4899;
|
|
1902
|
+
--btn-border: 236 72 153;
|
|
1857
1903
|
}
|
|
1858
1904
|
[data-slot='button'][data-color='red'] {
|
|
1859
1905
|
--btn-bg: #ef4444;
|
|
1906
|
+
--btn-border: 239 68 68;
|
|
1860
1907
|
}
|
|
1861
1908
|
[data-slot='button'][data-color='orange'] {
|
|
1862
1909
|
--btn-bg: #f97316;
|
|
1910
|
+
--btn-border: 249 115 22;
|
|
1863
1911
|
}
|
|
1864
1912
|
[data-slot='button'][data-color='yellow'] {
|
|
1865
1913
|
--btn-bg: #eab308;
|
|
1914
|
+
--btn-border: 234 179 8;
|
|
1866
1915
|
}
|
|
1867
1916
|
[data-slot='button'][data-color='volcano'] {
|
|
1868
1917
|
--btn-bg: #ea580c;
|
|
1918
|
+
--btn-border: 234 88 12;
|
|
1869
1919
|
}
|
|
1870
1920
|
[data-slot='button'][data-color='geekblue'] {
|
|
1871
1921
|
--btn-bg: #6366f1;
|
|
1922
|
+
--btn-border: 99 102 241;
|
|
1872
1923
|
}
|
|
1873
1924
|
[data-slot='button'][data-color='lime'] {
|
|
1874
1925
|
--btn-bg: #84cc16;
|
|
1926
|
+
--btn-border: 132 204 22;
|
|
1875
1927
|
}
|
|
1876
1928
|
[data-slot='button'][data-color='gold'] {
|
|
1877
1929
|
--btn-bg: #f59e0b;
|
|
1930
|
+
--btn-border: 245 158 11;
|
|
1878
1931
|
}
|
|
1879
1932
|
}
|
|
1880
1933
|
@property --tw-translate-x {
|
|
@@ -66,9 +66,12 @@ function Button$2({ className, variant, size, asChild = false, ...props }) {
|
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region src/components/atoms/Button/index.tsx
|
|
68
68
|
const variantClasses = {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
solid: "",
|
|
70
|
+
outlined: cn("border border-[rgb(var(--btn-border)/0.5)]", "bg-background text-foreground", "hover:bg-accent"),
|
|
71
|
+
dashed: cn("border border-dashed border-[rgb(var(--btn-border)/0.5)]", "bg-background text-foreground", "hover:bg-accent"),
|
|
72
|
+
filled: cn("bg-muted text-foreground", "hover:bg-muted/80"),
|
|
73
|
+
text: cn("bg-transparent text-foreground", "hover:bg-accent"),
|
|
74
|
+
link: cn("bg-transparent text-primary", "underline-offset-4 hover:underline", "hover:bg-primary/10")
|
|
72
75
|
};
|
|
73
76
|
const sizesClasses = {
|
|
74
77
|
small: "h-6 px-3 text-sm",
|
|
@@ -80,20 +83,21 @@ const iconSizes = {
|
|
|
80
83
|
medium: "size-8",
|
|
81
84
|
large: "size-10"
|
|
82
85
|
};
|
|
83
|
-
const Button$1 = ({ icon, className, variant = "
|
|
86
|
+
const Button$1 = ({ icon, className, variant = "solid", size = "medium", color = "default", block = false, disabled, loading, danger, children, onMouseDown, ...props }) => {
|
|
84
87
|
const iconOnly = icon && !children;
|
|
85
88
|
const computedColor = danger ? "danger" : color;
|
|
86
89
|
const colored = computedColor && computedColor !== "default";
|
|
87
90
|
return /* @__PURE__ */ jsxs(Button$2, {
|
|
88
|
-
variant,
|
|
89
91
|
disabled,
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
+
variant: "default",
|
|
93
|
+
"data-color": computedColor,
|
|
94
|
+
className: cn("inline-flex items-center justify-center gap-x-2", "rounded-lg", "cursor-pointer", "h-auto py-0", "transition-all", variantClasses[variant || "solid"], sizesClasses[size || "medium"], iconOnly && iconSizes[size || "medium"], block && "w-full", colored && (variant === "solid" ? [
|
|
92
95
|
"bg-(--btn-bg)",
|
|
93
96
|
"hover:bg-(--btn-bg-hover)",
|
|
94
97
|
"active:bg-(--btn-bg-active)",
|
|
95
|
-
"text-(--btn-fg)"
|
|
96
|
-
|
|
98
|
+
"text-(--btn-fg)",
|
|
99
|
+
"border-(--btn-border)"
|
|
100
|
+
] : ["text-(--btn-bg)", "border-[rgb(var(--btn-border)/0.5)]"]), className),
|
|
97
101
|
onMouseDown: (e) => {
|
|
98
102
|
e.preventDefault();
|
|
99
103
|
onMouseDown?.(e);
|
|
@@ -246,7 +250,7 @@ var BackTop_default = BackTop;
|
|
|
246
250
|
const FloatButton = ({ className, children, ...props }) => {
|
|
247
251
|
return /* @__PURE__ */ jsx(Button_default$1, {
|
|
248
252
|
className: cn("fixed right-5 bottom-5 rounded-full", "bg-white hover:bg-white", "z-50 h-12 w-12", "shadow-md", className),
|
|
249
|
-
variant: "
|
|
253
|
+
variant: "outlined",
|
|
250
254
|
...props,
|
|
251
255
|
children
|
|
252
256
|
});
|
|
@@ -5033,7 +5037,7 @@ const Modal = ({ open = false, maskClosable = false, closable = false, closeIcon
|
|
|
5033
5037
|
onClick: onOk,
|
|
5034
5038
|
children: okText
|
|
5035
5039
|
}), /* @__PURE__ */ jsx(Button_default$1, {
|
|
5036
|
-
variant: "
|
|
5040
|
+
variant: "outlined",
|
|
5037
5041
|
onClick: onCancel,
|
|
5038
5042
|
children: cancelText
|
|
5039
5043
|
})] })
|
|
@@ -5061,7 +5065,7 @@ const StaticModal = ({ type, title, content, okText = "OK", cancelText = "Cancel
|
|
|
5061
5065
|
const footer = type === "confirm" ? /* @__PURE__ */ jsxs("div", {
|
|
5062
5066
|
className: "grid w-full grid-cols-5 gap-x-2",
|
|
5063
5067
|
children: [/* @__PURE__ */ jsx(Button_default$1, {
|
|
5064
|
-
variant: "
|
|
5068
|
+
variant: "outlined",
|
|
5065
5069
|
className: "col-span-2",
|
|
5066
5070
|
onClick: () => closeModal(onCancel),
|
|
5067
5071
|
children: cancelText
|
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
@layer components {
|
|
126
126
|
[data-slot='button'][data-color] {
|
|
127
127
|
--btn-fg: white;
|
|
128
|
+
--btn-border: var(--btn-bg);
|
|
128
129
|
--btn-bg-hover: color-mix(in oklch, var(--btn-bg), black 12%);
|
|
129
130
|
--btn-bg-active: color-mix(in oklch, var(--btn-bg), black 22%);
|
|
130
131
|
}
|
|
@@ -135,53 +136,74 @@
|
|
|
135
136
|
--btn-fg: black;
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
[data-slot='button'][data-color='default'] {
|
|
140
|
+
--btn-bg: var(--muted);
|
|
141
|
+
--btn-border: 107 114 128;
|
|
142
|
+
}
|
|
143
|
+
|
|
138
144
|
[data-slot='button'][data-color='primary'] {
|
|
139
145
|
--btn-bg: var(--primary);
|
|
146
|
+
--btn-border: var(--primary);
|
|
140
147
|
--btn-fg: var(--primary-foreground);
|
|
141
148
|
}
|
|
149
|
+
|
|
142
150
|
[data-slot='button'][data-color='danger'] {
|
|
143
151
|
--btn-bg: var(--destructive);
|
|
152
|
+
--btn-border: 239 68 68;
|
|
144
153
|
--btn-fg: white;
|
|
145
154
|
}
|
|
146
155
|
|
|
147
156
|
[data-slot='button'][data-color='blue'] {
|
|
148
157
|
--btn-bg: #3b82f6;
|
|
158
|
+
--btn-border: 59 130 246;
|
|
149
159
|
} /* blue-500 */
|
|
150
160
|
[data-slot='button'][data-color='purple'] {
|
|
151
161
|
--btn-bg: #a855f7;
|
|
162
|
+
--btn-border: 168 85 247;
|
|
152
163
|
} /* purple-500 */
|
|
153
164
|
[data-slot='button'][data-color='cyan'] {
|
|
154
165
|
--btn-bg: #06b6d4;
|
|
166
|
+
--btn-border: 6 182 212;
|
|
155
167
|
} /* cyan-500 */
|
|
156
168
|
[data-slot='button'][data-color='green'] {
|
|
157
169
|
--btn-bg: #22c55e;
|
|
170
|
+
--btn-border: 34 197 94;
|
|
158
171
|
} /* green-500 */
|
|
159
172
|
[data-slot='button'][data-color='magenta'] {
|
|
160
173
|
--btn-bg: #d946ef;
|
|
174
|
+
--btn-border: 217 70 239;
|
|
161
175
|
} /* fuchsia-500 */
|
|
162
176
|
[data-slot='button'][data-color='pink'] {
|
|
163
177
|
--btn-bg: #ec4899;
|
|
178
|
+
--btn-border: 236 72 153;
|
|
164
179
|
} /* pink-500 */
|
|
165
180
|
[data-slot='button'][data-color='red'] {
|
|
166
181
|
--btn-bg: #ef4444;
|
|
182
|
+
--btn-border: 239 68 68;
|
|
167
183
|
} /* red-500 */
|
|
168
184
|
[data-slot='button'][data-color='orange'] {
|
|
169
185
|
--btn-bg: #f97316;
|
|
186
|
+
--btn-border: 249 115 22;
|
|
170
187
|
} /* orange-500 */
|
|
171
188
|
[data-slot='button'][data-color='yellow'] {
|
|
172
189
|
--btn-bg: #eab308;
|
|
190
|
+
--btn-border: 234 179 8;
|
|
173
191
|
} /* yellow-500 */
|
|
174
192
|
[data-slot='button'][data-color='volcano'] {
|
|
175
193
|
--btn-bg: #ea580c;
|
|
194
|
+
--btn-border: 234 88 12;
|
|
176
195
|
} /* orange-600 */
|
|
177
196
|
[data-slot='button'][data-color='geekblue'] {
|
|
178
197
|
--btn-bg: #6366f1;
|
|
198
|
+
--btn-border: 99 102 241;
|
|
179
199
|
} /* indigo-500 */
|
|
180
200
|
[data-slot='button'][data-color='lime'] {
|
|
181
201
|
--btn-bg: #84cc16;
|
|
202
|
+
--btn-border: 132 204 22;
|
|
182
203
|
} /* lime-500 */
|
|
183
204
|
[data-slot='button'][data-color='gold'] {
|
|
184
205
|
--btn-bg: #f59e0b;
|
|
206
|
+
--btn-border: 245 158 11;
|
|
185
207
|
} /* amber-500 */
|
|
186
208
|
}
|
|
187
209
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbpark/ui-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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",
|