design-react-kit 5.0.0-5 → 5.0.0-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # [5.0.0-7](https://github.com/italia/design-react-kit/compare/v5.0.0-6...v5.0.0-7) (2023-12-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * numeric input component ([d4a299c](https://github.com/italia/design-react-kit/commit/d4a299cb43ad138352deab45d552bd33a3be3b19))
7
+
8
+
9
+
package/README.EN.md CHANGED
@@ -1,20 +1,48 @@
1
- # Design React Kit
2
-
3
- ![CircleCI](https://img.shields.io/circleci/build/github/italia/design-react-kit)
4
- [![Join channel #design-devel](https://img.shields.io/badge/Slack%20channel-%23design--devel-blue.svg)](https://developersitalia.slack.com/messages/C7VPAUVB3/)
5
- [![Get an invitation for Slack](https://slack.developers.italia.it/badge.svg)](https://slack.developers.italia.it/)
1
+ <h1 align="center">Design React Kit</h1>
2
+
3
+ <p align="center">
4
+ <img src=".github/react-logo.png" alt="react-logo" width="120px" height="auto"/>
5
+ <br>
6
+ <i>Design React Kit is a toolkit based on Bootstrap Italia
7
+ <br> to build React web application.</i>
8
+ <br>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://italia.github.io/design-react-kit"><strong>italia.github.io/design-react-kit</strong></a>
13
+ <br>
14
+ </p>
15
+
16
+ <p align="center">
17
+ <a href="https://www.npmjs.com/package/design-react-kit"><img src="https://img.shields.io/npm/v/design-react-kit/unstable.svg" alt="NPM"></a>
18
+ <a href="https://github.com/italia/design-react-kit/actions"><img src="https://github.com/italia/design-react-kit/actions/workflows/ci.yml/badge.svg" alt="Build"></a>
19
+ <a href="https://codecov.io/gh/italia/design-react-kit"><img src="https://codecov.io/gh/italia/design-react-kit/branch/main/graph/badge.svg?token=0Ud6YSFi0r" alt="codecov"></a>
20
+ <a href="https://github.com/italia/design-react-kit/blob/main/LICENSE"><img src="https://img.shields.io/github/license/italia/design-react-kit.svg" alt="License"></a>
21
+ <a href="https://github.com/italia/design-react-kit/issues"><img src="https://img.shields.io/github/issues/italia/design-react-kit.svg" alt="GitHub issues"></a>
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="https://developersitalia.slack.com/messages/C04J92F9XM2/">
26
+ <img src="https://img.shields.io/badge/Slack%20channel-%23design--dev--react-blue.svg" alt="Join the #design-system-react channel" />
27
+ </a>
28
+ <a href="https://slack.developers.italia.it/">
29
+ <img src="https://slack.developers.italia.it/badge.svg" alt="Get invited" />
30
+ </a>
31
+ </p>
6
32
 
7
33
  _Read this in other languages: [Italiano](README.md)._
8
34
 
9
- **Important**: this kit has been designed to work with Bootstrap Italia v.1. There's no kit currently available for Bootstrap Italia v.2.
35
+ _⚠️ Warning: this code is still under development and is not ready to be used! We are working on the update to bring the kit to version 5.0.0, comments and contributions from the entire community are more than welcome!_
36
+
37
+ _⚠️ Warning: This kit was designed to work with Bootstrap Italia version 2.x. The kit for version 1.x of Bootstrap Italia has been deprecated and is located on the [4.x] branch (https://github.com/italia/design-react-kit/tree/4.x)._
10
38
 
11
39
  ## Intro
12
40
 
13
- **Design React kit** is a set of React components that implements [Bootstrap Italia](https://italia.github.io/bootstrap-italia/) and [Design UI Kit](https://github.com/italia/design-ui-kit) styling, as [shown on InVision](https://invis.io/TWMUZS6VFP5).
41
+ **Design React kit** is a set of React components that implements [Bootstrap Italia](https://italia.github.io/bootstrap-italia/) and [Design UI Kit](https://github.com/italia/design-ui-kit) styling.
14
42
 
15
43
  Components are showcased with [Storybook](https://storybook.js.org/).
16
44
 
17
- Public version of Storybook is available [here](https://italia.github.io/design-react-kit) for the latest stable release, while [here](https://design-react-kit.vercel.app/) for the current development version built from `master` branch.
45
+ Public version of Storybook is available [here](https://italia.github.io/design-react-kit) for the latest stable release, while [here](https://design-react-kit.vercel.app/) for the current development version built from `main` branch.
18
46
 
19
47
  ## Table of contents
20
48
 
@@ -27,16 +55,12 @@ Public version of Storybook is available [here](https://italia.github.io/design-
27
55
  - [Compiling Storybook](#compiling-storybook)
28
56
  - [How to create new components](#how-to-create-new-components)
29
57
  - [Publishing](#publishing)
30
- - [Continuous integration](#continuous-integration)
31
- - [`build` job](#build-job)
32
- - [`deploy-github-pages` job](#deploy-github-pages-job)
33
- - [`npm-publish` job](#npm-publish-job)
34
58
 
35
59
  <!-- END doctoc generated TOC please keep the comment here to allow automatic updating -->
36
60
 
37
61
  ### Requirements
38
62
 
39
- - NodeJS
63
+ - NodeJS (>= 18)
40
64
  - Yarn
41
65
 
42
66
  ## Usage
@@ -46,7 +70,7 @@ To use Design React as a dependency in your React project you can install it fro
46
70
  ```sh
47
71
  $ create-react-app nome-app
48
72
  $ cd nome-app
49
- $ yarn add design-react-kit --save
73
+ $ yarn add design-react-kit@unstable --save
50
74
  ```
51
75
 
52
76
  ## Add bootstrap-italia and fonts
@@ -117,8 +141,6 @@ Then run the `yarn storybook:serve` command to start the development server.
117
141
 
118
142
  Storybook will therefore be available at http://localhost:9001/
119
143
 
120
- ![storybook](/assets/storybook-screenshot.jpg?raw=true)
121
-
122
144
  Public version of the Storybook is available [here](https://italia.github.io/design-react-kit).
123
145
 
124
146
  Storybook has been enriched with some `addons` that make it more talented. Check dependencies on the `package.json` file for details.
@@ -155,7 +177,7 @@ Once you have created a new component, with its history, starting _Storybook_ wi
155
177
 
156
178
  ### How to contribute
157
179
 
158
- To submit new content (feature or bug fixes) is required to fork the repository, starting from `master` create a new branch for the new feature: once completed the development (with tests when possible), create a PR to the original repository.
180
+ To submit new content (feature or bug fixes) is required to fork the repository, starting from `main` create a new branch for the new feature: once completed the development (with tests when possible), create a PR to the original repository.
159
181
 
160
182
  #### Snapshot tests
161
183
 
@@ -193,11 +215,3 @@ The design kit follows the Guidelines for Public Services Design, within the Sec
193
215
  ## TypeScript typing definitions
194
216
 
195
217
  The library has been rewritten in Typescript and types are exported in the bundle.
196
-
197
- ## Thanks
198
-
199
- <a href="https://www.chromatic.com/"><img src="https://user-images.githubusercontent.com/321738/84662277-e3db4f80-af1b-11ea-88f5-91d67a5e59f6.png" width="153" height="30" alt="Chromatic" /></a>
200
-
201
- Thanks to [Chromatic](https://www.chromatic.com/) for providing the visual testing platform that helps us review UI changes and catch visual regressions.
202
-
203
- Thanks to [Circle CI](https://www.circleci.com/) for providing the infrastructure for our Continuous Integration needs.
package/README.md CHANGED
@@ -1,18 +1,48 @@
1
- ![CircleCI](https://img.shields.io/circleci/build/github/italia/design-react-kit)
2
- [![Partecipa sul canale #design-devel](https://img.shields.io/badge/Slack%20channel-%23design--devel-blue.svg)](https://developersitalia.slack.com/messages/C7VPAUVB3/)
3
- [![Ricevi un invito a Slack](https://slack.developers.italia.it/badge.svg)](https://slack.developers.italia.it/)
1
+ <h1 align="center">Design React Kit</h1>
2
+
3
+ <p align="center">
4
+ <img src=".github/react-logo.png" alt="react-logo" width="120px" height="auto"/>
5
+ <br>
6
+ <i>Design React Kit è un toolkit basato su Bootstrap Italia
7
+ <br> per la creazione di applicazioni web sviluppate con React.</i>
8
+ <br>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://italia.github.io/design-react-kit"><strong>italia.github.io/design-react-kit</strong></a>
13
+ <br>
14
+ </p>
15
+
16
+ <p align="center">
17
+ <a href="https://www.npmjs.com/package/design-react-kit"><img src="https://img.shields.io/npm/v/design-react-kit/unstable.svg" alt="NPM"></a>
18
+ <a href="https://github.com/italia/design-react-kit/actions"><img src="https://github.com/italia/design-react-kit/actions/workflows/ci.yml/badge.svg" alt="Build"></a>
19
+ <a href="https://codecov.io/gh/italia/design-react-kit"><img src="https://codecov.io/gh/italia/design-react-kit/branch/main/graph/badge.svg?token=0Ud6YSFi0r" alt="codecov"></a>
20
+ <a href="https://github.com/italia/design-react-kit/blob/main/LICENSE"><img src="https://img.shields.io/github/license/italia/design-react-kit.svg" alt="License"></a>
21
+ <a href="https://github.com/italia/design-react-kit/issues"><img src="https://img.shields.io/github/issues/italia/design-react-kit.svg" alt="GitHub issues"></a>
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="https://developersitalia.slack.com/messages/C04J92F9XM2/">
26
+ <img src="https://img.shields.io/badge/Slack%20channel-%23design--dev--react-blue.svg" alt="Join the #design-system-react channel" />
27
+ </a>
28
+ <a href="https://slack.developers.italia.it/">
29
+ <img src="https://slack.developers.italia.it/badge.svg" alt="Get invited" />
30
+ </a>
31
+ </p>
4
32
 
5
33
  _Read this in other languages: [English](README.EN.md)._
6
34
 
7
- **Importante**: questo kit è stato progettato per funzionare con la versione 1.x di Bootstrap Italia. Non esiste al momento un kit per la versione 2.x di Bootstrap Italia.
35
+ _⚠️ Attenzione: questo codice è ancora in fase di sviluppo e non è pronto per essere utilizzato! Stiamo lavorando all'aggiornamento per portare il kit alla versione 5.0.0, commenti e contributi di tutta la community sono più che benvenuti!_
36
+
37
+ _⚠️ Attenzione: questo kit è stato progettato per funzionare con la versione 2.x di Bootstrap Italia. Il kit per la versione 1.x di Bootstrap Italia è stato deprecato e si trova sul branch [4.x](https://github.com/italia/design-react-kit/tree/4.x)._
8
38
 
9
39
  ## Intro
10
40
 
11
- **Design React kit** è un set di componenti React che implementa [Bootstrap Italia](https://italia.github.io/bootstrap-italia/) e gli stili presenti su [Design UI Kit](https://github.com/italia/design-ui-kit), come [mostrato su InVision](https://invis.io/TWMUZS6VFP5).
41
+ **Design React kit** è un set di componenti React che implementa [Bootstrap Italia](https://italia.github.io/bootstrap-italia/) e gli stili presenti su [Design UI Kit](https://github.com/italia/design-ui-kit).
12
42
 
13
43
  Per navigare la libreria e visualizzare i componenti, è stato utilizzato [Storybook](https://storybook.js.org/).
14
44
 
15
- La versione pubblica dello Storybook è disponibile [qui](https://italia.github.io/design-react-kit) per l'ultima release stabile pubblicata, mentre [qui](https://design-react-kit.vercel.app/) per la versione di sviluppo relativa al branch `master`.
45
+ La versione pubblica dello Storybook è disponibile [qui](https://italia.github.io/design-react-kit) per l'ultima release stabile pubblicata, mentre [qui](https://design-react-kit.vercel.app/) per la versione di sviluppo relativa al branch `main`.
16
46
 
17
47
  ## Indice
18
48
 
@@ -25,16 +55,12 @@ La versione pubblica dello Storybook è disponibile [qui](https://italia.github.
25
55
  - [Come iniziare](#come-iniziare)
26
56
  - [Come creare nuovi componenti](#come-creare-nuovi-componenti)
27
57
  - [Publishing](#publishing)
28
- - [Continuous Integration](#continuous-integration)
29
- - [Job `build`](#job-build)
30
- - [Job `deploy-github-pages`](#job-deploy-github-pages)
31
- - [Job `npm-publish`](#job-npm-publish)
32
58
 
33
59
  <!-- END doctoc generated TOC please keep comment here to allow auto update -->
34
60
 
35
61
  ### Requisiti
36
62
 
37
- - NodeJS
63
+ - NodeJS (>= 18)
38
64
  - Yarn
39
65
 
40
66
  ## Come usare il kit
@@ -44,7 +70,7 @@ Per utilizzare Design React come dipendenza in un'app è possibile installarla d
44
70
  ```sh
45
71
  $ create-react-app nome-app
46
72
  $ cd nome-app
47
- $ yarn add design-react-kit --save
73
+ $ yarn add design-react-kit@unstable --save
48
74
  ```
49
75
 
50
76
  ## Aggiungere bootstrap-italia ed i font
@@ -115,8 +141,6 @@ Quindi esegui `yarn storybook:serve` per avviare il server di sviluppo.
115
141
 
116
142
  Storybook sarà quindi disponibile all'indirizzo http://localhost:9001/
117
143
 
118
- ![storybook](/assets/storybook-screenshot.jpg?raw=true)
119
-
120
144
  Storybook è stato arricchito con alcuni `addons` che lo rendono più parlante.
121
145
 
122
146
  ## Come creare nuovi componenti
@@ -150,7 +174,7 @@ Una volta creato un nuovo componente, con la sua story, avviando Storybook sarà
150
174
 
151
175
  ### Come contribuire
152
176
 
153
- Per inviare nuovi contenuti o bug fix è necessario fare un fork del repository, quindi partire dal branch `master` per un nuovo branch contenente la funzionalità: una volta completa la funzionalità (con relativi test ove possibile), sarà necessario fare una PR sul repository principale.
177
+ Per inviare nuovi contenuti o bug fix è necessario fare un fork del repository, quindi partire dal branch `main` per un nuovo branch contenente la funzionalità: una volta completa la funzionalità (con relativi test ove possibile), sarà necessario fare una PR sul repository principale.
154
178
 
155
179
  #### Snapshot tests
156
180
 
@@ -188,9 +212,3 @@ Il kit segue le indicazioni riportate nelle Linee Guida di Design per i servizi
188
212
  ## TypeScript typings
189
213
 
190
214
  La libreria è stata portata a Typescript ed i tipi sono esportati con essa.
191
-
192
- ## Ringraziamenti
193
-
194
- <a href="https://www.chromatic.com/"><img src="https://user-images.githubusercontent.com/321738/84662277-e3db4f80-af1b-11ea-88f5-91d67a5e59f6.png" width="153" height="30" alt="Chromatic" /></a>
195
-
196
- Grazie a [Chromatic](https://www.chromatic.com/) per aver fornito la piattaforma di visual testing che ci aiuta a revisionare cambiamenti UI e intercettare regressioni visuali.