All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
24.0.37 (2025-02-26)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.36 (2025-02-24)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.35 (2025-02-19)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.34 (2025-02-07)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.33 (2025-01-27)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.32 (2025-01-22)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.31 (2025-01-21)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.30 (2025-01-21)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.29 (2025-01-14)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.28 (2025-01-14)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.27 (2024-11-20)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.26 (2024-11-19)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.25 (2024-11-06)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.24 (2024-10-23)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.23 (2024-10-21)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.22 (2024-10-18)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.21 (2024-09-27)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.20 (2024-09-27)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.19 (2024-09-26)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.18 (2024-09-24)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.17 (2024-09-18)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.16 (2024-09-10)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.15 (2024-09-06)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.14 (2024-09-06)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.13 (2024-09-05)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.12 (2024-09-05)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.11 (2024-09-05)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.10 (2024-09-04)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.9 (2024-08-30)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.8 (2024-08-29)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.7 (2024-08-23)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.6 (2024-08-13)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.5 (2024-08-13)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.4 (2024-08-06)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.3 (2024-07-23)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.2 (2024-07-22)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.1 (2024-07-19)
Note: Version bump only for package @sb1/ffe-buttons-react
24.0.0 (2024-07-15)
- ffe-buttons-react: upgrade react to >=18.2.0 (920d2d5)
- ffe-buttons-react: Dropped support for React <18.2.0
23.0.8 (2024-07-10)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.7 (2024-07-02)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.6 (2024-06-18)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.5 (2024-06-14)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.4 (2024-06-11)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.3 (2024-06-10)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.2 (2024-06-05)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.1 (2024-06-04)
Note: Version bump only for package @sb1/ffe-buttons-react
23.0.0 (2024-05-29)
- ffe-buttons-react: role="group" with aria label (3cab616)
- ffe-buttons-react: You will need to provide an ariaLabel
22.0.6 (2024-05-29)
Note: Version bump only for package @sb1/ffe-buttons-react
22.0.5 (2024-05-18)
Note: Version bump only for package @sb1/ffe-buttons-react
22.0.4 (2024-05-17)
Note: Version bump only for package @sb1/ffe-buttons-react
22.0.3 (2024-05-13)
Note: Version bump only for package @sb1/ffe-buttons-react
22.0.2 (2024-05-09)
Note: Version bump only for package @sb1/ffe-buttons-react
22.0.1 (2024-05-07)
- ffe-buttons-react: fixed broken icons (2fd8e82)
22.0.0 (2024-05-07)
- ffe-buttons-react: use typescript (946d225)
- ffe-buttons-react: No more manuel types so be aware. Generics are now inferred.
21.0.20 (2024-05-03)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.19 (2024-05-03)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.18 (2024-04-29)
- ffe-buttons-react: remove default props (24e531e)
21.0.17 (2024-04-25)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.16 (2024-04-23)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.15 (2024-04-18)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.14 (2024-04-11)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.13 (2024-04-10)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.12 (2024-04-08)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.11 (2024-03-14)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.10 (2024-03-13)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.9 (2024-03-08)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.8 (2024-03-05)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.7 (2024-02-28)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.6 (2024-02-26)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.5 (2024-02-26)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.4 (2024-02-22)
Note: Version bump only for package @sb1/ffe-buttons-react
21.0.3 (2024-02-14)
- ffe-buttons-react: possible to add extra classes to inline expand button (8816e02)
21.0.2 (2024-02-13)
- ffe-buttons-react: fix ts types (e7e11bd)
21.0.1 (2024-02-13)
- ffe-buttons-react: types on icons (b3c2e59)
21.0.0 (2024-02-12)
- ffe-buttons-react: use ffe-icons-react instad og ffe-symbols-react (ecbaec0)
- ffe-buttons-react: Endring krever nå at man sender med element og ikke string navn på ikon
20.0.10 (2024-02-05)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.9 (2024-02-05)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.8 (2024-01-16)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.7 (2023-12-13)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.6 (2023-11-15)
- ffe-buttons-react: øker størrelsen på ikoner i knapper (0ac454e)
20.0.5 (2023-11-10)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.4 (2023-11-07)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.3 (2023-11-03)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.2 (2023-11-02)
- ffe-buttons-react: oppdater Symbol implementering (3e91fba)
20.0.1 (2023-10-19)
Note: Version bump only for package @sb1/ffe-buttons-react
20.0.0 (2023-10-18)
- ffe-buttons-react: fjern left/right ikon på ExpandButton (5eff4e0)
- ffe-buttons-react: fjerner leftIcon og rightIcon prop på ExpandButton
19.0.0 (2023-10-13)
- ffe-buttons-react: bytt ikoner til material symbols (1f56628)
- ffe-buttons-react: endrer hvordan man sender med ikon. Fjerner leftIcon på shortcutbutton
18.0.6 (2023-10-11)
Note: Version bump only for package @sb1/ffe-buttons-react
18.0.5 (2023-09-15)
Note: Version bump only for package @sb1/ffe-buttons-react
18.0.4 (2023-08-29)
- ffe-buttons-react: erstatter fragment i expandbutton med span (f4ebf37)
18.0.3 (2023-06-19)
- ffe-buttons-react: fix MinimalBaseButtonProps (8853839)
18.0.2 (2023-04-28)
- ffe-buttons-react: minimal base button props (4a29230)
18.0.1 (2023-04-28)
- ffe-buttons-react: use react.htmlprops instead of react.componentprops (8cd93e5)
18.0.0 (2023-04-27)
- ffe-buttons-react: use react.componentsprops instead of react.htmlprops (6639e09)
- ffe-buttons-react: fix button type (5017312)
- ffe-buttons-react: "to" prop is removed. To use react router props or similar a generic must be provided.
import { LinkProps } from "react-router-dom";
return <PrimaryButton to={'somUrl'} />
17.0.3 (2023-04-11)
Note: Version bump only for package @sb1/ffe-buttons-react
17.0.2 (2023-02-08)
Note: Version bump only for package @sb1/ffe-buttons-react
17.0.1 (2022-12-19)
Note: Version bump only for package @sb1/ffe-buttons-react
17.0.0 (2022-12-05)
- ffe-buttons-react: update internal dependencies (961e579)
- ffe-buttons-react: Makes the styling package @sb1/ffe-buttons a required dependency and removes it as peer dependency.
16.0.7 (2022-10-28)
Note: Version bump only for package @sb1/ffe-buttons-react
16.0.6 (2022-09-09)
Note: Version bump only for package @sb1/ffe-buttons-react
16.0.5 (2022-08-05)
- ffe-buttons-react: legg til role på span som inneholder loading ikon (a987d11)
16.0.4 (2022-07-29)
- ffe-buttons-react: legg til aria-hidden på kryssikon (7ed2dc7)
16.0.3 (2022-07-20)
- ffe-buttons-react: legg til aria-hidden på inline og expand button ikoner (9aa7b59)
16.0.2 (2022-05-19)
16.0.1 (2022-04-12)
- ffe-buttons-react: add children type on ButtonGruop (e151283)
16.0.0 (2022-03-11)
- ffe-buttons-react: remove condensed variant of buttons, i.e. the prop
condensed
.
15.0.0 (2022-03-08)
- ffe-buttons-react: fjerner --ghost (428cbf7)
- ffe-buttons-react: sletter --ghost og tilhørende prop i react-implementasjonen
14.1.2 (2022-03-02)
Note: Version bump only for package @sb1/ffe-buttons-react
14.1.1 (2022-02-23)
Note: Version bump only for package @sb1/ffe-buttons-react
14.1.0 (2022-02-18)
- ffe-buttons-react: import icons without need for tree shaking (f856288)
14.0.12 (2022-01-27)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.11 (2022-01-27)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.10 (2022-01-25)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.9 (2022-01-24)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.8 (2021-12-17)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.7 (2021-12-10)
14.0.6 (2021-12-03)
- ffe-buttons-react: swallow klicks when button is loading (6daa3b8)
14.0.5 (2021-11-04)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.4 (2021-10-19)
- ffe-buttons-react: fjerner gjenglemte referanser til --dark (8728a6b)
14.0.3 (2021-10-18)
- ffe-buttons-react: remove disabled attribute when is-loading (d666aa1)
14.0.2 (2021-10-08)
Note: Version bump only for package @sb1/ffe-buttons-react
14.0.1 (2021-09-12)
- ffe-buttons-react: minor refactoring (222cc5f)
14.0.0 (2021-09-06)
- ffe-buttons-react: justering av utseende og transition (d192089)
- ffe-buttons-react: chevron animeres nå i Z-aksen
13.0.0 (2021-09-06)
- ffe-buttons-react: justering av utseende og transition (d192089)
- ffe-buttons-react: chevron animeres nå i Z-aksen
12.2.11 (2021-03-15)
- ffe-buttons-react: broadens version of peer dependencies (2ab2e5c)
12.2.10 (2021-02-03)
- packages/ffe-buttons-react/package.json to reduce vulnerabilities (7b4412e)
12.2.9 (2021-02-02)
- ffe-buttons-react: reduce vulnerabilities (414cf6f)
12.2.8 (2020-11-18)
Note: Version bump only for package @sb1/ffe-buttons-react
12.2.7 (2020-09-15)
Note: Version bump only for package @sb1/ffe-buttons-react
12.2.6 (2020-08-27)
Note: Version bump only for package @sb1/ffe-buttons-react
12.2.5 (2020-08-27)
- ffe-buttons-react: to property when usin react router can be object (8162b32)
12.2.4 (2020-08-04)
Note: Version bump only for package @sb1/ffe-buttons-react
12.2.3 (2020-07-30)
- ffe-buttons-react: fix InlineExpandButton types (88877ba)
- ffe-buttons-react: set InlineExpandButton type to "button" (0a02a57)
12.2.2 (2020-06-29)
Note: Version bump only for package @sb1/ffe-buttons-react
12.2.1 (2020-06-24)
Note: Version bump only for package @sb1/ffe-buttons-react
12.2.0 (2020-06-18)
- ffe-system-message-react: stop using deprecated lifecycle methods (940e0f8)
12.1.19 (2020-05-27)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.18 (2020-03-31)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.17 (2020-03-18)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.16 (2020-03-16)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.15 (2020-03-13)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.14 (2020-03-10)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.13 (2020-03-06)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.12 (2020-02-26)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.11 (2020-02-26)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.10 (2020-02-26)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.9 (2020-02-25)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.8 (2020-02-10)
- ffe-buttons-react: fixing incorrect types (654a24f)
12.1.7 (2020-01-16)
- ffe-buttons-react: fixed type definition of innerref (f5c234d)
12.1.6 (2019-12-16)
- ffe-buttons-react: ensuring typedefinition for the to prop for BaseButtonProps (9f22db6)
12.1.5 (2019-11-20)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.4 (2019-10-28)
Note: Version bump only for package @sb1/ffe-buttons-react
12.1.3 (2019-10-16)
- ffe-buttons-react: invalid markup (a447232)
12.1.2 (2019-10-09)
- ffe-buttons-react: bump prop-types (49aa321)
- ffe-buttons-react: element type for type script (b889371)
12.1.1 (2019-10-03)
- ffe-buttons-react: elementType prop type (f692c7f)
12.1.0 (2019-09-09)
- ffe-buttons-react: accept refs created by useRef (3a1d6e6)
12.0.0 (2019-08-27)
- bump React to 16.9 to allow for using hooks etc (e3901f1)
- 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.
11.3.1 (2019-08-12)
Note: Version bump only for package @sb1/ffe-buttons-react
11.3.0 (2019-05-10)
- ffe-buttons-react: Add dark style back button (444dcd7)
- ffe-buttons-react: Added type definitions for typescript (28f1208)
11.2.14 (2019-04-24)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.13 (2019-04-08)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.12 (2019-03-25)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.11 (2019-02-18)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.10 (2019-01-29)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.9 (2019-01-10)
- ffe-buttons-react: stop spreading icon prop to Button (d152176)
11.2.8 (2018-12-19)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.7 (2018-12-18)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.6 (2018-12-11)
- Build tree shakeable packages (fb4a9ea)
11.2.5 (2018-12-04)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.4 (2018-11-26)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.3 (2018-11-16)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.2 (2018-11-13)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.1 (2018-11-08)
Note: Version bump only for package @sb1/ffe-buttons-react
11.2.0 (2018-10-25)
- ffe-buttons-react: Added defaultProps false for dark variant. (98660c9)
- ffe-buttons-react: Revert some small changes in previous commit that should not have been included. (e37b868)
- ffe-buttons-react: Added dark property for ActionButton, PrimaryButton, SecondaryButton, TertiaryButton with documentation (a7b68e9)
11.1.8 (2018-10-17)
- ffe-buttons-react: fixed async issues with setState (d800bcb)
11.1.7 (2018-08-09)
11.1.6 (2018-06-14)
Note: Version bump only for package @sb1/ffe-buttons-react
11.1.5 (2018-06-04)
Note: Version bump only for package @sb1/ffe-buttons-react
11.1.4 (2018-06-04)
Note: Version bump only for package @sb1/ffe-buttons-react
11.1.3 (2018-05-29)
Note: Version bump only for package @sb1/ffe-buttons-react
11.1.2 (2018-05-04)
- ffe-buttons-react: Add space for inline expand button icon (30234e2)
- ffe-buttons-react: fix using wrong property in docs (3ab38aa)
11.1.1 (2018-05-04)
Note: Version bump only for package @sb1/ffe-buttons-react
11.1.0 (2018-04-30)
11.0.0 (2018-04-25)
- ffe-buttons-react: Restrict isLoading prop (946d6ba)
- ffe-buttons-react: Removed support for
isLoading
from any button other than ActionButton, PrimaryButton and SecondaryButton.
This commit removes support for the isLoading
prop for all other
buttons, meaning they will not be disabled or act any differently
if given an isLoading
prop of true or false.
If you are using isLoading
with any other kind of button you need
to sit down with design/ux and either start using one of those
three button types or figure out another way to show a loading indicator.
10.1.4 (2018-04-23)
- ffe-buttons-react: Loadable shortcut-buttons (2c2fe3d)
10.1.3 (2018-04-11)
Note: Version bump only for package @sb1/ffe-buttons-react
10.1.2 (2018-04-06)
Note: Version bump only for package @sb1/ffe-buttons-react
10.1.1 (2018-03-27)
Note: Version bump only for package @sb1/ffe-buttons-react
10.1.0 (2018-03-22)
- ffe-buttons-react: Add ButtonGroup (ed9e2a6)
10.0.1 (2018-03-13)
Note: Version bump only for package @sb1/ffe-buttons-react
10.0.0 (2018-03-07)
- ffe-buttons-react: Simplify implementation (e26caf6)
- ffe-buttons-react: This commit re-implements the ffe-buttons-react implementation so that it's easier to maintain for future developers.
A missing implementation, TaskButton
, is also added in this commit.
The opportunity was taken to do some minor API changes as well, since the prior implementation had some deprecated fields that could be removed.
With this change, buttons are now much more similar, and follows (mostly) the same API across button types. There are some differences between them (some does not support loading indicators, while others might not support right or left icons. Please refer to the relevant documentation to learn more about the new APIs.
Changes in props:
action
prop is removed.simpleContent
prop is removed (only used internally)label
prop is removed. Usechildren
insteadisTabbable
prop is removed. UsetabIndex
insteaddisableButton
prop is renamed to its DOM cousin -disabled
Other changes:
All buttons support leftIcon
and rightIcon
props now - with the
following exceptions:
BackButton
does not support any icons by designInlineExpandButton
does not supportrightIcon
by designShortcutButton
does not supportrightIcon
by designTaskButton
does not supportrightIcon
by design
All buttons now support the element
prop, which lets you override what
component or DOM element is used to render the button.
9.0.1 (2018-03-02)
Note: Version bump only for package @sb1/ffe-buttons-react
- Fix a few issues with the documentation (ab3d579)
- ffe-buttons-react: Fixed path to chevron icon (0eb4b1b)
- Treeshake ffe-icons (6bc9d6f)
- ffe-buttons-react: Remove type propType check (005890a)
- ffe-icons-react: Change hardcoded path of npm run build target (f271067)
- ffe-icons-react: Improve API (e9b88a4)
- ffe-buttons-react: Add contribute.md link to readme (5474772)
- ffe-buttons-react: Add element prop (c7d3c96)
- ffe-buttons-react: Inline expand button (c22ce20)
- ffe-buttons-react: Upgrade to React 16 (2dc5dd9)
- Rename all icons to end with -ikon (a9d5741)
- 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;
- ffe-icons-react: Improve the API of ffe-icons-react.
This commit changes the API of the ffe-icons-react package to take advantage of dead code eliminination and tree shaking in Webpack >= 2.
Previously, you imported one and one icon from the corresponding
JSX file. Now all icons are available as named exports from the
root level of ffe-icons-react
.
If you're using webpack@>=2.0.0, please make the following changes to migrate:
- import ChevronIkon from 'ffe-icons-react/chevron-ikon';
- import FamilieIkon from 'ffe-icons-react/familie-ikon';
+ import { ChevronIkon, FamilieIkon } from 'ffe-icons-react';
If you're not using a build tool that enables dead code elimination and tree shaking, please make the following changes to migrate:
- import ChevronIkon from 'ffe-icons-react/chevron-ikon';
- import FamilieIkon from 'ffe-icons-react/familie-ikon';
+ import ChevronIkon from 'ffe-icons-react/lib/chevron-ikon';
+ import FamilieIkon from 'ffe-icons-react/lib/familie-ikon';
This API change allows for cleaner usage and better documentation.
- This commit renames two icons in ffe-icons.
bankid-icon
is now namedbankid-ikon
, andmynter-to-stabler-pluss
is now namedmynter-to-stabler-pluss-ikon
.
In addition, ffe-icons-react receives a fix that unbroke a previous release
8.2.4 (2018-02-23)
Note: Version bump only for package ffe-buttons-react
8.2.3 (2018-02-22)
Note: Version bump only for package ffe-buttons-react
8.2.2 (2018-02-21)
Note: Version bump only for package ffe-buttons-react
8.2.1 (2018-02-20)
Note: Version bump only for package ffe-buttons-react
8.2.0 (2018-02-16)
- ffe-buttons-react: Inline expand button
8.1.7 (2018-02-15)
Note: Version bump only for package ffe-buttons-react
8.1.6 (2018-02-09)
Note: Version bump only for package ffe-buttons-react
8.1.5 (2018-02-05)
- ffe-buttons-react: Remove type propType check
8.1.4 (2018-02-01)
Note: Version bump only for package ffe-buttons-react
8.1.3 (2018-01-31)
- Treeshake ffe-icons
8.1.2 (2018-01-19)
Note: Version bump only for package ffe-buttons-react
8.1.1 (2018-01-19)
Note: Version bump only for package ffe-buttons-react
8.1.0 (2018-01-10)
- ffe-buttons-react: Add element prop
8.0.6 (2018-01-10)
Note: Version bump only for package ffe-buttons-react
8.0.5 (2018-01-10)
Note: Version bump only for package ffe-buttons-react
8.0.4 (2018-01-09)
Note: Version bump only for package ffe-buttons-react
8.0.3 (2018-01-05)
Note: Version bump only for package ffe-buttons-react
8.0.2 (2018-01-04)
Note: Version bump only for package ffe-buttons-react
8.0.1 (2018-01-02)
Note: Version bump only for package ffe-buttons-react
8.0.0 (2018-01-02)
- ffe-icons-react: Improve API
- ffe-icons-react: Improve the API of ffe-icons-react.
This commit changes the API of the ffe-icons-react package to take advantage of dead code eliminination and tree shaking in Webpack >= 2.
Previously, you imported one and one icon from the corresponding
JSX file. Now all icons are available as named exports from the
root level of ffe-icons-react
.
If you're using webpack@>=2.0.0, please make the following changes to migrate:
- import ChevronIkon from '@sb1/ffe-icons-react/chevron-ikon';
- import FamilieIkon from '@sb1/ffe-icons-react/familie-ikon';
+ import { ChevronIkon, FamilieIkon } from '@sb1/ffe-icons-react';
If you're not using a build tool that enables dead code elimination and tree shaking, please make the following changes to migrate:
- import ChevronIkon from '@sb1/ffe-icons-react/chevron-ikon';
- import FamilieIkon from '@sb1/ffe-icons-react/familie-ikon';
+ import ChevronIkon from '@sb1/ffe-icons-react/lib/chevron-ikon';
+ import FamilieIkon from '@sb1/ffe-icons-react/lib/familie-ikon';
This API change allows for cleaner usage and better documentation.
- Fix a few issues with the documentation
- ffe-buttons-react: Fixed path to chevron icon
- ffe-icons-react: Change hardcoded path of npm run build target
- ffe-buttons-react: Add contribute.md link to readme
- ffe-buttons-react: Upgrade to React 16
- Rename all icons to end with -ikon
- This commit renames two icons in ffe-icons.
bankid-icon
is now namedbankid-ikon
, andmynter-to-stabler-pluss
is now namedmynter-to-stabler-pluss-ikon
.
In addition, ffe-icons-react receives a fix that unbroke a previous release
- The
ExpandButton
component gets a React implementation. Consumers are in charge of reacting to clicks and controlling state. ActionButton
now has a boolean propghost
to toggle the--ghost
modifier
- Documentation and refactoring of the button components.
- Possible to use extra classes with Tertiary-button with icon
- Now possible to use leftIcon with Tertiary-button
- Add prop
buttonRef
so a DOM reference can be obtained
- Use PropTypes from prop-types package
- (BREAKING) Remove button names with 'FFE' prefix that were deprecated in v2.1.0
- To migrate to v6.0.0, change your button imports as follows:
- FFEActionButton -> ActionButton
- FFEButton -> Button
- FFEPrimaryButton -> PrimaryButton
- FFESecondaryButton -> SecondaryButton
- FFEShortcutButton -> ShortcutButton
- Add condensed property
- Restructure tests
- Add live examples
- Added support for icons in
<Button>
,<SecondaryButton>
and<TertiaryButton>
. - Modified
ShortcutButton
to pass the<ChevronIcon>
as arightIcon
prop to<Button>
- Bugfix: ShortcutButton used wrong css-class on its icon.
- Upgrade eslint and fix linting errors.
- Add props drop-through to underlying
<Button>
component
- Shortcut button includes the ChevronIcon by default (FFE-115).
- Added back button
- Added support for autoFocus (native React prop)
isLoading
will also set the attributearia-busy=true
on the button
- Fix truly disabling button while
isLoading
(CSSpointer-events:none
was an obscure and inefficient way to achieve this)
Package has been renamed to ffe-buttons-react (plural). Package ffe-button-react is now deprecated.
ffe-buttons-react introduces a new peerDependency in ffe-buttons. It also bumps the peerDependency on ffe-core to ^8.0.1
- (BREAKING): Button's
type
prop has been renamed tobuttonType
. This change will only be breaking for direct consumers of the<Button />
component - not its specialized versions<PrimaryButton />
,<SecondaryButton />
etc.
- Allow overriding a button's
type
prop withtype="button"
ortype="reset"
when needed - now the<*Button />
components behave like regular HTML buttons. The default is stilltype="submit"
. - Allow no
onClick
handler. Since the default type issubmit
, the default click handler will trigger asubmit
event, which can be handled elsewhere, rendering anonClick
handler useless.
- Fix 'isTabbable' support: buttons are now tabbable by default if 'isTabbable' isn't specified.
- Buttons now accepts className from prop
- Buttons now accepts inline styles as a
style
prop
- Added tertiary button
- Add 'isTabbable' support.
- Deprecated the 'FFE' prefix in all button names.
- Bump
ffe-core
dependency to 6.x.
- Add
disableButton
support.
- First version.