tdesign-web-components 1.3.1-alpha.7 → 1.3.1-alpha.8

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.
@@ -16,7 +16,7 @@ var css$2 = ":root {\n --td-chat-input-attachments-margin: 0 0 var(--td-comp-ma
16
16
 
17
17
  var css$1 = ":root {\n --td-chat-list-padding-bottom: 0;\n --td-chat-list-scroll-button-top: calc(100% - 64px);\n --td-chat-list-scroll-button-left: 50%;\n --td-chat-list-scroll-button-w: 40px;\n --td-chat-list-scroll-button-h: 40px;\n --td-chat-list-scroll-button-border: 0.5px solid #dcdcdc;\n --td-chat-list-scroll-button-radius: 20px;\n --td-chat-list-scroll-button-index: 50;\n --td-chat-list-scroll-button-transform: translate(-50%, 0);\n --td-chat-item-gap: 38px;\n --td-chat-item-header-padding: 0;\n --td-chat-item-text-header-padding: 0;\n --td-chat-item-header-padding-right: 0;\n --td-chat-item-right-content-margin: 0 0 0 auto;\n --td-chat-item-name-padding: 0 var(--td-comp-paddingLR-s) 0 0;\n --td-chat-item-name-padding-right: 0 0 0 var(--td-comp-paddingLR-l);\n --td-chat-item-name-font: var(--td-font-body-medium);\n --td-chat-item-content-gap: var(--td-comp-margin-s);\n --td-chat-item-content-max-width: 800px;\n --td-chat-item-content-base-margin: 0 0 var(--td-comp-margin-xs) 0;\n --td-chat-item-content-base-padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-l);\n --td-chat-item-content-base-border-color: transparent;\n --td-chat-item-content-padding: var(--td-comp-paddingTB-m) 0;\n --td-chat-item-text-error-color: var(--td-error-color);\n --td-chat-item-user-text-color: var(--td-text-color-secondary);\n --td-chat-item-text-max-width: 100%;\n --td-chat-item-text-padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-l);\n --td-chat-item-status-margin: var(--td-comp-margin-s) 0 0;\n --td-chat-item-text-content-padding: 0;\n --td-chat-item-text-detail-padding: 0;\n --td-chat-item-text-detail-margin: 0;\n --td-chat-item-text-detail-text-margin: 0;\n --td-chat-item-text-radius: var(--td-radius-extraLarge);\n --td-chat-item-text-border: 1px solid transparent;\n --td-chat-item-content-border: 1px solid transparent;\n --td-chat-item-content-radius: var(--td-radius-extraLarge);\n --td-chat-item-system-margin: 0;\n --td-chat-item-system-padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-s);\n --td-chat-item-system-radius: var(--td-radius-medium);\n --td-chat-item-system-bg-color: var(--td-bg-color-secondarycontainer);\n --td-chat-item-system-color: #afafaf;\n --td-chat-item-left-avatar-margin: 0 var(--td-comp-margin-xl) 0 var(--td-comp-margin-xs);\n --td-chat-item-right-avatar-margin: 0 var(--td-comp-margin-xs) 0 var(--td-comp-margin-xl);\n --td-chat-item-avatar-padding: 6px 0 0 0;\n --td-chat-item-avatar-has-header-padding: 30px 0 0 0;\n --td-chat-item-image-margin: var(--td-comp-margin-m) 0;\n --td-chat-item-think-gap-p: 0 0 var(--td-comp-margin-s) 0;\n --td-chat-item-think-padding-tb: var(--td-comp-paddingTB-s);\n --td-chat-item-think-padding-lr: var(--td-comp-paddingLR-m);\n --td-chat-item-think-border: none;\n --td-chat-item-think-radius: var(--td-radius-medium);\n --td-chat-item-think-title-gap: var(--td-comp-margin-s);\n --td-chat-item-think-status-wh: 20px;\n --td-chat-item-think-pending-border-width: 2px;\n --td-chat-item-think-header-border: none;\n --td-chat-item-think-body-bg: none;\n --td-chat-item-think-body-border: none;\n --td-chat-item-think-content-margin-top: 2px;\n --td-chat-item-think-shadow-top: 0;\n --td-chat-item-think-shadow-bottom: 0;\n --td-chat-item-think-shadow-margin-top: 0;\n --td-chat-item-think-shadow-margin-bottom: 0;\n --td-chat-item-think-shadow-top-height: 24px;\n --td-chat-item-think-shadow-bottom-height: 24px;\n --td-chat-item-think-inner-padding: 0 var(--td-comp-paddingLR-m) var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-m);\n --td-chat-item-think-inner-border: solid 2px var(--td-component-stroke);\n --td-chat-item-think-inner-border-margin-left: 0px;\n --td-chat-item-actions-list-margin: var(--td-comp-margin-xs) 0;\n --td-chat-item-text-actions-list-margin: var(--td-comp-margin-xs) 0 0 var(--td-comp-margin-l);\n --td-chat-item-actions-list-gap: var(--td-comp-margin-xs);\n --td-chat-item-actions-list-padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs);\n --td-chat-item-actions-list-radius: var(--td-radius-medium);\n --td-chat-item-actions-list-border: 1px solid var(--td-component-border);\n --td-chat-item-actions-item-padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs);\n --td-chat-item-actions-item-radius: 4px;\n --td-chat-item-attachments-margin-top: 12px;\n --td-chat-item-image-max-width: 150px;\n --td-attachment-image-width: 150px;\n --td-chat-item-search-height: 36px;\n --td-chat-item-search-padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);\n --td-chat-item-search-radius: 20px;\n --td-chat-item-search-icons-margin-right: 3px;\n --td-chat-item-search-icon-width: 16px;\n --td-chat-item-search-icon-radius: var(--td-radius-circle);\n --td-chat-item-search-icon-margin-left: -3px;\n --td-chat-item-search-icon-before-left: -1px;\n --td-chat-item-search-icon-before-width: 1px;\n --td-chat-item-search-icon-before-height: 100%;\n --td-chat-item-search-icon-before-radius: 1px;\n --td-chat-item-search-link-color: var(--td-brand-color);\n --td-chat-item-search-link-hov-color: var(--td-brand-color-hover);\n --td-chat-item-suggestion-gap: var(--td-comp-margin-s);\n --td-chat-item-suggestion-height: 38px;\n --td-chat-item-suggestion-padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-m);\n --td-chat-item-suggestion-radius: var(--td-radius-medium);\n --td-chat-item-suggestion-border: solid 1px var(--td-component-border);\n --td-chat-item-suggestion-arrow-margin: var(--td-comp-margin-s);\n --td-chat-font-size: 16px;\n --td-chat-item-system-font-size: 12px;\n --td-chat-item-suggestion-font-size: 14px;\n --td-chat-item-search-link-line-height: 24px;\n --td-chat-list-scroll-button-font-size: 24px;\n --td-chat-search-font-size: 12px;\n --td-chat-item-content-text-align: left;\n --td-chat-item-right-content-text-align: right;\n --td-chat-item-text-text-align: left;\n --td-chat-list-scroll-button-bg: var(--td-bg-color-container);\n --td-chat-list-scroll-button-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05);\n --td-chat-item-error-color: var(--td-error-color);\n --td-chat-item-primary-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-item-default-bg: var(--td-bg-color-container);\n --td-chat-item-outline-border-color: var(--td-component-border);\n --td-chat-item-think-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-item-think-pending-border-bg-color: #e0f0ff;\n --td-chat-item-think-status-pending-color: var(--td-brand-color);\n --td-chat-item-think-status-sent-color: var(--td-success-color);\n --td-chat-item-think-status-error-color: var(--td-error-color);\n --td-chat-item-think-content-color: var(--td-text-color-placeholder);\n --td-chat-item-actions-list-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-item-actions-item-hover-bg: var(--td-bg-color-component-hover);\n --td-chat-item-suggestion-color: var(--td-text-color-primary);\n --td-chat-item-suggestion-background: var(--td-bg-color-secondarycontainer);\n --td-chat-item-suggestion-arrow-color: var(--td-text-color-placeholder);\n --md-heading-color: var(--td-gray-color-7);\n --td-chat-md-content-gap-main: 0 0 8px 0;\n --td-chat-md-content-gap-t1: 24px 0 20px 0;\n --td-chat-md-content-gap-t2: 20px 0 16px 0;\n --td-chat-md-content-gap-t3: 16px 0 12px 0;\n --td-chat-md-font: var(--td-text-color-primary);\n --td-chat-md-padding: var(--td-comp-paddingTB-m) 0;\n --td-chat-md-h1-font: 700 22px / 1.6 var(--td-font-family);\n --td-chat-md-h2-font: 600 20px / 1.6 var(--td-font-family);\n --td-chat-md-h3-font: 600 18px / 1.6 var(--td-font-family);\n --td-chat-md-s-color: var(--td-gray-color-7);\n --td-chat-md-list-margin: 0 0 8px 2em;\n --td-chat-md-list-padding: 0;\n --td-chat-md-ul-style: disc;\n --td-chat-md-ol-style: decimal;\n --td-chat-md-li-margin: 0.5em 0;\n --td-chat-md-link-color: var(--td-brand-color-5);\n --td-chat-md-link-decoration: none;\n --td-chat-md-link-hover-color: var(--td-brand-color-6);\n --td-chat-md-code-radius: 8px;\n --td-chat-md-code-margin: 0 0 16px 0;\n --td-chat-md-code-button-top: 30px;\n --td-chat-md-code-button-border: none;\n --td-chat-md-code-button-color: var(--td-gray-color-7);\n --td-chat-md-code-button-hover-color: var(--td-gray-color-9);\n --td-chat-md-code-button-bg: hsl(230, 1%, 98%);\n --td-chat-md-code-button-hover-bg: rgba(255, 255, 255, 0.7);\n --td-chat-md-code-button-dark-color: rgba(255, 255, 255, 0.7);\n --td-chat-md-code-button-dark-hover-color: rgba(255, 255, 255, 0.9);\n --td-chat-md-code-button-dark-bg: hsl(220, 13%, 18%);\n --td-chat-md-code-button-dark-hover-bg: rgba(255, 255, 255, 0.15);\n --td-chat-md-code-button-shadow: none;\n --td-chat-md-code-button-hover-transform: none;\n --td-chat-md-katex-block-margin: 1em 0;\n --td-chat-md-katex-font: normal 1.21em / 1.2 KaTeX_Main, Times New Roman, serif;\n --td-chat-md-blockquote-margin: 16px 0;\n --td-chat-md-blockquote-padding: 10px 15px;\n --td-chat-md-blockquote-border-left: 4px solid #d9d9d9;\n --td-chat-md-blockquote-color: var(--td-gray-color-7);\n --td-chat-md-footnote-bg: var(--td-bg-color-page);\n --td-chat-md-hr-margin: 16px 0;\n --td-chat-md-hr-border: 1px solid rgba(0, 0, 0, 0.08);\n --td-chat-md-table-border: 1px solid var(--td-bg-color-secondarycontainer);\n --td-chat-md-table-radius: 8px;\n --td-chat-md-table-margin: 8px 0;\n --td-chat-md-table-font-size: 14px;\n --td-chat-md-table-th-padding: 0.66em 1em;\n --td-chat-md-table-th-max-width: 448px;\n --td-chat-md-table-th-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-md-table-th-color: var(--td-text-color-primary);\n --td-chat-md-table-th-font: 700 14px / 1.6 var(--td-font-family);\n --td-chat-md-table-td-bg-odd: var(--td-bg-color-container);\n --td-chat-md-table-td-bg-even: var(--td-bg-color-secondarycontainer);\n --td-chat-md-table-td-color: var(--td-text-color-primary);\n --td-chat-md-table-td-font: 400 14px / 1.6 var(--td-font-family);\n}\n";
