Commit Graph

38 Commits

Author SHA1 Message Date
lijianan
8a4a83ace7
Merge pull request from ant-design/master
chore: merge master into feature
2024-04-16 10:17:57 +08:00
gin-lsl
72b5263344
site: sync all code type of demos when change one of them ()
* site: sync all code type of demos when change one of them

* site: remove localStorage

---------

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
2024-04-13 23:11:29 +08:00
lijianan
d34ab00717
demo: update wrap="wrap" => wrap () 2024-04-12 12:10:38 +08:00
lijianan
2acb7b217a
site: use css token ()
* site: use css token

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix
2024-04-06 16:11:17 +08:00
叶枫
f9e49af521
feat: deprecated-codesandbox ()
* feat: deprecated-codesandbox

* feat: debug show csb
2024-03-26 10:44:37 +08:00
二货爱吃白萝卜
d41e253f56
docs: re-order open link () 2024-02-22 15:40:14 +08:00
daisy
f7877d0982
docs: code hide button sticky () 2024-02-20 19:44:22 +08:00
二货爱吃白萝卜
7104513a84
docs: Support semantic preview ()
* docs: init

* docs: semantic block

* docs: part of demo

* docs: modal

* docs: slider

* docs: space

* docs: all sementic

* docs: clean up

* chore: fix lint

* chore: clean up

* chore: update script

* test: fix test case

* test: update testcase
2024-02-05 11:45:42 +08:00
Peach
b966162d64
docs: update live demo feature ()
* docs: update live demo feature

* docs: real iframe live demo
2024-01-23 13:30:15 +08:00
Peach
32052bf5d8
docs: update live demo logic with dumi 2.3 beta ()
* docs: update live demo api with dumi 2.3 beta

* docs: lint fix

* refactor: update naming of demo source

* feat: optimize souce code editor style

* chore: update dumi version

* chore: restore dumi overrides

* ci: setup before lint only for ci

* chore: trigger ci re-run

* chore: bump dumi version

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-01-09 22:51:55 +08:00
lijianan
0ea3da719d
site: replace site page <Space /> with <Flex /> () 2024-01-06 18:05:25 +08:00
lijianan
cc5724481c
Merge branch master into master-merge-feature 2023-11-28 07:58:49 +08:00
MadCcc
0e360ed861
chore: bump antd-tools version ()
* chore: bump antd-tools version

* chore: bump
2023-11-27 17:53:05 +08:00
MadCcc
5f1dd427df
feat: css var ()
* feat: css variables theme

* chore: temp

* chore temp

* chore: temp

* chore: temp

* chore: tmp

* chore: temp

* feat: full css variables

* feat: css var

* chore: code clean

* chore: code clean

* chore: bump cssinjs

* test: fix lint

* feat: better key logic

* feat: useStyle add param rootCls for cssVar scope

* chore: fix lint

* chore: code clean

* chore: fix lint

* perf: minimize component token size

* chore: make useId compatible

* chore: code clean

* chore: fix lint

* chore: code clean

* chore: update test case

* feat: genCSSVarRegister

* feat: RPN Calculator

* chore: add test for css var

* chore: code clean

* test: add test for calc

* feat: better calc type

* chore: code clean

* chore: update size limit

* feat: better useCSSVar

* chore: better useCSSVar

* test: add cov

* feat: better calc logic

* test: add test case

* chore: code clean

---------

Signed-off-by: MadCcc <madccc@foxmail.com>
2023-11-06 10:31:51 +08:00
MadCcc
67165a78fc
docs: live demo ()
* docs: live demo

* chore: bump dumi

* chore: fix lint

* chore: fix lint

* chore: update demo

* chore: bump dumi

* docs: enhance live demo

* docs: update text
2023-10-23 22:49:49 +08:00
72fc3b6f3c
chore(site): anchor jump don't work ()
* chore: fix typo error

* chore: fix anchor jump failure

* Revert "chore: fix anchor jump failure"

This reverts commit 9a1127353d.

* chore: fix

* Revert "chore: fix"

This reverts commit 9dc69f1164.

* Revert "site: remove legacy code for hash jump ()"

This reverts commit 72da2678aa.

* chore: remove

* Update .dumi/theme/layouts/DocLayout/index.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update

---------

Signed-off-by: 红 <wxh16144@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-10-10 17:30:46 +08:00
131a17d099
chore: improve demo dependency logic () 2023-10-07 09:45:27 +08:00
afc163
07eb5ba82d
docs: move copy button into code previewer () 2023-09-26 16:41:41 +08:00
afc163
fa5c98311a
docs: fix demo code copy function () 2023-09-11 11:52:36 +08:00
lijianan
fae1fef77d
fix: add role="button" props to div ()
* fix: add role="button" props to div

* fix: fix
2023-08-29 15:04:03 +08:00
lijianan
4d1bac4651
site: add code-hide Button for CodePreviewer ()
* site: add code-hide Button for CodePreviewer

