Skip to content

Latest commit

 

History

History
1028 lines (550 loc) · 46.4 KB

CHANGELOG.md

File metadata and controls

1028 lines (550 loc) · 46.4 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

16.0.4 (2024-02-27)

Note: Version bump only for package @sb1/ffe-form-react

16.0.3 (2024-02-26)

Note: Version bump only for package @sb1/ffe-form-react

16.0.2 (2024-02-26)

Note: Version bump only for package @sb1/ffe-form-react

16.0.1 (2024-02-26)

Note: Version bump only for package @sb1/ffe-form-react

16.0.0 (2024-02-23)

Bug Fixes

  • ffe-form-react: align radio button in top when element breaks (10572b3)

BREAKING CHANGES

  • ffe-form-react: new markup

15.0.0 (2024-02-22)

Bug Fixes

  • ffe-form-react: center checkbox (90a12e4)

BREAKING CHANGES

  • ffe-form-react: Markup has changed

14.0.16 (2024-02-14)

Note: Version bump only for package @sb1/ffe-form-react

14.0.15 (2024-02-13)

Note: Version bump only for package @sb1/ffe-form-react

14.0.14 (2024-02-13)

Note: Version bump only for package @sb1/ffe-form-react

14.0.13 (2024-02-12)

Note: Version bump only for package @sb1/ffe-form-react

14.0.12 (2024-02-07)

Note: Version bump only for package @sb1/ffe-form-react

14.0.11 (2024-02-05)

Note: Version bump only for package @sb1/ffe-form-react

14.0.10 (2024-02-05)

Note: Version bump only for package @sb1/ffe-form-react

14.0.9 (2024-01-16)

Note: Version bump only for package @sb1/ffe-form-react

14.0.8 (2023-12-13)

Note: Version bump only for package @sb1/ffe-form-react

14.0.7 (2023-11-27)

Bug Fixes

  • ffe-form-react: Tar ibruk ny versjon av ffe-input-group (6993008)

14.0.6 (2023-11-10)

Note: Version bump only for package @sb1/ffe-form-react

14.0.5 (2023-11-07)

Bug Fixes

  • ffe-form-react: fix type for ref for tooltip (920f65c)

14.0.4 (2023-11-03)

Note: Version bump only for package @sb1/ffe-form-react

14.0.3 (2023-11-02)

Bug Fixes

  • ffe-form-react: oppdater symbol implementasjon) (cf3d8c8)

14.0.2 (2023-10-19)

Note: Version bump only for package @sb1/ffe-form-react

14.0.1 (2023-10-13)

Note: Version bump only for package @sb1/ffe-form-react

14.0.0 (2023-10-13)

Bug Fixes

  • ffe-form-react: bytter ut ffe-icons med ffe-symbols (e9da2ad)

BREAKING CHANGES

  • ffe-form-react: ikoner hentes nå inn via en ny pakke og med en ny implementasjon

13.0.4 (2023-10-11)

Note: Version bump only for package @sb1/ffe-form-react

13.0.3 (2023-09-15)

Note: Version bump only for package @sb1/ffe-form-react

13.0.2 (2023-07-24)

Bug Fixes

  • ffe-form-react: definerer proptypes på errorfieldmessage (7c453ae)

13.0.1 (2023-07-21)

Bug Fixes

  • ffe-form-react: legger til manglende klassedeklarasjon (d94533b)

13.0.0 (2023-07-20)

Features

  • ffe-form-react: skiller ut textlike input i egen komponent (f0fd633)

BREAKING CHANGES

  • ffe-form-react: Input som bruker textLike-modifieren må ta i bruk InputTextLike

12.1.1 (2023-07-04)

Bug Fixes

  • ffe-form-react: add isMobileNumber to PhoneNumberProps (24f01e7)

12.1.0 (2023-07-03)

Features

  • ffe-form-react: legg til isMobileNumber prop for å endre labeltekst (007a30e)

12.0.0 (2023-06-28)

