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

adds card first design-system rules #602

Closed
wants to merge 58 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
7ce5e8a
feat(storybook): add tokens documentation viewer (#537)
cg-mmirca Sep 22, 2023
df4b5f8
feat: highlight design system
ybayraktutan Oct 4, 2023
07dcf65
fix: replaced empty jsx with react fragment (#540)
alexwbbr Oct 6, 2023
f2627b6
feat: add design system for keyboard input
ybayraktutan Oct 18, 2023
0c11251
fix: missing components (#557)
daniele-zurico Oct 24, 2023
d25ed22
Feature/storybook layout (#561)
shivammuttoo Oct 24, 2023
5c8aa34
feat: add design system for link element
JadhavJeet Nov 2, 2023
92b9678
Paragraph - enable paragraph to have a custom content (#567)
jgonza16 Nov 7, 2023
da969bb
improves tab documentation to display correct properties (#569)
AlaaEddine20 Nov 13, 2023
c34d908
adds supported engine versions for node, npm & yarn (#570)
AlaaEddine20 Nov 13, 2023
bd7cb45
fixes select defaultValue onChange (#573)
AlaaEddine20 Nov 15, 2023
7f391e7
adds meta description for SEO (#574)
AlaaEddine20 Nov 16, 2023
f191be4
feat: add abbreviate design system
jgonza16 Nov 17, 2023
fafe140
Code snippet - design system (#543)
ybayraktutan Nov 21, 2023
5d96a25
feat: preformatted text (#575)
JadhavJeet Nov 23, 2023
cccce23
DescriptionList (#522)
SOUNDAR-A Nov 23, 2023
5f1cde4
adds blockquote design-system (#571)
AlaaEddine20 Nov 26, 2023
521e804
Button - enhancement to allow pass extra content (#576)
AlaaEddine20 Nov 28, 2023
b4257d4
Accordion component funtionality (#544)
byohannes Dec 12, 2023
77d2b39
feat: fix minor bug on the accordion (#589)
daniele-zurico Jan 23, 2024
ac69337
Form Input - Design System (#586)
jgonza16 Jan 31, 2024
bd5e1ed
Adding isError property in Checkbox (#585)
Ahmet-K Feb 5, 2024
31ccd0a
button group component (#541)
alexwbbr Feb 5, 2024
fa2764d
fix: linting
daniele-zurico Feb 5, 2024
ca64c31
fix: linting
daniele-zurico Feb 5, 2024
ff3eb08
feat: coverage 100% forminput (#591)
jgonza16 Feb 7, 2024
c717023
Description list design system (#597)
shivammuttoo Feb 21, 2024
aacd6f9
Card component (#593)
AlaaEddine20 Feb 21, 2024
0098337
feat: bump a new version
daniele-zurico Feb 21, 2024
a44747f
Switched from CRA to Vite in the Example folder (#603)
josepholdfield Mar 1, 2024
11d9638
link back to Github from Storybook (#607)
malcomio Mar 21, 2024
313a2e3
feat: radio-button-group desing-system (#609)
AranzazuVM Mar 26, 2024
3214fa2
Form CheckBox design-system (#604)
JadhavJeet Mar 27, 2024
f27b5ee
Feature/upgrade sb deps (#614)
daniele-zurico Mar 28, 2024
b161d7c
feat: create file structure and host clases names (#605)
jgonza16 Mar 28, 2024
c58641a
feat: expose clip-path proertie in checkbox (#615)
jgonza16 Mar 28, 2024
5aa77f0
fix: adding fileList to onChange for multi file uploads (#613)
Ibabalola Apr 2, 2024
1a1c4c8
feat: upgrade all the deps (#616)
daniele-zurico Apr 3, 2024
d1f2da8
fix: adding css style heading (#620)
AranzazuVM Apr 12, 2024
9a1ebf0
fix: change typed wrong and create safe placeholder-css (#627)
jgonza16 Apr 15, 2024
d4e1232
fix: fixed test forminput and expose select ref (#628)
jgonza16 Apr 15, 2024
9f532f2
accessibility issues (#634)
Ibabalola Apr 19, 2024
e221d6e
feat: add design system documentation (#625)
mmirca Apr 22, 2024
6b034de
fix: removing unnecessary div from error message (#636)
Ibabalola Apr 23, 2024
dcb33e7
fix: removing the default 0 tabIndex (#641)
Ibabalola Apr 23, 2024
f75fb28
Prepare documentation and contribution for v.1.0.0 (#642)
daniele-zurico May 3, 2024
2644e8f
adds close on blur and moves position of hidden hint text (#643)
alexwbbr May 9, 2024
c308f7a
updates changelog links (#645)
alexwbbr May 9, 2024
1481b86
Feature/revert close on blur (#647)
alexwbbr May 10, 2024
eb7683b
[wip] adds card first design-system rules
Feb 26, 2024
1f4646d
[wip] adds footer default
Feb 26, 2024
93054d2
[wip] adds default design system
Feb 26, 2024
2a41408
[wip] adds changes requested by first review
Feb 27, 2024
fb089e5
[wip] adds horizontal default style
Feb 27, 2024
8ea202e
[wip] adds dark theme stories & card tokens
Feb 28, 2024
88c2850
[wip] adds grid layout to default stories
Mar 5, 2024
221bdd6
forcing commit for card changes
Mar 8, 2024
01783fd
fix: solved grid problems and add necessary tokens
jgonza16 Mar 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"@babel/preset-typescript",
"@babel/preset-react"
["@babel/preset-react", {"runtime":"automatic"}]
],
"plugins": []
}
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: cimg/node:16.16.0
- image: cimg/node:20.12.0
working_directory: ~/repo
steps:
- checkout
Expand Down
98 changes: 55 additions & 43 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,57 @@
{
"extends": [
"react-app"
"extends": [
"react-app"
],
"rules": {
"import/no-anonymous-default-export": 0,
"no-console": "error",
"no-debugger": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": "error",
"callback-return": "error",
"camelcase": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-unneeded-ternary": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error"
],
"rules": {
"no-console": "error",
"no-debugger": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": "error",
"callback-return": "error",
"camelcase": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-unneeded-ternary": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-use-before-define": "off",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"quotes": [2, "single", { "avoidEscape": true }],
"semi": [2, "always"],
// turning off the following
"react-hooks/exhaustive-deps": "off"
}
}
"no-use-before-define": "off",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"semi": [
2,
"always"
],
// turning off the following
"react-hooks/exhaustive-deps": "off"
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ coverage
.parcel-cache
example/.parcel-cache/*
example/build
storybook-static
storybook-static
package-lock.json
8 changes: 7 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config = {
'@storybook/addon-docs',
'@storybook/addon-controls',
'storybook-css-modules-preset',
'@storybook/preview-api',
'@storybook/addon-a11y',
{
name: "storybook-design-token",
Expand All @@ -17,12 +18,17 @@ const config = {
autodocs: "tag",
},
},
'@storybook/addon-mdx-gfm'
'@storybook/addon-mdx-gfm',
'@storybook/addon-webpack5-compiler-babel'
],
framework: {
name: '@storybook/react-webpack5',
options: {}
},
docs: {
autodocs: true
},
staticDirs: ["../static"],
};

export default config;
1 change: 1 addition & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
href="https://www.capgemini.com/wp-content/themes/capgemini-komposite/assets/images/favicon.ico">
<link rel="icon" type="image/png" href="/storybook.png" sizes="192x192">
<!-- TODO-DS: we'll remove this one when we'll decide to release the design tokens-->
<meta name="description" content="react agnostic library" key="desc" />
<script defer>
if (location.hostname !== 'localhost') {
const $hideDesignSystemFromSidebar = document.createElement('style');
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
import camTheme from './capgeminiTheme';

addons.setConfig({
Expand Down
35 changes: 25 additions & 10 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ export const parameters = {
[
'Introduction',
'Utils',
[
'CopyToClipboard',
['Documentation', 'Live', 'Without style', 'Class based'],
],
'Form',
[
'Autocomplete',
['Documentation', 'Live', 'Without style', 'Class based'],
'Button',
['Documentation', 'Live', 'Without style', 'Class based'],
'ButtonGroup',
['Documentation', 'Live', 'Without style', 'Class based'],
'CharacterCount',
['Documentation', 'Live', 'Without style', 'Class based'],
'Checkbox',
Expand Down Expand Up @@ -67,16 +73,21 @@ export const parameters = {
'Tooltip',
['Documentation', 'Live', 'Class based'],
],
'Breadcrumb',
['Documentation', 'Live', 'Without style', 'Class based'],
'CopyToClipboard',
['Documentation', 'Live', 'Without style', 'Class based'],
'Details',
['Documentation', 'Live', 'Without style', 'Class based'],
'Tabs',
['Documentation', 'Live', 'Without style', 'Class based'],
'Table',
['Documentation', 'Live', 'Without style', 'Class based'],
'Layout',
[
'Accordion',
['Documentation', 'Live', 'Without style', 'Class based'],
'Breadcrumb',
['Documentation', 'Live', 'Without style', 'Class based'],
'Details',
['Documentation', 'Live', 'Without style', 'Class based'],
'Tabs',
['Documentation', 'Live', 'Without style', 'Class based'],
'Table',
['Documentation', 'Live', 'Without style', 'Class based'],
'Card',
['Documentation', 'Live', 'Without style', 'Class based'],
],
'Typography',
[
'Abbreviate',
Expand All @@ -103,6 +114,10 @@ export const parameters = {
['Documentation', 'Live', 'Without style', 'Class based'],
'List',
['Documentation', 'Live', 'Without style', 'Class based'],
'DescriptionList',
['Documentation', 'Live', 'Without style', 'Class based'],
'PreformattedText',
['Documentation', 'Live', 'Without style', 'Class based'],
],
'Changelog',
],
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"files.associations": {
"*.css": "postcss"
}
}
}
130 changes: 104 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,117 @@
## 1.0.0 (15/04/2024)

<a name="1.0.0" />

**Design System**

- [Highlight](https://github.com/Capgemini/dcx-react-library/issues/535)
- [KeyboardInput](https://github.com/Capgemini/dcx-react-library/issues/534)
- [Link](https://github.com/Capgemini/dcx-react-library/issues/533)
- [Paragraph](https://github.com/Capgemini/dcx-react-library/issues/566)
- [Abbreviate](https://github.com/Capgemini/dcx-react-library/issues/530)
- [Code Snippet](https://github.com/Capgemini/dcx-react-library/issues/532)
- [Preformatted Text](https://github.com/Capgemini/dcx-react-library/issues/536)
- [Description List](https://github.com/Capgemini/dcx-react-library/issues/502)
- [Blockquote](https://github.com/Capgemini/dcx-react-library/issues/531)
- [Form Input](https://github.com/Capgemini/dcx-react-library/issues/578)
- [DescriptionList](https://github.com/Capgemini/dcx-react-library/issues/587)
- [Radio Button](https://github.com/Capgemini/dcx-react-library/issues/580)
- [RadioGroup](https://github.com/Capgemini/dcx-react-library/issues/608)
- [Checkbox](https://github.com/Capgemini/dcx-react-library/issues/598)
- [Checkbox Group](https://github.com/Capgemini/dcx-react-library/issues/579)

**New Components**

- [Accordion](https://github.com/Capgemini/dcx-react-library/issues/209)
- [ButtonGroup](https://github.com/Capgemini/dcx-react-library/issues/458)
- [Card](https://github.com/Capgemini/dcx-react-library/issues/550)

**Enhancement**

- [Autocomplete - Add option to show all values](https://github.com/Capgemini/dcx-react-library/issues/292)
- [Button - should allow to pass an html content](https://github.com/Capgemini/dcx-react-library/issues/563)
- [Checkbox - add error state](https://github.com/Capgemini/dcx-react-library/issues/581)
- [Autocomplete - Adds close on blur and moves accessibility status text to new location](https://github.com/Capgemini/dcx-react-library/issues/644)

**A11y**

- [remove tab index if not set](https://github.com/Capgemini/dcx-react-library/pull/630)
- [Button component - does not render the aria-label attribute properly](https://github.com/Capgemini/dcx-react-library/issues/618)
- [Tab - Actionable Element](https://github.com/Capgemini/dcx-react-library/issues/629)
- [FormRadio and FormInput - does not offer a capability to not add an aria-label](https://github.com/Capgemini/dcx-react-library/issues/621)
- [FormInput - should not have a tabindex defined](https://github.com/Capgemini/dcx-react-library/issues/623)
- [FormInput - An aria attribute has been given an invalid value](https://github.com/Capgemini/dcx-react-library/issues/631)
- [Autocomplete - is not accessible and needs to be adjusted](https://github.com/Capgemini/dcx-react-library/issues/624)
- [Details - contains a default TabIndex](https://github.com/Capgemini/dcx-react-library/issues/640)

**Bug**

- [TabGroup - key prop](https://github.com/Capgemini/dcx-react-library/issues/538)
- [TabGroup - displaying incorrect CSS](https://github.com/Capgemini/dcx-react-library/issues/565)
- [Select - when you pass the default value it doesn't allow to change on select](https://github.com/Capgemini/dcx-react-library/issues/572)
- [Heading - does no apply the css correctly](https://github.com/Capgemini/dcx-react-library/issues/610)
- [Form input - props wrong typing and expose input ref](https://github.com/Capgemini/dcx-react-library/issues/626)

**Documentation**

- [design system](https://github.com/Capgemini/dcx-react-library/issues/517)
- [Group new components within Storybook](https://github.com/Capgemini/dcx-react-library/issues/513)
- [google crowler](https://github.com/Capgemini/dcx-react-library/issues/548)
- [Update storybook documentation to include design system](https://github.com/Capgemini/dcx-react-library/issues/547)

**Dependencies**

- [remove CRA from Example and replace with Vite](https://github.com/Capgemini/dcx-react-library/issues/599)
- [Close vulnerabilities](https://github.com/Capgemini/dcx-react-library/issues/526)

**Breaking Changes**

- [Autocomplete - adding hiddenErrorText as mandatory](https://github.com/Capgemini/dcx-react-library/issues/638)

**Upgrade notes**

- If you upgrading from a previous release and you use the Autocomplete component it will requires the addition of a new property called **hiddenErrorText**.
This property will require a string value to be set and provides a visually hidden text for screen readers to make your component fully accessible
å

## 0.8.0 (15/09/2023)

<a name="0.8.0"></a>

[Autocomplete - changing defaultValue prop has no affect](https://github.com/Capgemini/dcx-react-library/issues/455)
[Autocomplete - doesn't auto scroll for filtered list on keydown](https://github.com/Capgemini/dcx-react-library/issues/470)
[Button - add new properties](https://github.com/Capgemini/dcx-react-library/issues/466)
[Tabs - non-js compliant](https://github.com/Capgemini/dcx-react-library/issues/283)
- [Autocomplete - changing defaultValue prop has no affect](https://github.com/Capgemini/dcx-react-library/issues/455)
- [Autocomplete - doesn't auto scroll for filtered list on keydown](https://github.com/Capgemini/dcx-react-library/issues/470)
- [Button - add new properties](https://github.com/Capgemini/dcx-react-library/issues/466)
- [Tabs - non-js compliant](https://github.com/Capgemini/dcx-react-library/issues/283)

**New components**
[Code Snippet](https://github.com/Capgemini/dcx-react-library/issues/500)
[Breadcrumbs](https://github.com/Capgemini/dcx-react-library/issues/415)
[Preformatted Text](https://github.com/Capgemini/dcx-react-library/issues/503)
[Abbreviate](https://github.com/Capgemini/dcx-react-library/issues/497)
[Highlight](https://github.com/Capgemini/dcx-react-library/issues/498)
[List item](https://github.com/Capgemini/dcx-react-library/issues/453)
[Blockquote](https://github.com/Capgemini/dcx-react-library/issues/499)
[Keyboard Shortcut](https://github.com/Capgemini/dcx-react-library/issues/501)
[Paragraph](https://github.com/Capgemini/dcx-react-library/issues/455)
[Insert Text](https://github.com/Capgemini/dcx-react-library/issues/452)
[Link](https://github.com/Capgemini/dcx-react-library/issues/467)
[Label](https://github.com/Capgemini/dcx-react-library/issues/466)
[Heading](https://github.com/Capgemini/dcx-react-library/issues/450)

- [Code Snippet](https://github.com/Capgemini/dcx-react-library/issues/500)
- [Breadcrumbs](https://github.com/Capgemini/dcx-react-library/issues/415)
- [Preformatted Text](https://github.com/Capgemini/dcx-react-library/issues/503)
- [Abbreviate](https://github.com/Capgemini/dcx-react-library/issues/497)
- [Highlight](https://github.com/Capgemini/dcx-react-library/issues/498)
- [List item](https://github.com/Capgemini/dcx-react-library/issues/453)
- [Blockquote](https://github.com/Capgemini/dcx-react-library/issues/499) -[Keyboard Shortcut](https://github.com/Capgemini/dcx-react-library/issues/501)
- [Paragraph](https://github.com/Capgemini/dcx-react-library/issues/455)
- [Insert Text](https://github.com/Capgemini/dcx-react-library/issues/452)
- [Link](https://github.com/Capgemini/dcx-react-library/issues/467)
- [Label](https://github.com/Capgemini/dcx-react-library/issues/466)
- [Heading](https://github.com/Capgemini/dcx-react-library/issues/450)

**Documentation**
[clientOnly](https://github.com/Capgemini/dcx-react-library/issues/459)
[Storybook - v7](https://github.com/Capgemini/dcx-react-library/issues/473)

- [clientOnly](https://github.com/Capgemini/dcx-react-library/issues/459)
- [Storybook - v7](https://github.com/Capgemini/dcx-react-library/issues/473)

**Design system - not publicly available yet... stay tuned ;)**
[Button](https://github.com/Capgemini/dcx-react-library/issues/468)
[Select](https://github.com/Capgemini/dcx-react-library/issues/469)
[List Item](https://github.com/Capgemini/dcx-react-library/issues/487)
[Heading](https://github.com/Capgemini/dcx-react-library/issues/484)
[Insert Text](https://github.com/Capgemini/dcx-react-library/issues/486)
[Paragraph](https://github.com/Capgemini/dcx-react-library/issues/488)
[Label](https://github.com/Capgemini/dcx-react-library/issues/485)

- [Button](https://github.com/Capgemini/dcx-react-library/issues/468)
- [Select](https://github.com/Capgemini/dcx-react-library/issues/469)
- [List Item](https://github.com/Capgemini/dcx-react-library/issues/487)
- [Heading](https://github.com/Capgemini/dcx-react-library/issues/484)
- [Insert Text](https://github.com/Capgemini/dcx-react-library/issues/486)
- [Paragraph](https://github.com/Capgemini/dcx-react-library/issues/488)
- [Label](https://github.com/Capgemini/dcx-react-library/issues/485)

## 0.7.0 (27/03/2023)

Expand Down