@tipp/ui 2.7.1 → 2.9.0
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 +55 -2
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +107 -105
- package/dist/app/platform/coach-question-list.cjs +55 -2
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +32 -30
- package/dist/app/platform/contents-card.cjs +55 -2
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +32 -30
- package/dist/app/platform/curriculum-card.cjs +55 -2
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +8 -6
- package/dist/app/platform/edit-coaching-time.cjs +55 -2
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +83 -81
- package/dist/app/platform/edit-service-type.cjs +55 -2
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +84 -82
- package/dist/app/platform/goal-manage-card-edit.cjs +55 -2
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +83 -81
- package/dist/app/platform/goal-manage-card-read.cjs +55 -2
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +32 -30
- package/dist/app/platform/on-offline-radio-card.cjs +55 -2
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +83 -81
- package/dist/app/platform/report-card.cjs +55 -2
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +32 -30
- package/dist/app/platform/reservation-card.cjs +55 -2
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +84 -82
- package/dist/app/platform/session-card.cjs +55 -2
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +86 -84
- package/dist/app/platform/session-review-simple-read.cjs +55 -2
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +32 -30
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +55 -2
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +37 -35
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +55 -2
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +32 -30
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +55 -2
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +32 -30
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +55 -2
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +32 -30
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +55 -2
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +32 -30
- package/dist/app/platform/userInfos/utils.cjs +55 -2
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +31 -29
- package/dist/atoms/bullet-text.cjs +35 -1
- package/dist/atoms/bullet-text.cjs.map +1 -1
- package/dist/atoms/bullet-text.js +5 -3
- package/dist/atoms/dialog.cjs +35 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +4 -2
- package/dist/atoms/ellipsis-tooltip.cjs +35 -1
- package/dist/atoms/ellipsis-tooltip.cjs.map +1 -1
- package/dist/atoms/ellipsis-tooltip.js +6 -4
- package/dist/atoms/field-error-wrapper.cjs +35 -1
- package/dist/atoms/field-error-wrapper.cjs.map +1 -1
- package/dist/atoms/field-error-wrapper.js +5 -3
- package/dist/atoms/heading.cjs +35 -1
- package/dist/atoms/heading.cjs.map +1 -1
- package/dist/atoms/heading.d.cts +4 -0
- package/dist/atoms/heading.d.ts +4 -0
- package/dist/atoms/heading.js +3 -1
- package/dist/atoms/index.cjs +55 -2
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +65 -63
- package/dist/atoms/list.cjs +35 -1
- package/dist/atoms/list.cjs.map +1 -1
- package/dist/atoms/list.js +5 -3
- package/dist/atoms/pagination.cjs +35 -1
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +5 -3
- package/dist/atoms/tooltip.js +2 -2
- package/dist/atoms/typo.cjs +35 -1
- package/dist/atoms/typo.cjs.map +1 -1
- package/dist/atoms/typo.d.cts +4 -0
- package/dist/atoms/typo.d.ts +4 -0
- package/dist/atoms/typo.js +3 -1
- package/dist/{chunk-W5EYMVXS.js → chunk-2M3UFZUD.js} +4 -4
- package/dist/chunk-36W7VD2Z.js +13 -0
- package/dist/chunk-36W7VD2Z.js.map +1 -0
- package/dist/{chunk-YSZIV3CU.js → chunk-3DZIX4CE.js} +7 -7
- package/dist/{chunk-KJZIKOZN.js → chunk-47QYYEMG.js} +2 -2
- package/dist/{chunk-P7YWDJNW.js → chunk-4GH4R4VJ.js} +5 -5
- package/dist/{chunk-AV4A2DYD.js → chunk-5IGBFB67.js} +12 -12
- package/dist/{chunk-3M2R4R2V.js → chunk-5RIAIE2J.js} +5 -5
- package/dist/{chunk-VITMX6BM.js → chunk-64DSUMXA.js} +5 -5
- package/dist/{chunk-RFNUDAXX.js → chunk-6DWUGXSY.js} +9 -9
- package/dist/{chunk-AVFFTSKQ.js → chunk-6OT5OYGM.js} +4 -4
- package/dist/{chunk-7SX3S6P3.js → chunk-74PR3ZWJ.js} +10 -10
- package/dist/{chunk-M3AG4NSZ.js → chunk-75EY7LBP.js} +4 -4
- package/dist/{chunk-MMLVZWMD.js → chunk-AELKCD6B.js} +3 -3
- package/dist/{chunk-EVERKQW4.js → chunk-AHYOAFOU.js} +11 -11
- package/dist/{chunk-4BP63QT6.js → chunk-AT5PAJLW.js} +5 -5
- package/dist/{chunk-CNQFW2WR.js → chunk-C4INJWFV.js} +8 -8
- package/dist/{chunk-HGRKKNGU.js → chunk-C6HO3IGE.js} +4 -4
- package/dist/{chunk-SEUOHWYL.js → chunk-CBYIPRND.js} +4 -4
- package/dist/{chunk-GVOZ4OL4.js → chunk-CGLDFUOY.js} +8 -8
- package/dist/{chunk-466DYMJ3.js → chunk-CUS3ORMD.js} +10 -10
- package/dist/{chunk-FW2QU4JO.js → chunk-D4U2ZV2A.js} +4 -4
- package/dist/{chunk-XKG5IOSO.js → chunk-DPMDQA3O.js} +11 -11
- package/dist/{chunk-EYDTE4R3.js → chunk-EJXZXUD2.js} +15 -15
- package/dist/{chunk-E6GCU5IQ.js → chunk-FAL6S2XK.js} +2 -2
- package/dist/{chunk-HOFWTFCW.js → chunk-G3KQN32M.js} +7 -7
- package/dist/{chunk-BRRMEZNQ.js → chunk-GE4M5GOQ.js} +4 -4
- package/dist/{chunk-XLJQHI62.js → chunk-GNB4A34H.js} +4 -4
- package/dist/{chunk-2ME5TSVO.js → chunk-IRFNKOKQ.js} +9 -9
- package/dist/{chunk-QRYLRCA6.js → chunk-ISSUGCCY.js} +10 -10
- package/dist/{chunk-UK73NZQI.js → chunk-JCZXPONS.js} +6 -6
- package/dist/{chunk-CQSM6JCO.js → chunk-K3Q4XLCN.js} +4 -4
- package/dist/{chunk-FAZ6MJW2.js → chunk-K4RZTENM.js} +4 -4
- package/dist/{chunk-SYX35B5E.js → chunk-KDS7OQOY.js} +4 -4
- package/dist/{chunk-DD3FPRHB.js → chunk-KLJVIEFW.js} +9 -9
- package/dist/{chunk-GD7NQAMP.js → chunk-KQ3ME6XY.js} +5 -5
- package/dist/{chunk-GR4PG6HY.js → chunk-L4QQGIYQ.js} +27 -2
- package/dist/chunk-L4QQGIYQ.js.map +1 -0
- package/dist/{chunk-CFZM5JE4.js → chunk-LAGJDIVU.js} +5 -5
- package/dist/{chunk-FBYJMCIN.js → chunk-LK2H4QTJ.js} +10 -10
- package/dist/{chunk-5W6GSZGX.js → chunk-MQKIIIBW.js} +3 -3
- package/dist/{chunk-WVMXH4DX.js → chunk-N3FMP27I.js} +6 -6
- package/dist/{chunk-CE7HOORS.js → chunk-NEJCZABQ.js} +9 -9
- package/dist/{chunk-4FZUZ453.js → chunk-NK6S7ZMB.js} +11 -11
- package/dist/{chunk-BZFQBI2R.js → chunk-NVRVOTWZ.js} +7 -7
- package/dist/{chunk-AJTGTGOC.js → chunk-OOM522XP.js} +2 -2
- package/dist/{chunk-2OPXQ3HE.js → chunk-OPIVSYLN.js} +7 -7
- package/dist/{chunk-R4YNFO4T.js → chunk-OUDDTPEN.js} +2 -2
- package/dist/{chunk-NPBQ4C7M.js → chunk-OW2QNTK3.js} +7 -7
- package/dist/{chunk-B4HDNKVU.js → chunk-P2H3VCIB.js} +6 -6
- package/dist/{chunk-J5NSJGZH.js → chunk-P4DJ5F6Z.js} +4 -4
- package/dist/{chunk-2N3DY4VJ.js → chunk-PAUEQXYG.js} +7 -7
- package/dist/chunk-PO2PBAHW.js +10 -0
- package/dist/chunk-PO2PBAHW.js.map +1 -0
- package/dist/{chunk-74CWHYZA.js → chunk-Q2FDF2AB.js} +7 -7
- package/dist/{chunk-UIWGBVJI.js → chunk-QLNAAZJX.js} +4 -4
- package/dist/{chunk-BXHOQTLL.js → chunk-QLOYGKKM.js} +4 -4
- package/dist/{chunk-EA2OSGFZ.js → chunk-R5UDNKV2.js} +9 -9
- package/dist/{chunk-ADYJTATU.js → chunk-RBU2TRYY.js} +12 -12
- package/dist/{chunk-M2OFGXKX.js → chunk-RRC4WFG3.js} +2 -2
- package/dist/{chunk-UL6JYNEG.js → chunk-RWJUXAFY.js} +4 -4
- package/dist/{chunk-KO3V7KB6.js → chunk-S4MEMFKG.js} +2 -2
- package/dist/{chunk-D4US4T4T.js → chunk-SINRU2A6.js} +5 -5
- package/dist/{chunk-HO3ZU6U5.js → chunk-SQ3FYBJT.js} +5 -5
- package/dist/{chunk-QAFGOQTR.js → chunk-TQTCT7DC.js} +6 -6
- package/dist/{chunk-5YFN6IV4.js → chunk-U7HF53KK.js} +9 -9
- package/dist/{chunk-NLHVQJQ2.js → chunk-USGOLLYO.js} +27 -2
- package/dist/chunk-USGOLLYO.js.map +1 -0
- package/dist/{chunk-35E2WUIX.js → chunk-USL6PICI.js} +5 -5
- package/dist/{chunk-UHDZOX4S.js → chunk-UXH2XIB2.js} +4 -4
- package/dist/{chunk-YLDG4Y52.js → chunk-V7KAHLW2.js} +5 -5
- package/dist/{chunk-JEGY3OLE.js → chunk-VBXZIIUA.js} +6 -6
- package/dist/{chunk-AQVIQODP.js → chunk-VK6INFSB.js} +4 -4
- package/dist/{chunk-DPX24TVC.js → chunk-VVWQZK5L.js} +10 -10
- package/dist/{chunk-SM4SJYFT.js → chunk-WLKK5L3P.js} +8 -8
- package/dist/chunk-WTS75RUC.js +1 -0
- package/dist/{chunk-FTVHVY7L.js → chunk-WYHDQK2S.js} +10 -10
- package/dist/{chunk-IUULKM4U.js → chunk-X3TBEGPA.js} +10 -10
- package/dist/{chunk-PILMEQHD.js → chunk-XWHBJY5V.js} +7 -7
- package/dist/{chunk-PWORNPPB.js → chunk-ZGTGEBQX.js} +2 -2
- package/dist/context/dynamic-form-context.cjs +55 -2
- package/dist/context/dynamic-form-context.cjs.map +1 -1
- package/dist/context/dynamic-form-context.js +6 -4
- package/dist/context/index.cjs +55 -2
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.js +9 -7
- package/dist/index.cjs +59 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +180 -172
- package/dist/molecules/autocomplete-textfield.cjs +35 -1
- package/dist/molecules/autocomplete-textfield.cjs.map +1 -1
- package/dist/molecules/autocomplete-textfield.js +5 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +18 -16
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +6 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +11 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +6 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +7 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +7 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +7 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +7 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +6 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +22 -20
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +8 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +5 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +5 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +24 -22
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +55 -2
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +28 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +5 -3
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +6 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +4 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +11 -9
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +35 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +8 -6
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +55 -2
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +6 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.cjs +55 -2
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +39 -37
- package/dist/molecules/date-picker/date-picker-button.cjs +55 -2
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +9 -7
- package/dist/molecules/date-picker/index.cjs +55 -2
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +8 -6
- package/dist/molecules/description-json-render.cjs +37 -1
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +7 -5
- package/dist/molecules/download-card.cjs +35 -1
- package/dist/molecules/download-card.cjs.map +1 -1
- package/dist/molecules/download-card.js +5 -3
- package/dist/molecules/dynamic-field.cjs +55 -2
- package/dist/molecules/dynamic-field.cjs.map +1 -1
- package/dist/molecules/dynamic-field.js +10 -8
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +35 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +7 -5
- package/dist/molecules/dynamic-form-editor-field-list-panel.cjs +35 -1
- package/dist/molecules/dynamic-form-editor-field-list-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-list-panel.js +5 -3
- package/dist/molecules/dynamic-form-editor-issues-panel.cjs +35 -1
- package/dist/molecules/dynamic-form-editor-issues-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-issues-panel.js +5 -3
- package/dist/molecules/dynamic-form-editor-preview-panel.cjs +55 -2
- package/dist/molecules/dynamic-form-editor-preview-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-preview-panel.js +13 -11
- package/dist/molecules/dynamic-form-editor.cjs +55 -2
- package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor.js +18 -16
- package/dist/molecules/dynamic-form.cjs +55 -2
- package/dist/molecules/dynamic-form.cjs.map +1 -1
- package/dist/molecules/dynamic-form.js +11 -9
- package/dist/molecules/expand-table/index.cjs +35 -1
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +6 -4
- package/dist/molecules/force-refresh.cjs +35 -1
- package/dist/molecules/force-refresh.cjs.map +1 -1
- package/dist/molecules/force-refresh.js +5 -3
- package/dist/molecules/form/form.cjs +55 -2
- package/dist/molecules/form/form.cjs.map +1 -1
- package/dist/molecules/form/form.js +5 -3
- package/dist/molecules/form/index.cjs +55 -2
- package/dist/molecules/form/index.cjs.map +1 -1
- package/dist/molecules/form/index.js +5 -3
- package/dist/molecules/ghost-post.cjs +35 -1
- package/dist/molecules/ghost-post.cjs.map +1 -1
- package/dist/molecules/ghost-post.js +6 -4
- package/dist/molecules/index.cjs +55 -2
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +86 -84
- package/dist/molecules/learning-post.cjs +55 -2
- package/dist/molecules/learning-post.cjs.map +1 -1
- package/dist/molecules/learning-post.js +7 -5
- package/dist/molecules/navigation.cjs +35 -1
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +5 -3
- package/dist/molecules/one-on-one-guide-list.cjs +55 -2
- package/dist/molecules/one-on-one-guide-list.cjs.map +1 -1
- package/dist/molecules/one-on-one-guide-list.js +7 -5
- package/dist/molecules/stepper.cjs +35 -1
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +6 -4
- package/dist/molecules/tag-selector.cjs +35 -1
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +8 -6
- package/dist/molecules/time-select.js +5 -3
- package/dist/molecules/training-info-guideline.cjs +55 -2
- package/dist/molecules/training-info-guideline.cjs.map +1 -1
- package/dist/molecules/training-info-guideline.js +9 -7
- package/dist/utils/clamp-style.cjs +37 -0
- package/dist/utils/clamp-style.cjs.map +1 -0
- package/dist/utils/clamp-style.d.cts +13 -0
- package/dist/utils/clamp-style.d.ts +13 -0
- package/dist/utils/clamp-style.js +8 -0
- package/dist/utils/clamp-style.js.map +1 -0
- package/dist/utils/index.cjs +19 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +14 -6
- package/dist/utils/mono-style.cjs +34 -0
- package/dist/utils/mono-style.cjs.map +1 -0
- package/dist/utils/mono-style.d.cts +12 -0
- package/dist/utils/mono-style.d.ts +12 -0
- package/dist/utils/mono-style.js +8 -0
- package/dist/utils/mono-style.js.map +1 -0
- package/package.json +1 -1
- package/src/atoms/heading.tsx +22 -1
- package/src/atoms/typo.tsx +22 -1
- package/src/utils/clamp-style.ts +17 -0
- package/src/utils/index.ts +3 -1
- package/src/utils/mono-style.ts +13 -0
- package/dist/chunk-GR4PG6HY.js.map +0 -1
- package/dist/chunk-NLHVQJQ2.js.map +0 -1
- package/dist/chunk-OLJN3WXR.js +0 -1
- /package/dist/{chunk-W5EYMVXS.js.map → chunk-2M3UFZUD.js.map} +0 -0
- /package/dist/{chunk-YSZIV3CU.js.map → chunk-3DZIX4CE.js.map} +0 -0
- /package/dist/{chunk-KJZIKOZN.js.map → chunk-47QYYEMG.js.map} +0 -0
- /package/dist/{chunk-P7YWDJNW.js.map → chunk-4GH4R4VJ.js.map} +0 -0
- /package/dist/{chunk-AV4A2DYD.js.map → chunk-5IGBFB67.js.map} +0 -0
- /package/dist/{chunk-3M2R4R2V.js.map → chunk-5RIAIE2J.js.map} +0 -0
- /package/dist/{chunk-VITMX6BM.js.map → chunk-64DSUMXA.js.map} +0 -0
- /package/dist/{chunk-RFNUDAXX.js.map → chunk-6DWUGXSY.js.map} +0 -0
- /package/dist/{chunk-AVFFTSKQ.js.map → chunk-6OT5OYGM.js.map} +0 -0
- /package/dist/{chunk-7SX3S6P3.js.map → chunk-74PR3ZWJ.js.map} +0 -0
- /package/dist/{chunk-M3AG4NSZ.js.map → chunk-75EY7LBP.js.map} +0 -0
- /package/dist/{chunk-MMLVZWMD.js.map → chunk-AELKCD6B.js.map} +0 -0
- /package/dist/{chunk-EVERKQW4.js.map → chunk-AHYOAFOU.js.map} +0 -0
- /package/dist/{chunk-4BP63QT6.js.map → chunk-AT5PAJLW.js.map} +0 -0
- /package/dist/{chunk-CNQFW2WR.js.map → chunk-C4INJWFV.js.map} +0 -0
- /package/dist/{chunk-HGRKKNGU.js.map → chunk-C6HO3IGE.js.map} +0 -0
- /package/dist/{chunk-SEUOHWYL.js.map → chunk-CBYIPRND.js.map} +0 -0
- /package/dist/{chunk-GVOZ4OL4.js.map → chunk-CGLDFUOY.js.map} +0 -0
- /package/dist/{chunk-466DYMJ3.js.map → chunk-CUS3ORMD.js.map} +0 -0
- /package/dist/{chunk-FW2QU4JO.js.map → chunk-D4U2ZV2A.js.map} +0 -0
- /package/dist/{chunk-XKG5IOSO.js.map → chunk-DPMDQA3O.js.map} +0 -0
- /package/dist/{chunk-EYDTE4R3.js.map → chunk-EJXZXUD2.js.map} +0 -0
- /package/dist/{chunk-E6GCU5IQ.js.map → chunk-FAL6S2XK.js.map} +0 -0
- /package/dist/{chunk-HOFWTFCW.js.map → chunk-G3KQN32M.js.map} +0 -0
- /package/dist/{chunk-BRRMEZNQ.js.map → chunk-GE4M5GOQ.js.map} +0 -0
- /package/dist/{chunk-XLJQHI62.js.map → chunk-GNB4A34H.js.map} +0 -0
- /package/dist/{chunk-2ME5TSVO.js.map → chunk-IRFNKOKQ.js.map} +0 -0
- /package/dist/{chunk-QRYLRCA6.js.map → chunk-ISSUGCCY.js.map} +0 -0
- /package/dist/{chunk-UK73NZQI.js.map → chunk-JCZXPONS.js.map} +0 -0
- /package/dist/{chunk-CQSM6JCO.js.map → chunk-K3Q4XLCN.js.map} +0 -0
- /package/dist/{chunk-FAZ6MJW2.js.map → chunk-K4RZTENM.js.map} +0 -0
- /package/dist/{chunk-SYX35B5E.js.map → chunk-KDS7OQOY.js.map} +0 -0
- /package/dist/{chunk-DD3FPRHB.js.map → chunk-KLJVIEFW.js.map} +0 -0
- /package/dist/{chunk-GD7NQAMP.js.map → chunk-KQ3ME6XY.js.map} +0 -0
- /package/dist/{chunk-CFZM5JE4.js.map → chunk-LAGJDIVU.js.map} +0 -0
- /package/dist/{chunk-FBYJMCIN.js.map → chunk-LK2H4QTJ.js.map} +0 -0
- /package/dist/{chunk-5W6GSZGX.js.map → chunk-MQKIIIBW.js.map} +0 -0
- /package/dist/{chunk-WVMXH4DX.js.map → chunk-N3FMP27I.js.map} +0 -0
- /package/dist/{chunk-CE7HOORS.js.map → chunk-NEJCZABQ.js.map} +0 -0
- /package/dist/{chunk-4FZUZ453.js.map → chunk-NK6S7ZMB.js.map} +0 -0
- /package/dist/{chunk-BZFQBI2R.js.map → chunk-NVRVOTWZ.js.map} +0 -0
- /package/dist/{chunk-AJTGTGOC.js.map → chunk-OOM522XP.js.map} +0 -0
- /package/dist/{chunk-2OPXQ3HE.js.map → chunk-OPIVSYLN.js.map} +0 -0
- /package/dist/{chunk-R4YNFO4T.js.map → chunk-OUDDTPEN.js.map} +0 -0
- /package/dist/{chunk-NPBQ4C7M.js.map → chunk-OW2QNTK3.js.map} +0 -0
- /package/dist/{chunk-B4HDNKVU.js.map → chunk-P2H3VCIB.js.map} +0 -0
- /package/dist/{chunk-J5NSJGZH.js.map → chunk-P4DJ5F6Z.js.map} +0 -0
- /package/dist/{chunk-2N3DY4VJ.js.map → chunk-PAUEQXYG.js.map} +0 -0
- /package/dist/{chunk-74CWHYZA.js.map → chunk-Q2FDF2AB.js.map} +0 -0
- /package/dist/{chunk-UIWGBVJI.js.map → chunk-QLNAAZJX.js.map} +0 -0
- /package/dist/{chunk-BXHOQTLL.js.map → chunk-QLOYGKKM.js.map} +0 -0
- /package/dist/{chunk-EA2OSGFZ.js.map → chunk-R5UDNKV2.js.map} +0 -0
- /package/dist/{chunk-ADYJTATU.js.map → chunk-RBU2TRYY.js.map} +0 -0
- /package/dist/{chunk-M2OFGXKX.js.map → chunk-RRC4WFG3.js.map} +0 -0
- /package/dist/{chunk-UL6JYNEG.js.map → chunk-RWJUXAFY.js.map} +0 -0
- /package/dist/{chunk-KO3V7KB6.js.map → chunk-S4MEMFKG.js.map} +0 -0
- /package/dist/{chunk-D4US4T4T.js.map → chunk-SINRU2A6.js.map} +0 -0
- /package/dist/{chunk-HO3ZU6U5.js.map → chunk-SQ3FYBJT.js.map} +0 -0
- /package/dist/{chunk-QAFGOQTR.js.map → chunk-TQTCT7DC.js.map} +0 -0
- /package/dist/{chunk-5YFN6IV4.js.map → chunk-U7HF53KK.js.map} +0 -0
- /package/dist/{chunk-35E2WUIX.js.map → chunk-USL6PICI.js.map} +0 -0
- /package/dist/{chunk-UHDZOX4S.js.map → chunk-UXH2XIB2.js.map} +0 -0
- /package/dist/{chunk-YLDG4Y52.js.map → chunk-V7KAHLW2.js.map} +0 -0
- /package/dist/{chunk-JEGY3OLE.js.map → chunk-VBXZIIUA.js.map} +0 -0
- /package/dist/{chunk-AQVIQODP.js.map → chunk-VK6INFSB.js.map} +0 -0
- /package/dist/{chunk-DPX24TVC.js.map → chunk-VVWQZK5L.js.map} +0 -0
- /package/dist/{chunk-SM4SJYFT.js.map → chunk-WLKK5L3P.js.map} +0 -0
- /package/dist/{chunk-OLJN3WXR.js.map → chunk-WTS75RUC.js.map} +0 -0
- /package/dist/{chunk-FTVHVY7L.js.map → chunk-WYHDQK2S.js.map} +0 -0
- /package/dist/{chunk-IUULKM4U.js.map → chunk-X3TBEGPA.js.map} +0 -0
- /package/dist/{chunk-PILMEQHD.js.map → chunk-XWHBJY5V.js.map} +0 -0
- /package/dist/{chunk-PWORNPPB.js.map → chunk-ZGTGEBQX.js.map} +0 -0
package/dist/atoms/index.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import "../chunk-HBF6IIVZ.js";
|
|
2
|
+
import {
|
|
3
|
+
Form,
|
|
4
|
+
FormItem
|
|
5
|
+
} from "../chunk-AELKCD6B.js";
|
|
6
|
+
import {
|
|
7
|
+
TextArea
|
|
8
|
+
} from "../chunk-5XYPLDI5.js";
|
|
9
|
+
import {
|
|
10
|
+
TextField
|
|
11
|
+
} from "../chunk-6NPTJBFE.js";
|
|
2
12
|
import {
|
|
3
13
|
ToastContainer,
|
|
4
14
|
toast
|
|
5
15
|
} from "../chunk-LNPFV5BJ.js";
|
|
16
|
+
import {
|
|
17
|
+
Select
|
|
18
|
+
} from "../chunk-YXMB4MCM.js";
|
|
19
|
+
import {
|
|
20
|
+
Separator
|
|
21
|
+
} from "../chunk-HYITAA4J.js";
|
|
6
22
|
import {
|
|
7
23
|
Skeleton
|
|
8
24
|
} from "../chunk-5H3YPCZK.js";
|
|
@@ -22,11 +38,11 @@ import {
|
|
|
22
38
|
Tabs
|
|
23
39
|
} from "../chunk-CGDBUDY3.js";
|
|
24
40
|
import {
|
|
25
|
-
|
|
26
|
-
} from "../chunk-
|
|
41
|
+
Progress
|
|
42
|
+
} from "../chunk-TNNF5Q62.js";
|
|
27
43
|
import {
|
|
28
|
-
|
|
29
|
-
} from "../chunk-
|
|
44
|
+
Quote
|
|
45
|
+
} from "../chunk-YO3BQW6S.js";
|
|
30
46
|
import {
|
|
31
47
|
RadioCards
|
|
32
48
|
} from "../chunk-DX3DLP5Z.js";
|
|
@@ -45,12 +61,6 @@ import {
|
|
|
45
61
|
import {
|
|
46
62
|
SegmentedControl
|
|
47
63
|
} from "../chunk-IT7ZTP7F.js";
|
|
48
|
-
import {
|
|
49
|
-
Select
|
|
50
|
-
} from "../chunk-YXMB4MCM.js";
|
|
51
|
-
import {
|
|
52
|
-
Separator
|
|
53
|
-
} from "../chunk-HYITAA4J.js";
|
|
54
64
|
import {
|
|
55
65
|
Inset
|
|
56
66
|
} from "../chunk-XQOL7UBI.js";
|
|
@@ -63,31 +73,41 @@ import {
|
|
|
63
73
|
import {
|
|
64
74
|
List,
|
|
65
75
|
useList
|
|
66
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-USL6PICI.js";
|
|
67
77
|
import {
|
|
68
78
|
Pagination
|
|
69
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-RWJUXAFY.js";
|
|
70
80
|
import {
|
|
71
81
|
Popover
|
|
72
82
|
} from "../chunk-RMW3MQF5.js";
|
|
73
83
|
import {
|
|
74
|
-
|
|
75
|
-
} from "../chunk-
|
|
84
|
+
DropdownMenu
|
|
85
|
+
} from "../chunk-T73HHR3I.js";
|
|
76
86
|
import {
|
|
77
|
-
|
|
78
|
-
} from "../chunk-
|
|
87
|
+
EllipsisTooltip
|
|
88
|
+
} from "../chunk-MQKIIIBW.js";
|
|
89
|
+
import {
|
|
90
|
+
Tooltip
|
|
91
|
+
} from "../chunk-2M3UFZUD.js";
|
|
92
|
+
import "../chunk-PT57HCAI.js";
|
|
79
93
|
import {
|
|
80
94
|
Em
|
|
81
95
|
} from "../chunk-2DZ2Y3JI.js";
|
|
82
96
|
import {
|
|
83
97
|
FieldErrorWrapper
|
|
84
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-GNB4A34H.js";
|
|
85
99
|
import {
|
|
86
100
|
Grid
|
|
87
101
|
} from "../chunk-EGEQY3KT.js";
|
|
88
102
|
import {
|
|
89
103
|
HoverCard
|
|
90
104
|
} from "../chunk-24PX34TH.js";
|
|
105
|
+
import {
|
|
106
|
+
CheckboxGroup
|
|
107
|
+
} from "../chunk-WG5OK3YN.js";
|
|
108
|
+
import {
|
|
109
|
+
Checkbox
|
|
110
|
+
} from "../chunk-ZCGH6TJ3.js";
|
|
91
111
|
import {
|
|
92
112
|
Code
|
|
93
113
|
} from "../chunk-UFWDQGOK.js";
|
|
@@ -102,7 +122,10 @@ import {
|
|
|
102
122
|
} from "../chunk-ZPUNTAVI.js";
|
|
103
123
|
import {
|
|
104
124
|
Dialog
|
|
105
|
-
} from "../chunk-
|
|
125
|
+
} from "../chunk-KDS7OQOY.js";
|
|
126
|
+
import {
|
|
127
|
+
Heading
|
|
128
|
+
} from "../chunk-USGOLLYO.js";
|
|
106
129
|
import {
|
|
107
130
|
Content,
|
|
108
131
|
Drawer,
|
|
@@ -116,17 +139,20 @@ import {
|
|
|
116
139
|
} from "../chunk-7RJYF5L3.js";
|
|
117
140
|
import "../chunk-HF6GNDPV.js";
|
|
118
141
|
import {
|
|
119
|
-
|
|
120
|
-
} from "../chunk-
|
|
121
|
-
import {
|
|
122
|
-
EllipsisTooltip
|
|
123
|
-
} from "../chunk-5W6GSZGX.js";
|
|
142
|
+
Blockquote
|
|
143
|
+
} from "../chunk-UFRB2BVD.js";
|
|
124
144
|
import {
|
|
125
|
-
|
|
126
|
-
} from "../chunk-
|
|
145
|
+
Box
|
|
146
|
+
} from "../chunk-4Y5BEXVN.js";
|
|
127
147
|
import {
|
|
128
148
|
BulletText
|
|
129
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-75EY7LBP.js";
|
|
150
|
+
import {
|
|
151
|
+
Typo
|
|
152
|
+
} from "../chunk-L4QQGIYQ.js";
|
|
153
|
+
import "../chunk-LDBWASUA.js";
|
|
154
|
+
import "../chunk-PO2PBAHW.js";
|
|
155
|
+
import "../chunk-36W7VD2Z.js";
|
|
130
156
|
import {
|
|
131
157
|
Flex
|
|
132
158
|
} from "../chunk-25HMMI7R.js";
|
|
@@ -144,34 +170,6 @@ import {
|
|
|
144
170
|
import {
|
|
145
171
|
CheckboxCards
|
|
146
172
|
} from "../chunk-JETG3WEI.js";
|
|
147
|
-
import {
|
|
148
|
-
CheckboxGroup
|
|
149
|
-
} from "../chunk-WG5OK3YN.js";
|
|
150
|
-
import {
|
|
151
|
-
Checkbox
|
|
152
|
-
} from "../chunk-ZCGH6TJ3.js";
|
|
153
|
-
import {
|
|
154
|
-
AlertDialog
|
|
155
|
-
} from "../chunk-GI4AN2IZ.js";
|
|
156
|
-
import "../chunk-WYWM2HSZ.js";
|
|
157
|
-
import {
|
|
158
|
-
AspectRatio
|
|
159
|
-
} from "../chunk-EAXUQEO5.js";
|
|
160
|
-
import {
|
|
161
|
-
AutoSizingInput
|
|
162
|
-
} from "../chunk-6SYFG6YY.js";
|
|
163
|
-
import {
|
|
164
|
-
Avatar
|
|
165
|
-
} from "../chunk-GPZXD762.js";
|
|
166
|
-
import {
|
|
167
|
-
Badge
|
|
168
|
-
} from "../chunk-BK74U562.js";
|
|
169
|
-
import {
|
|
170
|
-
Blockquote
|
|
171
|
-
} from "../chunk-UFRB2BVD.js";
|
|
172
|
-
import {
|
|
173
|
-
Box
|
|
174
|
-
} from "../chunk-4Y5BEXVN.js";
|
|
175
173
|
import "../chunk-VOME2TE7.js";
|
|
176
174
|
import "../chunk-JVXATVAC.js";
|
|
177
175
|
import "../chunk-B3VSXNTH.js";
|
|
@@ -189,18 +187,22 @@ import "../chunk-YSYJCYHY.js";
|
|
|
189
187
|
import "../chunk-5OM2H6RI.js";
|
|
190
188
|
import "../chunk-ZUYCXCPW.js";
|
|
191
189
|
import "../chunk-YVFNJE4E.js";
|
|
192
|
-
import "../chunk-PT57HCAI.js";
|
|
193
190
|
import {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
AlertDialog
|
|
192
|
+
} from "../chunk-GI4AN2IZ.js";
|
|
193
|
+
import "../chunk-WYWM2HSZ.js";
|
|
197
194
|
import {
|
|
198
|
-
|
|
199
|
-
} from "../chunk-
|
|
195
|
+
AspectRatio
|
|
196
|
+
} from "../chunk-EAXUQEO5.js";
|
|
200
197
|
import {
|
|
201
|
-
|
|
202
|
-
} from "../chunk-
|
|
203
|
-
import
|
|
198
|
+
AutoSizingInput
|
|
199
|
+
} from "../chunk-6SYFG6YY.js";
|
|
200
|
+
import {
|
|
201
|
+
Avatar
|
|
202
|
+
} from "../chunk-GPZXD762.js";
|
|
203
|
+
import {
|
|
204
|
+
Badge
|
|
205
|
+
} from "../chunk-BK74U562.js";
|
|
204
206
|
import "../chunk-VFQD57ZY.js";
|
|
205
207
|
import "../chunk-CRTRMMJ7.js";
|
|
206
208
|
export {
|
package/dist/atoms/list.cjs
CHANGED
|
@@ -79,6 +79,21 @@ var import_themes = require("@radix-ui/themes");
|
|
|
79
79
|
var import_clsx = require("clsx");
|
|
80
80
|
var import_react = require("react");
|
|
81
81
|
|
|
82
|
+
// src/utils/clamp-style.ts
|
|
83
|
+
var clampStyle = (lines) => ({
|
|
84
|
+
display: "-webkit-box",
|
|
85
|
+
WebkitBoxOrient: "vertical",
|
|
86
|
+
WebkitLineClamp: lines,
|
|
87
|
+
lineClamp: lines,
|
|
88
|
+
overflow: "hidden"
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// src/utils/mono-style.ts
|
|
92
|
+
var MONO_STYLE = {
|
|
93
|
+
fontFamily: 'var(--code-font-family, ui-monospace, "SF Mono", monospace)',
|
|
94
|
+
fontVariantNumeric: "tabular-nums"
|
|
95
|
+
};
|
|
96
|
+
|
|
82
97
|
// src/utils/resolve-color.ts
|
|
83
98
|
var SEMANTIC_COLOR_MAP = {
|
|
84
99
|
error: "red",
|
|
@@ -106,7 +121,25 @@ var resolveColor = (color) => {
|
|
|
106
121
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
107
122
|
var Typo = (0, import_react.forwardRef)(
|
|
108
123
|
(props, ref) => {
|
|
109
|
-
const _a = props, {
|
|
124
|
+
const _a = props, {
|
|
125
|
+
size,
|
|
126
|
+
variant,
|
|
127
|
+
children,
|
|
128
|
+
color,
|
|
129
|
+
className,
|
|
130
|
+
mono,
|
|
131
|
+
clamp,
|
|
132
|
+
style
|
|
133
|
+
} = _a, rest = __objRest(_a, [
|
|
134
|
+
"size",
|
|
135
|
+
"variant",
|
|
136
|
+
"children",
|
|
137
|
+
"color",
|
|
138
|
+
"className",
|
|
139
|
+
"mono",
|
|
140
|
+
"clamp",
|
|
141
|
+
"style"
|
|
142
|
+
]);
|
|
110
143
|
const { color: radixColor, className: colorClassName } = (0, import_react.useMemo)(
|
|
111
144
|
() => resolveColor(color),
|
|
112
145
|
[color]
|
|
@@ -136,6 +169,7 @@ var Typo = (0, import_react.forwardRef)(
|
|
|
136
169
|
color: radixColor,
|
|
137
170
|
ref,
|
|
138
171
|
size: radixSize,
|
|
172
|
+
style: __spreadValues(__spreadValues(__spreadValues({}, mono ? MONO_STYLE : null), clamp ? clampStyle(clamp) : null), style),
|
|
139
173
|
children
|
|
140
174
|
})
|
|
141
175
|
);
|
package/dist/atoms/list.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/list.tsx","../../src/utils/map-with-responsive.ts","../../src/atoms/typo.tsx","../../src/utils/resolve-color.ts","../../src/atoms/flex.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { clsx } from 'clsx';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\n\nexport interface ListRootProps {\n variant?: 'ol' | 'ul';\n size?: Responsive<'small' | 'large'>;\n children?: React.ReactNode;\n preSpace?: 'regular' | 'small';\n className?: string;\n style?: React.CSSProperties;\n}\n\nfunction Root(props: ListRootProps): React.ReactElement {\n const {\n variant,\n size = 'large',\n children,\n preSpace,\n className: propsClassName,\n ...rest\n } = props;\n const Comp = variant === 'ol' ? 'ol' : 'ul';\n\n const className = useMemo(\n () =>\n clsx(\n 'tipp-list',\n {\n 'pre-space-small': preSpace === 'small',\n },\n propsClassName\n ),\n [preSpace, propsClassName]\n );\n\n return (\n <ListContext.Provider value={{ size }}>\n <Flex asChild direction=\"column\" gap=\"1\" {...rest} className={className}>\n <Comp>{children}</Comp>\n </Flex>\n </ListContext.Provider>\n );\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode;\n}\n\nfunction Item(props: ListItemProps): React.ReactElement {\n const { children } = props;\n const { size } = useList();\n\n const variant = useMemo(() => {\n return mapWithResponsive({\n value: size,\n mapFn: (sizeValue) => {\n return sizeValue === 'small' ? 'caption' : 'body';\n },\n });\n }, [size]);\n\n return (\n <Typo asChild variant={variant}>\n <li>{children}</li>\n </Typo>\n );\n}\n\nconst ListContext = createContext<{ size: Responsive<'small' | 'large'> }>({\n size: 'large',\n});\n\nexport function useList(): { size: Responsive<'small' | 'large'> } {\n return useContext(ListContext);\n}\n\nexport const List = {\n Root,\n Item,\n};\n","import type { Breakpoint, Responsive } from \"@radix-ui/themes/props\";\n\nexport const mapWithResponsive = <T extends string,K extends string>(\n args: {value: Responsive<T>, mapFn: (value?:T)=>K |undefined}\n): Responsive<K> | undefined => {\n const {value, mapFn} = args;\n if(typeof value === 'string'){\n return mapFn(value);\n };\n \n if(typeof value === 'object'){\n const newObj: Partial<Record<Breakpoint, K>> = {};\n let key: Breakpoint;\n for(key in value){\n newObj[key] = mapFn(value[key]);\n }\n return newObj;\n }\n return value;\n};\n","import type { TextProps as RadixTextProps } from '@radix-ui/themes';\nimport type { Responsive } from '@radix-ui/themes/props';\nimport { Text as RadixText } from '@radix-ui/themes';\nimport { clsx } from 'clsx';\nimport React, { useMemo, forwardRef } from 'react';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport {\n resolveColor,\n type DistributiveOmit,\n type UiColor,\n} from '../utils/resolve-color';\n\nexport type TypoProps = DistributiveOmit<RadixTextProps, 'color'> & {\n variant?: Responsive<'body' | 'caption' | 'subtitle'>;\n color?: UiColor;\n};\n\nexport const Typo = forwardRef<HTMLSpanElement, TypoProps>(\n (props: TypoProps, ref): React.ReactNode => {\n const { size, variant, children, color, className, ...rest } = props;\n\n const { color: radixColor, className: colorClassName } = useMemo(\n () => resolveColor(color),\n [color]\n );\n\n const radixSize = useMemo<RadixTextProps['size']>(() => {\n if (size !== undefined) return size;\n\n if (variant === undefined) return '2';\n\n return mapWithResponsive({\n value: variant,\n mapFn: (variantValue?: 'body' | 'caption' | 'subtitle') => {\n switch (variantValue) {\n case 'caption':\n return '1';\n case 'subtitle':\n return '3';\n case 'body':\n default:\n return '2';\n }\n },\n });\n }, [size, variant]);\n\n return (\n <RadixText\n {...rest}\n className={clsx(colorClassName, className)}\n color={radixColor}\n ref={ref}\n size={radixSize}\n >\n {children}\n </RadixText>\n );\n }\n);\n\nTypo.displayName = 'Typo';\n","import type { BadgeProps as RadixBadgeProps } from '@radix-ui/themes';\n\n/**\n * Radix Themes가 제공하는 accent color union (gray, red, blue, ...).\n * 모든 color 지원 컴포넌트가 동일한 union을 공유하므로 Badge에서 파생한다.\n */\nexport type RadixColor = NonNullable<RadixBadgeProps['color']>;\n\n/** TIPP 시맨틱 color 별칭. */\nexport type SemanticColor = 'error' | 'accent' | 'neutral' | 'success';\n\n/**\n * Radix accent에 대응이 없어 CSS accent override로 처리하는 커스텀 color.\n * (예: black — `style/black.scss`의 `.tipp-accent-black` 참고)\n */\nexport type CustomColor = 'black';\n\n/** color 지원 컴포넌트가 노출하는 통합 color 타입. */\nexport type UiColor = RadixColor | SemanticColor | CustomColor;\n\n/**\n * union 각 멤버에 분배되는 Omit.\n * Radix의 polymorphic 컴포넌트 props(Text/Heading/Link 등 `as`로 분기되는 union)에서\n * 키를 제거할 때 일반 Omit은 union을 단일 객체로 합쳐 `as` 분기를 무너뜨리므로 이 타입을 쓴다.\n */\nexport type DistributiveOmit<T, K extends PropertyKey> = T extends unknown\n ? Omit<T, K>\n : never;\n\nconst SEMANTIC_COLOR_MAP: Record<SemanticColor, RadixColor | undefined> = {\n error: 'red',\n neutral: 'gray',\n success: 'green',\n accent: undefined,\n};\n\ninterface CustomColorConfig {\n /**\n * accent override를 적용할 className.\n */\n className: string;\n /**\n * Radix에 넘길 fallback color.\n * Text/Heading/Link 등은 `color` prop이 있어야 `data-accent-color`가 붙어\n * `--accent-*`를 참조하므로, 유효한 Radix color를 함께 넘긴 뒤 className으로\n * `--accent-*`를 덮어쓴다. (Badge/Button은 prop 없이도 accent 기반이라 무해)\n */\n fallbackColor: RadixColor;\n}\n\nconst CUSTOM_COLOR_MAP: Record<CustomColor, CustomColorConfig> = {\n black: { className: 'tipp-accent-black', fallbackColor: 'gray' },\n};\n\nconst isSemanticColor = (color?: UiColor): color is SemanticColor =>\n color !== undefined && color in SEMANTIC_COLOR_MAP;\n\nconst isCustomColor = (color?: UiColor): color is CustomColor =>\n color !== undefined && color in CUSTOM_COLOR_MAP;\n\nexport interface ResolvedColor {\n /** Radix 컴포넌트의 `color` prop에 그대로 전달할 값. custom color면 undefined. */\n color?: RadixColor;\n /** accent override를 적용하기 위해 요소에 붙일 className. */\n className?: string;\n}\n\n/**\n * 통합 color 입력을 Radix color prop과 className으로 정규화한다.\n *\n * - custom color(black 등): Radix color는 비우고 accent override className을 반환\n * - semantic color(error/neutral/success/accent): 대응 Radix color로 변환\n * - Radix color: 그대로 pass-through\n */\nexport const resolveColor = (color?: UiColor): ResolvedColor => {\n if (isCustomColor(color)) {\n const { className, fallbackColor } = CUSTOM_COLOR_MAP[color];\n return { color: fallbackColor, className };\n }\n\n if (isSemanticColor(color)) {\n return { color: SEMANTIC_COLOR_MAP[color] };\n }\n\n return { color };\n};\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,gBAA0D;AAC1D,IAAAC,eAAqB;;;ACAd,IAAM,oBAAoB,CAChC,SAC+B;AAC9B,QAAM,EAAC,OAAO,MAAK,IAAI;AACvB,MAAG,OAAO,UAAU,UAAS;AAC3B,WAAO,MAAM,KAAK;AAAA,EACpB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AAO,CAAC,cAAc;AACpB,eAAO,cAAc,UAAU,YAAY;AAAA,MAC7C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,CAAC;AAET,SACE,6CAAC,QAAK,SAAO,MAAC,SACZ,uDAAC,QAAI,UAAS,GAChB;AAEJ;AAEA,IAAM,kBAAc,6BAAuD;AAAA,EACzE,MAAM;AACR,CAAC;AAEM,SAAS,UAAmD;AACjE,aAAO,0BAAW,WAAW;AAC/B;AAEO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":["import_react","import_clsx","RadixText","import_themes","import_jsx_runtime"]}
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/list.tsx","../../src/utils/map-with-responsive.ts","../../src/atoms/typo.tsx","../../src/utils/clamp-style.ts","../../src/utils/mono-style.ts","../../src/utils/resolve-color.ts","../../src/atoms/flex.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { clsx } from 'clsx';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\n\nexport interface ListRootProps {\n variant?: 'ol' | 'ul';\n size?: Responsive<'small' | 'large'>;\n children?: React.ReactNode;\n preSpace?: 'regular' | 'small';\n className?: string;\n style?: React.CSSProperties;\n}\n\nfunction Root(props: ListRootProps): React.ReactElement {\n const {\n variant,\n size = 'large',\n children,\n preSpace,\n className: propsClassName,\n ...rest\n } = props;\n const Comp = variant === 'ol' ? 'ol' : 'ul';\n\n const className = useMemo(\n () =>\n clsx(\n 'tipp-list',\n {\n 'pre-space-small': preSpace === 'small',\n },\n propsClassName\n ),\n [preSpace, propsClassName]\n );\n\n return (\n <ListContext.Provider value={{ size }}>\n <Flex asChild direction=\"column\" gap=\"1\" {...rest} className={className}>\n <Comp>{children}</Comp>\n </Flex>\n </ListContext.Provider>\n );\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode;\n}\n\nfunction Item(props: ListItemProps): React.ReactElement {\n const { children } = props;\n const { size } = useList();\n\n const variant = useMemo(() => {\n return mapWithResponsive({\n value: size,\n mapFn: (sizeValue) => {\n return sizeValue === 'small' ? 'caption' : 'body';\n },\n });\n }, [size]);\n\n return (\n <Typo asChild variant={variant}>\n <li>{children}</li>\n </Typo>\n );\n}\n\nconst ListContext = createContext<{ size: Responsive<'small' | 'large'> }>({\n size: 'large',\n});\n\nexport function useList(): { size: Responsive<'small' | 'large'> } {\n return useContext(ListContext);\n}\n\nexport const List = {\n Root,\n Item,\n};\n","import type { Breakpoint, Responsive } from \"@radix-ui/themes/props\";\n\nexport const mapWithResponsive = <T extends string,K extends string>(\n args: {value: Responsive<T>, mapFn: (value?:T)=>K |undefined}\n): Responsive<K> | undefined => {\n const {value, mapFn} = args;\n if(typeof value === 'string'){\n return mapFn(value);\n };\n \n if(typeof value === 'object'){\n const newObj: Partial<Record<Breakpoint, K>> = {};\n let key: Breakpoint;\n for(key in value){\n newObj[key] = mapFn(value[key]);\n }\n return newObj;\n }\n return value;\n};\n","import type { TextProps as RadixTextProps } from '@radix-ui/themes';\nimport type { Responsive } from '@radix-ui/themes/props';\nimport { Text as RadixText } from '@radix-ui/themes';\nimport { clsx } from 'clsx';\nimport React, { useMemo, forwardRef } from 'react';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { clampStyle } from '../utils/clamp-style';\nimport { MONO_STYLE } from '../utils/mono-style';\nimport {\n resolveColor,\n type DistributiveOmit,\n type UiColor,\n} from '../utils/resolve-color';\n\nexport type TypoProps = DistributiveOmit<RadixTextProps, 'color'> & {\n variant?: Responsive<'body' | 'caption' | 'subtitle'>;\n color?: UiColor;\n /** 등폭(monospace) 폰트 + 숫자 고정폭 정렬(tabular-nums). 점수·퍼센트 등 수치 표시에 사용한다. */\n mono?: boolean;\n /** 여러 줄 말줄임(line-clamp). 지정한 줄 수까지만 표시하고 넘치면 …로 자른다. */\n clamp?: number;\n};\n\nexport const Typo = forwardRef<HTMLSpanElement, TypoProps>(\n (props: TypoProps, ref): React.ReactNode => {\n const {\n size,\n variant,\n children,\n color,\n className,\n mono,\n clamp,\n style,\n ...rest\n } = props;\n\n const { color: radixColor, className: colorClassName } = useMemo(\n () => resolveColor(color),\n [color]\n );\n\n const radixSize = useMemo<RadixTextProps['size']>(() => {\n if (size !== undefined) return size;\n\n if (variant === undefined) return '2';\n\n return mapWithResponsive({\n value: variant,\n mapFn: (variantValue?: 'body' | 'caption' | 'subtitle') => {\n switch (variantValue) {\n case 'caption':\n return '1';\n case 'subtitle':\n return '3';\n case 'body':\n default:\n return '2';\n }\n },\n });\n }, [size, variant]);\n\n return (\n <RadixText\n {...rest}\n className={clsx(colorClassName, className)}\n color={radixColor}\n ref={ref}\n size={radixSize}\n style={{\n ...(mono ? MONO_STYLE : null),\n ...(clamp ? clampStyle(clamp) : null),\n ...style,\n }}\n >\n {children}\n </RadixText>\n );\n }\n);\n\nTypo.displayName = 'Typo';\n","import type { CSSProperties } from 'react';\n\n/**\n * 여러 줄 말줄임(line-clamp) 스타일. 지정한 줄 수까지만 표시하고 넘치면 `…`로 자른다.\n *\n * Radix의 `truncate`(white-space:nowrap 강제 1줄)와 달리, 줄바꿈을 허용한 뒤\n * `lines` 줄에서 자른다. `Typo`/`Heading`의 `clamp` prop 구현에 사용된다.\n *\n * @param lines - 표시할 최대 줄 수 (1, 2, 3 …)\n */\nexport const clampStyle = (lines: number): CSSProperties => ({\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: lines,\n lineClamp: lines,\n overflow: 'hidden',\n});\n","import type { CSSProperties } from 'react';\n\n/**\n * 등폭(monospace) 텍스트 스타일.\n * - `font-family`: 등폭 폰트(`--code-font-family`는 Radix Themes가 제공, 없으면 시스템 등폭으로 폴백)\n * - `font-variant-numeric: tabular-nums`: 숫자를 고정폭으로 정렬해 점수·퍼센트·통계가 자릿수마다 흔들리지 않게 함\n *\n * `Typo`/`Heading`의 `mono` prop 구현에 사용된다.\n */\nexport const MONO_STYLE: CSSProperties = {\n fontFamily: 'var(--code-font-family, ui-monospace, \"SF Mono\", monospace)',\n fontVariantNumeric: 'tabular-nums',\n};\n","import type { BadgeProps as RadixBadgeProps } from '@radix-ui/themes';\n\n/**\n * Radix Themes가 제공하는 accent color union (gray, red, blue, ...).\n * 모든 color 지원 컴포넌트가 동일한 union을 공유하므로 Badge에서 파생한다.\n */\nexport type RadixColor = NonNullable<RadixBadgeProps['color']>;\n\n/** TIPP 시맨틱 color 별칭. */\nexport type SemanticColor = 'error' | 'accent' | 'neutral' | 'success';\n\n/**\n * Radix accent에 대응이 없어 CSS accent override로 처리하는 커스텀 color.\n * (예: black — `style/black.scss`의 `.tipp-accent-black` 참고)\n */\nexport type CustomColor = 'black';\n\n/** color 지원 컴포넌트가 노출하는 통합 color 타입. */\nexport type UiColor = RadixColor | SemanticColor | CustomColor;\n\n/**\n * union 각 멤버에 분배되는 Omit.\n * Radix의 polymorphic 컴포넌트 props(Text/Heading/Link 등 `as`로 분기되는 union)에서\n * 키를 제거할 때 일반 Omit은 union을 단일 객체로 합쳐 `as` 분기를 무너뜨리므로 이 타입을 쓴다.\n */\nexport type DistributiveOmit<T, K extends PropertyKey> = T extends unknown\n ? Omit<T, K>\n : never;\n\nconst SEMANTIC_COLOR_MAP: Record<SemanticColor, RadixColor | undefined> = {\n error: 'red',\n neutral: 'gray',\n success: 'green',\n accent: undefined,\n};\n\ninterface CustomColorConfig {\n /**\n * accent override를 적용할 className.\n */\n className: string;\n /**\n * Radix에 넘길 fallback color.\n * Text/Heading/Link 등은 `color` prop이 있어야 `data-accent-color`가 붙어\n * `--accent-*`를 참조하므로, 유효한 Radix color를 함께 넘긴 뒤 className으로\n * `--accent-*`를 덮어쓴다. (Badge/Button은 prop 없이도 accent 기반이라 무해)\n */\n fallbackColor: RadixColor;\n}\n\nconst CUSTOM_COLOR_MAP: Record<CustomColor, CustomColorConfig> = {\n black: { className: 'tipp-accent-black', fallbackColor: 'gray' },\n};\n\nconst isSemanticColor = (color?: UiColor): color is SemanticColor =>\n color !== undefined && color in SEMANTIC_COLOR_MAP;\n\nconst isCustomColor = (color?: UiColor): color is CustomColor =>\n color !== undefined && color in CUSTOM_COLOR_MAP;\n\nexport interface ResolvedColor {\n /** Radix 컴포넌트의 `color` prop에 그대로 전달할 값. custom color면 undefined. */\n color?: RadixColor;\n /** accent override를 적용하기 위해 요소에 붙일 className. */\n className?: string;\n}\n\n/**\n * 통합 color 입력을 Radix color prop과 className으로 정규화한다.\n *\n * - custom color(black 등): Radix color는 비우고 accent override className을 반환\n * - semantic color(error/neutral/success/accent): 대응 Radix color로 변환\n * - Radix color: 그대로 pass-through\n */\nexport const resolveColor = (color?: UiColor): ResolvedColor => {\n if (isCustomColor(color)) {\n const { className, fallbackColor } = CUSTOM_COLOR_MAP[color];\n return { color: fallbackColor, className };\n }\n\n if (isSemanticColor(color)) {\n return { color: SEMANTIC_COLOR_MAP[color] };\n }\n\n return { color };\n};\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,gBAA0D;AAC1D,IAAAC,eAAqB;;;ACAd,IAAM,oBAAoB,CAChC,SAC+B;AAC9B,QAAM,EAAC,OAAO,MAAK,IAAI;AACvB,MAAG,OAAO,UAAU,UAAS;AAC3B,WAAO,MAAM,KAAK;AAAA,EACpB;AAAC;AAED,MAAG,OAAO,UAAU,UAAS;AAC3B,UAAM,SAAyC,CAAC;AAChD,QAAI;AACJ,SAAI,OAAO,OAAM;AACf,aAAO,GAAG,IAAI,MAAM,MAAM,GAAG,CAAC;AAAA,IAChC;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;;;ACjBA,oBAAkC;AAClC,kBAAqB;AACrB,mBAA2C;;;ACMpC,IAAM,aAAa,CAAC,WAAkC;AAAA,EAC3D,SAAS;AAAA,EACT,iBAAiB;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M,cAAU,uBAAQ,MAAM;AAC5B,WAAO,kBAAkB;AAAA,MACvB,OAAO;AAAA,MACP,OAAO,CAAC,cAAc;AACpB,eAAO,cAAc,UAAU,YAAY;AAAA,MAC7C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,CAAC;AAET,SACE,6CAAC,QAAK,SAAO,MAAC,SACZ,uDAAC,QAAI,UAAS,GAChB;AAEJ;AAEA,IAAM,kBAAc,6BAAuD;AAAA,EACzE,MAAM;AACR,CAAC;AAEM,SAAS,UAAmD;AACjE,aAAO,0BAAW,WAAW;AAC/B;AAEO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":["import_react","import_clsx","RadixText","import_themes","import_jsx_runtime"]}
|
package/dist/atoms/list.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
List,
|
|
3
3
|
useList
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-GR4PG6HY.js";
|
|
4
|
+
} from "../chunk-USL6PICI.js";
|
|
5
|
+
import "../chunk-L4QQGIYQ.js";
|
|
7
6
|
import "../chunk-LDBWASUA.js";
|
|
7
|
+
import "../chunk-PO2PBAHW.js";
|
|
8
|
+
import "../chunk-36W7VD2Z.js";
|
|
9
|
+
import "../chunk-25HMMI7R.js";
|
|
8
10
|
import "../chunk-VFQD57ZY.js";
|
|
9
11
|
import "../chunk-CRTRMMJ7.js";
|
|
10
12
|
export {
|
|
@@ -776,11 +776,44 @@ var mapWithResponsive = (args) => {
|
|
|
776
776
|
return value;
|
|
777
777
|
};
|
|
778
778
|
|
|
779
|
+
// src/utils/clamp-style.ts
|
|
780
|
+
var clampStyle = (lines) => ({
|
|
781
|
+
display: "-webkit-box",
|
|
782
|
+
WebkitBoxOrient: "vertical",
|
|
783
|
+
WebkitLineClamp: lines,
|
|
784
|
+
lineClamp: lines,
|
|
785
|
+
overflow: "hidden"
|
|
786
|
+
});
|
|
787
|
+
|
|
788
|
+
// src/utils/mono-style.ts
|
|
789
|
+
var MONO_STYLE = {
|
|
790
|
+
fontFamily: 'var(--code-font-family, ui-monospace, "SF Mono", monospace)',
|
|
791
|
+
fontVariantNumeric: "tabular-nums"
|
|
792
|
+
};
|
|
793
|
+
|
|
779
794
|
// src/atoms/typo.tsx
|
|
780
795
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
781
796
|
var Typo = (0, import_react2.forwardRef)(
|
|
782
797
|
(props, ref) => {
|
|
783
|
-
const _a = props, {
|
|
798
|
+
const _a = props, {
|
|
799
|
+
size,
|
|
800
|
+
variant,
|
|
801
|
+
children,
|
|
802
|
+
color,
|
|
803
|
+
className,
|
|
804
|
+
mono,
|
|
805
|
+
clamp,
|
|
806
|
+
style
|
|
807
|
+
} = _a, rest = __objRest(_a, [
|
|
808
|
+
"size",
|
|
809
|
+
"variant",
|
|
810
|
+
"children",
|
|
811
|
+
"color",
|
|
812
|
+
"className",
|
|
813
|
+
"mono",
|
|
814
|
+
"clamp",
|
|
815
|
+
"style"
|
|
816
|
+
]);
|
|
784
817
|
const { color: radixColor, className: colorClassName } = (0, import_react2.useMemo)(
|
|
785
818
|
() => resolveColor(color),
|
|
786
819
|
[color]
|
|
@@ -810,6 +843,7 @@ var Typo = (0, import_react2.forwardRef)(
|
|
|
810
843
|
color: radixColor,
|
|
811
844
|
ref,
|
|
812
845
|
size: radixSize,
|
|
846
|
+
style: __spreadValues(__spreadValues(__spreadValues({}, mono ? MONO_STYLE : null), clamp ? clampStyle(clamp) : null), style),
|
|
813
847
|
children
|
|
814
848
|
})
|
|
815
849
|
);
|