Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump ws from 5.2.2 to 5.2.4 #248

Closed
wants to merge 140 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
a028095
build(deps): Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 12, 2021
27d1fb6
fix: Click the selectAll button again to deselect all if there are un…
fuchunlan Sep 1, 2021
3ead64d
upgrade: Add notification icons
xuliwenwenwen Sep 14, 2021
5c46894
Merge pull request #80 from xuliwenwenwen/update/Icon
harrisonliu5 Sep 17, 2021
19aef31
Merge pull request #77 from fuchunlan/tr-checkbox
harrisonliu5 Sep 17, 2021
18dc751
feat: Support select custom dropdown content
xuliwenwenwen Sep 18, 2021
c458f8c
build(deps): Bump tmpl from 1.0.4 to 1.0.5
dependabot[bot] Sep 21, 2021
26b97ca
Merge pull request #83 from xuliwenwenwen/feat/customSelectDorpdownCo…
harrisonliu5 Sep 22, 2021
17b24e1
fix: IsEmpty cannot determine bool and num
fuchunlan Oct 14, 2021
7a45986
Merge branch 'master' of https://github.com/kubesphere/kube-design
fuchunlan Oct 14, 2021
733adb3
Merge pull request #84 from fuchunlan/master
harrisonliu5 Oct 14, 2021
907eb01
upgrade: Add android icon
xuliwenwenwen Oct 26, 2021
b5d2f1a
Merge pull request #86 from xuliwenwenwen/upgrade/icons
harrisonliu5 Oct 26, 2021
0f54ac8
Merge pull request #82 from kubesphere/dependabot/npm_and_yarn/tmpl-1…
harrisonliu5 Oct 26, 2021
8933418
Merge pull request #76 from kubesphere/dependabot/npm_and_yarn/path-p…
harrisonliu5 Oct 26, 2021
a92c41d
feat: Add icon
xuliwenwenwen Oct 27, 2021
2c7ffc7
Merge pull request #87 from xuliwenwenwen/upgrade/icons
harrisonliu5 Oct 27, 2021
11c3784
feat: Add icons
xuliwenwenwen Nov 1, 2021
aea21e3
Merge pull request #89 from xuliwenwenwen/feat/icons
harrisonliu5 Nov 1, 2021
7228a18
fix: Fix the color of certification icon
harrisonliu5 Nov 5, 2021
cde043b
Merge pull request #90 from harrisonliu5/fix/certification-icon
harrisonliu5 Nov 5, 2021
ffa0077
feat: add delete trigger update of the multi select
Nov 19, 2021
c21c633
Merge pull request #91 from xuliwenwenwen/feat/multiSelectDeleteChange
harrisonliu5 Nov 22, 2021
291c9af
fix: expand table style
xuliwenwenwen Jan 7, 2022
4e32ef6
feat: add spring cloud icon
xuliwenwenwen Jan 7, 2022
42c2a09
Merge pull request #95 from xuliwenwenwen/feat/springcloudIcon
harrisonliu5 Jan 7, 2022
69f7f62
Merge pull request #94 from xuliwenwenwen/fix/expandTable
harrisonliu5 Jan 7, 2022
84c64f6
feat: add mnic icon
xuliwenwenwen Mar 8, 2022
d06cc30
Merge pull request #101 from xuliwenwenwen/feat/icon-mnic
xuliwenwenwen Mar 8, 2022
2d33177
fix: mnic icon
xuliwenwenwen Mar 9, 2022
0778fc9
Merge pull request #102 from xuliwenwenwen/feat/icon-mnic
xuliwenwenwen Mar 9, 2022
13d8178
feat: Add rocket and druration icon
harrisonliu5 Mar 17, 2022
04b2808
Merge pull request #103 from harrisonliu5/master
harrisonliu5 Mar 17, 2022
feeb858
feat: Add code icon
harrisonliu5 Apr 1, 2022
32a95a7
Merge pull request #105 from harrisonliu5/feat/icon
harrisonliu5 Apr 1, 2022
9cdffc2
fix: Fix code icon width
harrisonliu5 Apr 1, 2022
289f1a1
Merge pull request #106 from harrisonliu5/feat/icon
harrisonliu5 Apr 1, 2022
d552aa2
fix: Add onChange function for Form.Group
weili520 Apr 7, 2022
5c789c0
feat: Add allowlist icon
harrisonliu5 Apr 8, 2022
7215b82
Merge pull request #108 from harrisonliu5/feat/icon
harrisonliu5 Apr 8, 2022
11a55e5
Merge pull request #107 from weili520/form_group_onchange
harrisonliu5 Apr 8, 2022
d405f58
fix: Fix teh color of rocket and code icon
harrisonliu5 Jun 2, 2022
a03061e
Merge pull request #110 from harrisonliu5/feat/icon
harrisonliu5 Jun 2, 2022
31f0fc4
feat: add feishu icon
harrisonliu5 Jul 14, 2022
248608c
Merge pull request #113 from harrisonliu5/feat/icon
harrisonliu5 Jul 14, 2022
2b7907b
feat: add gateway-duotone icon
AnuragThePathak Jul 19, 2022
25bcc0d
feat: add eip-duotone icon
AnuragThePathak Jul 19, 2022
acb15d3
fix: Remove the value attribute of the input that the type is the pas…
harrisonliu5 Jul 22, 2022
ec8f03d
Merge pull request #116 from harrisonliu5/fix/password
harrisonliu5 Jul 22, 2022
80491c5
Merge pull request #114 from AnuragThePathak/openelb-icons
harrisonliu5 Jul 25, 2022
43a658d
feat: Add icons for openelb-console
weili520 Jul 26, 2022
1752069
Merge pull request #117 from weili520/openelb_icons
harrisonliu5 Jul 26, 2022
d5c0bbd
fix: Fix the color of feishu icon
harrisonliu5 Jul 28, 2022
1128d0f
Merge pull request #118 from harrisonliu5/feat/icon
harrisonliu5 Jul 28, 2022
551324f
fix: Update validate of Form.Item when this.schema is null
fuchunlan Aug 1, 2022
280a77a
Merge pull request #119 from fuchunlan/form.Item
fuchunlan Aug 1, 2022
40c8e11
feat: Add the loading-duotone and logout-right-duotone icon
harrisonliu5 Aug 12, 2022
0c26a9b
Merge pull request #121 from harrisonliu5/feat/icon
harrisonliu5 Aug 12, 2022
43ea460
feat: add icon-chain-off-duotone and icon-tags-duotone icons
yazhouio Aug 25, 2022
27b35e5
Merge pull request #123 from spike2044/add-icons
harrisonliu5 Aug 26, 2022
2e733db
feat: add event icon
yazhouio Aug 30, 2022
d625d8b
feat: add Introduction
51wangping Sep 1, 2022
29f81aa
feat: add several icons about the observability
harrisonliu5 Sep 5, 2022
544a4d4
Merge pull request #124 from yazhouio/feat/add-event-icon
harrisonliu5 Sep 5, 2022
2d72080
Merge pull request #125 from 51wangping/master
harrisonliu5 Sep 5, 2022
919be41
Merge pull request #126 from harrisonliu5/feat/icon
harrisonliu5 Sep 5, 2022
c61b963
[Component] [table] update table refresh problem
15155031994 Sep 7, 2022
2a6623a
feat: add clock、earth、bell-off、volume-off、switch-button icons
yazhouio Sep 22, 2022
c44c601
Fix: Fixed table not refreshing when column changed
harrisonliu5 Sep 23, 2022
ce1436d
Merge pull request #128 from yazhouio/feat/add-icon
harrisonliu5 Sep 23, 2022
adfccf2
Merge pull request #127 from 15155031994/master
harrisonliu5 Sep 23, 2022
5e5daff
Merge pull request #129 from harrisonliu5/feat/icon
harrisonliu5 Sep 23, 2022
ca25872
Fix: Add critical type in Tag
harrisonliu5 Sep 23, 2022
cae93b6
Merge pull request #130 from harrisonliu5/feat/icon
harrisonliu5 Sep 23, 2022
d27053f
feat: add message-circle-duotone icon
yazhouio Oct 13, 2022
4142f7a
Merge pull request #131 from yazhouio/patch-1
harrisonliu5 Oct 14, 2022
cf69b36
feat: Add some icon
harrisonliu5 Oct 18, 2022
7d2b064
Merge pull request #132 from harrisonliu5/feat/icon
harrisonliu5 Oct 18, 2022
78b3815
feat: Add some icons
harrisonliu5 Oct 20, 2022
81d474f
Merge pull request #133 from harrisonliu5/feat/icon
weili520 Oct 20, 2022
8030246
feat: add Icon storybook
51wangping Oct 24, 2022
16102ed
Merge pull request #134 from 51wangping/master
zheng1 Nov 3, 2022
cc5bd5b
feat: update zyjk icon
yazhouio Nov 9, 2022
721e3be
feat: Add some icons
harrisonliu5 Nov 10, 2022
60207b9
Merge pull request #136 from harrisonliu5/feat/icon
harrisonliu5 Nov 10, 2022
42b6c8c
Merge branch 'master' into patch-2
harrisonliu5 Nov 10, 2022
023c9ad
Merge pull request #135 from yazhouio/patch-2
harrisonliu5 Nov 10, 2022
d58172c
fix: Remove duplicate icons
harrisonliu5 Nov 11, 2022
913b009
Merge pull request #137 from harrisonliu5/feat/icon
harrisonliu5 Nov 11, 2022
7a8af68
fix: Fix the password input is no value
harrisonliu5 Nov 15, 2022
730fca2
Merge pull request #138 from harrisonliu5/feat/icon
harrisonliu5 Nov 15, 2022
40bd7dd
feat: Add icon
Feb 21, 2023
d2bf7a0
fix: Modify release.yml runs-on
Feb 22, 2023
0bc50cc
refactor: Popper use absolute position by default.
chenz24 Feb 28, 2023
74455b1
Merge pull request #147 from kubesphere/tooltip
chenz24 Feb 28, 2023
63fa44b
Merge pull request #146 from miaqiang/master
chenz24 Feb 28, 2023
c14fb1e
feat: add intranet-routers-duotone icon
yazhouio Mar 6, 2023
8e1c8dd
Merge pull request #150 from kubesphere/patch-intranet-routers-duotone
yazhouio Mar 6, 2023
19b86b6
feat: Add some icons
EliChen95 Mar 13, 2023
c64b50e
Merge pull request #152 from EliChen95/v3-master
harrisonliu5 Mar 13, 2023
8e08962
feat: Add icon-forbid-right-duotone
Mar 17, 2023
4ad2b13
Merge pull request #153 from miaqiang/master
harrisonliu5 Mar 17, 2023
cdb86cd
fix: Add icon-forbid-right-duotone
Mar 17, 2023
3a840e9
Merge pull request #154 from miaqiang/master
harrisonliu5 Mar 20, 2023
b1014a9
fix: Add the error type in tag default value
harrisonliu5 Nov 28, 2022
639c2eb
feat: Add time-backup and front-sight icon
harrisonliu5 Mar 24, 2023
285e21e
fix: remove the value attribution in the password input
harrisonliu5 Mar 24, 2023
bd39e53
Merge pull request #139 from harrisonliu5/feat/icon
harrisonliu5 Mar 24, 2023
da3e682
feat: add upload-duotone icon
yazhouio Mar 27, 2023
38ed69f
feat: update icon-upload-duotone
yazhouio Mar 27, 2023
266d66d
fix: Fix edgewize icon svg
Mar 31, 2023
49d7527
Merge pull request #159 from bunnymiao/add-edgewize-icons
harrisonliu5 Mar 31, 2023
4a3342d
fix: Update object-storage-duotone icon
weili520 Apr 19, 2023
deb8272
Merge pull request #155 from kubesphere/patch-1
harrisonliu5 Apr 21, 2023
eedcce7
Merge pull request #160 from weili520/update_icon_svg
harrisonliu5 Apr 21, 2023
ce38f4a
feat: Add new icons about edge wize
Jun 9, 2023
695756a
Merge pull request #163 from bunnymiao/add-edge-icons
harrisonliu5 Jun 9, 2023
68cd8a6
fix: Fix the icon id of turn-dot-duotone
Jun 9, 2023
8e8cd29
Merge pull request #164 from bunnymiao/fix-icon
harrisonliu5 Jun 20, 2023
03d01c9
feat: Add node group icon
weili520 Jun 28, 2023
eeab102
Merge pull request #165 from weili520/add_disk_group_icon
harrisonliu5 Jul 3, 2023
4bdcc89
feat: add icon icon-note-detail-duotone, icon-security-duotone icon-s…
51wangping Jul 20, 2023
ce71c2a
Merge pull request #166 from 51wangping/master
harrisonliu5 Jul 20, 2023
4821ca4
feat: replace popperjs to tippyjs
yazhouio Jul 28, 2023
8277d66
fix: remove console
yazhouio Jul 28, 2023
5f7a41c
Merge pull request #170 from yazhouio/master
harrisonliu5 Jul 28, 2023
2f22167
feat: publish the new npm package
harrisonliu5 Jul 31, 2023
693b4a2
Merge pull request #171 from harrisonliu5/fix/new-package
harrisonliu5 Jul 31, 2023
6bc61f0
Revert "feat: replace popperjs to tippyjs"
yazhouio Jul 31, 2023
8bb7a89
Merge pull request #172 from kubesphere/revert-170-master
harrisonliu5 Jul 31, 2023
f39c73c
fix: hide popper positionFixed
yazhouio Jul 31, 2023
31120f2
Merge pull request #174 from yazhouio/feat/remove-positionFixed
harrisonliu5 Jul 31, 2023
8347544
fix: Fixed popper in wujie
yazhouio Aug 1, 2023
728399a
Merge pull request #175 from yazhouio/fix/dropdown
harrisonliu5 Aug 1, 2023
8a6a136
feat: select support local search (#197)
Leioy Mar 20, 2024
e894318
fix: options didn't update (#198)
Leioy Mar 28, 2024
d9cfeea
fix: Fix compatibility issues with select on Windows. (#199)
yazhouio Mar 29, 2024
dc7541a
feat: Select add showTip to show option title (#229)
miaqiang May 28, 2024
25baea9
fix: Select add showTip support MultiValue ValueRenderer And OptionRe…
miaqiang May 28, 2024
a7b4252
build(deps): bump ws from 5.2.2 to 5.2.4
dependabot[bot] Jun 17, 2024
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 .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
Expand Down
31 changes: 11 additions & 20 deletions .storybook/stories/Components/Select.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ Basic usages for `Select` component.
<p>Normal</p>
<Select name="select" options={options3} value={43200} />
</div>
<div>
<p>ShowTip</p>
<Select name="select" options={options3} showTip={true} />
</div>
<div style={{ marginTop: "10px" }}>
<p>Disabled</p>
<Select name="select" disabled options={options} />
Expand Down Expand Up @@ -93,24 +97,10 @@ Basic usages for `Select` component.
<Preview>
<Story name="select-search">
{() => {
const data = [
{ value: "CentOS", label: "CentOS 5.8 32bit" },
{ value: "Debian", label: "Debian Jessie 8.1 64bit" },
{ value: "Ubuntu", label: "Ubuntu Server 14.04.3 LTS 64bit" },
{ value: "Windows", label: "Windows Server 2003 R2" },
{ value: "CentOS1", label: "CentOS 5.8 32bit" },
{ value: "Debian1", label: "Debian Jessie 8.1 64bit" },
{ value: "Ubuntu1", label: "Ubuntu Server 14.04.3 LTS 64bit" },
{ value: "Windows1", label: "Windows Server 2003 R2" },
{ value: "CentOS2", label: "CentOS 5.8 32bit" },
{ value: "Debian2", label: "Debian Jessie 8.1 64bit" },
{ value: "Ubuntu2", label: "Ubuntu Server 14.04.3 LTS 64bit" },
{ value: "Windows2", label: "Windows Server 2003 R2" },
{ value: "CentOS3", label: "CentOS 5.8 32bit" },
{ value: "Debian3", label: "Debian Jessie 8.1 64bit" },
{ value: "Ubuntu3", label: "Ubuntu Server 14.04.3 LTS 64bit" },
{ value: "Windows3", label: "Windows Server 2003 R2" },
];
const data = Array.from({ length: 60 }, (_, index) => ({
value: index.toString(),
label: `Option ${index + 1}`,
}));
const [pagination, setPagination] = useState({
page: 1,
total: data.length,
Expand Down Expand Up @@ -164,7 +154,7 @@ Basic usages for `Select` component.
},
{ value: "Windows", label: "Windows Server 2003 R2" },
];
return <Select multi name="select-multi" options={options} />;
return <Select multi name="select-multi" options={options} showTip/>;
}}
</Story>
</Preview>
Expand All @@ -189,7 +179,7 @@ Basic usages for `Select` component.
</Story>
</Preview>

### Custom Select Render
### Custom Select Render Add Support ShowTip

<Preview>
<Story name="select-render">
Expand Down Expand Up @@ -229,6 +219,7 @@ Basic usages for `Select` component.
optionRenderer={optionRenderer}
valueRenderer={valueRenderer}
options={options}
showTip={true}
/>
);
}}
Expand Down
54 changes: 54 additions & 0 deletions .storybook/stories/Foundation/IconList.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import Icon from "components/Icon";
import svgSprites from "components/Icon/spirits";
import { InputSearch } from "components/Input";
import React, { useState, useEffect } from "react";