18
18
 
19
- var css = "/**\n * Cherry Markdown Icon Font\n * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题\n */\n@font-face {\n font-family: \"ch-icon\";\n src: url(\"./ch-icon-9b0d68ab.eot\");\n src: url(\"./ch-icon-9b0d68ab.eot#iefix\") format(\"eot\"), url(\"./ch-icon-93f4230f.woff2\") format(\"woff2\"), url(\"./ch-icon-0a8121a2.woff\") format(\"woff\"), url(\"./ch-icon-a39427d8.ttf\") format(\"truetype\"), url(\"./ch-icon-63d7d476.svg#ch-icon\") format(\"svg\");\n font-weight: normal;\n font-style: normal;\n}\n.ch-icon:before {\n display: inline-block;\n font-family: \"ch-icon\";\n font-style: normal;\n font-weight: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.ch-icon-list:before {\n content: \"\\ea03\";\n}\n.ch-icon-check:before {\n content: \"\\ea04\";\n}\n.ch-icon-square:before {\n content: \"\\ea09\";\n}\n.ch-icon-bold:before {\n content: \"\\ea0a\";\n}\n.ch-icon-code:before {\n content: \"\\ea0b\";\n}\n.ch-icon-color:before {\n content: \"\\ea0c\";\n}\n.ch-icon-header:before {\n content: \"\\ea0d\";\n}\n.ch-icon-image:before {\n content: \"\\ea0e\";\n}\n.ch-icon-italic:before {\n content: \"\\ea0f\";\n}\n.ch-icon-link:before {\n content: \"\\ea10\";\n}\n.ch-icon-ol:before {\n content: \"\\ea11\";\n}\n.ch-icon-size:before {\n content: \"\\ea12\";\n}\n.ch-icon-strike:before {\n content: \"\\ea13\";\n}\n.ch-icon-table:before {\n content: \"\\ea14\";\n}\n.ch-icon-ul:before {\n content: \"\\ea15\";\n}\n.ch-icon-underline:before {\n content: \"\\ea16\";\n}\n.ch-icon-word:before {\n content: \"\\ea17\";\n}\n.ch-icon-blockquote:before {\n content: \"\\ea18\";\n}\n.ch-icon-font:before {\n content: \"\\ea19\";\n}\n.ch-icon-insertClass:before {\n content: \"\\ea1f\";\n}\n.ch-icon-insertFlow:before {\n content: \"\\ea20\";\n}\n.ch-icon-insertFormula:before {\n content: \"\\ea21\";\n}\n.ch-icon-insertGantt:before {\n content: \"\\ea22\";\n}\n.ch-icon-insertGraph:before {\n content: \"\\ea23\";\n}\n.ch-icon-insertPie:before {\n content: \"\\ea24\";\n}\n.ch-icon-insertSeq:before {\n content: \"\\ea25\";\n}\n.ch-icon-insertState:before {\n content: \"\\ea26\";\n}\n.ch-icon-line:before {\n content: \"\\ea27\";\n}\n.ch-icon-preview:before {\n content: \"\\ea28\";\n}\n.ch-icon-previewClose:before {\n content: \"\\ea29\";\n}\n.ch-icon-toc:before {\n content: \"\\ea2a\";\n}\n.ch-icon-sub:before {\n content: \"\\ea2d\";\n}\n.ch-icon-sup:before {\n content: \"\\ea2e\";\n}\n.ch-icon-h1:before {\n content: \"\\ea2f\";\n}\n.ch-icon-h2:before {\n content: \"\\ea30\";\n}\n.ch-icon-h3:before {\n content: \"\\ea31\";\n}\n.ch-icon-h4:before {\n content: \"\\ea32\";\n}\n.ch-icon-h5:before {\n content: \"\\ea33\";\n}\n.ch-icon-h6:before {\n content: \"\\ea34\";\n}\n.ch-icon-video:before {\n content: \"\\ea35\";\n}\n.ch-icon-insert:before {\n content: \"\\ea36\";\n}\n.ch-icon-little_table:before {\n content: \"\\ea37\";\n}\n.ch-icon-pdf:before {\n content: \"\\ea38\";\n}\n.ch-icon-checklist:before {\n content: \"\\ea39\";\n}\n.ch-icon-close:before {\n content: \"\\ea40\";\n}\n.ch-icon-fullscreen:before {\n content: \"\\ea41\";\n}\n.ch-icon-minscreen:before {\n content: \"\\ea42\";\n}\n.ch-icon-insertChart:before {\n content: \"\\ea43\";\n}\n.ch-icon-question:before {\n content: \"\\ea44\";\n}\n.ch-icon-settings:before {\n content: \"\\ea45\";\n}\n.ch-icon-ok:before {\n content: \"\\ea46\";\n}\n.ch-icon-br:before {\n content: \"\\ea47\";\n}\n.ch-icon-normal:before {\n content: \"\\ea48\";\n}\n.ch-icon-undo:before {\n content: \"\\ea49\";\n}\n.ch-icon-redo:before {\n content: \"\\ea50\";\n}\n.ch-icon-copy:before {\n content: \"\\ea51\";\n}\n.ch-icon-phone:before {\n content: \"\\ea52\";\n}\n.ch-icon-cherry-table-delete:before {\n content: \"\\ea53\";\n}\n.ch-icon-cherry-table-insert-bottom:before {\n content: \"\\ea54\";\n}\n.ch-icon-cherry-table-insert-left:before {\n content: \"\\ea55\";\n}\n.ch-icon-cherry-table-insert-right:before {\n content: \"\\ea56\";\n}\n.ch-icon-cherry-table-insert-top:before {\n content: \"\\ea57\";\n}\n.ch-icon-sort-s:before {\n content: \"\\ea58\";\n}\n.ch-icon-pinyin:before {\n content: \"\\ea59\";\n}\n.ch-icon-create:before {\n content: \"\\ea5a\";\n}\n.ch-icon-download:before {\n content: \"\\ea5b\";\n}\n.ch-icon-edit:before {\n content: \"\\ea5c\";\n}\n.ch-icon-export:before {\n content: \"\\ea5d\";\n}\n.ch-icon-folder-open:before {\n content: \"\\ea5e\";\n}\n.ch-icon-folder:before {\n content: \"\\ea5f\";\n}\n.ch-icon-help:before {\n content: \"\\ea60\";\n}\n.ch-icon-pen-fill:before {\n content: \"\\ea61\";\n}\n.ch-icon-pen:before {\n content: \"\\ea62\";\n}\n.ch-icon-tips:before {\n content: \"\\ea64\";\n}\n.ch-icon-warn:before {\n content: \"\\ea65\";\n}\n.ch-icon-mistake:before {\n content: \"\\ea66\";\n}\n.ch-icon-success:before {\n content: \"\\ea67\";\n}\n.ch-icon-danger:before {\n content: \"\\ea68\";\n}\n.ch-icon-info:before {\n content: \"\\ea69\";\n}\n.ch-icon-primary:before {\n content: \"\\ea6a\";\n}\n.ch-icon-warning:before {\n content: \"\\ea6b\";\n}\n.ch-icon-justify:before {\n content: \"\\ea6c\";\n}\n.ch-icon-justifyCenter:before {\n content: \"\\ea6d\";\n}\n.ch-icon-justifyLeft:before {\n content: \"\\ea6e\";\n}\n.ch-icon-justifyRight:before {\n content: \"\\ea6f\";\n}\n.ch-icon-chevronsLeft:before {\n content: \"\\ea70\";\n}\n.ch-icon-chevronsRight:before {\n content: \"\\ea71\";\n}\n.ch-icon-trendingUp:before {\n content: \"\\ea72\";\n}\n.ch-icon-codeBlock:before {\n content: \"\\ea74\";\n}\n.ch-icon-expand:before {\n content: \"\\ea75\";\n}\n.ch-icon-unExpand:before {\n content: \"\\ea76\";\n}\n.ch-icon-swap-vert:before {\n content: \"\\ea77\";\n}\n.ch-icon-swap:before {\n content: \"\\ea78\";\n}\n.ch-icon-keyboard:before {\n content: \"\\ea79\";\n}\n.ch-icon-command:before {\n content: \"\\ea7a\";\n}\n.ch-icon-search:before {\n content: \"\\ea7b\";\n}\n.ch-icon-alignCenter:before {\n content: \"\\ea7c\";\n}\n.ch-icon-alignJustify:before {\n content: \"\\ea7d\";\n}\n.ch-icon-alignLeft:before {\n content: \"\\ea7e\";\n}\n.ch-icon-alignRight:before {\n content: \"\\ea7f\";\n}\n.ch-icon-align:before {\n content: \"\\ea80\";\n}\n.ch-icon-imgDecoBorder:before {\n content: \"\\ea81\";\n}\n.ch-icon-imgDecoShadow:before {\n content: \"\\ea82\";\n}\n.ch-icon-imgDecoRadius:before {\n content: \"\\ea83\";\n}\n.ch-icon-imgAlignLeft:before {\n content: \"\\ea84\";\n}\n.ch-icon-imgAlignCenter:before {\n content: \"\\ea85\";\n}\n.ch-icon-imgAlignRight:before {\n content: \"\\ea86\";\n}\n.ch-icon-imgAlignFloatLeft:before {\n content: \"\\ea87\";\n}\n.ch-icon-imgAlignFloatRight:before {\n content: \"\\ea88\";\n}\n.ch-icon-insertLineChart:before {\n content: \"\\ea8a\";\n}\n.ch-icon-insertBarChart:before {\n content: \"\\ea8b\";\n}\n.ch-icon-insertRadarChart:before {\n content: \"\\ea8c\";\n}\n.ch-icon-insertMapChart:before {\n content: \"\\ea8d\";\n}\n.ch-icon-insertHeatmapChart:before {\n content: \"\\ea8e\";\n}\n.ch-icon-insertPieChart:before {\n content: \"\\ea8f\";\n}\n.ch-icon-insertScatterChart:before {\n content: \"\\ea90\";\n}\n.ch-icon-insertSankeyChart:before {\n content: \"\\ea91\";\n}\n.ch-icon-menu:before {\n content: \"\\ea92\";\n}\n.ch-icon-main-theme:before {\n content: \"\\ea94\";\n}\n.ch-icon-code-theme:before {\n content: \"\\ea95\";\n}\n";
19
+ var css = "/**\n * Cherry Markdown Icon Font\n * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题\n * 打包后字体文件会输出到 lib/assets/ 目录,所以使用 ../assets/ 路径\n */\n@font-face {\n font-family: \"ch-icon\";\n src: url(\"../assets/ch-icon.eot\");\n src: url(\"../assets/ch-icon.eot?#iefix\") format(\"eot\"), url(\"../assets/ch-icon.woff2\") format(\"woff2\"), url(\"../assets/ch-icon.woff\") format(\"woff\"), url(\"../assets/ch-icon.ttf\") format(\"truetype\"), url(\"../assets/ch-icon.svg#ch-icon\") format(\"svg\");\n font-weight: normal;\n font-style: normal;\n}\n.ch-icon:before {\n display: inline-block;\n font-family: \"ch-icon\";\n font-style: normal;\n font-weight: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.ch-icon-list:before {\n content: \"\\ea03\";\n}\n.ch-icon-check:before {\n content: \"\\ea04\";\n}\n.ch-icon-square:before {\n content: \"\\ea09\";\n}\n.ch-icon-bold:before {\n content: \"\\ea0a\";\n}\n.ch-icon-code:before {\n content: \"\\ea0b\";\n}\n.ch-icon-color:before {\n content: \"\\ea0c\";\n}\n.ch-icon-header:before {\n content: \"\\ea0d\";\n}\n.ch-icon-image:before {\n content: \"\\ea0e\";\n}\n.ch-icon-italic:before {\n content: \"\\ea0f\";\n}\n.ch-icon-link:before {\n content: \"\\ea10\";\n}\n.ch-icon-ol:before {\n content: \"\\ea11\";\n}\n.ch-icon-size:before {\n content: \"\\ea12\";\n}\n.ch-icon-strike:before {\n content: \"\\ea13\";\n}\n.ch-icon-table:before {\n content: \"\\ea14\";\n}\n.ch-icon-ul:before {\n content: \"\\ea15\";\n}\n.ch-icon-underline:before {\n content: \"\\ea16\";\n}\n.ch-icon-word:before {\n content: \"\\ea17\";\n}\n.ch-icon-blockquote:before {\n content: \"\\ea18\";\n}\n.ch-icon-font:before {\n content: \"\\ea19\";\n}\n.ch-icon-insertClass:before {\n content: \"\\ea1f\";\n}\n.ch-icon-insertFlow:before {\n content: \"\\ea20\";\n}\n.ch-icon-insertFormula:before {\n content: \"\\ea21\";\n}\n.ch-icon-insertGantt:before {\n content: \"\\ea22\";\n}\n.ch-icon-insertGraph:before {\n content: \"\\ea23\";\n}\n.ch-icon-insertPie:before {\n content: \"\\ea24\";\n}\n.ch-icon-insertSeq:before {\n content: \"\\ea25\";\n}\n.ch-icon-insertState:before {\n content: \"\\ea26\";\n}\n.ch-icon-line:before {\n content: \"\\ea27\";\n}\n.ch-icon-preview:before {\n content: \"\\ea28\";\n}\n.ch-icon-previewClose:before {\n content: \"\\ea29\";\n}\n.ch-icon-toc:before {\n content: \"\\ea2a\";\n}\n.ch-icon-sub:before {\n content: \"\\ea2d\";\n}\n.ch-icon-sup:before {\n content: \"\\ea2e\";\n}\n.ch-icon-h1:before {\n content: \"\\ea2f\";\n}\n.ch-icon-h2:before {\n content: \"\\ea30\";\n}\n.ch-icon-h3:before {\n content: \"\\ea31\";\n}\n.ch-icon-h4:before {\n content: \"\\ea32\";\n}\n.ch-icon-h5:before {\n content: \"\\ea33\";\n}\n.ch-icon-h6:before {\n content: \"\\ea34\";\n}\n.ch-icon-video:before {\n content: \"\\ea35\";\n}\n.ch-icon-insert:before {\n content: \"\\ea36\";\n}\n.ch-icon-little_table:before {\n content: \"\\ea37\";\n}\n.ch-icon-pdf:before {\n content: \"\\ea38\";\n}\n.ch-icon-checklist:before {\n content: \"\\ea39\";\n}\n.ch-icon-close:before {\n content: \"\\ea40\";\n}\n.ch-icon-fullscreen:before {\n content: \"\\ea41\";\n}\n.ch-icon-minscreen:before {\n content: \"\\ea42\";\n}\n.ch-icon-insertChart:before {\n content: \"\\ea43\";\n}\n.ch-icon-question:before {\n content: \"\\ea44\";\n}\n.ch-icon-settings:before {\n content: \"\\ea45\";\n}\n.ch-icon-ok:before {\n content: \"\\ea46\";\n}\n.ch-icon-br:before {\n content: \"\\ea47\";\n}\n.ch-icon-normal:before {\n content: \"\\ea48\";\n}\n.ch-icon-undo:before {\n content: \"\\ea49\";\n}\n.ch-icon-redo:before {\n content: \"\\ea50\";\n}\n.ch-icon-copy:before {\n content: \"\\ea51\";\n}\n.ch-icon-phone:before {\n content: \"\\ea52\";\n}\n.ch-icon-cherry-table-delete:before {\n content: \"\\ea53\";\n}\n.ch-icon-cherry-table-insert-bottom:before {\n content: \"\\ea54\";\n}\n.ch-icon-cherry-table-insert-left:before {\n content: \"\\ea55\";\n}\n.ch-icon-cherry-table-insert-right:before {\n content: \"\\ea56\";\n}\n.ch-icon-cherry-table-insert-top:before {\n content: \"\\ea57\";\n}\n.ch-icon-sort-s:before {\n content: \"\\ea58\";\n}\n.ch-icon-pinyin:before {\n content: \"\\ea59\";\n}\n.ch-icon-create:before {\n content: \"\\ea5a\";\n}\n.ch-icon-download:before {\n content: \"\\ea5b\";\n}\n.ch-icon-edit:before {\n content: \"\\ea5c\";\n}\n.ch-icon-export:before {\n content: \"\\ea5d\";\n}\n.ch-icon-folder-open:before {\n content: \"\\ea5e\";\n}\n.ch-icon-folder:before {\n content: \"\\ea5f\";\n}\n.ch-icon-help:before {\n content: \"\\ea60\";\n}\n.ch-icon-pen-fill:before {\n content: \"\\ea61\";\n}\n.ch-icon-pen:before {\n content: \"\\ea62\";\n}\n.ch-icon-tips:before {\n content: \"\\ea64\";\n}\n.ch-icon-warn:before {\n content: \"\\ea65\";\n}\n.ch-icon-mistake:before {\n content: \"\\ea66\";\n}\n.ch-icon-success:before {\n content: \"\\ea67\";\n}\n.ch-icon-danger:before {\n content: \"\\ea68\";\n}\n.ch-icon-info:before {\n content: \"\\ea69\";\n}\n.ch-icon-primary:before {\n content: \"\\ea6a\";\n}\n.ch-icon-warning:before {\n content: \"\\ea6b\";\n}\n.ch-icon-justify:before {\n content: \"\\ea6c\";\n}\n.ch-icon-justifyCenter:before {\n content: \"\\ea6d\";\n}\n.ch-icon-justifyLeft:before {\n content: \"\\ea6e\";\n}\n.ch-icon-justifyRight:before {\n content: \"\\ea6f\";\n}\n.ch-icon-chevronsLeft:before {\n content: \"\\ea70\";\n}\n.ch-icon-chevronsRight:before {\n content: \"\\ea71\";\n}\n.ch-icon-trendingUp:before {\n content: \"\\ea72\";\n}\n.ch-icon-codeBlock:before {\n content: \"\\ea74\";\n}\n.ch-icon-expand:before {\n content: \"\\ea75\";\n}\n.ch-icon-unExpand:before {\n content: \"\\ea76\";\n}\n.ch-icon-swap-vert:before {\n content: \"\\ea77\";\n}\n.ch-icon-swap:before {\n content: \"\\ea78\";\n}\n.ch-icon-keyboard:before {\n content: \"\\ea79\";\n}\n.ch-icon-command:before {\n content: \"\\ea7a\";\n}\n.ch-icon-search:before {\n content: \"\\ea7b\";\n}\n.ch-icon-alignCenter:before {\n content: \"\\ea7c\";\n}\n.ch-icon-alignJustify:before {\n content: \"\\ea7d\";\n}\n.ch-icon-alignLeft:before {\n content: \"\\ea7e\";\n}\n.ch-icon-alignRight:before {\n content: \"\\ea7f\";\n}\n.ch-icon-align:before {\n content: \"\\ea80\";\n}\n.ch-icon-imgDecoBorder:before {\n content: \"\\ea81\";\n}\n.ch-icon-imgDecoShadow:before {\n content: \"\\ea82\";\n}\n.ch-icon-imgDecoRadius:before {\n content: \"\\ea83\";\n}\n.ch-icon-imgAlignLeft:before {\n content: \"\\ea84\";\n}\n.ch-icon-imgAlignCenter:before {\n content: \"\\ea85\";\n}\n.ch-icon-imgAlignRight:before {\n content: \"\\ea86\";\n}\n.ch-icon-imgAlignFloatLeft:before {\n content: \"\\ea87\";\n}\n.ch-icon-imgAlignFloatRight:before {\n content: \"\\ea88\";\n}\n.ch-icon-insertLineChart:before {\n content: \"\\ea8a\";\n}\n.ch-icon-insertBarChart:before {\n content: \"\\ea8b\";\n}\n.ch-icon-insertRadarChart:before {\n content: \"\\ea8c\";\n}\n.ch-icon-insertMapChart:before {\n content: \"\\ea8d\";\n}\n.ch-icon-insertHeatmapChart:before {\n content: \"\\ea8e\";\n}\n.ch-icon-insertPieChart:before {\n content: \"\\ea8f\";\n}\n.ch-icon-insertScatterChart:before {\n content: \"\\ea90\";\n}\n.ch-icon-insertSankeyChart:before {\n content: \"\\ea91\";\n}\n.ch-icon-menu:before {\n content: \"\\ea92\";\n}\n.ch-icon-main-theme:before {\n content: \"\\ea94\";\n}\n.ch-icon-code-theme:before {\n content: \"\\ea95\";\n}\n";
20
20
 
