Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kne-components/components-core",
"version": "0.4.59",
"version": "0.4.60",
"files": [
"build"
],
Expand Down
14 changes: 8 additions & 6 deletions src/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { ajax } from "./preset";
import {ajax} from "./preset";
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

const root = ReactDOM.createRoot(document.getElementById("root"));

root.render(
<React.StrictMode>
<App preset={{ ajax }} />
</React.StrictMode>
);
const themeToken = {
colorPrimary: "#4F185A",
};

root.render(<React.StrictMode>
<App preset={{ajax}} themeToken={themeToken}/>
</React.StrictMode>);
20 changes: 10 additions & 10 deletions src/components/Drawer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
const { default: Drawer, useDrawer, DrawerButton } = _Drawer;
const { Button, Space, Typography, Descriptions, Avatar, Tag } = _antd;
const { useState } = React;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const BasicExample = () => {
const [open, setOpen] = useState(false);
Expand Down Expand Up @@ -74,7 +74,7 @@ const BasicExample = () => {
);
};

render(<Global><BasicExample /></Global>);
render(<PureGlobal><BasicExample /></PureGlobal>);

```

Expand All @@ -86,7 +86,7 @@ render(<Global><BasicExample /></Global>);
const { DrawerButton } = _Drawer;
const { Card, Avatar, Typography, Tag, Space, Divider, Descriptions, Timeline } = _antd;
const { range } = lodash;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const UserDetailExample = () => {
const mockUserData = {
Expand Down Expand Up @@ -210,7 +210,7 @@ const UserDetailExample = () => {
);
};

render(<Global><UserDetailExample /></Global>);
render(<PureGlobal><UserDetailExample /></PureGlobal>);

```

Expand All @@ -221,7 +221,7 @@ render(<Global><UserDetailExample /></Global>);
```jsx
const {useFormDrawer, FormDrawerButton, default: FormInfo} = _FormInfo;
const {Button, Space, Typography, message, Divider} = _antd;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const FormDrawerExample = () => {
const formDrawer = useFormDrawer();
Expand Down Expand Up @@ -310,7 +310,7 @@ const FormDrawerExample = () => {
</Space>);
};

render(<Global><FormDrawerExample/></Global>);
render(<PureGlobal><FormDrawerExample/></PureGlobal>);

```

Expand All @@ -321,7 +321,7 @@ render(<Global><FormDrawerExample/></Global>);
```jsx
const { useDrawer } = _Drawer;
const { Button, Space, Typography, Descriptions, Timeline, Card } = _antd;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const SizesExample = () => {
const drawer = useDrawer();
Expand Down Expand Up @@ -485,7 +485,7 @@ const SizesExample = () => {
);
};

render(<Global><SizesExample /></Global>);
render(<PureGlobal><SizesExample /></PureGlobal>);

```

Expand All @@ -496,7 +496,7 @@ render(<Global><SizesExample /></Global>);
```jsx
const { useDrawer, DrawerButton } = _Drawer;
const { Button, Space, Typography, message, Popconfirm, Tag, Descriptions } = _antd;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const CustomActionsExample = () => {
const drawer = useDrawer();
Expand Down Expand Up @@ -656,7 +656,7 @@ const CustomActionsExample = () => {
);
};

render(<Global><CustomActionsExample /></Global>);
render(<PureGlobal><CustomActionsExample /></PureGlobal>);

```

Expand Down
Empty file.
4 changes: 2 additions & 2 deletions src/components/Drawer/doc/basic.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { default: Drawer, useDrawer, DrawerButton } = _Drawer;
const { Button, Space, Typography, Descriptions, Avatar, Tag } = _antd;
const { useState } = React;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const BasicExample = () => {
const [open, setOpen] = useState(false);
Expand Down Expand Up @@ -49,4 +49,4 @@ const BasicExample = () => {
);
};

render(<Global><BasicExample /></Global>);
render(<PureGlobal><BasicExample /></PureGlobal>);
4 changes: 2 additions & 2 deletions src/components/Drawer/doc/custom-actions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { useDrawer, DrawerButton } = _Drawer;
const { Button, Space, Typography, message, Popconfirm, Tag, Descriptions } = _antd;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const CustomActionsExample = () => {
const drawer = useDrawer();
Expand Down Expand Up @@ -160,4 +160,4 @@ const CustomActionsExample = () => {
);
};

render(<Global><CustomActionsExample /></Global>);
render(<PureGlobal><CustomActionsExample /></PureGlobal>);
4 changes: 2 additions & 2 deletions src/components/Drawer/doc/form-edit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {useFormDrawer, FormDrawerButton, default: FormInfo} = _FormInfo;
const {Button, Space, Typography, message, Divider} = _antd;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const FormDrawerExample = () => {
const formDrawer = useFormDrawer();
Expand Down Expand Up @@ -89,4 +89,4 @@ const FormDrawerExample = () => {
</Space>);
};

render(<Global><FormDrawerExample/></Global>);
render(<PureGlobal><FormDrawerExample/></PureGlobal>);
4 changes: 2 additions & 2 deletions src/components/Drawer/doc/sizes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { useDrawer } = _Drawer;
const { Button, Space, Typography, Descriptions, Timeline, Card } = _antd;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const SizesExample = () => {
const drawer = useDrawer();
Expand Down Expand Up @@ -164,4 +164,4 @@ const SizesExample = () => {
);
};

render(<Global><SizesExample /></Global>);
render(<PureGlobal><SizesExample /></PureGlobal>);
4 changes: 2 additions & 2 deletions src/components/Drawer/doc/user-detail.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { DrawerButton } = _Drawer;
const { Card, Avatar, Typography, Tag, Space, Divider, Descriptions, Timeline } = _antd;
const { range } = lodash;
const {default: Global} = _Global;
const {PureGlobal} = _Global;

const UserDetailExample = () => {
const mockUserData = {
Expand Down Expand Up @@ -125,4 +125,4 @@ const UserDetailExample = () => {
);
};

render(<Global><UserDetailExample /></Global>);
render(<PureGlobal><UserDetailExample /></PureGlobal>);