diff --git a/CHANGELOG.md b/CHANGELOG.md index 164dd9ed3..cce730eed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [13.0.1] + +### Changed +- Updated a couple of fallbacks for old FE libs components. + ## [13.0.0] > [!NOTE] @@ -1342,6 +1347,7 @@ Follow this migration script in order for you project to work correctly with the - Initial tagged release. [Unreleased]: https://github.com/infinum/eightshift-frontend-libs/compare/master...HEAD +[13.0.1]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.0...13.0.1 [13.0.0]: https://github.com/infinum/eightshift-frontend-libs/compare/12.1.6...13.0.0 [12.1.6]: https://github.com/infinum/eightshift-frontend-libs/compare/12.1.5...12.1.6 [12.1.5]: https://github.com/infinum/eightshift-frontend-libs/compare/12.1.4...12.1.5 diff --git a/package.json b/package.json index a8aedfd19..68309d087 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eightshift/frontend-libs", - "version": "13.0.0", + "version": "13.0.1", "description": "A collection of useful frontend utility modules. powered by Eightshift", "author": { "name": "Eightshift team", @@ -36,7 +36,7 @@ "@dnd-kit/modifiers": "^7.0.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", - "@eightshift/ui-components": "^1.4.5", + "@eightshift/ui-components": "^1.4.6", "@stylistic/eslint-plugin-js": "^2.3.0", "@stylistic/stylelint-plugin": "^2.1.2", "@swc/core": "^1.7.2", diff --git a/scripts/components/toggle/toggle.js b/scripts/components/toggle/toggle.js index 7dfbc1cfd..a903c947c 100644 --- a/scripts/components/toggle/toggle.js +++ b/scripts/components/toggle/toggle.js @@ -1,9 +1,5 @@ import React from 'react'; -import { - Checkbox, - ToggleButton, - Toggle as EsUicToggle, -} from '@eightshift/ui-components'; +import { Checkbox, Toggle as EsUicToggle } from '@eightshift/ui-components'; /** * Custom toggle control. @@ -35,22 +31,6 @@ export const Toggle = ({ additionalClasses, }) => { - if (type === 'button' || type === 'iconButton' || type === 'tileButton') { - return ( - - {(type === 'button' || type === 'tileButton') && label} - - ); - } - if (type === 'checkbox') { return ( + + + {children} + + ); + } + return (