21
21
  const tdesignGlobalStyleId = 'tdesign-wc-global-style';
22
22
 
package/dist/tdesign.css CHANGED
@@ -934,11 +934,12 @@
934
934
  /**
935
935
  * Cherry Markdown Icon Font
936
936
  * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题
937
+ * 打包后字体文件会输出到 lib/assets/ 目录,所以使用 ../assets/ 路径
937
938
  */
938
939
  @font-face {
939
940
  font-family: "ch-icon";
940
- src: url("./ch-icon-9b0d68ab.eot");
941
- src: url("./ch-icon-9b0d68ab.eot#iefix") format("eot"), url("./ch-icon-93f4230f.woff2") format("woff2"), url("./ch-icon-0a8121a2.woff") format("woff"), url("./ch-icon-a39427d8.ttf") format("truetype"), url("./ch-icon-63d7d476.svg#ch-icon") format("svg");
941
+ src: url("../assets/ch-icon.eot");
942
+ src: url("../assets/ch-icon.eot?#iefix") format("eot"), url("../assets/ch-icon.woff2") format("woff2"), url("../assets/ch-icon.woff") format("woff"), url("../assets/ch-icon.ttf") format("truetype"), url("../assets/ch-icon.svg#ch-icon") format("svg");
942
943
  font-weight: normal;
943
944
  font-style: normal;
944
945
  }
