@tipp/ui 2.3.11 → 2.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +42 -39
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +23 -23
- package/dist/app/platform/edit-coaching-time.cjs +15 -12
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +19 -19
- package/dist/app/platform/edit-service-type.cjs +10 -7
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +19 -19
- package/dist/app/platform/goal-manage-card-edit.cjs +12 -9
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +19 -19
- package/dist/app/platform/on-offline-radio-card.cjs +34 -31
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +19 -19
- package/dist/app/platform/reservation-card.cjs +17 -14
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +19 -19
- package/dist/app/platform/session-card.cjs +21 -18
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +19 -19
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
- package/dist/chunk-2QFLNAGL.js +100 -0
- package/dist/chunk-2QFLNAGL.js.map +1 -0
- package/dist/chunk-3FKAH2RB.js +105 -0
- package/dist/chunk-3FKAH2RB.js.map +1 -0
- package/dist/chunk-3OCAVV5Z.js +151 -0
- package/dist/chunk-3OCAVV5Z.js.map +1 -0
- package/dist/chunk-3PE6OFB3.js +70 -0
- package/dist/chunk-3PE6OFB3.js.map +1 -0
- package/dist/chunk-3QNIJCKK.js +98 -0
- package/dist/chunk-3QNIJCKK.js.map +1 -0
- package/dist/chunk-4OFVNWKB.js +100 -0
- package/dist/chunk-4OFVNWKB.js.map +1 -0
- package/dist/chunk-4SSWZQPC.js +89 -0
- package/dist/chunk-4SSWZQPC.js.map +1 -0
- package/dist/chunk-5JUYOJVM.js +77 -0
- package/dist/chunk-5JUYOJVM.js.map +1 -0
- package/dist/chunk-5SECMWKA.js +196 -0
- package/dist/chunk-5SECMWKA.js.map +1 -0
- package/dist/chunk-65FJZWXV.js +49 -0
- package/dist/chunk-65FJZWXV.js.map +1 -0
- package/dist/chunk-7UUHYDMJ.js +43 -0
- package/dist/chunk-7UUHYDMJ.js.map +1 -0
- package/dist/chunk-B5W5HY62.js +196 -0
- package/dist/chunk-B5W5HY62.js.map +1 -0
- package/dist/chunk-B63TOIOA.js +29 -0
- package/dist/chunk-B63TOIOA.js.map +1 -0
- package/dist/chunk-DTUYT5S2.js +98 -0
- package/dist/chunk-DTUYT5S2.js.map +1 -0
- package/dist/chunk-EI232M7E.js +196 -0
- package/dist/chunk-EI232M7E.js.map +1 -0
- package/dist/chunk-FDJPEXOU.js +222 -0
- package/dist/chunk-FDJPEXOU.js.map +1 -0
- package/dist/chunk-FGBFER5X.js +196 -0
- package/dist/chunk-FGBFER5X.js.map +1 -0
- package/dist/chunk-FNRYQLCC.js +64 -0
- package/dist/chunk-FNRYQLCC.js.map +1 -0
- package/dist/chunk-G7EN5QQR.js +64 -0
- package/dist/chunk-G7EN5QQR.js.map +1 -0
- package/dist/chunk-GDCDEPJO.js +64 -0
- package/dist/chunk-GDCDEPJO.js.map +1 -0
- package/dist/chunk-I4OEBZDH.js +64 -0
- package/dist/chunk-I4OEBZDH.js.map +1 -0
- package/dist/chunk-I5NKMQOT.js +64 -0
- package/dist/chunk-I5NKMQOT.js.map +1 -0
- package/dist/chunk-J5IKAPJM.js +69 -0
- package/dist/chunk-J5IKAPJM.js.map +1 -0
- package/dist/chunk-JJQM3MW3.js +98 -0
- package/dist/chunk-JJQM3MW3.js.map +1 -0
- package/dist/chunk-JKJUBJ65.js +70 -0
- package/dist/chunk-JKJUBJ65.js.map +1 -0
- package/dist/chunk-KLIEFXWN.js +100 -0
- package/dist/chunk-KLIEFXWN.js.map +1 -0
- package/dist/chunk-NDC72OWR.js +37 -0
- package/dist/chunk-NDC72OWR.js.map +1 -0
- package/dist/chunk-NMGLSEZ3.js +152 -0
- package/dist/chunk-NMGLSEZ3.js.map +1 -0
- package/dist/chunk-NMKIFFKE.js +63 -0
- package/dist/chunk-NMKIFFKE.js.map +1 -0
- package/dist/chunk-OX4OPOPI.js +82 -0
- package/dist/chunk-OX4OPOPI.js.map +1 -0
- package/dist/chunk-POFUBAXM.js +77 -0
- package/dist/chunk-POFUBAXM.js.map +1 -0
- package/dist/chunk-QBBF5V24.js +70 -0
- package/dist/chunk-QBBF5V24.js.map +1 -0
- package/dist/chunk-QPTWBPAQ.js +87 -0
- package/dist/chunk-QPTWBPAQ.js.map +1 -0
- package/dist/chunk-R7NTFLYB.js +98 -0
- package/dist/chunk-R7NTFLYB.js.map +1 -0
- package/dist/chunk-RAK5LEBO.js +70 -0
- package/dist/chunk-RAK5LEBO.js.map +1 -0
- package/dist/chunk-RWXNQPE7.js +151 -0
- package/dist/chunk-RWXNQPE7.js.map +1 -0
- package/dist/chunk-SGJFPJMV.js +100 -0
- package/dist/chunk-SGJFPJMV.js.map +1 -0
- package/dist/chunk-SYUWHIFX.js +98 -0
- package/dist/chunk-SYUWHIFX.js.map +1 -0
- package/dist/chunk-TDBCQSTJ.js +61 -0
- package/dist/chunk-TDBCQSTJ.js.map +1 -0
- package/dist/chunk-TGCLWLPY.js +51 -0
- package/dist/chunk-TGCLWLPY.js.map +1 -0
- package/dist/chunk-UFWZAT6E.js +89 -0
- package/dist/chunk-UFWZAT6E.js.map +1 -0
- package/dist/chunk-VN7IU4XW.js +64 -0
- package/dist/chunk-VN7IU4XW.js.map +1 -0
- package/dist/chunk-W3NTNHA4.js +196 -0
- package/dist/chunk-W3NTNHA4.js.map +1 -0
- package/dist/chunk-XDPRIBTV.js +101 -0
- package/dist/chunk-XDPRIBTV.js.map +1 -0
- package/dist/chunk-XU7H43IG.js +196 -0
- package/dist/chunk-XU7H43IG.js.map +1 -0
- package/dist/chunk-ZFWZAZPG.js +153 -0
- package/dist/chunk-ZFWZAZPG.js.map +1 -0
- package/dist/index.cjs +136 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -2
- package/dist/index.js +40 -40
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +7 -7
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +54 -17
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +2 -2
- package/dist/molecules/curriculumV2/curriculum-context.cjs +29 -21
- package/dist/molecules/curriculumV2/curriculum-context.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-context.d.cts +7 -1
- package/dist/molecules/curriculumV2/curriculum-context.d.ts +7 -1
- package/dist/molecules/curriculumV2/curriculum-context.js +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +2 -2
- package/dist/molecules/curriculumV2/index.cjs +85 -38
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +16 -16
- package/dist/molecules/index.cjs +115 -68
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +33 -33
- package/package.json +3 -3
- package/src/molecules/curriculumV2/CurriculumSidebar/index.tsx +47 -13
- package/src/molecules/curriculumV2/curriculum-context.tsx +62 -39
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import "../../chunk-AS7ID74X.js";
|
|
2
2
|
import {
|
|
3
3
|
CurriculumBody
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-I5NKMQOT.js";
|
|
5
|
+
import "../../chunk-XU7H43IG.js";
|
|
6
|
+
import "../../chunk-QGKQ3IX7.js";
|
|
7
|
+
import {
|
|
8
|
+
CurriculumSidebar
|
|
9
|
+
} from "../../chunk-R7NTFLYB.js";
|
|
10
|
+
import "../../chunk-KTUCYAG7.js";
|
|
11
|
+
import "../../chunk-4TST4UK5.js";
|
|
12
|
+
import "../../chunk-WS7IOHVK.js";
|
|
13
|
+
import "../../chunk-6L4OTKID.js";
|
|
14
|
+
import "../../chunk-SDEDXT7A.js";
|
|
15
|
+
import "../../chunk-4SSWZQPC.js";
|
|
7
16
|
import "../../chunk-W3TY3SYU.js";
|
|
8
17
|
import "../../chunk-QIRUYN3K.js";
|
|
9
18
|
import "../../chunk-BUZDDAS6.js";
|
|
@@ -14,26 +23,17 @@ import "../../chunk-VREM33BW.js";
|
|
|
14
23
|
import "../../chunk-AQVIQODP.js";
|
|
15
24
|
import "../../chunk-WHZZKXOD.js";
|
|
16
25
|
import "../../chunk-YT4LGWIY.js";
|
|
17
|
-
import "../../chunk-PYGTM7ML.js";
|
|
18
26
|
import "../../chunk-JNYTH4BZ.js";
|
|
27
|
+
import "../../chunk-PYGTM7ML.js";
|
|
19
28
|
import "../../chunk-GMKRNFH5.js";
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import {
|
|
22
|
-
CurriculumSidebar
|
|
23
|
-
} from "../../chunk-Y724ZBAT.js";
|
|
24
|
-
import "../../chunk-KTUCYAG7.js";
|
|
25
|
-
import "../../chunk-4TST4UK5.js";
|
|
26
|
-
import "../../chunk-WS7IOHVK.js";
|
|
27
|
-
import "../../chunk-6L4OTKID.js";
|
|
28
|
-
import "../../chunk-SDEDXT7A.js";
|
|
29
|
-
import "../../chunk-LHKGSKKG.js";
|
|
29
|
+
import "../../chunk-RAK5LEBO.js";
|
|
30
30
|
import {
|
|
31
31
|
CurriculumSubNav
|
|
32
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-2QFLNAGL.js";
|
|
33
33
|
import {
|
|
34
34
|
CurriculumProvider,
|
|
35
35
|
useCurriculumContext
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-ZFWZAZPG.js";
|
|
37
37
|
import {
|
|
38
38
|
CurriculumV2Layout
|
|
39
39
|
} from "../../chunk-CQSM6JCO.js";
|
package/dist/molecules/index.cjs
CHANGED
|
@@ -2749,7 +2749,8 @@ function CurriculumProvider(props) {
|
|
|
2749
2749
|
curriculumCompleteMap,
|
|
2750
2750
|
onChangeSelectedContent,
|
|
2751
2751
|
onActionButtonClick,
|
|
2752
|
-
initialSelectedIndex
|
|
2752
|
+
initialSelectedIndex,
|
|
2753
|
+
customTabs
|
|
2753
2754
|
} = props;
|
|
2754
2755
|
const sidebarRef = (0, import_react22.useRef)(null);
|
|
2755
2756
|
const scrollNavItem = (0, import_react22.useCallback)((index) => {
|
|
@@ -2834,26 +2835,33 @@ function CurriculumProvider(props) {
|
|
|
2834
2835
|
(0, import_react22.useEffect)(() => {
|
|
2835
2836
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(selectedItem);
|
|
2836
2837
|
}, [selectedItem]);
|
|
2837
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2839
|
+
CurriculumContext.Provider,
|
|
2840
|
+
{
|
|
2841
|
+
value: {
|
|
2842
|
+
curriculum,
|
|
2843
|
+
scrollNavItem,
|
|
2844
|
+
selectedIndex: selectedIndexState,
|
|
2845
|
+
setSelectedIndex,
|
|
2846
|
+
selectedId,
|
|
2847
|
+
hasPrev,
|
|
2848
|
+
hasNext,
|
|
2849
|
+
selectPrev,
|
|
2850
|
+
selectNext,
|
|
2851
|
+
selectedSectionTitle,
|
|
2852
|
+
selectedItem,
|
|
2853
|
+
scrollAreaRef: sidebarRef,
|
|
2854
|
+
onReviewSubmit,
|
|
2855
|
+
onReviewValueChange,
|
|
2856
|
+
curriculumReviewAnswers,
|
|
2857
|
+
tempCurriculumReviewAnswers,
|
|
2858
|
+
curriculumCompleteMap,
|
|
2859
|
+
onActionButtonClick,
|
|
2860
|
+
customTabs
|
|
2861
|
+
},
|
|
2862
|
+
children
|
|
2863
|
+
}
|
|
2864
|
+
);
|
|
2857
2865
|
}
|
|
2858
2866
|
function useCurriculumContext() {
|
|
2859
2867
|
const ctx = (0, import_react22.useContext)(CurriculumContext);
|
|
@@ -4363,6 +4371,9 @@ function CurriculumBody() {
|
|
|
4363
4371
|
}
|
|
4364
4372
|
}
|
|
4365
4373
|
|
|
4374
|
+
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
4375
|
+
var import_react33 = require("react");
|
|
4376
|
+
|
|
4366
4377
|
// src/atoms/tabs.tsx
|
|
4367
4378
|
var import_themes34 = require("@radix-ui/themes");
|
|
4368
4379
|
|
|
@@ -4492,12 +4503,30 @@ var TAB_LIST = [
|
|
|
4492
4503
|
value: "curriculum"
|
|
4493
4504
|
}
|
|
4494
4505
|
];
|
|
4506
|
+
var TABS_LIST_STYLE = {
|
|
4507
|
+
padding: "0 var(--space-3)"
|
|
4508
|
+
};
|
|
4509
|
+
var TABS_CONTENT_STYLE = {
|
|
4510
|
+
position: "absolute",
|
|
4511
|
+
height: "100%",
|
|
4512
|
+
width: "100%"
|
|
4513
|
+
};
|
|
4495
4514
|
function CurriculumSidebar() {
|
|
4496
|
-
const {
|
|
4515
|
+
const {
|
|
4516
|
+
curriculum,
|
|
4517
|
+
selectedIndex,
|
|
4518
|
+
setSelectedIndex,
|
|
4519
|
+
scrollAreaRef,
|
|
4520
|
+
curriculumCompleteMap,
|
|
4521
|
+
customTabs
|
|
4522
|
+
} = useCurriculumContext();
|
|
4497
4523
|
const list = curriculum.contents.list;
|
|
4524
|
+
const tabList = (0, import_react33.useMemo)(() => {
|
|
4525
|
+
return [...TAB_LIST, ...customTabs != null ? customTabs : []];
|
|
4526
|
+
}, [customTabs]);
|
|
4498
4527
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes16.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
4499
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.List, { style:
|
|
4500
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.
|
|
4528
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
4529
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4501
4530
|
import_themes7.Box,
|
|
4502
4531
|
{
|
|
4503
4532
|
height: "100%",
|
|
@@ -4505,21 +4534,39 @@ function CurriculumSidebar() {
|
|
|
4505
4534
|
position: "relative",
|
|
4506
4535
|
ref: scrollAreaRef,
|
|
4507
4536
|
width: "100%",
|
|
4508
|
-
children:
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4537
|
+
children: [
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4539
|
+
import_themes34.Tabs.Content,
|
|
4540
|
+
{
|
|
4541
|
+
style: TABS_CONTENT_STYLE,
|
|
4542
|
+
value: TAB_LIST[0].value,
|
|
4543
|
+
children: [
|
|
4544
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4545
|
+
sidebar_item_default,
|
|
4546
|
+
{
|
|
4547
|
+
done: curriculumCompleteMap[item.uuid],
|
|
4548
|
+
index,
|
|
4549
|
+
item,
|
|
4550
|
+
selectedIndex,
|
|
4551
|
+
setSelectedIndex
|
|
4552
|
+
},
|
|
4553
|
+
item.uuid
|
|
4554
|
+
)),
|
|
4555
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes7.Box, { height: "150px" })
|
|
4556
|
+
]
|
|
4515
4557
|
},
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4558
|
+
TAB_LIST[0].value
|
|
4559
|
+
),
|
|
4560
|
+
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4561
|
+
import_themes34.Tabs.Content,
|
|
4562
|
+
{
|
|
4563
|
+
style: TABS_CONTENT_STYLE,
|
|
4564
|
+
value: tab.value,
|
|
4565
|
+
children: tab.content
|
|
4566
|
+
},
|
|
4567
|
+
tab.value
|
|
4568
|
+
))
|
|
4569
|
+
]
|
|
4523
4570
|
}
|
|
4524
4571
|
)
|
|
4525
4572
|
] }) });
|
|
@@ -4571,19 +4618,19 @@ function CurriculumV2Layout(props) {
|
|
|
4571
4618
|
}
|
|
4572
4619
|
|
|
4573
4620
|
// src/molecules/dynamic-form.tsx
|
|
4574
|
-
var
|
|
4621
|
+
var import_react38 = require("react");
|
|
4575
4622
|
var import_formik2 = require("formik");
|
|
4576
4623
|
var Yup2 = __toESM(require("yup"), 1);
|
|
4577
4624
|
var import_themes37 = require("@radix-ui/themes");
|
|
4578
4625
|
|
|
4579
4626
|
// src/context/dynamic-form-context.tsx
|
|
4580
|
-
var
|
|
4627
|
+
var import_react35 = require("react");
|
|
4581
4628
|
|
|
4582
4629
|
// src/molecules/form/form.tsx
|
|
4583
4630
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
4584
|
-
var
|
|
4631
|
+
var import_react34 = require("react");
|
|
4585
4632
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4586
|
-
var Root8 = (0,
|
|
4633
|
+
var Root8 = (0, import_react34.forwardRef)(
|
|
4587
4634
|
(_a, ref) => {
|
|
4588
4635
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4589
4636
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
@@ -4597,10 +4644,10 @@ var Root8 = (0, import_react33.forwardRef)(
|
|
|
4597
4644
|
}
|
|
4598
4645
|
);
|
|
4599
4646
|
Root8.displayName = "FORM_ROOT";
|
|
4600
|
-
var FieldContext = (0,
|
|
4647
|
+
var FieldContext = (0, import_react34.createContext)({
|
|
4601
4648
|
name: ""
|
|
4602
4649
|
});
|
|
4603
|
-
var Field2 = (0,
|
|
4650
|
+
var Field2 = (0, import_react34.forwardRef)(
|
|
4604
4651
|
(_a, ref) => {
|
|
4605
4652
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4606
4653
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
@@ -4620,10 +4667,10 @@ function HeadingLabel(props) {
|
|
|
4620
4667
|
function CaptionLabel(props) {
|
|
4621
4668
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
4622
4669
|
}
|
|
4623
|
-
var Label2 = (0,
|
|
4670
|
+
var Label2 = (0, import_react34.forwardRef)(
|
|
4624
4671
|
(_a, ref) => {
|
|
4625
4672
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
4626
|
-
const Comp = (0,
|
|
4673
|
+
const Comp = (0, import_react34.useMemo)(() => {
|
|
4627
4674
|
switch (variant) {
|
|
4628
4675
|
case "title":
|
|
4629
4676
|
return HeadingLabel;
|
|
@@ -4634,7 +4681,7 @@ var Label2 = (0, import_react33.forwardRef)(
|
|
|
4634
4681
|
return Typo;
|
|
4635
4682
|
}
|
|
4636
4683
|
}, [variant]);
|
|
4637
|
-
const fieldProps = (0,
|
|
4684
|
+
const fieldProps = (0, import_react34.useContext)(FieldContext);
|
|
4638
4685
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4639
4686
|
RadixForm.Label,
|
|
4640
4687
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -4650,7 +4697,7 @@ var Label2 = (0, import_react33.forwardRef)(
|
|
|
4650
4697
|
}
|
|
4651
4698
|
);
|
|
4652
4699
|
Label2.displayName = "FORM_Label";
|
|
4653
|
-
var Message2 = (0,
|
|
4700
|
+
var Message2 = (0, import_react34.forwardRef)(
|
|
4654
4701
|
(_a, ref) => {
|
|
4655
4702
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4656
4703
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
@@ -4665,10 +4712,10 @@ var Message2 = (0, import_react33.forwardRef)(
|
|
|
4665
4712
|
}
|
|
4666
4713
|
);
|
|
4667
4714
|
Message2.displayName = "FORM_Message";
|
|
4668
|
-
var Control2 = (0,
|
|
4715
|
+
var Control2 = (0, import_react34.forwardRef)(
|
|
4669
4716
|
(_a, ref) => {
|
|
4670
4717
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
4671
|
-
const fieldProps = (0,
|
|
4718
|
+
const fieldProps = (0, import_react34.useContext)(FieldContext);
|
|
4672
4719
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4673
4720
|
RadixForm.Control,
|
|
4674
4721
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -4710,7 +4757,7 @@ var Form = {
|
|
|
4710
4757
|
|
|
4711
4758
|
// src/context/dynamic-form-context.tsx
|
|
4712
4759
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4713
|
-
var DynamicFormContext = (0,
|
|
4760
|
+
var DynamicFormContext = (0, import_react35.createContext)(null);
|
|
4714
4761
|
function DynamicFormProvider({
|
|
4715
4762
|
children,
|
|
4716
4763
|
fields,
|
|
@@ -4737,7 +4784,7 @@ function DynamicFormProvider({
|
|
|
4737
4784
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Form.Root, { onSubmit: formik.handleSubmit, children }) });
|
|
4738
4785
|
}
|
|
4739
4786
|
function useDynamicForm() {
|
|
4740
|
-
const context = (0,
|
|
4787
|
+
const context = (0, import_react35.useContext)(DynamicFormContext);
|
|
4741
4788
|
if (!context) {
|
|
4742
4789
|
throw new Error("useDynamicForm must be used within a DynamicFormProvider");
|
|
4743
4790
|
}
|
|
@@ -4746,11 +4793,11 @@ function useDynamicForm() {
|
|
|
4746
4793
|
|
|
4747
4794
|
// src/atoms/check-box-group.tsx
|
|
4748
4795
|
var import_themes35 = require("@radix-ui/themes");
|
|
4749
|
-
var
|
|
4796
|
+
var import_react36 = require("react");
|
|
4750
4797
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4751
|
-
var Root9 = (0,
|
|
4798
|
+
var Root9 = (0, import_react36.forwardRef)((props, ref) => {
|
|
4752
4799
|
const _a = props, { children, size = "medium" } = _a, rest = __objRest(_a, ["children", "size"]);
|
|
4753
|
-
const groupSize = (0,
|
|
4800
|
+
const groupSize = (0, import_react36.useMemo)(() => {
|
|
4754
4801
|
switch (size) {
|
|
4755
4802
|
case "small":
|
|
4756
4803
|
return "1";
|
|
@@ -4771,12 +4818,12 @@ var CheckboxGroup = {
|
|
|
4771
4818
|
|
|
4772
4819
|
// src/atoms/check-box.tsx
|
|
4773
4820
|
var import_themes36 = require("@radix-ui/themes");
|
|
4774
|
-
var
|
|
4821
|
+
var import_react37 = require("react");
|
|
4775
4822
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4776
|
-
var Checkbox = (0,
|
|
4823
|
+
var Checkbox = (0, import_react37.forwardRef)(
|
|
4777
4824
|
(props, ref) => {
|
|
4778
4825
|
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
4779
|
-
const radixSize = (0,
|
|
4826
|
+
const radixSize = (0, import_react37.useMemo)(() => {
|
|
4780
4827
|
switch (size) {
|
|
4781
4828
|
case "small":
|
|
4782
4829
|
return "1";
|
|
@@ -4926,7 +4973,7 @@ function DynamicFormRoot({
|
|
|
4926
4973
|
children,
|
|
4927
4974
|
readonly = false
|
|
4928
4975
|
}) {
|
|
4929
|
-
const validationSchema = (0,
|
|
4976
|
+
const validationSchema = (0, import_react38.useMemo)(() => {
|
|
4930
4977
|
const schema = {};
|
|
4931
4978
|
fields.forEach((field) => {
|
|
4932
4979
|
if (field.validation) {
|
|
@@ -4948,7 +4995,7 @@ function DynamicFormRoot({
|
|
|
4948
4995
|
});
|
|
4949
4996
|
return Object.keys(schema).length > 0 ? Yup2.object(schema) : void 0;
|
|
4950
4997
|
}, [fields]);
|
|
4951
|
-
const handleSubmit = (0,
|
|
4998
|
+
const handleSubmit = (0, import_react38.useCallback)((values) => __async(null, null, function* () {
|
|
4952
4999
|
yield onSubmit(values);
|
|
4953
5000
|
}), [onSubmit]);
|
|
4954
5001
|
const formik = (0, import_formik2.useFormik)({
|
|
@@ -4967,7 +5014,7 @@ function DynamicFormRoot({
|
|
|
4967
5014
|
validateOnChange: true,
|
|
4968
5015
|
onSubmit: handleSubmit
|
|
4969
5016
|
});
|
|
4970
|
-
(0,
|
|
5017
|
+
(0, import_react38.useEffect)(() => {
|
|
4971
5018
|
if (formik.submitCount > 0 && Object.keys(formik.errors).length > 0) {
|
|
4972
5019
|
const timeoutId = setTimeout(() => {
|
|
4973
5020
|
scrollToFirstError(formik.errors, fields);
|
|
@@ -5159,10 +5206,10 @@ function DynamicFormResponseItem({
|
|
|
5159
5206
|
}
|
|
5160
5207
|
|
|
5161
5208
|
// src/molecules/one-on-one-guide-list.tsx
|
|
5162
|
-
var
|
|
5209
|
+
var import_react40 = require("react");
|
|
5163
5210
|
|
|
5164
5211
|
// src/atoms/list.tsx
|
|
5165
|
-
var
|
|
5212
|
+
var import_react39 = require("react");
|
|
5166
5213
|
var import_clsx4 = require("clsx");
|
|
5167
5214
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5168
5215
|
function Root10(props) {
|
|
@@ -5180,7 +5227,7 @@ function Root10(props) {
|
|
|
5180
5227
|
"className"
|
|
5181
5228
|
]);
|
|
5182
5229
|
const Comp = variant === "ol" ? "ol" : "ul";
|
|
5183
|
-
const className = (0,
|
|
5230
|
+
const className = (0, import_react39.useMemo)(
|
|
5184
5231
|
() => (0, import_clsx4.clsx)(
|
|
5185
5232
|
{
|
|
5186
5233
|
"pre-space-small": preSpace === "small"
|
|
@@ -5194,7 +5241,7 @@ function Root10(props) {
|
|
|
5194
5241
|
function Item2(props) {
|
|
5195
5242
|
const { children } = props;
|
|
5196
5243
|
const { size } = useList();
|
|
5197
|
-
const variant = (0,
|
|
5244
|
+
const variant = (0, import_react39.useMemo)(() => {
|
|
5198
5245
|
return mapWithResponsive({
|
|
5199
5246
|
value: size,
|
|
5200
5247
|
mapFn: (sizeValue) => {
|
|
@@ -5204,11 +5251,11 @@ function Item2(props) {
|
|
|
5204
5251
|
}, [size]);
|
|
5205
5252
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("li", { children }) });
|
|
5206
5253
|
}
|
|
5207
|
-
var ListContext = (0,
|
|
5254
|
+
var ListContext = (0, import_react39.createContext)({
|
|
5208
5255
|
size: "large"
|
|
5209
5256
|
});
|
|
5210
5257
|
function useList() {
|
|
5211
|
-
return (0,
|
|
5258
|
+
return (0, import_react39.useContext)(ListContext);
|
|
5212
5259
|
}
|
|
5213
5260
|
var List = {
|
|
5214
5261
|
Root: Root10,
|
|
@@ -5223,7 +5270,7 @@ var oneOnOneNoteTextReplacer = (args) => {
|
|
|
5223
5270
|
};
|
|
5224
5271
|
function OneOnOneGuideList(props) {
|
|
5225
5272
|
const { data, relacements, guideTitle, guideDescription } = props;
|
|
5226
|
-
const groupedData = (0,
|
|
5273
|
+
const groupedData = (0, import_react40.useMemo)(() => {
|
|
5227
5274
|
return data == null ? void 0 : data.reduce(
|
|
5228
5275
|
(acc, item) => {
|
|
5229
5276
|
if (item.type === "title") {
|