Skip to content

Commit 064a290

Browse files
daniele-zuricocg-mmircaybayraktutanalexwbbrawebber
authored
Release/1.0.0 (#655)
* feat(storybook): add tokens documentation viewer (#537) * feat: highlight design system #539 * fix: replaced empty jsx with react fragment (#540) Co-authored-by: awebber <[email protected]> * feat: add design system for keyboard input Closes #546 * fix: missing components (#557) * Feature/storybook layout (#561) * Story book layout change * feat: update order --------- Co-authored-by: Zurico.Daniele_DEFRA <[email protected]> * feat: add design system for link element Closes #545 --------- Co-authored-by: mmirca <[email protected]> * Paragraph - enable paragraph to have a custom content (#567) * feat: enable paragraph to have a custom content * feat: enable typescript safe types * improves tab documentation to display correct properties (#569) Co-authored-by: El Moudden <[email protected]> * adds supported engine versions for node, npm & yarn (#570) * fixes select defaultValue onChange (#573) * fixes select defaultValue onChange * code refactor & restored deleted test * code refactor formSelect logic * fixes previous commit which remove a test * adds meta description for SEO (#574) * feat: add abbreviate design system Closes #530 * Code snippet - design system (#543) * style: code snippet design system added * style: class name updated * style: classname fixed * style:dark theme added * chore: deleted unused code --------- Co-authored-by: ybayrakt <[email protected]> Co-authored-by: Daniele Zurico <[email protected]> * feat: preformatted text (#575) Closes 536 * DescriptionList (#522) * feat: rebase to one commit * added preview * comments resolved * added PreformattedText in preview.js --------- Co-authored-by: Zurico.Daniele_DEFRA <[email protected]> Co-authored-by: Jeet Jadhav <[email protected]> * adds blockquote design-system (#571) * adds blockquote design-system * adds requested changes in PR: reuse existing token * adds requested changes in PR: reuse existing token 2.0 * adds reusable tokens * removes unnecessary tokens and reuses existing tokens * Button - enhancement to allow pass extra content (#576) * adds fix enhancement to allow pass an html content * adds error handling for props and testing error handling * feat: add test * feat: add further fixes * adds custom-content stories --------- Co-authored-by: Zurico.Daniele_DEFRA <[email protected]> * Accordion component funtionality (#544) * Accordion component --------- Co-authored-by: Berhane Yohannes <[email protected]> Co-authored-by: Zurico.Daniele_DEFRA <[email protected]> * feat: fix minor bug on the accordion (#589) * Form Input - Design System (#586) * Adding isError property in Checkbox (#585) * button group component (#541) * feat: button group component * fix: linting * fix: linting * feat: coverage 100% forminput (#591) * Description list design system (#597) * Description list design system * Card component (#593) Create a card component --------- Co-authored-by: Alaa Eddine <[email protected]> Co-authored-by: Zurico.Daniele_DEFRA <[email protected]> Co-authored-by: U01A6369 <[email protected]> * feat: bump a new version * Switched from CRA to Vite in the Example folder (#603) * feat: {{ Switched to Vite from CRA }} * fix: removed unecesarry dulicate dependancy react / react dom * fix: removed type: module as it is not required for projects without the use of exported ECMAScript modules. * link back to Github from Storybook (#607) * feat: radio-button-group desing-system (#609) * feat: add class host element radio-button-group * feat: update stories archives * feat: add styles radio styles * feat: update stories themes css * fix: tokens class stories --------- Co-authored-by: U01A6369 <[email protected]> * Form CheckBox design-system (#604) * Form CheckBox design-system * MaterialTheme Checkbox * added display property * feat: refactor styles --------- Co-authored-by: U01A6369 <[email protected]> * Feature/upgrade sb deps (#614) * feat: upgrade storybook * feat: add babel * feat: upgrade other libraries * feat: upgrade sb * feat: create file structure and host clases names (#605) * feat: expose clip-path proertie in checkbox (#615) * fix: adding fileList to onChange for multi file uploads (#613) * fix: missing exports (#559) * fix: adding fileList to onChange for multi file uploads --------- Co-authored-by: Daniele Zurico <[email protected]> * feat: upgrade all the deps (#616) * feat: upgrade all the deps * feat: upgrade all the deps * feat: upgrade all the deps * fix: adding css style heading (#620) * fix: change typed wrong and create safe placeholder-css (#627) * fix: fixed test forminput and expose select ref (#628) * accessibility issues (#634) * fix: missing exports (#559) * updated the button component to better render aria-label (#619) * fix: missing exports (#559) * updated the buttom component to better render aria-label * added missing test * split test into two * fixed typo --------- Co-authored-by: Daniele Zurico <[email protected]> Co-authored-by: awebber <[email protected]> * fix: accessbility removing tabIndex (#630) * fix: accessbility removing tabIndex * chore: adding associated unit test * fix: removing name as default on aria-label (#622) * fix: removing name as default on aria-label * fix: removing name as default on aria-label * fix: removing empty alert / error div for a formInput without an error (#632) * fix: removing empty alert / error div for a formInput without an error * chore: clean up * chore: removing aria lable * Feature/update autocomplete for accessibility (#633) * Adds accessibility functionality to the autocomplete and updated the docs and tests --------- Co-authored-by: awebber <[email protected]> * fix: removing console to resolve eslint:no-console --------- Co-authored-by: Daniele Zurico <[email protected]> Co-authored-by: alexwbbr <[email protected]> Co-authored-by: awebber <[email protected]> * feat: add design system documentation (#625) * feat: add design system documentation * docs: merge design system into introduction --------- Co-authored-by: mmirca <[email protected]> * fix: removing unnecessary div from error message (#636) * fix: removing unnecessary div from error message * feat: adding visually span for screen readers * feat: adding visually span for screen readers - unit test update * fix: using p for visually hidden text only * fix: resolving PR comments * fix: adding hiddenTextError * fix: removing the default 0 tabIndex (#641) * Prepare documentation and contribution for v.1.0.0 (#642) * feat: update changelog and contrib --------- Co-authored-by: Isaac Babalola <[email protected]> * adds close on blur and moves position of hidden hint text (#643) * adds close on blur and moves position of hidden hint text --------- Co-authored-by: awebber <[email protected]> * updates changelog links (#645) Co-authored-by: awebber <[email protected]> * Feature/revert close on blur (#647) * reverts the autocomplete close on blur --------- Co-authored-by: awebber <[email protected]> * fix: removing name as a substitute aria label (#651) * fix: removing name as a substitute aria label * chore: updating changelog * adds better checks to close the options on blur (#648) * adds better checks to close the options on blur --------- Co-authored-by: awebber <[email protected]> * feat: adding visually hidden text to button for screen readers (#653) * feat: adding visually hidden text to button for screen readers * chore: amending change log * feat: add video on storybook doc (#654) * feat: upgrade storybook --------- Co-authored-by: cg-mmirca <[email protected]> Co-authored-by: Yasemin <[email protected]> Co-authored-by: alexwbbr <[email protected]> Co-authored-by: awebber <[email protected]> Co-authored-by: shivammuttoo <[email protected]> Co-authored-by: JadhavJeet <[email protected]> Co-authored-by: mmirca <[email protected]> Co-authored-by: jgonza16 <[email protected]> Co-authored-by: Alaa Eddine <[email protected]> Co-authored-by: El Moudden <[email protected]> Co-authored-by: ybayrakt <[email protected]> Co-authored-by: SOUNDAR-A <[email protected]> Co-authored-by: Jeet Jadhav <[email protected]> Co-authored-by: Berhane Yohannes <[email protected]> Co-authored-by: Berhane Yohannes <[email protected]> Co-authored-by: Ahmet <[email protected]> Co-authored-by: Joseph Oldfield <[email protected]> Co-authored-by: Malcolm Young <[email protected]> Co-authored-by: Aranzazu Vázquez Moreno <[email protected]> Co-authored-by: U01A6369 <[email protected]> Co-authored-by: Isaac Babalola <[email protected]> Co-authored-by: mmirca <[email protected]> Co-authored-by: Isaac Babalola <[email protected]>
1 parent 5f168e9 commit 064a290

File tree

381 files changed

+24882
-20789
lines changed

Some content is hidden

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

381 files changed

+24882
-20789
lines changed

.babelrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"@babel/preset-typescript",
13-
"@babel/preset-react"
13+
["@babel/preset-react", {"runtime":"automatic"}]
1414
],
1515
"plugins": []
1616
}

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: cimg/node:16.16.0
5+
- image: cimg/node:20.12.0
66
working_directory: ~/repo
77
steps:
88
- checkout

