diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..38f11c64 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d450234..d67f6833 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -Version 7.0.7 +Version 7.9.0 # Changelog @@ -7,15 +7,129 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## 7.9.0 - 2025-05-08 + +### Added + +- Can use the button component as a link with the `link` prop. +- `renderImgFunction` in `Image` to allow custom image rendering. +- `renderLinkFunction` in `Button` to allow custom link rendering. + +## 7.8.1 - 2025-03-24 + +### Fixed + +- Datepicker fix; allow to clear a controlled Date(Range)Picker + +## 7.8.0 - 2025-02-19 + +### Fixed + +- Updated `react-tooltip` package to make the library work with React v.19 +- Fixed multiple svg fetch requests for the `Icon` component + +## 7.7.0 - 2025-01-23 + +### Fixed + +- WCAG issues Date(Range)Picker: correct aria and role attributes & trap focus inside modal `Calendar` component + +## 7.6.0 - 2024-12-10 + +### Added + +- `DateRangePicker` component +- `open`, `onCalendarToggle` and `onCalendarToggle` properties added to make opening and closing the `Calendar` controlled in the `Datepicker` + +### Fixed + +- The second argument of the Datepicker's `onChange` function returns now correctly the input value of the text field. +- An invalid icon is not rendered in the dom. + +## 7.5.0 - 2024-02-09 + +### Added + +- Possibility to override the `key` of autocomplete items +- Can hide the max size label in `Upload` component with the prop `hideMaxSizeLabel` +- Allow to provide a custom link render function to the `Card` component + +### Fixed + +- The upload component doesn't render an `ul` element anymore if no files are uploaded +- The table now renders hyperlinks correctly + +## 7.4.1 - 2024-06-08 + +### Fixed + +- Fixed caption being required by default + +## 7.4.0 - 2024-05-08 + +### Added + +- Added caption to Table + +### Changed + +- Improved accessibility of the input's character counter + +### Changed + +- Core branding update 6.6.4 + +## 7.3.1 - 2024-04-16 + +### Fixed + +- The `indeterminate` state of a Checkbox is now fully controlled + +## 7.3.0 - 2024-03-27 + +### Fixed + +- Datepicker recalculate it's label and value when the controlled value changes + +### Changed + +- TextField and TextArea components can have a charCounter when `maxLength` is not set (The default counter's text changes accordingly). +- The TextField and TextArea components' charCounter text get a danger style applied when the `maxLength` has been reached. +- It is now possible to keep typing in the TextField and TextArea components, even if the `maxLength` has been reached. This can still be blocked by setting the `maxLengthBlocksInput` prop to `true`. This prop is `false` by default to be WCAG compliant. + +## 7.2.0 - 2024-03-25 + +### Fixed + +- Datepicker doesn't crash when providing it an invalid date as value +- Controlled Calendar doesn't crash when providing it an invalid date as value ### Changed -- Replaced defaultProps with default arguments. +- Core branding update 6.6.1 +- Datepicker `onChange` function is now triggered for invalid dates (return empty string) +- Datepicker `onChange` function returns the input string value as second parameter + +### Added + +- Datepicker `errorMsgFunction` to fully customize the error based on the input + +## 7.1.1 - 2024-03-07 + +### Added + +- Allow an onChange listener on the input field of the Datepicker. + +## 7.1.0 - 2024-02-19 ### Fixed - Upload component: A successfully uploaded no longer has a `danger` themed delete button. +- Replaced defaultProps with default arguments (defaultProps are deprecated in React 18). + +### Added + +- Definition list items can have a `qaTerm` and `qaDescription` properties for use as data-qa attributes on the respective terms and descriptions. ## 7.0.7 diff --git a/documentation/playground/index.html b/documentation/playground/index.html index d75c2f98..3ddef8fd 100644 --- a/documentation/playground/index.html +++ b/documentation/playground/index.html @@ -5,8 +5,8 @@ Codestin Search App - - + + diff --git a/documentation/playground/src/atoms/ButtonExamples.tsx b/documentation/playground/src/atoms/ButtonExamples.tsx index c37fe8b8..4c6b54a6 100644 --- a/documentation/playground/src/atoms/ButtonExamples.tsx +++ b/documentation/playground/src/atoms/ButtonExamples.tsx @@ -25,6 +25,12 @@ export function ButtonExamples() { Warning outline + ); diff --git a/documentation/playground/src/atoms/ListExamples.tsx b/documentation/playground/src/atoms/ListExamples.tsx index 41f3f091..779ca8f7 100644 --- a/documentation/playground/src/atoms/ListExamples.tsx +++ b/documentation/playground/src/atoms/ListExamples.tsx @@ -17,7 +17,7 @@ export function ListExamples() {

Lists

Definition

- +

Functional

Clicked on {nameClicked}

diff --git a/documentation/playground/src/atoms/TextAreaExamples.tsx b/documentation/playground/src/atoms/TextAreaExamples.tsx index 5910c9e0..10462d70 100644 --- a/documentation/playground/src/atoms/TextAreaExamples.tsx +++ b/documentation/playground/src/atoms/TextAreaExamples.tsx @@ -14,6 +14,7 @@ export function TextAreaExamples() { value={firstTextArea} charCounter maxLength={100} + maxLengthBlocksInput={true} />