Bug Fixes

  • ffe-form-react: tar i bruk ikoner fra ffe-icons i fieldmessage (b6e5f68)

BREAKING CHANGES

  • ffe-form-react: fieldmessage har ny styling- og markupstruktur

feat(ffe-form-react): default aria-role på fieldmessage

fix(ffe-form-react): begrenser role-proptype til utvalgte verdier

11.0.11 (2023-06-02)

Bug Fixes

  • ffe-form-react: dont set aria-describedby when child element is hidden (e348e55)

11.0.10 (2023-05-24)

Note: Version bump only for package @sb1/ffe-form-react

11.0.9 (2023-04-28)

Bug Fixes

  • ffe-form-react: use react.htmlprops instead of react.componentprops (66cf878)

11.0.8 (2023-04-27)

Bug Fixes

  • ffe-form-react: use react.componentsprops instead of react.htmlprops (f1860d2)

11.0.7 (2023-04-18)

Bug Fixes

  • ffe-form-react: bytte plassering på span og div i tooltip (0cba1b6)

11.0.6 (2023-02-23)

Bug Fixes

  • ffe-form-react: correct type definitions for onCountryCodeChange and onNumberChange (9f6b6fe)

11.0.5 (2023-02-08)

Note: Version bump only for package @sb1/ffe-form-react

11.0.4 (2023-01-19)

Bug Fixes

  • ffe-form-react: legg til manglende textRightAlign prop i ts (1c9e63d)
  • ffe-form-react: make text alig right ts type optional (e54999d)

11.0.3 (2022-12-20)

Note: Version bump only for package @sb1/ffe-form-react

11.0.2 (2022-12-19)

Note: Version bump only for package @sb1/ffe-form-react

11.0.1 (2022-12-16)

Note: Version bump only for package @sb1/ffe-form-react

11.0.0 (2022-12-05)

Features

  • ffe-form-react: update internal dependencies (7a13c1c)

BREAKING CHANGES

  • ffe-form-react: Makes the styling package @sb1/ffe-form a required dependency and removes it as peer dependency.

10.1.0 (2022-11-09)

Features

  • ffe-form-react: added forward ref to tooltip (98ff415)

10.0.3 (2022-10-28)

Note: Version bump only for package @sb1/ffe-form-react

10.0.2 (2022-10-25)

Note: Version bump only for package @sb1/ffe-form-react

10.0.1 (2022-09-09)

Bug Fixes

  • ffe-form-react: fjern tester der aria-invalid blir passed down til radiobutton (0d22d7a)

10.0.0 (2022-08-18)

Bug Fixes

  • ffe-form-react: fjern støtte for aria-invalid på radiobtn (49e1d75)

BREAKING CHANGES

  • ffe-form-react: fjerner støtte for aria-invalid på radiobtn/BaseRadioButton

9.1.6 (2022-08-18)

Bug Fixes

  • ffe-form: la til spacing mellom description og input-felt (8e516d5)

9.1.5 (2022-06-14)

Bug Fixes

  • ffe-form-react: Tillat null som selectedValue når ingen radiobutton er valgt, siden undefined gjør at den blir uncontrolled (36bd432)

9.1.4 (2022-06-02)

Bug Fixes

  • ffe-form-react: fix declaration for ToggleSwitch and Checkbox (ea2baee)

9.1.3 (2022-05-31)

Bug Fixes

9.1.2 (2022-04-21)

Bug Fixes

  • ffe-form-react: remove children prop from RadioSwitch (f1041fe)

9.1.1 (2022-04-13)

Bug Fixes

  • ffe-form-react: add children props for render-as-a-child (44834ed)

9.1.0 (2022-03-04)

Features

  • ffe-form-react: i18n for av- og på-tekst (2558da7)
  • ffe-form-react: ny toggleswitch-komponent (816100e)

9.0.8 (2022-02-18)

Note: Version bump only for package @sb1/ffe-form-react

9.0.7 (2022-01-27)

Note: Version bump only for package @sb1/ffe-form-react

9.0.6 (2022-01-27)

Note: Version bump only for package @sb1/ffe-form-react