@@ -1,16 +1,17 @@
1
1
  /**
2
2
  * Cherry Markdown Icon Font
3
3
  * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题
4
+ * 打包后字体文件会输出到 lib/assets/ 目录,所以使用 ../assets/ 路径
4
5
  */
5
6
 
6
7
  @font-face {
7
8
  font-family: "ch-icon";
8
- src: url("cherry-markdown/dist/fonts/ch-icon.eot");
9
- src: url("cherry-markdown/dist/fonts/ch-icon.eot?#iefix") format("eot"),
10
- url("cherry-markdown/dist/fonts/ch-icon.woff2") format("woff2"),
11
- url("cherry-markdown/dist/fonts/ch-icon.woff") format("woff"),
12
- url("cherry-markdown/dist/fonts/ch-icon.ttf") format("truetype"),
13
- url("cherry-markdown/dist/fonts/ch-icon.svg#ch-icon") format("svg");
9
+ src: url("../assets/ch-icon.eot");
10
+ src: url("../assets/ch-icon.eot?#iefix") format("eot"),
11
+ url("../assets/ch-icon.woff2") format("woff2"),
12
+ url("../assets/ch-icon.woff") format("woff"),
13
+ url("../assets/ch-icon.ttf") format("truetype"),
14
+ url("../assets/ch-icon.svg#ch-icon") format("svg");
14
15
  font-weight: normal;
15
16
  font-style: normal;
16
17
  }
