Skip to content

Commit 03c4183

Browse files
committed
Migrate pycon styleguide into the monorepo
1 parent a431203 commit 03c4183

267 files changed

Lines changed: 34546 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ repos:
2424
hooks:
2525
- id: biome-check
2626
additional_dependencies: ["@biomejs/biome@1.9.4"]
27+
- id: biome-format
28+
additional_dependencies: ["@biomejs/biome@1.9.4"]
2729
- repo: https://github.com/pre-commit/pre-commit-hooks
2830
rev: v4.3.0
2931
hooks:

frontend-styleguide/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Python Italia's component library for PyCon Italia (and related events)
2+
3+
We use [Storybook](https://storybook.js.org/) to generate a UI component style guide that you can use on the Python Italia websites.
4+
5+
## Getting Started
6+
7+
```shell
8+
pnpm install
9+
10+
pnpm storybook
11+
```
12+
13+
Open [http://localhost:6006](http://localhost:6006) with your browser to see the result.

frontend-styleguide/biome.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true,
10+
"correctness": {
11+
"useExhaustiveDependencies": "off"
12+
},
13+
"style": {
14+
"noNonNullAssertion": "off"
15+
},
16+
"suspicious": {
17+
"noExplicitAny": "off",
18+
"noArrayIndexKey": "off"
19+
},
20+
"a11y": {
21+
"useKeyWithClickEvents": "off"
22+
},
23+
"complexity": {
24+
"noForEach": "off"
25+
},
26+
"security": {
27+
"noDangerouslySetInnerHtml": "off"
28+
}
29+
}
30+
},
31+
"formatter": {
32+
"enabled": true,
33+
"indentStyle": "space"
34+
},
35+
"files": {
36+
"ignore": [
37+
"**/lodash-is-equal.ts",
38+
".cache/",
39+
".docz/",
40+
"public/",
41+
"src/generated",
42+
"_schema.json",
43+
"package.json",
44+
"src/types.tsx"
45+
]
46+
},
47+
"javascript": {
48+
"jsxRuntime": "reactClassic"
49+
}
50+
}
108 KB
Binary file not shown.
31.8 KB
Binary file not shown.
37.2 KB
Binary file not shown.
225 KB
Binary file not shown.

frontend-styleguide/package.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"name": "@python-italia/pycon-styleguide",
3+
"version": "0.1.210",
4+
"main": "dist/index.js",
5+
"module": "dist/index.esm.js",
6+
"types": "dist/index.d.ts",
7+
"exports": {
8+
".": "./dist/index.js",
9+
"./style": "./dist/index.css",
10+
"./custom-style": "./dist/custom-style.css",
11+
"./config-parts": "./dist/config-parts.js",
12+
"./icons": "./dist/icons/index.js",
13+
"./illustrations": "./dist/illustrations/index.js"
14+
},
15+
"scripts": {
16+
"test": "jest",
17+
"test:watch": "jest --watch",
18+
"storybook": "start-storybook -p 6006",
19+
"storybook:export": "build-storybook",
20+
"build": "rollup -c",
21+
"build:watch": "rollup -c -w",
22+
"prepublishOnly": "rm -rf dist/ && pnpm run build"
23+
},
24+
"peerDependencies": {
25+
"clsx": "^1.1.1",
26+
"date-fns": "^2.28.0",
27+
"react": ">=16.8.0",
28+
"react-dom": ">=16.8.0",
29+
"react-use": "^17.3.2"
30+
},
31+
"devDependencies": {
32+
"@babel/core": "^7.24.5",
33+
"@rollup/plugin-commonjs": "^21.1.0",
34+
"@rollup/plugin-node-resolve": "^13.3.0",
35+
"@storybook/addon-essentials": "^6.5.16",
36+
"@storybook/addon-postcss": "^2.0.0",
37+
"@storybook/react": "^6.5.16",
38+
"@tailwindcss/typography": "^0.5.13",
39+
"@testing-library/jest-dom": "^5.17.0",
40+
"@testing-library/react": "^12.1.5",
41+
"@types/bluebird": "^3.5.42",
42+
"@types/jest": "^27.5.2",
43+
"@types/node": "^20.12.11",
44+
"@types/react": "^17.0.80",
45+
"@types/react-dom": "^17.0.25",
46+
"autoprefixer": "^10.4.19",
47+
"babel-loader": "^8.3.0",
48+
"babel-preset-react-app": "^10.0.1",
49+
"identity-obj-proxy": "^3.0.0",
50+
"jest": "^27.5.1",
51+
"postcss": "^8.4.38",
52+
"prettier": "^2.8.8",
53+
"prop-types": "^15.8.1",
54+
"react": "^18.3.1",
55+
"react-dom": "^18.3.1",
56+
"rollup": "^2.79.1",
57+
"rollup-plugin-styles": "^4.0.0",
58+
"rollup-plugin-terser": "^7.0.2",
59+
"rollup-plugin-typescript2": "^0.34.1",
60+
"tailwindcss": "^3.4.3",
61+
"tailwindcss-blend-mode": "^1.0.0",
62+
"ts-jest": "^27.1.5",
63+
"ts-toolbelt": "^9.6.0",
64+
"tslib": "^2.6.2",
65+
"typescript": "^4.9.5",
66+
"webpack": "^5.91.0"
67+
},
68+
"dependencies": {
69+
"clsx": "^1.2.1",
70+
"date-fns": "^2.30.0",
71+
"framer-motion": "^11.1.9",
72+
"react-intl": "^6.6.6",
73+
"react-text-transition": "^1.3.0",
74+
"react-use": "^17.5.0"
75+
}
76+
}

0 commit comments

Comments
 (0)