Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
459 commits
Select commit Hold shift + click to select a range
013c7f2
feat: 优化Picker组件
zhaojinzhao Aug 25, 2025
cf18eca
feat: 更新快照文件
zhaojinzhao Aug 25, 2025
bba1773
fix: correct modal close condition handling
lawpachi Aug 25, 2025
b8cd628
feat: 恢复CSS变量单位为PX
zhaojinzhao Aug 26, 2025
9e45985
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Aug 26, 2025
961f250
refactor: 移除无障碍属性支持
garyzhangmin1 Aug 27, 2025
ab49d59
refactor: dialog: update component structure and types
lawpachi Aug 27, 2025
ff4eeb2
feat: 添加进度文本描述功能(Progress.tsx)
garyzhangmin1 Aug 27, 2025
48517be
feat: add useId
lawpachi Aug 27, 2025
ffba787
feat: IconButton add Accessibility
shixiaohu2206 Aug 27, 2025
a46b788
docs: 更新无障碍属性文档(bui-core/Progress)
garyzhangmin1 Aug 28, 2025
47947ca
feat: (TextArea)添加字符计数提示
garyzhangmin1 Aug 28, 2025
e99693d
refactor: aria-hidden add container param
lawpachi Aug 29, 2025
e44f4fe
test: add Modal aria-hidden validation tests for different container …
lawpachi Sep 1, 2025
acddd99
test: add tests for Dialog component
lawpachi Sep 1, 2025
f2bd1b4
test: add a11y test for Modal component
lawpachi Sep 1, 2025
b79a2b4
fix: 修正注释
mingle98 Sep 1, 2025
a6c3f90
refactor: rename onRootElementMouted to onMounted
lawpachi Sep 1, 2025
51b7c98
docs: update Backdrop and Portal component docs
lawpachi Sep 1, 2025
046212d
feat:popover更新eslint报错
stormt Sep 1, 2025
b44d14b
Merge remote-tracking branch 'origin/main' into feat/animation-collapse
lawpachi Sep 2, 2025
05303fc
feat: 新增Tabs组件无障碍单测
zhaojinzhao Sep 2, 2025
1974a86
fix: 升级版本
mingle98 Sep 2, 2025
1e5b487
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 2, 2025
7aeed24
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 2, 2025
2511908
Merge remote-tracking branch 'origin/releases/pioneer' into releases/…
lawpachi Sep 2, 2025
e4508fb
feat:scrollview 添加无障碍
stormt Sep 2, 2025
3445ed1
feat:popover 修改无障碍
stormt Sep 2, 2025
01f84e9
feat: 自定义组件无障碍单元测试
mingle98 Sep 2, 2025
1562018
fix: collapse/fade/slide enter&exit
adldlr Sep 2, 2025
c8e5328
fix: 修改配置
mingle98 Sep 2, 2025
fb5f6bc
fix: 修改配置
mingle98 Sep 2, 2025
9dc6864
feat: Calendar增加无障碍单测
zhaojinzhao Sep 2, 2025
7c3daae
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 2, 2025
7418ab0
test: add a11y tests for Dialog and Modal components
lawpachi Sep 2, 2025
1b99515
feat: update calendar component unit tests and a11y tests
zhaojinzhao Sep 2, 2025
893126d
feat: 增加Picker阅读无障碍单测用例
zhaojinzhao Sep 3, 2025
aa11d43
feat: Toast组件增加无障碍单测
zhaojinzhao Sep 3, 2025
cf47b77
feat: 补充slide md和单测
adldlr Sep 3, 2025
77d7c2e
refactor: enhance Collapse component with CSS animations and Taro int…
lawpachi Sep 4, 2025
6e5f36b
refactor: add return statement in useDidMountEffect hook for Collapse…
lawpachi Sep 5, 2025
40e743a
feat: 增加多语言支持及无障碍功能(Countdown)
garyzhangmin1 Sep 5, 2025
25cd8d2
fix: (locales/en-US)更新英文倒计时文案至全称表述
garyzhangmin1 Sep 5, 2025
33ecb1f
fix: 纠正计时相关的翻译错误(locales/zh-TW)
garyzhangmin1 Sep 5, 2025
b12ea66
test: (useLocaleText)添加单元测试用例
garyzhangmin1 Sep 5, 2025
ff404a9
test: 添加更多边界情况测试(Countdown)
garyzhangmin1 Sep 5, 2025
f89bfa6
feat: 添加进度相关的多语言翻译(locales)
garyzhangmin1 Sep 5, 2025
2bec061
test: 添加单元测试(useLocaleText)
garyzhangmin1 Sep 5, 2025
7afa26b
refactor: (Progress)添加国际化支持并优化进度文本处理
garyzhangmin1 Sep 5, 2025
6d9711a
test: (Progress)添加进度条组件的单元测试
garyzhangmin1 Sep 5, 2025
44e0017
feat: 添加多语言字符计数提示(TextArea)
garyzhangmin1 Sep 5, 2025
8d6ddfd
test: (TextArea)添加无障碍单测
garyzhangmin1 Sep 5, 2025
7de7fc6
docs: (bui-core/Countdown)移除无障碍指南部分文档
garyzhangmin1 Sep 5, 2025
ac34e76
feat: 补充动效组件单测和优化md
adldlr Sep 5, 2025
d515eb5
feat: 补充动效组件单测和优化md
adldlr Sep 5, 2025
a8fb745
fix: initialize size on mount for collapse component
lawpachi Sep 8, 2025
bdf9cd3
refactor: replace useId with useUniqueId in Dialog component
lawpachi Sep 8, 2025
8a7aa80
feat:优化Badge的单测
stormt Sep 9, 2025
a2d7a74
feat:优化Tooltip的单测
stormt Sep 9, 2025
4bdb53e
feat:修改scrollview组件的单测
stormt Sep 9, 2025
e155b98
feat:修改PopOver组件的单测
stormt Sep 9, 2025
d8d0395
fix(TextArea): 简化高度计算逻辑并更新文档,同时将构建脚本中的包管理器从`yarn`改为`pnpm`
garyzhangmin1 Sep 9, 2025
a63462f
fix: (TextArea)调整文本区域自动高度计算公式
garyzhangmin1 Sep 9, 2025
360370d
test: (Progress)添加A11y测试案例
garyzhangmin1 Sep 9, 2025
e322df1
test: (TextArea)添加A11y相关测试用例
garyzhangmin1 Sep 9, 2025
61311a9
test: (Countdown)添加A11y测试用例
garyzhangmin1 Sep 9, 2025
17d3739
test: (Button)添加按钮组件的无障碍测试案例
garyzhangmin1 Sep 9, 2025
bfd8b9c
fix: ignore Fade and Slide when inspect
NeverEllipsis Sep 10, 2025
5ea4bdf
feat:popover相关重构
stormt Sep 10, 2025
ab58c2e
feat:popover相关重构
stormt Sep 10, 2025
ccf9ab5
feat: (TextArea)添加动态 `aria-description` 更新
garyzhangmin1 Sep 10, 2025
d0aa51f
feat:Badge相关重构
stormt Sep 10, 2025
18367b4
feat:Badge相关重构
stormt Sep 10, 2025
92bee7d
feat: Toast hook支持读取外部Context值
zhaojinzhao Sep 10, 2025
8ea2564
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 10, 2025
6efd0ad
refactor: add default values and accessibility enhancement for Backdr…
lawpachi Sep 10, 2025
06dd666
feat:修改tooltip相关改造
stormt Sep 10, 2025
3e18c8b
feat:修改tooltip相关改造
stormt Sep 10, 2025
2288e11
feat: add accessibility for Input
Sep 10, 2025
ad2fdfb
refactor: 重构Toast组件
zhaojinzhao Sep 10, 2025
fda6b1c
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 10, 2025
58da35b
docs: update Modal accessibility documentation
lawpachi Sep 10, 2025
7da7d65
feat: add accessibility for Checkbox
Sep 11, 2025
2d934aa
feat: add accessibility for Radio
Sep 11, 2025
ffb338e
feat:重构scrollview
stormt Sep 11, 2025
fa03ab5
fix: 修复测试用例
zhaojinzhao Sep 11, 2025
22234f0
feat: add accessibility for Switch
Sep 11, 2025
9e7e417
feat: add a11y
NeverEllipsis Sep 11, 2025
9105791
feat:解决tooltip的警告
stormt Sep 11, 2025
aeb3414
feat:解决Popover的警告
stormt Sep 11, 2025
42b35ac
fix: 修复container无效以及ref无效的问题
zhaojinzhao Sep 11, 2025
3a409ba
docs: 修改Toast文档
zhaojinzhao Sep 11, 2025
ab6d359
feat:Badge组件删除decorative属性
stormt Sep 12, 2025
103a012
feat:Tootip组件删除属性
stormt Sep 12, 2025
eab9e67
feat:Popover组件删除属性
stormt Sep 12, 2025
2978bfd
feat:Popover组件删除属性
stormt Sep 12, 2025
b6c1539
feat: add CalendarCancelOutlined icon component
lawpachi Sep 12, 2025
ed91350
Publish
lawpachi Sep 12, 2025
8973ee4
fix: rename and update CalendarCancel icon component
lawpachi Sep 12, 2025
8754b51
Publish
lawpachi Sep 12, 2025
bb8d375
test: add a11y and visibility tests for Backdrop component
lawpachi Sep 15, 2025
4489364
test: add tests for Collapse, Fade, and Slide components
lawpachi Sep 15, 2025
e49b67e
refactor: 重构Toast hook实现
zhaojinzhao Sep 15, 2025
de2e850
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 15, 2025
46e7d24
refactor: 重构toast组件
zhaojinzhao Sep 16, 2025
c3cc096
test: add missing tests for Backdrop component interactions
lawpachi Sep 16, 2025
8dd7408
feat: add transition duration prop to Toast component
lawpachi Sep 16, 2025
a07d904
docs: update Dialog accessibility documentation
lawpachi Sep 16, 2025
588ee92
refactor: add disablePortal prop to function Dialog
lawpachi Sep 16, 2025
7e37f0b
refactor: rename Collapse displayName to BuiCollapse
lawpachi Sep 16, 2025
40364d5
chore: disable eslint a11y rules for click events and autofocus
lawpachi Sep 16, 2025
321ef29
修改popOver使用内部组件
stormt Sep 16, 2025
65fcf87
refactor: add disablePortal prop to function Dialog component
lawpachi Sep 16, 2025
26365d0
fix: react/jsx-key warning
lawpachi Sep 16, 2025
79a4bab
fix: lint error
lawpachi Sep 16, 2025
a0b9ea3
style: 修复官网顶部导航栏在响应式下文字换行的问题
zhaojinzhao Sep 16, 2025
71a56c0
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 16, 2025
c2c55aa
test: update test
lawpachi Sep 17, 2025
6cfe510
feat: (Progress)添加进度条的国际化文本labelName
garyzhangmin1 Sep 17, 2025
2cffcad
refactor(TextArea): 移除`aria-describedby` 和 `aria-rowcount` 属性
garyzhangmin1 Sep 17, 2025
ec9098b
feat: (locales)添加Textarea组件的labelName国际化支持
garyzhangmin1 Sep 17, 2025
6ba11f1
refactor: (a11y.test.tsx)调整屏幕阅读器友好文本的校验逻辑
garyzhangmin1 Sep 17, 2025
b645f67
fix: (Button)添加aria-disabled属性以提高无障碍访问性
garyzhangmin1 Sep 17, 2025
0ab80e4
fix: (useLocaleText.test.ts)修复本地化文本测试案例
garyzhangmin1 Sep 17, 2025
41b19b6
fix: (TextArea, Countdown)调整测试预期值
garyzhangmin1 Sep 17, 2025
c29a992
test: update snapshot
lawpachi Sep 17, 2025
b7c7230
修改popOver单测修复
stormt Sep 17, 2025
73a09da
chore: rename vitest config file to mjs format
lawpachi Sep 18, 2025
815d554
docs: update accessibility sections in multiple components' docs
lawpachi Sep 18, 2025
1c6d825
test: update alert component snapshots and a11y tests
lawpachi Sep 18, 2025
e877200
docs: update en-US.md
lawpachi Sep 18, 2025
a90adde
docs: update US md
lawpachi Sep 18, 2025
8efb539
refactor: 去除冗余无障碍属性
shixiaohu2206 Sep 18, 2025
f1e8835
refactor: update TransitionCore props and add test cases for Transition
lawpachi Sep 22, 2025
23029b0
refactor: update transition timing logic for consistency
lawpachi Sep 22, 2025
682d9f1
feat: 解决状态竟态问题
zhaojinzhao Sep 23, 2025
08a8370
fix: 修复非multiple情况下,清空其它toast的close函数
zhaojinzhao Sep 25, 2025
8a50d51
test: update snapshot
lawpachi Sep 25, 2025
fdb9217
fix: 修复eslint问题
zhaojinzhao Sep 25, 2025
cf0498a
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Sep 25, 2025
3ebc646
style: format gradient declarations for consistency
lawpachi Sep 25, 2025
b0d54a5
test: add timeout option for accessibility test
lawpachi Sep 25, 2025
c84f2c3
feat: Added new components: TransitionGroup, CSSTransition, and Calen…
NeverEllipsis Sep 28, 2025
aa8db32
test: refactor jest to vitest
NeverEllipsis Sep 28, 2025
d3025dc
style: add css variables
NeverEllipsis Sep 28, 2025
780b9f5
test: jest to vitest
NeverEllipsis Sep 30, 2025
a14b2d5
Merge remote-tracking branch 'origin/releases/pioneer' into releases/…
lawpachi Oct 13, 2025
be3f486
Publish
lawpachi Oct 14, 2025
b4e5c1c
chore: update esbuild compiler options configuration
lawpachi Oct 14, 2025
bb2645a
Publish
lawpachi Oct 14, 2025
96c8430
feat: scrollview组件 ts补全,添加小程序专属属性声明
stormt Oct 15, 2025
4de6c00
perf: get taroPath at an earlier time
lawpachi Oct 20, 2025
57c4034
Publish
lawpachi Oct 20, 2025
d7038dc
Publish
lawpachi Oct 20, 2025
912f4c0
chore: update git ignore
NeverEllipsis Oct 21, 2025
cdb53c7
chore: update git ignore
NeverEllipsis Oct 22, 2025
40ad150
style: add pioneer-light-components mixins
NeverEllipsis Oct 30, 2025
5e99ffe
Publish
NeverEllipsis Oct 30, 2025
caca586
refactor: enhance cssVarToValue with global theme settings
lawpachi Nov 3, 2025
3b435c7
Publish
lawpachi Nov 3, 2025
0e5797f
style: update color value for aiblue-dark
lawpachi Nov 4, 2025
aeaa463
style: pioneer update button styles and theme variables
lawpachi Nov 11, 2025
5895c27
Publish
lawpachi Nov 11, 2025
204a6a0
style: update color value for primary start in pioneer light theme
lawpachi Nov 14, 2025
7be9b7e
Publish
lawpachi Nov 14, 2025
57f8669
Publish
jellyshuang Nov 14, 2025
5cc70d7
fix: optimize animations to prevent unnecessary triggers on re-render
lawpachi Nov 17, 2025
647e174
Publish
lawpachi Nov 17, 2025
4a9a2c9
style: Tag text should not align center
NeverEllipsis Nov 18, 2025
b3d100d
fix: adjust fade animation dependency array
lawpachi Nov 18, 2025
5de29b1
style: Calendar adapt pioneer theme
lawpachi Nov 18, 2025
5aa1711
style: pioneer theme tabs update tab indicator height and width styles
lawpachi Nov 20, 2025
9ce925c
fix: isMini
NeverEllipsis Nov 21, 2025
83bb00d
Publish
NeverEllipsis Nov 21, 2025
c44f13d
style: Tabs indicator in miniapp
NeverEllipsis Nov 25, 2025
8e521a3
Publish
NeverEllipsis Nov 25, 2025
abf6333
fix: add css var in theme file
NeverEllipsis Nov 26, 2025
08a5336
fix: ts type errors and testing errors
honghui-qiao Nov 29, 2025
5acdf99
fix: format issues
honghui-qiao Nov 29, 2025
5c59df5
feat: support build/test cache to make next run faster
honghui-qiao Nov 29, 2025
71069f6
feat: support per-component testing
honghui-qiao Nov 29, 2025
8c75ec8
fix: use latest node module resolve path and add newline to theme-var…
honghui-qiao Nov 29, 2025
21c502b
refactor: improve useEventCallback
honghui-qiao Nov 29, 2025
f80e1a9
refactor: change to en for consistent
honghui-qiao Nov 29, 2025
fdef7e7
fix: type and lint errors
honghui-qiao Nov 30, 2025
7c85429
refactor: change tab to space
honghui-qiao Nov 30, 2025
4001ec0
fix: polynomial regular expression used on uncontrolled data
honghui-qiao Nov 30, 2025
58e46ba
perf: tabs re-render improvements
honghui-qiao Nov 30, 2025
570dd96
fix: polynomial regular expression used on uncontrolled data
honghui-qiao Nov 30, 2025
74fa3ee
refactor: change ci:test to make it run faster
honghui-qiao Nov 30, 2025
14fd501
chore: install nx to project
honghui-qiao Nov 30, 2025
2dcd00c
chore: remove "with Coverage" testing title
honghui-qiao Nov 30, 2025
35d0a74
fix: testing error "window not defined"
honghui-qiao Nov 30, 2025
af12ae0
chore: disable tui of NX
honghui-qiao Nov 30, 2025
51d6a2a
perf: implement miniapp version Tabs to improve performance
honghui-qiao Dec 1, 2025
c101724
perf: use batch query
honghui-qiao Dec 1, 2025
4d92994
fix: type errors
honghui-qiao Dec 1, 2025
dccc637
chore: mini program style improvement and remove some debug info
honghui-qiao Dec 1, 2025
5eda364
fix: lint errors and typo
honghui-qiao Dec 2, 2025
4d27756
perf: rollback to per-package testing architecture for simple and fas…
honghui-qiao Dec 2, 2025
1f5be08
perf: improve a11y test performance
honghui-qiao Dec 2, 2025
c5720d6
perf: move temp file to central place and modify Nx input for stable …
honghui-qiao Dec 2, 2025
946a8dd
docs: update
honghui-qiao Dec 3, 2025
2ada3e5
Publish
honghui-qiao Dec 3, 2025
62e3a30
fix: avoid the "window is not defined" error that occurred from React…
honghui-qiao Dec 3, 2025
b4e0201
feat: use html tag for back compatibility
honghui-qiao Dec 3, 2025
7dabaf0
Publish
honghui-qiao Dec 3, 2025
9245e4d
fix: make miniapp tab centered in initial render
honghui-qiao Dec 8, 2025
a20633b
Publish
honghui-qiao Dec 8, 2025
667310c
feat: remove active font family css variable
honghui-qiao Dec 10, 2025
51f1d49
feat: add ref
honghui-qiao Dec 11, 2025
8321459
Publish
honghui-qiao Dec 11, 2025
941d616
Publish
NeverEllipsis Dec 11, 2025
a3508f3
style: pioneer theme tabs update
lawpachi Dec 18, 2025
36dc530
perf: simplify dom structure and do not apply animation in initial re…
honghui-qiao Dec 18, 2025
07245a3
Publish
honghui-qiao Dec 18, 2025
ab2071c
fix: update getBoundingClientRect for null element handling
lawpachi Dec 19, 2025
e6cda15
fix: edge cases (ex: active tab font size is different), make sure in…
honghui-qiao Dec 20, 2025
aa2a0be
fix: visibility conflict with parent element
honghui-qiao Dec 21, 2025
caa70d7
Publish
honghui-qiao Dec 21, 2025
86c3c77
fix: when theme changed the indicator will positioned automatically
honghui-qiao Dec 21, 2025
afcb7da
Publish
honghui-qiao Dec 21, 2025
9de3707
style: Tabs indicator z-index
NeverEllipsis Dec 24, 2025
b4f1ad7
Publish
NeverEllipsis Dec 24, 2025
6551c74
style: update dialog component styles
lawpachi Dec 29, 2025
a71db94
feat: add okButtonProps and cancelButtonProps to Dialog component
lawpachi Dec 30, 2025
9a2dd7b
fix: add null type support for container prop
lawpachi Dec 30, 2025
326f5d7
Publish
lawpachi Dec 30, 2025
ccb6678
fix: use Portal container prop correctly
lawpachi Dec 30, 2025
9a0adc2
docs: Additional notes on using Toast in mini-programs
NeverEllipsis Jan 4, 2026
cc86e72
chore: add protection
NeverEllipsis Jan 4, 2026
468e6eb
fix: update Dialog types for button props data attributes
lawpachi Jan 6, 2026
8497dda
fix: add disableAutoFocus and disableRestoreFocus options to Modal co…
lawpachi Jan 7, 2026
399cca2
Publish
lawpachi Jan 7, 2026
39c1145
fix: gap replaced with margin for dialog actions spacing
lawpachi Jan 8, 2026
54aa357
Publish
lawpachi Jan 8, 2026
0a295dc
fix: remove unused dependency in hook
lawpachi Jan 9, 2026
469d250
Publish
lawpachi Jan 9, 2026
996e198
fix: reset modal autofocus and restorefocus options
lawpachi Jan 9, 2026
75a0ce4
Publish
lawpachi Jan 9, 2026
32c35b7
fix: enableFlex 在微信小程序中会造成子元素位置偏移
lawpachi Jan 13, 2026
0e29f7e
fix: function toast use Portal correctly
lawpachi Jan 15, 2026
7e8b053
Publish
lawpachi Jan 15, 2026
01c1d8a
chore: update demo style
NeverEllipsis Jan 23, 2026
dc9e09c
fix: add data attribute support in DialogOptions types
lawpachi Jan 27, 2026
1af89fa
fix: uniform data type for dialog button props
lawpachi Jan 27, 2026
b5d5a70
feat: 修复Tabs在1个tab的情况下展示mask元素
zhaojinzhao Jan 27, 2026
5e84457
Merge remote-tracking branch 'origin/releases/theme-next' into releas…
zhaojinzhao Jan 27, 2026
7846530
fix: toast component's max-width was not calculated based on the scre…
lawpachi Jan 28, 2026
59dd5f9
Publish
lawpachi Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions .dumi/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
declare module '*.svg' {
import * as React from 'react';

export const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
>;
const content: string;
export default content;
}

