@tipp/ui 2.8.0 → 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 +49 -4
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +99 -98
- package/dist/app/platform/coach-question-list.cjs +49 -4
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +33 -32
- package/dist/app/platform/contents-card.cjs +49 -4
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +33 -32
- package/dist/app/platform/curriculum-card.cjs +49 -4
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +5 -4
- package/dist/app/platform/edit-coaching-time.cjs +49 -4
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +81 -80
- package/dist/app/platform/edit-service-type.cjs +49 -4
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +82 -81
- package/dist/app/platform/goal-manage-card-edit.cjs +49 -4
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +81 -80
- package/dist/app/platform/goal-manage-card-read.cjs +49 -4
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +33 -32
- package/dist/app/platform/on-offline-radio-card.cjs +49 -4
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +81 -80
- package/dist/app/platform/report-card.cjs +49 -4
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +33 -32
- package/dist/app/platform/reservation-card.cjs +49 -4
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +82 -81
- package/dist/app/platform/session-card.cjs +49 -4
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +84 -83
- package/dist/app/platform/session-review-simple-read.cjs +49 -4
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -35
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +33 -32
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +49 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +33 -32
- package/dist/app/platform/userInfos/utils.cjs +49 -4
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +32 -31
- package/dist/atoms/bullet-text.cjs +29 -2
- package/dist/atoms/bullet-text.cjs.map +1 -1
- package/dist/atoms/bullet-text.js +3 -2
- package/dist/atoms/dialog.cjs +29 -2
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +3 -2
- package/dist/atoms/ellipsis-tooltip.cjs +29 -2
- package/dist/atoms/ellipsis-tooltip.cjs.map +1 -1
- package/dist/atoms/ellipsis-tooltip.js +3 -2
- package/dist/atoms/field-error-wrapper.cjs +29 -2
- package/dist/atoms/field-error-wrapper.cjs.map +1 -1
- package/dist/atoms/field-error-wrapper.js +3 -2
- package/dist/atoms/heading.cjs +29 -2
- package/dist/atoms/heading.cjs.map +1 -1
- package/dist/atoms/heading.d.cts +2 -0
- package/dist/atoms/heading.d.ts +2 -0
- package/dist/atoms/heading.js +2 -1
- package/dist/atoms/index.cjs +49 -4
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +67 -66
- package/dist/atoms/list.cjs +29 -2
- package/dist/atoms/list.cjs.map +1 -1
- package/dist/atoms/list.js +3 -2
- package/dist/atoms/pagination.cjs +29 -2
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +3 -2
- package/dist/atoms/typo.cjs +29 -2
- package/dist/atoms/typo.cjs.map +1 -1
- package/dist/atoms/typo.d.cts +2 -0
- package/dist/atoms/typo.d.ts +2 -0
- package/dist/atoms/typo.js +2 -1
- package/dist/chunk-36W7VD2Z.js +13 -0
- package/dist/chunk-36W7VD2Z.js.map +1 -0
- package/dist/{chunk-7XMPNH2X.js → chunk-3DZIX4CE.js} +8 -8
- package/dist/{chunk-XFFVIWAD.js → chunk-47QYYEMG.js} +2 -2
- package/dist/{chunk-VVJEXKCB.js → chunk-4GH4R4VJ.js} +6 -6
- package/dist/{chunk-MTESLX7K.js → chunk-5IGBFB67.js} +12 -12
- package/dist/{chunk-LXL7GJUM.js → chunk-5RIAIE2J.js} +3 -3
- package/dist/{chunk-R43F6ZWT.js → chunk-64DSUMXA.js} +2 -2
- package/dist/{chunk-6YPAN4D3.js → chunk-6DWUGXSY.js} +5 -5
- package/dist/{chunk-C2FRAZT2.js → chunk-6OT5OYGM.js} +2 -2
- package/dist/{chunk-6Q26H64H.js → chunk-74PR3ZWJ.js} +6 -6
- package/dist/{chunk-IA4WXGVH.js → chunk-75EY7LBP.js} +2 -2
- package/dist/{chunk-77YN5S26.js → chunk-AELKCD6B.js} +3 -3
- package/dist/{chunk-L5WSNVSD.js → chunk-AHYOAFOU.js} +3 -3
- package/dist/{chunk-6JPGF4MB.js → chunk-AT5PAJLW.js} +2 -2
- package/dist/{chunk-P6YCD2AV.js → chunk-C4INJWFV.js} +9 -9
- package/dist/{chunk-SGJBQKUD.js → chunk-C6HO3IGE.js} +2 -2
- package/dist/{chunk-7NBGSPZU.js → chunk-CBYIPRND.js} +5 -5
- package/dist/{chunk-UIMDXYPP.js → chunk-CGLDFUOY.js} +6 -6
- package/dist/{chunk-DUXYDGHX.js → chunk-CUS3ORMD.js} +6 -6
- package/dist/{chunk-UILGIMXL.js → chunk-D4U2ZV2A.js} +5 -5
- package/dist/{chunk-PRLNOTMV.js → chunk-DPMDQA3O.js} +6 -6
- package/dist/{chunk-6XASFDTI.js → chunk-EJXZXUD2.js} +15 -15
- package/dist/{chunk-QFSMOKC6.js → chunk-FAL6S2XK.js} +2 -2
- package/dist/{chunk-WLG6GG26.js → chunk-G3KQN32M.js} +3 -3
- package/dist/{chunk-72ZC7DBY.js → chunk-GNB4A34H.js} +2 -2
- package/dist/{chunk-KEFAYPBO.js → chunk-IRFNKOKQ.js} +4 -4
- package/dist/{chunk-5BIICWFT.js → chunk-ISSUGCCY.js} +6 -6
- package/dist/{chunk-PZDN6K6R.js → chunk-JCZXPONS.js} +4 -4
- package/dist/{chunk-7TRT4QTP.js → chunk-K4RZTENM.js} +2 -2
- package/dist/{chunk-Z54XTEAF.js → chunk-KDS7OQOY.js} +2 -2
- package/dist/{chunk-UA2HDDD4.js → chunk-KLJVIEFW.js} +5 -5
- package/dist/{chunk-5FXPD4NE.js → chunk-KQ3ME6XY.js} +5 -5
- package/dist/{chunk-YXFHD2PY.js → chunk-L4QQGIYQ.js} +24 -3
- package/dist/chunk-L4QQGIYQ.js.map +1 -0
- package/dist/{chunk-YCV3HR4J.js → chunk-LAGJDIVU.js} +2 -2
- package/dist/{chunk-3UJEOHQT.js → chunk-LK2H4QTJ.js} +6 -6
- package/dist/{chunk-5FLPPHUZ.js → chunk-MQKIIIBW.js} +2 -2
- package/dist/{chunk-PWUCBBQP.js → chunk-N3FMP27I.js} +6 -6
- package/dist/{chunk-GMEGTXIV.js → chunk-NEJCZABQ.js} +9 -9
- package/dist/{chunk-NIMF5FJI.js → chunk-NK6S7ZMB.js} +6 -6
- package/dist/{chunk-IIA2BVJI.js → chunk-NVRVOTWZ.js} +3 -3
- package/dist/{chunk-LCR5R743.js → chunk-OOM522XP.js} +2 -2
- package/dist/{chunk-FIQJUO66.js → chunk-OPIVSYLN.js} +5 -5
- package/dist/{chunk-SQZVLRUH.js → chunk-OUDDTPEN.js} +5 -5
- package/dist/{chunk-URSBI6BQ.js → chunk-OW2QNTK3.js} +3 -3
- package/dist/{chunk-GBT2BBZS.js → chunk-P2H3VCIB.js} +3 -3
- package/dist/{chunk-TF3RLGKA.js → chunk-P4DJ5F6Z.js} +4 -4
- package/dist/{chunk-YWLFDIBP.js → chunk-PAUEQXYG.js} +2 -2
- package/dist/{chunk-XOCVP6IW.js → chunk-Q2FDF2AB.js} +8 -8
- package/dist/{chunk-VFWRW7TA.js → chunk-QLNAAZJX.js} +2 -2
- package/dist/{chunk-C5CEDLV6.js → chunk-QLOYGKKM.js} +2 -2
- package/dist/{chunk-GTTZJ2Y7.js → chunk-R5UDNKV2.js} +4 -4
- package/dist/{chunk-DDYPJWZV.js → chunk-RBU2TRYY.js} +10 -10
- package/dist/{chunk-FFGGO6E4.js → chunk-RRC4WFG3.js} +2 -2
- package/dist/{chunk-5SXTL6NO.js → chunk-RWJUXAFY.js} +2 -2
- package/dist/{chunk-BZVA4RGI.js → chunk-S4MEMFKG.js} +2 -2
- package/dist/{chunk-PTUL6MDB.js → chunk-SINRU2A6.js} +2 -2
- package/dist/{chunk-BZCUF5K6.js → chunk-SQ3FYBJT.js} +5 -5
- package/dist/{chunk-UHAMISMF.js → chunk-TQTCT7DC.js} +6 -6
- package/dist/{chunk-B7SKF5RD.js → chunk-U7HF53KK.js} +4 -4
- package/dist/{chunk-YIVIBIK2.js → chunk-USGOLLYO.js} +24 -3
- package/dist/chunk-USGOLLYO.js.map +1 -0
- package/dist/{chunk-Z2U2YQOG.js → chunk-USL6PICI.js} +2 -2
- package/dist/{chunk-DHP7LYK7.js → chunk-UXH2XIB2.js} +2 -2
- package/dist/{chunk-U5LZO2EI.js → chunk-V7KAHLW2.js} +6 -6
- package/dist/{chunk-VYUQXEXS.js → chunk-VBXZIIUA.js} +5 -5
- package/dist/{chunk-IYAN33WP.js → chunk-VVWQZK5L.js} +3 -3
- package/dist/{chunk-DBXQFZBB.js → chunk-WLKK5L3P.js} +8 -8
- package/dist/chunk-WTS75RUC.js +1 -0
- package/dist/{chunk-ANFQJ6YW.js → chunk-WYHDQK2S.js} +9 -9
- package/dist/{chunk-RVHE3UVN.js → chunk-X3TBEGPA.js} +6 -6
- package/dist/{chunk-AEDSRBBB.js → chunk-XWHBJY5V.js} +3 -3
- package/dist/{chunk-SHFN2BOB.js → chunk-ZGTGEBQX.js} +2 -2
- package/dist/context/dynamic-form-context.cjs +49 -4
- package/dist/context/dynamic-form-context.cjs.map +1 -1
- package/dist/context/dynamic-form-context.js +5 -4
- package/dist/context/index.cjs +49 -4
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.js +5 -4
- package/dist/index.cjs +51 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +167 -163
- package/dist/molecules/autocomplete-textfield.cjs +29 -2
- package/dist/molecules/autocomplete-textfield.cjs.map +1 -1
- package/dist/molecules/autocomplete-textfield.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +14 -13
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +29 -2
- 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 +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +49 -4
- 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 +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +29 -2
- 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 +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +29 -2
- 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 +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +29 -2
- 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 +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +29 -2
- 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 +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +18 -17
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +20 -19
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +23 -22
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -7
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +6 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +49 -4
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -3
- package/dist/molecules/curriculumV2/index.cjs +49 -4
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +31 -30
- package/dist/molecules/date-picker/date-picker-button.cjs +49 -4
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +5 -4
- package/dist/molecules/date-picker/index.cjs +49 -4
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +4 -3
- package/dist/molecules/description-json-render.cjs +29 -2
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +5 -4
- package/dist/molecules/download-card.cjs +29 -2
- package/dist/molecules/download-card.cjs.map +1 -1
- package/dist/molecules/download-card.js +3 -2
- package/dist/molecules/dynamic-field.cjs +49 -4
- package/dist/molecules/dynamic-field.cjs.map +1 -1
- package/dist/molecules/dynamic-field.js +7 -6
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +29 -2
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +5 -4
- package/dist/molecules/dynamic-form-editor-field-list-panel.cjs +29 -2
- package/dist/molecules/dynamic-form-editor-field-list-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-list-panel.js +4 -3
- package/dist/molecules/dynamic-form-editor-issues-panel.cjs +29 -2
- package/dist/molecules/dynamic-form-editor-issues-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-issues-panel.js +4 -3
- package/dist/molecules/dynamic-form-editor-preview-panel.cjs +49 -4
- package/dist/molecules/dynamic-form-editor-preview-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-preview-panel.js +10 -9
- package/dist/molecules/dynamic-form-editor.cjs +49 -4
- package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor.js +16 -15
- package/dist/molecules/dynamic-form.cjs +49 -4
- package/dist/molecules/dynamic-form.cjs.map +1 -1
- package/dist/molecules/dynamic-form.js +8 -7
- package/dist/molecules/expand-table/index.cjs +29 -2
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +5 -4
- package/dist/molecules/force-refresh.cjs +29 -2
- package/dist/molecules/force-refresh.cjs.map +1 -1
- package/dist/molecules/force-refresh.js +3 -2
- package/dist/molecules/form/form.cjs +49 -4
- package/dist/molecules/form/form.cjs.map +1 -1
- package/dist/molecules/form/form.js +4 -3
- package/dist/molecules/form/index.cjs +49 -4
- package/dist/molecules/form/index.cjs.map +1 -1
- package/dist/molecules/form/index.js +4 -3
- package/dist/molecules/ghost-post.cjs +29 -2
- package/dist/molecules/ghost-post.cjs.map +1 -1
- package/dist/molecules/ghost-post.js +3 -2
- package/dist/molecules/index.cjs +49 -4
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +79 -78
- package/dist/molecules/learning-post.cjs +49 -4
- package/dist/molecules/learning-post.cjs.map +1 -1
- package/dist/molecules/learning-post.js +6 -5
- package/dist/molecules/navigation.cjs +29 -2
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +3 -2
- package/dist/molecules/one-on-one-guide-list.cjs +49 -4
- package/dist/molecules/one-on-one-guide-list.cjs.map +1 -1
- package/dist/molecules/one-on-one-guide-list.js +5 -4
- package/dist/molecules/stepper.cjs +29 -2
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +4 -3
- package/dist/molecules/tag-selector.cjs +29 -2
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +5 -4
- package/dist/molecules/time-select.js +3 -2
- package/dist/molecules/training-info-guideline.cjs +49 -4
- package/dist/molecules/training-info-guideline.cjs.map +1 -1
- package/dist/molecules/training-info-guideline.js +6 -5
- 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 +11 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +10 -6
- package/package.json +1 -1
- package/src/atoms/heading.tsx +19 -3
- package/src/atoms/typo.tsx +19 -3
- package/src/utils/clamp-style.ts +17 -0
- package/src/utils/index.ts +2 -1
- package/dist/chunk-U7PMCTVQ.js +0 -1
- package/dist/chunk-YIVIBIK2.js.map +0 -1
- package/dist/chunk-YXFHD2PY.js.map +0 -1
- /package/dist/{chunk-7XMPNH2X.js.map → chunk-3DZIX4CE.js.map} +0 -0
- /package/dist/{chunk-XFFVIWAD.js.map → chunk-47QYYEMG.js.map} +0 -0
- /package/dist/{chunk-VVJEXKCB.js.map → chunk-4GH4R4VJ.js.map} +0 -0
- /package/dist/{chunk-MTESLX7K.js.map → chunk-5IGBFB67.js.map} +0 -0
- /package/dist/{chunk-LXL7GJUM.js.map → chunk-5RIAIE2J.js.map} +0 -0
- /package/dist/{chunk-R43F6ZWT.js.map → chunk-64DSUMXA.js.map} +0 -0
- /package/dist/{chunk-6YPAN4D3.js.map → chunk-6DWUGXSY.js.map} +0 -0
- /package/dist/{chunk-C2FRAZT2.js.map → chunk-6OT5OYGM.js.map} +0 -0
- /package/dist/{chunk-6Q26H64H.js.map → chunk-74PR3ZWJ.js.map} +0 -0
- /package/dist/{chunk-IA4WXGVH.js.map → chunk-75EY7LBP.js.map} +0 -0
- /package/dist/{chunk-77YN5S26.js.map → chunk-AELKCD6B.js.map} +0 -0
- /package/dist/{chunk-L5WSNVSD.js.map → chunk-AHYOAFOU.js.map} +0 -0
- /package/dist/{chunk-6JPGF4MB.js.map → chunk-AT5PAJLW.js.map} +0 -0
- /package/dist/{chunk-P6YCD2AV.js.map → chunk-C4INJWFV.js.map} +0 -0
- /package/dist/{chunk-SGJBQKUD.js.map → chunk-C6HO3IGE.js.map} +0 -0
- /package/dist/{chunk-7NBGSPZU.js.map → chunk-CBYIPRND.js.map} +0 -0
- /package/dist/{chunk-UIMDXYPP.js.map → chunk-CGLDFUOY.js.map} +0 -0
- /package/dist/{chunk-DUXYDGHX.js.map → chunk-CUS3ORMD.js.map} +0 -0
- /package/dist/{chunk-UILGIMXL.js.map → chunk-D4U2ZV2A.js.map} +0 -0
- /package/dist/{chunk-PRLNOTMV.js.map → chunk-DPMDQA3O.js.map} +0 -0
- /package/dist/{chunk-6XASFDTI.js.map → chunk-EJXZXUD2.js.map} +0 -0
- /package/dist/{chunk-QFSMOKC6.js.map → chunk-FAL6S2XK.js.map} +0 -0
- /package/dist/{chunk-WLG6GG26.js.map → chunk-G3KQN32M.js.map} +0 -0
- /package/dist/{chunk-72ZC7DBY.js.map → chunk-GNB4A34H.js.map} +0 -0
- /package/dist/{chunk-KEFAYPBO.js.map → chunk-IRFNKOKQ.js.map} +0 -0
- /package/dist/{chunk-5BIICWFT.js.map → chunk-ISSUGCCY.js.map} +0 -0
- /package/dist/{chunk-PZDN6K6R.js.map → chunk-JCZXPONS.js.map} +0 -0
- /package/dist/{chunk-7TRT4QTP.js.map → chunk-K4RZTENM.js.map} +0 -0
- /package/dist/{chunk-Z54XTEAF.js.map → chunk-KDS7OQOY.js.map} +0 -0
- /package/dist/{chunk-UA2HDDD4.js.map → chunk-KLJVIEFW.js.map} +0 -0
- /package/dist/{chunk-5FXPD4NE.js.map → chunk-KQ3ME6XY.js.map} +0 -0
- /package/dist/{chunk-YCV3HR4J.js.map → chunk-LAGJDIVU.js.map} +0 -0
- /package/dist/{chunk-3UJEOHQT.js.map → chunk-LK2H4QTJ.js.map} +0 -0
- /package/dist/{chunk-5FLPPHUZ.js.map → chunk-MQKIIIBW.js.map} +0 -0
- /package/dist/{chunk-PWUCBBQP.js.map → chunk-N3FMP27I.js.map} +0 -0
- /package/dist/{chunk-GMEGTXIV.js.map → chunk-NEJCZABQ.js.map} +0 -0
- /package/dist/{chunk-NIMF5FJI.js.map → chunk-NK6S7ZMB.js.map} +0 -0
- /package/dist/{chunk-IIA2BVJI.js.map → chunk-NVRVOTWZ.js.map} +0 -0
- /package/dist/{chunk-LCR5R743.js.map → chunk-OOM522XP.js.map} +0 -0
- /package/dist/{chunk-FIQJUO66.js.map → chunk-OPIVSYLN.js.map} +0 -0
- /package/dist/{chunk-SQZVLRUH.js.map → chunk-OUDDTPEN.js.map} +0 -0
- /package/dist/{chunk-URSBI6BQ.js.map → chunk-OW2QNTK3.js.map} +0 -0
- /package/dist/{chunk-GBT2BBZS.js.map → chunk-P2H3VCIB.js.map} +0 -0
- /package/dist/{chunk-TF3RLGKA.js.map → chunk-P4DJ5F6Z.js.map} +0 -0
- /package/dist/{chunk-YWLFDIBP.js.map → chunk-PAUEQXYG.js.map} +0 -0
- /package/dist/{chunk-XOCVP6IW.js.map → chunk-Q2FDF2AB.js.map} +0 -0
- /package/dist/{chunk-VFWRW7TA.js.map → chunk-QLNAAZJX.js.map} +0 -0
- /package/dist/{chunk-C5CEDLV6.js.map → chunk-QLOYGKKM.js.map} +0 -0
- /package/dist/{chunk-GTTZJ2Y7.js.map → chunk-R5UDNKV2.js.map} +0 -0
- /package/dist/{chunk-DDYPJWZV.js.map → chunk-RBU2TRYY.js.map} +0 -0
- /package/dist/{chunk-FFGGO6E4.js.map → chunk-RRC4WFG3.js.map} +0 -0
- /package/dist/{chunk-5SXTL6NO.js.map → chunk-RWJUXAFY.js.map} +0 -0
- /package/dist/{chunk-BZVA4RGI.js.map → chunk-S4MEMFKG.js.map} +0 -0
- /package/dist/{chunk-PTUL6MDB.js.map → chunk-SINRU2A6.js.map} +0 -0
- /package/dist/{chunk-BZCUF5K6.js.map → chunk-SQ3FYBJT.js.map} +0 -0
- /package/dist/{chunk-UHAMISMF.js.map → chunk-TQTCT7DC.js.map} +0 -0
- /package/dist/{chunk-B7SKF5RD.js.map → chunk-U7HF53KK.js.map} +0 -0
- /package/dist/{chunk-Z2U2YQOG.js.map → chunk-USL6PICI.js.map} +0 -0
- /package/dist/{chunk-DHP7LYK7.js.map → chunk-UXH2XIB2.js.map} +0 -0
- /package/dist/{chunk-U5LZO2EI.js.map → chunk-V7KAHLW2.js.map} +0 -0
- /package/dist/{chunk-VYUQXEXS.js.map → chunk-VBXZIIUA.js.map} +0 -0
- /package/dist/{chunk-IYAN33WP.js.map → chunk-VVWQZK5L.js.map} +0 -0
- /package/dist/{chunk-DBXQFZBB.js.map → chunk-WLKK5L3P.js.map} +0 -0
- /package/dist/{chunk-U7PMCTVQ.js.map → chunk-WTS75RUC.js.map} +0 -0
- /package/dist/{chunk-ANFQJ6YW.js.map → chunk-WYHDQK2S.js.map} +0 -0
- /package/dist/{chunk-RVHE3UVN.js.map → chunk-X3TBEGPA.js.map} +0 -0
- /package/dist/{chunk-AEDSRBBB.js.map → chunk-XWHBJY5V.js.map} +0 -0
- /package/dist/{chunk-SHFN2BOB.js.map → chunk-ZGTGEBQX.js.map} +0 -0
package/dist/atoms/index.js
CHANGED
|
@@ -2,16 +2,7 @@ import "../chunk-HBF6IIVZ.js";
|
|
|
2
2
|
import {
|
|
3
3
|
Form,
|
|
4
4
|
FormItem
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import {
|
|
7
|
-
Switch
|
|
8
|
-
} from "../chunk-KNIIDDYM.js";
|
|
9
|
-
import {
|
|
10
|
-
TabNav
|
|
11
|
-
} from "../chunk-6TU647KJ.js";
|
|
12
|
-
import {
|
|
13
|
-
Tabs
|
|
14
|
-
} from "../chunk-CGDBUDY3.js";
|
|
5
|
+
} from "../chunk-AELKCD6B.js";
|
|
15
6
|
import {
|
|
16
7
|
TextArea
|
|
17
8
|
} from "../chunk-5XYPLDI5.js";
|
|
@@ -22,15 +13,6 @@ import {
|
|
|
22
13
|
ToastContainer,
|
|
23
14
|
toast
|
|
24
15
|
} from "../chunk-LNPFV5BJ.js";
|
|
25
|
-
import {
|
|
26
|
-
ScrollArea
|
|
27
|
-
} from "../chunk-MUPK4L3U.js";
|
|
28
|
-
import {
|
|
29
|
-
Section
|
|
30
|
-
} from "../chunk-MUNMDHRF.js";
|
|
31
|
-
import {
|
|
32
|
-
SegmentedControl
|
|
33
|
-
} from "../chunk-IT7ZTP7F.js";
|
|
34
16
|
import {
|
|
35
17
|
Select
|
|
36
18
|
} from "../chunk-YXMB4MCM.js";
|
|
@@ -47,15 +29,14 @@ import {
|
|
|
47
29
|
Strong
|
|
48
30
|
} from "../chunk-74DX4CU7.js";
|
|
49
31
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} from "../chunk-Z2U2YQOG.js";
|
|
32
|
+
Switch
|
|
33
|
+
} from "../chunk-KNIIDDYM.js";
|
|
53
34
|
import {
|
|
54
|
-
|
|
55
|
-
} from "../chunk-
|
|
35
|
+
TabNav
|
|
36
|
+
} from "../chunk-6TU647KJ.js";
|
|
56
37
|
import {
|
|
57
|
-
|
|
58
|
-
} from "../chunk-
|
|
38
|
+
Tabs
|
|
39
|
+
} from "../chunk-CGDBUDY3.js";
|
|
59
40
|
import {
|
|
60
41
|
Progress
|
|
61
42
|
} from "../chunk-TNNF5Q62.js";
|
|
@@ -72,11 +53,14 @@ import {
|
|
|
72
53
|
Radio
|
|
73
54
|
} from "../chunk-3TOUVBIB.js";
|
|
74
55
|
import {
|
|
75
|
-
|
|
76
|
-
} from "../chunk-
|
|
56
|
+
ScrollArea
|
|
57
|
+
} from "../chunk-MUPK4L3U.js";
|
|
77
58
|
import {
|
|
78
|
-
|
|
79
|
-
} from "../chunk-
|
|
59
|
+
Section
|
|
60
|
+
} from "../chunk-MUNMDHRF.js";
|
|
61
|
+
import {
|
|
62
|
+
SegmentedControl
|
|
63
|
+
} from "../chunk-IT7ZTP7F.js";
|
|
80
64
|
import {
|
|
81
65
|
Inset
|
|
82
66
|
} from "../chunk-XQOL7UBI.js";
|
|
@@ -87,32 +71,21 @@ import {
|
|
|
87
71
|
Link
|
|
88
72
|
} from "../chunk-BI6TW3ZO.js";
|
|
89
73
|
import {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
Dialog
|
|
94
|
-
} from "../chunk-Z54XTEAF.js";
|
|
95
|
-
import {
|
|
96
|
-
Heading
|
|
97
|
-
} from "../chunk-YIVIBIK2.js";
|
|
74
|
+
List,
|
|
75
|
+
useList
|
|
76
|
+
} from "../chunk-USL6PICI.js";
|
|
98
77
|
import {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Root,
|
|
102
|
-
Trigger
|
|
103
|
-
} from "../chunk-JCUG2XKB.js";
|
|
104
|
-
import "../chunk-645GPOW2.js";
|
|
105
|
-
import "../chunk-U7N2PWMO.js";
|
|
78
|
+
Pagination
|
|
79
|
+
} from "../chunk-RWJUXAFY.js";
|
|
106
80
|
import {
|
|
107
|
-
|
|
108
|
-
} from "../chunk-
|
|
109
|
-
import "../chunk-HF6GNDPV.js";
|
|
81
|
+
Popover
|
|
82
|
+
} from "../chunk-RMW3MQF5.js";
|
|
110
83
|
import {
|
|
111
84
|
DropdownMenu
|
|
112
85
|
} from "../chunk-T73HHR3I.js";
|
|
113
86
|
import {
|
|
114
87
|
EllipsisTooltip
|
|
115
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-MQKIIIBW.js";
|
|
116
89
|
import {
|
|
117
90
|
Tooltip
|
|
118
91
|
} from "../chunk-2M3UFZUD.js";
|
|
@@ -122,16 +95,13 @@ import {
|
|
|
122
95
|
} from "../chunk-2DZ2Y3JI.js";
|
|
123
96
|
import {
|
|
124
97
|
FieldErrorWrapper
|
|
125
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-GNB4A34H.js";
|
|
126
99
|
import {
|
|
127
|
-
|
|
128
|
-
} from "../chunk-
|
|
129
|
-
import {
|
|
130
|
-
Card
|
|
131
|
-
} from "../chunk-RP2RGCAW.js";
|
|
100
|
+
Grid
|
|
101
|
+
} from "../chunk-EGEQY3KT.js";
|
|
132
102
|
import {
|
|
133
|
-
|
|
134
|
-
} from "../chunk-
|
|
103
|
+
HoverCard
|
|
104
|
+
} from "../chunk-24PX34TH.js";
|
|
135
105
|
import {
|
|
136
106
|
CheckboxGroup
|
|
137
107
|
} from "../chunk-WG5OK3YN.js";
|
|
@@ -148,14 +118,26 @@ import {
|
|
|
148
118
|
Container
|
|
149
119
|
} from "../chunk-Q37G2GS6.js";
|
|
150
120
|
import {
|
|
151
|
-
|
|
152
|
-
} from "../chunk-
|
|
121
|
+
DataList
|
|
122
|
+
} from "../chunk-ZPUNTAVI.js";
|
|
153
123
|
import {
|
|
154
|
-
|
|
155
|
-
} from "../chunk-
|
|
124
|
+
Dialog
|
|
125
|
+
} from "../chunk-KDS7OQOY.js";
|
|
156
126
|
import {
|
|
157
|
-
|
|
158
|
-
} from "../chunk-
|
|
127
|
+
Heading
|
|
128
|
+
} from "../chunk-USGOLLYO.js";
|
|
129
|
+
import {
|
|
130
|
+
Content,
|
|
131
|
+
Drawer,
|
|
132
|
+
Root,
|
|
133
|
+
Trigger
|
|
134
|
+
} from "../chunk-JCUG2XKB.js";
|
|
135
|
+
import "../chunk-645GPOW2.js";
|
|
136
|
+
import "../chunk-U7N2PWMO.js";
|
|
137
|
+
import {
|
|
138
|
+
IconButton
|
|
139
|
+
} from "../chunk-7RJYF5L3.js";
|
|
140
|
+
import "../chunk-HF6GNDPV.js";
|
|
159
141
|
import {
|
|
160
142
|
Blockquote
|
|
161
143
|
} from "../chunk-UFRB2BVD.js";
|
|
@@ -164,12 +146,13 @@ import {
|
|
|
164
146
|
} from "../chunk-4Y5BEXVN.js";
|
|
165
147
|
import {
|
|
166
148
|
BulletText
|
|
167
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-75EY7LBP.js";
|
|
168
150
|
import {
|
|
169
151
|
Typo
|
|
170
|
-
} from "../chunk-
|
|
152
|
+
} from "../chunk-L4QQGIYQ.js";
|
|
171
153
|
import "../chunk-LDBWASUA.js";
|
|
172
154
|
import "../chunk-PO2PBAHW.js";
|
|
155
|
+
import "../chunk-36W7VD2Z.js";
|
|
173
156
|
import {
|
|
174
157
|
Flex
|
|
175
158
|
} from "../chunk-25HMMI7R.js";
|
|
@@ -178,6 +161,15 @@ import {
|
|
|
178
161
|
} from "../chunk-2LCH3PDF.js";
|
|
179
162
|
import "../chunk-LQY4RKWI.js";
|
|
180
163
|
import "../chunk-ZD7MNMED.js";
|
|
164
|
+
import {
|
|
165
|
+
Callout
|
|
166
|
+
} from "../chunk-EIKFXUNC.js";
|
|
167
|
+
import {
|
|
168
|
+
Card
|
|
169
|
+
} from "../chunk-RP2RGCAW.js";
|
|
170
|
+
import {
|
|
171
|
+
CheckboxCards
|
|
172
|
+
} from "../chunk-JETG3WEI.js";
|
|
181
173
|
import "../chunk-VOME2TE7.js";
|
|
182
174
|
import "../chunk-JVXATVAC.js";
|
|
183
175
|
import "../chunk-B3VSXNTH.js";
|
|
@@ -199,10 +191,19 @@ import {
|
|
|
199
191
|
AlertDialog
|
|
200
192
|
} from "../chunk-GI4AN2IZ.js";
|
|
201
193
|
import "../chunk-WYWM2HSZ.js";
|
|
202
|
-
import "../chunk-VFQD57ZY.js";
|
|
203
194
|
import {
|
|
204
195
|
AspectRatio
|
|
205
196
|
} from "../chunk-EAXUQEO5.js";
|
|
197
|
+
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";
|
|
206
|
+
import "../chunk-VFQD57ZY.js";
|
|
206
207
|
import "../chunk-CRTRMMJ7.js";
|
|
207
208
|
export {
|
|
208
209
|
AlertDialog,
|
package/dist/atoms/list.cjs
CHANGED
|
@@ -79,6 +79,15 @@ 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
|
+
|
|
82
91
|
// src/utils/mono-style.ts
|
|
83
92
|
var MONO_STYLE = {
|
|
84
93
|
fontFamily: 'var(--code-font-family, ui-monospace, "SF Mono", monospace)',
|
|
@@ -112,7 +121,25 @@ var resolveColor = (color) => {
|
|
|
112
121
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
113
122
|
var Typo = (0, import_react.forwardRef)(
|
|
114
123
|
(props, ref) => {
|
|
115
|
-
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
|
+
]);
|
|
116
143
|
const { color: radixColor, className: colorClassName } = (0, import_react.useMemo)(
|
|
117
144
|
() => resolveColor(color),
|
|
118
145
|
[color]
|
|
@@ -142,7 +169,7 @@ var Typo = (0, import_react.forwardRef)(
|
|
|
142
169
|
color: radixColor,
|
|
143
170
|
ref,
|
|
144
171
|
size: radixSize,
|
|
145
|
-
style:
|
|
172
|
+
style: __spreadValues(__spreadValues(__spreadValues({}, mono ? MONO_STYLE : null), clamp ? clampStyle(clamp) : null), style),
|
|
146
173
|
children
|
|
147
174
|
})
|
|
148
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/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 { 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};\n\nexport const Typo = forwardRef<HTMLSpanElement, TypoProps>(\n (props: TypoProps, ref): React.ReactNode => {\n const { size, variant, children, color, className, mono, style, ...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={mono ? { ...MONO_STYLE, ...style } : style}\n >\n {children}\n </RadixText>\n );\n }\n);\n\nTypo.displayName = 'Typo';\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;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AA,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;AAAA,EACjB,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,UAAU;AACZ;;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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,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
List,
|
|
3
3
|
useList
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-USL6PICI.js";
|
|
5
|
+
import "../chunk-L4QQGIYQ.js";
|
|
6
6
|
import "../chunk-LDBWASUA.js";
|
|
7
7
|
import "../chunk-PO2PBAHW.js";
|
|
8
|
+
import "../chunk-36W7VD2Z.js";
|
|
8
9
|
import "../chunk-25HMMI7R.js";
|
|
9
10
|
import "../chunk-VFQD57ZY.js";
|
|
10
11
|
import "../chunk-CRTRMMJ7.js";
|
|
@@ -776,6 +776,15 @@ 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
|
+
|
|
779
788
|
// src/utils/mono-style.ts
|
|
780
789
|
var MONO_STYLE = {
|
|
781
790
|
fontFamily: 'var(--code-font-family, ui-monospace, "SF Mono", monospace)',
|
|
@@ -786,7 +795,25 @@ var MONO_STYLE = {
|
|
|
786
795
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
787
796
|
var Typo = (0, import_react2.forwardRef)(
|
|
788
797
|
(props, ref) => {
|
|
789
|
-
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
|
+
]);
|
|
790
817
|
const { color: radixColor, className: colorClassName } = (0, import_react2.useMemo)(
|
|
791
818
|
() => resolveColor(color),
|
|
792
819
|
[color]
|
|
@@ -816,7 +843,7 @@ var Typo = (0, import_react2.forwardRef)(
|
|
|
816
843
|
color: radixColor,
|
|
817
844
|
ref,
|
|
818
845
|
size: radixSize,
|
|
819
|
-
style:
|
|
846
|
+
style: __spreadValues(__spreadValues(__spreadValues({}, mono ? MONO_STYLE : null), clamp ? clampStyle(clamp) : null), style),
|
|
820
847
|
children
|
|
821
848
|
})
|
|
822
849
|
);
|