.eslintrc.json

+55-43
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,57 @@
11
{
2-
"extends": [
3-
"react-app"
2+
"extends": [
3+
"react-app"
4+
],
5+
"rules": {
6+
"import/no-anonymous-default-export": 0,
7+
"no-console": "error",
8+
"no-debugger": "error",
9+
"array-bracket-newline": "error",
10+
"array-bracket-spacing": "error",
11+
"array-callback-return": "error",
12+
"arrow-body-style": "error",
13+
"arrow-spacing": "error",
14+
"block-scoped-var": "error",
15+
"block-spacing": "error",
16+
"brace-style": "error",
17+
"callback-return": "error",
18+
"camelcase": "error",
19+
"no-dupe-else-if": "error",
20+
"no-dupe-keys": "error",
21+
"no-duplicate-case": "error",
22+
"no-duplicate-imports": "error",
23+
"no-unneeded-ternary": "error",
24+
"no-unreachable": "error",
25+
"no-unsafe-finally": "error",
26+
"no-unsafe-negation": "error",
27+
"no-unused-expressions": "error",
28+
"no-unused-labels": "error",
29+
"no-unused-vars": "off",
30+
"@typescript-eslint/no-unused-vars": [
31+
"error"
432
],
5-
"rules": {
6-
"no-console": "error",
7-
"no-debugger": "error",
8-
"array-bracket-newline": "error",
9-
"array-bracket-spacing": "error",
10-
"array-callback-return": "error",
11-
"arrow-body-style": "error",
12-
"arrow-spacing": "error",
13-
"block-scoped-var": "error",
14-
"block-spacing": "error",
15-
"brace-style": "error",
16-
"callback-return": "error",
17-
"camelcase": "error",
18-
"no-dupe-else-if": "error",
19-
"no-dupe-keys": "error",
20-
"no-duplicate-case": "error",
21-
"no-duplicate-imports": "error",
22-
"no-unneeded-ternary": "error",
23-
"no-unreachable": "error",
24-
"no-unsafe-finally": "error",
25-
"no-unsafe-negation": "error",
26-
"no-unused-expressions": "error",
27-
"no-unused-labels": "error",
28-
"no-unused-vars": "off",
29-
"@typescript-eslint/no-unused-vars": ["error"],
30-
"no-use-before-define": "off",
31-
"no-useless-call": "error",
32-
"no-useless-catch": "error",
33-
"no-useless-computed-key": "error",
34-
"no-useless-concat": "error",
35-
"no-useless-constructor": "error",
36-
"no-useless-escape": "error",
37-
"no-useless-rename": "error",
38-
"no-useless-return": "error",
39-
"no-var": "error",
40-
"quotes": [2, "single", { "avoidEscape": true }],
41-
"semi": [2, "always"],
42-
// turning off the following
43-
"react-hooks/exhaustive-deps": "off"
44-
}
45-
}
33+
"no-use-before-define": "off",
34+
"no-useless-call": "error",
35+
"no-useless-catch": "error",
36+
"no-useless-computed-key": "error",
37+
"no-useless-concat": "error",
38+
"no-useless-constructor": "error",
39+
"no-useless-escape": "error",
40+
"no-useless-rename": "error",
41+
"no-useless-return": "error",
42+
"no-var": "error",
43+
"quotes": [
44+
2,
45+
"single",
46+
{
47+
"avoidEscape": true
48+
}
49+
],
50+
"semi": [
51+
2,
52+
"always"
53+
],
54+
// turning off the following
55+
"react-hooks/exhaustive-deps": "off"
56+
}
57+
}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ coverage
88
.parcel-cache
99
example/.parcel-cache/*
1010
example/build
11-
storybook-static
11+
storybook-static
12+
package-lock.json

.storybook/main.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
process.env.DESIGN_TOKEN_GLOB = "**/tokens.css";
22
const config = {
33
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
4+
45
addons: [
56
'@storybook/addon-links',
67
'@storybook/addon-essentials',
78
'@storybook/addon-docs',
89
'@storybook/addon-controls',
910
'storybook-css-modules-preset',
11+
'@storybook/preview-api',
1012
'@storybook/addon-a11y',
1113
{
1214
name: "storybook-design-token",
@@ -17,12 +19,23 @@ const config = {
1719
autodocs: "tag",
1820
},
1921
},
20-
'@storybook/addon-mdx-gfm'
22+
'@storybook/addon-mdx-gfm',
23+
'@storybook/addon-webpack5-compiler-babel',
24+
'storybook-addon-mdx-embed'
2125
],
26+
2227
framework: {
2328
name: '@storybook/react-webpack5',
2429
options: {}
2530
},
31+
32+
docs: {},
33+
34+
staticDirs: ["../static"],
35+
36+
typescript: {
37+
reactDocgen: 'react-docgen-typescript'
38+
}
2639
};
2740

