@porsche-design-system/components-react 3.24.0 → 3.25.0-rc.0
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 +18 -0
- package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/button.wrapper.cjs +3 -3
- package/cjs/lib/components/sheet.wrapper.cjs +29 -0
- package/cjs/public-api.cjs +2 -0
- package/esm/lib/components/button-pure.wrapper.d.ts +8 -0
- package/esm/lib/components/button-pure.wrapper.mjs +3 -3
- package/esm/lib/components/button.wrapper.d.ts +8 -0
- package/esm/lib/components/button.wrapper.mjs +3 -3
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/sheet.wrapper.d.ts +72 -0
- package/esm/lib/components/sheet.wrapper.mjs +27 -0
- package/esm/lib/types.d.ts +7 -0
- package/esm/public-api.mjs +1 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +163 -109
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -0
- 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 +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -2
- 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.cjs +1 -1
- 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 +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +39 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +113 -60
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +37 -0
- 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 +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +72 -0
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/sheet.d.ts +14 -0
- package/ssr/esm/lib/types.d.ts +7 -0
|
@@ -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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getIconCss as getComponentCss$
|
|
5
|
+
import { getIconCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { buildIconUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
|
|
8
8
|
class DSRIcon extends Component {
|
|
@@ -16,7 +16,7 @@ class DSRIcon extends Component {
|
|
|
16
16
|
'neutral-contrast-high': 'contrast-high',
|
|
17
17
|
'notification-neutral': 'notification-info',
|
|
18
18
|
};
|
|
19
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
19
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N(this.props.name, this.props.source, (deprecationMap[this.props.color] || this.props.color), this.props.size, this.props.theme)));
|
|
20
20
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("img", { src: buildIconUrl(this.props.source || this.props.name), width: 24, height: 24, loading: "lazy", alt: parseAndGetAriaAttributes(this.props.aria)?.['aria-label'] ?? '' })] }) }));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getInlineNotificationCss as getComponentCss$
|
|
7
|
+
import { getInlineNotificationCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { getInlineNotificationIconName, getContentAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
10
10
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
@@ -25,7 +25,7 @@ class DSRInlineNotification extends Component {
|
|
|
25
25
|
const labelId = 'label';
|
|
26
26
|
const descriptionId = 'description';
|
|
27
27
|
const Heading = this.props.headingTag;
|
|
28
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
28
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.state, !!this.props.actionLabel, this.hasDismissButton, this.props.theme)));
|
|
29
29
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PIcon, { className: "icon", name: getInlineNotificationIconName(this.props.state), color: `notification-${this.props.state}`, theme: this.props.theme, "aria-hidden": "true" }), jsxs("div", { id: bannerId, className: "content", ...getContentAriaAttributes(this.props.state, labelId, descriptionId), children: [(this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) &&
|
|
30
30
|
(this.props.heading ? (jsx(Heading, { id: labelId, className: "heading", children: this.props.heading })) : (jsx("slot", { name: "heading" }))), jsx("p", { id: descriptionId, className: "description", children: this.props.description || jsx("slot", {}) })] }), this.props.actionLabel && (jsx(PButtonPure, { className: "action", theme: this.props.theme, icon: this.props.actionIcon, loading: this.props.actionLoading, children: this.props.actionLabel })), this.hasDismissButton && (jsx(PButton, { className: "close", type: "button", variant: "ghost", icon: "close", theme: this.props.theme, hideLabel: true, "aria-controls": bannerId, children: "Close notification" }))] })] }), this.props.children] }));
|
|
31
31
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getLinkPureCss as getComponentCss$
|
|
7
|
+
import { getLinkPureCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ class DSRLinkPure extends Component {
|
|
|
17
17
|
splitChildren(this.props.children);
|
|
18
18
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
19
19
|
const hasIcon = hasVisibleIcon(this.props.icon, this.props.iconSource);
|
|
20
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
20
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.icon, this.props.iconSource, this.props.active, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.underline, !this.props.href, this.props.theme)));
|
|
21
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
22
22
|
href: this.props.href,
|
|
23
23
|
target: this.props.target,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getLinkCss as getComponentCss$
|
|
7
|
+
import { getLinkCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -17,7 +17,7 @@ class DSRLinkSocial extends Component {
|
|
|
17
17
|
render() {
|
|
18
18
|
splitChildren(this.props.children);
|
|
19
19
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
20
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
20
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.icon, this.props.iconSource, 'primary', this.props.hideLabel, !this.props.href, this.props.compact, this.props.theme)));
|
|
21
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
22
22
|
href: this.props.href,
|
|
23
23
|
target: this.props.target,
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getLinkTileModelSignatureCss as getComponentCss$
|
|
7
|
+
import { getLinkTileModelSignatureCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { PModelSignature } from '../components/model-signature.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -35,7 +35,7 @@ class DSRLinkTileModelSignature extends Component {
|
|
|
35
35
|
tabIndex: -1,
|
|
36
36
|
'aria-hidden': 'true',
|
|
37
37
|
};
|
|
38
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
38
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.aspectRatio, this.props.weight, this.props.linkDirection, !!this.props.description)));
|
|
39
39
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("a", { ...overlayLinkProps }), jsxs("div", { className: "header", children: [jsx(PModelSignature, { theme: "dark", model: this.props.model }), jsx("slot", { name: "header" })] }), jsx("div", { className: "media", children: jsx("slot", {}) }), jsxs("div", { className: "footer", children: [jsx(this.props.headingTag, { children: this.props.heading }), this.props.description && jsx("p", { children: this.props.description }), jsxs("div", { className: "link-group", role: "group", children: [jsx("slot", { name: "primary" }), jsx("slot", { name: "secondary" })] })] })] })] }), manipulatedChildren] }));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getLinkTileProductCss as getComponentCss$
|
|
7
|
+
import { getLinkTileProductCss as getComponentCss$I } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { anchorSlot, headerSlot } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ class DSRLinkTileProduct extends Component {
|
|
|
25
25
|
const headingId = 'heading';
|
|
26
26
|
const priceId = 'price';
|
|
27
27
|
const descriptionId = 'description';
|
|
28
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
28
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.likeButton, !this.props.href, !!this.props.priceOriginal, !!this.props.description, this.props.aspectRatio, this.props.theme)));
|
|
29
29
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [this.props.href ? (jsx("a", { className: "anchor", href: this.props.href, target: this.props.target, rel: this.props.rel, "aria-labelledby": `${headingId} ${priceId}`, "aria-describedby": `${headerId} ${descriptionId}` })) : (jsx("slot", { name: anchorSlot })), jsxs("div", { id: headerId, className: "header", children: [jsx("slot", { name: headerSlot }), this.props.likeButton && (jsx(PButtonPure, { className: "button", type: "button", icon: this.props.liked ? 'heart-filled' : 'heart', hideLabel: true, theme: this.props.theme, children: this.props.liked ? 'Remove from wishlist' : 'Add to wishlist' }))] }), jsx("div", { className: "image", children: jsx("slot", {}) }), jsxs("div", { className: "wrapper", children: [this.props.heading && (jsx("h3", { id: headingId, className: "heading", children: this.props.heading })), this.props.price && (jsx("p", { id: priceId, className: "price", children: this.props.priceOriginal ? (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", children: "sale price" }), this.props.price, jsx("span", { className: "sr-only", children: "original price" }), jsx("s", { children: this.props.priceOriginal })] })) : (this.props.price) })), this.props.description && (jsx("p", { id: descriptionId, className: "description", children: this.props.description }))] })] })] }), this.props.children] }));
|
|
30
30
|
}
|
|
31
31
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getLinkTileCss as getComponentCss$
|
|
7
|
+
import { getLinkTileCss as getComponentCss$H } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { PLink } from '../components/link.wrapper.mjs';
|
|
9
9
|
import { PLinkPure } from '../components/link-pure.wrapper.mjs';
|
|
10
10
|
|
|
@@ -29,7 +29,7 @@ class DSRLinkTile extends Component {
|
|
|
29
29
|
};
|
|
30
30
|
const link = (createElement(PLink, { ...sharedLinkProps, ...linkProps, key: "link-or-button", className: "link-or-button" }, this.props.label));
|
|
31
31
|
const linkPure = (createElement(PLinkPure, { ...sharedLinkProps, ...linkProps, key: "link-or-button-pure", className: "link-or-button-pure", hideLabel: true, icon: "arrow-right" }, this.props.label));
|
|
32
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
32
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$H(this.props.aspectRatio, this.props.size, this.props.weight, this.props.background, this.props.align, this.props.compact, this.props.gradient)));
|
|
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("a", { ...sharedLinkProps, tabIndex: -1, "aria-hidden": "true" }), jsx("slot", { name: "header" }), jsx("div", { className: "media", children: jsx("slot", {}) }), jsxs("div", { className: "footer", children: [jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? linkPure : link) : [linkPure, link]] })] })] }), this.props.children] }));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getLinkCss as getComponentCss$
|
|
7
|
+
import { getLinkCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { parseAndGetAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ class DSRLink extends Component {
|
|
|
16
16
|
render() {
|
|
17
17
|
splitChildren(this.props.children);
|
|
18
18
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
19
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
19
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, !this.props.href, this.props.compact, this.props.theme)));
|
|
20
20
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
21
21
|
href: this.props.href,
|
|
22
22
|
target: this.props.target,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getMarqueCss as getComponentCss$
|
|
5
|
+
import { getMarqueCss as getComponentCss$G } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { getInnerManifest, buildSrcSet, buildImgSrc, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-wordmark" instead. */
|
|
@@ -22,7 +22,7 @@ class DSRMarque extends Component {
|
|
|
22
22
|
jsx("source", { srcSet: buildSrcSet(innerManifest, this.props.size, 'webp'), type: "image/webp" }, "webp"),
|
|
23
23
|
jsx("source", { srcSet: buildSrcSet(innerManifest, this.props.size, 'png'), type: "image/png" }, "png"),
|
|
24
24
|
], jsx("img", { src: buildImgSrc(innerManifest), alt: "Porsche" })] }));
|
|
25
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
25
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$G(this.props.size)));
|
|
26
26
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (picture) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: picture })) })] }) }));
|
|
27
27
|
}
|
|
28
28
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getModalCss as getComponentCss$
|
|
7
|
+
import { getModalCss as getComponentCss$F } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
10
10
|
|
|
@@ -33,7 +33,7 @@ class DSRModal extends Component {
|
|
|
33
33
|
const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
34
34
|
// TODO: why do we validate only when opened?
|
|
35
35
|
if (this.props.open) ;
|
|
36
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
36
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$F(this.props.open, this.props.backdrop, this.props.fullscreen, hasDismissButton, hasHeader, hasFooter, this.props.theme)));
|
|
37
37
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { inert: !this.props.open, tabIndex: -1, ...parseAndGetAriaAttributes({
|
|
38
38
|
'aria-modal': true,
|
|
39
39
|
...(hasHeader && { 'aria-label': this.props.ariaLabel }),
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getModelSignatureCss as getComponentCss$
|
|
6
|
+
import { getModelSignatureCss as getComponentCss$E } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getSvgUrl } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -15,7 +15,7 @@ class DSRModelSignature extends Component {
|
|
|
15
15
|
splitChildren(this.props.children);
|
|
16
16
|
const fetchPriority = this.props.fetchPriority !== 'auto' ? this.props.fetchPriority : null;
|
|
17
17
|
const loading = this.props.lazy === true ? 'lazy' : null;
|
|
18
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
18
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$E(this.props.model, this.props.safeZone, this.props.size, this.props.color, this.props.theme)));
|
|
19
19
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx("slot", {}), jsx("img", { fetchPriority: fetchPriority, loading: loading, src: getSvgUrl(this.props.model), alt: this.props.model })] })] }), this.props.children] }));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getMultiSelectOptionCss as getComponentCss$
|
|
7
|
+
import { getMultiSelectOptionCss as getComponentCss$D } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @slot {"name": "", "description": "Default slot for the option text." }
|
|
@@ -15,7 +15,7 @@ class DSRMultiSelectOption extends Component {
|
|
|
15
15
|
splitChildren(this.props.children);
|
|
16
16
|
const { theme = 'light', selected, highlighted, hidden, textContent } = this.props;
|
|
17
17
|
this.props.disabled || this.props.disabledParent;
|
|
18
|
-
minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
18
|
+
minifyCss(stripFocusAndHoverStyles(getComponentCss$D(theme)));
|
|
19
19
|
return (jsx(Fragment, {}));
|
|
20
20
|
}
|
|
21
21
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getMultiSelectCss as getComponentCss$
|
|
7
|
+
import { getMultiSelectCss as getComponentCss$C } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { getSelectedOptionValues, getSelectedOptions } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
10
|
-
import { StateMessage } from './state-message.mjs';
|
|
11
10
|
import { Label } from './label.mjs';
|
|
11
|
+
import { StateMessage } from './state-message.mjs';
|
|
12
12
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -45,7 +45,7 @@ class DSRMultiSelect extends Component {
|
|
|
45
45
|
for (const val of value) {
|
|
46
46
|
formData.append(this.props.name, val);
|
|
47
47
|
}
|
|
48
|
-
this.props.internals
|
|
48
|
+
this.props.internals?.setFormValue(formData);
|
|
49
49
|
}
|
|
50
50
|
formDisabledCallback() {
|
|
51
51
|
}
|
|
@@ -59,7 +59,7 @@ class DSRMultiSelect extends Component {
|
|
|
59
59
|
const optionsSelectedId = 'options-selected';
|
|
60
60
|
const dropdownId = 'list';
|
|
61
61
|
const inputId = 'filter';
|
|
62
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
62
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$C('down', this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.isNativePopoverCase, this.props.theme)));
|
|
63
63
|
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, label: this.props.label, description: this.props.description, htmlFor: inputId, isRequired: this.props.required, isDisabled: this.props.disabled }), this.props.currentValue && (jsxs("span", { id: optionsSelectedId, className: "sr-only", children: [getSelectedOptions(this.props.multiSelectOptions).length, " options selected"] })), jsxs("div", { className: `wrapper${this.props.disabled ? ' disabled' : ''}`, children: [jsx("input", { id: inputId, role: "combobox", autoComplete: "off", disabled: this.props.disabled, required: this.props.required, "aria-invalid": this.props.state === 'error' ? 'true' : null }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, "aria-hidden": "true" }), this.props.currentValue && (jsx(PButtonPure, { type: "button", className: "button", icon: "close", hideLabel: true, theme: this.props.theme, disabled: this.props.disabled, children: "Reset selection" })), jsx("div", { ...(this.props.isNativePopoverCase && {
|
|
64
64
|
popover: 'auto',
|
|
65
65
|
className: 'popover',
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getOptgroupCss as getComponentCss$
|
|
6
|
+
import { getOptgroupCss as getComponentCss$A } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @slot {"name": "", "description": "Default slot for the optgroup content." }
|
|
@@ -13,7 +13,7 @@ class DSROptgroup extends Component {
|
|
|
13
13
|
render() {
|
|
14
14
|
splitChildren(this.props.children);
|
|
15
15
|
const { theme = 'light', hidden } = this.props;
|
|
16
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
16
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$A(this.props.disabled, theme)));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "group", className: Object.entries({
|
|
18
18
|
optgroup: true,
|
|
19
19
|
'optgroup--disabled': this.props.disabled,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getPaginationCss as getComponentCss$
|
|
6
|
+
import { getPaginationCss as getComponentCss$z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getTotalPages, createPaginationItems, getCurrentActivePage, ItemType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ class DSRPagination extends Component {
|
|
|
19
19
|
pageTotal,
|
|
20
20
|
showLastPage: this.props.showLastPage,
|
|
21
21
|
});
|
|
22
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
22
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$z(this.props.activePage, pageTotal, this.props.showLastPage, this.props.theme)));
|
|
23
23
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("nav", { "aria-label": this.props.allyLabel || this.props.intl.root, children: jsx("ul", { children: paginationItems.map((pageModel, index) => {
|
|
24
24
|
const { type, isActive, value, isBeforeCurrent, isAfterCurrent, isBeforeBeforeCurrent, isAfterAfterCurrent, } = pageModel;
|
|
25
25
|
const spanProps = {
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getPinCodeCss as getComponentCss$
|
|
7
|
+
import { getPinCodeCss as getComponentCss$y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { isCurrentInput } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { LoadingMessage } from './loading-message.mjs';
|
|
10
|
-
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
10
|
import { Label, labelId, descriptionId } from './label.mjs';
|
|
11
|
+
import { messageId, StateMessage } from './state-message.mjs';
|
|
12
12
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -27,7 +27,7 @@ class DSRPinCode extends Component {
|
|
|
27
27
|
defaultValue;
|
|
28
28
|
inputElements = [];
|
|
29
29
|
formResetCallback() {
|
|
30
|
-
this.props.internals
|
|
30
|
+
this.props.internals?.setFormValue(this.props.defaultValue);
|
|
31
31
|
}
|
|
32
32
|
formDisabledCallback() {
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ class DSRPinCode extends Component {
|
|
|
38
38
|
// reset array of input elements
|
|
39
39
|
this.inputElements = [];
|
|
40
40
|
const currentInputId = 'current-input';
|
|
41
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
41
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$y(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.length, this.props.theme)));
|
|
42
42
|
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, label: this.props.label, description: this.props.description, htmlFor: currentInputId, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [Array.from(new Array(this.props.length), (_, index) => (jsx("input", { name: this.props.name, form: this.props.form, ...(isCurrentInput(index, this.props.value, this.props.length) && { id: currentInputId }), type: this.props.type === 'number' ? 'text' : this.props.type, "aria-label": `${index + 1}-${this.props.length}`, "aria-describedby": `${labelId} ${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading ? 'true' : null, autoComplete: "one-time-code", pattern: "\\d*", inputMode: "numeric" // get numeric keyboard on mobile
|
|
43
43
|
, defaultValue: this.props.value[index] === ' ' ? null : this.props.value[index], disabled: this.props.disabled, required: this.props.required }, index))), 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] }));
|
|
44
44
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getPopoverCss as getComponentCss$
|
|
7
|
+
import { getPopoverCss as getComponentCss$x } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -20,7 +20,7 @@ class DSRPopover extends Component {
|
|
|
20
20
|
parentTableElement;
|
|
21
21
|
render() {
|
|
22
22
|
splitChildren(this.props.children);
|
|
23
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
23
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$x(this.props.direction, this.props.isNativePopoverCase, 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')));
|
|
24
24
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { type: "button", ...(this.props.isNativePopoverCase ? { popoverTarget: 'spacer' } : { ...(!this.props.isNativePopoverCase && { 'aria-expanded': this.props.open }),
|
|
25
25
|
}), children: [jsx(PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsx("span", { className: "label", children: "More information" })] }), (this.props.open || this.props.isNativePopoverCase) && (jsx("div", { className: "spacer", ...(this.props.isNativePopoverCase && { popover: 'auto', id: 'spacer', onToggle: this.props.onToggle }), children: jsx("div", { className: "popover", children: this.props.description ? jsx("p", { children: this.props.description }) : jsx("slot", {}) }) }))] })] }), this.props.children] }));
|
|
26
26
|
}
|
|
@@ -4,10 +4,10 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getRadioButtonWrapperCss as getComponentCss$
|
|
7
|
+
import { getRadioButtonWrapperCss as getComponentCss$w } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { LoadingMessage } from './loading-message.mjs';
|
|
9
|
-
import { StateMessage } from './state-message.mjs';
|
|
10
9
|
import { Label } from './label.mjs';
|
|
10
|
+
import { StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -23,7 +23,7 @@ class DSRRadioButtonWrapper extends Component {
|
|
|
23
23
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
24
24
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
25
25
|
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
|
|
26
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
26
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$w(this.props.hideLabel, this.props.state, disabled, isLoading, this.props.theme)));
|
|
27
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", 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, label: this.props.label, isLoading: isLoading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), isLoading && (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: isLoading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
28
28
|
}
|
|
29
29
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getScrollerCss as getComponentCss$
|
|
7
|
+
import { getScrollerCss as getComponentCss$v } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { scrollAreaClass, parseAndGetAriaAttributes, isScrollable } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
10
10
|
|
|
@@ -27,7 +27,7 @@ class DSRScroller extends Component {
|
|
|
27
27
|
return (jsx("div", { className: direction === 'next' ? 'action-next' : 'action-prev', children: jsx(PButton, { className: "action-button", variant: "ghost", "hide-label": "true", icon: direction === 'next' ? 'arrow-head-right' : 'arrow-head-left', type: "button", tabIndex: -1, theme: this.props.theme, dir: "ltr" // Otherwise icon will be flipped which doesn't make sense in this use case
|
|
28
28
|
, children: direction }) }, direction));
|
|
29
29
|
};
|
|
30
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
30
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$v(deprecationMap[this.props.gradientColorScheme] || this.props.gradientColor, this.isNextHidden, this.isPrevHidden, this.props.scrollIndicatorPosition || this.props.alignScrollIndicator, this.props.scrollbar, this.props.theme)));
|
|
31
31
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: scrollAreaClass, children: jsxs("div", { className: "scroll-wrapper", role: parseAndGetAriaAttributes(this.props.aria)?.role || null, tabIndex: isScrollable(this.isPrevHidden, this.isNextHidden) ? 0 : null, children: [jsx("slot", {}), jsx("div", { className: "trigger" }), jsx("div", { className: "trigger" })] }) }), ['prev', 'next'].map(renderPrevNextButton)] })] }), this.props.children] }));
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getSegmentedControlItemCss as getComponentCss$
|
|
7
|
+
import { getSegmentedControlItemCss as getComponentCss$u } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { getSegmentedControlItemAriaAttributes, getIconColor } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ class DSRSegmentedControlItem extends Component {
|
|
|
19
19
|
const hasIcon = !!this.props.icon || !!this.props.iconSource;
|
|
20
20
|
const hasSlottedContent = !!children.length;
|
|
21
21
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
22
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
22
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$u(isDisabled, this.props.selected, hasIcon, hasSlottedContent, this.props.theme || 'light' // default as fallback
|
|
23
23
|
)));
|
|
24
24
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("button", { type: "button", ...getSegmentedControlItemAriaAttributes(this.props.selected, this.props.disabled, this.props.aria), children: [this.props.label && jsx("span", { children: this.props.label }), hasIcon && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.icon, source: this.props.iconSource, color: getIconColor(this.props.disabled), theme: this.props.theme || 'light', "aria-hidden": "true" })), jsx("slot", {})] }) })] }), this.props.children] }));
|
|
25
25
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getSegmentedControlCss as getComponentCss$
|
|
6
|
+
import { getSegmentedControlCss as getComponentCss$t } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @slot {"name": "", "description": "Default slot for the `p-segmented-control-item` tags." }
|
|
@@ -15,7 +15,7 @@ class DSRSegmentedControl extends Component {
|
|
|
15
15
|
internals;
|
|
16
16
|
defaultValue;
|
|
17
17
|
formResetCallback() {
|
|
18
|
-
this.props.internals
|
|
18
|
+
this.props.internals?.setFormValue(this.props.defaultValue?.toString());
|
|
19
19
|
}
|
|
20
20
|
formDisabledCallback() {
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ class DSRSegmentedControl extends Component {
|
|
|
26
26
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
27
27
|
? { ...child, props: { ...child.props, selected: child.props?.value === this.props.value, backgroundColor: this.props.backgroundColor, theme: this.props.theme } }
|
|
28
28
|
: child);
|
|
29
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
29
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$t(100, this.props.columns)));
|
|
30
30
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), manipulatedChildren] }));
|
|
31
31
|
}
|
|
32
32
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getSelectOptionCss as getComponentCss$
|
|
7
|
+
import { getSelectOptionCss as getComponentCss$B } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { getOptionAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ class DSRSelectOption extends Component {
|
|
|
17
17
|
splitChildren(this.props.children);
|
|
18
18
|
const { theme = 'light', selected, highlighted, hidden } = this.props;
|
|
19
19
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
20
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
20
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$B(theme)));
|
|
21
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "option", className: {
|
|
22
22
|
option: true,
|
|
23
23
|
'option--selected': selected,
|
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getSelectWrapperDropdownCss as getComponentCss$
|
|
6
|
+
import { getSelectWrapperDropdownCss as getComponentCss$s } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getSelectedOptionMap } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
class DSRSelectWrapperDropdown extends Component {
|
|
@@ -24,7 +24,7 @@ class DSRSelectWrapperDropdown extends Component {
|
|
|
24
24
|
const part = 'select-wrapper-dropdown';
|
|
25
25
|
this.props.description && 'description';
|
|
26
26
|
const buttonId = 'value';
|
|
27
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
27
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$s(this.props.direction === 'auto'
|
|
28
28
|
? 'down'
|
|
29
29
|
: this.props.direction, this.isOpen, this.props.state, this.props.disabled, this.props.filter, this.props.isNativePopoverCase, this.props.theme)));
|
|
30
30
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.filter ? ([
|
|
@@ -4,10 +4,10 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getSelectWrapperCss as getComponentCss$
|
|
7
|
+
import { getSelectWrapperCss as getComponentCss$r } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { isCustomDropdown } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
|
-
import { StateMessage } from './state-message.mjs';
|
|
10
9
|
import { Label } from './label.mjs';
|
|
10
|
+
import { StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
12
12
|
import { PSelectWrapperDropdown } from '../components/select-wrapper-dropdown.wrapper.mjs';
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ class DSRSelectWrapper extends Component {
|
|
|
25
25
|
const hasCustomDropdown = isCustomDropdown(this.props.filter, this.props.native);
|
|
26
26
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
27
27
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
28
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
28
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$r(disabled, hasCustomDropdown, this.props.hideLabel, this.props.state, this.props.theme)));
|
|
29
29
|
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, 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] }));
|
|
30
30
|
}
|
|
31
31
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getSelectCss as getComponentCss$
|
|
7
|
+
import { getSelectCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { getComboboxAriaAttributes, getSelectedOptionString, getListAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
|
-
import { messageId, StateMessage } from './state-message.mjs';
|
|
10
9
|
import { Label, labelId } from './label.mjs';
|
|
10
|
+
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -43,7 +43,7 @@ class DSRSelect extends Component {
|
|
|
43
43
|
formStateRestoreCallback() {
|
|
44
44
|
}
|
|
45
45
|
formResetCallback() {
|
|
46
|
-
this.props.internals
|
|
46
|
+
this.props.internals?.setFormValue(this.props.defaultValue);
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
@@ -53,7 +53,7 @@ class DSRSelect extends Component {
|
|
|
53
53
|
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
54
54
|
const initialStatusId = 'initial-status';
|
|
55
55
|
const ariaDescribedBy = [descriptionId, selectMessageId, initialStatusId].filter(Boolean).join(' ');
|
|
56
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
56
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$q('down', this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.isNativePopoverCase, this.props.theme, !!this.props.slottedImagePath)));
|
|
57
57
|
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, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("div", { className: `wrapper${this.props.disabled ? ' disabled' : ''}`, children: [jsx("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, dropdownId), disabled: this.props.disabled, children: this.props.slottedImagePath ? (jsxs("span", { children: [jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: getSelectedOptionString(otherChildren) })] })) : (getSelectedOptionString(otherChildren)) }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" }), jsx("div", { ...(this.props.isNativePopoverCase && {
|
|
58
58
|
popover: 'auto',
|
|
59
59
|
className: 'popover',
|