@tipp/ui 1.2.14 → 1.2.16
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 +24 -58
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -3
- package/dist/atoms/drawer.cjs +7 -50
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.d.cts +1 -1
- package/dist/atoms/drawer.d.ts +1 -1
- package/dist/atoms/drawer.js +1 -4
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.cjs +114 -131
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +57 -58
- package/dist/atoms/pagination.js +2 -2
- package/dist/atoms/toast.cjs +6 -9
- package/dist/atoms/toast.cjs.map +1 -1
- package/dist/atoms/toast.js +1 -2
- package/dist/chunk-2FIAJ3FS.js +59 -0
- package/dist/chunk-2FIAJ3FS.js.map +1 -0
- package/dist/chunk-33YXJNZC.js +39 -0
- package/dist/chunk-33YXJNZC.js.map +1 -0
- package/dist/chunk-3PKH6B5Q.js +90 -0
- package/dist/chunk-3PKH6B5Q.js.map +1 -0
- package/dist/chunk-3QK6FAST.js +88 -0
- package/dist/chunk-3QK6FAST.js.map +1 -0
- package/dist/chunk-6IUPU7DC.js +44 -0
- package/dist/chunk-6IUPU7DC.js.map +1 -0
- package/dist/chunk-6MWBFGPV.js +44 -0
- package/dist/chunk-6MWBFGPV.js.map +1 -0
- package/dist/chunk-7JIZ5JRE.js +97 -0
- package/dist/chunk-7JIZ5JRE.js.map +1 -0
- package/dist/chunk-7MGIYERY.js +340 -0
- package/dist/chunk-7MGIYERY.js.map +1 -0
- package/dist/chunk-7MGKSZWD.js +59 -0
- package/dist/chunk-7MGKSZWD.js.map +1 -0
- package/dist/chunk-7NEEBOE5.js +59 -0
- package/dist/chunk-7NEEBOE5.js.map +1 -0
- package/dist/chunk-7TLF23E7.js +50 -0
- package/dist/chunk-7TLF23E7.js.map +1 -0
- package/dist/chunk-AAAQKCFX.js +39 -0
- package/dist/chunk-AAAQKCFX.js.map +1 -0
- package/dist/chunk-AOY2722L.js +43 -0
- package/dist/chunk-AOY2722L.js.map +1 -0
- package/dist/chunk-CA3KCVF3.js +44 -0
- package/dist/chunk-CA3KCVF3.js.map +1 -0
- package/dist/chunk-EBIISCYP.js +59 -0
- package/dist/chunk-EBIISCYP.js.map +1 -0
- package/dist/chunk-EYP37NAX.js +39 -0
- package/dist/chunk-EYP37NAX.js.map +1 -0
- package/dist/chunk-FLPWMNPQ.js +340 -0
- package/dist/chunk-FLPWMNPQ.js.map +1 -0
- package/dist/chunk-FYQHXVVC.js +39 -0
- package/dist/chunk-FYQHXVVC.js.map +1 -0
- package/dist/chunk-G7BR6KSX.js +130 -0
- package/dist/chunk-G7BR6KSX.js.map +1 -0
- package/dist/chunk-GXID5CO5.js +92 -0
- package/dist/chunk-GXID5CO5.js.map +1 -0
- package/dist/chunk-HDIMW26M.js +40 -0
- package/dist/chunk-HDIMW26M.js.map +1 -0
- package/dist/chunk-HJQQMAUB.js +50 -0
- package/dist/chunk-HJQQMAUB.js.map +1 -0
- package/dist/chunk-HWH4V6J2.js +39 -0
- package/dist/chunk-HWH4V6J2.js.map +1 -0
- package/dist/chunk-HWJLK6WM.js +39 -0
- package/dist/chunk-HWJLK6WM.js.map +1 -0
- package/dist/chunk-I2PIGNYP.js +97 -0
- package/dist/chunk-I2PIGNYP.js.map +1 -0
- package/dist/chunk-J4DYXLNJ.js +88 -0
- package/dist/chunk-J4DYXLNJ.js.map +1 -0
- package/dist/chunk-JGEN42KT.js +35 -0
- package/dist/chunk-JGEN42KT.js.map +1 -0
- package/dist/chunk-KK5BCWBR.js +42 -0
- package/dist/chunk-KK5BCWBR.js.map +1 -0
- package/dist/chunk-KLOQQGZ3.js +42 -0
- package/dist/chunk-KLOQQGZ3.js.map +1 -0
- package/dist/chunk-KVGCDBJ4.js +42 -0
- package/dist/chunk-KVGCDBJ4.js.map +1 -0
- package/dist/chunk-LS64FVRE.js +59 -0
- package/dist/chunk-LS64FVRE.js.map +1 -0
- package/dist/chunk-MFVWAA4Y.js +56 -0
- package/dist/chunk-MFVWAA4Y.js.map +1 -0
- package/dist/chunk-MKYNSWMI.js +340 -0
- package/dist/chunk-MKYNSWMI.js.map +1 -0
- package/dist/chunk-NJTNP47L.js +340 -0
- package/dist/chunk-NJTNP47L.js.map +1 -0
- package/dist/chunk-P7NBEL7J.js +88 -0
- package/dist/chunk-P7NBEL7J.js.map +1 -0
- package/dist/chunk-PLXOVGG4.js +39 -0
- package/dist/chunk-PLXOVGG4.js.map +1 -0
- package/dist/chunk-PXABCUAT.js +44 -0
- package/dist/chunk-PXABCUAT.js.map +1 -0
- package/dist/chunk-SSI6JRBA.js +92 -0
- package/dist/chunk-SSI6JRBA.js.map +1 -0
- package/dist/chunk-T2DBM2OA.js +59 -0
- package/dist/chunk-T2DBM2OA.js.map +1 -0
- package/dist/chunk-TAU5LFOR.js +39 -0
- package/dist/chunk-TAU5LFOR.js.map +1 -0
- package/dist/chunk-UFW4DFY5.js +39 -0
- package/dist/chunk-UFW4DFY5.js.map +1 -0
- package/dist/chunk-US7J5XUZ.js +36 -0
- package/dist/chunk-US7J5XUZ.js.map +1 -0
- package/dist/chunk-X2VREBVY.js +39 -0
- package/dist/chunk-X2VREBVY.js.map +1 -0
- package/dist/chunk-X55DKUZS.js +39 -0
- package/dist/chunk-X55DKUZS.js.map +1 -0
- package/dist/chunk-XFPO6ULS.js +39 -0
- package/dist/chunk-XFPO6ULS.js.map +1 -0
- package/dist/chunk-XKOYSFH4.js +43 -0
- package/dist/chunk-XKOYSFH4.js.map +1 -0
- package/dist/chunk-XXKNNYIJ.js +59 -0
- package/dist/chunk-XXKNNYIJ.js.map +1 -0
- package/dist/chunk-YA3PXLPU.js +53 -0
- package/dist/chunk-YA3PXLPU.js.map +1 -0
- package/dist/chunk-YESWEUM2.js +1 -0
- package/dist/chunk-YESWEUM2.js.map +1 -0
- package/dist/chunk-YILB2DTL.js +39 -0
- package/dist/chunk-YILB2DTL.js.map +1 -0
- package/dist/chunk-YNVFLDKB.js +92 -0
- package/dist/chunk-YNVFLDKB.js.map +1 -0
- package/dist/chunk-YSBOFKXT.js +39 -0
- package/dist/chunk-YSBOFKXT.js.map +1 -0
- package/dist/chunk-YTYGMU6L.js +169 -0
- package/dist/chunk-YTYGMU6L.js.map +1 -0
- package/dist/chunk-ZYNW3VYG.js +53 -0
- package/dist/chunk-ZYNW3VYG.js.map +1 -0
- package/dist/index.cjs +242 -252
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +67 -38
- package/dist/index.css.map +1 -1
- package/dist/index.js +71 -71
- package/dist/molecules/expand-table/index.js +27 -28
- package/dist/molecules/expand-table/row.js +26 -27
- package/dist/molecules/index.cjs +24 -24
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +30 -31
- package/dist/molecules/navigation.js +27 -28
- package/dist/molecules/stepper.js +3 -3
- package/dist/molecules/tag-selector.js +27 -28
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +0 -2
- package/src/atoms/drawer.tsx +8 -14
- package/src/atoms/toast.tsx +11 -18
package/dist/index.cjs
CHANGED
|
@@ -60,76 +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_icons2.ArchiveIcon,
|
|
64
64
|
AspectRatio: () => import_themes2.AspectRatio,
|
|
65
65
|
AutoSizingInput: () => AutoSizingInput,
|
|
66
66
|
Avatar: () => Avatar,
|
|
67
|
-
BackpackIcon: () =>
|
|
67
|
+
BackpackIcon: () => import_react_icons2.BackpackIcon,
|
|
68
68
|
Badge: () => Badge,
|
|
69
|
-
BarChartIcon: () =>
|
|
69
|
+
BarChartIcon: () => import_react_icons2.BarChartIcon,
|
|
70
70
|
Blockquote: () => import_themes5.Blockquote,
|
|
71
|
-
BookmarkFilledIcon: () =>
|
|
72
|
-
BookmarkIcon: () =>
|
|
71
|
+
BookmarkFilledIcon: () => import_react_icons2.BookmarkFilledIcon,
|
|
72
|
+
BookmarkIcon: () => import_react_icons2.BookmarkIcon,
|
|
73
73
|
Box: () => import_themes6.Box,
|
|
74
74
|
Button: () => Button,
|
|
75
|
-
CalendarIcon: () =>
|
|
75
|
+
CalendarIcon: () => import_react_icons2.CalendarIcon,
|
|
76
76
|
Callout: () => import_themes8.Callout,
|
|
77
77
|
Card: () => Card,
|
|
78
|
-
ChatBubbleIcon: () =>
|
|
79
|
-
CheckIcon: () =>
|
|
78
|
+
ChatBubbleIcon: () => import_react_icons2.ChatBubbleIcon,
|
|
79
|
+
CheckIcon: () => import_react_icons2.CheckIcon,
|
|
80
80
|
Checkbox: () => Checkbox,
|
|
81
81
|
CheckboxCards: () => import_themes11.CheckboxCards,
|
|
82
82
|
CheckboxGroup: () => CheckboxGroup,
|
|
83
|
-
ChevronDownIcon: () =>
|
|
84
|
-
ChevronLeftIcon: () =>
|
|
85
|
-
ChevronRightIcon: () =>
|
|
86
|
-
ChevronUpIcon: () =>
|
|
87
|
-
ClipboardCopyIcon: () =>
|
|
88
|
-
ClipboardIcon: () =>
|
|
83
|
+
ChevronDownIcon: () => import_react_icons2.ChevronDownIcon,
|
|
84
|
+
ChevronLeftIcon: () => import_react_icons2.ChevronLeftIcon,
|
|
85
|
+
ChevronRightIcon: () => import_react_icons2.ChevronRightIcon,
|
|
86
|
+
ChevronUpIcon: () => import_react_icons2.ChevronUpIcon,
|
|
87
|
+
ClipboardCopyIcon: () => import_react_icons2.ClipboardCopyIcon,
|
|
88
|
+
ClipboardIcon: () => import_react_icons2.ClipboardIcon,
|
|
89
89
|
Code: () => import_themes13.Code,
|
|
90
90
|
Collapse: () => Collapse,
|
|
91
91
|
Container: () => import_themes14.Container,
|
|
92
92
|
Content: () => Content6,
|
|
93
|
-
Cross1Icon: () =>
|
|
93
|
+
Cross1Icon: () => import_react_icons2.Cross1Icon,
|
|
94
94
|
DataList: () => import_themes15.DataList,
|
|
95
95
|
DatePicker: () => DatePicker,
|
|
96
96
|
Dialog: () => Dialog,
|
|
97
97
|
DotNavigation: () => DotNavigation,
|
|
98
|
-
DotsHorizontalIcon: () =>
|
|
99
|
-
DotsVerticalIcon: () =>
|
|
100
|
-
DoubleArrowLeftIcon: () =>
|
|
101
|
-
DoubleArrowRightIcon: () =>
|
|
98
|
+
DotsHorizontalIcon: () => import_react_icons2.DotsHorizontalIcon,
|
|
99
|
+
DotsVerticalIcon: () => import_react_icons2.DotsVerticalIcon,
|
|
100
|
+
DoubleArrowLeftIcon: () => import_react_icons2.DoubleArrowLeftIcon,
|
|
101
|
+
DoubleArrowRightIcon: () => import_react_icons2.DoubleArrowRightIcon,
|
|
102
102
|
Drawer: () => Drawer,
|
|
103
103
|
DropdownMenu: () => DropdownMenu,
|
|
104
104
|
EchartDefaultProps: () => EchartDefaultProps,
|
|
105
105
|
EllipsisTooltip: () => EllipsisTooltip,
|
|
106
|
-
Em: () =>
|
|
107
|
-
ExclamationTriangleIcon: () =>
|
|
108
|
-
ExitIcon: () =>
|
|
106
|
+
Em: () => import_themes18.Em,
|
|
107
|
+
ExclamationTriangleIcon: () => import_react_icons2.ExclamationTriangleIcon,
|
|
108
|
+
ExitIcon: () => import_react_icons2.ExitIcon,
|
|
109
109
|
ExpandTable: () => ExpandTable,
|
|
110
110
|
FieldErrorWrapper: () => FieldErrorWrapper,
|
|
111
|
-
FileIcon: () =>
|
|
112
|
-
Flex: () =>
|
|
111
|
+
FileIcon: () => import_react_icons2.FileIcon,
|
|
112
|
+
Flex: () => import_themes19.Flex,
|
|
113
113
|
Form: () => Form,
|
|
114
|
-
GearIcon: () =>
|
|
115
|
-
GlobeIcon: () =>
|
|
116
|
-
Grid: () =>
|
|
114
|
+
GearIcon: () => import_react_icons2.GearIcon,
|
|
115
|
+
GlobeIcon: () => import_react_icons2.GlobeIcon,
|
|
116
|
+
Grid: () => import_themes20.Grid,
|
|
117
117
|
Heading: () => Heading2,
|
|
118
118
|
HorizontalBarChart: () => HorizontalBarChart,
|
|
119
|
-
HoverCard: () =>
|
|
120
|
-
IconButton: () =>
|
|
121
|
-
InfoCircledIcon: () =>
|
|
119
|
+
HoverCard: () => import_themes23.HoverCard,
|
|
120
|
+
IconButton: () => import_themes24.IconButton,
|
|
121
|
+
InfoCircledIcon: () => import_react_icons2.InfoCircledIcon,
|
|
122
122
|
Inset: () => import_themes25.Inset,
|
|
123
123
|
Kbd: () => import_themes26.Kbd,
|
|
124
124
|
Link: () => Link,
|
|
125
|
-
Link2Icon: () =>
|
|
126
|
-
MagnifyingGlassIcon: () =>
|
|
127
|
-
MixerHorizontalIcon: () =>
|
|
125
|
+
Link2Icon: () => import_react_icons2.Link2Icon,
|
|
126
|
+
MagnifyingGlassIcon: () => import_react_icons2.MagnifyingGlassIcon,
|
|
127
|
+
MixerHorizontalIcon: () => import_react_icons2.MixerHorizontalIcon,
|
|
128
128
|
Navigation: () => Navigation,
|
|
129
129
|
Pagination: () => Pagination,
|
|
130
|
-
Pencil1Icon: () =>
|
|
131
|
-
PersonIcon: () =>
|
|
132
|
-
PlusIcon: () =>
|
|
130
|
+
Pencil1Icon: () => import_react_icons2.Pencil1Icon,
|
|
131
|
+
PersonIcon: () => import_react_icons2.PersonIcon,
|
|
132
|
+
PlusIcon: () => import_react_icons2.PlusIcon,
|
|
133
133
|
Popover: () => import_themes29.Popover,
|
|
134
134
|
Progress: () => import_themes30.Progress,
|
|
135
135
|
Quote: () => import_themes31.Quote,
|
|
@@ -137,13 +137,13 @@ __export(src_exports, {
|
|
|
137
137
|
RadioCards: () => import_themes33.RadioCards,
|
|
138
138
|
RadioGroup: () => import_themes34.RadioGroup,
|
|
139
139
|
Root: () => Root4,
|
|
140
|
-
RowsIcon: () =>
|
|
140
|
+
RowsIcon: () => import_react_icons2.RowsIcon,
|
|
141
141
|
ScrollArea: () => import_themes35.ScrollArea,
|
|
142
142
|
Section: () => import_themes36.Section,
|
|
143
143
|
SegmentedControl: () => import_themes37.SegmentedControl,
|
|
144
144
|
Select: () => Select,
|
|
145
145
|
Separator: () => import_themes39.Separator,
|
|
146
|
-
Share1Icon: () =>
|
|
146
|
+
Share1Icon: () => import_react_icons2.Share1Icon,
|
|
147
147
|
Skeleton: () => import_themes40.Skeleton,
|
|
148
148
|
Spinner: () => import_themes49.Spinner,
|
|
149
149
|
Stepper: () => Stepper,
|
|
@@ -157,7 +157,7 @@ __export(src_exports, {
|
|
|
157
157
|
ThemeProvider: () => ThemeProvider,
|
|
158
158
|
ToastContainer: () => ToastContainer,
|
|
159
159
|
Tooltip: () => import_themes48.Tooltip,
|
|
160
|
-
TrashIcon: () =>
|
|
160
|
+
TrashIcon: () => import_react_icons2.TrashIcon,
|
|
161
161
|
Trigger: () => Trigger4,
|
|
162
162
|
Typo: () => Typo,
|
|
163
163
|
createColumnHelper: () => import_react_table2.createColumnHelper,
|
|
@@ -385,43 +385,10 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
385
385
|
|
|
386
386
|
// src/atoms/dialog.tsx
|
|
387
387
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
388
|
-
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
389
|
-
var import_themes17 = require("@radix-ui/themes");
|
|
390
|
-
var import_react7 = require("react");
|
|
391
|
-
|
|
392
|
-
// src/atoms/toast.tsx
|
|
393
388
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
394
|
-
var import_react_toastify = require("react-toastify");
|
|
395
|
-
|
|
396
|
-
// src/atoms/icon-button.tsx
|
|
397
389
|
var import_themes16 = require("@radix-ui/themes");
|
|
398
|
-
|
|
399
|
-
// src/atoms/toast.tsx
|
|
400
|
-
var import_react_toastify2 = require("react-toastify");
|
|
390
|
+
var import_react7 = require("react");
|
|
401
391
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
402
|
-
function CloseButton({ closeToast }) {
|
|
403
|
-
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, {}) });
|
|
404
|
-
}
|
|
405
|
-
function ToastContainer(props) {
|
|
406
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
407
|
-
import_react_toastify.ToastContainer,
|
|
408
|
-
__spreadValues({
|
|
409
|
-
autoClose: 5e3,
|
|
410
|
-
closeButton: CloseButton,
|
|
411
|
-
closeOnClick: true,
|
|
412
|
-
draggable: true,
|
|
413
|
-
hideProgressBar: true,
|
|
414
|
-
newestOnTop: true,
|
|
415
|
-
pauseOnFocusLoss: true,
|
|
416
|
-
pauseOnHover: true,
|
|
417
|
-
position: "bottom-right",
|
|
418
|
-
rtl: false
|
|
419
|
-
}, props)
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// src/atoms/dialog.tsx
|
|
424
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
425
392
|
function Content2(props) {
|
|
426
393
|
const _a = props, {
|
|
427
394
|
children,
|
|
@@ -446,28 +413,25 @@ function Content2(props) {
|
|
|
446
413
|
(0, import_react7.useEffect)(() => {
|
|
447
414
|
containerRef.current = document.getElementsByClassName("radix-themes")[0];
|
|
448
415
|
}, []);
|
|
449
|
-
return /* @__PURE__ */ (0,
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
),
|
|
469
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToastContainer, {})
|
|
470
|
-
] }) });
|
|
416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
417
|
+
RadixDialog.Content,
|
|
418
|
+
__spreadProps(__spreadValues({
|
|
419
|
+
className: "DialogContent",
|
|
420
|
+
style: __spreadValues({
|
|
421
|
+
width,
|
|
422
|
+
maxWidth,
|
|
423
|
+
minWidth,
|
|
424
|
+
maxHeight,
|
|
425
|
+
height,
|
|
426
|
+
minHeight
|
|
427
|
+
}, style)
|
|
428
|
+
}, rest), {
|
|
429
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_themes16.Flex, { direction: "column", style: { position: "relative" }, children: [
|
|
430
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { color: "gray", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_icons.Cross1Icon, { height: "18px", width: "18px" }) }) }),
|
|
431
|
+
children
|
|
432
|
+
] })
|
|
433
|
+
})
|
|
434
|
+
) }) });
|
|
471
435
|
}
|
|
472
436
|
function Close2(_a) {
|
|
473
437
|
var _b = _a, {
|
|
@@ -475,7 +439,7 @@ function Close2(_a) {
|
|
|
475
439
|
} = _b, rest = __objRest(_b, [
|
|
476
440
|
"children"
|
|
477
441
|
]);
|
|
478
|
-
return /* @__PURE__ */ (0,
|
|
442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
479
443
|
}
|
|
480
444
|
function Trigger2(_a) {
|
|
481
445
|
var _b = _a, {
|
|
@@ -483,7 +447,7 @@ function Trigger2(_a) {
|
|
|
483
447
|
} = _b, rest = __objRest(_b, [
|
|
484
448
|
"children"
|
|
485
449
|
]);
|
|
486
|
-
return /* @__PURE__ */ (0,
|
|
450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
487
451
|
}
|
|
488
452
|
var Dialog = {
|
|
489
453
|
Root: RadixDialog.Root,
|
|
@@ -495,17 +459,17 @@ var Dialog = {
|
|
|
495
459
|
};
|
|
496
460
|
|
|
497
461
|
// src/atoms/dropdown-menu.tsx
|
|
498
|
-
var
|
|
462
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
499
463
|
var import_react8 = require("react");
|
|
500
|
-
var
|
|
464
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
501
465
|
var Content3 = (0, import_react8.forwardRef)((props, ref) => {
|
|
502
466
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
503
467
|
const contentClassName = (0, import_react8.useMemo)(() => {
|
|
504
468
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
505
469
|
return [cls, className].join(" ");
|
|
506
470
|
}, [isNavigation, className]);
|
|
507
|
-
return /* @__PURE__ */ (0,
|
|
508
|
-
|
|
471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
472
|
+
import_themes17.DropdownMenu.Content,
|
|
509
473
|
__spreadProps(__spreadValues({
|
|
510
474
|
ref
|
|
511
475
|
}, rest), {
|
|
@@ -514,24 +478,24 @@ var Content3 = (0, import_react8.forwardRef)((props, ref) => {
|
|
|
514
478
|
);
|
|
515
479
|
});
|
|
516
480
|
Content3.displayName = "DropdownMenu.Content";
|
|
517
|
-
var DropdownMenu = __spreadProps(__spreadValues({},
|
|
481
|
+
var DropdownMenu = __spreadProps(__spreadValues({}, import_themes17.DropdownMenu), {
|
|
518
482
|
Content: Content3
|
|
519
483
|
});
|
|
520
484
|
|
|
521
485
|
// src/atoms/em.tsx
|
|
522
|
-
var
|
|
486
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
523
487
|
|
|
524
488
|
// src/atoms/flex.tsx
|
|
525
|
-
var
|
|
489
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
526
490
|
|
|
527
491
|
// src/atoms/grid.tsx
|
|
528
|
-
var
|
|
492
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
529
493
|
|
|
530
494
|
// src/atoms/heading.tsx
|
|
531
|
-
var
|
|
495
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
532
496
|
var import_react9 = require("react");
|
|
533
|
-
var
|
|
534
|
-
var
|
|
497
|
+
var import_themes22 = require("@radix-ui/themes");
|
|
498
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
535
499
|
function Heading2(props) {
|
|
536
500
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
537
501
|
const radixSize = (0, import_react9.useMemo)(() => {
|
|
@@ -550,10 +514,13 @@ function Heading2(props) {
|
|
|
550
514
|
return size;
|
|
551
515
|
}
|
|
552
516
|
}, [size, variant]);
|
|
553
|
-
return /* @__PURE__ */ (0,
|
|
517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
554
518
|
}
|
|
555
519
|
|
|
556
520
|
// src/atoms/hover-card.tsx
|
|
521
|
+
var import_themes23 = require("@radix-ui/themes");
|
|
522
|
+
|
|
523
|
+
// src/atoms/icon-button.tsx
|
|
557
524
|
var import_themes24 = require("@radix-ui/themes");
|
|
558
525
|
|
|
559
526
|
// src/atoms/inset.tsx
|
|
@@ -566,7 +533,7 @@ var import_themes26 = require("@radix-ui/themes");
|
|
|
566
533
|
var import_themes27 = require("@radix-ui/themes");
|
|
567
534
|
var import_react10 = require("react");
|
|
568
535
|
var import_themes28 = require("@radix-ui/themes");
|
|
569
|
-
var
|
|
536
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
570
537
|
function Link(props) {
|
|
571
538
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
572
539
|
const radixSize = (0, import_react10.useMemo)(() => {
|
|
@@ -581,7 +548,7 @@ function Link(props) {
|
|
|
581
548
|
return size;
|
|
582
549
|
}
|
|
583
550
|
}, [size, variant]);
|
|
584
|
-
return /* @__PURE__ */ (0,
|
|
551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes27.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
585
552
|
}
|
|
586
553
|
|
|
587
554
|
// src/atoms/popover.tsx
|
|
@@ -614,14 +581,14 @@ var import_themes37 = require("@radix-ui/themes");
|
|
|
614
581
|
// src/atoms/select.tsx
|
|
615
582
|
var import_themes38 = require("@radix-ui/themes");
|
|
616
583
|
var import_react11 = require("react");
|
|
617
|
-
var
|
|
584
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
618
585
|
var Content4 = (0, import_react11.forwardRef)((props, ref) => {
|
|
619
586
|
const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
|
|
620
587
|
const cls = (0, import_react11.useMemo)(() => {
|
|
621
588
|
const etc = isNavigation ? "nav-select" : "";
|
|
622
589
|
return [etc, className].join(" ");
|
|
623
590
|
}, [className, isNavigation]);
|
|
624
|
-
return /* @__PURE__ */ (0,
|
|
591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
625
592
|
import_themes38.Select.Content,
|
|
626
593
|
__spreadProps(__spreadValues({
|
|
627
594
|
position: "popper"
|
|
@@ -660,7 +627,7 @@ var import_themes45 = require("@radix-ui/themes");
|
|
|
660
627
|
// src/atoms/typo.tsx
|
|
661
628
|
var import_themes46 = require("@radix-ui/themes");
|
|
662
629
|
var import_react12 = require("react");
|
|
663
|
-
var
|
|
630
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
664
631
|
var Typo = (0, import_react12.forwardRef)(
|
|
665
632
|
(props, ref) => {
|
|
666
633
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
@@ -677,7 +644,7 @@ var Typo = (0, import_react12.forwardRef)(
|
|
|
677
644
|
return "2";
|
|
678
645
|
}
|
|
679
646
|
}, [size, variant]);
|
|
680
|
-
return /* @__PURE__ */ (0,
|
|
647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
|
|
681
648
|
}
|
|
682
649
|
);
|
|
683
650
|
Typo.displayName = "Typo";
|
|
@@ -690,7 +657,7 @@ var import_themes48 = require("@radix-ui/themes");
|
|
|
690
657
|
|
|
691
658
|
// src/atoms/collapse.tsx
|
|
692
659
|
var import_react13 = require("react");
|
|
693
|
-
var
|
|
660
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
694
661
|
function Collapse(props) {
|
|
695
662
|
const { children, closedHeight = "0" } = props;
|
|
696
663
|
const [open, setOpen] = (0, import_react13.useState)(() => {
|
|
@@ -707,7 +674,7 @@ function Collapse(props) {
|
|
|
707
674
|
return;
|
|
708
675
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
709
676
|
}, [closedHeight, open]);
|
|
710
|
-
return /* @__PURE__ */ (0,
|
|
677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "collapse", ref, children });
|
|
711
678
|
}
|
|
712
679
|
|
|
713
680
|
// src/atoms/spinner.tsx
|
|
@@ -717,10 +684,10 @@ var import_themes49 = require("@radix-ui/themes");
|
|
|
717
684
|
var import_react14 = require("react");
|
|
718
685
|
|
|
719
686
|
// src/icon.ts
|
|
720
|
-
var
|
|
687
|
+
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
721
688
|
|
|
722
689
|
// src/atoms/pagination.tsx
|
|
723
|
-
var
|
|
690
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
724
691
|
function Pagination(props) {
|
|
725
692
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
726
693
|
const [page, setPage] = (0, import_react14.useState)(() => props.page || props.defaultPage || 1);
|
|
@@ -786,19 +753,19 @@ function Pagination(props) {
|
|
|
786
753
|
};
|
|
787
754
|
if (!page)
|
|
788
755
|
return null;
|
|
789
|
-
return /* @__PURE__ */ (0,
|
|
790
|
-
/* @__PURE__ */ (0,
|
|
791
|
-
|
|
756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes19.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
757
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
758
|
+
import_themes24.IconButton,
|
|
792
759
|
__spreadProps(__spreadValues({
|
|
793
760
|
disabled: !doublePrev,
|
|
794
761
|
onClick: onClickDoublePrev
|
|
795
762
|
}, moveButtonProps), {
|
|
796
|
-
children: /* @__PURE__ */ (0,
|
|
763
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_icons2.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
797
764
|
})
|
|
798
765
|
),
|
|
799
|
-
/* @__PURE__ */ (0,
|
|
800
|
-
/* @__PURE__ */ (0,
|
|
801
|
-
return /* @__PURE__ */ (0,
|
|
766
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes24.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_icons2.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
767
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes19.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
802
769
|
"button",
|
|
803
770
|
{
|
|
804
771
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -806,39 +773,39 @@ function Pagination(props) {
|
|
|
806
773
|
setPage(item);
|
|
807
774
|
},
|
|
808
775
|
type: "button",
|
|
809
|
-
children: /* @__PURE__ */ (0,
|
|
776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typo, { variant: "body", children: item })
|
|
810
777
|
},
|
|
811
778
|
item
|
|
812
779
|
);
|
|
813
780
|
}) }),
|
|
814
|
-
/* @__PURE__ */ (0,
|
|
815
|
-
/* @__PURE__ */ (0,
|
|
816
|
-
|
|
781
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes24.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_icons2.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
782
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
783
|
+
import_themes24.IconButton,
|
|
817
784
|
__spreadProps(__spreadValues({
|
|
818
785
|
disabled: !doubleNext,
|
|
819
786
|
onClick: onClickDoubleNext
|
|
820
787
|
}, moveButtonProps), {
|
|
821
|
-
children: /* @__PURE__ */ (0,
|
|
788
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_icons2.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
822
789
|
})
|
|
823
790
|
)
|
|
824
791
|
] });
|
|
825
792
|
}
|
|
826
793
|
|
|
827
794
|
// src/atoms/field-error-wrapper.tsx
|
|
828
|
-
var
|
|
795
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
829
796
|
function FieldErrorWrapper({
|
|
830
797
|
children,
|
|
831
798
|
error
|
|
832
799
|
}) {
|
|
833
|
-
return /* @__PURE__ */ (0,
|
|
800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_themes19.Flex, { direction: "column", gap: "1", children: [
|
|
834
801
|
children,
|
|
835
|
-
error ? /* @__PURE__ */ (0,
|
|
802
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
836
803
|
] });
|
|
837
804
|
}
|
|
838
805
|
|
|
839
806
|
// src/atoms/ellipsis-tooltip.tsx
|
|
840
807
|
var import_react15 = require("react");
|
|
841
|
-
var
|
|
808
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
842
809
|
function EllipsisTooltip(props) {
|
|
843
810
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
844
811
|
const ref = (0, import_react15.useRef)(null);
|
|
@@ -860,7 +827,7 @@ function EllipsisTooltip(props) {
|
|
|
860
827
|
ref.current.addEventListener("mouseleave", mouseOut);
|
|
861
828
|
}
|
|
862
829
|
}, [children]);
|
|
863
|
-
return /* @__PURE__ */ (0,
|
|
830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
864
831
|
Typo,
|
|
865
832
|
__spreadProps(__spreadValues({}, rest), {
|
|
866
833
|
ref,
|
|
@@ -881,18 +848,9 @@ function EllipsisTooltip(props) {
|
|
|
881
848
|
// src/atoms/drawer.tsx
|
|
882
849
|
var import_react16 = require("react");
|
|
883
850
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
884
|
-
|
|
885
|
-
// src/theme/theme-provider.tsx
|
|
886
|
-
var import_themes50 = require("@radix-ui/themes");
|
|
887
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
888
|
-
function ThemeProvider(props) {
|
|
889
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
// src/atoms/drawer.tsx
|
|
893
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
851
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
894
852
|
function Root4(props) {
|
|
895
|
-
return /* @__PURE__ */ (0,
|
|
853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Root, __spreadValues({}, props));
|
|
896
854
|
}
|
|
897
855
|
function Content6(props) {
|
|
898
856
|
const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
|
|
@@ -900,23 +858,20 @@ function Content6(props) {
|
|
|
900
858
|
(0, import_react16.useEffect)(() => {
|
|
901
859
|
containerRef.current = document.getElementsByClassName("radix-themes")[0];
|
|
902
860
|
}, []);
|
|
903
|
-
return /* @__PURE__ */ (0,
|
|
904
|
-
/* @__PURE__ */ (0,
|
|
905
|
-
/* @__PURE__ */ (0,
|
|
861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Dialog2.Portal, { container: containerRef.current, children: [
|
|
862
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
|
|
863
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
906
864
|
Dialog2.Content,
|
|
907
865
|
__spreadProps(__spreadValues({
|
|
908
866
|
className: `DrawerContent ${position} ${className || ""}`
|
|
909
867
|
}, rest), {
|
|
910
|
-
children
|
|
911
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ToastContainer, {}),
|
|
912
|
-
children
|
|
913
|
-
]
|
|
868
|
+
children
|
|
914
869
|
})
|
|
915
870
|
)
|
|
916
|
-
] })
|
|
871
|
+
] });
|
|
917
872
|
}
|
|
918
873
|
function Trigger4(props) {
|
|
919
|
-
return /* @__PURE__ */ (0,
|
|
874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
|
|
920
875
|
}
|
|
921
876
|
var Drawer = {
|
|
922
877
|
Root: Dialog2.Root,
|
|
@@ -927,14 +882,42 @@ var Drawer = {
|
|
|
927
882
|
Description: Dialog2.Description
|
|
928
883
|
};
|
|
929
884
|
|
|
885
|
+
// src/atoms/toast.tsx
|
|
886
|
+
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
887
|
+
var import_react_toastify = require("react-toastify");
|
|
888
|
+
var import_react_toastify2 = require("react-toastify");
|
|
889
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
890
|
+
function CloseButton() {
|
|
891
|
+
return null;
|
|
892
|
+
}
|
|
893
|
+
function ToastContainer(props) {
|
|
894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
895
|
+
import_react_toastify.ToastContainer,
|
|
896
|
+
__spreadValues({
|
|
897
|
+
autoClose: 5e3,
|
|
898
|
+
closeButton: CloseButton,
|
|
899
|
+
closeOnClick: true,
|
|
900
|
+
draggable: true,
|
|
901
|
+
hideProgressBar: true,
|
|
902
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons3.InfoCircledIcon, {}),
|
|
903
|
+
newestOnTop: true,
|
|
904
|
+
pauseOnFocusLoss: true,
|
|
905
|
+
pauseOnHover: true,
|
|
906
|
+
position: "top-center",
|
|
907
|
+
rtl: false,
|
|
908
|
+
style: { zIndex: 999999 }
|
|
909
|
+
}, props)
|
|
910
|
+
);
|
|
911
|
+
}
|
|
912
|
+
|
|
930
913
|
// src/atoms/form.tsx
|
|
931
914
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
932
915
|
var import_react17 = require("react");
|
|
933
|
-
var
|
|
916
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
934
917
|
var Root6 = (0, import_react17.forwardRef)(
|
|
935
918
|
(_a, ref) => {
|
|
936
919
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
937
|
-
return /* @__PURE__ */ (0,
|
|
920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
938
921
|
RadixForm.Root,
|
|
939
922
|
__spreadProps(__spreadValues({}, rest), {
|
|
940
923
|
className: `FormRoot ${className || ""}`,
|
|
@@ -948,7 +931,7 @@ Root6.displayName = "FORM_ROOT";
|
|
|
948
931
|
var Field2 = (0, import_react17.forwardRef)(
|
|
949
932
|
(_a, ref) => {
|
|
950
933
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
951
|
-
return /* @__PURE__ */ (0,
|
|
934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
952
935
|
RadixForm.Field,
|
|
953
936
|
__spreadProps(__spreadValues({}, rest), {
|
|
954
937
|
className: `FormField ${className || ""}`,
|
|
@@ -962,7 +945,7 @@ Field2.displayName = "FORM_FIELD";
|
|
|
962
945
|
var Label2 = (0, import_react17.forwardRef)(
|
|
963
946
|
(_a, ref) => {
|
|
964
947
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
965
|
-
return /* @__PURE__ */ (0,
|
|
948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
966
949
|
RadixForm.Label,
|
|
967
950
|
__spreadProps(__spreadValues({}, rest), {
|
|
968
951
|
className: `FormLabel ${className || ""}`,
|
|
@@ -976,7 +959,7 @@ Label2.displayName = "FORM_Label";
|
|
|
976
959
|
var Message2 = (0, import_react17.forwardRef)(
|
|
977
960
|
(_a, ref) => {
|
|
978
961
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
979
|
-
return /* @__PURE__ */ (0,
|
|
962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
980
963
|
RadixForm.Message,
|
|
981
964
|
__spreadProps(__spreadValues({}, rest), {
|
|
982
965
|
className: `FormMessage ${className || ""}`,
|
|
@@ -998,7 +981,7 @@ var Form = {
|
|
|
998
981
|
|
|
999
982
|
// src/atoms/auto-sizing-input.tsx
|
|
1000
983
|
var import_react18 = require("react");
|
|
1001
|
-
var
|
|
984
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1002
985
|
var AutoSizingInput = (0, import_react18.forwardRef)(
|
|
1003
986
|
(_a, ref) => {
|
|
1004
987
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
@@ -1021,9 +1004,9 @@ var AutoSizingInput = (0, import_react18.forwardRef)(
|
|
|
1021
1004
|
(0, import_react18.useEffect)(() => {
|
|
1022
1005
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1023
1006
|
}, [value, onChangeValue]);
|
|
1024
|
-
return /* @__PURE__ */ (0,
|
|
1025
|
-
/* @__PURE__ */ (0,
|
|
1026
|
-
/* @__PURE__ */ (0,
|
|
1007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
|
|
1008
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("input", __spreadValues({ onChange: changeHandler, ref, value }, rest)),
|
|
1009
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { "aria-hidden": "true", ref: span, children: value })
|
|
1027
1010
|
] });
|
|
1028
1011
|
}
|
|
1029
1012
|
);
|
|
@@ -1035,11 +1018,11 @@ var import_react20 = require("react");
|
|
|
1035
1018
|
|
|
1036
1019
|
// src/icons/down.tsx
|
|
1037
1020
|
var React9 = __toESM(require("react"), 1);
|
|
1038
|
-
var
|
|
1021
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1039
1022
|
var TriangleArrowDownIcon = React9.forwardRef(
|
|
1040
1023
|
(_a, forwardedRef) => {
|
|
1041
1024
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1042
|
-
return /* @__PURE__ */ (0,
|
|
1025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1043
1026
|
"svg",
|
|
1044
1027
|
__spreadProps(__spreadValues({
|
|
1045
1028
|
fill: "none",
|
|
@@ -1049,7 +1032,7 @@ var TriangleArrowDownIcon = React9.forwardRef(
|
|
|
1049
1032
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1050
1033
|
}, props), {
|
|
1051
1034
|
ref: forwardedRef,
|
|
1052
|
-
children: /* @__PURE__ */ (0,
|
|
1035
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1053
1036
|
"path",
|
|
1054
1037
|
{
|
|
1055
1038
|
d: "M7.10844 0.8125H0.891554C0.197392 0.8125 -0.177096 1.62672 0.274659 2.15377L3.3831 5.78029C3.70737 6.1586 4.29263 6.1586 4.6169 5.78029L7.72534 2.15377C8.1771 1.62672 7.80261 0.8125 7.10844 0.8125Z",
|
|
@@ -1064,11 +1047,11 @@ TriangleArrowDownIcon.displayName = "ArrowDownIcon";
|
|
|
1064
1047
|
|
|
1065
1048
|
// src/icons/up.tsx
|
|
1066
1049
|
var React10 = __toESM(require("react"), 1);
|
|
1067
|
-
var
|
|
1050
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1068
1051
|
var TriangleArrowUpIcon = React10.forwardRef(
|
|
1069
1052
|
(_a, forwardedRef) => {
|
|
1070
1053
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1071
|
-
return /* @__PURE__ */ (0,
|
|
1054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1072
1055
|
"svg",
|
|
1073
1056
|
__spreadProps(__spreadValues({
|
|
1074
1057
|
fill: "none",
|
|
@@ -1078,7 +1061,7 @@ var TriangleArrowUpIcon = React10.forwardRef(
|
|
|
1078
1061
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1079
1062
|
}, props), {
|
|
1080
1063
|
ref: forwardedRef,
|
|
1081
|
-
children: /* @__PURE__ */ (0,
|
|
1064
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1082
1065
|
"path",
|
|
1083
1066
|
{
|
|
1084
1067
|
d: "M0.891555 6.1875L7.10845 6.1875C7.80261 6.1875 8.1771 5.37328 7.72534 4.84623L4.6169 1.21971C4.29263 0.841403 3.70737 0.841403 3.3831 1.21971L0.274659 4.84623C-0.177095 5.37328 0.197393 6.1875 0.891555 6.1875Z",
|
|
@@ -1094,7 +1077,7 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
|
1094
1077
|
// src/molecules/expand-table/row.tsx
|
|
1095
1078
|
var import_react_table = require("@tanstack/react-table");
|
|
1096
1079
|
var import_react19 = require("react");
|
|
1097
|
-
var
|
|
1080
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1098
1081
|
function Row(props) {
|
|
1099
1082
|
const { row, ExpandComp, gridColTemp } = props;
|
|
1100
1083
|
const [open, setOpen] = (0, import_react19.useState)(false);
|
|
@@ -1113,8 +1096,8 @@ function Row(props) {
|
|
|
1113
1096
|
}
|
|
1114
1097
|
return baseCls.join(" ");
|
|
1115
1098
|
}, [ExpandComp, props.onRowClick]);
|
|
1116
|
-
return /* @__PURE__ */ (0,
|
|
1117
|
-
/* @__PURE__ */ (0,
|
|
1099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: rowClassName, children: [
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1118
1101
|
"button",
|
|
1119
1102
|
{
|
|
1120
1103
|
className: "tr",
|
|
@@ -1125,7 +1108,7 @@ function Row(props) {
|
|
|
1125
1108
|
var _a, _b, _c;
|
|
1126
1109
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1127
1110
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1128
|
-
return /* @__PURE__ */ (0,
|
|
1111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1129
1112
|
"div",
|
|
1130
1113
|
{
|
|
1131
1114
|
className: "td",
|
|
@@ -1136,7 +1119,7 @@ function Row(props) {
|
|
|
1136
1119
|
},
|
|
1137
1120
|
children: [
|
|
1138
1121
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
1139
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1122
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1140
1123
|
cell.column.columnDef.meta.OpenBtn,
|
|
1141
1124
|
{
|
|
1142
1125
|
data: row.original,
|
|
@@ -1152,12 +1135,12 @@ function Row(props) {
|
|
|
1152
1135
|
},
|
|
1153
1136
|
`tr_${row.id}`
|
|
1154
1137
|
),
|
|
1155
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1138
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ExpandComp, { row }) }) }) : null
|
|
1156
1139
|
] }, `tr-wrapper_${row.id}`);
|
|
1157
1140
|
}
|
|
1158
1141
|
|
|
1159
1142
|
// src/molecules/expand-table/index.tsx
|
|
1160
|
-
var
|
|
1143
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1161
1144
|
function ExpandTable(props) {
|
|
1162
1145
|
const { data, columns, ExpandComp, placeholder, onRowClick, tableStyle } = props;
|
|
1163
1146
|
const defaultAlign = "left";
|
|
@@ -1181,8 +1164,8 @@ function ExpandTable(props) {
|
|
|
1181
1164
|
}).join(" ");
|
|
1182
1165
|
}, [columns]);
|
|
1183
1166
|
const rowModels = getRowModel();
|
|
1184
|
-
return /* @__PURE__ */ (0,
|
|
1185
|
-
/* @__PURE__ */ (0,
|
|
1167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1186
1169
|
"div",
|
|
1187
1170
|
{
|
|
1188
1171
|
className: "tr",
|
|
@@ -1192,30 +1175,30 @@ function ExpandTable(props) {
|
|
|
1192
1175
|
const sortable = header.column.getCanSort();
|
|
1193
1176
|
const sortedState = header.column.getIsSorted();
|
|
1194
1177
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1195
|
-
return /* @__PURE__ */ (0,
|
|
1178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1196
1179
|
"button",
|
|
1197
1180
|
{
|
|
1198
1181
|
onClick: header.column.getToggleSortingHandler(),
|
|
1199
1182
|
style: sortable ? { cursor: "pointer" } : void 0,
|
|
1200
1183
|
type: "button",
|
|
1201
1184
|
children: [
|
|
1202
|
-
/* @__PURE__ */ (0,
|
|
1185
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1203
1186
|
header.column.columnDef.header,
|
|
1204
1187
|
header.getContext()
|
|
1205
1188
|
) }),
|
|
1206
|
-
sortable ? /* @__PURE__ */ (0,
|
|
1207
|
-
|
|
1189
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1190
|
+
import_themes19.Flex,
|
|
1208
1191
|
{
|
|
1209
1192
|
direction: "column",
|
|
1210
1193
|
style: { marginLeft: "var(--space-2)" },
|
|
1211
1194
|
children: [
|
|
1212
|
-
/* @__PURE__ */ (0,
|
|
1195
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1213
1196
|
TriangleArrowUpIcon,
|
|
1214
1197
|
{
|
|
1215
1198
|
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
1216
1199
|
}
|
|
1217
1200
|
),
|
|
1218
|
-
/* @__PURE__ */ (0,
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1219
1202
|
TriangleArrowDownIcon,
|
|
1220
1203
|
{
|
|
1221
1204
|
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
@@ -1231,10 +1214,10 @@ function ExpandTable(props) {
|
|
|
1231
1214
|
},
|
|
1232
1215
|
headerGroup.id
|
|
1233
1216
|
)) }),
|
|
1234
|
-
/* @__PURE__ */ (0,
|
|
1235
|
-
rowModels.rows.length === 0 && /* @__PURE__ */ (0,
|
|
1217
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "tbody", children: [
|
|
1218
|
+
rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
|
|
1236
1219
|
rowModels.rows.map((row) => {
|
|
1237
|
-
return /* @__PURE__ */ (0,
|
|
1220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1238
1221
|
Row,
|
|
1239
1222
|
{
|
|
1240
1223
|
ExpandComp,
|
|
@@ -1251,15 +1234,15 @@ function ExpandTable(props) {
|
|
|
1251
1234
|
}
|
|
1252
1235
|
|
|
1253
1236
|
// src/molecules/navigation.tsx
|
|
1254
|
-
var
|
|
1237
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1255
1238
|
function Navigation({
|
|
1256
1239
|
items,
|
|
1257
1240
|
fontColor,
|
|
1258
1241
|
backgroundColor,
|
|
1259
1242
|
activeKey
|
|
1260
1243
|
}) {
|
|
1261
|
-
return /* @__PURE__ */ (0,
|
|
1262
|
-
|
|
1244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1245
|
+
import_themes19.Flex,
|
|
1263
1246
|
{
|
|
1264
1247
|
direction: "column",
|
|
1265
1248
|
gap: "4",
|
|
@@ -1270,13 +1253,13 @@ function Navigation({
|
|
|
1270
1253
|
},
|
|
1271
1254
|
children: items == null ? void 0 : items.map((item) => {
|
|
1272
1255
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1273
|
-
return /* @__PURE__ */ (0,
|
|
1274
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes19.Flex, { direction: "column", onClick, children: [
|
|
1257
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes19.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1275
1258
|
icon,
|
|
1276
|
-
/* @__PURE__ */ (0,
|
|
1259
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1277
1260
|
] }),
|
|
1278
1261
|
children == null ? void 0 : children.map((menu) => {
|
|
1279
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1262
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1280
1263
|
Button,
|
|
1281
1264
|
{
|
|
1282
1265
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1304,14 +1287,14 @@ var import_react21 = require("react");
|
|
|
1304
1287
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1305
1288
|
var import_react_datepicker = require("react-datepicker");
|
|
1306
1289
|
var import_locale = require("date-fns/locale");
|
|
1307
|
-
var
|
|
1290
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1308
1291
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1309
1292
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1310
1293
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
1311
1294
|
var DatePicker = (0, import_react21.forwardRef)(
|
|
1312
1295
|
(props, ref) => {
|
|
1313
1296
|
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
1314
|
-
return /* @__PURE__ */ (0,
|
|
1297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1315
1298
|
ReactDatePicker,
|
|
1316
1299
|
__spreadProps(__spreadValues({
|
|
1317
1300
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1341,33 +1324,33 @@ var renderCustomHeader = (props) => {
|
|
|
1341
1324
|
} = props;
|
|
1342
1325
|
const year = date.getFullYear();
|
|
1343
1326
|
const month = date.getMonth();
|
|
1344
|
-
return /* @__PURE__ */ (0,
|
|
1345
|
-
/* @__PURE__ */ (0,
|
|
1346
|
-
|
|
1327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1328
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1329
|
+
import_themes24.IconButton,
|
|
1347
1330
|
{
|
|
1348
1331
|
disabled: prevMonthButtonDisabled,
|
|
1349
1332
|
onClick: decreaseMonth,
|
|
1350
1333
|
variant: "ghost",
|
|
1351
|
-
children: /* @__PURE__ */ (0,
|
|
1334
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
1352
1335
|
}
|
|
1353
1336
|
),
|
|
1354
|
-
/* @__PURE__ */ (0,
|
|
1355
|
-
/* @__PURE__ */ (0,
|
|
1337
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes19.Flex, { gap: "3", children: [
|
|
1338
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1356
1339
|
year,
|
|
1357
1340
|
"\uB144"
|
|
1358
1341
|
] }),
|
|
1359
|
-
/* @__PURE__ */ (0,
|
|
1342
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1360
1343
|
month + 1,
|
|
1361
1344
|
"\uC6D4"
|
|
1362
1345
|
] })
|
|
1363
1346
|
] }),
|
|
1364
|
-
/* @__PURE__ */ (0,
|
|
1365
|
-
|
|
1347
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1348
|
+
import_themes24.IconButton,
|
|
1366
1349
|
{
|
|
1367
1350
|
disabled: nextMonthButtonDisabled,
|
|
1368
1351
|
onClick: increaseMonth,
|
|
1369
1352
|
variant: "ghost",
|
|
1370
|
-
children: /* @__PURE__ */ (0,
|
|
1353
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
1371
1354
|
}
|
|
1372
1355
|
)
|
|
1373
1356
|
] });
|
|
@@ -1376,7 +1359,7 @@ var renderCustomHeader = (props) => {
|
|
|
1376
1359
|
// src/molecules/dot-navigation.tsx
|
|
1377
1360
|
var import_react22 = require("react");
|
|
1378
1361
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
1379
|
-
var
|
|
1362
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1380
1363
|
function DotNavigation(props) {
|
|
1381
1364
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1382
1365
|
const [currentDot, setCurrentDot] = (0, import_react22.useState)(
|
|
@@ -1403,9 +1386,9 @@ function DotNavigation(props) {
|
|
|
1403
1386
|
return;
|
|
1404
1387
|
setCurrentDot(dotIndex);
|
|
1405
1388
|
}, [dotIndex]);
|
|
1406
|
-
return /* @__PURE__ */ (0,
|
|
1389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes19.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1407
1390
|
const isSelected = currentDot === index;
|
|
1408
|
-
return /* @__PURE__ */ (0,
|
|
1391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1409
1392
|
import_react_icons4.DotFilledIcon,
|
|
1410
1393
|
{
|
|
1411
1394
|
height: "24px",
|
|
@@ -1425,8 +1408,8 @@ function DotNavigation(props) {
|
|
|
1425
1408
|
|
|
1426
1409
|
// src/molecules/stepper.tsx
|
|
1427
1410
|
var import_react23 = require("react");
|
|
1428
|
-
var
|
|
1429
|
-
var
|
|
1411
|
+
var import_themes50 = require("@radix-ui/themes");
|
|
1412
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1430
1413
|
var StepContext = (0, import_react23.createContext)({
|
|
1431
1414
|
active: false,
|
|
1432
1415
|
completed: false,
|
|
@@ -1441,8 +1424,8 @@ function Root7(props) {
|
|
|
1441
1424
|
maxWidth,
|
|
1442
1425
|
direction = "vertical"
|
|
1443
1426
|
} = props;
|
|
1444
|
-
return /* @__PURE__ */ (0,
|
|
1445
|
-
|
|
1427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1428
|
+
import_themes19.Flex,
|
|
1446
1429
|
{
|
|
1447
1430
|
gap: "3",
|
|
1448
1431
|
style: {
|
|
@@ -1451,7 +1434,7 @@ function Root7(props) {
|
|
|
1451
1434
|
maxWidth
|
|
1452
1435
|
},
|
|
1453
1436
|
children: import_react23.Children.map(children, (child, index) => {
|
|
1454
|
-
return /* @__PURE__ */ (0,
|
|
1437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1455
1438
|
StepContext.Provider,
|
|
1456
1439
|
{
|
|
1457
1440
|
value: {
|
|
@@ -1475,8 +1458,8 @@ function Step(props) {
|
|
|
1475
1458
|
index,
|
|
1476
1459
|
direction = "vertical"
|
|
1477
1460
|
} = (0, import_react23.useContext)(StepContext);
|
|
1478
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
1479
|
-
|
|
1461
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1462
|
+
import_themes50.Separator,
|
|
1480
1463
|
{
|
|
1481
1464
|
style: {
|
|
1482
1465
|
width: `calc(100% - 40px)`,
|
|
@@ -1495,8 +1478,8 @@ function Step(props) {
|
|
|
1495
1478
|
}
|
|
1496
1479
|
return IncompleteStep;
|
|
1497
1480
|
}, [completed, active]);
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1499
|
-
|
|
1481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1482
|
+
import_themes19.Flex,
|
|
1500
1483
|
{
|
|
1501
1484
|
align: "center",
|
|
1502
1485
|
direction: direction === "horizontal" ? "row" : "column",
|
|
@@ -1505,7 +1488,7 @@ function Step(props) {
|
|
|
1505
1488
|
style: { flex: 1 },
|
|
1506
1489
|
children: [
|
|
1507
1490
|
connector,
|
|
1508
|
-
/* @__PURE__ */ (0,
|
|
1491
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InnerStep, { Icon, children })
|
|
1509
1492
|
]
|
|
1510
1493
|
}
|
|
1511
1494
|
);
|
|
@@ -1516,11 +1499,11 @@ function CompleteStep(props) {
|
|
|
1516
1499
|
const background = "var(--accent-a4)";
|
|
1517
1500
|
const border = "1px solid var(--accent-7)";
|
|
1518
1501
|
const color = "var(--accent-contrast)";
|
|
1519
|
-
return /* @__PURE__ */ (0,
|
|
1520
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1503
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1521
1504
|
Avatar,
|
|
1522
1505
|
{
|
|
1523
|
-
fallback: /* @__PURE__ */ (0,
|
|
1506
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
1524
1507
|
radius: "full",
|
|
1525
1508
|
size: "medium",
|
|
1526
1509
|
style: {
|
|
@@ -1529,7 +1512,7 @@ function CompleteStep(props) {
|
|
|
1529
1512
|
}
|
|
1530
1513
|
}
|
|
1531
1514
|
),
|
|
1532
|
-
/* @__PURE__ */ (0,
|
|
1515
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
1533
1516
|
] });
|
|
1534
1517
|
}
|
|
1535
1518
|
function IncompleteStep(props) {
|
|
@@ -1537,11 +1520,11 @@ function IncompleteStep(props) {
|
|
|
1537
1520
|
const { completed, active, index } = (0, import_react23.useContext)(StepContext);
|
|
1538
1521
|
const background = "var(--gray-5)";
|
|
1539
1522
|
const color = "var(--gray-a11)";
|
|
1540
|
-
return /* @__PURE__ */ (0,
|
|
1541
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1524
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1542
1525
|
Avatar,
|
|
1543
1526
|
{
|
|
1544
|
-
fallback: /* @__PURE__ */ (0,
|
|
1527
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
1545
1528
|
radius: "full",
|
|
1546
1529
|
size: "medium",
|
|
1547
1530
|
style: {
|
|
@@ -1549,7 +1532,7 @@ function IncompleteStep(props) {
|
|
|
1549
1532
|
}
|
|
1550
1533
|
}
|
|
1551
1534
|
),
|
|
1552
|
-
/* @__PURE__ */ (0,
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
1553
1536
|
] });
|
|
1554
1537
|
}
|
|
1555
1538
|
function ActiveStep(props) {
|
|
@@ -1557,17 +1540,17 @@ function ActiveStep(props) {
|
|
|
1557
1540
|
const { completed, active, index } = (0, import_react23.useContext)(StepContext);
|
|
1558
1541
|
const background = "var(--accent-10)";
|
|
1559
1542
|
const color = "var(--accent-contrast)";
|
|
1560
|
-
return /* @__PURE__ */ (0,
|
|
1561
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1544
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1562
1545
|
Avatar,
|
|
1563
1546
|
{
|
|
1564
|
-
fallback: /* @__PURE__ */ (0,
|
|
1547
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
1565
1548
|
radius: "full",
|
|
1566
1549
|
size: "medium",
|
|
1567
1550
|
style: { background }
|
|
1568
1551
|
}
|
|
1569
1552
|
),
|
|
1570
|
-
/* @__PURE__ */ (0,
|
|
1553
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
1571
1554
|
] });
|
|
1572
1555
|
}
|
|
1573
1556
|
var Stepper = {
|
|
@@ -1578,7 +1561,7 @@ var Stepper = {
|
|
|
1578
1561
|
// src/molecules/tag-selector.tsx
|
|
1579
1562
|
var import_react24 = require("react");
|
|
1580
1563
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
1581
|
-
var
|
|
1564
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1582
1565
|
var OPTION_HEIGHT = 32;
|
|
1583
1566
|
var DefaultDropdownContainer = (props) => {
|
|
1584
1567
|
return props.children;
|
|
@@ -1758,9 +1741,9 @@ function TagSelector(props) {
|
|
|
1758
1741
|
return "body";
|
|
1759
1742
|
}
|
|
1760
1743
|
}, [size]);
|
|
1761
|
-
return /* @__PURE__ */ (0,
|
|
1762
|
-
/* @__PURE__ */ (0,
|
|
1763
|
-
|
|
1744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && open, children: [
|
|
1745
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1746
|
+
import_themes20.Grid,
|
|
1764
1747
|
{
|
|
1765
1748
|
align: "center",
|
|
1766
1749
|
className: `tag-selector ${focus ? "focused" : ""} ${size}`,
|
|
@@ -1771,8 +1754,8 @@ function TagSelector(props) {
|
|
|
1771
1754
|
return (_a = fieldRef.current) == null ? void 0 : _a.focus();
|
|
1772
1755
|
},
|
|
1773
1756
|
children: [
|
|
1774
|
-
/* @__PURE__ */ (0,
|
|
1775
|
-
|
|
1757
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1758
|
+
import_themes19.Flex,
|
|
1776
1759
|
{
|
|
1777
1760
|
align: "center",
|
|
1778
1761
|
gap: "1",
|
|
@@ -1781,22 +1764,22 @@ function TagSelector(props) {
|
|
|
1781
1764
|
wrap: "wrap",
|
|
1782
1765
|
children: [
|
|
1783
1766
|
selectedItem.map((item) => {
|
|
1784
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
1767
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Badge, { size: badgeSize, children: [
|
|
1785
1768
|
item.name,
|
|
1786
|
-
/* @__PURE__ */ (0,
|
|
1769
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1787
1770
|
Button,
|
|
1788
1771
|
{
|
|
1789
1772
|
onClick: () => {
|
|
1790
1773
|
onDelete(item.id);
|
|
1791
1774
|
},
|
|
1792
1775
|
variant: "transparent",
|
|
1793
|
-
children: /* @__PURE__ */ (0,
|
|
1776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons5.Cross1Icon, {})
|
|
1794
1777
|
}
|
|
1795
1778
|
)
|
|
1796
1779
|
] }, item.id);
|
|
1797
1780
|
}),
|
|
1798
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
1799
|
-
/* @__PURE__ */ (0,
|
|
1781
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
1782
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1800
1783
|
AutoSizingInput,
|
|
1801
1784
|
{
|
|
1802
1785
|
onBlur,
|
|
@@ -1810,34 +1793,34 @@ function TagSelector(props) {
|
|
|
1810
1793
|
]
|
|
1811
1794
|
}
|
|
1812
1795
|
),
|
|
1813
|
-
focus ? /* @__PURE__ */ (0,
|
|
1796
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons5.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons5.ChevronRightIcon, {})
|
|
1814
1797
|
]
|
|
1815
1798
|
}
|
|
1816
1799
|
) }),
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
1800
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1818
1801
|
import_themes29.Popover.Content,
|
|
1819
1802
|
{
|
|
1820
1803
|
onOpenAutoFocus: (e) => {
|
|
1821
1804
|
e.preventDefault();
|
|
1822
1805
|
},
|
|
1823
|
-
children: /* @__PURE__ */ (0,
|
|
1806
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1824
1807
|
DropdownContainer,
|
|
1825
1808
|
{
|
|
1826
1809
|
currentItem: filteredOptions[focusIndex || 0],
|
|
1827
1810
|
items: filteredOptions,
|
|
1828
|
-
children: /* @__PURE__ */ (0,
|
|
1811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1829
1812
|
import_themes35.ScrollArea,
|
|
1830
1813
|
{
|
|
1831
1814
|
ref: scrollRef,
|
|
1832
1815
|
scrollbars: "vertical",
|
|
1833
1816
|
style: { height: OPTION_HEIGHT * 8 },
|
|
1834
1817
|
type: "auto",
|
|
1835
|
-
children: /* @__PURE__ */ (0,
|
|
1818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes19.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
1836
1819
|
const isSelected = Boolean(
|
|
1837
1820
|
selected.find((el) => el === item.id)
|
|
1838
1821
|
);
|
|
1839
1822
|
const isFocus = i === focusIndex;
|
|
1840
|
-
return /* @__PURE__ */ (0,
|
|
1823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1841
1824
|
Button,
|
|
1842
1825
|
{
|
|
1843
1826
|
onClick: () => {
|
|
@@ -1856,9 +1839,9 @@ function TagSelector(props) {
|
|
|
1856
1839
|
boxShadow: "none"
|
|
1857
1840
|
},
|
|
1858
1841
|
variant: isSelected ? "soft" : "outline",
|
|
1859
|
-
children: /* @__PURE__ */ (0,
|
|
1842
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes19.Flex, { justify: "between", width: "100%", children: [
|
|
1860
1843
|
item.name,
|
|
1861
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
1844
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
1862
1845
|
] })
|
|
1863
1846
|
},
|
|
1864
1847
|
item.id
|
|
@@ -1873,6 +1856,13 @@ function TagSelector(props) {
|
|
|
1873
1856
|
] });
|
|
1874
1857
|
}
|
|
1875
1858
|
|
|
1859
|
+
// src/theme/theme-provider.tsx
|
|
1860
|
+
var import_themes51 = require("@radix-ui/themes");
|
|
1861
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1862
|
+
function ThemeProvider(props) {
|
|
1863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes51.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1876
1866
|
// src/theme/use-theme.tsx
|
|
1877
1867
|
var import_themes52 = require("@radix-ui/themes");
|
|
1878
1868
|
|