@porsche-design-system/components-react 3.0.0-rc.0 → 3.0.0-rc.2

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 (53) hide show
  1. package/CHANGELOG.md +87 -25
  2. package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +35 -26
  3. package/esm/lib/components/checkbox-wrapper.wrapper.js +3 -3
  4. package/esm/lib/components/icon.wrapper.js +1 -1
  5. package/esm/lib/components/scroller.wrapper.js +3 -3
  6. package/lib/components/checkbox-wrapper.wrapper.d.ts +8 -0
  7. package/lib/components/checkbox-wrapper.wrapper.js +3 -3
  8. package/lib/components/icon.wrapper.js +1 -1
  9. package/lib/components/scroller.wrapper.d.ts +15 -7
  10. package/lib/components/scroller.wrapper.js +3 -3
  11. package/lib/types.d.ts +219 -191
  12. package/package.json +2 -2
  13. package/ssr/components/dist/styles/esm/styles-entry.js +408 -266
  14. package/ssr/components/dist/utils/esm/utils-entry.js +90 -83
  15. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +4 -4
  16. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
  17. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  18. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +38 -0
  19. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +0 -1
  20. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -2
  21. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +62 -2
  22. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +2 -1
  23. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -1
  24. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
  25. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
  26. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +34 -0
  27. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
  28. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -1
  29. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -1
  30. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -1
  31. package/ssr/esm/components/dist/styles/esm/styles-entry.js +408 -267
  32. package/ssr/esm/components/dist/utils/esm/utils-entry.js +82 -83
  33. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +4 -4
  34. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
  35. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  36. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +36 -0
  37. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +0 -1
  38. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -2
  39. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +62 -2
  40. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +3 -2
  41. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -1
  42. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +2 -2
  43. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +3 -2
  44. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +32 -0
  45. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
  46. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -1
  47. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -1
  48. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -1
  49. package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +8 -0
  50. package/ssr/lib/components/scroller.wrapper.d.ts +15 -7
  51. package/ssr/lib/components/select-wrapper-dropdown.wrapper.d.ts +30 -0
  52. package/ssr/lib/dsr-components/select-wrapper.d.ts +0 -1
  53. package/ssr/lib/types.d.ts +219 -191
