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

Design React Kit - Next version based on Bootstrap Italia 2 #885

Closed
wants to merge 96 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
8666f2a
upgrade bs-italia 2.0.3
sabato-galasso Aug 25, 2022
67f3aa0
migrate to webpack 5, upgrade packages, upgrade to bs5-italia-2.0.3
sabato-galasso Aug 30, 2022
eb5bc71
changed screen reader class "sr-only" in "visually-hidden" for all co…
sabato-galasso Sep 2, 2022
22437fc
upgrade bs-italia 2.0.3
sabato-galasso Aug 25, 2022
9962897
migrate to webpack 5, upgrade packages, upgrade to bs5-italia-2.0.3
sabato-galasso Aug 30, 2022
f28233b
changed screen reader class "sr-only" in "visually-hidden" for all co…
sabato-galasso Sep 2, 2022
9303e44
Merge branch 'next' of https://github.com/italia/design-react-kit int…
sabato-galasso Nov 7, 2022
d837bb8
Rebased next by master and fixed incorrect imports
sabato-galasso Nov 8, 2022
a1cd640
fixed lint errors
sabato-galasso Nov 9, 2022
33f8ad5
added missing title in svg ItGoogle
sabato-galasso Nov 9, 2022
2584d0c
regenerate react svg component and fixed test
sabato-galasso Nov 9, 2022
651a3d6
fix compilation error
alenap93 Jan 3, 2023
a80bbed
Merge branch 'master' into next
sabato-galasso Jan 4, 2023
fcf8e72
Merge branch 'italia:next' into next
alenap93 Jan 6, 2023
a37a5b1
upgrade package
alenap93 Jan 7, 2023
bef8d07
fix test
alenap93 Jan 8, 2023
2c611a4
porting to bs-it 2
alenap93 Jan 8, 2023
9718cb2
fix `no such directory` storybook build
sabato-galasso Jan 9, 2023
f7909f5
chora: add migration guide
alenap93 Jan 9, 2023
6ab6513
Merge branch 'next' into next
alenap93 Jan 9, 2023
a3688a7
Merge branch 'next' of https://github.com/alenap93/design-react-kit i…
alenap93 Jan 9, 2023
515e93e
revert upgrade made with latest commits of fork and add update bootst…
alenap93 Jan 9, 2023
8153018
add bootstrap-italia as dep
alenap93 Jan 9, 2023
58b9c0e
Merge pull request #915 from alenap93/next
sabato-galasso Jan 9, 2023
720a35c
update Storybook to 6.5.15 and resolved deprecations warning DocGen
sabato-galasso Jan 10, 2023
7dbc5d6
resolved deprecations warning react-docgen-typescript
sabato-galasso Jan 10, 2023
df6f796
Merge branch '918-chore-upgrade-to-latest-storybook' of github.com:it…
sabato-galasso Jan 15, 2023
38decdd
resolve unformatted files
sabato-galasso Jan 15, 2023
89c575d
fixed minor deprecation warning in @rollup/plugin-replace
sabato-galasso Jan 23, 2023
4d0b620
revert commit 89c575dd7cb5fd7da9e697dc9f0ebbb314bc4c2a
sabato-galasso Jan 23, 2023
cb484b9
Merge pull request #920 from italia/918-chore-upgrade-to-latest-story…
sabato-galasso Jan 23, 2023
c57252b
changed classes validation input fields
sabato-galasso Feb 7, 2023
cef93fa
feat: accordion component
sabato-galasso Feb 7, 2023
d05a7b4
add documentation for InputOra
astagi Feb 7, 2023
6edcfc7
feat: add custom props for classes in AccordionBody
sabato-galasso Feb 7, 2023
8f8ab7b
fix: add attribute type="button" if html tag is a button
sabato-galasso Feb 8, 2023
fc9b402
fix: logic for added error class
sabato-galasso Feb 8, 2023
6fdcb87
Update stories/Section/Section.stories.mdx
sabato-galasso Feb 13, 2023
f4e0029
added missing module 'babel-plugin-dynamic-import-node/utils'
sabato-galasso Feb 21, 2023
9ec2c51
updated @babel/core to ^7.21.0
sabato-galasso Feb 24, 2023
593774d
Merge pull request #943 from italia/942-bug-error-cannot-find-module-…
sabato-galasso Feb 24, 2023
e5fcfed
added babel-plugin-dynamic-import-node
sabato-galasso Feb 27, 2023
65003d3
Added documentations in MDX format and changed element .steppers-inde…
sabato-galasso Feb 28, 2023
2e72d4b
update documentation and removed duplicate accessibility tag (#941)
sabato-galasso Feb 28, 2023
009e35e
fix: missing className for callout component
sabato-galasso Mar 16, 2023
c5bb392
fix: remove duplicate close button in chips
sabato-galasso Mar 21, 2023
449381c
chore: add action for auto release
astagi Mar 22, 2023
c2cf738
5.0.0-0
astagi Mar 22, 2023
a27a50c
Fix accordion's arrow orientation (#953)
federico-ntr Apr 21, 2023
5ac9910
fix: full responsive right action button in slim header breaking into…
federico-ntr May 5, 2023
a48c6e7
fix: updated Slim header instructions docs (#958)
federico-ntr May 5, 2023
3ff2d00
954 back to top (#960)
federico-ntr May 30, 2023
844f084
Update Alert component (#962)
federico-ntr Jun 1, 2023
8c9d834
Update Callout (#961)
federico-ntr Jun 1, 2023
293815a
docs: add docs for mixed button variant (#966)
federico-ntr Jun 7, 2023
8b4360b
docs: fix click on radios always controlling first story (#965)
federico-ntr Jun 7, 2023
f72d0ed
Update Card component (#964)
federico-ntr Jun 8, 2023
92a4d8a
Update Breadcrumbs to be BI 2.x compliant (#968)
federico-ntr Jun 8, 2023
5a97484
docs: translate and update docs (adapted from BI) (#969)
federico-ntr Jul 10, 2023
1c8e5a7
feat: upgrade bsi
astagi Aug 8, 2023
82571c4
5.0.0-1
astagi Aug 8, 2023
f447e33
chore: add new button statuses
astagi Aug 30, 2023
7f451b8
Add state per la corretta visualizzazione input (#974)
Virtute90 Oct 5, 2023
8edd804
fix: set default value for text prop in input
tensor5 Dec 4, 2023
5124f2c
feat: rework select to use reactstrap implementation
federico-ntr Dec 4, 2023
bf2ba3d
feat: autocomplete component
sabato-galasso Dec 4, 2023
53278bd
chore(deps): upgrade bsi
astagi Dec 4, 2023
622aef9
feat: mixed button
sabato-galasso Dec 4, 2023
13df0dd
docs: update button
sabato-galasso Dec 4, 2023
b3c0540
chore: update contributors
astagi Dec 4, 2023
6c95755
fix: autocomplete style
sabato-galasso Dec 4, 2023
1c8b68b
chore: linting
astagi Dec 4, 2023
4a66ade
5.0.0-2
astagi Dec 4, 2023
97f908c
fix: use div for form validation
astagi Dec 6, 2023
2a5a1f8
feat: separate validation and info texts
astagi Dec 6, 2023
d9a3313
feat: remove time input and use standar inputs
astagi Dec 6, 2023
79bacae
chore(deps): upgrade bootstrap italia
astagi Dec 6, 2023
49c2de0
fix: correct label for date and time inputs
astagi Dec 6, 2023
79d01fc
fix: active label by type
astagi Dec 6, 2023
5555fb7
chore(deps): update yarn lock
astagi Dec 6, 2023
ce1bc42
chore: add format-code command
astagi Dec 6, 2023
227f064
5.0.0-3
astagi Dec 6, 2023
316bc45
chore: remove comuni templates as outdated
astagi Dec 6, 2023
32982a1
feat: remove collapse component
astagi Dec 6, 2023
20499a0
fix: badge examples
astagi Dec 6, 2023
02ded3d
fix: skip links
astagi Dec 6, 2023
593dac7
feat: remove cookiebar (not planned)
astagi Dec 6, 2023
a1536e6
fix: update icons
astagi Dec 6, 2023
70529bd
fix: icons
astagi Dec 6, 2023
33ffa11
5.0.0-4
astagi Dec 6, 2023
eb87e64
fix: restore collapse
astagi Dec 7, 2023
c10f781
feat: add go back component
astagi Dec 7, 2023
8f5c6b6
fix: go back icon margins
astagi Dec 7, 2023
348bb62
5.0.0-5
astagi Dec 7, 2023
2bb0110
fix: export collapse component
astagi Dec 7, 2023
d59741c
5.0.0-6
astagi Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 8 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
version: 2

aliases:
- &working_directory
~/repo
- &working_directory ~/repo

- &restore_cache
keys:
- npm-dependencies-v4-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- npm-dependencies-v4-
- npm-dependencies-v4-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- npm-dependencies-v4-

- &npm_install
name: Install Packages
Expand Down Expand Up @@ -68,7 +67,6 @@ jobs:
paths:
- dist


check-gatsby-ssr:
<<: *defaults

Expand All @@ -87,8 +85,8 @@ jobs:
- run:
name: Bind global package folder to local user
command: |
mkdir ~/.npm-packages
npm config set prefix ~/.npm-packages
mkdir ~/.npm-packages
npm config set prefix ~/.npm-packages
- run:
name: Link the toolkit
command: yarn link
Expand Down Expand Up @@ -120,7 +118,6 @@ jobs:
yarn storybook:build
yarn storybook:deploy


npm-publish:
<<: *defaults

Expand Down Expand Up @@ -151,8 +148,8 @@ workflows:
filters:
branches:
ignore:
- gh-pages
- next
- gh-pages
- next
tags:
only: /.*/

Expand Down
26 changes: 11 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
module.exports = {
"extends": [
"react-app",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
],
"overrides": [
{
"files": ['*.mdx'],
"extends": 'plugin:mdx/recommended',
"settings": {
"mdx/code-blocks": false,
extends: ['react-app', 'prettier/@typescript-eslint', 'plugin:prettier/recommended'],
overrides: [
{
files: ['*.mdx'],
extends: 'plugin:mdx/recommended',
settings: {
'mdx/code-blocks': false
}
}
],
"settings": {
"react": {
"version": "detect"
settings: {
react: {
version: 'detect'
}
}
}
};
11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
title: '[BUG]'
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,9 +24,10 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Other Required Information (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE]"
title: '[FEATURE]'
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
8 changes: 5 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
Fixes #

#### PR Checklist

<!-- To Mark a Checklist box, put "x" inside the square brackets. For Example - [ ] becomes [x] -->

- [ ] My branch is up-to-date with the Upstream `master` branch.
- [ ] The unit tests pass locally with my changes (if applicable).
- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable).
- [ ] I have added necessary documentation (if appropriate).

#### Short description of what this resolves:
<!-- Please add a short description of what this PR resolves to be clear for the community. -->

<!-- Please add a short description of what this PR resolves to be clear for the community. -->

#### Changes proposed in this Pull Request:
<!-- You can use a few bullet points to describe some implementation changes proposed. For Example - feat: adding navbar component -->
-

## <!-- You can use a few bullet points to describe some implementation changes proposed. For Example - feat: adding navbar component -->
2 changes: 1 addition & 1 deletion .github/workflows/check-tree-shakeability.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Check tree-shakeability
on: [ pull_request ]
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
fetch-depth: 0
- name: Setup Node.js with Yarn cache
uses: actions/setup-node@v2
with:
Expand All @@ -21,12 +21,12 @@ jobs:

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Publish to Chromatic
uses: chromaui/action@v1

with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
skip: 'dependabot/**'
skip: 'dependabot/**'
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Lint, Test & Coverage
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
coverage:
runs-on: ubuntu-latest
concurrency: ci-test-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js with Yarn cache
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- uses: actions/checkout@v2
- name: Setup Node.js with Yarn cache
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test:ci
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test:ci

- name: Upload coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
26 changes: 26 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Generate new release
on:
push:
tags:
- 'v5*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: yarn
- run: yarn build
- name: Publish package to NPM
run: yarn publish --tag unstable
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"trailingComma": "none"
"trailingComma": "none",
"printWidth": 120
}
40 changes: 21 additions & 19 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
const CircularDependencyPlugin = require('circular-dependency-plugin')
const CircularDependencyPlugin = require('circular-dependency-plugin');

module.exports = {
core: {
builder: 'webpack5'
},
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx|mdx)'],
addons: [
'@storybook/addon-postcss',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-a11y'
],
reactOptions: { legacyRootApi: true },
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
typescript: {
check: true, // type-check stories during Storybook build
// allow react-select types to be imported for docgen
// allow also explicit types from other modules within the repo
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => {
if(prop.parent){
return /src/.test(prop.parent.fileName) || (/node_modules/.test(prop.parent.fileName) && /react-select/.test(prop.parent.fileName));
}
return true;
compilerOptions: {
allowSyntheticDefaultImports: false,
esModuleInterop: false
}
},
reactDocgen: "react-docgen-typescript",
}
},
webpackFinal: async (config, { configType }) => {
const assetRule = config.module.rules.find(({ test }) => test && test.test(".svg"));
const assetRule = config.module.rules.find(({ test }) => test && test.test('.svg'));
// exclude svg from the default storybook file-loader
assetRule.exclude = /\.svg$/;

// add svgr loader to handle svgs
config.module.rules.push({
test: /\.svg$/,
use: ['url-loader'],
use: ['url-loader']
});

config.plugins.push(new CircularDependencyPlugin({
// exclude detection of files based on a RegExp
exclude: /node_modules/,
// add errors to webpack instead of warnings
failOnError: true,
}));
config.plugins.push(
new CircularDependencyPlugin({
// exclude detection of files based on a RegExp
exclude: /node_modules/,
// add errors to webpack instead of warnings
failOnError: true
})
);

return config;
},
staticDirs: ['../static', { from: '../assets', to: '/' }]
};
Loading
Loading