@porsche-design-system/components-react 4.0.0-beta.2 → 4.0.0-beta.3
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 +293 -1
- package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/display.wrapper.cjs +1 -0
- package/cjs/lib/components/flag.wrapper.cjs +1 -1
- package/cjs/lib/components/heading.wrapper.cjs +3 -3
- package/cjs/lib/components/icon.wrapper.cjs +1 -1
- package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/spinner.wrapper.cjs +3 -3
- package/cjs/lib/components/text.wrapper.cjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
- package/esm/lib/components/button-pure.wrapper.mjs +3 -3
- package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
- package/esm/lib/components/button.wrapper.d.ts +6 -6
- package/esm/lib/components/carousel.wrapper.d.ts +10 -10
- package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +1 -0
- package/esm/lib/components/display.wrapper.mjs +1 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
- package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
- package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
- package/esm/lib/components/flag.wrapper.d.ts +5 -5
- package/esm/lib/components/flag.wrapper.mjs +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +2 -2
- package/esm/lib/components/heading.wrapper.d.ts +19 -11
- package/esm/lib/components/heading.wrapper.mjs +3 -3
- package/esm/lib/components/icon.wrapper.d.ts +7 -7
- package/esm/lib/components/icon.wrapper.mjs +1 -1
- package/esm/lib/components/input-date.wrapper.d.ts +12 -12
- package/esm/lib/components/input-email.wrapper.d.ts +8 -8
- package/esm/lib/components/input-month.wrapper.d.ts +12 -12
- package/esm/lib/components/input-number.wrapper.d.ts +8 -8
- package/esm/lib/components/input-password.wrapper.d.ts +6 -6
- package/esm/lib/components/input-search.wrapper.d.ts +6 -6
- package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
- package/esm/lib/components/input-text.wrapper.d.ts +6 -6
- package/esm/lib/components/input-time.wrapper.d.ts +14 -14
- package/esm/lib/components/input-url.wrapper.d.ts +16 -16
- package/esm/lib/components/input-week.wrapper.d.ts +14 -14
- package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
- package/esm/lib/components/link-pure.wrapper.mjs +3 -3
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
- package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
- package/esm/lib/components/link.wrapper.d.ts +14 -14
- package/esm/lib/components/modal.wrapper.d.ts +2 -2
- package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
- package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
- package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
- package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
- package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +10 -10
- package/esm/lib/components/sheet.wrapper.d.ts +2 -2
- package/esm/lib/components/spinner.wrapper.d.ts +13 -5
- package/esm/lib/components/spinner.wrapper.mjs +3 -3
- package/esm/lib/components/switch.wrapper.d.ts +6 -6
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +2 -2
- package/esm/lib/components/text.wrapper.d.ts +12 -12
- package/esm/lib/components/text.wrapper.mjs +1 -1
- package/esm/lib/components/textarea.wrapper.d.ts +6 -6
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/esm/lib/types.d.ts +322 -141
- package/global-styles/cn/index.css +3 -7
- package/global-styles/index.css +3 -7
- package/global-styles/variables.css +3 -7
- package/package.json +6 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +341 -319
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +18 -8
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +341 -319
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +18 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/heading.wrapper.d.ts +19 -11
- package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
- package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/text.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
- package/ssr/esm/lib/types.d.ts +322 -141
- package/tailwindcss/index.css +19 -4
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,299 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [4.0.0-beta.3] - 2026-03-19
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `Tokens`: `typescale3Xl`, `typescale4Xl`, `typescale5Xl`
|
|
22
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
23
|
+
- `Tailwind CSS`: `--text-3xl`, `--text-4xl`, `--text-5xl`, `.prose-heading-3xl`, `.prose-heading-4xl`,
|
|
24
|
+
`.prose-heading-5xl` ([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
25
|
+
- `SCSS`: `$typescale-3xl`, `$typescale-4xl`, `$typescale-5xl`, `@mixin prose-heading-3xl()`,
|
|
26
|
+
`@mixin prose-heading-4xl()`, `@mixin prose-heading-5xl()`
|
|
27
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
28
|
+
- `Emotion`, `Vanilla Extract`: `typescale3Xl`, `typescale4Xl`, `typescale5Xl`, `proseHeading3XlStyle`,
|
|
29
|
+
`proseHeading4XlStyle`, `proseHeading5XlStyle`
|
|
30
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
31
|
+
- `Spinner`, `Flag`, `Icon`:
|
|
32
|
+
- Prop `size` supports all typographic scale values:
|
|
33
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'inherit'`
|
|
34
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234),
|
|
35
|
+
[#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
36
|
+
- `Spinner`:
|
|
37
|
+
- Prop `color` with values: `'primary' | 'inherit'`
|
|
38
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
39
|
+
- CSS Variable `--p-spinner-size`: Defines the width and height of the spinner. Overrides the `size` property when
|
|
40
|
+
set. ([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
41
|
+
- CSS Variable `--p-spinner-color`: Defines the foreground color. Overrides the `color` property when set.
|
|
42
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
43
|
+
- CSS Variable `--p-spinner-track-color`: Defines the track/background color. Overrides the `color` property when set.
|
|
44
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
45
|
+
- `Flag`:
|
|
46
|
+
- CSS Variable `--p-flag-size`: Defines the width and height of the flag. Overrides the `size` property when set.
|
|
47
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
48
|
+
- `Icon`:
|
|
49
|
+
- CSS Variable `--p-icon-size`: Defines the width and height of the icon. Overrides the `size` property when set.
|
|
50
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
51
|
+
- CSS Variable `--p-icon-color`: Defines the icon color. Overrides the `color` property when set.
|
|
52
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
53
|
+
- Prop `color` supports new value `'contrast-higher'`
|
|
54
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
55
|
+
- `Button Pure`, `Link Pure`:
|
|
56
|
+
- Prop `size` supports new typographic scale values:
|
|
57
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'inherit'`
|
|
58
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
59
|
+
- Prop `color` supports new values `'contrast-higher' | 'contrast-high' | 'contrast-medium'`
|
|
60
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
61
|
+
- `Text`:
|
|
62
|
+
- Prop `size` supports new typographic scale values:
|
|
63
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'inherit'`
|
|
64
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
65
|
+
- Prop `weight` supports new value `'bold'`
|
|
66
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
67
|
+
- Prop `color` supports new value `'contrast-higher'`
|
|
68
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
69
|
+
- `Heading`:
|
|
70
|
+
- Prop `size` supports new typographic scale values:
|
|
71
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'inherit'`
|
|
72
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
73
|
+
- Prop `weight` supports new value `'bold'`
|
|
74
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
75
|
+
- Prop `color` supports new values `'contrast-higher' | 'contrast-high' | 'contrast-medium'`
|
|
76
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
77
|
+
|
|
78
|
+
### Changed
|
|
79
|
+
|
|
80
|
+
- `Spinner`, `Flag`, `Icon`:
|
|
81
|
+
- The `size` prop is breakpoint customizable.
|
|
82
|
+
([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234),
|
|
83
|
+
[#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
84
|
+
- When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against
|
|
85
|
+
the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based
|
|
86
|
+
components. ([#4234](https://github.com/porsche-design-system/porsche-design-system/pull/4234))
|
|
87
|
+
|
|
88
|
+
```diff
|
|
89
|
+
- <p-spinner size="inherit" style="width: 100px; height: 100px;"></p-spinner>
|
|
90
|
+
+ <p-spinner style="--p-spinner-size: 100px;"></p-spinner>
|
|
91
|
+
|
|
92
|
+
// When using size="inherit" with a defined font-size, the spinner size is calculated from the global line-height (ex-unit) based on that font-size."
|
|
93
|
+
<p-spinner size="inherit" style="font-size: 100px;"></p-spinner>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```diff
|
|
97
|
+
- <p-icon size="inherit" style="width: 100px; height: 100px;"></p-icon>
|
|
98
|
+
+ <p-icon style="--p-icon-size: 100px;"></p-icon>
|
|
99
|
+
|
|
100
|
+
// When using size="inherit" with a defined font-size, the icon size is calculated from the global line-height (ex-unit) based on that font-size."
|
|
101
|
+
<p-icon size="inherit" style="font-size: 100px;"></p-icon>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
```diff
|
|
105
|
+
- <p-flag size="inherit" style="width: 100px; height: 100px;"></p-flag>
|
|
106
|
+
+ <p-flag style="--p-flag-size: 100px;"></p-flag>
|
|
107
|
+
|
|
108
|
+
// When using size="inherit" with a defined font-size, the flag size is calculated from the global line-height (ex-unit) based on that font-size."
|
|
109
|
+
<p-flag size="inherit" style="font-size: 100px;"></p-flag>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
- `Pagination`: Modernize visual appearance
|
|
113
|
+
([#4241](https://github.com/porsche-design-system/porsche-design-system/pull/4241))
|
|
114
|
+
|
|
115
|
+
### Removed
|
|
116
|
+
|
|
117
|
+
- `Emotion, Vanilla Extract` (added in `v4.0.0-beta.0`): `proseDisplayLgStyle`, `proseDisplayMdStyle`,
|
|
118
|
+
`proseDisplaySmStyle` ([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
119
|
+
- `SCSS` (added in `v4.0.0-beta.0`): `@mixin prose-display-lg()`, `@mixin prose-display-md()`,
|
|
120
|
+
`@mixin prose-display-sm()` ([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
121
|
+
- `Text`: Value `contrast-low` for `color` prop since it's not a11y compliant. Use `contrast-medium` instead.
|
|
122
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
123
|
+
|
|
124
|
+
### Deprecated
|
|
125
|
+
|
|
126
|
+
- `Text`:
|
|
127
|
+
- Values `'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large'` of prop `size` (use
|
|
128
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'` instead)
|
|
129
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
130
|
+
|
|
131
|
+
```diff
|
|
132
|
+
- <p-text size="xx-small">…</p-text>
|
|
133
|
+
+ <p-text size="2xs">…</p-text>
|
|
134
|
+
|
|
135
|
+
- <p-text size="x-small">…</p-text>
|
|
136
|
+
+ <p-text size="xs">…</p-text>
|
|
137
|
+
|
|
138
|
+
- <p-text size="small">…</p-text>
|
|
139
|
+
+ <p-text size="sm">…</p-text>
|
|
140
|
+
|
|
141
|
+
- <p-text size="medium">…</p-text>
|
|
142
|
+
+ <p-text size="md">…</p-text>
|
|
143
|
+
|
|
144
|
+
- <p-text size="large">…</p-text>
|
|
145
|
+
+ <p-text size="lg">…</p-text>
|
|
146
|
+
|
|
147
|
+
- <p-text size="x-large">…</p-text>
|
|
148
|
+
+ <p-text size="xl">…</p-text>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
- Values `'regular' | 'semi-bold'` of prop `weight` (use `'normal' | 'semibold'` instead)
|
|
152
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
153
|
+
|
|
154
|
+
```diff
|
|
155
|
+
- <p-text weight="regular">…</p-text>
|
|
156
|
+
+ <p-text weight="normal">…</p-text>
|
|
157
|
+
|
|
158
|
+
- <p-text weight="semi-bold">…</p-text>
|
|
159
|
+
+ <p-text weight="semibold">…</p-text>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- `Heading`:
|
|
163
|
+
- Values `'small' | 'medium' | 'large' | 'x-large' | 'xx-large'` of prop `size` (use
|
|
164
|
+
`'sm' | 'md' | 'lg' | 'xl' | '2xl'` instead)
|
|
165
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
166
|
+
|
|
167
|
+
```diff
|
|
168
|
+
- <p-heading size="small">…</p-heading>
|
|
169
|
+
+ <p-heading size="sm">…</p-heading>
|
|
170
|
+
|
|
171
|
+
- <p-heading size="medium">…</p-heading>
|
|
172
|
+
+ <p-heading size="md">…</p-heading>
|
|
173
|
+
|
|
174
|
+
- <p-heading size="large">…</p-heading>
|
|
175
|
+
+ <p-heading size="lg">…</p-heading>
|
|
176
|
+
|
|
177
|
+
- <p-heading size="x-large">…</p-heading>
|
|
178
|
+
+ <p-heading size="xl">…</p-heading>
|
|
179
|
+
|
|
180
|
+
- <p-heading size="xx-large">…</p-heading>
|
|
181
|
+
+ <p-heading size="2xl">…</p-heading>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
- Values `'regular' | 'semi-bold'` of prop `weight` (use `'normal' | 'semibold'` instead)
|
|
185
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
186
|
+
|
|
187
|
+
- `Icon`:
|
|
188
|
+
- Values `'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large'` of prop `size` (use
|
|
189
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'` instead)
|
|
190
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
191
|
+
|
|
192
|
+
```diff
|
|
193
|
+
- <p-icon size="xx-small">…</p-icon>
|
|
194
|
+
+ <p-icon size="2xs">…</p-icon>
|
|
195
|
+
|
|
196
|
+
- <p-icon size="x-small">…</p-icon>
|
|
197
|
+
+ <p-icon size="xs">…</p-icon>
|
|
198
|
+
|
|
199
|
+
- <p-icon size="small">…</p-icon>
|
|
200
|
+
+ <p-icon size="sm">…</p-icon>
|
|
201
|
+
|
|
202
|
+
- <p-icon size="medium">…</p-icon>
|
|
203
|
+
+ <p-icon size="md">…</p-icon>
|
|
204
|
+
|
|
205
|
+
- <p-icon size="large">…</p-icon>
|
|
206
|
+
+ <p-icon size="lg">…</p-icon>
|
|
207
|
+
|
|
208
|
+
- <p-icon size="x-large">…</p-icon>
|
|
209
|
+
+ <p-icon size="xl">…</p-icon>
|
|
210
|
+
|
|
211
|
+
- <p-icon size="xx-large">…</p-icon>
|
|
212
|
+
+ <p-icon size="2xl">…</p-icon>
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
- `Spinner`:
|
|
216
|
+
- Values `'small' | 'medium' | 'large'` of prop `size` (use `'sm' | 'md' | 'lg'` instead)
|
|
217
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
218
|
+
|
|
219
|
+
```diff
|
|
220
|
+
- <p-spinner size="small">…</p-spinner>
|
|
221
|
+
+ <p-spinner size="sm">…</p-spinner>
|
|
222
|
+
|
|
223
|
+
- <p-spinner size="medium">…</p-spinner>
|
|
224
|
+
+ <p-spinner size="md">…</p-spinner>
|
|
225
|
+
|
|
226
|
+
- <p-spinner size="large">…</p-spinner>
|
|
227
|
+
+ <p-spinner size="lg">…</p-spinner>
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
- `Button Pure`, `Link Pure`:
|
|
231
|
+
- Values `'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large'` of prop `size` (use
|
|
232
|
+
`'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'` instead)
|
|
233
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
234
|
+
|
|
235
|
+
```diff
|
|
236
|
+
- <p-button-pure size="xx-small">…</p-button-pure>
|
|
237
|
+
+ <p-button-pure size="2xs">…</p-button-pure>
|
|
238
|
+
|
|
239
|
+
- <p-button-pure size="x-small">…</p-button-pure>
|
|
240
|
+
+ <p-button-pure size="xs">…</p-button-pure>
|
|
241
|
+
|
|
242
|
+
- <p-button-pure size="small">…</p-button-pure>
|
|
243
|
+
+ <p-button-pure size="sm">…</p-button-pure>
|
|
244
|
+
|
|
245
|
+
- <p-button-pure size="medium">…</p-button-pure>
|
|
246
|
+
+ <p-button-pure size="md">…</p-button-pure>
|
|
247
|
+
|
|
248
|
+
- <p-button-pure size="large">…</p-button-pure>
|
|
249
|
+
+ <p-button-pure size="lg">…</p-button-pure>
|
|
250
|
+
|
|
251
|
+
- <p-button-pure size="x-large">…</p-button-pure>
|
|
252
|
+
+ <p-button-pure size="xl">…</p-button-pure>
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
- `Display` ([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
256
|
+
|
|
257
|
+
```diff
|
|
258
|
+
- <p-display size="large">…</p-display>
|
|
259
|
+
+ <p-heading size="5xl">…</p-heading>
|
|
260
|
+
|
|
261
|
+
- <p-display size="medium">…</p-display>
|
|
262
|
+
+ <p-heading size="4xl">…</p-heading>
|
|
263
|
+
|
|
264
|
+
- <p-display size="small">…</p-display>
|
|
265
|
+
+ <p-heading size="3xl">…</p-heading>
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
- `Tailwind CSS`: `.prose-display-lg`, `.prose-display-md`, `.prose-display-sm`
|
|
269
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
270
|
+
|
|
271
|
+
```diff
|
|
272
|
+
- <h1 class="prose-display-lg">…</h1>
|
|
273
|
+
+ <h1 class="prose-heading-5xl">…</h1>
|
|
274
|
+
|
|
275
|
+
- <h1 class="prose-display-md">…</h1>
|
|
276
|
+
+ <h1 class="prose-heading-4xl">…</h1>
|
|
277
|
+
|
|
278
|
+
- <h1 class="prose-display-sm">…</h1>
|
|
279
|
+
+ <h1 class="prose-heading-3xl">…</h1>
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
- `SCSS`: `@mixin pds-display-large`, `@mixin pds-display-medium`, `@mixin pds-display-small`
|
|
283
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
284
|
+
|
|
285
|
+
```diff
|
|
286
|
+
- @include pds-display-large;
|
|
287
|
+
+ @include prose-heading-5xl;
|
|
288
|
+
|
|
289
|
+
- @include pds-display-medium;
|
|
290
|
+
+ @include prose-heading-4xl;
|
|
291
|
+
|
|
292
|
+
- @include pds-display-small;
|
|
293
|
+
+ @include prose-heading-3xl;
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
- `Emotion, Vanilla Extract`: `displayLargeStyle`, `displayMediumStyle`, `displaySmallStyle`
|
|
297
|
+
([#4246](https://github.com/porsche-design-system/porsche-design-system/pull/4246))
|
|
298
|
+
|
|
299
|
+
```diff
|
|
300
|
+
- ...displayLargeStyle,
|
|
301
|
+
+ ...proseHeading5XlStyle,
|
|
302
|
+
|
|
303
|
+
- ...displayMediumStyle,
|
|
304
|
+
+ ...proseHeading4XlStyle,
|
|
305
|
+
|
|
306
|
+
- ...displaySmallStyle,
|
|
307
|
+
+ ...proseHeading3XlStyle,
|
|
308
|
+
```
|
|
309
|
+
|
|
17
310
|
## [4.0.0-beta.2] - 2026-03-11
|
|
18
311
|
|
|
19
312
|
### Added
|
|
@@ -525,7 +818,6 @@ and migration steps.
|
|
|
525
818
|
- `Scroller`:
|
|
526
819
|
- prop `gradientColorScheme` (has no effect anyway)
|
|
527
820
|
- prop `gradientColor` (has no effect anyway)
|
|
528
|
-
- prop `scrollIndicatorPosition` (use `alignScrollIndicator` instead)
|
|
529
821
|
- `Segmented Control`:
|
|
530
822
|
- prop `backgroundColor` (has no effect anyway)
|
|
531
823
|
- event `segmentedControlChange` (use `change` instead)
|
|
@@ -6,13 +6,13 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PButtonPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = '
|
|
9
|
+
const PButtonPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, color = 'primary', disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = 'sm', stretch = false, type = 'submit', underline = false, value, className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-button-pure');
|
|
12
|
-
const propsToSync = [active, alignLabel, aria, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value];
|
|
12
|
+
const propsToSync = [active, alignLabel, aria, color, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value];
|
|
13
13
|
hooks.useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['active', 'alignLabel', 'aria', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'type', 'underline', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['active', 'alignLabel', 'aria', 'color', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'type', 'underline', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
|
@@ -6,6 +6,7 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead. */
|
|
9
10
|
const PDisplay = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'large', tag, className, ...rest }, ref) => {
|
|
10
11
|
const elementRef = react.useRef(undefined);
|
|
11
12
|
const WebComponentTag = hooks.usePrefix('p-display');
|
|
@@ -6,7 +6,7 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PFlag = /*#__PURE__*/ react.forwardRef(({ aria, name = 'de', size = '
|
|
9
|
+
const PFlag = /*#__PURE__*/ react.forwardRef(({ aria, name = 'de', size = 'sm', className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-flag');
|
|
12
12
|
const propsToSync = [aria, name, size];
|
|
@@ -6,13 +6,13 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PHeading = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = '
|
|
9
|
+
const PHeading = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = '2xl', tag, weight = 'normal', className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-heading');
|
|
12
|
-
const propsToSync = [align, color, ellipsis, size, tag];
|
|
12
|
+
const propsToSync = [align, color, ellipsis, size, tag, weight];
|
|
13
13
|
hooks.useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['align', 'color', 'ellipsis', 'size', 'tag'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['align', 'color', 'ellipsis', 'size', 'tag', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
|
@@ -6,7 +6,7 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PIcon = /*#__PURE__*/ react.forwardRef(({ aria, color = 'primary', name = 'arrow-right', size = '
|
|
9
|
+
const PIcon = /*#__PURE__*/ react.forwardRef(({ aria, color = 'primary', name = 'arrow-right', size = 'sm', source, className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-icon');
|
|
12
12
|
const propsToSync = [aria, color, name, size, source];
|
|
@@ -6,13 +6,13 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PLinkPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, download, hideLabel = false, href, icon = 'arrow-right', iconSource, rel, size = '
|
|
9
|
+
const PLinkPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, color = 'primary', download, hideLabel = false, href, icon = 'arrow-right', iconSource, rel, size = 'sm', stretch = false, target = '_self', underline = false, className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-link-pure');
|
|
12
|
-
const propsToSync = [active, alignLabel, aria, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline];
|
|
12
|
+
const propsToSync = [active, alignLabel, aria, color, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline];
|
|
13
13
|
hooks.useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['active', 'alignLabel', 'aria', 'download', 'hideLabel', 'href', 'icon', 'iconSource', 'rel', 'size', 'stretch', 'target', 'underline'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['active', 'alignLabel', 'aria', 'color', 'download', 'hideLabel', 'href', 'icon', 'iconSource', 'rel', 'size', 'stretch', 'target', 'underline'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
|
@@ -6,13 +6,13 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PSpinner = /*#__PURE__*/ react.forwardRef(({ aria, size = '
|
|
9
|
+
const PSpinner = /*#__PURE__*/ react.forwardRef(({ aria, color = 'primary', size = 'sm', className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-spinner');
|
|
12
|
-
const propsToSync = [aria, size];
|
|
12
|
+
const propsToSync = [aria, color, size];
|
|
13
13
|
hooks.useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['aria', 'size'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['aria', 'color', 'size'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
|
@@ -6,7 +6,7 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PText = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = '
|
|
9
|
+
const PText = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'sm', tag = 'p', weight = 'normal', className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef(undefined);
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-text');
|
|
12
12
|
const propsToSync = [align, color, ellipsis, size, tag, weight];
|
|
@@ -14,15 +14,15 @@ export type PAccordionProps = BaseProps & {
|
|
|
14
14
|
*/
|
|
15
15
|
compact?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* @deprecated
|
|
17
|
+
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading text within the summary section.
|
|
18
18
|
*/
|
|
19
19
|
heading?: string;
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated
|
|
21
|
+
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading tag for proper semantic structure within the page.
|
|
22
22
|
*/
|
|
23
23
|
headingTag?: AccordionHeadingTag;
|
|
24
24
|
/**
|
|
25
|
-
* Emitted when accordion state
|
|
25
|
+
* Emitted when the accordion state changes.
|
|
26
26
|
*/
|
|
27
27
|
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
28
28
|
/**
|
|
@@ -30,7 +30,7 @@ export type PAccordionProps = BaseProps & {
|
|
|
30
30
|
*/
|
|
31
31
|
open?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* @deprecated
|
|
33
|
+
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Controls the heading size in the summary section (only applies when using the `heading` prop or `heading` slot).
|
|
34
34
|
*/
|
|
35
35
|
size?: BreakpointCustomizable<AccordionSize>;
|
|
36
36
|
/**
|
|
@@ -52,15 +52,15 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
52
52
|
*/
|
|
53
53
|
compact?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
* @deprecated
|
|
55
|
+
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading text within the summary section.
|
|
56
56
|
*/
|
|
57
57
|
heading?: string;
|
|
58
58
|
/**
|
|
59
|
-
* @deprecated
|
|
59
|
+
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Sets the heading tag for proper semantic structure within the page.
|
|
60
60
|
*/
|
|
61
61
|
headingTag?: AccordionHeadingTag;
|
|
62
62
|
/**
|
|
63
|
-
* Emitted when accordion state
|
|
63
|
+
* Emitted when the accordion state changes.
|
|
64
64
|
*/
|
|
65
65
|
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
66
66
|
/**
|
|
@@ -68,7 +68,7 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
68
68
|
*/
|
|
69
69
|
open?: boolean;
|
|
70
70
|
/**
|
|
71
|
-
* @deprecated
|
|
71
|
+
* @deprecated Will be removed in the next major release. Use the `summary` slot instead. Controls the heading size in the summary section (only applies when using the `heading` prop or `heading` slot).
|
|
72
72
|
*/
|
|
73
73
|
size?: BreakpointCustomizable<AccordionSize>;
|
|
74
74
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureIcon, ButtonPureSize, ButtonPureType } from '../types';
|
|
2
|
+
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureColor, ButtonPureIcon, ButtonPureSize, ButtonPureType } from '../types';
|
|
3
3
|
export type PButtonPureProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Displays the button in its active state.
|
|
6
6
|
*/
|
|
7
7
|
active?: boolean;
|
|
8
8
|
/**
|
|
@@ -10,9 +10,13 @@ export type PButtonPureProps = BaseProps & {
|
|
|
10
10
|
*/
|
|
11
11
|
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets ARIA attributes.
|
|
14
14
|
*/
|
|
15
15
|
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
16
|
+
/**
|
|
17
|
+
* The color.
|
|
18
|
+
*/
|
|
19
|
+
color?: ButtonPureColor;
|
|
16
20
|
/**
|
|
17
21
|
* Disables the button. No events will be triggered while disabled state is active.
|
|
18
22
|
*/
|
|
@@ -22,7 +26,7 @@ export type PButtonPureProps = BaseProps & {
|
|
|
22
26
|
*/
|
|
23
27
|
form?: string;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
29
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
26
30
|
*/
|
|
27
31
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
32
|
/**
|
|
@@ -64,7 +68,7 @@ export type PButtonPureProps = BaseProps & {
|
|
|
64
68
|
};
|
|
65
69
|
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* Displays the button in its active state.
|
|
68
72
|
*/
|
|
69
73
|
active?: boolean;
|
|
70
74
|
/**
|
|
@@ -72,9 +76,13 @@ export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit
|
|
|
72
76
|
*/
|
|
73
77
|
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
74
78
|
/**
|
|
75
|
-
*
|
|
79
|
+
* Sets ARIA attributes.
|
|
76
80
|
*/
|
|
77
81
|
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
82
|
+
/**
|
|
83
|
+
* The color.
|
|
84
|
+
*/
|
|
85
|
+
color?: ButtonPureColor;
|
|
78
86
|
/**
|
|
79
87
|
* Disables the button. No events will be triggered while disabled state is active.
|
|
80
88
|
*/
|
|
@@ -84,7 +92,7 @@ export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit
|
|
|
84
92
|
*/
|
|
85
93
|
form?: string;
|
|
86
94
|
/**
|
|
87
|
-
*
|
|
95
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
88
96
|
*/
|
|
89
97
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
90
98
|
/**
|
|
@@ -4,13 +4,13 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PButtonPure = /*#__PURE__*/ forwardRef(({ active = false, alignLabel = 'end', aria, disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = '
|
|
7
|
+
const PButtonPure = /*#__PURE__*/ forwardRef(({ active = false, alignLabel = 'end', aria, color = 'primary', disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = 'sm', stretch = false, type = 'submit', underline = false, value, className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef(undefined);
|
|
9
9
|
const WebComponentTag = usePrefix('p-button-pure');
|
|
10
|
-
const propsToSync = [active, alignLabel, aria, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value];
|
|
10
|
+
const propsToSync = [active, alignLabel, aria, color, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value];
|
|
11
11
|
useBrowserLayoutEffect(() => {
|
|
12
12
|
const { current } = elementRef;
|
|
13
|
-
['active', 'alignLabel', 'aria', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'type', 'underline', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
13
|
+
['active', 'alignLabel', 'aria', 'color', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'type', 'underline', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
14
|
}, propsToSync);
|
|
15
15
|
const props = {
|
|
16
16
|
...rest,
|
|
@@ -6,7 +6,7 @@ export type PButtonTileProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
align?: ButtonTileAlign;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets ARIA attributes.
|
|
10
10
|
*/
|
|
11
11
|
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
12
12
|
/**
|
|
@@ -64,7 +64,7 @@ export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit
|
|
|
64
64
|
*/
|
|
65
65
|
align?: ButtonTileAlign;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Sets ARIA attributes.
|
|
68
68
|
*/
|
|
69
69
|
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
70
70
|
/**
|
|
@@ -2,11 +2,11 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, ButtonAriaAttribute, BreakpointCustomizable, ButtonIcon, ButtonType, ButtonVariant } from '../types';
|
|
3
3
|
export type PButtonProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets ARIA attributes.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
* Displays
|
|
9
|
+
* Displays the button in compact mode.
|
|
10
10
|
*/
|
|
11
11
|
compact?: BreakpointCustomizable<boolean>;
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ export type PButtonProps = BaseProps & {
|
|
|
18
18
|
*/
|
|
19
19
|
form?: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
22
22
|
*/
|
|
23
23
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
24
24
|
/**
|
|
@@ -52,11 +52,11 @@ export type PButtonProps = BaseProps & {
|
|
|
52
52
|
};
|
|
53
53
|
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Sets ARIA attributes.
|
|
56
56
|
*/
|
|
57
57
|
aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
|
|
58
58
|
/**
|
|
59
|
-
* Displays
|
|
59
|
+
* Displays the button in compact mode.
|
|
60
60
|
*/
|
|
61
61
|
compact?: BreakpointCustomizable<boolean>;
|
|
62
62
|
/**
|
|
@@ -68,7 +68,7 @@ export declare const PButton: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
68
68
|
*/
|
|
69
69
|
form?: string;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
72
72
|
*/
|
|
73
73
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
74
74
|
/**
|