@@ -934,11 +934,12 @@
934
934
  /**
935
935
  * Cherry Markdown Icon Font
936
936
  * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题
937
+ * 打包后字体文件会输出到 lib/assets/ 目录,所以使用 ../assets/ 路径
937
938
  */
938
939
  @font-face {
939
940
  font-family: "ch-icon";
940
- src: url("./ch-icon-9b0d68ab.eot");
941
- src: url("./ch-icon-9b0d68ab.eot#iefix") format("eot"), url("./ch-icon-93f4230f.woff2") format("woff2"), url("./ch-icon-0a8121a2.woff") format("woff"), url("./ch-icon-a39427d8.ttf") format("truetype"), url("./ch-icon-63d7d476.svg#ch-icon") format("svg");
941
+ src: url("../assets/ch-icon.eot");
942
+ src: url("../assets/ch-icon.eot?#iefix") format("eot"), url("../assets/ch-icon.woff2") format("woff2"), url("../assets/ch-icon.woff") format("woff"), url("../assets/ch-icon.ttf") format("truetype"), url("../assets/ch-icon.svg#ch-icon") format("svg");
942
943
  font-weight: normal;
943
944
  font-style: normal;
944
945
  }
@@ -16,7 +16,7 @@ var css$2 = ":root {\n --td-chat-input-attachments-margin: 0 0 var(--td-comp-ma
16
16
 
17
17
  var css$1 = ":root {\n --td-chat-list-padding-bottom: 0;\n --td-chat-list-scroll-button-top: calc(100% - 64px);\n --td-chat-list-scroll-button-left: 50%;\n --td-chat-list-scroll-button-w: 40px;\n --td-chat-list-scroll-button-h: 40px;\n --td-chat-list-scroll-button-border: 0.5px solid #dcdcdc;\n --td-chat-list-scroll-button-radius: 20px;\n --td-chat-list-scroll-button-index: 50;\n --td-chat-list-scroll-button-transform: translate(-50%, 0);\n --td-chat-item-gap: 38px;\n --td-chat-item-header-padding: 0;\n --td-chat-item-text-header-padding: 0;\n --td-chat-item-header-padding-right: 0;\n --td-chat-item-right-content-margin: 0 0 0 auto;\n --td-chat-item-name-padding: 0 var(--td-comp-paddingLR-s) 0 0;\n --td-chat-item-name-padding-right: 0 0 0 var(--td-comp-paddingLR-l);\n --td-chat-item-name-font: var(--td-font-body-medium);\n --td-chat-item-content-gap: var(--td-comp-margin-s);\n --td-chat-item-content-max-width: 800px;\n --td-chat-item-content-base-margin: 0 0 var(--td-comp-margin-xs) 0;\n --td-chat-item-content-base-padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-l);\n --td-chat-item-content-base-border-color: transparent;\n --td-chat-item-content-padding: var(--td-comp-paddingTB-m) 0;\n --td-chat-item-text-error-color: var(--td-error-color);\n --td-chat-item-user-text-color: var(--td-text-color-secondary);\n --td-chat-item-text-max-width: 100%;\n --td-chat-item-text-padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-l);\n --td-chat-item-status-margin: var(--td-comp-margin-s) 0 0;\n --td-chat-item-text-content-padding: 0;\n --td-chat-item-text-detail-padding: 0;\n --td-chat-item-text-detail-margin: 0;\n --td-chat-item-text-detail-text-margin: 0;\n --td-chat-item-text-radius: var(--td-radius-extraLarge);\n --td-chat-item-text-border: 1px solid transparent;\n --td-chat-item-content-border: 1px solid transparent;\n --td-chat-item-content-radius: var(--td-radius-extraLarge);\n --td-chat-item-system-margin: 0;\n --td-chat-item-system-padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-s);\n --td-chat-item-system-radius: var(--td-radius-medium);\n --td-chat-item-system-bg-color: var(--td-bg-color-secondarycontainer);\n --td-chat-item-system-color: #afafaf;\n --td-chat-item-left-avatar-margin: 0 var(--td-comp-margin-xl) 0 var(--td-comp-margin-xs);\n --td-chat-item-right-avatar-margin: 0 var(--td-comp-margin-xs) 0 var(--td-comp-margin-xl);\n --td-chat-item-avatar-padding: 6px 0 0 0;\n --td-chat-item-avatar-has-header-padding: 30px 0 0 0;\n --td-chat-item-image-margin: var(--td-comp-margin-m) 0;\n --td-chat-item-think-gap-p: 0 0 var(--td-comp-margin-s) 0;\n --td-chat-item-think-padding-tb: var(--td-comp-paddingTB-s);\n --td-chat-item-think-padding-lr: var(--td-comp-paddingLR-m);\n --td-chat-item-think-border: none;\n --td-chat-item-think-radius: var(--td-radius-medium);\n --td-chat-item-think-title-gap: var(--td-comp-margin-s);\n --td-chat-item-think-status-wh: 20px;\n --td-chat-item-think-pending-border-width: 2px;\n --td-chat-item-think-header-border: none;\n --td-chat-item-think-body-bg: none;\n --td-chat-item-think-body-border: none;\n --td-chat-item-think-content-margin-top: 2px;\n --td-chat-item-think-shadow-top: 0;\n --td-chat-item-think-shadow-bottom: 0;\n --td-chat-item-think-shadow-margin-top: 0;\n --td-chat-item-think-shadow-margin-bottom: 0;\n --td-chat-item-think-shadow-top-height: 24px;\n --td-chat-item-think-shadow-bottom-height: 24px;\n --td-chat-item-think-inner-padding: 0 var(--td-comp-paddingLR-m) var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-m);\n --td-chat-item-think-inner-border: solid 2px var(--td-component-stroke);\n --td-chat-item-think-inner-border-margin-left: 0px;\n --td-chat-item-actions-list-margin: var(--td-comp-margin-xs) 0;\n --td-chat-item-text-actions-list-margin: var(--td-comp-margin-xs) 0 0 var(--td-comp-margin-l);\n --td-chat-item-actions-list-gap: var(--td-comp-margin-xs);\n --td-chat-item-actions-list-padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs);\n --td-chat-item-actions-list-radius: var(--td-radius-medium);\n --td-chat-item-actions-list-border: 1px solid var(--td-component-border);\n --td-chat-item-actions-item-padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs);\n --td-chat-item-actions-item-radius: 4px;\n --td-chat-item-attachments-margin-top: 12px;\n --td-chat-item-image-max-width: 150px;\n --td-attachment-image-width: 150px;\n --td-chat-item-search-height: 36px;\n --td-chat-item-search-padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);\n --td-chat-item-search-radius: 20px;\n --td-chat-item-search-icons-margin-right: 3px;\n --td-chat-item-search-icon-width: 16px;\n --td-chat-item-search-icon-radius: var(--td-radius-circle);\n --td-chat-item-search-icon-margin-left: -3px;\n --td-chat-item-search-icon-before-left: -1px;\n --td-chat-item-search-icon-before-width: 1px;\n --td-chat-item-search-icon-before-height: 100%;\n --td-chat-item-search-icon-before-radius: 1px;\n --td-chat-item-search-link-color: var(--td-brand-color);\n --td-chat-item-search-link-hov-color: var(--td-brand-color-hover);\n --td-chat-item-suggestion-gap: var(--td-comp-margin-s);\n --td-chat-item-suggestion-height: 38px;\n --td-chat-item-suggestion-padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-m);\n --td-chat-item-suggestion-radius: var(--td-radius-medium);\n --td-chat-item-suggestion-border: solid 1px var(--td-component-border);\n --td-chat-item-suggestion-arrow-margin: var(--td-comp-margin-s);\n --td-chat-font-size: 16px;\n --td-chat-item-system-font-size: 12px;\n --td-chat-item-suggestion-font-size: 14px;\n --td-chat-item-search-link-line-height: 24px;\n --td-chat-list-scroll-button-font-size: 24px;\n --td-chat-search-font-size: 12px;\n --td-chat-item-content-text-align: left;\n --td-chat-item-right-content-text-align: right;\n --td-chat-item-text-text-align: left;\n --td-chat-list-scroll-button-bg: var(--td-bg-color-container);\n --td-chat-list-scroll-button-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05);\n --td-chat-item-error-color: var(--td-error-color);\n --td-chat-item-primary-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-item-default-bg: var(--td-bg-color-container);\n --td-chat-item-outline-border-color: var(--td-component-border);\n --td-chat-item-think-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-item-think-pending-border-bg-color: #e0f0ff;\n --td-chat-item-think-status-pending-color: var(--td-brand-color);\n --td-chat-item-think-status-sent-color: var(--td-success-color);\n --td-chat-item-think-status-error-color: var(--td-error-color);\n --td-chat-item-think-content-color: var(--td-text-color-placeholder);\n --td-chat-item-actions-list-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-item-actions-item-hover-bg: var(--td-bg-color-component-hover);\n --td-chat-item-suggestion-color: var(--td-text-color-primary);\n --td-chat-item-suggestion-background: var(--td-bg-color-secondarycontainer);\n --td-chat-item-suggestion-arrow-color: var(--td-text-color-placeholder);\n --md-heading-color: var(--td-gray-color-7);\n --td-chat-md-content-gap-main: 0 0 8px 0;\n --td-chat-md-content-gap-t1: 24px 0 20px 0;\n --td-chat-md-content-gap-t2: 20px 0 16px 0;\n --td-chat-md-content-gap-t3: 16px 0 12px 0;\n --td-chat-md-font: var(--td-text-color-primary);\n --td-chat-md-padding: var(--td-comp-paddingTB-m) 0;\n --td-chat-md-h1-font: 700 22px / 1.6 var(--td-font-family);\n --td-chat-md-h2-font: 600 20px / 1.6 var(--td-font-family);\n --td-chat-md-h3-font: 600 18px / 1.6 var(--td-font-family);\n --td-chat-md-s-color: var(--td-gray-color-7);\n --td-chat-md-list-margin: 0 0 8px 2em;\n --td-chat-md-list-padding: 0;\n --td-chat-md-ul-style: disc;\n --td-chat-md-ol-style: decimal;\n --td-chat-md-li-margin: 0.5em 0;\n --td-chat-md-link-color: var(--td-brand-color-5);\n --td-chat-md-link-decoration: none;\n --td-chat-md-link-hover-color: var(--td-brand-color-6);\n --td-chat-md-code-radius: 8px;\n --td-chat-md-code-margin: 0 0 16px 0;\n --td-chat-md-code-button-top: 30px;\n --td-chat-md-code-button-border: none;\n --td-chat-md-code-button-color: var(--td-gray-color-7);\n --td-chat-md-code-button-hover-color: var(--td-gray-color-9);\n --td-chat-md-code-button-bg: hsl(230, 1%, 98%);\n --td-chat-md-code-button-hover-bg: rgba(255, 255, 255, 0.7);\n --td-chat-md-code-button-dark-color: rgba(255, 255, 255, 0.7);\n --td-chat-md-code-button-dark-hover-color: rgba(255, 255, 255, 0.9);\n --td-chat-md-code-button-dark-bg: hsl(220, 13%, 18%);\n --td-chat-md-code-button-dark-hover-bg: rgba(255, 255, 255, 0.15);\n --td-chat-md-code-button-shadow: none;\n --td-chat-md-code-button-hover-transform: none;\n --td-chat-md-katex-block-margin: 1em 0;\n --td-chat-md-katex-font: normal 1.21em / 1.2 KaTeX_Main, Times New Roman, serif;\n --td-chat-md-blockquote-margin: 16px 0;\n --td-chat-md-blockquote-padding: 10px 15px;\n --td-chat-md-blockquote-border-left: 4px solid #d9d9d9;\n --td-chat-md-blockquote-color: var(--td-gray-color-7);\n --td-chat-md-footnote-bg: var(--td-bg-color-page);\n --td-chat-md-hr-margin: 16px 0;\n --td-chat-md-hr-border: 1px solid rgba(0, 0, 0, 0.08);\n --td-chat-md-table-border: 1px solid var(--td-bg-color-secondarycontainer);\n --td-chat-md-table-radius: 8px;\n --td-chat-md-table-margin: 8px 0;\n --td-chat-md-table-font-size: 14px;\n --td-chat-md-table-th-padding: 0.66em 1em;\n --td-chat-md-table-th-max-width: 448px;\n --td-chat-md-table-th-bg: var(--td-bg-color-secondarycontainer);\n --td-chat-md-table-th-color: var(--td-text-color-primary);\n --td-chat-md-table-th-font: 700 14px / 1.6 var(--td-font-family);\n --td-chat-md-table-td-bg-odd: var(--td-bg-color-container);\n --td-chat-md-table-td-bg-even: var(--td-bg-color-secondarycontainer);\n --td-chat-md-table-td-color: var(--td-text-color-primary);\n --td-chat-md-table-td-font: 400 14px / 1.6 var(--td-font-family);\n}\n";
