@tui-cruises/mein-schiff-web-react-component-library 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.0.3](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v2.0.2...v2.0.3) (2025-06-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **IconButton:** new primary on image variant ([afac614](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/afac61473118ecaaaa8a746212b2a9a7375a1c54))
|
|
11
|
+
|
|
5
12
|
### [2.0.2](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v2.0.1...v2.0.2) (2025-06-04)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ type CommonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
13
13
|
asChild?: boolean;
|
|
14
14
|
iconName: IconName;
|
|
15
15
|
iconPosition?: 'left' | 'right';
|
|
16
|
-
on?: 'white' | 'gray' | 'ocean';
|
|
16
|
+
on?: 'white' | 'gray' | 'ocean' | 'image';
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export type IconButtonPrimaryAndSecondaryProps = CommonProps & {
|
|
@@ -75,7 +75,11 @@ const IconButtonRenderFunction: ForwardRefRenderFunction<
|
|
|
75
75
|
on === 'ocean' && 'bg-surface-secondary-100 text-white',
|
|
76
76
|
on === 'ocean' && 'group-hover/icon-button:bg-surface-secondary-120',
|
|
77
77
|
on === 'ocean' && 'group-active/icon-button:bg-surface-secondary-120',
|
|
78
|
-
|
|
78
|
+
|
|
79
|
+
// On image
|
|
80
|
+
on === 'image' && 'bg-surface-white',
|
|
81
|
+
on === 'image' && 'group-hover/button:bg-surface-secondary-7',
|
|
82
|
+
on === 'image' && 'group-active/button:bg-surface-secondary-7',
|
|
79
83
|
],
|
|
80
84
|
|
|
81
85
|
variant === 'secondary' && [
|