@kbss-cvut/s-forms 0.7.2-alpha-7d43dd5.0 → 0.7.2-alpha-b27a28a.0
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Checkout [live demo using storybook](https://s-forms-kbss.netlify.app).
|
|
|
28
28
|
Semantic form is a structure that holds a form (set of questions) and its data (set of answers).
|
|
29
29
|
A conceptual model of Semantic forms is [questions/answers model](https://github.com/kbss-cvut/s-forms-model).
|
|
30
30
|
The conceptual model is described in RDF language. This library processes and generates Semantic forms using JSON-LD
|
|
31
|
-
format which is JSON-compatible serialization of the RDF language.
|
|
31
|
+
format, which is JSON-compatible serialization of the RDF language.
|
|
32
32
|
|
|
33
33
|
## Development
|
|
34
34
|
|
|
@@ -41,7 +41,7 @@ Building SForms library can be done using `npm run build:lib`.
|
|
|
41
41
|
Storybook is an open-source tool for building UI components and pages in isolation. Rendering of a form or a specific component can be tested through a story provided in `./src/stories/`. The application can be started by executing npm script through `npm run dev` and then accessing `localhost:6006` from a browser. It renders the forms provided by the file `./src/stories/assets/`. See `./src/stories/SForms/SForms.stories.tsx` for more details.
|
|
42
42
|
|
|
43
43
|
#### Testing forms with Storybook toolbar
|
|
44
|
-
With the Storybook [toolbar](https://storybook.js.org/docs/essentials/toolbars-and-globals),
|
|
44
|
+
With the Storybook [toolbar](https://storybook.js.org/docs/essentials/toolbars-and-globals), testing a set of predefined global variables is possible. The toolbar supports the following features:
|
|
45
45
|
- Icon behavior: Set the behavior for the icons
|
|
46
46
|
- Locale: Set the internationalization locale
|
|
47
47
|
- Debug mode: Show irrelevant questions
|