declare module '*.png' {
const content: string;
export default content;
}

declare module '*.css' {
const content: Record<string, string>;
export default content;
}

declare module '*.less' {
const content: Record<string, string>;
export default content;
}
23 changes: 12 additions & 11 deletions .dumi/pages/index/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react/display-name */
import React from 'react';
import * as React from 'react';
import { Button } from '@bifrostui/react';
import { usePrefersColor, useNavigate, useIntl, useLocale } from 'dumi';
import { usePrefersColor, useNavigate, useIntl } from 'dumi';
import { ToTopOutlinedIcon } from '@bifrostui/icons';
import Tpp from './user-icon/tpp';
import Dm from './user-icon/dm';
Expand All @@ -13,6 +13,7 @@ export default () => {
const { locale } = useIntl();
const current = locale === 'zh-CN' ? 'zhCN' : 'enUS';
const navigate = useNavigate();

return (
<div className="main-container home-page">
<div className="main-head">
Expand Down Expand Up @@ -80,15 +81,15 @@ export default () => {
<div className="main-resource">
<div className="resource-item">
<div className="resource-title">
{locales[current].subTitle[0].title}
{locales[current].subtitle[0].title}
</div>
<div className="resource-content">
<div>
<div className="content-title">
{locales[current].subTitle[0].title}
{locales[current].subtitle[0].title}
</div>
<div className="content-desc">
{locales[current].subTitle[0].desc}
{locales[current].subtitle[0].desc}
</div>
<Button
size="large"
Expand All @@ -99,7 +100,7 @@ export default () => {
navigate('/design/colors', { replace: true });
}}
>
{locales[current].subTitle[0].btn}
{locales[current].subtitle[0].btn}
</Button>
</div>
<img
Expand All @@ -110,15 +111,15 @@ export default () => {
</div>
<div className="resource-item">
<div className="resource-title">
{locales[current].subTitle[1].title}
{locales[current].subtitle[1].title}
</div>
<div className="resource-content">
<div>
<div className="content-title">
{locales[current].subTitle[1].title}
{locales[current].subtitle[1].title}
</div>
<div className="content-desc">
{locales[current].subTitle[1].desc}
{locales[current].subtitle[1].desc}
</div>
<Button
size="large"
Expand All @@ -129,7 +130,7 @@ export default () => {
navigate('/cores/button', { replace: true });
}}
>
{locales[current].subTitle[1].btn}
{locales[current].subtitle[1].btn}
</Button>
</div>
<img
Expand All @@ -141,7 +142,7 @@ export default () => {
</div>

<div className="main-users">
<div className="users-title">{locales[current].subTitle[2].title}</div>
<div className="users-title">{locales[current].subtitle[2].title}</div>
<div className="user-list">
<Tpp color={color === 'light' ? '#eee' : '#5F6672'} />
<Dm color={color === 'light' ? '#eee' : '#5F6672'} />
Expand Down
10 changes: 5 additions & 5 deletions .dumi/pages/index/locales.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
zhCN: {
description: '一款简洁灵活的跨端组件库',
description: '一款简洁优雅的跨端组件库',
start: '开始体验',
features: [
{
Expand All @@ -9,14 +9,14 @@ export default {
},
{
title: '高定制',
desc: '一致优雅的API帮助您快速创造新主题',
desc: '一致优雅的API帮助您快速创建新主题',
},
{
title: '高可用',
desc: '完善的配套,丰富的组件,开箱即用',
desc: '配套完善,组件丰富,开箱即用',
},
],
subTitle: [
subtitle: [
{
title: '设计语言',
desc: '基于阿里影业的众多业务实践沉淀的设计语言和设计系统',
Expand Down Expand Up @@ -49,7 +49,7 @@ export default {
desc: 'Complete supporting facilities, rich components, ready to use',
},
],
subTitle: [
subtitle: [
{
title: 'Design language',
desc: 'Design language and design system based on the numerous business practices of Alibaba Pictures',
Expand Down
8 changes: 5 additions & 3 deletions .dumi/pages/index/user-icon/dm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default ({ color = '#eee' }) => {
import * as React from 'react';

export default function UserIcon({ color = '#eee' }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -9,8 +11,8 @@ export default ({ color = '#eee' }) => {
<path
d="M.084 24.05a4.263 4.263 0 0 1 5.828-3.101l19.375 8.114-21.006.081A4.263 4.263 0 0 1 .084 24.05Zm4.554-10.997a4.263 4.263 0 0 1 6.571-.634L26.005 27.33 6.567 19.367a4.264 4.264 0 0 1-1.93-6.314Zm8.416-8.415a4.263 4.263 0 0 1 6.313 1.928l7.963 19.439-14.91-14.796a4.263 4.263 0 0 1 .634-6.571ZM24.05.083a4.264 4.264 0 0 1 5.094 4.198l-.081 21.006-8.114-19.375a4.264 4.264 0 0 1 3.1-5.829Zm7.85 36.314 8.205 14.306C40.948 52.17 39.89 54 38.196 54h-16.41c-1.692 0-2.752-1.83-1.91-3.297l8.205-14.306c.847-1.476 2.974-1.476 3.82 0ZM30 31.302c-11.386 6.569-6.726 15.835-22.57 18.907.408-3.58-2.182-5.491-3.845-6.222 8.913.08 11.98-3.14 15.298-6.423l.4-.394c2.477-2.43 5.226-4.823 10.717-5.868Zm3.995 1.368 19.439 7.963a4.264 4.264 0 1 1-4.643 6.948L33.995 32.67Zm21.724-1.814a4.263 4.263 0 0 1 4.198 5.095 4.263 4.263 0 0 1-5.828 3.1l-19.377-8.113 21.007-.082Zm-51.438 0 21.006.081-19.375 8.114a4.263 4.263 0 1 1-1.63-8.195Zm49.808-9.908a4.264 4.264 0 1 1 1.63 8.196l-21.006-.081ZM48.79 12.42a4.263 4.263 0 0 1 6.57.635 4.263 4.263 0 0 1-1.927 6.313l-19.44 7.964Zm-8.158-5.852a4.263 4.263 0 1 1 6.948 4.642L32.67 26.005ZM30.856 4.28A4.263 4.263 0 0 1 35.95.084a4.263 4.263 0 0 1 3.1 5.828l-8.113 19.375ZM96.496 6v7.714h19.766v5.944H97.498c2.182 8.276 8.443 16.763 18.117 21.18v7.029c-13.974-5.384-20.3-15.698-22.984-22.695-2.685 6.997-9.011 17.311-22.985 22.695v-7.03c9.674-4.416 15.936-12.903 18.117-21.179H69v-5.943l19.765-.001V6h7.732Zm27.243 31.232v-5.741c3.893-.756 6.347-2.978 7.65-4.558h-7.65v-4.889h20.096V19.74h-18.73v-4.098l18.73-.001v-2.306h-20.096V8.448l20.096-.001V6h7.069l-.001 2.446H171v4.89l-20.097-.001v2.306h18.732v4.1l-18.732-.001v2.305H171v4.89l-32.732-.001c-.071.122-.571.958-1.5 2.114h28.002a3.564 3.564 0 0 1 3.563 3.564c0 .934-.36 1.833-1.018 2.496-1.832 1.846-5.305 4.41-10.264 6.765 3.923.57 8.52.768 13.95.426v5.57c-9.092.523-16.658-.698-22.762-2.652-6.703 1.971-14.928 3.202-24.5 2.651v-5.57c6.34.43 11.737.224 16.394-.457-3.7-1.938-6.495-4.019-8.419-5.734h9.656a32.97 32.97 0 0 0 7.338 3.724 40.764 40.764 0 0 0 11.347-5.894h-28.538c-2.102 1.441-4.695 2.7-7.778 3.296Z"
fill={color}
fill-rule="evenodd"
fillRule="evenodd"
/>
</svg>
);
};
}
4 changes: 3 additions & 1 deletion .dumi/pages/index/user-icon/tpp.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as React from 'react';

export default ({ color = '#eee' }) => {
return (
<svg
Expand All @@ -9,7 +11,7 @@ export default ({ color = '#eee' }) => {
<path
d="M144.848 33.778v3.604h-16.292v7.327c0 2.925-1.458 3.29-10.51 3.29-.146-.203-1.351-4.5-1.351-4.5h.621c3.02-.003 4.688-.037 4.688-.694v-5.423h-18.079v-3.604h40.923Zm-35.679 4.793 6.845 2.288c-1.753 2.442-4.551 5.243-6.493 7.14l-5.596-1.882c1.589-1.676 3.814-4.763 5.244-7.546Zm29.657.091c1.939 2.147 4.288 4.702 6.022 7.22l-7.005 2.117c-1.029-2.49-2.454-5.648-4.366-7.557Zm-32.422-6.79h35.961v-3.604h-35.96v3.604Zm15.779-17.859h4.664v-2.471h-4.664v2.471Zm10.598 8.592h4.77V17.77h-4.77v4.834Zm-10.598 0h4.664V17.77h-4.664v4.834Zm-10.917 0h4.77V17.77h-4.77v4.834Zm4.77-8.592h-10.6v12.35h37.944v-12.35h-10.6v-2.471h11.978v-4.08h-40.7v4.08h11.978v2.471ZM190 33.778v3.604h-16.293v7.327c0 2.925-1.458 3.29-10.509 3.29-.147-.203-1.352-4.5-1.352-4.5h.622c3.019-.003 4.687-.037 4.687-.694v-5.423h-18.079v-3.604H190Zm-35.68 4.793 6.845 2.288c-1.752 2.442-4.551 5.243-6.493 7.14l-5.596-1.882c1.589-1.676 3.814-4.763 5.244-7.546Zm29.657.091c1.94 2.147 4.288 4.702 6.022 7.22l-7.005 2.117c-1.029-2.49-2.454-5.648-4.366-7.557Zm-32.421-6.79h35.96v-3.604h-35.96v3.604Zm15.778-17.859h4.664v-2.471h-4.664v2.471Zm10.598 8.592h4.77V17.77h-4.77v4.834Zm-10.599 0h4.664V17.77h-4.664v4.834Zm-10.916 0h4.77V17.77h-4.77v4.834Zm4.77-8.592h-10.599v12.35h37.943v-12.35h-10.599v-2.471h11.977v-4.08H149.21v4.08h11.977v2.471ZM65.36 29.99l4.693 2.034c-1.352 5.11-4.151 11.898-6.718 15.976L58 42.282c3.62-3.89 5.926-8.035 7.36-12.292ZM80.278 6c-.187.903-.657 2.014-1.316 3.18h20.47v36.052c0 2.454-5.953 2.768-15.624 2.768-.145-.208-1.332-4.606-1.332-4.606 1.039 0 2.47.058 3.95.074l.525.004c3.151.01 6.349-.221 6.349-1.65V13.905H75.395c-1.341 1.364-2.792 2.447-4.134 2.887l-2.379-3.422C71.728 10.92 72.96 9.32 73.13 6Zm-.953 9.806c-.095.453-.293.977-.57 1.536h11.314v3.652h-5.898v4.778h7.056v4.017H84.17v7.013h2.276v-4.25h4.286v8.678l-18.61-.155v-8.523h4.048v4.25h2.513v-7.013H71.63v-4.017h7.054v-4.778h-2.485c-1.275 1.41-2.742 2.597-4.019 3.016l-1.52-2.492c2.165-1.863 3.101-3.188 3.231-5.712Zm-17.521 2.348c1.957.793 5.744 2.32 7.854 3.806l-3.606 5.856c-2.621-2.42-4.927-3.948-7.656-5.764Zm.411-10.837c1.855.752 5.444 2.199 7.443 3.607l-3.417 5.55c-2.484-2.294-4.669-3.74-7.256-5.462ZM48.308 25.128c-.004.064-.065.398-.39.481-.015.003-.029.012-.044.018-.419.19-1.057.728-1.283 2.246-.083.684-.219 1.4-.366 2.17l-.002.01c-.418 2.186-1.087 4.003-1.989 5.398-1.263 1.95-2.978 3.037-4.963 3.143-1.448.076-2.666.082-3.722.014-3.06-.196-4.813-1-6.055-2.78-1.67-2.393-2.435-6.744-3.426-6.744-.991 0-1.755 4.35-3.426 6.744-1.241 1.78-2.996 2.584-6.055 2.78-1.056.068-2.273.062-3.722-.014-1.985-.106-3.7-1.193-4.962-3.143-.903-1.395-1.572-3.212-1.99-5.399l-.001-.01c-.147-.769-.284-1.485-.367-2.17-.226-1.517-.863-2.055-1.282-2.245-.015-.006-.03-.015-.045-.018-.324-.083-.386-.417-.39-.48-.037-.615-.188-1.982-.24-2.837-.04-.636.476-.719.574-.725 3.611-.232 11.99-.688 15.797.321 1.138.303 4.392.93 6.11.93 1.716 0 4.97-.627 6.108-.93 3.81-1.01 12.187-.553 15.797-.321.098.006.615.09.576.725-.054.855-.204 2.222-.242 2.836M33.001 7.042C28.626 5.863 27.281 0 19.101 0c2.961 3.452 1.595 6.482-.626 7.178C7.636 10.116-.492 19.388.023 32.203.552 45.396 11.653 54 26 54c14.346 0 25.447-8.604 25.977-21.797C52.5 19.183 44.1 9.82 33 7.042M19.037 24.876a13.584 13.584 0 0 0-.27-.054c-1.356-.257-4.122-.612-6.26-.476-.943.06-1.764.216-2.29.517-1.301.749-1.407 1.925-1.187 3.505.063.459.155.951.252 1.477.52 2.818 1.75 5.818 4.312 5.968 1.15.068 2.093.073 2.874.023 2.404-.153 3.27-.819 3.868-1.72 3.415-5.15 2.064-8.533-1.299-9.24m14.062 0 .27-.054c1.357-.257 4.122-.612 6.26-.476.943.06 1.764.216 2.289.517 1.303.749 1.408 1.925 1.189 3.505-.064.459-.156.951-.252 1.477-.522 2.818-1.751 5.818-4.313 5.968-1.15.068-2.093.073-2.874.023-2.404-.153-3.27-.819-3.867-1.72-3.416-5.15-2.065-8.533 1.298-9.24"
fill={color}
fill-rule="evenodd"
fillRule="evenodd"
/>
</svg>
);
Expand Down
7 changes: 5 additions & 2 deletions .dumi/theme/builtins/Badge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import './index.less';
const Badge: FC<{
children: ReactNode;
type: 'info' | 'warning' | 'error' | 'success';
}> = (props) => <span className="dumi-default-badge" {...props} />;
}> = (props) => {
const { key, ...restProps } = props as any;
return <span className="dumi-default-badge" {...restProps} />;
};

export default Badge;
export default Badge;
30 changes: 11 additions & 19 deletions .dumi/theme/builtins/Previewer/index.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import (reference) '../../styles/variables.less';

.@{prefix}-previewer {
max-width: 100%;
margin: 24px 0 32px;
// border: 1px solid @c-border-light;
border-radius: 16px;
background-color: inherit;

Expand All @@ -22,12 +22,16 @@
}
}

&-action-btn {
margin-bottom: 0;
}

&-actions {
position: absolute;
right: 0;
bottom: 0;
display: flex;
height: 32px;
padding: var(--bui-spacing-md, 9px);
align-items: center;
justify-content: flex-end;

Expand Down Expand Up @@ -62,15 +66,17 @@

&-demo {
position: relative;
border-radius: 8px;
padding: 40px 24px 82px;
border-radius: var(--bui-shape-radius-card, 9px);
padding: 12px 12px 42px;
border: 1px solid @c-border;
@{dark-selector} & {
border-color: @c-border-dark;
}

@media @mobile {
padding: 40px 8px 82px;
margin: 24px -12px 0;
border-radius: 0;
border-width: 1px 0;
}

> iframe {
Expand All @@ -91,10 +97,6 @@
display: block;
height: 24px;
background-color: @c-border-light;

@{dark-selector} & {
// background-color: @c-border-less-dark;
}
}

&::after {
Expand Down Expand Up @@ -124,16 +126,6 @@
}
}

&-meta {
// margin-top: 24px;

// border-top: 1px solid @c-border-light;

// @{dark-selector} & {
// border-top-color: @c-border-less-dark;
// }
}

&-desc {
position: relative;

Expand Down
36 changes: 23 additions & 13 deletions .dumi/theme/builtins/Previewer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import classnames from 'classnames';
import { IPreviewerProps, useLocation, useIntl, openCodeSandbox,
openStackBlitz, getSketchJSON } from 'dumi';
import { ReactComponent as IconCheck } from '@ant-design/icons-svg/inline-svg/outlined/check.svg';
import clsx from 'clsx';
import {
IPreviewerProps,
useLocation,
useIntl,
openCodeSandbox,
openStackBlitz,
getSketchJSON,
} from 'dumi';
import { ReactComponent as IconCheck } from '@ant-design/icons-svg/inline-svg/outlined/check.svg';
import { ReactComponent as IconCodeSandbox } from '@ant-design/icons-svg/inline-svg/outlined/code-sandbox.svg';
import { ReactComponent as IconSketch } from '@ant-design/icons-svg/inline-svg/outlined/sketch.svg';
import { ReactComponent as IconStackBlitz } from '@ant-design/icons-svg/inline-svg/outlined/thunderbolt.svg';
Expand Down Expand Up @@ -47,7 +53,7 @@ const Previewer: FC<IPreviewerProps> = (props) => {
return (
<div
id={props.asset.id}
className={classnames('dumi-default-previewer', props.className)}
className={clsx('dumi-default-previewer', props.className)}
style={props.style}
data-debug={props.debug}
data-active={hash === link || undefined}
Expand Down Expand Up @@ -78,9 +84,9 @@ const Previewer: FC<IPreviewerProps> = (props) => {
className="dumi-default-previewer-action-btn qr-icon"
type="button"
>
<IconQrCode style={{ fontSize: '16px' }}/>
<QRCode value={props.demoUrl} size={96} />
</button>
<IconQrCode style={{ fontSize: '16px' }} />
<QRCode value={props.demoUrl} size={96} />
</button>
}
{!props.disabledActions?.includes('CSB') && (
<button
Expand All @@ -91,7 +97,7 @@ const Previewer: FC<IPreviewerProps> = (props) => {
})}
onClick={() => openCodeSandbox(props)}
>
<IconCodeSandbox style={{ fontSize: '16px' }}/>
<IconCodeSandbox style={{ fontSize: '16px' }} />
</button>
)}
{!props.disabledActions?.includes('STACKBLITZ') && (
Expand Down Expand Up @@ -149,10 +155,14 @@ const Previewer: FC<IPreviewerProps> = (props) => {
{intl.formatMessage({ id: 'previewer.actions.sketch.group' })}
</option>
<option value="symbol">
{intl.formatMessage({ id: 'previewer.actions.sketch.symbol' })}
{intl.formatMessage({
id: 'previewer.actions.sketch.symbol',
})}
</option>
<option value="-" disabled>
{intl.formatMessage({ id: 'previewer.actions.sketch.divider' })}
{intl.formatMessage({
id: 'previewer.actions.sketch.divider',
})}
</option>
<option value="guide">
{intl.formatMessage({ id: 'previewer.actions.sketch.guide' })}
Expand All @@ -174,7 +184,7 @@ const Previewer: FC<IPreviewerProps> = (props) => {
<IconExternalLink />
</a>
)}
{props.extra}
{props.extra}
<PreviewerActionsExtra {...props} />
{!props.forceShowCode && (
<button
Expand Down Expand Up @@ -208,7 +218,7 @@ const Previewer: FC<IPreviewerProps> = (props) => {
</div>
)}
<PreviewerActions
{...{...props, showCode}}
{...{ ...props, showCode }}
demoContainer={
props.iframe
? (demoContainer.current?.firstElementChild as HTMLIFrameElement)
Expand Down
Loading
Loading