@tipp/ui 1.6.25 → 1.6.26
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/app/index.cjs +429 -425
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +8 -8
- package/dist/app/platform/coach-question-list.cjs +86 -82
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +4 -4
- package/dist/app/platform/contents-card.cjs +70 -66
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +4 -4
- package/dist/app/platform/edit-coaching-time.cjs +158 -154
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +6 -6
- package/dist/app/platform/edit-service-type.cjs +145 -141
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +6 -6
- package/dist/app/platform/goal-manage-card-edit.cjs +154 -150
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +5 -5
- package/dist/app/platform/goal-manage-card-read.cjs +128 -124
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +4 -4
- package/dist/app/platform/on-offline-radio-card.cjs +134 -130
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +5 -5
- package/dist/app/platform/report-card.cjs +89 -85
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +4 -4
- package/dist/app/platform/reservation-card.cjs +191 -187
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +5 -5
- package/dist/app/platform/session-card.cjs +213 -209
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +8 -8
- package/dist/app/platform/session-review-simple-read.cjs +89 -85
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +120 -116
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +97 -93
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +100 -96
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +86 -82
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +96 -92
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +4 -4
- package/dist/app/platform/userInfos/utils.cjs +88 -84
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +4 -4
- package/dist/atoms/dialog.cjs +1 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/ellipsis-tooltip.cjs +101 -42
- package/dist/atoms/ellipsis-tooltip.cjs.map +1 -1
- package/dist/atoms/ellipsis-tooltip.js +4 -3
- package/dist/atoms/index.cjs +169 -145
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +5 -1
- package/dist/atoms/index.d.ts +5 -1
- package/dist/atoms/index.js +11 -5
- package/dist/atoms/scroll-area.cjs +2 -1
- package/dist/atoms/scroll-area.cjs.map +1 -1
- package/dist/atoms/scroll-area.d.cts +10 -1
- package/dist/atoms/scroll-area.d.ts +10 -1
- package/dist/atoms/scroll-area.js +1 -1
- package/dist/atoms/tooltip.cjs +67 -3
- package/dist/atoms/tooltip.cjs.map +1 -1
- package/dist/atoms/tooltip.d.cts +9 -1
- package/dist/atoms/tooltip.d.ts +9 -1
- package/dist/atoms/tooltip.js +9 -3
- package/dist/chunk-2YJ3EG6A.js +164 -0
- package/dist/chunk-2YJ3EG6A.js.map +1 -0
- package/dist/chunk-3IOLG7AJ.js +145 -0
- package/dist/chunk-3IOLG7AJ.js.map +1 -0
- package/dist/chunk-4DTD3FXF.js +47 -0
- package/dist/chunk-4DTD3FXF.js.map +1 -0
- package/dist/chunk-4Z5NYYOE.js +145 -0
- package/dist/chunk-4Z5NYYOE.js.map +1 -0
- package/dist/chunk-5VDTWYNQ.js +357 -0
- package/dist/chunk-5VDTWYNQ.js.map +1 -0
- package/dist/chunk-7KMPLHBV.js +357 -0
- package/dist/chunk-7KMPLHBV.js.map +1 -0
- package/dist/chunk-AFQMLTCH.js +54 -0
- package/dist/chunk-AFQMLTCH.js.map +1 -0
- package/dist/chunk-AQG6J4WX.js +357 -0
- package/dist/chunk-AQG6J4WX.js.map +1 -0
- package/dist/chunk-AW7YHNJD.js +174 -0
- package/dist/chunk-AW7YHNJD.js.map +1 -0
- package/dist/chunk-CIO2WR2Q.js +145 -0
- package/dist/chunk-CIO2WR2Q.js.map +1 -0
- package/dist/chunk-ED3ABG7K.js +54 -0
- package/dist/chunk-ED3ABG7K.js.map +1 -0
- package/dist/chunk-ERDNB5SX.js +30 -0
- package/dist/chunk-ERDNB5SX.js.map +1 -0
- package/dist/chunk-EREBMLDQ.js +58 -0
- package/dist/chunk-EREBMLDQ.js.map +1 -0
- package/dist/chunk-HN2C35F6.js +70 -0
- package/dist/chunk-HN2C35F6.js.map +1 -0
- package/dist/chunk-J5RZURAR.js +106 -0
- package/dist/chunk-J5RZURAR.js.map +1 -0
- package/dist/chunk-JRPA2S7O.js +54 -0
- package/dist/chunk-JRPA2S7O.js.map +1 -0
- package/dist/chunk-KT4BIOJJ.js +54 -0
- package/dist/chunk-KT4BIOJJ.js.map +1 -0
- package/dist/chunk-KWVNYSQW.js +10 -0
- package/dist/chunk-KWVNYSQW.js.map +1 -0
- package/dist/chunk-OT4OMHJV.js +58 -0
- package/dist/chunk-OT4OMHJV.js.map +1 -0
- package/dist/chunk-OYYJEZVP.js +84 -0
- package/dist/chunk-OYYJEZVP.js.map +1 -0
- package/dist/chunk-P442X52N.js +284 -0
- package/dist/chunk-P442X52N.js.map +1 -0
- package/dist/chunk-RYORYWPY.js +164 -0
- package/dist/chunk-RYORYWPY.js.map +1 -0
- package/dist/chunk-TBEOWECF.js +47 -0
- package/dist/chunk-TBEOWECF.js.map +1 -0
- package/dist/chunk-VJ7EA7ZF.js +54 -0
- package/dist/chunk-VJ7EA7ZF.js.map +1 -0
- package/dist/chunk-X5L3SBB7.js +174 -0
- package/dist/chunk-X5L3SBB7.js.map +1 -0
- package/dist/index.cjs +666 -642
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +15 -9
- package/dist/molecules/date-picker/date-picker-button.cjs +100 -96
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +4 -4
- package/dist/molecules/expand-table/index.cjs +138 -134
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/expand-table/row.cjs +95 -91
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +4 -4
- package/dist/molecules/index.cjs +319 -314
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +5 -5
- package/dist/molecules/navigation.cjs +86 -82
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +4 -4
- package/dist/molecules/radio-button-card.cjs +90 -86
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +4 -4
- package/dist/molecules/tag-selector.cjs +102 -97
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/time-select.cjs +88 -84
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -4
- package/package.json +5 -3
- package/src/atoms/dialog.tsx +1 -1
- package/src/atoms/ellipsis-tooltip.tsx +39 -20
- package/src/atoms/scroll-area.tsx +8 -1
- package/src/atoms/tooltip.tsx +72 -1
package/dist/molecules/index.cjs
CHANGED
|
@@ -78,7 +78,7 @@ module.exports = __toCommonJS(molecules_exports);
|
|
|
78
78
|
|
|
79
79
|
// src/molecules/expand-table/index.tsx
|
|
80
80
|
var import_react_table2 = require("@tanstack/react-table");
|
|
81
|
-
var
|
|
81
|
+
var import_react22 = require("react");
|
|
82
82
|
|
|
83
83
|
// src/atoms/alert-dialog.tsx
|
|
84
84
|
var import_themes = require("@radix-ui/themes");
|
|
@@ -486,6 +486,7 @@ var import_themes34 = require("@radix-ui/themes");
|
|
|
486
486
|
|
|
487
487
|
// src/atoms/scroll-area.tsx
|
|
488
488
|
var import_themes35 = require("@radix-ui/themes");
|
|
489
|
+
var ScrollArea = import_themes35.ScrollArea;
|
|
489
490
|
|
|
490
491
|
// src/atoms/section.tsx
|
|
491
492
|
var import_themes36 = require("@radix-ui/themes");
|
|
@@ -641,46 +642,50 @@ Root4.displayName = "TextField.Root";
|
|
|
641
642
|
var TextField = { Root: Root4, Slot: import_themes47.TextField.Slot };
|
|
642
643
|
|
|
643
644
|
// src/atoms/tooltip.tsx
|
|
644
|
-
var import_themes48 = require("@radix-ui/themes");
|
|
645
|
-
|
|
646
|
-
// src/atoms/collapse.tsx
|
|
647
645
|
var import_react15 = require("react");
|
|
646
|
+
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
647
|
+
var import_react_popover = require("@radix-ui/react-popover");
|
|
648
648
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
649
|
+
var TouchContext = (0, import_react15.createContext)(void 0);
|
|
650
|
+
|
|
651
|
+
// src/atoms/collapse.tsx
|
|
652
|
+
var import_react16 = require("react");
|
|
653
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
649
654
|
function Collapse(props) {
|
|
650
655
|
const { children, closedHeight = "0" } = props;
|
|
651
|
-
const [open, setOpen] = (0,
|
|
656
|
+
const [open, setOpen] = (0, import_react16.useState)(() => {
|
|
652
657
|
return props.open || props.defaultOpen || false;
|
|
653
658
|
});
|
|
654
|
-
(0,
|
|
659
|
+
(0, import_react16.useEffect)(() => {
|
|
655
660
|
if (props.open === void 0)
|
|
656
661
|
return;
|
|
657
662
|
setOpen(props.open);
|
|
658
663
|
}, [props.open]);
|
|
659
|
-
const ref = (0,
|
|
660
|
-
(0,
|
|
664
|
+
const ref = (0, import_react16.useRef)(null);
|
|
665
|
+
(0, import_react16.useEffect)(() => {
|
|
661
666
|
if (!ref.current)
|
|
662
667
|
return;
|
|
663
668
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
664
669
|
}, [closedHeight, open]);
|
|
665
|
-
return /* @__PURE__ */ (0,
|
|
670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "tipp-collapse", ref, children });
|
|
666
671
|
}
|
|
667
672
|
|
|
668
673
|
// src/atoms/spinner.tsx
|
|
669
|
-
var
|
|
674
|
+
var import_themes48 = require("@radix-ui/themes");
|
|
670
675
|
|
|
671
676
|
// src/atoms/pagination.tsx
|
|
672
|
-
var
|
|
677
|
+
var import_react17 = require("react");
|
|
673
678
|
|
|
674
679
|
// src/icon.ts
|
|
675
680
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
676
681
|
|
|
677
682
|
// src/icons/phone-ring.tsx
|
|
678
683
|
var React6 = __toESM(require("react"), 1);
|
|
679
|
-
var
|
|
684
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
680
685
|
var PhoneRingIcon = React6.forwardRef(
|
|
681
686
|
(_a, forwardedRef) => {
|
|
682
687
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
683
|
-
return /* @__PURE__ */ (0,
|
|
688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
684
689
|
"svg",
|
|
685
690
|
__spreadProps(__spreadValues({
|
|
686
691
|
fill: "none",
|
|
@@ -691,14 +696,14 @@ var PhoneRingIcon = React6.forwardRef(
|
|
|
691
696
|
}, props), {
|
|
692
697
|
ref: forwardedRef,
|
|
693
698
|
children: [
|
|
694
|
-
/* @__PURE__ */ (0,
|
|
699
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
695
700
|
"path",
|
|
696
701
|
{
|
|
697
702
|
d: "M7.7207 8.94603C6.98877 8.2141 6.41082 7.3865 5.98686 6.50348C5.95039 6.42753 5.93216 6.38955 5.91815 6.34149C5.86837 6.17072 5.90413 5.96102 6.00769 5.81639C6.03683 5.77569 6.07165 5.74087 6.14128 5.67124C6.35424 5.45828 6.46072 5.3518 6.53033 5.24473C6.79287 4.84094 6.79287 4.32038 6.53033 3.91658C6.46072 3.80951 6.35424 3.70303 6.14128 3.49007L6.02257 3.37137C5.69885 3.04764 5.53699 2.88578 5.36315 2.79786C5.01743 2.62299 4.60914 2.62299 4.26342 2.79786C4.08958 2.88578 3.92772 3.04764 3.604 3.37137L3.50798 3.46739C3.18536 3.79 3.02405 3.95131 2.90086 4.17062C2.76415 4.41398 2.66586 4.79194 2.66669 5.07106C2.66744 5.32261 2.71624 5.49452 2.81382 5.83835C3.33828 7.68611 4.32781 9.42969 5.78242 10.8843C7.23704 12.3389 8.98062 13.3285 10.8284 13.8529C11.1722 13.9505 11.3441 13.9993 11.5957 14C11.8748 14.0009 12.2528 13.9026 12.4961 13.7659C12.7154 13.6427 12.8767 13.4814 13.1993 13.1588L13.2954 13.0627C13.6191 12.739 13.7809 12.5771 13.8689 12.4033C14.0437 12.0576 14.0437 11.6493 13.8689 11.3036C13.7809 11.1297 13.6191 10.9679 13.2954 10.6442L13.1767 10.5255C12.9637 10.3125 12.8572 10.206 12.7501 10.1364C12.3464 9.87386 11.8258 9.87386 11.422 10.1364C11.3149 10.206 11.2084 10.3125 10.9955 10.5255C10.9259 10.5951 10.891 10.6299 10.8503 10.659C10.7057 10.7626 10.496 10.7984 10.3252 10.7486C10.2772 10.7346 10.2392 10.7163 10.1632 10.6799C9.28023 10.2559 8.45262 9.67796 7.7207 8.94603Z",
|
|
698
703
|
fill: color
|
|
699
704
|
}
|
|
700
705
|
),
|
|
701
|
-
/* @__PURE__ */ (0,
|
|
706
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
702
707
|
"path",
|
|
703
708
|
{
|
|
704
709
|
d: "M9.33335 4.22765C10.4699 4.62936 11.3707 5.53016 11.7724 6.66671M9.97701 2.33337C11.7004 2.93456 13.0655 4.2997 13.6667 6.02305M7.7207 8.94603C6.98877 8.2141 6.41082 7.3865 5.98686 6.50348C5.95039 6.42753 5.93216 6.38955 5.91815 6.34149C5.86837 6.17072 5.90413 5.96102 6.00769 5.81639C6.03683 5.77569 6.07165 5.74087 6.14128 5.67124C6.35424 5.45828 6.46072 5.3518 6.53033 5.24473C6.79287 4.84094 6.79287 4.32038 6.53033 3.91658C6.46072 3.80951 6.35424 3.70303 6.14128 3.49007L6.02257 3.37137C5.69885 3.04764 5.53699 2.88578 5.36315 2.79786C5.01743 2.62299 4.60914 2.62299 4.26342 2.79786C4.08958 2.88578 3.92772 3.04764 3.604 3.37137L3.50798 3.46739C3.18536 3.79 3.02405 3.95131 2.90086 4.17062C2.76415 4.41398 2.66586 4.79194 2.66669 5.07106C2.66744 5.32261 2.71624 5.49452 2.81382 5.83835C3.33828 7.68611 4.32781 9.42969 5.78242 10.8843C7.23704 12.3389 8.98062 13.3285 10.8284 13.8529C11.1722 13.9505 11.3441 13.9993 11.5957 14C11.8748 14.0009 12.2528 13.9026 12.4961 13.7659C12.7154 13.6427 12.8767 13.4814 13.1993 13.1588L13.2954 13.0627C13.6191 12.739 13.7809 12.5771 13.8689 12.4033C14.0437 12.0576 14.0437 11.6493 13.8689 11.3036C13.7809 11.1297 13.6191 10.9679 13.2954 10.6442L13.1767 10.5255C12.9637 10.3125 12.8572 10.206 12.7501 10.1364C12.3464 9.87386 11.8258 9.87386 11.422 10.1364C11.3149 10.206 11.2084 10.3125 10.9955 10.5255C10.9259 10.5951 10.891 10.6299 10.8503 10.659C10.7057 10.7626 10.496 10.7984 10.3252 10.7486C10.2772 10.7346 10.2392 10.7163 10.1632 10.6799C9.28023 10.2559 8.45262 9.67796 7.7207 8.94603Z",
|
|
@@ -716,11 +721,11 @@ PhoneRingIcon.displayName = "ArrowUpIcon";
|
|
|
716
721
|
|
|
717
722
|
// src/icons/up.tsx
|
|
718
723
|
var React7 = __toESM(require("react"), 1);
|
|
719
|
-
var
|
|
724
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
720
725
|
var TriangleArrowUpIcon = React7.forwardRef(
|
|
721
726
|
(_a, forwardedRef) => {
|
|
722
727
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
723
|
-
return /* @__PURE__ */ (0,
|
|
728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
724
729
|
"svg",
|
|
725
730
|
__spreadProps(__spreadValues({
|
|
726
731
|
fill: "none",
|
|
@@ -730,7 +735,7 @@ var TriangleArrowUpIcon = React7.forwardRef(
|
|
|
730
735
|
xmlns: "http://www.w3.org/2000/svg"
|
|
731
736
|
}, props), {
|
|
732
737
|
ref: forwardedRef,
|
|
733
|
-
children: /* @__PURE__ */ (0,
|
|
738
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
734
739
|
"path",
|
|
735
740
|
{
|
|
736
741
|
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",
|
|
@@ -745,11 +750,11 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
|
745
750
|
|
|
746
751
|
// src/icons/down.tsx
|
|
747
752
|
var React8 = __toESM(require("react"), 1);
|
|
748
|
-
var
|
|
753
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
749
754
|
var TriangleArrowDownIcon = React8.forwardRef(
|
|
750
755
|
(_a, forwardedRef) => {
|
|
751
756
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
752
|
-
return /* @__PURE__ */ (0,
|
|
757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
753
758
|
"svg",
|
|
754
759
|
__spreadProps(__spreadValues({
|
|
755
760
|
fill: "none",
|
|
@@ -759,7 +764,7 @@ var TriangleArrowDownIcon = React8.forwardRef(
|
|
|
759
764
|
xmlns: "http://www.w3.org/2000/svg"
|
|
760
765
|
}, props), {
|
|
761
766
|
ref: forwardedRef,
|
|
762
|
-
children: /* @__PURE__ */ (0,
|
|
767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
763
768
|
"path",
|
|
764
769
|
{
|
|
765
770
|
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",
|
|
@@ -774,11 +779,11 @@ TriangleArrowDownIcon.displayName = "ArrowDownIcon";
|
|
|
774
779
|
|
|
775
780
|
// src/icons/mic.tsx
|
|
776
781
|
var React9 = __toESM(require("react"), 1);
|
|
777
|
-
var
|
|
782
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
778
783
|
var MicIcon = React9.forwardRef(
|
|
779
784
|
(_a, forwardedRef) => {
|
|
780
785
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
781
|
-
return /* @__PURE__ */ (0,
|
|
786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
782
787
|
"svg",
|
|
783
788
|
__spreadProps(__spreadValues({
|
|
784
789
|
fill: "none",
|
|
@@ -789,7 +794,7 @@ var MicIcon = React9.forwardRef(
|
|
|
789
794
|
}, props), {
|
|
790
795
|
ref: forwardedRef,
|
|
791
796
|
children: [
|
|
792
|
-
/* @__PURE__ */ (0,
|
|
797
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
793
798
|
"path",
|
|
794
799
|
{
|
|
795
800
|
clipRule: "evenodd",
|
|
@@ -798,7 +803,7 @@ var MicIcon = React9.forwardRef(
|
|
|
798
803
|
fillRule: "evenodd"
|
|
799
804
|
}
|
|
800
805
|
),
|
|
801
|
-
/* @__PURE__ */ (0,
|
|
806
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
802
807
|
"path",
|
|
803
808
|
{
|
|
804
809
|
d: "M1.30707 7.51038C1.30707 8.87401 2.61826 12.2831 5.90497 12.2831M5.90497 12.2831V15.4999M5.90497 12.2831C8.8595 11.9148 10.0284 10.8351 10.5203 7.51038M5.90497 15.4999H4.05182M5.90497 15.4999H7.81056",
|
|
@@ -816,11 +821,11 @@ MicIcon.displayName = "MicIcon";
|
|
|
816
821
|
|
|
817
822
|
// src/icons/camera.tsx
|
|
818
823
|
var React10 = __toESM(require("react"), 1);
|
|
819
|
-
var
|
|
824
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
820
825
|
var CameraIcon = React10.forwardRef(
|
|
821
826
|
(_a, forwardedRef) => {
|
|
822
827
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
823
|
-
return /* @__PURE__ */ (0,
|
|
828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
824
829
|
"svg",
|
|
825
830
|
__spreadProps(__spreadValues({
|
|
826
831
|
fill: "none",
|
|
@@ -830,7 +835,7 @@ var CameraIcon = React10.forwardRef(
|
|
|
830
835
|
width: "16",
|
|
831
836
|
xmlns: "http://www.w3.org/2000/svg"
|
|
832
837
|
}, props), {
|
|
833
|
-
children: /* @__PURE__ */ (0,
|
|
838
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
834
839
|
"path",
|
|
835
840
|
{
|
|
836
841
|
d: "M1.41176 2C0.470588 2 0 2.46222 0 3.38667C0 4.31111 0 11.2444 0 12.1689C0 13.0933 0.470588 13.5556 0.941176 13.5556C1.41176 13.5556 9.88235 13.5556 10.8235 13.5556C11.7647 13.5556 11.7647 13.0933 11.7647 12.1689C11.7647 11.5595 11.7647 10.9502 11.7647 10.6056C11.7647 10.4478 11.8926 10.32 12.0504 10.32H12.1689C12.2126 10.32 12.2557 10.33 12.2949 10.3493L14.1176 11.2444L15.5883 11.9667C15.7782 12.06 16 11.9218 16 11.7103V3.86745C16 3.6507 15.768 3.51238 15.577 3.61479C14.6546 4.10924 12.5222 5.23556 12.2353 5.23556C12.1353 5.23556 12.0821 5.23556 12.0502 5.23556C11.8924 5.23556 11.7647 5.10789 11.7647 4.95009C11.7647 4.51892 11.7647 3.71688 11.7647 3.38667C11.7647 2.92444 11.2941 2 10.3529 2C9.41177 2 2.35294 2 1.41176 2Z",
|
|
@@ -845,11 +850,11 @@ CameraIcon.displayName = "CameraIcon";
|
|
|
845
850
|
|
|
846
851
|
// src/icons/camera-disabled.tsx
|
|
847
852
|
var React11 = __toESM(require("react"), 1);
|
|
848
|
-
var
|
|
853
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
849
854
|
var CameraDisabledIcon = React11.forwardRef(
|
|
850
855
|
(_a, forwardedRef) => {
|
|
851
856
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
852
|
-
return /* @__PURE__ */ (0,
|
|
857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
853
858
|
"svg",
|
|
854
859
|
__spreadProps(__spreadValues({
|
|
855
860
|
fill: "none",
|
|
@@ -859,7 +864,7 @@ var CameraDisabledIcon = React11.forwardRef(
|
|
|
859
864
|
width: "16",
|
|
860
865
|
xmlns: "http://www.w3.org/2000/svg"
|
|
861
866
|
}, props), {
|
|
862
|
-
children: /* @__PURE__ */ (0,
|
|
867
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
863
868
|
"path",
|
|
864
869
|
{
|
|
865
870
|
clipRule: "evenodd",
|
|
@@ -876,11 +881,11 @@ CameraDisabledIcon.displayName = "VideoDisabledIcon";
|
|
|
876
881
|
|
|
877
882
|
// src/icons/end-call.tsx
|
|
878
883
|
var React12 = __toESM(require("react"), 1);
|
|
879
|
-
var
|
|
884
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
880
885
|
var EndCallIcon = React12.forwardRef(
|
|
881
886
|
(_a, forwardedRef) => {
|
|
882
887
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
883
|
-
return /* @__PURE__ */ (0,
|
|
888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
884
889
|
"svg",
|
|
885
890
|
__spreadProps(__spreadValues({
|
|
886
891
|
fill: "none",
|
|
@@ -891,14 +896,14 @@ var EndCallIcon = React12.forwardRef(
|
|
|
891
896
|
xmlns: "http://www.w3.org/2000/svg"
|
|
892
897
|
}, props), {
|
|
893
898
|
children: [
|
|
894
|
-
/* @__PURE__ */ (0,
|
|
899
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
895
900
|
"path",
|
|
896
901
|
{
|
|
897
902
|
d: "M8 6.66667C8.90629 6.66667 9.77647 6.83841 10.5856 7.15419C10.6552 7.18136 10.69 7.19494 10.7285 7.21836C10.865 7.30159 10.9727 7.47044 10.9981 7.64117C11.0053 7.68921 11.0053 7.73711 11.0053 7.83291C11.0053 8.1259 11.0053 8.27239 11.0285 8.39394C11.1159 8.8523 11.4382 9.2104 11.8507 9.30757C11.9601 9.33333 12.092 9.33333 12.3557 9.33333H12.5026C12.9035 9.33333 13.1039 9.33333 13.266 9.27424C13.5883 9.1567 13.841 8.87584 13.9468 8.51773C14 8.33766 14 8.11498 14 7.6696V7.53749C14 7.09364 14 6.87172 13.9405 6.63611C13.8745 6.37466 13.7013 6.04705 13.528 5.85561C13.3718 5.68309 13.2352 5.5984 12.9619 5.42901C11.4932 4.51871 9.80113 4 8 4C6.19887 4 4.50678 4.51871 3.03812 5.42901C2.76484 5.5984 2.6282 5.68309 2.472 5.85561C2.29868 6.04705 2.12553 6.37466 2.0595 6.63611C2 6.87172 2 7.09364 2 7.53749V7.6696C2 8.11498 2 8.33766 2.05319 8.51773C2.15897 8.87584 2.41174 9.1567 2.73404 9.27424C2.8961 9.33333 3.09652 9.33333 3.49736 9.33333L3.64434 9.33333C3.90803 9.33333 4.03987 9.33333 4.14926 9.30757C4.56179 9.2104 4.88408 8.8523 4.97153 8.39394C4.99472 8.27239 4.99472 8.1259 4.99472 7.83291C4.99472 7.73711 4.99472 7.68921 5.00187 7.64117C5.0273 7.47044 5.13499 7.30159 5.27154 7.21836C5.30996 7.19494 5.34476 7.18136 5.41436 7.15419C6.22353 6.83841 7.09371 6.66667 8 6.66667Z",
|
|
898
903
|
fill: color
|
|
899
904
|
}
|
|
900
905
|
),
|
|
901
|
-
/* @__PURE__ */ (0,
|
|
906
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
902
907
|
"path",
|
|
903
908
|
{
|
|
904
909
|
d: "M2 12H14M8 6.66667C8.90629 6.66667 9.77647 6.83841 10.5856 7.15419C10.6552 7.18136 10.69 7.19494 10.7285 7.21836C10.865 7.30159 10.9727 7.47044 10.9981 7.64117C11.0053 7.68921 11.0053 7.73711 11.0053 7.83291C11.0053 8.1259 11.0053 8.27239 11.0285 8.39394C11.1159 8.8523 11.4382 9.2104 11.8507 9.30757C11.9601 9.33333 12.092 9.33333 12.3557 9.33333H12.5026C12.9035 9.33333 13.1039 9.33333 13.266 9.27424C13.5883 9.1567 13.841 8.87584 13.9468 8.51773C14 8.33766 14 8.11498 14 7.6696V7.53749C14 7.09364 14 6.87172 13.9405 6.63611C13.8745 6.37466 13.7013 6.04705 13.528 5.85561C13.3718 5.68309 13.2352 5.5984 12.9619 5.42901C11.4932 4.51871 9.80113 4 8 4C6.19887 4 4.50678 4.51871 3.03812 5.42901C2.76484 5.5984 2.6282 5.68309 2.472 5.85561C2.29868 6.04705 2.12553 6.37466 2.0595 6.63611C2 6.87172 2 7.09364 2 7.53749V7.6696C2 8.11498 2 8.33766 2.05319 8.51773C2.15897 8.87584 2.41174 9.1567 2.73404 9.27424C2.8961 9.33333 3.09652 9.33333 3.49736 9.33333L3.64434 9.33333C3.90803 9.33333 4.03987 9.33333 4.14926 9.30757C4.56179 9.2104 4.88408 8.8523 4.97153 8.39394C4.99472 8.27239 4.99472 8.1259 4.99472 7.83291C4.99472 7.73711 4.99472 7.68921 5.00187 7.64117C5.0273 7.47044 5.13499 7.30159 5.27154 7.21836C5.30996 7.19494 5.34476 7.18136 5.41436 7.15419C6.22353 6.83841 7.09371 6.66667 8 6.66667Z",
|
|
@@ -915,11 +920,11 @@ var EndCallIcon = React12.forwardRef(
|
|
|
915
920
|
EndCallIcon.displayName = "EndCallIcon";
|
|
916
921
|
|
|
917
922
|
// src/atoms/pagination.tsx
|
|
918
|
-
var
|
|
923
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
919
924
|
function Pagination(props) {
|
|
920
925
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
921
|
-
const [page, setPage] = (0,
|
|
922
|
-
const visibleItems = (0,
|
|
926
|
+
const [page, setPage] = (0, import_react17.useState)(() => props.page || props.defaultPage || 1);
|
|
927
|
+
const visibleItems = (0, import_react17.useMemo)(() => {
|
|
923
928
|
let start = Math.max(1, page - siblingCount);
|
|
924
929
|
let end = Math.min(count, page + siblingCount);
|
|
925
930
|
if (page - siblingCount <= 0 && end < count) {
|
|
@@ -929,37 +934,37 @@ function Pagination(props) {
|
|
|
929
934
|
}
|
|
930
935
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
931
936
|
}, [count, page, siblingCount]);
|
|
932
|
-
(0,
|
|
937
|
+
(0, import_react17.useEffect)(() => {
|
|
933
938
|
onChange == null ? void 0 : onChange(page);
|
|
934
939
|
}, [onChange, page]);
|
|
935
|
-
(0,
|
|
940
|
+
(0, import_react17.useEffect)(() => {
|
|
936
941
|
if (props.page) {
|
|
937
942
|
setPage(props.page);
|
|
938
943
|
}
|
|
939
944
|
}, [props.page]);
|
|
940
|
-
const prev = (0,
|
|
945
|
+
const prev = (0, import_react17.useMemo)(() => {
|
|
941
946
|
const p = page - 1;
|
|
942
947
|
return p < 1 ? void 0 : p;
|
|
943
948
|
}, [page]);
|
|
944
|
-
const next = (0,
|
|
949
|
+
const next = (0, import_react17.useMemo)(() => {
|
|
945
950
|
const n = page + 1;
|
|
946
951
|
return n > count ? void 0 : n;
|
|
947
952
|
}, [count, page]);
|
|
948
|
-
const onClickPrev = (0,
|
|
953
|
+
const onClickPrev = (0, import_react17.useCallback)(() => {
|
|
949
954
|
prev && setPage(prev);
|
|
950
955
|
}, [prev]);
|
|
951
|
-
const onClickNext = (0,
|
|
956
|
+
const onClickNext = (0, import_react17.useCallback)(() => {
|
|
952
957
|
next && setPage(next);
|
|
953
958
|
}, [next]);
|
|
954
|
-
const doublePrev = (0,
|
|
959
|
+
const doublePrev = (0, import_react17.useMemo)(() => {
|
|
955
960
|
if (!visibleItems.length)
|
|
956
961
|
return;
|
|
957
962
|
return Math.max(0, visibleItems[0] - 1);
|
|
958
963
|
}, [visibleItems]);
|
|
959
|
-
const onClickDoublePrev = (0,
|
|
964
|
+
const onClickDoublePrev = (0, import_react17.useCallback)(() => {
|
|
960
965
|
doublePrev && setPage(doublePrev);
|
|
961
966
|
}, [doublePrev]);
|
|
962
|
-
const doubleNext = (0,
|
|
967
|
+
const doubleNext = (0, import_react17.useMemo)(() => {
|
|
963
968
|
if (!visibleItems.length)
|
|
964
969
|
return;
|
|
965
970
|
const n = visibleItems[visibleItems.length - 1] + 1;
|
|
@@ -967,7 +972,7 @@ function Pagination(props) {
|
|
|
967
972
|
return;
|
|
968
973
|
return Math.min(count, n);
|
|
969
974
|
}, [count, visibleItems]);
|
|
970
|
-
const onClickDoubleNext = (0,
|
|
975
|
+
const onClickDoubleNext = (0, import_react17.useCallback)(() => {
|
|
971
976
|
doubleNext && setPage(doubleNext);
|
|
972
977
|
}, [doubleNext]);
|
|
973
978
|
const iconSize = {
|
|
@@ -979,19 +984,19 @@ function Pagination(props) {
|
|
|
979
984
|
size: "3",
|
|
980
985
|
style: { borderRadius: "50%" }
|
|
981
986
|
};
|
|
982
|
-
return /* @__PURE__ */ (0,
|
|
983
|
-
/* @__PURE__ */ (0,
|
|
987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
988
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
984
989
|
import_themes18.IconButton,
|
|
985
990
|
__spreadProps(__spreadValues({
|
|
986
991
|
disabled: !doublePrev,
|
|
987
992
|
onClick: onClickDoublePrev
|
|
988
993
|
}, moveButtonProps), {
|
|
989
|
-
children: /* @__PURE__ */ (0,
|
|
994
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
990
995
|
})
|
|
991
996
|
),
|
|
992
|
-
/* @__PURE__ */ (0,
|
|
993
|
-
/* @__PURE__ */ (0,
|
|
994
|
-
return /* @__PURE__ */ (0,
|
|
997
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
998
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
995
1000
|
"button",
|
|
996
1001
|
{
|
|
997
1002
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -999,42 +1004,42 @@ function Pagination(props) {
|
|
|
999
1004
|
setPage(item);
|
|
1000
1005
|
},
|
|
1001
1006
|
type: "button",
|
|
1002
|
-
children: /* @__PURE__ */ (0,
|
|
1007
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { variant: "body", children: item })
|
|
1003
1008
|
},
|
|
1004
1009
|
item
|
|
1005
1010
|
);
|
|
1006
1011
|
}) }),
|
|
1007
|
-
/* @__PURE__ */ (0,
|
|
1008
|
-
/* @__PURE__ */ (0,
|
|
1012
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
1013
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1009
1014
|
import_themes18.IconButton,
|
|
1010
1015
|
__spreadProps(__spreadValues({
|
|
1011
1016
|
disabled: !doubleNext,
|
|
1012
1017
|
onClick: onClickDoubleNext
|
|
1013
1018
|
}, moveButtonProps), {
|
|
1014
|
-
children: /* @__PURE__ */ (0,
|
|
1019
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons2.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
1015
1020
|
})
|
|
1016
1021
|
)
|
|
1017
1022
|
] });
|
|
1018
1023
|
}
|
|
1019
1024
|
|
|
1020
1025
|
// src/atoms/field-error-wrapper.tsx
|
|
1021
|
-
var
|
|
1026
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1022
1027
|
|
|
1023
1028
|
// src/atoms/ellipsis-tooltip.tsx
|
|
1024
|
-
var
|
|
1025
|
-
var
|
|
1029
|
+
var import_react18 = require("react");
|
|
1030
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1026
1031
|
|
|
1027
1032
|
// src/atoms/drawer.tsx
|
|
1028
1033
|
var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1029
|
-
var
|
|
1034
|
+
var import_themes49 = require("@radix-ui/themes");
|
|
1030
1035
|
|
|
1031
1036
|
// src/icons/close-panel-arrow.tsx
|
|
1032
1037
|
var React15 = __toESM(require("react"), 1);
|
|
1033
|
-
var
|
|
1038
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1034
1039
|
var ClosePanelArrowIcon = React15.forwardRef(
|
|
1035
1040
|
(_a, forwardedRef) => {
|
|
1036
1041
|
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1037
|
-
return /* @__PURE__ */ (0,
|
|
1042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1038
1043
|
"svg",
|
|
1039
1044
|
__spreadProps(__spreadValues({
|
|
1040
1045
|
fill: "none",
|
|
@@ -1045,7 +1050,7 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1045
1050
|
}, props), {
|
|
1046
1051
|
ref: forwardedRef,
|
|
1047
1052
|
children: [
|
|
1048
|
-
/* @__PURE__ */ (0,
|
|
1053
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1049
1054
|
"path",
|
|
1050
1055
|
{
|
|
1051
1056
|
clipRule: "evenodd",
|
|
@@ -1054,7 +1059,7 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1054
1059
|
fillRule: "evenodd"
|
|
1055
1060
|
}
|
|
1056
1061
|
),
|
|
1057
|
-
/* @__PURE__ */ (0,
|
|
1062
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1058
1063
|
"path",
|
|
1059
1064
|
{
|
|
1060
1065
|
clipRule: "evenodd",
|
|
@@ -1071,22 +1076,22 @@ var ClosePanelArrowIcon = React15.forwardRef(
|
|
|
1071
1076
|
ClosePanelArrowIcon.displayName = "ArrowDownIcon";
|
|
1072
1077
|
|
|
1073
1078
|
// src/atoms/drawer.tsx
|
|
1074
|
-
var
|
|
1079
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1075
1080
|
|
|
1076
1081
|
// src/atoms/toast.tsx
|
|
1077
1082
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1078
1083
|
var import_react_toastify = require("react-toastify");
|
|
1079
1084
|
var import_react_toastify2 = require("react-toastify");
|
|
1080
|
-
var
|
|
1085
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1081
1086
|
|
|
1082
1087
|
// src/molecules/form/form.tsx
|
|
1083
1088
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1084
|
-
var
|
|
1085
|
-
var
|
|
1086
|
-
var Root7 = (0,
|
|
1089
|
+
var import_react19 = require("react");
|
|
1090
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1091
|
+
var Root7 = (0, import_react19.forwardRef)(
|
|
1087
1092
|
(_a, ref) => {
|
|
1088
1093
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1089
|
-
return /* @__PURE__ */ (0,
|
|
1094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1090
1095
|
RadixForm.Root,
|
|
1091
1096
|
__spreadProps(__spreadValues({}, rest), {
|
|
1092
1097
|
className: `FormRoot ${className || ""}`,
|
|
@@ -1097,33 +1102,33 @@ var Root7 = (0, import_react18.forwardRef)(
|
|
|
1097
1102
|
}
|
|
1098
1103
|
);
|
|
1099
1104
|
Root7.displayName = "FORM_ROOT";
|
|
1100
|
-
var FieldContext = (0,
|
|
1105
|
+
var FieldContext = (0, import_react19.createContext)({
|
|
1101
1106
|
name: ""
|
|
1102
1107
|
});
|
|
1103
|
-
var Field2 = (0,
|
|
1108
|
+
var Field2 = (0, import_react19.forwardRef)(
|
|
1104
1109
|
(_a, ref) => {
|
|
1105
1110
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1106
|
-
return /* @__PURE__ */ (0,
|
|
1111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1107
1112
|
RadixForm.Field,
|
|
1108
1113
|
__spreadProps(__spreadValues({}, rest), {
|
|
1109
1114
|
className: `FormField ${className || ""}`,
|
|
1110
1115
|
ref,
|
|
1111
|
-
children: /* @__PURE__ */ (0,
|
|
1116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FieldContext.Provider, { value: rest, children })
|
|
1112
1117
|
})
|
|
1113
1118
|
);
|
|
1114
1119
|
}
|
|
1115
1120
|
);
|
|
1116
1121
|
Field2.displayName = "FORM_FIELD";
|
|
1117
1122
|
function HeadingLabel(props) {
|
|
1118
|
-
return /* @__PURE__ */ (0,
|
|
1123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
1119
1124
|
}
|
|
1120
1125
|
function CaptionLabel(props) {
|
|
1121
|
-
return /* @__PURE__ */ (0,
|
|
1126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1122
1127
|
}
|
|
1123
|
-
var Label2 = (0,
|
|
1128
|
+
var Label2 = (0, import_react19.forwardRef)(
|
|
1124
1129
|
(_a, ref) => {
|
|
1125
1130
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
1126
|
-
const Comp = (0,
|
|
1131
|
+
const Comp = (0, import_react19.useMemo)(() => {
|
|
1127
1132
|
switch (variant) {
|
|
1128
1133
|
case "title":
|
|
1129
1134
|
return HeadingLabel;
|
|
@@ -1134,42 +1139,42 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1134
1139
|
return Typo;
|
|
1135
1140
|
}
|
|
1136
1141
|
}, [variant]);
|
|
1137
|
-
const fieldProps = (0,
|
|
1138
|
-
return /* @__PURE__ */ (0,
|
|
1142
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1139
1144
|
RadixForm.Label,
|
|
1140
1145
|
__spreadProps(__spreadValues({}, rest), {
|
|
1141
1146
|
asChild: true,
|
|
1142
1147
|
className: `FormLabel ${className || ""}`,
|
|
1143
1148
|
ref,
|
|
1144
|
-
children: /* @__PURE__ */ (0,
|
|
1149
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Comp, { children: [
|
|
1145
1150
|
children,
|
|
1146
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
1151
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
1147
1152
|
] })
|
|
1148
1153
|
})
|
|
1149
1154
|
);
|
|
1150
1155
|
}
|
|
1151
1156
|
);
|
|
1152
1157
|
Label2.displayName = "FORM_Label";
|
|
1153
|
-
var Message2 = (0,
|
|
1158
|
+
var Message2 = (0, import_react19.forwardRef)(
|
|
1154
1159
|
(_a, ref) => {
|
|
1155
1160
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1156
|
-
return /* @__PURE__ */ (0,
|
|
1161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1157
1162
|
RadixForm.Message,
|
|
1158
1163
|
__spreadProps(__spreadValues({}, rest), {
|
|
1159
1164
|
asChild: true,
|
|
1160
1165
|
className: `FormMessage ${className || ""}`,
|
|
1161
1166
|
ref,
|
|
1162
|
-
children: /* @__PURE__ */ (0,
|
|
1167
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { color: "red", children })
|
|
1163
1168
|
})
|
|
1164
1169
|
);
|
|
1165
1170
|
}
|
|
1166
1171
|
);
|
|
1167
1172
|
Message2.displayName = "FORM_Message";
|
|
1168
|
-
var Control2 = (0,
|
|
1173
|
+
var Control2 = (0, import_react19.forwardRef)(
|
|
1169
1174
|
(_a, ref) => {
|
|
1170
1175
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
1171
|
-
const fieldProps = (0,
|
|
1172
|
-
return /* @__PURE__ */ (0,
|
|
1176
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1173
1178
|
RadixForm.Control,
|
|
1174
1179
|
__spreadProps(__spreadValues({}, rest), {
|
|
1175
1180
|
className: `FormControl ${className || ""}`,
|
|
@@ -1182,54 +1187,54 @@ var Control2 = (0, import_react18.forwardRef)(
|
|
|
1182
1187
|
Control2.displayName = "FORM_Control";
|
|
1183
1188
|
|
|
1184
1189
|
// src/atoms/auto-sizing-input.tsx
|
|
1185
|
-
var
|
|
1186
|
-
var
|
|
1187
|
-
var AutoSizingInput = (0,
|
|
1190
|
+
var import_react20 = require("react");
|
|
1191
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1192
|
+
var AutoSizingInput = (0, import_react20.forwardRef)(
|
|
1188
1193
|
(_a, ref) => {
|
|
1189
1194
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
1190
|
-
const [value, setValue] = (0,
|
|
1191
|
-
const [width, setWidth] = (0,
|
|
1192
|
-
const span = (0,
|
|
1193
|
-
(0,
|
|
1195
|
+
const [value, setValue] = (0, import_react20.useState)(_value);
|
|
1196
|
+
const [width, setWidth] = (0, import_react20.useState)(0);
|
|
1197
|
+
const span = (0, import_react20.useRef)(null);
|
|
1198
|
+
(0, import_react20.useEffect)(() => {
|
|
1194
1199
|
span.current && setWidth(span.current.offsetWidth);
|
|
1195
1200
|
}, [value]);
|
|
1196
|
-
const changeHandler = (0,
|
|
1201
|
+
const changeHandler = (0, import_react20.useCallback)(
|
|
1197
1202
|
(evt) => {
|
|
1198
1203
|
onChange == null ? void 0 : onChange(evt);
|
|
1199
1204
|
setValue(evt.target.value);
|
|
1200
1205
|
},
|
|
1201
1206
|
[onChange]
|
|
1202
1207
|
);
|
|
1203
|
-
(0,
|
|
1208
|
+
(0, import_react20.useEffect)(() => {
|
|
1204
1209
|
setValue(_value || "");
|
|
1205
1210
|
}, [_value]);
|
|
1206
|
-
(0,
|
|
1211
|
+
(0, import_react20.useEffect)(() => {
|
|
1207
1212
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1208
1213
|
}, [value, onChangeValue]);
|
|
1209
|
-
return /* @__PURE__ */ (0,
|
|
1210
|
-
/* @__PURE__ */ (0,
|
|
1211
|
-
/* @__PURE__ */ (0,
|
|
1214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
|
|
1215
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", __spreadValues({ onChange: changeHandler, ref, value }, rest)),
|
|
1216
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { "aria-hidden": "true", ref: span, children: value })
|
|
1212
1217
|
] });
|
|
1213
1218
|
}
|
|
1214
1219
|
);
|
|
1215
1220
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
1216
1221
|
|
|
1217
1222
|
// src/atoms/bullet-text.tsx
|
|
1218
|
-
var
|
|
1223
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1219
1224
|
|
|
1220
1225
|
// src/molecules/expand-table/row.tsx
|
|
1221
1226
|
var import_react_table = require("@tanstack/react-table");
|
|
1222
|
-
var
|
|
1223
|
-
var
|
|
1227
|
+
var import_react21 = require("react");
|
|
1228
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1224
1229
|
function Row(props) {
|
|
1225
1230
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1226
|
-
const [open, setOpen] = (0,
|
|
1227
|
-
const onClickRow = (0,
|
|
1231
|
+
const [open, setOpen] = (0, import_react21.useState)(false);
|
|
1232
|
+
const onClickRow = (0, import_react21.useCallback)(() => {
|
|
1228
1233
|
var _a;
|
|
1229
1234
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1230
1235
|
setOpen((prev) => !prev);
|
|
1231
1236
|
}, [props, row.original]);
|
|
1232
|
-
const rowClassName = (0,
|
|
1237
|
+
const rowClassName = (0, import_react21.useMemo)(() => {
|
|
1233
1238
|
const baseCls = ["tr-wrapper"];
|
|
1234
1239
|
if (ExpandComp) {
|
|
1235
1240
|
baseCls.push("expandable");
|
|
@@ -1239,8 +1244,8 @@ function Row(props) {
|
|
|
1239
1244
|
}
|
|
1240
1245
|
return baseCls.join(" ");
|
|
1241
1246
|
}, [ExpandComp, props.onRowClick]);
|
|
1242
|
-
return /* @__PURE__ */ (0,
|
|
1243
|
-
/* @__PURE__ */ (0,
|
|
1247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: rowClassName, children: [
|
|
1248
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1244
1249
|
"button",
|
|
1245
1250
|
{
|
|
1246
1251
|
className: "tr",
|
|
@@ -1253,7 +1258,7 @@ function Row(props) {
|
|
|
1253
1258
|
var _a, _b, _c;
|
|
1254
1259
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1255
1260
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1256
|
-
return /* @__PURE__ */ (0,
|
|
1261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1257
1262
|
"div",
|
|
1258
1263
|
{
|
|
1259
1264
|
className: "td",
|
|
@@ -1264,7 +1269,7 @@ function Row(props) {
|
|
|
1264
1269
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
1265
1270
|
children: [
|
|
1266
1271
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
1267
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1272
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1268
1273
|
cell.column.columnDef.meta.OpenBtn,
|
|
1269
1274
|
{
|
|
1270
1275
|
data: row.original,
|
|
@@ -1280,12 +1285,12 @@ function Row(props) {
|
|
|
1280
1285
|
},
|
|
1281
1286
|
`tr_${row.id}`
|
|
1282
1287
|
),
|
|
1283
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1288
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ExpandComp, { row }) }) }) : null
|
|
1284
1289
|
] }, `tr-wrapper_${row.id}`);
|
|
1285
1290
|
}
|
|
1286
1291
|
|
|
1287
1292
|
// src/molecules/expand-table/index.tsx
|
|
1288
|
-
var
|
|
1293
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1289
1294
|
function ExpandTable(props) {
|
|
1290
1295
|
const {
|
|
1291
1296
|
data,
|
|
@@ -1303,11 +1308,11 @@ function ExpandTable(props) {
|
|
|
1303
1308
|
getCellStyle
|
|
1304
1309
|
} = props;
|
|
1305
1310
|
const defaultAlign = "left";
|
|
1306
|
-
const [pagination, setPagination] = (0,
|
|
1311
|
+
const [pagination, setPagination] = (0, import_react22.useState)({
|
|
1307
1312
|
pageIndex: pageIndex || 0,
|
|
1308
1313
|
pageSize: pageSize || 9999
|
|
1309
1314
|
});
|
|
1310
|
-
const [sorting, setSorting] = (0,
|
|
1315
|
+
const [sorting, setSorting] = (0, import_react22.useState)([]);
|
|
1311
1316
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
1312
1317
|
data: data || [],
|
|
1313
1318
|
columns,
|
|
@@ -1321,7 +1326,7 @@ function ExpandTable(props) {
|
|
|
1321
1326
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
1322
1327
|
onPaginationChange: setPagination
|
|
1323
1328
|
});
|
|
1324
|
-
const gridTemplateColumns = (0,
|
|
1329
|
+
const gridTemplateColumns = (0, import_react22.useMemo)(() => {
|
|
1325
1330
|
return columns.map((col) => {
|
|
1326
1331
|
var _a;
|
|
1327
1332
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize)
|
|
@@ -1330,16 +1335,16 @@ function ExpandTable(props) {
|
|
|
1330
1335
|
}).join(" ");
|
|
1331
1336
|
}, [columns]);
|
|
1332
1337
|
const rowModels = getRowModel();
|
|
1333
|
-
const onChangePagination = (0,
|
|
1338
|
+
const onChangePagination = (0, import_react22.useCallback)(
|
|
1334
1339
|
(page) => {
|
|
1335
1340
|
setPageIndex(page - 1);
|
|
1336
1341
|
},
|
|
1337
1342
|
[setPageIndex]
|
|
1338
1343
|
);
|
|
1339
|
-
const helpCompRender = (0,
|
|
1344
|
+
const helpCompRender = (0, import_react22.useCallback)(
|
|
1340
1345
|
(rowLength) => {
|
|
1341
1346
|
if (isLoading) {
|
|
1342
|
-
return /* @__PURE__ */ (0,
|
|
1347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1343
1348
|
import_themes22.Flex,
|
|
1344
1349
|
{
|
|
1345
1350
|
align: "center",
|
|
@@ -1347,24 +1352,24 @@ function ExpandTable(props) {
|
|
|
1347
1352
|
justify: "center",
|
|
1348
1353
|
p: "5",
|
|
1349
1354
|
width: "100%",
|
|
1350
|
-
children: /* @__PURE__ */ (0,
|
|
1355
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes48.Spinner, {})
|
|
1351
1356
|
}
|
|
1352
1357
|
);
|
|
1353
1358
|
}
|
|
1354
1359
|
if (rowLength === 0) {
|
|
1355
|
-
return /* @__PURE__ */ (0,
|
|
1360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
1356
1361
|
}
|
|
1357
1362
|
return null;
|
|
1358
1363
|
},
|
|
1359
1364
|
[isLoading, placeholder]
|
|
1360
1365
|
);
|
|
1361
|
-
const pageCount = (0,
|
|
1366
|
+
const pageCount = (0, import_react22.useMemo)(() => {
|
|
1362
1367
|
if (!data)
|
|
1363
1368
|
return 0;
|
|
1364
1369
|
return Math.ceil(data.length / pageSize);
|
|
1365
1370
|
}, [data, pageSize]);
|
|
1366
|
-
return /* @__PURE__ */ (0,
|
|
1367
|
-
/* @__PURE__ */ (0,
|
|
1371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1372
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1368
1373
|
"div",
|
|
1369
1374
|
{
|
|
1370
1375
|
className: "tr",
|
|
@@ -1374,30 +1379,30 @@ function ExpandTable(props) {
|
|
|
1374
1379
|
const sortable = header.column.getCanSort();
|
|
1375
1380
|
const sortedState = header.column.getIsSorted();
|
|
1376
1381
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1377
|
-
return /* @__PURE__ */ (0,
|
|
1382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1378
1383
|
"button",
|
|
1379
1384
|
{
|
|
1380
1385
|
onClick: header.column.getToggleSortingHandler(),
|
|
1381
1386
|
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
1382
1387
|
type: "button",
|
|
1383
1388
|
children: [
|
|
1384
|
-
/* @__PURE__ */ (0,
|
|
1389
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1385
1390
|
header.column.columnDef.header,
|
|
1386
1391
|
header.getContext()
|
|
1387
1392
|
) }),
|
|
1388
|
-
sortable ? /* @__PURE__ */ (0,
|
|
1393
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1389
1394
|
import_themes22.Flex,
|
|
1390
1395
|
{
|
|
1391
1396
|
direction: "column",
|
|
1392
1397
|
style: { marginLeft: "var(--space-2)" },
|
|
1393
1398
|
children: [
|
|
1394
|
-
/* @__PURE__ */ (0,
|
|
1399
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1395
1400
|
TriangleArrowUpIcon,
|
|
1396
1401
|
{
|
|
1397
1402
|
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
1398
1403
|
}
|
|
1399
1404
|
),
|
|
1400
|
-
/* @__PURE__ */ (0,
|
|
1405
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1401
1406
|
TriangleArrowDownIcon,
|
|
1402
1407
|
{
|
|
1403
1408
|
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
@@ -1413,8 +1418,8 @@ function ExpandTable(props) {
|
|
|
1413
1418
|
},
|
|
1414
1419
|
headerGroup.id
|
|
1415
1420
|
)) }),
|
|
1416
|
-
/* @__PURE__ */ (0,
|
|
1417
|
-
return /* @__PURE__ */ (0,
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1418
1423
|
Row,
|
|
1419
1424
|
{
|
|
1420
1425
|
ExpandComp,
|
|
@@ -1428,7 +1433,7 @@ function ExpandTable(props) {
|
|
|
1428
1433
|
`row_${row.id}`
|
|
1429
1434
|
);
|
|
1430
1435
|
}) }),
|
|
1431
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
1436
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1432
1437
|
Pagination,
|
|
1433
1438
|
{
|
|
1434
1439
|
count: pageCount,
|
|
@@ -1441,14 +1446,14 @@ function ExpandTable(props) {
|
|
|
1441
1446
|
}
|
|
1442
1447
|
|
|
1443
1448
|
// src/molecules/navigation.tsx
|
|
1444
|
-
var
|
|
1449
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1445
1450
|
function Navigation({
|
|
1446
1451
|
items,
|
|
1447
1452
|
fontColor,
|
|
1448
1453
|
backgroundColor,
|
|
1449
1454
|
activeKey
|
|
1450
1455
|
}) {
|
|
1451
|
-
return /* @__PURE__ */ (0,
|
|
1456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1452
1457
|
import_themes22.Flex,
|
|
1453
1458
|
{
|
|
1454
1459
|
direction: "column",
|
|
@@ -1460,13 +1465,13 @@ function Navigation({
|
|
|
1460
1465
|
},
|
|
1461
1466
|
children: items == null ? void 0 : items.map((item) => {
|
|
1462
1467
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1463
|
-
return /* @__PURE__ */ (0,
|
|
1464
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { direction: "column", onClick, children: [
|
|
1469
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1465
1470
|
icon,
|
|
1466
|
-
/* @__PURE__ */ (0,
|
|
1471
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1467
1472
|
] }),
|
|
1468
1473
|
children == null ? void 0 : children.map((menu) => {
|
|
1469
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1474
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1470
1475
|
Button,
|
|
1471
1476
|
{
|
|
1472
1477
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1490,19 +1495,19 @@ function Navigation({
|
|
|
1490
1495
|
}
|
|
1491
1496
|
|
|
1492
1497
|
// src/molecules/date-picker/index.tsx
|
|
1493
|
-
var
|
|
1498
|
+
var import_react23 = require("react");
|
|
1494
1499
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1495
1500
|
var import_react_datepicker = require("react-datepicker");
|
|
1496
1501
|
var import_locale = require("date-fns/locale");
|
|
1497
|
-
var
|
|
1502
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1498
1503
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1499
1504
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1500
1505
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
1501
|
-
var DatePicker = (0,
|
|
1506
|
+
var DatePicker = (0, import_react23.forwardRef)(
|
|
1502
1507
|
(props, ref) => {
|
|
1503
1508
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1504
1509
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
1505
|
-
return /* @__PURE__ */ (0,
|
|
1510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1506
1511
|
ReactDatePicker,
|
|
1507
1512
|
__spreadProps(__spreadValues({
|
|
1508
1513
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1533,53 +1538,53 @@ var renderCustomHeader = (props) => {
|
|
|
1533
1538
|
} = props;
|
|
1534
1539
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1535
1540
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1536
|
-
return /* @__PURE__ */ (0,
|
|
1537
|
-
/* @__PURE__ */ (0,
|
|
1541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1542
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1538
1543
|
import_themes18.IconButton,
|
|
1539
1544
|
{
|
|
1540
1545
|
disabled: prevMonthButtonDisabled,
|
|
1541
1546
|
onClick: decreaseMonth,
|
|
1542
1547
|
type: "button",
|
|
1543
1548
|
variant: "ghost",
|
|
1544
|
-
children: /* @__PURE__ */ (0,
|
|
1549
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons2.ChevronLeftIcon, {})
|
|
1545
1550
|
}
|
|
1546
1551
|
),
|
|
1547
|
-
/* @__PURE__ */ (0,
|
|
1548
|
-
/* @__PURE__ */ (0,
|
|
1552
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
1553
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1549
1554
|
year,
|
|
1550
1555
|
"\uB144"
|
|
1551
1556
|
] }),
|
|
1552
|
-
/* @__PURE__ */ (0,
|
|
1557
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1553
1558
|
month,
|
|
1554
1559
|
"\uC6D4"
|
|
1555
1560
|
] })
|
|
1556
1561
|
] }),
|
|
1557
|
-
/* @__PURE__ */ (0,
|
|
1562
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1558
1563
|
import_themes18.IconButton,
|
|
1559
1564
|
{
|
|
1560
1565
|
disabled: nextMonthButtonDisabled,
|
|
1561
1566
|
onClick: increaseMonth,
|
|
1562
1567
|
type: "button",
|
|
1563
1568
|
variant: "ghost",
|
|
1564
|
-
children: /* @__PURE__ */ (0,
|
|
1569
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons2.ChevronRightIcon, {})
|
|
1565
1570
|
}
|
|
1566
1571
|
)
|
|
1567
1572
|
] });
|
|
1568
1573
|
};
|
|
1569
1574
|
|
|
1570
1575
|
// src/molecules/dot-navigation.tsx
|
|
1571
|
-
var
|
|
1576
|
+
var import_react24 = require("react");
|
|
1572
1577
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
1573
|
-
var
|
|
1578
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1574
1579
|
function DotNavigation(props) {
|
|
1575
1580
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1576
|
-
const [currentDot, setCurrentDot] = (0,
|
|
1581
|
+
const [currentDot, setCurrentDot] = (0, import_react24.useState)(
|
|
1577
1582
|
() => {
|
|
1578
1583
|
var _a;
|
|
1579
1584
|
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
1580
1585
|
}
|
|
1581
1586
|
);
|
|
1582
|
-
const onClickDot = (0,
|
|
1587
|
+
const onClickDot = (0, import_react24.useCallback)(
|
|
1583
1588
|
(i) => {
|
|
1584
1589
|
if (onClick) {
|
|
1585
1590
|
onClick(i);
|
|
@@ -1589,17 +1594,17 @@ function DotNavigation(props) {
|
|
|
1589
1594
|
},
|
|
1590
1595
|
[onClick]
|
|
1591
1596
|
);
|
|
1592
|
-
(0,
|
|
1597
|
+
(0, import_react24.useEffect)(() => {
|
|
1593
1598
|
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
1594
1599
|
}, [currentDot, onChangeDotIndex]);
|
|
1595
|
-
(0,
|
|
1600
|
+
(0, import_react24.useEffect)(() => {
|
|
1596
1601
|
if (typeof dotIndex === "undefined")
|
|
1597
1602
|
return;
|
|
1598
1603
|
setCurrentDot(dotIndex);
|
|
1599
1604
|
}, [dotIndex]);
|
|
1600
|
-
return /* @__PURE__ */ (0,
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1601
1606
|
const isSelected = currentDot === index;
|
|
1602
|
-
return /* @__PURE__ */ (0,
|
|
1607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1603
1608
|
import_react_icons4.DotFilledIcon,
|
|
1604
1609
|
{
|
|
1605
1610
|
height: "24px",
|
|
@@ -1618,10 +1623,10 @@ function DotNavigation(props) {
|
|
|
1618
1623
|
}
|
|
1619
1624
|
|
|
1620
1625
|
// src/molecules/stepper.tsx
|
|
1621
|
-
var
|
|
1622
|
-
var
|
|
1623
|
-
var
|
|
1624
|
-
var StepContext = (0,
|
|
1626
|
+
var import_react25 = require("react");
|
|
1627
|
+
var import_themes50 = require("@radix-ui/themes");
|
|
1628
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1629
|
+
var StepContext = (0, import_react25.createContext)({
|
|
1625
1630
|
active: false,
|
|
1626
1631
|
completed: false,
|
|
1627
1632
|
index: 0
|
|
@@ -1635,7 +1640,7 @@ function Root8(props) {
|
|
|
1635
1640
|
maxWidth,
|
|
1636
1641
|
direction = "vertical"
|
|
1637
1642
|
} = props;
|
|
1638
|
-
return /* @__PURE__ */ (0,
|
|
1643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1639
1644
|
import_themes22.Flex,
|
|
1640
1645
|
{
|
|
1641
1646
|
gap: "3",
|
|
@@ -1644,8 +1649,8 @@ function Root8(props) {
|
|
|
1644
1649
|
minWidth,
|
|
1645
1650
|
maxWidth
|
|
1646
1651
|
},
|
|
1647
|
-
children:
|
|
1648
|
-
return /* @__PURE__ */ (0,
|
|
1652
|
+
children: import_react25.Children.map(children, (child, index) => {
|
|
1653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1649
1654
|
StepContext.Provider,
|
|
1650
1655
|
{
|
|
1651
1656
|
value: {
|
|
@@ -1668,9 +1673,9 @@ function Step(props) {
|
|
|
1668
1673
|
completed,
|
|
1669
1674
|
index,
|
|
1670
1675
|
direction = "vertical"
|
|
1671
|
-
} = (0,
|
|
1672
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
1673
|
-
|
|
1676
|
+
} = (0, import_react25.useContext)(StepContext);
|
|
1677
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1678
|
+
import_themes50.Separator,
|
|
1674
1679
|
{
|
|
1675
1680
|
style: {
|
|
1676
1681
|
width: `calc(100% - 40px)`,
|
|
@@ -1680,7 +1685,7 @@ function Step(props) {
|
|
|
1680
1685
|
}
|
|
1681
1686
|
}
|
|
1682
1687
|
) : null;
|
|
1683
|
-
const InnerStep = (0,
|
|
1688
|
+
const InnerStep = (0, import_react25.useMemo)(() => {
|
|
1684
1689
|
if (active) {
|
|
1685
1690
|
return ActiveStep;
|
|
1686
1691
|
}
|
|
@@ -1689,7 +1694,7 @@ function Step(props) {
|
|
|
1689
1694
|
}
|
|
1690
1695
|
return IncompleteStep;
|
|
1691
1696
|
}, [completed, active]);
|
|
1692
|
-
return /* @__PURE__ */ (0,
|
|
1697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
1693
1698
|
import_themes22.Flex,
|
|
1694
1699
|
{
|
|
1695
1700
|
align: "center",
|
|
@@ -1699,22 +1704,22 @@ function Step(props) {
|
|
|
1699
1704
|
style: { flex: 1 },
|
|
1700
1705
|
children: [
|
|
1701
1706
|
connector,
|
|
1702
|
-
/* @__PURE__ */ (0,
|
|
1707
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InnerStep, { Icon, children })
|
|
1703
1708
|
]
|
|
1704
1709
|
}
|
|
1705
1710
|
);
|
|
1706
1711
|
}
|
|
1707
1712
|
function CompleteStep(props) {
|
|
1708
1713
|
const { Icon, children } = props;
|
|
1709
|
-
const { completed, active } = (0,
|
|
1714
|
+
const { completed, active } = (0, import_react25.useContext)(StepContext);
|
|
1710
1715
|
const background = "var(--accent-a4)";
|
|
1711
1716
|
const border = "1px solid var(--accent-7)";
|
|
1712
1717
|
const color = "var(--accent-contrast)";
|
|
1713
|
-
return /* @__PURE__ */ (0,
|
|
1714
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
1719
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1715
1720
|
Avatar,
|
|
1716
1721
|
{
|
|
1717
|
-
fallback: /* @__PURE__ */ (0,
|
|
1722
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons2.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
1718
1723
|
radius: "full",
|
|
1719
1724
|
size: "medium",
|
|
1720
1725
|
style: {
|
|
@@ -1723,19 +1728,19 @@ function CompleteStep(props) {
|
|
|
1723
1728
|
}
|
|
1724
1729
|
}
|
|
1725
1730
|
),
|
|
1726
|
-
/* @__PURE__ */ (0,
|
|
1731
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
1727
1732
|
] });
|
|
1728
1733
|
}
|
|
1729
1734
|
function IncompleteStep(props) {
|
|
1730
1735
|
const { Icon, children } = props;
|
|
1731
|
-
const { completed, active, index } = (0,
|
|
1736
|
+
const { completed, active, index } = (0, import_react25.useContext)(StepContext);
|
|
1732
1737
|
const background = "var(--gray-5)";
|
|
1733
1738
|
const color = "var(--gray-a11)";
|
|
1734
|
-
return /* @__PURE__ */ (0,
|
|
1735
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
1740
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1736
1741
|
Avatar,
|
|
1737
1742
|
{
|
|
1738
|
-
fallback: /* @__PURE__ */ (0,
|
|
1743
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
1739
1744
|
radius: "full",
|
|
1740
1745
|
size: "medium",
|
|
1741
1746
|
style: {
|
|
@@ -1743,25 +1748,25 @@ function IncompleteStep(props) {
|
|
|
1743
1748
|
}
|
|
1744
1749
|
}
|
|
1745
1750
|
),
|
|
1746
|
-
/* @__PURE__ */ (0,
|
|
1751
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
1747
1752
|
] });
|
|
1748
1753
|
}
|
|
1749
1754
|
function ActiveStep(props) {
|
|
1750
1755
|
const { Icon, children } = props;
|
|
1751
|
-
const { completed, active, index } = (0,
|
|
1756
|
+
const { completed, active, index } = (0, import_react25.useContext)(StepContext);
|
|
1752
1757
|
const background = "var(--accent-10)";
|
|
1753
1758
|
const color = "var(--accent-contrast)";
|
|
1754
|
-
return /* @__PURE__ */ (0,
|
|
1755
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
1760
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1756
1761
|
Avatar,
|
|
1757
1762
|
{
|
|
1758
|
-
fallback: /* @__PURE__ */ (0,
|
|
1763
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
1759
1764
|
radius: "full",
|
|
1760
1765
|
size: "medium",
|
|
1761
1766
|
style: { background }
|
|
1762
1767
|
}
|
|
1763
1768
|
),
|
|
1764
|
-
/* @__PURE__ */ (0,
|
|
1769
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
1765
1770
|
] });
|
|
1766
1771
|
}
|
|
1767
1772
|
var Stepper = {
|
|
@@ -1770,9 +1775,9 @@ var Stepper = {
|
|
|
1770
1775
|
};
|
|
1771
1776
|
|
|
1772
1777
|
// src/molecules/tag-selector.tsx
|
|
1773
|
-
var
|
|
1778
|
+
var import_react26 = require("react");
|
|
1774
1779
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
1775
|
-
var
|
|
1780
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1776
1781
|
var OPTION_HEIGHT = 32;
|
|
1777
1782
|
var DefaultDropdownContainer = (props) => {
|
|
1778
1783
|
return props.children;
|
|
@@ -1790,22 +1795,22 @@ function TagSelector(props) {
|
|
|
1790
1795
|
open: propsOpen,
|
|
1791
1796
|
dropdownItemRender
|
|
1792
1797
|
} = props;
|
|
1793
|
-
const [_selected, _setSelected] = (0,
|
|
1798
|
+
const [_selected, _setSelected] = (0, import_react26.useState)(props.selected || []);
|
|
1794
1799
|
const selected = props.selected || _selected;
|
|
1795
1800
|
const setSelected = props.onChange || _setSelected;
|
|
1796
|
-
const [value, setValue] = (0,
|
|
1797
|
-
const [focusIndex, setFocusIndex] = (0,
|
|
1798
|
-
const [open, setOpen] = (0,
|
|
1799
|
-
const [focus, setFocus] = (0,
|
|
1800
|
-
const fieldRef = (0,
|
|
1801
|
-
const scrollRef = (0,
|
|
1802
|
-
const closeRef = (0,
|
|
1803
|
-
const onFocus = (0,
|
|
1801
|
+
const [value, setValue] = (0, import_react26.useState)("");
|
|
1802
|
+
const [focusIndex, setFocusIndex] = (0, import_react26.useState)(null);
|
|
1803
|
+
const [open, setOpen] = (0, import_react26.useState)(false);
|
|
1804
|
+
const [focus, setFocus] = (0, import_react26.useState)(false);
|
|
1805
|
+
const fieldRef = (0, import_react26.useRef)(null);
|
|
1806
|
+
const scrollRef = (0, import_react26.useRef)(null);
|
|
1807
|
+
const closeRef = (0, import_react26.useRef)();
|
|
1808
|
+
const onFocus = (0, import_react26.useCallback)(() => {
|
|
1804
1809
|
clearTimeout(closeRef.current);
|
|
1805
1810
|
setFocus(true);
|
|
1806
1811
|
setOpen(true);
|
|
1807
1812
|
}, []);
|
|
1808
|
-
const onBlur = (0,
|
|
1813
|
+
const onBlur = (0, import_react26.useCallback)(() => {
|
|
1809
1814
|
closeRef.current = setTimeout(() => {
|
|
1810
1815
|
setFocus(false);
|
|
1811
1816
|
setOpen(false);
|
|
@@ -1814,18 +1819,18 @@ function TagSelector(props) {
|
|
|
1814
1819
|
}, 100);
|
|
1815
1820
|
}, 300);
|
|
1816
1821
|
}, []);
|
|
1817
|
-
const onChangeValue = (0,
|
|
1822
|
+
const onChangeValue = (0, import_react26.useCallback)(
|
|
1818
1823
|
(e) => {
|
|
1819
1824
|
setValue(e.target.value);
|
|
1820
1825
|
},
|
|
1821
1826
|
[]
|
|
1822
1827
|
);
|
|
1823
|
-
const filteredOptions = (0,
|
|
1828
|
+
const filteredOptions = (0, import_react26.useMemo)(() => {
|
|
1824
1829
|
return options.filter((option) => {
|
|
1825
1830
|
return option.name.includes(value);
|
|
1826
1831
|
});
|
|
1827
1832
|
}, [options, value]);
|
|
1828
|
-
const selectedItem = (0,
|
|
1833
|
+
const selectedItem = (0, import_react26.useMemo)(() => {
|
|
1829
1834
|
const result = [];
|
|
1830
1835
|
selected.forEach((id) => {
|
|
1831
1836
|
const maybeItem = options.find((option) => option.id === id);
|
|
@@ -1834,13 +1839,13 @@ function TagSelector(props) {
|
|
|
1834
1839
|
});
|
|
1835
1840
|
return result;
|
|
1836
1841
|
}, [options, selected]);
|
|
1837
|
-
const onDelete = (0,
|
|
1842
|
+
const onDelete = (0, import_react26.useCallback)(
|
|
1838
1843
|
(id) => {
|
|
1839
1844
|
setSelected(selected.filter((el) => el !== id));
|
|
1840
1845
|
},
|
|
1841
1846
|
[selected, setSelected]
|
|
1842
1847
|
);
|
|
1843
|
-
const onSelect = (0,
|
|
1848
|
+
const onSelect = (0, import_react26.useCallback)(
|
|
1844
1849
|
(id) => {
|
|
1845
1850
|
if (maxCount && selected.length + 1 > maxCount)
|
|
1846
1851
|
return;
|
|
@@ -1848,7 +1853,7 @@ function TagSelector(props) {
|
|
|
1848
1853
|
},
|
|
1849
1854
|
[maxCount, selected, setSelected]
|
|
1850
1855
|
);
|
|
1851
|
-
const toggleItem = (0,
|
|
1856
|
+
const toggleItem = (0, import_react26.useCallback)(
|
|
1852
1857
|
(id) => {
|
|
1853
1858
|
if (selected.includes(id)) {
|
|
1854
1859
|
onDelete(id);
|
|
@@ -1858,7 +1863,7 @@ function TagSelector(props) {
|
|
|
1858
1863
|
},
|
|
1859
1864
|
[onDelete, onSelect, selected]
|
|
1860
1865
|
);
|
|
1861
|
-
const setScroll = (0,
|
|
1866
|
+
const setScroll = (0, import_react26.useCallback)((index) => {
|
|
1862
1867
|
if (scrollRef.current) {
|
|
1863
1868
|
const scrollTop = scrollRef.current.scrollTop;
|
|
1864
1869
|
const clientHeight = scrollRef.current.clientHeight;
|
|
@@ -1870,7 +1875,7 @@ function TagSelector(props) {
|
|
|
1870
1875
|
}
|
|
1871
1876
|
}
|
|
1872
1877
|
}, []);
|
|
1873
|
-
const handleKeyDown = (0,
|
|
1878
|
+
const handleKeyDown = (0, import_react26.useCallback)(
|
|
1874
1879
|
(e) => {
|
|
1875
1880
|
var _a;
|
|
1876
1881
|
const key = e.key;
|
|
@@ -1922,7 +1927,7 @@ function TagSelector(props) {
|
|
|
1922
1927
|
selected
|
|
1923
1928
|
]
|
|
1924
1929
|
);
|
|
1925
|
-
const placeholderVisible = (0,
|
|
1930
|
+
const placeholderVisible = (0, import_react26.useMemo)(() => {
|
|
1926
1931
|
if (selectedItem.length)
|
|
1927
1932
|
return false;
|
|
1928
1933
|
if (value)
|
|
@@ -1931,13 +1936,13 @@ function TagSelector(props) {
|
|
|
1931
1936
|
return false;
|
|
1932
1937
|
return true;
|
|
1933
1938
|
}, [focus, selectedItem.length, value]);
|
|
1934
|
-
(0,
|
|
1939
|
+
(0, import_react26.useEffect)(() => {
|
|
1935
1940
|
setFocusIndex(null);
|
|
1936
1941
|
}, [open]);
|
|
1937
|
-
(0,
|
|
1942
|
+
(0, import_react26.useEffect)(() => {
|
|
1938
1943
|
setFocusIndex(0);
|
|
1939
1944
|
}, [filteredOptions]);
|
|
1940
|
-
const badgeSize = (0,
|
|
1945
|
+
const badgeSize = (0, import_react26.useMemo)(() => {
|
|
1941
1946
|
switch (size) {
|
|
1942
1947
|
case "large":
|
|
1943
1948
|
return "large";
|
|
@@ -1947,7 +1952,7 @@ function TagSelector(props) {
|
|
|
1947
1952
|
return "small";
|
|
1948
1953
|
}
|
|
1949
1954
|
}, [size]);
|
|
1950
|
-
const placeholderVariant = (0,
|
|
1955
|
+
const placeholderVariant = (0, import_react26.useMemo)(() => {
|
|
1951
1956
|
switch (size) {
|
|
1952
1957
|
case "large":
|
|
1953
1958
|
return "subtitle";
|
|
@@ -1959,11 +1964,11 @@ function TagSelector(props) {
|
|
|
1959
1964
|
const focusClassName = focus ? " focused" : "";
|
|
1960
1965
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
1961
1966
|
const errorClassName = error ? " error" : "";
|
|
1962
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
1963
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
1967
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes22.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
1968
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
1964
1969
|
}) });
|
|
1965
|
-
const editContent = /* @__PURE__ */ (0,
|
|
1966
|
-
/* @__PURE__ */ (0,
|
|
1970
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
1971
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
1967
1972
|
import_themes22.Flex,
|
|
1968
1973
|
{
|
|
1969
1974
|
align: "center",
|
|
@@ -1975,22 +1980,22 @@ function TagSelector(props) {
|
|
|
1975
1980
|
selectedItem.map((item) => {
|
|
1976
1981
|
return tagRender ? tagRender(item, () => {
|
|
1977
1982
|
onDelete(item.id);
|
|
1978
|
-
}) : /* @__PURE__ */ (0,
|
|
1983
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Badge, { size: badgeSize, children: [
|
|
1979
1984
|
item.name,
|
|
1980
|
-
/* @__PURE__ */ (0,
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1981
1986
|
Button,
|
|
1982
1987
|
{
|
|
1983
1988
|
onClick: () => {
|
|
1984
1989
|
onDelete(item.id);
|
|
1985
1990
|
},
|
|
1986
1991
|
variant: "transparent",
|
|
1987
|
-
children: /* @__PURE__ */ (0,
|
|
1992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.Cross1Icon, {})
|
|
1988
1993
|
}
|
|
1989
1994
|
)
|
|
1990
1995
|
] }, item.id);
|
|
1991
1996
|
}),
|
|
1992
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
1993
|
-
/* @__PURE__ */ (0,
|
|
1997
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
1998
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1994
1999
|
AutoSizingInput,
|
|
1995
2000
|
{
|
|
1996
2001
|
onBlur,
|
|
@@ -2004,10 +2009,10 @@ function TagSelector(props) {
|
|
|
2004
2009
|
]
|
|
2005
2010
|
}
|
|
2006
2011
|
),
|
|
2007
|
-
focus ? /* @__PURE__ */ (0,
|
|
2012
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons5.ChevronRightIcon, {})
|
|
2008
2013
|
] });
|
|
2009
|
-
return /* @__PURE__ */ (0,
|
|
2010
|
-
/* @__PURE__ */ (0,
|
|
2014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2015
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2011
2016
|
import_themes23.Grid,
|
|
2012
2017
|
{
|
|
2013
2018
|
align: "center",
|
|
@@ -2021,31 +2026,31 @@ function TagSelector(props) {
|
|
|
2021
2026
|
children: readOnly ? readonlyContent : editContent
|
|
2022
2027
|
}
|
|
2023
2028
|
) }),
|
|
2024
|
-
/* @__PURE__ */ (0,
|
|
2029
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2025
2030
|
import_themes29.Popover.Content,
|
|
2026
2031
|
{
|
|
2027
2032
|
onOpenAutoFocus: preventDefault,
|
|
2028
2033
|
onTouchMove: stopPropagationTouch,
|
|
2029
2034
|
onWheel: stopPropagationWheel,
|
|
2030
2035
|
sticky: "always",
|
|
2031
|
-
children: /* @__PURE__ */ (0,
|
|
2036
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2032
2037
|
DropdownContainer,
|
|
2033
2038
|
{
|
|
2034
2039
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2035
2040
|
items: filteredOptions,
|
|
2036
|
-
children: /* @__PURE__ */ (0,
|
|
2037
|
-
|
|
2041
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2042
|
+
ScrollArea,
|
|
2038
2043
|
{
|
|
2039
2044
|
ref: scrollRef,
|
|
2040
2045
|
scrollbars: "vertical",
|
|
2041
2046
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2042
2047
|
type: "auto",
|
|
2043
|
-
children: /* @__PURE__ */ (0,
|
|
2048
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2044
2049
|
const isSelected = Boolean(
|
|
2045
2050
|
selected.find((el) => el === item.id)
|
|
2046
2051
|
);
|
|
2047
2052
|
const isFocus = i === focusIndex;
|
|
2048
|
-
return /* @__PURE__ */ (0,
|
|
2053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2049
2054
|
Button,
|
|
2050
2055
|
{
|
|
2051
2056
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2058,9 +2063,9 @@ function TagSelector(props) {
|
|
|
2058
2063
|
setFocusIndex(i);
|
|
2059
2064
|
},
|
|
2060
2065
|
variant: isSelected ? "soft" : "outline",
|
|
2061
|
-
children: /* @__PURE__ */ (0,
|
|
2066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
2062
2067
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2063
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2068
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons2.CheckIcon, {}) : null
|
|
2064
2069
|
] })
|
|
2065
2070
|
},
|
|
2066
2071
|
item.id
|
|
@@ -2085,14 +2090,14 @@ var preventDefault = (e) => {
|
|
|
2085
2090
|
};
|
|
2086
2091
|
|
|
2087
2092
|
// src/theme/theme-provider.tsx
|
|
2088
|
-
var
|
|
2089
|
-
var
|
|
2093
|
+
var import_themes51 = require("@radix-ui/themes");
|
|
2094
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2090
2095
|
function ThemeProvider(props) {
|
|
2091
|
-
return /* @__PURE__ */ (0,
|
|
2096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes51.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2092
2097
|
}
|
|
2093
2098
|
|
|
2094
2099
|
// src/molecules/learning-post.tsx
|
|
2095
|
-
var
|
|
2100
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2096
2101
|
function LearningPost(props) {
|
|
2097
2102
|
const {
|
|
2098
2103
|
defaultThemeProps,
|
|
@@ -2104,13 +2109,13 @@ function LearningPost(props) {
|
|
|
2104
2109
|
onPageBack,
|
|
2105
2110
|
children
|
|
2106
2111
|
} = props;
|
|
2107
|
-
return /* @__PURE__ */ (0,
|
|
2112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2108
2113
|
ThemeProvider,
|
|
2109
2114
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2110
2115
|
accentColor: "iris",
|
|
2111
2116
|
scaling: "110%",
|
|
2112
2117
|
style: {},
|
|
2113
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2118
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2114
2119
|
import_themes23.Grid,
|
|
2115
2120
|
{
|
|
2116
2121
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2122,8 +2127,8 @@ function LearningPost(props) {
|
|
|
2122
2127
|
px: "4",
|
|
2123
2128
|
width: "100%",
|
|
2124
2129
|
children: [
|
|
2125
|
-
/* @__PURE__ */ (0,
|
|
2126
|
-
/* @__PURE__ */ (0,
|
|
2130
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", {}),
|
|
2131
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2127
2132
|
import_themes22.Flex,
|
|
2128
2133
|
{
|
|
2129
2134
|
align: "center",
|
|
@@ -2133,15 +2138,15 @@ function LearningPost(props) {
|
|
|
2133
2138
|
overflow: "hidden",
|
|
2134
2139
|
width: "100%",
|
|
2135
2140
|
children: [
|
|
2136
|
-
/* @__PURE__ */ (0,
|
|
2137
|
-
/* @__PURE__ */ (0,
|
|
2141
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes23.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2142
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2138
2143
|
import_themes23.Grid,
|
|
2139
2144
|
{
|
|
2140
2145
|
gap: "3",
|
|
2141
2146
|
mb: { initial: "4", sm: "0" },
|
|
2142
2147
|
style: { alignSelf: "flex-start" },
|
|
2143
2148
|
children: [
|
|
2144
|
-
/* @__PURE__ */ (0,
|
|
2149
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2145
2150
|
Heading2,
|
|
2146
2151
|
{
|
|
2147
2152
|
style: {
|
|
@@ -2153,17 +2158,17 @@ function LearningPost(props) {
|
|
|
2153
2158
|
children: title
|
|
2154
2159
|
}
|
|
2155
2160
|
),
|
|
2156
|
-
/* @__PURE__ */ (0,
|
|
2157
|
-
/* @__PURE__ */ (0,
|
|
2161
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, { children: metaDescription }),
|
|
2162
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes22.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2158
2163
|
var _a;
|
|
2159
2164
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter"))
|
|
2160
2165
|
return;
|
|
2161
|
-
return /* @__PURE__ */ (0,
|
|
2166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
2162
2167
|
}) })
|
|
2163
2168
|
]
|
|
2164
2169
|
}
|
|
2165
2170
|
),
|
|
2166
|
-
/* @__PURE__ */ (0,
|
|
2171
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2167
2172
|
import_themes2.AspectRatio,
|
|
2168
2173
|
{
|
|
2169
2174
|
ratio: 5 / 3,
|
|
@@ -2176,7 +2181,7 @@ function LearningPost(props) {
|
|
|
2176
2181
|
}
|
|
2177
2182
|
)
|
|
2178
2183
|
] }),
|
|
2179
|
-
/* @__PURE__ */ (0,
|
|
2184
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2180
2185
|
"div",
|
|
2181
2186
|
{
|
|
2182
2187
|
className: "gh-content",
|
|
@@ -2189,7 +2194,7 @@ function LearningPost(props) {
|
|
|
2189
2194
|
children
|
|
2190
2195
|
]
|
|
2191
2196
|
}
|
|
2192
|
-
) : /* @__PURE__ */ (0,
|
|
2197
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2193
2198
|
import_themes22.Flex,
|
|
2194
2199
|
{
|
|
2195
2200
|
align: "center",
|
|
@@ -2199,8 +2204,8 @@ function LearningPost(props) {
|
|
|
2199
2204
|
justify: "center",
|
|
2200
2205
|
width: "100%",
|
|
2201
2206
|
children: [
|
|
2202
|
-
/* @__PURE__ */ (0,
|
|
2203
|
-
/* @__PURE__ */ (0,
|
|
2207
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2208
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2204
2209
|
Heading2,
|
|
2205
2210
|
{
|
|
2206
2211
|
align: "center",
|
|
@@ -2211,7 +2216,7 @@ function LearningPost(props) {
|
|
|
2211
2216
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2212
2217
|
}
|
|
2213
2218
|
),
|
|
2214
|
-
/* @__PURE__ */ (0,
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2215
2220
|
]
|
|
2216
2221
|
}
|
|
2217
2222
|
)
|
|
@@ -2221,9 +2226,9 @@ function LearningPost(props) {
|
|
|
2221
2226
|
|
|
2222
2227
|
// src/molecules/force-refresh.tsx
|
|
2223
2228
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
2224
|
-
var
|
|
2229
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2225
2230
|
function CodeSize3(props) {
|
|
2226
|
-
return /* @__PURE__ */ (0,
|
|
2231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2227
2232
|
import_themes13.Code,
|
|
2228
2233
|
{
|
|
2229
2234
|
style: {
|
|
@@ -2236,87 +2241,87 @@ function CodeSize3(props) {
|
|
|
2236
2241
|
);
|
|
2237
2242
|
}
|
|
2238
2243
|
function ForceRefresh() {
|
|
2239
|
-
return /* @__PURE__ */ (0,
|
|
2240
|
-
/* @__PURE__ */ (0,
|
|
2244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
2245
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2241
2246
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2242
2247
|
" ",
|
|
2243
|
-
/* @__PURE__ */ (0,
|
|
2244
|
-
/* @__PURE__ */ (0,
|
|
2248
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(CodeSize3, { children: [
|
|
2249
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons6.DotsVerticalIcon, { height: "13px" }),
|
|
2245
2250
|
"\uB354\uBCF4\uAE30"
|
|
2246
2251
|
] }),
|
|
2247
2252
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2248
2253
|
] }),
|
|
2249
|
-
/* @__PURE__ */ (0,
|
|
2254
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2250
2255
|
"2. ",
|
|
2251
|
-
/* @__PURE__ */ (0,
|
|
2256
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
2252
2257
|
" ",
|
|
2253
2258
|
">",
|
|
2254
2259
|
" ",
|
|
2255
|
-
/* @__PURE__ */ (0,
|
|
2260
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2256
2261
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2257
2262
|
] }),
|
|
2258
|
-
/* @__PURE__ */ (0,
|
|
2259
|
-
/* @__PURE__ */ (0,
|
|
2263
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2264
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2260
2265
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2261
|
-
/* @__PURE__ */ (0,
|
|
2266
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
2262
2267
|
] }),
|
|
2263
|
-
/* @__PURE__ */ (0,
|
|
2268
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2264
2269
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2265
|
-
/* @__PURE__ */ (0,
|
|
2270
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "Option" }),
|
|
2266
2271
|
" + ",
|
|
2267
|
-
/* @__PURE__ */ (0,
|
|
2272
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "Command" }),
|
|
2268
2273
|
" + ",
|
|
2269
|
-
/* @__PURE__ */ (0,
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes26.Kbd, { children: "I" })
|
|
2270
2275
|
] })
|
|
2271
2276
|
] }),
|
|
2272
|
-
/* @__PURE__ */ (0,
|
|
2277
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2273
2278
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
2274
2279
|
" ",
|
|
2275
|
-
/* @__PURE__ */ (0,
|
|
2276
|
-
/* @__PURE__ */ (0,
|
|
2280
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(CodeSize3, { children: [
|
|
2281
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_icons6.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
2277
2282
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
2278
2283
|
] }),
|
|
2279
2284
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2280
2285
|
] }),
|
|
2281
|
-
/* @__PURE__ */ (0,
|
|
2286
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Typo, { children: [
|
|
2282
2287
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2288
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
2284
2289
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2285
2290
|
] })
|
|
2286
2291
|
] });
|
|
2287
2292
|
}
|
|
2288
2293
|
|
|
2289
2294
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2290
|
-
var
|
|
2295
|
+
var import_react27 = require("react");
|
|
2291
2296
|
var import_date_fns = require("date-fns");
|
|
2292
2297
|
var import_clsx2 = require("clsx");
|
|
2293
|
-
var
|
|
2298
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2294
2299
|
function DatePickerButton(props) {
|
|
2295
2300
|
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
2296
|
-
const buttonProps = (0,
|
|
2301
|
+
const buttonProps = (0, import_react27.useMemo)(() => {
|
|
2297
2302
|
const variant = "outline";
|
|
2298
2303
|
const color = "gray";
|
|
2299
2304
|
return { size, color, variant, disabled };
|
|
2300
2305
|
}, [disabled, size]);
|
|
2301
|
-
const selectFormat = (0,
|
|
2306
|
+
const selectFormat = (0, import_react27.useMemo)(() => {
|
|
2302
2307
|
if (formatProps)
|
|
2303
2308
|
return formatProps;
|
|
2304
2309
|
return (date) => {
|
|
2305
2310
|
return date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
2306
2311
|
};
|
|
2307
2312
|
}, [formatProps, placeholder]);
|
|
2308
|
-
const className = (0,
|
|
2313
|
+
const className = (0, import_react27.useMemo)(() => {
|
|
2309
2314
|
return (0, import_clsx2.clsx)(
|
|
2310
2315
|
"date-picker-button",
|
|
2311
2316
|
(disabled || props.readOnly) && "disabled"
|
|
2312
2317
|
);
|
|
2313
2318
|
}, [disabled, props.readOnly]);
|
|
2314
|
-
return /* @__PURE__ */ (0,
|
|
2319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2315
2320
|
DatePicker,
|
|
2316
2321
|
__spreadProps(__spreadValues({
|
|
2317
|
-
customInput: /* @__PURE__ */ (0,
|
|
2322
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Button, __spreadProps(__spreadValues({ className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
2318
2323
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2319
|
-
/* @__PURE__ */ (0,
|
|
2324
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_icons2.CalendarIcon, {})
|
|
2320
2325
|
] }) })),
|
|
2321
2326
|
wrapperClassName: "full-width"
|
|
2322
2327
|
}, rest), {
|
|
@@ -2326,7 +2331,7 @@ function DatePickerButton(props) {
|
|
|
2326
2331
|
}
|
|
2327
2332
|
|
|
2328
2333
|
// src/molecules/time-select.tsx
|
|
2329
|
-
var
|
|
2334
|
+
var import_react28 = require("react");
|
|
2330
2335
|
var import_date_fns2 = require("date-fns");
|
|
2331
2336
|
|
|
2332
2337
|
// src/utils/get-time-options.ts
|
|
@@ -2341,7 +2346,7 @@ var getTimeOptions = () => {
|
|
|
2341
2346
|
};
|
|
2342
2347
|
|
|
2343
2348
|
// src/molecules/time-select.tsx
|
|
2344
|
-
var
|
|
2349
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2345
2350
|
var getOptionValue = (date, timeValue) => {
|
|
2346
2351
|
if (date && timeValue) {
|
|
2347
2352
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -2361,31 +2366,31 @@ function TimeSelect(_a) {
|
|
|
2361
2366
|
"minTime",
|
|
2362
2367
|
"time"
|
|
2363
2368
|
]);
|
|
2364
|
-
const timeOptions = (0,
|
|
2369
|
+
const timeOptions = (0, import_react28.useMemo)(() => {
|
|
2365
2370
|
return getTimeOptions();
|
|
2366
2371
|
}, []);
|
|
2367
|
-
const [minOption, maxOption] = (0,
|
|
2372
|
+
const [minOption, maxOption] = (0, import_react28.useMemo)(() => {
|
|
2368
2373
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2369
2374
|
}, [maxTime, minTime, time]);
|
|
2370
|
-
return /* @__PURE__ */ (0,
|
|
2371
|
-
/* @__PURE__ */ (0,
|
|
2372
|
-
/* @__PURE__ */ (0,
|
|
2375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2376
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2373
2378
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2374
2379
|
if (!visible) {
|
|
2375
2380
|
return null;
|
|
2376
2381
|
}
|
|
2377
|
-
return /* @__PURE__ */ (0,
|
|
2382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Select.Item, { value: option, children: option }, option);
|
|
2378
2383
|
}) })
|
|
2379
2384
|
] }));
|
|
2380
2385
|
}
|
|
2381
2386
|
|
|
2382
2387
|
// src/molecules/radio-button-card.tsx
|
|
2383
|
-
var
|
|
2384
|
-
var
|
|
2385
|
-
var RadioCardContext = (0,
|
|
2388
|
+
var import_react29 = require("react");
|
|
2389
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2390
|
+
var RadioCardContext = (0, import_react29.createContext)({});
|
|
2386
2391
|
function Root9(props) {
|
|
2387
|
-
const [value, setValue] = (0,
|
|
2388
|
-
const onValueChange = (0,
|
|
2392
|
+
const [value, setValue] = (0, import_react29.useState)(props.value || props.defaultValue);
|
|
2393
|
+
const onValueChange = (0, import_react29.useCallback)(
|
|
2389
2394
|
(v) => {
|
|
2390
2395
|
var _a;
|
|
2391
2396
|
setValue(v);
|
|
@@ -2393,7 +2398,7 @@ function Root9(props) {
|
|
|
2393
2398
|
},
|
|
2394
2399
|
[props]
|
|
2395
2400
|
);
|
|
2396
|
-
return /* @__PURE__ */ (0,
|
|
2401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes33.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
2397
2402
|
}
|
|
2398
2403
|
function Item(_a) {
|
|
2399
2404
|
var _b = _a, {
|
|
@@ -2401,18 +2406,18 @@ function Item(_a) {
|
|
|
2401
2406
|
} = _b, itemRest = __objRest(_b, [
|
|
2402
2407
|
"children"
|
|
2403
2408
|
]);
|
|
2404
|
-
const _a2 = (0,
|
|
2409
|
+
const _a2 = (0, import_react29.useContext)(RadioCardContext), {
|
|
2405
2410
|
value,
|
|
2406
2411
|
justify,
|
|
2407
|
-
RadioWrapper =
|
|
2412
|
+
RadioWrapper = import_react29.Fragment
|
|
2408
2413
|
} = _a2, rootRest = __objRest(_a2, [
|
|
2409
2414
|
"value",
|
|
2410
2415
|
"justify",
|
|
2411
2416
|
"RadioWrapper"
|
|
2412
2417
|
]);
|
|
2413
|
-
return /* @__PURE__ */ (0,
|
|
2418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2414
2419
|
children,
|
|
2415
|
-
/* @__PURE__ */ (0,
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2416
2421
|
import_themes32.Radio,
|
|
2417
2422
|
{
|
|
2418
2423
|
checked: itemRest.value === value,
|
|
@@ -2429,24 +2434,24 @@ var RadioButtonCard = {
|
|
|
2429
2434
|
|
|
2430
2435
|
// src/molecules/download-card.tsx
|
|
2431
2436
|
var import_react_icons7 = require("@radix-ui/react-icons");
|
|
2432
|
-
var
|
|
2437
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2433
2438
|
function DownloadCard({
|
|
2434
2439
|
fileName,
|
|
2435
2440
|
url,
|
|
2436
2441
|
createdAt,
|
|
2437
2442
|
size
|
|
2438
2443
|
}) {
|
|
2439
|
-
return /* @__PURE__ */ (0,
|
|
2444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2440
2445
|
import_themes18.IconButton,
|
|
2441
2446
|
{
|
|
2442
2447
|
mt: "3",
|
|
2443
2448
|
size: "4",
|
|
2444
2449
|
style: { width: "100%", height: 56 },
|
|
2445
2450
|
variant: "soft",
|
|
2446
|
-
children: /* @__PURE__ */ (0,
|
|
2447
|
-
/* @__PURE__ */ (0,
|
|
2448
|
-
/* @__PURE__ */ (0,
|
|
2449
|
-
/* @__PURE__ */ (0,
|
|
2451
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes22.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
2452
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons7.DownloadIcon, { height: 20, width: 20 }) }),
|
|
2453
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes22.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
2454
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2450
2455
|
Typo,
|
|
2451
2456
|
{
|
|
2452
2457
|
style: {
|
|
@@ -2456,7 +2461,7 @@ function DownloadCard({
|
|
|
2456
2461
|
children: fileName
|
|
2457
2462
|
}
|
|
2458
2463
|
),
|
|
2459
|
-
/* @__PURE__ */ (0,
|
|
2464
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
2460
2465
|
] })
|
|
2461
2466
|
] })
|
|
2462
2467
|
}
|
|
@@ -2464,22 +2469,22 @@ function DownloadCard({
|
|
|
2464
2469
|
}
|
|
2465
2470
|
|
|
2466
2471
|
// src/molecules/ghost-post.tsx
|
|
2467
|
-
var
|
|
2472
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2468
2473
|
function GhostPost(props) {
|
|
2469
2474
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
2470
|
-
return /* @__PURE__ */ (0,
|
|
2475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2471
2476
|
ThemeProvider,
|
|
2472
2477
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2473
2478
|
accentColor: "iris",
|
|
2474
2479
|
scaling: "110%",
|
|
2475
2480
|
style: {},
|
|
2476
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2481
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes6.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2477
2482
|
"div",
|
|
2478
2483
|
{
|
|
2479
2484
|
className: "gh-content",
|
|
2480
2485
|
dangerouslySetInnerHTML: { __html: html }
|
|
2481
2486
|
}
|
|
2482
|
-
) }) : /* @__PURE__ */ (0,
|
|
2487
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2483
2488
|
import_themes22.Flex,
|
|
2484
2489
|
{
|
|
2485
2490
|
align: "center",
|
|
@@ -2489,8 +2494,8 @@ function GhostPost(props) {
|
|
|
2489
2494
|
justify: "center",
|
|
2490
2495
|
width: "100%",
|
|
2491
2496
|
children: [
|
|
2492
|
-
/* @__PURE__ */ (0,
|
|
2493
|
-
/* @__PURE__ */ (0,
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2498
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2494
2499
|
Heading2,
|
|
2495
2500
|
{
|
|
2496
2501
|
align: "center",
|
|
@@ -2501,7 +2506,7 @@ function GhostPost(props) {
|
|
|
2501
2506
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2502
2507
|
}
|
|
2503
2508
|
),
|
|
2504
|
-
/* @__PURE__ */ (0,
|
|
2509
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2505
2510
|
]
|
|
2506
2511
|
}
|
|
2507
2512
|
)
|