@tipp/ui 1.2.10 → 1.2.12
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/atoms/dialog.cjs +44 -10
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +3 -1
- package/dist/atoms/index.cjs +90 -83
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +3 -3
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +2 -2
- package/dist/chunk-66C4U3BG.js +75 -0
- package/dist/chunk-66C4U3BG.js.map +1 -0
- package/dist/chunk-6CZBINAI.js +94 -0
- package/dist/chunk-6CZBINAI.js.map +1 -0
- package/dist/chunk-C3YMRWG2.js +97 -0
- package/dist/chunk-C3YMRWG2.js.map +1 -0
- package/dist/chunk-EIYPZPFB.js +130 -0
- package/dist/chunk-EIYPZPFB.js.map +1 -0
- package/dist/chunk-PF5CPG6R.js +169 -0
- package/dist/chunk-PF5CPG6R.js.map +1 -0
- package/dist/chunk-XC4I5B6G.js +340 -0
- package/dist/chunk-XC4I5B6G.js.map +1 -0
- package/dist/icon.cjs +2 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/icon.js +3 -1
- package/dist/index.cjs +145 -136
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.js +3 -3
- package/dist/molecules/expand-table/row.js +3 -3
- package/dist/molecules/index.cjs +24 -24
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +6 -6
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +4 -4
- package/package.json +1 -1
- package/src/atoms/dialog.tsx +2 -0
- package/src/icon.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -60,75 +60,76 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
60
60
|
var src_exports = {};
|
|
61
61
|
__export(src_exports, {
|
|
62
62
|
AlertDialog: () => import_themes.AlertDialog,
|
|
63
|
-
ArchiveIcon: () =>
|
|
63
|
+
ArchiveIcon: () => import_react_icons3.ArchiveIcon,
|
|
64
64
|
AspectRatio: () => import_themes2.AspectRatio,
|
|
65
65
|
AutoSizingInput: () => AutoSizingInput,
|
|
66
66
|
Avatar: () => Avatar,
|
|
67
|
-
BackpackIcon: () =>
|
|
67
|
+
BackpackIcon: () => import_react_icons3.BackpackIcon,
|
|
68
68
|
Badge: () => Badge,
|
|
69
|
-
BarChartIcon: () =>
|
|
69
|
+
BarChartIcon: () => import_react_icons3.BarChartIcon,
|
|
70
70
|
Blockquote: () => import_themes5.Blockquote,
|
|
71
|
-
BookmarkFilledIcon: () =>
|
|
72
|
-
BookmarkIcon: () =>
|
|
71
|
+
BookmarkFilledIcon: () => import_react_icons3.BookmarkFilledIcon,
|
|
72
|
+
BookmarkIcon: () => import_react_icons3.BookmarkIcon,
|
|
73
73
|
Box: () => import_themes6.Box,
|
|
74
74
|
Button: () => Button,
|
|
75
|
-
CalendarIcon: () =>
|
|
75
|
+
CalendarIcon: () => import_react_icons3.CalendarIcon,
|
|
76
76
|
Callout: () => import_themes8.Callout,
|
|
77
77
|
Card: () => Card,
|
|
78
|
-
ChatBubbleIcon: () =>
|
|
79
|
-
CheckIcon: () =>
|
|
78
|
+
ChatBubbleIcon: () => import_react_icons3.ChatBubbleIcon,
|
|
79
|
+
CheckIcon: () => import_react_icons3.CheckIcon,
|
|
80
80
|
Checkbox: () => Checkbox,
|
|
81
81
|
CheckboxCards: () => import_themes11.CheckboxCards,
|
|
82
82
|
CheckboxGroup: () => CheckboxGroup,
|
|
83
|
-
ChevronDownIcon: () =>
|
|
84
|
-
ChevronLeftIcon: () =>
|
|
85
|
-
ChevronRightIcon: () =>
|
|
86
|
-
ChevronUpIcon: () =>
|
|
87
|
-
|
|
83
|
+
ChevronDownIcon: () => import_react_icons3.ChevronDownIcon,
|
|
84
|
+
ChevronLeftIcon: () => import_react_icons3.ChevronLeftIcon,
|
|
85
|
+
ChevronRightIcon: () => import_react_icons3.ChevronRightIcon,
|
|
86
|
+
ChevronUpIcon: () => import_react_icons3.ChevronUpIcon,
|
|
87
|
+
ClipboardCopyIcon: () => import_react_icons3.ClipboardCopyIcon,
|
|
88
|
+
ClipboardIcon: () => import_react_icons3.ClipboardIcon,
|
|
88
89
|
Code: () => import_themes13.Code,
|
|
89
90
|
Collapse: () => Collapse,
|
|
90
91
|
Container: () => import_themes14.Container,
|
|
91
92
|
Content: () => Content6,
|
|
92
|
-
Cross1Icon: () =>
|
|
93
|
+
Cross1Icon: () => import_react_icons3.Cross1Icon,
|
|
93
94
|
DataList: () => import_themes15.DataList,
|
|
94
95
|
DatePicker: () => DatePicker,
|
|
95
96
|
Dialog: () => Dialog,
|
|
96
97
|
DotNavigation: () => DotNavigation,
|
|
97
|
-
DotsHorizontalIcon: () =>
|
|
98
|
-
DotsVerticalIcon: () =>
|
|
99
|
-
DoubleArrowLeftIcon: () =>
|
|
100
|
-
DoubleArrowRightIcon: () =>
|
|
98
|
+
DotsHorizontalIcon: () => import_react_icons3.DotsHorizontalIcon,
|
|
99
|
+
DotsVerticalIcon: () => import_react_icons3.DotsVerticalIcon,
|
|
100
|
+
DoubleArrowLeftIcon: () => import_react_icons3.DoubleArrowLeftIcon,
|
|
101
|
+
DoubleArrowRightIcon: () => import_react_icons3.DoubleArrowRightIcon,
|
|
101
102
|
Drawer: () => Drawer,
|
|
102
103
|
DropdownMenu: () => DropdownMenu,
|
|
103
104
|
EchartDefaultProps: () => EchartDefaultProps,
|
|
104
105
|
EllipsisTooltip: () => EllipsisTooltip,
|
|
105
|
-
Em: () =>
|
|
106
|
-
ExclamationTriangleIcon: () =>
|
|
107
|
-
ExitIcon: () =>
|
|
106
|
+
Em: () => import_themes19.Em,
|
|
107
|
+
ExclamationTriangleIcon: () => import_react_icons3.ExclamationTriangleIcon,
|
|
108
|
+
ExitIcon: () => import_react_icons3.ExitIcon,
|
|
108
109
|
ExpandTable: () => ExpandTable,
|
|
109
110
|
FieldErrorWrapper: () => FieldErrorWrapper,
|
|
110
|
-
FileIcon: () =>
|
|
111
|
-
Flex: () =>
|
|
111
|
+
FileIcon: () => import_react_icons3.FileIcon,
|
|
112
|
+
Flex: () => import_themes20.Flex,
|
|
112
113
|
Form: () => Form,
|
|
113
|
-
GearIcon: () =>
|
|
114
|
-
GlobeIcon: () =>
|
|
115
|
-
Grid: () =>
|
|
114
|
+
GearIcon: () => import_react_icons3.GearIcon,
|
|
115
|
+
GlobeIcon: () => import_react_icons3.GlobeIcon,
|
|
116
|
+
Grid: () => import_themes21.Grid,
|
|
116
117
|
Heading: () => Heading2,
|
|
117
118
|
HorizontalBarChart: () => HorizontalBarChart,
|
|
118
|
-
HoverCard: () =>
|
|
119
|
-
IconButton: () =>
|
|
120
|
-
InfoCircledIcon: () =>
|
|
119
|
+
HoverCard: () => import_themes24.HoverCard,
|
|
120
|
+
IconButton: () => import_themes16.IconButton,
|
|
121
|
+
InfoCircledIcon: () => import_react_icons3.InfoCircledIcon,
|
|
121
122
|
Inset: () => import_themes25.Inset,
|
|
122
123
|
Kbd: () => import_themes26.Kbd,
|
|
123
124
|
Link: () => Link,
|
|
124
|
-
Link2Icon: () =>
|
|
125
|
-
MagnifyingGlassIcon: () =>
|
|
126
|
-
MixerHorizontalIcon: () =>
|
|
125
|
+
Link2Icon: () => import_react_icons3.Link2Icon,
|
|
126
|
+
MagnifyingGlassIcon: () => import_react_icons3.MagnifyingGlassIcon,
|
|
127
|
+
MixerHorizontalIcon: () => import_react_icons3.MixerHorizontalIcon,
|
|
127
128
|
Navigation: () => Navigation,
|
|
128
129
|
Pagination: () => Pagination,
|
|
129
|
-
Pencil1Icon: () =>
|
|
130
|
-
PersonIcon: () =>
|
|
131
|
-
PlusIcon: () =>
|
|
130
|
+
Pencil1Icon: () => import_react_icons3.Pencil1Icon,
|
|
131
|
+
PersonIcon: () => import_react_icons3.PersonIcon,
|
|
132
|
+
PlusIcon: () => import_react_icons3.PlusIcon,
|
|
132
133
|
Popover: () => import_themes29.Popover,
|
|
133
134
|
Progress: () => import_themes30.Progress,
|
|
134
135
|
Quote: () => import_themes31.Quote,
|
|
@@ -136,13 +137,13 @@ __export(src_exports, {
|
|
|
136
137
|
RadioCards: () => import_themes33.RadioCards,
|
|
137
138
|
RadioGroup: () => import_themes34.RadioGroup,
|
|
138
139
|
Root: () => Root4,
|
|
139
|
-
RowsIcon: () =>
|
|
140
|
+
RowsIcon: () => import_react_icons3.RowsIcon,
|
|
140
141
|
ScrollArea: () => import_themes35.ScrollArea,
|
|
141
142
|
Section: () => import_themes36.Section,
|
|
142
143
|
SegmentedControl: () => import_themes37.SegmentedControl,
|
|
143
144
|
Select: () => Select,
|
|
144
145
|
Separator: () => import_themes39.Separator,
|
|
145
|
-
Share1Icon: () =>
|
|
146
|
+
Share1Icon: () => import_react_icons3.Share1Icon,
|
|
146
147
|
Skeleton: () => import_themes40.Skeleton,
|
|
147
148
|
Spinner: () => import_themes49.Spinner,
|
|
148
149
|
Stepper: () => Stepper,
|
|
@@ -156,7 +157,7 @@ __export(src_exports, {
|
|
|
156
157
|
ThemeProvider: () => ThemeProvider,
|
|
157
158
|
ToastContainer: () => ToastContainer,
|
|
158
159
|
Tooltip: () => import_themes48.Tooltip,
|
|
159
|
-
TrashIcon: () =>
|
|
160
|
+
TrashIcon: () => import_react_icons3.TrashIcon,
|
|
160
161
|
Trigger: () => Trigger4,
|
|
161
162
|
Typo: () => Typo,
|
|
162
163
|
createColumnHelper: () => import_react_table2.createColumnHelper,
|
|
@@ -382,10 +383,43 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
382
383
|
|
|
383
384
|
// src/atoms/dialog.tsx
|
|
384
385
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
386
|
+
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
387
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
388
|
+
var import_react7 = require("react");
|
|
389
|
+
|
|
390
|
+
// src/atoms/toast.tsx
|
|
385
391
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
392
|
+
var import_react_toastify = require("react-toastify");
|
|
393
|
+
|
|
394
|
+
// src/atoms/icon-button.tsx
|
|
386
395
|
var import_themes16 = require("@radix-ui/themes");
|
|
387
|
-
|
|
396
|
+
|
|
397
|
+
// src/atoms/toast.tsx
|
|
398
|
+
var import_react_toastify2 = require("react-toastify");
|
|
388
399
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
400
|
+
function CloseButton({ closeToast }) {
|
|
401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes16.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons.Cross1Icon, {}) });
|
|
402
|
+
}
|
|
403
|
+
function ToastContainer(props) {
|
|
404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
405
|
+
import_react_toastify.ToastContainer,
|
|
406
|
+
__spreadValues({
|
|
407
|
+
autoClose: 5e3,
|
|
408
|
+
closeButton: CloseButton,
|
|
409
|
+
closeOnClick: true,
|
|
410
|
+
draggable: true,
|
|
411
|
+
hideProgressBar: true,
|
|
412
|
+
newestOnTop: true,
|
|
413
|
+
pauseOnFocusLoss: true,
|
|
414
|
+
pauseOnHover: true,
|
|
415
|
+
position: "bottom-right",
|
|
416
|
+
rtl: false
|
|
417
|
+
}, props)
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// src/atoms/dialog.tsx
|
|
422
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
389
423
|
function Content2(props) {
|
|
390
424
|
const _a = props, {
|
|
391
425
|
children,
|
|
@@ -410,7 +444,7 @@ function Content2(props) {
|
|
|
410
444
|
(0, import_react7.useEffect)(() => {
|
|
411
445
|
containerRef.current = document.getElementsByClassName("radix-themes")[0];
|
|
412
446
|
}, []);
|
|
413
|
-
return /* @__PURE__ */ (0,
|
|
447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
414
448
|
RadixDialog.Content,
|
|
415
449
|
__spreadProps(__spreadValues({
|
|
416
450
|
className: "DialogContent",
|
|
@@ -423,10 +457,13 @@ function Content2(props) {
|
|
|
423
457
|
minHeight
|
|
424
458
|
}, style)
|
|
425
459
|
}, rest), {
|
|
426
|
-
children:
|
|
427
|
-
/* @__PURE__ */ (0,
|
|
428
|
-
|
|
429
|
-
|
|
460
|
+
children: [
|
|
461
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_themes17.Flex, { direction: "column", style: { position: "relative" }, children: [
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { color: "gray", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons2.Cross1Icon, { height: "18px", width: "18px" }) }) }),
|
|
463
|
+
children
|
|
464
|
+
] }),
|
|
465
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToastContainer, {})
|
|
466
|
+
]
|
|
430
467
|
})
|
|
431
468
|
) }) });
|
|
432
469
|
}
|
|
@@ -436,7 +473,7 @@ function Close2(_a) {
|
|
|
436
473
|
} = _b, rest = __objRest(_b, [
|
|
437
474
|
"children"
|
|
438
475
|
]);
|
|
439
|
-
return /* @__PURE__ */ (0,
|
|
476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
440
477
|
}
|
|
441
478
|
function Trigger2(_a) {
|
|
442
479
|
var _b = _a, {
|
|
@@ -444,7 +481,7 @@ function Trigger2(_a) {
|
|
|
444
481
|
} = _b, rest = __objRest(_b, [
|
|
445
482
|
"children"
|
|
446
483
|
]);
|
|
447
|
-
return /* @__PURE__ */ (0,
|
|
484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
448
485
|
}
|
|
449
486
|
var Dialog = {
|
|
450
487
|
Root: RadixDialog.Root,
|
|
@@ -456,17 +493,17 @@ var Dialog = {
|
|
|
456
493
|
};
|
|
457
494
|
|
|
458
495
|
// src/atoms/dropdown-menu.tsx
|
|
459
|
-
var
|
|
496
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
460
497
|
var import_react8 = require("react");
|
|
461
|
-
var
|
|
498
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
462
499
|
var Content3 = (0, import_react8.forwardRef)((props, ref) => {
|
|
463
500
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
464
501
|
const contentClassName = (0, import_react8.useMemo)(() => {
|
|
465
502
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
466
503
|
return [cls, className].join(" ");
|
|
467
504
|
}, [isNavigation, className]);
|
|
468
|
-
return /* @__PURE__ */ (0,
|
|
469
|
-
|
|
505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
506
|
+
import_themes18.DropdownMenu.Content,
|
|
470
507
|
__spreadProps(__spreadValues({
|
|
471
508
|
ref
|
|
472
509
|
}, rest), {
|
|
@@ -475,24 +512,24 @@ var Content3 = (0, import_react8.forwardRef)((props, ref) => {
|
|
|
475
512
|
);
|
|
476
513
|
});
|
|
477
514
|
Content3.displayName = "DropdownMenu.Content";
|
|
478
|
-
var DropdownMenu = __spreadProps(__spreadValues({},
|
|
515
|
+
var DropdownMenu = __spreadProps(__spreadValues({}, import_themes18.DropdownMenu), {
|
|
479
516
|
Content: Content3
|
|
480
517
|
});
|
|
481
518
|
|
|
482
519
|
// src/atoms/em.tsx
|
|
483
|
-
var
|
|
520
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
484
521
|
|
|
485
522
|
// src/atoms/flex.tsx
|
|
486
|
-
var
|
|
523
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
487
524
|
|
|
488
525
|
// src/atoms/grid.tsx
|
|
489
|
-
var
|
|
526
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
490
527
|
|
|
491
528
|
// src/atoms/heading.tsx
|
|
492
|
-
var import_themes21 = require("@radix-ui/themes");
|
|
493
|
-
var import_react9 = require("react");
|
|
494
529
|
var import_themes22 = require("@radix-ui/themes");
|
|
495
|
-
var
|
|
530
|
+
var import_react9 = require("react");
|
|
531
|
+
var import_themes23 = require("@radix-ui/themes");
|
|
532
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
496
533
|
function Heading2(props) {
|
|
497
534
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
498
535
|
const radixSize = (0, import_react9.useMemo)(() => {
|
|
@@ -511,13 +548,10 @@ function Heading2(props) {
|
|
|
511
548
|
return size;
|
|
512
549
|
}
|
|
513
550
|
}, [size, variant]);
|
|
514
|
-
return /* @__PURE__ */ (0,
|
|
551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes22.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
515
552
|
}
|
|
516
553
|
|
|
517
554
|
// src/atoms/hover-card.tsx
|
|
518
|
-
var import_themes23 = require("@radix-ui/themes");
|
|
519
|
-
|
|
520
|
-
// src/atoms/icon-button.tsx
|
|
521
555
|
var import_themes24 = require("@radix-ui/themes");
|
|
522
556
|
|
|
523
557
|
// src/atoms/inset.tsx
|
|
@@ -530,7 +564,7 @@ var import_themes26 = require("@radix-ui/themes");
|
|
|
530
564
|
var import_themes27 = require("@radix-ui/themes");
|
|
531
565
|
var import_react10 = require("react");
|
|
532
566
|
var import_themes28 = require("@radix-ui/themes");
|
|
533
|
-
var
|
|
567
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
534
568
|
function Link(props) {
|
|
535
569
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
536
570
|
const radixSize = (0, import_react10.useMemo)(() => {
|
|
@@ -545,7 +579,7 @@ function Link(props) {
|
|
|
545
579
|
return size;
|
|
546
580
|
}
|
|
547
581
|
}, [size, variant]);
|
|
548
|
-
return /* @__PURE__ */ (0,
|
|
582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes27.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
549
583
|
}
|
|
550
584
|
|
|
551
585
|
// src/atoms/popover.tsx
|
|
@@ -578,14 +612,14 @@ var import_themes37 = require("@radix-ui/themes");
|
|
|
578
612
|
// src/atoms/select.tsx
|
|
579
613
|
var import_themes38 = require("@radix-ui/themes");
|
|
580
614
|
var import_react11 = require("react");
|
|
581
|
-
var
|
|
615
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
582
616
|
var Content4 = (0, import_react11.forwardRef)((props, ref) => {
|
|
583
617
|
const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
|
|
584
618
|
const cls = (0, import_react11.useMemo)(() => {
|
|
585
619
|
const etc = isNavigation ? "nav-select" : "";
|
|
586
620
|
return [etc, className].join(" ");
|
|
587
621
|
}, [className, isNavigation]);
|
|
588
|
-
return /* @__PURE__ */ (0,
|
|
622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
589
623
|
import_themes38.Select.Content,
|
|
590
624
|
__spreadProps(__spreadValues({
|
|
591
625
|
position: "popper"
|
|
@@ -624,7 +658,7 @@ var import_themes45 = require("@radix-ui/themes");
|
|
|
624
658
|
// src/atoms/typo.tsx
|
|
625
659
|
var import_themes46 = require("@radix-ui/themes");
|
|
626
660
|
var import_react12 = require("react");
|
|
627
|
-
var
|
|
661
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
628
662
|
var Typo = (0, import_react12.forwardRef)(
|
|
629
663
|
(props, ref) => {
|
|
630
664
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
@@ -641,7 +675,7 @@ var Typo = (0, import_react12.forwardRef)(
|
|
|
641
675
|
return "2";
|
|
642
676
|
}
|
|
643
677
|
}, [size, variant]);
|
|
644
|
-
return /* @__PURE__ */ (0,
|
|
678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
|
|
645
679
|
}
|
|
646
680
|
);
|
|
647
681
|
Typo.displayName = "Typo";
|
|
@@ -654,7 +688,7 @@ var import_themes48 = require("@radix-ui/themes");
|
|
|
654
688
|
|
|
655
689
|
// src/atoms/collapse.tsx
|
|
656
690
|
var import_react13 = require("react");
|
|
657
|
-
var
|
|
691
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
658
692
|
function Collapse(props) {
|
|
659
693
|
const { children, closedHeight = "0" } = props;
|
|
660
694
|
const [open, setOpen] = (0, import_react13.useState)(() => {
|
|
@@ -671,7 +705,7 @@ function Collapse(props) {
|
|
|
671
705
|
return;
|
|
672
706
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
673
707
|
}, [closedHeight, open]);
|
|
674
|
-
return /* @__PURE__ */ (0,
|
|
708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "collapse", ref, children });
|
|
675
709
|
}
|
|
676
710
|
|
|
677
711
|
// src/atoms/spinner.tsx
|
|
@@ -681,10 +715,10 @@ var import_themes49 = require("@radix-ui/themes");
|
|
|
681
715
|
var import_react14 = require("react");
|
|
682
716
|
|
|
683
717
|
// src/icon.ts
|
|
684
|
-
var
|
|
718
|
+
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
685
719
|
|
|
686
720
|
// src/atoms/pagination.tsx
|
|
687
|
-
var
|
|
721
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
688
722
|
function Pagination(props) {
|
|
689
723
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
690
724
|
const [page, setPage] = (0, import_react14.useState)(() => props.page || props.defaultPage || 1);
|
|
@@ -750,19 +784,19 @@ function Pagination(props) {
|
|
|
750
784
|
};
|
|
751
785
|
if (!page)
|
|
752
786
|
return null;
|
|
753
|
-
return /* @__PURE__ */ (0,
|
|
754
|
-
/* @__PURE__ */ (0,
|
|
755
|
-
|
|
787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_themes20.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
788
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
789
|
+
import_themes16.IconButton,
|
|
756
790
|
__spreadProps(__spreadValues({
|
|
757
791
|
disabled: !doublePrev,
|
|
758
792
|
onClick: onClickDoublePrev
|
|
759
793
|
}, moveButtonProps), {
|
|
760
|
-
children: /* @__PURE__ */ (0,
|
|
794
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_icons3.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
761
795
|
})
|
|
762
796
|
),
|
|
763
|
-
/* @__PURE__ */ (0,
|
|
764
|
-
/* @__PURE__ */ (0,
|
|
765
|
-
return /* @__PURE__ */ (0,
|
|
797
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes16.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_icons3.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
798
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes20.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
766
800
|
"button",
|
|
767
801
|
{
|
|
768
802
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -770,39 +804,39 @@ function Pagination(props) {
|
|
|
770
804
|
setPage(item);
|
|
771
805
|
},
|
|
772
806
|
type: "button",
|
|
773
|
-
children: /* @__PURE__ */ (0,
|
|
807
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typo, { variant: "body", children: item })
|
|
774
808
|
},
|
|
775
809
|
item
|
|
776
810
|
);
|
|
777
811
|
}) }),
|
|
778
|
-
/* @__PURE__ */ (0,
|
|
779
|
-
/* @__PURE__ */ (0,
|
|
780
|
-
|
|
812
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes16.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_icons3.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
813
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
814
|
+
import_themes16.IconButton,
|
|
781
815
|
__spreadProps(__spreadValues({
|
|
782
816
|
disabled: !doubleNext,
|
|
783
817
|
onClick: onClickDoubleNext
|
|
784
818
|
}, moveButtonProps), {
|
|
785
|
-
children: /* @__PURE__ */ (0,
|
|
819
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_icons3.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
786
820
|
})
|
|
787
821
|
)
|
|
788
822
|
] });
|
|
789
823
|
}
|
|
790
824
|
|
|
791
825
|
// src/atoms/field-error-wrapper.tsx
|
|
792
|
-
var
|
|
826
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
793
827
|
function FieldErrorWrapper({
|
|
794
828
|
children,
|
|
795
829
|
error
|
|
796
830
|
}) {
|
|
797
|
-
return /* @__PURE__ */ (0,
|
|
831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes20.Flex, { direction: "column", gap: "1", children: [
|
|
798
832
|
children,
|
|
799
|
-
error ? /* @__PURE__ */ (0,
|
|
833
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
800
834
|
] });
|
|
801
835
|
}
|
|
802
836
|
|
|
803
837
|
// src/atoms/ellipsis-tooltip.tsx
|
|
804
838
|
var import_react15 = require("react");
|
|
805
|
-
var
|
|
839
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
806
840
|
function EllipsisTooltip(props) {
|
|
807
841
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
808
842
|
const ref = (0, import_react15.useRef)(null);
|
|
@@ -824,7 +858,7 @@ function EllipsisTooltip(props) {
|
|
|
824
858
|
ref.current.addEventListener("mouseleave", mouseOut);
|
|
825
859
|
}
|
|
826
860
|
}, [children]);
|
|
827
|
-
return /* @__PURE__ */ (0,
|
|
861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
828
862
|
Typo,
|
|
829
863
|
__spreadProps(__spreadValues({}, rest), {
|
|
830
864
|
ref,
|
|
@@ -848,35 +882,9 @@ var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
|
848
882
|
|
|
849
883
|
// src/theme/theme-provider.tsx
|
|
850
884
|
var import_themes50 = require("@radix-ui/themes");
|
|
851
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
852
|
-
function ThemeProvider(props) {
|
|
853
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
// src/atoms/toast.tsx
|
|
857
|
-
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
858
|
-
var import_react_toastify = require("react-toastify");
|
|
859
|
-
var import_react_toastify2 = require("react-toastify");
|
|
860
885
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
861
|
-
function
|
|
862
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
863
|
-
}
|
|
864
|
-
function ToastContainer(props) {
|
|
865
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
866
|
-
import_react_toastify.ToastContainer,
|
|
867
|
-
__spreadValues({
|
|
868
|
-
autoClose: 5e3,
|
|
869
|
-
closeButton: CloseButton,
|
|
870
|
-
closeOnClick: true,
|
|
871
|
-
draggable: true,
|
|
872
|
-
hideProgressBar: true,
|
|
873
|
-
newestOnTop: true,
|
|
874
|
-
pauseOnFocusLoss: true,
|
|
875
|
-
pauseOnHover: true,
|
|
876
|
-
position: "bottom-right",
|
|
877
|
-
rtl: false
|
|
878
|
-
}, props)
|
|
879
|
-
);
|
|
886
|
+
function ThemeProvider(props) {
|
|
887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
880
888
|
}
|
|
881
889
|
|
|
882
890
|
// src/atoms/drawer.tsx
|
|
@@ -1194,7 +1202,7 @@ function ExpandTable(props) {
|
|
|
1194
1202
|
header.getContext()
|
|
1195
1203
|
) }),
|
|
1196
1204
|
sortable ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1197
|
-
|
|
1205
|
+
import_themes20.Flex,
|
|
1198
1206
|
{
|
|
1199
1207
|
direction: "column",
|
|
1200
1208
|
style: { marginLeft: "var(--space-2)" },
|
|
@@ -1222,7 +1230,7 @@ function ExpandTable(props) {
|
|
|
1222
1230
|
headerGroup.id
|
|
1223
1231
|
)) }),
|
|
1224
1232
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "tbody", children: [
|
|
1225
|
-
rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1233
|
+
rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes20.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
|
|
1226
1234
|
rowModels.rows.map((row) => {
|
|
1227
1235
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1228
1236
|
Row,
|
|
@@ -1249,7 +1257,7 @@ function Navigation({
|
|
|
1249
1257
|
activeKey
|
|
1250
1258
|
}) {
|
|
1251
1259
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1252
|
-
|
|
1260
|
+
import_themes20.Flex,
|
|
1253
1261
|
{
|
|
1254
1262
|
direction: "column",
|
|
1255
1263
|
gap: "4",
|
|
@@ -1260,8 +1268,8 @@ function Navigation({
|
|
|
1260
1268
|
},
|
|
1261
1269
|
children: items == null ? void 0 : items.map((item) => {
|
|
1262
1270
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1263
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1264
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes20.Flex, { direction: "column", onClick, children: [
|
|
1272
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes20.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1265
1273
|
icon,
|
|
1266
1274
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1267
1275
|
] }),
|
|
@@ -1331,17 +1339,17 @@ var renderCustomHeader = (props) => {
|
|
|
1331
1339
|
} = props;
|
|
1332
1340
|
const year = date.getFullYear();
|
|
1333
1341
|
const month = date.getMonth();
|
|
1334
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes20.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1335
1343
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1336
|
-
|
|
1344
|
+
import_themes16.IconButton,
|
|
1337
1345
|
{
|
|
1338
1346
|
disabled: prevMonthButtonDisabled,
|
|
1339
1347
|
onClick: decreaseMonth,
|
|
1340
1348
|
variant: "ghost",
|
|
1341
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1349
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_icons3.ChevronLeftIcon, {})
|
|
1342
1350
|
}
|
|
1343
1351
|
),
|
|
1344
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1352
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes20.Flex, { gap: "3", children: [
|
|
1345
1353
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1346
1354
|
year,
|
|
1347
1355
|
"\uB144"
|
|
@@ -1352,12 +1360,12 @@ var renderCustomHeader = (props) => {
|
|
|
1352
1360
|
] })
|
|
1353
1361
|
] }),
|
|
1354
1362
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1355
|
-
|
|
1363
|
+
import_themes16.IconButton,
|
|
1356
1364
|
{
|
|
1357
1365
|
disabled: nextMonthButtonDisabled,
|
|
1358
1366
|
onClick: increaseMonth,
|
|
1359
1367
|
variant: "ghost",
|
|
1360
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1368
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_icons3.ChevronRightIcon, {})
|
|
1361
1369
|
}
|
|
1362
1370
|
)
|
|
1363
1371
|
] });
|
|
@@ -1393,7 +1401,7 @@ function DotNavigation(props) {
|
|
|
1393
1401
|
return;
|
|
1394
1402
|
setCurrentDot(dotIndex);
|
|
1395
1403
|
}, [dotIndex]);
|
|
1396
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes20.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1397
1405
|
const isSelected = currentDot === index;
|
|
1398
1406
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1399
1407
|
import_react_icons4.DotFilledIcon,
|
|
@@ -1432,7 +1440,7 @@ function Root7(props) {
|
|
|
1432
1440
|
direction = "vertical"
|
|
1433
1441
|
} = props;
|
|
1434
1442
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1435
|
-
|
|
1443
|
+
import_themes20.Flex,
|
|
1436
1444
|
{
|
|
1437
1445
|
gap: "3",
|
|
1438
1446
|
style: {
|
|
@@ -1486,7 +1494,7 @@ function Step(props) {
|
|
|
1486
1494
|
return IncompleteStep;
|
|
1487
1495
|
}, [completed, active]);
|
|
1488
1496
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1489
|
-
|
|
1497
|
+
import_themes20.Flex,
|
|
1490
1498
|
{
|
|
1491
1499
|
align: "center",
|
|
1492
1500
|
direction: direction === "horizontal" ? "row" : "column",
|
|
@@ -1510,7 +1518,7 @@ function CompleteStep(props) {
|
|
|
1510
1518
|
Icon ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1511
1519
|
Avatar,
|
|
1512
1520
|
{
|
|
1513
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1521
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons3.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
1514
1522
|
radius: "full",
|
|
1515
1523
|
size: "medium",
|
|
1516
1524
|
style: {
|
|
@@ -1750,7 +1758,7 @@ function TagSelector(props) {
|
|
|
1750
1758
|
}, [size]);
|
|
1751
1759
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && open, children: [
|
|
1752
1760
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1753
|
-
|
|
1761
|
+
import_themes21.Grid,
|
|
1754
1762
|
{
|
|
1755
1763
|
align: "center",
|
|
1756
1764
|
className: `tag-selector ${focus ? "focused" : ""} ${size}`,
|
|
@@ -1762,7 +1770,7 @@ function TagSelector(props) {
|
|
|
1762
1770
|
},
|
|
1763
1771
|
children: [
|
|
1764
1772
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1765
|
-
|
|
1773
|
+
import_themes20.Flex,
|
|
1766
1774
|
{
|
|
1767
1775
|
align: "center",
|
|
1768
1776
|
gap: "1",
|
|
@@ -1822,7 +1830,7 @@ function TagSelector(props) {
|
|
|
1822
1830
|
scrollbars: "vertical",
|
|
1823
1831
|
style: { height: OPTION_HEIGHT * 8 },
|
|
1824
1832
|
type: "auto",
|
|
1825
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1833
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes20.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
1826
1834
|
const isSelected = Boolean(
|
|
1827
1835
|
selected.find((el) => el === item.id)
|
|
1828
1836
|
);
|
|
@@ -1846,9 +1854,9 @@ function TagSelector(props) {
|
|
|
1846
1854
|
boxShadow: "none"
|
|
1847
1855
|
},
|
|
1848
1856
|
variant: isSelected ? "soft" : "outline",
|
|
1849
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1857
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes20.Flex, { justify: "between", width: "100%", children: [
|
|
1850
1858
|
item.name,
|
|
1851
|
-
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1859
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons3.CheckIcon, {}) : null
|
|
1852
1860
|
] })
|
|
1853
1861
|
},
|
|
1854
1862
|
item.id
|
|
@@ -2107,6 +2115,7 @@ function scrollTo(element, targetPosition, duration) {
|
|
|
2107
2115
|
ChevronLeftIcon,
|
|
2108
2116
|
ChevronRightIcon,
|
|
2109
2117
|
ChevronUpIcon,
|
|
2118
|
+
ClipboardCopyIcon,
|
|
2110
2119
|
ClipboardIcon,
|
|
2111
2120
|
Code,
|
|
2112
2121
|
Collapse,
|