const CardItem = ({ name }) => {
return (
<div className="icon-container">
<div className="icon-content">
<Icon name={name} size="sm" />
</div>
<div>{name}</div>
</div>
);
};

const IconList = () => {
const [icons, setIcons] = useState([]);
const [name, setName] = useState("");

useEffect(() => {
let arr = [];
svgSprites.replace(/id="icon-([\w-]+)"/g, (a, b) => {
arr.push(b);
return "$&";
});
if (!!name) {
arr = arr.filter((icon) => icon === name);
}

setIcons(arr);
}, [svgSprites, name]);

return (
<div>
<div style={{ padding: 20 }}>
<InputSearch
name="search"
placeholder="please input a icon name"
onSearch={(name) => {
setName(name);
}}
/>
</div>
<div className="is-multiline">
{icons.map((name, i) => (
<CardItem key={String(name + i)} name={name} />
))}
</div>
</div>
);
};

export default IconList;
87 changes: 87 additions & 0 deletions .storybook/stories/Foundation/Icons.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks";
import ColorPellete from "./ColorPellete.jsx";
import IconList from "./IconList.jsx";
import Icon from "components/Icon";


<Meta title="Foundation/Iconography" />

## Iconography

Basic usage

Use the `name` attribute to specify the name of the icon

Icon size, including three default sizes of small, medium, and large, set by the size attribute.
You can also customize the icon size by setting the `size` property to a number

