@porsche-design-system/components-react 3.32.0-rc.0 → 3.32.0-rc.1
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 +11 -2
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/button-group.wrapper.cjs +1 -0
- package/esm/lib/components/button-group.wrapper.d.ts +1 -0
- package/esm/lib/components/button-group.wrapper.mjs +1 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1 -1
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +10 -3
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1 -1
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +11 -4
- package/ssr/esm/lib/components/button-group.wrapper.d.ts +1 -0
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/button-group.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -14,12 +14,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
-
## [3.32.0-rc.
|
|
17
|
+
## [3.32.0-rc.1] - 2026-01-12
|
|
18
18
|
|
|
19
19
|
### Added
|
|
20
|
-
|
|
21
20
|
- `AG Grid`: Relaxed peer dependency to support AG Grid new major version 35
|
|
22
21
|
([#4143](https://github.com/porsche-design-system/porsche-design-system/issues/4143))
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- `Radio Group Option`: missing `delegatesFocus`
|
|
26
|
+
([#4135](https://github.com/porsche-design-system/porsche-design-system/pull/4135))
|
|
27
|
+
|
|
28
|
+
## [3.32.0-rc.0] - 2025-12-16
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
23
32
|
- `Multi Select, Select`:
|
|
24
33
|
- `selected` slot for custom selection rendering and enabling complex options
|
|
25
34
|
- `options-status` slot for loading, error and no results states when using custom filtering
|
|
File without changes
|
|
@@ -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 v3.32.0, will be removed with next major release. Use simple styles instead. */
|
|
9
10
|
const PButtonGroup = /*#__PURE__*/ react.forwardRef(({ direction = { base: 'column', xs: 'row' }, className, ...rest }, ref) => {
|
|
10
11
|
const elementRef = react.useRef(undefined);
|
|
11
12
|
const WebComponentTag = hooks.usePrefix('p-button-group');
|
|
@@ -6,6 +6,7 @@ export type PButtonGroupProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
8
8
|
};
|
|
9
|
+
/** @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead. */
|
|
9
10
|
export declare const PButtonGroup: 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"> & {
|
|
10
11
|
/**
|
|
11
12
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
@@ -4,6 +4,7 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
+
/** @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead. */
|
|
7
8
|
const PButtonGroup = /*#__PURE__*/ forwardRef(({ direction = { base: 'column', xs: 'row' }, className, ...rest }, ref) => {
|
|
8
9
|
const elementRef = useRef(undefined);
|
|
9
10
|
const WebComponentTag = usePrefix('p-button-group');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-react",
|
|
3
|
-
"version": "3.32.0-rc.
|
|
3
|
+
"version": "3.32.0-rc.1",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.32.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.32.0-rc.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"ag-grid-community": ">= 33.0.0 <36.0.0",
|
|
@@ -3631,7 +3631,7 @@ const hasShowPickerSupport = () => (hasDocument &&
|
|
|
3631
3631
|
'showPicker' in HTMLInputElement.prototype &&
|
|
3632
3632
|
CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
|
|
3633
3633
|
|
|
3634
|
-
const prefix = `[Porsche Design System v${"3.32.0-rc.
|
|
3634
|
+
const prefix = `[Porsche Design System v${"3.32.0-rc.1"}]` // this part isn't covered by unit tests
|
|
3635
3635
|
;
|
|
3636
3636
|
const consoleError = (...messages) => {
|
|
3637
3637
|
console.error(prefix, ...messages); // eslint-disable-line no-console
|
|
@@ -3446,7 +3446,7 @@ const hasShowPickerSupport = () => (hasDocument &&
|
|
|
3446
3446
|
'showPicker' in HTMLInputElement.prototype &&
|
|
3447
3447
|
CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
|
|
3448
3448
|
|
|
3449
|
-
const prefix = `[Porsche Design System v${"3.32.0-rc.
|
|
3449
|
+
const prefix = `[Porsche Design System v${"3.32.0-rc.1"}]` // this part isn't covered by unit tests
|
|
3450
3450
|
;
|
|
3451
3451
|
const consoleError$1 = (...messages) => {
|
|
3452
3452
|
console.error(prefix, ...messages); // eslint-disable-line no-console
|
|
@@ -7,6 +7,7 @@ var hooks = require('../../hooks.cjs');
|
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
var buttonGroup = require('../dsr-components/button-group.cjs');
|
|
9
9
|
|
|
10
|
+
/** @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead. */
|
|
10
11
|
const PButtonGroup = /*#__PURE__*/ react.forwardRef(({ direction = { base: 'column', xs: 'row' }, className, children, ...rest }, ref) => {
|
|
11
12
|
const elementRef = react.useRef(undefined);
|
|
12
13
|
const WebComponentTag = hooks.usePrefix('p-button-group');
|
|
@@ -7,7 +7,7 @@ var hooks = require('../../hooks.cjs');
|
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
var radioGroupOption = require('../dsr-components/radio-group-option.cjs');
|
|
9
9
|
|
|
10
|
-
const PRadioGroupOption = /*#__PURE__*/ react.forwardRef(({ disabled = false, label, loading = false, value, className, ...rest }, ref) => {
|
|
10
|
+
const PRadioGroupOption = /*#__PURE__*/ react.forwardRef(({ disabled = false, label, loading = false, value, className, children, ...rest }, ref) => {
|
|
11
11
|
const elementRef = react.useRef(undefined);
|
|
12
12
|
const WebComponentTag = hooks.usePrefix('p-radio-group-option');
|
|
13
13
|
const propsToSync = [disabled, label, loading, value];
|
|
@@ -20,9 +20,10 @@ const PRadioGroupOption = /*#__PURE__*/ react.forwardRef(({ disabled = false, la
|
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
...(!process.browser
|
|
22
22
|
? {
|
|
23
|
-
children: (jsxRuntime.jsx(radioGroupOption.DSRRadioGroupOption, { disabled, label, loading, value })),
|
|
23
|
+
children: (jsxRuntime.jsx(radioGroupOption.DSRRadioGroupOption, { disabled, label, loading, value, children })),
|
|
24
24
|
}
|
|
25
25
|
: {
|
|
26
|
+
children,
|
|
26
27
|
suppressHydrationWarning: true,
|
|
27
28
|
}),
|
|
28
29
|
'data-ssr': '',
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.cjs
CHANGED
|
@@ -8,6 +8,7 @@ var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-e
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @slot {"name": "", "description": "Default slot for the buttons to group." }
|
|
11
|
+
* @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead.
|
|
11
12
|
*/
|
|
12
13
|
class DSRButtonGroup extends react.Component {
|
|
13
14
|
host;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
require('../../provider.cjs');
|
|
6
|
+
var splitChildren = require('../../splitChildren.cjs');
|
|
6
7
|
var minifyCss = require('../../minifyCss.cjs');
|
|
7
8
|
var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
|
|
8
9
|
var loadingMessage = require('./loading-message.cjs');
|
|
@@ -10,20 +11,26 @@ var label = require('./label.cjs');
|
|
|
10
11
|
var stateMessage = require('./state-message.cjs');
|
|
11
12
|
var spinner_wrapper = require('../components/spinner.wrapper.cjs');
|
|
12
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
16
|
+
* @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
17
|
+
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
18
|
+
*/
|
|
13
19
|
class DSRRadioGroupOption extends react.Component {
|
|
14
20
|
host;
|
|
15
21
|
initialLoading = false;
|
|
16
22
|
inputElement;
|
|
17
23
|
render() {
|
|
24
|
+
splitChildren.splitChildren(this.props.children);
|
|
18
25
|
const { theme = 'light', selected: isSelected, name, state } = this.props;
|
|
19
26
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
20
27
|
const isOptionLoading = this.props.loading && !isSelected;
|
|
21
28
|
const isLoading = isOptionLoading || this.props.loadingParent;
|
|
22
29
|
const id = 'radio-group-option';
|
|
23
30
|
const style = minifyCss.minifyCss(stylesEntry.getRadioGroupOptionCss(isDisabled, isLoading, state, theme));
|
|
24
|
-
return (jsxRuntime.
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label, hasDescription: false, host: null, label: this.props.label, htmlFor: id, isDisabled: isDisabled, isLoading: isLoading, stopClickPropagation: true }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("input", { id: id, type: "radio", name: name, checked: isSelected, disabled: isDisabled || isLoading, value: this.props.value, onClick: (e) => {
|
|
32
|
+
e.stopPropagation();
|
|
33
|
+
}, onBlur: this.props.onBlur, "aria-describedby": isLoading ? loadingMessage.loadingId : `${stateMessage.messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": isDisabled || isLoading ? 'true' : null }), isOptionLoading && !this.props.loadingParent && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" }))] }), !this.props.loadingParent && (jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: isOptionLoading, initialLoading: this.props.initialLoading }))] }) })] }), this.props.children] }));
|
|
27
34
|
}
|
|
28
35
|
}
|
|
29
36
|
|
|
@@ -3629,7 +3629,7 @@ const hasShowPickerSupport = () => (hasDocument &&
|
|
|
3629
3629
|
'showPicker' in HTMLInputElement.prototype &&
|
|
3630
3630
|
CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
|
|
3631
3631
|
|
|
3632
|
-
const prefix = `[Porsche Design System v${"3.32.0-rc.
|
|
3632
|
+
const prefix = `[Porsche Design System v${"3.32.0-rc.1"}]` // this part isn't covered by unit tests
|
|
3633
3633
|
;
|
|
3634
3634
|
const consoleError = (...messages) => {
|
|
3635
3635
|
console.error(prefix, ...messages); // eslint-disable-line no-console
|
|
@@ -3444,7 +3444,7 @@ const hasShowPickerSupport = () => (hasDocument &&
|
|
|
3444
3444
|
'showPicker' in HTMLInputElement.prototype &&
|
|
3445
3445
|
CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
|
|
3446
3446
|
|
|
3447
|
-
const prefix = `[Porsche Design System v${"3.32.0-rc.
|
|
3447
|
+
const prefix = `[Porsche Design System v${"3.32.0-rc.1"}]` // this part isn't covered by unit tests
|
|
3448
3448
|
;
|
|
3449
3449
|
const consoleError$1 = (...messages) => {
|
|
3450
3450
|
console.error(prefix, ...messages); // eslint-disable-line no-console
|
|
@@ -5,6 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRButtonGroup } from '../dsr-components/button-group.mjs';
|
|
7
7
|
|
|
8
|
+
/** @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead. */
|
|
8
9
|
const PButtonGroup = /*#__PURE__*/ forwardRef(({ direction = { base: 'column', xs: 'row' }, className, children, ...rest }, ref) => {
|
|
9
10
|
const elementRef = useRef(undefined);
|
|
10
11
|
const WebComponentTag = usePrefix('p-button-group');
|
|
@@ -5,7 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRRadioGroupOption } from '../dsr-components/radio-group-option.mjs';
|
|
7
7
|
|
|
8
|
-
const PRadioGroupOption = /*#__PURE__*/ forwardRef(({ disabled = false, label, loading = false, value, className, ...rest }, ref) => {
|
|
8
|
+
const PRadioGroupOption = /*#__PURE__*/ forwardRef(({ disabled = false, label, loading = false, value, className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
const WebComponentTag = usePrefix('p-radio-group-option');
|
|
11
11
|
const propsToSync = [disabled, label, loading, value];
|
|
@@ -18,9 +18,10 @@ const PRadioGroupOption = /*#__PURE__*/ forwardRef(({ disabled = false, label, l
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
...(!process.browser
|
|
20
20
|
? {
|
|
21
|
-
children: (jsx(DSRRadioGroupOption, { disabled, label, loading, value })),
|
|
21
|
+
children: (jsx(DSRRadioGroupOption, { disabled, label, loading, value, children })),
|
|
22
22
|
}
|
|
23
23
|
: {
|
|
24
|
+
children,
|
|
24
25
|
suppressHydrationWarning: true,
|
|
25
26
|
}),
|
|
26
27
|
'data-ssr': '',
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { getButtonGroupCss as getComponentCss$1n } from '../../../../../../compo
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @slot {"name": "", "description": "Default slot for the buttons to group." }
|
|
9
|
+
* @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead.
|
|
9
10
|
*/
|
|
10
11
|
class DSRButtonGroup extends Component {
|
|
11
12
|
host;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.mjs';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.mjs';
|
|
4
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
6
|
import { getRadioGroupOptionCss as getComponentCss$y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
7
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
@@ -8,20 +9,26 @@ import { Label } from './label.mjs';
|
|
|
8
9
|
import { messageId } from './state-message.mjs';
|
|
9
10
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
14
|
+
* @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
15
|
+
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
16
|
+
*/
|
|
11
17
|
class DSRRadioGroupOption extends Component {
|
|
12
18
|
host;
|
|
13
19
|
initialLoading = false;
|
|
14
20
|
inputElement;
|
|
15
21
|
render() {
|
|
22
|
+
splitChildren(this.props.children);
|
|
16
23
|
const { theme = 'light', selected: isSelected, name, state } = this.props;
|
|
17
24
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
18
25
|
const isOptionLoading = this.props.loading && !isSelected;
|
|
19
26
|
const isLoading = isOptionLoading || this.props.loadingParent;
|
|
20
27
|
const id = 'radio-group-option';
|
|
21
28
|
const style = minifyCss(getComponentCss$y(isDisabled, isLoading, state, theme));
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label, hasDescription: false, host: null, label: this.props.label, htmlFor: id, isDisabled: isDisabled, isLoading: isLoading, stopClickPropagation: true }), jsxs("div", { className: "wrapper", children: [jsx("input", { id: id, type: "radio", name: name, checked: isSelected, disabled: isDisabled || isLoading, value: this.props.value, onClick: (e) => {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
}, onBlur: this.props.onBlur, "aria-describedby": isLoading ? loadingId : `${messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": isDisabled || isLoading ? 'true' : null }), isOptionLoading && !this.props.loadingParent && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" }))] }), !this.props.loadingParent && (jsx(LoadingMessage, { loading: isOptionLoading, initialLoading: this.props.initialLoading }))] }) })] }), this.props.children] }));
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
34
|
|
|
@@ -6,6 +6,7 @@ export type PButtonGroupProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
8
8
|
};
|
|
9
|
+
/** @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead. */
|
|
9
10
|
export declare const PButtonGroup: 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"> & {
|
|
10
11
|
/**
|
|
11
12
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* @slot {"name": "", "description": "Default slot for the buttons to group." }
|
|
4
|
+
* @deprecated since v3.32.0, will be removed with next major release. Use simple styles instead.
|
|
4
5
|
*/
|
|
5
6
|
export declare class DSRButtonGroup extends Component<any> {
|
|
6
7
|
host: HTMLElement;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import type { RadioGroupOptionInternalHTMLProps } from '@porsche-design-system/components/dist/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
5
|
+
* @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
6
|
+
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
7
|
+
*/
|
|
3
8
|
export declare class DSRRadioGroupOption extends Component<any> {
|
|
4
9
|
host: HTMLElement & RadioGroupOptionInternalHTMLProps;
|
|
5
10
|
private initialLoading;
|