@tui-cruises/mein-schiff-web-react-component-library 2.2.3 → 2.2.4

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,24 @@
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.2.4](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v2.3.0...v2.2.4) (2025-07-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * **icons:** add mail and pause icons, update circle, plus-circle and phone ([3c2291b](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/3c2291b0f829c88be2f9a5e13f400419c134c32a))
11
+ * **Tabs:** add `on` prop to control background context ([127dd83](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/127dd8319d205d6ec84c85c89e3b1959f3bfa9d7))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **EC-2101:** set IconButton as 'use client' to fix import problems ([9cd7b87](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/9cd7b8743309953e97a4768c9933a561ca3920e1))
17
+ * **EC-2101:** set IconButton as 'use client' to fix import problems ([6a1c421](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/6a1c42100b9f38fd3b6ed7c9b8d931afe4774b7c))
18
+ * **OM-2207:** form label with error style for data-invalid attribute ([285587c](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/285587cee026b4dc5c9d9ca5efa8fc87080244c8))
19
+ * remove FieldSetVariant from InputFieldInput.tsx ([75ba4f0](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/75ba4f03c80a43115e98c0d6c5cb0f913c824f1b))
20
+ * remove FieldSetVariant from InputFieldInput.tsx ([918af78](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/918af7869d319b3a00bd6aae4ee540907ef976d5))
21
+ * **Stepper:** update tracking parameter (EC-2069) ([ed64438](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/ed644389bfb5bd76ade919515598c015bb702a7d))
22
+
5
23
  ### [2.2.3](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v2.2.2...v2.2.3) (2025-07-21)
6
24
 
7
25
 
@@ -10,10 +10,10 @@ const SvgCircle = (props: SVGProps<SVGSVGElement>) => (
10
10
  {...props}
11
11
  >
12
12
  <path
13
- stroke="currentColor"
14
- strokeLinecap="round"
15
- strokeLinejoin="round"
16
- d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12 17.937 22.75 12 22.75 1.25 17.937 1.25 12M12 2.75a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5"
16
+ clipRule="evenodd"
17
17
  />
18
18
  </svg>
19
19
  );
@@ -66,6 +66,7 @@ export const dynamicComponents = {
66
66
  'log-in': dynamic(() => import('./log-in'), { ssr: false }),
67
67
  'log-out': dynamic(() => import('./log-out'), { ssr: false }),
68
68
  'mail-open': dynamic(() => import('./mail-open'), { ssr: false }),
69
+ mail: dynamic(() => import('./mail'), { ssr: false }),
69
70
  map: dynamic(() => import('./map'), { ssr: false }),
70
71
  'maps-arrow-diagonal': dynamic(() => import('./maps-arrow-diagonal'), {
71
72
  ssr: false,
@@ -89,6 +90,7 @@ export const dynamicComponents = {
89
90
  'nav-arrow-up': dynamic(() => import('./nav-arrow-up'), { ssr: false }),
90
91
  'no-wifi': dynamic(() => import('./no-wifi'), { ssr: false }),
91
92
  'old-trips': dynamic(() => import('./old-trips'), { ssr: false }),
93
+ pause: dynamic(() => import('./pause'), { ssr: false }),
92
94
  percentage: dynamic(() => import('./percentage'), { ssr: false }),
93
95
  phone: dynamic(() => import('./phone'), { ssr: false }),
94
96
  pin: dynamic(() => import('./pin'), { ssr: false }),
@@ -0,0 +1,20 @@
1
+ import type { SVGProps } from 'react';
2
+ const SvgMail = (props: SVGProps<SVGSVGElement>) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="1em"
6
+ height="1em"
7
+ fill="none"
8
+ viewBox="0 0 24 24"
9
+ color="currentColor"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M2.75 7c0-.69.56-1.25 1.25-1.25h16c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25H4c-.69 0-1.25-.56-1.25-1.25zM4 4.25A2.75 2.75 0 0 0 1.25 7v10A2.75 2.75 0 0 0 4 19.75h16A2.75 2.75 0 0 0 22.75 17V7A2.75 2.75 0 0 0 20 4.25zm3.43 4.136a.75.75 0 1 0-.86 1.228l5 3.5a.75.75 0 0 0 .86 0l5-3.5a.75.75 0 1 0-.86-1.228L12 11.585z"
16
+ clipRule="evenodd"
17
+ />
18
+ </svg>
19
+ );
20
+ export default SvgMail;
@@ -0,0 +1,20 @@
1
+ import type { SVGProps } from 'react';
2
+ const SvgPause = (props: SVGProps<SVGSVGElement>) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="1em"
6
+ height="1em"
7
+ fill="none"
8
+ viewBox="0 0 24 24"
9
+ color="currentColor"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M9.25 4a.75.75 0 0 0-.75.75v14.5a.75.75 0 0 0 1.5 0V4.75A.75.75 0 0 0 9.25 4m5.5 0a.75.75 0 0 0-.75.75v14.5a.75.75 0 0 0 1.5 0V4.75a.75.75 0 0 0-.75-.75"
16
+ clipRule="evenodd"
17
+ />
18
+ </svg>
19
+ );
20
+ export default SvgPause;
@@ -10,10 +10,10 @@ const SvgPhone = (props: SVGProps<SVGSVGElement>) => (
10
10
  {...props}
11
11
  >
12
12
  <path
13
- stroke="currentColor"
14
- strokeLinecap="round"
15
- strokeLinejoin="round"
16
- d="M18.118 14.702 14 15.5c-2.782-1.396-4.5-3-5.5-5.5l.77-4.13L7.815 2H4.064c-1.128 0-2.016.932-1.847 2.047.42 2.783 1.66 7.83 5.283 11.453 3.805 3.805 9.286 5.456 12.302 6.113 1.165.253 2.198-.655 2.198-1.848v-3.584z"
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M2.028 4.73C1.798 3.214 3.016 2 4.458 2h3.521c.293 0 .556.182.66.456l1.366 3.633c.045.12.056.25.033.377l-.685 3.672c.841 1.98 2.231 3.31 4.537 4.502l3.628-.703a.7.7 0 0 1 .385.033l3.644 1.389a.7.7 0 0 1 .453.658v3.365c0 1.525-1.344 2.764-2.917 2.422l.15-.688-.15.688c-2.867-.624-8.177-2.21-11.897-5.929l.498-.498-.498.498C3.623 12.312 2.43 7.391 2.028 4.731l.696-.106zm2.43-1.322c-.675 0-1.125.537-1.038 1.112.388 2.566 1.521 7.119 4.762 10.36 3.425 3.424 8.404 4.94 11.2 5.548.614.133 1.21-.334 1.21-1.046v-2.88l-3.003-1.144-3.67.71a.7.7 0 0 1-.449-.062c-2.717-1.363-4.48-2.98-5.501-5.53a.7.7 0 0 1-.038-.39L8.617 6.4 7.492 3.408z"
16
+ clipRule="evenodd"
17
17
  />
18
18
  </svg>
19
19
  );
@@ -10,10 +10,16 @@ const SvgPlusCircle = (props: SVGProps<SVGSVGElement>) => (
10
10
  {...props}
11
11
  >
12
12
  <path
13
- stroke="currentColor"
14
- strokeLinecap="round"
15
- strokeLinejoin="round"
16
- d="M8 12h4m4 0h-4m0 0V8m0 4v4M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M12 7.25a.75.75 0 0 1 .75.75v3.25H16a.75.75 0 0 1 0 1.5h-3.25V16a.75.75 0 0 1-1.5 0v-3.25H8a.75.75 0 0 1 0-1.5h3.25V8a.75.75 0 0 1 .75-.75"
16
+ clipRule="evenodd"
17
+ />
18
+ <path
19
+ fill="currentColor"
20
+ fillRule="evenodd"
21
+ d="M12 2.75a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12 17.937 22.75 12 22.75 1.25 17.937 1.25 12"
22
+ clipRule="evenodd"
17
23
  />
18
24
  </svg>
19
25
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui-cruises/mein-schiff-web-react-component-library",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "main": "./index.tsx",
5
5
  "types": "./index.tsx",
6
6
  "type": "module",
Binary file
@@ -47,6 +47,11 @@ type Props = PropsWithChildren<{
47
47
  */
48
48
  open?: boolean;
49
49
 
50
+ /**
51
+ * A React node that will be rendered as the trigger for the modal.
52
+ */
53
+ trigger?: ReactNode;
54
+
50
55
  /**
51
56
  * Callback fired when the modal's open state changes.
52
57
  */
@@ -254,9 +259,15 @@ export const AlertDialog: FC<Props> = ({
254
259
  container,
255
260
  centerItems = true,
256
261
  containerClassName,
262
+ trigger,
257
263
  }) => {
258
264
  return (
259
265
  <AlertDialogPrimitive.Root open={open} onOpenChange={onOpenChange}>
266
+ {trigger && (
267
+ <AlertDialogPrimitive.Trigger asChild>
268
+ {trigger}
269
+ </AlertDialogPrimitive.Trigger>
270
+ )}
260
271
  <AlertDialogPrimitive.Portal container={container || undefined}>
261
272
  <AlertDialogPrimitive.Overlay
262
273
  className={twJoin(
@@ -87,7 +87,7 @@ const Stepper = (props: StepperProps) => {
87
87
  variant="secondary"
88
88
  on={on}
89
89
  data-track-click-element={EventClickElement.Button}
90
- data-track-click-label={`${trackingName}stepper-decrease`}
90
+ data-track-click-label={`${trackingName}-stepper-decrease`}
91
91
  aria-label={i18n?.stepperDecrease ?? 'Anzahl verringern'}
92
92
  />
93
93
  <div