<Preview>
<Story name="basic size">
<div>
<div className="icon-container">
<div className="icon-content">
<Icon name="github" size="small" />
</div>
<div>github</div>
</div>
<div className="icon-container">
<div className="icon-content">
<Icon name="github" size="medium" />
</div>
<div>github</div>
</div>
<div className="icon-container">
<div className="icon-content">
<Icon name="github" size="large" />
</div>
<div>github</div>
</div>
<div className="icon-container">
<div className="icon-content">
<Icon name="github" size={48} />
</div>
<div>github</div>
</div>
</div>
</Story>
</Preview>

Use `type` to specify the icon theme color `dark` / `light` / `coloured`

<Preview>
<Story name="basic type">
<div>
<div className="icon-container">
<div className="icon-content">
<Icon name="github" type="dark"size="large" />
</div>
<div>github</div>
</div>
<div className="icon-container" style={{background:'#ccc'}}>
<div className="icon-content">
<Icon name="github" type="light" size="large" />
</div>
<div>github</div>
</div>
<div className="icon-container">
<div className="icon-content">
<Icon name="github" type="coloured" size="large" />
</div>
<div>github</div>
</div>
</div>
</Story>
</Preview>



Icon collection

You can search for the icon you want by entering the name

<IconList title="icon-list"/>