package/CHANGELOG.md CHANGED
@@ -9,12 +9,71 @@ 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.2] - 2023-05-09
13
+
14
+ #### Fixed
15
+
16
+ - `Checkbox Wrapper` Safari visual state change while hovering
17
+ [#2508](https://github.com/porsche-design-system/porsche-design-system/pull/2508)
18
+ - `Checkbox Wrapper` keyboard arrow navigation
19
+ [#2508](https://github.com/porsche-design-system/porsche-design-system/pull/2508)
20
+ - `Modal` fix hover state of dismiss button
21
+ ([#2510](https://github.com/porsche-design-system/porsche-design-system/pull/2510))
22
+ - `Link Pure`, `Button Pure`: adjust offset of `:hover` and `active` styles
23
+ ([#2511](https://github.com/porsche-design-system/porsche-design-system/pull/2511))
24
+ - `Tabs Bar`, `Tabs` ([#2521](https://github.com/porsche-design-system/porsche-design-system/pull/2521)):
25
+ - `focus` state of tabpanel
26
+ - Indicator bar height
27
+ - Optimize icon/text alignment of `Link Pure` and `Button Pure` in Safari
28
+ - `Select Wrapper` multiline option height and scaling behavior
29
+ ([#2524](https://github.com/porsche-design-system/porsche-design-system/pull/2524))
30
+ - Fixed accessibility issues of `Tabs`, `Tabs Bar` and `Stepper Horizontal` to comply with v.4.7.0 of `axe-core`
31
+ ([#2530](https://github.com/porsche-design-system/porsche-design-system/pull/2530))
32
+ - React: `patchRemixRunProcessBrowserGlobalIdentifier` binary now supports Remix 1.16.0
33
+ ([#2537](https://github.com/porsche-design-system/porsche-design-system/pull/2537))
34
+ - Angular: added optional modifier to optional properties for better type checking in strict mode
35
+ ([#2544](https://github.com/porsche-design-system/porsche-design-system/pull/2544))
36
+
37
+ #### Added
38
+
39
+ - Deprecation warning to `Icon` component if `lazy` prop is used
40
+ ([#2521](https://github.com/porsche-design-system/porsche-design-system/pull/2521))
41
+ - `aria` prop to `Scroller` component
42
+ ([#2530](https://github.com/porsche-design-system/porsche-design-system/pull/2530))
43
+
44
+ #### Changed
45
+
46
+ - Model signature asset of 718 model ([#2532](https://github.com/porsche-design-system/porsche-design-system/pull/2532))
47
+
48
+ ### [3.0.0-rc.1] - 2023-04-19
49
+
50
+ #### Added
51
+
52
+ - Prop `name` for `Icon` supports `push-pin`, `push-pin-off`, `qr`, `pin-filled`, `shopping-cart-filled`,
53
+ `shopping-bag-filled`, `logo-apple-podcast`, `logo-spotify` and `user-filled`
54
+ ([#2471](https://github.com/porsche-design-system/porsche-design-system/pull/2471)).
55
+ - **[EXPERIMENTAL]** Prop `loading` for `Checkbox Wrapper`
56
+ ([#2483](https://github.com/porsche-design-system/porsche-design-system/pull/2483))
57
+
58
+ #### Fixed
59
+
60
+ - `Wordmark`, `Crest` and `Model Signature` respect parent width/height
61
+ ([#2479](https://github.com/porsche-design-system/porsche-design-system/pull/2479))
62
+ - `Button Tile`, `Link Tile` and `Link Tile Model Signature` are using correct border radius of
63
+ `pds-border-radius-large` ([#2473](https://github.com/porsche-design-system/porsche-design-system/pull/2473))
64
+ - `Text Field Wrapper` with `input type="search"` has better accessibility for clear button
65
+ ([#2476](https://github.com/porsche-design-system/porsche-design-system/pull/2476))
66
+ - `Accordion` layout shift with nested accordions
67
+ ([#2465](https://github.com/porsche-design-system/porsche-design-system/pull/2465))
68
+ - Color Contrast issues and rendering in Windows High Contrast Mode
69
+ ([#2420](https://github.com/porsche-design-system/porsche-design-system/pull/2420))
70
+
12
71
  ### [3.0.0-rc.0] - 2023-04-11
13
72
 
14
- ### Fixed
73
+ #### Fixed
15
74
 
16
75
  - Styles: `borderRadiusLarge` and `pds-border-radius-large` are exposing correct value
17
- ([#2463](https://github.com/porsche-design-system/porsche-design-system/pull/2461))
76
+ ([#2463](https://github.com/porsche-design-system/porsche-design-system/pull/2463))
18
77
 
19
78
  ### [3.0.0-alpha.6] - 2023-04-06
20
79
 
@@ -50,7 +109,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
50
109
 
51
110
  ```diff
52
111
  - <PAccordion onAccordionChange={(e: CustomEvent<AccordionChangeEvent>) => {}} />
53
- + <PAccordion onUpdate={(e: CustomEvent<AccordionUPdateEvent>) => {}} />
112
+ + <PAccordion onUpdate={(e: CustomEvent<AccordionUpdateEvent>) => {}} />
54
113
  ```
55
114
 
56
115
  ##### Banner:
@@ -89,7 +148,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
89
148
  + <PPagination onUpdate={(e: CustomEvent<PaginationUpdateEvent>) => {}} />
90
149
  ```
91
150
 
92
- #### Segmented Control:
151
+ ##### Segmented Control:
93
152
 
94
153
  - Event `segmentedControlChange` is deprecated, use `update` event instead.
95
154
 
@@ -98,7 +157,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
98
157
  + <PSegmentedControl onUpdate={(e: CustomEvent<SegmentedControlUpdateEvent>) => {}} />
99
158
  ```
100
159
 
101
- #### Stepper Horizontal:
160
+ ##### Stepper Horizontal:
102
161
 
103
162
  - Event `stepChange` is deprecated, use `update` event instead.
104
163
 
@@ -107,7 +166,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
107
166
  + <PStepperHorizontal onUpdate={(e: CustomEvent<StepperHorizontalUpdateEvent>) => {}} />
108
167
  ```
109
168
 
110
- #### Switch:
169
+ ##### Switch:
111
170
 
112
171
  - Event `switchChange` is deprecated, use `update` event instead.
113
172
 
@@ -116,7 +175,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
116
175
  + <PSwitch onUpdate={(e: CustomEvent<SwitchUpdateEvent>) => {}} />
117
176
  ```
118
177
 
119
- #### Table:
178
+ ##### Table:
120
179
 
121
180
  - Event `sortingChange` is deprecated, use `update` event instead.
122
181
 
@@ -149,6 +208,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
149
208
 
150
209
  - `Wordmark` ([#2418](https://github.com/porsche-design-system/porsche-design-system/pull/2418))
151
210
  - `Crest` ([#2437](https://github.com/porsche-design-system/porsche-design-system/pull/2437))
211
+
212
+ #### Changed
213
+
152
214
  - Styles: changed color values of `theme[Light|Dark]ContrastMedium` and `theme[Light|Dark]Notification[*]` color tokens
153
215
  of `Styles` subpackage ([#2436](https://github.com/porsche-design-system/porsche-design-system/pull/2436))
154
216
 
@@ -200,9 +262,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
200
262
 
201
263
  - `Banner`: CSS variable `--p-banner-position-type`
202
264
  ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
203
- - `gridSafeZone`, `gridSafeZoneBase`, `gridSafeZoneXXL` and `pds-grid-safe-zone-base`, `pds-grid-safe-zone-xxl`
265
+ - Styles: `gridSafeZone`, `gridSafeZoneBase`, `gridSafeZoneXXL` and `pds-grid-safe-zone-base`, `pds-grid-safe-zone-xxl`
204
266
  ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
205
- - `gridWidth`, `gridWidthMin`, `gridWidthMax` and `pds-grid-width-min`, `pds-grid-width-max`
267
+ - Styles: `gridWidth`, `gridWidthMin`, `gridWidthMax` and `pds-grid-width-min`, `pds-grid-width-max`
206
268
  ([#2422](https://github.com/porsche-design-system/porsche-design-system/pull/2422))
207
269
 
208
270
  #### 🤖 Property deprecations 🤖
@@ -246,7 +308,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
246
308
  + <PAccordion onChange={(e: CustomEvent<AccordionChangeEvent>) => {}} />
247
309
  ```
248
310
 
249
- #### Banner:
311
+ ##### Banner:
250
312
 
251
313
  - Named `slot="title"` is deprecated, use `heading` prop or `slot="heading"` instead.
252
314
 
@@ -304,7 +366,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
304
366
  + <p-link-tile weight="semi-bold"></p-link-tile>
305
367
  ```
306
368
 
307
- #### Modal:
369
+ ##### Modal:
308
370
 
309
371
  - Prop `disableCloseButton` is deprecated, use `dismissButton` instead.
310
372
  - Event `close` is deprecated, use `dismiss` event instead.
@@ -343,7 +405,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
343
405
  + <p-scroller align-scroll-indicator="top"></p-scroller>
344
406
  ```
345
407
 
346
- #### Segmented Control:
408
+ ##### Segmented Control:
347
409
 
348
410
  - Event `segmentedControlChange` is deprecated, use `change` event instead.
349
411
 
@@ -352,7 +414,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
352
414
  + <PSegmentedControl onChange={(e: CustomEvent<SegmentedControlChangeEvent>) => {}} />
353
415
  ```
354
416
 
355
- #### Stepper Horizontal:
417
+ ##### Stepper Horizontal:
356
418
 
357
419
  - Event `stepChange` is deprecated, use `change` event instead.
358
420
 
@@ -361,7 +423,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
361
423
  + <PStepperHorizontal onChange={(e: CustomEvent<StepperHorizontalChangeEvent>) => {}} />
362
424
  ```
363
425
 
364
- #### Switch:
426
+ ##### Switch:
365
427
 
366
428
  - Event `switchChange` is deprecated, use `change` event instead.
367
429
 
@@ -370,7 +432,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
370
432
  + <PSwitch onChange={(e: CustomEvent<SwitchChangeEvent>) => {}} />
371
433
  ```
372
434
 
373
- #### Table:
435
+ ##### Table:
374
436
 
375
437
  - Event `sortingChange` is deprecated, use `change` event instead.
376
438
 
@@ -434,9 +496,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
434
496
  - Prop `showCharacterCount` is deprecated, use `showCounter` instead.
435
497
 
436
498
  ```diff
437
- -<p-text-field-wrapper show-character-count="false">
438
- +<p-text-field-wrapper show-counter="false">
439
- <input type="text" maxlength="20" />
499
+ - <p-text-field-wrapper show-character-count="false">
500
+ + <p-text-field-wrapper show-counter="false">
501
+ <input type="text" maxlength="20" />
440
502
  </p-text-field-wrapper>
441
503
  ```
442
504
 
@@ -445,9 +507,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
445
507
  - Prop `showCharacterCount` is deprecated, use `showCounter` instead.
446
508
 
447
509
  ```diff
448
- -<p-textarea-wrapper show-character-count="false">
449
- +<p-textarea-wrapper show-counter="false">
450
- <textarea maxlength="80"></textarea>
510
+ - <p-textarea-wrapper show-character-count="false">
511
+ + <p-textarea-wrapper show-counter="false">
512
+ <textarea maxlength="80"></textarea>
451
513
  </p-textarea-wrapper>
452
514
  ```
453
515
 
@@ -485,10 +547,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
485
547
  - `Pagination` emits `change` and deprecated `pageChange` event
486
548
  - `Segmented Control` emits `change` and deprecated `segmentedControlChange` event
487
549
  - `Stepper Horizontal` emits `change` and deprecated `stepChange` event
488
- - `Switch` emits `change`and deprecated `switchChange` event
489
- - `Table` emits `change`and deprecated `sortingChange` event
490
- - `Tabs` emits `change`and deprecated `tabChange` event
491
- - `Tabs Bar` emits `change`and deprecated `tabChange` event
550
+ - `Switch` emits `change` and deprecated `switchChange` event
551
+ - `Table` emits `change` and deprecated `sortingChange` event
552
+ - `Tabs` emits `change` and deprecated `tabChange` event
553
+ - `Tabs Bar` emits `change` and deprecated `tabChange` event
492
554
  - Props have consistent names across components and deprecated old props
493
555
  - `Carousel` got `pagination` prop and deprecated `disablePagination` prop
494
556
  - `Divider` got `direction` prop and deprecated `orientation` prop
@@ -26,32 +26,41 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
26
26
 
27
27
  const patchRemixRunProcessBrowserGlobalIdentifier = () => {
28
28
  const packageEntry = require.resolve('@remix-run/dev');
29
- const compilerDirPath = path__namespace.resolve(packageEntry, '../compiler');
30
- const [fileName] = fs__namespace
31
- .readdirSync(compilerDirPath)
32
- // file is currently called compileBrowser.js, but the other part is compilerServer.js
33
- // that's why we also consider compilerBrowser.js to be on the safe side
34
- .filter((fileName) => fileName.match(/^compiler?Browser\.js$/));
35
- const filePath = path__namespace.resolve(compilerDirPath, fileName);
36
- const filePathBackup = filePath.replace(/\.js$/, '-original$&');
37
- if (!fs__namespace.existsSync(filePathBackup)) {
38
- fs__namespace.copyFileSync(filePath, filePathBackup);
39
- }
40
- else {
41
- fs__namespace.copyFileSync(filePathBackup, filePath);
42
- }
43
- const fileContent = fs__namespace.readFileSync(filePath, 'utf8');
44
- // prepending should be safer than appending because JSON.stringify() might be multiline like in source
45
- // https://github.com/remix-run/remix/blob/05ffb6e2db8f2a0e09caffad6e9b3c897c34cb7d/packages/remix-dev/compiler/compileBrowser.ts#L159-L163
46
- const newFileContent = fileContent.replace(/"process\.env\.REMIX_DEV_SERVER_WS_PORT": JSON\.stringify\(.*/, '"process.browser": "true",\n $&');
47
- const prettyFilePath = filePath.replace(packageEntry.substring(0, packageEntry.indexOf('/node_modules')), '.');
48
- if (newFileContent.includes('"process.browser": "true"')) {
49
- console.log(`Successfully patched ${prettyFilePath}`);
50
- }
51
- else {
52
- console.error(`Patching ${prettyFilePath} failed`);
53
- }
54
- fs__namespace.writeFileSync(filePath, newFileContent);
29
+ const compilerDirPaths = [
30
+ path__namespace.resolve(packageEntry, '../compiler'),
31
+ path__namespace.resolve(packageEntry, '../compiler/js'), // since 1.16.0 the file was moved into js sub-folder
32
+ ].filter(fs__namespace.existsSync);
33
+ const filePaths = compilerDirPaths
34
+ .map((compilerDirPath) => fs__namespace.readdirSync(compilerDirPath).map((fileName) => `${compilerDirPath}/${fileName}`))
35
+ .flat()
36
+ // file is currently called compileBrowser.js
37
+ // since 1.16.0 the file is called compiler.js
38
+ .filter((fileName) => fileName.match(/\/(?:compileBrowser|compiler)\.js$/));
39
+ filePaths.forEach((filePath) => {
40
+ const filePathBackup = filePath.replace(/\.js$/, '-original$&');
41
+ if (!fs__namespace.existsSync(filePathBackup)) {
42
+ fs__namespace.copyFileSync(filePath, filePathBackup);
43
+ }
44
+ else {
45
+ fs__namespace.copyFileSync(filePathBackup, filePath);
46
+ }
47
+ const fileContent = fs__namespace.readFileSync(filePath, 'utf8');
48
+ // we want to extend the define config
49
+ // https://github.com/remix-run/remix/blob/main/packages/remix-dev/compiler/js/compiler.ts#L221-L226
50
+ if (fileContent.match(/define: \{/)) {
51
+ // prepending should be safer than appending because JSON.stringify() might be multiline like in source
52
+ // https://github.com/remix-run/remix/blob/05ffb6e2db8f2a0e09caffad6e9b3c897c34cb7d/packages/remix-dev/compiler/compileBrowser.ts#L159-L163
53
+ const newFileContent = fileContent.replace(/"process\.env\.NODE_ENV": JSON\.stringify\(.*/, '"process.browser": "true", // added by Porsche Design System\'s patchRemixRunProcessBrowserGlobalIdentifier.js\n $&');
54
+ const prettyFilePath = filePath.replace(packageEntry.substring(0, packageEntry.indexOf('/node_modules')), '.');
55
+ if (newFileContent.includes('"process.browser": "true"')) {
56
+ console.log(`Successfully patched ${prettyFilePath}`);
57
+ }
58
+ else {
59
+ console.error(`Patching ${prettyFilePath} failed`);
60
+ }
61
+ fs__namespace.writeFileSync(filePath, newFileContent);
62
+ }
63
+ });
55
64
  };
56
65
  patchRemixRunProcessBrowserGlobalIdentifier();
57
66
 
@@ -3,13 +3,13 @@ import { forwardRef, useRef } from 'react';
3
3
  import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PCheckboxWrapper = forwardRef(({ hideLabel = false, label = '', message = '', state = 'none', theme = 'light', className, ...rest }, ref) => {
6
+ const PCheckboxWrapper = forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  const WebComponentTag = usePrefix('p-checkbox-wrapper');
9
- const propsToSync = [hideLabel, label, message, state, theme];
9
+ const propsToSync = [hideLabel, label, loading, message, state, theme];
10
10
  useBrowserLayoutEffect(() => {
11
11
  const { current } = elementRef;
12
- ['hideLabel', 'label', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
12
+ ['hideLabel', 'label', 'loading', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
13
13
  }, propsToSync);
14
14
  const props = {
15
15
  ...rest,
@@ -3,7 +3,7 @@ import { forwardRef, useRef } from 'react';
3
3
  import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PIcon = forwardRef(({ aria, color = 'primary', lazy = false, name = 'arrow-right', size = 'small', source, theme = 'light', className, ...rest }, ref) => {
6
+ const PIcon = forwardRef(({ aria, color = 'primary', lazy, name = 'arrow-right', size = 'small', source, theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  const WebComponentTag = usePrefix('p-icon');
9
9
  const propsToSync = [aria, color, lazy, name, size, source, theme];
@@ -3,13 +3,13 @@ import { forwardRef, useRef } from 'react';
3
3
  import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
4
4
  import { syncRef } from '../../utils.js';
5
5
 
6
- const PScroller = forwardRef(({ alignScrollIndicator = 'center', gradientColor = 'background-base', gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar = false, theme = 'light', className, ...rest }, ref) => {
6
+ const PScroller = forwardRef(({ alignScrollIndicator = 'center', aria, gradientColor = 'background-base', gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar = false, theme = 'light', className, ...rest }, ref) => {
7
7
  const elementRef = useRef();
8
8
  const WebComponentTag = usePrefix('p-scroller');
9
- const propsToSync = [alignScrollIndicator, gradientColor, gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar, theme];
9
+ const propsToSync = [alignScrollIndicator, aria, gradientColor, gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar, theme];
10
10
  useBrowserLayoutEffect(() => {
11
11
  const { current } = elementRef;
12
- ['alignScrollIndicator', 'gradientColor', 'gradientColorScheme', 'scrollIndicatorPosition', 'scrollToPosition', 'scrollbar', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
12
+ ['alignScrollIndicator', 'aria', 'gradientColor', 'gradientColorScheme', 'scrollIndicatorPosition', 'scrollToPosition', 'scrollbar', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
13
13
  }, propsToSync);
14
14
  const props = {
15
15
  ...rest,
@@ -9,6 +9,10 @@ export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange
9
9
  * The label text.
10
10
  */
11
11
  label?: string;
12
+ /**
13
+ * Disables the checkbox and shows a loading indicator.
14
+ */
15
+ loading?: boolean;
12
16
  /**
13
17
  * The message styled depending on validation state.
14
18
  */
@@ -31,6 +35,10 @@ export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent
31
35
  * The label text.
32
36
  */
33
37
  label?: string;
38
+ /**
39
+ * Disables the checkbox and shows a loading indicator.
40
+ */
41
+ loading?: boolean;
34
42
  /**
35
43
  * The message styled depending on validation state.
36
44
  */
@@ -5,13 +5,13 @@ var react = require('react');
5
5
  var hooks = require('../../hooks.js');
6
6
  var utils = require('../../utils.js');
7
7
 
8
- const PCheckboxWrapper = react.forwardRef(({ hideLabel = false, label = '', message = '', state = 'none', theme = 'light', className, ...rest }, ref) => {
8
+ const PCheckboxWrapper = react.forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme = 'light', className, ...rest }, ref) => {
9
9
  const elementRef = react.useRef();
10
10
  const WebComponentTag = hooks.usePrefix('p-checkbox-wrapper');
11
- const propsToSync = [hideLabel, label, message, state, theme];
11
+ const propsToSync = [hideLabel, label, loading, message, state, theme];
12
12
  hooks.useBrowserLayoutEffect(() => {
13
13
  const { current } = elementRef;
14
- ['hideLabel', 'label', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
14
+ ['hideLabel', 'label', 'loading', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
15
  }, propsToSync);
16
16
  const props = {
17
17
  ...rest,
@@ -5,7 +5,7 @@ var react = require('react');
5
5
  var hooks = require('../../hooks.js');
6
6
  var utils = require('../../utils.js');
7
7
 
8
- const PIcon = react.forwardRef(({ aria, color = 'primary', lazy = false, name = 'arrow-right', size = 'small', source, theme = 'light', className, ...rest }, ref) => {
8
+ const PIcon = react.forwardRef(({ aria, color = 'primary', lazy, name = 'arrow-right', size = 'small', source, theme = 'light', className, ...rest }, ref) => {
9
9
  const elementRef = react.useRef();
10
10
  const WebComponentTag = hooks.usePrefix('p-icon');
11
11
  const propsToSync = [aria, color, lazy, name, size, source, theme];
@@ -1,10 +1,14 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import type { ScrollerAlignScrollIndicator, ScrollerGradientColor, ScrollerGradientColorScheme, ScrollerScrollIndicatorPosition, ScrollerScrollToPosition, Theme } from '../types';
2
+ import type { ScrollerAlignScrollIndicator, SelectedAriaAttributes, ScrollerAriaAttribute, ScrollerGradientColor, ScrollerGradientColorScheme, ScrollerScrollIndicatorPosition, ScrollerScrollToPosition, Theme } from '../types';
3
3
  export type PScrollerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
4
4
  /**
5
- * Sets the vertical position of scroll indicator
5
+ * Sets the vertical position of scroll indicator.
6
6
  */
7
7
  alignScrollIndicator?: ScrollerAlignScrollIndicator;
8
+ /**
9
+ * Add ARIA role.
10
+ */
11
+ aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
8
12
  /**
9
13
  * Adapts the background gradient color of prev and next button.
10
14
  */
@@ -18,11 +22,11 @@ export type PScrollerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
18
22
  */
19
23
  scrollIndicatorPosition?: ScrollerScrollIndicatorPosition;
20
24
  /**
21
- * Scrolls the scroll area to the left either smooth or immediately
25
+ * Scrolls the scroll area to the left either smooth or immediately.
22
26
  */
23
27
  scrollToPosition?: ScrollerScrollToPosition;
24
28
  /**
25
- * Specifies if scrollbar should be shown
29
+ * Specifies if scrollbar should be shown.
26
30
  */
27
31
  scrollbar?: boolean;
28
32
  /**
@@ -32,9 +36,13 @@ export type PScrollerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
32
36
  };
33
37
  export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color" | "onChange"> & {
34
38
  /**
35
- * Sets the vertical position of scroll indicator
39
+ * Sets the vertical position of scroll indicator.
36
40
  */
37
41
  alignScrollIndicator?: ScrollerAlignScrollIndicator;
42
+ /**
43
+ * Add ARIA role.
44
+ */
45
+ aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
38
46
  /**
39
47
  * Adapts the background gradient color of prev and next button.
40
48
  */
@@ -48,11 +56,11 @@ export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<H
48
56
  */
49
57
  scrollIndicatorPosition?: ScrollerScrollIndicatorPosition;
50
58
  /**
51
- * Scrolls the scroll area to the left either smooth or immediately
59
+ * Scrolls the scroll area to the left either smooth or immediately.
52
60
  */
53
61
  scrollToPosition?: ScrollerScrollToPosition;
54
62
  /**
55
- * Specifies if scrollbar should be shown
63
+ * Specifies if scrollbar should be shown.
56
64
  */
57
65
  scrollbar?: boolean;
58
66
  /**
@@ -5,13 +5,13 @@ var react = require('react');
5
5
  var hooks = require('../../hooks.js');
6
6
  var utils = require('../../utils.js');
7
7
 
8
- const PScroller = react.forwardRef(({ alignScrollIndicator = 'center', gradientColor = 'background-base', gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar = false, theme = 'light', className, ...rest }, ref) => {
8
+ const PScroller = react.forwardRef(({ alignScrollIndicator = 'center', aria, gradientColor = 'background-base', gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar = false, theme = 'light', className, ...rest }, ref) => {
9
9
  const elementRef = react.useRef();
10
10
  const WebComponentTag = hooks.usePrefix('p-scroller');
11
- const propsToSync = [alignScrollIndicator, gradientColor, gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar, theme];
11
+ const propsToSync = [alignScrollIndicator, aria, gradientColor, gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar, theme];
12
12
  hooks.useBrowserLayoutEffect(() => {
13
13
  const { current } = elementRef;
14
- ['alignScrollIndicator', 'gradientColor', 'gradientColorScheme', 'scrollIndicatorPosition', 'scrollToPosition', 'scrollbar', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
14
+ ['alignScrollIndicator', 'aria', 'gradientColor', 'gradientColorScheme', 'scrollIndicatorPosition', 'scrollToPosition', 'scrollbar', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
15
  }, propsToSync);
16
16
  const props = {
17
17
  ...rest,