@doubao-dev/template 0.8.0 → 0.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.
@@ -1 +1 @@
1
- .doubao-checkout-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-checkout-card__products{display:flex;flex-direction:column;align-items:stretch;width:100%}.doubao-checkout-card__product{position:relative}.doubao-checkout-card__product+.doubao-checkout-card__product::before{position:absolute;top:0;right:16px;left:16px;height:1px;background-color:var(--neutral-transparent-1);content:""}
1
+ .doubao-checkout-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:12px}.doubao-checkout-card__products{display:flex;flex-direction:column;align-items:stretch;width:100%}.doubao-checkout-card__product{position:relative}.doubao-checkout-card__product+.doubao-checkout-card__product::before{position:absolute;top:0;right:16px;left:16px;height:1px;background-color:var(--neutral-transparent-1);content:""}
@@ -1 +1 @@
1
- .doubao-template-title-bar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:40px;padding:12px;box-sizing:border-box;border-bottom:.5px solid var(--neutral-transparent-1)}.doubao-template-title-bar--floating{position:absolute;z-index:1;top:8px;left:8px;width:auto;max-width:calc(100% - 16px);height:auto;padding:6px 8px;border:0;border-radius:8px;background:var(--bg-base-1);box-shadow:0 4px 10px rgba(0,0,0,.04)}.doubao-template-title-bar__app{display:flex;flex-direction:row;align-items:center;min-width:0}.doubao-template-title-bar__app-icon{width:16px;height:16px;flex-shrink:0;overflow:hidden;border-radius:4px}.doubao-template-title-bar__app-name,.doubao-template-title-bar__more-text{overflow:hidden;color:var(--neutral-50);font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.doubao-template-title-bar__app-name{margin-left:6px;font-weight:500}.doubao-template-title-bar__more{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-shrink:0;min-width:62.5px}.doubao-template-title-bar__status{display:flex;align-items:center;flex-shrink:0;max-width:50%;height:24px;padding:5px 8px;box-sizing:border-box;overflow:hidden;border-radius:12px;background-color:#fff3e6}.doubao-template-title-bar__status-text{overflow:hidden;color:#f09300;font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;font-weight:500;line-height:14px;text-overflow:ellipsis;white-space:nowrap}.doubao-template-title-bar__more-text{font-weight:400}.doubao-template-title-bar__more-chevron{width:12px;height:12px;flex-shrink:0;margin-left:2px}.doubao-theme-dark .doubao-template-title-bar__status{background-color:var(--warning-trans-10)}.doubao-theme-dark .doubao-template-title-bar__status-text{color:var(--conditional-warning-50)}
1
+ .doubao-template-title-bar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:40px;padding:12px;box-sizing:border-box;border-bottom:1px solid var(--neutral-transparent-1)}.doubao-template-title-bar--floating{position:absolute;z-index:1;top:8px;left:8px;width:auto;max-width:calc(100% - 16px);height:auto;padding:6px 8px;border:0;border-radius:8px;background:var(--bg-base-1);box-shadow:0 4px 10px rgba(0,0,0,.04)}.doubao-template-title-bar__app{display:flex;flex-direction:row;align-items:center;min-width:0}.doubao-template-title-bar__app-icon{width:16px;height:16px;flex-shrink:0;overflow:hidden;border-radius:4px}.doubao-template-title-bar__app-name,.doubao-template-title-bar__more-text{overflow:hidden;color:var(--neutral-50);font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.doubao-template-title-bar__app-name{margin-left:6px;font-weight:500}.doubao-template-title-bar__more{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-shrink:0;min-width:62.5px}.doubao-template-title-bar__status{display:flex;align-items:center;flex-shrink:0;max-width:50%;height:24px;padding:5px 8px;box-sizing:border-box;overflow:hidden;border-radius:12px;background-color:#fff3e6}.doubao-template-title-bar__status-text{overflow:hidden;color:#e66805;font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;font-weight:500;line-height:14px;text-overflow:ellipsis;white-space:nowrap}.doubao-template-title-bar__more-text{font-weight:400}.doubao-template-title-bar__more-chevron{width:12px;height:12px;flex-shrink:0;margin-left:2px}.doubao-theme-dark .doubao-template-title-bar__status{background-color:#523e23}.doubao-theme-dark .doubao-template-title-bar__status-text{color:var(--warning-500)}
@@ -1 +1 @@
1
- .doubao-template-info-section{display:flex;flex-direction:column;width:100%;padding:12px;box-sizing:border-box;border-top:.5px solid var(--neutral-transparent-1)}.doubao-template-info-section__info{display:flex;flex-direction:column;width:100%}.doubao-template-info-section__info-row{display:flex;flex-direction:row;align-items:flex-start;width:100%}.doubao-template-info-section__info-row+.doubao-template-info-section__info-row{margin-top:8px}.doubao-template-info-section__info-label-wrap{display:flex;flex:0 0 66px;flex-direction:row;align-items:center;width:66px;overflow:hidden}.doubao-template-info-section__info-label,.doubao-template-info-section__info-value,.doubao-template-info-section__fee,.doubao-template-info-section__total-label,.doubao-template-info-section__total-price{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-info-section__info-label{width:100%;max-width:100%;min-width:0;color:var(--neutral-100);font-size:13px;font-weight:400;line-height:20px}.doubao-template-info-section__info-value-wrap{display:flex;flex:1 1 0;flex-direction:row;align-items:center;justify-content:flex-end;min-width:0;overflow:hidden}.doubao-template-info-section__info-value{min-width:0;margin-left:6px;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px;text-align:right}.doubao-template-info-section__info-value:first-child{margin-left:0}.doubao-template-info-section--value-column .doubao-template-info-section__info-value-wrap{flex-direction:column;align-items:flex-end}.doubao-template-info-section--value-column .doubao-template-info-section__info-value{max-width:100%;margin-left:0}.doubao-template-info-section__summary{display:flex;flex-direction:row;justify-content:flex-end;width:100%;margin-top:8px}.doubao-template-info-section__summary-content{display:flex;flex:1 1 0;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:flex-end;gap:0 6px;max-width:100%;max-height:42px;min-width:0;overflow:hidden}.doubao-template-info-section__fees{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;gap:0 6px;max-width:100%;min-width:0;overflow:hidden}.doubao-template-info-section__fee{flex:0 1 auto;max-width:100%;min-width:0;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px}.doubao-template-info-section__total{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;justify-content:flex-end;max-width:100%;min-width:0;overflow:hidden}.doubao-template-info-section__total-label{flex:0 1 auto;max-width:100%;min-width:0;color:var(--neutral-100);font-size:13px;font-weight:500;line-height:20px}.doubao-template-info-section__total-price{flex:0 1 auto;max-width:100%;min-width:0;margin-left:2px;color:var(--neutral-100);font-size:15px;font-weight:500;line-height:22px}
1
+ .doubao-template-info-section{display:flex;flex-direction:column;width:100%;padding:12px;box-sizing:border-box;border-top:1px solid var(--neutral-transparent-1)}.doubao-template-info-section__info{display:flex;flex-direction:column;width:100%}.doubao-template-info-section__info-row{display:flex;flex-direction:row;align-items:flex-start;width:100%}.doubao-template-info-section__info-row+.doubao-template-info-section__info-row{margin-top:8px}.doubao-template-info-section__info-label-wrap{display:flex;flex:0 0 66px;flex-direction:row;align-items:center;width:66px;overflow:hidden}.doubao-template-info-section__info-label,.doubao-template-info-section__info-value,.doubao-template-info-section__fee,.doubao-template-info-section__total-label,.doubao-template-info-section__total-price{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-info-section__info-label{width:100%;max-width:100%;min-width:0;color:var(--neutral-100);font-size:13px;font-weight:400;line-height:20px}.doubao-template-info-section__info-value-wrap{display:flex;flex:1 1 0;flex-direction:row;align-items:center;justify-content:flex-end;min-width:0;overflow:hidden}.doubao-template-info-section__info-value{min-width:0;margin-left:6px;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px;text-align:right}.doubao-template-info-section__info-value:first-child{margin-left:0}.doubao-template-info-section--value-column .doubao-template-info-section__info-value-wrap{flex-direction:column;align-items:flex-end}.doubao-template-info-section--value-column .doubao-template-info-section__info-value{max-width:100%;margin-left:0}.doubao-template-info-section__summary{display:flex;flex-direction:row;justify-content:flex-end;width:100%;margin-top:8px}.doubao-template-info-section__summary-content{display:flex;flex:1 1 0;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:flex-end;gap:0 6px;max-width:100%;max-height:42px;min-width:0;overflow:hidden}.doubao-template-info-section__fees{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;gap:0 6px;max-width:100%;min-width:0;overflow:hidden}.doubao-template-info-section__fee{flex:0 1 auto;max-width:100%;min-width:0;color:var(--neutral-70);font-size:13px;font-weight:400;line-height:20px}.doubao-template-info-section__total{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;justify-content:flex-end;max-width:100%;min-width:0;overflow:hidden}.doubao-template-info-section__total-label{flex:0 1 auto;max-width:100%;min-width:0;color:var(--neutral-100);font-size:13px;font-weight:500;line-height:20px}.doubao-template-info-section__total-price{flex:0 1 auto;max-width:100%;min-width:0;margin-left:2px;color:var(--neutral-100);font-size:15px;font-weight:500;line-height:22px}
@@ -36,11 +36,12 @@ function renderTemplateTransportSummaryTextField(content, wrapperClassName, text
36
36
  }
37
37
  function renderTemplateTransportSummaryPriceAction(actionText, actionTone, showActionIcon, isDark) {
38
38
  if (isTemplateTransportSummaryTextEmpty(actionText)) return null;
39
+ const actionColor = 'highlight' === actionTone ? isDark ? '#3385ff' : '#0066ff' : isDark ? '#bababa' : '#666666';
39
40
  return <view className="doubao-template-transport-summary__price-action">
40
41
  <text className={clsx('doubao-template-transport-summary__price-action-text', `doubao-template-transport-summary__price-action-text--${actionTone}`)} text-maxline="1">
41
42
  {actionText}
42
43
  </text>
43
- {showActionIcon ? <TemplateChevronRightIcon className="doubao-template-transport-summary__price-action-icon" color={'highlight' === actionTone ? '#ff375f' : isDark ? '#bababa' : '#666666'}/> : null}
44
+ {showActionIcon ? <TemplateChevronRightIcon className="doubao-template-transport-summary__price-action-icon" color={actionColor}/> : null}
44
45
  </view>;
45
46
  }
46
47
  function renderTemplateTransportSummaryPrice(price, tag, actionText, actionTone, showActionIcon, loading, tagTone, isDark, onPriceClick) {
@@ -1 +1 @@
1
- .doubao-template-transport-summary{position:relative;display:flex;flex-direction:column;justify-content:flex-start;width:100%;min-width:0;box-sizing:border-box;padding:12px 12px 16px}.doubao-template-transport-summary__price-extra{position:relative;display:flex;width:100%;min-width:0}.doubao-template-transport-summary__price-extra-content{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:100%;min-width:0}.doubao-template-transport-summary__price-extra-content--loading{visibility:hidden}.doubao-template-transport-summary__price-extra-loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:flex-end}.doubao-template-transport-summary__price-extra-loading{position:relative;width:16px;height:16px;flex-shrink:0}.doubao-template-transport-summary__price-extra-loading-spoke{position:absolute;top:1.333px;left:7.167px;width:1.667px;height:4.167px;border-radius:999px;transform-origin:50% 6.667px;animation:doubao-template-price-extra-loading-fade 1s linear infinite}.doubao-template-transport-summary__price-extra-loading--highlight .doubao-template-transport-summary__price-extra-loading-spoke,.doubao-template-transport-summary__price-extra-loading--tag-marketing .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#ff375f}.doubao-template-transport-summary__price-extra-loading--muted .doubao-template-transport-summary__price-extra-loading-spoke{background-color:var(--neutral-70)}.doubao-template-transport-summary__price-extra-loading--tag-neutral .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#666}.doubao-theme-dark .doubao-template-transport-summary__price-extra-loading--tag-marketing .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#ff5c7c}.doubao-theme-dark .doubao-template-transport-summary__price-extra-loading--tag-neutral .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#bababa}.doubao-template-transport-summary__price-extra-loading-spoke--0{transform:rotate(0deg);animation-delay:0s}.doubao-template-transport-summary__price-extra-loading-spoke--1{transform:rotate(45deg);animation-delay:-0.125s}.doubao-template-transport-summary__price-extra-loading-spoke--2{transform:rotate(90deg);animation-delay:-0.25s}.doubao-template-transport-summary__price-extra-loading-spoke--3{transform:rotate(135deg);animation-delay:-0.375s}.doubao-template-transport-summary__price-extra-loading-spoke--4{transform:rotate(180deg);animation-delay:-0.5s}.doubao-template-transport-summary__price-extra-loading-spoke--5{transform:rotate(225deg);animation-delay:-0.625s}.doubao-template-transport-summary__price-extra-loading-spoke--6{transform:rotate(270deg);animation-delay:-0.75s}.doubao-template-transport-summary__price-extra-loading-spoke--7{transform:rotate(315deg);animation-delay:-0.875s}.doubao-template-transport-summary__route-hit-area{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.doubao-template-transport-summary__title,.doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point-sub,.doubao-template-transport-summary__transfer-label,.doubao-template-transport-summary__price{display:flex;flex-direction:row;align-items:center;min-width:0;overflow:hidden;flex-shrink:0}.doubao-template-transport-summary__title{height:20px;max-width:100%;box-sizing:border-box}.doubao-template-transport-summary__title-text,.doubao-template-transport-summary__route-point-main-text,.doubao-template-transport-summary__arrival-day-offset-text,.doubao-template-transport-summary__route-point-sub-text,.doubao-template-transport-summary__transfer-label-text{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-transport-summary__title-text{color:var(--neutral-100);font-size:13px;font-weight:400;line-height:20px}.doubao-template-transport-summary__route-row{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:flex-start;justify-content:space-between;width:100%;height:46px;min-width:0;margin-top:2px;overflow:hidden}.doubao-template-transport-summary__route-point{display:flex;flex-shrink:0;flex-direction:column;justify-content:center;width:66px;min-width:0;height:42px}.doubao-template-transport-summary__route-point--arrival{align-items:flex-end}.doubao-template-transport-summary__arrival{position:relative;display:flex;flex-shrink:0;width:66px;min-width:0;height:42px}.doubao-template-transport-summary__arrival .doubao-template-transport-summary__route-point{width:100%;height:42px}.doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point-sub{width:100%}.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub{justify-content:flex-end}.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main-text,.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub-text{text-align:right}.doubao-template-transport-summary__route-point-main{height:22px}.doubao-template-transport-summary__route-point-sub{height:16px;margin-top:2px}.doubao-template-transport-summary__route-point-main-text{min-width:0;color:var(--neutral-100);font-family:"SF Pro",sans-serif;font-size:17px;font-weight:600;line-height:22px}.doubao-template-transport-summary__arrival-day-offset{position:absolute;top:2px;left:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;height:14px}.doubao-template-transport-summary__arrival-day-offset-text{color:var(--neutral-100);font-size:10px;font-weight:400;line-height:normal}.doubao-template-transport-summary__route-point-sub-text{color:var(--neutral-70);font-size:12px;font-weight:400;line-height:16px}.doubao-template-transport-summary__transfer-label-text{color:var(--neutral-50);font-size:10px;font-weight:400;line-height:14px}.doubao-template-transport-summary__transfer{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:center;width:56px;min-width:0;height:42px;box-sizing:border-box}.doubao-template-transport-summary__transfer-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;min-width:0;height:38px}.doubao-template-transport-summary__transfer-label{height:14px}.doubao-template-transport-summary__transfer-arrow{display:flex;flex-direction:row;align-items:center;justify-content:center;width:36px;height:6px;flex-shrink:0}.doubao-template-transport-summary__transfer-arrow-icon{width:36px;height:6px;flex-shrink:0}.doubao-template-transport-summary__price{position:relative;z-index:2;flex:0 0 88px;flex-direction:column;align-items:flex-end;justify-content:center;width:88px;height:42px;box-sizing:border-box}.doubao-template-transport-summary__price>.doubao-price{justify-content:flex-end;width:100%;min-width:0;overflow:hidden}.doubao-template-transport-summary__price .doubao-price__amount,.doubao-template-transport-summary__price .doubao-price__main,.doubao-template-transport-summary__price .doubao-price__integer-group{max-width:100%;min-width:0;overflow:hidden}.doubao-template-transport-summary__price .doubao-price__main,.doubao-template-transport-summary__price .doubao-price__integer-group,.doubao-template-transport-summary__price .doubao-price__integer{flex-shrink:1}.doubao-template-transport-summary__price .doubao-price__integer{min-width:0;overflow:hidden;text-overflow:ellipsis}.doubao-template-transport-summary__price--with-action{gap:1px;height:39px}.doubao-template-transport-summary__price-action{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:100%;min-width:0;height:16px;overflow:hidden}.doubao-template-transport-summary__price-action-text{min-width:0;overflow:hidden;font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.doubao-template-transport-summary__price-action-text--highlight{color:#ff375f}.doubao-template-transport-summary__price-action-text--muted{color:var(--neutral-70)}.doubao-template-transport-summary__price-action-icon{width:10px;height:10px;margin-right:-3px;flex-shrink:0;opacity:.34}.doubao-template-transport-summary__price--with-tag{gap:4px;height:46px}@keyframes doubao-template-price-extra-loading-fade{0%{opacity:1}100%{opacity:.2}}
1
+ .doubao-template-transport-summary{position:relative;display:flex;flex-direction:column;justify-content:flex-start;width:100%;min-width:0;box-sizing:border-box;padding:12px 12px 16px}.doubao-template-transport-summary__price-extra{position:relative;display:flex;width:100%;min-width:0}.doubao-template-transport-summary__price-extra-content{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:100%;min-width:0}.doubao-template-transport-summary__price-extra-content--loading{visibility:hidden}.doubao-template-transport-summary__price-extra-loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:flex-end}.doubao-template-transport-summary__price-extra-loading{position:relative;width:16px;height:16px;flex-shrink:0}.doubao-template-transport-summary__price-extra-loading-spoke{position:absolute;top:1.333px;left:7.167px;width:1.667px;height:4.167px;border-radius:999px;transform-origin:50% 6.667px;animation:doubao-template-price-extra-loading-fade 1s linear infinite}.doubao-template-transport-summary__price-extra-loading--highlight .doubao-template-transport-summary__price-extra-loading-spoke{background-color:var(--theme-default-link)}.doubao-template-transport-summary__price-extra-loading--tag-marketing .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#e66805}.doubao-template-transport-summary__price-extra-loading--muted .doubao-template-transport-summary__price-extra-loading-spoke{background-color:var(--neutral-70)}.doubao-template-transport-summary__price-extra-loading--tag-neutral .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#666}.doubao-theme-dark .doubao-template-transport-summary__price-extra-loading--tag-marketing .doubao-template-transport-summary__price-extra-loading-spoke{background-color:var(--warning-500)}.doubao-theme-dark .doubao-template-transport-summary__price-extra-loading--tag-neutral .doubao-template-transport-summary__price-extra-loading-spoke{background-color:#bababa}.doubao-template-transport-summary__price-extra-loading-spoke--0{transform:rotate(0deg);animation-delay:0s}.doubao-template-transport-summary__price-extra-loading-spoke--1{transform:rotate(45deg);animation-delay:-0.125s}.doubao-template-transport-summary__price-extra-loading-spoke--2{transform:rotate(90deg);animation-delay:-0.25s}.doubao-template-transport-summary__price-extra-loading-spoke--3{transform:rotate(135deg);animation-delay:-0.375s}.doubao-template-transport-summary__price-extra-loading-spoke--4{transform:rotate(180deg);animation-delay:-0.5s}.doubao-template-transport-summary__price-extra-loading-spoke--5{transform:rotate(225deg);animation-delay:-0.625s}.doubao-template-transport-summary__price-extra-loading-spoke--6{transform:rotate(270deg);animation-delay:-0.75s}.doubao-template-transport-summary__price-extra-loading-spoke--7{transform:rotate(315deg);animation-delay:-0.875s}.doubao-template-transport-summary__route-hit-area{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.doubao-template-transport-summary__title,.doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point-sub,.doubao-template-transport-summary__transfer-label,.doubao-template-transport-summary__price{display:flex;flex-direction:row;align-items:center;min-width:0;overflow:hidden;flex-shrink:0}.doubao-template-transport-summary__title{height:20px;max-width:100%;box-sizing:border-box}.doubao-template-transport-summary__title-text,.doubao-template-transport-summary__route-point-main-text,.doubao-template-transport-summary__arrival-day-offset-text,.doubao-template-transport-summary__route-point-sub-text,.doubao-template-transport-summary__transfer-label-text{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-transport-summary__title-text{color:var(--neutral-100);font-size:13px;font-weight:400;line-height:20px}.doubao-template-transport-summary__route-row{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:flex-start;justify-content:space-between;width:100%;height:46px;min-width:0;margin-top:2px;overflow:hidden}.doubao-template-transport-summary__route-point{display:flex;flex-shrink:0;flex-direction:column;justify-content:center;width:66px;min-width:0;height:42px}.doubao-template-transport-summary__route-point--arrival{align-items:flex-end}.doubao-template-transport-summary__arrival{position:relative;display:flex;flex-shrink:0;width:66px;min-width:0;height:42px}.doubao-template-transport-summary__arrival .doubao-template-transport-summary__route-point{width:100%;height:42px}.doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point-sub{width:100%}.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub{justify-content:flex-end}.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main-text,.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub-text{text-align:right}.doubao-template-transport-summary__route-point-main{height:22px}.doubao-template-transport-summary__route-point-sub{height:16px;margin-top:2px}.doubao-template-transport-summary__route-point-main-text{min-width:0;color:var(--neutral-100);font-family:"SF Pro",sans-serif;font-size:17px;font-weight:600;line-height:22px}.doubao-template-transport-summary__arrival-day-offset{position:absolute;top:2px;left:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;height:14px}.doubao-template-transport-summary__arrival-day-offset-text{color:var(--neutral-100);font-size:10px;font-weight:400;line-height:normal}.doubao-template-transport-summary__route-point-sub-text{color:var(--neutral-70);font-size:12px;font-weight:400;line-height:16px}.doubao-template-transport-summary__transfer-label-text{color:var(--neutral-50);font-size:10px;font-weight:400;line-height:14px}.doubao-template-transport-summary__transfer{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:center;width:56px;min-width:0;height:42px;box-sizing:border-box}.doubao-template-transport-summary__transfer-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;min-width:0;height:38px}.doubao-template-transport-summary__transfer-label{height:14px}.doubao-template-transport-summary__transfer-arrow{display:flex;flex-direction:row;align-items:center;justify-content:center;width:36px;height:6px;flex-shrink:0}.doubao-template-transport-summary__transfer-arrow-icon{width:36px;height:6px;flex-shrink:0}.doubao-template-transport-summary__price{position:relative;z-index:2;flex:0 0 88px;flex-direction:column;align-items:flex-end;justify-content:center;width:88px;height:42px;box-sizing:border-box}.doubao-template-transport-summary__price>.doubao-price{justify-content:flex-end;width:100%;min-width:0;overflow:hidden}.doubao-template-transport-summary__price .doubao-price__amount,.doubao-template-transport-summary__price .doubao-price__main,.doubao-template-transport-summary__price .doubao-price__integer-group{max-width:100%;min-width:0;overflow:hidden}.doubao-template-transport-summary__price .doubao-price__main,.doubao-template-transport-summary__price .doubao-price__integer-group,.doubao-template-transport-summary__price .doubao-price__integer{flex-shrink:1}.doubao-template-transport-summary__price .doubao-price__integer{min-width:0;overflow:hidden;text-overflow:ellipsis}.doubao-template-transport-summary__price--with-action{gap:1px;height:39px}.doubao-template-transport-summary__price-action{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:100%;min-width:0;height:16px;overflow:hidden}.doubao-template-transport-summary__price-action-text{min-width:0;overflow:hidden;font-family:"PingFang SC",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.doubao-template-transport-summary__price-action-text--highlight{color:var(--theme-default-link)}.doubao-template-transport-summary__price-action-text--muted{color:var(--neutral-70)}.doubao-template-transport-summary__price-action-icon{width:10px;height:10px;margin-right:-3px;flex-shrink:0;opacity:.34}.doubao-template-transport-summary__price--with-tag{gap:4px;height:46px}@keyframes doubao-template-price-extra-loading-fade{0%{opacity:1}100%{opacity:.2}}
@@ -1 +1 @@
1
- .doubao-composite-card{display:flex;flex-direction:column;align-items:stretch;width:100%;position:relative;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-composite-card__sections{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box}.doubao-composite-card__section{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box}.doubao-composite-card__option-group{width:100%;min-width:0;padding:0 12px 16px;box-sizing:border-box}
1
+ .doubao-composite-card{display:flex;flex-direction:column;align-items:stretch;width:100%;position:relative;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:12px}.doubao-composite-card__sections{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box}.doubao-composite-card__section{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box}.doubao-composite-card__option-group{width:100%;min-width:0;padding:0 12px 16px;box-sizing:border-box}
@@ -1 +1 @@
1
- .doubao-content-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-content-card__body{width:100%;box-sizing:border-box}.doubao-content-card__item{position:relative;width:100%;padding:12px;box-sizing:border-box}.doubao-content-card__item--without-thumbnail{padding-top:16px;padding-bottom:16px}.doubao-content-card__item::after{position:absolute;right:0;bottom:0;left:104px;height:.5px;content:"";background-color:var(--neutral-transparent-1)}.doubao-content-card__item--without-thumbnail::after{left:12px}.doubao-content-card__item--last::after{display:none}.doubao-content-card__content{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;min-width:0}.doubao-content-card__main{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:12px;min-width:0}.doubao-content-card__thumbnail{align-self:flex-start;width:80px;height:80px;flex-shrink:0;overflow:hidden;background-color:var(--bg-base-1-overlay);border-radius:5px}.doubao-content-card__thumbnail-image{width:100%;height:100%}.doubao-content-card__text{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.doubao-content-card__title{width:100%;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.doubao-content-card__title-custom,.doubao-content-card__subtitle-custom,.doubao-content-card__description-custom{display:flex;flex-direction:row;align-items:center;width:100%;max-width:100%;overflow:hidden}.doubao-content-card__secondary,.doubao-content-card__tertiary{display:flex;flex-direction:row;align-items:center;width:100%;min-width:0;overflow:hidden}.doubao-content-card__subtitle,.doubao-content-card__description{width:100%;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.doubao-content-card__item-action{display:flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center}.doubao-content-card__item:not(.doubao-content-card__item--without-thumbnail) .doubao-content-card__content{align-items:flex-start}.doubao-content-card__item:not(.doubao-content-card__item--without-thumbnail) .doubao-content-card__item-action{height:80px}.doubao-content-card__item-action-button{width:auto;min-width:60px;max-width:100px}.doubao-content-card__item-action-switch{flex-shrink:0}.doubao-content-card__item-action-playback{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px}.doubao-content-card__item-action-playback--disabled{opacity:.4}.doubao-content-card__item-action-playback-icon{width:32px;height:32px}
1
+ .doubao-content-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:12px}.doubao-content-card__body{width:100%;box-sizing:border-box}.doubao-content-card__item{position:relative;width:100%;padding:12px;box-sizing:border-box}.doubao-content-card__item--without-thumbnail{padding-top:16px;padding-bottom:16px}.doubao-content-card__item::after{position:absolute;right:0;bottom:0;left:104px;height:1px;content:"";background-color:var(--neutral-transparent-1)}.doubao-content-card__item--without-thumbnail::after{left:12px}.doubao-content-card__item--last::after{display:none}.doubao-content-card__content{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;min-width:0}.doubao-content-card__main{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:12px;min-width:0}.doubao-content-card__thumbnail{align-self:flex-start;width:80px;height:80px;flex-shrink:0;overflow:hidden;background-color:var(--bg-base-1-overlay);border-radius:5px}.doubao-content-card__thumbnail-image{width:100%;height:100%}.doubao-content-card__text{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.doubao-content-card__title{width:100%;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.doubao-content-card__title-custom,.doubao-content-card__subtitle-custom,.doubao-content-card__description-custom{display:flex;flex-direction:row;align-items:center;width:100%;max-width:100%;overflow:hidden}.doubao-content-card__secondary,.doubao-content-card__tertiary{display:flex;flex-direction:row;align-items:center;width:100%;min-width:0;overflow:hidden}.doubao-content-card__subtitle,.doubao-content-card__description{width:100%;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.doubao-content-card__item-action{display:flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center}.doubao-content-card__item:not(.doubao-content-card__item--without-thumbnail) .doubao-content-card__content{align-items:flex-start}.doubao-content-card__item:not(.doubao-content-card__item--without-thumbnail) .doubao-content-card__item-action{height:80px}.doubao-content-card__item-action-button{width:auto;min-width:60px;max-width:100px}.doubao-content-card__item-action-switch{flex-shrink:0}.doubao-content-card__item-action-playback{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px}.doubao-content-card__item-action-playback--disabled{opacity:.4}.doubao-content-card__item-action-playback-icon{width:32px;height:32px}
@@ -1 +1 @@
1
- .doubao-coupon-card{width:100%;min-width:0;box-sizing:border-box}.doubao-coupon-card--single{max-width:400px}.doubao-coupon-card--double{max-width:408px}.doubao-coupon-card__items{display:flex;flex-direction:row;align-items:stretch;gap:8px;width:100%;box-sizing:border-box}.doubao-coupon-card__item{position:relative;display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:4px;min-width:0;height:80px;padding:0 12px 0 8px;box-sizing:border-box;overflow:hidden;background-color:#fff3ee;border:.5px solid #fae5dc;border-radius:10px}.doubao-coupon-card__item--disabled{opacity:.5}.doubao-coupon-card__item--pressed::after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";pointer-events:none;background-color:var(--neutral-transparent-1)}.doubao-coupon-card__content{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:4px;min-width:0}.doubao-coupon-card__value-area{display:flex;align-items:center;justify-content:center;width:74px;height:74px;flex-shrink:0;overflow:hidden}.doubao-coupon-card__prize{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:100%;min-width:0}.doubao-coupon-card__amount{display:flex;flex-direction:row;align-items:flex-end;justify-content:center;gap:1px;max-width:100%;height:22px}.doubao-coupon-card__value,.doubao-coupon-card__unit,.doubao-coupon-card__condition,.doubao-coupon-card__source,.doubao-coupon-card__title,.doubao-coupon-card__validity,.doubao-coupon-card__compact-source{display:block;min-width:0;overflow:hidden;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-style:normal;white-space:nowrap;text-overflow:ellipsis}.doubao-coupon-card__value{flex-shrink:1;color:#ff375f;font-family:"SF Pro",sans-serif;font-size:24px;font-weight:600;line-height:24px;letter-spacing:-0.48px}.doubao-coupon-card__unit{flex-shrink:0;color:#ff375f;font-size:11px;font-weight:600;line-height:17px}.doubao-coupon-card__condition,.doubao-coupon-card__compact-source{max-width:100%;color:#ff375f;font-size:11px;font-weight:400;line-height:17px;letter-spacing:-0.22px;text-align:center}.doubao-coupon-card__info{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:8px;min-width:0}.doubao-coupon-card__divider-slot{position:relative;width:0;height:26px;flex-shrink:0}.doubao-coupon-card__divider{position:absolute;top:12.5px;left:-13px;width:26px;height:1px;transform:rotate(90deg)}.doubao-coupon-card__details{display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-width:0}.doubao-coupon-card__heading{display:flex;flex-direction:row;align-items:center;gap:6px;width:100%;min-width:0;height:21px;overflow:hidden}.doubao-coupon-card__source,.doubao-coupon-card__title{flex:0 1 auto;color:var(--neutral-100);font-size:15px;font-weight:500;line-height:21px}.doubao-coupon-card__title-separator{width:.6px;height:9.6px;flex-shrink:0}.doubao-coupon-card__validity{width:100%;color:var(--neutral-80-transparent);font-size:11px;font-weight:400;line-height:15px;letter-spacing:-0.22px}.doubao-coupon-card__compact-info{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;min-width:0;overflow:hidden}.doubao-coupon-card__compact-source{color:var(--neutral-50)}.doubao-coupon-card__action.doubao-button{width:auto;min-width:60px;max-width:100px;height:28px;padding:0 12px;flex-shrink:0;background-color:rgba(0,0,0,0);border:.5px solid var(--neutral-transparent-2);border-radius:40px}.doubao-coupon-card__action.doubao-button .doubao-button-text{min-width:0;flex-shrink:1;overflow:hidden;color:var(--neutral-100);font-size:12px;font-weight:500;line-height:17px;text-overflow:ellipsis}.doubao-coupon-card--double .doubao-coupon-card__item{gap:8px;max-width:200px}.doubao-coupon-card--double .doubao-coupon-card__amount,.doubao-coupon-card--multiple .doubao-coupon-card__amount{height:18px}.doubao-coupon-card--double .doubao-coupon-card__value,.doubao-coupon-card--multiple .doubao-coupon-card__value{line-height:18px}.doubao-coupon-card__scroll{width:100%;height:112px}.doubao-coupon-card--multiple .doubao-coupon-card__items{gap:4px}.doubao-coupon-card--multiple .doubao-coupon-card__item{flex:1 0 0;flex-direction:column;justify-content:center;gap:8px;min-width:96px;max-width:150px;height:112px;padding:16px 4px 8px;border-color:#fae6dd}.doubao-coupon-card--multiple .doubao-coupon-card__compact-info{flex:0 1 auto;width:100%}.doubao-coupon-card--multiple .doubao-coupon-card__action.doubao-button{max-width:100%;height:24px}.doubao-coupon-card.doubao-theme-dark .doubao-coupon-card__item{background-color:var(--bg-base-2-overlay);border-color:var(--neutral-transparent-2)}
1
+ .doubao-coupon-card{width:100%;min-width:0;box-sizing:border-box}.doubao-coupon-card--single{max-width:400px}.doubao-coupon-card--double{max-width:408px}.doubao-coupon-card__items{display:flex;flex-direction:row;align-items:stretch;gap:8px;width:100%;box-sizing:border-box}.doubao-coupon-card__item{position:relative;display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:4px;min-width:0;height:80px;padding:0 12px 0 8px;box-sizing:border-box;overflow:hidden;background-color:#fff3ee;border:.5px solid #fae5dc}.doubao-coupon-card__item--disabled{opacity:.5}.doubao-coupon-card__item--pressed::after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";pointer-events:none;background-color:var(--neutral-transparent-1)}.doubao-coupon-card__content{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:4px;min-width:0}.doubao-coupon-card__value-area{display:flex;align-items:center;justify-content:center;width:74px;height:74px;flex-shrink:0;overflow:hidden}.doubao-coupon-card__prize{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:100%;min-width:0}.doubao-coupon-card__amount{display:flex;flex-direction:row;align-items:flex-end;justify-content:center;gap:1px;max-width:100%;height:22px}.doubao-coupon-card__value,.doubao-coupon-card__unit,.doubao-coupon-card__condition,.doubao-coupon-card__source,.doubao-coupon-card__title,.doubao-coupon-card__validity,.doubao-coupon-card__compact-source{display:block;min-width:0;overflow:hidden;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-style:normal;white-space:nowrap;text-overflow:ellipsis}.doubao-coupon-card__value{flex-shrink:1;color:#ff375f;font-family:"SF Pro",sans-serif;font-size:24px;font-weight:600;line-height:24px;letter-spacing:-0.48px}.doubao-coupon-card__unit{flex-shrink:0;color:#ff375f;font-size:11px;font-weight:600;line-height:17px}.doubao-coupon-card__condition,.doubao-coupon-card__compact-source{max-width:100%;color:#ff375f;font-size:11px;font-weight:400;line-height:17px;letter-spacing:-0.22px;text-align:center}.doubao-coupon-card__info{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:8px;min-width:0}.doubao-coupon-card__divider-slot{position:relative;width:0;height:26px;flex-shrink:0}.doubao-coupon-card__divider{position:absolute;top:12.5px;left:-13px;width:26px;height:1px;transform:rotate(90deg)}.doubao-coupon-card__details{display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-width:0}.doubao-coupon-card__heading{display:flex;flex-direction:row;align-items:center;gap:6px;width:100%;min-width:0;height:21px;overflow:hidden}.doubao-coupon-card__source,.doubao-coupon-card__title{flex:0 1 auto;color:var(--neutral-100);font-size:15px;font-weight:500;line-height:21px}.doubao-coupon-card__title-separator{width:.6px;height:9.6px;flex-shrink:0}.doubao-coupon-card__validity{width:100%;color:var(--neutral-80-transparent);font-size:11px;font-weight:400;line-height:15px;letter-spacing:-0.22px}.doubao-coupon-card__compact-info{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;min-width:0;overflow:hidden}.doubao-coupon-card__compact-source{color:var(--neutral-50)}.doubao-coupon-card__action.doubao-button{width:auto;min-width:60px;max-width:100px;height:28px;padding:0 12px;flex-shrink:0;background-color:rgba(0,0,0,0);border:.5px solid var(--neutral-transparent-2);border-radius:40px}.doubao-coupon-card__action.doubao-button .doubao-button-text{min-width:0;flex-shrink:1;overflow:hidden;color:var(--neutral-100);font-size:12px;font-weight:500;line-height:17px;text-overflow:ellipsis}.doubao-coupon-card--double .doubao-coupon-card__item{gap:8px;max-width:200px}.doubao-coupon-card--double .doubao-coupon-card__amount,.doubao-coupon-card--multiple .doubao-coupon-card__amount{height:18px}.doubao-coupon-card--double .doubao-coupon-card__value,.doubao-coupon-card--multiple .doubao-coupon-card__value{line-height:18px}.doubao-coupon-card__scroll{width:100%;height:112px}.doubao-coupon-card--multiple .doubao-coupon-card__items{gap:4px}.doubao-coupon-card--multiple .doubao-coupon-card__item{flex:1 0 0;flex-direction:column;justify-content:center;gap:8px;min-width:96px;max-width:150px;height:112px;padding:16px 4px 8px;border-color:#fae6dd}.doubao-coupon-card--multiple .doubao-coupon-card__compact-info{flex:0 1 auto;width:100%}.doubao-coupon-card--multiple .doubao-coupon-card__action.doubao-button{max-width:100%;height:24px}.doubao-coupon-card.doubao-theme-dark .doubao-coupon-card__item{background-color:var(--bg-base-2-overlay);border-color:var(--neutral-transparent-2)}
@@ -10,7 +10,7 @@ export interface MapCardMetaItem {
10
10
  key?: TemplateKey;
11
11
  /** 辅助信息文案。 */
12
12
  text: TemplateText;
13
- /** 文案色调。@defaultValue default */
13
+ /** 文案色调。highlight 为豆包蓝。@defaultValue default */
14
14
  tone?: MapCardMetaTone;
15
15
  }
16
16
  export interface MapCardProps {
@@ -1 +1 @@
1
- .doubao-map-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-map-card__viewport{position:relative;width:100%;height:168px;flex-shrink:0;box-sizing:border-box;overflow:hidden;border:1px solid var(--bg-base-2-overlay)}.doubao-map-card__map{width:100%;height:100%}.doubao-map-card__content{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;padding:12px;box-sizing:border-box;border-radius:8px}.doubao-map-card__text-content{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;overflow:hidden}.doubao-map-card__meta{display:flex;flex-direction:row;align-items:center;width:100%;height:22px;flex-shrink:0;min-width:0;overflow:hidden}.doubao-map-card__meta-entry{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;min-width:0;overflow:hidden}.doubao-map-card__meta-separator{margin:0 4px;flex-shrink:0;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-weight:400;line-height:1.5}.doubao-map-card__meta-text{min-width:0;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.doubao-map-card__meta-text--highlight{color:#ff375f}.doubao-map-card__inline-actions{display:flex;flex-shrink:0;flex-direction:row;align-items:center;gap:8px}.doubao-map-card__inline-action{width:auto;min-width:60px;max-width:100px}
1
+ .doubao-map-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:12px}.doubao-map-card__viewport{position:relative;width:100%;height:168px;flex-shrink:0;box-sizing:border-box;overflow:hidden;border:1px solid var(--bg-base-2-overlay)}.doubao-map-card__map{width:100%;height:100%}.doubao-map-card__content{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;padding:12px;box-sizing:border-box;border-radius:8px}.doubao-map-card__text-content{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;overflow:hidden}.doubao-map-card__meta{display:flex;flex-direction:row;align-items:center;width:100%;height:22px;flex-shrink:0;min-width:0;overflow:hidden}.doubao-map-card__meta-entry{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;min-width:0;overflow:hidden}.doubao-map-card__meta-separator{margin:0 4px;flex-shrink:0;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-weight:400;line-height:1.5}.doubao-map-card__meta-text{min-width:0;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.doubao-map-card__meta-text--highlight{color:var(--theme-default-link)}.doubao-map-card__inline-actions{display:flex;flex-shrink:0;flex-direction:row;align-items:center;gap:8px}.doubao-map-card__inline-action{width:auto;min-width:60px;max-width:100px}
@@ -1 +1 @@
1
- .doubao-price-action-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-price-action-card__body{width:100%;box-sizing:border-box}.doubao-price-action-card__default{width:100%;box-sizing:border-box}.doubao-price-action-card__item{position:relative;display:flex;flex-direction:row;align-items:center;width:100%;height:82px;padding:20px 12px;box-sizing:border-box}.doubao-price-action-card__item::after{position:absolute;right:0;bottom:0;left:95px;height:.5px;content:"";background-color:var(--neutral-transparent-1)}.doubao-price-action-card__item--last::after{display:none}.doubao-price-action-card__item--checkbox{height:74px;padding:16px 12px}.doubao-price-action-card__item--checkbox .doubao-price-action-card__value{width:75px;box-sizing:border-box}.doubao-price-action-card__item-content{display:flex;flex-direction:row;align-items:center;width:100%;gap:12px}.doubao-price-action-card__value{display:flex;flex-direction:column;align-items:flex-start;padding:0 4px;width:94px;min-width:0;flex-shrink:0}.doubao-price-action-card__value>.doubao-price{width:100%;min-width:0;overflow:hidden}.doubao-price-action-card__value>.doubao-price .doubao-price__amount,.doubao-price-action-card__value>.doubao-price .doubao-price__main,.doubao-price-action-card__value>.doubao-price .doubao-price__integer-group{max-width:100%;min-width:0;overflow:hidden}.doubao-price-action-card__value>.doubao-price .doubao-price__main,.doubao-price-action-card__value>.doubao-price .doubao-price__integer-group,.doubao-price-action-card__value>.doubao-price .doubao-price__integer{flex-shrink:1}.doubao-price-action-card__value>.doubao-price .doubao-price__integer{min-width:0;overflow:hidden;text-overflow:ellipsis}.doubao-price-action-card__badge{height:20px;max-width:100%;padding:2px 3px;box-sizing:border-box;overflow:hidden;color:var(--pink-500);font-family:"PingFang SC",sans-serif;font-size:11px;font-style:normal;font-weight:400;line-height:14px;text-overflow:ellipsis;white-space:nowrap;background-color:var(--pink-trans-6);border-radius:4px}.doubao-price-action-card__info{display:flex;flex:1 1 0;flex-direction:column;justify-content:center;min-width:0}.doubao-price-action-card__info-row{width:100%;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.doubao-price-action-card__info-row+.doubao-price-action-card__info-row{margin-top:2px}.doubao-price-action-card__item-action{width:auto;min-width:60px;max-width:100px;height:38px;flex-shrink:0;--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 38px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 0;--doubao-button-default-font-size: 14px;--doubao-button-default-line-height: 20px;--doubao-button-default-bg: var(--bg-base-1-overlay);--doubao-button-default-text: var(--neutral-100)}
1
+ .doubao-price-action-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:12px}.doubao-price-action-card__body{width:100%;box-sizing:border-box}.doubao-price-action-card__default{width:100%;box-sizing:border-box}.doubao-price-action-card__item{position:relative;display:flex;flex-direction:row;align-items:center;width:100%;height:82px;padding:20px 12px;box-sizing:border-box}.doubao-price-action-card__item::after{position:absolute;right:0;bottom:0;left:95px;height:1px;content:"";background-color:var(--neutral-transparent-1)}.doubao-price-action-card__item--last::after{display:none}.doubao-price-action-card__item--checkbox{height:74px;padding:16px 12px}.doubao-price-action-card__item--checkbox .doubao-price-action-card__value{width:75px;box-sizing:border-box}.doubao-price-action-card__item-content{display:flex;flex-direction:row;align-items:center;width:100%;gap:12px}.doubao-price-action-card__value{display:flex;flex-direction:column;align-items:flex-start;padding:0 4px;width:94px;min-width:0;flex-shrink:0}.doubao-price-action-card__value>.doubao-price{width:100%;min-width:0;overflow:hidden}.doubao-price-action-card__value>.doubao-price .doubao-price__amount,.doubao-price-action-card__value>.doubao-price .doubao-price__main,.doubao-price-action-card__value>.doubao-price .doubao-price__integer-group{max-width:100%;min-width:0;overflow:hidden}.doubao-price-action-card__value>.doubao-price .doubao-price__main,.doubao-price-action-card__value>.doubao-price .doubao-price__integer-group,.doubao-price-action-card__value>.doubao-price .doubao-price__integer{flex-shrink:1}.doubao-price-action-card__value>.doubao-price .doubao-price__integer{min-width:0;overflow:hidden;text-overflow:ellipsis}.doubao-price-action-card__badge{height:20px;max-width:100%;padding:2px 3px;box-sizing:border-box;overflow:hidden;color:var(--theme-default-link);font-family:"PingFang SC",sans-serif;font-size:11px;font-style:normal;font-weight:400;line-height:14px;text-overflow:ellipsis;white-space:nowrap;background-color:var(--primary-transparent-1);border-radius:4px}.doubao-price-action-card__info{display:flex;flex:1 1 0;flex-direction:column;justify-content:center;min-width:0}.doubao-price-action-card__info-row{width:100%;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.doubao-price-action-card__info-row+.doubao-price-action-card__info-row{margin-top:2px}.doubao-price-action-card__item-action{width:auto;min-width:60px;max-width:100px;height:38px;flex-shrink:0;--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 38px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 0;--doubao-button-default-font-size: 14px;--doubao-button-default-line-height: 20px;--doubao-button-default-bg: var(--bg-base-1-overlay);--doubao-button-default-text: var(--neutral-100)}
@@ -1,7 +1,7 @@
1
1
  import { useThemeClassName } from "@byted-doubao-apps/components";
2
2
  import { clsx } from "clsx";
3
3
  import "./styles.css";
4
- const CHECKMARK_CONTENT = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.94847 5.29293C10.1552 4.98835 10.5696 4.90868 10.8743 5.1152C11.1786 5.32194 11.2584 5.73643 11.052 6.04098L7.885 10.708C7.76885 10.879 7.57965 10.9866 7.37328 10.999C7.16695 11.0113 6.96606 10.9273 6.83031 10.7714L4.9973 8.66305C4.7557 8.38525 4.78496 7.96424 5.06273 7.72262C5.34052 7.48102 5.76153 7.51031 6.00316 7.78805L7.26683 9.24215L9.94847 5.29293Z" fill="white"/></svg>';
4
+ const CHECKMARK_CONTENT = '<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.94847 5.29293C10.1552 4.98835 10.5696 4.90868 10.8743 5.1152C11.1786 5.32194 11.2584 5.73643 11.052 6.04098L7.885 10.708C7.76885 10.879 7.57965 10.9866 7.37328 10.999C7.16695 11.0113 6.96606 10.9273 6.83031 10.7714L4.9973 8.66305C4.7557 8.38525 4.78496 7.96424 5.06273 7.72262C5.34052 7.48102 5.76153 7.51031 6.00316 7.78805L7.26683 9.24215L9.94847 5.29293Z" fill="white"/></svg>';
5
5
  function Checkbox({ checked, disabled = false, onChange }) {
6
6
  const themeClassName = useThemeClassName();
7
7
  const handleTap = (event)=>{
@@ -1 +1 @@
1
- .doubao-checkbox{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;box-sizing:border-box;border-radius:8px;border:1.33333px solid var(--neutral-transparent-3)}.doubao-checkbox--disabled{background:var(--neutral-10)}.doubao-checkbox--checked{border:none;background:var(--primary-50)}.doubao-checkbox--checked.doubao-checkbox--disabled{opacity:.4}.doubao-checkbox__checkmark{width:16px;height:16px;flex-shrink:0}
1
+ .doubao-checkbox{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;box-sizing:border-box;border-radius:10px;border:1.33333px solid var(--neutral-transparent-3)}.doubao-checkbox--disabled{background:var(--neutral-10)}.doubao-checkbox--checked{border:none;background:var(--primary-50)}.doubao-checkbox--checked.doubao-checkbox--disabled{opacity:.4}.doubao-checkbox__checkmark{width:20px;height:20px;flex-shrink:0}
@@ -5,5 +5,5 @@ export { OptionGroup, type OptionGroupItem, type OptionGroupLargeItem, type Opti
5
5
  export { Price, type PricePrefixTone, type PriceProps, type PriceTone, type PriceValue } from './price/index.js';
6
6
  export { Stepper, type StepperProps } from './stepper/index.js';
7
7
  export { Tag, type TagProps, type TagTone, type TagValue } from './tag/index.js';
8
- export { Title, type TitleMaxLines, type TitleProps, type TitleValue } from './title/index.js';
8
+ export { Title, type TitleMaxLines, type TitleProps, type TitleSegment, type TitleTone, type TitleValue } from './title/index.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- .doubao-price{display:flex;flex-direction:row;align-items:flex-end;gap:4px;height:22px;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal;white-space:nowrap}.doubao-price--tone-highlight .doubao-price__prefix,.doubao-price--tone-highlight .doubao-price__currency,.doubao-price--tone-highlight .doubao-price__integer,.doubao-price--tone-highlight .doubao-price__decimal,.doubao-price--tone-highlight .doubao-price__suffix{color:#ff375f}.doubao-price--loading{align-items:center;width:100%}.doubao-price__amount{display:flex;flex-direction:row;align-items:flex-end;gap:2px;height:22px;flex-shrink:0}.doubao-price__affix,.doubao-price__meta{display:flex;flex-direction:row;align-items:center;gap:4px;height:19px;flex-shrink:0}.doubao-price__main{display:flex;flex-direction:row;align-items:flex-end;height:22px;flex-shrink:0}.doubao-price__integer-group{display:flex;flex-direction:row;align-items:center;height:22px;flex-shrink:0}.doubao-price__decimal-group{display:flex;align-items:center;height:21px;flex-shrink:0}.doubao-price__prefix,.doubao-price__currency,.doubao-price__integer,.doubao-price__decimal,.doubao-price__suffix,.doubao-price__description,.doubao-price__original-price{display:block;flex-shrink:0;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal;letter-spacing:0;white-space:nowrap}.doubao-price__prefix{font-size:12px;font-weight:500;line-height:11px}.doubao-price__prefix.doubao-price__prefix--tone-default{color:var(--neutral-100)}.doubao-price__prefix.doubao-price__prefix--tone-highlight{color:#ff375f}.doubao-price__prefix.doubao-price__prefix--tone-muted{color:var(--neutral-70)}.doubao-price__currency{font-size:13px;font-weight:500;line-height:11px}.doubao-price__integer{font-family:"SF Pro",sans-serif;font-size:17px;font-weight:500;line-height:24px}.doubao-price__decimal{font-family:"SF Pro",sans-serif;font-size:14px;font-weight:500;line-height:11px}.doubao-price__suffix,.doubao-price__description,.doubao-price__original-price{font-size:13px;font-weight:400;line-height:11px}.doubao-price__description,.doubao-price__original-price{color:var(--neutral-70)}.doubao-price__original-price{text-decoration:line-through}.doubao-price__placeholder{width:100%;max-width:60%;height:16px;border-radius:4px;background-image:linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);background-size:200% 100%;animation:doubao-price-placeholder-shimmer 1.4s ease-in-out infinite}@keyframes doubao-price-placeholder-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
1
+ .doubao-price{display:flex;flex-direction:row;align-items:flex-end;gap:4px;height:22px;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal;white-space:nowrap}.doubao-price--tone-highlight .doubao-price__prefix,.doubao-price--tone-highlight .doubao-price__currency,.doubao-price--tone-highlight .doubao-price__integer,.doubao-price--tone-highlight .doubao-price__decimal,.doubao-price--tone-highlight .doubao-price__suffix{color:var(--theme-default-link)}.doubao-price--loading{align-items:center;width:100%}.doubao-price__amount{display:flex;flex-direction:row;align-items:flex-end;gap:2px;height:22px;flex-shrink:0}.doubao-price__affix,.doubao-price__meta{display:flex;flex-direction:row;align-items:center;gap:4px;height:19px;flex-shrink:0}.doubao-price__main{display:flex;flex-direction:row;align-items:flex-end;height:22px;flex-shrink:0}.doubao-price__integer-group{display:flex;flex-direction:row;align-items:center;height:22px;flex-shrink:0}.doubao-price__decimal-group{display:flex;align-items:center;height:21px;flex-shrink:0}.doubao-price__prefix,.doubao-price__currency,.doubao-price__integer,.doubao-price__decimal,.doubao-price__suffix,.doubao-price__description,.doubao-price__original-price{display:block;flex-shrink:0;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal;letter-spacing:0;white-space:nowrap}.doubao-price__prefix{font-size:12px;font-weight:500;line-height:11px}.doubao-price__prefix.doubao-price__prefix--tone-default{color:var(--neutral-100)}.doubao-price__prefix.doubao-price__prefix--tone-highlight{color:var(--theme-default-link)}.doubao-price__prefix.doubao-price__prefix--tone-muted{color:var(--neutral-70)}.doubao-price__currency{font-size:13px;font-weight:500;line-height:11px}.doubao-price__integer{font-family:"SF Pro",sans-serif;font-size:17px;font-weight:500;line-height:24px}.doubao-price__decimal{font-family:"SF Pro",sans-serif;font-size:14px;font-weight:500;line-height:11px}.doubao-price__suffix,.doubao-price__description,.doubao-price__original-price{font-size:13px;font-weight:400;line-height:11px}.doubao-price__description,.doubao-price__original-price{color:var(--neutral-70)}.doubao-price__original-price{text-decoration:line-through}.doubao-price__placeholder{width:100%;max-width:60%;height:16px;border-radius:4px;background-image:linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);background-size:200% 100%;animation:doubao-price-placeholder-shimmer 1.4s ease-in-out infinite}@keyframes doubao-price-placeholder-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@@ -8,7 +8,7 @@ export interface PriceProps {
8
8
  currency?: string;
9
9
  /** 价格前缀,例如“均”“起”。 */
10
10
  prefix?: string;
11
- /** 价格前缀色调。不传时跟随价格色调。 */
11
+ /** 价格前缀色调。不传时跟随价格色调;muted 为次级灰色。 */
12
12
  prefixTone?: PricePrefixTone;
13
13
  /** 价格后缀,例如“券后价”“/10斤”。 */
14
14
  suffix?: string;
@@ -16,7 +16,7 @@ export interface PriceProps {
16
16
  description?: string;
17
17
  /** 原价。传入后会在辅助信息区域以删除线展示。 */
18
18
  originalPrice?: PriceValue;
19
- /** 价格色调。highlight 对应营销强调色。@defaultValue 'default' */
19
+ /** 价格色调。highlight 对应豆包蓝。@defaultValue 'default' */
20
20
  tone?: PriceTone;
21
21
  /** 是否展示价格占位骨架。@defaultValue false */
22
22
  loading?: boolean;
@@ -1,9 +1,10 @@
1
1
  import { useThemeClassName } from "@byted-doubao-apps/components";
2
2
  import { clsx } from "clsx";
3
3
  import "./styles.css";
4
- function Tag({ text: text1, tone = 'authority' }) {
4
+ function Tag({ text: text1, tone = 'neutral' }) {
5
5
  const themedClassName = useThemeClassName();
6
- return <view className={clsx('doubao-tag', `doubao-tag--tone-${tone}`, themedClassName)}>
6
+ const visualTone = 'authority' === tone ? 'neutral' : tone;
7
+ return <view className={clsx('doubao-tag', `doubao-tag--tone-${visualTone}`, themedClassName)}>
7
8
  <text className="doubao-tag__text">{text1}</text>
8
9
  </view>;
9
10
  }
@@ -1 +1 @@
1
- .doubao-tag{display:flex;align-items:center;height:20px;padding:2px 3px;box-sizing:border-box;flex-shrink:0;overflow:hidden;border-radius:4px}.doubao-tag__text{display:block;flex-shrink:0;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:14px;white-space:nowrap}.doubao-tag--tone-marketing{background-color:#fff3ee}.doubao-tag--tone-marketing .doubao-tag__text{color:#ff375f}.doubao-tag--tone-authority{background-color:#fff8e7}.doubao-tag--tone-authority .doubao-tag__text{color:#814300}.doubao-tag--tone-neutral{background-color:#f7f7f7}.doubao-tag--tone-neutral .doubao-tag__text{color:#666}.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing{background-color:#3f2b27}.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing .doubao-tag__text{color:#ff5c7c}.doubao-tag.doubao-theme-dark.doubao-tag--tone-authority{background-color:#3a3324}.doubao-tag.doubao-theme-dark.doubao-tag--tone-authority .doubao-tag__text{color:#e2a45c}.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral{background-color:#252525}.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral .doubao-tag__text{color:#bababa}
1
+ .doubao-tag{display:flex;align-items:center;height:20px;padding:2px 3px;box-sizing:border-box;flex-shrink:0;overflow:hidden;border-radius:4px}.doubao-tag__text{display:block;flex-shrink:0;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:14px;white-space:nowrap}.doubao-tag--tone-marketing{background-color:#fff3e6}.doubao-tag--tone-marketing .doubao-tag__text{color:#e66805}.doubao-tag--tone-neutral{background-color:#f7f7f7}.doubao-tag--tone-neutral .doubao-tag__text{color:#666}.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing{background-color:#523e23}.doubao-tag.doubao-theme-dark.doubao-tag--tone-marketing .doubao-tag__text{color:var(--warning-500)}.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral{background-color:#252525}.doubao-tag.doubao-theme-dark.doubao-tag--tone-neutral .doubao-tag__text{color:#bababa}
@@ -1,9 +1,12 @@
1
1
  export type TagValue = string | number;
2
- export type TagTone = 'marketing' | 'authority' | 'neutral';
2
+ /** @deprecated 使用 neutral;authority 仅保留兼容,视觉与 neutral 相同。 */
3
+ type DeprecatedAuthorityTone = 'authority';
4
+ export type TagTone = 'marketing' | 'neutral' | DeprecatedAuthorityTone;
3
5
  export interface TagProps {
4
6
  /** 标签内容。 */
5
7
  text: TagValue;
6
- /** 标签色调。@defaultValue 'authority' */
8
+ /** 标签色调。authority 已废弃,视觉与 neutral 相同。@defaultValue 'neutral' */
7
9
  tone?: TagTone;
8
10
  }
11
+ export {};
9
12
  //# sourceMappingURL=types.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { TitleProps } from './types.js';
2
2
  import './styles.scss';
3
- export type { TitleMaxLines, TitleProps, TitleValue } from './types.js';
3
+ export type { TitleMaxLines, TitleProps, TitleSegment, TitleTone, TitleValue } from './types.js';
4
4
  export declare function Title({ text, maxLines, showArrow, loading }: TitleProps): any;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -14,7 +14,9 @@ function Title({ text: text1, maxLines = 1, showArrow = true, loading = false })
14
14
  {showArrow ? <TemplateChevronRightIcon className="doubao-title__arrow"/> : null}
15
15
  </view>
16
16
  </inline-truncation>
17
- {text1}
17
+ {'string' == typeof text1 || 'number' == typeof text1 ? text1 : text1.map((segment, index)=><text className={clsx('doubao-title__segment', `doubao-title__segment--tone-${segment.tone ?? 'default'}`)} key={index}>
18
+ {segment.text}
19
+ </text>)}
18
20
  {showArrow ? <view className="doubao-title__inline-arrow">
19
21
  <TemplateChevronRightIcon className="doubao-title__arrow"/>
20
22
  </view> : null}
@@ -1 +1 @@
1
- .doubao-title{display:flex;flex-direction:row;align-items:flex-start;width:100%;max-width:100%;min-width:0;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal}.doubao-title--loading{align-items:center;width:100%;height:24px}.doubao-title__text{display:block;flex:0 1 auto;width:100%;min-width:0;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;text-overflow:clip}.doubao-title__text>inline-truncation{overflow:visible;vertical-align:top}.doubao-title__inline-arrow{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:14px;height:24px;box-sizing:border-box;vertical-align:top}.doubao-title__truncation{position:relative;width:0;height:24px;overflow:visible;vertical-align:top}.doubao-title__truncation.doubao-title__inline-arrow{width:14px}.doubao-title__fade{position:absolute;top:2px;left:-22px;width:22px;height:19px;background-image:linear-gradient(90deg, transparent, var(--bg-base-1))}.doubao-title__arrow{width:12px;height:12px;flex-shrink:0}.doubao-title__placeholder{width:100%;max-width:40%;height:16px;border-radius:4px;background-image:linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);background-size:200% 100%;animation:doubao-title-placeholder-shimmer 1.4s ease-in-out infinite}@keyframes doubao-title-placeholder-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
1
+ .doubao-title{display:flex;flex-direction:row;align-items:flex-start;width:100%;max-width:100%;min-width:0;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-style:normal}.doubao-title--loading{align-items:center;width:100%;height:24px}.doubao-title__text{display:block;flex:0 1 auto;width:100%;min-width:0;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;text-overflow:clip}.doubao-title__segment{font-size:16px;font-style:normal;font-weight:500}.doubao-title__segment--tone-default{color:var(--neutral-100)}.doubao-title__segment--tone-highlight{color:var(--theme-default-link)}.doubao-title__text>inline-truncation{overflow:visible;vertical-align:top}.doubao-title__inline-arrow{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:14px;height:24px;box-sizing:border-box;vertical-align:top}.doubao-title__truncation{position:relative;width:0;height:24px;overflow:visible;vertical-align:top}.doubao-title__truncation.doubao-title__inline-arrow{width:14px}.doubao-title__fade{position:absolute;top:2px;left:-22px;width:22px;height:19px;background-image:linear-gradient(90deg, transparent, var(--bg-base-1))}.doubao-title__arrow{width:12px;height:12px;flex-shrink:0}.doubao-title__placeholder{width:100%;max-width:40%;height:16px;border-radius:4px;background-image:linear-gradient(90deg, #f7f7f7 0%, #e6e6e6 30%, #f7f7f7 100%);background-size:200% 100%;animation:doubao-title-placeholder-shimmer 1.4s ease-in-out infinite}@keyframes doubao-title-placeholder-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@@ -1,7 +1,13 @@
1
- export type TitleValue = string | number;
1
+ export type TitleTone = 'default' | 'highlight';
2
+ export interface TitleSegment {
3
+ text: string | number;
4
+ /** 片段颜色。highlight 对应豆包蓝。@defaultValue 'default' */
5
+ tone?: TitleTone;
6
+ }
7
+ export type TitleValue = string | number | readonly TitleSegment[];
2
8
  export type TitleMaxLines = 1 | 2;
3
9
  export interface TitleProps {
4
- /** 标题内容。 */
10
+ /** 标题内容。传片段数组时可分别指定高亮文字。 */
5
11
  text: TitleValue;
6
12
  /** 标题最多展示行数。@defaultValue 1 */
7
13
  maxLines?: TitleMaxLines;
@@ -64,7 +64,7 @@ export interface TransitCardPrice {
64
64
  export interface TransitCardPriceAction {
65
65
  /** 操作文案。 */
66
66
  text: TemplateText;
67
- /** 文案色调。@defaultValue highlight */
67
+ /** 文案色调。highlight 为豆包蓝,muted 为灰色。@defaultValue highlight */
68
68
  tone?: TransitCardPriceActionTone;
69
69
  /** 是否展示文案右侧箭头。@defaultValue true */
70
70
  showIcon?: boolean;
@@ -73,7 +73,7 @@ export type TransitCardPriceActionTone = 'highlight' | 'muted';
73
73
  export interface TransitCardTag {
74
74
  /** 标签内容。 */
75
75
  text: TagValue;
76
- /** 标签色调;marketing 为红色,neutral 为灰色,默认 marketing。 */
76
+ /** 标签色调;marketing 为橙色,neutral 为灰色,默认 marketing。 */
77
77
  tone?: 'marketing' | 'neutral';
78
78
  }
79
79
  export declare function TransitCard(props: TransitCardProps): ReactElement;
@@ -1 +1 @@
1
- .doubao-transit-card{--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 44px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 0;--doubao-button-default-font-size: 16px;--doubao-button-default-line-height: 22px;display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-transit-card__body{width:100%;box-sizing:border-box}.doubao-transit-card__item{width:100%;box-sizing:border-box}.doubao-transit-card__item--spread{height:.5px;margin-left:12px;width:calc(100% - 12px);background:var(--neutral-transparent-1)}.doubao-transit-card__item--last{border-bottom:none}.doubao-transit-card__view-more{width:100%;padding:8px 12px;box-sizing:border-box}.doubao-transit-card__view-more-button{width:100%;border-radius:8px;height:44px}
1
+ .doubao-transit-card{--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 44px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 0;--doubao-button-default-font-size: 16px;--doubao-button-default-line-height: 22px;display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:12px}.doubao-transit-card__body{width:100%;box-sizing:border-box}.doubao-transit-card__item{width:100%;box-sizing:border-box}.doubao-transit-card__item--spread{height:1px;margin-left:12px;width:calc(100% - 12px);background:var(--neutral-transparent-1)}.doubao-transit-card__item--last{border-bottom:none}.doubao-transit-card__view-more{width:100%;padding:8px 12px;box-sizing:border-box}.doubao-transit-card__view-more-button{width:100%;border-radius:8px;height:44px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doubao-dev/template",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {