@tui-cruises/mein-schiff-web-react-component-library 3.1.11 → 3.1.12

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
+ ### [3.1.12](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v3.1.11...v3.1.12) (2026-04-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **PhoneNumberInput:** add readOnly support ([8d97882](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/8d97882410dc2c27e7a7bacc605c21ad401d4b6a))
11
+
5
12
  ### [3.1.11](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v3.1.10...v3.1.11) (2026-04-01)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui-cruises/mein-schiff-web-react-component-library",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "main": "./index.tsx",
5
5
  "types": "./index.tsx",
6
6
  "type": "module",
@@ -86,6 +86,7 @@ const PhoneNumberInputRenderFunction: ForwardRefRenderFunction<
86
86
  ariaLabelCountryCode = 'Country code',
87
87
  ariaLabelPhoneNumber = 'Phone number',
88
88
  onValueChange,
89
+ readOnly,
89
90
  ...attrs
90
91
  } = props;
91
92
 
@@ -146,6 +147,7 @@ const PhoneNumberInputRenderFunction: ForwardRefRenderFunction<
146
147
  <SelectPrimitive.Root
147
148
  value={selectedCountryCode}
148
149
  onValueChange={handleCountryChange}
150
+ disabled={readOnly}
149
151
  >
150
152
  <SelectPrimitive.Trigger
151
153
  className="z-[1] flex items-center gap-2 rounded-md bg-surface-secondary-10 p-3 hover:!shadow-none focus:outline-none focus-visible:shadow-focus-state"
@@ -192,6 +194,7 @@ const PhoneNumberInputRenderFunction: ForwardRefRenderFunction<
192
194
  className="flex-1 p-3 focus:outline-none"
193
195
  value={inputValue}
194
196
  onChange={handleChange}
197
+ readOnly={readOnly}
195
198
  aria-label={ariaLabelPhoneNumber}
196
199
  aria-describedby={ariaDescribedBy}
197
200
  />