@porsche-design-system/components-react 2.13.0-rc.3 → 2.13.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 +16 -0
- package/esm/public-api.js +32 -1
- package/jsdom-polyfill/index.js +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/stepper-horizontal-item.wrapper.d.ts +24 -0
- package/lib/components/stepper-horizontal.wrapper.d.ts +24 -0
- package/lib/types.d.ts +10 -6
- package/package.json +2 -2
- package/public-api.js +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
9
9
|
|
|
10
10
|
### [Unreleased]
|
|
11
11
|
|
|
12
|
+
### [2.13.0] - 2022-06-23
|
|
13
|
+
|
|
14
|
+
### [2.13.0-rc.5] - 2022-06-23
|
|
15
|
+
|
|
16
|
+
#### Fixed
|
|
17
|
+
|
|
18
|
+
- `Stepper Horizontal Item` `state` validation
|
|
19
|
+
- `Button` and `Link` with `theme="dark" variant="tertiary"` and `Tag Dismissible` bug on Safari < v15.5 where wrong
|
|
20
|
+
colors on hover were shown
|
|
21
|
+
|
|
22
|
+
### [2.13.0-rc.4] - 2022-06-22
|
|
23
|
+
|
|
24
|
+
#### Added
|
|
25
|
+
|
|
26
|
+
- `Stepper Horizontal`
|
|
27
|
+
|
|
12
28
|
### [2.13.0-rc.3] - 2022-06-22
|
|
13
29
|
|
|
14
30
|
#### Added
|
package/esm/public-api.js
CHANGED
|
@@ -553,6 +553,37 @@ const PSpinner = /*#__PURE__*/ forwardRef(({ aria, size = 'small', theme = 'ligh
|
|
|
553
553
|
return jsx(Tag, { ...props });
|
|
554
554
|
});
|
|
555
555
|
|
|
556
|
+
const PStepperHorizontal = /*#__PURE__*/ forwardRef(({ onStepChange, theme = 'light', className, ...rest }, ref) => {
|
|
557
|
+
const elementRef = useRef();
|
|
558
|
+
useEventCallback(elementRef, 'stepChange', onStepChange);
|
|
559
|
+
const Tag = usePrefix('p-stepper-horizontal');
|
|
560
|
+
useBrowserLayoutEffect(() => {
|
|
561
|
+
elementRef.current.theme = theme;
|
|
562
|
+
}, [theme]);
|
|
563
|
+
const props = {
|
|
564
|
+
...rest,
|
|
565
|
+
class: useMergedClass(elementRef, className),
|
|
566
|
+
ref: syncRef(elementRef, ref)
|
|
567
|
+
};
|
|
568
|
+
return jsx(Tag, { ...props });
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
const PStepperHorizontalItem = /*#__PURE__*/ forwardRef(({ disabled = false, state, className, ...rest }, ref) => {
|
|
572
|
+
const elementRef = useRef();
|
|
573
|
+
const Tag = usePrefix('p-stepper-horizontal-item');
|
|
574
|
+
const propsToSync = [disabled, state];
|
|
575
|
+
useBrowserLayoutEffect(() => {
|
|
576
|
+
const { current } = elementRef;
|
|
577
|
+
['disabled', 'state'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
578
|
+
}, propsToSync);
|
|
579
|
+
const props = {
|
|
580
|
+
...rest,
|
|
581
|
+
class: useMergedClass(elementRef, className),
|
|
582
|
+
ref: syncRef(elementRef, ref)
|
|
583
|
+
};
|
|
584
|
+
return jsx(Tag, { ...props });
|
|
585
|
+
});
|
|
586
|
+
|
|
556
587
|
const PSwitch = /*#__PURE__*/ forwardRef(({ alignLabel = 'right', checked = false, disabled = false, hideLabel = false, loading = false, onSwitchChange, stretch = false, tabbable = true, theme = 'light', className, ...rest }, ref) => {
|
|
557
588
|
const elementRef = useRef();
|
|
558
589
|
useEventCallback(elementRef, 'switchChange', onSwitchChange);
|
|
@@ -828,4 +859,4 @@ const PToast = /*#__PURE__*/ forwardRef(({ theme = 'light', className, ...rest }
|
|
|
828
859
|
return jsx(Tag, { ...props });
|
|
829
860
|
});
|
|
830
861
|
|
|
831
|
-
export { PAccordion, PBanner, PButton, PButtonGroup, PButtonPure, PCheckboxWrapper, PContentWrapper, PDivider, PFieldsetWrapper, PFlex, PFlexItem, PGrid, PGridItem, PHeadline, PIcon, PInlineNotification, PLink, PLinkPure, PLinkSocial, PMarque, PModal, PPagination, PPopover, PRadioButtonWrapper, PSegmentedControl, PSegmentedControlItem, PSelectWrapper, PSpinner, PSwitch, PTable, PTableBody, PTableCell, PTableHead, PTableHeadCell, PTableHeadRow, PTableRow, PTabs, PTabsBar, PTabsItem, PTag, PTagDismissible, PText, PTextFieldWrapper, PTextList, PTextListItem, PTextareaWrapper, PToast, PorscheDesignSystemProvider, skipCheckForPorscheDesignSystemProviderDuringTests, skipPorscheDesignSystemCDNRequestsDuringTests, useToastManager };
|
|
862
|
+
export { PAccordion, PBanner, PButton, PButtonGroup, PButtonPure, PCheckboxWrapper, PContentWrapper, PDivider, PFieldsetWrapper, PFlex, PFlexItem, PGrid, PGridItem, PHeadline, PIcon, PInlineNotification, PLink, PLinkPure, PLinkSocial, PMarque, PModal, PPagination, PPopover, PRadioButtonWrapper, PSegmentedControl, PSegmentedControlItem, PSelectWrapper, PSpinner, PStepperHorizontal, PStepperHorizontalItem, PSwitch, PTable, PTableBody, PTableCell, PTableHead, PTableHeadCell, PTableHeadRow, PTableRow, PTabs, PTabsBar, PTabsItem, PTag, PTagDismissible, PText, PTextFieldWrapper, PTextList, PTextListItem, PTextareaWrapper, PToast, PorscheDesignSystemProvider, skipCheckForPorscheDesignSystemProviderDuringTests, skipPorscheDesignSystemCDNRequestsDuringTests, useToastManager };
|