@porsche-design-system/components-react 2.14.0-rc.0 → 2.15.0-beta.0

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
@@ -9,6 +9,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9
9
 
10
10
  ### [Unreleased]
11
11
 
12
+ ### [2.15.0-beta.0] - 2022-08-05
13
+
14
+ #### Fixed
15
+
16
+ - `Tabs` & `Tabs Bar` `size` property when using `BreakpointCustomizable`
17
+
18
+ #### Changed
19
+
20
+ - `Modal` uses poly fluid sizing for outer spacing
21
+ - `Banner` uses poly fluid sizing for outer spacing
22
+ - `Content Wrapper` uses poly fluid sizing for inner spacing
23
+ - `Modal` min-width is slightly updated to perfectly fit into content area of `Content Wrapper` at 320px viewport width
24
+
25
+ #### Added
26
+
27
+ - Validation of properties for all components
28
+ - `Text Field Wrapper` with `input type="search"` is clearable via Escape key and custom clear button across browsers
29
+ - `Text Field Wrapper` with `input type="search"` shows a "Locate me" button when `actionIcon="locate"` is set, emits
30
+ the `action` event on click and can be put into a loading state via `actionLoading="true"`
31
+
32
+ ### [2.14.0] - 2022-07-11
33
+
34
+ ### [2.14.0-rc.1] - 2022-07-11
35
+
12
36
  ### [2.14.0-rc.0] - 2022-07-11
13
37
 
14
38
  #### Added
package/esm/public-api.js CHANGED
@@ -150,7 +150,7 @@ const PButton = /*#__PURE__*/ forwardRef(({ aria, disabled = false, hideLabel =
150
150
  return jsx(Tag, { ...props });
151
151
  });
152
152
 
153
- const PButtonGroup = /*#__PURE__*/ forwardRef(({ direction = { base: 'column', xs: 'row', }, className, ...rest }, ref) => {
153
+ const PButtonGroup = /*#__PURE__*/ forwardRef(({ direction = { base: 'column', xs: 'row' }, className, ...rest }, ref) => {
154
154
  const elementRef = useRef();
155
155
  const Tag = usePrefix('p-button-group');
156
156
  useBrowserLayoutEffect(() => {
@@ -786,13 +786,14 @@ const PText = /*#__PURE__*/ forwardRef(({ align = 'left', color = 'default', ell
786
786
  return jsx(Tag, { ...props });
787
787
  });
788
788
 
789
- const PTextFieldWrapper = /*#__PURE__*/ forwardRef(({ description = '', hideLabel = false, label = '', message = '', showCharacterCount = true, state = 'none', unit = '', unitPosition = 'prefix', className, ...rest }, ref) => {
789
+ const PTextFieldWrapper = /*#__PURE__*/ forwardRef(({ actionIcon, actionLoading = false, description = '', hideLabel = false, label = '', message = '', onAction, showCharacterCount = true, state = 'none', unit = '', unitPosition = 'prefix', className, ...rest }, ref) => {
790
790
  const elementRef = useRef();
791
+ useEventCallback(elementRef, 'action', onAction);
791
792
  const Tag = usePrefix('p-text-field-wrapper');
792
- const propsToSync = [description, hideLabel, label, message, showCharacterCount, state, unit, unitPosition];
793
+ const propsToSync = [actionIcon, actionLoading, description, hideLabel, label, message, showCharacterCount, state, unit, unitPosition];
793
794
  useBrowserLayoutEffect(() => {
794
795
  const { current } = elementRef;
795
- ['description', 'hideLabel', 'label', 'message', 'showCharacterCount', 'state', 'unit', 'unitPosition'].forEach((propName, i) => (current[propName] = propsToSync[i]));
796
+ ['actionIcon', 'actionLoading', 'description', 'hideLabel', 'label', 'message', 'showCharacterCount', 'state', 'unit', 'unitPosition'].forEach((propName, i) => (current[propName] = propsToSync[i]));
796
797
  }, propsToSync);
797
798
  const props = {
798
799
  ...rest,