diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9e05620..f272dd6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,17 @@ 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/).
+## [1.4.0] - 2024-09-30
+- Introduced new, more flexible, and simpler to use `tailwindClasses` function. Replaces `getTwPart`, `getTwDynamicPart`, and `getTwClasses`.
+ - **Potentially breaking**: `twClassesEditor` is now appended to `twClasses`. If you need editor-only classes, you can now use the `twClassesEditorOnly` key. Editor-only classes replace `twClasses`, but will also have classes from `twClassesEditor`.
+ - **Potentially breaking**: `parts` key in manifest now supports specifying multiple parts just with a comma-separated string.
+ - You can now apply classes to multiple parts within one option or combination! Also work with responsive options.
+ - There are now (basic) warnings for misconfigurations of parts and options.
+- Updated block and component schemas with new Tailwind functionalities.
+- Updated dependencies.
+- Updated default blocks with new Tailwind functions.
+- Default Stylelint config will no longer report `@tailwind` rules.
+
## [1.3.3] - 2024-09-24
- Updating schema.
@@ -49,6 +60,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
[Unreleased]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/master...HEAD
+[1.4.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.3.3...1.4.0
[1.3.3]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.3.2...1.3.3
[1.3.2]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.3.1...1.3.2
[1.3.1]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.3.0...1.3.1
diff --git a/blocks/init/src/Blocks/components/button/button.php b/blocks/init/src/Blocks/components/button/button.php
index b51fb8d..ec6d35f 100644
--- a/blocks/init/src/Blocks/components/button/button.php
+++ b/blocks/init/src/Blocks/components/button/button.php
@@ -56,7 +56,7 @@
$buttonAttrs['aria-label'] = $buttonAriaLabel;
}
-$buttonAttrs['class'] = Helpers::getTwClasses($attributes, $manifest, 'button', $additionalClass);
+$buttonAttrs['class'] = Helpers::tailwindClasses('base', $attributes, $manifest, 'button', $additionalClass);
$buttonTag = !empty($buttonUrl) ? 'a' : 'button';
?>
diff --git a/blocks/init/src/Blocks/components/button/components/button-editor.js b/blocks/init/src/Blocks/components/button/components/button-editor.js
index 17f9daa..0be8d43 100644
--- a/blocks/init/src/Blocks/components/button/components/button-editor.js
+++ b/blocks/init/src/Blocks/components/button/components/button-editor.js
@@ -1,6 +1,6 @@
import { __ } from '@wordpress/i18n';
import { RichText } from '@wordpress/block-editor';
-import { checkAttr, getAttrKey, getTwClasses, props } from '@eightshift/frontend-libs-tailwind/scripts';
+import { checkAttr, getAttrKey, tailwindClasses, props } from '@eightshift/frontend-libs-tailwind/scripts';
import { IconEditor } from '../../icon/components/icon-editor';
import manifest from './../manifest.json';
@@ -17,7 +17,7 @@ export const ButtonEditor = (attributes) => {
}
return (
-