@porsche-design-system/components-react 3.29.0-rc.1 → 3.29.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.
- package/CHANGELOG.md +8 -1
- package/esm/hooks.mjs +1 -1
- package/package.json +8 -8
- package/partials/esm/index.mjs +1 -0
- package/partials/package.json +3 -3
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +8 -18
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +7 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -1
- 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/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- 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/grid.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +8 -18
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +1 -1
- 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/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- 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/grid.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/partials/index.js +0 -12
- /package/partials/{index.cjs → cjs/index.cjs} +0 -0
- /package/partials/{index.d.ts → esm/index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [3.29.0-rc.2] - 2025-07-28
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Partials: provide CJS & ESM build ([#3945](https://github.com/porsche-design-system/porsche-design-system/pull/3945))
|
|
22
|
+
|
|
17
23
|
## [3.29.0-rc.1] - 2025-07-15
|
|
18
24
|
|
|
19
25
|
### Added
|
|
@@ -31,7 +37,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
31
37
|
([#3917](https://github.com/porsche-design-system/porsche-design-system/pull/3917))
|
|
32
38
|
- Angular: updated peer dependency to `>=20.0.0 <21.0.0`
|
|
33
39
|
- **Breaking Change** `Textarea`:
|
|
34
|
-
|
|
35
40
|
- Renamed the `showCounter` prop to `counter`.
|
|
36
41
|
- Changed default behavior: the `counter` is now disabled by default (`false` instead of `true`).
|
|
37
42
|
|
|
@@ -54,6 +59,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
54
59
|
|
|
55
60
|
- `Carousel`: component does not work correctly if an invalid `lang` value is provided
|
|
56
61
|
([#3924](https://github.com/porsche-design-system/porsche-design-system/pull/3924))
|
|
62
|
+
- Vue: fixed initial render for `dark` and `auto` themes in `PorscheDesignSystemProvider`
|
|
63
|
+
([#3898](https://github.com/porsche-design-system/porsche-design-system/pull/3898))
|
|
57
64
|
|
|
58
65
|
## [3.29.0-rc.0] - 2025-06-27
|
|
59
66
|
|
package/esm/hooks.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useLayoutEffect, useEffect, useContext, useRef, useMemo } from 'react';
|
|
3
3
|
import { PorscheDesignSystemContext } from './provider.mjs';
|
|
4
4
|
import { getMergedClassName } from './utils.mjs';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-react",
|
|
3
|
-
"version": "3.29.0-rc.
|
|
3
|
+
"version": "3.29.0-rc.2",
|
|
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,12 +17,12 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.29.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.29.0-rc.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"ag-grid-community": ">= 33.0.0 <
|
|
24
|
-
"ag-grid-enterprise": ">= 33.0.0 <
|
|
25
|
-
"ag-grid-react": ">= 33.0.0 <
|
|
23
|
+
"ag-grid-community": ">= 33.0.0 <35.0.0",
|
|
24
|
+
"ag-grid-enterprise": ">= 33.0.0 <35.0.0",
|
|
25
|
+
"ag-grid-react": ">= 33.0.0 <35.0.0",
|
|
26
26
|
"react": ">=19.0.0 <20.0.0",
|
|
27
27
|
"react-dom": ">=19.0.0 <20.0.0"
|
|
28
28
|
},
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"default": "./jsdom-polyfill/index.cjs"
|
|
56
56
|
},
|
|
57
57
|
"./partials": {
|
|
58
|
-
"types": "./partials/index.d.ts",
|
|
59
|
-
"module": "./partials/index.
|
|
60
|
-
"default": "./partials/index.cjs"
|
|
58
|
+
"types": "./partials/esm/index.d.ts",
|
|
59
|
+
"module": "./partials/esm/index.mjs",
|
|
60
|
+
"default": "./partials/cjs/index.cjs"
|
|
61
61
|
},
|
|
62
62
|
"./ssr": {
|
|
63
63
|
"types": "./ssr/esm/public-api.d.ts",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@porsche-design-system/components-js/partials';
|
package/partials/package.json
CHANGED
|
@@ -2733,11 +2733,15 @@ function getDefaultExportFromCjs (x) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
2735
|
function getAugmentedNamespace(n) {
|
|
2736
|
-
if (n
|
|
2736
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
2737
2737
|
var f = n.default;
|
|
2738
2738
|
if (typeof f == "function") {
|
|
2739
2739
|
var a = function a () {
|
|
2740
|
-
|
|
2740
|
+
var isInstance = false;
|
|
2741
|
+
try {
|
|
2742
|
+
isInstance = this instanceof a;
|
|
2743
|
+
} catch {}
|
|
2744
|
+
if (isInstance) {
|
|
2741
2745
|
return Reflect.construct(f, arguments, this.constructor);
|
|
2742
2746
|
}
|
|
2743
2747
|
return f.apply(this, arguments);
|
|
@@ -3637,7 +3641,7 @@ const addImportantToEachRule = (input) => {
|
|
|
3637
3641
|
? result
|
|
3638
3642
|
: // @ts-expect-error: Type string can't be used to index type JssStyle
|
|
3639
3643
|
((result[key] =
|
|
3640
|
-
// biome-ignore lint/
|
|
3644
|
+
// biome-ignore lint/complexity/noCommaOperator: to be refactored
|
|
3641
3645
|
typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
|
|
3642
3646
|
result), {});
|
|
3643
3647
|
};
|
|
@@ -3811,7 +3815,6 @@ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
|
|
|
3811
3815
|
// NOTE: taken from https://stackoverflow.com/a/48218209
|
|
3812
3816
|
const mergeDeep = (...objects) => {
|
|
3813
3817
|
return objects.reduce((prev, obj) => {
|
|
3814
|
-
// biome-ignore lint/complexity/noForEach: to be refactored
|
|
3815
3818
|
Object.keys(obj).forEach((key) => {
|
|
3816
3819
|
const pVal = prev[key];
|
|
3817
3820
|
const oVal = obj[key];
|
|
@@ -3894,20 +3897,6 @@ const supportsChromiumMediaQuery = (style) => ({
|
|
|
3894
3897
|
'@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm)': style,
|
|
3895
3898
|
});
|
|
3896
3899
|
|
|
3897
|
-
/**
|
|
3898
|
-
* Checks if the current environment supports the native Popover API.
|
|
3899
|
-
*
|
|
3900
|
-
* @returns {boolean} `true` if the native Popover API is supported, `false` otherwise.
|
|
3901
|
-
*/
|
|
3902
|
-
const supportsNativePopover = () => {
|
|
3903
|
-
if (!hasWindow) {
|
|
3904
|
-
return false;
|
|
3905
|
-
}
|
|
3906
|
-
return Object.prototype.hasOwnProperty.call(HTMLElement.prototype, 'popover');
|
|
3907
|
-
};
|
|
3908
|
-
// determine it once
|
|
3909
|
-
supportsNativePopover();
|
|
3910
|
-
|
|
3911
3900
|
const hasDocument = typeof document !== 'undefined';
|
|
3912
3901
|
|
|
3913
3902
|
const isThemeAuto = (theme) => {
|
|
@@ -9499,6 +9488,7 @@ const getComponentCss$w = (gradientColor, isNextHidden, isPrevHidden, alignScrol
|
|
|
9499
9488
|
};
|
|
9500
9489
|
|
|
9501
9490
|
const ITEM_PADDING = '17px';
|
|
9491
|
+
const { font: BUTTON_FONT } = textSmallStyle;
|
|
9502
9492
|
const ICON_SIZE = '1.5rem';
|
|
9503
9493
|
const ICON_MARGIN = '.25rem';
|
|
9504
9494
|
const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
@@ -2733,11 +2733,15 @@ function getDefaultExportFromCjs (x) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
2735
|
function getAugmentedNamespace(n) {
|
|
2736
|
-
if (n
|
|
2736
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
2737
2737
|
var f = n.default;
|
|
2738
2738
|
if (typeof f == "function") {
|
|
2739
2739
|
var a = function a () {
|
|
2740
|
-
|
|
2740
|
+
var isInstance = false;
|
|
2741
|
+
try {
|
|
2742
|
+
isInstance = this instanceof a;
|
|
2743
|
+
} catch {}
|
|
2744
|
+
if (isInstance) {
|
|
2741
2745
|
return Reflect.construct(f, arguments, this.constructor);
|
|
2742
2746
|
}
|
|
2743
2747
|
return f.apply(this, arguments);
|
|
@@ -3511,7 +3515,7 @@ const supportsNativePopover = () => {
|
|
|
3511
3515
|
if (!hasWindow$1) {
|
|
3512
3516
|
return false;
|
|
3513
3517
|
}
|
|
3514
|
-
return Object.
|
|
3518
|
+
return Object.hasOwn(HTMLElement.prototype, 'popover');
|
|
3515
3519
|
};
|
|
3516
3520
|
// determine it once
|
|
3517
3521
|
const hasNativePopoverSupport = supportsNativePopover();
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs
CHANGED
|
@@ -23,7 +23,7 @@ class DSRBanner extends react.Component {
|
|
|
23
23
|
return this.props.persistent ? false : this.props.dismissButton;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const {
|
|
26
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
28
28
|
const style = minifyCss.minifyCss(stylesEntry.getBannerCss(this.props.open));
|
|
29
29
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(inlineNotification_wrapper.PInlineNotification, { heading: this.props.heading, headingTag: this.props.headingTag, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": this.props.open ? 'false' : 'true', children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0 ? (jsxRuntime.jsx("slot", { name: "heading", slot: "heading" })) : (hasTitleSlot && jsxRuntime.jsx("slot", { name: "title", slot: "heading" })), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsxRuntime.jsx("slot", { name: "description" })] }) })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs
CHANGED
|
@@ -40,7 +40,7 @@ class DSRCanvas extends react.Component {
|
|
|
40
40
|
// private header: any;
|
|
41
41
|
//
|
|
42
42
|
render() {
|
|
43
|
-
const {
|
|
43
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
44
44
|
const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
45
45
|
const hasSidebarEnd = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end').length > 0;
|
|
46
46
|
const hasSidebarEndHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end-header').length > 0;
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs
CHANGED
|
@@ -34,7 +34,7 @@ class DSRCarousel extends react.Component {
|
|
|
34
34
|
return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
const {
|
|
37
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
38
38
|
const alignHeaderDeprecationMap = {
|
|
39
39
|
left: 'start',
|
|
40
40
|
};
|
|
@@ -21,7 +21,7 @@ class DSRCheckboxWrapper extends react.Component {
|
|
|
21
21
|
initialLoading = false;
|
|
22
22
|
input;
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
25
25
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
26
26
|
const style = minifyCss.minifyCss(stylesEntry.getCheckboxWrapperCss(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme));
|
|
27
27
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(legacyLabel.LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, isLoading: this.props.loading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), this.props.loading && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs
CHANGED
|
@@ -32,7 +32,7 @@ class DSRCheckbox extends react.Component {
|
|
|
32
32
|
formStateRestoreCallback() {
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
const {
|
|
35
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
36
36
|
const id = 'checkbox';
|
|
37
37
|
const style = minifyCss.minifyCss(stylesEntry.getCheckboxCss(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
|
|
38
38
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("input", { type: "checkbox", id: id, "aria-describedby": `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
@@ -23,7 +23,7 @@ class DSRDrilldownItem extends react.Component {
|
|
|
23
23
|
return this.props.theme || 'light'; // default as fallback (internal private prop is controlled by drilldown)
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const {
|
|
26
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const hasSlottedHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
28
28
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
29
29
|
const style = minifyCss.minifyCss(stylesEntry.getDrilldownItemCss(this.props.primary, this.props.secondary, this.props.cascade));
|
|
@@ -18,7 +18,7 @@ var required = require('./required.cjs');
|
|
|
18
18
|
class DSRFieldsetWrapper extends react.Component {
|
|
19
19
|
host;
|
|
20
20
|
render() {
|
|
21
|
-
const {
|
|
21
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
22
22
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
23
23
|
const style = minifyCss.minifyCss(stylesEntry.getFieldsetWrapperCss(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
|
|
24
24
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { "aria-describedby": hasMessageValue ? stateMessage.messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxRuntime.jsxs("legend", { children: [this.props.label || jsxRuntime.jsx("slot", { name: "label" }), this.props.required && jsxRuntime.jsx(required.Required, {})] })), jsxRuntime.jsx("slot", {}), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs
CHANGED
|
@@ -16,7 +16,7 @@ var required = require('./required.cjs');
|
|
|
16
16
|
class DSRFieldset extends react.Component {
|
|
17
17
|
host;
|
|
18
18
|
render() {
|
|
19
|
-
const {
|
|
19
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
20
20
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
21
21
|
const style = minifyCss.minifyCss(stylesEntry.getFieldsetCss(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
|
|
22
22
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { "aria-describedby": hasMessageValue ? stateMessage.messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxRuntime.jsxs("legend", { children: [this.props.label || jsxRuntime.jsx("slot", { name: "label" }), this.props.required && jsxRuntime.jsx(required.Required, {})] })), jsxRuntime.jsx("slot", {}), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs
CHANGED
|
@@ -27,7 +27,7 @@ class DSRFlyout extends react.Component {
|
|
|
27
27
|
hasFooter;
|
|
28
28
|
hasSubFooter;
|
|
29
29
|
render() {
|
|
30
|
-
const {
|
|
30
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
31
31
|
const positionDeprecationMap = {
|
|
32
32
|
left: 'start',
|
|
33
33
|
right: 'end',
|
|
@@ -14,7 +14,7 @@ var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-e
|
|
|
14
14
|
class DSRGrid extends react.Component {
|
|
15
15
|
host;
|
|
16
16
|
render() {
|
|
17
|
-
const { children,
|
|
17
|
+
const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
18
18
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
19
19
|
? { ...child, props: { ...child.props, gutter: this.props.gutter } }
|
|
20
20
|
: child);
|
|
@@ -21,7 +21,7 @@ class DSRInlineNotification extends react.Component {
|
|
|
21
21
|
return this.props.persistent ? false : this.props.dismissButton;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
25
25
|
const bannerId = 'banner';
|
|
26
26
|
const labelId = 'label';
|
|
27
27
|
const descriptionId = 'description';
|
|
@@ -17,7 +17,7 @@ var modelSignature_wrapper = require('../components/model-signature.wrapper.cjs'
|
|
|
17
17
|
class DSRLinkTileModelSignature extends react.Component {
|
|
18
18
|
host;
|
|
19
19
|
render() {
|
|
20
|
-
const { children, namedSlotChildren
|
|
20
|
+
const { children, namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
21
21
|
// If we do this earlier than render, there are cases where primaryLink.href is undefined
|
|
22
22
|
// TODO: Here and in other components, validation happens only on initial render. We could extend this to watch props of the required slots.
|
|
23
23
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && namedSlotChildren.includes(child)
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs
CHANGED
|
@@ -28,7 +28,7 @@ class DSRModal extends react.Component {
|
|
|
28
28
|
return this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
const {
|
|
31
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
32
32
|
const hasHeader = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) || namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
33
33
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
34
34
|
const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs
CHANGED
|
@@ -54,7 +54,7 @@ class DSRMultiSelect extends react.Component {
|
|
|
54
54
|
this.props.setFormValue(this.props.defaultValue);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
const {
|
|
57
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
58
58
|
const inputId = 'filter';
|
|
59
59
|
const popoverId = 'list';
|
|
60
60
|
const style = minifyCss.minifyCss(stylesEntry.getMultiSelectCss(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.theme));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs
CHANGED
|
@@ -35,7 +35,7 @@ class DSRPinCode extends react.Component {
|
|
|
35
35
|
formStateRestoreCallback() {
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
const {
|
|
38
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
39
39
|
// reset array of input elements
|
|
40
40
|
this.inputElements = [];
|
|
41
41
|
const currentInputId = 'current-input';
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs
CHANGED
|
@@ -23,7 +23,7 @@ class DSRPopover extends react.Component {
|
|
|
23
23
|
hasNativePopoverSupport = utilsEntry.getHasNativePopoverSupport();
|
|
24
24
|
hasSlottedButton;
|
|
25
25
|
render() {
|
|
26
|
-
const {
|
|
26
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
28
28
|
const style = minifyCss.minifyCss(stylesEntry.getPopoverCss(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
|
|
29
29
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasSlottedButton ? (jsxRuntime.jsx("div", { children: jsxRuntime.jsx("slot", { name: "button" }) })) : (jsxRuntime.jsxs("button", { type: "button", ...utilsEntry.parseAndGetAriaAttributes({
|
|
@@ -21,7 +21,7 @@ class DSRRadioButtonWrapper extends react.Component {
|
|
|
21
21
|
initialLoading = false;
|
|
22
22
|
input;
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
25
25
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
26
26
|
const isLoading = this.props.loading && !(typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && (otherChildren[0]?.props.checked || otherChildren[0]?.props.defaultChecked)); // spinner is only displayed when radio is not checked already
|
|
27
27
|
const style = minifyCss.minifyCss(stylesEntry.getRadioButtonWrapperCss(this.props.hideLabel, this.props.state, disabled, isLoading, this.props.theme));
|
|
@@ -15,7 +15,7 @@ var icon_wrapper = require('../components/icon.wrapper.cjs');
|
|
|
15
15
|
class DSRSegmentedControlItem extends react.Component {
|
|
16
16
|
host;
|
|
17
17
|
render() {
|
|
18
|
-
const { children
|
|
18
|
+
const { children} = splitChildren.splitChildren(this.props.children);
|
|
19
19
|
// this additional validation is still needed because undefined is allowed with current propTypes
|
|
20
20
|
const hasIcon = !!this.props.icon || !!this.props.iconSource;
|
|
21
21
|
const hasSlottedContent = !!children.length;
|
|
@@ -23,7 +23,7 @@ class DSRSegmentedControl extends react.Component {
|
|
|
23
23
|
formStateRestoreCallback() {
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const { children,
|
|
26
|
+
const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
28
28
|
? { ...child, props: { ...child.props, selected: child.props?.value === this.props.value, backgroundColor: this.props.backgroundColor, theme: this.props.theme } }
|
|
29
29
|
: child);
|
|
@@ -28,6 +28,7 @@ class DSRSelectWrapperDropdown extends react.Component {
|
|
|
28
28
|
const style = minifyCss.minifyCss(stylesEntry.getSelectWrapperDropdownCss(this.isOpen, this.props.state, this.props.disabled, this.props.filter, this.props.theme));
|
|
29
29
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: this.props.filter ? ([
|
|
30
30
|
jsxRuntime.jsx("input", { id: inputId, type: "text", role: "combobox", disabled: this.props.disabled, placeholder: utilsEntry.getSelectedOptionMap(this.optionMaps)?.value || null, autoComplete: "off", defaultValue: this.searchString }, "input"),
|
|
31
|
+
/* biome-ignore lint/a11y/noStaticElementInteractions: ok */
|
|
31
32
|
jsxRuntime.jsx("span", {
|
|
32
33
|
/* @ts-ignore */
|
|
33
34
|
part: part }, "span"),
|
|
@@ -24,7 +24,7 @@ class DSRSelectWrapper extends react.Component {
|
|
|
24
24
|
iconElement;
|
|
25
25
|
render() {
|
|
26
26
|
const hasCustomDropdown = utilsEntry.isCustomDropdown(this.props.filter, this.props.native);
|
|
27
|
-
const {
|
|
27
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
28
28
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
29
29
|
const style = minifyCss.minifyCss(stylesEntry.getSelectWrapperCss(disabled, hasCustomDropdown, this.props.hideLabel, this.props.state, this.props.theme));
|
|
30
30
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(legacyLabel.LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), jsxRuntime.jsx(icon_wrapper.PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" }), hasCustomDropdown && !disabled && (jsxRuntime.jsx(selectWrapperDropdown_wrapper.PSelectWrapperDropdown, { className: "dropdown", selectRef: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props, label: this.props.label || namedSlotChildren.find(({ props: { slot } }) => slot === 'label')?.props.children, message: this.props.message || namedSlotChildren.find(({ props: { slot } }) => slot === 'message')?.props.children, description: this.props.description || namedSlotChildren.find(({ props: { slot } }) => slot === 'description')?.props.children, state: this.props.state, direction: this.props.dropdownDirection, filter: this.props.filter, theme: this.props.theme, required: false, disabled: disabled, onOpenChange: (isOpen) => this.props.iconElement.classList.toggle('icon--open', isOpen) }))] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs
CHANGED
|
@@ -47,7 +47,7 @@ class DSRSelect extends react.Component {
|
|
|
47
47
|
this.props.internals?.setFormValue(this.props.defaultValue);
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
const {
|
|
50
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
51
51
|
const buttonId = 'value';
|
|
52
52
|
const popoverId = 'list';
|
|
53
53
|
const descriptionId = this.props.description ? 'description' : undefined;
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs
CHANGED
|
@@ -21,7 +21,7 @@ class DSRSheet extends react.Component {
|
|
|
21
21
|
scroller;
|
|
22
22
|
hasHeader;
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
25
25
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
26
26
|
if (this.props.open) ;
|
|
27
27
|
const style = minifyCss.minifyCss(stylesEntry.getSheetCss(this.props.open, this.props.dismissButton, this.props.theme));
|
|
@@ -17,7 +17,7 @@ class DSRStepperHorizontal extends react.Component {
|
|
|
17
17
|
scrollerElement;
|
|
18
18
|
currentStepIndex;
|
|
19
19
|
render() {
|
|
20
|
-
const { children,
|
|
20
|
+
const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
21
21
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
22
22
|
? { ...child, props: { ...child.props, theme: this.props.theme } }
|
|
23
23
|
: child);
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var scroller_wrapper = require('../components/scroller.wrapper.cjs');
|
|
|
15
15
|
class DSRTable extends react.Component {
|
|
16
16
|
host;
|
|
17
17
|
render() {
|
|
18
|
-
const {
|
|
18
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
19
19
|
const hasSlottedCaption = namedSlotChildren.filter(({ props: { slot } }) => slot === 'caption').length > 0;
|
|
20
20
|
const captionId = 'caption';
|
|
21
21
|
const tableAttr = this.props.caption
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs
CHANGED
|
@@ -23,7 +23,7 @@ class DSRTabsBar extends react.Component {
|
|
|
23
23
|
hasPTabsParent;
|
|
24
24
|
areTabsButtons;
|
|
25
25
|
render() {
|
|
26
|
-
const { children,
|
|
26
|
+
const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
28
28
|
? child.type === 'button'
|
|
29
29
|
? {
|
|
@@ -17,7 +17,7 @@ class DSRTabs extends react.Component {
|
|
|
17
17
|
host;
|
|
18
18
|
tabsItemElements = [];
|
|
19
19
|
render() {
|
|
20
|
-
const { children,
|
|
20
|
+
const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
21
21
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
22
22
|
? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
|
|
23
23
|
: child);
|
|
@@ -36,7 +36,7 @@ class DSRTextFieldWrapper extends react.Component {
|
|
|
36
36
|
hasUnit;
|
|
37
37
|
eventListener;
|
|
38
38
|
render() {
|
|
39
|
-
const {
|
|
39
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
40
40
|
const { readOnly, disabled, type } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
41
41
|
const disabledOrReadOnly = disabled || readOnly;
|
|
42
42
|
const buttonProps = {
|
|
@@ -22,7 +22,7 @@ class DSRTextareaWrapper extends react.Component {
|
|
|
22
22
|
hasCounter;
|
|
23
23
|
eventListener;
|
|
24
24
|
render() {
|
|
25
|
-
const {
|
|
25
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
26
26
|
const { disabled, readOnly } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
27
27
|
const style = minifyCss.minifyCss(stylesEntry.getTextareaWrapperCss(disabled, readOnly, this.props.hideLabel, this.props.state, this.props.hasCounter, this.props.theme));
|
|
28
28
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(legacyLabel.LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), this.props.hasCounter && jsxRuntime.jsx("span", { className: "counter", "aria-hidden": "true" }), this.props.hasCounter && jsxRuntime.jsx("span", { className: "sr-only", "aria-live": "polite" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs
CHANGED
|
@@ -29,7 +29,7 @@ class DSRTextarea extends react.Component {
|
|
|
29
29
|
formStateRestoreCallback() {
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
const {
|
|
32
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
33
33
|
const id = 'textarea';
|
|
34
34
|
const style = minifyCss.minifyCss(stylesEntry.getTextareaCss(this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.counter, this.props.resize, this.props.theme));
|
|
35
35
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("textarea", { "aria-describedby": `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, value: this.props.value, form: this.props.form, disabled: this.props.disabled, required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, rows: this.props.rows, readOnly: this.props.readOnly, spellCheck: this.props.spellCheck, autoComplete: this.props.autoComplete, wrap: this.props.wrap }), this.props.counter && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
|
|
@@ -2731,11 +2731,15 @@ function getDefaultExportFromCjs (x) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
2733
|
function getAugmentedNamespace(n) {
|
|
2734
|
-
if (n
|
|
2734
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
2735
2735
|
var f = n.default;
|
|
2736
2736
|
if (typeof f == "function") {
|
|
2737
2737
|
var a = function a () {
|
|
2738
|
-
|
|
2738
|
+
var isInstance = false;
|
|
2739
|
+
try {
|
|
2740
|
+
isInstance = this instanceof a;
|
|
2741
|
+
} catch {}
|
|
2742
|
+
if (isInstance) {
|
|
2739
2743
|
return Reflect.construct(f, arguments, this.constructor);
|
|
2740
2744
|
}
|
|
2741
2745
|
return f.apply(this, arguments);
|
|
@@ -3635,7 +3639,7 @@ const addImportantToEachRule = (input) => {
|
|
|
3635
3639
|
? result
|
|
3636
3640
|
: // @ts-expect-error: Type string can't be used to index type JssStyle
|
|
3637
3641
|
((result[key] =
|
|
3638
|
-
// biome-ignore lint/
|
|
3642
|
+
// biome-ignore lint/complexity/noCommaOperator: to be refactored
|
|
3639
3643
|
typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
|
|
3640
3644
|
result), {});
|
|
3641
3645
|
};
|
|
@@ -3809,7 +3813,6 @@ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
|
|
|
3809
3813
|
// NOTE: taken from https://stackoverflow.com/a/48218209
|
|
3810
3814
|
const mergeDeep = (...objects) => {
|
|
3811
3815
|
return objects.reduce((prev, obj) => {
|
|
3812
|
-
// biome-ignore lint/complexity/noForEach: to be refactored
|
|
3813
3816
|
Object.keys(obj).forEach((key) => {
|
|
3814
3817
|
const pVal = prev[key];
|
|
3815
3818
|
const oVal = obj[key];
|
|
@@ -3892,20 +3895,6 @@ const supportsChromiumMediaQuery = (style) => ({
|
|
|
3892
3895
|
'@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm)': style,
|
|
3893
3896
|
});
|
|
3894
3897
|
|
|
3895
|
-
/**
|
|
3896
|
-
* Checks if the current environment supports the native Popover API.
|
|
3897
|
-
*
|
|
3898
|
-
* @returns {boolean} `true` if the native Popover API is supported, `false` otherwise.
|
|
3899
|
-
*/
|
|
3900
|
-
const supportsNativePopover = () => {
|
|
3901
|
-
if (!hasWindow) {
|
|
3902
|
-
return false;
|
|
3903
|
-
}
|
|
3904
|
-
return Object.prototype.hasOwnProperty.call(HTMLElement.prototype, 'popover');
|
|
3905
|
-
};
|
|
3906
|
-
// determine it once
|
|
3907
|
-
supportsNativePopover();
|
|
3908
|
-
|
|
3909
3898
|
const hasDocument = typeof document !== 'undefined';
|
|
3910
3899
|
|
|
3911
3900
|
const isThemeAuto = (theme) => {
|
|
@@ -9497,6 +9486,7 @@ const getComponentCss$w = (gradientColor, isNextHidden, isPrevHidden, alignScrol
|
|
|
9497
9486
|
};
|
|
9498
9487
|
|
|
9499
9488
|
const ITEM_PADDING = '17px';
|
|
9489
|
+
const { font: BUTTON_FONT } = textSmallStyle;
|
|
9500
9490
|
const ICON_SIZE = '1.5rem';
|
|
9501
9491
|
const ICON_MARGIN = '.25rem';
|
|
9502
9492
|
const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
@@ -2731,11 +2731,15 @@ function getDefaultExportFromCjs (x) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
2733
|
function getAugmentedNamespace(n) {
|
|
2734
|
-
if (n
|
|
2734
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
2735
2735
|
var f = n.default;
|
|
2736
2736
|
if (typeof f == "function") {
|
|
2737
2737
|
var a = function a () {
|
|
2738
|
-
|
|
2738
|
+
var isInstance = false;
|
|
2739
|
+
try {
|
|
2740
|
+
isInstance = this instanceof a;
|
|
2741
|
+
} catch {}
|
|
2742
|
+
if (isInstance) {
|
|
2739
2743
|
return Reflect.construct(f, arguments, this.constructor);
|
|
2740
2744
|
}
|
|
2741
2745
|
return f.apply(this, arguments);
|
|
@@ -3509,7 +3513,7 @@ const supportsNativePopover = () => {
|
|
|
3509
3513
|
if (!hasWindow$1) {
|
|
3510
3514
|
return false;
|
|
3511
3515
|
}
|
|
3512
|
-
return Object.
|
|
3516
|
+
return Object.hasOwn(HTMLElement.prototype, 'popover');
|
|
3513
3517
|
};
|
|
3514
3518
|
// determine it once
|
|
3515
3519
|
const hasNativePopoverSupport = supportsNativePopover();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useLayoutEffect, useEffect, useContext, useRef, useMemo } from 'react';
|
|
3
3
|
import { PorscheDesignSystemContext } from './provider.mjs';
|
|
4
4
|
import { getMergedClassName } from './utils.mjs';
|
|
5
5
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs
CHANGED
|
@@ -21,7 +21,7 @@ class DSRBanner extends Component {
|
|
|
21
21
|
return this.props.persistent ? false : this.props.dismissButton;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
25
25
|
const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
26
26
|
const style = minifyCss(getComponentCss$1e(this.props.open));
|
|
27
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs(PInlineNotification, { heading: this.props.heading, headingTag: this.props.headingTag, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": this.props.open ? 'false' : 'true', children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0 ? (jsx("slot", { name: "heading", slot: "heading" })) : (hasTitleSlot && jsx("slot", { name: "title", slot: "heading" })), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsx("slot", { name: "description" })] }) })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getButtonCss as getComponentCss$1a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { hasVisibleIcon, getButtonAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
9
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
10
10
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs
CHANGED
|
@@ -38,7 +38,7 @@ class DSRCanvas extends Component {
|
|
|
38
38
|
// private header: any;
|
|
39
39
|
//
|
|
40
40
|
render() {
|
|
41
|
-
const {
|
|
41
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
42
42
|
const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
43
43
|
const hasSidebarEnd = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end').length > 0;
|
|
44
44
|
const hasSidebarEndHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end-header').length > 0;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs
CHANGED
|
@@ -32,7 +32,7 @@ class DSRCarousel extends Component {
|
|
|
32
32
|
return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
const {
|
|
35
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
36
36
|
const alignHeaderDeprecationMap = {
|
|
37
37
|
left: 'start',
|
|
38
38
|
};
|
|
@@ -19,7 +19,7 @@ class DSRCheckboxWrapper extends Component {
|
|
|
19
19
|
initialLoading = false;
|
|
20
20
|
input;
|
|
21
21
|
render() {
|
|
22
|
-
const {
|
|
22
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
23
23
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
24
24
|
const style = minifyCss(getComponentCss$17(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme));
|
|
25
25
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, isLoading: this.props.loading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs
CHANGED
|
@@ -30,7 +30,7 @@ class DSRCheckbox extends Component {
|
|
|
30
30
|
formStateRestoreCallback() {
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
const {
|
|
33
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
34
34
|
const id = 'checkbox';
|
|
35
35
|
const style = minifyCss(getComponentCss$16(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
|
|
36
36
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required }), jsxs("div", { className: "wrapper", children: [jsx("input", { type: "checkbox", id: id, "aria-describedby": `${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getCrestCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes
|
|
5
|
+
import { buildCrestSrcSet, crestSize, buildCrestImgSrc, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
const { width, height } = crestSize;
|
|
8
8
|
class DSRCrest extends Component {
|
|
@@ -21,7 +21,7 @@ class DSRDrilldownItem extends Component {
|
|
|
21
21
|
return this.props.theme || 'light'; // default as fallback (internal private prop is controlled by drilldown)
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
25
25
|
const hasSlottedHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
26
26
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
27
27
|
const style = minifyCss(getComponentCss$10(this.props.primary, this.props.secondary, this.props.cascade));
|
|
@@ -16,7 +16,7 @@ import { Required } from './required.mjs';
|
|
|
16
16
|
class DSRFieldsetWrapper extends Component {
|
|
17
17
|
host;
|
|
18
18
|
render() {
|
|
19
|
-
const {
|
|
19
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
20
20
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
21
21
|
const style = minifyCss(getComponentCss$_(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
|
|
22
22
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { Required } from './required.mjs';
|
|
|
14
14
|
class DSRFieldset extends Component {
|
|
15
15
|
host;
|
|
16
16
|
render() {
|
|
17
|
-
const {
|
|
17
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
18
18
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
19
19
|
const style = minifyCss(getComponentCss$Z(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
|
|
20
20
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs
CHANGED
|
@@ -25,7 +25,7 @@ class DSRFlyout extends Component {
|
|
|
25
25
|
hasFooter;
|
|
26
26
|
hasSubFooter;
|
|
27
27
|
render() {
|
|
28
|
-
const {
|
|
28
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
29
29
|
const positionDeprecationMap = {
|
|
30
30
|
left: 'start',
|
|
31
31
|
right: 'end',
|
|
@@ -12,7 +12,7 @@ import { getGridCss as getComponentCss$U } from '../../../../../../components/di
|
|
|
12
12
|
class DSRGrid extends Component {
|
|
13
13
|
host;
|
|
14
14
|
render() {
|
|
15
|
-
const { children,
|
|
15
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
16
16
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
17
17
|
? { ...child, props: { ...child.props, gutter: this.props.gutter } }
|
|
18
18
|
: child);
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getIconCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { parseAndGetAriaAttributes, buildIconUrl } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRIcon extends Component {
|
|
8
8
|
host;
|
|
@@ -19,7 +19,7 @@ class DSRInlineNotification extends Component {
|
|
|
19
19
|
return this.props.persistent ? false : this.props.dismissButton;
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
const {
|
|
22
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
23
23
|
const bannerId = 'banner';
|
|
24
24
|
const labelId = 'label';
|
|
25
25
|
const descriptionId = 'description';
|
|
@@ -15,7 +15,7 @@ import { PModelSignature } from '../components/model-signature.wrapper.mjs';
|
|
|
15
15
|
class DSRLinkTileModelSignature extends Component {
|
|
16
16
|
host;
|
|
17
17
|
render() {
|
|
18
|
-
const { children, namedSlotChildren
|
|
18
|
+
const { children, namedSlotChildren} = splitChildren(this.props.children);
|
|
19
19
|
// If we do this earlier than render, there are cases where primaryLink.href is undefined
|
|
20
20
|
// TODO: Here and in other components, validation happens only on initial render. We could extend this to watch props of the required slots.
|
|
21
21
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && namedSlotChildren.includes(child)
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getLinkCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs
CHANGED
|
@@ -26,7 +26,7 @@ class DSRModal extends Component {
|
|
|
26
26
|
return this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
const {
|
|
29
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
30
30
|
const hasHeader = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) || namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
31
31
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
32
32
|
const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs
CHANGED
|
@@ -52,7 +52,7 @@ class DSRMultiSelect extends Component {
|
|
|
52
52
|
this.props.setFormValue(this.props.defaultValue);
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
const {
|
|
55
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
56
56
|
const inputId = 'filter';
|
|
57
57
|
const popoverId = 'list';
|
|
58
58
|
const style = minifyCss(getComponentCss$C(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.theme));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getPinCodeCss as getComponentCss$z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { labelId, descriptionId, isCurrentInput } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { LoadingMessage } from './loading-message.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
10
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
@@ -33,7 +33,7 @@ class DSRPinCode extends Component {
|
|
|
33
33
|
formStateRestoreCallback() {
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
const {
|
|
36
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
37
37
|
// reset array of input elements
|
|
38
38
|
this.inputElements = [];
|
|
39
39
|
const currentInputId = 'current-input';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs
CHANGED
|
@@ -21,7 +21,7 @@ class DSRPopover extends Component {
|
|
|
21
21
|
hasNativePopoverSupport = getHasNativePopoverSupport();
|
|
22
22
|
hasSlottedButton;
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
25
25
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
26
26
|
const style = minifyCss(getComponentCss$y(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
|
|
27
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("div", { children: jsx("slot", { name: "button" }) })) : (jsxs("button", { type: "button", ...parseAndGetAriaAttributes({
|
|
@@ -19,7 +19,7 @@ class DSRRadioButtonWrapper extends Component {
|
|
|
19
19
|
initialLoading = false;
|
|
20
20
|
input;
|
|
21
21
|
render() {
|
|
22
|
-
const {
|
|
22
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
23
23
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
24
24
|
const isLoading = this.props.loading && !(typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && (otherChildren[0]?.props.checked || otherChildren[0]?.props.defaultChecked)); // spinner is only displayed when radio is not checked already
|
|
25
25
|
const style = minifyCss(getComponentCss$x(this.props.hideLabel, this.props.state, disabled, isLoading, this.props.theme));
|
|
@@ -13,7 +13,7 @@ import { PIcon } from '../components/icon.wrapper.mjs';
|
|
|
13
13
|
class DSRSegmentedControlItem extends Component {
|
|
14
14
|
host;
|
|
15
15
|
render() {
|
|
16
|
-
const { children
|
|
16
|
+
const { children} = splitChildren(this.props.children);
|
|
17
17
|
// this additional validation is still needed because undefined is allowed with current propTypes
|
|
18
18
|
const hasIcon = !!this.props.icon || !!this.props.iconSource;
|
|
19
19
|
const hasSlottedContent = !!children.length;
|
|
@@ -21,7 +21,7 @@ class DSRSegmentedControl extends Component {
|
|
|
21
21
|
formStateRestoreCallback() {
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
const { children,
|
|
24
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
25
25
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
26
26
|
? { ...child, props: { ...child.props, selected: child.props?.value === this.props.value, backgroundColor: this.props.backgroundColor, theme: this.props.theme } }
|
|
27
27
|
: child);
|
|
@@ -26,6 +26,7 @@ class DSRSelectWrapperDropdown extends Component {
|
|
|
26
26
|
const style = minifyCss(getComponentCss$t(this.isOpen, this.props.state, this.props.disabled, this.props.filter, this.props.theme));
|
|
27
27
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.filter ? ([
|
|
28
28
|
jsx("input", { id: inputId, type: "text", role: "combobox", disabled: this.props.disabled, placeholder: getSelectedOptionMap(this.optionMaps)?.value || null, autoComplete: "off", defaultValue: this.searchString }, "input"),
|
|
29
|
+
/* biome-ignore lint/a11y/noStaticElementInteractions: ok */
|
|
29
30
|
jsx("span", {
|
|
30
31
|
/* @ts-ignore */
|
|
31
32
|
part: part }, "span"),
|
|
@@ -22,7 +22,7 @@ class DSRSelectWrapper extends Component {
|
|
|
22
22
|
iconElement;
|
|
23
23
|
render() {
|
|
24
24
|
const hasCustomDropdown = isCustomDropdown(this.props.filter, this.props.native);
|
|
25
|
-
const {
|
|
25
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
26
26
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
27
27
|
const style = minifyCss(getComponentCss$s(disabled, hasCustomDropdown, this.props.hideLabel, this.props.state, this.props.theme));
|
|
28
28
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" }), hasCustomDropdown && !disabled && (jsx(PSelectWrapperDropdown, { className: "dropdown", selectRef: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props, label: this.props.label || namedSlotChildren.find(({ props: { slot } }) => slot === 'label')?.props.children, message: this.props.message || namedSlotChildren.find(({ props: { slot } }) => slot === 'message')?.props.children, description: this.props.description || namedSlotChildren.find(({ props: { slot } }) => slot === 'description')?.props.children, state: this.props.state, direction: this.props.dropdownDirection, filter: this.props.filter, theme: this.props.theme, required: false, disabled: disabled, onOpenChange: (isOpen) => this.props.iconElement.classList.toggle('icon--open', isOpen) }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -45,7 +45,7 @@ class DSRSelect extends Component {
|
|
|
45
45
|
this.props.internals?.setFormValue(this.props.defaultValue);
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
const {
|
|
48
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
49
49
|
const buttonId = 'value';
|
|
50
50
|
const popoverId = 'list';
|
|
51
51
|
const descriptionId = this.props.description ? 'description' : undefined;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs
CHANGED
|
@@ -19,7 +19,7 @@ class DSRSheet extends Component {
|
|
|
19
19
|
scroller;
|
|
20
20
|
hasHeader;
|
|
21
21
|
render() {
|
|
22
|
-
const {
|
|
22
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
23
23
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
24
24
|
if (this.props.open) ;
|
|
25
25
|
const style = minifyCss(getComponentCss$p(this.props.open, this.props.dismissButton, this.props.theme));
|
|
@@ -15,7 +15,7 @@ class DSRStepperHorizontal extends Component {
|
|
|
15
15
|
scrollerElement;
|
|
16
16
|
currentStepIndex;
|
|
17
17
|
render() {
|
|
18
|
-
const { children,
|
|
18
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
19
19
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
20
20
|
? { ...child, props: { ...child.props, theme: this.props.theme } }
|
|
21
21
|
: child);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
|
13
13
|
class DSRTable extends Component {
|
|
14
14
|
host;
|
|
15
15
|
render() {
|
|
16
|
-
const {
|
|
16
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
17
17
|
const hasSlottedCaption = namedSlotChildren.filter(({ props: { slot } }) => slot === 'caption').length > 0;
|
|
18
18
|
const captionId = 'caption';
|
|
19
19
|
const tableAttr = this.props.caption
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs
CHANGED
|
@@ -21,7 +21,7 @@ class DSRTabsBar extends Component {
|
|
|
21
21
|
hasPTabsParent;
|
|
22
22
|
areTabsButtons;
|
|
23
23
|
render() {
|
|
24
|
-
const { children,
|
|
24
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
25
25
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
26
26
|
? child.type === 'button'
|
|
27
27
|
? {
|
|
@@ -15,7 +15,7 @@ class DSRTabs extends Component {
|
|
|
15
15
|
host;
|
|
16
16
|
tabsItemElements = [];
|
|
17
17
|
render() {
|
|
18
|
-
const { children,
|
|
18
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
19
19
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
20
20
|
? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
|
|
21
21
|
: child);
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getTextFieldWrapperCss as getComponentCss$8 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { isWithinForm, hasLocateAction,
|
|
7
|
+
import { isWithinForm, hasLocateAction, isType, showCustomCalendarOrTimeIndicator } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
9
9
|
import { StateMessage } from './state-message.mjs';
|
|
10
10
|
import { LegacyLabel } from './legacy-label.mjs';
|
|
@@ -34,7 +34,7 @@ class DSRTextFieldWrapper extends Component {
|
|
|
34
34
|
hasUnit;
|
|
35
35
|
eventListener;
|
|
36
36
|
render() {
|
|
37
|
-
const {
|
|
37
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
38
38
|
const { readOnly, disabled, type } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
39
39
|
const disabledOrReadOnly = disabled || readOnly;
|
|
40
40
|
const buttonProps = {
|
|
@@ -20,7 +20,7 @@ class DSRTextareaWrapper extends Component {
|
|
|
20
20
|
hasCounter;
|
|
21
21
|
eventListener;
|
|
22
22
|
render() {
|
|
23
|
-
const {
|
|
23
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
24
24
|
const { disabled, readOnly } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
25
25
|
const style = minifyCss(getComponentCss$4(disabled, readOnly, this.props.hideLabel, this.props.state, this.props.hasCounter, this.props.theme));
|
|
26
26
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), this.props.hasCounter && jsx("span", { className: "counter", "aria-hidden": "true" }), this.props.hasCounter && jsx("span", { className: "sr-only", "aria-live": "polite" })] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs
CHANGED
|
@@ -27,7 +27,7 @@ class DSRTextarea extends Component {
|
|
|
27
27
|
formStateRestoreCallback() {
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
const {
|
|
30
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
31
31
|
const id = 'textarea';
|
|
32
32
|
const style = minifyCss(getComponentCss$3(this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.counter, this.props.resize, this.props.theme));
|
|
33
33
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [jsx("textarea", { "aria-describedby": `${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, value: this.props.value, form: this.props.form, disabled: this.props.disabled, required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, rows: this.props.rows, readOnly: this.props.readOnly, spellCheck: this.props.spellCheck, autoComplete: this.props.autoComplete, wrap: this.props.wrap }), this.props.counter && (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
|
package/partials/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var partials = require('@porsche-design-system/components-js/partials');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.keys(partials).forEach(function (k) {
|
|
8
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return partials[k]; }
|
|
11
|
-
});
|
|
12
|
-
});
|
|
File without changes
|
|
File without changes
|