9.0.5 (2022-01-25)

Note: Version bump only for package @sb1/ffe-form-react

9.0.4 (2022-01-18)

Note: Version bump only for package @sb1/ffe-form-react

9.0.3 (2021-12-17)

Note: Version bump only for package @sb1/ffe-form-react

9.0.2 (2021-12-10)

Bug Fixes

  • ffe-form-react: use buildtool for transpiling (4d46c6a), closes #1294

9.0.1 (2021-11-25)

Bug Fixes

9.0.0 (2021-11-19)

Bug Fixes

  • ffe-form-react: gjør name prop required (a6ad97e)

BREAKING CHANGES

  • ffe-form-react: Name property i RadioButtonInputGroup er nå required da alle radio buttons skal ha navn.

8.2.0 (2021-11-02)

Features

  • ffe-form-react: legg til textRightAlign prop for å høyre justere tekst i inputfelt (46bf73d)

8.1.2 (2021-10-19)

Bug Fixes

  • ffe-form-react: fjerner gjenglemte referanser til --dark (92d22c9)

8.1.1 (2021-10-08)

Note: Version bump only for package @sb1/ffe-form-react

8.1.0 (2021-07-16)

Features

  • ffe-form-react: fieldMessage as function (16137d2)

8.0.0 (2021-06-21)

Features

  • ffe-form-react: Make PhoneNumber accept FieldMessage (755c10b)

BREAKING CHANGES

  • ffe-form-react: Replaces countryCodeInvalid and numberInvalid with countryCodeFieldMessage, numberFieldMessage and countryCodeAndNumberFieldMessage.

This commit changes how the components shows invalidation errors. It replaces countryCodeInvalid and numberInvalid with countryCodeFieldMessage, numberFieldMessage and countryCodeAndNumberFieldMessage. This makes it possible to render an error message instead of just making the input field red.

7.3.0 (2021-06-08)

Features

  • ffe-form-react: Extend Description prop in RadioButtonInputGroup (bcd1642)

7.2.10 (2021-03-15)

Bug Fixes

  • ffe-form-react: broadens version of peer dependencies (79a58a7)

7.2.9 (2021-03-03)

Bug Fixes

  • ffe-form-react: Only use role="status" when tooltip is expanded (f96f84e)

7.2.8 (2021-02-11)

Bug Fixes

  • ffe-form-react: Add role="status" to expanded content in Tooltip (db63aea)

7.2.7 (2021-02-05)

Note: Version bump only for package @sb1/ffe-form-react

7.2.6 (2021-02-04)

Note: Version bump only for package @sb1/ffe-form-react

7.2.5 (2021-02-03)

Bug Fixes

  • ffe-form-react: onclick on tooltip should be optional(ts) (4921274)

7.2.4 (2021-02-03)

Bug Fixes

  • packages/ffe-form-react/package.json to reduce vulnerabilities (8233f93)

7.2.3 (2021-02-02)

Bug Fixes

  • ffe-form-react: reduce vulnerabilities (40fcdff)

7.2.2 (2021-01-27)

Note: Version bump only for package @sb1/ffe-form-react

7.2.1 (2020-10-08)

Bug Fixes

  • ffe-form-react: using class message instead og error (f1b3268)

7.2.0 (2020-10-02)

Features

  • ffe-form-react: add role="alert" to ErrorFieldMessage (ff6ea6c)

7.1.0 (2020-09-23)

Features

  • ffe-form-react: add aria-describedby to InputGroup (50610c2)

7.0.1 (2020-08-07)

Bug Fixes

  • ffe-form-react: add aria-describedby to radio block description (6697304)

7.0.0 (2020-07-31)

Bug Fixes

  • ffe-form-react: remove checkbox props (9e6b39b)

BREAKING CHANGES

  • ffe-form-react: Instead of having an innerRef prop, use the more modern approach with React.forwardRef. This means that instead of using the innerRef prop, refs should be passed as they would to any other React element.
- <Checkbox innerRef={ref} />
+ <Checkbox ref={ref} />

