@porsche-design-system/components-react 3.0.0-alpha.5 → 3.0.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +156 -20
  2. package/esm/lib/components/accordion.wrapper.js +2 -2
  3. package/esm/lib/components/banner.wrapper.js +3 -3
  4. package/esm/lib/components/carousel.wrapper.js +2 -2
  5. package/esm/lib/components/inline-notification.wrapper.js +3 -3
  6. package/esm/lib/components/pagination.wrapper.js +2 -2
  7. package/esm/lib/components/segmented-control.wrapper.js +2 -2
  8. package/esm/lib/components/stepper-horizontal.wrapper.js +2 -2
  9. package/esm/lib/components/switch.wrapper.js +2 -2
  10. package/esm/lib/components/table.wrapper.js +2 -2
  11. package/esm/lib/components/tabs-bar.wrapper.js +2 -2
  12. package/esm/lib/components/tabs.wrapper.js +2 -2
  13. package/lib/components/accordion.wrapper.d.ts +7 -7
  14. package/lib/components/accordion.wrapper.js +2 -2
  15. package/lib/components/banner.wrapper.d.ts +18 -2
  16. package/lib/components/banner.wrapper.js +3 -3
  17. package/lib/components/carousel.wrapper.d.ts +7 -7
  18. package/lib/components/carousel.wrapper.js +2 -2
  19. package/lib/components/inline-notification.wrapper.d.ts +10 -2
  20. package/lib/components/inline-notification.wrapper.js +3 -3
  21. package/lib/components/pagination.wrapper.d.ts +9 -9
  22. package/lib/components/pagination.wrapper.js +2 -2
  23. package/lib/components/segmented-control.wrapper.d.ts +9 -9
  24. package/lib/components/segmented-control.wrapper.js +2 -2
  25. package/lib/components/stepper-horizontal.wrapper.d.ts +9 -9
  26. package/lib/components/stepper-horizontal.wrapper.js +2 -2
  27. package/lib/components/switch.wrapper.d.ts +9 -9
  28. package/lib/components/switch.wrapper.js +2 -2
  29. package/lib/components/table.wrapper.d.ts +9 -9
  30. package/lib/components/table.wrapper.js +2 -2
  31. package/lib/components/tabs-bar.wrapper.d.ts +9 -9
  32. package/lib/components/tabs-bar.wrapper.js +2 -2
  33. package/lib/components/tabs.wrapper.d.ts +9 -9
  34. package/lib/components/tabs.wrapper.js +2 -2
  35. package/lib/types.d.ts +20 -19
  36. package/package.json +2 -2
  37. package/ssr/components/dist/styles/esm/styles-entry.js +76 -84
  38. package/ssr/components/dist/utils/esm/utils-entry.js +4 -9
  39. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -2
  40. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  41. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +2 -2
  42. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +4 -4
  43. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +2 -2
  44. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -2
  45. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -2
  46. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -2
  47. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -2
  48. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +2 -2
  49. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +2 -2
  50. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +5 -2
  51. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -1
  52. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +5 -2
  53. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
  54. package/ssr/esm/components/dist/styles/esm/styles-entry.js +76 -84
  55. package/ssr/esm/components/dist/utils/esm/utils-entry.js +5 -9
  56. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -2
  57. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  58. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +2 -2
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +4 -4
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +2 -2
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -2
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -2
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -2
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -2
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +2 -2
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +2 -2
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +5 -2
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +2 -2
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +5 -2
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
  71. package/ssr/lib/components/accordion.wrapper.d.ts +7 -7
  72. package/ssr/lib/components/banner.wrapper.d.ts +18 -2
  73. package/ssr/lib/components/carousel.wrapper.d.ts +7 -7
  74. package/ssr/lib/components/inline-notification.wrapper.d.ts +10 -2
  75. package/ssr/lib/components/pagination.wrapper.d.ts +9 -9
  76. package/ssr/lib/components/segmented-control.wrapper.d.ts +9 -9
  77. package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +9 -9
  78. package/ssr/lib/components/switch.wrapper.d.ts +9 -9
  79. package/ssr/lib/components/table.wrapper.d.ts +9 -9
  80. package/ssr/lib/components/tabs-bar.wrapper.d.ts +9 -9
  81. package/ssr/lib/components/tabs.wrapper.d.ts +9 -9
  82. package/ssr/lib/dsr-components/banner.d.ts +2 -0
  83. package/ssr/lib/dsr-components/inline-notification.d.ts +1 -0
  84. package/ssr/lib/dsr-components/switch.d.ts +0 -3
  85. package/ssr/lib/types.d.ts +20 -19
