@tipp/ui 2.3.5 → 2.3.7
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.map +1 -1
- package/dist/app/index.js +83 -83
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +30 -30
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +30 -30
- package/dist/app/platform/curriculum-card.js +6 -6
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +67 -67
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +68 -68
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +67 -67
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +30 -30
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +67 -67
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +30 -30
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +68 -68
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +70 -70
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +33 -33
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +30 -30
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +30 -30
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +29 -29
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/drawer.cjs +2 -3
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +1 -1
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.cjs +2 -3
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +63 -63
- package/dist/atoms/list.js +2 -2
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-2LRQWOIG.js +63 -0
- package/dist/chunk-2LRQWOIG.js.map +1 -0
- package/dist/chunk-2USHC4PH.js +63 -0
- package/dist/chunk-2USHC4PH.js.map +1 -0
- package/dist/chunk-3APHALEN.js +64 -0
- package/dist/chunk-3APHALEN.js.map +1 -0
- package/dist/chunk-3KH45IO4.js +89 -0
- package/dist/chunk-3KH45IO4.js.map +1 -0
- package/dist/chunk-3SCBKVQQ.js +51 -0
- package/dist/chunk-3SCBKVQQ.js.map +1 -0
- package/dist/chunk-4ETFHDG5.js +174 -0
- package/dist/chunk-4ETFHDG5.js.map +1 -0
- package/dist/chunk-4HDV26QV.js +51 -0
- package/dist/chunk-4HDV26QV.js.map +1 -0
- package/dist/chunk-5ZBSW4UW.js +64 -0
- package/dist/chunk-5ZBSW4UW.js.map +1 -0
- package/dist/chunk-62HSZXVT.js +74 -0
- package/dist/chunk-62HSZXVT.js.map +1 -0
- package/dist/chunk-64XYTE54.js +64 -0
- package/dist/chunk-64XYTE54.js.map +1 -0
- package/dist/chunk-6DR4EIVU.js +196 -0
- package/dist/chunk-6DR4EIVU.js.map +1 -0
- package/dist/chunk-7ADTM2PV.js +87 -0
- package/dist/chunk-7ADTM2PV.js.map +1 -0
- package/dist/chunk-7FRK5KLV.js +89 -0
- package/dist/chunk-7FRK5KLV.js.map +1 -0
- package/dist/chunk-ABUC6VII.js +144 -0
- package/dist/chunk-ABUC6VII.js.map +1 -0
- package/dist/chunk-AHXS2MBK.js +57 -0
- package/dist/chunk-AHXS2MBK.js.map +1 -0
- package/dist/chunk-C2EZQALX.js +363 -0
- package/dist/chunk-C2EZQALX.js.map +1 -0
- package/dist/chunk-C6ZC7TXX.js +30 -0
- package/dist/chunk-C6ZC7TXX.js.map +1 -0
- package/dist/chunk-CTZQFO5H.js +196 -0
- package/dist/chunk-CTZQFO5H.js.map +1 -0
- package/dist/chunk-DDFCVUO2.js +196 -0
- package/dist/chunk-DDFCVUO2.js.map +1 -0
- package/dist/chunk-DSWR2Z7U.js +89 -0
- package/dist/chunk-DSWR2Z7U.js.map +1 -0
- package/dist/chunk-E72OTAC6.js +89 -0
- package/dist/chunk-E72OTAC6.js.map +1 -0
- package/dist/chunk-EEAHZCIK.js +94 -0
- package/dist/chunk-EEAHZCIK.js.map +1 -0
- package/dist/chunk-EGT45N6F.js +30 -0
- package/dist/chunk-EGT45N6F.js.map +1 -0
- package/dist/chunk-FV4BQOCL.js +61 -0
- package/dist/chunk-FV4BQOCL.js.map +1 -0
- package/dist/chunk-GNTZY4DG.js +151 -0
- package/dist/chunk-GNTZY4DG.js.map +1 -0
- package/dist/chunk-GOPYUYXS.js +99 -0
- package/dist/chunk-GOPYUYXS.js.map +1 -0
- package/dist/chunk-IAIOO5Z2.js +174 -0
- package/dist/chunk-IAIOO5Z2.js.map +1 -0
- package/dist/chunk-IB7IFIYY.js +165 -0
- package/dist/chunk-IB7IFIYY.js.map +1 -0
- package/dist/chunk-IH6VDQ6C.js +61 -0
- package/dist/chunk-IH6VDQ6C.js.map +1 -0
- package/dist/chunk-IUUORJE5.js +68 -0
- package/dist/chunk-IUUORJE5.js.map +1 -0
- package/dist/chunk-K3Q4XLCN.js +65 -0
- package/dist/chunk-K3Q4XLCN.js.map +1 -0
- package/dist/chunk-KD6EXWP7.js +74 -0
- package/dist/chunk-KD6EXWP7.js.map +1 -0
- package/dist/chunk-KTUCYAG7.js +51 -0
- package/dist/chunk-KTUCYAG7.js.map +1 -0
- package/dist/chunk-KXCFAFL3.js +151 -0
- package/dist/chunk-KXCFAFL3.js.map +1 -0
- package/dist/chunk-L6FMK2ZK.js +64 -0
- package/dist/chunk-L6FMK2ZK.js.map +1 -0
- package/dist/chunk-LMALEQCE.js +228 -0
- package/dist/chunk-LMALEQCE.js.map +1 -0
- package/dist/chunk-M6ZYONSH.js +169 -0
- package/dist/chunk-M6ZYONSH.js.map +1 -0
- package/dist/chunk-N45T3WWG.js +139 -0
- package/dist/chunk-N45T3WWG.js.map +1 -0
- package/dist/chunk-P6DHFQXU.js +30 -0
- package/dist/chunk-P6DHFQXU.js.map +1 -0
- package/dist/chunk-PB4O3U6O.js +49 -0
- package/dist/chunk-PB4O3U6O.js.map +1 -0
- package/dist/chunk-PBWH6CMJ.js +217 -0
- package/dist/chunk-PBWH6CMJ.js.map +1 -0
- package/dist/chunk-PHGGXL3R.js +196 -0
- package/dist/chunk-PHGGXL3R.js.map +1 -0
- package/dist/chunk-QIXJ27DM.js +99 -0
- package/dist/chunk-QIXJ27DM.js.map +1 -0
- package/dist/chunk-RAKVKAXI.js +144 -0
- package/dist/chunk-RAKVKAXI.js.map +1 -0
- package/dist/chunk-RFXVHZAN.js +64 -0
- package/dist/chunk-RFXVHZAN.js.map +1 -0
- package/dist/chunk-T4HTYL5M.js +139 -0
- package/dist/chunk-T4HTYL5M.js.map +1 -0
- package/dist/chunk-TVZB6XRW.js +165 -0
- package/dist/chunk-TVZB6XRW.js.map +1 -0
- package/dist/chunk-TYBX7Q7B.js +64 -0
- package/dist/chunk-TYBX7Q7B.js.map +1 -0
- package/dist/chunk-UAXYYUVG.js +69 -0
- package/dist/chunk-UAXYYUVG.js.map +1 -0
- package/dist/chunk-UMBRV35P.js +217 -0
- package/dist/chunk-UMBRV35P.js.map +1 -0
- package/dist/chunk-UZZXVLBJ.js +145 -0
- package/dist/chunk-UZZXVLBJ.js.map +1 -0
- package/dist/chunk-VK6INFSB.js +69 -0
- package/dist/chunk-VK6INFSB.js.map +1 -0
- package/dist/chunk-Y724ZBAT.js +61 -0
- package/dist/chunk-Y724ZBAT.js.map +1 -0
- package/dist/chunk-YLSOXSUS.js +117 -0
- package/dist/chunk-YLSOXSUS.js.map +1 -0
- package/dist/context/dynamic-form-context.cjs +3 -1
- package/dist/context/dynamic-form-context.cjs.map +1 -1
- package/dist/context/dynamic-form-context.d.cts +3 -1
- package/dist/context/dynamic-form-context.d.ts +3 -1
- package/dist/context/dynamic-form-context.js +1 -1
- package/dist/context/index.cjs +3 -1
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +25 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -1
- package/dist/index.js +138 -138
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +16 -16
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +9 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +20 -20
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +22 -22
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.js +32 -32
- package/dist/molecules/date-picker/date-picker-button.js +6 -6
- package/dist/molecules/date-picker/index.js +5 -5
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.cjs +15 -9
- package/dist/molecules/dynamic-field.cjs.map +1 -1
- package/dist/molecules/dynamic-field.js +4 -4
- package/dist/molecules/dynamic-form.cjs +23 -14
- package/dist/molecules/dynamic-form.cjs.map +1 -1
- package/dist/molecules/dynamic-form.d.cts +2 -1
- package/dist/molecules/dynamic-form.d.ts +2 -1
- package/dist/molecules/dynamic-form.js +5 -5
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +23 -14
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +61 -61
- package/dist/molecules/learning-post.js +5 -5
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/one-on-one-guide-list.js +3 -3
- package/dist/molecules/stepper.js +4 -4
- package/dist/molecules/tag-selector.js +5 -5
- package/package.json +1 -1
- package/src/atoms/drawer.tsx +2 -3
- package/src/context/dynamic-form-context.tsx +4 -0
- package/src/molecules/dynamic-field.tsx +12 -6
- package/src/molecules/dynamic-form.tsx +5 -3
|
@@ -6,49 +6,58 @@ import {
|
|
|
6
6
|
sessionList
|
|
7
7
|
} from "../../../chunk-JWAQUXGB.js";
|
|
8
8
|
import "../../../chunk-HBF6IIVZ.js";
|
|
9
|
+
import "../../../chunk-5XYPLDI5.js";
|
|
10
|
+
import "../../../chunk-6NPTJBFE.js";
|
|
9
11
|
import "../../../chunk-EEKOTWBE.js";
|
|
12
|
+
import "../../../chunk-2OMSNCRH.js";
|
|
13
|
+
import "../../../chunk-X2GMDZ7M.js";
|
|
14
|
+
import "../../../chunk-HYITAA4J.js";
|
|
10
15
|
import "../../../chunk-5H3YPCZK.js";
|
|
11
16
|
import "../../../chunk-FR2GDOU2.js";
|
|
12
17
|
import "../../../chunk-74DX4CU7.js";
|
|
13
18
|
import "../../../chunk-OYM4XCHQ.js";
|
|
14
19
|
import "../../../chunk-YJ7ZFOYL.js";
|
|
15
20
|
import "../../../chunk-5ZITU5L7.js";
|
|
16
|
-
import "../../../chunk-
|
|
17
|
-
import "../../../chunk-
|
|
21
|
+
import "../../../chunk-365QMK4D.js";
|
|
22
|
+
import "../../../chunk-YO3BQW6S.js";
|
|
18
23
|
import "../../../chunk-6IVCARWS.js";
|
|
19
24
|
import "../../../chunk-6DJOIRMF.js";
|
|
20
25
|
import "../../../chunk-FPD73OHW.js";
|
|
21
26
|
import "../../../chunk-MUPK4L3U.js";
|
|
22
27
|
import "../../../chunk-MUNMDHRF.js";
|
|
23
28
|
import "../../../chunk-TVDKGMBI.js";
|
|
24
|
-
import "../../../chunk-X2GMDZ7M.js";
|
|
25
|
-
import "../../../chunk-HYITAA4J.js";
|
|
26
29
|
import "../../../chunk-XQOL7UBI.js";
|
|
27
30
|
import "../../../chunk-TULWX7D6.js";
|
|
28
31
|
import "../../../chunk-DHZVOXFM.js";
|
|
29
|
-
import "../../../chunk-
|
|
30
|
-
import "../../../chunk-
|
|
32
|
+
import "../../../chunk-JIJLOKVN.js";
|
|
33
|
+
import "../../../chunk-VG2DMJ2U.js";
|
|
31
34
|
import "../../../chunk-5AVBYDPB.js";
|
|
32
|
-
import "../../../chunk-
|
|
33
|
-
import "../../../chunk-
|
|
35
|
+
import "../../../chunk-D4U2MCJG.js";
|
|
36
|
+
import "../../../chunk-Y4U24VXI.js";
|
|
37
|
+
import "../../../chunk-3NUQAVE6.js";
|
|
38
|
+
import "../../../chunk-PT57HCAI.js";
|
|
34
39
|
import "../../../chunk-2DZ2Y3JI.js";
|
|
35
|
-
import "../../../chunk-
|
|
40
|
+
import "../../../chunk-ZOPYFDLO.js";
|
|
36
41
|
import "../../../chunk-EGEQY3KT.js";
|
|
37
42
|
import "../../../chunk-O3T3TM3V.js";
|
|
43
|
+
import "../../../chunk-W7X7KSJP.js";
|
|
44
|
+
import "../../../chunk-VYCYVN3L.js";
|
|
38
45
|
import "../../../chunk-OHMOP5PV.js";
|
|
39
46
|
import "../../../chunk-NFDQJVFA.js";
|
|
40
47
|
import "../../../chunk-Q37G2GS6.js";
|
|
41
48
|
import "../../../chunk-VTJZMOSP.js";
|
|
42
|
-
import "../../../chunk-
|
|
43
|
-
import "../../../chunk-
|
|
49
|
+
import "../../../chunk-AH4A53SZ.js";
|
|
50
|
+
import "../../../chunk-BESTU2AY.js";
|
|
51
|
+
import "../../../chunk-EEAHZCIK.js";
|
|
44
52
|
import "../../../chunk-645GPOW2.js";
|
|
45
53
|
import "../../../chunk-U7N2PWMO.js";
|
|
46
54
|
import "../../../chunk-XK6VEVOK.js";
|
|
47
55
|
import "../../../chunk-HF6GNDPV.js";
|
|
48
|
-
import "../../../chunk-
|
|
49
|
-
import "../../../chunk-
|
|
50
|
-
import "../../../chunk-
|
|
51
|
-
import "../../../chunk-
|
|
56
|
+
import "../../../chunk-YGL6SWKN.js";
|
|
57
|
+
import "../../../chunk-4Y5BEXVN.js";
|
|
58
|
+
import "../../../chunk-Z34HR7RE.js";
|
|
59
|
+
import "../../../chunk-PMJIFLDT.js";
|
|
60
|
+
import "../../../chunk-LDBWASUA.js";
|
|
52
61
|
import "../../../chunk-25HMMI7R.js";
|
|
53
62
|
import "../../../chunk-ZVDAEY5Q.js";
|
|
54
63
|
import "../../../chunk-LQY4RKWI.js";
|
|
@@ -56,15 +65,6 @@ import "../../../chunk-ZD7MNMED.js";
|
|
|
56
65
|
import "../../../chunk-B6XJN6EC.js";
|
|
57
66
|
import "../../../chunk-RP2RGCAW.js";
|
|
58
67
|
import "../../../chunk-MIMJ7LON.js";
|
|
59
|
-
import "../../../chunk-W7X7KSJP.js";
|
|
60
|
-
import "../../../chunk-VYCYVN3L.js";
|
|
61
|
-
import "../../../chunk-J242TTFH.js";
|
|
62
|
-
import "../../../chunk-EAXUQEO5.js";
|
|
63
|
-
import "../../../chunk-6SYFG6YY.js";
|
|
64
|
-
import "../../../chunk-K36TPMKL.js";
|
|
65
|
-
import "../../../chunk-U3BQT7ZO.js";
|
|
66
|
-
import "../../../chunk-YGL6SWKN.js";
|
|
67
|
-
import "../../../chunk-4Y5BEXVN.js";
|
|
68
68
|
import "../../../chunk-R7IT4TCD.js";
|
|
69
69
|
import "../../../chunk-WJ34ZHTU.js";
|
|
70
70
|
import "../../../chunk-ZQE7SP6P.js";
|
|
@@ -80,11 +80,11 @@ import "../../../chunk-YSYJCYHY.js";
|
|
|
80
80
|
import "../../../chunk-5OM2H6RI.js";
|
|
81
81
|
import "../../../chunk-ZUYCXCPW.js";
|
|
82
82
|
import "../../../chunk-YVFNJE4E.js";
|
|
83
|
-
import "../../../chunk-
|
|
84
|
-
import "../../../chunk-
|
|
85
|
-
import "../../../chunk-
|
|
86
|
-
import "../../../chunk-
|
|
87
|
-
import "../../../chunk-
|
|
83
|
+
import "../../../chunk-J242TTFH.js";
|
|
84
|
+
import "../../../chunk-EAXUQEO5.js";
|
|
85
|
+
import "../../../chunk-6SYFG6YY.js";
|
|
86
|
+
import "../../../chunk-K36TPMKL.js";
|
|
87
|
+
import "../../../chunk-U3BQT7ZO.js";
|
|
88
88
|
import "../../../chunk-CRTRMMJ7.js";
|
|
89
89
|
export {
|
|
90
90
|
CopyButton,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BulletText
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-25HMMI7R.js";
|
|
3
|
+
} from "../chunk-Z34HR7RE.js";
|
|
5
4
|
import "../chunk-PMJIFLDT.js";
|
|
6
5
|
import "../chunk-LDBWASUA.js";
|
|
6
|
+
import "../chunk-25HMMI7R.js";
|
|
7
7
|
import "../chunk-CRTRMMJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
BulletText
|
package/dist/atoms/dialog.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dialog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-AH4A53SZ.js";
|
|
4
|
+
import "../chunk-BESTU2AY.js";
|
|
4
5
|
import "../chunk-U7N2PWMO.js";
|
|
5
6
|
import "../chunk-XK6VEVOK.js";
|
|
6
7
|
import "../chunk-HF6GNDPV.js";
|
|
7
|
-
import "../chunk-BESTU2AY.js";
|
|
8
8
|
import "../chunk-LDBWASUA.js";
|
|
9
9
|
import "../chunk-CRTRMMJ7.js";
|
|
10
10
|
export {
|
package/dist/atoms/drawer.cjs
CHANGED
|
@@ -219,7 +219,6 @@ function Content2(props) {
|
|
|
219
219
|
]);
|
|
220
220
|
const mobileHeaderSize = 48;
|
|
221
221
|
const desktopHeaderSize = 64;
|
|
222
|
-
const separatorSize = 1;
|
|
223
222
|
const { drawerContainerRef } = usePortalContainer();
|
|
224
223
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Dialog.Portal, { container: drawerContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_themes3.Theme, { children: [
|
|
225
224
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
@@ -235,8 +234,8 @@ function Content2(props) {
|
|
|
235
234
|
height: "100%",
|
|
236
235
|
overflow: "hidden",
|
|
237
236
|
rows: hideHeader ? "1" : {
|
|
238
|
-
initial: `${mobileHeaderSize}px
|
|
239
|
-
sm: `${desktopHeaderSize}px
|
|
237
|
+
initial: `${mobileHeaderSize}px calc(100% - ${mobileHeaderSize}px)`,
|
|
238
|
+
sm: `${desktopHeaderSize}px calc(100% - ${desktopHeaderSize}px)`
|
|
240
239
|
},
|
|
241
240
|
children: [
|
|
242
241
|
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_themes.Flex, { align: "center", gap: "3", px: { initial: "4", md: "6" }, children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/portal-provider.tsx","../../src/icons/close-panel-arrow.tsx","../../src/atoms/flex.tsx","../../src/atoms/icon-button.tsx","../../src/utils/convert-icon-button-size.ts"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { Grid, Theme } from '@radix-ui/themes';\nimport { usePortalContainer } from '@/theme/portal-provider';\nimport { ClosePanelArrowIcon } from '../icons/close-panel-arrow';\nimport { Flex } from './flex';\nimport { IconButton } from './icon-button';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n HeaderContent?: React.ReactNode;\n hideHeader?: boolean;\n};\n\nconst preventDefault: Dialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const {\n position = 'right',\n className,\n children,\n HeaderContent,\n hideHeader,\n ...rest\n } = props;\n\n const mobileHeaderSize = 48;\n const desktopHeaderSize = 64;\n const separatorSize = 1;\n const { drawerContainerRef } = usePortalContainer();\n\n return (\n <Dialog.Portal container={drawerContainerRef.current}>\n <Theme>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n onPointerDownOutside={preventDefault}\n {...rest}\n >\n <Grid\n height=\"100%\"\n overflow=\"hidden\"\n rows={\n hideHeader\n ? '1'\n : {\n initial: `${mobileHeaderSize}px ${separatorSize}px calc(100% - ${mobileHeaderSize + separatorSize}px)`,\n sm: `${desktopHeaderSize}px ${separatorSize}px calc(100% - ${desktopHeaderSize + separatorSize}px)`,\n }\n }\n >\n {!hideHeader && (\n <Flex align=\"center\" gap=\"3\" px={{ initial: '4', md: '6' }}>\n <Dialog.Close asChild>\n <IconButton color=\"gray\" variant=\"outline\">\n <ClosePanelArrowIcon />\n </IconButton>\n </Dialog.Close>\n {HeaderContent}\n </Flex>\n )}\n {children}\n </Grid>\n </Dialog.Content>\n </Theme>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n","import React, { createContext, useContext, useRef } from 'react';\n\ninterface PortalProviderProps {\n children: React.ReactNode;\n}\n\ninterface PortalState {\n dialogContainerRef: React.RefObject<HTMLDivElement | null>;\n drawerContainerRef: React.RefObject<HTMLDivElement | null>;\n}\n\nconst PortalContext = createContext<PortalState>(\n null as unknown as PortalState\n);\n\nexport function PortalProvider({\n children,\n}: PortalProviderProps): React.ReactNode {\n const dialogContainerRef = useRef<HTMLDivElement | null>(null);\n const drawerContainerRef = useRef<HTMLDivElement | null>(null);\n\n return (\n <PortalContext.Provider value={{ dialogContainerRef, drawerContainerRef }}>\n {children}\n <div className=\"drawer-portal-container\" ref={drawerContainerRef} />\n <div className=\"dialog-portal-container\" ref={dialogContainerRef} />\n </PortalContext.Provider>\n );\n}\n\nexport const usePortalContainer = (): PortalState => {\n try {\n const state = useContext(PortalContext);\n return state;\n } catch (error) {\n throw new Error('PortalProvider not found');\n }\n};\n\nexport default PortalProvider;\n","import * as React from 'react';\nimport type { IconProps } from './types';\n\nexport const ClosePanelArrowIcon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ color = 'currentColor', ...props }, forwardedRef) => {\n return (\n <svg\n fill=\"none\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n clipRule=\"evenodd\"\n d=\"M3.19315 2.16529C3.43937 1.93445 3.82611 1.94693 4.05695 2.19315L9.87499 7.15624C9.87499 7.15624 10.4479 7.72916 9.87499 8.30207L4.05695 12.8068C3.82611 13.0531 3.43937 13.0656 3.19315 12.8347C2.94693 12.6038 2.93445 12.2171 3.16529 11.9709L8.72916 7.72916L3.16529 3.02908C2.93445 2.78285 2.94693 2.39612 3.19315 2.16529Z\"\n fill={color}\n fillRule=\"evenodd\"\n />\n <path\n clipRule=\"evenodd\"\n d=\"M12.1733 2.58667C12.1733 2.26266 11.9107 2 11.5867 2C11.2627 2 11 2.26266 11 2.58667V12.7201C11 13.044 11.2627 13.3067 11.5867 13.3067C11.9107 13.3067 12.1733 13.044 12.1733 12.7201V2.58667Z\"\n fill={color}\n fillRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nClosePanelArrowIcon.displayName = 'ArrowDownIcon';\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n","import React, { forwardRef, useMemo } from 'react';\nimport { clsx } from 'clsx';\nimport { IconButton as RadixIconButton } from '@radix-ui/themes';\nimport { convertSize } from '../utils/convert-icon-button-size';\nimport type { ButtonProps } from './button.type';\n\nexport type IconButtonProps = ButtonProps;\nexport const IconButton = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n return convertSize(size);\n }, [size]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n const className = useMemo(() => {\n return clsx(props.className, { transparent: variant === 'transparent' });\n }, [props.className, variant]);\n\n return (\n <RadixIconButton\n style={style}\n type=\"button\"\n variant={radixVariant}\n {...restProps}\n className={className}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nIconButton.displayName = 'IconButton';\n","import { type ButtonProps as RadixButtonProps } from '@radix-ui/themes';\nimport type { Breakpoint } from '@radix-ui/themes/props';\nimport type { ButtonProps } from '../atoms/button.type';\n\nexport const convertSizeStr = (\n size: ButtonProps['size']\n): '1' | '2' | '3' | '4' => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '4';\n default:\n return '2';\n }\n};\n\nexport const convertSizeResponse = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string' || typeof size === 'undefined') {\n return convertSizeStr(size);\n }\n const radixSize: RadixButtonProps['size'] = {};\n let key: Breakpoint = 'initial';\n for (key in size) {\n radixSize[key] = convertSizeStr(size[key]);\n }\n return radixSize;\n};\n\nexport const convertSize = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string') {\n return convertSizeStr(size);\n }\n return convertSizeResponse(size);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AACA,aAAwB;AACxB,IAAAC,iBAA4B;;;ACF5B,mBAAyD;AAsBrD;AAXJ,IAAM,oB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A,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAIF,QAAM,mBAAmB;AACzB,QAAM,oBAAoB;AAC1B,QAAM,gBAAgB;AACtB,QAAM,EAAE,mBAAmB,IAAI,mBAAmB;AAElD,SACE,6CAAQ,eAAP,EAAc,WAAW,mBAAmB,SAC3C,wDAAC,wBACC;AAAA,iDAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,QACvD,sBAAsB;AAAA,SAClB,OAHL;AAAA,QAKC;AAAA,UAAC;AAAA;AAAA,YACC,QAAO;AAAA,YACP,UAAS;AAAA,YACT,MACE,aACI,MACA;AAAA,cACE,SAAS,GAAG,gBAAgB,MAAM,aAAa,kBAAkB,mBAAmB,aAAa;AAAA,cACjG,IAAI,GAAG,iBAAiB,MAAM,aAAa,kBAAkB,oBAAoB,aAAa;AAAA,YAChG;AAAA,YAGL;AAAA,eAAC,cACA,8CAAC,sBAAK,OAAM,UAAS,KAAI,KAAI,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI,GACvD;AAAA,6DAAQ,cAAP,EAAa,SAAO,MACnB,uDAAC,cAAW,OAAM,QAAO,SAAQ,WAC/B,uDAAC,uBAAoB,GACvB,GACF;AAAA,gBACC;AAAA,iBACH;AAAA,cAED;AAAA;AAAA;AAAA,QACH;AAAA;AAAA,IACF;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,6CAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Content","Root","Trigger","import_themes","React","import_jsx_runtime","import_react","import_themes","import_jsx_runtime","RadixIconButton","import_jsx_runtime","Root","Content","Trigger"]}
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/portal-provider.tsx","../../src/icons/close-panel-arrow.tsx","../../src/atoms/flex.tsx","../../src/atoms/icon-button.tsx","../../src/utils/convert-icon-button-size.ts"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { Grid, Theme } from '@radix-ui/themes';\nimport { usePortalContainer } from '@/theme/portal-provider';\nimport { ClosePanelArrowIcon } from '../icons/close-panel-arrow';\nimport { Flex } from './flex';\nimport { IconButton } from './icon-button';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n HeaderContent?: React.ReactNode;\n hideHeader?: boolean;\n};\n\nconst preventDefault: Dialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const {\n position = 'right',\n className,\n children,\n HeaderContent,\n hideHeader,\n ...rest\n } = props;\n\n const mobileHeaderSize = 48;\n const desktopHeaderSize = 64;\n const { drawerContainerRef } = usePortalContainer();\n\n return (\n <Dialog.Portal container={drawerContainerRef.current}>\n <Theme>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n onPointerDownOutside={preventDefault}\n {...rest}\n >\n <Grid\n height=\"100%\"\n overflow=\"hidden\"\n rows={\n hideHeader\n ? '1'\n : {\n initial: `${mobileHeaderSize}px calc(100% - ${mobileHeaderSize}px)`,\n sm: `${desktopHeaderSize}px calc(100% - ${desktopHeaderSize}px)`,\n }\n }\n >\n {!hideHeader && (\n <Flex align=\"center\" gap=\"3\" px={{ initial: '4', md: '6' }}>\n <Dialog.Close asChild>\n <IconButton color=\"gray\" variant=\"outline\">\n <ClosePanelArrowIcon />\n </IconButton>\n </Dialog.Close>\n {HeaderContent}\n </Flex>\n )}\n {children}\n </Grid>\n </Dialog.Content>\n </Theme>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n","import React, { createContext, useContext, useRef } from 'react';\n\ninterface PortalProviderProps {\n children: React.ReactNode;\n}\n\ninterface PortalState {\n dialogContainerRef: React.RefObject<HTMLDivElement | null>;\n drawerContainerRef: React.RefObject<HTMLDivElement | null>;\n}\n\nconst PortalContext = createContext<PortalState>(\n null as unknown as PortalState\n);\n\nexport function PortalProvider({\n children,\n}: PortalProviderProps): React.ReactNode {\n const dialogContainerRef = useRef<HTMLDivElement | null>(null);\n const drawerContainerRef = useRef<HTMLDivElement | null>(null);\n\n return (\n <PortalContext.Provider value={{ dialogContainerRef, drawerContainerRef }}>\n {children}\n <div className=\"drawer-portal-container\" ref={drawerContainerRef} />\n <div className=\"dialog-portal-container\" ref={dialogContainerRef} />\n </PortalContext.Provider>\n );\n}\n\nexport const usePortalContainer = (): PortalState => {\n try {\n const state = useContext(PortalContext);\n return state;\n } catch (error) {\n throw new Error('PortalProvider not found');\n }\n};\n\nexport default PortalProvider;\n","import * as React from 'react';\nimport type { IconProps } from './types';\n\nexport const ClosePanelArrowIcon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ color = 'currentColor', ...props }, forwardedRef) => {\n return (\n <svg\n fill=\"none\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n clipRule=\"evenodd\"\n d=\"M3.19315 2.16529C3.43937 1.93445 3.82611 1.94693 4.05695 2.19315L9.87499 7.15624C9.87499 7.15624 10.4479 7.72916 9.87499 8.30207L4.05695 12.8068C3.82611 13.0531 3.43937 13.0656 3.19315 12.8347C2.94693 12.6038 2.93445 12.2171 3.16529 11.9709L8.72916 7.72916L3.16529 3.02908C2.93445 2.78285 2.94693 2.39612 3.19315 2.16529Z\"\n fill={color}\n fillRule=\"evenodd\"\n />\n <path\n clipRule=\"evenodd\"\n d=\"M12.1733 2.58667C12.1733 2.26266 11.9107 2 11.5867 2C11.2627 2 11 2.26266 11 2.58667V12.7201C11 13.044 11.2627 13.3067 11.5867 13.3067C11.9107 13.3067 12.1733 13.044 12.1733 12.7201V2.58667Z\"\n fill={color}\n fillRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nClosePanelArrowIcon.displayName = 'ArrowDownIcon';\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n","import React, { forwardRef, useMemo } from 'react';\nimport { clsx } from 'clsx';\nimport { IconButton as RadixIconButton } from '@radix-ui/themes';\nimport { convertSize } from '../utils/convert-icon-button-size';\nimport type { ButtonProps } from './button.type';\n\nexport type IconButtonProps = ButtonProps;\nexport const IconButton = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n return convertSize(size);\n }, [size]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n const className = useMemo(() => {\n return clsx(props.className, { transparent: variant === 'transparent' });\n }, [props.className, variant]);\n\n return (\n <RadixIconButton\n style={style}\n type=\"button\"\n variant={radixVariant}\n {...restProps}\n className={className}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nIconButton.displayName = 'IconButton';\n","import { type ButtonProps as RadixButtonProps } from '@radix-ui/themes';\nimport type { Breakpoint } from '@radix-ui/themes/props';\nimport type { ButtonProps } from '../atoms/button.type';\n\nexport const convertSizeStr = (\n size: ButtonProps['size']\n): '1' | '2' | '3' | '4' => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '4';\n default:\n return '2';\n }\n};\n\nexport const convertSizeResponse = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string' || typeof size === 'undefined') {\n return convertSizeStr(size);\n }\n const radixSize: RadixButtonProps['size'] = {};\n let key: Breakpoint = 'initial';\n for (key in size) {\n radixSize[key] = convertSizeStr(size[key]);\n }\n return radixSize;\n};\n\nexport const convertSize = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string') {\n return convertSizeStr(size);\n }\n return convertSizeResponse(size);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AACA,aAAwB;AACxB,IAAAC,iBAA4B;;;ACF5B,mBAAyD;AAsBrD;AAXJ,IAAM,oBAAgB;AAAA,EACpB;AACF;AAiBO,IAAM,qBAAqB,MAAmB;AACnD,MAAI;AACF,UAAM,YAAQ,yBAAW,aAAa;AACtC,WAAO;AAAA,EACT,SAAS,OAAO;AACd,UAAM,IAAI,MAAM,0BAA0B;AAAA,EAC5C;AACF;;;ACrCA,IAAAC,SAAuB;AAMjB,IAAAC,sBAAA;AAHC,IAAM,sBAA4B;AAAA,EACvC,CAAC,IAAsC,iBAAiB;AAAvD,iBAAE,UAAQ,eAJb,IAIG,IAA6B,kBAA7B,IAA6B,CAA3B;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,OAAM;AAAA,SACF,QANL;AAAA,QAOC,KAAK;AAAA,QAEL;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,UAAS;AAAA,cACT,GAAE;AAAA,cACF,MAAM;AAAA,cACN,UAAS;AAAA;AAAA,UACX;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,UAAS;AAA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ACvD;AAAA,6DAAQ,cAAP,EAAa,SAAO,MACnB,uDAAC,cAAW,OAAM,QAAO,SAAQ,WAC/B,uDAAC,uBAAoB,GACvB,GACF;AAAA,gBACC;AAAA,iBACH;AAAA,cAED;AAAA;AAAA;AAAA,QACH;AAAA;AAAA,IACF;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,6CAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Content","Root","Trigger","import_themes","React","import_jsx_runtime","import_react","import_themes","import_jsx_runtime","RadixIconButton","import_jsx_runtime","Root","Content","Trigger"]}
|
package/dist/atoms/drawer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldErrorWrapper
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-25HMMI7R.js";
|
|
3
|
+
} from "../chunk-ZOPYFDLO.js";
|
|
5
4
|
import "../chunk-PMJIFLDT.js";
|
|
6
5
|
import "../chunk-LDBWASUA.js";
|
|
6
|
+
import "../chunk-25HMMI7R.js";
|
|
7
7
|
import "../chunk-CRTRMMJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
FieldErrorWrapper
|
package/dist/atoms/index.cjs
CHANGED
|
@@ -1662,7 +1662,6 @@ function Content6(props) {
|
|
|
1662
1662
|
]);
|
|
1663
1663
|
const mobileHeaderSize = 48;
|
|
1664
1664
|
const desktopHeaderSize = 64;
|
|
1665
|
-
const separatorSize = 1;
|
|
1666
1665
|
const { drawerContainerRef } = usePortalContainer();
|
|
1667
1666
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Dialog2.Portal, { container: drawerContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes50.Theme, { children: [
|
|
1668
1667
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
|
|
@@ -1678,8 +1677,8 @@ function Content6(props) {
|
|
|
1678
1677
|
height: "100%",
|
|
1679
1678
|
overflow: "hidden",
|
|
1680
1679
|
rows: hideHeader ? "1" : {
|
|
1681
|
-
initial: `${mobileHeaderSize}px
|
|
1682
|
-
sm: `${desktopHeaderSize}px
|
|
1680
|
+
initial: `${mobileHeaderSize}px calc(100% - ${mobileHeaderSize}px)`,
|
|
1681
|
+
sm: `${desktopHeaderSize}px calc(100% - ${desktopHeaderSize}px)`
|
|
1683
1682
|
},
|
|
1684
1683
|
children: [
|
|
1685
1684
|
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes22.Flex, { align: "center", gap: "3", px: { initial: "4", md: "6" }, children: [
|