## Props

<Props of={Icon} />

137 changes: 137 additions & 0 deletions .storybook/stories/Intro.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,140 @@ import { Meta } from '@storybook/addon-docs/blocks';
# Kube Design

Kube Design is a set of React component libraries created for KubeSphere console.

## Requirement

- Node.js 12.18+ ([installation with nvm](https://github.com/creationix/nvm#usage))
- Yarn 1.22.4+

## Installation

```shell
yarn add @kube-design/components
```

## Example

```jsx
import React, { Component } from "react";

import { Button } from "@kube-design/components";

class Example extends Component {
render() {
return <Button>Button</Button>;
}
}
```

## Import All Styles

There are two ways to import style files.

### Use css

The css file can be imported directly, so no additional configuration is required in the webpack configuration file.

```jsx
import "@kube-design/components/esm/styles/index.css";
```

### Use scss

If you import the scss file, you may need to compile this part of the scss file in the webpack configuration file.

```jsx
import "@kube-design/components/esm/styles/index.scss";
```

webpack.config.js

```js
// module.rules
[
...otherRules,
{
test: /\.s[ac]ss$/i,
include: root("node_modules"),
use: ["style-loader", "css-loader", "sass-loader"]
}
];
```

## Modular Import

You can use [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) to load the component library on demand.

> When loading on demand, styles will also be imported on demand. You don't need to import all styles, only `main.scss`.

Configure the babel as follows:

```js
// babel.config.js

const getBabelPluginImportConfig = require('@kube-design/components/babel.plugin.import')

...

"plugins": [
['import', getBabelPluginImportConfig()],
]
```

Import the `main.scss` instead of `index.scss`

```jsx
import "@kube-design/components/esm/styles/main.scss";
```

## Localization

Kube Design use `LocaleProvider` component to support localization.

1. Define locales

```js
// locales.js

const locales = {
"en-US": {
HELLO: "Hello!"
},
"zh-CN": {
HELLO: "你好!"
}
};

export default locales;
```

2. Use the LocaleProvider component to wrap the root node

The `locale` method can be assigned to `window` for easy use.

```jsx
import React from "react";
import ReactDOM from "react-dom";
import { LocaleProvider } from "@kube-design/components";
import locales from "./locales";
import App from "./App";

window.locale = LocaleProvider.locale;

const App = () => (
<LocaleProvider locales={locales} currentLocale="en">
<App />
</LocaleProvider>
);

ReactDOM.render(<App />, document.getElementById("root"));
```

3. In the root node App.jsx and its child nodes, use `locale.get('key')` to get the language text

```jsx
import React from "react";
import { Button } from "@kube-design/components";

export default () => <Button>{locale.get("HELLO")}</Button>;
```
Loading
Loading