package/CHANGELOG.md CHANGED
@@ -9,24 +9,159 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9
9
 
10
10
  ### [Unreleased]
11
11
 
12
+ ### [3.0.0-rc.0] - 2023-04-11
13
+
14
+ ### Fixed
15
+
16
+ - Styles: `borderRadiusLarge` and `pds-border-radius-large` are exposing correct value
17
+ ([#2463](https://github.com/porsche-design-system/porsche-design-system/pull/2461))
18
+
19
+ ### [3.0.0-alpha.6] - 2023-04-06
20
+
21
+ #### Added
22
+
23
+ - `xxl` breakpoint for all breakpoint customizable component values
24
+ ([#2454](https://github.com/porsche-design-system/porsche-design-system/pull/2454))
25
+
26
+ #### Fixed
27
+
28
+ - Disabled color of `Icon` component ([#2446](https://github.com/porsche-design-system/porsche-design-system/pull/2446))
29
+ - Support of `Radio Button Wrapper` for name value with non-alphanumeric characters
30
+ ([#2443](https://github.com/porsche-design-system/porsche-design-system/pull/2443))
31
+
32
+ #### Changed
33
+
34
+ - `Banner` is a controlled component now and its visibility has to be controlled via the `open` prop
35
+ ([#2447](https://github.com/porsche-design-system/porsche-design-system/pull/2447))
36
+
37
+ ```diff
38
+ - <p-banner></p-banner>
39
+ + <p-banner open="true"></p-banner>
40
+ ```
41
+
42
+ - Renamed all custom `change` events to `update` because of bad event emissions with native `change` events, e.g. with
43
+ nested `select` or `input` elements
44
+
45
+ #### 🤖 Property deprecations 🤖
46
+
47
+ ##### Accordion:
48
+
49
+ - Event `accordionChange` is deprecated, use `update` event instead.
50
+
51
+ ```diff
52
+ - <PAccordion onAccordionChange={(e: CustomEvent<AccordionChangeEvent>) => {}} />
53
+ + <PAccordion onUpdate={(e: CustomEvent<AccordionUPdateEvent>) => {}} />
54
+ ```
55
+
56
+ ##### Banner:
57
+
58
+ - Prop `persistent` is deprecated, use `dismissButton` instead.
59
+
60
+ ```diff
61
+ - <p-banner persistent="true"></p-banner>
62
+ + <p-banner dismiss-button="false"></p-banner>
63
+ ```
64
+
65
+ ##### Carousel:
66
+
67
+ - Event `carouselChange` is deprecated, use `update` event instead.
68
+
69
+ ```diff
70
+ - <PCarousel onCarouselChange={(e: CustomEvent<CarouselChangeEvent>) => {}} />
71
+ + <PCarousel onUpdate={(e: CustomEvent<CarouselUpdateEvent>) => {}} />
72
+ ```
73
+
74
+ ##### Inline Notification:
75
+
76
+ - Prop `persistent` is deprecated, use `dismissButton` instead.
77
+
78
+ ```diff
79
+ - <p-inline-notification persistent="true"></p-inline-notification>
80
+ + <p-inline-notification dismiss-button="false"></p-inline-notification>
81
+ ```
82
+
83
+ ##### Pagination:
84
+
85
+ - Event `pageChange` is deprecated, use `update` event instead.
86
+
87
+ ```diff
88
+ - <PPagination onPageChange={(e: CustomEvent<PageChangeEvent>) => {}} />
89
+ + <PPagination onUpdate={(e: CustomEvent<PaginationUpdateEvent>) => {}} />
90
+ ```
91
+
92
+ #### Segmented Control:
93
+
94
+ - Event `segmentedControlChange` is deprecated, use `update` event instead.
95
+
96
+ ```diff
97
+ - <PSegmentedControl onSegmentedControlChange={(e: CustomEvent<SegmentedControlChangeEvent>) => {}} />
98
+ + <PSegmentedControl onUpdate={(e: CustomEvent<SegmentedControlUpdateEvent>) => {}} />
99
+ ```
100
+
101
+ #### Stepper Horizontal:
102
+
103
+ - Event `stepChange` is deprecated, use `update` event instead.
104
+
105
+ ```diff
106
+ - <PStepperHorizontal onStepChange={(e: CustomEvent<StepChangeEvent>) => {}} />
107
+ + <PStepperHorizontal onUpdate={(e: CustomEvent<StepperHorizontalUpdateEvent>) => {}} />
108
+ ```
109
+
110
+ #### Switch:
111
+
112
+ - Event `switchChange` is deprecated, use `update` event instead.
113
+
114
+ ```diff
115
+ - <PSwitch onSwitchChange={(e: CustomEvent<SwitchChangeEvent>) => {}} />
116
+ + <PSwitch onUpdate={(e: CustomEvent<SwitchUpdateEvent>) => {}} />
117
+ ```
118
+
119
+ #### Table:
120
+
121
+ - Event `sortingChange` is deprecated, use `update` event instead.
122
+
123
+ ```diff
124
+ - <PTable onSortingChange={(e: CustomEvent<SortingChangeEvent>) => {}} />
125
+ + <PTable onUpdate={(e: CustomEvent<TableUpdateEvent>) => {}} />
126
+ ```
127
+
128
+ ##### Tabs:
129
+
130
+ - Event `tabChange` is deprecated, use `update` event instead.
131
+
132
+ ```diff
133
+ - <PTabs onTabChange={(e: CustomEvent<TabChangeEvent>) => {}} />
134
+ + <PTabs onUpdate={(e: CustomEvent<TabsUpdateEvent>) => {}} />
135
+ ```
136
+
137
+ ##### Tabs Bar:
138
+
139
+ - Event `tabChange` is deprecated, use `update` event instead.
140
+
141
+ ```diff
142
+ - <PTabsBar onTabChange={(e: CustomEvent<TabChangeEvent>) => {}} />
143
+ + <PTabsBar onUpdate={(e: CustomEvent<TabsUpdateEvent>) => {}} />
144
+ ```
145
+
12
146
  ### [3.0.0-alpha.5] - 2023-03-30
13
147
 
14
148
  #### Added
15
149
 
16
- - `Wordmark` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2418)
17
- - `Crest` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2437)
150
+ - `Wordmark` ([#2418](https://github.com/porsche-design-system/porsche-design-system/pull/2418))
151
+ - `Crest` ([#2437](https://github.com/porsche-design-system/porsche-design-system/pull/2437))
18
152
  - Styles: changed color values of `theme[Light|Dark]ContrastMedium` and `theme[Light|Dark]Notification[*]` color tokens
19
- of `Styles` subpackage [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2436)
153
+ of `Styles` subpackage ([#2436](https://github.com/porsche-design-system/porsche-design-system/pull/2436))
20
154
 
21
155
  ### [3.0.0-alpha.4] - 2023-03-28
22
156
 
23
157
  #### Changed
24
158
 
25
- - `Table` matches new design language [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2364/)
159
+ - `Table` matches new design language
160
+ ([#2364](https://github.com/porsche-design-system/porsche-design-system/pull/2364/))
26
161
 
27
162
  #### Added
28
163
 
29
- - Styles: [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
164
+ - Styles: ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
30
165
  - `gridWide`
31
166
  - `gridWideColumnStart` and `pds-grid-wide-column-start`
32
167
  - `gridWideColumnEnd` and `pds-grid-wide-column-end`
@@ -39,14 +174,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
39
174
  - `gridWideOffset`, `gridWideOffsetBase`, `gridWideOffsetS`, `gridWideOffsetXXL` and `$pds-grid-wide-offset-base`,
40
175
  `$pds-grid-wide-offset-s`, `$pds-grid-wide-offset-xxl`
41
176
  - `gridFullOffset` and `$pds-grid-full-offset`
42
- - `Button Tile` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2381)
43
- - `Fieldset` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2404)
44
- - `Link Tile Model Signature` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2388)
45
- - Prop `activeSlideIndex` to `Carousel` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2421)
177
+ - `Button Tile` ([#2381](https://github.com/porsche-design-system/porsche-design-system/pull/2381))
178
+ - `Fieldset` ([#2404](https://github.com/porsche-design-system/porsche-design-system/pull/2404))
179
+ - `Link Tile Model Signature` ([#2388](https://github.com/porsche-design-system/porsche-design-system/pull/2388))
180
+ - Prop `activeSlideIndex` to `Carousel`
181
+ ([#2421](https://github.com/porsche-design-system/porsche-design-system/pull/2421))
46
182
  - Prop `slidesPerPage` supports value `auto` of `Carousel`
47
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2421)
48
- - Prop `scrollbar` for `Scroller` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2364/)
49
- - Prop `theme` for `Table` [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2364/)
183
+ ([#2421](https://github.com/porsche-design-system/porsche-design-system/pull/2421))
184
+ - Prop `scrollbar` for `Scroller` ([#2364](https://github.com/porsche-design-system/porsche-design-system/pull/2364/))
185
+ - Prop `theme` for `Table` ([#2364](https://github.com/porsche-design-system/porsche-design-system/pull/2364/))
50
186
 
51
187
  #### Fixed
52
188
 
@@ -55,37 +191,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
191
  #### Changed
56
192
 
57
193
  - Styles: `gridStyles` and `pds-grid` are supporting an additional column range called `wide`
58
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
194
+ ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
59
195
  - Styles: SCSS version needs to be imported by `@porsche-design-system/components-js/styles` instead of
60
196
  `@porsche-design-system/components-js/styles/scss`
61
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
197
+ ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
62
198
 
63
199
  #### Removed
64
200
 
65
201
  - `Banner`: CSS variable `--p-banner-position-type`
66
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
202
+ ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
67
203
  - `gridSafeZone`, `gridSafeZoneBase`, `gridSafeZoneXXL` and `pds-grid-safe-zone-base`, `pds-grid-safe-zone-xxl`
68
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
204
+ ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
69
205
  - `gridWidth`, `gridWidthMin`, `gridWidthMax` and `pds-grid-width-min`, `pds-grid-width-max`
70
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
206
+ ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
71
207
 
72
208
  #### 🤖 Property deprecations 🤖
73
209
 
74
210
  ##### Banner:
75
211
 
76
212
  - Prop `width` has no effect anymore, instead the component is aligned with Porsche Grid "extended" by default.
77
- [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2422)
213
+ ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
78
214
 
79
215
  #### 🤡 Component deprecations 🤡
80
216
 
81
- ##### Marque [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2418)
217
+ ##### Marque: ([#2418](https://github.com/porsche-design-system/porsche-design-system/pull/2418))
82
218
 
83
219
  ```diff
84
220
  - <p-marque></p-marque>
85
221
  + <p-wordmark></p-wordmark>
86
222
  ```
87
223
 
88
- ##### Fieldset Wrapper: [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2404)
224
+ ##### Fieldset Wrapper: ([#2404](https://github.com/porsche-design-system/porsche-design-system/pull/2404))
89
225
 
90
226
  ```diff
91
227
  - <p-fieldset-wrapper label="Some legend label">
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PAccordion = forwardRef(({ compact, heading, onAccordionChange, onChange, open, size = 'small', tag = 'h2', theme = 'light', className, ...rest }, ref) => {
6
+ const PAccordion = forwardRef(({ compact, heading, onAccordionChange, onUpdate, open, size = 'small', tag = 'h2', theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  useEventCallback(elementRef, 'accordionChange', onAccordionChange);
9
- useEventCallback(elementRef, 'change', onChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-accordion');
11
11
  const propsToSync = [compact, heading, open, size, tag, theme];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,14 +3,14 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PBanner = forwardRef(({ description = '', heading = '', onDismiss, persistent = false, state = 'info', theme = 'light', width = 'extended', className, ...rest }, ref) => {
6
+ const PBanner = forwardRef(({ description = '', dismissButton = true, heading = '', onDismiss, open = false, persistent, state = 'info', theme = 'light', width, className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  useEventCallback(elementRef, 'dismiss', onDismiss);
9
9
  const WebComponentTag = usePrefix('p-banner');
10
- const propsToSync = [description, heading, persistent, state, theme, width];
10
+ const propsToSync = [description, dismissButton, heading, open, persistent, state, theme, width];
11
11
  useBrowserLayoutEffect(() => {
12
12
  const { current } = elementRef;
13
- ['description', 'heading', 'persistent', 'state', 'theme', 'width'].forEach((propName, i) => (current[propName] = propsToSync[i]));
13
+ ['description', 'dismissButton', 'heading', 'open', 'persistent', 'state', 'theme', 'width'].forEach((propName, i) => (current[propName] = propsToSync[i]));
14
14
  }, propsToSync);
15
15
  const props = {
16
16
  ...rest,
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PCarousel = forwardRef(({ activeSlideIndex = 0, alignHeader = 'left', description, disablePagination, heading, intl, onCarouselChange, onChange, pagination = true, rewind = true, slidesPerPage = 1, theme = 'light', width = 'basic', wrapContent, className, ...rest }, ref) => {
6
+ const PCarousel = forwardRef(({ activeSlideIndex = 0, alignHeader = 'left', description, disablePagination, heading, intl, onCarouselChange, onUpdate, pagination = true, rewind = true, slidesPerPage = 1, theme = 'light', width = 'basic', wrapContent, className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  useEventCallback(elementRef, 'carouselChange', onCarouselChange);
9
- useEventCallback(elementRef, 'change', onChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-carousel');
11
11
  const propsToSync = [activeSlideIndex, alignHeader, description, disablePagination, heading, intl, pagination, rewind, slidesPerPage, theme, width, wrapContent];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,15 +3,15 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PInlineNotification = forwardRef(({ actionIcon = 'arrow-right', actionLabel, actionLoading = false, description = '', heading = '', onAction, onDismiss, persistent = false, state = 'info', theme = 'light', className, ...rest }, ref) => {
6
+ const PInlineNotification = forwardRef(({ actionIcon = 'arrow-right', actionLabel, actionLoading = false, description = '', dismissButton = true, heading = '', onAction, onDismiss, persistent, state = 'info', theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  useEventCallback(elementRef, 'action', onAction);
9
9
  useEventCallback(elementRef, 'dismiss', onDismiss);
10
10
  const WebComponentTag = usePrefix('p-inline-notification');
11
- const propsToSync = [actionIcon, actionLabel, actionLoading, description, heading, persistent, state, theme];
11
+ const propsToSync = [actionIcon, actionLabel, actionLoading, description, dismissButton, heading, persistent, state, theme];
12
12
  useBrowserLayoutEffect(() => {
13
13
  const { current } = elementRef;
14
- ['actionIcon', 'actionLabel', 'actionLoading', 'description', 'heading', 'persistent', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
14
+ ['actionIcon', 'actionLabel', 'actionLoading', 'description', 'dismissButton', 'heading', 'persistent', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
15
  }, propsToSync);
16
16
  const props = {
17
17
  ...rest,
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PPagination = forwardRef(({ activePage = 1, allyLabel, allyLabelNext, allyLabelPage, allyLabelPrev, intl = { root: 'Pagination', prev: 'Previous page', next: 'Next page', page: 'Page', }, itemsPerPage = 1, maxNumberOfPageLinks = { base: 5, xs: 7, }, onChange, onPageChange, theme = 'light', totalItemsCount = 1, className, ...rest }, ref) => {
6
+ const PPagination = forwardRef(({ activePage = 1, allyLabel, allyLabelNext, allyLabelPage, allyLabelPrev, intl = { root: 'Pagination', prev: 'Previous page', next: 'Next page', page: 'Page', }, itemsPerPage = 1, maxNumberOfPageLinks = { base: 5, xs: 7, }, onPageChange, onUpdate, theme = 'light', totalItemsCount = 1, className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'pageChange', onPageChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-pagination');
11
11
  const propsToSync = [activePage, allyLabel, allyLabelNext, allyLabelPage, allyLabelPrev, intl, itemsPerPage, maxNumberOfPageLinks, theme, totalItemsCount];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PSegmentedControl = forwardRef(({ backgroundColor, onChange, onSegmentedControlChange, theme = 'light', value, className, ...rest }, ref) => {
6
+ const PSegmentedControl = forwardRef(({ backgroundColor, onSegmentedControlChange, onUpdate, theme = 'light', value, className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'segmentedControlChange', onSegmentedControlChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-segmented-control');
11
11
  const propsToSync = [backgroundColor, theme, value];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PStepperHorizontal = forwardRef(({ onChange, onStepChange, size = 'small', theme = 'light', className, ...rest }, ref) => {
6
+ const PStepperHorizontal = forwardRef(({ onStepChange, onUpdate, size = 'small', theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'stepChange', onStepChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-stepper-horizontal');
11
11
  const propsToSync = [size, theme];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PSwitch = forwardRef(({ alignLabel = 'right', checked = false, disabled = false, hideLabel = false, loading = false, onChange, onSwitchChange, stretch = false, theme = 'light', className, ...rest }, ref) => {
6
+ const PSwitch = forwardRef(({ alignLabel = 'right', checked = false, disabled = false, hideLabel = false, loading = false, onSwitchChange, onUpdate, stretch = false, theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'switchChange', onSwitchChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-switch');
11
11
  const propsToSync = [alignLabel, checked, disabled, hideLabel, loading, stretch, theme];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PTable = forwardRef(({ caption, onChange, onSortingChange, theme = 'light', className, ...rest }, ref) => {
6
+ const PTable = forwardRef(({ caption, onSortingChange, onUpdate, theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'sortingChange', onSortingChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-table');
11
11
  const propsToSync = [caption, theme];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PTabsBar = forwardRef(({ activeTabIndex, gradientColor = 'background-base', gradientColorScheme, onChange, onTabChange, size = 'small', theme = 'light', weight = 'regular', className, ...rest }, ref) => {
6
+ const PTabsBar = forwardRef(({ activeTabIndex, gradientColor = 'background-base', gradientColorScheme, onTabChange, onUpdate, size = 'small', theme = 'light', weight = 'regular', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'tabChange', onTabChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-tabs-bar');
11
11
  const propsToSync = [activeTabIndex, gradientColor, gradientColorScheme, size, theme, weight];
12
12
  useBrowserLayoutEffect(() => {
@@ -3,10 +3,10 @@ import { forwardRef, useRef } from 'react';
3
3
  import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PTabs = forwardRef(({ activeTabIndex = 0, gradientColor = 'background-base', gradientColorScheme, onChange, onTabChange, size = 'small', theme = 'light', weight = 'regular', className, ...rest }, ref) => {
6
+ const PTabs = forwardRef(({ activeTabIndex = 0, gradientColor = 'background-base', gradientColorScheme, onTabChange, onUpdate, size = 'small', theme = 'light', weight = 'regular', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
- useEventCallback(elementRef, 'change', onChange);
9
8
  useEventCallback(elementRef, 'tabChange', onTabChange);
9
+ useEventCallback(elementRef, 'update', onUpdate);
10
10
  const WebComponentTag = usePrefix('p-tabs');
11
11
  const propsToSync = [activeTabIndex, gradientColor, gradientColorScheme, size, theme, weight];
12
12
  useBrowserLayoutEffect(() => {
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import type { AccordionChangeEvent, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
2
+ import type { AccordionUpdateEvent, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
3
3
  export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
4
4
  /**
5
5
  * Displays the Accordion as compact version with thinner border and smaller paddings.
@@ -10,13 +10,13 @@ export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
10
10
  */
11
11
  heading?: string;
12
12
  /**
13
- * @deprecated since v3.0.0, will be removed with next major release, use `change` event instead. Emitted when accordion state is changed.
13
+ * @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when accordion state is changed.
14
14
  */
15
- onAccordionChange?: (event: CustomEvent<AccordionChangeEvent>) => void;
15
+ onAccordionChange?: (event: CustomEvent<AccordionUpdateEvent>) => void;
16
16
  /**
17
17
  * Emitted when accordion state is changed.
18
18
  */
19
- onChange?: (event: CustomEvent<AccordionChangeEvent>) => void;
19
+ onUpdate?: (event: CustomEvent<AccordionUpdateEvent>) => void;
20
20
  /**
21
21
  * Defines if accordion is open.
22
22
  */
@@ -44,13 +44,13 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
44
44
  */
45
45
  heading?: string;
46
46
  /**
47
- * @deprecated since v3.0.0, will be removed with next major release, use `change` event instead. Emitted when accordion state is changed.
47
+ * @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when accordion state is changed.
48
48
  */
49
- onAccordionChange?: (event: CustomEvent<AccordionChangeEvent>) => void;
49
+ onAccordionChange?: (event: CustomEvent<AccordionUpdateEvent>) => void;
50
50
  /**
51
51
  * Emitted when accordion state is changed.
52
52
  */
53
- onChange?: (event: CustomEvent<AccordionChangeEvent>) => void;
53
+ onUpdate?: (event: CustomEvent<AccordionUpdateEvent>) => void;
54
54
  /**
55
55
  * Defines if accordion is open.
56
56
  */
@@ -5,10 +5,10 @@ var react = require('react');
5
5
  var hooks = require('../../hooks.js');
6
6
  var utils = require('../../utils.js');
7
7
 
8
- const PAccordion = react.forwardRef(({ compact, heading, onAccordionChange, onChange, open, size = 'small', tag = 'h2', theme = 'light', className, ...rest }, ref) => {
8
+ const PAccordion = react.forwardRef(({ compact, heading, onAccordionChange, onUpdate, open, size = 'small', tag = 'h2', theme = 'light', className, ...rest }, ref) => {
9
9
  const elementRef = react.useRef();
10
10
  hooks.useEventCallback(elementRef, 'accordionChange', onAccordionChange);
11
- hooks.useEventCallback(elementRef, 'change', onChange);
11
+ hooks.useEventCallback(elementRef, 'update', onUpdate);
12
12
  const WebComponentTag = hooks.usePrefix('p-accordion');
13
13
  const propsToSync = [compact, heading, open, size, tag, theme];
14
14
  hooks.useBrowserLayoutEffect(() => {
@@ -5,6 +5,10 @@ export type PBannerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
5
5
  * Description of the banner.
6
6
  */
7
7
  description?: string;
8
+ /**
9
+ * If false, the banner will not have a dismiss button.
10
+ */
11
+ dismissButton?: boolean;
8
12
  /**
9
13
  * Heading of the banner.
10
14
  */
@@ -14,7 +18,11 @@ export type PBannerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
14
18
  */
15
19
  onDismiss?: (event: CustomEvent<void>) => void;
16
20
  /**
17
- * Defines if the banner can be closed/removed by the user.
21
+ * If true, the banner is open.
22
+ */
23
+ open: boolean;
24
+ /**
25
+ * @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the banner can be closed/removed by the user.
18
26
  */
19
27
  persistent?: boolean;
20
28
  /**
@@ -36,6 +44,10 @@ export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTM
36
44
  * Description of the banner.
37
45
  */
38
46
  description?: string;
47
+ /**
48
+ * If false, the banner will not have a dismiss button.
49
+ */
50
+ dismissButton?: boolean;
39
51
  /**
40
52
  * Heading of the banner.
41
53
  */
@@ -45,7 +57,11 @@ export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTM
45
57
  */
46
58
  onDismiss?: (event: CustomEvent<void>) => void;
47
59
  /**
48
- * Defines if the banner can be closed/removed by the user.
60
+ * If true, the banner is open.
61
+ */
62
+ open: boolean;
63
+ /**
64
+ * @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the banner can be closed/removed by the user.
49
65
  */
50
66
  persistent?: boolean;
51
67
  /**
@@ -5,14 +5,14 @@ var react = require('react');
5
5
  var hooks = require('../../hooks.js');
6
6
  var utils = require('../../utils.js');
7
7
 
8
- const PBanner = react.forwardRef(({ description = '', heading = '', onDismiss, persistent = false, state = 'info', theme = 'light', width = 'extended', className, ...rest }, ref) => {
8
+ const PBanner = react.forwardRef(({ description = '', dismissButton = true, heading = '', onDismiss, open = false, persistent, state = 'info', theme = 'light', width, className, ...rest }, ref) => {
9
9
  const elementRef = react.useRef();
10
10
  hooks.useEventCallback(elementRef, 'dismiss', onDismiss);
11
11
  const WebComponentTag = hooks.usePrefix('p-banner');
12
- const propsToSync = [description, heading, persistent, state, theme, width];
12
+ const propsToSync = [description, dismissButton, heading, open, persistent, state, theme, width];
13
13
  hooks.useBrowserLayoutEffect(() => {
14
14
  const { current } = elementRef;
15
- ['description', 'heading', 'persistent', 'state', 'theme', 'width'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
+ ['description', 'dismissButton', 'heading', 'open', 'persistent', 'state', 'theme', 'width'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
16
  }, propsToSync);
17
17
  const props = {
18
18
  ...rest,
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import type { CarouselAlignHeader, BreakpointCustomizable, CarouselInternationalization, CarouselChangeEvent, Theme, CarouselWidth } from '../types';
2
+ import type { CarouselAlignHeader, BreakpointCustomizable, CarouselInternationalization, CarouselUpdateEvent, Theme, CarouselWidth } from '../types';
3
3
  export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
4
4
  /**
5
5
  * Defines which slide to be active (zero-based numbering).
@@ -26,13 +26,13 @@ export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
26
26
  */
27
27
  intl?: CarouselInternationalization;
28
28
  /**
29
- * @deprecated since v3.0.0, will be removed with next major release, use `change` event instead. Emitted when carousel's content slides.
29
+ * @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when carousel's content slides.
30
30
  */
31
- onCarouselChange?: (event: CustomEvent<CarouselChangeEvent>) => void;
31
+ onCarouselChange?: (event: CustomEvent<CarouselUpdateEvent>) => void;
32
32
  /**
33
33
  * Emitted when carousel's content slides.
34
34
  */
35
- onChange?: (event: CustomEvent<CarouselChangeEvent>) => void;
35
+ onUpdate?: (event: CustomEvent<CarouselUpdateEvent>) => void;
36
36
  /**
37
37
  * If false, the carousel will not show pagination bullets at the bottom.
38
38
  */
@@ -85,13 +85,13 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<H
85
85
  */
86
86
  intl?: CarouselInternationalization;
87
87
  /**
88
- * @deprecated since v3.0.0, will be removed with next major release, use `change` event instead. Emitted when carousel's content slides.
88
+ * @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when carousel's content slides.
89
89
  */
90
- onCarouselChange?: (event: CustomEvent<CarouselChangeEvent>) => void;
90
+ onCarouselChange?: (event: CustomEvent<CarouselUpdateEvent>) => void;
91
91
  /**
92
92
  * Emitted when carousel's content slides.
93
93
  */
94
- onChange?: (event: CustomEvent<CarouselChangeEvent>) => void;
94
+ onUpdate?: (event: CustomEvent<CarouselUpdateEvent>) => void;
95
95
  /**
96
96
  * If false, the carousel will not show pagination bullets at the bottom.
97
97
  */
@@ -5,10 +5,10 @@ var react = require('react');
5
5
  var hooks = require('../../hooks.js');
6
6
  var utils = require('../../utils.js');
7
7
 
8
- const PCarousel = react.forwardRef(({ activeSlideIndex = 0, alignHeader = 'left', description, disablePagination, heading, intl, onCarouselChange, onChange, pagination = true, rewind = true, slidesPerPage = 1, theme = 'light', width = 'basic', wrapContent, className, ...rest }, ref) => {
8
+ const PCarousel = react.forwardRef(({ activeSlideIndex = 0, alignHeader = 'left', description, disablePagination, heading, intl, onCarouselChange, onUpdate, pagination = true, rewind = true, slidesPerPage = 1, theme = 'light', width = 'basic', wrapContent, className, ...rest }, ref) => {
9
9
  const elementRef = react.useRef();
10
10
  hooks.useEventCallback(elementRef, 'carouselChange', onCarouselChange);
11
- hooks.useEventCallback(elementRef, 'change', onChange);
11
+ hooks.useEventCallback(elementRef, 'update', onUpdate);
12
12
  const WebComponentTag = hooks.usePrefix('p-carousel');
13
13
  const propsToSync = [activeSlideIndex, alignHeader, description, disablePagination, heading, intl, pagination, rewind, slidesPerPage, theme, width, wrapContent];
14
14
  hooks.useBrowserLayoutEffect(() => {
@@ -17,6 +17,10 @@ export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color' | 'onCha
17
17
  * Description of the inline-notification.
18
18
  */
19
19
  description?: string;
20
+ /**
21
+ * If false, the inline-notification will not have a dismiss button.
22
+ */
23
+ dismissButton?: boolean;
20
24
  /**
21
25
  * Heading of the inline-notification.
22
26
  */
@@ -30,7 +34,7 @@ export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color' | 'onCha
30
34
  */
31
35
  onDismiss?: (event: CustomEvent<void>) => void;
32
36
  /**
33
- * Defines if the inline-notification can be closed/removed by the user.
37
+ * @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the inline-notification can be closed/removed by the user.
34
38
  */
35
39
  persistent?: boolean;
36
40
  /**
@@ -59,6 +63,10 @@ export declare const PInlineNotification: import("react").ForwardRefExoticCompon
59
63
  * Description of the inline-notification.
60
64
  */
61
65
  description?: string;
66
+ /**
67
+ * If false, the inline-notification will not have a dismiss button.
68
+ */
69
+ dismissButton?: boolean;
62
70
  /**
63
71
  * Heading of the inline-notification.
64
72
  */
@@ -72,7 +80,7 @@ export declare const PInlineNotification: import("react").ForwardRefExoticCompon
72
80
  */
73
81
  onDismiss?: (event: CustomEvent<void>) => void;
74
82
  /**
75
- * Defines if the inline-notification can be closed/removed by the user.
83
+ * @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the inline-notification can be closed/removed by the user.
76
84
  */
77
85
  persistent?: boolean;
78
86
  /**