2841
export default config;

.storybook/manager-head.html

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
href="https://www.capgemini.com/wp-content/themes/capgemini-komposite/assets/images/favicon.ico">
33
<link rel="icon" type="image/png" href="/storybook.png" sizes="192x192">
44
<!-- TODO-DS: we'll remove this one when we'll decide to release the design tokens-->
5+
<meta name="description" content="react agnostic library" key="desc" />
56
<script defer>
67
if (location.hostname !== 'localhost') {
78
const $hideDesignSystemFromSidebar = document.createElement('style');

.storybook/manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/addons';
1+
import { addons } from '@storybook/manager-api';
22
import camTheme from './capgeminiTheme';
33

44
addons.setConfig({

.storybook/preview.js

+26-10
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ export const parameters = {
1818
[
1919
'Introduction',
2020
'Utils',
21+
[
22+
'CopyToClipboard',
23+
['Documentation', 'Live', 'Without style', 'Class based'],
24+
],
2125
'Form',
2226
[
2327
'Autocomplete',
2428
['Documentation', 'Live', 'Without style', 'Class based'],
2529
'Button',
2630
['Documentation', 'Live', 'Without style', 'Class based'],
31+
'ButtonGroup',
32+
['Documentation', 'Live', 'Without style', 'Class based'],
2733
'CharacterCount',
2834
['Documentation', 'Live', 'Without style', 'Class based'],
2935
'Checkbox',
@@ -67,16 +73,21 @@ export const parameters = {
6773
'Tooltip',
6874
['Documentation', 'Live', 'Class based'],
6975
],
70-
'Breadcrumb',
71-
['Documentation', 'Live', 'Without style', 'Class based'],
72-
'CopyToClipboard',
73-
['Documentation', 'Live', 'Without style', 'Class based'],
74-
'Details',
75-
['Documentation', 'Live', 'Without style', 'Class based'],
76-
'Tabs',
77-
['Documentation', 'Live', 'Without style', 'Class based'],
78-
'Table',
79-
['Documentation', 'Live', 'Without style', 'Class based'],
76+
'Layout',
77+
[
78+
'Accordion',
79+
['Documentation', 'Live', 'Without style', 'Class based'],
80+
'Breadcrumb',
81+
['Documentation', 'Live', 'Without style', 'Class based'],
82+
'Details',
83+
['Documentation', 'Live', 'Without style', 'Class based'],
84+
'Tabs',
85+
['Documentation', 'Live', 'Without style', 'Class based'],
86+
'Table',
87+
['Documentation', 'Live', 'Without style', 'Class based'],
88+
'Card',
89+
['Documentation', 'Live', 'Without style', 'Class based'],
90+
],
8091
'Typography',
8192
[
8293
'Abbreviate',
@@ -103,6 +114,10 @@ export const parameters = {
103114
['Documentation', 'Live', 'Without style', 'Class based'],
104115
'List',
105116
['Documentation', 'Live', 'Without style', 'Class based'],
117+
'DescriptionList',
118+
['Documentation', 'Live', 'Without style', 'Class based'],
119+
'PreformattedText',
120+
['Documentation', 'Live', 'Without style', 'Class based'],
106121
],
107122
'Changelog',
108123
],
@@ -146,3 +161,4 @@ export const decorators = [
146161
return storyFn();
147162
},
148163
];
164+
export const tags = ['autodocs'];

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"files.associations": {
1212
"*.css": "postcss"
1313
}
14-
}
14+
}

0 commit comments

Comments
 (0)