While we're doing breaking changes anyway, removed support from the two deprecated props label and valid. Use children and aria-invalid instead.

- <Checkbox invalid={true} label="To arr is pirate" />
+ <Checkbox aria-invalid={true}>To arr is pirate</Checkbox>

6.0.6 (2020-05-19)

Note: Version bump only for package @sb1/ffe-form-react

6.0.5 (2020-03-17)

Note: Version bump only for package @sb1/ffe-form-react

6.0.4 (2020-02-26)

Note: Version bump only for package @sb1/ffe-form-react

6.0.3 (2020-02-26)

Bug Fixes

  • ffe-form-react: update uuid to version 7.0.0 (f8c993d)

6.0.2 (2020-02-10)

Bug Fixes

  • ffe-form-react: fixing incorrect types (cd4614b)

6.0.1 (2020-01-24)

Bug Fixes

  • ffe-form-react: correctly handle non-undefined selected value (907e56a)

6.0.0 (2020-01-16)

Features

  • ffe-form-react: added support for passing ref to radio buttons (845ce6a)

BREAKING CHANGES

  • ffe-form-react: selectedValue now overrides checked, when both props are passed to radio buttons

This version offers new optional properties (innerRef on RadioButton and RadioBlock, leftInnerRef and rightInnerRef on RadioSwitch), which is passed as refs to input elements On BaseRadioButton, checked attribute is only set if the selectedValue prop is set, so that re-render is no longer required when radio buttons are clicked

5.3.0 (2020-01-16)

Bug Fixes

  • ffe-form-react: fix type definition for inputgroup (ef89146)
  • ffe-form-react: fix type definition on onchange (6a7fc54)

Features

  • ffe-form-react: added support for passing ref to input elements (5bb478e)

5.2.0 (2019-11-28)

Features

  • ffe-form-react: Added new prop labelClass to RadioBlock. (8c08838)

5.1.2 (2019-11-25)

Bug Fixes

  • ffe-form-react: Ensure type definitions for type script is correct. (5866dea)

5.1.1 (2019-11-20)

Bug Fixes

  • ffe-form-react: spreading labelId on the container causes a warning (ccb2803)

5.1.0 (2019-11-12)

Features

  • ffe-form-react: possible to add label id to input groups (18ae5c2)

5.0.6 (2019-11-07)

Bug Fixes

  • ffe-form-react: allow number values in prop types (cb1c093)

5.0.5 (2019-10-16)

Note: Version bump only for package @sb1/ffe-form-react

5.0.4 (2019-09-02)

Bug Fixes

  • ffe-form-react: Moved tooltip button id generation to constructor to avoid unnecessary DOM-updates. (1c0136c)

5.0.3 (2019-08-30)

Bug Fixes

  • ffe-form-react: Added generated id on tooltip button to avoid warnings when used in forms validated with formik (expects id on every input or button field). (6327676)

5.0.2 (2019-08-28)

Note: Version bump only for package @sb1/ffe-form-react

5.0.1 (2019-08-28)

Bug Fixes

  • ffe-form-react: use our own Collapse component (548e30c)

5.0.0 (2019-08-27)

chore

  • bump React to 16.9 to allow for using hooks etc (e3901f1)

BREAKING CHANGES

  • peerDep of React is raised to 16.9. While this in itself isn't a breaking change, it allows for the use of hooks in later releases. Such changes would just be a minor version, or even a patch, but without this major version bump it would result in a runtime error for consumers.

4.9.1 (2019-08-14)

Bug Fixes

  • ffe-form-react: Bug fixes for propType and typescript type-definitions for InputGroup: (ad962c3)

4.9.0 (2019-06-27)

Features

  • ffe-form-react: Adding inputId as an optional prop for InputGroup to be used as id on the Input child element instead of the generated one. (05a6aaf)

4.8.1 (2019-06-26)

Note: Version bump only for package @sb1/ffe-form-react

4.8.0 (2019-05-21)

