Skip to content

Commit

Permalink
feat: New Component - XProvider (#127)
Browse files Browse the repository at this point in the history
* refactor: use XConfigProvider instead of ConfigProvider.

docs: update all markdown
test: update all test
docs: update changelog

* fix: ci error.

* refactor: rename XConfigProvider -> XProvider

* fix: ComponentMeta use @ant-design/x instead of antd

* fix: component source url.

* fix: edit branchUrl.

* fix: comment out mirror.

* chore: update XProvider demo

* refactor: add useXComponentConfig to instead mergeStyles

* docs: update API and Component Config for XProvider

* refactor: useXComponentConfig

* chore: rename file

* fix: ts lint error

* refactor: defaultXComponentStyleConfig
  • Loading branch information
YumoImer authored Sep 20, 2024
1 parent 4968bde commit 007172a
Show file tree
Hide file tree
Showing 111 changed files with 2,083 additions and 8,841 deletions.
5 changes: 3 additions & 2 deletions .dumi/components/SemanticPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Col, ConfigProvider, Flex, Row, Tag, Typography, theme } from 'antd';
import { XProvider } from '@ant-design/x';
import { Col, Flex, Row, Tag, Typography, theme } from 'antd';
import { createStyles, css } from 'antd-style';
import classnames from 'classnames';
import React from 'react';
Expand Down Expand Up @@ -137,7 +138,7 @@ const SemanticPreview: React.FC<SemanticPreviewProps> = (props) => {
<div className={classnames(styles.container)} ref={containerRef}>
<Row style={{ minHeight: height }}>
<Col span={16} className={classnames(styles.colWrap)}>
<ConfigProvider theme={{ token: { motion: false } }}>{cloneNode}</ConfigProvider>
<XProvider theme={{ token: { motion: false } }}>{cloneNode}</XProvider>
</Col>
<Col span={8}>
<ul className={classnames(styles.listWrap)}>
Expand Down
3 changes: 2 additions & 1 deletion .dumi/hooks/useMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { version } from '@ant-design/x';
import type { MenuProps } from 'antd';
import { Space, Tag, version } from 'antd';
import { Space, Tag } from 'antd';
import { createStyles } from 'antd-style';
import classnames from 'classnames';
import { useFullSidebarData, useSidebarData } from 'dumi';
Expand Down
299 changes: 0 additions & 299 deletions .dumi/pages/index/components/ComponentsList.tsx

This file was deleted.

Loading

0 comments on commit 007172a

Please sign in to comment.