@doubao-dev/template 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/extra-action/index.d.ts +6 -1
- package/dist/components/extra-action/index.js +7 -6
- package/dist/components/extra-action/styles.css +1 -1
- package/dist/components/transport-summary/index.d.ts +5 -0
- package/dist/components/transport-summary/index.js +7 -4
- package/dist/components/transport-summary/styles.css +1 -1
- package/dist/content-card/styles.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +1 -0
- package/dist/primitives/stepper/index.d.ts +5 -0
- package/dist/primitives/stepper/index.js +33 -0
- package/dist/primitives/stepper/styles.css +1 -0
- package/dist/primitives/stepper/types.d.ts +12 -0
- package/dist/primitives/stepper/types.js +0 -0
- package/dist/primitives/title/index.js +12 -6
- package/dist/primitives/title/styles.css +1 -1
- package/dist/transit-card/content.js +1 -1
- package/dist/transit-card/index.d.ts +4 -0
- package/dist/utils/icons.d.ts +2 -1
- package/dist/utils/icons.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ export default function ProductCard() {
|
|
|
43
43
|
| 人工确认选项 | [AskHumanCard](../../../docs/templates/ask-human-card.mdx) |
|
|
44
44
|
| 多种内容组成一张卡片 | [CompositeCard](../../../docs/templates/composite-card.mdx) |
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
标题、标签、价格、选项和数量调节组件见 [Primitives](../../../docs/templates/shared-components.mdx#primitives)。
|
|
47
47
|
|
|
48
48
|
## 使用约定
|
|
49
49
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TouchEvent } from '@lynx-js/types';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
+
import { type StepperProps } from '../../primitives/stepper/index.js';
|
|
3
4
|
import './styles.scss';
|
|
4
5
|
/** 模板右侧控件:按钮。 */
|
|
5
6
|
export interface TemplateExtraActionButton {
|
|
@@ -23,6 +24,10 @@ export interface TemplateExtraActionAdd {
|
|
|
23
24
|
/** 点击添加控件时触发。 */
|
|
24
25
|
onClick?: (event?: TouchEvent) => void;
|
|
25
26
|
}
|
|
27
|
+
/** 模板右侧控件:数量调节器。 */
|
|
28
|
+
export interface TemplateExtraActionStepper extends StepperProps {
|
|
29
|
+
type: 'stepper';
|
|
30
|
+
}
|
|
26
31
|
/** 模板右侧控件:开关。受控用法,必须传入 checked。 */
|
|
27
32
|
export interface TemplateExtraActionSwitch {
|
|
28
33
|
type: 'switch';
|
|
@@ -46,7 +51,7 @@ export interface TemplateExtraActionPlayback {
|
|
|
46
51
|
onToggle?: (playing: boolean) => void;
|
|
47
52
|
}
|
|
48
53
|
/** 模板右侧标准控件配置(判别联合)。 */
|
|
49
|
-
export type TemplateExtraAction = TemplateExtraActionButton | TemplateExtraActionAdd | TemplateExtraActionSwitch | TemplateExtraActionPlayback;
|
|
54
|
+
export type TemplateExtraAction = TemplateExtraActionButton | TemplateExtraActionAdd | TemplateExtraActionStepper | TemplateExtraActionSwitch | TemplateExtraActionPlayback;
|
|
50
55
|
export interface TemplateExtraActionClassNames {
|
|
51
56
|
button?: string;
|
|
52
57
|
switch?: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Button, Switch, useTheme } from "@byted-doubao-apps/components";
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { Stepper } from "../../primitives/stepper/index.js";
|
|
4
5
|
import { getTemplateAddIconContent, getTemplateAddLoadingIconContent, getTemplatePlaybackIconContent } from "../../utils/icons.js";
|
|
5
6
|
import "./styles.css";
|
|
6
7
|
function stopTemplateExtraActionTap() {}
|
|
7
8
|
function TemplateAddAction({ disabled = false, loading = false, onClick }) {
|
|
8
9
|
const theme = useTheme();
|
|
9
10
|
const [pressed, setPressed] = useState(false);
|
|
10
|
-
const iconColor = 'dark' === theme ? '#
|
|
11
|
-
const loadingColor = 'dark' === theme ? '#cccccc' : '#666666';
|
|
11
|
+
const iconColor = 'dark' === theme ? '#cccccc' : '#666666';
|
|
12
12
|
const handleTap = (event)=>{
|
|
13
13
|
setPressed(false);
|
|
14
14
|
if (!disabled && !loading) onClick?.(event);
|
|
@@ -19,8 +19,8 @@ function TemplateAddAction({ disabled = false, loading = false, onClick }) {
|
|
|
19
19
|
const handleTouchEnd = ()=>setPressed(false);
|
|
20
20
|
return <view className={clsx('doubao-template-extra-action-add', 'dark' === theme ? 'doubao-theme-dark' : 'doubao-theme-light', pressed && !disabled && !loading && 'doubao-template-extra-action-add--pressed', disabled && 'doubao-template-extra-action-add--disabled', loading && 'doubao-template-extra-action-add--loading')} catchtap={handleTap} bindtouchstart={handleTouchStart} bindtouchend={handleTouchEnd} bindtouchmove={handleTouchEnd}>
|
|
21
21
|
{loading ? <view className="doubao-template-extra-action-add__spinner">
|
|
22
|
-
<svg className="doubao-template-extra-action-
|
|
23
|
-
</view> : <svg className="doubao-template-extra-action-add__icon" content={getTemplateAddIconContent(iconColor)}/>}
|
|
22
|
+
<svg className="doubao-template-extra-action-add__loading-icon" content={getTemplateAddLoadingIconContent(iconColor)}/>
|
|
23
|
+
</view> : <svg className="doubao-template-extra-action-add__icon" content={getTemplateAddIconContent(iconColor, 12)}/>}
|
|
24
24
|
</view>;
|
|
25
25
|
}
|
|
26
26
|
function TemplatePlaybackButton(props) {
|
|
@@ -37,11 +37,12 @@ function TemplatePlaybackButton(props) {
|
|
|
37
37
|
</view>;
|
|
38
38
|
}
|
|
39
39
|
function renderTemplateExtraAction(action, classNames = {}) {
|
|
40
|
+
if ('add' === action.type || 'stepper' === action.type) return <view className={clsx('doubao-template-extra-action-quantity', 'stepper' === action.type && 'doubao-template-extra-action-quantity--expanded')}>
|
|
41
|
+
{'add' === action.type ? <TemplateAddAction {...action}/> : <Stepper value={action.value} min={action.min} max={action.max} onChange={action.onChange}/>}
|
|
42
|
+
</view>;
|
|
40
43
|
switch(action.type){
|
|
41
44
|
case 'button':
|
|
42
45
|
return <Button className={clsx('doubao-template-extra-action-button', classNames.button)} type="default" text={action.text} disabled={action.disabled} loading={action.loading} onClick={action.onClick}/>;
|
|
43
|
-
case 'add':
|
|
44
|
-
return <TemplateAddAction {...action}/>;
|
|
45
46
|
case 'switch':
|
|
46
47
|
return <Switch className={classNames.switch} checked={action.checked} disabled={action.disabled} onChange={action.onChange}/>;
|
|
47
48
|
case 'playback':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.doubao-template-extra-action-button{--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 36px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 8px;--doubao-button-default-font-size: 14px;--doubao-button-default-line-height: 20px}.doubao-template-extra-action-add{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;box-sizing:border-box;overflow:hidden;background-color:var(--
|
|
1
|
+
.doubao-template-extra-action-button{--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 36px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 8px;--doubao-button-default-font-size: 14px;--doubao-button-default-line-height: 20px}.doubao-template-extra-action-quantity{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:24px;height:24px;flex-shrink:0;overflow:hidden;transition:width 200ms ease-out}.doubao-template-extra-action-quantity--expanded{width:86px}.doubao-template-extra-action-add{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-4-overlay);border-radius:50%}.doubao-template-extra-action-add:hover:not(.doubao-template-extra-action-add--disabled):not(.doubao-template-extra-action-add--loading):not(.doubao-template-extra-action-add--pressed){background-color:var(--static-black-transparent-6)}.doubao-template-extra-action-add--pressed,.doubao-template-extra-action-add--pressed:hover{background-color:var(--static-black-transparent-10)}.doubao-template-extra-action-add.doubao-theme-dark:hover:not(.doubao-template-extra-action-add--disabled):not(.doubao-template-extra-action-add--loading):not(.doubao-template-extra-action-add--pressed){background-color:hsla(0,0%,100%,.06)}.doubao-template-extra-action-add.doubao-theme-dark.doubao-template-extra-action-add--pressed,.doubao-template-extra-action-add.doubao-theme-dark.doubao-template-extra-action-add--pressed:hover{background-color:hsla(0,0%,100%,.1)}.doubao-template-extra-action-add--disabled .doubao-template-extra-action-add__icon{opacity:.3}.doubao-template-extra-action-add__icon{width:12px;height:12px;flex-shrink:0}.doubao-template-extra-action-add__loading-icon,.doubao-template-extra-action-add__spinner{width:14px;height:14px;flex-shrink:0}.doubao-template-extra-action-add__spinner{animation:doubao-template-extra-action-add-spin 1s linear infinite}@keyframes doubao-template-extra-action-add-spin{to{transform:rotate(360deg)}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TouchEvent } from '@lynx-js/types';
|
|
1
2
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
3
|
import type { TemplateText } from '../../types.js';
|
|
3
4
|
import './styles.scss';
|
|
@@ -35,6 +36,10 @@ export interface TemplateTransportSummaryProps {
|
|
|
35
36
|
tag?: ReactNode;
|
|
36
37
|
/** 根节点自定义类名。 */
|
|
37
38
|
className?: string;
|
|
39
|
+
/** 点击左侧行程区域时触发。 */
|
|
40
|
+
onRouteClick?: (event: TouchEvent) => void;
|
|
41
|
+
/** 点击右侧价格区域时触发。 */
|
|
42
|
+
onPriceClick?: (event: TouchEvent) => void;
|
|
38
43
|
}
|
|
39
44
|
export declare function TemplateTransportSummary(props: TemplateTransportSummaryProps): ReactElement | null;
|
|
40
45
|
export {};
|
|
@@ -43,13 +43,15 @@ function renderTemplateTransportSummaryPriceAction(actionText, actionTone, showA
|
|
|
43
43
|
{showActionIcon ? <TemplateChevronRightIcon className="doubao-template-transport-summary__price-action-icon" color={'highlight' === actionTone ? '#ff375f' : isDark ? '#bababa' : '#666666'}/> : null}
|
|
44
44
|
</view>;
|
|
45
45
|
}
|
|
46
|
-
function renderTemplateTransportSummaryPrice(price, tag, actionText, actionTone, showActionIcon, isDark) {
|
|
46
|
+
function renderTemplateTransportSummaryPrice(price, tag, actionText, actionTone, showActionIcon, isDark, onPriceClick) {
|
|
47
47
|
const hasPrice = !isTemplateTransportSummaryNodeEmpty(price);
|
|
48
48
|
const hasTag = !isTemplateTransportSummaryNodeEmpty(tag);
|
|
49
49
|
const actionNode = renderTemplateTransportSummaryPriceAction(actionText, actionTone, showActionIcon, isDark);
|
|
50
50
|
const hasAction = null != actionNode;
|
|
51
51
|
if (!hasPrice && !hasTag && !hasAction) return null;
|
|
52
|
-
return <view className={clsx('doubao-template-transport-summary__price', hasAction && 'doubao-template-transport-summary__price--with-action', !hasAction && hasTag && 'doubao-template-transport-summary__price--with-tag')}
|
|
52
|
+
return <view className={clsx('doubao-template-transport-summary__price', hasAction && 'doubao-template-transport-summary__price--with-action', !hasAction && hasTag && 'doubao-template-transport-summary__price--with-tag')} {...null != onPriceClick ? {
|
|
53
|
+
catchtap: onPriceClick
|
|
54
|
+
} : {}}>
|
|
53
55
|
{hasPrice && price}
|
|
54
56
|
{hasAction ? actionNode : hasTag && tag}
|
|
55
57
|
</view>;
|
|
@@ -92,7 +94,7 @@ function renderTemplateTransportSummaryTransfer({ content, topText, showDot, bot
|
|
|
92
94
|
}
|
|
93
95
|
function TemplateTransportSummary(props) {
|
|
94
96
|
const theme = useTheme();
|
|
95
|
-
const { title, departureMain, departureSub, transfer, transferTop, showTransferDot, transferBottom, arrivalMain, arrivalDayOffset, arrivalSub, price, priceActionText, priceActionTone = 'highlight', showPriceActionIcon = true, tag, className } = props;
|
|
97
|
+
const { title, departureMain, departureSub, transfer, transferTop, showTransferDot, transferBottom, arrivalMain, arrivalDayOffset, arrivalSub, price, priceActionText, priceActionTone = 'highlight', showPriceActionIcon = true, tag, className, onRouteClick, onPriceClick } = props;
|
|
96
98
|
const departureNode = renderTemplateTransportSummaryPoint({
|
|
97
99
|
mainText: departureMain,
|
|
98
100
|
subText: departureSub
|
|
@@ -114,7 +116,7 @@ function TemplateTransportSummary(props) {
|
|
|
114
116
|
{arrivalDayOffsetNode}
|
|
115
117
|
</view>;
|
|
116
118
|
const titleNode = renderTemplateTransportSummaryNodeField(title, 'doubao-template-transport-summary__title', 'doubao-template-transport-summary__title-text');
|
|
117
|
-
const priceNode = renderTemplateTransportSummaryPrice(price, tag, priceActionText, priceActionTone, showPriceActionIcon, 'dark' === theme);
|
|
119
|
+
const priceNode = renderTemplateTransportSummaryPrice(price, tag, priceActionText, priceActionTone, showPriceActionIcon, 'dark' === theme, onPriceClick);
|
|
118
120
|
const hasRoute = Boolean(departureNode || transferNode || arrivalNode);
|
|
119
121
|
const hasRouteRow = hasRoute || null != priceNode;
|
|
120
122
|
if (null == titleNode && !hasRouteRow) return null;
|
|
@@ -126,6 +128,7 @@ function TemplateTransportSummary(props) {
|
|
|
126
128
|
{arrivalNode}
|
|
127
129
|
{priceNode}
|
|
128
130
|
</view>}
|
|
131
|
+
{null != onRouteClick && (null != titleNode || hasRoute) ? <view className="doubao-template-transport-summary__route-hit-area" catchtap={onRouteClick}/> : null}
|
|
129
132
|
</view>;
|
|
130
133
|
}
|
|
131
134
|
export { TemplateTransportSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.doubao-template-transport-summary{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__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{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}
|
|
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__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}
|
|
@@ -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--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{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-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: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}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { ContentCard, type ContentCardItem, type ContentCardProps } from './cont
|
|
|
2
2
|
export { CompositeCard, type CompositeCardContentSection, type CompositeCardOptionGroupSection, type CompositeCardProps, type CompositeCardSection, type CompositeCardTransitSection } from './composite-card/index.js';
|
|
3
3
|
export type { TemplateCardHeaderProps } from './components/header/index.js';
|
|
4
4
|
export type { TemplateCardFooterActionButton, TemplateCardFooterProps } from './components/footer/index.js';
|
|
5
|
-
export type { TemplateExtraAction, TemplateExtraActionAdd, TemplateExtraActionButton, TemplateExtraActionPlayback, TemplateExtraActionSwitch } from './components/extra-action/index.js';
|
|
5
|
+
export type { TemplateExtraAction, TemplateExtraActionAdd, TemplateExtraActionButton, TemplateExtraActionPlayback, TemplateExtraActionStepper, TemplateExtraActionSwitch } from './components/extra-action/index.js';
|
|
6
6
|
export { AskHumanCard, type AskHumanCardArrowPosition, type AskHumanCardItem, type AskHumanCardProps } from './ask-human-card/index.js';
|
|
7
7
|
export { CheckoutCard, type CheckoutCardFeeItem, type CheckoutCardInfoItem, type CheckoutCardProductItem, type CheckoutCardProps } from './checkout-card/index.js';
|
|
8
8
|
export { PriceActionCard, type PriceActionCardInfoRow, type PriceActionCardItem, type PriceActionCardProps } from './price-action-card/index.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Icon, type IconName, type IconProps } from './icon/index.js';
|
|
2
2
|
export { OptionGroup, type OptionGroupItem, type OptionGroupLargeItem, type OptionGroupMediumItem, type OptionGroupProps, type OptionGroupSize, type OptionGroupText, type OptionGroupValue } from './option-group/index.js';
|
|
3
3
|
export { Price, type PricePrefixTone, type PriceProps, type PriceTone, type PriceValue } from './price/index.js';
|
|
4
|
+
export { Stepper, type StepperProps } from './stepper/index.js';
|
|
4
5
|
export { Tag, type TagProps, type TagTone, type TagValue } from './tag/index.js';
|
|
5
6
|
export { Title, type TitleMaxLines, type TitleProps, type TitleValue } from './title/index.js';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/primitives/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Icon } from "./icon/index.js";
|
|
2
2
|
export { OptionGroup } from "./option-group/index.js";
|
|
3
3
|
export { Price } from "./price/index.js";
|
|
4
|
+
export { Stepper } from "./stepper/index.js";
|
|
4
5
|
export { Tag } from "./tag/index.js";
|
|
5
6
|
export { Title } from "./title/index.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useTheme, useThemeClassName } from "@byted-doubao-apps/components";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { getTemplateAddIconContent, getTemplateMinusIconContent } from "../../utils/icons.js";
|
|
4
|
+
import "./styles.css";
|
|
5
|
+
function Stepper({ value, min = 0, max, onChange }) {
|
|
6
|
+
const theme = useTheme();
|
|
7
|
+
const themedClassName = useThemeClassName();
|
|
8
|
+
const iconColor = 'dark' === theme ? '#cccccc' : '#666666';
|
|
9
|
+
const addIconContent = getTemplateAddIconContent(iconColor, 12);
|
|
10
|
+
const minusIconContent = getTemplateMinusIconContent(iconColor);
|
|
11
|
+
const cannotDecrease = value <= min;
|
|
12
|
+
const cannotIncrease = null != max && value >= max;
|
|
13
|
+
const handleDecrease = (event)=>{
|
|
14
|
+
if (!cannotDecrease) onChange?.(Math.max(value - 1, min), event);
|
|
15
|
+
};
|
|
16
|
+
const handleIncrease = (event)=>{
|
|
17
|
+
if (!cannotIncrease) onChange?.(null == max ? value + 1 : Math.min(value + 1, max), event);
|
|
18
|
+
};
|
|
19
|
+
return <view className={clsx('doubao-stepper', themedClassName)}>
|
|
20
|
+
<view className="doubao-stepper__button" catchtap={cannotDecrease ? void 0 : handleDecrease}>
|
|
21
|
+
<svg className={clsx('doubao-stepper__icon', cannotDecrease && 'doubao-stepper__icon--disabled')} content={minusIconContent}/>
|
|
22
|
+
</view>
|
|
23
|
+
<view className="doubao-stepper__value">
|
|
24
|
+
<text className="doubao-stepper__value-text" text-maxline="1">
|
|
25
|
+
{value}
|
|
26
|
+
</text>
|
|
27
|
+
</view>
|
|
28
|
+
<view className="doubao-stepper__button" catchtap={cannotIncrease ? void 0 : handleIncrease}>
|
|
29
|
+
<svg className={clsx('doubao-stepper__icon', cannotIncrease && 'doubao-stepper__icon--disabled')} content={addIconContent}/>
|
|
30
|
+
</view>
|
|
31
|
+
</view>;
|
|
32
|
+
}
|
|
33
|
+
export { Stepper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.doubao-stepper{display:flex;flex-direction:row;align-items:center;width:86px;height:24px;flex-shrink:0}.doubao-stepper__button{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;background-color:var(--bg-base-4-overlay);border-radius:100px}.doubao-stepper__icon{width:12px;height:12px;flex-shrink:0}.doubao-stepper__icon--disabled{opacity:.3}.doubao-stepper__value{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:38px;height:24px;padding:0 4px;flex-shrink:0;overflow:hidden}.doubao-stepper__value-text{display:block;width:100%;min-width:0;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-align:center;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TouchEvent } from '@lynx-js/types';
|
|
2
|
+
export interface StepperProps {
|
|
3
|
+
/** 当前数量。组件受控,需在 onChange 中更新。 */
|
|
4
|
+
value: number;
|
|
5
|
+
/** 可选的最小值;达到时禁用减号。@defaultValue 0 */
|
|
6
|
+
min?: number;
|
|
7
|
+
/** 可选的最大值;达到时禁用加号。 */
|
|
8
|
+
max?: number;
|
|
9
|
+
/** 点击可用的加号或减号时返回下一数量。 */
|
|
10
|
+
onChange?: (value: number, event: TouchEvent) => void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
File without changes
|
|
@@ -7,12 +7,18 @@ function Title({ text: text1, maxLines = 1, showArrow = true, loading = false })
|
|
|
7
7
|
return <view className={clsx('doubao-title', `doubao-title--lines-${maxLines}`, {
|
|
8
8
|
'doubao-title--loading': loading
|
|
9
9
|
}, themedClassName)}>
|
|
10
|
-
{loading ? <view className="doubao-title__placeholder"/> :
|
|
11
|
-
<
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
{loading ? <view className="doubao-title__placeholder"/> : <text className="doubao-title__text" text-maxline={maxLines}>
|
|
11
|
+
<inline-truncation>
|
|
12
|
+
<view className={clsx('doubao-title__truncation', showArrow && 'doubao-title__inline-arrow')}>
|
|
13
|
+
<view className="doubao-title__fade"/>
|
|
14
|
+
{showArrow ? <TemplateChevronRightIcon className="doubao-title__arrow"/> : null}
|
|
15
|
+
</view>
|
|
16
|
+
</inline-truncation>
|
|
17
|
+
{text1}
|
|
18
|
+
{showArrow ? <view className="doubao-title__inline-arrow">
|
|
19
|
+
<TemplateChevronRightIcon className="doubao-title__arrow"/>
|
|
20
|
+
</view> : null}
|
|
21
|
+
</text>}
|
|
16
22
|
</view>;
|
|
17
23
|
}
|
|
18
24
|
export { Title };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.doubao-title{display:flex;flex-direction:row;align-items:flex-
|
|
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{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}}
|
|
@@ -27,7 +27,7 @@ function renderTransitCardItem({ item, index, isLast }) {
|
|
|
27
27
|
return <view className={clsx('doubao-transit-card__item', isLast && 'doubao-transit-card__item--last')} key={item.key ?? index} {...null != item.onClick ? {
|
|
28
28
|
catchtap: item.onClick
|
|
29
29
|
} : {}}>
|
|
30
|
-
<TemplateTransportSummary className="doubao-template-transport-summary--list" title={item.title} departureMain={item.departureMain} departureSub={item.departureSub} transferTop={item.transferTop} transferBottom={item.transferBottom} arrivalMain={item.arrivalMain} arrivalDayOffset={item.arrivalDayOffset} arrivalSub={item.arrivalSub} price={renderTransitCardPrice(item.price)} priceActionText={item.priceAction?.text} priceActionTone={item.priceAction?.tone} showPriceActionIcon={item.priceAction?.showIcon} tag={renderTransitCardTag(item.tag)}/>
|
|
30
|
+
<TemplateTransportSummary className="doubao-template-transport-summary--list" title={item.title} departureMain={item.departureMain} departureSub={item.departureSub} transferTop={item.transferTop} transferBottom={item.transferBottom} arrivalMain={item.arrivalMain} arrivalDayOffset={item.arrivalDayOffset} arrivalSub={item.arrivalSub} price={renderTransitCardPrice(item.price)} priceActionText={item.priceAction?.text} priceActionTone={item.priceAction?.tone} showPriceActionIcon={item.priceAction?.showIcon} tag={renderTransitCardTag(item.tag)} onRouteClick={item.onRouteClick} onPriceClick={item.onPriceClick}/>
|
|
31
31
|
{!isLast && <view className="doubao-transit-card__item--spread"/>}
|
|
32
32
|
</view>;
|
|
33
33
|
}
|
|
@@ -42,6 +42,10 @@ export interface TransitCardItem {
|
|
|
42
42
|
tag?: TransitCardTag;
|
|
43
43
|
/** 点击列表项时触发。 */
|
|
44
44
|
onClick?: (event: TouchEvent) => void;
|
|
45
|
+
/** 点击左侧行程区域时触发。 */
|
|
46
|
+
onRouteClick?: (event: TouchEvent) => void;
|
|
47
|
+
/** 点击右侧价格区域时触发。 */
|
|
48
|
+
onPriceClick?: (event: TouchEvent) => void;
|
|
45
49
|
}
|
|
46
50
|
export interface TransitCardPrice {
|
|
47
51
|
/** 价格值。 */
|
package/dist/utils/icons.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare function getTemplateAddIconContent(color: string): string;
|
|
1
|
+
export declare function getTemplateAddIconContent(color: string, size?: number): string;
|
|
2
|
+
export declare function getTemplateMinusIconContent(color: string): string;
|
|
2
3
|
export declare function getTemplateAddLoadingIconContent(color: string): string;
|
|
3
4
|
export declare function getTemplatePlaybackIconContent(playing: boolean, progress: number | undefined, color: string): string;
|
|
4
5
|
//# sourceMappingURL=icons.d.ts.map
|
package/dist/utils/icons.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
function getTemplateAddIconContent(color) {
|
|
2
|
-
return `<svg width="
|
|
1
|
+
function getTemplateAddIconContent(color, size = 14) {
|
|
2
|
+
return `<svg width="${size}" height="${size}" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M7.00065 1.021C7.4839 1.021 7.87565 1.41275 7.87565 1.896V6.12231H12.1048C12.5881 6.12231 12.9798 6.51407 12.9798 6.99731C12.9797 7.48044 12.588 7.87231 12.1048 7.87231H7.87565V12.1043C7.87559 12.5875 7.48386 12.9793 7.00065 12.9793C6.51744 12.9793 6.12571 12.5875 6.12565 12.1043V7.87231H1.89648C1.41338 7.87225 1.02163 7.4804 1.02148 6.99731C1.02148 6.5141 1.41329 6.12238 1.89648 6.12231H6.12565V1.896C6.12565 1.41275 6.5174 1.021 7.00065 1.021Z" fill="${color}"/>
|
|
4
4
|
</svg>`;
|
|
5
5
|
}
|
|
6
|
+
function getTemplateMinusIconContent(color) {
|
|
7
|
+
return `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M10.1836 5.25C10.5978 5.25 10.9336 5.58579 10.9336 6C10.9336 6.41421 10.5978 6.75 10.1836 6.75H1.81641C1.40219 6.75 1.06641 6.41421 1.06641 6C1.06641 5.58579 1.40219 5.25 1.81641 5.25H10.1836Z" fill="${color}"/>
|
|
9
|
+
</svg>`;
|
|
10
|
+
}
|
|
6
11
|
function getTemplateAddLoadingIconContent(color) {
|
|
7
12
|
const opacities = [
|
|
8
13
|
1,
|
|
@@ -44,4 +49,4 @@ ${renderTemplatePlaybackProgress(progress, color)}
|
|
|
44
49
|
${getTemplatePauseIconPath(color)}
|
|
45
50
|
</svg>`;
|
|
46
51
|
}
|
|
47
|
-
export { getTemplateAddIconContent, getTemplateAddLoadingIconContent, getTemplatePlaybackIconContent };
|
|
52
|
+
export { getTemplateAddIconContent, getTemplateAddLoadingIconContent, getTemplateMinusIconContent, getTemplatePlaybackIconContent };
|