Bug Fixes

  • ffe-form-react: Fix for extra error padding (1434872)
  • ffe-form-react: Fix tooltip bug in RadioButtonInputGroup (076b5e8), closes #631

Features

  • ffe-form-react: RadioButtonInputGroup supports "description" (73b9d8d), closes #641 #642

4.7.1 (2019-05-15)

Bug Fixes

  • ffe-form-react: Tooltip handles aria-controls better (4d9a6be), closes #633

4.7.0 (2019-05-14)

Features

  • ffe-form-react: Bottom padding of input controls (c5621a6), closes #381

4.6.0 (2019-05-10)

Bug Fixes

  • ffe-form-react: ARIA improvements to Tooltip (f9f0372), closes #504
  • ffe-form-react: propagate dark prop (33618fe), closes #613

Features

  • ffe-form-react: Added type definitions for typescript (a1ac175)

4.5.1 (2019-04-25)

Bug Fixes

  • ffe-form-react: Fix linting errors (d293f00)

4.5.0 (2019-04-23)

Features

  • ffe-form-react: Add showChildren prop to RadioBlock (99db6e4)

4.4.3 (2019-02-19)

Note: Version bump only for package @sb1/ffe-form-react

4.4.2 (2018-12-18)

Note: Version bump only for package @sb1/ffe-form-react

4.4.1 (2018-12-11)

Bug Fixes

  • Build tree shakeable packages (fb4a9ea)

4.4.0 (2018-12-05)

Features

  • ffe-form-react: Allow node as label (ef3a58f), closes #522

4.3.1 (2018-12-04)

Note: Version bump only for package @sb1/ffe-form-react

4.3.0 (2018-11-29)

Features

  • ffe-form-react: New components (98620ce)

4.2.3 (2018-11-26)

Note: Version bump only for package @sb1/ffe-form-react

4.2.2 (2018-11-09)

Note: Version bump only for package @sb1/ffe-form-react

4.2.1 (2018-11-08)

Bug Fixes

  • ffe-form-react: Fix peer dependency version (ff0958d), closes #469

4.2.0 (2018-10-25)

Bug Fixes

  • ffe-form-react: Added defaultProps false for dark variant. (6309011)
  • ffe-form-react: Fix a classNames definition (97a8c27)

Features

  • ffe-forms-react: Added dark property for Input, Label, PhoneNumber, TextArea and Tooltip with documentation (0201f1c)

4.1.0 (2018-10-15)

Features

  • ffe-form-react: Use react-css-collapse (3bd1f85)

4.0.1 (2018-10-12)

Bug Fixes

  • ffe-form-react: Make sure InputGroup's onTooltipToggle is not called twice. (a188400), closes #457

4.0.0 (2018-10-04)

Features

  • ffe-form-react: Add support for forwarding refs (cdc58c6)

BREAKING CHANGES

  • ffe-form-react: Requires react@^16.3

This commit adds support for forwarding refs to the Input and TextArea components, so consumers can handle focus programmatically.

3.2.4 (2018-09-24)

Bug Fixes

  • ffe-form-react: fixed async issues with setState (4cad2d8)

3.2.3 (2018-08-09)

Note: Version bump only for package @sb1/ffe-form-react

3.2.2 (2018-06-29)

Note: Version bump only for package @sb1/ffe-form-react

3.2.1 (2018-06-20)

Bug Fixes

  • ffe-form-react: added peerDependency to ffe-core@^13.0.0 (76ec2eb)

3.2.0 (2018-06-19)

Bug Fixes

  • ffe-form-react: add expectations and fix tests (eccd46c)

Features

  • ffe-form-react: Add new description prop to InputGroup (d839b85), closes #291

3.1.1 (2018-05-22)

Bug Fixes

  • ffe-form-react: Make classnames a dependency (931ffce)

3.1.0 (2018-04-19)

Features

  • ffe-form-react: Adds a PhoneNumber component to ffe-form-react (6ec0f92)

3.0.4 (2018-03-27)

Note: Version bump only for package @sb1/ffe-form-react