* fix: fix style

* add token

* fix: fix css props

* fix

* fix: fix

* fix: fix

* Update .dumi/theme/builtins/Previewer/CodePreviewer.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-08-28 20:10:40 +08:00
afc163
0295322564
docs: prevent highlight code initially () 2023-08-22 19:00:06 +08:00
afc163
c5cae926ff
docs: improve code previewer style ()
* docs: improve code previewer style

* docs: simplify dom structure
2023-08-07 13:47:28 +08:00
二货爱吃白萝卜
2cdf586291
chore: fix lint ()
* chore: fix lint

* chore: fix lint

* test: fix 16

* fix: lint
2023-07-28 16:17:43 +08:00
afc163
cba1493a83
site: fix a11y issues () 2023-07-25 14:03:26 +08:00
afc163
05f9677df7
site: improve a11y score in ant.design site () 2023-07-24 15:38:49 +08:00
afc163
c831145cf4
site: improve a11y score in ant.design site () 2023-07-21 15:04:42 +08:00
kiner-tang(文辉)
fddd84c0bd
fix(site): solve drawer open delay in safari issue ()
* fix: solve drawer open delay in safari issue

* feat: update comment

* feat: reset debug code

* feat: optimize code

* feat: optimize code
2023-06-09 18:20:53 +08:00
42ff0ea3de
docs: add rc-util to top level in codesandbox ()
* fix: tem  modify rc-util@latest in codesandbox

* fix: tem modify rc-util@:^5.32.0 in codesandbox

* fix: add pkgDep info in dumi local pilugin

* chore: rename

---------

Co-authored-by: 洋 <hetongyang@bytedance.com>
2023-05-27 20:46:28 +08:00
Wuxh
3ad2a34611
Revert "docs: fix debug demo style" ()
* Revert "docs: fix debug demo style ()"

This reverts commit d998c2fabc.

* chore: update
2023-04-11 10:13:58 +08:00
muxin
5b44e577a5
fix: fix demo filPath () 2023-03-27 19:34:14 +08:00
lijianan
39c19b6e4d
site: update codesandbox dependencies version () 2023-03-25 13:58:14 +08:00
MadCcc
a5c0dbba07
docs: make Calendar demo client-only () 2023-03-21 13:00:34 +08:00
MadCcc
ec34bc1874
docs: fix demo badge () 2023-03-02 13:35:10 +08:00
lijianan
8cf4a4cb15
fix: fix tsconfig error in stackblitz ()
* fix: fix tsconfig error in stackblitz & codesandbox

* fix: fix tsconfig error in stackblitz & codesandbox
2023-03-02 11:21:43 +08:00
afc163
986718c81f
docs: fix antd version in codesandbox preview link ()
- Update dependencies to latest versions
- Replace `FormattedMessage` with `useSiteData`
- Add `Badge`
- Update `useLocation` to include `useSiteData`
- Update `versionOptions` to include `pkg.version`
- Update `defaultValue` of `Select` to `pkg.version`
- Update `arrow` prop of `Popover` to include `arrowPointAtCenter`

[.dumi/theme/builtins/Previewer/CodePreviewer.tsx]
- Replace `FormattedMessage` with `useSiteData`
- Update `antd` version in dependencies
- Update `@ant-design/icons` version in dependencies
- Update `react` version in dependencies
- Update `react-dom` version in dependencies
- Update `dayjs` version in dependencies
- Update `react-router-dom` version in dependencies
- Update `react-router` version in dependencies
- Add `Badge.
[.dumi/theme/slots/Header/index.tsx]
- Change import of `useLocation` to include `useSiteData`
- Add `pkg` to `useSiteData`
- Update `versionOptions` to include `pkg.version`
- Update `defaultValue` of `Select` to `pkg.version`
- Update `arrow` prop of `Popover` to include `arrowPointAtCenter`
2023-03-01 13:40:19 +08:00
afc163
0bfdff2086
site: Improve code formatting in Previewer component ()
- Remove unnecessary whitespace in the Demo.tsx file
- Replace `<style>` and `</style>` tags with empty strings in the index.css file
- Move the React import statement to the top of the index.js file

[.dumi/theme/builtins/Previewer/index.tsx]
- Remove unnecessary whitespace in the Demo.tsx file
- Replace `<style>` and `</style>` tags with empty strings in the index.css file
- Move the React import statement to the top of the index.js file
- Remove the unnecessary whitespace in the index.js file
2023-02-20 11:20:37 +08:00
MadCcc
853283b7e4
docs: DatePicker design tab ()
* docs: DatePicker design tab

* docs: add design demo

* docs: add anchor for design demo

* docs: init g6

* docs: behavior map

* test: fix test cov

* docs: behavior map comp

* docs: add map title

* docs: fix ssr

* docs: update demo

* docs: optimize copy ux

* docs: update demo

* chore: code clean
2023-02-20 10:51:18 +08:00