Skip to content

Commit ad62f9c

Browse files
authored
Merge pull request #10 from 1Byte-Software/develop
Add feature
2 parents 5769b31 + fbcccf6 commit ad62f9c

File tree

301 files changed

+3854
-2653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+3854
-2653
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"Popconfirm",
34
"Sider"
45
]
56
}

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "1byte-react-design",
3-
"version": "0.10.5",
3+
"version": "0.10.31",
44
"main": "dist/index.js",
55
"module": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -13,9 +13,14 @@
1313
"dist"
1414
],
1515
"dependencies": {
16+
"@dnd-kit/core": "^6.3.1",
17+
"@dnd-kit/modifiers": "^9.0.0",
18+
"@dnd-kit/sortable": "^10.0.0",
19+
"@dnd-kit/utilities": "^3.2.2",
1620
"@emotion/react": "^11.13.3",
1721
"@emotion/styled": "^11.13.0",
1822
"antd": "^5.21.2",
23+
"clsx": "^2.1.1",
1924
"dayjs": "^1.11.13",
2025
"polished": "^4.3.1",
2126
"react": "^18.3.1",
@@ -36,6 +41,7 @@
3641
"tsconfig-paths-webpack-plugin": "^4.1.0",
3742
"typescript": "^5.6.2",
3843
"webpack": "^5.95.0",
44+
"webpack-bundle-analyzer": "^4.10.2",
3945
"webpack-cli": "^5.1.4",
4046
"webpack-dev-server": "^5.1.0"
4147
},

src/ConfigProviderDesign.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ConfigProvider, ThemeConfig } from 'antd';
2-
import { PropsWithChildren } from 'react';
2+
import { PropsWithChildren, useContext } from 'react';
33
import { config } from '.';
44

55
interface IConfigProviderDesignProps extends PropsWithChildren {

src/atomics/ConditionalWrapper/index.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/atomics/ConditionalWrapper/types.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/atomics/Flex/Flex.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ConfigProviderDesign } from '../../ConfigProviderDesign';
22
import { FlexStyles } from './styles';
3-
import { IFlexProps } from './types';
3+
import { RdFlexProps } from './types';
44

5-
export const Flex = ({ ...antdProps }: IFlexProps) => {
5+
export const Flex = ({ ...antdProps }: RdFlexProps) => {
66
return (
77
<ConfigProviderDesign>
88
<FlexStyles {...antdProps} />

src/atomics/Flex/types.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1-
import { FlexProps } from 'antd';
1+
import { Flex, GetProps } from 'antd';
2+
import { ComponentToken as FlexComponentTokenAntd } from 'antd/es/flex/style';
23

3-
export interface IFlexProps extends FlexProps {}
4+
//#region Define Ant Design types
5+
type FlexProps = GetProps<typeof Flex>;
6+
//#endregion
7+
8+
//#region Define extended component tokens
9+
type FlexComponentTokenExtend = {};
10+
//#endregion
11+
12+
//#region Define extended types
13+
type FlexPropsExtend = {};
14+
//#endregion
15+
16+
//#region Export types
17+
export type RdFlexProps = FlexProps & FlexPropsExtend;
18+
19+
export type RdFlexComponentToken = FlexComponentTokenAntd & FlexComponentTokenExtend;
20+
//#endregion

src/atomics/TextError/TextError.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/atomics/TextError/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/atomics/TextError/styles.tsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)