Skip to content

Commit 577cef8

Browse files
committed
initial commit
0 parents  commit 577cef8

33 files changed

+24223
-0
lines changed

.github/workflows/pages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build and Publish storybook to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: bitovi/[email protected]
12+
with:
13+
path: storybook-static

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
storybook-static

.storybook/main.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/** @type { import('@storybook/react-vite').StorybookConfig } */
2+
const config = {
3+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
4+
5+
addons: [
6+
"@storybook/addon-onboarding",
7+
"@storybook/addon-links",
8+
"@storybook/addon-essentials",
9+
"@chromatic-com/storybook",
10+
"@storybook/addon-interactions",
11+
"@storybook/addon-mdx-gfm"
12+
],
13+
14+
framework: {
15+
name: "@storybook/react-vite",
16+
options: {},
17+
},
18+
19+
docs: {},
20+
21+
typescript: {
22+
reactDocgen: "react-docgen-typescript"
23+
}
24+
};
25+
export default config;

.storybook/preview.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type { import('@storybook/react').Preview } */
2+
const preview = {
3+
parameters: {
4+
controls: {
5+
matchers: {
6+
color: /(background|color)$/i,
7+
date: /Date$/i,
8+
},
9+
},
10+
},
11+
12+
tags: ["autodocs"]
13+
};
14+
15+
export default preview;

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 liu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Fluent UI React Components
2+
3+
([中文](README.zh-cn.md)/**English**)
4+
5+
A React component library styled with Fluent UI. Its styles and documentation are referenced from [microsoft/fluentui](react.fluentui.dev) and adapted for the features of [LCUI](https://gitee.com/lcui-dev/LCUI) and its development tools, making it suitable for LCUI applications.
6+
7+
## Installation
8+
9+
Download the code repository and copy the component directory from the `src` directory to your project directory. Then, use the `import` statement to include the components in your TSX source code.
10+
11+
For example:
12+
13+
```shell
14+
copy fluentui-react/src/button path/to/your/project/ui/components/
15+
```
16+
17+
## Roadmap
18+
19+
- [x] Button
20+
- [ ] Dialog
21+
- [ ] Checkbox
22+
- [ ] RadioGroup
23+
- [ ] ProgressBar
24+
- [ ] Rating
25+
- [ ] Spinner
26+
- [ ] Input
27+
- ...
28+
29+
## License
30+
31+
[MIT](./LICENSE)

README.zh-CN..md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Fluent UI React Components
2+
3+
(**中文**/[English](README.md))
4+
5+
Fluent UI 风格的 React 组件库,它的样式和文档都参考自 [microsoft/fluentui](react.fluentui.dev),且针对 [LCUI](https://gitee.com/lcui-dev/LCUI) 及其开发工具的特性做了适配,适用于 LCUI 应用程序。
6+
7+
## 安装
8+
9+
下载代码库,复制 src 目录中的组件目录到你的项目目录内,之后在你的组件 tsx 源码中使用 import 语句引入组件。
10+
11+
例如:
12+
13+
```shell
14+
copy fluentui-react/src/button path/to/your/project/ui/components/
15+
```
16+
17+
## 路线图
18+
19+
- [x] Button
20+
- [ ] Dialog
21+
- [ ] Checkbox
22+
- [ ] RadioGroup
23+
- [ ] ProgressBar
24+
- [ ] Rating
25+
- [ ] Spinner
26+
- [ ] Input
27+
- ...
28+
29+
## 许可
30+
31+
[MIT](./LICENSE)

0 commit comments

Comments
 (0)