18
18
 
19
- var css = "/**\n * Cherry Markdown Icon Font\n * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题\n */\n@font-face {\n font-family: \"ch-icon\";\n src: url(\"./ch-icon-9b0d68ab.eot\");\n src: url(\"./ch-icon-9b0d68ab.eot#iefix\") format(\"eot\"), url(\"./ch-icon-93f4230f.woff2\") format(\"woff2\"), url(\"./ch-icon-0a8121a2.woff\") format(\"woff\"), url(\"./ch-icon-a39427d8.ttf\") format(\"truetype\"), url(\"./ch-icon-63d7d476.svg#ch-icon\") format(\"svg\");\n font-weight: normal;\n font-style: normal;\n}\n.ch-icon:before {\n display: inline-block;\n font-family: \"ch-icon\";\n font-style: normal;\n font-weight: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.ch-icon-list:before {\n content: \"\\ea03\";\n}\n.ch-icon-check:before {\n content: \"\\ea04\";\n}\n.ch-icon-square:before {\n content: \"\\ea09\";\n}\n.ch-icon-bold:before {\n content: \"\\ea0a\";\n}\n.ch-icon-code:before {\n content: \"\\ea0b\";\n}\n.ch-icon-color:before {\n content: \"\\ea0c\";\n}\n.ch-icon-header:before {\n content: \"\\ea0d\";\n}\n.ch-icon-image:before {\n content: \"\\ea0e\";\n}\n.ch-icon-italic:before {\n content: \"\\ea0f\";\n}\n.ch-icon-link:before {\n content: \"\\ea10\";\n}\n.ch-icon-ol:before {\n content: \"\\ea11\";\n}\n.ch-icon-size:before {\n content: \"\\ea12\";\n}\n.ch-icon-strike:before {\n content: \"\\ea13\";\n}\n.ch-icon-table:before {\n content: \"\\ea14\";\n}\n.ch-icon-ul:before {\n content: \"\\ea15\";\n}\n.ch-icon-underline:before {\n content: \"\\ea16\";\n}\n.ch-icon-word:before {\n content: \"\\ea17\";\n}\n.ch-icon-blockquote:before {\n content: \"\\ea18\";\n}\n.ch-icon-font:before {\n content: \"\\ea19\";\n}\n.ch-icon-insertClass:before {\n content: \"\\ea1f\";\n}\n.ch-icon-insertFlow:before {\n content: \"\\ea20\";\n}\n.ch-icon-insertFormula:before {\n content: \"\\ea21\";\n}\n.ch-icon-insertGantt:before {\n content: \"\\ea22\";\n}\n.ch-icon-insertGraph:before {\n content: \"\\ea23\";\n}\n.ch-icon-insertPie:before {\n content: \"\\ea24\";\n}\n.ch-icon-insertSeq:before {\n content: \"\\ea25\";\n}\n.ch-icon-insertState:before {\n content: \"\\ea26\";\n}\n.ch-icon-line:before {\n content: \"\\ea27\";\n}\n.ch-icon-preview:before {\n content: \"\\ea28\";\n}\n.ch-icon-previewClose:before {\n content: \"\\ea29\";\n}\n.ch-icon-toc:before {\n content: \"\\ea2a\";\n}\n.ch-icon-sub:before {\n content: \"\\ea2d\";\n}\n.ch-icon-sup:before {\n content: \"\\ea2e\";\n}\n.ch-icon-h1:before {\n content: \"\\ea2f\";\n}\n.ch-icon-h2:before {\n content: \"\\ea30\";\n}\n.ch-icon-h3:before {\n content: \"\\ea31\";\n}\n.ch-icon-h4:before {\n content: \"\\ea32\";\n}\n.ch-icon-h5:before {\n content: \"\\ea33\";\n}\n.ch-icon-h6:before {\n content: \"\\ea34\";\n}\n.ch-icon-video:before {\n content: \"\\ea35\";\n}\n.ch-icon-insert:before {\n content: \"\\ea36\";\n}\n.ch-icon-little_table:before {\n content: \"\\ea37\";\n}\n.ch-icon-pdf:before {\n content: \"\\ea38\";\n}\n.ch-icon-checklist:before {\n content: \"\\ea39\";\n}\n.ch-icon-close:before {\n content: \"\\ea40\";\n}\n.ch-icon-fullscreen:before {\n content: \"\\ea41\";\n}\n.ch-icon-minscreen:before {\n content: \"\\ea42\";\n}\n.ch-icon-insertChart:before {\n content: \"\\ea43\";\n}\n.ch-icon-question:before {\n content: \"\\ea44\";\n}\n.ch-icon-settings:before {\n content: \"\\ea45\";\n}\n.ch-icon-ok:before {\n content: \"\\ea46\";\n}\n.ch-icon-br:before {\n content: \"\\ea47\";\n}\n.ch-icon-normal:before {\n content: \"\\ea48\";\n}\n.ch-icon-undo:before {\n content: \"\\ea49\";\n}\n.ch-icon-redo:before {\n content: \"\\ea50\";\n}\n.ch-icon-copy:before {\n content: \"\\ea51\";\n}\n.ch-icon-phone:before {\n content: \"\\ea52\";\n}\n.ch-icon-cherry-table-delete:before {\n content: \"\\ea53\";\n}\n.ch-icon-cherry-table-insert-bottom:before {\n content: \"\\ea54\";\n}\n.ch-icon-cherry-table-insert-left:before {\n content: \"\\ea55\";\n}\n.ch-icon-cherry-table-insert-right:before {\n content: \"\\ea56\";\n}\n.ch-icon-cherry-table-insert-top:before {\n content: \"\\ea57\";\n}\n.ch-icon-sort-s:before {\n content: \"\\ea58\";\n}\n.ch-icon-pinyin:before {\n content: \"\\ea59\";\n}\n.ch-icon-create:before {\n content: \"\\ea5a\";\n}\n.ch-icon-download:before {\n content: \"\\ea5b\";\n}\n.ch-icon-edit:before {\n content: \"\\ea5c\";\n}\n.ch-icon-export:before {\n content: \"\\ea5d\";\n}\n.ch-icon-folder-open:before {\n content: \"\\ea5e\";\n}\n.ch-icon-folder:before {\n content: \"\\ea5f\";\n}\n.ch-icon-help:before {\n content: \"\\ea60\";\n}\n.ch-icon-pen-fill:before {\n content: \"\\ea61\";\n}\n.ch-icon-pen:before {\n content: \"\\ea62\";\n}\n.ch-icon-tips:before {\n content: \"\\ea64\";\n}\n.ch-icon-warn:before {\n content: \"\\ea65\";\n}\n.ch-icon-mistake:before {\n content: \"\\ea66\";\n}\n.ch-icon-success:before {\n content: \"\\ea67\";\n}\n.ch-icon-danger:before {\n content: \"\\ea68\";\n}\n.ch-icon-info:before {\n content: \"\\ea69\";\n}\n.ch-icon-primary:before {\n content: \"\\ea6a\";\n}\n.ch-icon-warning:before {\n content: \"\\ea6b\";\n}\n.ch-icon-justify:before {\n content: \"\\ea6c\";\n}\n.ch-icon-justifyCenter:before {\n content: \"\\ea6d\";\n}\n.ch-icon-justifyLeft:before {\n content: \"\\ea6e\";\n}\n.ch-icon-justifyRight:before {\n content: \"\\ea6f\";\n}\n.ch-icon-chevronsLeft:before {\n content: \"\\ea70\";\n}\n.ch-icon-chevronsRight:before {\n content: \"\\ea71\";\n}\n.ch-icon-trendingUp:before {\n content: \"\\ea72\";\n}\n.ch-icon-codeBlock:before {\n content: \"\\ea74\";\n}\n.ch-icon-expand:before {\n content: \"\\ea75\";\n}\n.ch-icon-unExpand:before {\n content: \"\\ea76\";\n}\n.ch-icon-swap-vert:before {\n content: \"\\ea77\";\n}\n.ch-icon-swap:before {\n content: \"\\ea78\";\n}\n.ch-icon-keyboard:before {\n content: \"\\ea79\";\n}\n.ch-icon-command:before {\n content: \"\\ea7a\";\n}\n.ch-icon-search:before {\n content: \"\\ea7b\";\n}\n.ch-icon-alignCenter:before {\n content: \"\\ea7c\";\n}\n.ch-icon-alignJustify:before {\n content: \"\\ea7d\";\n}\n.ch-icon-alignLeft:before {\n content: \"\\ea7e\";\n}\n.ch-icon-alignRight:before {\n content: \"\\ea7f\";\n}\n.ch-icon-align:before {\n content: \"\\ea80\";\n}\n.ch-icon-imgDecoBorder:before {\n content: \"\\ea81\";\n}\n.ch-icon-imgDecoShadow:before {\n content: \"\\ea82\";\n}\n.ch-icon-imgDecoRadius:before {\n content: \"\\ea83\";\n}\n.ch-icon-imgAlignLeft:before {\n content: \"\\ea84\";\n}\n.ch-icon-imgAlignCenter:before {\n content: \"\\ea85\";\n}\n.ch-icon-imgAlignRight:before {\n content: \"\\ea86\";\n}\n.ch-icon-imgAlignFloatLeft:before {\n content: \"\\ea87\";\n}\n.ch-icon-imgAlignFloatRight:before {\n content: \"\\ea88\";\n}\n.ch-icon-insertLineChart:before {\n content: \"\\ea8a\";\n}\n.ch-icon-insertBarChart:before {\n content: \"\\ea8b\";\n}\n.ch-icon-insertRadarChart:before {\n content: \"\\ea8c\";\n}\n.ch-icon-insertMapChart:before {\n content: \"\\ea8d\";\n}\n.ch-icon-insertHeatmapChart:before {\n content: \"\\ea8e\";\n}\n.ch-icon-insertPieChart:before {\n content: \"\\ea8f\";\n}\n.ch-icon-insertScatterChart:before {\n content: \"\\ea90\";\n}\n.ch-icon-insertSankeyChart:before {\n content: \"\\ea91\";\n}\n.ch-icon-menu:before {\n content: \"\\ea92\";\n}\n.ch-icon-main-theme:before {\n content: \"\\ea94\";\n}\n.ch-icon-code-theme:before {\n content: \"\\ea95\";\n}\n";
19
+ var css = "/**\n * Cherry Markdown Icon Font\n * 用于在 Light DOM 中加载字体,解决 Shadow DOM 中 @font-face 无法加载的问题\n * 打包后字体文件会输出到 lib/assets/ 目录,所以使用 ../assets/ 路径\n */\n@font-face {\n font-family: \"ch-icon\";\n src: url(\"../assets/ch-icon.eot\");\n src: url(\"../assets/ch-icon.eot?#iefix\") format(\"eot\"), url(\"../assets/ch-icon.woff2\") format(\"woff2\"), url(\"../assets/ch-icon.woff\") format(\"woff\"), url(\"../assets/ch-icon.ttf\") format(\"truetype\"), url(\"../assets/ch-icon.svg#ch-icon\") format(\"svg\");\n font-weight: normal;\n font-style: normal;\n}\n.ch-icon:before {\n display: inline-block;\n font-family: \"ch-icon\";\n font-style: normal;\n font-weight: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.ch-icon-list:before {\n content: \"\\ea03\";\n}\n.ch-icon-check:before {\n content: \"\\ea04\";\n}\n.ch-icon-square:before {\n content: \"\\ea09\";\n}\n.ch-icon-bold:before {\n content: \"\\ea0a\";\n}\n.ch-icon-code:before {\n content: \"\\ea0b\";\n}\n.ch-icon-color:before {\n content: \"\\ea0c\";\n}\n.ch-icon-header:before {\n content: \"\\ea0d\";\n}\n.ch-icon-image:before {\n content: \"\\ea0e\";\n}\n.ch-icon-italic:before {\n content: \"\\ea0f\";\n}\n.ch-icon-link:before {\n content: \"\\ea10\";\n}\n.ch-icon-ol:before {\n content: \"\\ea11\";\n}\n.ch-icon-size:before {\n content: \"\\ea12\";\n}\n.ch-icon-strike:before {\n content: \"\\ea13\";\n}\n.ch-icon-table:before {\n content: \"\\ea14\";\n}\n.ch-icon-ul:before {\n content: \"\\ea15\";\n}\n.ch-icon-underline:before {\n content: \"\\ea16\";\n}\n.ch-icon-word:before {\n content: \"\\ea17\";\n}\n.ch-icon-blockquote:before {\n content: \"\\ea18\";\n}\n.ch-icon-font:before {\n content: \"\\ea19\";\n}\n.ch-icon-insertClass:before {\n content: \"\\ea1f\";\n}\n.ch-icon-insertFlow:before {\n content: \"\\ea20\";\n}\n.ch-icon-insertFormula:before {\n content: \"\\ea21\";\n}\n.ch-icon-insertGantt:before {\n content: \"\\ea22\";\n}\n.ch-icon-insertGraph:before {\n content: \"\\ea23\";\n}\n.ch-icon-insertPie:before {\n content: \"\\ea24\";\n}\n.ch-icon-insertSeq:before {\n content: \"\\ea25\";\n}\n.ch-icon-insertState:before {\n content: \"\\ea26\";\n}\n.ch-icon-line:before {\n content: \"\\ea27\";\n}\n.ch-icon-preview:before {\n content: \"\\ea28\";\n}\n.ch-icon-previewClose:before {\n content: \"\\ea29\";\n}\n.ch-icon-toc:before {\n content: \"\\ea2a\";\n}\n.ch-icon-sub:before {\n content: \"\\ea2d\";\n}\n.ch-icon-sup:before {\n content: \"\\ea2e\";\n}\n.ch-icon-h1:before {\n content: \"\\ea2f\";\n}\n.ch-icon-h2:before {\n content: \"\\ea30\";\n}\n.ch-icon-h3:before {\n content: \"\\ea31\";\n}\n.ch-icon-h4:before {\n content: \"\\ea32\";\n}\n.ch-icon-h5:before {\n content: \"\\ea33\";\n}\n.ch-icon-h6:before {\n content: \"\\ea34\";\n}\n.ch-icon-video:before {\n content: \"\\ea35\";\n}\n.ch-icon-insert:before {\n content: \"\\ea36\";\n}\n.ch-icon-little_table:before {\n content: \"\\ea37\";\n}\n.ch-icon-pdf:before {\n content: \"\\ea38\";\n}\n.ch-icon-checklist:before {\n content: \"\\ea39\";\n}\n.ch-icon-close:before {\n content: \"\\ea40\";\n}\n.ch-icon-fullscreen:before {\n content: \"\\ea41\";\n}\n.ch-icon-minscreen:before {\n content: \"\\ea42\";\n}\n.ch-icon-insertChart:before {\n content: \"\\ea43\";\n}\n.ch-icon-question:before {\n content: \"\\ea44\";\n}\n.ch-icon-settings:before {\n content: \"\\ea45\";\n}\n.ch-icon-ok:before {\n content: \"\\ea46\";\n}\n.ch-icon-br:before {\n content: \"\\ea47\";\n}\n.ch-icon-normal:before {\n content: \"\\ea48\";\n}\n.ch-icon-undo:before {\n content: \"\\ea49\";\n}\n.ch-icon-redo:before {\n content: \"\\ea50\";\n}\n.ch-icon-copy:before {\n content: \"\\ea51\";\n}\n.ch-icon-phone:before {\n content: \"\\ea52\";\n}\n.ch-icon-cherry-table-delete:before {\n content: \"\\ea53\";\n}\n.ch-icon-cherry-table-insert-bottom:before {\n content: \"\\ea54\";\n}\n.ch-icon-cherry-table-insert-left:before {\n content: \"\\ea55\";\n}\n.ch-icon-cherry-table-insert-right:before {\n content: \"\\ea56\";\n}\n.ch-icon-cherry-table-insert-top:before {\n content: \"\\ea57\";\n}\n.ch-icon-sort-s:before {\n content: \"\\ea58\";\n}\n.ch-icon-pinyin:before {\n content: \"\\ea59\";\n}\n.ch-icon-create:before {\n content: \"\\ea5a\";\n}\n.ch-icon-download:before {\n content: \"\\ea5b\";\n}\n.ch-icon-edit:before {\n content: \"\\ea5c\";\n}\n.ch-icon-export:before {\n content: \"\\ea5d\";\n}\n.ch-icon-folder-open:before {\n content: \"\\ea5e\";\n}\n.ch-icon-folder:before {\n content: \"\\ea5f\";\n}\n.ch-icon-help:before {\n content: \"\\ea60\";\n}\n.ch-icon-pen-fill:before {\n content: \"\\ea61\";\n}\n.ch-icon-pen:before {\n content: \"\\ea62\";\n}\n.ch-icon-tips:before {\n content: \"\\ea64\";\n}\n.ch-icon-warn:before {\n content: \"\\ea65\";\n}\n.ch-icon-mistake:before {\n content: \"\\ea66\";\n}\n.ch-icon-success:before {\n content: \"\\ea67\";\n}\n.ch-icon-danger:before {\n content: \"\\ea68\";\n}\n.ch-icon-info:before {\n content: \"\\ea69\";\n}\n.ch-icon-primary:before {\n content: \"\\ea6a\";\n}\n.ch-icon-warning:before {\n content: \"\\ea6b\";\n}\n.ch-icon-justify:before {\n content: \"\\ea6c\";\n}\n.ch-icon-justifyCenter:before {\n content: \"\\ea6d\";\n}\n.ch-icon-justifyLeft:before {\n content: \"\\ea6e\";\n}\n.ch-icon-justifyRight:before {\n content: \"\\ea6f\";\n}\n.ch-icon-chevronsLeft:before {\n content: \"\\ea70\";\n}\n.ch-icon-chevronsRight:before {\n content: \"\\ea71\";\n}\n.ch-icon-trendingUp:before {\n content: \"\\ea72\";\n}\n.ch-icon-codeBlock:before {\n content: \"\\ea74\";\n}\n.ch-icon-expand:before {\n content: \"\\ea75\";\n}\n.ch-icon-unExpand:before {\n content: \"\\ea76\";\n}\n.ch-icon-swap-vert:before {\n content: \"\\ea77\";\n}\n.ch-icon-swap:before {\n content: \"\\ea78\";\n}\n.ch-icon-keyboard:before {\n content: \"\\ea79\";\n}\n.ch-icon-command:before {\n content: \"\\ea7a\";\n}\n.ch-icon-search:before {\n content: \"\\ea7b\";\n}\n.ch-icon-alignCenter:before {\n content: \"\\ea7c\";\n}\n.ch-icon-alignJustify:before {\n content: \"\\ea7d\";\n}\n.ch-icon-alignLeft:before {\n content: \"\\ea7e\";\n}\n.ch-icon-alignRight:before {\n content: \"\\ea7f\";\n}\n.ch-icon-align:before {\n content: \"\\ea80\";\n}\n.ch-icon-imgDecoBorder:before {\n content: \"\\ea81\";\n}\n.ch-icon-imgDecoShadow:before {\n content: \"\\ea82\";\n}\n.ch-icon-imgDecoRadius:before {\n content: \"\\ea83\";\n}\n.ch-icon-imgAlignLeft:before {\n content: \"\\ea84\";\n}\n.ch-icon-imgAlignCenter:before {\n content: \"\\ea85\";\n}\n.ch-icon-imgAlignRight:before {\n content: \"\\ea86\";\n}\n.ch-icon-imgAlignFloatLeft:before {\n content: \"\\ea87\";\n}\n.ch-icon-imgAlignFloatRight:before {\n content: \"\\ea88\";\n}\n.ch-icon-insertLineChart:before {\n content: \"\\ea8a\";\n}\n.ch-icon-insertBarChart:before {\n content: \"\\ea8b\";\n}\n.ch-icon-insertRadarChart:before {\n content: \"\\ea8c\";\n}\n.ch-icon-insertMapChart:before {\n content: \"\\ea8d\";\n}\n.ch-icon-insertHeatmapChart:before {\n content: \"\\ea8e\";\n}\n.ch-icon-insertPieChart:before {\n content: \"\\ea8f\";\n}\n.ch-icon-insertScatterChart:before {\n content: \"\\ea90\";\n}\n.ch-icon-insertSankeyChart:before {\n content: \"\\ea91\";\n}\n.ch-icon-menu:before {\n content: \"\\ea92\";\n}\n.ch-icon-main-theme:before {\n content: \"\\ea94\";\n}\n.ch-icon-code-theme:before {\n content: \"\\ea95\";\n}\n";
20
20
 
