@jbpark/ui-kit 1.1.3

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.
@@ -0,0 +1,564 @@
1
+ import { t as Typography } from "./index-03IpZ7BA.mjs";
2
+ import { i as MenuProps, n as Menu } from "./index-Bis4UfFa.mjs";
3
+ import { a as Reveals } from "./index-BkkNNoK0.mjs";
4
+ import * as React$2 from "react";
5
+ import React$1, { HTMLAttributes, MouseEvent } from "react";
6
+ import { VariantProps } from "class-variance-authority";
7
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
8
+ import * as swiper_react0 from "swiper/react";
9
+ import { SwiperProps } from "swiper/react";
10
+ import "swiper/css";
11
+ import "swiper/css/autoplay";
12
+ import "swiper/css/effect-cards";
13
+ import "swiper/css/navigation";
14
+ import "swiper/css/scrollbar";
15
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
16
+ import { SwiperOptions } from "swiper/types";
17
+
18
+ //#region src/core/button.d.ts
19
+ declare const buttonVariants: (props?: ({
20
+ variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
21
+ size?: "icon" | "default" | "sm" | "lg" | null | undefined;
22
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
23
+ type Props$21 = React$2.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
24
+ asChild?: boolean;
25
+ };
26
+ //#endregion
27
+ //#region src/components/atoms/Button/index.d.ts
28
+ type PresetColors = 'blue' | 'purple' | 'cyan' | 'green' | 'magenta' | 'pink' | 'red' | 'orange' | 'yellow' | 'volcano' | 'geekblue' | 'lime' | 'gold';
29
+ interface Props$20 extends Omit<Props$21, 'size'> {
30
+ icon?: React.ReactNode;
31
+ block?: boolean;
32
+ danger?: boolean;
33
+ disabled?: boolean;
34
+ size?: 'small' | 'medium' | 'large';
35
+ color?: PresetColors | 'default' | 'primary' | 'danger';
36
+ loading?: boolean | {
37
+ icon: React.ReactNode;
38
+ };
39
+ }
40
+ declare const Button: ({
41
+ icon,
42
+ className,
43
+ variant,
44
+ size,
45
+ color,
46
+ block,
47
+ disabled,
48
+ loading,
49
+ danger,
50
+ children,
51
+ onMouseDown,
52
+ ...props
53
+ }: Props$20) => react_jsx_runtime18.JSX.Element;
54
+ //#endregion
55
+ //#region src/components/atoms/Checkbox/Group/index.d.ts
56
+ type Option = {
57
+ label: string;
58
+ value: OptionValue;
59
+ checked?: boolean;
60
+ };
61
+ type Options = string[] | number[] | boolean[] | Option[];
62
+ interface Props$19 extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
63
+ options?: Options;
64
+ direction?: string;
65
+ placement?: string;
66
+ classNames?: Record<string, string>;
67
+ onChange?: (values: OptionValue[]) => void;
68
+ }
69
+ //#endregion
70
+ //#region src/components/atoms/Checkbox/index.d.ts
71
+ type OptionValue = string | number | boolean;
72
+ interface Props$18 extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
73
+ placement?: string;
74
+ checked?: boolean;
75
+ value?: OptionValue;
76
+ icons?: {
77
+ checked: React.ReactNode;
78
+ unchecked: React.ReactNode;
79
+ };
80
+ children?: React.ReactNode;
81
+ onChange?: (checked: boolean) => void;
82
+ }
83
+ declare const Checkbox: {
84
+ ({
85
+ placement,
86
+ value,
87
+ children,
88
+ className,
89
+ icons,
90
+ checked: _checked,
91
+ onChange: _onChange,
92
+ ...props
93
+ }: Props$18): react_jsx_runtime18.JSX.Element;
94
+ Group: ({
95
+ direction,
96
+ placement,
97
+ className,
98
+ classNames,
99
+ options: _options,
100
+ onChange
101
+ }: Props$19) => react_jsx_runtime18.JSX.Element;
102
+ };
103
+ //#endregion
104
+ //#region src/components/atoms/FloatButton/BackTop/index.d.ts
105
+ interface Props$17 extends Props$20 {
106
+ visibilityHeight?: number;
107
+ onClick?: (e: MouseEvent<HTMLElement>) => void;
108
+ }
109
+ //#endregion
110
+ //#region src/components/atoms/FloatButton/index.d.ts
111
+ interface Props$16 extends Props$20 {}
112
+ declare const FloatButton: {
113
+ ({
114
+ className,
115
+ children,
116
+ ...props
117
+ }: Props$16): react_jsx_runtime18.JSX.Element;
118
+ BackTop: ({
119
+ visibilityHeight,
120
+ className,
121
+ onClick,
122
+ ...props
123
+ }: Props$17) => react_jsx_runtime18.JSX.Element;
124
+ };
125
+ //#endregion
126
+ //#region src/components/atoms/Progress/index.d.ts
127
+ interface Props$15 extends React.HTMLAttributes<HTMLElement> {
128
+ value: number;
129
+ direction?: 'horizontal' | 'vertical';
130
+ classNames?: {
131
+ background?: string;
132
+ bar?: string;
133
+ };
134
+ }
135
+ declare const Progress: ({
136
+ value,
137
+ className,
138
+ direction,
139
+ classNames
140
+ }: Props$15) => react_jsx_runtime18.JSX.Element;
141
+ //#endregion
142
+ //#region src/components/atoms/Skeleton/index.d.ts
143
+ interface Props$14 extends React.HTMLAttributes<HTMLDivElement> {
144
+ active?: boolean;
145
+ loading?: boolean;
146
+ avatar?: boolean;
147
+ size?: 'default' | 'small' | 'large';
148
+ count?: number;
149
+ gap?: number;
150
+ direction?: 'horizontal' | 'vertical';
151
+ width?: string | number | (string | number)[];
152
+ height?: string | number | (string | number)[];
153
+ classNames?: {
154
+ wrapper?: string;
155
+ avatar?: string;
156
+ item?: string;
157
+ };
158
+ }
159
+ declare const Skeleton: {
160
+ ({
161
+ active,
162
+ loading,
163
+ avatar,
164
+ size,
165
+ direction,
166
+ count,
167
+ gap,
168
+ className,
169
+ classNames,
170
+ style,
171
+ width,
172
+ height,
173
+ children,
174
+ ...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> | react_jsx_runtime18.JSX.Element | null | undefined;
176
+ Button: ({
177
+ className,
178
+ ...props
179
+ }: Props$14) => react_jsx_runtime18.JSX.Element;
180
+ Node: ({
181
+ className,
182
+ ...props
183
+ }: Props$14) => react_jsx_runtime18.JSX.Element;
184
+ };
185
+ //#endregion
186
+ //#region src/components/atoms/Spin/index.d.ts
187
+ interface Props$13 extends React.HTMLAttributes<HTMLDivElement> {
188
+ spinning?: boolean;
189
+ }
190
+ declare const Spin: ({
191
+ spinning,
192
+ className,
193
+ ...props
194
+ }: Props$13) => react_jsx_runtime18.JSX.Element | null;
195
+ //#endregion
196
+ //#region src/components/atoms/Switch/index.d.ts
197
+ interface Props$12 extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange'> {
198
+ classNames?: {
199
+ track?: string;
200
+ handle?: string;
201
+ };
202
+ checked?: boolean;
203
+ disabled?: boolean;
204
+ onChange?: (checked: boolean) => void;
205
+ }
206
+ declare const Switch: ({
207
+ onChange,
208
+ className,
209
+ classNames,
210
+ ...props
211
+ }: Props$12) => react_jsx_runtime18.JSX.Element;
212
+ //#endregion
213
+ //#region src/components/molecules/Card/index.d.ts
214
+ interface Props$11 extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> {
215
+ title?: React.ReactNode;
216
+ variant?: 'outlined' | 'borderless';
217
+ classNames?: {
218
+ title?: string;
219
+ body?: string;
220
+ };
221
+ }
222
+ declare const Card: ({
223
+ title,
224
+ children,
225
+ className,
226
+ classNames,
227
+ variant,
228
+ ...props
229
+ }: Props$11) => react_jsx_runtime18.JSX.Element;
230
+ //#endregion
231
+ //#region src/components/molecules/Collapse/index.d.ts
232
+ interface Item {
233
+ key: React$1.Key;
234
+ label: React$1.ReactNode;
235
+ disabled?: boolean;
236
+ children: React$1.ReactNode;
237
+ }
238
+ interface Props$10 extends React$1.HTMLAttributes<HTMLElement> {
239
+ items?: Item[];
240
+ accordion?: boolean;
241
+ expandIcon?: React$1.ReactNode;
242
+ classNames?: {
243
+ item?: string;
244
+ header?: string;
245
+ body?: string;
246
+ };
247
+ defaultActiveKey?: string[] | number[];
248
+ }
249
+ declare const Collapse: ({
250
+ expandIcon,
251
+ accordion,
252
+ items: _items,
253
+ className,
254
+ classNames,
255
+ defaultActiveKey
256
+ }: Props$10) => react_jsx_runtime18.JSX.Element;
257
+ //#endregion
258
+ //#region src/components/molecules/Dropdown/index.d.ts
259
+ type ChangeEventHandler = (open: boolean) => void;
260
+ interface Props$9 extends React.HTMLAttributes<HTMLElement> {
261
+ open?: boolean;
262
+ trigger?: string;
263
+ menu?: MenuProps;
264
+ placement?: string;
265
+ onOpenChange?: ChangeEventHandler;
266
+ }
267
+ declare const Dropdown: ({
268
+ children,
269
+ menu,
270
+ trigger,
271
+ open: _open,
272
+ onOpenChange,
273
+ ...props
274
+ }: Props$9) => react_jsx_runtime18.JSX.Element;
275
+ //#endregion
276
+ //#region src/components/molecules/Marquees/Item/index.d.ts
277
+ interface ItemProps {
278
+ key?: React.Key;
279
+ speed?: number;
280
+ autoFill?: boolean | number;
281
+ pause?: boolean;
282
+ pauseOnHover?: boolean;
283
+ children?: React.ReactNode;
284
+ }
285
+ interface Props$8 extends React.HTMLAttributes<HTMLDivElement>, ItemProps {
286
+ width: string | number;
287
+ }
288
+ //#endregion
289
+ //#region src/components/molecules/Marquees/index.d.ts
290
+ interface Props$7 extends React.HTMLAttributes<HTMLDivElement> {
291
+ speed?: number;
292
+ autoFill?: boolean | number;
293
+ pauseOnHover?: boolean;
294
+ items?: ItemProps[];
295
+ }
296
+ declare const Marquees: {
297
+ ({
298
+ className,
299
+ items,
300
+ speed,
301
+ pauseOnHover,
302
+ autoFill,
303
+ ...props
304
+ }: Props$7): react_jsx_runtime18.JSX.Element;
305
+ Item: ({
306
+ width: _width,
307
+ speed,
308
+ autoFill,
309
+ pause: _pause,
310
+ pauseOnHover,
311
+ children
312
+ }: Props$8) => react_jsx_runtime18.JSX.Element;
313
+ };
314
+ //#endregion
315
+ //#region src/components/molecules/Space/index.d.ts
316
+ interface Props$6 extends HTMLAttributes<HTMLDivElement> {
317
+ loading?: boolean;
318
+ loader?: React.ReactNode;
319
+ orientation?: 'horizontal' | 'vertical';
320
+ size?: 'small' | 'middle' | 'large' | number | number[];
321
+ align?: 'start' | 'end' | 'center' | 'baseline';
322
+ wrap?: boolean;
323
+ split?: React.ReactNode;
324
+ grid?: {
325
+ rows?: number;
326
+ cols?: number;
327
+ };
328
+ }
329
+ declare const Space: ({
330
+ loading,
331
+ loader,
332
+ children,
333
+ size,
334
+ orientation,
335
+ align,
336
+ wrap,
337
+ split,
338
+ className,
339
+ grid,
340
+ hidden,
341
+ style,
342
+ ...props
343
+ }: Props$6) => react_jsx_runtime18.JSX.Element;
344
+ //#endregion
345
+ //#region src/components/organisms/Drawer/index.d.ts
346
+ interface Props$5 {
347
+ open: boolean;
348
+ children?: React.ReactNode;
349
+ title?: React.ReactNode;
350
+ footer?: React.ReactNode;
351
+ closable?: boolean;
352
+ closeIcon?: React.ReactNode;
353
+ direction?: 'top' | 'bottom' | 'left' | 'right';
354
+ maskClosable?: boolean;
355
+ handlebar?: boolean;
356
+ draggable?: boolean;
357
+ rounded?: boolean;
358
+ mask?: boolean;
359
+ className?: string;
360
+ style?: React.CSSProperties;
361
+ classNames?: {
362
+ mask?: string;
363
+ content?: string;
364
+ handlebar?: string;
365
+ header?: string;
366
+ title?: string;
367
+ close?: string;
368
+ body?: string;
369
+ footer?: string;
370
+ };
371
+ container?: HTMLElement;
372
+ onClose: () => void;
373
+ }
374
+ declare const Drawer: ({
375
+ open,
376
+ title,
377
+ footer,
378
+ closable,
379
+ closeIcon,
380
+ direction,
381
+ maskClosable,
382
+ handlebar,
383
+ draggable,
384
+ rounded,
385
+ mask,
386
+ className,
387
+ classNames,
388
+ style,
389
+ children,
390
+ container,
391
+ onClose,
392
+ ...props
393
+ }: Props$5) => react_jsx_runtime18.JSX.Element | null;
394
+ //#endregion
395
+ //#region src/components/organisms/List/index.d.ts
396
+ interface Props$4<T> extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
397
+ loading?: boolean;
398
+ loaderProps?: React$1.ComponentProps<typeof Skeleton>;
399
+ loader?: React$1.ReactNode;
400
+ title?: React$1.ReactNode;
401
+ header?: React$1.ReactNode;
402
+ empty?: React$1.ReactNode;
403
+ classNames?: {
404
+ title?: string;
405
+ header?: string;
406
+ body?: string;
407
+ };
408
+ scroll?: {
409
+ hasMore: boolean;
410
+ loading: boolean;
411
+ loader?: React$1.ReactNode;
412
+ options?: IntersectionObserverInit;
413
+ next: () => void;
414
+ };
415
+ data?: T[];
416
+ renderItem?: (item: T, index: number) => React$1.ReactNode;
417
+ }
418
+ declare const List: {
419
+ <T>({
420
+ loading,
421
+ loaderProps,
422
+ loader,
423
+ header,
424
+ title,
425
+ empty,
426
+ scroll,
427
+ data,
428
+ className,
429
+ classNames,
430
+ renderItem,
431
+ ...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> | react_jsx_runtime18.JSX.Element;
433
+ Item: ({
434
+ children,
435
+ className,
436
+ ...props
437
+ }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
438
+ };
439
+ //#endregion
440
+ //#region src/components/organisms/Modal/index.d.ts
441
+ interface Props$3 {
442
+ open?: boolean;
443
+ maskClosable?: boolean;
444
+ closable?: boolean | {
445
+ closeIcon?: React$1.ReactNode;
446
+ disabled?: boolean;
447
+ };
448
+ closeIcon?: React$1.ReactNode;
449
+ title?: React$1.ReactNode;
450
+ content?: React$1.ReactNode;
451
+ footer?: React$1.ReactNode;
452
+ className?: string;
453
+ classNames?: {
454
+ mask?: string;
455
+ header?: string;
456
+ body?: string;
457
+ footer?: string;
458
+ };
459
+ style?: React$1.CSSProperties;
460
+ okText?: string;
461
+ cancelText?: string;
462
+ container?: HTMLElement;
463
+ children?: React$1.ReactNode;
464
+ onOk?: () => void;
465
+ onCancel?: () => void;
466
+ }
467
+ interface StaticProps extends Props$3 {
468
+ type?: 'info' | 'success' | 'error' | 'warning' | 'confirm';
469
+ id?: string;
470
+ icon?: React$1.ReactNode;
471
+ container?: HTMLElement;
472
+ }
473
+ declare const Modal: {
474
+ ({
475
+ open,
476
+ maskClosable,
477
+ closable,
478
+ closeIcon,
479
+ className,
480
+ classNames,
481
+ style,
482
+ title,
483
+ footer,
484
+ container,
485
+ children,
486
+ okText,
487
+ cancelText,
488
+ onOk,
489
+ onCancel,
490
+ ...props
491
+ }: Props$3): react_jsx_runtime18.JSX.Element | null;
492
+ destroy(id?: string): void;
493
+ destroyAll(): void;
494
+ info(props: StaticProps): string | undefined;
495
+ success(props: StaticProps): string | undefined;
496
+ error(props: StaticProps): string | undefined;
497
+ warning(props: StaticProps): string | undefined;
498
+ confirm(props: StaticProps): string | undefined;
499
+ };
500
+ //#endregion
501
+ //#region src/components/organisms/Swiper/index.d.ts
502
+ interface Props$2<T> extends SwiperProps {
503
+ loading?: boolean;
504
+ loader?: React.ReactNode;
505
+ loadingClassName?: string;
506
+ options?: SwiperOptions;
507
+ data: T[];
508
+ renderItem(item: T, key: number): React.ReactNode;
509
+ }
510
+ declare const Swiper: {
511
+ <T>({
512
+ loading,
513
+ loader,
514
+ options,
515
+ data,
516
+ style,
517
+ renderItem,
518
+ loadingClassName,
519
+ ...props
520
+ }: Props$2<T>): react_jsx_runtime18.JSX.Element;
521
+ Slide: {
522
+ ({
523
+ children,
524
+ className,
525
+ ...props
526
+ }: swiper_react0.SwiperSlideProps): react_jsx_runtime18.JSX.Element;
527
+ displayName: string;
528
+ };
529
+ };
530
+ //#endregion
531
+ //#region src/components/templates/Layout/Header/index.d.ts
532
+ interface Props$1 extends React.HTMLAttributes<HTMLDivElement> {}
533
+ //#endregion
534
+ //#region src/components/templates/Layout/index.d.ts
535
+ interface Props extends React.HTMLAttributes<HTMLDivElement> {}
536
+ declare const Layout: {
537
+ ({
538
+ children,
539
+ className,
540
+ ...props
541
+ }: Props): react_jsx_runtime18.JSX.Element;
542
+ Content: ({
543
+ children,
544
+ className,
545
+ ...props
546
+ }: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
547
+ Footer: ({
548
+ children,
549
+ className,
550
+ ...props
551
+ }: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
552
+ Header: ({
553
+ children,
554
+ className,
555
+ ...props
556
+ }: Props$1) => react_jsx_runtime18.JSX.Element;
557
+ Sider: ({
558
+ children,
559
+ className,
560
+ ...props
561
+ }: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime18.JSX.Element;
562
+ };
563
+ //#endregion
564
+ export { Button, Card, Checkbox, Collapse, Drawer, Dropdown, FloatButton, Layout, List, Marquees, Menu, Modal, Progress, Reveals, Skeleton, Space, Spin, Swiper, Switch, Typography };