Skip to content

Commit

Permalink
add new components
Browse files Browse the repository at this point in the history
  • Loading branch information
gcor committed Dec 31, 2023
1 parent 92a2575 commit 5598d2f
Show file tree
Hide file tree
Showing 51 changed files with 5,263 additions and 187 deletions.
60 changes: 60 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"extends": [
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"plugin:storybook/recommended"
],
"ignorePatterns": [
"next.config.js",
".storybook/**/*",
"storybook-static/**/*",
"dist/**/*",
"vite.config.ts"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
// TODO: remove this rule
"@typescript-eslint/no-explicit-any": "off",
// TODO: remove this rule
"@typescript-eslint/ban-ts-comment": "off",
// TODO: remove this rule
"jsx-a11y/click-events-have-key-events": "off",
// TODO: remove this rule
"jsx-a11y/no-static-element-interactions": "off",

"no-irregular-whitespace": "off"
// TODO

// "no-restricted-imports": [
// "error",
// {
// "patterns": [
// {
// "group": ["../../"],
// "message": "Relative imports are not allowed."
// }
// ]
// }
// ],

// TODO
// "import/order": [
// "error",
// {
// "groups": [
// "builtin",
// "external",
// "internal",
// "parent",
// "sibling",
// "index"
// ]
// }
// ]
}
}
16 changes: 16 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
<link rel="stylesheet" href="./fonts.css" />
<style>
body {
font-family: "Iset Sans", sans-serif;
color: white;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
-ms-font-feature-settings: "kern" 1;
font-feature-settings: "kern";
}

* {
box-sizing: border-box;
}
</style>
21 changes: 15 additions & 6 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
backgrounds: {
default: 'dark',
values: [
{
name: 'dark',
value: '#141D34',
},
],
},
};
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@ React components for ekaterinburgdev projects

<img src="https://github.com/ekaterinburgdev/ekaterinburg-ui/assets/22644149/0368caab-711d-456a-b707-6e46eafa8bcc" width="388" />

## Installation

```
pnpm i ekb
## Development

1. Install [Node.js](https://nodejs.org/en/download/) and [pnpm](https://www.npmjs.com/package/pnpm#user-content-usage)
Add ekb/fonts.css
```

2. Install dependencies
## Local server

```
pnpm i
pnpm start
```

3. Run local server
## Local linking development

If you want to test this library without tag publishing you can link the package:

```
pnpm start
pnpm build
pnpm link --global
cd OTHER_PROJECT_WITH_THIS_PACKAGE
pnpm link --global ekb
```
61 changes: 38 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
{
"name": "ekb",
"type": "module",
"version": "1.1.5",
"version": "1.2.0-rc.0",
"files": [
"dist"
],
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/ekb.es.js",
"require": "./dist/ekb.umd.js",
"types": "./dist/index.d.ts"
},
"./style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
}
},
"repository": {
"type": "git",
"url": "https://github.com/ekaterinburgdev/ekaterinburg-ui.git"
Expand All @@ -16,15 +31,17 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"autoprefixer": "^10.4.16",
"classnames": "^2.3.2",
"postcss": "^8.4.32",
"postcss-nesting": "^12.0.2",
"framer-motion": "^10.16.16",
"polished": "^4.2.2",
"react": "^18.2.0",
"react-aria": "^3.31.0",
"react-dom": "^18.2.0",
"react-focus-lock": "^2.9.6",
"react-hotkeys-hook": "^4.4.1",
"vite-plugin-svgr": "^3.3.0"
"react-modal-sheet": "^2.2.0",
"react-stately": "^3.29.0",
"styled-components": "^6.1.6"
},
"devDependencies": {
"@babel/core": "^7.23.6",
Expand All @@ -36,31 +53,29 @@
"@storybook/addon-links": "^7.6.6",
"@storybook/react": "^7.6.6",
"@storybook/react-vite": "^7.6.6",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
"babel-plugin-styled-components": "^2.1.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.15",
"postcss": "^8.4.32",
"postcss-nesting": "^12.0.2",
"storybook": "^7.6.6",
"typescript": "^5.3.3",
"vite": "^4.5.1",
"vite-plugin-dts": "^1.7.3"
},
"files": [
"dist"
],
"main": "./dist/ekb.umd.js",
"module": "./dist/ekb.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/ekb.es.js",
"require": "./dist/ekb.umd.js",
"types": "./dist/index.d.ts"
},
"./style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
}
"vite-plugin-dts": "^1.7.3",
"vite-plugin-svgr": "^3.3.0"
}
}
Loading

1 comment on commit 5598d2f

@ekbdev
Copy link

@ekbdev ekbdev commented on 5598d2f Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for ekaterinburg-ui ready!

✅ Preview
https://ekaterinburg-77pfy9pke-ekbdev.vercel.app
https://ekaterinburg-ui-new-components.vercel.app

Built with commit 5598d2f.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.