@porsche-design-system/components-react 3.0.0-alpha.5 → 3.0.0-alpha.6
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 +149 -20
- package/esm/lib/components/accordion.wrapper.js +2 -2
- package/esm/lib/components/banner.wrapper.js +3 -3
- package/esm/lib/components/carousel.wrapper.js +2 -2
- package/esm/lib/components/inline-notification.wrapper.js +3 -3
- package/esm/lib/components/pagination.wrapper.js +2 -2
- package/esm/lib/components/segmented-control.wrapper.js +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/esm/lib/components/switch.wrapper.js +2 -2
- package/esm/lib/components/table.wrapper.js +2 -2
- package/esm/lib/components/tabs-bar.wrapper.js +2 -2
- package/esm/lib/components/tabs.wrapper.js +2 -2
- package/lib/components/accordion.wrapper.d.ts +7 -7
- package/lib/components/accordion.wrapper.js +2 -2
- package/lib/components/banner.wrapper.d.ts +18 -2
- package/lib/components/banner.wrapper.js +3 -3
- package/lib/components/carousel.wrapper.d.ts +7 -7
- package/lib/components/carousel.wrapper.js +2 -2
- package/lib/components/inline-notification.wrapper.d.ts +10 -2
- package/lib/components/inline-notification.wrapper.js +3 -3
- package/lib/components/pagination.wrapper.d.ts +9 -9
- package/lib/components/pagination.wrapper.js +2 -2
- package/lib/components/segmented-control.wrapper.d.ts +9 -9
- package/lib/components/segmented-control.wrapper.js +2 -2
- package/lib/components/stepper-horizontal.wrapper.d.ts +9 -9
- package/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/lib/components/switch.wrapper.d.ts +9 -9
- package/lib/components/switch.wrapper.js +2 -2
- package/lib/components/table.wrapper.d.ts +9 -9
- package/lib/components/table.wrapper.js +2 -2
- package/lib/components/tabs-bar.wrapper.d.ts +9 -9
- package/lib/components/tabs-bar.wrapper.js +2 -2
- package/lib/components/tabs.wrapper.d.ts +9 -9
- package/lib/components/tabs.wrapper.js +2 -2
- package/lib/types.d.ts +20 -19
- package/package.json +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +76 -84
- package/ssr/components/dist/utils/esm/utils-entry.js +4 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +5 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +5 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +76 -84
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +5 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
- package/ssr/lib/components/accordion.wrapper.d.ts +7 -7
- package/ssr/lib/components/banner.wrapper.d.ts +18 -2
- package/ssr/lib/components/carousel.wrapper.d.ts +7 -7
- package/ssr/lib/components/inline-notification.wrapper.d.ts +10 -2
- package/ssr/lib/components/pagination.wrapper.d.ts +9 -9
- package/ssr/lib/components/segmented-control.wrapper.d.ts +9 -9
- package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +9 -9
- package/ssr/lib/components/switch.wrapper.d.ts +9 -9
- package/ssr/lib/components/table.wrapper.d.ts +9 -9
- package/ssr/lib/components/tabs-bar.wrapper.d.ts +9 -9
- package/ssr/lib/components/tabs.wrapper.d.ts +9 -9
- package/ssr/lib/dsr-components/banner.d.ts +2 -0
- package/ssr/lib/dsr-components/inline-notification.d.ts +1 -0
- package/ssr/lib/dsr-components/switch.d.ts +0 -3
- package/ssr/lib/types.d.ts +20 -19
package/CHANGELOG.md
CHANGED
|
@@ -9,24 +9,152 @@ 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-alpha.6] - 2023-04-06
|
|
13
|
+
|
|
14
|
+
#### Added
|
|
15
|
+
|
|
16
|
+
- `xxl` breakpoint for all breakpoint customizable component values
|
|
17
|
+
([#2454](https://github.com/porsche-design-system/porsche-design-system/pull/2454))
|
|
18
|
+
|
|
19
|
+
#### Fixed
|
|
20
|
+
|
|
21
|
+
- Disabled color of `Icon` component ([#2446](https://github.com/porsche-design-system/porsche-design-system/pull/2446))
|
|
22
|
+
- Support of `Radio Button Wrapper` for name value with non-alphanumeric characters
|
|
23
|
+
([#2443](https://github.com/porsche-design-system/porsche-design-system/pull/2443))
|
|
24
|
+
|
|
25
|
+
#### Changed
|
|
26
|
+
|
|
27
|
+
- `Banner` is a controlled component now and its visibility has to be controlled via the `open` prop
|
|
28
|
+
([#2447](https://github.com/porsche-design-system/porsche-design-system/pull/2447))
|
|
29
|
+
|
|
30
|
+
```diff
|
|
31
|
+
- <p-banner></p-banner>
|
|
32
|
+
+ <p-banner open="true"></p-banner>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- Renamed all custom `change` events to `update` because of bad event emissions with native `change` events, e.g. with
|
|
36
|
+
nested `select` or `input` elements
|
|
37
|
+
|
|
38
|
+
#### 🤖 Property deprecations 🤖
|
|
39
|
+
|
|
40
|
+
##### Accordion:
|
|
41
|
+
|
|
42
|
+
- Event `accordionChange` is deprecated, use `update` event instead.
|
|
43
|
+
|
|
44
|
+
```diff
|
|
45
|
+
- <PAccordion onAccordionChange={(e: CustomEvent<AccordionChangeEvent>) => {}} />
|
|
46
|
+
+ <PAccordion onUpdate={(e: CustomEvent<AccordionUPdateEvent>) => {}} />
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
##### Banner:
|
|
50
|
+
|
|
51
|
+
- Prop `persistent` is deprecated, use `dismissButton` instead.
|
|
52
|
+
|
|
53
|
+
```diff
|
|
54
|
+
- <p-banner persistent="true"></p-banner>
|
|
55
|
+
+ <p-banner dismiss-button="false"></p-banner>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
##### Carousel:
|
|
59
|
+
|
|
60
|
+
- Event `carouselChange` is deprecated, use `update` event instead.
|
|
61
|
+
|
|
62
|
+
```diff
|
|
63
|
+
- <PCarousel onCarouselChange={(e: CustomEvent<CarouselChangeEvent>) => {}} />
|
|
64
|
+
+ <PCarousel onUpdate={(e: CustomEvent<CarouselUpdateEvent>) => {}} />
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
##### Inline Notification:
|
|
68
|
+
|
|
69
|
+
- Prop `persistent` is deprecated, use `dismissButton` instead.
|
|
70
|
+
|
|
71
|
+
```diff
|
|
72
|
+
- <p-inline-notification persistent="true"></p-inline-notification>
|
|
73
|
+
+ <p-inline-notification dismiss-button="false"></p-inline-notification>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
##### Pagination:
|
|
77
|
+
|
|
78
|
+
- Event `pageChange` is deprecated, use `update` event instead.
|
|
79
|
+
|
|
80
|
+
```diff
|
|
81
|
+
- <PPagination onPageChange={(e: CustomEvent<PageChangeEvent>) => {}} />
|
|
82
|
+
+ <PPagination onUpdate={(e: CustomEvent<PaginationUpdateEvent>) => {}} />
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### Segmented Control:
|
|
86
|
+
|
|
87
|
+
- Event `segmentedControlChange` is deprecated, use `update` event instead.
|
|
88
|
+
|
|
89
|
+
```diff
|
|
90
|
+
- <PSegmentedControl onSegmentedControlChange={(e: CustomEvent<SegmentedControlChangeEvent>) => {}} />
|
|
91
|
+
+ <PSegmentedControl onUpdate={(e: CustomEvent<SegmentedControlUpdateEvent>) => {}} />
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### Stepper Horizontal:
|
|
95
|
+
|
|
96
|
+
- Event `stepChange` is deprecated, use `update` event instead.
|
|
97
|
+
|
|
98
|
+
```diff
|
|
99
|
+
- <PStepperHorizontal onStepChange={(e: CustomEvent<StepChangeEvent>) => {}} />
|
|
100
|
+
+ <PStepperHorizontal onUpdate={(e: CustomEvent<StepperHorizontalUpdateEvent>) => {}} />
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Switch:
|
|
104
|
+
|
|
105
|
+
- Event `switchChange` is deprecated, use `update` event instead.
|
|
106
|
+
|
|
107
|
+
```diff
|
|
108
|
+
- <PSwitch onSwitchChange={(e: CustomEvent<SwitchChangeEvent>) => {}} />
|
|
109
|
+
+ <PSwitch onUpdate={(e: CustomEvent<SwitchUpdateEvent>) => {}} />
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### Table:
|
|
113
|
+
|
|
114
|
+
- Event `sortingChange` is deprecated, use `update` event instead.
|
|
115
|
+
|
|
116
|
+
```diff
|
|
117
|
+
- <PTable onSortingChange={(e: CustomEvent<SortingChangeEvent>) => {}} />
|
|
118
|
+
+ <PTable onUpdate={(e: CustomEvent<TableUpdateEvent>) => {}} />
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
##### Tabs:
|
|
122
|
+
|
|
123
|
+
- Event `tabChange` is deprecated, use `update` event instead.
|
|
124
|
+
|
|
125
|
+
```diff
|
|
126
|
+
- <PTabs onTabChange={(e: CustomEvent<TabChangeEvent>) => {}} />
|
|
127
|
+
+ <PTabs onUpdate={(e: CustomEvent<TabsUpdateEvent>) => {}} />
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
##### Tabs Bar:
|
|
131
|
+
|
|
132
|
+
- Event `tabChange` is deprecated, use `update` event instead.
|
|
133
|
+
|
|
134
|
+
```diff
|
|
135
|
+
- <PTabsBar onTabChange={(e: CustomEvent<TabChangeEvent>) => {}} />
|
|
136
|
+
+ <PTabsBar onUpdate={(e: CustomEvent<TabsUpdateEvent>) => {}} />
|
|
137
|
+
```
|
|
138
|
+
|
|
12
139
|
### [3.0.0-alpha.5] - 2023-03-30
|
|
13
140
|
|
|
14
141
|
#### Added
|
|
15
142
|
|
|
16
|
-
- `Wordmark` [
|
|
17
|
-
- `Crest` [
|
|
143
|
+
- `Wordmark` ([#2418](https://github.com/porsche-design-system/porsche-design-system/pull/2418))
|
|
144
|
+
- `Crest` ([#2437](https://github.com/porsche-design-system/porsche-design-system/pull/2437))
|
|
18
145
|
- Styles: changed color values of `theme[Light|Dark]ContrastMedium` and `theme[Light|Dark]Notification[*]` color tokens
|
|
19
|
-
of `Styles` subpackage [
|
|
146
|
+
of `Styles` subpackage ([#2436](https://github.com/porsche-design-system/porsche-design-system/pull/2436))
|
|
20
147
|
|
|
21
148
|
### [3.0.0-alpha.4] - 2023-03-28
|
|
22
149
|
|
|
23
150
|
#### Changed
|
|
24
151
|
|
|
25
|
-
- `Table` matches new design language
|
|
152
|
+
- `Table` matches new design language
|
|
153
|
+
([#2364](https://github.com/porsche-design-system/porsche-design-system/pull/2364/))
|
|
26
154
|
|
|
27
155
|
#### Added
|
|
28
156
|
|
|
29
|
-
- Styles: [
|
|
157
|
+
- Styles: ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
30
158
|
- `gridWide`
|
|
31
159
|
- `gridWideColumnStart` and `pds-grid-wide-column-start`
|
|
32
160
|
- `gridWideColumnEnd` and `pds-grid-wide-column-end`
|
|
@@ -39,14 +167,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
39
167
|
- `gridWideOffset`, `gridWideOffsetBase`, `gridWideOffsetS`, `gridWideOffsetXXL` and `$pds-grid-wide-offset-base`,
|
|
40
168
|
`$pds-grid-wide-offset-s`, `$pds-grid-wide-offset-xxl`
|
|
41
169
|
- `gridFullOffset` and `$pds-grid-full-offset`
|
|
42
|
-
- `Button Tile` [
|
|
43
|
-
- `Fieldset` [
|
|
44
|
-
- `Link Tile Model Signature` [
|
|
45
|
-
- Prop `activeSlideIndex` to `Carousel`
|
|
170
|
+
- `Button Tile` ([#2381](https://github.com/porsche-design-system/porsche-design-system/pull/2381))
|
|
171
|
+
- `Fieldset` ([#2404](https://github.com/porsche-design-system/porsche-design-system/pull/2404))
|
|
172
|
+
- `Link Tile Model Signature` ([#2388](https://github.com/porsche-design-system/porsche-design-system/pull/2388))
|
|
173
|
+
- Prop `activeSlideIndex` to `Carousel`
|
|
174
|
+
([#2421](https://github.com/porsche-design-system/porsche-design-system/pull/2421))
|
|
46
175
|
- Prop `slidesPerPage` supports value `auto` of `Carousel`
|
|
47
|
-
[
|
|
48
|
-
- Prop `scrollbar` for `Scroller` [
|
|
49
|
-
- Prop `theme` for `Table` [
|
|
176
|
+
([#2421](https://github.com/porsche-design-system/porsche-design-system/pull/2421))
|
|
177
|
+
- Prop `scrollbar` for `Scroller` ([#2364](https://github.com/porsche-design-system/porsche-design-system/pull/2364/))
|
|
178
|
+
- Prop `theme` for `Table` ([#2364](https://github.com/porsche-design-system/porsche-design-system/pull/2364/))
|
|
50
179
|
|
|
51
180
|
#### Fixed
|
|
52
181
|
|
|
@@ -55,37 +184,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
55
184
|
#### Changed
|
|
56
185
|
|
|
57
186
|
- Styles: `gridStyles` and `pds-grid` are supporting an additional column range called `wide`
|
|
58
|
-
[
|
|
187
|
+
([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
59
188
|
- Styles: SCSS version needs to be imported by `@porsche-design-system/components-js/styles` instead of
|
|
60
189
|
`@porsche-design-system/components-js/styles/scss`
|
|
61
|
-
[
|
|
190
|
+
([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
62
191
|
|
|
63
192
|
#### Removed
|
|
64
193
|
|
|
65
194
|
- `Banner`: CSS variable `--p-banner-position-type`
|
|
66
|
-
[
|
|
195
|
+
([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
67
196
|
- `gridSafeZone`, `gridSafeZoneBase`, `gridSafeZoneXXL` and `pds-grid-safe-zone-base`, `pds-grid-safe-zone-xxl`
|
|
68
|
-
[
|
|
197
|
+
([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
69
198
|
- `gridWidth`, `gridWidthMin`, `gridWidthMax` and `pds-grid-width-min`, `pds-grid-width-max`
|
|
70
|
-
[
|
|
199
|
+
([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
71
200
|
|
|
72
201
|
#### 🤖 Property deprecations 🤖
|
|
73
202
|
|
|
74
203
|
##### Banner:
|
|
75
204
|
|
|
76
205
|
- Prop `width` has no effect anymore, instead the component is aligned with Porsche Grid "extended" by default.
|
|
77
|
-
[
|
|
206
|
+
([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
|
|
78
207
|
|
|
79
208
|
#### 🤡 Component deprecations 🤡
|
|
80
209
|
|
|
81
|
-
##### Marque [
|
|
210
|
+
##### Marque: ([#2418](https://github.com/porsche-design-system/porsche-design-system/pull/2418))
|
|
82
211
|
|
|
83
212
|
```diff
|
|
84
213
|
- <p-marque></p-marque>
|
|
85
214
|
+ <p-wordmark></p-wordmark>
|
|
86
215
|
```
|
|
87
216
|
|
|
88
|
-
##### Fieldset Wrapper: [
|
|
217
|
+
##### Fieldset Wrapper: ([#2404](https://github.com/porsche-design-system/porsche-design-system/pull/2404))
|
|
89
218
|
|
|
90
219
|
```diff
|
|
91
220
|
- <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,
|
|
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, '
|
|
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,
|
|
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,
|
|
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, '
|
|
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
|
|
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, },
|
|
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,
|
|
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(({
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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 {
|
|
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 `
|
|
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<
|
|
15
|
+
onAccordionChange?: (event: CustomEvent<AccordionUpdateEvent>) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Emitted when accordion state is changed.
|
|
18
18
|
*/
|
|
19
|
-
|
|
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 `
|
|
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<
|
|
49
|
+
onAccordionChange?: (event: CustomEvent<AccordionUpdateEvent>) => void;
|
|
50
50
|
/**
|
|
51
51
|
* Emitted when accordion state is changed.
|
|
52
52
|
*/
|
|
53
|
-
|
|
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,
|
|
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, '
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
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,
|
|
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 `
|
|
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<
|
|
31
|
+
onCarouselChange?: (event: CustomEvent<CarouselUpdateEvent>) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Emitted when carousel's content slides.
|
|
34
34
|
*/
|
|
35
|
-
|
|
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 `
|
|
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<
|
|
90
|
+
onCarouselChange?: (event: CustomEvent<CarouselUpdateEvent>) => void;
|
|
91
91
|
/**
|
|
92
92
|
* Emitted when carousel's content slides.
|
|
93
93
|
*/
|
|
94
|
-
|
|
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,
|
|
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, '
|
|
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
|
/**
|