Skip to content

Commit

Permalink
feat(IconProvider): support global configuration classPrefix and csp
Browse files Browse the repository at this point in the history
  • Loading branch information
simonguo committed Oct 15, 2024
1 parent 01fb8f6 commit 6fae004
Show file tree
Hide file tree
Showing 43 changed files with 17,841 additions and 34,125 deletions.
3 changes: 3 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"sandboxes": ["new"]
}
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/bin/**
/scripts/**
/build/**
/src/icons/legacy/**
webpack.config.js
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended'
'plugin:prettier/recommended',
'plugin:storybook/recommended'
],
parserOptions: {},
plugins: ['@typescript-eslint', 'react'],
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/publish-docs.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ jspm_packages
.DS_Store

dist
lib
es
cjs
esm
.vscode/
assets
yarn.lock
/meta.json

cypress/videos

*storybook.log
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ src/
postcss.config.js
gulpfile.js
.eslintrc.js
webpack.config.js
14 changes: 14 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../storybook/**/*.mdx', '../storybook/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions'
],
framework: '@storybook/react-vite'
};
export default config;
18 changes: 18 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Preview } from '@storybook/react';

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i
}
},
brand : {
title: 'React Suite',
url: 'https://rsuitejs.com'
}
}
};

export default preview;
14 changes: 7 additions & 7 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
## RSUITE Icons Free License
## React Suite Icons Free License

RSUITE Icons is free, open source, and GPL friendly. You can use it for
React Suite Icons is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.

# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)

In the RSUITE Icon Free download, the CC BY 4.0 license applies to all icons
In the React Suite Icon Free download, the CC BY 4.0 license applies to all icons
packaged as SVG and JS file types.

# Code: MIT License (https://github.com/rsuite/rsuite/blob/master/LICENSE)

In the RSUITE Icon Font Free download, the MIT license applies to all non-font and
In the React Suite Icon Font Free download, the MIT license applies to all non-font and
non-icon files.

# Attribution

Attribution is required by MIT and CC BY licenses. Downloaded RSUITE
Attribution is required by MIT and CC BY licenses. Downloaded React Suite
Icon Free files already contain embedded comments with sufficient
attribution, so you shouldn't need to do anything additional when using these
files normally.

We've kept attribution comments terse, so we ask that you do not actively work
to remove them from files, especially code. They're a great way for folks to
learn about RSUITE Icon Font.
learn about React Suite Icon Font.

# Brand Icons

All brand icons are trademarks of their respective owners. The use of these
trademarks does not indicate endorsement of the trademark holder by RSUITE
trademarks does not indicate endorsement of the trademark holder by React Suite
Icon, nor vice versa. **Please do not use brand logos for any purpose except
to represent the company, product, or service to which they refer.**
36 changes: 27 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
# RSUITE Icons
# React Suite Icons

## Develop
## Document

This library is developing now , if you want run it on you local,please run these command:
https://rsuitejs.com/components/icon/

## Project Development Guide

### Install

```bash
$ npm install
```
## Install dependencies
npm run ci
## Run dev site on your local
npm run dev
## TDD
npm run tdd

### Development

```bash
$ npm npm dev
```

### Build

```bash
$ npm run build
```

### Test

```bash
$ npm run test
```

31 changes: 0 additions & 31 deletions babel.config.js

This file was deleted.

89 changes: 0 additions & 89 deletions bin/generateIconListDocs.js

This file was deleted.

2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
component: {
devServer: {
framework: 'react',
bundler: 'webpack'
bundler: 'vite'
}
}
});
70 changes: 0 additions & 70 deletions docs/Examples.tsx

This file was deleted.

Loading

0 comments on commit 6fae004

Please sign in to comment.