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

Feat accordion #102

Merged
merged 5 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
chore: configs and lint
  • Loading branch information
YaGRRusso committed Dec 8, 2023
commit 420fd33215f92714aef53772db3a658f1c9509c5
8 changes: 5 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"recommendations": ["dbaeumer.vscode-eslint"],
"recommendations": [
"dbaeumer.vscode-eslint",
],
"unwantedRecommendations": [
"esbenp.prettier-vscode",
"editorconfig.editorconfig"
"editorconfig.editorconfig",
]
}
}
11 changes: 2 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
{
"eslint.format.enable": true,
"editor.tabSize": 2,
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"material-icon-theme.folders.associations": {
"tsconfig": "typescript",
"visu": "lib"
},
"material-icon-theme.files.associations": {
"eslint.config.cjs": "eslint"
"source.fixAll.eslint": "explicit"
},
"tailwindCSS.experimental.configFile": "./packages/visu/tailwind.config.ts",
"tailwindCSS.classAttributes": [
Expand Down
34 changes: 22 additions & 12 deletions apps/docs/src/stories/design.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@ Utilização:

Ao adicionar o plugin do Visu será possível utilizar todos os tokens do Design System do Visu no projeto.

### Animation

```typescript
animation: {
flash: 'flash 1000ms infinite alternate',
hide: 'hide 100ms ease-in',
slideIn: 'slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1)',
swipeOut: 'swipeOut 100ms ease-out',
},
```

### BoxShadow

```typescript
Expand Down Expand Up @@ -193,7 +182,7 @@ keyframes: {
from: { opacity: '1' },
to: { opacity: '0' },
},
slideIn: {
swipeIn: {
from: {
transform: 'translateX(calc(100% + 0.5rem))',
},
Expand All @@ -205,6 +194,27 @@ keyframes: {
},
to: { transform: 'translateX(calc(100% + 0.5rem))' },
},
slideDown: {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
slideUp: {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},"
},
```

### Animation

```typescript
animation: {
flash: 'flash 1000ms infinite alternate',
hide: 'hide 100ms ease-in',
swipeIn: 'swipeIn 150ms cubic-bezier(0.16, 1, 0.3, 1)',
swipeOut: 'swipeOut 100ms ease-out',
slideDown: 'slideDown 200ms ease-in',
slideUp: 'slideUp 200ms ease-out',
},
```

Expand Down
21 changes: 5 additions & 16 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@ module.exports = {
es2020: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
'standard',
'plugin:prettier/recommended',
],
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended', 'standard', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
Expand All @@ -21,20 +13,17 @@ module.exports = {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: [
'./packages/visu/tsconfig.json',
'./apps/docs/tsconfig.json',
'./apps/web/tsconfig.json',
],
project: ['./packages/visu/tsconfig.json', './apps/docs/tsconfig.json', './apps/web/tsconfig.json'],
},
plugins: ['unused-imports', 'react', 'jsx-a11y', '@typescript-eslint'],
rules: {
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-imports': 'error',
'no-undef': 'off',
'no-unused-vars': ['warn', { varsIgnorePattern: '_' }],
'prettier/prettier': [
'warn',
{
printWidth: 80,
printWidth: 120,
tabWidth: 2,
singleQuote: true,
trailingComma: 'all',
Expand Down
8 changes: 4 additions & 4 deletions packages/visu/src/theme/theme-plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare const VisuTailwindcssPlugin: {
handler: import("tailwindcss/types/config").PluginCreator;
config?: Partial<import("tailwindcss").Config> | undefined;
};
export default VisuTailwindcssPlugin;
handler: import('tailwindcss/types/config').PluginCreator
config?: Partial<import('tailwindcss').Config> | undefined
}
export default VisuTailwindcssPlugin
7 changes: 1 addition & 6 deletions packages/visu/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import VisuTailwindcssPlugin from './src/theme/theme-plugin'
import type { Config } from 'tailwindcss'

export default {
content: [
'./src/library/**/*.{ts,tsx}',
'./src/App.tsx',
'./src/main.tsx',
'./src/layout/**/*.tsx',
],
content: ['./src/library/**/*.{ts,tsx}', './src/App.tsx', './src/main.tsx', './src/layout/**/*.tsx'],
plugins: [VisuTailwindcssPlugin],
} satisfies Config