21
21
  const tdesignGlobalStyleId = 'tdesign-wc-global-style';
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tdesign-web-components",
3
3
  "purename": "tdesign",
4
- "version": "1.3.1-alpha.7",
4
+ "version": "1.3.1-alpha.8",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.js",
@@ -13,7 +13,8 @@
13
13
  "site": "cd site && vite build",
14
14
  "site:preview": "cd site && vite build --mode preview && cd ../_site && cp index.html 404.html",
15
15
  "prebuild": "rimraf es/* lib/* dist/* esm/* cjs/*",
16
- "build": "cross-env NODE_ENV=production rollup -c script/rollup.config.js && npm run build:tsc",
16
+ "build": "cross-env NODE_ENV=production rollup -c script/rollup.config.js && npm run build:tsc && npm run copy:fonts",
17
+ "copy:fonts": "mkdir -p lib/assets && cp node_modules/cherry-markdown/dist/fonts/ch-icon.* lib/assets/",
17
18
  "build:analyze": "cross-env NODE_ENV=production ANALYZE=true rollup -c script/rollup.config.js && npm run build:tsc",
18
19
  "build:analyze:all": "cross-env NODE_ENV=production ANALYZE=true ANALYZE_MODE=all rollup -c script/rollup.config.js && npm run build:tsc",
19
20
  "build:analyze:umd": "cross-env NODE_ENV=production ANALYZE=true ANALYZE_MODE=umd rollup -c script/rollup.config.js && npm run build:tsc",
Binary file