3.0.3 (2018-03-13)

Note: Version bump only for package @sb1/ffe-form-react

3.0.2 (2018-03-07)

Bug Fixes

  • Correct peerDependencies after breaking change (aab59ce)

3.0.1 (2018-03-02)

Bug Fixes

  • Correct peerDependencies after breaking change (4318363)

3.0.0 (2018-02-25)

Bug Fixes

  • remove all references to internal system (ff22340)

Chores

BREAKING CHANGES

  • All packages have been renamed to add the @sb1 scope.

See links 1 and 2 to read more about package scopes.

Unfortunately this requires you update both your dependencies in package.json and all import or require statements in your code. Also, you unfortunately have to upgrade all FFE packages at once due to dependency between packages. If you are on the latest version prior to this breaking change the upgrade should be a matter of updating package.json with new package names and versions, and updating your imports.

To help find the proper package versions you can either browse to the packages you need or check out the list of Git tags either on Github 3 or by cloning the repository and running the git tag command. All package versions get a tag in the format package@version.

Update your package.json with the latest package version and add the @sb1 scope to the package name:

- "ffe-core": "11.0.2",
+ "@sb1/ffe-core": "11.0.2",

Scoped packages all get put in a subdirectory in node_modules/. In our case packages will be put in the node_modules/@sb1/ directory. If your build depends on file paths (for instance for copying fonts) you need to update that path to include the scope.

The directory structure also means you have to update your imports, both in Less and in JavaScript.

Using less-plugin-npm-import:

- @import 'npm://ffe-core/less/ffe';
+ @import 'npm://@sb1/ffe-core/less/ffe';

Using Webpack:

- @import '~ffe-core/less/ffe';
+ @import '~@sb1/ffe-core/less/ffe';

Using plain old paths:

- @import '../path/to/node_modules/ffe-core/less/ffe';
+ @import '../path/to/node_modules/@sb1/ffe-core/less/ffe';

JavaScript import:

- import { ActionButton } from 'ffe-buttons-react';
+ import { ActionButton } from '@sb1/ffe-buttons-react';

JavaScript require:

- const { ActionButton } = require('ffe-buttons-react').default;
+ const { ActionButton } = require('@sb1/ffe-buttons-react').default;

2.2.9 (2018-02-23)

Note: Version bump only for package ffe-form-react

2.2.8 (2018-02-22)

Note: Version bump only for package ffe-form-react

2.2.7 (2018-02-20)

Note: Version bump only for package ffe-form-react

2.2.6 (2018-02-15)

Note: Version bump only for package ffe-form-react

2.2.5 (2018-02-01)

Note: Version bump only for package ffe-form-react

2.2.4 (2018-01-31)

Note: Version bump only for package ffe-form-react

2.2.3 (2018-01-19)

Note: Version bump only for package ffe-form-react

2.2.2 (2018-01-19)

Note: Version bump only for package ffe-form-react

2.2.1 (2018-01-10)

Note: Version bump only for package ffe-form-react

2.2.0

  • Allow specification of tabIndex for Tooltip, defaults to undefined.

2.1.0

  • Allow arbitrary React nodes in the fieldMessage prop.
  • Correctly set .ffe-tooltip__icon--active class on tooltip button when expanded.
  • Add an optional onTooltipToggle to InputGroup which will be invoked on toggling tooltip if the tooltip is provided as a string.
  • Tooltip can be rendered with no children, which leads to it only rendering its button-controller.
  • label is no longer a required prop for InputGroup.

2.0.2

  • Ensure InputGroup's automatic ID is a valid ID.
  • Allow Label's htmlFor prop to be optional

2.0.1

  • Fix failing prop type for InputGroup

2.0.0

  • BREAKING: InputGroup no longer supports sending in your own ID - it will now be generated and applied automatically when needed.
  • InputGroup now supports sending a function as a child, which lets you deal with sending in several children (i.e. text nodes). See the README.md for how to use this.
  • InputGroup will throw a descriptive error when used with several children instead of with just one.

1.0.0

  • First release.