@porsche-design-system/components-react 2.14.0-rc.1 → 2.15.0-rc.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,35 @@ 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-rc.0] - 2022-08-16
13
+
14
+ #### Fixed
15
+
16
+ - `Popover` visual shadow bug in Safari
17
+ - `Stepper Horizontal Item` bug where pseudo styles of the counter element were overridable
18
+
19
+ ### [2.15.0-beta.0] - 2022-08-05
20
+
21
+ #### Fixed
22
+
23
+ - `Tabs` & `Tabs Bar` `size` property when using `BreakpointCustomizable`
24
+
25
+ #### Changed
26
+
27
+ - `Modal` uses poly fluid sizing for outer spacing
28
+ - `Banner` uses poly fluid sizing for outer spacing
29
+ - `Content Wrapper` uses poly fluid sizing for inner spacing
30
+ - `Modal` min-width is slightly updated to perfectly fit into content area of `Content Wrapper` at 320px viewport width
31
+
32
+ #### Added
33
+
34
+ - Validation of properties for all components
35
+ - `Text Field Wrapper` with `input type="search"` is clearable via Escape key and custom clear button across browsers
36
+ - `Text Field Wrapper` with `input type="search"` shows a "Locate me" button when `actionIcon="locate"` is set, emits
37
+ the `action` event on click and can be put into a loading state via `actionLoading="true"`
38
+
39
+ ### [2.14.0] - 2022-07-11
40
+
12
41
  ### [2.14.0-rc.1] - 2022-07-11
13
42
 
14
43
  ### [2.14.0-rc.0] - 2022-07-11
package/esm/public-api.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { load } from '@porsche-design-system/components-js';
2
2
  export { componentsReady } from '@porsche-design-system/components-js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import { createContext, useEffect, useMemo, useContext, useRef, useLayoutEffect, forwardRef } from 'react';
4
+ import { createContext, useEffect, useContext, useRef, useMemo, useLayoutEffect, forwardRef } from 'react';
5
5
 
6
6
  // to warn users about missing PorscheDesignSystemProvider, we set the default values as undefined
7
7
  const PorscheDesignSystemContext = createContext({
@@ -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,